@visactor/vrender-components 1.0.46 → 1.0.47-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/crosshair/rect.js +2 -1
- package/cjs/data-zoom/config.js +1 -2
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/label/arc.js +1 -1
- package/cjs/label-item/index.js +1 -1
- package/dist/index.es.js +23 -14
- package/es/crosshair/rect.js +2 -1
- package/es/data-zoom/config.js +1 -2
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/label/arc.js +1 -1
- package/es/label-item/index.js +1 -1
- package/package.json +6 -6
package/cjs/crosshair/rect.js
CHANGED
package/cjs/data-zoom/config.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.0.
|
|
20
|
+
}), exports.version = void 0, exports.version = "1.0.47-alpha.0", __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,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACa,QAAA,OAAO,GAAG,gBAAgB,CAAC;AAExC,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.0.47-alpha.0\";\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/cjs/label-item/index.js
CHANGED
|
@@ -18,4 +18,4 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
|
|
|
18
18
|
Object.defineProperty(exports, "__esModule", {
|
|
19
19
|
value: !0
|
|
20
20
|
}), __exportStar(require("./label-item"), exports), __exportStar(require("./type"), exports);
|
|
21
|
-
//# sourceMappingURL=index.js.map
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
package/dist/index.es.js
CHANGED
|
@@ -2450,6 +2450,7 @@ const DefaultAttribute = Object.assign(Object.assign(Object.assign({
|
|
|
2450
2450
|
shadowPickMode: "graphic",
|
|
2451
2451
|
keepStrokeScale: !1,
|
|
2452
2452
|
clipConfig: null,
|
|
2453
|
+
pathProxy: null,
|
|
2453
2454
|
roughStyle: null
|
|
2454
2455
|
}, DefaultDebugAttribute), DefaultStyle), DefaultTransform);
|
|
2455
2456
|
const DefaultArcAttribute = Object.assign(Object.assign({}, DefaultAttribute), {
|
|
@@ -6225,7 +6226,7 @@ function getConicGradientAt(x, y, angle, color) {
|
|
|
6225
6226
|
const _tempBounds = new AABBBounds(),
|
|
6226
6227
|
tempMatrix = new Matrix();
|
|
6227
6228
|
new AABBBounds();
|
|
6228
|
-
const GRAPHIC_UPDATE_TAG_KEY = ["lineWidth", "scaleX", "scaleY", "angle", "anchor", "visible"];
|
|
6229
|
+
const GRAPHIC_UPDATE_TAG_KEY = ["lineWidth", "pathProxy", "scaleX", "scaleY", "angle", "anchor", "visible"];
|
|
6229
6230
|
const tempConstantXYKey = ["x", "y"],
|
|
6230
6231
|
tempConstantScaleXYKey = ["scaleX", "scaleY"],
|
|
6231
6232
|
tempConstantAngleKey = ["angle"],
|
|
@@ -6406,7 +6407,7 @@ class Graphic extends Node {
|
|
|
6406
6407
|
return paddingArray && bounds.expand(paddingArray), this.clearUpdateBoundTag(), bounds;
|
|
6407
6408
|
}
|
|
6408
6409
|
updatePathProxyAABBBounds(aabbBounds) {
|
|
6409
|
-
const path =
|
|
6410
|
+
const path = this.getPathProxy();
|
|
6410
6411
|
if (!path) return !1;
|
|
6411
6412
|
const boundsContext = new BoundsContext(aabbBounds);
|
|
6412
6413
|
return renderCommandList(path.commandList, boundsContext, 0, 0), !0;
|
|
@@ -6839,7 +6840,16 @@ class Graphic extends Node {
|
|
|
6839
6840
|
};
|
|
6840
6841
|
}
|
|
6841
6842
|
createPathProxy(path) {
|
|
6842
|
-
|
|
6843
|
+
const proxy = isString(path, !0) ? new CustomPath2D().fromString(path) : new CustomPath2D();
|
|
6844
|
+
return this.pathProxy = proxy, this.attribute.pathProxy = proxy, this.addUpdateShapeAndBoundsTag(), this.onAttributeUpdate(), proxy;
|
|
6845
|
+
}
|
|
6846
|
+
getPathProxy() {
|
|
6847
|
+
var _a;
|
|
6848
|
+
const attributePathProxy = null === (_a = this.attribute) || void 0 === _a ? void 0 : _a.pathProxy,
|
|
6849
|
+
rawPathProxy = null != attributePathProxy ? attributePathProxy : this.pathProxy;
|
|
6850
|
+
if (!rawPathProxy) return null;
|
|
6851
|
+
const resolvedPathProxy = "function" == typeof rawPathProxy ? rawPathProxy(this.attribute) : rawPathProxy;
|
|
6852
|
+
return resolvedPathProxy ? isString(resolvedPathProxy, !0) ? new CustomPath2D().fromString(resolvedPathProxy) : resolvedPathProxy : null;
|
|
6843
6853
|
}
|
|
6844
6854
|
loadImage(image, background = !1) {
|
|
6845
6855
|
if (background && (null == image ? void 0 : image.background) && (image = image.background), background && (!image || backgroundNotImage(image))) return void (this.backgroundImg = !1);
|
|
@@ -6889,6 +6899,8 @@ class Graphic extends Node {
|
|
|
6889
6899
|
}
|
|
6890
6900
|
toCustomPath() {
|
|
6891
6901
|
var _a, _b, _c;
|
|
6902
|
+
const pathProxy = this.getPathProxy();
|
|
6903
|
+
if (pathProxy) return pathProxy;
|
|
6892
6904
|
const renderer = null === (_c = null === (_b = (null === (_a = this.stage) || void 0 === _a ? void 0 : _a.renderService) || application.renderService) || void 0 === _b ? void 0 : _b.drawContribution) || void 0 === _c ? void 0 : _c.getRenderContribution(this);
|
|
6893
6905
|
if (renderer) {
|
|
6894
6906
|
const context = new EmptyContext2d(null, 1);
|
|
@@ -7604,7 +7616,8 @@ let DefaultGraphicService = class {
|
|
|
7604
7616
|
this.hooks.clearAABBBounds.taps.length && this.hooks.clearAABBBounds.call(graphic, stage, b);
|
|
7605
7617
|
}
|
|
7606
7618
|
updatePathProxyAABBBounds(aabbBounds, graphic) {
|
|
7607
|
-
|
|
7619
|
+
var _a;
|
|
7620
|
+
const path = null === (_a = null == graphic ? void 0 : graphic.getPathProxy) || void 0 === _a ? void 0 : _a.call(graphic);
|
|
7608
7621
|
if (!path) return !1;
|
|
7609
7622
|
const boundsContext = new BoundsContext(aabbBounds);
|
|
7610
7623
|
return renderCommandList(path.commandList, boundsContext, 0, 0), !0;
|
|
@@ -8550,7 +8563,7 @@ let Line$1 = class Line extends Graphic {
|
|
|
8550
8563
|
return super.isValid() && this._isValid();
|
|
8551
8564
|
}
|
|
8552
8565
|
_isValid() {
|
|
8553
|
-
if (this.
|
|
8566
|
+
if (this.getPathProxy()) return !0;
|
|
8554
8567
|
const {
|
|
8555
8568
|
points: points,
|
|
8556
8569
|
segments: segments
|
|
@@ -9723,7 +9736,7 @@ class Area extends Graphic {
|
|
|
9723
9736
|
return super.isValid() && this._isValid();
|
|
9724
9737
|
}
|
|
9725
9738
|
_isValid() {
|
|
9726
|
-
if (this.
|
|
9739
|
+
if (this.getPathProxy()) return !0;
|
|
9727
9740
|
const {
|
|
9728
9741
|
points: points,
|
|
9729
9742
|
segments: segments
|
|
@@ -11055,7 +11068,8 @@ class BaseRender {
|
|
|
11055
11068
|
});
|
|
11056
11069
|
}
|
|
11057
11070
|
drawPathProxy(graphic, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
11058
|
-
|
|
11071
|
+
const path = graphic.getPathProxy();
|
|
11072
|
+
if (!path) return !1;
|
|
11059
11073
|
const themeAttributes = getTheme(graphic, null == params ? void 0 : params.theme)[graphic.type.replace("3d", "")],
|
|
11060
11074
|
{
|
|
11061
11075
|
fill = themeAttributes.fill,
|
|
@@ -11072,12 +11086,7 @@ class BaseRender {
|
|
|
11072
11086
|
sVisible = strokeVisible(opacity, strokeOpacity),
|
|
11073
11087
|
doFill = runFill(fill),
|
|
11074
11088
|
doStroke = runStroke(stroke, lineWidth);
|
|
11075
|
-
|
|
11076
|
-
if (!doFill && !doStroke) return !0;
|
|
11077
|
-
if (!(fVisible || sVisible || fillCb || strokeCb)) return !0;
|
|
11078
|
-
context.beginPath();
|
|
11079
|
-
const path = "function" == typeof graphic.pathProxy ? graphic.pathProxy(graphic.attribute) : graphic.pathProxy;
|
|
11080
|
-
return renderCommandList(path.commandList, context, x, y), context.setShadowBlendStyle && context.setShadowBlendStyle(graphic, graphic.attribute, themeAttributes), this.beforeRenderStep(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, themeAttributes, drawContext, fillCb, strokeCb), doStroke && (strokeCb ? strokeCb(context, graphic.attribute, themeAttributes) : sVisible && (context.setStrokeStyle(graphic, graphic.attribute, x - originX, y - originY, themeAttributes), context.stroke())), doFill && (fillCb ? fillCb(context, graphic.attribute, themeAttributes) : fVisible && (context.setCommonStyle(graphic, graphic.attribute, x - originX, y - originY, themeAttributes), context.fill())), this.afterRenderStep(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, themeAttributes, drawContext, fillCb, strokeCb), !0;
|
|
11089
|
+
return !visible || !doFill && !doStroke || !(fVisible || sVisible || fillCb || strokeCb) || (context.beginPath(), renderCommandList(path.commandList, context, x, y), context.setShadowBlendStyle && context.setShadowBlendStyle(graphic, graphic.attribute, themeAttributes), this.beforeRenderStep(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, themeAttributes, drawContext, fillCb, strokeCb), doStroke && (strokeCb ? strokeCb(context, graphic.attribute, themeAttributes) : sVisible && (context.setStrokeStyle(graphic, graphic.attribute, x - originX, y - originY, themeAttributes), context.stroke())), doFill && (fillCb ? fillCb(context, graphic.attribute, themeAttributes) : fVisible && (context.setCommonStyle(graphic, graphic.attribute, x - originX, y - originY, themeAttributes), context.fill())), this.afterRenderStep(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, themeAttributes, drawContext, fillCb, strokeCb), !0);
|
|
11081
11090
|
}
|
|
11082
11091
|
valid(graphic, defaultAttribute, fillCb, strokeCb) {
|
|
11083
11092
|
const {
|
|
@@ -35154,6 +35163,6 @@ TableSeriesNumber.defaultAttributes = {
|
|
|
35154
35163
|
select: true
|
|
35155
35164
|
};
|
|
35156
35165
|
|
|
35157
|
-
const version = "1.0.
|
|
35166
|
+
const version = "1.0.47-alpha.0";
|
|
35158
35167
|
|
|
35159
35168
|
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, 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/crosshair/rect.js
CHANGED
package/es/data-zoom/config.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,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,OAAO,GAAG,gBAAgB,CAAC;AAExC,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.0.47-alpha.0\";\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/label/arc.js
CHANGED
package/es/label-item/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visactor/vrender-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.47-alpha.0",
|
|
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": "~1.0.12",
|
|
16
16
|
"@visactor/vscale": "~1.0.12",
|
|
17
|
-
"@visactor/vrender-core": "1.0.
|
|
18
|
-
"@visactor/vrender-kits": "1.0.
|
|
19
|
-
"@visactor/vrender-animate": "1.0.
|
|
17
|
+
"@visactor/vrender-core": "1.0.47-alpha.0",
|
|
18
|
+
"@visactor/vrender-kits": "1.0.47-alpha.0",
|
|
19
|
+
"@visactor/vrender-animate": "1.0.47-alpha.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@rushstack/eslint-patch": "~1.1.4",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"vite": "3.2.6",
|
|
31
31
|
"typescript": "4.9.5",
|
|
32
32
|
"cross-env": "^7.0.3",
|
|
33
|
-
"@internal/
|
|
33
|
+
"@internal/eslint-config": "0.0.1",
|
|
34
34
|
"@internal/ts-config": "0.0.1",
|
|
35
|
-
"@internal/
|
|
35
|
+
"@internal/bundler": "0.0.1"
|
|
36
36
|
},
|
|
37
37
|
"keywords": [
|
|
38
38
|
"VisActor",
|