Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Auto release] release 0.19.3 #1205

Merged
merged 6 commits into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.19.2","nextBump":"patch"}]
[{"definitionName":"lockStepVersion","policyName":"vrenderMain","version":"0.19.3","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.19.2

2024-05-09


**🆕 New feature**

- **@visactor/vrender-components**: support `focus` mode in discrete legend
- **@visactor/vrender-kits**: support tt env, closed [#1129](https://github.com/VisActor/VRender/issues/1129)
- **@visactor/vrender-core**: event support detailPath
- **@visactor/vrender-core**: support pauseTriggerEvent to pause stage event trigger



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

# v0.19.1

2024-05-08
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.19.2

2024-05-09


**🆕 新增功能**

- **@visactor/vrender-components**: support `focus` mode in discrete legend
- **@visactor/vrender-kits**: support tt env, closed [#1129](https://github.com/VisActor/VRender/issues/1129)
- **@visactor/vrender-core**: event support detailPath
- **@visactor/vrender-core**: support pauseTriggerEvent to pause stage event trigger



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

# v0.19.1

2024-05-08
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@visactor/vchart": "1.3.0",
"@visactor/vutils": "~0.18.4",
"@visactor/vgrammar": "~0.5.7",
"@visactor/vrender": "workspace:0.19.2",
"@visactor/vrender": "workspace:0.19.3",
"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.19.3",
"tag": "@visactor/react-vrender-utils_v0.19.3",
"date": "Fri, 10 May 2024 09:24:38 GMT",
"comments": {}
},
{
"version": "0.19.2",
"tag": "@visactor/react-vrender-utils_v0.19.2",
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 Thu, 09 May 2024 12:26:00 GMT and should not be manually modified.
This log was last generated on Fri, 10 May 2024 09:24:38 GMT and should not be manually modified.

## 0.19.3
Fri, 10 May 2024 09:24:38 GMT

_Version update only_

## 0.19.2
Thu, 09 May 2024 12:26:00 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.19.2",
"version": "0.19.3",
"description": "",
"sideEffects": false,
"main": "cjs/index.js",
Expand All @@ -24,8 +24,8 @@
"react-dom": "^18.2.0"
},
"dependencies": {
"@visactor/vrender": "workspace:0.19.2",
"@visactor/react-vrender": "workspace:0.19.2",
"@visactor/vrender": "workspace:0.19.3",
"@visactor/react-vrender": "workspace:0.19.3",
"@visactor/vutils": "~0.18.4",
"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.19.3",
"tag": "@visactor/react-vrender_v0.19.3",
"date": "Fri, 10 May 2024 09:24:38 GMT",
"comments": {}
},
{
"version": "0.19.2",
"tag": "@visactor/react-vrender_v0.19.2",
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 Thu, 09 May 2024 12:26:00 GMT and should not be manually modified.
This log was last generated on Fri, 10 May 2024 09:24:38 GMT and should not be manually modified.

## 0.19.3
Fri, 10 May 2024 09:24:38 GMT

_Version update only_

## 0.19.2
Thu, 09 May 2024 12:26:00 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.19.2",
"version": "0.19.3",
"description": "",
"sideEffects": false,
"main": "cjs/index.js",
Expand All @@ -23,7 +23,7 @@
"react": "^18.2.0"
},
"dependencies": {
"@visactor/vrender": "workspace:0.19.2",
"@visactor/vrender": "workspace:0.19.3",
"@visactor/vutils": "~0.18.4",
"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.19.3",
"tag": "@visactor/vrender-components_v0.19.3",
"date": "Fri, 10 May 2024 09:24:38 GMT",
"comments": {}
},
{
"version": "0.19.2",
"tag": "@visactor/vrender-components_v0.19.2",
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 Thu, 09 May 2024 12:26:00 GMT and should not be manually modified.
This log was last generated on Fri, 10 May 2024 09:24:38 GMT and should not be manually modified.

## 0.19.3
Fri, 10 May 2024 09:24:38 GMT

_Version update only_

## 0.19.2
Thu, 09 May 2024 12:26:00 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.19.2",
"version": "0.19.3",
"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.19.2",
"@visactor/vrender-kits": "workspace:0.19.2",
"@visactor/vrender-core": "workspace:0.19.3",
"@visactor/vrender-kits": "workspace:0.19.3",
"@visactor/vutils": "~0.18.4",
"@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.19.3",
"tag": "@visactor/vrender-core_v0.19.3",
"date": "Fri, 10 May 2024 09:24:39 GMT",
"comments": {
"none": [
{
"comment": "feat: support baseOpacity for group"
}
]
}
},
{
"version": "0.19.2",
"tag": "@visactor/vrender-core_v0.19.2",
Expand Down
9 changes: 8 additions & 1 deletion packages/vrender-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Change Log - @visactor/vrender-core

This log was last generated on Thu, 09 May 2024 12:26:00 GMT and should not be manually modified.
This log was last generated on Fri, 10 May 2024 09:24:39 GMT and should not be manually modified.

## 0.19.3
Fri, 10 May 2024 09:24:39 GMT

### Updates

- feat: support baseOpacity for group

## 0.19.2
Thu, 09 May 2024 12:26:00 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.19.2",
"version": "0.19.3",
"description": "",
"sideEffects": [
"./src/modules.ts",
Expand Down
3 changes: 2 additions & 1 deletion packages/vrender-core/src/graphic/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ export const DefaultGroupAttribute: Required<IGroupGraphicAttribute> = {
flexWrap: 'wrap',
justifyContent: 'flex-start',
alignItems: 'flex-start',
alignContent: 'flex-start'
alignContent: 'flex-start',
baseOpacity: 1
};

export const DefaultGlyphAttribute: Required<IGlyphGraphicAttribute> = {
Expand Down
1 change: 1 addition & 0 deletions packages/vrender-core/src/interface/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export interface IContext2d extends Releaseable {
camera?: ICamera;
modelMatrix?: mat4;
drawPromise?: Promise<any>;
baseGlobalAlpha?: number;
// 属性代理
fillStyle: string | CanvasGradient | CanvasPattern;
disableFill?: boolean;
Expand Down
2 changes: 2 additions & 0 deletions packages/vrender-core/src/interface/graphic/group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ export type IGroupAttribute = {
justifyContent?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around';
alignItems?: 'flex-start' | 'flex-end' | 'center';
alignContent?: 'flex-start' | 'center' | 'space-between' | 'space-around';
// 基准的透明度,用于控制group下面整体图元的透明度
baseOpacity?: number;
};

export type IGroupGraphicAttribute = Partial<IGraphicAttribute> & Partial<IGroupAttribute>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,13 @@ export class DefaultCanvasGroupRender implements IGraphicRender {
return;
}
// debugger;
const { clip } = group.attribute;
const { clip, baseOpacity = 1 } = group.attribute;
if (clip) {
context.save();
} else {
context.highPerformanceSave();
}
context.baseGlobalAlpha *= baseOpacity;

const groupAttribute = getTheme(group, params?.theme).group;

Expand Down Expand Up @@ -281,6 +282,8 @@ export class DefaultCanvasGroupRender implements IGraphicRender {
}
context.modelMatrix = lastModelMatrix;

context.baseGlobalAlpha /= baseOpacity;

if (p && p.then) {
p.then(() => {
if (clip) {
Expand Down
12 changes: 12 additions & 0 deletions packages/vrender-kits/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{
"name": "@visactor/vrender-kits",
"entries": [
{
"version": "0.19.3",
"tag": "@visactor/vrender-kits_v0.19.3",
"date": "Fri, 10 May 2024 09:24:39 GMT",
"comments": {
"none": [
{
"comment": "feat: support baseOpacity for group"
}
]
}
},
{
"version": "0.19.2",
"tag": "@visactor/vrender-kits_v0.19.2",
Expand Down
9 changes: 8 additions & 1 deletion packages/vrender-kits/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Change Log - @visactor/vrender-kits

This log was last generated on Thu, 09 May 2024 12:26:00 GMT and should not be manually modified.
This log was last generated on Fri, 10 May 2024 09:24:39 GMT and should not be manually modified.

## 0.19.3
Fri, 10 May 2024 09:24:39 GMT

### Updates

- feat: support baseOpacity for group

## 0.19.2
Thu, 09 May 2024 12:26:00 GMT
Expand Down
Loading
Loading