Skip to content

Commit

Permalink
Merge pull request #2995 from VisActor/release/1.11.10
Browse files Browse the repository at this point in the history
[Auto release] release 1.11.10
  • Loading branch information
xile611 authored Jul 24, 2024
2 parents 79b6ffd + 58e9eab commit a30436a
Show file tree
Hide file tree
Showing 75 changed files with 1,955 additions and 505 deletions.
254 changes: 127 additions & 127 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion common/config/rush/version-policies.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"definitionName":"lockStepVersion","policyName":"vchartMain","version":"1.11.7","mainProject":"@visactor/vchart","nextBump":"patch"}]
[{"definitionName":"lockStepVersion","policyName":"vchartMain","version":"1.11.10","mainProject":"@visactor/vchart","nextBump":"patch"}]
8 changes: 5 additions & 3 deletions common/scripts/set-prerelease-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ const setJsonFileByKey = require('./set-json-file');
function writeVersionOfHarmony(nextVersion) {
const ohPackageJsonPath = path.join(__dirname, '../../packages/harmony_vchart/library/oh-package.json5');
let jsonFile = fs.readFileSync(ohPackageJsonPath, { encoding: 'utf-8' });
const pkgJson = JSON.parse(jsonFile);


jsonFile = setJsonFileByKey(jsonFile, pkgJson, ['version'], nextVersion);
jsonFile = jsonFile.replace(/(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?/gm, nextVersion);


fs.writeFileSync(ohPackageJsonPath, jsonFile);
Expand Down Expand Up @@ -97,7 +97,9 @@ function writePrereleaseVersion(nextBump, preReleaseName, nextVersionStr, buildN
fs.writeFileSync(pkgJsonPath, jsonFile)
});

writeVersionOfHarmony(nextVersion);
if (!preReleaseName || preReleaseName === 'none') {
writeVersionOfHarmony(nextVersion);
}
}

module.exports = writePrereleaseVersion;
38 changes: 38 additions & 0 deletions docs/assets/api/en/API/vchart.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ registerMap: (key: string, source: GeoSourceType, option?: GeoSourceOption) => v
Used to register map data.

```ts
export type GeoSourceOption = IGeoJsonOption | ITopoJsonOption;

export interface GeoSourceOption {
type: 'geojson';
/** Calculate center point */
Expand Down Expand Up @@ -155,6 +157,12 @@ export interface GeoSourceOption {
reverse?: boolean;
};
}

/** topojson */
export interface ITopoJsonOption extends Omit<IGeoJsonOption, 'type'> {
type: 'topojson';
object: string;
}
```

### unregisterMap
Expand Down Expand Up @@ -1207,3 +1215,33 @@ Update the indicator component data based on the component index in the spec.
*/
updateIndicatorDataByIndex: (index: number = 0, datum?: Datum) => void;
```

### geoZoomByIndex

Map Zoom API. Specifies the geo coordinate of a region by index order for zooming.

```ts
/**
* Map Zoom API
* @param [regionIndex=0] Specifies the geo coordinate of a region by index order for zooming
* @param zoom Zoom ratio
* @param center Zoom center
* @since 1.11.10
*/
geoZoomByIndex: (regionIndex: number, zoom: number, center?: { x: number; y: number }) => void;
```

### geoZoomById

Map Zoom API. Specifies the geo coordinate of a region by id for zooming

```ts
/**
* Map Zoom API
* @param regionId Specifies the geo coordinate of a region by id for zooming
* @param zoom Zoom ratio
* @param center Zoom center
* @since 1.11.10
*/
geoZoomById: (regionId: string | number, zoom: number, center?: { x: number; y: number }) => void;
```
39 changes: 39 additions & 0 deletions docs/assets/api/zh/API/vchart.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ registerMap: (key: string, source: GeoSourceType, option?: GeoSourceOption) => v
注册地图数据。

```ts
export type GeoSourceOption = IGeoJsonOption | ITopoJsonOption;

/** geojson 相关配置 */
export interface GeoSourceOption {
type: 'geojson';
/** 计算中心点 */
Expand Down Expand Up @@ -155,6 +158,12 @@ export interface GeoSourceOption {
reverse?: boolean;
};
}

/** topojson 相关配置 */
export interface ITopoJsonOption extends Omit<IGeoJsonOption, 'type'> {
type: 'topojson';
object: string;
}
```

### unregisterMap
Expand Down Expand Up @@ -1218,3 +1227,33 @@ convertValueToPosition: ((value: StringOrNumber, dataLinkInfo: DataLinkAxis, isR
*/
updateIndicatorDataByIndex: (index: number = 0, datum?: Datum) => void;
```

