leafer-draw 1.1.1 → 1.2.0
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/dist/web.js +23 -11
- package/dist/web.min.js +1 -1
- package/dist/web.module.js +23 -11
- package/dist/web.module.min.js +1 -1
- package/package.json +2 -2
package/dist/web.js
CHANGED
|
@@ -1405,9 +1405,21 @@ var LeaferUI = (function (exports) {
|
|
|
1405
1405
|
};
|
|
1406
1406
|
const R = Run;
|
|
1407
1407
|
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1408
|
+
const Plugin = {
|
|
1409
|
+
list: {},
|
|
1410
|
+
add(name) {
|
|
1411
|
+
this.list[name] = true;
|
|
1412
|
+
},
|
|
1413
|
+
check(name, tip) {
|
|
1414
|
+
const rs = this.list[name];
|
|
1415
|
+
if (!rs && tip)
|
|
1416
|
+
this.need(name);
|
|
1417
|
+
return rs;
|
|
1418
|
+
},
|
|
1419
|
+
need(name) {
|
|
1420
|
+
console.error('need plugin: @leafer-in/' + name);
|
|
1421
|
+
}
|
|
1422
|
+
};
|
|
1411
1423
|
|
|
1412
1424
|
const debug$e = Debug.get('UICreator');
|
|
1413
1425
|
const UICreator = {
|
|
@@ -5632,10 +5644,10 @@ var LeaferUI = (function (exports) {
|
|
|
5632
5644
|
__updatePath() { }
|
|
5633
5645
|
__updateRenderPath() { }
|
|
5634
5646
|
getMotionPathData() {
|
|
5635
|
-
return
|
|
5647
|
+
return Plugin.need('path');
|
|
5636
5648
|
}
|
|
5637
5649
|
getMotionPoint(_motionDistance) {
|
|
5638
|
-
return
|
|
5650
|
+
return Plugin.need('path');
|
|
5639
5651
|
}
|
|
5640
5652
|
getMotionTotal() {
|
|
5641
5653
|
return 0;
|
|
@@ -5992,7 +6004,7 @@ var LeaferUI = (function (exports) {
|
|
|
5992
6004
|
}
|
|
5993
6005
|
}
|
|
5994
6006
|
|
|
5995
|
-
const version = "1.
|
|
6007
|
+
const version = "1.2.0";
|
|
5996
6008
|
|
|
5997
6009
|
const debug$5 = Debug.get('LeaferCanvas');
|
|
5998
6010
|
class LeaferCanvas extends LeaferCanvasBase {
|
|
@@ -6890,8 +6902,8 @@ var LeaferUI = (function (exports) {
|
|
|
6890
6902
|
const Effect = {};
|
|
6891
6903
|
const Export = {};
|
|
6892
6904
|
const State = {
|
|
6893
|
-
setStyleName(_leaf, _styleName, _value) { return
|
|
6894
|
-
set(_leaf, _stateName) { return
|
|
6905
|
+
setStyleName(_leaf, _styleName, _value) { return Plugin.need('state'); },
|
|
6906
|
+
set(_leaf, _stateName) { return Plugin.need('state'); }
|
|
6895
6907
|
};
|
|
6896
6908
|
const Transition = {
|
|
6897
6909
|
list: {},
|
|
@@ -7392,7 +7404,7 @@ var LeaferUI = (function (exports) {
|
|
|
7392
7404
|
drawer.rect(x, y, width, height);
|
|
7393
7405
|
}
|
|
7394
7406
|
animate(_keyframe, _options, _type, _isTemp) {
|
|
7395
|
-
return
|
|
7407
|
+
return Plugin.need('animate');
|
|
7396
7408
|
}
|
|
7397
7409
|
killAnimate(_type) { }
|
|
7398
7410
|
export(filename, options) {
|
|
@@ -7970,7 +7982,7 @@ var LeaferUI = (function (exports) {
|
|
|
7970
7982
|
this.requestRender();
|
|
7971
7983
|
}
|
|
7972
7984
|
zoom(_zoomType, _padding, _fixedScale) {
|
|
7973
|
-
return
|
|
7985
|
+
return Plugin.need('view');
|
|
7974
7986
|
}
|
|
7975
7987
|
getValidMove(moveX, moveY) { return { x: moveX, y: moveY }; }
|
|
7976
7988
|
getValidScale(changeScale) { return changeScale; }
|
|
@@ -10482,6 +10494,7 @@ var LeaferUI = (function (exports) {
|
|
|
10482
10494
|
exports.PathNumberCommandMap = PathNumberCommandMap;
|
|
10483
10495
|
exports.PenData = PenData;
|
|
10484
10496
|
exports.Platform = Platform;
|
|
10497
|
+
exports.Plugin = Plugin;
|
|
10485
10498
|
exports.Point = Point;
|
|
10486
10499
|
exports.PointHelper = PointHelper;
|
|
10487
10500
|
exports.PolygonData = PolygonData;
|
|
@@ -10538,7 +10551,6 @@ var LeaferUI = (function (exports) {
|
|
|
10538
10551
|
exports.layoutProcessor = layoutProcessor;
|
|
10539
10552
|
exports.maskType = maskType;
|
|
10540
10553
|
exports.naturalBoundsType = naturalBoundsType;
|
|
10541
|
-
exports.needPlugin = needPlugin;
|
|
10542
10554
|
exports.opacityType = opacityType;
|
|
10543
10555
|
exports.pathInputType = pathInputType;
|
|
10544
10556
|
exports.pathType = pathType;
|