|
@@ -183,7 +183,7 @@ __webpack_require__.d(__webpack_exports__, "TimelineScrollEvent", function() { r
|
|
__webpack_require__.d(__webpack_exports__, "TimelineClickEvent", function() { return /* reexport */ TimelineClickEvent; });
|
|
__webpack_require__.d(__webpack_exports__, "TimelineClickEvent", function() { return /* reexport */ TimelineClickEvent; });
|
|
__webpack_require__.d(__webpack_exports__, "TimelineDragEvent", function() { return /* reexport */ TimelineDragEvent; });
|
|
__webpack_require__.d(__webpack_exports__, "TimelineDragEvent", function() { return /* reexport */ TimelineDragEvent; });
|
|
__webpack_require__.d(__webpack_exports__, "TimelineEvents", function() { return /* reexport */ TimelineEvents; });
|
|
__webpack_require__.d(__webpack_exports__, "TimelineEvents", function() { return /* reexport */ TimelineEvents; });
|
|
-__webpack_require__.d(__webpack_exports__, "TimelineConsts", function() { return /* reexport */ TimelineConsts; });
|
|
|
|
|
|
+__webpack_require__.d(__webpack_exports__, "TimelineConsts", function() { return /* reexport */ /* Cannot get final name for export "TimelineConsts" in "./src/settings/timelineConsts.ts" (known exports: defaultTimelineConsts, known reexports: ) */ undefined; });
|
|
__webpack_require__.d(__webpack_exports__, "TimelineKeyframeShape", function() { return /* reexport */ TimelineKeyframeShape; });
|
|
__webpack_require__.d(__webpack_exports__, "TimelineKeyframeShape", function() { return /* reexport */ TimelineKeyframeShape; });
|
|
__webpack_require__.d(__webpack_exports__, "TimelineInteractionMode", function() { return /* reexport */ TimelineInteractionMode; });
|
|
__webpack_require__.d(__webpack_exports__, "TimelineInteractionMode", function() { return /* reexport */ TimelineInteractionMode; });
|
|
__webpack_require__.d(__webpack_exports__, "TimelineElementType", function() { return /* reexport */ TimelineElementType; });
|
|
__webpack_require__.d(__webpack_exports__, "TimelineElementType", function() { return /* reexport */ TimelineElementType; });
|
|
@@ -531,26 +531,41 @@ var timelineOptions_TimelineOptions = function TimelineOptions() {
|
|
timelineOptions_defineProperty(this, "keyframesDraggable", true);
|
|
timelineOptions_defineProperty(this, "keyframesDraggable", true);
|
|
};
|
|
};
|
|
// CONCATENATED MODULE: ./src/settings/timelineConsts.ts
|
|
// CONCATENATED MODULE: ./src/settings/timelineConsts.ts
|
|
-function timelineConsts_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
|
|
-
|
|
|
|
-function timelineConsts_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
|
|
-
|
|
|
|
-var TimelineConsts = function TimelineConsts() {
|
|
|
|
- timelineConsts_classCallCheck(this, TimelineConsts);
|
|
|
|
-
|
|
|
|
- timelineConsts_defineProperty(this, "autoPanSpeed", 50);
|
|
|
|
|
|
+var defaultTimelineConsts = {
|
|
|
|
+ /**
|
|
|
|
+ * Auto pan speed.
|
|
|
|
+ */
|
|
|
|
+ autoPanSpeed: 50,
|
|
|
|
|
|
- timelineConsts_defineProperty(this, "scrollByDragSpeed", 0.12);
|
|
|
|
|
|
+ /**
|
|
|
|
+ * scroll speed when mouse drag is used (from 0 to 1)
|
|
|
|
+ */
|
|
|
|
+ scrollByDragSpeed: 0.12,
|
|
|
|
|
|
- timelineConsts_defineProperty(this, "clickDetectionMs", 120);
|
|
|
|
|
|
+ /**
|
|
|
|
+ * Determine whether item was clicked.
|
|
|
|
+ */
|
|
|
|
+ clickDetectionMs: 120,
|
|
|
|
|
|
- timelineConsts_defineProperty(this, "doubleClickTimeoutMs", 400);
|
|
|
|
|
|
+ /**
|
|
|
|
+ * Timeout to detect double click.
|
|
|
|
+ */
|
|
|
|
+ doubleClickTimeoutMs: 400,
|
|
|
|
|
|
- timelineConsts_defineProperty(this, "scrollFinishedTimeoutMs", 500);
|
|
|
|
|
|
+ /**
|
|
|
|
+ * Time in ms used to refresh scrollbars when pan is finished.
|
|
|
|
+ */
|
|
|
|
+ scrollFinishedTimeoutMs: 500,
|
|
|
|
|
|
- timelineConsts_defineProperty(this, "autoPanByScrollPadding", 10);
|
|
|
|
|
|
+ /**
|
|
|
|
+ * Auto pan padding
|
|
|
|
+ */
|
|
|
|
+ autoPanByScrollPadding: 10,
|
|
|
|
|
|
- timelineConsts_defineProperty(this, "clickThreshold", 3);
|
|
|
|
|
|
+ /**
|
|
|
|
+ * Click threshold
|
|
|
|
+ */
|
|
|
|
+ clickThreshold: 3
|
|
};
|
|
};
|
|
// CONCATENATED MODULE: ./src/enums/timelineCursorType.ts
|
|
// CONCATENATED MODULE: ./src/enums/timelineCursorType.ts
|
|
var TimelineCursorType;
|
|
var TimelineCursorType;
|
|
@@ -944,7 +959,7 @@ var timeline_Timeline = /*#__PURE__*/function (_TimelineEventsEmitte) {
|
|
|
|
|
|
timeline_defineProperty(timeline_assertThisInitialized(_this), "_lastClickPoint", null);
|
|
timeline_defineProperty(timeline_assertThisInitialized(_this), "_lastClickPoint", null);
|
|
|
|
|
|
- timeline_defineProperty(timeline_assertThisInitialized(_this), "_consts", new TimelineConsts());
|
|
|
|
|
|
+ timeline_defineProperty(timeline_assertThisInitialized(_this), "_consts", defaultTimelineConsts);
|
|
|
|
|
|
timeline_defineProperty(timeline_assertThisInitialized(_this), "_clickAllowed", false);
|
|
timeline_defineProperty(timeline_assertThisInitialized(_this), "_clickAllowed", false);
|
|
|
|
|
|
@@ -1027,7 +1042,10 @@ var timeline_Timeline = /*#__PURE__*/function (_TimelineEventsEmitte) {
|
|
var mousePos = _this._getMousePos(_this._canvas, event);
|
|
var mousePos = _this._getMousePos(_this._canvas, event);
|
|
|
|
|
|
var x = mousePos.x;
|
|
var x = mousePos.x;
|
|
- if (x <= 0) x = 0;
|
|
|
|
|
|
+
|
|
|
|
+ if (x <= 0) {
|
|
|
|
+ x = 0;
|
|
|
|
+ }
|
|
|
|
|
|
var val = _this.pxToVal(_this._scrollContainer.scrollLeft + x, false);
|
|
var val = _this.pxToVal(_this._scrollContainer.scrollLeft + x, false);
|
|
|
|
|
|
@@ -1056,7 +1074,8 @@ var timeline_Timeline = /*#__PURE__*/function (_TimelineEventsEmitte) {
|
|
_this._rescaleInternal(newScrollLeft + _this._canvas.clientWidth, null, 'zoom');
|
|
_this._rescaleInternal(newScrollLeft + _this._canvas.clientWidth, null, 'zoom');
|
|
|
|
|
|
if (_this._scrollContainer.scrollLeft != newScrollLeft) {
|
|
if (_this._scrollContainer.scrollLeft != newScrollLeft) {
|
|
- _this._scrollContainer.scrollLeft = newScrollLeft; // Scroll event will redraw the screen.
|
|
|
|
|
|
+ // Scroll event will redraw the screen.
|
|
|
|
+ _this._scrollContainer.scrollLeft = newScrollLeft;
|
|
}
|
|
}
|
|
|
|
|
|
_this.redraw();
|
|
_this.redraw();
|