@visactor/vchart 1.2.2 → 1.2.3-beta.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 +10 -5
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/chart/base-chart.js +4 -0
- package/cjs/chart/base-chart.js.map +1 -1
- package/cjs/component/crosshair/base.js +3 -2
- package/cjs/component/crosshair/base.js.map +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/cjs/mark/arc-3d.js +1 -1
- package/cjs/mark/arc.js +1 -1
- package/cjs/mark/area.js +1 -1
- package/cjs/mark/box-plot.js +1 -1
- package/cjs/mark/cell.js +1 -1
- package/cjs/model/base-model.js +1 -1
- package/cjs/model/interface.js +1 -1
- package/cjs/model/layout-item.js +1 -1
- package/cjs/model/model-state-manager.js +1 -1
- package/cjs/model/tooltip-helper.js +1 -1
- package/cjs/series/word-cloud/base.js +1 -1
- package/cjs/series/word-cloud/base.js.map +1 -1
- package/cjs/series/word-cloud/interface.d.ts +3 -3
- package/cjs/series/word-cloud/interface.js.map +1 -1
- package/cjs/series/word-cloud/word-cloud-3d.js +1 -1
- package/cjs/series/word-cloud/word-cloud-3d.js.map +1 -1
- package/esm/chart/base-chart.js +5 -1
- package/esm/chart/base-chart.js.map +1 -1
- package/esm/component/crosshair/base.js +3 -2
- package/esm/component/crosshair/base.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/esm/mark/arc-3d.js +1 -1
- package/esm/mark/arc.js +1 -1
- package/esm/mark/area.js +1 -1
- package/esm/mark/box-plot.js +1 -1
- package/esm/mark/cell.js +1 -1
- package/esm/model/base-model.js +1 -1
- package/esm/model/interface.js +1 -1
- package/esm/model/layout-item.js +1 -1
- package/esm/model/model-state-manager.js +1 -1
- package/esm/model/tooltip-helper.js +1 -1
- package/esm/series/word-cloud/base.js +1 -1
- package/esm/series/word-cloud/base.js.map +1 -1
- package/esm/series/word-cloud/interface.d.ts +3 -3
- package/esm/series/word-cloud/interface.js.map +1 -1
- package/esm/series/word-cloud/word-cloud-3d.js +1 -1
- package/esm/series/word-cloud/word-cloud-3d.js.map +1 -1
- package/package.json +3 -2
package/build/index.js
CHANGED
|
@@ -58422,7 +58422,7 @@
|
|
|
58422
58422
|
VChart.useMark([ComponentMark, GroupMark, ImageMark]);
|
|
58423
58423
|
Factory.registerRegion('region', Region);
|
|
58424
58424
|
Factory.registerLayout('base', Layout);
|
|
58425
|
-
const version = "1.2.
|
|
58425
|
+
const version = "1.2.3-beta.0";
|
|
58426
58426
|
Logger.getInstance(LoggerLevel.Error);
|
|
58427
58427
|
|
|
58428
58428
|
var SeriesMarkNameEnum;
|
|
@@ -59405,6 +59405,11 @@
|
|
|
59405
59405
|
width = containerWidth;
|
|
59406
59406
|
height = containerHeight;
|
|
59407
59407
|
}
|
|
59408
|
+
else if (isMiniAppLikeMode(this._option.mode) && this._option.modeParams?.domref) {
|
|
59409
|
+
const domRef = this._option.modeParams.domref;
|
|
59410
|
+
width = domRef.width;
|
|
59411
|
+
height = domRef.height;
|
|
59412
|
+
}
|
|
59408
59413
|
width = userWidth ?? width;
|
|
59409
59414
|
height = userHeight ?? height;
|
|
59410
59415
|
this._canvasRect = {
|
|
@@ -71228,7 +71233,7 @@
|
|
|
71228
71233
|
const fontWeightField = this._fontWeightField;
|
|
71229
71234
|
const fillingRotateAngles = this._wordCloudShapeConfig.fillingRotateAngles;
|
|
71230
71235
|
if (valueField) {
|
|
71231
|
-
const [minValue, maxValue] = extent$2(this.getViewData()?.latestData.map((datum) => datum[valueField]));
|
|
71236
|
+
const [minValue, maxValue] = extent$2(this.getViewData()?.latestData.map((datum) => +datum[valueField]));
|
|
71232
71237
|
valueScale.domain([minValue, maxValue], true).range(fontWeightRange);
|
|
71233
71238
|
wordCloudTransforms.push({
|
|
71234
71239
|
type: 'map',
|
|
@@ -71401,7 +71406,7 @@
|
|
|
71401
71406
|
const fontWeightField = this._fontWeightField;
|
|
71402
71407
|
const fillingRotateAngles = this._wordCloudShapeConfig.fillingRotateAngles;
|
|
71403
71408
|
if (valueField) {
|
|
71404
|
-
const [minValue, maxValue] = extent$2(this.getViewData()?.latestData.map((datum) => datum[valueField]));
|
|
71409
|
+
const [minValue, maxValue] = extent$2(this.getViewData()?.latestData.map((datum) => +datum[valueField]));
|
|
71405
71410
|
valueScale.domain([minValue, maxValue], true).range(fontWeightRange);
|
|
71406
71411
|
wordCloudTransforms.push({
|
|
71407
71412
|
type: 'map',
|
|
@@ -84298,8 +84303,8 @@
|
|
|
84298
84303
|
return null;
|
|
84299
84304
|
}
|
|
84300
84305
|
_getAxisInfoByField(field) {
|
|
84301
|
-
const axesComponents = this._option
|
|
84302
|
-
if (!axesComponents
|
|
84306
|
+
const axesComponents = this._option?.getComponentsByKey?.('axes');
|
|
84307
|
+
if (!axesComponents?.length) {
|
|
84303
84308
|
return null;
|
|
84304
84309
|
}
|
|
84305
84310
|
let bindingAxesIndex = get$1(this._spec, `${field}Field.bindingAxesIndex`);
|