@visactor/vrender 1.0.25-alpha.1 → 1.0.26-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/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/index.es.js +26 -5
- package/dist/index.js +26 -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 +7 -7
package/cjs/index.d.ts
CHANGED
package/cjs/index.js
CHANGED
|
@@ -21,7 +21,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
21
21
|
|
|
22
22
|
const vrender_core_1 = require("@visactor/vrender-core"), vrender_kits_1 = require("@visactor/vrender-kits"), vrender_kits_2 = require("@visactor/vrender-kits"), vrender_animate_1 = require("@visactor/vrender-animate");
|
|
23
23
|
|
|
24
|
-
exports.version = "1.0.
|
|
24
|
+
exports.version = "1.0.26-alpha.0", (0, vrender_core_1.preLoadAllModule)(), (0,
|
|
25
25
|
vrender_core_1.isBrowserEnv)() ? (0, vrender_kits_1.loadBrowserEnv)(vrender_core_1.container) : (0,
|
|
26
26
|
vrender_core_1.isNodeEnv)() && (0, vrender_kits_1.loadNodeEnv)(vrender_core_1.container),
|
|
27
27
|
(0, vrender_kits_2.registerArc)(), (0, vrender_kits_2.registerArc3d)(), (0, vrender_kits_2.registerArea)(),
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kCAAgC;AAChC,yDAWgC;AAChC,yDAAmF;AACnF,yDAmBgC;AAChC,+DAAmF;AAEtE,QAAA,OAAO,GAAG,gBAAgB,CAAC;AAExC,IAAA,+BAAgB,GAAE,CAAC;AAEnB,IAAI,IAAA,2BAAY,GAAE,EAAE;IAClB,IAAA,6BAAc,EAAC,wBAAS,CAAC,CAAC;CAC3B;KAAM,IAAI,IAAA,wBAAS,GAAE,EAAE;IACtB,IAAA,0BAAW,EAAC,wBAAS,CAAC,CAAC;CACxB;AACD,IAAA,0BAAW,GAAE,CAAC;AACd,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,8BAAe,GAAE,CAAC;AAClB,IAAA,gCAAiB,GAAE,CAAC;AACpB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,+BAAgB,GAAE,CAAC;AACnB,IAAA,iCAAkB,GAAE,CAAC;AACrB,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,+BAAgB,GAAE,CAAC;AACnB,IAAA,2BAAY,GAAE,CAAC;AAEf,IAAA,uCAAwB,GAAE,CAAC;AAC3B,IAAA,4CAA6B,GAAE,CAAC;AAChC,IAAA,0CAA2B,GAAE,CAAC;AAC9B,IAAA,2CAA4B,GAAE,CAAC;AAC/B,IAAA,uCAAwB,GAAE,CAAC;AAC3B,IAAA,kCAAmB,GAAE,CAAC;AAEtB,IAAA,uCAAqB,GAAE,CAAC;AACxB,IAAA,iCAAe,GAAE,CAAC;AAElB,yDAAuC;AACvC,yDAAuC;AACvC,4DAA0C;AAC1C,+DAA6C;AAG7C,6DAAkD;AAAzC,wGAAA,KAAK,OAAA;AACd,uDAAmD;AAA1C,yGAAA,SAAS,OAAA","file":"index.js","sourcesContent":["import '@visactor/vrender-core';\nimport {\n container,\n isBrowserEnv,\n isNodeEnv,\n preLoadAllModule,\n registerFlexLayoutPlugin,\n registerViewTransform3dPlugin,\n registerHtmlAttributePlugin,\n registerReactAttributePlugin,\n registerDirectionalLight,\n registerOrthoCamera\n} from '@visactor/vrender-core';\nimport { loadBrowserEnv, loadNodeEnv, registerStar } from '@visactor/vrender-kits';\nimport {\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from '@visactor/vrender-kits';\nimport { registerCustomAnimate, registerAnimate } from '@visactor/vrender-animate';\n// 导出版本号\nexport const version = \"1.0.
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kCAAgC;AAChC,yDAWgC;AAChC,yDAAmF;AACnF,yDAmBgC;AAChC,+DAAmF;AAEtE,QAAA,OAAO,GAAG,gBAAgB,CAAC;AAExC,IAAA,+BAAgB,GAAE,CAAC;AAEnB,IAAI,IAAA,2BAAY,GAAE,EAAE;IAClB,IAAA,6BAAc,EAAC,wBAAS,CAAC,CAAC;CAC3B;KAAM,IAAI,IAAA,wBAAS,GAAE,EAAE;IACtB,IAAA,0BAAW,EAAC,wBAAS,CAAC,CAAC;CACxB;AACD,IAAA,0BAAW,GAAE,CAAC;AACd,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,8BAAe,GAAE,CAAC;AAClB,IAAA,gCAAiB,GAAE,CAAC;AACpB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,+BAAgB,GAAE,CAAC;AACnB,IAAA,iCAAkB,GAAE,CAAC;AACrB,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,+BAAgB,GAAE,CAAC;AACnB,IAAA,2BAAY,GAAE,CAAC;AAEf,IAAA,uCAAwB,GAAE,CAAC;AAC3B,IAAA,4CAA6B,GAAE,CAAC;AAChC,IAAA,0CAA2B,GAAE,CAAC;AAC9B,IAAA,2CAA4B,GAAE,CAAC;AAC/B,IAAA,uCAAwB,GAAE,CAAC;AAC3B,IAAA,kCAAmB,GAAE,CAAC;AAEtB,IAAA,uCAAqB,GAAE,CAAC;AACxB,IAAA,iCAAe,GAAE,CAAC;AAElB,yDAAuC;AACvC,yDAAuC;AACvC,4DAA0C;AAC1C,+DAA6C;AAG7C,6DAAkD;AAAzC,wGAAA,KAAK,OAAA;AACd,uDAAmD;AAA1C,yGAAA,SAAS,OAAA","file":"index.js","sourcesContent":["import '@visactor/vrender-core';\nimport {\n container,\n isBrowserEnv,\n isNodeEnv,\n preLoadAllModule,\n registerFlexLayoutPlugin,\n registerViewTransform3dPlugin,\n registerHtmlAttributePlugin,\n registerReactAttributePlugin,\n registerDirectionalLight,\n registerOrthoCamera\n} from '@visactor/vrender-core';\nimport { loadBrowserEnv, loadNodeEnv, registerStar } from '@visactor/vrender-kits';\nimport {\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from '@visactor/vrender-kits';\nimport { registerCustomAnimate, registerAnimate } from '@visactor/vrender-animate';\n// 导出版本号\nexport const version = \"1.0.26-alpha.0\";\n\npreLoadAllModule();\n\nif (isBrowserEnv()) {\n loadBrowserEnv(container);\n} else if (isNodeEnv()) {\n loadNodeEnv(container);\n}\nregisterArc();\nregisterArc3d();\nregisterArea();\nregisterCircle();\nregisterGlyph();\nregisterGroup();\nregisterImage();\nregisterLine();\nregisterPath();\nregisterPolygon();\nregisterPyramid3d();\nregisterRect();\nregisterRect3d();\nregisterRichtext();\nregisterShadowRoot();\nregisterSymbol();\nregisterText();\nregisterWrapText();\nregisterStar();\n\nregisterFlexLayoutPlugin();\nregisterViewTransform3dPlugin();\nregisterHtmlAttributePlugin();\nregisterReactAttributePlugin();\nregisterDirectionalLight();\nregisterOrthoCamera();\n\nregisterCustomAnimate();\nregisterAnimate();\n\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\nexport * from '@visactor/vrender-animate';\nexport * from '@visactor/vrender-components';\n\n// avoid naming conflicts with 'State' & 'Direction' in '@visactor/vrender-components'\nexport { State } from '@visactor/vrender-animate';\nexport { Direction } from '@visactor/vrender-core';\n"]}
|
package/dist/index.es.js
CHANGED
|
@@ -39306,6 +39306,25 @@ const DEFAULT_AXIS_THEME = {
|
|
|
39306
39306
|
fillOpacity: 1
|
|
39307
39307
|
}
|
|
39308
39308
|
},
|
|
39309
|
+
labelHoverOnAxis: {
|
|
39310
|
+
visible: !1,
|
|
39311
|
+
space: 4,
|
|
39312
|
+
position: 0,
|
|
39313
|
+
autoRotate: !1,
|
|
39314
|
+
textStyle: {
|
|
39315
|
+
fontSize: 12,
|
|
39316
|
+
fill: "white",
|
|
39317
|
+
fontWeight: "normal",
|
|
39318
|
+
fillOpacity: 1
|
|
39319
|
+
},
|
|
39320
|
+
background: {
|
|
39321
|
+
visible: !0,
|
|
39322
|
+
style: {
|
|
39323
|
+
cornerRadius: 2,
|
|
39324
|
+
fill: "black"
|
|
39325
|
+
}
|
|
39326
|
+
}
|
|
39327
|
+
},
|
|
39309
39328
|
tick: {
|
|
39310
39329
|
visible: !0,
|
|
39311
39330
|
inside: !1,
|
|
@@ -40297,7 +40316,8 @@ var __rest$b = undefined && undefined.__rest || function (s, e) {
|
|
|
40297
40316
|
loadLineAxisComponent();
|
|
40298
40317
|
class LineAxis extends AxisBase {
|
|
40299
40318
|
constructor(attributes, options) {
|
|
40300
|
-
|
|
40319
|
+
var _a;
|
|
40320
|
+
attributes.labelHoverOnAxis && (attributes.labelHoverOnAxis.textStyle = Object.assign({}, attributes.label.style, attributes.labelHoverOnAxis.textStyle), attributes.labelHoverOnAxis.space = null !== (_a = attributes.labelHoverOnAxis.space) && void 0 !== _a ? _a : attributes.label.space), super((null == options ? void 0 : options.skipDefault) ? attributes : merge({}, LineAxis.defaultAttributes, attributes), options), this.labelHoverOnAxisGroup = null;
|
|
40301
40321
|
}
|
|
40302
40322
|
_renderInner(container) {
|
|
40303
40323
|
var _a;
|
|
@@ -40521,9 +40541,10 @@ class LineAxis extends AxisBase {
|
|
|
40521
40541
|
textStyle = {},
|
|
40522
40542
|
background = {},
|
|
40523
40543
|
formatMethod: formatMethod,
|
|
40524
|
-
text: textContent = ""
|
|
40544
|
+
text: textContent = "",
|
|
40545
|
+
maxWidth: maxWidth
|
|
40525
40546
|
} = _c,
|
|
40526
|
-
restAttrs = __rest$b(_c, ["position", "space", "autoRotate", "textStyle", "background", "formatMethod", "text"]),
|
|
40547
|
+
restAttrs = __rest$b(_c, ["position", "space", "autoRotate", "textStyle", "background", "formatMethod", "text", "maxWidth"]),
|
|
40527
40548
|
point = this.getTickCoord(0);
|
|
40528
40549
|
"bottom" === orient || "top" === orient ? point.x = position : point.y = position;
|
|
40529
40550
|
let tickLength = 0;
|
|
@@ -40547,7 +40568,7 @@ class LineAxis extends AxisBase {
|
|
|
40547
40568
|
} = this.attribute;
|
|
40548
40569
|
textBaseline = 1 === -1 * verticalFactor ? "bottom" : "top";
|
|
40549
40570
|
} else textAlign = this.getTextAlign(vector), textBaseline = this.getTextBaseline(vector, !1);
|
|
40550
|
-
let maxTagWidth =
|
|
40571
|
+
let maxTagWidth = maxWidth;
|
|
40551
40572
|
if (isNil$1(maxTagWidth)) {
|
|
40552
40573
|
const {
|
|
40553
40574
|
verticalLimitSize: verticalLimitSize,
|
|
@@ -52847,7 +52868,7 @@ TableSeriesNumber.defaultAttributes = {
|
|
|
52847
52868
|
select: !0
|
|
52848
52869
|
};
|
|
52849
52870
|
|
|
52850
|
-
const version = "1.0.
|
|
52871
|
+
const version = "1.0.26-alpha.0";
|
|
52851
52872
|
preLoadAllModule();
|
|
52852
52873
|
if (isBrowserEnv()) {
|
|
52853
52874
|
loadBrowserEnv(container);
|
package/dist/index.js
CHANGED
|
@@ -39312,6 +39312,25 @@
|
|
|
39312
39312
|
fillOpacity: 1
|
|
39313
39313
|
}
|
|
39314
39314
|
},
|
|
39315
|
+
labelHoverOnAxis: {
|
|
39316
|
+
visible: !1,
|
|
39317
|
+
space: 4,
|
|
39318
|
+
position: 0,
|
|
39319
|
+
autoRotate: !1,
|
|
39320
|
+
textStyle: {
|
|
39321
|
+
fontSize: 12,
|
|
39322
|
+
fill: "white",
|
|
39323
|
+
fontWeight: "normal",
|
|
39324
|
+
fillOpacity: 1
|
|
39325
|
+
},
|
|
39326
|
+
background: {
|
|
39327
|
+
visible: !0,
|
|
39328
|
+
style: {
|
|
39329
|
+
cornerRadius: 2,
|
|
39330
|
+
fill: "black"
|
|
39331
|
+
}
|
|
39332
|
+
}
|
|
39333
|
+
},
|
|
39315
39334
|
tick: {
|
|
39316
39335
|
visible: !0,
|
|
39317
39336
|
inside: !1,
|
|
@@ -40303,7 +40322,8 @@
|
|
|
40303
40322
|
loadLineAxisComponent();
|
|
40304
40323
|
class LineAxis extends AxisBase {
|
|
40305
40324
|
constructor(attributes, options) {
|
|
40306
|
-
|
|
40325
|
+
var _a;
|
|
40326
|
+
attributes.labelHoverOnAxis && (attributes.labelHoverOnAxis.textStyle = Object.assign({}, attributes.label.style, attributes.labelHoverOnAxis.textStyle), attributes.labelHoverOnAxis.space = null !== (_a = attributes.labelHoverOnAxis.space) && void 0 !== _a ? _a : attributes.label.space), super((null == options ? void 0 : options.skipDefault) ? attributes : merge({}, LineAxis.defaultAttributes, attributes), options), this.labelHoverOnAxisGroup = null;
|
|
40307
40327
|
}
|
|
40308
40328
|
_renderInner(container) {
|
|
40309
40329
|
var _a;
|
|
@@ -40527,9 +40547,10 @@
|
|
|
40527
40547
|
textStyle = {},
|
|
40528
40548
|
background = {},
|
|
40529
40549
|
formatMethod: formatMethod,
|
|
40530
|
-
text: textContent = ""
|
|
40550
|
+
text: textContent = "",
|
|
40551
|
+
maxWidth: maxWidth
|
|
40531
40552
|
} = _c,
|
|
40532
|
-
restAttrs = __rest$b(_c, ["position", "space", "autoRotate", "textStyle", "background", "formatMethod", "text"]),
|
|
40553
|
+
restAttrs = __rest$b(_c, ["position", "space", "autoRotate", "textStyle", "background", "formatMethod", "text", "maxWidth"]),
|
|
40533
40554
|
point = this.getTickCoord(0);
|
|
40534
40555
|
"bottom" === orient || "top" === orient ? point.x = position : point.y = position;
|
|
40535
40556
|
let tickLength = 0;
|
|
@@ -40553,7 +40574,7 @@
|
|
|
40553
40574
|
} = this.attribute;
|
|
40554
40575
|
textBaseline = 1 === -1 * verticalFactor ? "bottom" : "top";
|
|
40555
40576
|
} else textAlign = this.getTextAlign(vector), textBaseline = this.getTextBaseline(vector, !1);
|
|
40556
|
-
let maxTagWidth =
|
|
40577
|
+
let maxTagWidth = maxWidth;
|
|
40557
40578
|
if (isNil$1(maxTagWidth)) {
|
|
40558
40579
|
const {
|
|
40559
40580
|
verticalLimitSize: verticalLimitSize,
|
|
@@ -52853,7 +52874,7 @@
|
|
|
52853
52874
|
select: !0
|
|
52854
52875
|
};
|
|
52855
52876
|
|
|
52856
|
-
const version = "1.0.
|
|
52877
|
+
const version = "1.0.26-alpha.0";
|
|
52857
52878
|
preLoadAllModule();
|
|
52858
52879
|
if (isBrowserEnv()) {
|
|
52859
52880
|
loadBrowserEnv(container);
|