@visactor/vrender 1.0.13-alpha.1 → 1.0.14-alpha.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/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/index.es.js +81 -38
- package/dist/index.js +81 -37
- package/dist/index.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -4615,6 +4615,34 @@
|
|
|
4615
4615
|
}
|
|
4616
4616
|
return c;
|
|
4617
4617
|
}
|
|
4618
|
+
static processColorStops(colorStops) {
|
|
4619
|
+
if (!colorStops || 0 === colorStops.length) return [];
|
|
4620
|
+
if (colorStops.some(item => item.length)) {
|
|
4621
|
+
const stops = colorStops.map(item => ({
|
|
4622
|
+
color: item.value,
|
|
4623
|
+
offset: item.length ? parseFloat(item.length.value) / 100 : -1
|
|
4624
|
+
}));
|
|
4625
|
+
stops[0].offset < 0 && (stops[0].offset = 0), stops[stops.length - 1].offset < 0 && (stops[stops.length - 1].offset = 1);
|
|
4626
|
+
for (let i = 1; i < stops.length - 1; i++) if (stops[i].offset < 0) {
|
|
4627
|
+
const prevWithOffsetIdx = i - 1;
|
|
4628
|
+
let nextWithOffsetIdx = i + 1;
|
|
4629
|
+
for (; nextWithOffsetIdx < stops.length && stops[nextWithOffsetIdx].offset < 0;) nextWithOffsetIdx++;
|
|
4630
|
+
const startOffset = stops[prevWithOffsetIdx].offset,
|
|
4631
|
+
endOffset = stops[nextWithOffsetIdx].offset,
|
|
4632
|
+
unspecCount = nextWithOffsetIdx - prevWithOffsetIdx;
|
|
4633
|
+
for (let j = 1; j < unspecCount; j++) stops[prevWithOffsetIdx + j].offset = startOffset + (endOffset - startOffset) * j / unspecCount;
|
|
4634
|
+
i = nextWithOffsetIdx - 1;
|
|
4635
|
+
}
|
|
4636
|
+
return stops;
|
|
4637
|
+
}
|
|
4638
|
+
return colorStops.map((item, index) => {
|
|
4639
|
+
const offset = colorStops.length > 1 ? index / (colorStops.length - 1) : 0;
|
|
4640
|
+
return {
|
|
4641
|
+
color: item.value,
|
|
4642
|
+
offset: offset
|
|
4643
|
+
};
|
|
4644
|
+
});
|
|
4645
|
+
}
|
|
4618
4646
|
static ParseConic(datum) {
|
|
4619
4647
|
const {
|
|
4620
4648
|
orientation: orientation,
|
|
@@ -4628,10 +4656,7 @@
|
|
|
4628
4656
|
y: .5,
|
|
4629
4657
|
startAngle: sa,
|
|
4630
4658
|
endAngle: sa + pi2,
|
|
4631
|
-
stops:
|
|
4632
|
-
color: item.value,
|
|
4633
|
-
offset: parseFloat(item.length.value) / 100
|
|
4634
|
-
}))
|
|
4659
|
+
stops: GradientParser.processColorStops(colorStops)
|
|
4635
4660
|
};
|
|
4636
4661
|
}
|
|
4637
4662
|
static ParseRadial(datum) {
|
|
@@ -4646,10 +4671,7 @@
|
|
|
4646
4671
|
y1: .5,
|
|
4647
4672
|
r0: 0,
|
|
4648
4673
|
r1: 1,
|
|
4649
|
-
stops:
|
|
4650
|
-
color: item.value,
|
|
4651
|
-
offset: parseFloat(item.length.value) / 100
|
|
4652
|
-
}))
|
|
4674
|
+
stops: GradientParser.processColorStops(colorStops)
|
|
4653
4675
|
};
|
|
4654
4676
|
}
|
|
4655
4677
|
static ParseLinear(datum) {
|
|
@@ -4671,10 +4693,7 @@
|
|
|
4671
4693
|
y0: y0,
|
|
4672
4694
|
x1: x1,
|
|
4673
4695
|
y1: y1,
|
|
4674
|
-
stops:
|
|
4675
|
-
color: item.value,
|
|
4676
|
-
offset: parseFloat(item.length.value) / 100
|
|
4677
|
-
}))
|
|
4696
|
+
stops: GradientParser.processColorStops(colorStops)
|
|
4678
4697
|
};
|
|
4679
4698
|
}
|
|
4680
4699
|
}
|
|
@@ -4880,6 +4899,9 @@
|
|
|
4880
4899
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4881
4900
|
};
|
|
4882
4901
|
let ATextMeasure = class {
|
|
4902
|
+
constructor() {
|
|
4903
|
+
this.id = "ATextMeasure";
|
|
4904
|
+
}
|
|
4883
4905
|
configure(service, env) {
|
|
4884
4906
|
this.canvas = service.canvas, this.context = service.context, service.bindTextMeasure(this);
|
|
4885
4907
|
}
|
|
@@ -5272,7 +5294,11 @@
|
|
|
5272
5294
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5273
5295
|
};
|
|
5274
5296
|
const TextMeasureContribution = Symbol.for("TextMeasureContribution");
|
|
5275
|
-
exports.DefaultTextMeasureContribution = class DefaultTextMeasureContribution extends ATextMeasure {
|
|
5297
|
+
exports.DefaultTextMeasureContribution = class DefaultTextMeasureContribution extends ATextMeasure {
|
|
5298
|
+
constructor() {
|
|
5299
|
+
super(...arguments), this.id = "DefaultTextMeasureContribution";
|
|
5300
|
+
}
|
|
5301
|
+
};
|
|
5276
5302
|
exports.DefaultTextMeasureContribution = __decorate$1L([injectable()], exports.DefaultTextMeasureContribution);
|
|
5277
5303
|
|
|
5278
5304
|
const container = new Container();
|
|
@@ -5859,13 +5885,17 @@
|
|
|
5859
5885
|
return this.tryInitCanvas(), this._context;
|
|
5860
5886
|
}
|
|
5861
5887
|
constructor(contributions) {
|
|
5862
|
-
this.contributions = contributions, this.configured = !1, this.global = application.global, this.global.hooks.onSetEnv.tap("graphic-util", (lastEnv, env, global) => {
|
|
5888
|
+
this.contributions = contributions, this.configured = !1, this.global = application.global, this._textMeasureMap = new Map(), this.global.hooks.onSetEnv.tap("graphic-util", (lastEnv, env, global) => {
|
|
5863
5889
|
this.configured = !1, this.configure(global, env);
|
|
5864
5890
|
});
|
|
5865
5891
|
}
|
|
5866
5892
|
get textMeasure() {
|
|
5867
5893
|
return this._textMeasure || this.configure(this.global, this.global.env), this._textMeasure;
|
|
5868
5894
|
}
|
|
5895
|
+
getTextMeasureInstance(textMeasureId) {
|
|
5896
|
+
if (!textMeasureId) return this.textMeasure;
|
|
5897
|
+
return this._textMeasureMap.get(textMeasureId) || this.textMeasure;
|
|
5898
|
+
}
|
|
5869
5899
|
configure(global, env) {
|
|
5870
5900
|
this.configured || (this.contributions.getContributions().forEach(contribution => {
|
|
5871
5901
|
contribution.configure(this, env);
|
|
@@ -5878,7 +5908,7 @@
|
|
|
5878
5908
|
}
|
|
5879
5909
|
}
|
|
5880
5910
|
bindTextMeasure(tm) {
|
|
5881
|
-
this._textMeasure = tm;
|
|
5911
|
+
this._textMeasure && "DefaultTextMeasureContribution" !== tm.id || (this._textMeasure = tm), this._textMeasureMap.has(tm.id) || this._textMeasureMap.set(tm.id, tm);
|
|
5882
5912
|
}
|
|
5883
5913
|
measureText(text, tc, method = "native") {
|
|
5884
5914
|
var _a;
|
|
@@ -10770,7 +10800,7 @@
|
|
|
10770
10800
|
return fontSize ? .1 * fontSize : 0;
|
|
10771
10801
|
}
|
|
10772
10802
|
updateHorizontalMultilineAABBBounds(text) {
|
|
10773
|
-
var _a;
|
|
10803
|
+
var _a, _b;
|
|
10774
10804
|
const textTheme = this.getGraphicTheme(),
|
|
10775
10805
|
attribute = this.attribute,
|
|
10776
10806
|
{
|
|
@@ -10797,7 +10827,7 @@
|
|
|
10797
10827
|
const bbox = this.cache.layoutData.bbox;
|
|
10798
10828
|
return this._AABBBounds.set(bbox.xOffset, bbox.yOffset, bbox.xOffset + bbox.width, bbox.yOffset + bbox.height), stroke && this._AABBBounds.expand(lineWidth / 2), this._AABBBounds;
|
|
10799
10829
|
}
|
|
10800
|
-
const textMeasure = application.graphicUtil.
|
|
10830
|
+
const textMeasure = application.graphicUtil.getTextMeasureInstance(this.textMeasureId || (null === (_b = this.stage) || void 0 === _b ? void 0 : _b.textMeasureId)),
|
|
10801
10831
|
layoutData = new CanvasTextLayout(fontFamily, {
|
|
10802
10832
|
fontSize: fontSize,
|
|
10803
10833
|
fontWeight: fontWeight,
|
|
@@ -10815,7 +10845,7 @@
|
|
|
10815
10845
|
return this.cache.layoutData = layoutData, this.clearUpdateShapeTag(), this._AABBBounds.set(bbox.xOffset, bbox.yOffset, bbox.xOffset + bbox.width, bbox.yOffset + bbox.height), stroke && this._AABBBounds.expand(lineWidth / 2), this._AABBBounds;
|
|
10816
10846
|
}
|
|
10817
10847
|
updateWrapAABBBounds(text) {
|
|
10818
|
-
var _a, _b, _c;
|
|
10848
|
+
var _a, _b, _c, _d;
|
|
10819
10849
|
const textTheme = this.getGraphicTheme(),
|
|
10820
10850
|
{
|
|
10821
10851
|
fontFamily = textTheme.fontFamily,
|
|
@@ -10841,7 +10871,7 @@
|
|
|
10841
10871
|
const bbox = this.cache.layoutData.bbox;
|
|
10842
10872
|
return this._AABBBounds.set(bbox.xOffset, bbox.yOffset, bbox.xOffset + bbox.width, bbox.yOffset + bbox.height), stroke && this._AABBBounds.expand(lineWidth / 2), this._AABBBounds;
|
|
10843
10873
|
}
|
|
10844
|
-
const textMeasure = application.graphicUtil.
|
|
10874
|
+
const textMeasure = application.graphicUtil.getTextMeasureInstance(this.textMeasureId || (null === (_b = this.stage) || void 0 === _b ? void 0 : _b.textMeasureId)),
|
|
10845
10875
|
textOptions = {
|
|
10846
10876
|
fontSize: fontSize,
|
|
10847
10877
|
fontWeight: fontWeight,
|
|
@@ -10873,7 +10903,7 @@
|
|
|
10873
10903
|
if ("" !== str && "" === clip.str || clip.wordBreaked) {
|
|
10874
10904
|
if (ellipsis) {
|
|
10875
10905
|
const clipEllipsis = textMeasure.clipTextWithSuffix(str, textOptions, maxLineWidth, ellipsis, !1, suffixPosition);
|
|
10876
|
-
clip.str = null !== (
|
|
10906
|
+
clip.str = null !== (_c = clipEllipsis.str) && void 0 !== _c ? _c : "", clip.width = null !== (_d = clipEllipsis.width) && void 0 !== _d ? _d : 0;
|
|
10877
10907
|
} else clip.str = "", clip.width = 0;
|
|
10878
10908
|
needCut = !1;
|
|
10879
10909
|
}
|
|
@@ -10936,9 +10966,9 @@
|
|
|
10936
10966
|
return this.cache.layoutData = layoutData, this.clearUpdateShapeTag(), this._AABBBounds.set(bbox.xOffset, bbox.yOffset, bbox.xOffset + bbox.width, bbox.yOffset + bbox.height), stroke && this._AABBBounds.expand(lineWidth / 2), this._AABBBounds;
|
|
10937
10967
|
}
|
|
10938
10968
|
updateVerticalMultilineAABBBounds(text) {
|
|
10939
|
-
var _a, _b;
|
|
10969
|
+
var _a, _b, _c;
|
|
10940
10970
|
const textTheme = this.getGraphicTheme(),
|
|
10941
|
-
textMeasure = application.graphicUtil.
|
|
10971
|
+
textMeasure = application.graphicUtil.getTextMeasureInstance(this.textMeasureId || (null === (_a = this.stage) || void 0 === _a ? void 0 : _a.textMeasureId));
|
|
10942
10972
|
let width;
|
|
10943
10973
|
const attribute = this.attribute,
|
|
10944
10974
|
{
|
|
@@ -10959,7 +10989,7 @@
|
|
|
10959
10989
|
} = attribute;
|
|
10960
10990
|
if (!verticalMode) {
|
|
10961
10991
|
const t = textAlign;
|
|
10962
|
-
textAlign = null !== (
|
|
10992
|
+
textAlign = null !== (_b = Text.baselineMapAlign[textBaseline]) && void 0 !== _b ? _b : "left", textBaseline = null !== (_c = Text.alignMapBaseline[t]) && void 0 !== _c ? _c : "top";
|
|
10963
10993
|
}
|
|
10964
10994
|
if (width = 0, !this.shouldUpdateShape() && this.cache) {
|
|
10965
10995
|
this.cache.verticalList.forEach(item => {
|
|
@@ -11073,7 +11103,7 @@
|
|
|
11073
11103
|
return isArray$1(text) ? !text.every(t => null == t || "" === t) : null != text && "" !== text;
|
|
11074
11104
|
}
|
|
11075
11105
|
updateMultilineAABBBounds(text) {
|
|
11076
|
-
var _a, _b, _c, _d;
|
|
11106
|
+
var _a, _b, _c, _d, _e;
|
|
11077
11107
|
const textTheme = this.getGraphicTheme(),
|
|
11078
11108
|
{
|
|
11079
11109
|
fontFamily = textTheme.fontFamily,
|
|
@@ -11097,7 +11127,7 @@
|
|
|
11097
11127
|
const bbox = this.cache.layoutData.bbox;
|
|
11098
11128
|
return this._AABBBounds.set(bbox.xOffset, bbox.yOffset, bbox.xOffset + bbox.width, bbox.yOffset + bbox.height), stroke && this._AABBBounds.expand(lineWidth / 2), this._AABBBounds;
|
|
11099
11129
|
}
|
|
11100
|
-
const textMeasure = application.graphicUtil.
|
|
11130
|
+
const textMeasure = application.graphicUtil.getTextMeasureInstance(this.textMeasureId || (null === (_c = this.stage) || void 0 === _c ? void 0 : _c.textMeasureId)),
|
|
11101
11131
|
layoutObj = new CanvasTextLayout(fontFamily, {
|
|
11102
11132
|
fontSize: fontSize,
|
|
11103
11133
|
fontWeight: fontWeight,
|
|
@@ -11126,7 +11156,7 @@
|
|
|
11126
11156
|
if ("" !== str && "" === clip.str) {
|
|
11127
11157
|
if (ellipsis) {
|
|
11128
11158
|
const clipEllipsis = layoutObj.textMeasure.clipTextWithSuffix(str, layoutObj.textOptions, maxLineWidth, ellipsis, !1, suffixPosition);
|
|
11129
|
-
clip.str = null !== (
|
|
11159
|
+
clip.str = null !== (_d = clipEllipsis.str) && void 0 !== _d ? _d : "", clip.width = null !== (_e = clipEllipsis.width) && void 0 !== _e ? _e : 0;
|
|
11130
11160
|
} else clip.str = "", clip.width = 0;
|
|
11131
11161
|
needCut = !1;
|
|
11132
11162
|
}
|
|
@@ -12403,7 +12433,7 @@
|
|
|
12403
12433
|
case "right":
|
|
12404
12434
|
deltaX = -aabbBounds.width();
|
|
12405
12435
|
}
|
|
12406
|
-
return aabbBounds.translate(deltaX, deltaY), application.graphicService.updateTempAABBBounds(aabbBounds), null == attribute.forceBoundsHeight && null == attribute.forceBoundsWidth || application.graphicService.updateHTMLTextAABBBounds(attribute, richtextTheme, aabbBounds), this.widthWithoutTransform = aabbBounds.x2 - aabbBounds.x1, this.heightWithoutTransform = aabbBounds.y2 - aabbBounds.y1, application.graphicService.transformAABBBounds(attribute, aabbBounds, richtextTheme, !1, this), 0 === aabbBounds.width() && 0 === aabbBounds.height() && aabbBounds.clear(), aabbBounds;
|
|
12436
|
+
return height || ("middle" === this.verticalDirection ? deltaY -= aabbBounds.height() / 2 : "bottom" === this.verticalDirection && (deltaY -= aabbBounds.height())), aabbBounds.translate(deltaX, deltaY), application.graphicService.updateTempAABBBounds(aabbBounds), null == attribute.forceBoundsHeight && null == attribute.forceBoundsWidth || application.graphicService.updateHTMLTextAABBBounds(attribute, richtextTheme, aabbBounds), this.widthWithoutTransform = aabbBounds.x2 - aabbBounds.x1, this.heightWithoutTransform = aabbBounds.y2 - aabbBounds.y1, application.graphicService.transformAABBBounds(attribute, aabbBounds, richtextTheme, !1, this), 0 === aabbBounds.width() && 0 === aabbBounds.height() && aabbBounds.clear(), aabbBounds;
|
|
12407
12437
|
}
|
|
12408
12438
|
needUpdateTags(keys) {
|
|
12409
12439
|
return super.needUpdateTags(keys, RICHTEXT_UPDATE_TAG_KEY);
|
|
@@ -19167,6 +19197,7 @@
|
|
|
19167
19197
|
}));
|
|
19168
19198
|
}
|
|
19169
19199
|
tryShowInputBounds() {
|
|
19200
|
+
var _a, _b;
|
|
19170
19201
|
if (!this.currRt || !this.focusing) return;
|
|
19171
19202
|
const {
|
|
19172
19203
|
editOptions = {}
|
|
@@ -19182,6 +19213,8 @@
|
|
|
19182
19213
|
this.shadowBounds = this.shadowBounds || createRect({}), this.shadowBounds.setAttributes({
|
|
19183
19214
|
x: 0,
|
|
19184
19215
|
y: 0,
|
|
19216
|
+
scaleX: 1 / (null !== (_a = this.currRt.attribute.scaleX) && void 0 !== _a ? _a : 1),
|
|
19217
|
+
scaleY: 1 / (null !== (_b = this.currRt.attribute.scaleY) && void 0 !== _b ? _b : 1),
|
|
19185
19218
|
width: width,
|
|
19186
19219
|
height: height,
|
|
19187
19220
|
fill: !1,
|
|
@@ -19283,7 +19316,9 @@
|
|
|
19283
19316
|
y2 = getRichTextBounds(Object.assign(Object.assign({}, target.attribute), {
|
|
19284
19317
|
textConfig: [{
|
|
19285
19318
|
text: "a"
|
|
19286
|
-
}]
|
|
19319
|
+
}],
|
|
19320
|
+
scaleX: 1,
|
|
19321
|
+
scaleY: 1
|
|
19287
19322
|
})).height();
|
|
19288
19323
|
this.startCursorPos = {
|
|
19289
19324
|
x: x,
|
|
@@ -19319,7 +19354,10 @@
|
|
|
19319
19354
|
textConfig: [{
|
|
19320
19355
|
text: "a"
|
|
19321
19356
|
}]
|
|
19322
|
-
})), b = getRichTextBounds(
|
|
19357
|
+
})), b = getRichTextBounds(Object.assign(Object.assign({}, attr), {
|
|
19358
|
+
scaleX: 1,
|
|
19359
|
+
scaleY: 1
|
|
19360
|
+
}))), "middle" === textBaseline ? dy = -b.height() / 2 : "bottom" === textBaseline && (dy = -b.height()), this.editLine && this.editLine.setAttributes({
|
|
19323
19361
|
dy: dy
|
|
19324
19362
|
}), this.editBg && this.editBg.setAttributes({
|
|
19325
19363
|
dy: dy
|
|
@@ -19516,9 +19554,15 @@
|
|
|
19516
19554
|
} = rt.attribute;
|
|
19517
19555
|
let dy = 0;
|
|
19518
19556
|
if ("middle" === textBaseline) {
|
|
19519
|
-
dy = getRichTextBounds(rt.attribute)
|
|
19557
|
+
dy = getRichTextBounds(Object.assign(Object.assign({}, rt.attribute), {
|
|
19558
|
+
scaleX: 1,
|
|
19559
|
+
scaleY: 1
|
|
19560
|
+
})).height() / 2;
|
|
19520
19561
|
} else if ("bottom" === textBaseline) {
|
|
19521
|
-
dy = getRichTextBounds(rt.attribute)
|
|
19562
|
+
dy = getRichTextBounds(Object.assign(Object.assign({}, rt.attribute), {
|
|
19563
|
+
scaleX: 1,
|
|
19564
|
+
scaleY: 1
|
|
19565
|
+
})).height();
|
|
19522
19566
|
}
|
|
19523
19567
|
return p1.y += dy, p1;
|
|
19524
19568
|
}
|
|
@@ -30503,8 +30547,6 @@
|
|
|
30503
30547
|
}
|
|
30504
30548
|
onStart() {
|
|
30505
30549
|
super.onStart();
|
|
30506
|
-
}
|
|
30507
|
-
onFirstRun() {
|
|
30508
30550
|
const fromProps = this.getFromProps();
|
|
30509
30551
|
this.target.setAttributes(fromProps);
|
|
30510
30552
|
}
|
|
@@ -35293,7 +35335,7 @@
|
|
|
35293
35335
|
afterStageRender(stage, canvas) {
|
|
35294
35336
|
var _a, _b;
|
|
35295
35337
|
let result = null;
|
|
35296
|
-
if (null === (_b = null === (_a = this.params) || void 0 === _a ? void 0 : _a.options) || void 0 === _b ? void 0 : _b.useWebGL) {
|
|
35338
|
+
if (!1 !== (null === (_b = null === (_a = this.params) || void 0 === _a ? void 0 : _a.options) || void 0 === _b ? void 0 : _b.useWebGL)) {
|
|
35297
35339
|
if (this.supportsWebGL() && (this.gl || this.initWebGL(canvas) || console.warn("WebGL初始化失败,尝试Canvas 2D回退"), this.gl)) {
|
|
35298
35340
|
if (result = this.applyWebGLEffect(canvas), result) return result;
|
|
35299
35341
|
console.warn("WebGL特效执行失败,尝试Canvas 2D回退");
|
|
@@ -35941,12 +35983,13 @@
|
|
|
35941
35983
|
|
|
35942
35984
|
class Particle extends HybridEffectBase {
|
|
35943
35985
|
constructor(from, to, duration, easing, params) {
|
|
35944
|
-
var _a, _b, _c, _d;
|
|
35986
|
+
var _a, _b, _c, _d, _e;
|
|
35945
35987
|
super(from, to, duration, easing, params), this.particles = [], this.positionBuffer = null, this.colorBuffer = null, this.particleConfig = {
|
|
35946
35988
|
effectType: (null === (_a = null == params ? void 0 : params.options) || void 0 === _a ? void 0 : _a.effectType) || "gravity",
|
|
35947
35989
|
count: (null === (_b = null == params ? void 0 : params.options) || void 0 === _b ? void 0 : _b.count) || 4e3,
|
|
35948
35990
|
size: (null === (_c = null == params ? void 0 : params.options) || void 0 === _c ? void 0 : _c.size) || 20,
|
|
35949
|
-
strength: (null === (_d = null == params ? void 0 : params.options) || void 0 === _d ? void 0 : _d.strength) || 1.5
|
|
35991
|
+
strength: (null === (_d = null == params ? void 0 : params.options) || void 0 === _d ? void 0 : _d.strength) || 1.5,
|
|
35992
|
+
useWebGL: void 0 === (null === (_e = null == params ? void 0 : params.options) || void 0 === _e ? void 0 : _e.useWebGL) || params.options.useWebGL
|
|
35950
35993
|
};
|
|
35951
35994
|
}
|
|
35952
35995
|
getShaderSources() {
|
|
@@ -36421,7 +36464,7 @@
|
|
|
36421
36464
|
AnimateExecutor.registerBuiltInAnimate("increaseCount", IncreaseCount), AnimateExecutor.registerBuiltInAnimate("fromTo", FromTo), AnimateExecutor.registerBuiltInAnimate("scaleIn", ScaleIn), AnimateExecutor.registerBuiltInAnimate("scaleOut", ScaleOut), AnimateExecutor.registerBuiltInAnimate("growHeightIn", GrowHeightIn), AnimateExecutor.registerBuiltInAnimate("growHeightOut", GrowHeightOut), AnimateExecutor.registerBuiltInAnimate("growWidthIn", GrowWidthIn), AnimateExecutor.registerBuiltInAnimate("growWidthOut", GrowWidthOut), AnimateExecutor.registerBuiltInAnimate("growCenterIn", GrowCenterIn), AnimateExecutor.registerBuiltInAnimate("growCenterOut", GrowCenterOut), AnimateExecutor.registerBuiltInAnimate("clipIn", ClipIn), AnimateExecutor.registerBuiltInAnimate("clipOut", ClipOut), AnimateExecutor.registerBuiltInAnimate("fadeIn", FadeIn), AnimateExecutor.registerBuiltInAnimate("fadeOut", FadeOut), AnimateExecutor.registerBuiltInAnimate("growPointsIn", GrowPointsIn), AnimateExecutor.registerBuiltInAnimate("growPointsOut", GrowPointsOut), AnimateExecutor.registerBuiltInAnimate("growPointsXIn", GrowPointsXIn), AnimateExecutor.registerBuiltInAnimate("growPointsXOut", GrowPointsXOut), AnimateExecutor.registerBuiltInAnimate("growPointsYIn", GrowPointsYIn), AnimateExecutor.registerBuiltInAnimate("growPointsYOut", GrowPointsYOut), AnimateExecutor.registerBuiltInAnimate("growAngleIn", GrowAngleIn), AnimateExecutor.registerBuiltInAnimate("growAngleOut", GrowAngleOut), AnimateExecutor.registerBuiltInAnimate("growRadiusIn", GrowRadiusIn), AnimateExecutor.registerBuiltInAnimate("growRadiusOut", GrowRadiusOut), AnimateExecutor.registerBuiltInAnimate("moveIn", MoveIn), AnimateExecutor.registerBuiltInAnimate("moveOut", MoveOut), AnimateExecutor.registerBuiltInAnimate("rotateIn", RotateIn), AnimateExecutor.registerBuiltInAnimate("rotateOut", RotateOut), AnimateExecutor.registerBuiltInAnimate("update", Update), AnimateExecutor.registerBuiltInAnimate("state", State), AnimateExecutor.registerBuiltInAnimate("labelItemAppear", LabelItemAppear), AnimateExecutor.registerBuiltInAnimate("labelItemDisappear", LabelItemDisappear), AnimateExecutor.registerBuiltInAnimate("poptipAppear", PoptipAppear), AnimateExecutor.registerBuiltInAnimate("poptipDisappear", PoptipDisappear), AnimateExecutor.registerBuiltInAnimate("inputText", InputText), AnimateExecutor.registerBuiltInAnimate("inputRichText", InputRichText), AnimateExecutor.registerBuiltInAnimate("outputRichText", OutputRichText), AnimateExecutor.registerBuiltInAnimate("slideRichText", SlideRichText), AnimateExecutor.registerBuiltInAnimate("slideOutRichText", SlideOutRichText), AnimateExecutor.registerBuiltInAnimate("slideIn", SlideIn), AnimateExecutor.registerBuiltInAnimate("growIn", GrowIn), AnimateExecutor.registerBuiltInAnimate("spinIn", SpinIn), AnimateExecutor.registerBuiltInAnimate("moveScaleIn", MoveScaleIn), AnimateExecutor.registerBuiltInAnimate("moveRotateIn", MoveRotateIn), AnimateExecutor.registerBuiltInAnimate("strokeIn", StrokeIn), AnimateExecutor.registerBuiltInAnimate("slideOut", SlideOut), AnimateExecutor.registerBuiltInAnimate("growOut", GrowOut), AnimateExecutor.registerBuiltInAnimate("spinOut", SpinOut), AnimateExecutor.registerBuiltInAnimate("moveScaleOut", MoveScaleOut), AnimateExecutor.registerBuiltInAnimate("moveRotateOut", MoveRotateOut), AnimateExecutor.registerBuiltInAnimate("strokeOut", StrokeOut), AnimateExecutor.registerBuiltInAnimate("pulse", PulseAnimate), AnimateExecutor.registerBuiltInAnimate("MotionPath", MotionPath), AnimateExecutor.registerBuiltInAnimate("streamLight", StreamLight), AnimateExecutor.registerBuiltInAnimate("dissolve", Dissolve), AnimateExecutor.registerBuiltInAnimate("grayscale", Grayscale), AnimateExecutor.registerBuiltInAnimate("distortion", Distortion), AnimateExecutor.registerBuiltInAnimate("particle", Particle), AnimateExecutor.registerBuiltInAnimate("glitch", Glitch), AnimateExecutor.registerBuiltInAnimate("gaussianBlur", GaussianBlur), AnimateExecutor.registerBuiltInAnimate("pixelation", Pixelation);
|
|
36422
36465
|
};
|
|
36423
36466
|
|
|
36424
|
-
const version = "1.0.
|
|
36467
|
+
const version = "1.0.14-alpha.0";
|
|
36425
36468
|
preLoadAllModule();
|
|
36426
36469
|
if (isBrowserEnv()) {
|
|
36427
36470
|
loadBrowserEnv(container);
|
|
@@ -36625,6 +36668,7 @@
|
|
|
36625
36668
|
exports.GlobalPickerService = GlobalPickerService;
|
|
36626
36669
|
exports.Glyph = Glyph;
|
|
36627
36670
|
exports.GlyphRender = GlyphRender;
|
|
36671
|
+
exports.GradientParser = GradientParser;
|
|
36628
36672
|
exports.Graphic = Graphic;
|
|
36629
36673
|
exports.GraphicCreator = GraphicCreator$1;
|
|
36630
36674
|
exports.GraphicPicker = GraphicPicker;
|