@visactor/vrender-components 1.0.0-alpha.3 → 1.0.0-alpha.4
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 +70 -57
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +6 -6
package/cjs/index.d.ts
CHANGED
package/cjs/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
|
|
|
17
17
|
|
|
18
18
|
Object.defineProperty(exports, "__esModule", {
|
|
19
19
|
value: !0
|
|
20
|
-
}), exports.version = void 0, exports.version = "1.0.0-alpha.
|
|
20
|
+
}), exports.version = void 0, exports.version = "1.0.0-alpha.4", __exportStar(require("./core/base"), exports),
|
|
21
21
|
__exportStar(require("./core/type"), exports), __exportStar(require("./scrollbar"), exports),
|
|
22
22
|
__exportStar(require("./tag"), exports), __exportStar(require("./poptip"), exports),
|
|
23
23
|
__exportStar(require("./crosshair"), exports), __exportStar(require("./label"), exports),
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACa,QAAA,OAAO,GAAG,eAAe,CAAC;AAEvC,8CAA4B;AAC5B,8CAA4B;AAC5B,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,8CAA4B;AAC5B,0CAAwB;AACxB,yCAAuB;AACvB,8CAA4B;AAC5B,4CAA0B;AAC1B,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,4CAA0B;AAC1B,6CAA2B;AAC3B,8CAA4B;AAC5B,wCAAsB;AACtB,6CAA2B;AAC3B,0CAAwB;AACxB,8CAA4B;AAC5B,4CAA0B;AAC1B,yCAAuB;AACvB,2CAAyB;AACzB,+CAA6B","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"1.0.0-alpha.
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACa,QAAA,OAAO,GAAG,eAAe,CAAC;AAEvC,8CAA4B;AAC5B,8CAA4B;AAC5B,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,8CAA4B;AAC5B,0CAAwB;AACxB,yCAAuB;AACvB,8CAA4B;AAC5B,4CAA0B;AAC1B,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,4CAA0B;AAC1B,6CAA2B;AAC3B,8CAA4B;AAC5B,wCAAsB;AACtB,6CAA2B;AAC3B,0CAAwB;AACxB,8CAA4B;AAC5B,4CAA0B;AAC1B,yCAAuB;AACvB,2CAAyB;AACzB,+CAA6B","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"1.0.0-alpha.4\";\n\nexport * from './core/base';\nexport * from './core/type';\nexport * from './scrollbar';\nexport * from './tag';\nexport * from './poptip';\nexport * from './crosshair';\nexport * from './label';\nexport * from './axis';\nexport * from './axis/grid';\nexport * from './segment';\nexport * from './data-zoom';\nexport * from './marker';\nexport * from './pager';\nexport * from './legend';\nexport * from './title';\nexport * from './indicator';\nexport * from './slider';\nexport * from './link-path';\nexport * from './player';\nexport * from './brush';\nexport * from './tooltip';\nexport * from './timeline';\nexport * from './interface';\nexport * from './jsx';\nexport * from './checkbox';\nexport * from './radio';\nexport * from './empty-tip';\nexport * from './weather';\nexport * from './util';\nexport * from './switch';\nexport * from './label-item';\n"]}
|
package/dist/index.es.js
CHANGED
|
@@ -18156,7 +18156,7 @@ class Step {
|
|
|
18156
18156
|
tryPreventConflict() {
|
|
18157
18157
|
const animate = this.animate;
|
|
18158
18158
|
this.target.animates.forEach(a => {
|
|
18159
|
-
if (a === animate || a.priority > animate.priority) return;
|
|
18159
|
+
if (a === animate || a.priority > animate.priority || a.priority === 1 / 0) return;
|
|
18160
18160
|
const fromProps = a.getStartProps();
|
|
18161
18161
|
this.propKeys.forEach(key => {
|
|
18162
18162
|
null != fromProps[key] && a.preventAttr(key);
|
|
@@ -18202,6 +18202,13 @@ class WaitStep extends Step {
|
|
|
18202
18202
|
constructor(type, props, duration, easing) {
|
|
18203
18203
|
super(type, props, duration, easing);
|
|
18204
18204
|
}
|
|
18205
|
+
onStart() {
|
|
18206
|
+
super.onStart();
|
|
18207
|
+
}
|
|
18208
|
+
onFirstRun() {
|
|
18209
|
+
const fromProps = this.getFromProps();
|
|
18210
|
+
this.target.setAttributes(fromProps);
|
|
18211
|
+
}
|
|
18205
18212
|
update(end, ratio, out) {
|
|
18206
18213
|
this.onStart();
|
|
18207
18214
|
}
|
|
@@ -18433,11 +18440,11 @@ class Animate {
|
|
|
18433
18440
|
return this._bounce = b, this;
|
|
18434
18441
|
}
|
|
18435
18442
|
advance(delta) {
|
|
18436
|
-
var _a;
|
|
18443
|
+
var _a, _b, _c;
|
|
18437
18444
|
if (this.status === AnimateStatus.END) return void console.warn("aaa 动画已经结束,不能推进");
|
|
18438
18445
|
const nextTime = this.currentTime + delta;
|
|
18439
18446
|
if (nextTime < this._startTime) return void (this.currentTime = nextTime);
|
|
18440
|
-
if (nextTime >= this._startTime + this._totalDuration) return null === (_a = this._lastStep) || void 0 === _a || _a.onEnd(), this.onEnd(), void (this.status = AnimateStatus.END);
|
|
18447
|
+
if (nextTime >= this._startTime + this._totalDuration) return null === (_a = this._lastStep) || void 0 === _a || _a.onUpdate(!0, 1, {}), null === (_b = this._lastStep) || void 0 === _b || _b.onEnd(), this.onEnd(), void (this.status = AnimateStatus.END);
|
|
18441
18448
|
this.status = AnimateStatus.RUNNING, this.currentTime <= this._startTime && this.onStart(), this.currentTime = nextTime;
|
|
18442
18449
|
let cycleTime = nextTime - this._startTime,
|
|
18443
18450
|
newLoop = !1,
|
|
@@ -18462,9 +18469,10 @@ class Animate {
|
|
|
18462
18469
|
}
|
|
18463
18470
|
}
|
|
18464
18471
|
if (!targetStep) return;
|
|
18472
|
+
targetStep !== this.lastRunStep && (null === (_c = this.lastRunStep) || void 0 === _c || _c.onEnd()), this.lastRunStep = targetStep;
|
|
18465
18473
|
const ratio = (cycleTime - targetStep.getStartTime()) / targetStep.getDuration(),
|
|
18466
18474
|
isEnd = ratio >= 1;
|
|
18467
|
-
targetStep.update(isEnd, ratio, {}), isEnd && targetStep.onEnd();
|
|
18475
|
+
targetStep.update(isEnd, ratio, {}), isEnd && (targetStep.onEnd(), this.lastRunStep = null);
|
|
18468
18476
|
}
|
|
18469
18477
|
updateDuration() {
|
|
18470
18478
|
this._lastStep ? (this._duration = this._lastStep.getStartTime() + this._lastStep.getDuration(), this._totalDuration = this._duration * (this._loopCount + 1)) : this._duration = 0;
|
|
@@ -18501,47 +18509,49 @@ class AnimateExecutor {
|
|
|
18501
18509
|
index >= 0 && this._animates.splice(index, 1), 0 === this._activeCount && this._started && (this._started = !1, this.onEnd());
|
|
18502
18510
|
});
|
|
18503
18511
|
}
|
|
18504
|
-
parseParams(params, isTimeline) {
|
|
18512
|
+
parseParams(params, isTimeline, child) {
|
|
18505
18513
|
var _a, _b;
|
|
18506
18514
|
const totalTime = this.resolveValue(params.totalTime, void 0, void 0),
|
|
18507
18515
|
startTime = this.resolveValue(params.startTime, void 0, 0),
|
|
18508
|
-
parsedParams =
|
|
18516
|
+
parsedParams = cloneDeep(params);
|
|
18509
18517
|
parsedParams.oneByOneDelay = 0, parsedParams.startTime = startTime, parsedParams.totalTime = totalTime;
|
|
18510
|
-
const oneByOne = this.resolveValue(params.oneByOne,
|
|
18518
|
+
const oneByOne = this.resolveValue(params.oneByOne, child, !1);
|
|
18511
18519
|
if (isTimeline) {
|
|
18512
18520
|
const timeSlices = parsedParams.timeSlices;
|
|
18513
18521
|
isArray(timeSlices) || (parsedParams.timeSlices = [timeSlices]);
|
|
18514
18522
|
let sliceTime = 0;
|
|
18515
18523
|
parsedParams.timeSlices.forEach(slice => {
|
|
18516
|
-
slice.delay = this.resolveValue(slice.delay,
|
|
18524
|
+
slice.delay = this.resolveValue(slice.delay, child, 0), slice.delayAfter = this.resolveValue(slice.delayAfter, child, 0), slice.duration = this.resolveValue(slice.duration, child, 300), sliceTime += slice.delay + slice.duration + slice.delayAfter;
|
|
18517
18525
|
});
|
|
18518
18526
|
let oneByOneDelay = 0,
|
|
18519
18527
|
oneByOneTime = 0;
|
|
18520
|
-
|
|
18521
|
-
|
|
18522
|
-
|
|
18523
|
-
|
|
18524
|
-
|
|
18525
|
-
return Array.isArray(effects) || (effects = [effects]), Object.assign(Object.assign({}, slice), {
|
|
18526
|
-
delay: slice.delay * scale,
|
|
18527
|
-
delayAfter: slice.delayAfter * scale,
|
|
18528
|
-
duration: slice.duration * scale,
|
|
18529
|
-
effects: effects.map(effect => {
|
|
18530
|
-
var _a, _b;
|
|
18531
|
-
const custom = null !== (_a = effect.custom) && void 0 !== _a ? _a : AnimateExecutor.builtInAnimateMap[null !== (_b = effect.type) && void 0 !== _b ? _b : "fromTo"],
|
|
18532
|
-
customType = custom && isFunction(custom) ? /^class\s/.test(Function.prototype.toString.call(custom)) ? 1 : 2 : 0;
|
|
18533
|
-
return Object.assign(Object.assign({}, effect), {
|
|
18534
|
-
custom: custom,
|
|
18535
|
-
customType: customType
|
|
18536
|
-
});
|
|
18537
|
-
})
|
|
18538
|
-
});
|
|
18539
|
-
}), parsedParams.oneByOne = oneByOneTime * scale, parsedParams.oneByOneDelay = oneByOneDelay * scale, parsedParams.startTime = startTime * scale;
|
|
18528
|
+
oneByOne && (oneByOneTime = Number(oneByOne), oneByOneDelay = oneByOneTime), parsedParams.oneByOne = oneByOneTime, parsedParams.oneByOneDelay = oneByOneDelay;
|
|
18529
|
+
let scale = 1;
|
|
18530
|
+
if (totalTime) {
|
|
18531
|
+
const _totalTime = sliceTime + oneByOneDelay * (this._target.count - 2);
|
|
18532
|
+
scale = totalTime ? totalTime / _totalTime : 1;
|
|
18540
18533
|
}
|
|
18534
|
+
parsedParams.timeSlices = parsedParams.timeSlices.map(slice => {
|
|
18535
|
+
let effects = slice.effects;
|
|
18536
|
+
return Array.isArray(effects) || (effects = [effects]), Object.assign(Object.assign({}, slice), {
|
|
18537
|
+
delay: slice.delay * scale,
|
|
18538
|
+
delayAfter: slice.delayAfter * scale,
|
|
18539
|
+
duration: slice.duration * scale,
|
|
18540
|
+
effects: effects.map(effect => {
|
|
18541
|
+
var _a, _b;
|
|
18542
|
+
const custom = null !== (_a = effect.custom) && void 0 !== _a ? _a : AnimateExecutor.builtInAnimateMap[null !== (_b = effect.type) && void 0 !== _b ? _b : "fromTo"],
|
|
18543
|
+
customType = custom && isFunction(custom) ? /^class\s/.test(Function.prototype.toString.call(custom)) ? 1 : 2 : 0;
|
|
18544
|
+
return Object.assign(Object.assign({}, effect), {
|
|
18545
|
+
custom: custom,
|
|
18546
|
+
customType: customType
|
|
18547
|
+
});
|
|
18548
|
+
})
|
|
18549
|
+
});
|
|
18550
|
+
}), parsedParams.oneByOne = oneByOneTime * scale, parsedParams.oneByOneDelay = oneByOneDelay * scale, parsedParams.startTime = startTime * scale;
|
|
18541
18551
|
} else {
|
|
18542
|
-
const delay = this.resolveValue(params.delay,
|
|
18543
|
-
delayAfter = this.resolveValue(params.delayAfter,
|
|
18544
|
-
duration = this.resolveValue(params.duration,
|
|
18552
|
+
const delay = this.resolveValue(params.delay, child, 0),
|
|
18553
|
+
delayAfter = this.resolveValue(params.delayAfter, child, 0),
|
|
18554
|
+
duration = this.resolveValue(params.duration, child, 300);
|
|
18545
18555
|
let oneByOneDelay = 0,
|
|
18546
18556
|
oneByOneTime = 0;
|
|
18547
18557
|
oneByOne && (oneByOneTime = Number(oneByOne), oneByOneDelay = duration + oneByOneTime), parsedParams.oneByOne = oneByOneTime, parsedParams.oneByOneDelay = oneByOneDelay, parsedParams.custom = null !== (_a = params.custom) && void 0 !== _a ? _a : AnimateExecutor.builtInAnimateMap[null !== (_b = params.type) && void 0 !== _b ? _b : "fromTo"];
|
|
@@ -18562,20 +18572,21 @@ class AnimateExecutor {
|
|
|
18562
18572
|
const isTimeline = ("timeSlices" in params);
|
|
18563
18573
|
let filteredChildren;
|
|
18564
18574
|
isTimeline && params.partitioner && (filteredChildren = (null != filteredChildren ? filteredChildren : this._target.getChildren()).filter(child => {
|
|
18565
|
-
var _a;
|
|
18566
|
-
return params.partitioner(null === (_a = child.context) || void 0 === _a ? void 0 : _a.data, child, {});
|
|
18567
|
-
})), isTimeline && params.sort && (filteredChildren = null != filteredChildren ? filteredChildren : this._target.getChildren(), filteredChildren.sort((a, b) => {
|
|
18568
18575
|
var _a, _b;
|
|
18569
|
-
return params.
|
|
18576
|
+
return params.partitioner(null === (_b = null === (_a = child.context) || void 0 === _a ? void 0 : _a.data) || void 0 === _b ? void 0 : _b[0], child, {});
|
|
18577
|
+
})), isTimeline && params.sort && (filteredChildren = null != filteredChildren ? filteredChildren : this._target.getChildren(), filteredChildren.sort((a, b) => {
|
|
18578
|
+
var _a, _b, _c, _d;
|
|
18579
|
+
return params.sort(null === (_b = null === (_a = a.context) || void 0 === _a ? void 0 : _a.data) || void 0 === _b ? void 0 : _b[0], null === (_d = null === (_c = b.context) || void 0 === _c ? void 0 : _c.data) || void 0 === _d ? void 0 : _d[0], a, b, {});
|
|
18570
18580
|
}));
|
|
18571
|
-
const
|
|
18572
|
-
|
|
18573
|
-
|
|
18574
|
-
|
|
18575
|
-
|
|
18576
|
-
|
|
18577
|
-
animate
|
|
18578
|
-
|
|
18581
|
+
const cb = isTimeline ? (child, index, count) => {
|
|
18582
|
+
const parsedParams = this.parseParams(params, isTimeline, child),
|
|
18583
|
+
animate = this.executeTimelineItem(parsedParams, child, index, count);
|
|
18584
|
+
animate && this._trackAnimation(animate);
|
|
18585
|
+
} : (child, index, count) => {
|
|
18586
|
+
const parsedParams = this.parseParams(params, isTimeline, child),
|
|
18587
|
+
animate = this.executeTypeConfigItem(parsedParams, child, index, count);
|
|
18588
|
+
animate && this._trackAnimation(animate);
|
|
18589
|
+
};
|
|
18579
18590
|
filteredChildren ? filteredChildren.forEach((child, index) => cb(child, index, filteredChildren.length)) : this._target.count <= 1 ? cb(this._target, 0, 1) : this._target.forEachChildren((child, index) => cb(child, index, this._target.count - 1));
|
|
18580
18591
|
}
|
|
18581
18592
|
executeTypeConfigItem(params, graphic, index, count) {
|
|
@@ -18603,22 +18614,24 @@ class AnimateExecutor {
|
|
|
18603
18614
|
const delayValue = isFunction(delay) ? delay(null === (_b = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.data) || void 0 === _b ? void 0 : _b[0], graphic, {}) : delay,
|
|
18604
18615
|
datum = null === (_d = null === (_c = graphic.context) || void 0 === _c ? void 0 : _c.data) || void 0 === _d ? void 0 : _d[0],
|
|
18605
18616
|
indexKey = null === (_e = graphic.context) || void 0 === _e ? void 0 : _e.indexKey;
|
|
18606
|
-
datum && indexKey && (index = null !== (_f = datum[indexKey]) && void 0 !== _f ? _f : index), animate.startAt(startTime
|
|
18607
|
-
const wait = index * oneByOneDelay;
|
|
18617
|
+
datum && indexKey && (index = null !== (_f = datum[indexKey]) && void 0 !== _f ? _f : index), animate.startAt(startTime);
|
|
18618
|
+
const wait = index * oneByOneDelay + delayValue;
|
|
18608
18619
|
wait > 0 && animate.wait(wait);
|
|
18609
18620
|
let parsedFromProps = null,
|
|
18610
18621
|
props = params.to,
|
|
18611
18622
|
from = params.from;
|
|
18612
|
-
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), from = parsedFromProps.from), this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, options, type, graphic)
|
|
18623
|
+
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), from = parsedFromProps.from), this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic);
|
|
18624
|
+
let totalDelay = 0;
|
|
18625
|
+
oneByOneDelay && (totalDelay = oneByOneDelay * (count - index - 1));
|
|
18613
18626
|
const delayAfterValue = isFunction(delayAfter) ? delayAfter(null === (_h = null === (_g = graphic.context) || void 0 === _g ? void 0 : _g.data) || void 0 === _h ? void 0 : _h[0], graphic, {}) : delayAfter;
|
|
18614
|
-
return delayAfterValue > 0 && animate.wait(
|
|
18627
|
+
return delayAfterValue > 0 && (totalDelay += delayAfterValue), totalDelay > 0 && animate.wait(totalDelay), loop && loop > 0 && animate.loop(loop), bounce && animate.bounce(!0), animate;
|
|
18615
18628
|
}
|
|
18616
|
-
_handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, options, type, graphic) {
|
|
18629
|
+
_handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic) {
|
|
18617
18630
|
var _a, _b, _c, _d;
|
|
18618
18631
|
if (custom && customType) {
|
|
18619
18632
|
const customParams = this.resolveValue(customParameters, graphic, {}),
|
|
18620
18633
|
objOptions = isFunction(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;
|
|
18621
|
-
customParams.options = objOptions, 1 === customType ? this.createCustomAnimation(animate, custom, from, props, duration, easing, customParams) : 2 === customType && this.createCustomInterpolatorAnimation(animate, custom, props, duration, easing, customParams);
|
|
18634
|
+
customParams.options = objOptions, customParams.controlOptions = controlOptions, 1 === customType ? this.createCustomAnimation(animate, custom, from, props, duration, easing, customParams) : 2 === customType && this.createCustomInterpolatorAnimation(animate, custom, props, duration, easing, customParams);
|
|
18622
18635
|
} else "to" === type ? animate.to(props, duration, easing) : "from" === type && animate.from(props, duration, easing);
|
|
18623
18636
|
}
|
|
18624
18637
|
executeTimelineItem(params, graphic, index, count) {
|
|
@@ -18653,7 +18666,7 @@ class AnimateExecutor {
|
|
|
18653
18666
|
delayAfterValue = isFunction(delayAfter) ? delayAfter(null === (_d = null === (_c = graphic.context) || void 0 === _c ? void 0 : _c.data) || void 0 === _d ? void 0 : _d[0], graphic, {}) : delayAfter;
|
|
18654
18667
|
delayValue > 0 && animate.wait(delayValue);
|
|
18655
18668
|
(Array.isArray(effects) ? effects : [effects]).forEach(effect => {
|
|
18656
|
-
var _a
|
|
18669
|
+
var _a;
|
|
18657
18670
|
const {
|
|
18658
18671
|
type = "fromTo",
|
|
18659
18672
|
channel: channel,
|
|
@@ -18666,8 +18679,8 @@ class AnimateExecutor {
|
|
|
18666
18679
|
from = effect.from;
|
|
18667
18680
|
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), from = parsedFromProps.from);
|
|
18668
18681
|
const custom = null !== (_a = effect.custom) && void 0 !== _a ? _a : AnimateExecutor.builtInAnimateMap[type],
|
|
18669
|
-
customType =
|
|
18670
|
-
this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, options, type, graphic);
|
|
18682
|
+
customType = effect.customType;
|
|
18683
|
+
this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, null, options, type, graphic);
|
|
18671
18684
|
}), delayAfterValue > 0 && animate.wait(delayAfterValue);
|
|
18672
18685
|
}
|
|
18673
18686
|
createCustomInterpolatorAnimation(animate, interpolator, props, duration, easing, customParams) {
|
|
@@ -18690,9 +18703,9 @@ class AnimateExecutor {
|
|
|
18690
18703
|
const value = null === (_b = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.diffAttrs) || void 0 === _b ? void 0 : _b[key];
|
|
18691
18704
|
void 0 !== value && (props[key] = value);
|
|
18692
18705
|
}) : Object.keys(channel).forEach(key => {
|
|
18693
|
-
var _a, _b;
|
|
18706
|
+
var _a, _b, _c, _d;
|
|
18694
18707
|
const config = channel[key];
|
|
18695
|
-
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 === (
|
|
18708
|
+
void 0 !== config.to && ("function" == typeof config.to ? props[key] = config.to(null === (_b = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.data) || void 0 === _b ? void 0 : _b[0], graphic, {}) : props[key] = config.to), void 0 !== config.from && (from || (from = {}), "function" == typeof config.from ? from[key] = config.from(null === (_d = null === (_c = graphic.context) || void 0 === _c ? void 0 : _c.data) || void 0 === _d ? void 0 : _d[0], graphic, {}) : from[key] = config.from);
|
|
18696
18709
|
}), {
|
|
18697
18710
|
from: from,
|
|
18698
18711
|
props: props
|
|
@@ -18702,8 +18715,8 @@ class AnimateExecutor {
|
|
|
18702
18715
|
};
|
|
18703
18716
|
}
|
|
18704
18717
|
resolveValue(value, graphic, defaultValue) {
|
|
18705
|
-
var _a;
|
|
18706
|
-
return void 0 === value ? defaultValue : "function" == typeof value && graphic ? value(null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.data, graphic, {}) : value;
|
|
18718
|
+
var _a, _b;
|
|
18719
|
+
return void 0 === value ? defaultValue : "function" == typeof value && graphic ? value(null === (_b = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.data) || void 0 === _b ? void 0 : _b[0], graphic, {}) : value;
|
|
18707
18720
|
}
|
|
18708
18721
|
executeItem(params, graphic) {
|
|
18709
18722
|
let index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
@@ -31909,6 +31922,6 @@ StoryLabelItem.defaultAttributes = {
|
|
|
31909
31922
|
theme: 'default'
|
|
31910
31923
|
};
|
|
31911
31924
|
|
|
31912
|
-
const version = "1.0.0-alpha.
|
|
31925
|
+
const version = "1.0.0-alpha.4";
|
|
31913
31926
|
|
|
31914
31927
|
export { AXIS_ELEMENT_NAME, AbstractComponent, ArcInfo, ArcLabel, ArcSegment, AxisStateValue, BasePlayer, Brush, CheckBox, CircleAxis, CircleAxisGrid, CircleCrosshair, ColorContinuousLegend, ContinuousPlayer, DEFAULT_ITEM_SPACE_COL, DEFAULT_ITEM_SPACE_ROW, DEFAULT_LABEL_SPACE, DEFAULT_PAGER_SPACE, DEFAULT_SHAPE_SIZE, DEFAULT_SHAPE_SPACE, DEFAULT_STATES$1 as DEFAULT_STATES, DEFAULT_TITLE_SPACE, DEFAULT_VALUE_SPACE, DataLabel, DataZoom, DataZoomActiveTag, DirectionEnum, DiscreteLegend, DiscretePlayer, EmptyTip, GroupTransition, IMarkAreaLabelPosition, IMarkCommonArcLabelPosition, IMarkLineLabelPosition, IMarkPointItemPosition, IOperateType, Indicator, LEGEND_ELEMENT_NAME, LabelBase, LegendEvent, LegendStateValue, LineAxis, LineAxisGrid, LineCrosshair, LineLabel, LinkPath, MarkArcArea, MarkArcLine, MarkArea, MarkLine, MarkPoint, Pager, PlayerEventEnum, PolygonCrosshair, PolygonSectorCrosshair, PopTip, Radio, RectCrosshair, RectLabel, SLIDER_ELEMENT_NAME, ScrollBar, SectorCrosshair, Segment, SizeContinuousLegend, Slider, StoryLabelItem, Switch, SymbolLabel, Tag, Timeline, Title, Tooltip, TopZIndex, VTag, WeatherBox, alignTextInLine, angle, angleLabelOrientAttribute, angleTo, cartesianTicks, clampRadian, computeOffsetForlimit, continuousTicks, contrastAccessibilityChecker, convertDomainToTickData, createTextGraphicByType, deltaXYToAngle, fuzzyEqualNumber, getAxisBreakSymbolAttrs, getCircleLabelPosition, getCirclePoints, getCircleVerticalVector, getElMap, getHorizontalPath, getMarksByName, getNoneGroupMarksByName, getPolarAngleLabelPosition, getPolygonPath, getSizeHandlerPath, getTextAlignAttrOfVerticalDir, getTextType, getVerticalCoord, getVerticalPath, hasOverlap, htmlAttributeTransform, initTextMeasure, isInRange, isPostiveXAxis, isRichText, isVisible, labelSmartInvert, length, limitShapeInBounds, linearDiscreteTicks, loadPoptip, loadScrollbar, measureTextSize, normalize, polarAngleAxisDiscreteTicks, polarTicks, reactAttributeTransform, registerArcDataLabel, registerLineDataLabel, registerMarkArcAreaAnimate, registerMarkArcLineAnimate, registerMarkAreaAnimate, registerMarkLineAnimate, registerMarkPointAnimate, registerRectDataLabel, registerSymbolDataLabel, removeRepeatPoint, richTextAttributeTransform, scale, scrollbarModule, setPoptipTheme, smartInvertStrategy, tan2AngleToAngle, textIntersect, ticks, traverseGroup, version };
|
package/es/index.d.ts
CHANGED
package/es/index.js
CHANGED
package/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC;AAEvC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"1.0.0-alpha.
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC;AAEvC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"1.0.0-alpha.4\";\n\nexport * from './core/base';\nexport * from './core/type';\nexport * from './scrollbar';\nexport * from './tag';\nexport * from './poptip';\nexport * from './crosshair';\nexport * from './label';\nexport * from './axis';\nexport * from './axis/grid';\nexport * from './segment';\nexport * from './data-zoom';\nexport * from './marker';\nexport * from './pager';\nexport * from './legend';\nexport * from './title';\nexport * from './indicator';\nexport * from './slider';\nexport * from './link-path';\nexport * from './player';\nexport * from './brush';\nexport * from './tooltip';\nexport * from './timeline';\nexport * from './interface';\nexport * from './jsx';\nexport * from './checkbox';\nexport * from './radio';\nexport * from './empty-tip';\nexport * from './weather';\nexport * from './util';\nexport * from './switch';\nexport * from './label-item';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visactor/vrender-components",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.4",
|
|
4
4
|
"description": "components library for dp visualization",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "cjs/index.js",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@visactor/vutils": "~0.19.5",
|
|
16
16
|
"@visactor/vscale": "~0.19.5",
|
|
17
|
-
"@visactor/vrender-core": "1.0.0-alpha.
|
|
18
|
-
"@visactor/vrender-kits": "1.0.0-alpha.
|
|
19
|
-
"@visactor/vrender-animate": "1.0.0-alpha.
|
|
17
|
+
"@visactor/vrender-core": "1.0.0-alpha.4",
|
|
18
|
+
"@visactor/vrender-kits": "1.0.0-alpha.4",
|
|
19
|
+
"@visactor/vrender-animate": "1.0.0-alpha.4"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@rushstack/eslint-patch": "~1.1.4",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"typescript": "4.9.5",
|
|
32
32
|
"cross-env": "^7.0.3",
|
|
33
33
|
"@internal/bundler": "0.0.1",
|
|
34
|
-
"@internal/
|
|
35
|
-
"@internal/
|
|
34
|
+
"@internal/ts-config": "0.0.1",
|
|
35
|
+
"@internal/eslint-config": "0.0.1"
|
|
36
36
|
},
|
|
37
37
|
"keywords": [
|
|
38
38
|
"VisActor",
|