Skip to content

Commit d143fc9

Browse files
committed
build: prelease version 1.12.16
1 parent 7f95b15 commit d143fc9

File tree

28 files changed

+116
-112
lines changed

28 files changed

+116
-112
lines changed

common/changes/@visactor/vchart/fix-data-zoom-filter_2024-12-06-08-02.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

common/changes/@visactor/vchart/fix-data-zoom-filter_2024-12-09-08-05.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

common/changes/@visactor/vchart/fix-extensiom-mark-update-when-has-name_2024-12-11-08-09.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

common/changes/@visactor/vchart/fix-indicator-switch-visible_2024-12-11-08-58.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

common/config/rush/pnpm-lock.yaml

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[{"definitionName":"lockStepVersion","policyName":"vchartMain","version":"1.12.15","mainProject":"@visactor/vchart","nextBump":"patch"}]
1+
[{"definitionName":"lockStepVersion","policyName":"vchartMain","version":"1.12.16","mainProject":"@visactor/vchart","nextBump":"patch"}]

docs/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
},
1313
"dependencies": {
1414
"@arco-design/web-react": "2.46.1",
15-
"@visactor/openinula-vchart": "workspace:1.12.15",
16-
"@visactor/react-vchart": "workspace:1.12.15",
17-
"@visactor/vchart": "workspace:1.12.15",
18-
"@visactor/vchart-extension": "workspace:1.12.15",
15+
"@visactor/openinula-vchart": "workspace:1.12.16",
16+
"@visactor/react-vchart": "workspace:1.12.16",
17+
"@visactor/vchart": "workspace:1.12.16",
18+
"@visactor/vchart-extension": "workspace:1.12.16",
1919
"@visactor/vchart-theme": "~1.6.6",
2020
"@visactor/vmind": "1.2.4-alpha.5",
2121
"@visactor/vutils": "~0.19.2",

packages/block-vchart/block/vchart/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/harmony_vchart/library/oh-package.json5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
name: '@visactor/harmony-vchart',
3-
version: '1.12.15',
3+
version: '1.12.16',
44
description: '@visactor/vchart 针对 harmonyOS 打造的图表库,拥有非常酷炫的动画能力,近20种图表类型,以及原生的渲染性能',
55
main: 'Index.ets',
66
author: {

packages/harmony_vchart/library/src/main/ets/vchart_dist.js

Lines changed: 34 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -32209,7 +32209,7 @@ function shiftY(texts, option) {
3220932209
deltaYTolerance = Number.MAX_VALUE
3221032210
} = globalShiftY;
3221132211
for (let iter = 0; iter < maxIterations; iter++) {
32212-
texts.sort((a, b) => getY1(a) - getY1(b));
32212+
texts.sort((a, b) => getY1Initial(a) - getY1Initial(b));
3221332213
let error = 0;
3221432214
for (let i = 0; i < n - 1; i++) {
3221532215
const curText = texts[i];
@@ -61928,7 +61928,7 @@ const registerVChartCore = () => {
6192861928
};
6192961929
registerVChartCore();
6193061930

61931-
const version = "1.12.15";
61931+
const version = "1.12.16";
6193261932

6193361933
const addVChartProperty = (data, op) => {
6193461934
const context = op.beforeCall();
@@ -63573,7 +63573,9 @@ class BaseSeries extends BaseModel {
6357363573
_updateExtensionMarkSpec() {
6357463574
var _a;
6357563575
(_a = this._spec.extensionMark) === null || _a === void 0 ? void 0 : _a.forEach((spec, i) => {
63576-
const mark = this._marks.getMarkWithInfo({ name: `${this._getExtensionMarkNamePrefix()}_${i}` });
63576+
const mark = this._marks.getMarkWithInfo({
63577+
name: isValid$1(spec.name) ? `${spec.name}` : `${this._getExtensionMarkNamePrefix()}_${i}`
63578+
});
6357763579
if (!mark) {
6357863580
return;
6357963581
}
@@ -63797,7 +63799,7 @@ class BaseSeries extends BaseModel {
6379763799
_compareExtensionMarksSpec(newMarks, prevMarks, compareResult) {
6379863800
if (newMarks.length !== prevMarks.length ||
6379963801
prevMarks.some((prev, index) => {
63800-
return prev.type !== newMarks[index].type || prev.id !== newMarks[index].id;
63802+
return (prev.type !== newMarks[index].type || prev.id !== newMarks[index].id || prev.name !== newMarks[index].name);
6380163803
})) {
6380263804
compareResult.reMake = true;
6380363805
}
@@ -93028,12 +93030,13 @@ const lockStatisticsFilter = (statisticsData, op) => {
9302893030
return statisticsData;
9302993031
}
9303093032
const fields = originalFields();
93031-
if (statisticsData[datumField] &&
93033+
const realField = isArray$1(datumField) ? datumField[0] : datumField;
93034+
if (statisticsData[realField] &&
9303293035
fields &&
93033-
fields[datumField] &&
93034-
fields[datumField].lockStatisticsByDomain &&
93036+
fields[realField] &&
93037+
fields[realField].lockStatisticsByDomain &&
9303593038
!isContinuous()) {
93036-
statisticsData[datumField].values = newDomain;
93039+
statisticsData[realField].values = newDomain;
9303793040
}
9303893041
return statisticsData;
9303993042
};
@@ -94034,32 +94037,32 @@ class DataZoom extends DataFilterBaseComponent {
9403494037
this._startHandlerSize / 2,
9403594038
defaultSize + this._startHandlerSize / 2
9403694039
];
94040+
const compWidth = this._computeWidth();
94041+
const compHeight = this._computeHeight();
9403794042
if (this._isHorizontal) {
9403894043
stateScaleRange = this._visible
94039-
? [this._startHandlerSize / 2, this._computeWidth() - handlerSize + this._startHandlerSize / 2]
94044+
? [this._startHandlerSize / 2, compWidth - handlerSize + this._startHandlerSize / 2]
9404094045
: defaultRange;
9404194046
this._stateScale.range(stateScaleRange);
94042-
this._valueScale.range([this._computeHeight() - this._middleHandlerSize, 0]);
94043-
}
94044-
else if (this.layoutOrient === 'left') {
94045-
stateScaleRange = this._visible
94046-
? [this._startHandlerSize / 2, this._computeHeight() - handlerSize + this._startHandlerSize / 2]
94047-
: defaultRange;
94048-
this._stateScale.range(stateScaleRange);
94049-
this._valueScale.range([this._computeWidth() - this._middleHandlerSize, 0]);
94047+
this._valueScale.range([compHeight - this._middleHandlerSize, 0]);
9405094048
}
9405194049
else {
9405294050
stateScaleRange = this._visible
94053-
? [this._startHandlerSize / 2, this._computeHeight() - handlerSize + this._startHandlerSize / 2]
94051+
? [this._startHandlerSize / 2, compHeight - handlerSize + this._startHandlerSize / 2]
9405494052
: defaultRange;
9405594053
this._stateScale.range(stateScaleRange);
94056-
this._valueScale.range([0, this._computeWidth() - this._middleHandlerSize]);
94054+
if (this.layoutOrient === 'left') {
94055+
this._valueScale.range([compWidth - this._middleHandlerSize, 0]);
94056+
}
94057+
else {
94058+
this._valueScale.range([0, compWidth - this._middleHandlerSize]);
94059+
}
9405794060
}
9405894061
if (this._component && this._cacheVisibility !== false) {
9405994062
this._component.setAttributes({
9406094063
size: {
94061-
width: this._computeWidth(),
94062-
height: this._computeHeight()
94064+
width: compWidth,
94065+
height: compHeight
9406394066
},
9406494067
position: {
9406594068
x: this.getLayoutStartPoint().x,
@@ -94105,7 +94108,7 @@ class DataZoom extends DataFilterBaseComponent {
9410594108
if (this._isHorizontal) {
9410694109
return this._backgroundSize + this._middleHandlerSize;
9410794110
}
94108-
return this.getLayoutRect().height - (this._startHandlerSize + this._endHandlerSize) / 2;
94111+
return this.getLayoutRect().height;
9410994112
}
9411094113
_isScaleValid(scale) {
9411194114
if (!scale || !scale.domain()) {
@@ -94127,8 +94130,8 @@ class DataZoom extends DataFilterBaseComponent {
9412794130
x: this.getLayoutStartPoint().x,
9412894131
y: this.getLayoutStartPoint().y
9412994132
}, orient: this._orient, size: {
94130-
width: this.getLayoutRect().width,
94131-
height: this.getLayoutRect().height
94133+
width: this._computeWidth(),
94134+
height: this._computeHeight()
9413294135
}, showDetail: spec.showDetail, brushSelect: (_b = spec.brushSelect) !== null && _b !== void 0 ? _b : false, zoomLock: (_c = spec.zoomLock) !== null && _c !== void 0 ? _c : false, minSpan: this._minSpan, maxSpan: this._maxSpan, delayType: spec.delayType, delayTime: isValid$1(spec.delayType) ? (_d = spec.delayTime) !== null && _d !== void 0 ? _d : 30 : 0, realTime: (_e = spec.realTime) !== null && _e !== void 0 ? _e : true, previewData: isNeedPreview && this._data.getLatestData(), previewPointsX: isNeedPreview && this._dataToPositionX, previewPointsY: isNeedPreview && this._dataToPositionY, tolerance: this._spec.tolerance }, this._getComponentAttrs(isNeedPreview));
9413394136
}
9413494137
_createOrUpdateComponent() {
@@ -94579,6 +94582,13 @@ class Indicator extends BaseComponent {
9457994582
}, content: contentComponentSpec }, restSpec);
9458094583
}
9458194584
_createOrUpdateIndicatorComponent(attrs) {
94585+
if (attrs.visible === false) {
94586+
if (this._indicatorComponent && this._indicatorComponent.parent) {
94587+
this._indicatorComponent.parent.removeChild(this._indicatorComponent);
94588+
}
94589+
this._indicatorComponent = null;
94590+
return;
94591+
}
9458294592
if (this._indicatorComponent) {
9458394593
if (!isEqual(attrs, this._cacheAttrs)) {
9458494594
this._indicatorComponent.setAttributes(attrs);
@@ -94593,7 +94603,6 @@ class Indicator extends BaseComponent {
9459394603
this._indicatorComponent.on('*', (event, type) => this._delegateEvent(this._indicatorComponent, event, type));
9459494604
}
9459594605
this._cacheAttrs = attrs;
94596-
return this._indicatorComponent;
9459794606
}
9459894607
_createText(field, text) {
9459994608
var _a;

0 commit comments

Comments
 (0)