@leafer-game/miniapp 1.6.1 → 1.6.2
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/miniapp.cjs +0 -1
- package/dist/miniapp.esm.js +0 -1
- package/dist/miniapp.module.js +109 -61
- package/dist/miniapp.module.min.js +1 -1
- package/dist/miniapp.module.min.js.map +1 -1
- package/package.json +10 -10
- package/dist/miniapp.cjs.map +0 -1
- package/dist/miniapp.esm.js.map +0 -1
- package/dist/miniapp.module.js.map +0 -1
package/dist/miniapp.cjs
CHANGED
package/dist/miniapp.esm.js
CHANGED
package/dist/miniapp.module.js
CHANGED
|
@@ -2589,7 +2589,11 @@ const BezierHelper = {
|
|
|
2589
2589
|
const point = {};
|
|
2590
2590
|
getPointAndSet(t, fromX, fromY, x1, y1, x2, y2, toX, toY, point);
|
|
2591
2591
|
return point;
|
|
2592
|
-
}
|
|
2592
|
+
},
|
|
2593
|
+
getDerivative(t, fromV, v1, v2, toV) {
|
|
2594
|
+
const o = 1 - t;
|
|
2595
|
+
return 3 * o * o * (v1 - fromV) + 6 * o * t * (v2 - v1) + 3 * t * t * (toV - v2);
|
|
2596
|
+
},
|
|
2593
2597
|
};
|
|
2594
2598
|
const { getPointAndSet, toTwoPointBounds: toTwoPointBounds$1, ellipse: ellipse$6 } = BezierHelper;
|
|
2595
2599
|
|
|
@@ -3770,8 +3774,11 @@ class LeaferImage {
|
|
|
3770
3774
|
load(onSuccess, onError) {
|
|
3771
3775
|
if (!this.loading) {
|
|
3772
3776
|
this.loading = true;
|
|
3777
|
+
let { loadImage, loadImageWithProgress } = Platform.origin, onProgress = this.config.showProgress && loadImageWithProgress && this.onProgress.bind(this);
|
|
3778
|
+
if (onProgress)
|
|
3779
|
+
loadImage = loadImageWithProgress;
|
|
3773
3780
|
Resource.tasker.add(() => __awaiter(this, void 0, void 0, function* () {
|
|
3774
|
-
return yield
|
|
3781
|
+
return yield loadImage(this.url, onProgress).then(img => this.setView(img)).catch((e) => {
|
|
3775
3782
|
this.error = e;
|
|
3776
3783
|
this.onComplete(false);
|
|
3777
3784
|
});
|
|
@@ -3796,6 +3803,9 @@ class LeaferImage {
|
|
|
3796
3803
|
this.view = img;
|
|
3797
3804
|
this.onComplete(true);
|
|
3798
3805
|
}
|
|
3806
|
+
onProgress(progress) {
|
|
3807
|
+
this.progress = progress;
|
|
3808
|
+
}
|
|
3799
3809
|
onComplete(isSuccess) {
|
|
3800
3810
|
let odd;
|
|
3801
3811
|
this.waitComplete.forEach((item, index) => {
|
|
@@ -4261,13 +4271,20 @@ const LeafHelper = {
|
|
|
4261
4271
|
if (leaf.isBranch) {
|
|
4262
4272
|
const { children } = leaf;
|
|
4263
4273
|
for (let i = 0, len = children.length; i < len; i++) {
|
|
4264
|
-
updateAllWorldOpacity
|
|
4274
|
+
updateAllWorldOpacity(children[i]);
|
|
4265
4275
|
}
|
|
4266
4276
|
}
|
|
4267
4277
|
},
|
|
4268
|
-
|
|
4269
|
-
|
|
4278
|
+
updateChange(leaf) {
|
|
4279
|
+
const layout = leaf.__layout;
|
|
4280
|
+
if (layout.stateStyleChanged)
|
|
4281
|
+
leaf.updateState();
|
|
4282
|
+
if (layout.opacityChanged)
|
|
4283
|
+
updateAllWorldOpacity(leaf);
|
|
4270
4284
|
leaf.__updateChange();
|
|
4285
|
+
},
|
|
4286
|
+
updateAllChange(leaf) {
|
|
4287
|
+
updateChange$1(leaf);
|
|
4271
4288
|
if (leaf.isBranch) {
|
|
4272
4289
|
const { children } = leaf;
|
|
4273
4290
|
for (let i = 0, len = children.length; i < len; i++) {
|
|
@@ -4403,7 +4420,7 @@ const LeafHelper = {
|
|
|
4403
4420
|
}
|
|
4404
4421
|
};
|
|
4405
4422
|
const L$1 = LeafHelper;
|
|
4406
|
-
const { updateAllMatrix: updateAllMatrix$4, updateMatrix: updateMatrix$3, updateAllWorldOpacity:
|
|
4423
|
+
const { updateAllMatrix: updateAllMatrix$4, updateMatrix: updateMatrix$3, updateAllWorldOpacity, updateAllChange: updateAllChange$1, updateChange: updateChange$1 } = L$1;
|
|
4407
4424
|
function getTempLocal(t, world) {
|
|
4408
4425
|
t.__layout.update();
|
|
4409
4426
|
return t.parent ? PointHelper.tempToInnerOf(world, t.parent.__world) : world;
|
|
@@ -6125,7 +6142,7 @@ class LeafLevelList {
|
|
|
6125
6142
|
}
|
|
6126
6143
|
}
|
|
6127
6144
|
|
|
6128
|
-
const version = "1.6.
|
|
6145
|
+
const version = "1.6.2";
|
|
6129
6146
|
|
|
6130
6147
|
class LeaferCanvas extends LeaferCanvasBase {
|
|
6131
6148
|
get allowBackgroundColor() { return false; }
|
|
@@ -6449,7 +6466,7 @@ class Watcher {
|
|
|
6449
6466
|
}
|
|
6450
6467
|
}
|
|
6451
6468
|
|
|
6452
|
-
const { updateAllMatrix: updateAllMatrix$2, updateBounds: updateOneBounds,
|
|
6469
|
+
const { updateAllMatrix: updateAllMatrix$2, updateBounds: updateOneBounds, updateChange: updateOneChange } = LeafHelper;
|
|
6453
6470
|
const { pushAllChildBranch, pushAllParent } = BranchHelper;
|
|
6454
6471
|
function updateMatrix$1(updateList, levelList) {
|
|
6455
6472
|
let layout;
|
|
@@ -6492,15 +6509,7 @@ function updateBounds$1(boundsList) {
|
|
|
6492
6509
|
});
|
|
6493
6510
|
}
|
|
6494
6511
|
function updateChange(updateList) {
|
|
6495
|
-
|
|
6496
|
-
updateList.list.forEach(leaf => {
|
|
6497
|
-
layout = leaf.__layout;
|
|
6498
|
-
if (layout.opacityChanged)
|
|
6499
|
-
updateAllWorldOpacity(leaf);
|
|
6500
|
-
if (layout.stateStyleChanged)
|
|
6501
|
-
setTimeout(() => layout.stateStyleChanged && leaf.updateState());
|
|
6502
|
-
leaf.__updateChange();
|
|
6503
|
-
});
|
|
6512
|
+
updateList.list.forEach(updateOneChange);
|
|
6504
6513
|
}
|
|
6505
6514
|
|
|
6506
6515
|
const { worldBounds } = LeafBoundsHelper;
|
|
@@ -7345,13 +7354,11 @@ class TextData extends UIData {
|
|
|
7345
7354
|
setFontWeight(value) {
|
|
7346
7355
|
if (typeof value === 'string') {
|
|
7347
7356
|
this.__setInput('fontWeight', value);
|
|
7348
|
-
|
|
7349
|
-
}
|
|
7350
|
-
else {
|
|
7351
|
-
if (this.__input)
|
|
7352
|
-
this.__removeInput('fontWeight');
|
|
7353
|
-
this._fontWeight = value;
|
|
7357
|
+
value = fontWeightMap[value] || 400;
|
|
7354
7358
|
}
|
|
7359
|
+
else if (this.__input)
|
|
7360
|
+
this.__removeInput('fontWeight');
|
|
7361
|
+
this._fontWeight = value;
|
|
7355
7362
|
}
|
|
7356
7363
|
setBoxStyle(value) {
|
|
7357
7364
|
let t = this.__leaf, box = t.__box;
|
|
@@ -7678,6 +7685,9 @@ let UI = UI_1 = class UI extends Leaf {
|
|
|
7678
7685
|
else
|
|
7679
7686
|
drawer.rect(x, y, width, height);
|
|
7680
7687
|
}
|
|
7688
|
+
drawImagePlaceholder(canvas, _image) {
|
|
7689
|
+
Paint.fill(this.__.placeholderColor, this, canvas);
|
|
7690
|
+
}
|
|
7681
7691
|
animate(_keyframe, _options, _type, _isTemp) {
|
|
7682
7692
|
return Plugin.need('animate');
|
|
7683
7693
|
}
|
|
@@ -7914,6 +7924,9 @@ __decorate([
|
|
|
7914
7924
|
__decorate([
|
|
7915
7925
|
effectType()
|
|
7916
7926
|
], UI.prototype, "filter", void 0);
|
|
7927
|
+
__decorate([
|
|
7928
|
+
surfaceType()
|
|
7929
|
+
], UI.prototype, "placeholderColor", void 0);
|
|
7917
7930
|
__decorate([
|
|
7918
7931
|
dataType({})
|
|
7919
7932
|
], UI.prototype, "data", void 0);
|
|
@@ -8744,10 +8757,11 @@ let Image = class Image extends Rect {
|
|
|
8744
8757
|
get ready() { return this.image ? this.image.ready : false; }
|
|
8745
8758
|
constructor(data) {
|
|
8746
8759
|
super(data);
|
|
8747
|
-
this.
|
|
8748
|
-
|
|
8749
|
-
|
|
8750
|
-
|
|
8760
|
+
this.on_(ImageEvent.LOADED, this.__onLoaded, this);
|
|
8761
|
+
}
|
|
8762
|
+
__onLoaded(e) {
|
|
8763
|
+
if (e.attrName === 'fill' && e.attrValue.url === this.url)
|
|
8764
|
+
this.image = e.image;
|
|
8751
8765
|
}
|
|
8752
8766
|
destroy() {
|
|
8753
8767
|
this.image = null;
|
|
@@ -8861,7 +8875,7 @@ let Text = class Text extends UI {
|
|
|
8861
8875
|
data.__baseLine = data.__lineHeight - (data.__lineHeight - fontSize * 0.7) / 2;
|
|
8862
8876
|
data.__font = `${italic ? 'italic ' : ''}${textCase === 'small-caps' ? 'small-caps ' : ''}${fontWeight !== 'normal' ? fontWeight + ' ' : ''}${fontSize}px ${fontFamily}`;
|
|
8863
8877
|
data.__clipText = textOverflow !== 'show' && !data.__autoSize;
|
|
8864
|
-
data.__textDrawData = TextConvert.getDrawData(data.text, this.__);
|
|
8878
|
+
data.__textDrawData = TextConvert.getDrawData((data.__isPlacehold = data.placeholder && data.text === '') ? data.placeholder : data.text, this.__);
|
|
8865
8879
|
}
|
|
8866
8880
|
__updateBoxBounds() {
|
|
8867
8881
|
const data = this.__;
|
|
@@ -8959,6 +8973,9 @@ __decorate([
|
|
|
8959
8973
|
__decorate([
|
|
8960
8974
|
boundsType('')
|
|
8961
8975
|
], Text.prototype, "text", void 0);
|
|
8976
|
+
__decorate([
|
|
8977
|
+
boundsType('')
|
|
8978
|
+
], Text.prototype, "placeholder", void 0);
|
|
8962
8979
|
__decorate([
|
|
8963
8980
|
boundsType('caption')
|
|
8964
8981
|
], Text.prototype, "fontFamily", void 0);
|
|
@@ -10489,8 +10506,10 @@ class Interaction extends InteractionBase {
|
|
|
10489
10506
|
}
|
|
10490
10507
|
|
|
10491
10508
|
function fillText(ui, canvas) {
|
|
10492
|
-
|
|
10493
|
-
|
|
10509
|
+
const data = ui.__, { rows, decorationY } = data.__textDrawData;
|
|
10510
|
+
if (data.__isPlacehold && data.placeholderColor)
|
|
10511
|
+
canvas.fillStyle = data.placeholderColor;
|
|
10512
|
+
let row;
|
|
10494
10513
|
for (let i = 0, len = rows.length; i < len; i++) {
|
|
10495
10514
|
row = rows[i];
|
|
10496
10515
|
if (row.text)
|
|
@@ -10499,7 +10518,7 @@ function fillText(ui, canvas) {
|
|
|
10499
10518
|
row.data.forEach(charData => { canvas.fillText(charData.char, charData.x, row.y); });
|
|
10500
10519
|
}
|
|
10501
10520
|
if (decorationY) {
|
|
10502
|
-
const { decorationColor, decorationHeight } = data;
|
|
10521
|
+
const { decorationColor, decorationHeight } = data.__textDrawData;
|
|
10503
10522
|
if (decorationColor)
|
|
10504
10523
|
canvas.fillStyle = decorationColor;
|
|
10505
10524
|
rows.forEach(row => decorationY.forEach(value => canvas.fillRect(row.x, row.y + value, row.width, decorationHeight)));
|
|
@@ -10508,38 +10527,44 @@ function fillText(ui, canvas) {
|
|
|
10508
10527
|
|
|
10509
10528
|
function fill(fill, ui, canvas) {
|
|
10510
10529
|
canvas.fillStyle = fill;
|
|
10511
|
-
|
|
10530
|
+
fillPathOrText(ui, canvas);
|
|
10512
10531
|
}
|
|
10513
10532
|
function fills(fills, ui, canvas) {
|
|
10514
10533
|
let item;
|
|
10515
|
-
const { windingRule, __font } = ui.__;
|
|
10516
10534
|
for (let i = 0, len = fills.length; i < len; i++) {
|
|
10517
10535
|
item = fills[i];
|
|
10518
|
-
if (item.image
|
|
10519
|
-
|
|
10520
|
-
|
|
10521
|
-
|
|
10522
|
-
|
|
10523
|
-
|
|
10524
|
-
|
|
10525
|
-
if (item.blendMode)
|
|
10526
|
-
canvas.blendMode = item.blendMode;
|
|
10527
|
-
__font ? fillText(ui, canvas) : (windingRule ? canvas.fill(windingRule) : canvas.fill());
|
|
10528
|
-
canvas.restore();
|
|
10536
|
+
if (item.image) {
|
|
10537
|
+
if (PaintImage.checkImage(ui, canvas, item, !ui.__.__font))
|
|
10538
|
+
continue;
|
|
10539
|
+
if (!item.style) {
|
|
10540
|
+
if (!i && item.image.isPlacehold)
|
|
10541
|
+
ui.drawImagePlaceholder(canvas, item.image);
|
|
10542
|
+
continue;
|
|
10529
10543
|
}
|
|
10530
|
-
|
|
10531
|
-
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
|
|
10535
|
-
|
|
10536
|
-
|
|
10537
|
-
|
|
10538
|
-
|
|
10544
|
+
}
|
|
10545
|
+
canvas.fillStyle = item.style;
|
|
10546
|
+
if (item.transform) {
|
|
10547
|
+
canvas.save();
|
|
10548
|
+
canvas.transform(item.transform);
|
|
10549
|
+
if (item.blendMode)
|
|
10550
|
+
canvas.blendMode = item.blendMode;
|
|
10551
|
+
fillPathOrText(ui, canvas);
|
|
10552
|
+
canvas.restore();
|
|
10553
|
+
}
|
|
10554
|
+
else {
|
|
10555
|
+
if (item.blendMode) {
|
|
10556
|
+
canvas.saveBlendMode(item.blendMode);
|
|
10557
|
+
fillPathOrText(ui, canvas);
|
|
10558
|
+
canvas.restoreBlendMode();
|
|
10539
10559
|
}
|
|
10560
|
+
else
|
|
10561
|
+
fillPathOrText(ui, canvas);
|
|
10540
10562
|
}
|
|
10541
10563
|
}
|
|
10542
10564
|
}
|
|
10565
|
+
function fillPathOrText(ui, canvas) {
|
|
10566
|
+
ui.__.__font ? fillText(ui, canvas) : (ui.__.windingRule ? canvas.fill(ui.__.windingRule) : canvas.fill());
|
|
10567
|
+
}
|
|
10543
10568
|
|
|
10544
10569
|
function strokeText(stroke, ui, canvas) {
|
|
10545
10570
|
const { strokeAlign } = ui.__;
|
|
@@ -10779,6 +10804,7 @@ const PaintModule = {
|
|
|
10779
10804
|
compute,
|
|
10780
10805
|
fill,
|
|
10781
10806
|
fills,
|
|
10807
|
+
fillPathOrText,
|
|
10782
10808
|
fillText,
|
|
10783
10809
|
stroke,
|
|
10784
10810
|
strokes,
|
|
@@ -10971,6 +10997,13 @@ function image(ui, attrName, paint, boxBounds, firstUse) {
|
|
|
10971
10997
|
onLoadError(ui, event, error);
|
|
10972
10998
|
leafPaint.loadId = null;
|
|
10973
10999
|
});
|
|
11000
|
+
if (ui.placeholderColor)
|
|
11001
|
+
setTimeout(() => {
|
|
11002
|
+
if (!(image.ready || image.isPlacehold)) {
|
|
11003
|
+
image.isPlacehold = true;
|
|
11004
|
+
ui.forceUpdate('surface');
|
|
11005
|
+
}
|
|
11006
|
+
}, 100);
|
|
10974
11007
|
}
|
|
10975
11008
|
return leafPaint;
|
|
10976
11009
|
}
|
|
@@ -12177,7 +12210,10 @@ function stateType(defaultValue, styleName) {
|
|
|
12177
12210
|
return decorateLeafAttr(defaultValue, (key) => attr({
|
|
12178
12211
|
set(value) {
|
|
12179
12212
|
this.__setAttr(key, value);
|
|
12180
|
-
|
|
12213
|
+
if (this.leaferIsReady)
|
|
12214
|
+
styleName ? State.setStyleName(this, styleName, value) : State.set(this, value);
|
|
12215
|
+
else
|
|
12216
|
+
this.__layout.stateStyleChanged = true;
|
|
12181
12217
|
}
|
|
12182
12218
|
}));
|
|
12183
12219
|
}
|
|
@@ -12274,6 +12310,9 @@ function getStyle(leaf) {
|
|
|
12274
12310
|
const selectedStyle = style.selectedStyle || leaf.selectedStyle;
|
|
12275
12311
|
if (selectedStyle && State.isSelected(leaf, button))
|
|
12276
12312
|
exist = assign(style, selectedStyle);
|
|
12313
|
+
const placeholderStyle = style.placeholderStyle || leaf.placeholderStyle;
|
|
12314
|
+
if (placeholderStyle && State.isPlacehold(leaf, button))
|
|
12315
|
+
exist = assign(style, placeholderStyle);
|
|
12277
12316
|
if (State.isDisabled(leaf, button)) {
|
|
12278
12317
|
const disabledStyle = style.disabledStyle || leaf.disabledStyle;
|
|
12279
12318
|
if (disabledStyle)
|
|
@@ -12453,12 +12492,14 @@ State.animateExcludes = {
|
|
|
12453
12492
|
transitionOut: 1,
|
|
12454
12493
|
states: 1,
|
|
12455
12494
|
state: 1,
|
|
12495
|
+
placeholder: 1,
|
|
12456
12496
|
normalStyle: 1,
|
|
12457
12497
|
hoverStyle: 1,
|
|
12458
12498
|
pressStyle: 1,
|
|
12459
12499
|
focusStyle: 1,
|
|
12460
12500
|
selectedStyle: 1,
|
|
12461
|
-
disabledStyle: 1
|
|
12501
|
+
disabledStyle: 1,
|
|
12502
|
+
placeholderStyle: 1
|
|
12462
12503
|
};
|
|
12463
12504
|
State.isState = function (state, leaf, button) { return checkState(state, leaf, button); };
|
|
12464
12505
|
State.isSelected = function (leaf, button) { return checkFixedState('selected', leaf, button); };
|
|
@@ -12466,6 +12507,7 @@ State.isDisabled = function (leaf, button) { return checkFixedState('disabled',
|
|
|
12466
12507
|
State.isFocus = function (leaf, button) { return checkPointerState('isFocus', leaf, button); };
|
|
12467
12508
|
State.isHover = function (leaf, button) { return checkPointerState('isHover', leaf, button); };
|
|
12468
12509
|
State.isPress = function (leaf, button) { return checkPointerState('isPress', leaf, button); };
|
|
12510
|
+
State.isPlacehold = function (leaf, _button) { return leaf.__.__isPlacehold; };
|
|
12469
12511
|
State.isDrag = function (leaf, button) { return checkPointerState('isDrag', leaf, button); };
|
|
12470
12512
|
State.setStyleName = function (leaf, stateType, value) { value ? setState(leaf, stateType, leaf[stateType]) : unsetState(leaf, stateType, leaf[stateType]); };
|
|
12471
12513
|
State.set = function (leaf, stateName) { const style = leaf.states[stateName]; style ? setState(leaf, stateName, style) : unsetState(leaf, stateName, style); };
|
|
@@ -12483,6 +12525,7 @@ UI.addAttr('pressStyle', undefined, stateStyleType);
|
|
|
12483
12525
|
UI.addAttr('focusStyle', undefined, stateStyleType);
|
|
12484
12526
|
UI.addAttr('selectedStyle', undefined, stateStyleType);
|
|
12485
12527
|
UI.addAttr('disabledStyle', undefined, stateStyleType);
|
|
12528
|
+
UI.addAttr('placeholderStyle', undefined, stateStyleType);
|
|
12486
12529
|
UI.addAttr('button', false, dataType);
|
|
12487
12530
|
ui$3.focus = function (value = true) {
|
|
12488
12531
|
this.waitLeafer(() => {
|
|
@@ -12501,6 +12544,15 @@ ui$3.focus = function (value = true) {
|
|
|
12501
12544
|
ui$3.updateState = function () {
|
|
12502
12545
|
State.updateStyle(this, undefined, 'in');
|
|
12503
12546
|
};
|
|
12547
|
+
const text = Text.prototype, textKey = 'text';
|
|
12548
|
+
defineKey(text, textKey, Object.assign(Object.assign({}, getDescriptor(text, textKey)), { set(value) {
|
|
12549
|
+
const t = this, oldValue = t.text;
|
|
12550
|
+
if (t.__setAttr(textKey, value)) {
|
|
12551
|
+
doBoundsType(t);
|
|
12552
|
+
if (t.placeholderStyle && t.placeholder && (oldValue === '' || value === ''))
|
|
12553
|
+
t.__layout.stateStyleChanged = true;
|
|
12554
|
+
}
|
|
12555
|
+
} }));
|
|
12504
12556
|
|
|
12505
12557
|
const { cos, sin, pow, sqrt: sqrt$1, abs, ceil, floor, round: round$2, PI } = Math;
|
|
12506
12558
|
const PIx5 = PI * 5;
|
|
@@ -13555,6 +13607,7 @@ ui$2.__runAnimation = function (type, complete) {
|
|
|
13555
13607
|
const gaussNodes = [0.1488743389, 0.4333953941, 0.6794095682, 0.8650633666, 0.9739065285];
|
|
13556
13608
|
const gaussWeights = [0.2955242247, 0.2692667193, 0.2190863625, 0.1494513491, 0.0666713443];
|
|
13557
13609
|
const { sqrt } = Math;
|
|
13610
|
+
const { getDerivative } = BezierHelper;
|
|
13558
13611
|
const HighBezierHelper = {
|
|
13559
13612
|
getDistance(fromX, fromY, x1, y1, x2, y2, toX, toY, t = 1) {
|
|
13560
13613
|
let distance = 0, t1, t2, d1X, d1Y, d2X, d2Y, half = t / 2;
|
|
@@ -13569,10 +13622,6 @@ const HighBezierHelper = {
|
|
|
13569
13622
|
}
|
|
13570
13623
|
return distance * half;
|
|
13571
13624
|
},
|
|
13572
|
-
getDerivative(t, fromV, v1, v2, toV) {
|
|
13573
|
-
const o = 1 - t;
|
|
13574
|
-
return 3 * o * o * (v1 - fromV) + 6 * o * t * (v2 - v1) + 3 * t * t * (toV - v2);
|
|
13575
|
-
},
|
|
13576
13625
|
getRotation(t, fromX, fromY, x1, y1, x2, y2, toX, toY) {
|
|
13577
13626
|
const dx = getDerivative(t, fromX, x1, x2, toX);
|
|
13578
13627
|
const dy = getDerivative(t, fromY, y1, y2, toY);
|
|
@@ -13601,7 +13650,7 @@ const HighBezierHelper = {
|
|
|
13601
13650
|
data.push(PathCommandMap.C, ax, ay, bx, by, cx, cy);
|
|
13602
13651
|
}
|
|
13603
13652
|
};
|
|
13604
|
-
const {
|
|
13653
|
+
const { getDistance } = HighBezierHelper;
|
|
13605
13654
|
|
|
13606
13655
|
const { M, L, C, Z } = PathCommandMap;
|
|
13607
13656
|
const tempPoint = {}, tempFrom = {};
|
|
@@ -14042,4 +14091,3 @@ Creator.finder = function (target) {
|
|
|
14042
14091
|
};
|
|
14043
14092
|
|
|
14044
14093
|
export { AlignHelper, Animate, AnimateEasing, AnimateEvent, AnimateList, Answer, App, AroundHelper, AutoBounds, BezierHelper, Bounds, BoundsHelper, Box, BoxData, Branch, BranchHelper, BranchRender, Canvas, CanvasData, CanvasManager, ChildEvent, ColorConvert, Creator, Cursor, DataHelper, Debug, Direction4, Direction9, DragEvent, Dragger, DropEvent, Effect, Ellipse, EllipseData, EllipseHelper, Event, EventCreator, Eventer, Export, FileHelper, Filter, Finder, Frame, FrameData, Group, GroupData, HighBezierHelper, HighCurveHelper, HitCanvasManager, Image, ImageData, ImageEvent, ImageManager, IncrementId, Interaction, InteractionBase, InteractionHelper, KeyEvent, Keyboard, LayoutEvent, Layouter, Leaf, LeafBounds, LeafBoundsHelper, LeafData, LeafDataProxy, LeafEventer, LeafHelper, LeafLayout, LeafLevelList, LeafList, LeafMatrix, LeafRender, Leafer, LeaferCanvas, LeaferCanvasBase, LeaferData, LeaferEvent, LeaferImage, Line, LineData, MathHelper, Matrix, MatrixHelper, MoveEvent, MyDragEvent, MyImage, MyPointerEvent, NeedConvertToCanvasCommandMap, OneRadian, PI2, PI_2, Paint, PaintGradient, PaintImage, Path, PathArrow, PathBounds, PathCommandDataHelper, PathCommandMap, PathConvert, PathCorner, PathCreator, PathData, PathDrawer, PathHelper, PathNumberCommandLengthMap, PathNumberCommandMap, Pen, PenData, Picker, Platform, Plugin, Point, PointHelper, PointerButton, PointerEvent, Polygon, PolygonData, PropertyEvent, Rect, RectData, RectHelper, RectRender, RenderEvent, Renderer, ResizeEvent, Resource, Robot, RobotData, RotateEvent, Run, Selector, Star, StarData, State, StringNumberMap, SwipeEvent, TaskItem, TaskProcessor, Text, TextConvert, TextData, Transition, TwoPointBoundsHelper, UI, UIBounds, UICreator, UIData, UIEvent, UIRender, UnitConvert, WaitHelper, WatchEvent, Watcher, ZoomEvent, affectRenderBoundsType, affectStrokeBoundsType, attr, autoLayoutType, boundsType, canvasPatch, canvasSizeAttrs, cursorType, dataProcessor, dataType, decorateLeafAttr, defineDataProcessor, defineKey, defineLeafAttr, doBoundsType, doStrokeType, effectType, emptyData, eraserType, getBoundsData, getDescriptor, getMatrixData, getPointData, hitType, isEmptyData, isNull, layoutProcessor, maskType, motionPathType, naturalBoundsType, opacityType, pathInputType, pathType, pen, positionType, registerUI, registerUIEvent, resizeType, rewrite, rewriteAble, rotationType, scaleType, sortType, stateStyleType, stateType, strokeType, surfaceType, tempBounds$1 as tempBounds, tempMatrix, tempPoint$4 as tempPoint, useCanvas, useModule, version, visibleType, zoomLayerType };
|
|
14045
|
-
//# sourceMappingURL=miniapp.module.js.map
|