@visactor/vrender 1.0.0-alpha.2 → 1.0.0-alpha.3
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 +209 -6
- package/dist/index.js +260 -5
- 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
|
@@ -30854,7 +30854,7 @@
|
|
|
30854
30854
|
var _a, _b, _c, _d;
|
|
30855
30855
|
if (custom && customType) {
|
|
30856
30856
|
const customParams = this.resolveValue(customParameters, graphic, {}),
|
|
30857
|
-
objOptions = isFunction$1(options) ? options.call(null, null !== (_b =
|
|
30857
|
+
objOptions = isFunction$1(options) ? options.call(null, null !== (_b = customParams && (null === (_a = customParams.data) || void 0 === _a ? void 0 : _a[0])) && void 0 !== _b ? _b : null === (_d = null === (_c = graphic.context) || void 0 === _c ? void 0 : _c.data) || void 0 === _d ? void 0 : _d[0], graphic, customParams) : options;
|
|
30858
30858
|
customParams.options = objOptions, 1 === customType ? this.createCustomAnimation(animate, custom, from, props, duration, easing, customParams) : 2 === customType && this.createCustomInterpolatorAnimation(animate, custom, props, duration, easing, customParams);
|
|
30859
30859
|
} else "to" === type ? animate.to(props, duration, easing) : "from" === type && animate.from(props, duration, easing);
|
|
30860
30860
|
}
|
|
@@ -30926,9 +30926,9 @@
|
|
|
30926
30926
|
var _a, _b;
|
|
30927
30927
|
const value = null === (_b = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.diffAttrs) || void 0 === _b ? void 0 : _b[key];
|
|
30928
30928
|
void 0 !== value && (props[key] = value);
|
|
30929
|
-
}) : Object.
|
|
30930
|
-
let [key, config] = _ref;
|
|
30929
|
+
}) : Object.keys(channel).forEach(key => {
|
|
30931
30930
|
var _a, _b;
|
|
30931
|
+
const config = channel[key];
|
|
30932
30932
|
void 0 !== config.to && ("function" == typeof config.to ? props[key] = config.to(null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.data, graphic, {}) : props[key] = config.to), void 0 !== config.from && (from || (from = {}), "function" == typeof config.from ? from[key] = config.from(null === (_b = graphic.context) || void 0 === _b ? void 0 : _b.data, graphic, {}) : from[key] = config.from);
|
|
30933
30933
|
}), {
|
|
30934
30934
|
from: from,
|
|
@@ -34005,6 +34005,28 @@
|
|
|
34005
34005
|
}
|
|
34006
34006
|
}
|
|
34007
34007
|
|
|
34008
|
+
class MotionPath extends ACustomAnimate {
|
|
34009
|
+
constructor(from, to, duration, easing, params) {
|
|
34010
|
+
var _a;
|
|
34011
|
+
super(from, to, duration, easing, params), params && (this.pathLength = params.path.getLength(), this.path = params.path, this.distance = params.distance, this.totalLength = this.distance * this.pathLength, this.initAngle = null !== (_a = params.initAngle) && void 0 !== _a ? _a : 0, this.changeAngle = !!params.changeAngle, this.cb = params.cb);
|
|
34012
|
+
}
|
|
34013
|
+
onBind() {
|
|
34014
|
+
this.from = {
|
|
34015
|
+
x: 0,
|
|
34016
|
+
y: 0
|
|
34017
|
+
}, this.to = this.path.getAttrAt(this.totalLength).pos, this.props = this.to;
|
|
34018
|
+
}
|
|
34019
|
+
onUpdate(end, ratio, out) {
|
|
34020
|
+
const attrs = {},
|
|
34021
|
+
at = this.totalLength * ratio,
|
|
34022
|
+
{
|
|
34023
|
+
pos: pos,
|
|
34024
|
+
angle: angle
|
|
34025
|
+
} = this.path.getAttrAt(at);
|
|
34026
|
+
attrs.x = pos.x, attrs.y = pos.y, this.changeAngle && (attrs.angle = angle + this.initAngle), this.cb && this.cb(this.from, this.to, ratio, this.target), this.target.setAttributes(attrs);
|
|
34027
|
+
}
|
|
34028
|
+
}
|
|
34029
|
+
|
|
34008
34030
|
class FromTo extends ACustomAnimate {
|
|
34009
34031
|
constructor(from, to, duration, easing, params) {
|
|
34010
34032
|
super(from, to, duration, easing, params), this.from = null != from ? from : {};
|
|
@@ -34040,11 +34062,192 @@
|
|
|
34040
34062
|
}
|
|
34041
34063
|
}
|
|
34042
34064
|
|
|
34065
|
+
class StreamLight extends ACustomAnimate {
|
|
34066
|
+
constructor(from, to, duration, easing, params) {
|
|
34067
|
+
super(from, to, duration, easing, params);
|
|
34068
|
+
}
|
|
34069
|
+
getEndProps() {
|
|
34070
|
+
return {};
|
|
34071
|
+
}
|
|
34072
|
+
onStart() {
|
|
34073
|
+
this.target && ("rect" === this.target.type ? this.onStartRect() : "line" === this.target.type ? this.onStartLineOrArea("line") : "area" === this.target.type && this.onStartLineOrArea("area"));
|
|
34074
|
+
}
|
|
34075
|
+
onStartLineOrArea(type) {
|
|
34076
|
+
var _a;
|
|
34077
|
+
const root = this.target.attachShadow(),
|
|
34078
|
+
line = application.graphicService.creator[type](Object.assign({}, null === (_a = this.params) || void 0 === _a ? void 0 : _a.attribute));
|
|
34079
|
+
this[type] = line, line.pathProxy = new CustomPath2D(), root.add(line);
|
|
34080
|
+
}
|
|
34081
|
+
onStartRect() {
|
|
34082
|
+
var _a, _b, _c;
|
|
34083
|
+
const root = this.target.attachShadow(),
|
|
34084
|
+
isHorizontal = null === (_b = null === (_a = this.params) || void 0 === _a ? void 0 : _a.isHorizontal) || void 0 === _b || _b,
|
|
34085
|
+
sizeAttr = isHorizontal ? "height" : "width",
|
|
34086
|
+
otherSizeAttr = isHorizontal ? "width" : "height",
|
|
34087
|
+
size = this.target.AABBBounds[sizeAttr](),
|
|
34088
|
+
y = isHorizontal ? 0 : this.target.AABBBounds.y1,
|
|
34089
|
+
rect = application.graphicService.creator.rect(Object.assign(Object.assign({
|
|
34090
|
+
[sizeAttr]: size,
|
|
34091
|
+
fill: "#bcdeff",
|
|
34092
|
+
shadowBlur: 30,
|
|
34093
|
+
shadowColor: "#bcdeff"
|
|
34094
|
+
}, null === (_c = this.params) || void 0 === _c ? void 0 : _c.attribute), {
|
|
34095
|
+
x: 0,
|
|
34096
|
+
y: y,
|
|
34097
|
+
[otherSizeAttr]: 0
|
|
34098
|
+
}));
|
|
34099
|
+
this.rect = rect, root.add(rect);
|
|
34100
|
+
}
|
|
34101
|
+
onBind() {}
|
|
34102
|
+
onEnd() {
|
|
34103
|
+
this.target.detachShadow();
|
|
34104
|
+
}
|
|
34105
|
+
onUpdate(end, ratio, out) {
|
|
34106
|
+
return this.rect ? this.onUpdateRect(end, ratio, out) : this.line || this.area ? this.onUpdateLineOrArea(end, ratio, out) : void 0;
|
|
34107
|
+
}
|
|
34108
|
+
onUpdateRect(end, ratio, out) {
|
|
34109
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
34110
|
+
const isHorizontal = null === (_b = null === (_a = this.params) || void 0 === _a ? void 0 : _a.isHorizontal) || void 0 === _b || _b,
|
|
34111
|
+
parentAttr = this.target.attribute;
|
|
34112
|
+
if (isHorizontal) {
|
|
34113
|
+
const parentWidth = null !== (_d = null !== (_c = parentAttr.width) && void 0 !== _c ? _c : Math.abs(parentAttr.x1 - parentAttr.x)) && void 0 !== _d ? _d : 250,
|
|
34114
|
+
streamLength = null !== (_f = null === (_e = this.params) || void 0 === _e ? void 0 : _e.streamLength) && void 0 !== _f ? _f : parentWidth,
|
|
34115
|
+
maxLength = null !== (_j = null === (_h = null === (_g = this.params) || void 0 === _g ? void 0 : _g.attribute) || void 0 === _h ? void 0 : _h.width) && void 0 !== _j ? _j : 60,
|
|
34116
|
+
startX = -maxLength,
|
|
34117
|
+
currentX = startX + (streamLength - startX) * ratio,
|
|
34118
|
+
x = Math.max(currentX, 0),
|
|
34119
|
+
w = Math.min(Math.min(currentX + maxLength, maxLength), streamLength - currentX),
|
|
34120
|
+
width = w + x > parentWidth ? Math.max(parentWidth - x, 0) : w;
|
|
34121
|
+
this.rect.setAttributes({
|
|
34122
|
+
x: x,
|
|
34123
|
+
width: width,
|
|
34124
|
+
dx: Math.min(parentAttr.x1 - parentAttr.x, 0)
|
|
34125
|
+
}, !1, {
|
|
34126
|
+
type: exports.AttributeUpdateType.ANIMATE_PLAY,
|
|
34127
|
+
animationState: {
|
|
34128
|
+
ratio: ratio,
|
|
34129
|
+
end: end
|
|
34130
|
+
}
|
|
34131
|
+
});
|
|
34132
|
+
} else {
|
|
34133
|
+
const parentHeight = null !== (_l = null !== (_k = parentAttr.height) && void 0 !== _k ? _k : Math.abs(parentAttr.y1 - parentAttr.y)) && void 0 !== _l ? _l : 250,
|
|
34134
|
+
streamLength = null !== (_o = null === (_m = this.params) || void 0 === _m ? void 0 : _m.streamLength) && void 0 !== _o ? _o : parentHeight,
|
|
34135
|
+
maxLength = null !== (_r = null === (_q = null === (_p = this.params) || void 0 === _p ? void 0 : _p.attribute) || void 0 === _q ? void 0 : _q.height) && void 0 !== _r ? _r : 60,
|
|
34136
|
+
currentY = parentHeight - (streamLength + maxLength) * ratio;
|
|
34137
|
+
let y = Math.min(currentY, parentHeight);
|
|
34138
|
+
const h = Math.min(parentHeight - currentY, maxLength);
|
|
34139
|
+
let height;
|
|
34140
|
+
y <= 0 ? (height = Math.max(y + h, 0), y = 0) : height = h, this.rect.setAttributes({
|
|
34141
|
+
y: y,
|
|
34142
|
+
height: height,
|
|
34143
|
+
dy: Math.min(parentAttr.y1 - parentAttr.y, 0)
|
|
34144
|
+
}, !1, {
|
|
34145
|
+
type: exports.AttributeUpdateType.ANIMATE_PLAY,
|
|
34146
|
+
animationState: {
|
|
34147
|
+
ratio: ratio,
|
|
34148
|
+
end: end
|
|
34149
|
+
}
|
|
34150
|
+
});
|
|
34151
|
+
}
|
|
34152
|
+
}
|
|
34153
|
+
onUpdateLineOrArea(end, ratio, out) {
|
|
34154
|
+
const target = this.line || this.area;
|
|
34155
|
+
if (!target) return;
|
|
34156
|
+
const customPath = target.pathProxy,
|
|
34157
|
+
targetLine = this.target;
|
|
34158
|
+
targetLine.cache || targetLine.cacheArea ? this._onUpdateLineOrAreaWithCache(customPath, targetLine, end, ratio, out) : this._onUpdateLineWithoutCache(customPath, targetLine, end, ratio, out);
|
|
34159
|
+
const targetAttrs = targetLine.attribute;
|
|
34160
|
+
target.setAttributes(Object.assign({
|
|
34161
|
+
stroke: targetAttrs.stroke
|
|
34162
|
+
}, target.attribute)), target.addUpdateBoundTag();
|
|
34163
|
+
}
|
|
34164
|
+
_onUpdateLineOrAreaWithCache(customPath, g, end, ratio, out) {
|
|
34165
|
+
var _a, _b;
|
|
34166
|
+
if (customPath.clear(), "line" === g.type) {
|
|
34167
|
+
let cache = g.cache;
|
|
34168
|
+
Array.isArray(cache) || (cache = [cache]);
|
|
34169
|
+
const totalLen = cache.reduce((l, c) => l + c.getLength(), 0),
|
|
34170
|
+
curves = [];
|
|
34171
|
+
return cache.forEach(c => {
|
|
34172
|
+
c.curves.forEach(ci => curves.push(ci));
|
|
34173
|
+
}), this._updateCurves(customPath, curves, totalLen, ratio);
|
|
34174
|
+
}
|
|
34175
|
+
if ("area" === g.type && (null === (_b = null === (_a = g.cacheArea) || void 0 === _a ? void 0 : _a.top) || void 0 === _b ? void 0 : _b.curves)) {
|
|
34176
|
+
const cache = g.cacheArea,
|
|
34177
|
+
totalLen = cache.top.curves.reduce((a, b) => a + b.getLength(), 0);
|
|
34178
|
+
return this._updateCurves(customPath, cache.top.curves, totalLen, ratio);
|
|
34179
|
+
}
|
|
34180
|
+
}
|
|
34181
|
+
_updateCurves(customPath, curves, totalLen, ratio) {
|
|
34182
|
+
var _a, _b;
|
|
34183
|
+
const startLen = totalLen * ratio,
|
|
34184
|
+
endLen = Math.min(startLen + (null !== (_b = null === (_a = this.params) || void 0 === _a ? void 0 : _a.streamLength) && void 0 !== _b ? _b : 10), totalLen);
|
|
34185
|
+
let lastLen = 0,
|
|
34186
|
+
start = !1;
|
|
34187
|
+
for (let i = 0; i < curves.length; i++) if (!1 !== curves[i].defined) {
|
|
34188
|
+
const curveItem = curves[i],
|
|
34189
|
+
len = curveItem.getLength(),
|
|
34190
|
+
startPercent = 1 - (lastLen + len - startLen) / len;
|
|
34191
|
+
let curveForStart,
|
|
34192
|
+
endPercent = 1 - (lastLen + len - endLen) / len;
|
|
34193
|
+
if (lastLen < startLen && lastLen + len > startLen) if (start = !0, curveItem.p2 && curveItem.p3) {
|
|
34194
|
+
const [_, curve2] = divideCubic(curveItem, startPercent);
|
|
34195
|
+
customPath.moveTo(curve2.p0.x, curve2.p0.y), curveForStart = curve2;
|
|
34196
|
+
} else {
|
|
34197
|
+
const p = curveItem.getPointAt(startPercent);
|
|
34198
|
+
customPath.moveTo(p.x, p.y);
|
|
34199
|
+
}
|
|
34200
|
+
if (lastLen < endLen && lastLen + len > endLen) {
|
|
34201
|
+
if (curveItem.p2 && curveItem.p3) {
|
|
34202
|
+
curveForStart && (endPercent = (endLen - startLen) / curveForStart.getLength());
|
|
34203
|
+
const [curve1] = divideCubic(curveForStart || curveItem, endPercent);
|
|
34204
|
+
customPath.bezierCurveTo(curve1.p1.x, curve1.p1.y, curve1.p2.x, curve1.p2.y, curve1.p3.x, curve1.p3.y);
|
|
34205
|
+
} else {
|
|
34206
|
+
const p = curveItem.getPointAt(endPercent);
|
|
34207
|
+
customPath.lineTo(p.x, p.y);
|
|
34208
|
+
}
|
|
34209
|
+
break;
|
|
34210
|
+
}
|
|
34211
|
+
if (start) if (curveItem.p2 && curveItem.p3) {
|
|
34212
|
+
const curve = curveForStart || curveItem;
|
|
34213
|
+
customPath.bezierCurveTo(curve.p1.x, curve.p1.y, curve.p2.x, curve.p2.y, curve.p3.x, curve.p3.y);
|
|
34214
|
+
} else customPath.lineTo(curveItem.p1.x, curveItem.p1.y);
|
|
34215
|
+
lastLen += len;
|
|
34216
|
+
}
|
|
34217
|
+
}
|
|
34218
|
+
_onUpdateLineWithoutCache(customPath, line, end, ratio, out) {
|
|
34219
|
+
var _a, _b;
|
|
34220
|
+
const {
|
|
34221
|
+
points: points,
|
|
34222
|
+
curveType: curveType
|
|
34223
|
+
} = line.attribute;
|
|
34224
|
+
if (!points || points.length < 2 || "linear" !== curveType) return;
|
|
34225
|
+
let totalLen = 0;
|
|
34226
|
+
for (let i = 1; i < points.length; i++) totalLen += PointService.distancePP(points[i], points[i - 1]);
|
|
34227
|
+
const startLen = totalLen * ratio,
|
|
34228
|
+
endLen = Math.min(startLen + (null !== (_b = null === (_a = this.params) || void 0 === _a ? void 0 : _a.streamLength) && void 0 !== _b ? _b : 10), totalLen),
|
|
34229
|
+
nextPoints = [];
|
|
34230
|
+
let lastLen = 0;
|
|
34231
|
+
for (let i = 1; i < points.length; i++) {
|
|
34232
|
+
const len = PointService.distancePP(points[i], points[i - 1]);
|
|
34233
|
+
if (lastLen < startLen && lastLen + len > startLen && nextPoints.push(PointService.pointAtPP(points[i - 1], points[i], 1 - (lastLen + len - startLen) / len)), lastLen < endLen && lastLen + len > endLen) {
|
|
34234
|
+
nextPoints.push(PointService.pointAtPP(points[i - 1], points[i], 1 - (lastLen + len - endLen) / len));
|
|
34235
|
+
break;
|
|
34236
|
+
}
|
|
34237
|
+
nextPoints.length && nextPoints.push(points[i]), lastLen += len;
|
|
34238
|
+
}
|
|
34239
|
+
if (nextPoints.length && !(nextPoints.length < 2)) {
|
|
34240
|
+
customPath.clear(), customPath.moveTo(nextPoints[0].x, nextPoints[0].y);
|
|
34241
|
+
for (let i = 1; i < nextPoints.length; i++) customPath.lineTo(nextPoints[i].x, nextPoints[i].y);
|
|
34242
|
+
}
|
|
34243
|
+
}
|
|
34244
|
+
}
|
|
34245
|
+
|
|
34043
34246
|
const registerCustomAnimate = () => {
|
|
34044
|
-
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("slideOut", SlideOut), AnimateExecutor.registerBuiltInAnimate("growOut", GrowOut), AnimateExecutor.registerBuiltInAnimate("spinOut", SpinOut), AnimateExecutor.registerBuiltInAnimate("moveScaleOut", MoveScaleOut), AnimateExecutor.registerBuiltInAnimate("moveRotateOut", MoveRotateOut);
|
|
34247
|
+
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("slideOut", SlideOut), AnimateExecutor.registerBuiltInAnimate("growOut", GrowOut), AnimateExecutor.registerBuiltInAnimate("spinOut", SpinOut), AnimateExecutor.registerBuiltInAnimate("moveScaleOut", MoveScaleOut), AnimateExecutor.registerBuiltInAnimate("moveRotateOut", MoveRotateOut), AnimateExecutor.registerBuiltInAnimate("MotionPath", MotionPath), AnimateExecutor.registerBuiltInAnimate("streamLight", StreamLight);
|
|
34045
34248
|
};
|
|
34046
34249
|
|
|
34047
|
-
const version = "1.0.0-alpha.
|
|
34250
|
+
const version = "1.0.0-alpha.3";
|
|
34048
34251
|
preLoadAllModule();
|
|
34049
34252
|
if (isBrowserEnv()) {
|
|
34050
34253
|
loadBrowserEnv(container);
|
|
@@ -34134,6 +34337,8 @@
|
|
|
34134
34337
|
exports.ClipAngleAnimate = ClipAngleAnimate;
|
|
34135
34338
|
exports.ClipDirectionAnimate = ClipDirectionAnimate;
|
|
34136
34339
|
exports.ClipGraphicAnimate = ClipGraphicAnimate;
|
|
34340
|
+
exports.ClipIn = ClipIn;
|
|
34341
|
+
exports.ClipOut = ClipOut;
|
|
34137
34342
|
exports.ClipRadiusAnimate = ClipRadiusAnimate;
|
|
34138
34343
|
exports.ColorInterpolate = ColorInterpolate;
|
|
34139
34344
|
exports.ColorStore = ColorStore;
|
|
@@ -34143,6 +34348,7 @@
|
|
|
34143
34348
|
exports.ContainerModule = ContainerModule;
|
|
34144
34349
|
exports.Context2dFactory = Context2dFactory;
|
|
34145
34350
|
exports.ContributionProvider = ContributionProvider;
|
|
34351
|
+
exports.CubicBezierCurve = CubicBezierCurve;
|
|
34146
34352
|
exports.CurveContext = CurveContext;
|
|
34147
34353
|
exports.CustomEvent = CustomEvent;
|
|
34148
34354
|
exports.CustomPath2D = CustomPath2D;
|
|
@@ -34215,12 +34421,15 @@
|
|
|
34215
34421
|
exports.FORMAT_ELEMENT_COMMAND = FORMAT_ELEMENT_COMMAND;
|
|
34216
34422
|
exports.FORMAT_TEXT_COMMAND = FORMAT_TEXT_COMMAND;
|
|
34217
34423
|
exports.Factory = Factory;
|
|
34424
|
+
exports.FadeIn = FadeIn;
|
|
34425
|
+
exports.FadeOut = FadeOut;
|
|
34218
34426
|
exports.FederatedEvent = FederatedEvent;
|
|
34219
34427
|
exports.FederatedMouseEvent = FederatedMouseEvent;
|
|
34220
34428
|
exports.FederatedPointerEvent = FederatedPointerEvent;
|
|
34221
34429
|
exports.FederatedWheelEvent = FederatedWheelEvent;
|
|
34222
34430
|
exports.FlexLayoutPlugin = FlexLayoutPlugin;
|
|
34223
34431
|
exports.Fragment = Fragment;
|
|
34432
|
+
exports.FromTo = FromTo;
|
|
34224
34433
|
exports.GLYPH_NUMBER_TYPE = GLYPH_NUMBER_TYPE;
|
|
34225
34434
|
exports.GRAPHIC_UPDATE_TAG_KEY = GRAPHIC_UPDATE_TAG_KEY;
|
|
34226
34435
|
exports.GROUP_NUMBER_TYPE = GROUP_NUMBER_TYPE;
|
|
@@ -34242,6 +34451,24 @@
|
|
|
34242
34451
|
exports.GroupFadeOut = GroupFadeOut;
|
|
34243
34452
|
exports.GroupRender = GroupRender;
|
|
34244
34453
|
exports.GroupRenderContribution = GroupRenderContribution;
|
|
34454
|
+
exports.GrowAngleIn = GrowAngleIn;
|
|
34455
|
+
exports.GrowAngleOut = GrowAngleOut;
|
|
34456
|
+
exports.GrowCenterIn = GrowCenterIn;
|
|
34457
|
+
exports.GrowCenterOut = GrowCenterOut;
|
|
34458
|
+
exports.GrowHeightIn = GrowHeightIn;
|
|
34459
|
+
exports.GrowHeightOut = GrowHeightOut;
|
|
34460
|
+
exports.GrowIn = GrowIn;
|
|
34461
|
+
exports.GrowOut = GrowOut;
|
|
34462
|
+
exports.GrowPointsIn = GrowPointsIn;
|
|
34463
|
+
exports.GrowPointsOut = GrowPointsOut;
|
|
34464
|
+
exports.GrowPointsXIn = GrowPointsXIn;
|
|
34465
|
+
exports.GrowPointsXOut = GrowPointsXOut;
|
|
34466
|
+
exports.GrowPointsYIn = GrowPointsYIn;
|
|
34467
|
+
exports.GrowPointsYOut = GrowPointsYOut;
|
|
34468
|
+
exports.GrowRadiusIn = GrowRadiusIn;
|
|
34469
|
+
exports.GrowRadiusOut = GrowRadiusOut;
|
|
34470
|
+
exports.GrowWidthIn = GrowWidthIn;
|
|
34471
|
+
exports.GrowWidthOut = GrowWidthOut;
|
|
34245
34472
|
exports.HtmlAttributePlugin = HtmlAttributePlugin;
|
|
34246
34473
|
exports.IMAGE_NUMBER_TYPE = IMAGE_NUMBER_TYPE;
|
|
34247
34474
|
exports.Image = Image$1;
|
|
@@ -34249,10 +34476,13 @@
|
|
|
34249
34476
|
exports.ImageRenderContribution = ImageRenderContribution;
|
|
34250
34477
|
exports.IncreaseCount = IncreaseCount;
|
|
34251
34478
|
exports.IncrementalDrawContribution = IncrementalDrawContribution;
|
|
34479
|
+
exports.InputRichText = InputRichText;
|
|
34252
34480
|
exports.InputText = InputText;
|
|
34253
34481
|
exports.InteractiveDrawItemInterceptorContribution = InteractiveDrawItemInterceptorContribution;
|
|
34254
34482
|
exports.InteractiveSubRenderContribution = InteractiveSubRenderContribution;
|
|
34255
34483
|
exports.LINE_NUMBER_TYPE = LINE_NUMBER_TYPE;
|
|
34484
|
+
exports.LabelItemAppear = LabelItemAppear;
|
|
34485
|
+
exports.LabelItemDisappear = LabelItemDisappear;
|
|
34256
34486
|
exports.Layer = Layer;
|
|
34257
34487
|
exports.LayerService = LayerService;
|
|
34258
34488
|
exports.Line = Line$1;
|
|
@@ -34277,9 +34507,17 @@
|
|
|
34277
34507
|
exports.MatrixAllocate = MatrixAllocate;
|
|
34278
34508
|
exports.MonotoneX = MonotoneX;
|
|
34279
34509
|
exports.MonotoneY = MonotoneY;
|
|
34510
|
+
exports.MotionPath = MotionPath;
|
|
34511
|
+
exports.MoveIn = MoveIn;
|
|
34512
|
+
exports.MoveOut = MoveOut;
|
|
34513
|
+
exports.MoveRotateIn = MoveRotateIn;
|
|
34514
|
+
exports.MoveRotateOut = MoveRotateOut;
|
|
34515
|
+
exports.MoveScaleIn = MoveScaleIn;
|
|
34516
|
+
exports.MoveScaleOut = MoveScaleOut;
|
|
34280
34517
|
exports.NOWORK_ANIMATE_ATTR = NOWORK_ANIMATE_ATTR;
|
|
34281
34518
|
exports.Node = Node;
|
|
34282
34519
|
exports.OrthoCamera = OrthoCamera;
|
|
34520
|
+
exports.OutputRichText = OutputRichText;
|
|
34283
34521
|
exports.PATH_NUMBER_TYPE = PATH_NUMBER_TYPE;
|
|
34284
34522
|
exports.POLYGON_NUMBER_TYPE = POLYGON_NUMBER_TYPE;
|
|
34285
34523
|
exports.PURE_STYLE_KEY = PURE_STYLE_KEY;
|
|
@@ -34295,6 +34533,8 @@
|
|
|
34295
34533
|
exports.Polygon = Polygon;
|
|
34296
34534
|
exports.PolygonRender = PolygonRender;
|
|
34297
34535
|
exports.PolygonRenderContribution = PolygonRenderContribution;
|
|
34536
|
+
exports.PoptipAppear = PoptipAppear;
|
|
34537
|
+
exports.PoptipDisappear = PoptipDisappear;
|
|
34298
34538
|
exports.Pyramid3d = Pyramid3d;
|
|
34299
34539
|
exports.Pyramid3dRender = Pyramid3dRender;
|
|
34300
34540
|
exports.REACT_TO_CANOPUS_EVENTS = REACT_TO_CANOPUS_EVENTS;
|
|
@@ -34317,17 +34557,29 @@
|
|
|
34317
34557
|
exports.RichTextEditPlugin = RichTextEditPlugin;
|
|
34318
34558
|
exports.RichTextRender = RichTextRender;
|
|
34319
34559
|
exports.RotateBySphereAnimate = RotateBySphereAnimate;
|
|
34560
|
+
exports.RotateIn = RotateIn;
|
|
34561
|
+
exports.RotateOut = RotateOut;
|
|
34320
34562
|
exports.SVG_ATTRIBUTE_MAP = SVG_ATTRIBUTE_MAP;
|
|
34321
34563
|
exports.SVG_ATTRIBUTE_MAP_KEYS = SVG_ATTRIBUTE_MAP_KEYS;
|
|
34322
34564
|
exports.SVG_PARSE_ATTRIBUTE_MAP = SVG_PARSE_ATTRIBUTE_MAP;
|
|
34323
34565
|
exports.SVG_PARSE_ATTRIBUTE_MAP_KEYS = SVG_PARSE_ATTRIBUTE_MAP_KEYS;
|
|
34324
34566
|
exports.SYMBOL_NUMBER_TYPE = SYMBOL_NUMBER_TYPE;
|
|
34567
|
+
exports.ScaleIn = ScaleIn;
|
|
34568
|
+
exports.ScaleOut = ScaleOut;
|
|
34325
34569
|
exports.SegContext = SegContext;
|
|
34326
34570
|
exports.ShadowRoot = ShadowRoot;
|
|
34327
34571
|
exports.ShadowRootDrawItemInterceptorContribution = ShadowRootDrawItemInterceptorContribution;
|
|
34572
|
+
exports.SlideIn = SlideIn;
|
|
34573
|
+
exports.SlideOut = SlideOut;
|
|
34574
|
+
exports.SlideOutRichText = SlideOutRichText;
|
|
34575
|
+
exports.SlideRichText = SlideRichText;
|
|
34576
|
+
exports.SpinIn = SpinIn;
|
|
34577
|
+
exports.SpinOut = SpinOut;
|
|
34328
34578
|
exports.Stage = Stage;
|
|
34579
|
+
exports.State = State;
|
|
34329
34580
|
exports.StaticLayerHandlerContribution = StaticLayerHandlerContribution;
|
|
34330
34581
|
exports.Step = Step$1;
|
|
34582
|
+
exports.StreamLight = StreamLight;
|
|
34331
34583
|
exports.Symbol = Symbol$1;
|
|
34332
34584
|
exports.SymbolRender = SymbolRender;
|
|
34333
34585
|
exports.SymbolRenderContribution = SymbolRenderContribution;
|
|
@@ -34339,6 +34591,7 @@
|
|
|
34339
34591
|
exports.TextRenderContribution = TextRenderContribution;
|
|
34340
34592
|
exports.Theme = Theme;
|
|
34341
34593
|
exports.TransformUtil = TransformUtil;
|
|
34594
|
+
exports.Update = Update;
|
|
34342
34595
|
exports.VArc = VArc;
|
|
34343
34596
|
exports.VArc3d = VArc3d;
|
|
34344
34597
|
exports.VArea = VArea;
|
|
@@ -34475,6 +34728,8 @@
|
|
|
34475
34728
|
exports.diagonalCenterToEdge = diagonalCenterToEdge;
|
|
34476
34729
|
exports.diagonalTopLeftToBottomRight = diagonalTopLeftToBottomRight;
|
|
34477
34730
|
exports.diff = diff;
|
|
34731
|
+
exports.divideCubic = divideCubic;
|
|
34732
|
+
exports.divideQuad = divideQuad;
|
|
34478
34733
|
exports.drawArc = drawArc;
|
|
34479
34734
|
exports.drawArcPath = drawArcPath$1;
|
|
34480
34735
|
exports.drawAreaSegments = drawAreaSegments;
|