@visactor/vstory 0.0.20 → 0.0.21
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/index.js +100 -111
- package/dist/index.min.js +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -35353,7 +35353,7 @@
|
|
|
35353
35353
|
scaleY = _params$scaleY === void 0 ? 1 : _params$scaleY;
|
|
35354
35354
|
this._container && this._initCanvasByContainer(width, height, dpr), params.canvas && this._initCanvasByCanvas(canvas, null != width ? width : 500, null != height ? height : 500, dpr), this._stage.background = background, this._stage.defaultLayer.setAttributes({
|
|
35355
35355
|
background: layerBackground
|
|
35356
|
-
}), this.
|
|
35356
|
+
}), this.initScale(width, height, scaleX, scaleY);
|
|
35357
35357
|
}
|
|
35358
35358
|
return _createClass(StoryCanvas, [{
|
|
35359
35359
|
key: "getNativeCanvas",
|
|
@@ -35405,6 +35405,17 @@
|
|
|
35405
35405
|
});
|
|
35406
35406
|
return stage.id = "vstory_".concat(this._story.id), stage;
|
|
35407
35407
|
}
|
|
35408
|
+
}, {
|
|
35409
|
+
key: "initScale",
|
|
35410
|
+
value: function initScale(width, height, scaleX, scaleY) {
|
|
35411
|
+
if ("auto" === scaleX || "auto" === scaleY) {
|
|
35412
|
+
var clipWidth = this._container ? this._container.clientWidth : this._canvas.width / this.getDpr(),
|
|
35413
|
+
clipHeight = this._container ? this._container.clientHeight : this._canvas.height / this.getDpr(),
|
|
35414
|
+
scale = clipWidth / clipHeight > width / height ? clipHeight / height : clipWidth / width;
|
|
35415
|
+
isValidNumber$1(scale) ? ("auto" === scaleX && (scaleX = scale), "auto" === scaleY && (scaleY = scale)) : scaleX = scaleY = 1;
|
|
35416
|
+
}
|
|
35417
|
+
this._stage.defaultLayer.scale(scaleX, scaleY);
|
|
35418
|
+
}
|
|
35408
35419
|
}, {
|
|
35409
35420
|
key: "resize",
|
|
35410
35421
|
value: function resize(w, h) {
|
|
@@ -115745,16 +115756,16 @@
|
|
|
115745
115756
|
}
|
|
115746
115757
|
|
|
115747
115758
|
var CommonSpecRuntime = /*#__PURE__*/function () {
|
|
115748
|
-
function CommonSpecRuntime(
|
|
115759
|
+
function CommonSpecRuntime() {
|
|
115749
115760
|
_classCallCheck(this, CommonSpecRuntime);
|
|
115750
|
-
this.type = "CommonSpec"
|
|
115761
|
+
this.type = "CommonSpec";
|
|
115751
115762
|
}
|
|
115752
115763
|
return _createClass(CommonSpecRuntime, [{
|
|
115753
115764
|
key: "applyConfigToAttribute",
|
|
115754
|
-
value: function applyConfigToAttribute() {
|
|
115755
|
-
var rawAttribute =
|
|
115765
|
+
value: function applyConfigToAttribute(character) {
|
|
115766
|
+
var rawAttribute = character.getAttribute(),
|
|
115756
115767
|
spec = rawAttribute.spec,
|
|
115757
|
-
options =
|
|
115768
|
+
options = character.config.options,
|
|
115758
115769
|
title = options.title,
|
|
115759
115770
|
legends = options.legends,
|
|
115760
115771
|
data = options.data,
|
|
@@ -115779,17 +115790,18 @@
|
|
|
115779
115790
|
}
|
|
115780
115791
|
}]);
|
|
115781
115792
|
}();
|
|
115793
|
+
var CommonSpecRuntimeInstance = new CommonSpecRuntime();
|
|
115782
115794
|
|
|
115783
115795
|
var CommonLayoutRuntime = /*#__PURE__*/function () {
|
|
115784
|
-
function CommonLayoutRuntime(
|
|
115796
|
+
function CommonLayoutRuntime() {
|
|
115785
115797
|
_classCallCheck(this, CommonLayoutRuntime);
|
|
115786
|
-
this.type = "CommonLayout"
|
|
115798
|
+
this.type = "CommonLayout";
|
|
115787
115799
|
}
|
|
115788
115800
|
return _createClass(CommonLayoutRuntime, [{
|
|
115789
115801
|
key: "applyConfigToAttribute",
|
|
115790
|
-
value: function applyConfigToAttribute() {
|
|
115791
|
-
var rawAttribute =
|
|
115792
|
-
config =
|
|
115802
|
+
value: function applyConfigToAttribute(character) {
|
|
115803
|
+
var rawAttribute = character.getAttribute(),
|
|
115804
|
+
config = character.config,
|
|
115793
115805
|
layoutData = getLayoutFromWidget(config.position),
|
|
115794
115806
|
layout = getLayoutFromWidget(config.position),
|
|
115795
115807
|
viewBox = {
|
|
@@ -115798,12 +115810,13 @@
|
|
|
115798
115810
|
y1: 0,
|
|
115799
115811
|
y2: layout.height
|
|
115800
115812
|
};
|
|
115801
|
-
rawAttribute.viewBox = viewBox, rawAttribute.renderCanvas =
|
|
115813
|
+
rawAttribute.viewBox = viewBox, rawAttribute.renderCanvas = character.canvas.getNativeCanvas(), merge$1(rawAttribute, layoutData);
|
|
115802
115814
|
var panel = config.options.panel;
|
|
115803
115815
|
merge$1(rawAttribute.panel, panel, layoutData);
|
|
115804
115816
|
}
|
|
115805
115817
|
}]);
|
|
115806
115818
|
}();
|
|
115819
|
+
var CommonLayoutRuntimeInstance = new CommonLayoutRuntime();
|
|
115807
115820
|
|
|
115808
115821
|
var DeletedAttr = Symbol("DeletedAttr");
|
|
115809
115822
|
|
|
@@ -115968,10 +115981,7 @@
|
|
|
115968
115981
|
}, {
|
|
115969
115982
|
key: "_initRuntime",
|
|
115970
115983
|
value: function _initRuntime() {
|
|
115971
|
-
|
|
115972
|
-
CharacterChart.RunTime.forEach(function (R) {
|
|
115973
|
-
_this4._runtime.push(new R(_this4));
|
|
115974
|
-
});
|
|
115984
|
+
this._runtime.push(CommonSpecRuntimeInstance, CommonLayoutRuntimeInstance);
|
|
115975
115985
|
}
|
|
115976
115986
|
}, {
|
|
115977
115987
|
key: "_clearRuntime",
|
|
@@ -115995,9 +116005,10 @@
|
|
|
115995
116005
|
}, {
|
|
115996
116006
|
key: "applyConfigToAttribute",
|
|
115997
116007
|
value: function applyConfigToAttribute(diffConfig, config) {
|
|
116008
|
+
var _this4 = this;
|
|
115998
116009
|
this._attribute = this.getDefaultAttribute(), this._runtime.forEach(function (r) {
|
|
115999
116010
|
var _a;
|
|
116000
|
-
return null === (_a = r.applyConfigToAttribute) || void 0 === _a ? void 0 : _a.call(r);
|
|
116011
|
+
return null === (_a = r.applyConfigToAttribute) || void 0 === _a ? void 0 : _a.call(r, _this4);
|
|
116001
116012
|
});
|
|
116002
116013
|
}
|
|
116003
116014
|
}, {
|
|
@@ -116019,19 +116030,19 @@
|
|
|
116019
116030
|
panel: {},
|
|
116020
116031
|
ticker: this._ticker,
|
|
116021
116032
|
zIndex: null !== (_a = this._config.zIndex) && void 0 !== _a ? _a : 0,
|
|
116022
|
-
vchartBoundsMode: null !== (_c = null === (_b = this._config.options.initOption) || void 0 === _b ? void 0 : _b.vchartBoundsMode) && void 0 !== _c ? _c : "
|
|
116033
|
+
vchartBoundsMode: null !== (_c = null === (_b = this._config.options.initOption) || void 0 === _b ? void 0 : _b.vchartBoundsMode) && void 0 !== _c ? _c : "clip",
|
|
116023
116034
|
chartInitOptions: mergeChartOption({
|
|
116024
116035
|
performanceHook: {
|
|
116025
116036
|
afterInitializeChart: function afterInitializeChart(vchart) {
|
|
116026
116037
|
_this5._runtime.forEach(function (r) {
|
|
116027
116038
|
var _a;
|
|
116028
|
-
return null === (_a = r.afterInitialize) || void 0 === _a ? void 0 : _a.call(r, vchart);
|
|
116039
|
+
return null === (_a = r.afterInitialize) || void 0 === _a ? void 0 : _a.call(r, _this5, vchart);
|
|
116029
116040
|
});
|
|
116030
116041
|
},
|
|
116031
116042
|
afterVRenderDraw: function afterVRenderDraw() {
|
|
116032
116043
|
_this5._runtime.forEach(function (r) {
|
|
116033
116044
|
var _a;
|
|
116034
|
-
return null === (_a = r.afterVRenderDraw) || void 0 === _a ? void 0 : _a.call(r);
|
|
116045
|
+
return null === (_a = r.afterVRenderDraw) || void 0 === _a ? void 0 : _a.call(r, _this5);
|
|
116035
116046
|
});
|
|
116036
116047
|
}
|
|
116037
116048
|
}
|
|
@@ -116040,17 +116051,16 @@
|
|
|
116040
116051
|
}
|
|
116041
116052
|
}]);
|
|
116042
116053
|
}(CharacterBase);
|
|
116043
|
-
CharacterChart.RunTime = [CommonSpecRuntime, CommonLayoutRuntime];
|
|
116044
116054
|
|
|
116045
116055
|
var RankingBarRuntime = /*#__PURE__*/function () {
|
|
116046
|
-
function RankingBarRuntime(
|
|
116056
|
+
function RankingBarRuntime() {
|
|
116047
116057
|
_classCallCheck(this, RankingBarRuntime);
|
|
116048
|
-
this.type = "RankingBar"
|
|
116058
|
+
this.type = "RankingBar";
|
|
116049
116059
|
}
|
|
116050
116060
|
return _createClass(RankingBarRuntime, [{
|
|
116051
116061
|
key: "applyConfigToAttribute",
|
|
116052
|
-
value: function applyConfigToAttribute() {
|
|
116053
|
-
var rawAttribute =
|
|
116062
|
+
value: function applyConfigToAttribute(character) {
|
|
116063
|
+
var rawAttribute = character.getAttribute(),
|
|
116054
116064
|
spec = rawAttribute.spec;
|
|
116055
116065
|
spec.player = {
|
|
116056
116066
|
visible: !1
|
|
@@ -116058,6 +116068,7 @@
|
|
|
116058
116068
|
}
|
|
116059
116069
|
}]);
|
|
116060
116070
|
}();
|
|
116071
|
+
var RankingBarRuntimeInstance = new RankingBarRuntime();
|
|
116061
116072
|
|
|
116062
116073
|
function registerRankingBarTemp() {
|
|
116063
116074
|
registerRankingBarChart({
|
|
@@ -116073,7 +116084,7 @@
|
|
|
116073
116084
|
return _createClass(RankingBarCharacter, [{
|
|
116074
116085
|
key: "_initRuntime",
|
|
116075
116086
|
value: function _initRuntime() {
|
|
116076
|
-
_superPropGet(RankingBarCharacter, "_initRuntime", this, 3)([]), this._runtime.push(
|
|
116087
|
+
_superPropGet(RankingBarCharacter, "_initRuntime", this, 3)([]), this._runtime.push(RankingBarRuntimeInstance);
|
|
116077
116088
|
}
|
|
116078
116089
|
}, {
|
|
116079
116090
|
key: "tickTo",
|
|
@@ -116158,16 +116169,16 @@
|
|
|
116158
116169
|
}(ACustomAnimate);
|
|
116159
116170
|
WaveAnimate.label = "wave-animate";
|
|
116160
116171
|
var WaveScatterRuntime = /*#__PURE__*/function () {
|
|
116161
|
-
function WaveScatterRuntime(
|
|
116172
|
+
function WaveScatterRuntime() {
|
|
116162
116173
|
_classCallCheck(this, WaveScatterRuntime);
|
|
116163
|
-
this.type = "WaveScatter"
|
|
116174
|
+
this.type = "WaveScatter";
|
|
116164
116175
|
}
|
|
116165
116176
|
return _createClass(WaveScatterRuntime, [{
|
|
116166
116177
|
key: "applyConfigToAttribute",
|
|
116167
|
-
value: function applyConfigToAttribute() {
|
|
116168
|
-
var rawAttribute =
|
|
116178
|
+
value: function applyConfigToAttribute(character) {
|
|
116179
|
+
var rawAttribute = character.getAttribute(),
|
|
116169
116180
|
spec = rawAttribute.spec,
|
|
116170
|
-
config =
|
|
116181
|
+
config = character.config,
|
|
116171
116182
|
_config$options = config.options,
|
|
116172
116183
|
_config$options$waveD = _config$options.waveDuration,
|
|
116173
116184
|
waveDuration = _config$options$waveD === void 0 ? 1e3 : _config$options$waveD,
|
|
@@ -116216,11 +116227,9 @@
|
|
|
116216
116227
|
}
|
|
116217
116228
|
});
|
|
116218
116229
|
}
|
|
116219
|
-
}, {
|
|
116220
|
-
key: "afterInitialize",
|
|
116221
|
-
value: function afterInitialize(vchart) {}
|
|
116222
116230
|
}]);
|
|
116223
116231
|
}();
|
|
116232
|
+
var WaveScatterRuntimeInstance = new WaveScatterRuntime();
|
|
116224
116233
|
|
|
116225
116234
|
function waterDrop(ctx, size, topX, topY) {
|
|
116226
116235
|
ctx.beginPath();
|
|
@@ -116237,7 +116246,7 @@
|
|
|
116237
116246
|
return _createClass(WaveScatterCharacter, [{
|
|
116238
116247
|
key: "_initRuntime",
|
|
116239
116248
|
value: function _initRuntime() {
|
|
116240
|
-
_superPropGet(WaveScatterCharacter, "_initRuntime", this, 3)([]), this._runtime.push(
|
|
116249
|
+
_superPropGet(WaveScatterCharacter, "_initRuntime", this, 3)([]), this._runtime.push(WaveScatterRuntimeInstance);
|
|
116241
116250
|
}
|
|
116242
116251
|
}, {
|
|
116243
116252
|
key: "getDefaultAttribute",
|
|
@@ -116343,9 +116352,10 @@
|
|
|
116343
116352
|
}, {
|
|
116344
116353
|
key: "applyConfigToAttribute",
|
|
116345
116354
|
value: function applyConfigToAttribute(diffConfig, config) {
|
|
116355
|
+
var _this2 = this;
|
|
116346
116356
|
this._attribute = this.getDefaultAttribute(), this._runtime.forEach(function (r) {
|
|
116347
116357
|
var _a;
|
|
116348
|
-
return null === (_a = r.applyConfigToAttribute) || void 0 === _a ? void 0 : _a.call(r);
|
|
116358
|
+
return null === (_a = r.applyConfigToAttribute) || void 0 === _a ? void 0 : _a.call(r, _this2);
|
|
116349
116359
|
});
|
|
116350
116360
|
}
|
|
116351
116361
|
}]);
|
|
@@ -116477,17 +116487,17 @@
|
|
|
116477
116487
|
};
|
|
116478
116488
|
|
|
116479
116489
|
var BaseRuntime = /*#__PURE__*/function () {
|
|
116480
|
-
function BaseRuntime(
|
|
116490
|
+
function BaseRuntime() {
|
|
116481
116491
|
_classCallCheck(this, BaseRuntime);
|
|
116482
|
-
this.type = "Base"
|
|
116492
|
+
this.type = "Base";
|
|
116483
116493
|
}
|
|
116484
116494
|
return _createClass(BaseRuntime, [{
|
|
116485
116495
|
key: "applyConfigToAttribute",
|
|
116486
|
-
value: function applyConfigToAttribute() {
|
|
116487
|
-
var rawAttribute =
|
|
116488
|
-
|
|
116489
|
-
options =
|
|
116490
|
-
position =
|
|
116496
|
+
value: function applyConfigToAttribute(character) {
|
|
116497
|
+
var rawAttribute = character.getAttribute(),
|
|
116498
|
+
_character$config = character.config,
|
|
116499
|
+
options = _character$config.options,
|
|
116500
|
+
position = _character$config.position,
|
|
116491
116501
|
layout = getLayoutFromWidget(position),
|
|
116492
116502
|
_options$graphic = options.graphic,
|
|
116493
116503
|
graphic = _options$graphic === void 0 ? {} : _options$graphic,
|
|
@@ -116511,6 +116521,7 @@
|
|
|
116511
116521
|
_inherits(ImageRuntime, _BaseRuntime);
|
|
116512
116522
|
return _createClass(ImageRuntime);
|
|
116513
116523
|
}(BaseRuntime);
|
|
116524
|
+
var ImageRuntimeInstance = new ImageRuntime();
|
|
116514
116525
|
|
|
116515
116526
|
var ImageCharacter = /*#__PURE__*/function (_CharacterComponent) {
|
|
116516
116527
|
function ImageCharacter() {
|
|
@@ -116526,10 +116537,7 @@
|
|
|
116526
116537
|
}, {
|
|
116527
116538
|
key: "_initRuntime",
|
|
116528
116539
|
value: function _initRuntime() {
|
|
116529
|
-
|
|
116530
|
-
ImageCharacter.RunTime.forEach(function (R) {
|
|
116531
|
-
_this._runtime.push(new R(_this));
|
|
116532
|
-
});
|
|
116540
|
+
_superPropGet(ImageCharacter, "_initRuntime", this, 3)([]), this._runtime.push(ImageRuntimeInstance);
|
|
116533
116541
|
}
|
|
116534
116542
|
}, {
|
|
116535
116543
|
key: "getDefaultAttribute",
|
|
@@ -116556,7 +116564,7 @@
|
|
|
116556
116564
|
}
|
|
116557
116565
|
}]);
|
|
116558
116566
|
}(CharacterComponent);
|
|
116559
|
-
ImageCharacter.type = "Image"
|
|
116567
|
+
ImageCharacter.type = "Image";
|
|
116560
116568
|
|
|
116561
116569
|
var LineComponent = /*#__PURE__*/function (_BaseComponentWithTex) {
|
|
116562
116570
|
function LineComponent(attributes, options) {
|
|
@@ -116609,10 +116617,10 @@
|
|
|
116609
116617
|
_inherits(LineRuntime, _BaseRuntime);
|
|
116610
116618
|
return _createClass(LineRuntime, [{
|
|
116611
116619
|
key: "applyConfigToAttribute",
|
|
116612
|
-
value: function applyConfigToAttribute() {
|
|
116620
|
+
value: function applyConfigToAttribute(character) {
|
|
116613
116621
|
var _a;
|
|
116614
|
-
_superPropGet(LineRuntime, "applyConfigToAttribute", this, 3)([]);
|
|
116615
|
-
var rawAttribute =
|
|
116622
|
+
_superPropGet(LineRuntime, "applyConfigToAttribute", this, 3)([character]);
|
|
116623
|
+
var rawAttribute = character.getAttribute(),
|
|
116616
116624
|
_rawAttribute$width = rawAttribute.width,
|
|
116617
116625
|
width = _rawAttribute$width === void 0 ? 1 : _rawAttribute$width,
|
|
116618
116626
|
_rawAttribute$height = rawAttribute.height,
|
|
@@ -116627,6 +116635,7 @@
|
|
|
116627
116635
|
}
|
|
116628
116636
|
}]);
|
|
116629
116637
|
}(BaseRuntime);
|
|
116638
|
+
var LineRuntimeInstance = new LineRuntime();
|
|
116630
116639
|
|
|
116631
116640
|
var LineCharacter = /*#__PURE__*/function (_CharacterComponent) {
|
|
116632
116641
|
function LineCharacter() {
|
|
@@ -116642,10 +116651,7 @@
|
|
|
116642
116651
|
}, {
|
|
116643
116652
|
key: "_initRuntime",
|
|
116644
116653
|
value: function _initRuntime() {
|
|
116645
|
-
|
|
116646
|
-
LineCharacter.RunTime.forEach(function (R) {
|
|
116647
|
-
_this._runtime.push(new R(_this));
|
|
116648
|
-
});
|
|
116654
|
+
_superPropGet(LineCharacter, "_initRuntime", this, 3)([]), this._runtime.push(LineRuntimeInstance);
|
|
116649
116655
|
}
|
|
116650
116656
|
}, {
|
|
116651
116657
|
key: "getDefaultAttribute",
|
|
@@ -116672,7 +116678,7 @@
|
|
|
116672
116678
|
}
|
|
116673
116679
|
}]);
|
|
116674
116680
|
}(CharacterComponent);
|
|
116675
|
-
LineCharacter.type = "Line"
|
|
116681
|
+
LineCharacter.type = "Line";
|
|
116676
116682
|
|
|
116677
116683
|
var RectComponent = /*#__PURE__*/function (_BaseComponentWithTex) {
|
|
116678
116684
|
function RectComponent(attributes, options) {
|
|
@@ -116726,6 +116732,7 @@
|
|
|
116726
116732
|
_inherits(RectRuntime, _BaseRuntime);
|
|
116727
116733
|
return _createClass(RectRuntime);
|
|
116728
116734
|
}(BaseRuntime);
|
|
116735
|
+
var RectRuntimeInstance = new RectRuntime();
|
|
116729
116736
|
|
|
116730
116737
|
var RectCharacter = /*#__PURE__*/function (_CharacterComponent) {
|
|
116731
116738
|
function RectCharacter() {
|
|
@@ -116741,10 +116748,7 @@
|
|
|
116741
116748
|
}, {
|
|
116742
116749
|
key: "_initRuntime",
|
|
116743
116750
|
value: function _initRuntime() {
|
|
116744
|
-
|
|
116745
|
-
RectCharacter.RunTime.forEach(function (R) {
|
|
116746
|
-
_this._runtime.push(new R(_this));
|
|
116747
|
-
});
|
|
116751
|
+
_superPropGet(RectCharacter, "_initRuntime", this, 3)([]), this._runtime.push(RectRuntimeInstance);
|
|
116748
116752
|
}
|
|
116749
116753
|
}, {
|
|
116750
116754
|
key: "getDefaultAttribute",
|
|
@@ -116771,7 +116775,7 @@
|
|
|
116771
116775
|
}
|
|
116772
116776
|
}]);
|
|
116773
116777
|
}(CharacterComponent);
|
|
116774
|
-
RectCharacter.type = "Rect"
|
|
116778
|
+
RectCharacter.type = "Rect";
|
|
116775
116779
|
|
|
116776
116780
|
var shapeMap = {
|
|
116777
116781
|
star: "M0 -1L0.22451398828979266 -0.3090169943749474L0.9510565162951535 -0.30901699437494745L0.3632712640026804 0.1180339887498948L0.5877852522924732 0.8090169943749473L8.326672684688674e-17 0.3819660112501051L-0.587785252292473 0.8090169943749476L-0.3632712640026804 0.11803398874989487L-0.9510565162951536 -0.30901699437494723L-0.22451398828979274 -0.30901699437494734Z"
|
|
@@ -116840,6 +116844,7 @@
|
|
|
116840
116844
|
_inherits(ShapeRuntime, _BaseRuntime);
|
|
116841
116845
|
return _createClass(ShapeRuntime);
|
|
116842
116846
|
}(BaseRuntime);
|
|
116847
|
+
var ShapeRuntimeInstance = new ShapeRuntime();
|
|
116843
116848
|
|
|
116844
116849
|
var ShapeCharacter = /*#__PURE__*/function (_CharacterComponent) {
|
|
116845
116850
|
function ShapeCharacter() {
|
|
@@ -116855,10 +116860,7 @@
|
|
|
116855
116860
|
}, {
|
|
116856
116861
|
key: "_initRuntime",
|
|
116857
116862
|
value: function _initRuntime() {
|
|
116858
|
-
|
|
116859
|
-
ShapeCharacter.RunTime.forEach(function (R) {
|
|
116860
|
-
_this._runtime.push(new R(_this));
|
|
116861
|
-
});
|
|
116863
|
+
_superPropGet(ShapeCharacter, "_initRuntime", this, 3)([]), this._runtime.push(ShapeRuntimeInstance);
|
|
116862
116864
|
}
|
|
116863
116865
|
}, {
|
|
116864
116866
|
key: "_clearGraphic",
|
|
@@ -116877,7 +116879,7 @@
|
|
|
116877
116879
|
}
|
|
116878
116880
|
}]);
|
|
116879
116881
|
}(CharacterComponent);
|
|
116880
|
-
ShapeCharacter.type = "Shape"
|
|
116882
|
+
ShapeCharacter.type = "Shape";
|
|
116881
116883
|
|
|
116882
116884
|
var TextComponent = /*#__PURE__*/function (_AbstractComponent) {
|
|
116883
116885
|
function TextComponent(attributes, options) {
|
|
@@ -116960,17 +116962,17 @@
|
|
|
116960
116962
|
};
|
|
116961
116963
|
|
|
116962
116964
|
var TextRuntime = /*#__PURE__*/function () {
|
|
116963
|
-
function TextRuntime(
|
|
116965
|
+
function TextRuntime() {
|
|
116964
116966
|
_classCallCheck(this, TextRuntime);
|
|
116965
|
-
this.type = "Text"
|
|
116967
|
+
this.type = "Text";
|
|
116966
116968
|
}
|
|
116967
116969
|
return _createClass(TextRuntime, [{
|
|
116968
116970
|
key: "applyConfigToAttribute",
|
|
116969
|
-
value: function applyConfigToAttribute() {
|
|
116970
|
-
var rawAttribute =
|
|
116971
|
-
|
|
116972
|
-
options =
|
|
116973
|
-
position =
|
|
116971
|
+
value: function applyConfigToAttribute(character) {
|
|
116972
|
+
var rawAttribute = character.getAttribute(),
|
|
116973
|
+
_character$config = character.config,
|
|
116974
|
+
options = _character$config.options,
|
|
116975
|
+
position = _character$config.position,
|
|
116974
116976
|
layout = getLayoutFromWidget(position),
|
|
116975
116977
|
_options$graphic = options.graphic,
|
|
116976
116978
|
graphic = _options$graphic === void 0 ? {} : _options$graphic,
|
|
@@ -116981,6 +116983,7 @@
|
|
|
116981
116983
|
}
|
|
116982
116984
|
}]);
|
|
116983
116985
|
}();
|
|
116986
|
+
var TextRuntimeInstance = new TextRuntime();
|
|
116984
116987
|
|
|
116985
116988
|
var TextCharacter = /*#__PURE__*/function (_CharacterComponent) {
|
|
116986
116989
|
function TextCharacter() {
|
|
@@ -116996,10 +116999,7 @@
|
|
|
116996
116999
|
}, {
|
|
116997
117000
|
key: "_initRuntime",
|
|
116998
117001
|
value: function _initRuntime() {
|
|
116999
|
-
|
|
117000
|
-
TextCharacter.RunTime.forEach(function (R) {
|
|
117001
|
-
_this._runtime.push(new R(_this));
|
|
117002
|
-
});
|
|
117002
|
+
_superPropGet(TextCharacter, "_initRuntime", this, 3)([]), this._runtime.push(TextRuntimeInstance);
|
|
117003
117003
|
}
|
|
117004
117004
|
}, {
|
|
117005
117005
|
key: "getDefaultAttribute",
|
|
@@ -117031,7 +117031,7 @@
|
|
|
117031
117031
|
}
|
|
117032
117032
|
}]);
|
|
117033
117033
|
}(CharacterComponent);
|
|
117034
|
-
TextCharacter.type = "Text"
|
|
117034
|
+
TextCharacter.type = "Text";
|
|
117035
117035
|
|
|
117036
117036
|
var TimelineComponent = /*#__PURE__*/function (_BaseComponentWithTex) {
|
|
117037
117037
|
function TimelineComponent(attributes, options) {
|
|
@@ -117086,6 +117086,7 @@
|
|
|
117086
117086
|
_inherits(TimelineRuntime, _BaseRuntime);
|
|
117087
117087
|
return _createClass(TimelineRuntime);
|
|
117088
117088
|
}(BaseRuntime);
|
|
117089
|
+
var TimelineRuntimeInstance = new TimelineRuntime();
|
|
117089
117090
|
|
|
117090
117091
|
var TimelineCharacter = /*#__PURE__*/function (_CharacterComponent) {
|
|
117091
117092
|
function TimelineCharacter() {
|
|
@@ -117101,10 +117102,7 @@
|
|
|
117101
117102
|
}, {
|
|
117102
117103
|
key: "_initRuntime",
|
|
117103
117104
|
value: function _initRuntime() {
|
|
117104
|
-
|
|
117105
|
-
TimelineCharacter.RunTime.forEach(function (R) {
|
|
117106
|
-
_this._runtime.push(new R(_this));
|
|
117107
|
-
});
|
|
117105
|
+
_superPropGet(TimelineCharacter, "_initRuntime", this, 3)([]), this._runtime.push(TimelineRuntimeInstance);
|
|
117108
117106
|
}
|
|
117109
117107
|
}, {
|
|
117110
117108
|
key: "getDefaultAttribute",
|
|
@@ -117137,7 +117135,7 @@
|
|
|
117137
117135
|
}
|
|
117138
117136
|
}]);
|
|
117139
117137
|
}(CharacterComponent);
|
|
117140
|
-
TimelineCharacter.type = "Timeline"
|
|
117138
|
+
TimelineCharacter.type = "Timeline";
|
|
117141
117139
|
|
|
117142
117140
|
var Unit = /*#__PURE__*/function (_AbstractComponent) {
|
|
117143
117141
|
function Unit(attributes, options) {
|
|
@@ -117387,6 +117385,7 @@
|
|
|
117387
117385
|
_inherits(UnitRuntime, _BaseRuntime);
|
|
117388
117386
|
return _createClass(UnitRuntime);
|
|
117389
117387
|
}(BaseRuntime);
|
|
117388
|
+
var UnitRuntimeInstance = new UnitRuntime();
|
|
117390
117389
|
|
|
117391
117390
|
var UnitCharacter = /*#__PURE__*/function (_CharacterComponent) {
|
|
117392
117391
|
function UnitCharacter() {
|
|
@@ -117402,10 +117401,7 @@
|
|
|
117402
117401
|
}, {
|
|
117403
117402
|
key: "_initRuntime",
|
|
117404
117403
|
value: function _initRuntime() {
|
|
117405
|
-
|
|
117406
|
-
UnitCharacter.RunTime.forEach(function (R) {
|
|
117407
|
-
_this._runtime.push(new R(_this));
|
|
117408
|
-
});
|
|
117404
|
+
_superPropGet(UnitCharacter, "_initRuntime", this, 3)([]), this._runtime.push(UnitRuntimeInstance);
|
|
117409
117405
|
}
|
|
117410
117406
|
}, {
|
|
117411
117407
|
key: "getDefaultAttribute",
|
|
@@ -117438,7 +117434,7 @@
|
|
|
117438
117434
|
}
|
|
117439
117435
|
}]);
|
|
117440
117436
|
}(CharacterComponent);
|
|
117441
|
-
UnitCharacter.type = "Unit"
|
|
117437
|
+
UnitCharacter.type = "Unit";
|
|
117442
117438
|
|
|
117443
117439
|
var _register = !1;
|
|
117444
117440
|
function registerCharacters() {
|
|
@@ -122053,15 +122049,16 @@
|
|
|
122053
122049
|
_inherits(LottieRuntime, _BaseRuntime);
|
|
122054
122050
|
return _createClass(LottieRuntime, [{
|
|
122055
122051
|
key: "applyConfigToAttribute",
|
|
122056
|
-
value: function applyConfigToAttribute() {
|
|
122057
|
-
_superPropGet(LottieRuntime, "applyConfigToAttribute", this, 3)([]);
|
|
122058
|
-
var rawAttribute =
|
|
122052
|
+
value: function applyConfigToAttribute(character) {
|
|
122053
|
+
_superPropGet(LottieRuntime, "applyConfigToAttribute", this, 3)([character]);
|
|
122054
|
+
var rawAttribute = character.getAttribute(),
|
|
122059
122055
|
data = rawAttribute.graphic.data,
|
|
122060
122056
|
builtData = builtinLottieMap[data];
|
|
122061
122057
|
builtData && (rawAttribute.graphic.data = builtData), rawAttribute.graphic.fill = !0;
|
|
122062
122058
|
}
|
|
122063
122059
|
}]);
|
|
122064
122060
|
}(BaseRuntime);
|
|
122061
|
+
var LottieRuntimeInstance = new LottieRuntime();
|
|
122065
122062
|
|
|
122066
122063
|
var LottieCharacter = /*#__PURE__*/function (_CharacterComponent) {
|
|
122067
122064
|
function LottieCharacter() {
|
|
@@ -122077,10 +122074,7 @@
|
|
|
122077
122074
|
}, {
|
|
122078
122075
|
key: "_initRuntime",
|
|
122079
122076
|
value: function _initRuntime() {
|
|
122080
|
-
|
|
122081
|
-
LottieCharacter.RunTime.forEach(function (R) {
|
|
122082
|
-
_this._runtime.push(new R(_this));
|
|
122083
|
-
});
|
|
122077
|
+
_superPropGet(LottieCharacter, "_initRuntime", this, 3)([]), this._runtime.push(LottieRuntimeInstance);
|
|
122084
122078
|
}
|
|
122085
122079
|
}, {
|
|
122086
122080
|
key: "getDefaultAttribute",
|
|
@@ -122107,7 +122101,7 @@
|
|
|
122107
122101
|
}
|
|
122108
122102
|
}]);
|
|
122109
122103
|
}(CharacterComponent);
|
|
122110
|
-
LottieCharacter.type = LOTTIE
|
|
122104
|
+
LottieCharacter.type = LOTTIE;
|
|
122111
122105
|
|
|
122112
122106
|
function registerLottie() {
|
|
122113
122107
|
container.load(lottieModule), container.load(lottieCanvasPickModule), StoryFactory.registerCharacter(LottieCharacter.type, LottieCharacter);
|
|
@@ -122304,6 +122298,7 @@
|
|
|
122304
122298
|
_inherits(SinglePieRuntime, _BaseRuntime);
|
|
122305
122299
|
return _createClass(SinglePieRuntime);
|
|
122306
122300
|
}(BaseRuntime);
|
|
122301
|
+
var SinglePieRuntimeInstance = new SinglePieRuntime();
|
|
122307
122302
|
|
|
122308
122303
|
var SINGLE_PIE = "SinglePie";
|
|
122309
122304
|
|
|
@@ -122321,10 +122316,7 @@
|
|
|
122321
122316
|
}, {
|
|
122322
122317
|
key: "_initRuntime",
|
|
122323
122318
|
value: function _initRuntime() {
|
|
122324
|
-
|
|
122325
|
-
SinglePieCharacter.RunTime.forEach(function (R) {
|
|
122326
|
-
_this._runtime.push(new R(_this));
|
|
122327
|
-
});
|
|
122319
|
+
_superPropGet(SinglePieCharacter, "_initRuntime", this, 3)([]), this._runtime.push(SinglePieRuntimeInstance);
|
|
122328
122320
|
}
|
|
122329
122321
|
}, {
|
|
122330
122322
|
key: "getDefaultAttribute",
|
|
@@ -122351,7 +122343,7 @@
|
|
|
122351
122343
|
}
|
|
122352
122344
|
}]);
|
|
122353
122345
|
}(CharacterComponent);
|
|
122354
|
-
SinglePieCharacter.type = SINGLE_PIE
|
|
122346
|
+
SinglePieCharacter.type = SINGLE_PIE;
|
|
122355
122347
|
|
|
122356
122348
|
function registerSinglePie() {
|
|
122357
122349
|
StoryFactory.registerCharacter(SinglePieCharacter.type, SinglePieCharacter);
|
|
@@ -122445,6 +122437,7 @@
|
|
|
122445
122437
|
}
|
|
122446
122438
|
}]);
|
|
122447
122439
|
}();
|
|
122440
|
+
new DynamicLineRuntime(null);
|
|
122448
122441
|
|
|
122449
122442
|
var DynamicLineCharacter = /*#__PURE__*/function (_CharacterChart) {
|
|
122450
122443
|
function DynamicLineCharacter() {
|
|
@@ -122589,6 +122582,7 @@
|
|
|
122589
122582
|
_inherits(PopTipRuntime, _BaseRuntime);
|
|
122590
122583
|
return _createClass(PopTipRuntime);
|
|
122591
122584
|
}(BaseRuntime);
|
|
122585
|
+
var PopTipRuntimeInstance = new PopTipRuntime();
|
|
122592
122586
|
|
|
122593
122587
|
var PopTipCharacter = /*#__PURE__*/function (_CharacterComponent) {
|
|
122594
122588
|
function PopTipCharacter() {
|
|
@@ -122604,10 +122598,7 @@
|
|
|
122604
122598
|
}, {
|
|
122605
122599
|
key: "_initRuntime",
|
|
122606
122600
|
value: function _initRuntime() {
|
|
122607
|
-
|
|
122608
|
-
PopTipCharacter.RunTime.forEach(function (R) {
|
|
122609
|
-
_this._runtime.push(new R(_this));
|
|
122610
|
-
});
|
|
122601
|
+
_superPropGet(PopTipCharacter, "_initRuntime", this, 3)([]), this._runtime.push(PopTipRuntimeInstance);
|
|
122611
122602
|
}
|
|
122612
122603
|
}, {
|
|
122613
122604
|
key: "getDefaultAttribute",
|
|
@@ -122634,7 +122625,7 @@
|
|
|
122634
122625
|
}
|
|
122635
122626
|
}]);
|
|
122636
122627
|
}(CharacterComponent);
|
|
122637
|
-
PopTipCharacter.type = POPTIP
|
|
122628
|
+
PopTipCharacter.type = POPTIP;
|
|
122638
122629
|
|
|
122639
122630
|
function registerPopTip() {
|
|
122640
122631
|
StoryFactory.registerCharacter(PopTipCharacter.type, PopTipCharacter);
|
|
@@ -122739,6 +122730,7 @@
|
|
|
122739
122730
|
_inherits(LabelItemRuntime, _BaseRuntime);
|
|
122740
122731
|
return _createClass(LabelItemRuntime);
|
|
122741
122732
|
}(BaseRuntime);
|
|
122733
|
+
var LabelItemRuntimeInstance = new LabelItemRuntime();
|
|
122742
122734
|
|
|
122743
122735
|
var LabelItemCharacter = /*#__PURE__*/function (_CharacterComponent) {
|
|
122744
122736
|
function LabelItemCharacter() {
|
|
@@ -122754,10 +122746,7 @@
|
|
|
122754
122746
|
}, {
|
|
122755
122747
|
key: "_initRuntime",
|
|
122756
122748
|
value: function _initRuntime() {
|
|
122757
|
-
|
|
122758
|
-
LabelItemCharacter.RunTime.forEach(function (R) {
|
|
122759
|
-
_this._runtime.push(new R(_this));
|
|
122760
|
-
});
|
|
122749
|
+
_superPropGet(LabelItemCharacter, "_initRuntime", this, 3)([]), this._runtime.push(LabelItemRuntimeInstance);
|
|
122761
122750
|
}
|
|
122762
122751
|
}, {
|
|
122763
122752
|
key: "getDefaultAttribute",
|
|
@@ -122784,7 +122773,7 @@
|
|
|
122784
122773
|
}
|
|
122785
122774
|
}]);
|
|
122786
122775
|
}(CharacterComponent);
|
|
122787
|
-
LabelItemCharacter.type = LABEL_ITEM
|
|
122776
|
+
LabelItemCharacter.type = LABEL_ITEM;
|
|
122788
122777
|
|
|
122789
122778
|
function registerLabelItem() {
|
|
122790
122779
|
StoryFactory.registerCharacter(LabelItemCharacter.type, LabelItemCharacter);
|