@visactor/vchart 1.4.0 → 1.5.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/build/es5/index.js +1 -1
- package/build/index.js +9 -6
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/core/index.d.ts +1 -1
- package/cjs/core/index.js +1 -1
- package/cjs/core/index.js.map +1 -1
- package/esm/core/index.d.ts +1 -1
- package/esm/core/index.js +1 -1
- package/esm/core/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -40315,9 +40315,9 @@
|
|
|
40315
40315
|
});
|
|
40316
40316
|
(null === (_b = viewOptions.options3d) || void 0 === _b ? void 0 : _b.enable) && stage.set3dOptions(viewOptions.options3d), stage.enableIncrementalAutoRender(), this._viewBox = viewOptions.viewBox, this._view.emit(HOOK_EVENT.AFTER_CREATE_VRENDER_STAGE), this._view.emit(HOOK_EVENT.BEFORE_CREATE_VRENDER_LAYER);
|
|
40317
40317
|
const layer = null !== (_c = viewOptions.layer) && void 0 !== _c ? _c : stage.defaultLayer;
|
|
40318
|
-
if (this._view.emit(HOOK_EVENT.AFTER_CREATE_VRENDER_LAYER), (null === (_d = this._eventConfig) || void 0 === _d ? void 0 : _d.drag) && (this._dragController = new DragNDrop(
|
|
40318
|
+
if (this._view.emit(HOOK_EVENT.AFTER_CREATE_VRENDER_LAYER), (null === (_d = this._eventConfig) || void 0 === _d ? void 0 : _d.drag) && (this._dragController = new DragNDrop(stage)), null === (_e = this._eventConfig) || void 0 === _e ? void 0 : _e.gesture) {
|
|
40319
40319
|
const gestureConfig = isObject$g(this._eventConfig.gesture) ? this._eventConfig.gesture : {};
|
|
40320
|
-
this._gestureController = new Gesture(
|
|
40320
|
+
this._gestureController = new Gesture(stage, gestureConfig);
|
|
40321
40321
|
}
|
|
40322
40322
|
return {
|
|
40323
40323
|
stage: stage,
|
|
@@ -53995,8 +53995,11 @@
|
|
|
53995
53995
|
const generateLabelAttributes = (marks, groupSize, encoder, labelStyle, parameters, theme) => {
|
|
53996
53996
|
var _a;
|
|
53997
53997
|
const labelTheme = null === (_a = null == theme ? void 0 : theme.components) || void 0 === _a ? void 0 : _a.dataLabel,
|
|
53998
|
-
dataLabels = marks.map(mark => {
|
|
53998
|
+
dataLabels = marks.map((mark, index) => {
|
|
53999
53999
|
var _a, _b, _c, _d, _e, _f;
|
|
54000
|
+
const labelParameters = Object.assign(Object.assign({}, parameters), {
|
|
54001
|
+
labelIndex: index
|
|
54002
|
+
});
|
|
54000
54003
|
let currentTheme = {};
|
|
54001
54004
|
switch (mark.markType) {
|
|
54002
54005
|
case GrammarMarkType.line:
|
|
@@ -54024,12 +54027,12 @@
|
|
|
54024
54027
|
mark.elements.forEach(element => {
|
|
54025
54028
|
var _a, _b;
|
|
54026
54029
|
if ("willRelease" !== element.getGraphicItem().releaseStatus) {
|
|
54027
|
-
const attributes = invokeEncoder(encoder, element.getDatum(), element,
|
|
54030
|
+
const attributes = invokeEncoder(encoder, element.getDatum(), element, labelParameters),
|
|
54028
54031
|
datum = merge$1({}, null !== (_b = null === (_a = null == currentTheme ? void 0 : currentTheme.data) || void 0 === _a ? void 0 : _a[0]) && void 0 !== _b ? _b : {}, attributes);
|
|
54029
54032
|
data.push(datum);
|
|
54030
54033
|
}
|
|
54031
54034
|
});
|
|
54032
|
-
const addition = invokeFunctionType(labelStyle,
|
|
54035
|
+
const addition = invokeFunctionType(labelStyle, labelParameters, mark),
|
|
54033
54036
|
graphicItemName = null === (_f = mark.graphicItem) || void 0 === _f ? void 0 : _f.name;
|
|
54034
54037
|
return merge$1({}, currentTheme, {
|
|
54035
54038
|
data: data,
|
|
@@ -63462,7 +63465,7 @@
|
|
|
63462
63465
|
VChart.useMark([ComponentMark, GroupMark, ImageMark]);
|
|
63463
63466
|
Factory.registerRegion('region', Region);
|
|
63464
63467
|
Factory.registerLayout('base', Layout);
|
|
63465
|
-
const version = "1.
|
|
63468
|
+
const version = "1.5.0";
|
|
63466
63469
|
Logger.getInstance(LoggerLevel.Error);
|
|
63467
63470
|
|
|
63468
63471
|
const WordCloud3dAnimation = (params) => {
|