@visactor/vrender-components 1.1.0 → 1.1.1
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/axis/constant.js +2 -1
- package/cjs/axis/util.js +1 -2
- package/cjs/crosshair/polygon-sector.js +2 -1
- package/cjs/crosshair/rect.js +1 -2
- package/cjs/empty-tip/register.js +2 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/indicator/indicator.js +1 -2
- package/cjs/jsx/component-type.js +1 -1
- package/cjs/label/arc.js +1 -1
- package/dist/index.es.js +115 -25
- package/es/axis/constant.js +2 -1
- package/es/axis/util.js +1 -2
- package/es/crosshair/polygon-sector.js +2 -1
- package/es/crosshair/rect.js +1 -2
- package/es/empty-tip/register.js +2 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/indicator/indicator.js +1 -2
- package/es/jsx/component-type.js +1 -1
- package/es/label/arc.js +1 -1
- package/package.json +6 -6
package/cjs/axis/constant.js
CHANGED
package/cjs/axis/util.js
CHANGED
|
@@ -104,5 +104,4 @@ exports.getAxisBreakSymbolAttrs = getAxisBreakSymbolAttrs, exports.getElMap = ge
|
|
|
104
104
|
exports.getVerticalCoord = getVerticalCoord, exports.getCircleVerticalVector = getCircleVerticalVector,
|
|
105
105
|
exports.angleLabelOrientAttribute = angleLabelOrientAttribute, exports.getPolarAngleLabelPosition = getPolarAngleLabelPosition,
|
|
106
106
|
exports.getCirclePoints = getCirclePoints, exports.getPolygonPath = getPolygonPath,
|
|
107
|
-
exports.textIntersect = textIntersect, exports.hasOverlap = hasOverlap;
|
|
108
|
-
//# sourceMappingURL=util.js.map
|
|
107
|
+
exports.textIntersect = textIntersect, exports.hasOverlap = hasOverlap;
|
package/cjs/crosshair/rect.js
CHANGED
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.1.
|
|
20
|
+
}), exports.version = void 0, exports.version = "1.1.1", __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,OAAO,CAAC;AAE/B,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;AAC7B,wDAAsC","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"1.1.
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACa,QAAA,OAAO,GAAG,OAAO,CAAC;AAE/B,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;AAC7B,wDAAsC","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"1.1.1\";\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';\nexport * from './table-series-number';\n"]}
|
package/cjs/label/arc.js
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -4963,9 +4963,10 @@ class Graphic extends Node {
|
|
|
4963
4963
|
} else assignFallbackAttr(this.getStateTransitionDefaultAttribute(key, staticTargetAttrs));
|
|
4964
4964
|
}), extraAttrs;
|
|
4965
4965
|
}
|
|
4966
|
-
syncObjectToSnapshot(target, snapshot) {
|
|
4966
|
+
syncObjectToSnapshot(target, snapshot, excludedKeys) {
|
|
4967
4967
|
const delta = new Map();
|
|
4968
4968
|
return new Set([...Object.keys(target), ...Object.keys(snapshot)]).forEach(key => {
|
|
4969
|
+
if (!0 === (null == excludedKeys ? void 0 : excludedKeys[key])) return;
|
|
4969
4970
|
const hasNext = Object.prototype.hasOwnProperty.call(snapshot, key),
|
|
4970
4971
|
previousValue = target[key];
|
|
4971
4972
|
if (!hasNext) return void (Object.prototype.hasOwnProperty.call(target, key) && (delta.set(key, {
|
|
@@ -4979,17 +4980,17 @@ class Graphic extends Node {
|
|
|
4979
4980
|
}), target[key] = cloneAttributeValue(nextValue));
|
|
4980
4981
|
}), delta;
|
|
4981
4982
|
}
|
|
4982
|
-
_syncAttribute() {
|
|
4983
|
+
_syncAttribute(excludedKeys) {
|
|
4983
4984
|
this.attribute === this.baseAttributes && this.resolvedStatePatch && this.detachAttributeFromBaseAttributes();
|
|
4984
4985
|
const snapshot = this.buildStaticAttributeSnapshot(),
|
|
4985
|
-
delta = this.syncObjectToSnapshot(this.attribute, snapshot);
|
|
4986
|
-
return this.valid = this.isValid(), this.attributeMayContainTransientAttrs =
|
|
4986
|
+
delta = this.syncObjectToSnapshot(this.attribute, snapshot, excludedKeys);
|
|
4987
|
+
return this.valid = this.isValid(), this.attributeMayContainTransientAttrs = !!excludedKeys, delta;
|
|
4987
4988
|
}
|
|
4988
|
-
_syncFinalAttributeFromStaticTruth() {
|
|
4989
|
+
_syncFinalAttributeFromStaticTruth(excludedKeys) {
|
|
4989
4990
|
const target = this.finalAttribute;
|
|
4990
4991
|
if (!target) return;
|
|
4991
4992
|
const snapshot = this.buildStaticAttributeSnapshot();
|
|
4992
|
-
this.syncObjectToSnapshot(target, snapshot);
|
|
4993
|
+
this.syncObjectToSnapshot(target, snapshot, excludedKeys);
|
|
4993
4994
|
}
|
|
4994
4995
|
mergeAttributeDeltaCategory(category, key, prev, next) {
|
|
4995
4996
|
var _a;
|
|
@@ -5046,6 +5047,25 @@ class Graphic extends Node {
|
|
|
5046
5047
|
this.getBaseAttributesStorage()[key] = params[key];
|
|
5047
5048
|
}
|
|
5048
5049
|
}
|
|
5050
|
+
_commitAnimationStaticAttributes(params, context) {
|
|
5051
|
+
if (!params) return;
|
|
5052
|
+
const source = params,
|
|
5053
|
+
baseAttributes = this.getBaseAttributesStorage(),
|
|
5054
|
+
target = this.attribute,
|
|
5055
|
+
delta = new Map();
|
|
5056
|
+
let hasKeys = !1;
|
|
5057
|
+
for (const key in source) {
|
|
5058
|
+
if (!Object.prototype.hasOwnProperty.call(source, key)) continue;
|
|
5059
|
+
hasKeys = !0;
|
|
5060
|
+
const previousValue = target[key],
|
|
5061
|
+
nextValue = source[key];
|
|
5062
|
+
baseAttributes[key] = nextValue, target[key] = nextValue, areAttributeValuesEqual(previousValue, nextValue) || delta.set(key, {
|
|
5063
|
+
prev: previousValue,
|
|
5064
|
+
next: nextValue
|
|
5065
|
+
});
|
|
5066
|
+
}
|
|
5067
|
+
hasKeys && (this.valid = this.isValid(), this.attributeMayContainTransientAttrs = !0, this.submitUpdateByDelta(delta), this.onAttributeUpdate(context));
|
|
5068
|
+
}
|
|
5049
5069
|
applyAnimationTransientAttributes(params, forceUpdateTag = !1, context) {
|
|
5050
5070
|
const source = params;
|
|
5051
5071
|
let target,
|
|
@@ -5068,9 +5088,9 @@ class Graphic extends Node {
|
|
|
5068
5088
|
}
|
|
5069
5089
|
delta.size && (this.attributeMayContainTransientAttrs = !0), this.valid = this.isValid(), this.submitUpdateByDelta(delta, forceUpdateTag), this.onAttributeUpdate(context);
|
|
5070
5090
|
}
|
|
5071
|
-
_restoreAttributeFromStaticTruth(context) {
|
|
5072
|
-
this._syncFinalAttributeFromStaticTruth();
|
|
5073
|
-
const delta = this._syncAttribute();
|
|
5091
|
+
_restoreAttributeFromStaticTruth(context, excludedKeys) {
|
|
5092
|
+
this._syncFinalAttributeFromStaticTruth(excludedKeys);
|
|
5093
|
+
const delta = this._syncAttribute(excludedKeys);
|
|
5074
5094
|
this.submitUpdateByDelta(delta), this.onAttributeUpdate(context);
|
|
5075
5095
|
}
|
|
5076
5096
|
collectStatePatchDeltaKeys(previousPatch, nextPatch) {
|
|
@@ -11013,14 +11033,18 @@ function bindContributionProviderNoSingletonScope(bind, id) {
|
|
|
11013
11033
|
}
|
|
11014
11034
|
class ContributionStore {
|
|
11015
11035
|
static getStore(id) {
|
|
11016
|
-
|
|
11036
|
+
var _a;
|
|
11037
|
+
return null === (_a = this.store.get(id)) || void 0 === _a ? void 0 : _a.values().next().value;
|
|
11017
11038
|
}
|
|
11018
11039
|
static setStore(id, cache) {
|
|
11019
|
-
this.store.
|
|
11040
|
+
let caches = this.store.get(id);
|
|
11041
|
+
caches || (caches = new Set(), this.store.set(id, caches)), caches.add(cache);
|
|
11020
11042
|
}
|
|
11021
11043
|
static refreshAllContributions() {
|
|
11022
|
-
this.store.forEach(
|
|
11023
|
-
|
|
11044
|
+
this.store.forEach(caches => {
|
|
11045
|
+
caches.forEach(cache => {
|
|
11046
|
+
cache.refresh();
|
|
11047
|
+
});
|
|
11024
11048
|
});
|
|
11025
11049
|
}
|
|
11026
11050
|
}
|
|
@@ -12321,6 +12345,9 @@ class DefaultGroupBackgroundRenderContribution extends DefaultBaseBackgroundRend
|
|
|
12321
12345
|
}
|
|
12322
12346
|
const defaultGroupBackgroundRenderContribution = new DefaultGroupBackgroundRenderContribution();
|
|
12323
12347
|
|
|
12348
|
+
function hasDisabledStrokeSide(stroke) {
|
|
12349
|
+
return Array.isArray(stroke) && stroke.some(s => !1 === s || null === s);
|
|
12350
|
+
}
|
|
12324
12351
|
class DefaultRectRenderContribution {
|
|
12325
12352
|
constructor() {
|
|
12326
12353
|
this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -12376,7 +12403,7 @@ class SplitRectBeforeRenderContribution {
|
|
|
12376
12403
|
const {
|
|
12377
12404
|
stroke = groupAttribute.stroke
|
|
12378
12405
|
} = group.attribute;
|
|
12379
|
-
|
|
12406
|
+
hasDisabledStrokeSide(stroke) && (doFillOrStroke.doStroke = !1);
|
|
12380
12407
|
}
|
|
12381
12408
|
}
|
|
12382
12409
|
class SplitRectAfterRenderContribution {
|
|
@@ -12397,7 +12424,7 @@ class SplitRectAfterRenderContribution {
|
|
|
12397
12424
|
width: width,
|
|
12398
12425
|
height: height
|
|
12399
12426
|
} = rect.attribute;
|
|
12400
|
-
if (width = (null != width ? width : x1 - originX) || 0, height = (null != height ? height : y1 - originY) || 0,
|
|
12427
|
+
if (width = (null != width ? width : x1 - originX) || 0, height = (null != height ? height : y1 - originY) || 0, hasDisabledStrokeSide(stroke)) {
|
|
12401
12428
|
if (context.setStrokeStyle(rect, rect.attribute, x, y, groupAttribute), !(0 === cornerRadius || isArray(cornerRadius) && cornerRadius.every(num => 0 === num))) {
|
|
12402
12429
|
let lastStroke,
|
|
12403
12430
|
lastStrokeI = 0;
|
|
@@ -14705,7 +14732,8 @@ class DefaultIncrementalCanvasLineRender extends DefaultCanvasLineRender {
|
|
|
14705
14732
|
const runtimeInstallerContext = createLegacyBindingContext();
|
|
14706
14733
|
let runtimeGlobal,
|
|
14707
14734
|
runtimeInstallerPreloaded = !1;
|
|
14708
|
-
const
|
|
14735
|
+
const RUNTIME_RENDERER_NAMESPACE = "vrender:runtime-renderer",
|
|
14736
|
+
runtimeEntryKeys = new WeakMap();
|
|
14709
14737
|
function ensureRuntimeInstallerPreloaded() {
|
|
14710
14738
|
runtimeInstallerPreloaded || (runtimeInstallerPreloaded = !0, bindCoreModules({
|
|
14711
14739
|
bind: runtimeInstallerContext.bind
|
|
@@ -14766,11 +14794,11 @@ function installRuntimeGraphicRenderersToApp(app) {
|
|
|
14766
14794
|
const bindingContext = getRuntimeInstallerBindingContext();
|
|
14767
14795
|
refreshRuntimeInstallerContributions();
|
|
14768
14796
|
const renderers = bindingContext.getAll(GraphicRender),
|
|
14769
|
-
registeredKeys = getTrackedEntryKeys(app.registry.renderer,
|
|
14770
|
-
clearTrackedEntryKeys(app.registry.renderer,
|
|
14797
|
+
registeredKeys = getTrackedEntryKeys(app.registry.renderer, RUNTIME_RENDERER_NAMESPACE);
|
|
14798
|
+
clearTrackedEntryKeys(app.registry.renderer, RUNTIME_RENDERER_NAMESPACE, null === (_a = app.registry.renderer.unregister) || void 0 === _a ? void 0 : _a.bind(app.registry.renderer)), registerRuntimeEntries((key, renderer) => {
|
|
14771
14799
|
var _a;
|
|
14772
14800
|
null === (_a = null == renderer ? void 0 : renderer.reInit) || void 0 === _a || _a.call(renderer), app.registry.renderer.register(key, renderer), registeredKeys.add(key);
|
|
14773
|
-
}, renderers,
|
|
14801
|
+
}, renderers, RUNTIME_RENDERER_NAMESPACE);
|
|
14774
14802
|
}
|
|
14775
14803
|
|
|
14776
14804
|
function simplifyRadialDist(points, sqTolerance) {
|
|
@@ -19416,6 +19444,30 @@ function getCustomType(custom) {
|
|
|
19416
19444
|
return 2;
|
|
19417
19445
|
}
|
|
19418
19446
|
|
|
19447
|
+
function buildAnimationStaticCommitAttrs(target, keys, animate, fallbackAttrs) {
|
|
19448
|
+
var _a;
|
|
19449
|
+
const commitTarget = target,
|
|
19450
|
+
contextFinalAttrs = null === (_a = commitTarget.context) || void 0 === _a ? void 0 : _a.finalAttrs,
|
|
19451
|
+
finalAttribute = commitTarget.getFinalAttribute();
|
|
19452
|
+
let commitAttrs = null;
|
|
19453
|
+
for (let i = 0; i < keys.length; i++) {
|
|
19454
|
+
const key = keys[i];
|
|
19455
|
+
animate && !animate.validAttr(key) || (contextFinalAttrs && Object.prototype.hasOwnProperty.call(contextFinalAttrs, key) ? (null != commitAttrs || (commitAttrs = {}), commitAttrs[key] = contextFinalAttrs[key]) : finalAttribute && Object.prototype.hasOwnProperty.call(finalAttribute, key) ? (null != commitAttrs || (commitAttrs = {}), commitAttrs[key] = finalAttribute[key]) : fallbackAttrs && Object.prototype.hasOwnProperty.call(fallbackAttrs, key) && (null != commitAttrs || (commitAttrs = {}), commitAttrs[key] = fallbackAttrs[key]));
|
|
19456
|
+
}
|
|
19457
|
+
return commitAttrs;
|
|
19458
|
+
}
|
|
19459
|
+
function commitAnimationStaticAttrs(target, keys, animate, fallbackAttrs) {
|
|
19460
|
+
const commitAttrs = buildAnimationStaticCommitAttrs(target, keys, animate, fallbackAttrs);
|
|
19461
|
+
if (!commitAttrs) return !1;
|
|
19462
|
+
target.setFinalAttributes(commitAttrs);
|
|
19463
|
+
const commitStaticAttributes = target._commitAnimationStaticAttributes;
|
|
19464
|
+
return "function" == typeof commitStaticAttributes ? commitStaticAttributes.call(target, commitAttrs, {
|
|
19465
|
+
type: AttributeUpdateType.ANIMATE_END
|
|
19466
|
+
}) : target.setAttributes(commitAttrs, !1, {
|
|
19467
|
+
type: AttributeUpdateType.ANIMATE_END
|
|
19468
|
+
}), !0;
|
|
19469
|
+
}
|
|
19470
|
+
|
|
19419
19471
|
class AnimateExecutor {
|
|
19420
19472
|
static registerBuiltInAnimate(name, animate) {
|
|
19421
19473
|
AnimateExecutor.builtInAnimateMap[name] = animate;
|
|
@@ -19595,7 +19647,7 @@ class AnimateExecutor {
|
|
|
19595
19647
|
props = params.to,
|
|
19596
19648
|
from = params.from;
|
|
19597
19649
|
const commitAttrOutChannel = this.shouldCommitAttrOutChannel(type);
|
|
19598
|
-
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic, commitAttrOutChannel, this.getAttrOutChannelExcludedKeys(graphic))), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic, commitAttrOutChannel, this.getAttrOutChannelExcludedKeys(graphic))), from = parsedFromProps.from), parsedFromProps.attrOutChannel && graphic.setAttributes(parsedFromProps.attrOutChannel), this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic);
|
|
19650
|
+
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic, commitAttrOutChannel, this.getAttrOutChannelExcludedKeys(graphic))), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic, commitAttrOutChannel, this.getAttrOutChannelExcludedKeys(graphic))), from = parsedFromProps.from), parsedFromProps.attrOutChannel && graphic.setAttributes(parsedFromProps.attrOutChannel), this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic), this.commitAnimatedUpdateDiffAttrsOnEnd(animate, graphic, type, props);
|
|
19599
19651
|
let totalDelay = 0;
|
|
19600
19652
|
oneByOneDelay && (totalDelay = oneByOneDelay * (count - index - 1));
|
|
19601
19653
|
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;
|
|
@@ -19677,6 +19729,25 @@ class AnimateExecutor {
|
|
|
19677
19729
|
shouldCommitAttrOutChannel(type) {
|
|
19678
19730
|
return "update" !== type;
|
|
19679
19731
|
}
|
|
19732
|
+
commitAnimatedUpdateDiffAttrsOnEnd(animate, graphic, type, props) {
|
|
19733
|
+
if ("update" === type || !props || !this.isUpdateDiffContext(graphic)) return;
|
|
19734
|
+
const keys = this.collectAnimatedUpdateDiffAttrKeys(graphic, props);
|
|
19735
|
+
(null == keys ? void 0 : keys.length) && animate.onEnd(() => {
|
|
19736
|
+
commitAnimationStaticAttrs(graphic, keys, animate, props);
|
|
19737
|
+
});
|
|
19738
|
+
}
|
|
19739
|
+
isUpdateDiffContext(graphic) {
|
|
19740
|
+
const context = graphic.context;
|
|
19741
|
+
return "update" === (null == context ? void 0 : context.diffState) || "update" === (null == context ? void 0 : context.animationState);
|
|
19742
|
+
}
|
|
19743
|
+
collectAnimatedUpdateDiffAttrKeys(graphic, props) {
|
|
19744
|
+
var _a;
|
|
19745
|
+
const diffAttrs = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.diffAttrs;
|
|
19746
|
+
if (!diffAttrs) return null;
|
|
19747
|
+
let keys = null;
|
|
19748
|
+
for (const key in props) Object.prototype.hasOwnProperty.call(props, key) && Object.prototype.hasOwnProperty.call(diffAttrs, key) && void 0 !== diffAttrs[key] && (null != keys || (keys = []), keys.push(key));
|
|
19749
|
+
return keys;
|
|
19750
|
+
}
|
|
19680
19751
|
createCustomAnimation(animate, CustomAnimateConstructor, from, props, duration, easing, customParams) {
|
|
19681
19752
|
const customAnimate = new CustomAnimateConstructor(from, props, duration, easing, customParams);
|
|
19682
19753
|
animate.play(customAnimate);
|
|
@@ -27149,6 +27220,24 @@ function removeKeysFromRecord(record, keys) {
|
|
|
27149
27220
|
for (const key in record) Object.prototype.hasOwnProperty.call(record, key) && !includesKey(keys, key) && (nextRecord[key] = record[key]);
|
|
27150
27221
|
return nextRecord;
|
|
27151
27222
|
}
|
|
27223
|
+
function collectActiveSiblingAttrKeys(target, currentAnimate) {
|
|
27224
|
+
var _a;
|
|
27225
|
+
const getTrackedAnimates = null == target ? void 0 : target.getTrackedAnimates;
|
|
27226
|
+
if ("function" == typeof getTrackedAnimates) {
|
|
27227
|
+
const trackedAnimates = getTrackedAnimates.call(target);
|
|
27228
|
+
if (trackedAnimates && trackedAnimates.size <= 1) return;
|
|
27229
|
+
}
|
|
27230
|
+
const forEachTrackedAnimate = null == target ? void 0 : target.forEachTrackedAnimate;
|
|
27231
|
+
if ("function" != typeof forEachTrackedAnimate) return;
|
|
27232
|
+
let keys;
|
|
27233
|
+
const currentEndProps = null === (_a = currentAnimate.getEndProps) || void 0 === _a ? void 0 : _a.call(currentAnimate);
|
|
27234
|
+
return forEachTrackedAnimate.call(target, animate => {
|
|
27235
|
+
var _a;
|
|
27236
|
+
if (animate === currentAnimate || animate.status === AnimateStatus.END) return;
|
|
27237
|
+
const endProps = null === (_a = animate.getEndProps) || void 0 === _a ? void 0 : _a.call(animate);
|
|
27238
|
+
if (endProps) for (const key in endProps) !Object.prototype.hasOwnProperty.call(endProps, key) || currentEndProps && Object.prototype.hasOwnProperty.call(currentEndProps, key) || ((null != keys ? keys : keys = Object.create(null))[key] = !0);
|
|
27239
|
+
}), keys;
|
|
27240
|
+
}
|
|
27152
27241
|
class Animate {
|
|
27153
27242
|
constructor(id = Generator.GenAutoIncrementId(), timeline = defaultTimeline, slience) {
|
|
27154
27243
|
this.id = id, this.status = AnimateStatus.INITIAL, this._timeline = timeline, timeline.addAnimate(this), this.slience = slience, this._startTime = 0, this._duration = 0, this._totalDuration = 0, this._loopCount = 0, this._currentLoop = 0, this._bounce = !1, this._firstStep = null, this._lastStep = null, this._startProps = {}, this._endProps = {}, this._preventAttrs = new Set(), this.currentTime = 0, this.interpolateUpdateFunction = null, this.priority = 0;
|
|
@@ -27172,7 +27261,7 @@ class Animate {
|
|
|
27172
27261
|
this.target = target;
|
|
27173
27262
|
const trackerTarget = this.target;
|
|
27174
27263
|
return trackerTarget.detachAttributeFromBaseAttributes(), trackerTarget.trackAnimate(this), this.onRemove(() => {
|
|
27175
|
-
this.stop(), this.__skipRestoreStaticAttributeOnRemove || trackerTarget.restoreStaticAttribute(), trackerTarget.untrackAnimate(this.id);
|
|
27264
|
+
this.stop(), this.__skipRestoreStaticAttributeOnRemove || trackerTarget.restoreStaticAttribute(collectActiveSiblingAttrKeys(trackerTarget, this)), trackerTarget.untrackAnimate(this.id);
|
|
27176
27265
|
}), this.target.onAnimateBind && !this.slience && this.target.onAnimateBind(this), this.target.animationAttribute || (this.target.animationAttribute = {}), this;
|
|
27177
27266
|
}
|
|
27178
27267
|
to(props, duration = 300, easing = "linear") {
|
|
@@ -27309,7 +27398,8 @@ class Animate {
|
|
|
27309
27398
|
if (nextTime < this._startTime) return void (this.currentTime = nextTime);
|
|
27310
27399
|
if (nextTime >= this._startTime + this._totalDuration) {
|
|
27311
27400
|
null === (_a = this._lastStep) || void 0 === _a || _a.onUpdate(!0, 1, {}), null === (_b = this._lastStep) || void 0 === _b || _b.onEnd(), this.onEnd(), this.status = AnimateStatus.END;
|
|
27312
|
-
|
|
27401
|
+
const trackerTarget = this.target;
|
|
27402
|
+
return trackerTarget.restoreStaticAttribute(collectActiveSiblingAttrKeys(trackerTarget, this)), void (this.__skipRestoreStaticAttributeOnRemove = !0);
|
|
27313
27403
|
}
|
|
27314
27404
|
this.status = AnimateStatus.RUNNING, this.currentTime <= this._startTime && this.onStart(), this.currentTime = nextTime;
|
|
27315
27405
|
let cycleTime = nextTime - this._startTime,
|
|
@@ -27523,10 +27613,10 @@ class AnimateExtension {
|
|
|
27523
27613
|
type: AttributeUpdateType.ANIMATE_BIND
|
|
27524
27614
|
});
|
|
27525
27615
|
}
|
|
27526
|
-
restoreStaticAttribute() {
|
|
27616
|
+
restoreStaticAttribute(excludedKeys) {
|
|
27527
27617
|
this._restoreAttributeFromStaticTruth({
|
|
27528
27618
|
type: AttributeUpdateType.ANIMATE_END
|
|
27529
|
-
});
|
|
27619
|
+
}, excludedKeys);
|
|
27530
27620
|
}
|
|
27531
27621
|
executeAnimation(config) {
|
|
27532
27622
|
return this.initAnimateExecutor(), this._animateExecutor.execute(config), this;
|
|
@@ -36437,6 +36527,6 @@ TableSeriesNumber.defaultAttributes = {
|
|
|
36437
36527
|
select: true
|
|
36438
36528
|
};
|
|
36439
36529
|
|
|
36440
|
-
const version = "1.1.
|
|
36530
|
+
const version = "1.1.1";
|
|
36441
36531
|
|
|
36442
36532
|
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, IDataZoomEvent, IDataZoomInteractiveEvent, 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, SeriesNumberCellStateValue, SeriesNumberEvent, SizeContinuousLegend, Slider, StoryLabelItem, Switch, SymbolLabel, TableSeriesNumber, 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, installPoptipToApp, installScrollbarToApp, 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, setPoptipTheme, smartInvertStrategy, tan2AngleToAngle, textIntersect, ticks, traverseGroup, version };
|
package/es/axis/constant.js
CHANGED
package/es/axis/util.js
CHANGED
package/es/crosshair/rect.js
CHANGED
package/es/empty-tip/register.js
CHANGED
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,OAAO,CAAC;AAE/B,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;AAC7B,cAAc,uBAAuB,CAAC","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"1.1.
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC;AAE/B,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;AAC7B,cAAc,uBAAuB,CAAC","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"1.1.1\";\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';\nexport * from './table-series-number';\n"]}
|
package/es/jsx/component-type.js
CHANGED
package/es/label/arc.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visactor/vrender-components",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "components library for dp visualization",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "cjs/index.js",
|
|
@@ -129,9 +129,9 @@
|
|
|
129
129
|
"dependencies": {
|
|
130
130
|
"@visactor/vutils": "~1.0.12",
|
|
131
131
|
"@visactor/vscale": "~1.0.12",
|
|
132
|
-
"@visactor/vrender-core": "1.1.
|
|
133
|
-
"@visactor/vrender-kits": "1.1.
|
|
134
|
-
"@visactor/vrender-animate": "1.1.
|
|
132
|
+
"@visactor/vrender-core": "1.1.1",
|
|
133
|
+
"@visactor/vrender-kits": "1.1.1",
|
|
134
|
+
"@visactor/vrender-animate": "1.1.1"
|
|
135
135
|
},
|
|
136
136
|
"devDependencies": {
|
|
137
137
|
"@rushstack/eslint-patch": "~1.1.4",
|
|
@@ -146,8 +146,8 @@
|
|
|
146
146
|
"typescript": "4.9.5",
|
|
147
147
|
"cross-env": "^7.0.3",
|
|
148
148
|
"@internal/bundler": "0.0.1",
|
|
149
|
-
"@internal/
|
|
150
|
-
"@internal/
|
|
149
|
+
"@internal/eslint-config": "0.0.1",
|
|
150
|
+
"@internal/ts-config": "0.0.1"
|
|
151
151
|
},
|
|
152
152
|
"keywords": [
|
|
153
153
|
"VisActor",
|