### geoZoomByIndex

地图缩放 API,根据索引顺序指定某个 region 区域的地图坐标系进行缩放。

```ts
/**
* 地图缩放 API
* @param [regionIndex=0] 根据索引顺序指定某个 region 区域的地图坐标系进行缩放
* @param zoom 缩放比例
* @param center 缩放中心
* @since 1.11.10
*/
geoZoomByIndex: (regionIndex: number, zoom: number, center?: { x: number; y: number }) => void;
```

### geoZoomById

地图缩放 API,根据 region id 指定某个 region 区域的地图坐标系进行缩放。

```ts
/**
* 地图缩放 API
* @param 根据 region id 指定某个 region 区域的地图坐标系进行缩放
* @param zoom 缩放比例
* @param center 缩放中心
* @since 1.11.10
*/
geoZoomById: (regionId: string | number, zoom: number, center?: { x: number; y: number }) => void;
```
25 changes: 25 additions & 0 deletions docs/assets/changelog/en/release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
# v1.11.9

2024-07-17


**🆕 New feature**


* @visactor/vchart: tooltip theme support transition duration


**🐛 Bug fix**


* @visactor/vchart: fix statistics confict of linear and discrete field, close [#2926](https://github.com/VisActor/VChart/issues/2926)
* @visactor/vchart: fix theme error of update spec
* @visactor/vchart: fix update of label when udpate spec
* @visactor/vchart: fix bug of polar point update aniamtion
* @visactor/vchart: react attributes should support react 17
* @visactor/vchart: fix height of link when set `minNodeHeight` of sankey



[more detail about v1.11.9](https://github.com/VisActor/VChart/releases/tag/v1.11.9)

# v1.11.7

2024-07-06
Expand Down
21 changes: 21 additions & 0 deletions docs/assets/changelog/zh/release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
# v1.11.9

2024-07-17


**🆕 新增功能**

* @visactor/vchart: 主题支持配置tooltip更新动画过渡持续时间


**🐛 功能修复**
* @visactor/vchart: 修复字段作为离散类型和连续类型时,计算统计值冲突的问题,关闭 [#2926](https://github.com/VisActor/VChart/issues/2926)
* @visactor/vchart: 修复更新图表时主题错误的问题
* @visactor/vchart: 修复更新图表时标签错误更新的问题
* @visactor/vchart: 修复极坐标系点更新动画的 bug
* @visactor/vchart: React 属性应支持 React 17
* @visactor/vchart: 修复设置桑基最小节点高度 `minNodeHeight` 时,边的高度计算不合理的问题


[更多详情请查看 v1.11.9](https://github.com/VisActor/VChart/releases/tag/v1.11.9)

# v1.11.7

2024-07-06
Expand Down
71 changes: 71 additions & 0 deletions docs/assets/examples/en/liquid-chart/liquid-chart-reverse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---
category: examples
group: liquid chart reverse
title: liquid chart supports reverse
keywords: liquidChart, proportion
order: 25-4
cover: /vchart/preview/liquid-chart-reverse_1.11.10.png
option: liquidChart
---

# liquid chart supports reverse

## Key Option

- `reverse` attribute declares whether the water wave diagram needs to be drawn in reverse from top to bottom.

## Demo source

```javascript livedemo
/** --Please add the following code when using it in your code -- */
// When using it in your code, please introduce registerLiquidChart and execute it
// import { registerLiquidChart } from '@visactor/vchart';
// registerLiquidChart();
/** --Please add the above code when using it in your code-- */

/** --Please delete the following code when using it in your code -- */
VCHART_MODULE.registerLiquidChart();
/** --Please delete the above code when using it in your code-- */

const spec = {
type: 'liquid',
valueField: 'value',
data: {
id: 'data',
values: [
{
value: 0.3
}
]
},
reverse: true,
indicator: {
visible: true,
title: {
visible: true,
style: {
text: 'progress'
}
},
content: [
{
visible: true,
style: {
fill: 'black',
text: '30%'
}
}
]
}
};

const vchart = new VChart(spec, { dom: CONTAINER_ID });
vchart.renderSync();

// Just for the convenience of console debugging, DO NOT COPY!
window['vchart'] = vchart;
```

## Related Tutorials

[Liquid Chart](link)
Loading

0 comments on commit a30436a

Please sign in to comment.