@visactor/vchart 1.2.2 → 1.2.3-beta.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/build/es5/index.js +1 -1
- package/build/index.js +19 -8
- 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/component/tooltip/handler/base.js +6 -3
- package/cjs/component/tooltip/handler/base.js.map +1 -1
- package/cjs/component/tooltip/handler/utils/common.js +2 -2
- package/cjs/component/tooltip/handler/utils/common.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/series/line/line.js +2 -1
- package/cjs/series/line/line.js.map +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/component/tooltip/handler/base.js +6 -3
- package/esm/component/tooltip/handler/base.js.map +1 -1
- package/esm/component/tooltip/handler/utils/common.js +2 -2
- package/esm/component/tooltip/handler/utils/common.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/series/line/line.js +2 -1
- package/esm/series/line/line.js.map +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 +6 -5
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.1";
|
|
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 = {
|
|
@@ -64666,7 +64671,7 @@
|
|
|
64666
64671
|
}
|
|
64667
64672
|
}
|
|
64668
64673
|
getSeriesStyle(datum) {
|
|
64669
|
-
const isLineAsSeriesMark = this._spec
|
|
64674
|
+
const isLineAsSeriesMark = this._spec?.seriesMark !== 'point';
|
|
64670
64675
|
return (attribute) => {
|
|
64671
64676
|
if (isLineAsSeriesMark) {
|
|
64672
64677
|
attribute === 'fill' && (attribute = 'stroke');
|
|
@@ -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`);
|
|
@@ -86557,6 +86562,9 @@
|
|
|
86557
86562
|
}
|
|
86558
86563
|
}
|
|
86559
86564
|
const getScale = (element, boundingClientRect) => {
|
|
86565
|
+
if (!element) {
|
|
86566
|
+
return 1;
|
|
86567
|
+
}
|
|
86560
86568
|
if (!boundingClientRect) {
|
|
86561
86569
|
boundingClientRect = element.getBoundingClientRect();
|
|
86562
86570
|
}
|
|
@@ -87390,9 +87398,12 @@
|
|
|
87390
87398
|
containerSize.width = window.innerWidth;
|
|
87391
87399
|
containerSize.height = window.innerHeight;
|
|
87392
87400
|
if (!isCanvas) {
|
|
87393
|
-
tooltipParentElementRect = tooltipParentElement
|
|
87401
|
+
tooltipParentElementRect = tooltipParentElement?.getBoundingClientRect() ?? {
|
|
87402
|
+
x: Infinity,
|
|
87403
|
+
y: Infinity
|
|
87404
|
+
};
|
|
87394
87405
|
const chartElement = (this._compiler.getCanvas() ?? this._chartContainer);
|
|
87395
|
-
const chartElementRect = chartElement
|
|
87406
|
+
const chartElementRect = chartElement?.getBoundingClientRect();
|
|
87396
87407
|
relativePosOffset = {
|
|
87397
87408
|
x: chartElementRect.x - tooltipParentElementRect.x,
|
|
87398
87409
|
y: chartElementRect.y - tooltipParentElementRect.y
|