Skip to content

Commit

Permalink
Merge pull request #893 from VisActor/release/0.17.14
Browse files Browse the repository at this point in the history
[Auto release] release 0.17.14
  • Loading branch information
neuqzxy authored Jan 12, 2024
2 parents de88e46 + 128b298 commit a5813da
Show file tree
Hide file tree
Showing 29 changed files with 280 additions and 60 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ jobs:
- name: Build bugserver
run: node common/scripts/install-run-rush.js build --only @internal/bugserver-trigger

- name: Run CI
working-directory: ./tools/bugserver-trigger
env:
BUG_SERVER_TOKEN: ${{ secrets.BUG_SERVER_TOKEN }}
run: node ../../common/scripts/install-run-rushx.js ci -t @internal/bugserver-trigger
# - name: Run CI
# working-directory: ./tools/bugserver-trigger
# env:
# BUG_SERVER_TOKEN: ${{ secrets.BUG_SERVER_TOKEN }}
# run: node ../../common/scripts/install-run-rushx.js ci -t @internal/bugserver-trigger

- name: Build react-vrender
run: node common/scripts/install-run-rush.js build --only @visactor/react-vrender
Expand Down
26 changes: 13 additions & 13 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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":"vrenderMain","version":"0.17.13","nextBump":"patch"}]
[{"definitionName":"lockStepVersion","policyName":"vrenderMain","version":"0.17.14","nextBump":"patch"}]
16 changes: 16 additions & 0 deletions docs/assets/changelog/en/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# v0.17.13

2024-01-10

**🆕 New feature**
- **@visactor/vrender-core**: background support opacity
**🐛 Bug fix**
- **@visactor/vrender-components**: filter out invisible indicator spec
- **@visactor/vrender-components**: `measureTextSize` needs to take into account the fonts configured on the stage theme
- **@visactor/vrender-core**: fix issue with incremental draw
- **@visactor/vrender-core**: supply the `getTheme()` api for `IStage`



