scratch-paint 2.2.4 → 2.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/scratch-paint.js +439 -511
- package/dist/scratch-paint.js.map +1 -1
- package/pack/scratch-paint-2.2.5.tgz +0 -0
- package/package.json +7 -7
- package/renovate.json5 +1 -1
- package/pack/scratch-paint-2.2.4.tgz +0 -0
package/dist/scratch-paint.js
CHANGED
|
@@ -21513,8 +21513,8 @@ var _excluded = ["alignContent", "alignItems", "alignSelf", "basis", "children",
|
|
|
21513
21513
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21514
21514
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21515
21515
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21516
|
-
function _toPropertyKey(
|
|
21517
|
-
function _toPrimitive(
|
|
21516
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
21517
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
21518
21518
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
21519
21519
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
21520
21520
|
/* DO NOT EDIT
|
|
@@ -28878,8 +28878,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
28878
28878
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
28879
28879
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28880
28880
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
28881
|
-
function _toPropertyKey(
|
|
28882
|
-
function _toPrimitive(
|
|
28881
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
28882
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
28883
28883
|
|
|
28884
28884
|
var vectorModesObj = {
|
|
28885
28885
|
BRUSH: null,
|
|
@@ -29316,8 +29316,8 @@ function selection_arrayLikeToArray(arr, len) { if (len == null || len > arr.len
|
|
|
29316
29316
|
function selection_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29317
29317
|
function selection_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? selection_ownKeys(Object(t), !0).forEach(function (r) { selection_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : selection_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
29318
29318
|
function selection_defineProperty(obj, key, value) { key = selection_toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
29319
|
-
function selection_toPropertyKey(
|
|
29320
|
-
function selection_toPrimitive(
|
|
29319
|
+
function selection_toPropertyKey(t) { var i = selection_toPrimitive(t, "string"); return "symbol" == selection_typeof(i) ? i : String(i); }
|
|
29320
|
+
function selection_toPrimitive(t, r) { if ("object" != selection_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != selection_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
29321
29321
|
|
|
29322
29322
|
|
|
29323
29323
|
|
|
@@ -29680,7 +29680,6 @@ var selection_handleRectangularSelectionItems = function _handleRectangularSelec
|
|
|
29680
29680
|
} else {
|
|
29681
29681
|
selection_setItemSelection(root, true, true /* fullySelected */);
|
|
29682
29682
|
}
|
|
29683
|
-
|
|
29684
29683
|
return false;
|
|
29685
29684
|
}
|
|
29686
29685
|
}
|
|
@@ -29777,7 +29776,6 @@ var selection_selectRootItem = function selectRootItem() {
|
|
|
29777
29776
|
var cp = getItemsCompoundPath(item);
|
|
29778
29777
|
selection_setItemSelection(cp, true, true /* fullySelected */);
|
|
29779
29778
|
}
|
|
29780
|
-
|
|
29781
29779
|
var rootItem = getRootItem(item);
|
|
29782
29780
|
if (item !== rootItem) {
|
|
29783
29781
|
selection_setItemSelection(rootItem, true, true /* fullySelected */);
|
|
@@ -30377,7 +30375,6 @@ var bitmap_convertToBitmap = function convertToBitmap(clearSelectedItems, onUpda
|
|
|
30377
30375
|
}
|
|
30378
30376
|
onUpdateImage(false /* skipSnapshot */, Formats.BITMAP /* formatOverride */);
|
|
30379
30377
|
};
|
|
30380
|
-
|
|
30381
30378
|
img.onerror = function () {
|
|
30382
30379
|
// Fallback if browser does not support SVG data URIs in images.
|
|
30383
30380
|
// The problem with rasterize is that it will anti-alias.
|
|
@@ -30413,11 +30410,9 @@ var bitmap_convertToVector = function convertToVector(clearSelectedItems, onUpda
|
|
|
30413
30410
|
_iterator.f();
|
|
30414
30411
|
}
|
|
30415
30412
|
bitmap_getTrimmedRaster(true /* shouldInsert */);
|
|
30416
|
-
|
|
30417
30413
|
layer_clearRaster();
|
|
30418
30414
|
onUpdateImage(false /* skipSnapshot */, Formats.VECTOR /* formatOverride */);
|
|
30419
30415
|
};
|
|
30420
|
-
|
|
30421
30416
|
var getColor_ = function getColor_(x, y, context) {
|
|
30422
30417
|
return context.getImageData(x, y, 1, 1).data;
|
|
30423
30418
|
};
|
|
@@ -31777,8 +31772,8 @@ var view_bounds_updateViewBounds = function updateViewBounds(matrix) {
|
|
|
31777
31772
|
// CONCATENATED MODULE: ./src/reducers/zoom-levels.js
|
|
31778
31773
|
function zoom_levels_typeof(o) { "@babel/helpers - typeof"; return zoom_levels_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, zoom_levels_typeof(o); }
|
|
31779
31774
|
function zoom_levels_defineProperty(obj, key, value) { key = zoom_levels_toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
31780
|
-
function zoom_levels_toPropertyKey(
|
|
31781
|
-
function zoom_levels_toPrimitive(
|
|
31775
|
+
function zoom_levels_toPropertyKey(t) { var i = zoom_levels_toPrimitive(t, "string"); return "symbol" == zoom_levels_typeof(i) ? i : String(i); }
|
|
31776
|
+
function zoom_levels_toPrimitive(t, r) { if ("object" != zoom_levels_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != zoom_levels_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
31782
31777
|
|
|
31783
31778
|
|
|
31784
31779
|
var SAVE_ZOOM_LEVEL = 'scratch-paint/zoom-levels/SAVE_ZOOM_LEVEL';
|
|
@@ -31831,15 +31826,15 @@ function paper_canvas_arrayLikeToArray(arr, len) { if (len == null || len > arr.
|
|
|
31831
31826
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
31832
31827
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, paper_canvas_toPropertyKey(descriptor.key), descriptor); } }
|
|
31833
31828
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
31834
|
-
function paper_canvas_toPropertyKey(
|
|
31835
|
-
function paper_canvas_toPrimitive(
|
|
31836
|
-
function
|
|
31837
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31838
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31829
|
+
function paper_canvas_toPropertyKey(t) { var i = paper_canvas_toPrimitive(t, "string"); return "symbol" == paper_canvas_typeof(i) ? i : String(i); }
|
|
31830
|
+
function paper_canvas_toPrimitive(t, r) { if ("object" != paper_canvas_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != paper_canvas_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
31831
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
31839
31832
|
function _possibleConstructorReturn(self, call) { if (call && (paper_canvas_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
31840
|
-
function
|
|
31841
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
31833
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
31842
31834
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
31835
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
31836
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
31837
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31843
31838
|
|
|
31844
31839
|
|
|
31845
31840
|
|
|
@@ -31862,11 +31857,10 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
31862
31857
|
|
|
31863
31858
|
var paper_canvas_PaperCanvas = /*#__PURE__*/function (_React$Component) {
|
|
31864
31859
|
_inherits(PaperCanvas, _React$Component);
|
|
31865
|
-
var _super = _createSuper(PaperCanvas);
|
|
31866
31860
|
function PaperCanvas(props) {
|
|
31867
31861
|
var _this;
|
|
31868
31862
|
_classCallCheck(this, PaperCanvas);
|
|
31869
|
-
_this =
|
|
31863
|
+
_this = _callSuper(this, PaperCanvas, [props]);
|
|
31870
31864
|
lodash_bindall_default()(_assertThisInitialized(_this), ['clearQueuedImport', 'setCanvas', 'importSvg', 'initializeSvg', 'maybeZoomToFit', 'switchCostume', 'onViewResize', 'recalibrateSize']);
|
|
31871
31865
|
return _this;
|
|
31872
31866
|
}
|
|
@@ -32358,15 +32352,15 @@ function scrollable_canvas_typeof(o) { "@babel/helpers - typeof"; return scrolla
|
|
|
32358
32352
|
function scrollable_canvas_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
32359
32353
|
function scrollable_canvas_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, scrollable_canvas_toPropertyKey(descriptor.key), descriptor); } }
|
|
32360
32354
|
function scrollable_canvas_createClass(Constructor, protoProps, staticProps) { if (protoProps) scrollable_canvas_defineProperties(Constructor.prototype, protoProps); if (staticProps) scrollable_canvas_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
32361
|
-
function scrollable_canvas_toPropertyKey(
|
|
32362
|
-
function scrollable_canvas_toPrimitive(
|
|
32363
|
-
function
|
|
32364
|
-
function scrollable_canvas_setPrototypeOf(o, p) { scrollable_canvas_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return scrollable_canvas_setPrototypeOf(o, p); }
|
|
32365
|
-
function scrollable_canvas_createSuper(Derived) { var hasNativeReflectConstruct = scrollable_canvas_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = scrollable_canvas_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = scrollable_canvas_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return scrollable_canvas_possibleConstructorReturn(this, result); }; }
|
|
32355
|
+
function scrollable_canvas_toPropertyKey(t) { var i = scrollable_canvas_toPrimitive(t, "string"); return "symbol" == scrollable_canvas_typeof(i) ? i : String(i); }
|
|
32356
|
+
function scrollable_canvas_toPrimitive(t, r) { if ("object" != scrollable_canvas_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != scrollable_canvas_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
32357
|
+
function scrollable_canvas_callSuper(t, o, e) { return o = scrollable_canvas_getPrototypeOf(o), scrollable_canvas_possibleConstructorReturn(t, scrollable_canvas_isNativeReflectConstruct() ? Reflect.construct(o, e || [], scrollable_canvas_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
32366
32358
|
function scrollable_canvas_possibleConstructorReturn(self, call) { if (call && (scrollable_canvas_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return scrollable_canvas_assertThisInitialized(self); }
|
|
32367
|
-
function
|
|
32368
|
-
function scrollable_canvas_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
32359
|
+
function scrollable_canvas_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (scrollable_canvas_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
32369
32360
|
function scrollable_canvas_getPrototypeOf(o) { scrollable_canvas_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return scrollable_canvas_getPrototypeOf(o); }
|
|
32361
|
+
function scrollable_canvas_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
32362
|
+
function scrollable_canvas_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) scrollable_canvas_setPrototypeOf(subClass, superClass); }
|
|
32363
|
+
function scrollable_canvas_setPrototypeOf(o, p) { scrollable_canvas_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return scrollable_canvas_setPrototypeOf(o, p); }
|
|
32370
32364
|
|
|
32371
32365
|
|
|
32372
32366
|
|
|
@@ -32379,11 +32373,10 @@ function scrollable_canvas_getPrototypeOf(o) { scrollable_canvas_getPrototypeOf
|
|
|
32379
32373
|
|
|
32380
32374
|
var scrollable_canvas_ScrollableCanvas = /*#__PURE__*/function (_React$Component) {
|
|
32381
32375
|
scrollable_canvas_inherits(ScrollableCanvas, _React$Component);
|
|
32382
|
-
var _super = scrollable_canvas_createSuper(ScrollableCanvas);
|
|
32383
32376
|
function ScrollableCanvas(props) {
|
|
32384
32377
|
var _this;
|
|
32385
32378
|
scrollable_canvas_classCallCheck(this, ScrollableCanvas);
|
|
32386
|
-
_this =
|
|
32379
|
+
_this = scrollable_canvas_callSuper(this, ScrollableCanvas, [props]);
|
|
32387
32380
|
lodash_bindall_default()(scrollable_canvas_assertThisInitialized(_this), ['handleHorizontalScrollbarMouseDown', 'handleHorizontalScrollbarMouseMove', 'handleHorizontalScrollbarMouseUp', 'handleVerticalScrollbarMouseDown', 'handleVerticalScrollbarMouseMove', 'handleVerticalScrollbarMouseUp', 'handleWheel']);
|
|
32388
32381
|
return _this;
|
|
32389
32382
|
}
|
|
@@ -32587,8 +32580,8 @@ function make_color_style_reducer_typeof(o) { "@babel/helpers - typeof"; return
|
|
|
32587
32580
|
function make_color_style_reducer_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
32588
32581
|
function make_color_style_reducer_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? make_color_style_reducer_ownKeys(Object(t), !0).forEach(function (r) { make_color_style_reducer_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : make_color_style_reducer_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
32589
32582
|
function make_color_style_reducer_defineProperty(obj, key, value) { key = make_color_style_reducer_toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
32590
|
-
function make_color_style_reducer_toPropertyKey(
|
|
32591
|
-
function make_color_style_reducer_toPrimitive(
|
|
32583
|
+
function make_color_style_reducer_toPropertyKey(t) { var i = make_color_style_reducer_toPrimitive(t, "string"); return "symbol" == make_color_style_reducer_typeof(i) ? i : String(i); }
|
|
32584
|
+
function make_color_style_reducer_toPrimitive(t, r) { if ("object" != make_color_style_reducer_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != make_color_style_reducer_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
32592
32585
|
|
|
32593
32586
|
|
|
32594
32587
|
|
|
@@ -33365,7 +33358,6 @@ var style_path_styleShape = function styleShape(path, options) {
|
|
|
33365
33358
|
);
|
|
33366
33359
|
}
|
|
33367
33360
|
}
|
|
33368
|
-
|
|
33369
33361
|
if (Object.prototype.hasOwnProperty.call(options, 'strokeWidth')) path.strokeWidth = options.strokeWidth;
|
|
33370
33362
|
};
|
|
33371
33363
|
|
|
@@ -33405,8 +33397,8 @@ function button_typeof(o) { "@babel/helpers - typeof"; return button_typeof = "f
|
|
|
33405
33397
|
var _excluded = ["className", "highlighted", "onClick", "children"];
|
|
33406
33398
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
33407
33399
|
function button_defineProperty(obj, key, value) { key = button_toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
33408
|
-
function button_toPropertyKey(
|
|
33409
|
-
function button_toPrimitive(
|
|
33400
|
+
function button_toPropertyKey(t) { var i = button_toPrimitive(t, "string"); return "symbol" == button_typeof(i) ? i : String(i); }
|
|
33401
|
+
function button_toPrimitive(t, r) { if ("object" != button_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != button_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
33410
33402
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
33411
33403
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
33412
33404
|
/* DO NOT EDIT
|
|
@@ -33421,7 +33413,6 @@ THIS WAS CHANGED ON 10/25/2017 BY @mewtaylor TO ADD HANDLING FOR DISABLED STATES
|
|
|
33421
33413
|
|
|
33422
33414
|
|
|
33423
33415
|
var button_ButtonComponent = function ButtonComponent(_ref) {
|
|
33424
|
-
var _classNames;
|
|
33425
33416
|
var className = _ref.className,
|
|
33426
33417
|
highlighted = _ref.highlighted,
|
|
33427
33418
|
onClick = _ref.onClick,
|
|
@@ -33434,7 +33425,7 @@ var button_ButtonComponent = function ButtonComponent(_ref) {
|
|
|
33434
33425
|
props.onClick = onClick;
|
|
33435
33426
|
}
|
|
33436
33427
|
return /*#__PURE__*/external_react_default.a.createElement("span", _extends({
|
|
33437
|
-
className: classnames_default()(button_default.a.button, className, (
|
|
33428
|
+
className: classnames_default()(button_default.a.button, className, button_defineProperty(button_defineProperty({}, button_default.a.modDisabled, disabled), button_default.a.highlighted, highlighted)),
|
|
33438
33429
|
role: "button"
|
|
33439
33430
|
}, props), children);
|
|
33440
33431
|
};
|
|
@@ -33453,8 +33444,8 @@ var tool_select_base_default = /*#__PURE__*/__webpack_require__.n(tool_select_ba
|
|
|
33453
33444
|
// CONCATENATED MODULE: ./src/components/tool-select-base/tool-select-base.jsx
|
|
33454
33445
|
function tool_select_base_typeof(o) { "@babel/helpers - typeof"; return tool_select_base_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, tool_select_base_typeof(o); }
|
|
33455
33446
|
function tool_select_base_defineProperty(obj, key, value) { key = tool_select_base_toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
33456
|
-
function tool_select_base_toPropertyKey(
|
|
33457
|
-
function tool_select_base_toPrimitive(
|
|
33447
|
+
function tool_select_base_toPropertyKey(t) { var i = tool_select_base_toPrimitive(t, "string"); return "symbol" == tool_select_base_typeof(i) ? i : String(i); }
|
|
33448
|
+
function tool_select_base_toPrimitive(t, r) { if ("object" != tool_select_base_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != tool_select_base_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
33458
33449
|
|
|
33459
33450
|
|
|
33460
33451
|
|
|
@@ -33561,15 +33552,15 @@ function brush_tool_typeof(o) { "@babel/helpers - typeof"; return brush_tool_typ
|
|
|
33561
33552
|
function brush_tool_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
33562
33553
|
function brush_tool_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, brush_tool_toPropertyKey(descriptor.key), descriptor); } }
|
|
33563
33554
|
function brush_tool_createClass(Constructor, protoProps, staticProps) { if (protoProps) brush_tool_defineProperties(Constructor.prototype, protoProps); if (staticProps) brush_tool_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
33564
|
-
function brush_tool_toPropertyKey(
|
|
33565
|
-
function brush_tool_toPrimitive(
|
|
33566
|
-
function
|
|
33567
|
-
function brush_tool_setPrototypeOf(o, p) { brush_tool_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return brush_tool_setPrototypeOf(o, p); }
|
|
33568
|
-
function brush_tool_createSuper(Derived) { var hasNativeReflectConstruct = brush_tool_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = brush_tool_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = brush_tool_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return brush_tool_possibleConstructorReturn(this, result); }; }
|
|
33555
|
+
function brush_tool_toPropertyKey(t) { var i = brush_tool_toPrimitive(t, "string"); return "symbol" == brush_tool_typeof(i) ? i : String(i); }
|
|
33556
|
+
function brush_tool_toPrimitive(t, r) { if ("object" != brush_tool_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != brush_tool_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
33557
|
+
function brush_tool_callSuper(t, o, e) { return o = brush_tool_getPrototypeOf(o), brush_tool_possibleConstructorReturn(t, brush_tool_isNativeReflectConstruct() ? Reflect.construct(o, e || [], brush_tool_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
33569
33558
|
function brush_tool_possibleConstructorReturn(self, call) { if (call && (brush_tool_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return brush_tool_assertThisInitialized(self); }
|
|
33570
33559
|
function brush_tool_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
33571
|
-
function brush_tool_isNativeReflectConstruct() {
|
|
33560
|
+
function brush_tool_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (brush_tool_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
33572
33561
|
function brush_tool_getPrototypeOf(o) { brush_tool_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return brush_tool_getPrototypeOf(o); }
|
|
33562
|
+
function brush_tool_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) brush_tool_setPrototypeOf(subClass, superClass); }
|
|
33563
|
+
function brush_tool_setPrototypeOf(o, p) { brush_tool_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return brush_tool_setPrototypeOf(o, p); }
|
|
33573
33564
|
|
|
33574
33565
|
|
|
33575
33566
|
|
|
@@ -33579,7 +33570,6 @@ function brush_tool_getPrototypeOf(o) { brush_tool_getPrototypeOf = Object.setPr
|
|
|
33579
33570
|
*/
|
|
33580
33571
|
var brush_tool_BrushTool = /*#__PURE__*/function (_paper$Tool) {
|
|
33581
33572
|
brush_tool_inherits(BrushTool, _paper$Tool);
|
|
33582
|
-
var _super = brush_tool_createSuper(BrushTool);
|
|
33583
33573
|
/**
|
|
33584
33574
|
* @param {!function} onUpdateImage A callback to call when the image visibly changes
|
|
33585
33575
|
* @param {boolean} isEraser True if brush should erase
|
|
@@ -33587,7 +33577,7 @@ var brush_tool_BrushTool = /*#__PURE__*/function (_paper$Tool) {
|
|
|
33587
33577
|
function BrushTool(onUpdateImage, isEraser) {
|
|
33588
33578
|
var _this;
|
|
33589
33579
|
brush_tool_classCallCheck(this, BrushTool);
|
|
33590
|
-
_this =
|
|
33580
|
+
_this = brush_tool_callSuper(this, BrushTool);
|
|
33591
33581
|
_this.onUpdateImage = onUpdateImage;
|
|
33592
33582
|
_this.isEraser = isEraser;
|
|
33593
33583
|
|
|
@@ -33711,15 +33701,15 @@ function bit_brush_mode_typeof(o) { "@babel/helpers - typeof"; return bit_brush_
|
|
|
33711
33701
|
function bit_brush_mode_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
33712
33702
|
function bit_brush_mode_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, bit_brush_mode_toPropertyKey(descriptor.key), descriptor); } }
|
|
33713
33703
|
function bit_brush_mode_createClass(Constructor, protoProps, staticProps) { if (protoProps) bit_brush_mode_defineProperties(Constructor.prototype, protoProps); if (staticProps) bit_brush_mode_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
33714
|
-
function bit_brush_mode_toPropertyKey(
|
|
33715
|
-
function bit_brush_mode_toPrimitive(
|
|
33716
|
-
function
|
|
33717
|
-
function bit_brush_mode_setPrototypeOf(o, p) { bit_brush_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return bit_brush_mode_setPrototypeOf(o, p); }
|
|
33718
|
-
function bit_brush_mode_createSuper(Derived) { var hasNativeReflectConstruct = bit_brush_mode_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = bit_brush_mode_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = bit_brush_mode_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return bit_brush_mode_possibleConstructorReturn(this, result); }; }
|
|
33704
|
+
function bit_brush_mode_toPropertyKey(t) { var i = bit_brush_mode_toPrimitive(t, "string"); return "symbol" == bit_brush_mode_typeof(i) ? i : String(i); }
|
|
33705
|
+
function bit_brush_mode_toPrimitive(t, r) { if ("object" != bit_brush_mode_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != bit_brush_mode_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
33706
|
+
function bit_brush_mode_callSuper(t, o, e) { return o = bit_brush_mode_getPrototypeOf(o), bit_brush_mode_possibleConstructorReturn(t, bit_brush_mode_isNativeReflectConstruct() ? Reflect.construct(o, e || [], bit_brush_mode_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
33719
33707
|
function bit_brush_mode_possibleConstructorReturn(self, call) { if (call && (bit_brush_mode_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return bit_brush_mode_assertThisInitialized(self); }
|
|
33720
|
-
function
|
|
33721
|
-
function bit_brush_mode_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
33708
|
+
function bit_brush_mode_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (bit_brush_mode_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
33722
33709
|
function bit_brush_mode_getPrototypeOf(o) { bit_brush_mode_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return bit_brush_mode_getPrototypeOf(o); }
|
|
33710
|
+
function bit_brush_mode_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
33711
|
+
function bit_brush_mode_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) bit_brush_mode_setPrototypeOf(subClass, superClass); }
|
|
33712
|
+
function bit_brush_mode_setPrototypeOf(o, p) { bit_brush_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return bit_brush_mode_setPrototypeOf(o, p); }
|
|
33723
33713
|
|
|
33724
33714
|
|
|
33725
33715
|
|
|
@@ -33734,11 +33724,10 @@ function bit_brush_mode_getPrototypeOf(o) { bit_brush_mode_getPrototypeOf = Obje
|
|
|
33734
33724
|
|
|
33735
33725
|
var bit_brush_mode_BitBrushMode = /*#__PURE__*/function (_React$Component) {
|
|
33736
33726
|
bit_brush_mode_inherits(BitBrushMode, _React$Component);
|
|
33737
|
-
var _super = bit_brush_mode_createSuper(BitBrushMode);
|
|
33738
33727
|
function BitBrushMode(props) {
|
|
33739
33728
|
var _this;
|
|
33740
33729
|
bit_brush_mode_classCallCheck(this, BitBrushMode);
|
|
33741
|
-
_this =
|
|
33730
|
+
_this = bit_brush_mode_callSuper(this, BitBrushMode, [props]);
|
|
33742
33731
|
lodash_bindall_default()(bit_brush_mode_assertThisInitialized(_this), ['activateTool', 'deactivateTool']);
|
|
33743
33732
|
return _this;
|
|
33744
33733
|
}
|
|
@@ -33872,15 +33861,15 @@ function line_tool_typeof(o) { "@babel/helpers - typeof"; return line_tool_typeo
|
|
|
33872
33861
|
function line_tool_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
33873
33862
|
function line_tool_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, line_tool_toPropertyKey(descriptor.key), descriptor); } }
|
|
33874
33863
|
function line_tool_createClass(Constructor, protoProps, staticProps) { if (protoProps) line_tool_defineProperties(Constructor.prototype, protoProps); if (staticProps) line_tool_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
33875
|
-
function line_tool_toPropertyKey(
|
|
33876
|
-
function line_tool_toPrimitive(
|
|
33877
|
-
function
|
|
33878
|
-
function line_tool_setPrototypeOf(o, p) { line_tool_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return line_tool_setPrototypeOf(o, p); }
|
|
33879
|
-
function line_tool_createSuper(Derived) { var hasNativeReflectConstruct = line_tool_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = line_tool_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = line_tool_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return line_tool_possibleConstructorReturn(this, result); }; }
|
|
33864
|
+
function line_tool_toPropertyKey(t) { var i = line_tool_toPrimitive(t, "string"); return "symbol" == line_tool_typeof(i) ? i : String(i); }
|
|
33865
|
+
function line_tool_toPrimitive(t, r) { if ("object" != line_tool_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != line_tool_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
33866
|
+
function line_tool_callSuper(t, o, e) { return o = line_tool_getPrototypeOf(o), line_tool_possibleConstructorReturn(t, line_tool_isNativeReflectConstruct() ? Reflect.construct(o, e || [], line_tool_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
33880
33867
|
function line_tool_possibleConstructorReturn(self, call) { if (call && (line_tool_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return line_tool_assertThisInitialized(self); }
|
|
33881
33868
|
function line_tool_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
33882
|
-
function line_tool_isNativeReflectConstruct() {
|
|
33869
|
+
function line_tool_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (line_tool_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
33883
33870
|
function line_tool_getPrototypeOf(o) { line_tool_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return line_tool_getPrototypeOf(o); }
|
|
33871
|
+
function line_tool_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) line_tool_setPrototypeOf(subClass, superClass); }
|
|
33872
|
+
function line_tool_setPrototypeOf(o, p) { line_tool_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return line_tool_setPrototypeOf(o, p); }
|
|
33884
33873
|
|
|
33885
33874
|
|
|
33886
33875
|
|
|
@@ -33891,14 +33880,13 @@ function line_tool_getPrototypeOf(o) { line_tool_getPrototypeOf = Object.setProt
|
|
|
33891
33880
|
*/
|
|
33892
33881
|
var line_tool_LineTool = /*#__PURE__*/function (_paper$Tool) {
|
|
33893
33882
|
line_tool_inherits(LineTool, _paper$Tool);
|
|
33894
|
-
var _super = line_tool_createSuper(LineTool);
|
|
33895
33883
|
/**
|
|
33896
33884
|
* @param {!function} onUpdateImage A callback to call when the image visibly changes
|
|
33897
33885
|
*/
|
|
33898
33886
|
function LineTool(onUpdateImage) {
|
|
33899
33887
|
var _this;
|
|
33900
33888
|
line_tool_classCallCheck(this, LineTool);
|
|
33901
|
-
_this =
|
|
33889
|
+
_this = line_tool_callSuper(this, LineTool);
|
|
33902
33890
|
_this.onUpdateImage = onUpdateImage;
|
|
33903
33891
|
|
|
33904
33892
|
// We have to set these functions instead of just declaring them because
|
|
@@ -34024,15 +34012,15 @@ function bit_line_mode_typeof(o) { "@babel/helpers - typeof"; return bit_line_mo
|
|
|
34024
34012
|
function bit_line_mode_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
34025
34013
|
function bit_line_mode_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, bit_line_mode_toPropertyKey(descriptor.key), descriptor); } }
|
|
34026
34014
|
function bit_line_mode_createClass(Constructor, protoProps, staticProps) { if (protoProps) bit_line_mode_defineProperties(Constructor.prototype, protoProps); if (staticProps) bit_line_mode_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
34027
|
-
function bit_line_mode_toPropertyKey(
|
|
34028
|
-
function bit_line_mode_toPrimitive(
|
|
34029
|
-
function
|
|
34030
|
-
function bit_line_mode_setPrototypeOf(o, p) { bit_line_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return bit_line_mode_setPrototypeOf(o, p); }
|
|
34031
|
-
function bit_line_mode_createSuper(Derived) { var hasNativeReflectConstruct = bit_line_mode_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = bit_line_mode_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = bit_line_mode_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return bit_line_mode_possibleConstructorReturn(this, result); }; }
|
|
34015
|
+
function bit_line_mode_toPropertyKey(t) { var i = bit_line_mode_toPrimitive(t, "string"); return "symbol" == bit_line_mode_typeof(i) ? i : String(i); }
|
|
34016
|
+
function bit_line_mode_toPrimitive(t, r) { if ("object" != bit_line_mode_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != bit_line_mode_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
34017
|
+
function bit_line_mode_callSuper(t, o, e) { return o = bit_line_mode_getPrototypeOf(o), bit_line_mode_possibleConstructorReturn(t, bit_line_mode_isNativeReflectConstruct() ? Reflect.construct(o, e || [], bit_line_mode_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
34032
34018
|
function bit_line_mode_possibleConstructorReturn(self, call) { if (call && (bit_line_mode_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return bit_line_mode_assertThisInitialized(self); }
|
|
34033
|
-
function
|
|
34034
|
-
function bit_line_mode_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
34019
|
+
function bit_line_mode_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (bit_line_mode_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
34035
34020
|
function bit_line_mode_getPrototypeOf(o) { bit_line_mode_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return bit_line_mode_getPrototypeOf(o); }
|
|
34021
|
+
function bit_line_mode_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
34022
|
+
function bit_line_mode_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) bit_line_mode_setPrototypeOf(subClass, superClass); }
|
|
34023
|
+
function bit_line_mode_setPrototypeOf(o, p) { bit_line_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return bit_line_mode_setPrototypeOf(o, p); }
|
|
34036
34024
|
|
|
34037
34025
|
|
|
34038
34026
|
|
|
@@ -34047,11 +34035,10 @@ function bit_line_mode_getPrototypeOf(o) { bit_line_mode_getPrototypeOf = Object
|
|
|
34047
34035
|
|
|
34048
34036
|
var bit_line_mode_BitLineMode = /*#__PURE__*/function (_React$Component) {
|
|
34049
34037
|
bit_line_mode_inherits(BitLineMode, _React$Component);
|
|
34050
|
-
var _super = bit_line_mode_createSuper(BitLineMode);
|
|
34051
34038
|
function BitLineMode(props) {
|
|
34052
34039
|
var _this;
|
|
34053
34040
|
bit_line_mode_classCallCheck(this, BitLineMode);
|
|
34054
|
-
_this =
|
|
34041
|
+
_this = bit_line_mode_callSuper(this, BitLineMode, [props]);
|
|
34055
34042
|
lodash_bindall_default()(bit_line_mode_assertThisInitialized(_this), ['activateTool', 'deactivateTool']);
|
|
34056
34043
|
return _this;
|
|
34057
34044
|
}
|
|
@@ -34186,7 +34173,6 @@ var eye_dropper_initialState = {
|
|
|
34186
34173
|
// this will either be `onChangeFillColor` or `onChangeOutlineColor`
|
|
34187
34174
|
previousTool: null // the tool that was previously active before eye dropper
|
|
34188
34175
|
};
|
|
34189
|
-
|
|
34190
34176
|
var eye_dropper_reducer = function reducer(state, action) {
|
|
34191
34177
|
if (typeof state === 'undefined') state = eye_dropper_initialState;
|
|
34192
34178
|
switch (action.type) {
|
|
@@ -34266,8 +34252,8 @@ function scale_tool_arrayLikeToArray(arr, len) { if (len == null || len > arr.le
|
|
|
34266
34252
|
function scale_tool_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
34267
34253
|
function scale_tool_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, scale_tool_toPropertyKey(descriptor.key), descriptor); } }
|
|
34268
34254
|
function scale_tool_createClass(Constructor, protoProps, staticProps) { if (protoProps) scale_tool_defineProperties(Constructor.prototype, protoProps); if (staticProps) scale_tool_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
34269
|
-
function scale_tool_toPropertyKey(
|
|
34270
|
-
function scale_tool_toPrimitive(
|
|
34255
|
+
function scale_tool_toPropertyKey(t) { var i = scale_tool_toPrimitive(t, "string"); return "symbol" == scale_tool_typeof(i) ? i : String(i); }
|
|
34256
|
+
function scale_tool_toPrimitive(t, r) { if ("object" != scale_tool_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != scale_tool_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
34271
34257
|
|
|
34272
34258
|
|
|
34273
34259
|
|
|
@@ -34517,8 +34503,8 @@ function rotate_tool_arrayLikeToArray(arr, len) { if (len == null || len > arr.l
|
|
|
34517
34503
|
function rotate_tool_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
34518
34504
|
function rotate_tool_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, rotate_tool_toPropertyKey(descriptor.key), descriptor); } }
|
|
34519
34505
|
function rotate_tool_createClass(Constructor, protoProps, staticProps) { if (protoProps) rotate_tool_defineProperties(Constructor.prototype, protoProps); if (staticProps) rotate_tool_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
34520
|
-
function rotate_tool_toPropertyKey(
|
|
34521
|
-
function rotate_tool_toPrimitive(
|
|
34506
|
+
function rotate_tool_toPropertyKey(t) { var i = rotate_tool_toPrimitive(t, "string"); return "symbol" == rotate_tool_typeof(i) ? i : String(i); }
|
|
34507
|
+
function rotate_tool_toPrimitive(t, r) { if ("object" != rotate_tool_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != rotate_tool_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
34522
34508
|
|
|
34523
34509
|
|
|
34524
34510
|
/**
|
|
@@ -34597,8 +34583,8 @@ function move_tool_arrayLikeToArray(arr, len) { if (len == null || len > arr.len
|
|
|
34597
34583
|
function move_tool_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
34598
34584
|
function move_tool_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, move_tool_toPropertyKey(descriptor.key), descriptor); } }
|
|
34599
34585
|
function move_tool_createClass(Constructor, protoProps, staticProps) { if (protoProps) move_tool_defineProperties(Constructor.prototype, protoProps); if (staticProps) move_tool_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
34600
|
-
function move_tool_toPropertyKey(
|
|
34601
|
-
function move_tool_toPrimitive(
|
|
34586
|
+
function move_tool_toPropertyKey(t) { var i = move_tool_toPrimitive(t, "string"); return "symbol" == move_tool_typeof(i) ? i : String(i); }
|
|
34587
|
+
function move_tool_toPrimitive(t, r) { if ("object" != move_tool_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != move_tool_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
34602
34588
|
|
|
34603
34589
|
|
|
34604
34590
|
|
|
@@ -34848,8 +34834,8 @@ function bounding_box_tool_arrayLikeToArray(arr, len) { if (len == null || len >
|
|
|
34848
34834
|
function bounding_box_tool_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
34849
34835
|
function bounding_box_tool_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, bounding_box_tool_toPropertyKey(descriptor.key), descriptor); } }
|
|
34850
34836
|
function bounding_box_tool_createClass(Constructor, protoProps, staticProps) { if (protoProps) bounding_box_tool_defineProperties(Constructor.prototype, protoProps); if (staticProps) bounding_box_tool_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
34851
|
-
function bounding_box_tool_toPropertyKey(
|
|
34852
|
-
function bounding_box_tool_toPrimitive(
|
|
34837
|
+
function bounding_box_tool_toPropertyKey(t) { var i = bounding_box_tool_toPrimitive(t, "string"); return "symbol" == bounding_box_tool_typeof(i) ? i : String(i); }
|
|
34838
|
+
function bounding_box_tool_toPrimitive(t, r) { if ("object" != bounding_box_tool_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != bounding_box_tool_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
34853
34839
|
|
|
34854
34840
|
|
|
34855
34841
|
|
|
@@ -35220,8 +35206,8 @@ function nudge_tool_arrayLikeToArray(arr, len) { if (len == null || len > arr.le
|
|
|
35220
35206
|
function nudge_tool_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
35221
35207
|
function nudge_tool_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, nudge_tool_toPropertyKey(descriptor.key), descriptor); } }
|
|
35222
35208
|
function nudge_tool_createClass(Constructor, protoProps, staticProps) { if (protoProps) nudge_tool_defineProperties(Constructor.prototype, protoProps); if (staticProps) nudge_tool_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
35223
|
-
function nudge_tool_toPropertyKey(
|
|
35224
|
-
function nudge_tool_toPrimitive(
|
|
35209
|
+
function nudge_tool_toPropertyKey(t) { var i = nudge_tool_toPrimitive(t, "string"); return "symbol" == nudge_tool_typeof(i) ? i : String(i); }
|
|
35210
|
+
function nudge_tool_toPrimitive(t, r) { if ("object" != nudge_tool_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != nudge_tool_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
35225
35211
|
|
|
35226
35212
|
|
|
35227
35213
|
|
|
@@ -35324,15 +35310,15 @@ function oval_tool_typeof(o) { "@babel/helpers - typeof"; return oval_tool_typeo
|
|
|
35324
35310
|
function oval_tool_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
35325
35311
|
function oval_tool_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, oval_tool_toPropertyKey(descriptor.key), descriptor); } }
|
|
35326
35312
|
function oval_tool_createClass(Constructor, protoProps, staticProps) { if (protoProps) oval_tool_defineProperties(Constructor.prototype, protoProps); if (staticProps) oval_tool_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
35327
|
-
function oval_tool_toPropertyKey(
|
|
35328
|
-
function oval_tool_toPrimitive(
|
|
35329
|
-
function
|
|
35330
|
-
function oval_tool_setPrototypeOf(o, p) { oval_tool_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return oval_tool_setPrototypeOf(o, p); }
|
|
35331
|
-
function oval_tool_createSuper(Derived) { var hasNativeReflectConstruct = oval_tool_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = oval_tool_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = oval_tool_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return oval_tool_possibleConstructorReturn(this, result); }; }
|
|
35313
|
+
function oval_tool_toPropertyKey(t) { var i = oval_tool_toPrimitive(t, "string"); return "symbol" == oval_tool_typeof(i) ? i : String(i); }
|
|
35314
|
+
function oval_tool_toPrimitive(t, r) { if ("object" != oval_tool_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != oval_tool_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
35315
|
+
function oval_tool_callSuper(t, o, e) { return o = oval_tool_getPrototypeOf(o), oval_tool_possibleConstructorReturn(t, oval_tool_isNativeReflectConstruct() ? Reflect.construct(o, e || [], oval_tool_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
35332
35316
|
function oval_tool_possibleConstructorReturn(self, call) { if (call && (oval_tool_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return oval_tool_assertThisInitialized(self); }
|
|
35333
35317
|
function oval_tool_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35334
|
-
function oval_tool_isNativeReflectConstruct() {
|
|
35318
|
+
function oval_tool_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (oval_tool_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
35335
35319
|
function oval_tool_getPrototypeOf(o) { oval_tool_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return oval_tool_getPrototypeOf(o); }
|
|
35320
|
+
function oval_tool_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) oval_tool_setPrototypeOf(subClass, superClass); }
|
|
35321
|
+
function oval_tool_setPrototypeOf(o, p) { oval_tool_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return oval_tool_setPrototypeOf(o, p); }
|
|
35336
35322
|
|
|
35337
35323
|
|
|
35338
35324
|
|
|
@@ -35348,7 +35334,6 @@ function oval_tool_getPrototypeOf(o) { oval_tool_getPrototypeOf = Object.setProt
|
|
|
35348
35334
|
*/
|
|
35349
35335
|
var oval_tool_OvalTool = /*#__PURE__*/function (_paper$Tool) {
|
|
35350
35336
|
oval_tool_inherits(OvalTool, _paper$Tool);
|
|
35351
|
-
var _super = oval_tool_createSuper(OvalTool);
|
|
35352
35337
|
/**
|
|
35353
35338
|
* @param {function} setSelectedItems Callback to set the set of selected items in the Redux state
|
|
35354
35339
|
* @param {function} clearSelectedItems Callback to clear the set of selected items in the Redux state
|
|
@@ -35358,7 +35343,7 @@ var oval_tool_OvalTool = /*#__PURE__*/function (_paper$Tool) {
|
|
|
35358
35343
|
function OvalTool(setSelectedItems, clearSelectedItems, setCursor, onUpdateImage) {
|
|
35359
35344
|
var _this;
|
|
35360
35345
|
oval_tool_classCallCheck(this, OvalTool);
|
|
35361
|
-
_this =
|
|
35346
|
+
_this = oval_tool_callSuper(this, OvalTool);
|
|
35362
35347
|
_this.setSelectedItems = setSelectedItems;
|
|
35363
35348
|
_this.clearSelectedItems = clearSelectedItems;
|
|
35364
35349
|
_this.onUpdateImage = onUpdateImage;
|
|
@@ -35586,15 +35571,15 @@ function bit_oval_mode_typeof(o) { "@babel/helpers - typeof"; return bit_oval_mo
|
|
|
35586
35571
|
function bit_oval_mode_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
35587
35572
|
function bit_oval_mode_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, bit_oval_mode_toPropertyKey(descriptor.key), descriptor); } }
|
|
35588
35573
|
function bit_oval_mode_createClass(Constructor, protoProps, staticProps) { if (protoProps) bit_oval_mode_defineProperties(Constructor.prototype, protoProps); if (staticProps) bit_oval_mode_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
35589
|
-
function bit_oval_mode_toPropertyKey(
|
|
35590
|
-
function bit_oval_mode_toPrimitive(
|
|
35591
|
-
function
|
|
35592
|
-
function bit_oval_mode_setPrototypeOf(o, p) { bit_oval_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return bit_oval_mode_setPrototypeOf(o, p); }
|
|
35593
|
-
function bit_oval_mode_createSuper(Derived) { var hasNativeReflectConstruct = bit_oval_mode_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = bit_oval_mode_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = bit_oval_mode_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return bit_oval_mode_possibleConstructorReturn(this, result); }; }
|
|
35574
|
+
function bit_oval_mode_toPropertyKey(t) { var i = bit_oval_mode_toPrimitive(t, "string"); return "symbol" == bit_oval_mode_typeof(i) ? i : String(i); }
|
|
35575
|
+
function bit_oval_mode_toPrimitive(t, r) { if ("object" != bit_oval_mode_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != bit_oval_mode_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
35576
|
+
function bit_oval_mode_callSuper(t, o, e) { return o = bit_oval_mode_getPrototypeOf(o), bit_oval_mode_possibleConstructorReturn(t, bit_oval_mode_isNativeReflectConstruct() ? Reflect.construct(o, e || [], bit_oval_mode_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
35594
35577
|
function bit_oval_mode_possibleConstructorReturn(self, call) { if (call && (bit_oval_mode_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return bit_oval_mode_assertThisInitialized(self); }
|
|
35595
|
-
function
|
|
35596
|
-
function bit_oval_mode_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
35578
|
+
function bit_oval_mode_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (bit_oval_mode_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
35597
35579
|
function bit_oval_mode_getPrototypeOf(o) { bit_oval_mode_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return bit_oval_mode_getPrototypeOf(o); }
|
|
35580
|
+
function bit_oval_mode_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35581
|
+
function bit_oval_mode_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) bit_oval_mode_setPrototypeOf(subClass, superClass); }
|
|
35582
|
+
function bit_oval_mode_setPrototypeOf(o, p) { bit_oval_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return bit_oval_mode_setPrototypeOf(o, p); }
|
|
35598
35583
|
|
|
35599
35584
|
|
|
35600
35585
|
|
|
@@ -35612,11 +35597,10 @@ function bit_oval_mode_getPrototypeOf(o) { bit_oval_mode_getPrototypeOf = Object
|
|
|
35612
35597
|
|
|
35613
35598
|
var bit_oval_mode_BitOvalMode = /*#__PURE__*/function (_React$Component) {
|
|
35614
35599
|
bit_oval_mode_inherits(BitOvalMode, _React$Component);
|
|
35615
|
-
var _super = bit_oval_mode_createSuper(BitOvalMode);
|
|
35616
35600
|
function BitOvalMode(props) {
|
|
35617
35601
|
var _this;
|
|
35618
35602
|
bit_oval_mode_classCallCheck(this, BitOvalMode);
|
|
35619
|
-
_this =
|
|
35603
|
+
_this = bit_oval_mode_callSuper(this, BitOvalMode, [props]);
|
|
35620
35604
|
lodash_bindall_default()(bit_oval_mode_assertThisInitialized(_this), ['activateTool', 'deactivateTool']);
|
|
35621
35605
|
return _this;
|
|
35622
35606
|
}
|
|
@@ -35730,7 +35714,6 @@ var bit_oval_mode_mapDispatchToProps = function mapDispatchToProps(dispatch) {
|
|
|
35730
35714
|
setSelectedItems: function setSelectedItems() {
|
|
35731
35715
|
dispatch(selected_items_setSelectedItems(selection_getSelectedLeafItems(), true /* bitmapMode */));
|
|
35732
35716
|
},
|
|
35733
|
-
|
|
35734
35717
|
handleMouseDown: function handleMouseDown() {
|
|
35735
35718
|
dispatch(modes_changeMode(Modes.BIT_OVAL));
|
|
35736
35719
|
},
|
|
@@ -35745,15 +35728,15 @@ function rect_tool_typeof(o) { "@babel/helpers - typeof"; return rect_tool_typeo
|
|
|
35745
35728
|
function rect_tool_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
35746
35729
|
function rect_tool_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, rect_tool_toPropertyKey(descriptor.key), descriptor); } }
|
|
35747
35730
|
function rect_tool_createClass(Constructor, protoProps, staticProps) { if (protoProps) rect_tool_defineProperties(Constructor.prototype, protoProps); if (staticProps) rect_tool_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
35748
|
-
function rect_tool_toPropertyKey(
|
|
35749
|
-
function rect_tool_toPrimitive(
|
|
35750
|
-
function
|
|
35751
|
-
function rect_tool_setPrototypeOf(o, p) { rect_tool_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return rect_tool_setPrototypeOf(o, p); }
|
|
35752
|
-
function rect_tool_createSuper(Derived) { var hasNativeReflectConstruct = rect_tool_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = rect_tool_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = rect_tool_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return rect_tool_possibleConstructorReturn(this, result); }; }
|
|
35731
|
+
function rect_tool_toPropertyKey(t) { var i = rect_tool_toPrimitive(t, "string"); return "symbol" == rect_tool_typeof(i) ? i : String(i); }
|
|
35732
|
+
function rect_tool_toPrimitive(t, r) { if ("object" != rect_tool_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != rect_tool_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
35733
|
+
function rect_tool_callSuper(t, o, e) { return o = rect_tool_getPrototypeOf(o), rect_tool_possibleConstructorReturn(t, rect_tool_isNativeReflectConstruct() ? Reflect.construct(o, e || [], rect_tool_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
35753
35734
|
function rect_tool_possibleConstructorReturn(self, call) { if (call && (rect_tool_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return rect_tool_assertThisInitialized(self); }
|
|
35754
35735
|
function rect_tool_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35755
|
-
function rect_tool_isNativeReflectConstruct() {
|
|
35736
|
+
function rect_tool_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (rect_tool_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
35756
35737
|
function rect_tool_getPrototypeOf(o) { rect_tool_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return rect_tool_getPrototypeOf(o); }
|
|
35738
|
+
function rect_tool_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) rect_tool_setPrototypeOf(subClass, superClass); }
|
|
35739
|
+
function rect_tool_setPrototypeOf(o, p) { rect_tool_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return rect_tool_setPrototypeOf(o, p); }
|
|
35757
35740
|
|
|
35758
35741
|
|
|
35759
35742
|
|
|
@@ -35769,7 +35752,6 @@ function rect_tool_getPrototypeOf(o) { rect_tool_getPrototypeOf = Object.setProt
|
|
|
35769
35752
|
*/
|
|
35770
35753
|
var rect_tool_RectTool = /*#__PURE__*/function (_paper$Tool) {
|
|
35771
35754
|
rect_tool_inherits(RectTool, _paper$Tool);
|
|
35772
|
-
var _super = rect_tool_createSuper(RectTool);
|
|
35773
35755
|
/**
|
|
35774
35756
|
* @param {function} setSelectedItems Callback to set the set of selected items in the Redux state
|
|
35775
35757
|
* @param {function} clearSelectedItems Callback to clear the set of selected items in the Redux state
|
|
@@ -35779,7 +35761,7 @@ var rect_tool_RectTool = /*#__PURE__*/function (_paper$Tool) {
|
|
|
35779
35761
|
function RectTool(setSelectedItems, clearSelectedItems, setCursor, onUpdateImage) {
|
|
35780
35762
|
var _this;
|
|
35781
35763
|
rect_tool_classCallCheck(this, RectTool);
|
|
35782
|
-
_this =
|
|
35764
|
+
_this = rect_tool_callSuper(this, RectTool);
|
|
35783
35765
|
_this.setSelectedItems = setSelectedItems;
|
|
35784
35766
|
_this.clearSelectedItems = clearSelectedItems;
|
|
35785
35767
|
_this.onUpdateImage = onUpdateImage;
|
|
@@ -36001,15 +35983,15 @@ function bit_rect_mode_typeof(o) { "@babel/helpers - typeof"; return bit_rect_mo
|
|
|
36001
35983
|
function bit_rect_mode_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
36002
35984
|
function bit_rect_mode_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, bit_rect_mode_toPropertyKey(descriptor.key), descriptor); } }
|
|
36003
35985
|
function bit_rect_mode_createClass(Constructor, protoProps, staticProps) { if (protoProps) bit_rect_mode_defineProperties(Constructor.prototype, protoProps); if (staticProps) bit_rect_mode_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
36004
|
-
function bit_rect_mode_toPropertyKey(
|
|
36005
|
-
function bit_rect_mode_toPrimitive(
|
|
36006
|
-
function
|
|
36007
|
-
function bit_rect_mode_setPrototypeOf(o, p) { bit_rect_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return bit_rect_mode_setPrototypeOf(o, p); }
|
|
36008
|
-
function bit_rect_mode_createSuper(Derived) { var hasNativeReflectConstruct = bit_rect_mode_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = bit_rect_mode_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = bit_rect_mode_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return bit_rect_mode_possibleConstructorReturn(this, result); }; }
|
|
35986
|
+
function bit_rect_mode_toPropertyKey(t) { var i = bit_rect_mode_toPrimitive(t, "string"); return "symbol" == bit_rect_mode_typeof(i) ? i : String(i); }
|
|
35987
|
+
function bit_rect_mode_toPrimitive(t, r) { if ("object" != bit_rect_mode_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != bit_rect_mode_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
35988
|
+
function bit_rect_mode_callSuper(t, o, e) { return o = bit_rect_mode_getPrototypeOf(o), bit_rect_mode_possibleConstructorReturn(t, bit_rect_mode_isNativeReflectConstruct() ? Reflect.construct(o, e || [], bit_rect_mode_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
36009
35989
|
function bit_rect_mode_possibleConstructorReturn(self, call) { if (call && (bit_rect_mode_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return bit_rect_mode_assertThisInitialized(self); }
|
|
36010
|
-
function
|
|
36011
|
-
function bit_rect_mode_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
35990
|
+
function bit_rect_mode_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (bit_rect_mode_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
36012
35991
|
function bit_rect_mode_getPrototypeOf(o) { bit_rect_mode_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return bit_rect_mode_getPrototypeOf(o); }
|
|
35992
|
+
function bit_rect_mode_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35993
|
+
function bit_rect_mode_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) bit_rect_mode_setPrototypeOf(subClass, superClass); }
|
|
35994
|
+
function bit_rect_mode_setPrototypeOf(o, p) { bit_rect_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return bit_rect_mode_setPrototypeOf(o, p); }
|
|
36013
35995
|
|
|
36014
35996
|
|
|
36015
35997
|
|
|
@@ -36027,11 +36009,10 @@ function bit_rect_mode_getPrototypeOf(o) { bit_rect_mode_getPrototypeOf = Object
|
|
|
36027
36009
|
|
|
36028
36010
|
var bit_rect_mode_BitRectMode = /*#__PURE__*/function (_React$Component) {
|
|
36029
36011
|
bit_rect_mode_inherits(BitRectMode, _React$Component);
|
|
36030
|
-
var _super = bit_rect_mode_createSuper(BitRectMode);
|
|
36031
36012
|
function BitRectMode(props) {
|
|
36032
36013
|
var _this;
|
|
36033
36014
|
bit_rect_mode_classCallCheck(this, BitRectMode);
|
|
36034
|
-
_this =
|
|
36015
|
+
_this = bit_rect_mode_callSuper(this, BitRectMode, [props]);
|
|
36035
36016
|
lodash_bindall_default()(bit_rect_mode_assertThisInitialized(_this), ['activateTool', 'deactivateTool']);
|
|
36036
36017
|
return _this;
|
|
36037
36018
|
}
|
|
@@ -36145,7 +36126,6 @@ var bit_rect_mode_mapDispatchToProps = function mapDispatchToProps(dispatch) {
|
|
|
36145
36126
|
setSelectedItems: function setSelectedItems() {
|
|
36146
36127
|
dispatch(selected_items_setSelectedItems(selection_getSelectedLeafItems(), true /* bitmapMode */));
|
|
36147
36128
|
},
|
|
36148
|
-
|
|
36149
36129
|
handleMouseDown: function handleMouseDown() {
|
|
36150
36130
|
dispatch(modes_changeMode(Modes.BIT_RECT));
|
|
36151
36131
|
},
|
|
@@ -36214,15 +36194,15 @@ function fill_tool_typeof(o) { "@babel/helpers - typeof"; return fill_tool_typeo
|
|
|
36214
36194
|
function fill_tool_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
36215
36195
|
function fill_tool_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, fill_tool_toPropertyKey(descriptor.key), descriptor); } }
|
|
36216
36196
|
function fill_tool_createClass(Constructor, protoProps, staticProps) { if (protoProps) fill_tool_defineProperties(Constructor.prototype, protoProps); if (staticProps) fill_tool_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
36217
|
-
function fill_tool_toPropertyKey(
|
|
36218
|
-
function fill_tool_toPrimitive(
|
|
36219
|
-
function
|
|
36220
|
-
function fill_tool_setPrototypeOf(o, p) { fill_tool_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return fill_tool_setPrototypeOf(o, p); }
|
|
36221
|
-
function fill_tool_createSuper(Derived) { var hasNativeReflectConstruct = fill_tool_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = fill_tool_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = fill_tool_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return fill_tool_possibleConstructorReturn(this, result); }; }
|
|
36197
|
+
function fill_tool_toPropertyKey(t) { var i = fill_tool_toPrimitive(t, "string"); return "symbol" == fill_tool_typeof(i) ? i : String(i); }
|
|
36198
|
+
function fill_tool_toPrimitive(t, r) { if ("object" != fill_tool_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != fill_tool_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
36199
|
+
function fill_tool_callSuper(t, o, e) { return o = fill_tool_getPrototypeOf(o), fill_tool_possibleConstructorReturn(t, fill_tool_isNativeReflectConstruct() ? Reflect.construct(o, e || [], fill_tool_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
36222
36200
|
function fill_tool_possibleConstructorReturn(self, call) { if (call && (fill_tool_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return fill_tool_assertThisInitialized(self); }
|
|
36223
36201
|
function fill_tool_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
36224
|
-
function fill_tool_isNativeReflectConstruct() {
|
|
36202
|
+
function fill_tool_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (fill_tool_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
36225
36203
|
function fill_tool_getPrototypeOf(o) { fill_tool_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return fill_tool_getPrototypeOf(o); }
|
|
36204
|
+
function fill_tool_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) fill_tool_setPrototypeOf(subClass, superClass); }
|
|
36205
|
+
function fill_tool_setPrototypeOf(o, p) { fill_tool_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return fill_tool_setPrototypeOf(o, p); }
|
|
36226
36206
|
|
|
36227
36207
|
|
|
36228
36208
|
|
|
@@ -36234,14 +36214,13 @@ var TRANSPARENT = 'rgba(0,0,0,0)';
|
|
|
36234
36214
|
*/
|
|
36235
36215
|
var fill_tool_FillTool = /*#__PURE__*/function (_paper$Tool) {
|
|
36236
36216
|
fill_tool_inherits(FillTool, _paper$Tool);
|
|
36237
|
-
var _super = fill_tool_createSuper(FillTool);
|
|
36238
36217
|
/**
|
|
36239
36218
|
* @param {!function} onUpdateImage A callback to call when the image visibly changes
|
|
36240
36219
|
*/
|
|
36241
36220
|
function FillTool(onUpdateImage) {
|
|
36242
36221
|
var _this;
|
|
36243
36222
|
fill_tool_classCallCheck(this, FillTool);
|
|
36244
|
-
_this =
|
|
36223
|
+
_this = fill_tool_callSuper(this, FillTool);
|
|
36245
36224
|
_this.onUpdateImage = onUpdateImage;
|
|
36246
36225
|
|
|
36247
36226
|
// We have to set these functions instead of just declaring them because
|
|
@@ -36350,15 +36329,15 @@ function bit_fill_mode_typeof(o) { "@babel/helpers - typeof"; return bit_fill_mo
|
|
|
36350
36329
|
function bit_fill_mode_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
36351
36330
|
function bit_fill_mode_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, bit_fill_mode_toPropertyKey(descriptor.key), descriptor); } }
|
|
36352
36331
|
function bit_fill_mode_createClass(Constructor, protoProps, staticProps) { if (protoProps) bit_fill_mode_defineProperties(Constructor.prototype, protoProps); if (staticProps) bit_fill_mode_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
36353
|
-
function bit_fill_mode_toPropertyKey(
|
|
36354
|
-
function bit_fill_mode_toPrimitive(
|
|
36355
|
-
function
|
|
36356
|
-
function bit_fill_mode_setPrototypeOf(o, p) { bit_fill_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return bit_fill_mode_setPrototypeOf(o, p); }
|
|
36357
|
-
function bit_fill_mode_createSuper(Derived) { var hasNativeReflectConstruct = bit_fill_mode_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = bit_fill_mode_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = bit_fill_mode_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return bit_fill_mode_possibleConstructorReturn(this, result); }; }
|
|
36332
|
+
function bit_fill_mode_toPropertyKey(t) { var i = bit_fill_mode_toPrimitive(t, "string"); return "symbol" == bit_fill_mode_typeof(i) ? i : String(i); }
|
|
36333
|
+
function bit_fill_mode_toPrimitive(t, r) { if ("object" != bit_fill_mode_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != bit_fill_mode_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
36334
|
+
function bit_fill_mode_callSuper(t, o, e) { return o = bit_fill_mode_getPrototypeOf(o), bit_fill_mode_possibleConstructorReturn(t, bit_fill_mode_isNativeReflectConstruct() ? Reflect.construct(o, e || [], bit_fill_mode_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
36358
36335
|
function bit_fill_mode_possibleConstructorReturn(self, call) { if (call && (bit_fill_mode_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return bit_fill_mode_assertThisInitialized(self); }
|
|
36359
|
-
function
|
|
36360
|
-
function bit_fill_mode_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
36336
|
+
function bit_fill_mode_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (bit_fill_mode_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
36361
36337
|
function bit_fill_mode_getPrototypeOf(o) { bit_fill_mode_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return bit_fill_mode_getPrototypeOf(o); }
|
|
36338
|
+
function bit_fill_mode_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
36339
|
+
function bit_fill_mode_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) bit_fill_mode_setPrototypeOf(subClass, superClass); }
|
|
36340
|
+
function bit_fill_mode_setPrototypeOf(o, p) { bit_fill_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return bit_fill_mode_setPrototypeOf(o, p); }
|
|
36362
36341
|
|
|
36363
36342
|
|
|
36364
36343
|
|
|
@@ -36375,11 +36354,10 @@ function bit_fill_mode_getPrototypeOf(o) { bit_fill_mode_getPrototypeOf = Object
|
|
|
36375
36354
|
|
|
36376
36355
|
var bit_fill_mode_BitFillMode = /*#__PURE__*/function (_React$Component) {
|
|
36377
36356
|
bit_fill_mode_inherits(BitFillMode, _React$Component);
|
|
36378
|
-
var _super = bit_fill_mode_createSuper(BitFillMode);
|
|
36379
36357
|
function BitFillMode(props) {
|
|
36380
36358
|
var _this;
|
|
36381
36359
|
bit_fill_mode_classCallCheck(this, BitFillMode);
|
|
36382
|
-
_this =
|
|
36360
|
+
_this = bit_fill_mode_callSuper(this, BitFillMode, [props]);
|
|
36383
36361
|
lodash_bindall_default()(bit_fill_mode_assertThisInitialized(_this), ['activateTool', 'deactivateTool']);
|
|
36384
36362
|
return _this;
|
|
36385
36363
|
}
|
|
@@ -36541,15 +36519,15 @@ function bit_eraser_mode_typeof(o) { "@babel/helpers - typeof"; return bit_erase
|
|
|
36541
36519
|
function bit_eraser_mode_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
36542
36520
|
function bit_eraser_mode_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, bit_eraser_mode_toPropertyKey(descriptor.key), descriptor); } }
|
|
36543
36521
|
function bit_eraser_mode_createClass(Constructor, protoProps, staticProps) { if (protoProps) bit_eraser_mode_defineProperties(Constructor.prototype, protoProps); if (staticProps) bit_eraser_mode_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
36544
|
-
function bit_eraser_mode_toPropertyKey(
|
|
36545
|
-
function bit_eraser_mode_toPrimitive(
|
|
36546
|
-
function
|
|
36547
|
-
function bit_eraser_mode_setPrototypeOf(o, p) { bit_eraser_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return bit_eraser_mode_setPrototypeOf(o, p); }
|
|
36548
|
-
function bit_eraser_mode_createSuper(Derived) { var hasNativeReflectConstruct = bit_eraser_mode_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = bit_eraser_mode_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = bit_eraser_mode_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return bit_eraser_mode_possibleConstructorReturn(this, result); }; }
|
|
36522
|
+
function bit_eraser_mode_toPropertyKey(t) { var i = bit_eraser_mode_toPrimitive(t, "string"); return "symbol" == bit_eraser_mode_typeof(i) ? i : String(i); }
|
|
36523
|
+
function bit_eraser_mode_toPrimitive(t, r) { if ("object" != bit_eraser_mode_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != bit_eraser_mode_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
36524
|
+
function bit_eraser_mode_callSuper(t, o, e) { return o = bit_eraser_mode_getPrototypeOf(o), bit_eraser_mode_possibleConstructorReturn(t, bit_eraser_mode_isNativeReflectConstruct() ? Reflect.construct(o, e || [], bit_eraser_mode_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
36549
36525
|
function bit_eraser_mode_possibleConstructorReturn(self, call) { if (call && (bit_eraser_mode_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return bit_eraser_mode_assertThisInitialized(self); }
|
|
36550
|
-
function
|
|
36551
|
-
function bit_eraser_mode_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
36526
|
+
function bit_eraser_mode_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (bit_eraser_mode_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
36552
36527
|
function bit_eraser_mode_getPrototypeOf(o) { bit_eraser_mode_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return bit_eraser_mode_getPrototypeOf(o); }
|
|
36528
|
+
function bit_eraser_mode_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
36529
|
+
function bit_eraser_mode_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) bit_eraser_mode_setPrototypeOf(subClass, superClass); }
|
|
36530
|
+
function bit_eraser_mode_setPrototypeOf(o, p) { bit_eraser_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return bit_eraser_mode_setPrototypeOf(o, p); }
|
|
36553
36531
|
|
|
36554
36532
|
|
|
36555
36533
|
|
|
@@ -36562,11 +36540,10 @@ function bit_eraser_mode_getPrototypeOf(o) { bit_eraser_mode_getPrototypeOf = Ob
|
|
|
36562
36540
|
|
|
36563
36541
|
var bit_eraser_mode_BitEraserMode = /*#__PURE__*/function (_React$Component) {
|
|
36564
36542
|
bit_eraser_mode_inherits(BitEraserMode, _React$Component);
|
|
36565
|
-
var _super = bit_eraser_mode_createSuper(BitEraserMode);
|
|
36566
36543
|
function BitEraserMode(props) {
|
|
36567
36544
|
var _this;
|
|
36568
36545
|
bit_eraser_mode_classCallCheck(this, BitEraserMode);
|
|
36569
|
-
_this =
|
|
36546
|
+
_this = bit_eraser_mode_callSuper(this, BitEraserMode, [props]);
|
|
36570
36547
|
lodash_bindall_default()(bit_eraser_mode_assertThisInitialized(_this), ['activateTool', 'deactivateTool']);
|
|
36571
36548
|
return _this;
|
|
36572
36549
|
}
|
|
@@ -36606,7 +36583,6 @@ var bit_eraser_mode_BitEraserMode = /*#__PURE__*/function (_React$Component) {
|
|
|
36606
36583
|
value: function activateTool() {
|
|
36607
36584
|
selection_clearSelection(this.props.clearSelectedItems);
|
|
36608
36585
|
this.tool = new brush_tool(this.props.onUpdateImage, true /* isEraser */);
|
|
36609
|
-
|
|
36610
36586
|
this.tool.setBrushSize(this.props.bitEraserSize);
|
|
36611
36587
|
this.tool.activate();
|
|
36612
36588
|
}
|
|
@@ -36657,8 +36633,8 @@ function selection_box_tool_typeof(o) { "@babel/helpers - typeof"; return select
|
|
|
36657
36633
|
function selection_box_tool_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
36658
36634
|
function selection_box_tool_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, selection_box_tool_toPropertyKey(descriptor.key), descriptor); } }
|
|
36659
36635
|
function selection_box_tool_createClass(Constructor, protoProps, staticProps) { if (protoProps) selection_box_tool_defineProperties(Constructor.prototype, protoProps); if (staticProps) selection_box_tool_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
36660
|
-
function selection_box_tool_toPropertyKey(
|
|
36661
|
-
function selection_box_tool_toPrimitive(
|
|
36636
|
+
function selection_box_tool_toPropertyKey(t) { var i = selection_box_tool_toPrimitive(t, "string"); return "symbol" == selection_box_tool_typeof(i) ? i : String(i); }
|
|
36637
|
+
function selection_box_tool_toPrimitive(t, r) { if ("object" != selection_box_tool_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != selection_box_tool_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
36662
36638
|
|
|
36663
36639
|
|
|
36664
36640
|
|
|
@@ -36756,15 +36732,15 @@ function select_tool_typeof(o) { "@babel/helpers - typeof"; return select_tool_t
|
|
|
36756
36732
|
function select_tool_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
36757
36733
|
function select_tool_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, select_tool_toPropertyKey(descriptor.key), descriptor); } }
|
|
36758
36734
|
function select_tool_createClass(Constructor, protoProps, staticProps) { if (protoProps) select_tool_defineProperties(Constructor.prototype, protoProps); if (staticProps) select_tool_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
36759
|
-
function select_tool_toPropertyKey(
|
|
36760
|
-
function select_tool_toPrimitive(
|
|
36761
|
-
function
|
|
36762
|
-
function select_tool_setPrototypeOf(o, p) { select_tool_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return select_tool_setPrototypeOf(o, p); }
|
|
36763
|
-
function select_tool_createSuper(Derived) { var hasNativeReflectConstruct = select_tool_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = select_tool_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = select_tool_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return select_tool_possibleConstructorReturn(this, result); }; }
|
|
36735
|
+
function select_tool_toPropertyKey(t) { var i = select_tool_toPrimitive(t, "string"); return "symbol" == select_tool_typeof(i) ? i : String(i); }
|
|
36736
|
+
function select_tool_toPrimitive(t, r) { if ("object" != select_tool_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != select_tool_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
36737
|
+
function select_tool_callSuper(t, o, e) { return o = select_tool_getPrototypeOf(o), select_tool_possibleConstructorReturn(t, select_tool_isNativeReflectConstruct() ? Reflect.construct(o, e || [], select_tool_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
36764
36738
|
function select_tool_possibleConstructorReturn(self, call) { if (call && (select_tool_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return select_tool_assertThisInitialized(self); }
|
|
36765
36739
|
function select_tool_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
36766
|
-
function select_tool_isNativeReflectConstruct() {
|
|
36740
|
+
function select_tool_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (select_tool_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
36767
36741
|
function select_tool_getPrototypeOf(o) { select_tool_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return select_tool_getPrototypeOf(o); }
|
|
36742
|
+
function select_tool_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) select_tool_setPrototypeOf(subClass, superClass); }
|
|
36743
|
+
function select_tool_setPrototypeOf(o, p) { select_tool_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return select_tool_setPrototypeOf(o, p); }
|
|
36768
36744
|
|
|
36769
36745
|
|
|
36770
36746
|
|
|
@@ -36782,7 +36758,6 @@ function select_tool_getPrototypeOf(o) { select_tool_getPrototypeOf = Object.set
|
|
|
36782
36758
|
*/
|
|
36783
36759
|
var select_tool_SelectTool = /*#__PURE__*/function (_paper$Tool) {
|
|
36784
36760
|
select_tool_inherits(SelectTool, _paper$Tool);
|
|
36785
|
-
var _super = select_tool_createSuper(SelectTool);
|
|
36786
36761
|
/**
|
|
36787
36762
|
* @param {function} setSelectedItems Callback to set the set of selected items in the Redux state
|
|
36788
36763
|
* @param {function} clearSelectedItems Callback to clear the set of selected items in the Redux state
|
|
@@ -36792,7 +36767,7 @@ var select_tool_SelectTool = /*#__PURE__*/function (_paper$Tool) {
|
|
|
36792
36767
|
function SelectTool(setSelectedItems, clearSelectedItems, setCursor, onUpdateImage) {
|
|
36793
36768
|
var _this;
|
|
36794
36769
|
select_tool_classCallCheck(this, SelectTool);
|
|
36795
|
-
_this =
|
|
36770
|
+
_this = select_tool_callSuper(this, SelectTool);
|
|
36796
36771
|
_this.onUpdateImage = onUpdateImage;
|
|
36797
36772
|
_this.boundingBoxTool = new bounding_box_tool(Modes.BIT_SELECT, setSelectedItems, clearSelectedItems, setCursor, onUpdateImage);
|
|
36798
36773
|
var nudgeTool = new nudge_tool(Modes.BIT_SELECT, _this.boundingBoxTool, onUpdateImage);
|
|
@@ -36950,15 +36925,15 @@ function bit_select_mode_typeof(o) { "@babel/helpers - typeof"; return bit_selec
|
|
|
36950
36925
|
function bit_select_mode_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
36951
36926
|
function bit_select_mode_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, bit_select_mode_toPropertyKey(descriptor.key), descriptor); } }
|
|
36952
36927
|
function bit_select_mode_createClass(Constructor, protoProps, staticProps) { if (protoProps) bit_select_mode_defineProperties(Constructor.prototype, protoProps); if (staticProps) bit_select_mode_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
36953
|
-
function bit_select_mode_toPropertyKey(
|
|
36954
|
-
function bit_select_mode_toPrimitive(
|
|
36955
|
-
function
|
|
36956
|
-
function bit_select_mode_setPrototypeOf(o, p) { bit_select_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return bit_select_mode_setPrototypeOf(o, p); }
|
|
36957
|
-
function bit_select_mode_createSuper(Derived) { var hasNativeReflectConstruct = bit_select_mode_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = bit_select_mode_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = bit_select_mode_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return bit_select_mode_possibleConstructorReturn(this, result); }; }
|
|
36928
|
+
function bit_select_mode_toPropertyKey(t) { var i = bit_select_mode_toPrimitive(t, "string"); return "symbol" == bit_select_mode_typeof(i) ? i : String(i); }
|
|
36929
|
+
function bit_select_mode_toPrimitive(t, r) { if ("object" != bit_select_mode_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != bit_select_mode_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
36930
|
+
function bit_select_mode_callSuper(t, o, e) { return o = bit_select_mode_getPrototypeOf(o), bit_select_mode_possibleConstructorReturn(t, bit_select_mode_isNativeReflectConstruct() ? Reflect.construct(o, e || [], bit_select_mode_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
36958
36931
|
function bit_select_mode_possibleConstructorReturn(self, call) { if (call && (bit_select_mode_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return bit_select_mode_assertThisInitialized(self); }
|
|
36959
|
-
function
|
|
36960
|
-
function bit_select_mode_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
36932
|
+
function bit_select_mode_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (bit_select_mode_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
36961
36933
|
function bit_select_mode_getPrototypeOf(o) { bit_select_mode_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return bit_select_mode_getPrototypeOf(o); }
|
|
36934
|
+
function bit_select_mode_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
36935
|
+
function bit_select_mode_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) bit_select_mode_setPrototypeOf(subClass, superClass); }
|
|
36936
|
+
function bit_select_mode_setPrototypeOf(o, p) { bit_select_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return bit_select_mode_setPrototypeOf(o, p); }
|
|
36962
36937
|
|
|
36963
36938
|
|
|
36964
36939
|
|
|
@@ -36974,11 +36949,10 @@ function bit_select_mode_getPrototypeOf(o) { bit_select_mode_getPrototypeOf = Ob
|
|
|
36974
36949
|
|
|
36975
36950
|
var bit_select_mode_BitSelectMode = /*#__PURE__*/function (_React$Component) {
|
|
36976
36951
|
bit_select_mode_inherits(BitSelectMode, _React$Component);
|
|
36977
|
-
var _super = bit_select_mode_createSuper(BitSelectMode);
|
|
36978
36952
|
function BitSelectMode(props) {
|
|
36979
36953
|
var _this;
|
|
36980
36954
|
bit_select_mode_classCallCheck(this, BitSelectMode);
|
|
36981
|
-
_this =
|
|
36955
|
+
_this = bit_select_mode_callSuper(this, BitSelectMode, [props]);
|
|
36982
36956
|
lodash_bindall_default()(bit_select_mode_assertThisInitialized(_this), ['activateTool', 'deactivateTool']);
|
|
36983
36957
|
return _this;
|
|
36984
36958
|
}
|
|
@@ -37104,8 +37078,8 @@ function broad_brush_helper_arrayLikeToArray(arr, len) { if (len == null || len
|
|
|
37104
37078
|
function broad_brush_helper_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
37105
37079
|
function broad_brush_helper_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, broad_brush_helper_toPropertyKey(descriptor.key), descriptor); } }
|
|
37106
37080
|
function broad_brush_helper_createClass(Constructor, protoProps, staticProps) { if (protoProps) broad_brush_helper_defineProperties(Constructor.prototype, protoProps); if (staticProps) broad_brush_helper_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
37107
|
-
function broad_brush_helper_toPropertyKey(
|
|
37108
|
-
function broad_brush_helper_toPrimitive(
|
|
37081
|
+
function broad_brush_helper_toPropertyKey(t) { var i = broad_brush_helper_toPrimitive(t, "string"); return "symbol" == broad_brush_helper_typeof(i) ? i : String(i); }
|
|
37082
|
+
function broad_brush_helper_toPrimitive(t, r) { if ("object" != broad_brush_helper_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != broad_brush_helper_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
37109
37083
|
// Broadbrush based on http://paperjs.org/tutorials/interaction/working-with-mouse-vectors/
|
|
37110
37084
|
|
|
37111
37085
|
|
|
@@ -37366,8 +37340,8 @@ function segment_brush_helper_typeof(o) { "@babel/helpers - typeof"; return segm
|
|
|
37366
37340
|
function segment_brush_helper_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
37367
37341
|
function segment_brush_helper_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, segment_brush_helper_toPropertyKey(descriptor.key), descriptor); } }
|
|
37368
37342
|
function segment_brush_helper_createClass(Constructor, protoProps, staticProps) { if (protoProps) segment_brush_helper_defineProperties(Constructor.prototype, protoProps); if (staticProps) segment_brush_helper_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
37369
|
-
function segment_brush_helper_toPropertyKey(
|
|
37370
|
-
function segment_brush_helper_toPrimitive(
|
|
37343
|
+
function segment_brush_helper_toPropertyKey(t) { var i = segment_brush_helper_toPrimitive(t, "string"); return "symbol" == segment_brush_helper_typeof(i) ? i : String(i); }
|
|
37344
|
+
function segment_brush_helper_toPrimitive(t, r) { if ("object" != segment_brush_helper_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != segment_brush_helper_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
37371
37345
|
|
|
37372
37346
|
|
|
37373
37347
|
|
|
@@ -37475,8 +37449,8 @@ function blob_defineProperty(obj, key, value) { key = blob_toPropertyKey(key); i
|
|
|
37475
37449
|
function blob_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
37476
37450
|
function blob_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, blob_toPropertyKey(descriptor.key), descriptor); } }
|
|
37477
37451
|
function blob_createClass(Constructor, protoProps, staticProps) { if (protoProps) blob_defineProperties(Constructor.prototype, protoProps); if (staticProps) blob_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
37478
|
-
function blob_toPropertyKey(
|
|
37479
|
-
function blob_toPrimitive(
|
|
37452
|
+
function blob_toPropertyKey(t) { var i = blob_toPrimitive(t, "string"); return "symbol" == blob_typeof(i) ? i : String(i); }
|
|
37453
|
+
function blob_toPrimitive(t, r) { if ("object" != blob_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != blob_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
37480
37454
|
|
|
37481
37455
|
|
|
37482
37456
|
|
|
@@ -37660,7 +37634,6 @@ var blob_Blobbiness = /*#__PURE__*/function () {
|
|
|
37660
37634
|
return blob.isMergeable(lastPath, item) && item.parent instanceof paper_full_default.a.Layer; // don't merge with nested in group
|
|
37661
37635
|
}
|
|
37662
37636
|
});
|
|
37663
|
-
|
|
37664
37637
|
var mergedPath = lastPath;
|
|
37665
37638
|
var i;
|
|
37666
37639
|
// Move down z order to first overlapping item
|
|
@@ -37693,7 +37666,6 @@ var blob_Blobbiness = /*#__PURE__*/function () {
|
|
|
37693
37666
|
tempPath.insertAbove(mergedPath); // Rest of merges join z index of merged path
|
|
37694
37667
|
mergedPathIndex--; // Removed an item, so the merged path index decreases
|
|
37695
37668
|
}
|
|
37696
|
-
|
|
37697
37669
|
mergedPath.remove();
|
|
37698
37670
|
mergedPath = tempPath;
|
|
37699
37671
|
paths[i].remove();
|
|
@@ -37968,15 +37940,15 @@ function brush_mode_defineProperty(obj, key, value) { key = brush_mode_toPropert
|
|
|
37968
37940
|
function brush_mode_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
37969
37941
|
function brush_mode_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, brush_mode_toPropertyKey(descriptor.key), descriptor); } }
|
|
37970
37942
|
function brush_mode_createClass(Constructor, protoProps, staticProps) { if (protoProps) brush_mode_defineProperties(Constructor.prototype, protoProps); if (staticProps) brush_mode_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
37971
|
-
function brush_mode_toPropertyKey(
|
|
37972
|
-
function brush_mode_toPrimitive(
|
|
37973
|
-
function
|
|
37974
|
-
function brush_mode_setPrototypeOf(o, p) { brush_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return brush_mode_setPrototypeOf(o, p); }
|
|
37975
|
-
function brush_mode_createSuper(Derived) { var hasNativeReflectConstruct = brush_mode_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = brush_mode_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = brush_mode_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return brush_mode_possibleConstructorReturn(this, result); }; }
|
|
37943
|
+
function brush_mode_toPropertyKey(t) { var i = brush_mode_toPrimitive(t, "string"); return "symbol" == brush_mode_typeof(i) ? i : String(i); }
|
|
37944
|
+
function brush_mode_toPrimitive(t, r) { if ("object" != brush_mode_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != brush_mode_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
37945
|
+
function brush_mode_callSuper(t, o, e) { return o = brush_mode_getPrototypeOf(o), brush_mode_possibleConstructorReturn(t, brush_mode_isNativeReflectConstruct() ? Reflect.construct(o, e || [], brush_mode_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
37976
37946
|
function brush_mode_possibleConstructorReturn(self, call) { if (call && (brush_mode_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return brush_mode_assertThisInitialized(self); }
|
|
37977
|
-
function
|
|
37978
|
-
function brush_mode_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
37947
|
+
function brush_mode_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (brush_mode_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
37979
37948
|
function brush_mode_getPrototypeOf(o) { brush_mode_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return brush_mode_getPrototypeOf(o); }
|
|
37949
|
+
function brush_mode_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
37950
|
+
function brush_mode_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) brush_mode_setPrototypeOf(subClass, superClass); }
|
|
37951
|
+
function brush_mode_setPrototypeOf(o, p) { brush_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return brush_mode_setPrototypeOf(o, p); }
|
|
37980
37952
|
|
|
37981
37953
|
|
|
37982
37954
|
|
|
@@ -37992,11 +37964,10 @@ function brush_mode_getPrototypeOf(o) { brush_mode_getPrototypeOf = Object.setPr
|
|
|
37992
37964
|
|
|
37993
37965
|
var brush_mode_BrushMode = /*#__PURE__*/function (_React$Component) {
|
|
37994
37966
|
brush_mode_inherits(BrushMode, _React$Component);
|
|
37995
|
-
var _super = brush_mode_createSuper(BrushMode);
|
|
37996
37967
|
function BrushMode(props) {
|
|
37997
37968
|
var _this;
|
|
37998
37969
|
brush_mode_classCallCheck(this, BrushMode);
|
|
37999
|
-
_this =
|
|
37970
|
+
_this = brush_mode_callSuper(this, BrushMode, [props]);
|
|
38000
37971
|
lodash_bindall_default()(brush_mode_assertThisInitialized(_this), ['activateTool', 'deactivateTool']);
|
|
38001
37972
|
_this.blob = new blob_tools_blob(_this.props.onUpdateImage, _this.props.clearSelectedItems);
|
|
38002
37973
|
return _this;
|
|
@@ -38173,15 +38144,15 @@ function eraser_mode_defineProperty(obj, key, value) { key = eraser_mode_toPrope
|
|
|
38173
38144
|
function eraser_mode_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
38174
38145
|
function eraser_mode_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, eraser_mode_toPropertyKey(descriptor.key), descriptor); } }
|
|
38175
38146
|
function eraser_mode_createClass(Constructor, protoProps, staticProps) { if (protoProps) eraser_mode_defineProperties(Constructor.prototype, protoProps); if (staticProps) eraser_mode_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
38176
|
-
function eraser_mode_toPropertyKey(
|
|
38177
|
-
function eraser_mode_toPrimitive(
|
|
38178
|
-
function
|
|
38179
|
-
function eraser_mode_setPrototypeOf(o, p) { eraser_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return eraser_mode_setPrototypeOf(o, p); }
|
|
38180
|
-
function eraser_mode_createSuper(Derived) { var hasNativeReflectConstruct = eraser_mode_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = eraser_mode_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = eraser_mode_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return eraser_mode_possibleConstructorReturn(this, result); }; }
|
|
38147
|
+
function eraser_mode_toPropertyKey(t) { var i = eraser_mode_toPrimitive(t, "string"); return "symbol" == eraser_mode_typeof(i) ? i : String(i); }
|
|
38148
|
+
function eraser_mode_toPrimitive(t, r) { if ("object" != eraser_mode_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != eraser_mode_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
38149
|
+
function eraser_mode_callSuper(t, o, e) { return o = eraser_mode_getPrototypeOf(o), eraser_mode_possibleConstructorReturn(t, eraser_mode_isNativeReflectConstruct() ? Reflect.construct(o, e || [], eraser_mode_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
38181
38150
|
function eraser_mode_possibleConstructorReturn(self, call) { if (call && (eraser_mode_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return eraser_mode_assertThisInitialized(self); }
|
|
38182
|
-
function
|
|
38183
|
-
function eraser_mode_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
38151
|
+
function eraser_mode_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (eraser_mode_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
38184
38152
|
function eraser_mode_getPrototypeOf(o) { eraser_mode_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return eraser_mode_getPrototypeOf(o); }
|
|
38153
|
+
function eraser_mode_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
38154
|
+
function eraser_mode_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) eraser_mode_setPrototypeOf(subClass, superClass); }
|
|
38155
|
+
function eraser_mode_setPrototypeOf(o, p) { eraser_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return eraser_mode_setPrototypeOf(o, p); }
|
|
38185
38156
|
|
|
38186
38157
|
|
|
38187
38158
|
|
|
@@ -38194,11 +38165,10 @@ function eraser_mode_getPrototypeOf(o) { eraser_mode_getPrototypeOf = Object.set
|
|
|
38194
38165
|
|
|
38195
38166
|
var eraser_mode_EraserMode = /*#__PURE__*/function (_React$Component) {
|
|
38196
38167
|
eraser_mode_inherits(EraserMode, _React$Component);
|
|
38197
|
-
var _super = eraser_mode_createSuper(EraserMode);
|
|
38198
38168
|
function EraserMode(props) {
|
|
38199
38169
|
var _this;
|
|
38200
38170
|
eraser_mode_classCallCheck(this, EraserMode);
|
|
38201
|
-
_this =
|
|
38171
|
+
_this = eraser_mode_callSuper(this, EraserMode, [props]);
|
|
38202
38172
|
lodash_bindall_default()(eraser_mode_assertThisInitialized(_this), ['activateTool', 'deactivateTool']);
|
|
38203
38173
|
_this.blob = new blob_tools_blob(_this.props.onUpdateImage, _this.props.clearSelectedItems);
|
|
38204
38174
|
return _this;
|
|
@@ -38319,16 +38289,15 @@ var changeColorIndex = function changeColorIndex(index) {
|
|
|
38319
38289
|
};
|
|
38320
38290
|
|
|
38321
38291
|
// CONCATENATED MODULE: ./src/reducers/modals.js
|
|
38322
|
-
var _initialState;
|
|
38323
38292
|
function modals_typeof(o) { "@babel/helpers - typeof"; return modals_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, modals_typeof(o); }
|
|
38324
38293
|
function modals_defineProperty(obj, key, value) { key = modals_toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
38325
|
-
function modals_toPropertyKey(
|
|
38326
|
-
function modals_toPrimitive(
|
|
38294
|
+
function modals_toPropertyKey(t) { var i = modals_toPrimitive(t, "string"); return "symbol" == modals_typeof(i) ? i : String(i); }
|
|
38295
|
+
function modals_toPrimitive(t, r) { if ("object" != modals_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != modals_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
38327
38296
|
var OPEN_MODAL = 'scratch-paint/modals/OPEN_MODAL';
|
|
38328
38297
|
var CLOSE_MODAL = 'scratch-paint/modals/CLOSE_MODAL';
|
|
38329
38298
|
var MODAL_FILL_COLOR = 'fillColor';
|
|
38330
38299
|
var MODAL_STROKE_COLOR = 'strokeColor';
|
|
38331
|
-
var modals_initialState = (
|
|
38300
|
+
var modals_initialState = modals_defineProperty(modals_defineProperty({}, MODAL_FILL_COLOR, false), MODAL_STROKE_COLOR, false);
|
|
38332
38301
|
var modals_reducer = function reducer(state, action) {
|
|
38333
38302
|
if (typeof state === 'undefined') state = modals_initialState;
|
|
38334
38303
|
switch (action.type) {
|
|
@@ -38391,8 +38360,8 @@ var color_button_default = /*#__PURE__*/__webpack_require__.n(color_button);
|
|
|
38391
38360
|
// CONCATENATED MODULE: ./src/components/color-button/color-button.jsx
|
|
38392
38361
|
function color_button_typeof(o) { "@babel/helpers - typeof"; return color_button_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, color_button_typeof(o); }
|
|
38393
38362
|
function color_button_defineProperty(obj, key, value) { key = color_button_toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
38394
|
-
function color_button_toPropertyKey(
|
|
38395
|
-
function color_button_toPrimitive(
|
|
38363
|
+
function color_button_toPropertyKey(t) { var i = color_button_toPrimitive(t, "string"); return "symbol" == color_button_typeof(i) ? i : String(i); }
|
|
38364
|
+
function color_button_toPrimitive(t, r) { if ("object" != color_button_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != color_button_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
38396
38365
|
|
|
38397
38366
|
|
|
38398
38367
|
|
|
@@ -38461,15 +38430,15 @@ function slider_defineProperty(obj, key, value) { key = slider_toPropertyKey(key
|
|
|
38461
38430
|
function slider_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
38462
38431
|
function slider_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, slider_toPropertyKey(descriptor.key), descriptor); } }
|
|
38463
38432
|
function slider_createClass(Constructor, protoProps, staticProps) { if (protoProps) slider_defineProperties(Constructor.prototype, protoProps); if (staticProps) slider_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
38464
|
-
function slider_toPropertyKey(
|
|
38465
|
-
function slider_toPrimitive(
|
|
38466
|
-
function
|
|
38467
|
-
function slider_setPrototypeOf(o, p) { slider_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return slider_setPrototypeOf(o, p); }
|
|
38468
|
-
function slider_createSuper(Derived) { var hasNativeReflectConstruct = slider_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = slider_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = slider_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return slider_possibleConstructorReturn(this, result); }; }
|
|
38433
|
+
function slider_toPropertyKey(t) { var i = slider_toPrimitive(t, "string"); return "symbol" == slider_typeof(i) ? i : String(i); }
|
|
38434
|
+
function slider_toPrimitive(t, r) { if ("object" != slider_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != slider_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
38435
|
+
function slider_callSuper(t, o, e) { return o = slider_getPrototypeOf(o), slider_possibleConstructorReturn(t, slider_isNativeReflectConstruct() ? Reflect.construct(o, e || [], slider_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
38469
38436
|
function slider_possibleConstructorReturn(self, call) { if (call && (slider_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return slider_assertThisInitialized(self); }
|
|
38470
|
-
function
|
|
38471
|
-
function slider_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
38437
|
+
function slider_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (slider_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
38472
38438
|
function slider_getPrototypeOf(o) { slider_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return slider_getPrototypeOf(o); }
|
|
38439
|
+
function slider_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
38440
|
+
function slider_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) slider_setPrototypeOf(subClass, superClass); }
|
|
38441
|
+
function slider_setPrototypeOf(o, p) { slider_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return slider_setPrototypeOf(o, p); }
|
|
38473
38442
|
|
|
38474
38443
|
|
|
38475
38444
|
|
|
@@ -38480,11 +38449,10 @@ var CONTAINER_WIDTH = 150;
|
|
|
38480
38449
|
var HANDLE_WIDTH = 26;
|
|
38481
38450
|
var slider_SliderComponent = /*#__PURE__*/function (_React$Component) {
|
|
38482
38451
|
slider_inherits(SliderComponent, _React$Component);
|
|
38483
|
-
var _super = slider_createSuper(SliderComponent);
|
|
38484
38452
|
function SliderComponent(props) {
|
|
38485
38453
|
var _this;
|
|
38486
38454
|
slider_classCallCheck(this, SliderComponent);
|
|
38487
|
-
_this =
|
|
38455
|
+
_this = slider_callSuper(this, SliderComponent, [props]);
|
|
38488
38456
|
lodash_bindall_default()(slider_assertThisInitialized(_this), ['handleMouseDown', 'handleMouseUp', 'handleMouseMove', 'handleClickBackground', 'setBackground', 'setHandle']);
|
|
38489
38457
|
|
|
38490
38458
|
// Distance from the left edge of the slider handle to the mouse down/click event
|
|
@@ -38550,13 +38518,12 @@ var slider_SliderComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
38550
38518
|
}, {
|
|
38551
38519
|
key: "render",
|
|
38552
38520
|
value: function render() {
|
|
38553
|
-
var _classNames;
|
|
38554
38521
|
var halfHandleWidth = HANDLE_WIDTH / 2;
|
|
38555
38522
|
var pixelMin = halfHandleWidth;
|
|
38556
38523
|
var pixelMax = CONTAINER_WIDTH - halfHandleWidth;
|
|
38557
38524
|
var handleOffset = pixelMin + (pixelMax - pixelMin) * (this.props.value / 100) - halfHandleWidth;
|
|
38558
38525
|
return /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
38559
|
-
className: classnames_default()((
|
|
38526
|
+
className: classnames_default()(slider_defineProperty(slider_defineProperty({}, slider_default.a.container, true), slider_default.a.last, this.props.lastSlider)),
|
|
38560
38527
|
ref: this.setBackground,
|
|
38561
38528
|
style: {
|
|
38562
38529
|
backgroundImage: this.props.background
|
|
@@ -38669,15 +38636,15 @@ function color_picker_defineProperty(obj, key, value) { key = color_picker_toPro
|
|
|
38669
38636
|
function color_picker_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
38670
38637
|
function color_picker_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, color_picker_toPropertyKey(descriptor.key), descriptor); } }
|
|
38671
38638
|
function color_picker_createClass(Constructor, protoProps, staticProps) { if (protoProps) color_picker_defineProperties(Constructor.prototype, protoProps); if (staticProps) color_picker_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
38672
|
-
function color_picker_toPropertyKey(
|
|
38673
|
-
function color_picker_toPrimitive(
|
|
38674
|
-
function
|
|
38675
|
-
function color_picker_setPrototypeOf(o, p) { color_picker_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return color_picker_setPrototypeOf(o, p); }
|
|
38676
|
-
function color_picker_createSuper(Derived) { var hasNativeReflectConstruct = color_picker_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = color_picker_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = color_picker_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return color_picker_possibleConstructorReturn(this, result); }; }
|
|
38639
|
+
function color_picker_toPropertyKey(t) { var i = color_picker_toPrimitive(t, "string"); return "symbol" == color_picker_typeof(i) ? i : String(i); }
|
|
38640
|
+
function color_picker_toPrimitive(t, r) { if ("object" != color_picker_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != color_picker_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
38641
|
+
function color_picker_callSuper(t, o, e) { return o = color_picker_getPrototypeOf(o), color_picker_possibleConstructorReturn(t, color_picker_isNativeReflectConstruct() ? Reflect.construct(o, e || [], color_picker_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
38677
38642
|
function color_picker_possibleConstructorReturn(self, call) { if (call && (color_picker_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return color_picker_assertThisInitialized(self); }
|
|
38678
38643
|
function color_picker_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
38679
|
-
function color_picker_isNativeReflectConstruct() {
|
|
38644
|
+
function color_picker_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (color_picker_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
38680
38645
|
function color_picker_getPrototypeOf(o) { color_picker_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return color_picker_getPrototypeOf(o); }
|
|
38646
|
+
function color_picker_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) color_picker_setPrototypeOf(subClass, superClass); }
|
|
38647
|
+
function color_picker_setPrototypeOf(o, p) { color_picker_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return color_picker_setPrototypeOf(o, p); }
|
|
38681
38648
|
|
|
38682
38649
|
|
|
38683
38650
|
|
|
@@ -38711,10 +38678,9 @@ var color_picker_messages = Object(external_react_intl_["defineMessages"])({
|
|
|
38711
38678
|
});
|
|
38712
38679
|
var color_picker_ColorPickerComponent = /*#__PURE__*/function (_React$Component) {
|
|
38713
38680
|
color_picker_inherits(ColorPickerComponent, _React$Component);
|
|
38714
|
-
var _super = color_picker_createSuper(ColorPickerComponent);
|
|
38715
38681
|
function ColorPickerComponent() {
|
|
38716
38682
|
color_picker_classCallCheck(this, ColorPickerComponent);
|
|
38717
|
-
return
|
|
38683
|
+
return color_picker_callSuper(this, ColorPickerComponent, arguments);
|
|
38718
38684
|
}
|
|
38719
38685
|
color_picker_createClass(ColorPickerComponent, [{
|
|
38720
38686
|
key: "_makeBackground",
|
|
@@ -38751,7 +38717,6 @@ var color_picker_ColorPickerComponent = /*#__PURE__*/function (_React$Component)
|
|
|
38751
38717
|
}, {
|
|
38752
38718
|
key: "render",
|
|
38753
38719
|
value: function render() {
|
|
38754
|
-
var _classNames, _classNames2, _classNames3, _classNames4, _classNames5, _classNames6, _classNames7, _classNames8;
|
|
38755
38720
|
return /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
38756
38721
|
className: color_picker_default.a.colorPickerContainer,
|
|
38757
38722
|
dir: this.props.rtl ? 'rtl' : 'ltr'
|
|
@@ -38760,22 +38725,22 @@ var color_picker_ColorPickerComponent = /*#__PURE__*/function (_React$Component)
|
|
|
38760
38725
|
}, /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
38761
38726
|
className: color_picker_default.a.gradientPickerRow
|
|
38762
38727
|
}, /*#__PURE__*/external_react_default.a.createElement("img", {
|
|
38763
|
-
className: classnames_default()((
|
|
38728
|
+
className: classnames_default()(color_picker_defineProperty(color_picker_defineProperty({}, color_picker_default.a.inactiveGradient, this.props.gradientType !== gradient_types.SOLID), color_picker_default.a.clickable, true)),
|
|
38764
38729
|
draggable: false,
|
|
38765
38730
|
src: fill_solid_enabled_default.a,
|
|
38766
38731
|
onClick: this.props.onChangeGradientTypeSolid
|
|
38767
38732
|
}), /*#__PURE__*/external_react_default.a.createElement("img", {
|
|
38768
|
-
className: classnames_default()((
|
|
38733
|
+
className: classnames_default()(color_picker_defineProperty(color_picker_defineProperty({}, color_picker_default.a.inactiveGradient, this.props.gradientType !== gradient_types.HORIZONTAL), color_picker_default.a.clickable, true)),
|
|
38769
38734
|
draggable: false,
|
|
38770
38735
|
src: fill_horz_gradient_enabled_default.a,
|
|
38771
38736
|
onClick: this.props.onChangeGradientTypeHorizontal
|
|
38772
38737
|
}), /*#__PURE__*/external_react_default.a.createElement("img", {
|
|
38773
|
-
className: classnames_default()((
|
|
38738
|
+
className: classnames_default()(color_picker_defineProperty(color_picker_defineProperty({}, color_picker_default.a.inactiveGradient, this.props.gradientType !== gradient_types.VERTICAL), color_picker_default.a.clickable, true)),
|
|
38774
38739
|
draggable: false,
|
|
38775
38740
|
src: fill_vert_gradient_enabled_default.a,
|
|
38776
38741
|
onClick: this.props.onChangeGradientTypeVertical
|
|
38777
38742
|
}), /*#__PURE__*/external_react_default.a.createElement("img", {
|
|
38778
|
-
className: classnames_default()((
|
|
38743
|
+
className: classnames_default()(color_picker_defineProperty(color_picker_defineProperty({}, color_picker_default.a.inactiveGradient, this.props.gradientType !== gradient_types.RADIAL), color_picker_default.a.clickable, true)),
|
|
38779
38744
|
draggable: false,
|
|
38780
38745
|
src: fill_radial_enabled_default.a,
|
|
38781
38746
|
onClick: this.props.onChangeGradientTypeRadial
|
|
@@ -38786,7 +38751,7 @@ var color_picker_ColorPickerComponent = /*#__PURE__*/function (_React$Component)
|
|
|
38786
38751
|
}, /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
38787
38752
|
className: classnames_default()(color_picker_default.a.gradientPickerRow, color_picker_default.a.gradientSwatchesRow)
|
|
38788
38753
|
}, /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
38789
|
-
className: classnames_default()((
|
|
38754
|
+
className: classnames_default()(color_picker_defineProperty(color_picker_defineProperty(color_picker_defineProperty(color_picker_defineProperty({}, color_picker_default.a.clickable, true), color_picker_default.a.swatch, true), color_picker_default.a.largeSwatch, true), color_picker_default.a.activeSwatch, this.props.colorIndex === 0)),
|
|
38790
38755
|
style: {
|
|
38791
38756
|
backgroundColor: this.props.color === null || this.props.color === MIXED ? 'white' : this.props.color
|
|
38792
38757
|
},
|
|
@@ -38805,7 +38770,7 @@ var color_picker_ColorPickerComponent = /*#__PURE__*/function (_React$Component)
|
|
|
38805
38770
|
title: this.props.intl.formatMessage(color_picker_messages.swap),
|
|
38806
38771
|
onClick: this.props.onSwap
|
|
38807
38772
|
}), /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
38808
|
-
className: classnames_default()((
|
|
38773
|
+
className: classnames_default()(color_picker_defineProperty(color_picker_defineProperty(color_picker_defineProperty(color_picker_defineProperty({}, color_picker_default.a.clickable, true), color_picker_default.a.swatch, true), color_picker_default.a.largeSwatch, true), color_picker_default.a.activeSwatch, this.props.colorIndex === 1)),
|
|
38809
38774
|
style: {
|
|
38810
38775
|
backgroundColor: this.props.color2 === null || this.props.color2 === MIXED ? 'white' : this.props.color2
|
|
38811
38776
|
},
|
|
@@ -38875,7 +38840,7 @@ var color_picker_ColorPickerComponent = /*#__PURE__*/function (_React$Component)
|
|
|
38875
38840
|
}, /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
38876
38841
|
className: color_picker_default.a.swatches
|
|
38877
38842
|
}, this.props.mode === Modes.BIT_LINE || this.props.mode === Modes.BIT_RECT || this.props.mode === Modes.BIT_OVAL || this.props.mode === Modes.BIT_TEXT ? null : /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
38878
|
-
className: classnames_default()((
|
|
38843
|
+
className: classnames_default()(color_picker_defineProperty(color_picker_defineProperty(color_picker_defineProperty({}, color_picker_default.a.clickable, true), color_picker_default.a.swatch, true), color_picker_default.a.activeSwatch, this.props.colorIndex === 0 && this.props.color === null || this.props.colorIndex === 1 && this.props.color2 === null)),
|
|
38879
38844
|
onClick: this.props.onTransparent
|
|
38880
38845
|
}, /*#__PURE__*/external_react_default.a.createElement("img", {
|
|
38881
38846
|
className: color_picker_default.a.swatchIcon,
|
|
@@ -38884,7 +38849,7 @@ var color_picker_ColorPickerComponent = /*#__PURE__*/function (_React$Component)
|
|
|
38884
38849
|
}))), /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
38885
38850
|
className: color_picker_default.a.swatches
|
|
38886
38851
|
}, /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
38887
|
-
className: classnames_default()((
|
|
38852
|
+
className: classnames_default()(color_picker_defineProperty(color_picker_defineProperty(color_picker_defineProperty({}, color_picker_default.a.clickable, true), color_picker_default.a.swatch, true), color_picker_default.a.activeSwatch, this.props.isEyeDropping)),
|
|
38888
38853
|
onClick: this.props.onActivateEyeDropper
|
|
38889
38854
|
}, /*#__PURE__*/external_react_default.a.createElement("img", {
|
|
38890
38855
|
className: color_picker_default.a.swatchIcon,
|
|
@@ -38927,15 +38892,15 @@ function containers_color_picker_typeof(o) { "@babel/helpers - typeof"; return c
|
|
|
38927
38892
|
function containers_color_picker_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
38928
38893
|
function containers_color_picker_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, containers_color_picker_toPropertyKey(descriptor.key), descriptor); } }
|
|
38929
38894
|
function containers_color_picker_createClass(Constructor, protoProps, staticProps) { if (protoProps) containers_color_picker_defineProperties(Constructor.prototype, protoProps); if (staticProps) containers_color_picker_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
38930
|
-
function containers_color_picker_toPropertyKey(
|
|
38931
|
-
function containers_color_picker_toPrimitive(
|
|
38932
|
-
function
|
|
38933
|
-
function containers_color_picker_setPrototypeOf(o, p) { containers_color_picker_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return containers_color_picker_setPrototypeOf(o, p); }
|
|
38934
|
-
function containers_color_picker_createSuper(Derived) { var hasNativeReflectConstruct = containers_color_picker_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = containers_color_picker_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = containers_color_picker_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return containers_color_picker_possibleConstructorReturn(this, result); }; }
|
|
38895
|
+
function containers_color_picker_toPropertyKey(t) { var i = containers_color_picker_toPrimitive(t, "string"); return "symbol" == containers_color_picker_typeof(i) ? i : String(i); }
|
|
38896
|
+
function containers_color_picker_toPrimitive(t, r) { if ("object" != containers_color_picker_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != containers_color_picker_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
38897
|
+
function containers_color_picker_callSuper(t, o, e) { return o = containers_color_picker_getPrototypeOf(o), containers_color_picker_possibleConstructorReturn(t, containers_color_picker_isNativeReflectConstruct() ? Reflect.construct(o, e || [], containers_color_picker_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
38935
38898
|
function containers_color_picker_possibleConstructorReturn(self, call) { if (call && (containers_color_picker_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return containers_color_picker_assertThisInitialized(self); }
|
|
38936
|
-
function
|
|
38937
|
-
function containers_color_picker_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
38899
|
+
function containers_color_picker_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (containers_color_picker_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
38938
38900
|
function containers_color_picker_getPrototypeOf(o) { containers_color_picker_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return containers_color_picker_getPrototypeOf(o); }
|
|
38901
|
+
function containers_color_picker_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
38902
|
+
function containers_color_picker_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) containers_color_picker_setPrototypeOf(subClass, superClass); }
|
|
38903
|
+
function containers_color_picker_setPrototypeOf(o, p) { containers_color_picker_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return containers_color_picker_setPrototypeOf(o, p); }
|
|
38939
38904
|
|
|
38940
38905
|
|
|
38941
38906
|
|
|
@@ -38972,11 +38937,10 @@ var containers_color_picker_hsvToHex = function hsvToHex(h, s, v) {
|
|
|
38972
38937
|
// own changes until unmounted or color changes with props.isEyeDropping = true.
|
|
38973
38938
|
var color_picker_ColorPicker = /*#__PURE__*/function (_React$Component) {
|
|
38974
38939
|
containers_color_picker_inherits(ColorPicker, _React$Component);
|
|
38975
|
-
var _super = containers_color_picker_createSuper(ColorPicker);
|
|
38976
38940
|
function ColorPicker(props) {
|
|
38977
38941
|
var _this;
|
|
38978
38942
|
containers_color_picker_classCallCheck(this, ColorPicker);
|
|
38979
|
-
_this =
|
|
38943
|
+
_this = containers_color_picker_callSuper(this, ColorPicker, [props]);
|
|
38980
38944
|
lodash_bindall_default()(containers_color_picker_assertThisInitialized(_this), ['getHsv', 'handleChangeGradientTypeHorizontal', 'handleChangeGradientTypeRadial', 'handleChangeGradientTypeSolid', 'handleChangeGradientTypeVertical', 'handleHueChange', 'handleSaturationChange', 'handleBrightnessChange', 'handleTransparent', 'handleActivateEyeDropper']);
|
|
38981
38945
|
var color = props.colorIndex === 0 ? props.color : props.color2;
|
|
38982
38946
|
var hsv = _this.getHsv(color);
|
|
@@ -39156,8 +39120,8 @@ var input_group_default = /*#__PURE__*/__webpack_require__.n(input_group);
|
|
|
39156
39120
|
// CONCATENATED MODULE: ./src/components/input-group/input-group.jsx
|
|
39157
39121
|
function input_group_typeof(o) { "@babel/helpers - typeof"; return input_group_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, input_group_typeof(o); }
|
|
39158
39122
|
function input_group_defineProperty(obj, key, value) { key = input_group_toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
39159
|
-
function input_group_toPropertyKey(
|
|
39160
|
-
function input_group_toPrimitive(
|
|
39123
|
+
function input_group_toPropertyKey(t) { var i = input_group_toPrimitive(t, "string"); return "symbol" == input_group_typeof(i) ? i : String(i); }
|
|
39124
|
+
function input_group_toPrimitive(t, r) { if ("object" != input_group_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != input_group_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
39161
39125
|
|
|
39162
39126
|
|
|
39163
39127
|
|
|
@@ -39262,15 +39226,15 @@ function color_indicator_extends() { color_indicator_extends = Object.assign ? O
|
|
|
39262
39226
|
function color_indicator_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
39263
39227
|
function color_indicator_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, color_indicator_toPropertyKey(descriptor.key), descriptor); } }
|
|
39264
39228
|
function color_indicator_createClass(Constructor, protoProps, staticProps) { if (protoProps) color_indicator_defineProperties(Constructor.prototype, protoProps); if (staticProps) color_indicator_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
39265
|
-
function color_indicator_toPropertyKey(
|
|
39266
|
-
function color_indicator_toPrimitive(
|
|
39267
|
-
function
|
|
39268
|
-
function color_indicator_setPrototypeOf(o, p) { color_indicator_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return color_indicator_setPrototypeOf(o, p); }
|
|
39269
|
-
function color_indicator_createSuper(Derived) { var hasNativeReflectConstruct = color_indicator_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = color_indicator_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = color_indicator_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return color_indicator_possibleConstructorReturn(this, result); }; }
|
|
39229
|
+
function color_indicator_toPropertyKey(t) { var i = color_indicator_toPrimitive(t, "string"); return "symbol" == color_indicator_typeof(i) ? i : String(i); }
|
|
39230
|
+
function color_indicator_toPrimitive(t, r) { if ("object" != color_indicator_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != color_indicator_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
39231
|
+
function color_indicator_callSuper(t, o, e) { return o = color_indicator_getPrototypeOf(o), color_indicator_possibleConstructorReturn(t, color_indicator_isNativeReflectConstruct() ? Reflect.construct(o, e || [], color_indicator_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
39270
39232
|
function color_indicator_possibleConstructorReturn(self, call) { if (call && (color_indicator_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return color_indicator_assertThisInitialized(self); }
|
|
39271
|
-
function
|
|
39272
|
-
function color_indicator_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
39233
|
+
function color_indicator_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (color_indicator_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
39273
39234
|
function color_indicator_getPrototypeOf(o) { color_indicator_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return color_indicator_getPrototypeOf(o); }
|
|
39235
|
+
function color_indicator_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
39236
|
+
function color_indicator_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) color_indicator_setPrototypeOf(subClass, superClass); }
|
|
39237
|
+
function color_indicator_setPrototypeOf(o, p) { color_indicator_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return color_indicator_setPrototypeOf(o, p); }
|
|
39274
39238
|
|
|
39275
39239
|
|
|
39276
39240
|
|
|
@@ -39284,11 +39248,10 @@ function color_indicator_getPrototypeOf(o) { color_indicator_getPrototypeOf = Ob
|
|
|
39284
39248
|
var color_indicator_makeColorIndicator = function makeColorIndicator(label, isStroke) {
|
|
39285
39249
|
var ColorIndicator = /*#__PURE__*/function (_React$Component) {
|
|
39286
39250
|
color_indicator_inherits(ColorIndicator, _React$Component);
|
|
39287
|
-
var _super = color_indicator_createSuper(ColorIndicator);
|
|
39288
39251
|
function ColorIndicator(props) {
|
|
39289
39252
|
var _this;
|
|
39290
39253
|
color_indicator_classCallCheck(this, ColorIndicator);
|
|
39291
|
-
_this =
|
|
39254
|
+
_this = color_indicator_callSuper(this, ColorIndicator, [props]);
|
|
39292
39255
|
lodash_bindall_default()(color_indicator_assertThisInitialized(_this), ['handleChangeColor', 'handleChangeGradientType', 'handleCloseColor', 'handleSwap']);
|
|
39293
39256
|
|
|
39294
39257
|
// Flag to track whether an svg-update-worthy change has been made
|
|
@@ -39556,15 +39519,15 @@ function tools_fill_tool_typeof(o) { "@babel/helpers - typeof"; return tools_fil
|
|
|
39556
39519
|
function tools_fill_tool_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
39557
39520
|
function tools_fill_tool_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, tools_fill_tool_toPropertyKey(descriptor.key), descriptor); } }
|
|
39558
39521
|
function tools_fill_tool_createClass(Constructor, protoProps, staticProps) { if (protoProps) tools_fill_tool_defineProperties(Constructor.prototype, protoProps); if (staticProps) tools_fill_tool_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
39559
|
-
function tools_fill_tool_toPropertyKey(
|
|
39560
|
-
function tools_fill_tool_toPrimitive(
|
|
39561
|
-
function
|
|
39562
|
-
function tools_fill_tool_setPrototypeOf(o, p) { tools_fill_tool_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return tools_fill_tool_setPrototypeOf(o, p); }
|
|
39563
|
-
function tools_fill_tool_createSuper(Derived) { var hasNativeReflectConstruct = tools_fill_tool_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = tools_fill_tool_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = tools_fill_tool_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return tools_fill_tool_possibleConstructorReturn(this, result); }; }
|
|
39522
|
+
function tools_fill_tool_toPropertyKey(t) { var i = tools_fill_tool_toPrimitive(t, "string"); return "symbol" == tools_fill_tool_typeof(i) ? i : String(i); }
|
|
39523
|
+
function tools_fill_tool_toPrimitive(t, r) { if ("object" != tools_fill_tool_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != tools_fill_tool_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
39524
|
+
function tools_fill_tool_callSuper(t, o, e) { return o = tools_fill_tool_getPrototypeOf(o), tools_fill_tool_possibleConstructorReturn(t, tools_fill_tool_isNativeReflectConstruct() ? Reflect.construct(o, e || [], tools_fill_tool_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
39564
39525
|
function tools_fill_tool_possibleConstructorReturn(self, call) { if (call && (tools_fill_tool_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return tools_fill_tool_assertThisInitialized(self); }
|
|
39565
39526
|
function tools_fill_tool_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
39566
|
-
function tools_fill_tool_isNativeReflectConstruct() {
|
|
39527
|
+
function tools_fill_tool_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (tools_fill_tool_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
39567
39528
|
function tools_fill_tool_getPrototypeOf(o) { tools_fill_tool_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return tools_fill_tool_getPrototypeOf(o); }
|
|
39529
|
+
function tools_fill_tool_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) tools_fill_tool_setPrototypeOf(subClass, superClass); }
|
|
39530
|
+
function tools_fill_tool_setPrototypeOf(o, p) { tools_fill_tool_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return tools_fill_tool_setPrototypeOf(o, p); }
|
|
39568
39531
|
|
|
39569
39532
|
|
|
39570
39533
|
|
|
@@ -39572,7 +39535,6 @@ function tools_fill_tool_getPrototypeOf(o) { tools_fill_tool_getPrototypeOf = Ob
|
|
|
39572
39535
|
|
|
39573
39536
|
var tools_fill_tool_FillTool = /*#__PURE__*/function (_paper$Tool) {
|
|
39574
39537
|
tools_fill_tool_inherits(FillTool, _paper$Tool);
|
|
39575
|
-
var _super = tools_fill_tool_createSuper(FillTool);
|
|
39576
39538
|
/**
|
|
39577
39539
|
* @param {function} setHoveredItem Callback to set the hovered item
|
|
39578
39540
|
* @param {function} clearHoveredItem Callback to clear the hovered item
|
|
@@ -39581,7 +39543,7 @@ var tools_fill_tool_FillTool = /*#__PURE__*/function (_paper$Tool) {
|
|
|
39581
39543
|
function FillTool(setHoveredItem, clearHoveredItem, onUpdateImage) {
|
|
39582
39544
|
var _this;
|
|
39583
39545
|
tools_fill_tool_classCallCheck(this, FillTool);
|
|
39584
|
-
_this =
|
|
39546
|
+
_this = tools_fill_tool_callSuper(this, FillTool);
|
|
39585
39547
|
_this.setHoveredItem = setHoveredItem;
|
|
39586
39548
|
_this.clearHoveredItem = clearHoveredItem;
|
|
39587
39549
|
_this.onUpdateImage = onUpdateImage;
|
|
@@ -39862,15 +39824,15 @@ function fill_mode_typeof(o) { "@babel/helpers - typeof"; return fill_mode_typeo
|
|
|
39862
39824
|
function fill_mode_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
39863
39825
|
function fill_mode_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, fill_mode_toPropertyKey(descriptor.key), descriptor); } }
|
|
39864
39826
|
function fill_mode_createClass(Constructor, protoProps, staticProps) { if (protoProps) fill_mode_defineProperties(Constructor.prototype, protoProps); if (staticProps) fill_mode_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
39865
|
-
function fill_mode_toPropertyKey(
|
|
39866
|
-
function fill_mode_toPrimitive(
|
|
39867
|
-
function
|
|
39868
|
-
function fill_mode_setPrototypeOf(o, p) { fill_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return fill_mode_setPrototypeOf(o, p); }
|
|
39869
|
-
function fill_mode_createSuper(Derived) { var hasNativeReflectConstruct = fill_mode_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = fill_mode_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = fill_mode_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return fill_mode_possibleConstructorReturn(this, result); }; }
|
|
39827
|
+
function fill_mode_toPropertyKey(t) { var i = fill_mode_toPrimitive(t, "string"); return "symbol" == fill_mode_typeof(i) ? i : String(i); }
|
|
39828
|
+
function fill_mode_toPrimitive(t, r) { if ("object" != fill_mode_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != fill_mode_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
39829
|
+
function fill_mode_callSuper(t, o, e) { return o = fill_mode_getPrototypeOf(o), fill_mode_possibleConstructorReturn(t, fill_mode_isNativeReflectConstruct() ? Reflect.construct(o, e || [], fill_mode_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
39870
39830
|
function fill_mode_possibleConstructorReturn(self, call) { if (call && (fill_mode_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return fill_mode_assertThisInitialized(self); }
|
|
39871
|
-
function
|
|
39872
|
-
function fill_mode_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
39831
|
+
function fill_mode_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (fill_mode_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
39873
39832
|
function fill_mode_getPrototypeOf(o) { fill_mode_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return fill_mode_getPrototypeOf(o); }
|
|
39833
|
+
function fill_mode_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
39834
|
+
function fill_mode_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) fill_mode_setPrototypeOf(subClass, superClass); }
|
|
39835
|
+
function fill_mode_setPrototypeOf(o, p) { fill_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return fill_mode_setPrototypeOf(o, p); }
|
|
39874
39836
|
|
|
39875
39837
|
|
|
39876
39838
|
|
|
@@ -39888,11 +39850,10 @@ function fill_mode_getPrototypeOf(o) { fill_mode_getPrototypeOf = Object.setProt
|
|
|
39888
39850
|
|
|
39889
39851
|
var fill_mode_FillMode = /*#__PURE__*/function (_React$Component) {
|
|
39890
39852
|
fill_mode_inherits(FillMode, _React$Component);
|
|
39891
|
-
var _super = fill_mode_createSuper(FillMode);
|
|
39892
39853
|
function FillMode(props) {
|
|
39893
39854
|
var _this;
|
|
39894
39855
|
fill_mode_classCallCheck(this, FillMode);
|
|
39895
|
-
_this =
|
|
39856
|
+
_this = fill_mode_callSuper(this, FillMode, [props]);
|
|
39896
39857
|
lodash_bindall_default()(fill_mode_assertThisInitialized(_this), ['activateTool', 'deactivateTool']);
|
|
39897
39858
|
return _this;
|
|
39898
39859
|
}
|
|
@@ -40141,8 +40102,8 @@ function stroke_style_typeof(o) { "@babel/helpers - typeof"; return stroke_style
|
|
|
40141
40102
|
function stroke_style_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
40142
40103
|
function stroke_style_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? stroke_style_ownKeys(Object(t), !0).forEach(function (r) { stroke_style_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : stroke_style_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
40143
40104
|
function stroke_style_defineProperty(obj, key, value) { key = stroke_style_toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
40144
|
-
function stroke_style_toPropertyKey(
|
|
40145
|
-
function stroke_style_toPrimitive(
|
|
40105
|
+
function stroke_style_toPropertyKey(t) { var i = stroke_style_toPrimitive(t, "string"); return "symbol" == stroke_style_typeof(i) ? i : String(i); }
|
|
40106
|
+
function stroke_style_toPrimitive(t, r) { if ("object" != stroke_style_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != stroke_style_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
40146
40107
|
|
|
40147
40108
|
var CHANGE_STROKE_COLOR = 'scratch-paint/stroke-style/CHANGE_STROKE_COLOR';
|
|
40148
40109
|
var CHANGE_STROKE_COLOR_2 = 'scratch-paint/stroke-style/CHANGE_STROKE_COLOR_2';
|
|
@@ -40232,15 +40193,15 @@ function line_mode_typeof(o) { "@babel/helpers - typeof"; return line_mode_typeo
|
|
|
40232
40193
|
function line_mode_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
40233
40194
|
function line_mode_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, line_mode_toPropertyKey(descriptor.key), descriptor); } }
|
|
40234
40195
|
function line_mode_createClass(Constructor, protoProps, staticProps) { if (protoProps) line_mode_defineProperties(Constructor.prototype, protoProps); if (staticProps) line_mode_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
40235
|
-
function line_mode_toPropertyKey(
|
|
40236
|
-
function line_mode_toPrimitive(
|
|
40237
|
-
function
|
|
40238
|
-
function line_mode_setPrototypeOf(o, p) { line_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return line_mode_setPrototypeOf(o, p); }
|
|
40239
|
-
function line_mode_createSuper(Derived) { var hasNativeReflectConstruct = line_mode_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = line_mode_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = line_mode_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return line_mode_possibleConstructorReturn(this, result); }; }
|
|
40196
|
+
function line_mode_toPropertyKey(t) { var i = line_mode_toPrimitive(t, "string"); return "symbol" == line_mode_typeof(i) ? i : String(i); }
|
|
40197
|
+
function line_mode_toPrimitive(t, r) { if ("object" != line_mode_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != line_mode_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
40198
|
+
function line_mode_callSuper(t, o, e) { return o = line_mode_getPrototypeOf(o), line_mode_possibleConstructorReturn(t, line_mode_isNativeReflectConstruct() ? Reflect.construct(o, e || [], line_mode_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
40240
40199
|
function line_mode_possibleConstructorReturn(self, call) { if (call && (line_mode_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return line_mode_assertThisInitialized(self); }
|
|
40241
|
-
function
|
|
40242
|
-
function line_mode_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
40200
|
+
function line_mode_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (line_mode_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
40243
40201
|
function line_mode_getPrototypeOf(o) { line_mode_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return line_mode_getPrototypeOf(o); }
|
|
40202
|
+
function line_mode_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
40203
|
+
function line_mode_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) line_mode_setPrototypeOf(subClass, superClass); }
|
|
40204
|
+
function line_mode_setPrototypeOf(o, p) { line_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return line_mode_setPrototypeOf(o, p); }
|
|
40244
40205
|
|
|
40245
40206
|
|
|
40246
40207
|
|
|
@@ -40260,11 +40221,10 @@ function line_mode_getPrototypeOf(o) { line_mode_getPrototypeOf = Object.setProt
|
|
|
40260
40221
|
|
|
40261
40222
|
var line_mode_LineMode = /*#__PURE__*/function (_React$Component) {
|
|
40262
40223
|
line_mode_inherits(LineMode, _React$Component);
|
|
40263
|
-
var _super = line_mode_createSuper(LineMode);
|
|
40264
40224
|
function LineMode(props) {
|
|
40265
40225
|
var _this;
|
|
40266
40226
|
line_mode_classCallCheck(this, LineMode);
|
|
40267
|
-
_this =
|
|
40227
|
+
_this = line_mode_callSuper(this, LineMode, [props]);
|
|
40268
40228
|
lodash_bindall_default()(line_mode_assertThisInitialized(_this), ['activateTool', 'deactivateTool', 'drawHitPoint', 'onMouseDown', 'onMouseMove', 'onMouseDrag', 'onMouseUp']);
|
|
40269
40229
|
return _this;
|
|
40270
40230
|
}
|
|
@@ -40570,26 +40530,25 @@ function eye_dropper_typeof(o) { "@babel/helpers - typeof"; return eye_dropper_t
|
|
|
40570
40530
|
function eye_dropper_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
40571
40531
|
function eye_dropper_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, eye_dropper_toPropertyKey(descriptor.key), descriptor); } }
|
|
40572
40532
|
function eye_dropper_createClass(Constructor, protoProps, staticProps) { if (protoProps) eye_dropper_defineProperties(Constructor.prototype, protoProps); if (staticProps) eye_dropper_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
40573
|
-
function eye_dropper_toPropertyKey(
|
|
40574
|
-
function eye_dropper_toPrimitive(
|
|
40575
|
-
function
|
|
40576
|
-
function eye_dropper_setPrototypeOf(o, p) { eye_dropper_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return eye_dropper_setPrototypeOf(o, p); }
|
|
40577
|
-
function eye_dropper_createSuper(Derived) { var hasNativeReflectConstruct = eye_dropper_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = eye_dropper_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = eye_dropper_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return eye_dropper_possibleConstructorReturn(this, result); }; }
|
|
40533
|
+
function eye_dropper_toPropertyKey(t) { var i = eye_dropper_toPrimitive(t, "string"); return "symbol" == eye_dropper_typeof(i) ? i : String(i); }
|
|
40534
|
+
function eye_dropper_toPrimitive(t, r) { if ("object" != eye_dropper_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != eye_dropper_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
40535
|
+
function eye_dropper_callSuper(t, o, e) { return o = eye_dropper_getPrototypeOf(o), eye_dropper_possibleConstructorReturn(t, eye_dropper_isNativeReflectConstruct() ? Reflect.construct(o, e || [], eye_dropper_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
40578
40536
|
function eye_dropper_possibleConstructorReturn(self, call) { if (call && (eye_dropper_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return eye_dropper_assertThisInitialized(self); }
|
|
40579
40537
|
function eye_dropper_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
40580
|
-
function eye_dropper_isNativeReflectConstruct() {
|
|
40538
|
+
function eye_dropper_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (eye_dropper_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
40581
40539
|
function eye_dropper_getPrototypeOf(o) { eye_dropper_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return eye_dropper_getPrototypeOf(o); }
|
|
40540
|
+
function eye_dropper_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) eye_dropper_setPrototypeOf(subClass, superClass); }
|
|
40541
|
+
function eye_dropper_setPrototypeOf(o, p) { eye_dropper_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return eye_dropper_setPrototypeOf(o, p); }
|
|
40582
40542
|
|
|
40583
40543
|
|
|
40584
40544
|
var LOUPE_RADIUS = 20;
|
|
40585
40545
|
var ZOOM_SCALE = 3;
|
|
40586
40546
|
var eye_dropper_EyeDropperTool = /*#__PURE__*/function (_paper$Tool) {
|
|
40587
40547
|
eye_dropper_inherits(EyeDropperTool, _paper$Tool);
|
|
40588
|
-
var _super = eye_dropper_createSuper(EyeDropperTool);
|
|
40589
40548
|
function EyeDropperTool(canvas, width, height, pixelRatio, zoom, offsetX, offsetY, isBitmap) {
|
|
40590
40549
|
var _this;
|
|
40591
40550
|
eye_dropper_classCallCheck(this, EyeDropperTool);
|
|
40592
|
-
_this =
|
|
40551
|
+
_this = eye_dropper_callSuper(this, EyeDropperTool);
|
|
40593
40552
|
var layer = isBitmap ? getRaster().layer : paper_full_default.a.project.activeLayer;
|
|
40594
40553
|
var contentRaster3x = layer.rasterize(72 * ZOOM_SCALE * paper_full_default.a.view.zoom, false /* insert */, paper_full_default.a.view.bounds);
|
|
40595
40554
|
var backgroundRaster3x = getBackgroundGuideLayer().rasterize(72 * ZOOM_SCALE * paper_full_default.a.view.zoom, false /* insert */, paper_full_default.a.view.bounds);
|
|
@@ -40702,15 +40661,15 @@ function loupe_objectWithoutPropertiesLoose(source, excluded) { if (source == nu
|
|
|
40702
40661
|
function loupe_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
40703
40662
|
function loupe_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, loupe_toPropertyKey(descriptor.key), descriptor); } }
|
|
40704
40663
|
function loupe_createClass(Constructor, protoProps, staticProps) { if (protoProps) loupe_defineProperties(Constructor.prototype, protoProps); if (staticProps) loupe_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
40705
|
-
function loupe_toPropertyKey(
|
|
40706
|
-
function loupe_toPrimitive(
|
|
40707
|
-
function
|
|
40708
|
-
function loupe_setPrototypeOf(o, p) { loupe_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return loupe_setPrototypeOf(o, p); }
|
|
40709
|
-
function loupe_createSuper(Derived) { var hasNativeReflectConstruct = loupe_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = loupe_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = loupe_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return loupe_possibleConstructorReturn(this, result); }; }
|
|
40664
|
+
function loupe_toPropertyKey(t) { var i = loupe_toPrimitive(t, "string"); return "symbol" == loupe_typeof(i) ? i : String(i); }
|
|
40665
|
+
function loupe_toPrimitive(t, r) { if ("object" != loupe_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != loupe_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
40666
|
+
function loupe_callSuper(t, o, e) { return o = loupe_getPrototypeOf(o), loupe_possibleConstructorReturn(t, loupe_isNativeReflectConstruct() ? Reflect.construct(o, e || [], loupe_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
40710
40667
|
function loupe_possibleConstructorReturn(self, call) { if (call && (loupe_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return loupe_assertThisInitialized(self); }
|
|
40711
|
-
function
|
|
40712
|
-
function loupe_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
40668
|
+
function loupe_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (loupe_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
40713
40669
|
function loupe_getPrototypeOf(o) { loupe_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return loupe_getPrototypeOf(o); }
|
|
40670
|
+
function loupe_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
40671
|
+
function loupe_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) loupe_setPrototypeOf(subClass, superClass); }
|
|
40672
|
+
function loupe_setPrototypeOf(o, p) { loupe_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return loupe_setPrototypeOf(o, p); }
|
|
40714
40673
|
|
|
40715
40674
|
|
|
40716
40675
|
|
|
@@ -40719,11 +40678,10 @@ function loupe_getPrototypeOf(o) { loupe_getPrototypeOf = Object.setPrototypeOf
|
|
|
40719
40678
|
|
|
40720
40679
|
var loupe_LoupeComponent = /*#__PURE__*/function (_React$Component) {
|
|
40721
40680
|
loupe_inherits(LoupeComponent, _React$Component);
|
|
40722
|
-
var _super = loupe_createSuper(LoupeComponent);
|
|
40723
40681
|
function LoupeComponent(props) {
|
|
40724
40682
|
var _this;
|
|
40725
40683
|
loupe_classCallCheck(this, LoupeComponent);
|
|
40726
|
-
_this =
|
|
40684
|
+
_this = loupe_callSuper(this, LoupeComponent, [props]);
|
|
40727
40685
|
lodash_bindall_default()(loupe_assertThisInitialized(_this), ['setCanvas']);
|
|
40728
40686
|
return _this;
|
|
40729
40687
|
}
|
|
@@ -40762,7 +40720,6 @@ var loupe_LoupeComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
40762
40720
|
} else {
|
|
40763
40721
|
console.warn('Image data size mismatch drawing loupe'); // eslint-disable-line no-console
|
|
40764
40722
|
}
|
|
40765
|
-
|
|
40766
40723
|
tmpCtx.putImageData(imageData, 0, 0);
|
|
40767
40724
|
|
|
40768
40725
|
// Scale the loupe canvas and draw the zoomed image
|
|
@@ -40917,15 +40874,15 @@ function buffered_input_hoc_extends() { buffered_input_hoc_extends = Object.assi
|
|
|
40917
40874
|
function buffered_input_hoc_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
40918
40875
|
function buffered_input_hoc_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, buffered_input_hoc_toPropertyKey(descriptor.key), descriptor); } }
|
|
40919
40876
|
function buffered_input_hoc_createClass(Constructor, protoProps, staticProps) { if (protoProps) buffered_input_hoc_defineProperties(Constructor.prototype, protoProps); if (staticProps) buffered_input_hoc_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
40920
|
-
function buffered_input_hoc_toPropertyKey(
|
|
40921
|
-
function buffered_input_hoc_toPrimitive(
|
|
40922
|
-
function
|
|
40923
|
-
function buffered_input_hoc_setPrototypeOf(o, p) { buffered_input_hoc_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return buffered_input_hoc_setPrototypeOf(o, p); }
|
|
40924
|
-
function buffered_input_hoc_createSuper(Derived) { var hasNativeReflectConstruct = buffered_input_hoc_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = buffered_input_hoc_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = buffered_input_hoc_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return buffered_input_hoc_possibleConstructorReturn(this, result); }; }
|
|
40877
|
+
function buffered_input_hoc_toPropertyKey(t) { var i = buffered_input_hoc_toPrimitive(t, "string"); return "symbol" == buffered_input_hoc_typeof(i) ? i : String(i); }
|
|
40878
|
+
function buffered_input_hoc_toPrimitive(t, r) { if ("object" != buffered_input_hoc_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != buffered_input_hoc_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
40879
|
+
function buffered_input_hoc_callSuper(t, o, e) { return o = buffered_input_hoc_getPrototypeOf(o), buffered_input_hoc_possibleConstructorReturn(t, buffered_input_hoc_isNativeReflectConstruct() ? Reflect.construct(o, e || [], buffered_input_hoc_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
40925
40880
|
function buffered_input_hoc_possibleConstructorReturn(self, call) { if (call && (buffered_input_hoc_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return buffered_input_hoc_assertThisInitialized(self); }
|
|
40926
|
-
function
|
|
40927
|
-
function buffered_input_hoc_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
40881
|
+
function buffered_input_hoc_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (buffered_input_hoc_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
40928
40882
|
function buffered_input_hoc_getPrototypeOf(o) { buffered_input_hoc_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return buffered_input_hoc_getPrototypeOf(o); }
|
|
40883
|
+
function buffered_input_hoc_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
40884
|
+
function buffered_input_hoc_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) buffered_input_hoc_setPrototypeOf(subClass, superClass); }
|
|
40885
|
+
function buffered_input_hoc_setPrototypeOf(o, p) { buffered_input_hoc_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return buffered_input_hoc_setPrototypeOf(o, p); }
|
|
40929
40886
|
/* DO NOT EDIT
|
|
40930
40887
|
@todo This file is copied from GUI and should be pulled out into a shared library.
|
|
40931
40888
|
See https://github.com/LLK/scratch-paint/issues/13 */
|
|
@@ -40942,11 +40899,10 @@ See https://github.com/LLK/scratch-paint/issues/13 */
|
|
|
40942
40899
|
/* harmony default export */ var buffered_input_hoc = (function (Input) {
|
|
40943
40900
|
var BufferedInput = /*#__PURE__*/function (_React$Component) {
|
|
40944
40901
|
buffered_input_hoc_inherits(BufferedInput, _React$Component);
|
|
40945
|
-
var _super = buffered_input_hoc_createSuper(BufferedInput);
|
|
40946
40902
|
function BufferedInput(props) {
|
|
40947
40903
|
var _this;
|
|
40948
40904
|
buffered_input_hoc_classCallCheck(this, BufferedInput);
|
|
40949
|
-
_this =
|
|
40905
|
+
_this = buffered_input_hoc_callSuper(this, BufferedInput, [props]);
|
|
40950
40906
|
lodash_bindall_default()(buffered_input_hoc_assertThisInitialized(_this), ['handleChange', 'handleKeyPress', 'handleFlush']);
|
|
40951
40907
|
_this.state = {
|
|
40952
40908
|
value: null
|
|
@@ -41015,15 +40971,15 @@ function dropdown_defineProperty(obj, key, value) { key = dropdown_toPropertyKey
|
|
|
41015
40971
|
function dropdown_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
41016
40972
|
function dropdown_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, dropdown_toPropertyKey(descriptor.key), descriptor); } }
|
|
41017
40973
|
function dropdown_createClass(Constructor, protoProps, staticProps) { if (protoProps) dropdown_defineProperties(Constructor.prototype, protoProps); if (staticProps) dropdown_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
41018
|
-
function dropdown_toPropertyKey(
|
|
41019
|
-
function dropdown_toPrimitive(
|
|
41020
|
-
function
|
|
41021
|
-
function dropdown_setPrototypeOf(o, p) { dropdown_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return dropdown_setPrototypeOf(o, p); }
|
|
41022
|
-
function dropdown_createSuper(Derived) { var hasNativeReflectConstruct = dropdown_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = dropdown_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = dropdown_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return dropdown_possibleConstructorReturn(this, result); }; }
|
|
40974
|
+
function dropdown_toPropertyKey(t) { var i = dropdown_toPrimitive(t, "string"); return "symbol" == dropdown_typeof(i) ? i : String(i); }
|
|
40975
|
+
function dropdown_toPrimitive(t, r) { if ("object" != dropdown_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != dropdown_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
40976
|
+
function dropdown_callSuper(t, o, e) { return o = dropdown_getPrototypeOf(o), dropdown_possibleConstructorReturn(t, dropdown_isNativeReflectConstruct() ? Reflect.construct(o, e || [], dropdown_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
41023
40977
|
function dropdown_possibleConstructorReturn(self, call) { if (call && (dropdown_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return dropdown_assertThisInitialized(self); }
|
|
41024
|
-
function
|
|
41025
|
-
function dropdown_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
40978
|
+
function dropdown_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (dropdown_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
41026
40979
|
function dropdown_getPrototypeOf(o) { dropdown_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return dropdown_getPrototypeOf(o); }
|
|
40980
|
+
function dropdown_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
40981
|
+
function dropdown_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) dropdown_setPrototypeOf(subClass, superClass); }
|
|
40982
|
+
function dropdown_setPrototypeOf(o, p) { dropdown_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return dropdown_setPrototypeOf(o, p); }
|
|
41027
40983
|
|
|
41028
40984
|
|
|
41029
40985
|
|
|
@@ -41033,11 +40989,10 @@ function dropdown_getPrototypeOf(o) { dropdown_getPrototypeOf = Object.setProtot
|
|
|
41033
40989
|
|
|
41034
40990
|
var dropdown_Dropdown = /*#__PURE__*/function (_React$Component) {
|
|
41035
40991
|
dropdown_inherits(Dropdown, _React$Component);
|
|
41036
|
-
var _super = dropdown_createSuper(Dropdown);
|
|
41037
40992
|
function Dropdown(props) {
|
|
41038
40993
|
var _this;
|
|
41039
40994
|
dropdown_classCallCheck(this, Dropdown);
|
|
41040
|
-
_this =
|
|
40995
|
+
_this = dropdown_callSuper(this, Dropdown, [props]);
|
|
41041
40996
|
lodash_bindall_default()(dropdown_assertThisInitialized(_this), ['handleClosePopover', 'handleToggleOpenState', 'isOpen']);
|
|
41042
40997
|
_this.state = {
|
|
41043
40998
|
isOpen: false
|
|
@@ -41070,14 +41025,13 @@ var dropdown_Dropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
41070
41025
|
}, {
|
|
41071
41026
|
key: "render",
|
|
41072
41027
|
value: function render() {
|
|
41073
|
-
var _classNames;
|
|
41074
41028
|
return /*#__PURE__*/external_react_default.a.createElement(external_react_popover_default.a, dropdown_extends({
|
|
41075
41029
|
body: this.props.popoverContent,
|
|
41076
41030
|
isOpen: this.state.isOpen,
|
|
41077
41031
|
preferPlace: "below",
|
|
41078
41032
|
onOuterAction: this.props.onOuterAction ? this.props.onOuterAction : this.handleClosePopover
|
|
41079
41033
|
}, this.props), /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
41080
|
-
className: classnames_default()(dropdown_default.a.dropdown, this.props.className, (
|
|
41034
|
+
className: classnames_default()(dropdown_default.a.dropdown, this.props.className, dropdown_defineProperty(dropdown_defineProperty({}, dropdown_default.a.modOpen, this.state.isOpen), dropdown_default.a.modClosed, !this.state.isOpen)),
|
|
41081
41035
|
onClick: this.handleToggleOpenState
|
|
41082
41036
|
}, this.props.children, /*#__PURE__*/external_react_default.a.createElement("img", {
|
|
41083
41037
|
className: classnames_default()(dropdown_default.a.dropdownIcon, dropdown_defineProperty({}, dropdown_default.a.modCaretUp, this.state.isOpen)),
|
|
@@ -41105,8 +41059,8 @@ function input_typeof(o) { "@babel/helpers - typeof"; return input_typeof = "fun
|
|
|
41105
41059
|
var input_excluded = ["small", "range"];
|
|
41106
41060
|
function input_extends() { input_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return input_extends.apply(this, arguments); }
|
|
41107
41061
|
function input_defineProperty(obj, key, value) { key = input_toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
41108
|
-
function input_toPropertyKey(
|
|
41109
|
-
function input_toPrimitive(
|
|
41062
|
+
function input_toPropertyKey(t) { var i = input_toPrimitive(t, "string"); return "symbol" == input_typeof(i) ? i : String(i); }
|
|
41063
|
+
function input_toPrimitive(t, r) { if ("object" != input_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != input_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
41110
41064
|
function input_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = input_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
41111
41065
|
function input_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
41112
41066
|
/* DO NOT EDIT
|
|
@@ -41122,12 +41076,11 @@ Edited to add range prop
|
|
|
41122
41076
|
|
|
41123
41077
|
|
|
41124
41078
|
var input_Input = function Input(props) {
|
|
41125
|
-
var _classNames;
|
|
41126
41079
|
var small = props.small,
|
|
41127
41080
|
range = props.range,
|
|
41128
41081
|
componentProps = input_objectWithoutProperties(props, input_excluded);
|
|
41129
41082
|
return /*#__PURE__*/external_react_default.a.createElement("input", input_extends({}, componentProps, {
|
|
41130
|
-
className: classnames_default()(input_default.a.inputForm, props.className, (
|
|
41083
|
+
className: classnames_default()(input_default.a.inputForm, props.className, input_defineProperty(input_defineProperty({}, input_default.a.inputSmall, small && !range), input_default.a.inputSmallRange, small && range))
|
|
41131
41084
|
}));
|
|
41132
41085
|
};
|
|
41133
41086
|
input_Input.propTypes = {
|
|
@@ -41189,8 +41142,8 @@ var ungroup_default = /*#__PURE__*/__webpack_require__.n(ungroup);
|
|
|
41189
41142
|
// CONCATENATED MODULE: ./src/components/fixed-tools/fixed-tools.jsx
|
|
41190
41143
|
function fixed_tools_typeof(o) { "@babel/helpers - typeof"; return fixed_tools_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, fixed_tools_typeof(o); }
|
|
41191
41144
|
function fixed_tools_defineProperty(obj, key, value) { key = fixed_tools_toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
41192
|
-
function fixed_tools_toPropertyKey(
|
|
41193
|
-
function fixed_tools_toPrimitive(
|
|
41145
|
+
function fixed_tools_toPropertyKey(t) { var i = fixed_tools_toPrimitive(t, "string"); return "symbol" == fixed_tools_typeof(i) ? i : String(i); }
|
|
41146
|
+
function fixed_tools_toPrimitive(t, r) { if ("object" != fixed_tools_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != fixed_tools_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
41194
41147
|
|
|
41195
41148
|
|
|
41196
41149
|
|
|
@@ -41475,15 +41428,15 @@ function containers_fixed_tools_typeof(o) { "@babel/helpers - typeof"; return co
|
|
|
41475
41428
|
function fixed_tools_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
41476
41429
|
function fixed_tools_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, containers_fixed_tools_toPropertyKey(descriptor.key), descriptor); } }
|
|
41477
41430
|
function fixed_tools_createClass(Constructor, protoProps, staticProps) { if (protoProps) fixed_tools_defineProperties(Constructor.prototype, protoProps); if (staticProps) fixed_tools_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
41478
|
-
function containers_fixed_tools_toPropertyKey(
|
|
41479
|
-
function containers_fixed_tools_toPrimitive(
|
|
41480
|
-
function
|
|
41481
|
-
function fixed_tools_setPrototypeOf(o, p) { fixed_tools_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return fixed_tools_setPrototypeOf(o, p); }
|
|
41482
|
-
function fixed_tools_createSuper(Derived) { var hasNativeReflectConstruct = fixed_tools_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = fixed_tools_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = fixed_tools_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return fixed_tools_possibleConstructorReturn(this, result); }; }
|
|
41431
|
+
function containers_fixed_tools_toPropertyKey(t) { var i = containers_fixed_tools_toPrimitive(t, "string"); return "symbol" == containers_fixed_tools_typeof(i) ? i : String(i); }
|
|
41432
|
+
function containers_fixed_tools_toPrimitive(t, r) { if ("object" != containers_fixed_tools_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != containers_fixed_tools_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
41433
|
+
function fixed_tools_callSuper(t, o, e) { return o = fixed_tools_getPrototypeOf(o), fixed_tools_possibleConstructorReturn(t, fixed_tools_isNativeReflectConstruct() ? Reflect.construct(o, e || [], fixed_tools_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
41483
41434
|
function fixed_tools_possibleConstructorReturn(self, call) { if (call && (containers_fixed_tools_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return fixed_tools_assertThisInitialized(self); }
|
|
41484
|
-
function
|
|
41485
|
-
function fixed_tools_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
41435
|
+
function fixed_tools_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (fixed_tools_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
41486
41436
|
function fixed_tools_getPrototypeOf(o) { fixed_tools_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return fixed_tools_getPrototypeOf(o); }
|
|
41437
|
+
function fixed_tools_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
41438
|
+
function fixed_tools_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) fixed_tools_setPrototypeOf(subClass, superClass); }
|
|
41439
|
+
function fixed_tools_setPrototypeOf(o, p) { fixed_tools_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return fixed_tools_setPrototypeOf(o, p); }
|
|
41487
41440
|
|
|
41488
41441
|
|
|
41489
41442
|
|
|
@@ -41501,11 +41454,10 @@ function fixed_tools_getPrototypeOf(o) { fixed_tools_getPrototypeOf = Object.set
|
|
|
41501
41454
|
|
|
41502
41455
|
var fixed_tools_FixedTools = /*#__PURE__*/function (_React$Component) {
|
|
41503
41456
|
fixed_tools_inherits(FixedTools, _React$Component);
|
|
41504
|
-
var _super = fixed_tools_createSuper(FixedTools);
|
|
41505
41457
|
function FixedTools(props) {
|
|
41506
41458
|
var _this;
|
|
41507
41459
|
fixed_tools_classCallCheck(this, FixedTools);
|
|
41508
|
-
_this =
|
|
41460
|
+
_this = fixed_tools_callSuper(this, FixedTools, [props]);
|
|
41509
41461
|
lodash_bindall_default()(fixed_tools_assertThisInitialized(_this), ['handleSendBackward', 'handleSendForward', 'handleSendToBack', 'handleSendToFront', 'handleSetSelectedItems', 'handleGroup', 'handleUngroup']);
|
|
41510
41462
|
return _this;
|
|
41511
41463
|
}
|
|
@@ -41633,15 +41585,15 @@ function copy_paste_hoc_arrayLikeToArray(arr, len) { if (len == null || len > ar
|
|
|
41633
41585
|
function copy_paste_hoc_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
41634
41586
|
function copy_paste_hoc_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, copy_paste_hoc_toPropertyKey(descriptor.key), descriptor); } }
|
|
41635
41587
|
function copy_paste_hoc_createClass(Constructor, protoProps, staticProps) { if (protoProps) copy_paste_hoc_defineProperties(Constructor.prototype, protoProps); if (staticProps) copy_paste_hoc_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
41636
|
-
function copy_paste_hoc_toPropertyKey(
|
|
41637
|
-
function copy_paste_hoc_toPrimitive(
|
|
41638
|
-
function
|
|
41639
|
-
function copy_paste_hoc_setPrototypeOf(o, p) { copy_paste_hoc_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return copy_paste_hoc_setPrototypeOf(o, p); }
|
|
41640
|
-
function copy_paste_hoc_createSuper(Derived) { var hasNativeReflectConstruct = copy_paste_hoc_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = copy_paste_hoc_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = copy_paste_hoc_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return copy_paste_hoc_possibleConstructorReturn(this, result); }; }
|
|
41588
|
+
function copy_paste_hoc_toPropertyKey(t) { var i = copy_paste_hoc_toPrimitive(t, "string"); return "symbol" == copy_paste_hoc_typeof(i) ? i : String(i); }
|
|
41589
|
+
function copy_paste_hoc_toPrimitive(t, r) { if ("object" != copy_paste_hoc_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != copy_paste_hoc_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
41590
|
+
function copy_paste_hoc_callSuper(t, o, e) { return o = copy_paste_hoc_getPrototypeOf(o), copy_paste_hoc_possibleConstructorReturn(t, copy_paste_hoc_isNativeReflectConstruct() ? Reflect.construct(o, e || [], copy_paste_hoc_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
41641
41591
|
function copy_paste_hoc_possibleConstructorReturn(self, call) { if (call && (copy_paste_hoc_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return copy_paste_hoc_assertThisInitialized(self); }
|
|
41642
|
-
function
|
|
41643
|
-
function copy_paste_hoc_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
41592
|
+
function copy_paste_hoc_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (copy_paste_hoc_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
41644
41593
|
function copy_paste_hoc_getPrototypeOf(o) { copy_paste_hoc_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return copy_paste_hoc_getPrototypeOf(o); }
|
|
41594
|
+
function copy_paste_hoc_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
41595
|
+
function copy_paste_hoc_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) copy_paste_hoc_setPrototypeOf(subClass, superClass); }
|
|
41596
|
+
function copy_paste_hoc_setPrototypeOf(o, p) { copy_paste_hoc_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return copy_paste_hoc_setPrototypeOf(o, p); }
|
|
41645
41597
|
|
|
41646
41598
|
|
|
41647
41599
|
|
|
@@ -41657,11 +41609,10 @@ function copy_paste_hoc_getPrototypeOf(o) { copy_paste_hoc_getPrototypeOf = Obje
|
|
|
41657
41609
|
var copy_paste_hoc_CopyPasteHOC = function CopyPasteHOC(WrappedComponent) {
|
|
41658
41610
|
var CopyPasteWrapper = /*#__PURE__*/function (_React$Component) {
|
|
41659
41611
|
copy_paste_hoc_inherits(CopyPasteWrapper, _React$Component);
|
|
41660
|
-
var _super = copy_paste_hoc_createSuper(CopyPasteWrapper);
|
|
41661
41612
|
function CopyPasteWrapper(props) {
|
|
41662
41613
|
var _this;
|
|
41663
41614
|
copy_paste_hoc_classCallCheck(this, CopyPasteWrapper);
|
|
41664
|
-
_this =
|
|
41615
|
+
_this = copy_paste_hoc_callSuper(this, CopyPasteWrapper, [props]);
|
|
41665
41616
|
lodash_bindall_default()(copy_paste_hoc_assertThisInitialized(_this), ['handleCopy', 'handlePaste']);
|
|
41666
41617
|
return _this;
|
|
41667
41618
|
}
|
|
@@ -42063,15 +42014,15 @@ function font_dropdown_arrayLikeToArray(arr, len) { if (len == null || len > arr
|
|
|
42063
42014
|
function font_dropdown_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
42064
42015
|
function font_dropdown_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, font_dropdown_toPropertyKey(descriptor.key), descriptor); } }
|
|
42065
42016
|
function font_dropdown_createClass(Constructor, protoProps, staticProps) { if (protoProps) font_dropdown_defineProperties(Constructor.prototype, protoProps); if (staticProps) font_dropdown_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
42066
|
-
function font_dropdown_toPropertyKey(
|
|
42067
|
-
function font_dropdown_toPrimitive(
|
|
42068
|
-
function
|
|
42069
|
-
function font_dropdown_setPrototypeOf(o, p) { font_dropdown_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return font_dropdown_setPrototypeOf(o, p); }
|
|
42070
|
-
function font_dropdown_createSuper(Derived) { var hasNativeReflectConstruct = font_dropdown_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = font_dropdown_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = font_dropdown_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return font_dropdown_possibleConstructorReturn(this, result); }; }
|
|
42017
|
+
function font_dropdown_toPropertyKey(t) { var i = font_dropdown_toPrimitive(t, "string"); return "symbol" == font_dropdown_typeof(i) ? i : String(i); }
|
|
42018
|
+
function font_dropdown_toPrimitive(t, r) { if ("object" != font_dropdown_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != font_dropdown_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
42019
|
+
function font_dropdown_callSuper(t, o, e) { return o = font_dropdown_getPrototypeOf(o), font_dropdown_possibleConstructorReturn(t, font_dropdown_isNativeReflectConstruct() ? Reflect.construct(o, e || [], font_dropdown_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
42071
42020
|
function font_dropdown_possibleConstructorReturn(self, call) { if (call && (font_dropdown_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return font_dropdown_assertThisInitialized(self); }
|
|
42072
|
-
function
|
|
42073
|
-
function font_dropdown_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
42021
|
+
function font_dropdown_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (font_dropdown_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
42074
42022
|
function font_dropdown_getPrototypeOf(o) { font_dropdown_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return font_dropdown_getPrototypeOf(o); }
|
|
42023
|
+
function font_dropdown_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
42024
|
+
function font_dropdown_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) font_dropdown_setPrototypeOf(subClass, superClass); }
|
|
42025
|
+
function font_dropdown_setPrototypeOf(o, p) { font_dropdown_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return font_dropdown_setPrototypeOf(o, p); }
|
|
42075
42026
|
|
|
42076
42027
|
|
|
42077
42028
|
|
|
@@ -42084,11 +42035,10 @@ function font_dropdown_getPrototypeOf(o) { font_dropdown_getPrototypeOf = Object
|
|
|
42084
42035
|
|
|
42085
42036
|
var font_dropdown_FontDropdown = /*#__PURE__*/function (_React$Component) {
|
|
42086
42037
|
font_dropdown_inherits(FontDropdown, _React$Component);
|
|
42087
|
-
var _super = font_dropdown_createSuper(FontDropdown);
|
|
42088
42038
|
function FontDropdown(props) {
|
|
42089
42039
|
var _this;
|
|
42090
42040
|
font_dropdown_classCallCheck(this, FontDropdown);
|
|
42091
|
-
_this =
|
|
42041
|
+
_this = font_dropdown_callSuper(this, FontDropdown, [props]);
|
|
42092
42042
|
lodash_bindall_default()(font_dropdown_assertThisInitialized(_this), ['getFontStyle', 'getFontName', 'handleChangeFontSerif', 'handleChangeFontSansSerif', 'handleChangeFontHandwriting', 'handleChangeFontMarker', 'handleChangeFontCurly', 'handleChangeFontPixel', 'handleChangeFontChinese', 'handleChangeFontJapanese', 'handleChangeFontKorean', 'handleOpenDropdown', 'handleClickOutsideDropdown', 'setDropdown', 'handleChoose']);
|
|
42093
42043
|
return _this;
|
|
42094
42044
|
}
|
|
@@ -42288,15 +42238,15 @@ function live_input_hoc_extends() { live_input_hoc_extends = Object.assign ? Obj
|
|
|
42288
42238
|
function live_input_hoc_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
42289
42239
|
function live_input_hoc_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, live_input_hoc_toPropertyKey(descriptor.key), descriptor); } }
|
|
42290
42240
|
function live_input_hoc_createClass(Constructor, protoProps, staticProps) { if (protoProps) live_input_hoc_defineProperties(Constructor.prototype, protoProps); if (staticProps) live_input_hoc_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
42291
|
-
function live_input_hoc_toPropertyKey(
|
|
42292
|
-
function live_input_hoc_toPrimitive(
|
|
42293
|
-
function
|
|
42294
|
-
function live_input_hoc_setPrototypeOf(o, p) { live_input_hoc_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return live_input_hoc_setPrototypeOf(o, p); }
|
|
42295
|
-
function live_input_hoc_createSuper(Derived) { var hasNativeReflectConstruct = live_input_hoc_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = live_input_hoc_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = live_input_hoc_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return live_input_hoc_possibleConstructorReturn(this, result); }; }
|
|
42241
|
+
function live_input_hoc_toPropertyKey(t) { var i = live_input_hoc_toPrimitive(t, "string"); return "symbol" == live_input_hoc_typeof(i) ? i : String(i); }
|
|
42242
|
+
function live_input_hoc_toPrimitive(t, r) { if ("object" != live_input_hoc_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != live_input_hoc_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
42243
|
+
function live_input_hoc_callSuper(t, o, e) { return o = live_input_hoc_getPrototypeOf(o), live_input_hoc_possibleConstructorReturn(t, live_input_hoc_isNativeReflectConstruct() ? Reflect.construct(o, e || [], live_input_hoc_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
42296
42244
|
function live_input_hoc_possibleConstructorReturn(self, call) { if (call && (live_input_hoc_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return live_input_hoc_assertThisInitialized(self); }
|
|
42297
|
-
function
|
|
42298
|
-
function live_input_hoc_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
42245
|
+
function live_input_hoc_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (live_input_hoc_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
42299
42246
|
function live_input_hoc_getPrototypeOf(o) { live_input_hoc_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return live_input_hoc_getPrototypeOf(o); }
|
|
42247
|
+
function live_input_hoc_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
42248
|
+
function live_input_hoc_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) live_input_hoc_setPrototypeOf(subClass, superClass); }
|
|
42249
|
+
function live_input_hoc_setPrototypeOf(o, p) { live_input_hoc_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return live_input_hoc_setPrototypeOf(o, p); }
|
|
42300
42250
|
|
|
42301
42251
|
|
|
42302
42252
|
|
|
@@ -42309,11 +42259,10 @@ function live_input_hoc_getPrototypeOf(o) { live_input_hoc_getPrototypeOf = Obje
|
|
|
42309
42259
|
/* harmony default export */ var live_input_hoc = (function (Input) {
|
|
42310
42260
|
var LiveInput = /*#__PURE__*/function (_React$Component) {
|
|
42311
42261
|
live_input_hoc_inherits(LiveInput, _React$Component);
|
|
42312
|
-
var _super = live_input_hoc_createSuper(LiveInput);
|
|
42313
42262
|
function LiveInput(props) {
|
|
42314
42263
|
var _this;
|
|
42315
42264
|
live_input_hoc_classCallCheck(this, LiveInput);
|
|
42316
|
-
_this =
|
|
42265
|
+
_this = live_input_hoc_callSuper(this, LiveInput, [props]);
|
|
42317
42266
|
lodash_bindall_default()(live_input_hoc_assertThisInitialized(_this), ['handleChange', 'handleKeyPress', 'handleFlush']);
|
|
42318
42267
|
_this.state = {
|
|
42319
42268
|
value: null
|
|
@@ -42737,15 +42686,15 @@ function mode_tools_arrayLikeToArray(arr, len) { if (len == null || len > arr.le
|
|
|
42737
42686
|
function mode_tools_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
42738
42687
|
function mode_tools_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, mode_tools_toPropertyKey(descriptor.key), descriptor); } }
|
|
42739
42688
|
function mode_tools_createClass(Constructor, protoProps, staticProps) { if (protoProps) mode_tools_defineProperties(Constructor.prototype, protoProps); if (staticProps) mode_tools_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
42740
|
-
function mode_tools_toPropertyKey(
|
|
42741
|
-
function mode_tools_toPrimitive(
|
|
42742
|
-
function
|
|
42743
|
-
function mode_tools_setPrototypeOf(o, p) { mode_tools_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return mode_tools_setPrototypeOf(o, p); }
|
|
42744
|
-
function mode_tools_createSuper(Derived) { var hasNativeReflectConstruct = mode_tools_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = mode_tools_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = mode_tools_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return mode_tools_possibleConstructorReturn(this, result); }; }
|
|
42689
|
+
function mode_tools_toPropertyKey(t) { var i = mode_tools_toPrimitive(t, "string"); return "symbol" == mode_tools_typeof(i) ? i : String(i); }
|
|
42690
|
+
function mode_tools_toPrimitive(t, r) { if ("object" != mode_tools_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != mode_tools_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
42691
|
+
function mode_tools_callSuper(t, o, e) { return o = mode_tools_getPrototypeOf(o), mode_tools_possibleConstructorReturn(t, mode_tools_isNativeReflectConstruct() ? Reflect.construct(o, e || [], mode_tools_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
42745
42692
|
function mode_tools_possibleConstructorReturn(self, call) { if (call && (mode_tools_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return mode_tools_assertThisInitialized(self); }
|
|
42746
|
-
function
|
|
42747
|
-
function mode_tools_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
42693
|
+
function mode_tools_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (mode_tools_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
42748
42694
|
function mode_tools_getPrototypeOf(o) { mode_tools_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return mode_tools_getPrototypeOf(o); }
|
|
42695
|
+
function mode_tools_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
42696
|
+
function mode_tools_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) mode_tools_setPrototypeOf(subClass, superClass); }
|
|
42697
|
+
function mode_tools_setPrototypeOf(o, p) { mode_tools_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return mode_tools_setPrototypeOf(o, p); }
|
|
42749
42698
|
|
|
42750
42699
|
|
|
42751
42700
|
|
|
@@ -42762,11 +42711,10 @@ function mode_tools_getPrototypeOf(o) { mode_tools_getPrototypeOf = Object.setPr
|
|
|
42762
42711
|
|
|
42763
42712
|
var mode_tools_ModeTools = /*#__PURE__*/function (_React$Component) {
|
|
42764
42713
|
mode_tools_inherits(ModeTools, _React$Component);
|
|
42765
|
-
var _super = mode_tools_createSuper(ModeTools);
|
|
42766
42714
|
function ModeTools(props) {
|
|
42767
42715
|
var _this;
|
|
42768
42716
|
mode_tools_classCallCheck(this, ModeTools);
|
|
42769
|
-
_this =
|
|
42717
|
+
_this = mode_tools_callSuper(this, ModeTools, [props]);
|
|
42770
42718
|
lodash_bindall_default()(mode_tools_assertThisInitialized(_this), ['_getSelectedUncurvedPoints', '_getSelectedUnpointedPoints', 'hasSelectedUncurvedPoints', 'hasSelectedUnpointedPoints', 'handleCurvePoints', 'handleFlipHorizontal', 'handleFlipVertical', 'handleDelete', 'handlePasteFromClipboard', 'handlePointPoints']);
|
|
42771
42719
|
return _this;
|
|
42772
42720
|
}
|
|
@@ -43067,15 +43015,15 @@ function tools_oval_tool_typeof(o) { "@babel/helpers - typeof"; return tools_ova
|
|
|
43067
43015
|
function tools_oval_tool_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
43068
43016
|
function tools_oval_tool_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, tools_oval_tool_toPropertyKey(descriptor.key), descriptor); } }
|
|
43069
43017
|
function tools_oval_tool_createClass(Constructor, protoProps, staticProps) { if (protoProps) tools_oval_tool_defineProperties(Constructor.prototype, protoProps); if (staticProps) tools_oval_tool_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
43070
|
-
function tools_oval_tool_toPropertyKey(
|
|
43071
|
-
function tools_oval_tool_toPrimitive(
|
|
43072
|
-
function
|
|
43073
|
-
function tools_oval_tool_setPrototypeOf(o, p) { tools_oval_tool_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return tools_oval_tool_setPrototypeOf(o, p); }
|
|
43074
|
-
function tools_oval_tool_createSuper(Derived) { var hasNativeReflectConstruct = tools_oval_tool_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = tools_oval_tool_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = tools_oval_tool_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return tools_oval_tool_possibleConstructorReturn(this, result); }; }
|
|
43018
|
+
function tools_oval_tool_toPropertyKey(t) { var i = tools_oval_tool_toPrimitive(t, "string"); return "symbol" == tools_oval_tool_typeof(i) ? i : String(i); }
|
|
43019
|
+
function tools_oval_tool_toPrimitive(t, r) { if ("object" != tools_oval_tool_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != tools_oval_tool_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
43020
|
+
function tools_oval_tool_callSuper(t, o, e) { return o = tools_oval_tool_getPrototypeOf(o), tools_oval_tool_possibleConstructorReturn(t, tools_oval_tool_isNativeReflectConstruct() ? Reflect.construct(o, e || [], tools_oval_tool_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
43075
43021
|
function tools_oval_tool_possibleConstructorReturn(self, call) { if (call && (tools_oval_tool_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return tools_oval_tool_assertThisInitialized(self); }
|
|
43076
43022
|
function tools_oval_tool_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
43077
|
-
function tools_oval_tool_isNativeReflectConstruct() {
|
|
43023
|
+
function tools_oval_tool_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (tools_oval_tool_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
43078
43024
|
function tools_oval_tool_getPrototypeOf(o) { tools_oval_tool_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return tools_oval_tool_getPrototypeOf(o); }
|
|
43025
|
+
function tools_oval_tool_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) tools_oval_tool_setPrototypeOf(subClass, superClass); }
|
|
43026
|
+
function tools_oval_tool_setPrototypeOf(o, p) { tools_oval_tool_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return tools_oval_tool_setPrototypeOf(o, p); }
|
|
43079
43027
|
|
|
43080
43028
|
|
|
43081
43029
|
|
|
@@ -43089,7 +43037,6 @@ function tools_oval_tool_getPrototypeOf(o) { tools_oval_tool_getPrototypeOf = Ob
|
|
|
43089
43037
|
*/
|
|
43090
43038
|
var tools_oval_tool_OvalTool = /*#__PURE__*/function (_paper$Tool) {
|
|
43091
43039
|
tools_oval_tool_inherits(OvalTool, _paper$Tool);
|
|
43092
|
-
var _super = tools_oval_tool_createSuper(OvalTool);
|
|
43093
43040
|
/**
|
|
43094
43041
|
* @param {function} setSelectedItems Callback to set the set of selected items in the Redux state
|
|
43095
43042
|
* @param {function} clearSelectedItems Callback to clear the set of selected items in the Redux state
|
|
@@ -43099,7 +43046,7 @@ var tools_oval_tool_OvalTool = /*#__PURE__*/function (_paper$Tool) {
|
|
|
43099
43046
|
function OvalTool(setSelectedItems, clearSelectedItems, setCursor, onUpdateImage) {
|
|
43100
43047
|
var _this;
|
|
43101
43048
|
tools_oval_tool_classCallCheck(this, OvalTool);
|
|
43102
|
-
_this =
|
|
43049
|
+
_this = tools_oval_tool_callSuper(this, OvalTool);
|
|
43103
43050
|
_this.setSelectedItems = setSelectedItems;
|
|
43104
43051
|
_this.clearSelectedItems = clearSelectedItems;
|
|
43105
43052
|
_this.onUpdateImage = onUpdateImage;
|
|
@@ -43266,15 +43213,15 @@ function oval_mode_typeof(o) { "@babel/helpers - typeof"; return oval_mode_typeo
|
|
|
43266
43213
|
function oval_mode_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
43267
43214
|
function oval_mode_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, oval_mode_toPropertyKey(descriptor.key), descriptor); } }
|
|
43268
43215
|
function oval_mode_createClass(Constructor, protoProps, staticProps) { if (protoProps) oval_mode_defineProperties(Constructor.prototype, protoProps); if (staticProps) oval_mode_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
43269
|
-
function oval_mode_toPropertyKey(
|
|
43270
|
-
function oval_mode_toPrimitive(
|
|
43271
|
-
function
|
|
43272
|
-
function oval_mode_setPrototypeOf(o, p) { oval_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return oval_mode_setPrototypeOf(o, p); }
|
|
43273
|
-
function oval_mode_createSuper(Derived) { var hasNativeReflectConstruct = oval_mode_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = oval_mode_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = oval_mode_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return oval_mode_possibleConstructorReturn(this, result); }; }
|
|
43216
|
+
function oval_mode_toPropertyKey(t) { var i = oval_mode_toPrimitive(t, "string"); return "symbol" == oval_mode_typeof(i) ? i : String(i); }
|
|
43217
|
+
function oval_mode_toPrimitive(t, r) { if ("object" != oval_mode_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != oval_mode_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
43218
|
+
function oval_mode_callSuper(t, o, e) { return o = oval_mode_getPrototypeOf(o), oval_mode_possibleConstructorReturn(t, oval_mode_isNativeReflectConstruct() ? Reflect.construct(o, e || [], oval_mode_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
43274
43219
|
function oval_mode_possibleConstructorReturn(self, call) { if (call && (oval_mode_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return oval_mode_assertThisInitialized(self); }
|
|
43275
|
-
function
|
|
43276
|
-
function oval_mode_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
43220
|
+
function oval_mode_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (oval_mode_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
43277
43221
|
function oval_mode_getPrototypeOf(o) { oval_mode_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return oval_mode_getPrototypeOf(o); }
|
|
43222
|
+
function oval_mode_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
43223
|
+
function oval_mode_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) oval_mode_setPrototypeOf(subClass, superClass); }
|
|
43224
|
+
function oval_mode_setPrototypeOf(o, p) { oval_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return oval_mode_setPrototypeOf(o, p); }
|
|
43278
43225
|
|
|
43279
43226
|
|
|
43280
43227
|
|
|
@@ -43294,11 +43241,10 @@ function oval_mode_getPrototypeOf(o) { oval_mode_getPrototypeOf = Object.setProt
|
|
|
43294
43241
|
|
|
43295
43242
|
var oval_mode_OvalMode = /*#__PURE__*/function (_React$Component) {
|
|
43296
43243
|
oval_mode_inherits(OvalMode, _React$Component);
|
|
43297
|
-
var _super = oval_mode_createSuper(OvalMode);
|
|
43298
43244
|
function OvalMode(props) {
|
|
43299
43245
|
var _this;
|
|
43300
43246
|
oval_mode_classCallCheck(this, OvalMode);
|
|
43301
|
-
_this =
|
|
43247
|
+
_this = oval_mode_callSuper(this, OvalMode, [props]);
|
|
43302
43248
|
lodash_bindall_default()(oval_mode_assertThisInitialized(_this), ['activateTool', 'deactivateTool', 'validateColorState']);
|
|
43303
43249
|
return _this;
|
|
43304
43250
|
}
|
|
@@ -43443,7 +43389,6 @@ var oval_mode_mapDispatchToProps = function mapDispatchToProps(dispatch) {
|
|
|
43443
43389
|
setSelectedItems: function setSelectedItems() {
|
|
43444
43390
|
dispatch(selected_items_setSelectedItems(selection_getSelectedLeafItems(), false /* bitmapMode */));
|
|
43445
43391
|
},
|
|
43446
|
-
|
|
43447
43392
|
handleMouseDown: function handleMouseDown() {
|
|
43448
43393
|
dispatch(modes_changeMode(Modes.OVAL));
|
|
43449
43394
|
},
|
|
@@ -43461,15 +43406,15 @@ function tools_rect_tool_typeof(o) { "@babel/helpers - typeof"; return tools_rec
|
|
|
43461
43406
|
function tools_rect_tool_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
43462
43407
|
function tools_rect_tool_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, tools_rect_tool_toPropertyKey(descriptor.key), descriptor); } }
|
|
43463
43408
|
function tools_rect_tool_createClass(Constructor, protoProps, staticProps) { if (protoProps) tools_rect_tool_defineProperties(Constructor.prototype, protoProps); if (staticProps) tools_rect_tool_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
43464
|
-
function tools_rect_tool_toPropertyKey(
|
|
43465
|
-
function tools_rect_tool_toPrimitive(
|
|
43466
|
-
function
|
|
43467
|
-
function tools_rect_tool_setPrototypeOf(o, p) { tools_rect_tool_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return tools_rect_tool_setPrototypeOf(o, p); }
|
|
43468
|
-
function tools_rect_tool_createSuper(Derived) { var hasNativeReflectConstruct = tools_rect_tool_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = tools_rect_tool_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = tools_rect_tool_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return tools_rect_tool_possibleConstructorReturn(this, result); }; }
|
|
43409
|
+
function tools_rect_tool_toPropertyKey(t) { var i = tools_rect_tool_toPrimitive(t, "string"); return "symbol" == tools_rect_tool_typeof(i) ? i : String(i); }
|
|
43410
|
+
function tools_rect_tool_toPrimitive(t, r) { if ("object" != tools_rect_tool_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != tools_rect_tool_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
43411
|
+
function tools_rect_tool_callSuper(t, o, e) { return o = tools_rect_tool_getPrototypeOf(o), tools_rect_tool_possibleConstructorReturn(t, tools_rect_tool_isNativeReflectConstruct() ? Reflect.construct(o, e || [], tools_rect_tool_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
43469
43412
|
function tools_rect_tool_possibleConstructorReturn(self, call) { if (call && (tools_rect_tool_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return tools_rect_tool_assertThisInitialized(self); }
|
|
43470
43413
|
function tools_rect_tool_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
43471
|
-
function tools_rect_tool_isNativeReflectConstruct() {
|
|
43414
|
+
function tools_rect_tool_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (tools_rect_tool_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
43472
43415
|
function tools_rect_tool_getPrototypeOf(o) { tools_rect_tool_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return tools_rect_tool_getPrototypeOf(o); }
|
|
43416
|
+
function tools_rect_tool_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) tools_rect_tool_setPrototypeOf(subClass, superClass); }
|
|
43417
|
+
function tools_rect_tool_setPrototypeOf(o, p) { tools_rect_tool_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return tools_rect_tool_setPrototypeOf(o, p); }
|
|
43473
43418
|
|
|
43474
43419
|
|
|
43475
43420
|
|
|
@@ -43483,7 +43428,6 @@ function tools_rect_tool_getPrototypeOf(o) { tools_rect_tool_getPrototypeOf = Ob
|
|
|
43483
43428
|
*/
|
|
43484
43429
|
var tools_rect_tool_RectTool = /*#__PURE__*/function (_paper$Tool) {
|
|
43485
43430
|
tools_rect_tool_inherits(RectTool, _paper$Tool);
|
|
43486
|
-
var _super = tools_rect_tool_createSuper(RectTool);
|
|
43487
43431
|
/**
|
|
43488
43432
|
* @param {function} setSelectedItems Callback to set the set of selected items in the Redux state
|
|
43489
43433
|
* @param {function} clearSelectedItems Callback to clear the set of selected items in the Redux state
|
|
@@ -43493,7 +43437,7 @@ var tools_rect_tool_RectTool = /*#__PURE__*/function (_paper$Tool) {
|
|
|
43493
43437
|
function RectTool(setSelectedItems, clearSelectedItems, setCursor, onUpdateImage) {
|
|
43494
43438
|
var _this;
|
|
43495
43439
|
tools_rect_tool_classCallCheck(this, RectTool);
|
|
43496
|
-
_this =
|
|
43440
|
+
_this = tools_rect_tool_callSuper(this, RectTool);
|
|
43497
43441
|
_this.setSelectedItems = setSelectedItems;
|
|
43498
43442
|
_this.clearSelectedItems = clearSelectedItems;
|
|
43499
43443
|
_this.onUpdateImage = onUpdateImage;
|
|
@@ -43655,15 +43599,15 @@ function rect_mode_typeof(o) { "@babel/helpers - typeof"; return rect_mode_typeo
|
|
|
43655
43599
|
function rect_mode_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
43656
43600
|
function rect_mode_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, rect_mode_toPropertyKey(descriptor.key), descriptor); } }
|
|
43657
43601
|
function rect_mode_createClass(Constructor, protoProps, staticProps) { if (protoProps) rect_mode_defineProperties(Constructor.prototype, protoProps); if (staticProps) rect_mode_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
43658
|
-
function rect_mode_toPropertyKey(
|
|
43659
|
-
function rect_mode_toPrimitive(
|
|
43660
|
-
function
|
|
43661
|
-
function rect_mode_setPrototypeOf(o, p) { rect_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return rect_mode_setPrototypeOf(o, p); }
|
|
43662
|
-
function rect_mode_createSuper(Derived) { var hasNativeReflectConstruct = rect_mode_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = rect_mode_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = rect_mode_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return rect_mode_possibleConstructorReturn(this, result); }; }
|
|
43602
|
+
function rect_mode_toPropertyKey(t) { var i = rect_mode_toPrimitive(t, "string"); return "symbol" == rect_mode_typeof(i) ? i : String(i); }
|
|
43603
|
+
function rect_mode_toPrimitive(t, r) { if ("object" != rect_mode_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != rect_mode_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
43604
|
+
function rect_mode_callSuper(t, o, e) { return o = rect_mode_getPrototypeOf(o), rect_mode_possibleConstructorReturn(t, rect_mode_isNativeReflectConstruct() ? Reflect.construct(o, e || [], rect_mode_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
43663
43605
|
function rect_mode_possibleConstructorReturn(self, call) { if (call && (rect_mode_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return rect_mode_assertThisInitialized(self); }
|
|
43664
|
-
function
|
|
43665
|
-
function rect_mode_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
43606
|
+
function rect_mode_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (rect_mode_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
43666
43607
|
function rect_mode_getPrototypeOf(o) { rect_mode_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return rect_mode_getPrototypeOf(o); }
|
|
43608
|
+
function rect_mode_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
43609
|
+
function rect_mode_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) rect_mode_setPrototypeOf(subClass, superClass); }
|
|
43610
|
+
function rect_mode_setPrototypeOf(o, p) { rect_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return rect_mode_setPrototypeOf(o, p); }
|
|
43667
43611
|
|
|
43668
43612
|
|
|
43669
43613
|
|
|
@@ -43683,11 +43627,10 @@ function rect_mode_getPrototypeOf(o) { rect_mode_getPrototypeOf = Object.setProt
|
|
|
43683
43627
|
|
|
43684
43628
|
var rect_mode_RectMode = /*#__PURE__*/function (_React$Component) {
|
|
43685
43629
|
rect_mode_inherits(RectMode, _React$Component);
|
|
43686
|
-
var _super = rect_mode_createSuper(RectMode);
|
|
43687
43630
|
function RectMode(props) {
|
|
43688
43631
|
var _this;
|
|
43689
43632
|
rect_mode_classCallCheck(this, RectMode);
|
|
43690
|
-
_this =
|
|
43633
|
+
_this = rect_mode_callSuper(this, RectMode, [props]);
|
|
43691
43634
|
lodash_bindall_default()(rect_mode_assertThisInitialized(_this), ['activateTool', 'deactivateTool', 'validateColorState']);
|
|
43692
43635
|
return _this;
|
|
43693
43636
|
}
|
|
@@ -43830,7 +43773,6 @@ var rect_mode_mapDispatchToProps = function mapDispatchToProps(dispatch) {
|
|
|
43830
43773
|
setSelectedItems: function setSelectedItems() {
|
|
43831
43774
|
dispatch(selected_items_setSelectedItems(selection_getSelectedLeafItems(), false /* bitmapMode */));
|
|
43832
43775
|
},
|
|
43833
|
-
|
|
43834
43776
|
setCursor: function setCursor(cursorString) {
|
|
43835
43777
|
dispatch(cursor_setCursor(cursorString));
|
|
43836
43778
|
},
|
|
@@ -43854,8 +43796,8 @@ function point_tool_arrayLikeToArray(arr, len) { if (len == null || len > arr.le
|
|
|
43854
43796
|
function point_tool_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
43855
43797
|
function point_tool_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, point_tool_toPropertyKey(descriptor.key), descriptor); } }
|
|
43856
43798
|
function point_tool_createClass(Constructor, protoProps, staticProps) { if (protoProps) point_tool_defineProperties(Constructor.prototype, protoProps); if (staticProps) point_tool_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
43857
|
-
function point_tool_toPropertyKey(
|
|
43858
|
-
function point_tool_toPrimitive(
|
|
43799
|
+
function point_tool_toPropertyKey(t) { var i = point_tool_toPrimitive(t, "string"); return "symbol" == point_tool_typeof(i) ? i : String(i); }
|
|
43800
|
+
function point_tool_toPrimitive(t, r) { if ("object" != point_tool_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != point_tool_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
43859
43801
|
|
|
43860
43802
|
|
|
43861
43803
|
|
|
@@ -44060,8 +44002,8 @@ function handle_tool_arrayLikeToArray(arr, len) { if (len == null || len > arr.l
|
|
|
44060
44002
|
function handle_tool_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
44061
44003
|
function handle_tool_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, handle_tool_toPropertyKey(descriptor.key), descriptor); } }
|
|
44062
44004
|
function handle_tool_createClass(Constructor, protoProps, staticProps) { if (protoProps) handle_tool_defineProperties(Constructor.prototype, protoProps); if (staticProps) handle_tool_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
44063
|
-
function handle_tool_toPropertyKey(
|
|
44064
|
-
function handle_tool_toPrimitive(
|
|
44005
|
+
function handle_tool_toPropertyKey(t) { var i = handle_tool_toPrimitive(t, "string"); return "symbol" == handle_tool_typeof(i) ? i : String(i); }
|
|
44006
|
+
function handle_tool_toPrimitive(t, r) { if ("object" != handle_tool_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != handle_tool_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
44065
44007
|
|
|
44066
44008
|
|
|
44067
44009
|
/** Sub tool of the Reshape tool for moving handles, which adjust bezier curves. */
|
|
@@ -44197,15 +44139,15 @@ function reshape_tool_arrayLikeToArray(arr, len) { if (len == null || len > arr.
|
|
|
44197
44139
|
function reshape_tool_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
44198
44140
|
function reshape_tool_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, reshape_tool_toPropertyKey(descriptor.key), descriptor); } }
|
|
44199
44141
|
function reshape_tool_createClass(Constructor, protoProps, staticProps) { if (protoProps) reshape_tool_defineProperties(Constructor.prototype, protoProps); if (staticProps) reshape_tool_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
44200
|
-
function reshape_tool_toPropertyKey(
|
|
44201
|
-
function reshape_tool_toPrimitive(
|
|
44202
|
-
function
|
|
44203
|
-
function reshape_tool_setPrototypeOf(o, p) { reshape_tool_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return reshape_tool_setPrototypeOf(o, p); }
|
|
44204
|
-
function reshape_tool_createSuper(Derived) { var hasNativeReflectConstruct = reshape_tool_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = reshape_tool_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = reshape_tool_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return reshape_tool_possibleConstructorReturn(this, result); }; }
|
|
44142
|
+
function reshape_tool_toPropertyKey(t) { var i = reshape_tool_toPrimitive(t, "string"); return "symbol" == reshape_tool_typeof(i) ? i : String(i); }
|
|
44143
|
+
function reshape_tool_toPrimitive(t, r) { if ("object" != reshape_tool_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != reshape_tool_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
44144
|
+
function reshape_tool_callSuper(t, o, e) { return o = reshape_tool_getPrototypeOf(o), reshape_tool_possibleConstructorReturn(t, reshape_tool_isNativeReflectConstruct() ? Reflect.construct(o, e || [], reshape_tool_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
44205
44145
|
function reshape_tool_possibleConstructorReturn(self, call) { if (call && (reshape_tool_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return reshape_tool_assertThisInitialized(self); }
|
|
44206
44146
|
function reshape_tool_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
44207
|
-
function reshape_tool_isNativeReflectConstruct() {
|
|
44147
|
+
function reshape_tool_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (reshape_tool_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
44208
44148
|
function reshape_tool_getPrototypeOf(o) { reshape_tool_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return reshape_tool_getPrototypeOf(o); }
|
|
44149
|
+
function reshape_tool_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) reshape_tool_setPrototypeOf(subClass, superClass); }
|
|
44150
|
+
function reshape_tool_setPrototypeOf(o, p) { reshape_tool_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return reshape_tool_setPrototypeOf(o, p); }
|
|
44209
44151
|
|
|
44210
44152
|
|
|
44211
44153
|
|
|
@@ -44239,7 +44181,6 @@ var ReshapeModes = keymirror_default()({
|
|
|
44239
44181
|
*/
|
|
44240
44182
|
var reshape_tool_ReshapeTool = /*#__PURE__*/function (_paper$Tool) {
|
|
44241
44183
|
reshape_tool_inherits(ReshapeTool, _paper$Tool);
|
|
44242
|
-
var _super = reshape_tool_createSuper(ReshapeTool);
|
|
44243
44184
|
/**
|
|
44244
44185
|
* @param {function} setHoveredItem Callback to set the hovered item
|
|
44245
44186
|
* @param {function} clearHoveredItem Callback to clear the hovered item
|
|
@@ -44251,7 +44192,7 @@ var reshape_tool_ReshapeTool = /*#__PURE__*/function (_paper$Tool) {
|
|
|
44251
44192
|
function ReshapeTool(setHoveredItem, clearHoveredItem, setSelectedItems, clearSelectedItems, onUpdateImage, switchToTextTool) {
|
|
44252
44193
|
var _this;
|
|
44253
44194
|
reshape_tool_classCallCheck(this, ReshapeTool);
|
|
44254
|
-
_this =
|
|
44195
|
+
_this = reshape_tool_callSuper(this, ReshapeTool);
|
|
44255
44196
|
_this.setHoveredItem = setHoveredItem;
|
|
44256
44197
|
_this.clearHoveredItem = clearHoveredItem;
|
|
44257
44198
|
_this.onUpdateImage = onUpdateImage;
|
|
@@ -44650,15 +44591,15 @@ function reshape_mode_typeof(o) { "@babel/helpers - typeof"; return reshape_mode
|
|
|
44650
44591
|
function reshape_mode_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
44651
44592
|
function reshape_mode_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, reshape_mode_toPropertyKey(descriptor.key), descriptor); } }
|
|
44652
44593
|
function reshape_mode_createClass(Constructor, protoProps, staticProps) { if (protoProps) reshape_mode_defineProperties(Constructor.prototype, protoProps); if (staticProps) reshape_mode_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
44653
|
-
function reshape_mode_toPropertyKey(
|
|
44654
|
-
function reshape_mode_toPrimitive(
|
|
44655
|
-
function
|
|
44656
|
-
function reshape_mode_setPrototypeOf(o, p) { reshape_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return reshape_mode_setPrototypeOf(o, p); }
|
|
44657
|
-
function reshape_mode_createSuper(Derived) { var hasNativeReflectConstruct = reshape_mode_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = reshape_mode_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = reshape_mode_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return reshape_mode_possibleConstructorReturn(this, result); }; }
|
|
44594
|
+
function reshape_mode_toPropertyKey(t) { var i = reshape_mode_toPrimitive(t, "string"); return "symbol" == reshape_mode_typeof(i) ? i : String(i); }
|
|
44595
|
+
function reshape_mode_toPrimitive(t, r) { if ("object" != reshape_mode_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != reshape_mode_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
44596
|
+
function reshape_mode_callSuper(t, o, e) { return o = reshape_mode_getPrototypeOf(o), reshape_mode_possibleConstructorReturn(t, reshape_mode_isNativeReflectConstruct() ? Reflect.construct(o, e || [], reshape_mode_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
44658
44597
|
function reshape_mode_possibleConstructorReturn(self, call) { if (call && (reshape_mode_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return reshape_mode_assertThisInitialized(self); }
|
|
44659
|
-
function
|
|
44660
|
-
function reshape_mode_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
44598
|
+
function reshape_mode_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (reshape_mode_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
44661
44599
|
function reshape_mode_getPrototypeOf(o) { reshape_mode_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return reshape_mode_getPrototypeOf(o); }
|
|
44600
|
+
function reshape_mode_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
44601
|
+
function reshape_mode_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) reshape_mode_setPrototypeOf(subClass, superClass); }
|
|
44602
|
+
function reshape_mode_setPrototypeOf(o, p) { reshape_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return reshape_mode_setPrototypeOf(o, p); }
|
|
44662
44603
|
|
|
44663
44604
|
|
|
44664
44605
|
|
|
@@ -44672,11 +44613,10 @@ function reshape_mode_getPrototypeOf(o) { reshape_mode_getPrototypeOf = Object.s
|
|
|
44672
44613
|
|
|
44673
44614
|
var reshape_mode_ReshapeMode = /*#__PURE__*/function (_React$Component) {
|
|
44674
44615
|
reshape_mode_inherits(ReshapeMode, _React$Component);
|
|
44675
|
-
var _super = reshape_mode_createSuper(ReshapeMode);
|
|
44676
44616
|
function ReshapeMode(props) {
|
|
44677
44617
|
var _this;
|
|
44678
44618
|
reshape_mode_classCallCheck(this, ReshapeMode);
|
|
44679
|
-
_this =
|
|
44619
|
+
_this = reshape_mode_callSuper(this, ReshapeMode, [props]);
|
|
44680
44620
|
lodash_bindall_default()(reshape_mode_assertThisInitialized(_this), ['activateTool', 'deactivateTool']);
|
|
44681
44621
|
return _this;
|
|
44682
44622
|
}
|
|
@@ -44768,7 +44708,6 @@ var reshape_mode_mapDispatchToProps = function mapDispatchToProps(dispatch) {
|
|
|
44768
44708
|
setSelectedItems: function setSelectedItems() {
|
|
44769
44709
|
dispatch(selected_items_setSelectedItems(selection_getSelectedLeafItems(), false /* bitmapMode */));
|
|
44770
44710
|
},
|
|
44771
|
-
|
|
44772
44711
|
handleMouseDown: function handleMouseDown() {
|
|
44773
44712
|
dispatch(modes_changeMode(Modes.RESHAPE));
|
|
44774
44713
|
},
|
|
@@ -44783,15 +44722,15 @@ function selection_tools_select_tool_typeof(o) { "@babel/helpers - typeof"; retu
|
|
|
44783
44722
|
function selection_tools_select_tool_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
44784
44723
|
function selection_tools_select_tool_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, selection_tools_select_tool_toPropertyKey(descriptor.key), descriptor); } }
|
|
44785
44724
|
function selection_tools_select_tool_createClass(Constructor, protoProps, staticProps) { if (protoProps) selection_tools_select_tool_defineProperties(Constructor.prototype, protoProps); if (staticProps) selection_tools_select_tool_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
44786
|
-
function selection_tools_select_tool_toPropertyKey(
|
|
44787
|
-
function selection_tools_select_tool_toPrimitive(
|
|
44788
|
-
function
|
|
44789
|
-
function selection_tools_select_tool_setPrototypeOf(o, p) { selection_tools_select_tool_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return selection_tools_select_tool_setPrototypeOf(o, p); }
|
|
44790
|
-
function selection_tools_select_tool_createSuper(Derived) { var hasNativeReflectConstruct = selection_tools_select_tool_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = selection_tools_select_tool_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = selection_tools_select_tool_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return selection_tools_select_tool_possibleConstructorReturn(this, result); }; }
|
|
44725
|
+
function selection_tools_select_tool_toPropertyKey(t) { var i = selection_tools_select_tool_toPrimitive(t, "string"); return "symbol" == selection_tools_select_tool_typeof(i) ? i : String(i); }
|
|
44726
|
+
function selection_tools_select_tool_toPrimitive(t, r) { if ("object" != selection_tools_select_tool_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != selection_tools_select_tool_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
44727
|
+
function selection_tools_select_tool_callSuper(t, o, e) { return o = selection_tools_select_tool_getPrototypeOf(o), selection_tools_select_tool_possibleConstructorReturn(t, selection_tools_select_tool_isNativeReflectConstruct() ? Reflect.construct(o, e || [], selection_tools_select_tool_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
44791
44728
|
function selection_tools_select_tool_possibleConstructorReturn(self, call) { if (call && (selection_tools_select_tool_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return selection_tools_select_tool_assertThisInitialized(self); }
|
|
44792
44729
|
function selection_tools_select_tool_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
44793
|
-
function selection_tools_select_tool_isNativeReflectConstruct() {
|
|
44730
|
+
function selection_tools_select_tool_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (selection_tools_select_tool_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
44794
44731
|
function selection_tools_select_tool_getPrototypeOf(o) { selection_tools_select_tool_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return selection_tools_select_tool_getPrototypeOf(o); }
|
|
44732
|
+
function selection_tools_select_tool_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) selection_tools_select_tool_setPrototypeOf(subClass, superClass); }
|
|
44733
|
+
function selection_tools_select_tool_setPrototypeOf(o, p) { selection_tools_select_tool_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return selection_tools_select_tool_setPrototypeOf(o, p); }
|
|
44795
44734
|
|
|
44796
44735
|
|
|
44797
44736
|
|
|
@@ -44809,7 +44748,6 @@ function selection_tools_select_tool_getPrototypeOf(o) { selection_tools_select_
|
|
|
44809
44748
|
*/
|
|
44810
44749
|
var selection_tools_select_tool_SelectTool = /*#__PURE__*/function (_paper$Tool) {
|
|
44811
44750
|
selection_tools_select_tool_inherits(SelectTool, _paper$Tool);
|
|
44812
|
-
var _super = selection_tools_select_tool_createSuper(SelectTool);
|
|
44813
44751
|
/**
|
|
44814
44752
|
* @param {function} setHoveredItem Callback to set the hovered item
|
|
44815
44753
|
* @param {function} clearHoveredItem Callback to clear the hovered item
|
|
@@ -44822,7 +44760,7 @@ var selection_tools_select_tool_SelectTool = /*#__PURE__*/function (_paper$Tool)
|
|
|
44822
44760
|
function SelectTool(setHoveredItem, clearHoveredItem, setSelectedItems, clearSelectedItems, setCursor, onUpdateImage, switchToTextTool) {
|
|
44823
44761
|
var _this;
|
|
44824
44762
|
selection_tools_select_tool_classCallCheck(this, SelectTool);
|
|
44825
|
-
_this =
|
|
44763
|
+
_this = selection_tools_select_tool_callSuper(this, SelectTool);
|
|
44826
44764
|
_this.setHoveredItem = setHoveredItem;
|
|
44827
44765
|
_this.clearHoveredItem = clearHoveredItem;
|
|
44828
44766
|
_this.onUpdateImage = onUpdateImage;
|
|
@@ -45015,15 +44953,15 @@ function select_mode_typeof(o) { "@babel/helpers - typeof"; return select_mode_t
|
|
|
45015
44953
|
function select_mode_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
45016
44954
|
function select_mode_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, select_mode_toPropertyKey(descriptor.key), descriptor); } }
|
|
45017
44955
|
function select_mode_createClass(Constructor, protoProps, staticProps) { if (protoProps) select_mode_defineProperties(Constructor.prototype, protoProps); if (staticProps) select_mode_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
45018
|
-
function select_mode_toPropertyKey(
|
|
45019
|
-
function select_mode_toPrimitive(
|
|
45020
|
-
function
|
|
45021
|
-
function select_mode_setPrototypeOf(o, p) { select_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return select_mode_setPrototypeOf(o, p); }
|
|
45022
|
-
function select_mode_createSuper(Derived) { var hasNativeReflectConstruct = select_mode_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = select_mode_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = select_mode_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return select_mode_possibleConstructorReturn(this, result); }; }
|
|
44956
|
+
function select_mode_toPropertyKey(t) { var i = select_mode_toPrimitive(t, "string"); return "symbol" == select_mode_typeof(i) ? i : String(i); }
|
|
44957
|
+
function select_mode_toPrimitive(t, r) { if ("object" != select_mode_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != select_mode_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
44958
|
+
function select_mode_callSuper(t, o, e) { return o = select_mode_getPrototypeOf(o), select_mode_possibleConstructorReturn(t, select_mode_isNativeReflectConstruct() ? Reflect.construct(o, e || [], select_mode_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
45023
44959
|
function select_mode_possibleConstructorReturn(self, call) { if (call && (select_mode_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return select_mode_assertThisInitialized(self); }
|
|
45024
|
-
function
|
|
45025
|
-
function select_mode_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
44960
|
+
function select_mode_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (select_mode_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
45026
44961
|
function select_mode_getPrototypeOf(o) { select_mode_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return select_mode_getPrototypeOf(o); }
|
|
44962
|
+
function select_mode_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
44963
|
+
function select_mode_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) select_mode_setPrototypeOf(subClass, superClass); }
|
|
44964
|
+
function select_mode_setPrototypeOf(o, p) { select_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return select_mode_setPrototypeOf(o, p); }
|
|
45027
44965
|
|
|
45028
44966
|
|
|
45029
44967
|
|
|
@@ -45039,11 +44977,10 @@ function select_mode_getPrototypeOf(o) { select_mode_getPrototypeOf = Object.set
|
|
|
45039
44977
|
|
|
45040
44978
|
var select_mode_SelectMode = /*#__PURE__*/function (_React$Component) {
|
|
45041
44979
|
select_mode_inherits(SelectMode, _React$Component);
|
|
45042
|
-
var _super = select_mode_createSuper(SelectMode);
|
|
45043
44980
|
function SelectMode(props) {
|
|
45044
44981
|
var _this;
|
|
45045
44982
|
select_mode_classCallCheck(this, SelectMode);
|
|
45046
|
-
_this =
|
|
44983
|
+
_this = select_mode_callSuper(this, SelectMode, [props]);
|
|
45047
44984
|
lodash_bindall_default()(select_mode_assertThisInitialized(_this), ['activateTool', 'deactivateTool']);
|
|
45048
44985
|
return _this;
|
|
45049
44986
|
}
|
|
@@ -45139,7 +45076,6 @@ var select_mode_mapDispatchToProps = function mapDispatchToProps(dispatch) {
|
|
|
45139
45076
|
setSelectedItems: function setSelectedItems() {
|
|
45140
45077
|
dispatch(selected_items_setSelectedItems(selection_getSelectedLeafItems(), false /* bitmapMode */));
|
|
45141
45078
|
},
|
|
45142
|
-
|
|
45143
45079
|
setCursor: function setCursor(cursorString) {
|
|
45144
45080
|
dispatch(cursor_setCursor(cursorString));
|
|
45145
45081
|
},
|
|
@@ -45250,15 +45186,15 @@ function stroke_width_indicator_typeof(o) { "@babel/helpers - typeof"; return st
|
|
|
45250
45186
|
function stroke_width_indicator_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
45251
45187
|
function stroke_width_indicator_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, stroke_width_indicator_toPropertyKey(descriptor.key), descriptor); } }
|
|
45252
45188
|
function stroke_width_indicator_createClass(Constructor, protoProps, staticProps) { if (protoProps) stroke_width_indicator_defineProperties(Constructor.prototype, protoProps); if (staticProps) stroke_width_indicator_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
45253
|
-
function stroke_width_indicator_toPropertyKey(
|
|
45254
|
-
function stroke_width_indicator_toPrimitive(
|
|
45255
|
-
function
|
|
45256
|
-
function stroke_width_indicator_setPrototypeOf(o, p) { stroke_width_indicator_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return stroke_width_indicator_setPrototypeOf(o, p); }
|
|
45257
|
-
function stroke_width_indicator_createSuper(Derived) { var hasNativeReflectConstruct = stroke_width_indicator_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = stroke_width_indicator_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = stroke_width_indicator_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return stroke_width_indicator_possibleConstructorReturn(this, result); }; }
|
|
45189
|
+
function stroke_width_indicator_toPropertyKey(t) { var i = stroke_width_indicator_toPrimitive(t, "string"); return "symbol" == stroke_width_indicator_typeof(i) ? i : String(i); }
|
|
45190
|
+
function stroke_width_indicator_toPrimitive(t, r) { if ("object" != stroke_width_indicator_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != stroke_width_indicator_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
45191
|
+
function stroke_width_indicator_callSuper(t, o, e) { return o = stroke_width_indicator_getPrototypeOf(o), stroke_width_indicator_possibleConstructorReturn(t, stroke_width_indicator_isNativeReflectConstruct() ? Reflect.construct(o, e || [], stroke_width_indicator_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
45258
45192
|
function stroke_width_indicator_possibleConstructorReturn(self, call) { if (call && (stroke_width_indicator_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return stroke_width_indicator_assertThisInitialized(self); }
|
|
45259
|
-
function
|
|
45260
|
-
function stroke_width_indicator_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
45193
|
+
function stroke_width_indicator_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (stroke_width_indicator_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
45261
45194
|
function stroke_width_indicator_getPrototypeOf(o) { stroke_width_indicator_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return stroke_width_indicator_getPrototypeOf(o); }
|
|
45195
|
+
function stroke_width_indicator_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
45196
|
+
function stroke_width_indicator_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) stroke_width_indicator_setPrototypeOf(subClass, superClass); }
|
|
45197
|
+
function stroke_width_indicator_setPrototypeOf(o, p) { stroke_width_indicator_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return stroke_width_indicator_setPrototypeOf(o, p); }
|
|
45262
45198
|
|
|
45263
45199
|
|
|
45264
45200
|
|
|
@@ -45274,11 +45210,10 @@ function stroke_width_indicator_getPrototypeOf(o) { stroke_width_indicator_getPr
|
|
|
45274
45210
|
|
|
45275
45211
|
var stroke_width_indicator_StrokeWidthIndicator = /*#__PURE__*/function (_React$Component) {
|
|
45276
45212
|
stroke_width_indicator_inherits(StrokeWidthIndicator, _React$Component);
|
|
45277
|
-
var _super = stroke_width_indicator_createSuper(StrokeWidthIndicator);
|
|
45278
45213
|
function StrokeWidthIndicator(props) {
|
|
45279
45214
|
var _this;
|
|
45280
45215
|
stroke_width_indicator_classCallCheck(this, StrokeWidthIndicator);
|
|
45281
|
-
_this =
|
|
45216
|
+
_this = stroke_width_indicator_callSuper(this, StrokeWidthIndicator, [props]);
|
|
45282
45217
|
lodash_bindall_default()(stroke_width_indicator_assertThisInitialized(_this), ['handleChangeStrokeWidth']);
|
|
45283
45218
|
return _this;
|
|
45284
45219
|
}
|
|
@@ -45369,15 +45304,15 @@ function text_tool_arrayLikeToArray(arr, len) { if (len == null || len > arr.len
|
|
|
45369
45304
|
function text_tool_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
45370
45305
|
function text_tool_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, text_tool_toPropertyKey(descriptor.key), descriptor); } }
|
|
45371
45306
|
function text_tool_createClass(Constructor, protoProps, staticProps) { if (protoProps) text_tool_defineProperties(Constructor.prototype, protoProps); if (staticProps) text_tool_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
45372
|
-
function text_tool_toPropertyKey(
|
|
45373
|
-
function text_tool_toPrimitive(
|
|
45374
|
-
function
|
|
45375
|
-
function text_tool_setPrototypeOf(o, p) { text_tool_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return text_tool_setPrototypeOf(o, p); }
|
|
45376
|
-
function text_tool_createSuper(Derived) { var hasNativeReflectConstruct = text_tool_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = text_tool_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = text_tool_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return text_tool_possibleConstructorReturn(this, result); }; }
|
|
45307
|
+
function text_tool_toPropertyKey(t) { var i = text_tool_toPrimitive(t, "string"); return "symbol" == text_tool_typeof(i) ? i : String(i); }
|
|
45308
|
+
function text_tool_toPrimitive(t, r) { if ("object" != text_tool_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != text_tool_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
45309
|
+
function text_tool_callSuper(t, o, e) { return o = text_tool_getPrototypeOf(o), text_tool_possibleConstructorReturn(t, text_tool_isNativeReflectConstruct() ? Reflect.construct(o, e || [], text_tool_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
45377
45310
|
function text_tool_possibleConstructorReturn(self, call) { if (call && (text_tool_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return text_tool_assertThisInitialized(self); }
|
|
45378
45311
|
function text_tool_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
45379
|
-
function text_tool_isNativeReflectConstruct() {
|
|
45312
|
+
function text_tool_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (text_tool_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
45380
45313
|
function text_tool_getPrototypeOf(o) { text_tool_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return text_tool_getPrototypeOf(o); }
|
|
45314
|
+
function text_tool_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) text_tool_setPrototypeOf(subClass, superClass); }
|
|
45315
|
+
function text_tool_setPrototypeOf(o, p) { text_tool_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return text_tool_setPrototypeOf(o, p); }
|
|
45381
45316
|
|
|
45382
45317
|
|
|
45383
45318
|
|
|
@@ -45392,7 +45327,6 @@ function text_tool_getPrototypeOf(o) { text_tool_getPrototypeOf = Object.setProt
|
|
|
45392
45327
|
*/
|
|
45393
45328
|
var text_tool_TextTool = /*#__PURE__*/function (_paper$Tool) {
|
|
45394
45329
|
text_tool_inherits(TextTool, _paper$Tool);
|
|
45395
|
-
var _super = text_tool_createSuper(TextTool);
|
|
45396
45330
|
/**
|
|
45397
45331
|
* @param {HTMLTextAreaElement} textAreaElement dom element for the editable text field
|
|
45398
45332
|
* @param {function} setSelectedItems Callback to set the set of selected items in the Redux state
|
|
@@ -45406,7 +45340,7 @@ var text_tool_TextTool = /*#__PURE__*/function (_paper$Tool) {
|
|
|
45406
45340
|
function TextTool(textAreaElement, setSelectedItems, clearSelectedItems, setCursor, onUpdateImage, setTextEditTarget, changeFont, isBitmap) {
|
|
45407
45341
|
var _this;
|
|
45408
45342
|
text_tool_classCallCheck(this, TextTool);
|
|
45409
|
-
_this =
|
|
45343
|
+
_this = text_tool_callSuper(this, TextTool);
|
|
45410
45344
|
_this.element = textAreaElement;
|
|
45411
45345
|
_this.setSelectedItems = setSelectedItems;
|
|
45412
45346
|
_this.clearSelectedItems = clearSelectedItems;
|
|
@@ -45903,15 +45837,15 @@ function text_mode_typeof(o) { "@babel/helpers - typeof"; return text_mode_typeo
|
|
|
45903
45837
|
function text_mode_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
45904
45838
|
function text_mode_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, text_mode_toPropertyKey(descriptor.key), descriptor); } }
|
|
45905
45839
|
function text_mode_createClass(Constructor, protoProps, staticProps) { if (protoProps) text_mode_defineProperties(Constructor.prototype, protoProps); if (staticProps) text_mode_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
45906
|
-
function text_mode_toPropertyKey(
|
|
45907
|
-
function text_mode_toPrimitive(
|
|
45908
|
-
function
|
|
45909
|
-
function text_mode_setPrototypeOf(o, p) { text_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return text_mode_setPrototypeOf(o, p); }
|
|
45910
|
-
function text_mode_createSuper(Derived) { var hasNativeReflectConstruct = text_mode_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = text_mode_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = text_mode_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return text_mode_possibleConstructorReturn(this, result); }; }
|
|
45840
|
+
function text_mode_toPropertyKey(t) { var i = text_mode_toPrimitive(t, "string"); return "symbol" == text_mode_typeof(i) ? i : String(i); }
|
|
45841
|
+
function text_mode_toPrimitive(t, r) { if ("object" != text_mode_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != text_mode_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
45842
|
+
function text_mode_callSuper(t, o, e) { return o = text_mode_getPrototypeOf(o), text_mode_possibleConstructorReturn(t, text_mode_isNativeReflectConstruct() ? Reflect.construct(o, e || [], text_mode_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
45911
45843
|
function text_mode_possibleConstructorReturn(self, call) { if (call && (text_mode_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return text_mode_assertThisInitialized(self); }
|
|
45912
|
-
function
|
|
45913
|
-
function text_mode_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
45844
|
+
function text_mode_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (text_mode_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
45914
45845
|
function text_mode_getPrototypeOf(o) { text_mode_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return text_mode_getPrototypeOf(o); }
|
|
45846
|
+
function text_mode_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
45847
|
+
function text_mode_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) text_mode_setPrototypeOf(subClass, superClass); }
|
|
45848
|
+
function text_mode_setPrototypeOf(o, p) { text_mode_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return text_mode_setPrototypeOf(o, p); }
|
|
45915
45849
|
|
|
45916
45850
|
|
|
45917
45851
|
|
|
@@ -45934,11 +45868,10 @@ function text_mode_getPrototypeOf(o) { text_mode_getPrototypeOf = Object.setProt
|
|
|
45934
45868
|
|
|
45935
45869
|
var text_mode_TextMode = /*#__PURE__*/function (_React$Component) {
|
|
45936
45870
|
text_mode_inherits(TextMode, _React$Component);
|
|
45937
|
-
var _super = text_mode_createSuper(TextMode);
|
|
45938
45871
|
function TextMode(props) {
|
|
45939
45872
|
var _this;
|
|
45940
45873
|
text_mode_classCallCheck(this, TextMode);
|
|
45941
|
-
_this =
|
|
45874
|
+
_this = text_mode_callSuper(this, TextMode, [props]);
|
|
45942
45875
|
lodash_bindall_default()(text_mode_assertThisInitialized(_this), ['activateTool', 'deactivateTool']);
|
|
45943
45876
|
return _this;
|
|
45944
45877
|
}
|
|
@@ -46397,15 +46330,15 @@ function keyboard_shortcuts_hoc_extends() { keyboard_shortcuts_hoc_extends = Obj
|
|
|
46397
46330
|
function keyboard_shortcuts_hoc_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
46398
46331
|
function keyboard_shortcuts_hoc_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, keyboard_shortcuts_hoc_toPropertyKey(descriptor.key), descriptor); } }
|
|
46399
46332
|
function keyboard_shortcuts_hoc_createClass(Constructor, protoProps, staticProps) { if (protoProps) keyboard_shortcuts_hoc_defineProperties(Constructor.prototype, protoProps); if (staticProps) keyboard_shortcuts_hoc_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
46400
|
-
function keyboard_shortcuts_hoc_toPropertyKey(
|
|
46401
|
-
function keyboard_shortcuts_hoc_toPrimitive(
|
|
46402
|
-
function
|
|
46403
|
-
function keyboard_shortcuts_hoc_setPrototypeOf(o, p) { keyboard_shortcuts_hoc_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return keyboard_shortcuts_hoc_setPrototypeOf(o, p); }
|
|
46404
|
-
function keyboard_shortcuts_hoc_createSuper(Derived) { var hasNativeReflectConstruct = keyboard_shortcuts_hoc_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = keyboard_shortcuts_hoc_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = keyboard_shortcuts_hoc_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return keyboard_shortcuts_hoc_possibleConstructorReturn(this, result); }; }
|
|
46333
|
+
function keyboard_shortcuts_hoc_toPropertyKey(t) { var i = keyboard_shortcuts_hoc_toPrimitive(t, "string"); return "symbol" == keyboard_shortcuts_hoc_typeof(i) ? i : String(i); }
|
|
46334
|
+
function keyboard_shortcuts_hoc_toPrimitive(t, r) { if ("object" != keyboard_shortcuts_hoc_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != keyboard_shortcuts_hoc_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
46335
|
+
function keyboard_shortcuts_hoc_callSuper(t, o, e) { return o = keyboard_shortcuts_hoc_getPrototypeOf(o), keyboard_shortcuts_hoc_possibleConstructorReturn(t, keyboard_shortcuts_hoc_isNativeReflectConstruct() ? Reflect.construct(o, e || [], keyboard_shortcuts_hoc_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
46405
46336
|
function keyboard_shortcuts_hoc_possibleConstructorReturn(self, call) { if (call && (keyboard_shortcuts_hoc_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return keyboard_shortcuts_hoc_assertThisInitialized(self); }
|
|
46406
|
-
function
|
|
46407
|
-
function keyboard_shortcuts_hoc_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
46337
|
+
function keyboard_shortcuts_hoc_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (keyboard_shortcuts_hoc_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
46408
46338
|
function keyboard_shortcuts_hoc_getPrototypeOf(o) { keyboard_shortcuts_hoc_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return keyboard_shortcuts_hoc_getPrototypeOf(o); }
|
|
46339
|
+
function keyboard_shortcuts_hoc_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
46340
|
+
function keyboard_shortcuts_hoc_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) keyboard_shortcuts_hoc_setPrototypeOf(subClass, superClass); }
|
|
46341
|
+
function keyboard_shortcuts_hoc_setPrototypeOf(o, p) { keyboard_shortcuts_hoc_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return keyboard_shortcuts_hoc_setPrototypeOf(o, p); }
|
|
46409
46342
|
|
|
46410
46343
|
|
|
46411
46344
|
|
|
@@ -46422,11 +46355,10 @@ function keyboard_shortcuts_hoc_getPrototypeOf(o) { keyboard_shortcuts_hoc_getPr
|
|
|
46422
46355
|
var keyboard_shortcuts_hoc_KeyboardShortcutsHOC = function KeyboardShortcutsHOC(WrappedComponent) {
|
|
46423
46356
|
var KeyboardShortcutsWrapper = /*#__PURE__*/function (_React$Component) {
|
|
46424
46357
|
keyboard_shortcuts_hoc_inherits(KeyboardShortcutsWrapper, _React$Component);
|
|
46425
|
-
var _super = keyboard_shortcuts_hoc_createSuper(KeyboardShortcutsWrapper);
|
|
46426
46358
|
function KeyboardShortcutsWrapper(props) {
|
|
46427
46359
|
var _this;
|
|
46428
46360
|
keyboard_shortcuts_hoc_classCallCheck(this, KeyboardShortcutsWrapper);
|
|
46429
|
-
_this =
|
|
46361
|
+
_this = keyboard_shortcuts_hoc_callSuper(this, KeyboardShortcutsWrapper, [props]);
|
|
46430
46362
|
lodash_bindall_default()(keyboard_shortcuts_hoc_assertThisInitialized(_this), ['handleKeyPress', 'changeToASelectMode', 'selectAll']);
|
|
46431
46363
|
return _this;
|
|
46432
46364
|
}
|
|
@@ -46561,15 +46493,15 @@ function selection_hoc_objectWithoutPropertiesLoose(source, excluded) { if (sour
|
|
|
46561
46493
|
function selection_hoc_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
46562
46494
|
function selection_hoc_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, selection_hoc_toPropertyKey(descriptor.key), descriptor); } }
|
|
46563
46495
|
function selection_hoc_createClass(Constructor, protoProps, staticProps) { if (protoProps) selection_hoc_defineProperties(Constructor.prototype, protoProps); if (staticProps) selection_hoc_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
46564
|
-
function selection_hoc_toPropertyKey(
|
|
46565
|
-
function selection_hoc_toPrimitive(
|
|
46566
|
-
function
|
|
46567
|
-
function selection_hoc_setPrototypeOf(o, p) { selection_hoc_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return selection_hoc_setPrototypeOf(o, p); }
|
|
46568
|
-
function selection_hoc_createSuper(Derived) { var hasNativeReflectConstruct = selection_hoc_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = selection_hoc_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = selection_hoc_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return selection_hoc_possibleConstructorReturn(this, result); }; }
|
|
46496
|
+
function selection_hoc_toPropertyKey(t) { var i = selection_hoc_toPrimitive(t, "string"); return "symbol" == selection_hoc_typeof(i) ? i : String(i); }
|
|
46497
|
+
function selection_hoc_toPrimitive(t, r) { if ("object" != selection_hoc_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != selection_hoc_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
46498
|
+
function selection_hoc_callSuper(t, o, e) { return o = selection_hoc_getPrototypeOf(o), selection_hoc_possibleConstructorReturn(t, selection_hoc_isNativeReflectConstruct() ? Reflect.construct(o, e || [], selection_hoc_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
46569
46499
|
function selection_hoc_possibleConstructorReturn(self, call) { if (call && (selection_hoc_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return selection_hoc_assertThisInitialized(self); }
|
|
46570
|
-
function
|
|
46571
|
-
function selection_hoc_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
46500
|
+
function selection_hoc_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (selection_hoc_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
46572
46501
|
function selection_hoc_getPrototypeOf(o) { selection_hoc_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return selection_hoc_getPrototypeOf(o); }
|
|
46502
|
+
function selection_hoc_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
46503
|
+
function selection_hoc_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) selection_hoc_setPrototypeOf(subClass, superClass); }
|
|
46504
|
+
function selection_hoc_setPrototypeOf(o, p) { selection_hoc_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return selection_hoc_setPrototypeOf(o, p); }
|
|
46573
46505
|
|
|
46574
46506
|
|
|
46575
46507
|
|
|
@@ -46578,11 +46510,10 @@ function selection_hoc_getPrototypeOf(o) { selection_hoc_getPrototypeOf = Object
|
|
|
46578
46510
|
var selection_hoc_SelectionHOC = function SelectionHOC(WrappedComponent) {
|
|
46579
46511
|
var SelectionComponent = /*#__PURE__*/function (_React$Component) {
|
|
46580
46512
|
selection_hoc_inherits(SelectionComponent, _React$Component);
|
|
46581
|
-
var _super = selection_hoc_createSuper(SelectionComponent);
|
|
46582
46513
|
function SelectionComponent(props) {
|
|
46583
46514
|
var _this;
|
|
46584
46515
|
selection_hoc_classCallCheck(this, SelectionComponent);
|
|
46585
|
-
_this =
|
|
46516
|
+
_this = selection_hoc_callSuper(this, SelectionComponent, [props]);
|
|
46586
46517
|
lodash_bindall_default()(selection_hoc_assertThisInitialized(_this), ['removeItemById']);
|
|
46587
46518
|
return _this;
|
|
46588
46519
|
}
|
|
@@ -46637,15 +46568,15 @@ function undo_hoc_extends() { undo_hoc_extends = Object.assign ? Object.assign.b
|
|
|
46637
46568
|
function undo_hoc_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
46638
46569
|
function undo_hoc_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, undo_hoc_toPropertyKey(descriptor.key), descriptor); } }
|
|
46639
46570
|
function undo_hoc_createClass(Constructor, protoProps, staticProps) { if (protoProps) undo_hoc_defineProperties(Constructor.prototype, protoProps); if (staticProps) undo_hoc_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
46640
|
-
function undo_hoc_toPropertyKey(
|
|
46641
|
-
function undo_hoc_toPrimitive(
|
|
46642
|
-
function
|
|
46643
|
-
function undo_hoc_setPrototypeOf(o, p) { undo_hoc_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return undo_hoc_setPrototypeOf(o, p); }
|
|
46644
|
-
function undo_hoc_createSuper(Derived) { var hasNativeReflectConstruct = undo_hoc_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = undo_hoc_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = undo_hoc_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return undo_hoc_possibleConstructorReturn(this, result); }; }
|
|
46571
|
+
function undo_hoc_toPropertyKey(t) { var i = undo_hoc_toPrimitive(t, "string"); return "symbol" == undo_hoc_typeof(i) ? i : String(i); }
|
|
46572
|
+
function undo_hoc_toPrimitive(t, r) { if ("object" != undo_hoc_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != undo_hoc_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
46573
|
+
function undo_hoc_callSuper(t, o, e) { return o = undo_hoc_getPrototypeOf(o), undo_hoc_possibleConstructorReturn(t, undo_hoc_isNativeReflectConstruct() ? Reflect.construct(o, e || [], undo_hoc_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
46645
46574
|
function undo_hoc_possibleConstructorReturn(self, call) { if (call && (undo_hoc_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return undo_hoc_assertThisInitialized(self); }
|
|
46646
|
-
function
|
|
46647
|
-
function undo_hoc_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
46575
|
+
function undo_hoc_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (undo_hoc_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
46648
46576
|
function undo_hoc_getPrototypeOf(o) { undo_hoc_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return undo_hoc_getPrototypeOf(o); }
|
|
46577
|
+
function undo_hoc_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
46578
|
+
function undo_hoc_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) undo_hoc_setPrototypeOf(subClass, superClass); }
|
|
46579
|
+
function undo_hoc_setPrototypeOf(o, p) { undo_hoc_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return undo_hoc_setPrototypeOf(o, p); }
|
|
46649
46580
|
|
|
46650
46581
|
|
|
46651
46582
|
|
|
@@ -46659,11 +46590,10 @@ function undo_hoc_getPrototypeOf(o) { undo_hoc_getPrototypeOf = Object.setProtot
|
|
|
46659
46590
|
var undo_hoc_UndoHOC = function UndoHOC(WrappedComponent) {
|
|
46660
46591
|
var UndoWrapper = /*#__PURE__*/function (_React$Component) {
|
|
46661
46592
|
undo_hoc_inherits(UndoWrapper, _React$Component);
|
|
46662
|
-
var _super = undo_hoc_createSuper(UndoWrapper);
|
|
46663
46593
|
function UndoWrapper(props) {
|
|
46664
46594
|
var _this;
|
|
46665
46595
|
undo_hoc_classCallCheck(this, UndoWrapper);
|
|
46666
|
-
_this =
|
|
46596
|
+
_this = undo_hoc_callSuper(this, UndoWrapper, [props]);
|
|
46667
46597
|
lodash_bindall_default()(undo_hoc_assertThisInitialized(_this), ['handleUndo', 'handleRedo', 'handleSetSelectedItems', 'shouldShowUndo', 'shouldShowRedo']);
|
|
46668
46598
|
return _this;
|
|
46669
46599
|
}
|
|
@@ -46748,15 +46678,15 @@ function update_image_hoc_arrayLikeToArray(arr, len) { if (len == null || len >
|
|
|
46748
46678
|
function update_image_hoc_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
46749
46679
|
function update_image_hoc_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, update_image_hoc_toPropertyKey(descriptor.key), descriptor); } }
|
|
46750
46680
|
function update_image_hoc_createClass(Constructor, protoProps, staticProps) { if (protoProps) update_image_hoc_defineProperties(Constructor.prototype, protoProps); if (staticProps) update_image_hoc_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
46751
|
-
function update_image_hoc_toPropertyKey(
|
|
46752
|
-
function update_image_hoc_toPrimitive(
|
|
46753
|
-
function
|
|
46754
|
-
function update_image_hoc_setPrototypeOf(o, p) { update_image_hoc_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return update_image_hoc_setPrototypeOf(o, p); }
|
|
46755
|
-
function update_image_hoc_createSuper(Derived) { var hasNativeReflectConstruct = update_image_hoc_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = update_image_hoc_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = update_image_hoc_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return update_image_hoc_possibleConstructorReturn(this, result); }; }
|
|
46681
|
+
function update_image_hoc_toPropertyKey(t) { var i = update_image_hoc_toPrimitive(t, "string"); return "symbol" == update_image_hoc_typeof(i) ? i : String(i); }
|
|
46682
|
+
function update_image_hoc_toPrimitive(t, r) { if ("object" != update_image_hoc_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != update_image_hoc_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
46683
|
+
function update_image_hoc_callSuper(t, o, e) { return o = update_image_hoc_getPrototypeOf(o), update_image_hoc_possibleConstructorReturn(t, update_image_hoc_isNativeReflectConstruct() ? Reflect.construct(o, e || [], update_image_hoc_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
46756
46684
|
function update_image_hoc_possibleConstructorReturn(self, call) { if (call && (update_image_hoc_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return update_image_hoc_assertThisInitialized(self); }
|
|
46757
|
-
function
|
|
46758
|
-
function update_image_hoc_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
46685
|
+
function update_image_hoc_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (update_image_hoc_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
46759
46686
|
function update_image_hoc_getPrototypeOf(o) { update_image_hoc_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return update_image_hoc_getPrototypeOf(o); }
|
|
46687
|
+
function update_image_hoc_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
46688
|
+
function update_image_hoc_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) update_image_hoc_setPrototypeOf(subClass, superClass); }
|
|
46689
|
+
function update_image_hoc_setPrototypeOf(o, p) { update_image_hoc_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return update_image_hoc_setPrototypeOf(o, p); }
|
|
46760
46690
|
|
|
46761
46691
|
|
|
46762
46692
|
|
|
@@ -46778,11 +46708,10 @@ function update_image_hoc_getPrototypeOf(o) { update_image_hoc_getPrototypeOf =
|
|
|
46778
46708
|
var update_image_hoc_UpdateImageHOC = function UpdateImageHOC(WrappedComponent) {
|
|
46779
46709
|
var UpdateImageWrapper = /*#__PURE__*/function (_React$Component) {
|
|
46780
46710
|
update_image_hoc_inherits(UpdateImageWrapper, _React$Component);
|
|
46781
|
-
var _super = update_image_hoc_createSuper(UpdateImageWrapper);
|
|
46782
46711
|
function UpdateImageWrapper(props) {
|
|
46783
46712
|
var _this;
|
|
46784
46713
|
update_image_hoc_classCallCheck(this, UpdateImageWrapper);
|
|
46785
|
-
_this =
|
|
46714
|
+
_this = update_image_hoc_callSuper(this, UpdateImageWrapper, [props]);
|
|
46786
46715
|
lodash_bindall_default()(update_image_hoc_assertThisInitialized(_this), ['handleUpdateImage', 'handleUpdateBitmap', 'handleUpdateVector']);
|
|
46787
46716
|
return _this;
|
|
46788
46717
|
}
|
|
@@ -46957,15 +46886,15 @@ function paint_editor_typeof(o) { "@babel/helpers - typeof"; return paint_editor
|
|
|
46957
46886
|
function paint_editor_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
46958
46887
|
function paint_editor_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, paint_editor_toPropertyKey(descriptor.key), descriptor); } }
|
|
46959
46888
|
function paint_editor_createClass(Constructor, protoProps, staticProps) { if (protoProps) paint_editor_defineProperties(Constructor.prototype, protoProps); if (staticProps) paint_editor_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
46960
|
-
function paint_editor_toPropertyKey(
|
|
46961
|
-
function paint_editor_toPrimitive(
|
|
46962
|
-
function
|
|
46963
|
-
function paint_editor_setPrototypeOf(o, p) { paint_editor_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return paint_editor_setPrototypeOf(o, p); }
|
|
46964
|
-
function paint_editor_createSuper(Derived) { var hasNativeReflectConstruct = paint_editor_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = paint_editor_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = paint_editor_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return paint_editor_possibleConstructorReturn(this, result); }; }
|
|
46889
|
+
function paint_editor_toPropertyKey(t) { var i = paint_editor_toPrimitive(t, "string"); return "symbol" == paint_editor_typeof(i) ? i : String(i); }
|
|
46890
|
+
function paint_editor_toPrimitive(t, r) { if ("object" != paint_editor_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != paint_editor_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
46891
|
+
function paint_editor_callSuper(t, o, e) { return o = paint_editor_getPrototypeOf(o), paint_editor_possibleConstructorReturn(t, paint_editor_isNativeReflectConstruct() ? Reflect.construct(o, e || [], paint_editor_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
46965
46892
|
function paint_editor_possibleConstructorReturn(self, call) { if (call && (paint_editor_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return paint_editor_assertThisInitialized(self); }
|
|
46966
|
-
function
|
|
46967
|
-
function paint_editor_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
46893
|
+
function paint_editor_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (paint_editor_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
46968
46894
|
function paint_editor_getPrototypeOf(o) { paint_editor_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return paint_editor_getPrototypeOf(o); }
|
|
46895
|
+
function paint_editor_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
46896
|
+
function paint_editor_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) paint_editor_setPrototypeOf(subClass, superClass); }
|
|
46897
|
+
function paint_editor_setPrototypeOf(o, p) { paint_editor_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return paint_editor_setPrototypeOf(o, p); }
|
|
46969
46898
|
|
|
46970
46899
|
|
|
46971
46900
|
|
|
@@ -47034,11 +46963,10 @@ function paint_editor_getPrototypeOf(o) { paint_editor_getPrototypeOf = Object.s
|
|
|
47034
46963
|
*/
|
|
47035
46964
|
var paint_editor_PaintEditor = /*#__PURE__*/function (_React$Component) {
|
|
47036
46965
|
paint_editor_inherits(PaintEditor, _React$Component);
|
|
47037
|
-
var _super = paint_editor_createSuper(PaintEditor);
|
|
47038
46966
|
function PaintEditor(props) {
|
|
47039
46967
|
var _this;
|
|
47040
46968
|
paint_editor_classCallCheck(this, PaintEditor);
|
|
47041
|
-
_this =
|
|
46969
|
+
_this = paint_editor_callSuper(this, PaintEditor, [props]);
|
|
47042
46970
|
lodash_bindall_default()(paint_editor_assertThisInitialized(_this), ['switchModeForFormat', 'onMouseDown', 'onMouseUp', 'setCanvas', 'setTextArea', 'startEyeDroppingLoop', 'stopEyeDroppingLoop', 'handleSetSelectedItems', 'handleZoomIn', 'handleZoomOut', 'handleZoomReset']);
|
|
47043
46971
|
_this.state = {
|
|
47044
46972
|
canvas: null,
|