[more detail about v0.17.13](https://github.com/VisActor/VRender/releases/tag/v0.17.13)

# v0.17.12

2024-01-10
Expand Down
16 changes: 16 additions & 0 deletions docs/assets/changelog/zh/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# v0.17.13

2024-01-10

**🆕 新增功能**
- **@visactor/vrender-core**: background support opacity
**🐛 功能修复**
- **@visactor/vrender-components**: filter out invisible indicator spec
- **@visactor/vrender-components**: `measureTextSize` needs to take into account the fonts configured on the stage theme
- **@visactor/vrender-core**: fix issue with incremental draw
- **@visactor/vrender-core**: supply the `getTheme()` api for `IStage`



[更多详情请查看 v0.17.13](https://github.com/VisActor/VRender/releases/tag/v0.17.13)

# v0.17.12

2024-01-10
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@visactor/vchart": "1.3.0",
"@visactor/vutils": "~0.17.3",
"@visactor/vgrammar": "~0.5.7",
"@visactor/vrender": "workspace:0.17.13",
"@visactor/vrender": "workspace:0.17.14",
"markdown-it": "^13.0.0",
"highlight.js": "^11.8.0",
"axios": "^1.4.0",
Expand Down
6 changes: 6 additions & 0 deletions packages/react-vrender-utils/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"name": "@visactor/react-vrender-utils",
"entries": [
{
"version": "0.17.14",
"tag": "@visactor/react-vrender-utils_v0.17.14",
"date": "Fri, 12 Jan 2024 10:33:32 GMT",
"comments": {}
},
{
"version": "0.17.13",
"tag": "@visactor/react-vrender-utils_v0.17.13",
Expand Down
7 changes: 6 additions & 1 deletion packages/react-vrender-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Change Log - @visactor/react-vrender-utils

This log was last generated on Wed, 10 Jan 2024 14:18:21 GMT and should not be manually modified.
This log was last generated on Fri, 12 Jan 2024 10:33:32 GMT and should not be manually modified.

## 0.17.14
Fri, 12 Jan 2024 10:33:32 GMT

_Version update only_

## 0.17.13
Wed, 10 Jan 2024 14:18:21 GMT
Expand Down
6 changes: 3 additions & 3 deletions packages/react-vrender-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/react-vrender-utils",
"version": "0.17.13",
"version": "0.17.14",
"description": "",
"sideEffects": false,
"main": "cjs/index.js",
Expand All @@ -24,8 +24,8 @@
"react-dom": "^18.2.0"
},
"dependencies": {
"@visactor/vrender": "workspace:0.17.13",
"@visactor/react-vrender": "workspace:0.17.13",
"@visactor/vrender": "workspace:0.17.14",
"@visactor/react-vrender": "workspace:0.17.14",
"@visactor/vutils": "~0.17.3",
"react-reconciler": "^0.29.0",
"tslib": "^2.3.1"
Expand Down
6 changes: 6 additions & 0 deletions packages/react-vrender/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"name": "@visactor/react-vrender",
"entries": [
{
"version": "0.17.14",
"tag": "@visactor/react-vrender_v0.17.14",
"date": "Fri, 12 Jan 2024 10:33:32 GMT",
"comments": {}
},
{
"version": "0.17.13",
"tag": "@visactor/react-vrender_v0.17.13",
Expand Down
7 changes: 6 additions & 1 deletion packages/react-vrender/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Change Log - @visactor/react-vrender

This log was last generated on Wed, 10 Jan 2024 14:18:21 GMT and should not be manually modified.
This log was last generated on Fri, 12 Jan 2024 10:33:32 GMT and should not be manually modified.

## 0.17.14
Fri, 12 Jan 2024 10:33:32 GMT

_Version update only_

## 0.17.13
Wed, 10 Jan 2024 14:18:21 GMT
Expand Down
4 changes: 2 additions & 2 deletions packages/react-vrender/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/react-vrender",
"version": "0.17.13",
"version": "0.17.14",
"description": "",
"sideEffects": false,
"main": "cjs/index.js",
Expand All @@ -23,7 +23,7 @@
"react": "^18.2.0"
},
"dependencies": {
"@visactor/vrender": "workspace:0.17.13",
"@visactor/vrender": "workspace:0.17.14",
"@visactor/vutils": "~0.17.3",
"react-reconciler": "^0.29.0",
"tslib": "^2.3.1"
Expand Down
6 changes: 6 additions & 0 deletions packages/vrender-components/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"name": "@visactor/vrender-components",
"entries": [
{
"version": "0.17.14",
"tag": "@visactor/vrender-components_v0.17.14",
"date": "Fri, 12 Jan 2024 10:33:32 GMT",
"comments": {}
},
{
"version": "0.17.13",
"tag": "@visactor/vrender-components_v0.17.13",
Expand Down
7 changes: 6 additions & 1 deletion packages/vrender-components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Change Log - @visactor/vrender-components

This log was last generated on Wed, 10 Jan 2024 14:18:21 GMT and should not be manually modified.
This log was last generated on Fri, 12 Jan 2024 10:33:32 GMT and should not be manually modified.

## 0.17.14
Fri, 12 Jan 2024 10:33:32 GMT

_Version update only_

## 0.17.13
Wed, 10 Jan 2024 14:18:21 GMT
Expand Down
6 changes: 3 additions & 3 deletions packages/vrender-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/vrender-components",
"version": "0.17.13",
"version": "0.17.14",
"description": "components library for dp visualization",
"sideEffects": false,
"main": "cjs/index.js",
Expand All @@ -24,8 +24,8 @@
"analysis-core": "bundle -f umd -a -i core.ts"
},
"dependencies": {
"@visactor/vrender-core": "workspace:0.17.13",
"@visactor/vrender-kits": "workspace:0.17.13",
"@visactor/vrender-core": "workspace:0.17.14",
"@visactor/vrender-kits": "workspace:0.17.14",
"@visactor/vutils": "~0.17.3",
"@visactor/vscale": "~0.17.3"
},
Expand Down
12 changes: 12 additions & 0 deletions packages/vrender-core/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{
"name": "@visactor/vrender-core",
"entries": [
{
"version": "0.17.14",
"tag": "@visactor/vrender-core_v0.17.14",
"date": "Fri, 12 Jan 2024 10:33:32 GMT",
"comments": {
"none": [
{
"comment": "fix: fix `splitRect` when rect has `x1` or `y1`\n\n"
}
]
}
},
{
"version": "0.17.13",
"tag": "@visactor/vrender-core_v0.17.13",
Expand Down
11 changes: 10 additions & 1 deletion packages/vrender-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# Change Log - @visactor/vrender-core

This log was last generated on Wed, 10 Jan 2024 14:18:21 GMT and should not be manually modified.
This log was last generated on Fri, 12 Jan 2024 10:33:32 GMT and should not be manually modified.

## 0.17.14
Fri, 12 Jan 2024 10:33:32 GMT

### Updates

- fix: fix `splitRect` when rect has `x1` or `y1`



## 0.17.13
Wed, 10 Jan 2024 14:18:21 GMT
Expand Down
2 changes: 1 addition & 1 deletion packages/vrender-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/vrender-core",
"version": "0.17.13",
"version": "0.17.14",
"description": "",
"sideEffects": [
"./src/modules.ts"
Expand Down
29 changes: 29 additions & 0 deletions packages/vrender-core/src/common/rect-utils.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { isNil } from '@visactor/vutils';
import type { IRectGraphicAttribute } from '../interface/graphic/rect';

export const normalizeRectAttributes = (attribute: IRectGraphicAttribute) => {
if (!attribute) {
return { x: 0, y: 0, width: 0, height: 0 };
}

let width = isNil(attribute.width) ? attribute.x1 - attribute.x : attribute.width;
let height = isNil(attribute.height) ? attribute.y1 - attribute.y : attribute.height;
let x = 0;
let y = 0;

if (width < 0) {
x = width;
width = -width;
} else if (Number.isNaN(width)) {
width = 0;
}

if (height < 0) {
y = height;
height = -height;
} else if (Number.isNaN(height)) {
height = 0;
}

return { x, y, width, height };
};
5 changes: 3 additions & 2 deletions packages/vrender-core/src/common/split-path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import type { IPointLike } from '@visactor/vutils';
import { isNumber, Bounds, getIntersectPoint } from '@visactor/vutils';
import type { ILine, IRect, IArc, ICircle, IArea, IPolygon, IPath } from '../interface';
import { bezierCurversToPath, pathToBezierCurves } from './morphing-utils';
import { normalizeRectAttributes } from './rect-utils';
/**
* split a rect to grids
*/
Expand Down Expand Up @@ -59,10 +60,10 @@ export function splitToGrids(width: number, height: number, count: number) {
}

export const splitRect = (rect: IRect, count: number) => {
const { width, height } = normalizeRectAttributes(rect.attribute);

const x = 0;
const y = 0;
const width = rect.getComputedAttribute('width');
const height = rect.getComputedAttribute('height');
const grids = splitToGrids(width, height, count);
const res = [];
const gridHeight = height / grids.length;
Expand Down
Loading

0 comments on commit a5813da

Please sign in to comment.