Skip to content

Commit

Permalink
Merge pull request #423 from VisActor/release/0.12.7
Browse files Browse the repository at this point in the history
[Auto release] release 0.12.7
  • Loading branch information
xile611 authored Mar 27, 2024
2 parents d38c21b + 88535aa commit 6a575bd
Show file tree
Hide file tree
Showing 31 changed files with 203 additions and 101 deletions.
88 changes: 44 additions & 44 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":"vgrammarMain","version":"0.12.6","mainProject":"@visactor/vgrammar-core","nextBump":"patch"}]
[{"definitionName":"lockStepVersion","policyName":"vgrammarMain","version":"0.12.7","mainProject":"@visactor/vgrammar-core","nextBump":"patch"}]
20 changes: 10 additions & 10 deletions docs/dev-demos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
"devDependencies": {
"@internal/eslint-config": "workspace:*",
"@internal/ts-config": "workspace:*",
"@visactor/vgrammar": "workspace:0.12.6",
"@visactor/vgrammar-core": "workspace:0.12.6",
"@visactor/vgrammar-hierarchy": "workspace:0.12.6",
"@visactor/vgrammar-sankey": "workspace:0.12.6",
"@visactor/vgrammar-projection": "workspace:0.12.6",
"@visactor/vgrammar-wordcloud": "workspace:0.12.6",
"@visactor/vgrammar-wordcloud-shape": "workspace:0.12.6",
"@visactor/vgrammar-plot": "workspace:0.12.6",
"@visactor/vgrammar": "workspace:0.12.7",
"@visactor/vgrammar-core": "workspace:0.12.7",
"@visactor/vgrammar-hierarchy": "workspace:0.12.7",
"@visactor/vgrammar-sankey": "workspace:0.12.7",
"@visactor/vgrammar-projection": "workspace:0.12.7",
"@visactor/vgrammar-wordcloud": "workspace:0.12.7",
"@visactor/vgrammar-wordcloud-shape": "workspace:0.12.7",
"@visactor/vgrammar-plot": "workspace:0.12.7",
"@visactor/vutils": "~0.18.1",
"@visactor/vrender-core": "0.18.7",
"@visactor/vrender-kits": "0.18.7",
Expand All @@ -27,8 +27,8 @@
"lodash": "4.17.21",
"typescript": "4.9.5",
"vite": "3.2.6",
"@visactor/vgrammar-util": "workspace:0.12.6",
"@visactor/vgrammar-coordinate": "workspace:0.12.6",
"@visactor/vgrammar-util": "workspace:0.12.7",
"@visactor/vgrammar-coordinate": "workspace:0.12.7",
"@vitejs/plugin-react": "3.1.0"
}
}
18 changes: 18 additions & 0 deletions docs/site/assets/changelog/en/release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# v0.12.6

2024-03-25


**🆕 New feature**

- **@visactor/vgrammar-core**: support `ReactDOM` in view options

**🐛 Bug fix**

- **@visactor/vgrammar-core**: prevent animation attributes when binding
- **@visactor/vgrammar-core**: fix error of component when the graphic component is not registered



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

# v0.12.5

2024-03-20
Expand Down
18 changes: 18 additions & 0 deletions docs/site/assets/changelog/zh/release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# v0.12.6

2024-03-25


**🆕 新增功能**

- **@visactor/vgrammar-core**: support `ReactDOM` in view options

**🐛 功能修复**

- **@visactor/vgrammar-core**: prevent animation attributes when binding
- **@visactor/vgrammar-core**: fix error of component when the graphic component is not registered



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

# v0.12.5

2024-03-20
Expand Down
20 changes: 10 additions & 10 deletions docs/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@
},
"dependencies": {
"@arco-design/web-react": "2.46.1",
"@visactor/vgrammar": "workspace:0.12.6",
"@visactor/vgrammar-core": "workspace:0.12.6",
"@visactor/vgrammar-hierarchy": "workspace:0.12.6",
"@visactor/vgrammar-sankey": "workspace:0.12.6",
"@visactor/vgrammar-projection": "workspace:0.12.6",
"@visactor/vgrammar-wordcloud": "workspace:0.12.6",
"@visactor/vgrammar-wordcloud-shape": "workspace:0.12.6",
"@visactor/vgrammar-plot": "workspace:0.12.6",
"@visactor/vgrammar-util": "workspace:0.12.6",
"@visactor/vgrammar-coordinate": "workspace:0.12.6",
"@visactor/vgrammar": "workspace:0.12.7",
"@visactor/vgrammar-core": "workspace:0.12.7",
"@visactor/vgrammar-hierarchy": "workspace:0.12.7",
"@visactor/vgrammar-sankey": "workspace:0.12.7",
"@visactor/vgrammar-projection": "workspace:0.12.7",
"@visactor/vgrammar-wordcloud": "workspace:0.12.7",
"@visactor/vgrammar-wordcloud-shape": "workspace:0.12.7",
"@visactor/vgrammar-plot": "workspace:0.12.7",
"@visactor/vgrammar-util": "workspace:0.12.7",
"@visactor/vgrammar-coordinate": "workspace:0.12.7",
"@visactor/vutils": "~0.18.1",
"@visactor/vrender-core": "0.18.7",
"@visactor/vrender-kits": "0.18.7",
Expand Down
4 changes: 2 additions & 2 deletions packages/vgrammar-coordinate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/vgrammar-coordinate",
"version": "0.12.6",
"version": "0.12.7",
"description": "Coordinates for VGrammar",
"keywords": [
"coordinate",
Expand Down Expand Up @@ -34,7 +34,7 @@
"test-check": "DEBUG=jest jest --forceExit --detectOpenHandles --silent false --verbose false --runInBand"
},
"dependencies": {
"@visactor/vgrammar-util": "workspace:0.12.6",
"@visactor/vgrammar-util": "workspace:0.12.7",
"@visactor/vutils": "~0.18.1"
},
"devDependencies": {
Expand Down
12 changes: 12 additions & 0 deletions packages/vgrammar-core/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{
"name": "@visactor/vgrammar-core",
"entries": [
{
"version": "0.12.7",
"tag": "@visactor/vgrammar-core_v0.12.7",
"date": "Mon, 25 Mar 2024 10:45:05 GMT",
"comments": {
"none": [
{
"comment": "feat: interaction app new api `getStarState()`\n\n"
}
]
}
},
{
"version": "0.12.6",
"tag": "@visactor/vgrammar-core_v0.12.6",
Expand Down
11 changes: 10 additions & 1 deletion packages/vgrammar-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# Change Log - @visactor/vgrammar-core

This log was last generated on Fri, 22 Mar 2024 09:09:47 GMT and should not be manually modified.
This log was last generated on Mon, 25 Mar 2024 10:45:05 GMT and should not be manually modified.

## 0.12.7
Mon, 25 Mar 2024 10:45:05 GMT

### Updates

- feat: interaction app new api `getStarState()`



## 0.12.6
Fri, 22 Mar 2024 09:09:47 GMT
Expand Down
6 changes: 3 additions & 3 deletions packages/vgrammar-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/vgrammar-core",
"version": "0.12.6",
"version": "0.12.7",
"description": "VGrammar is a visual grammar library",
"keywords": [
"grammar",
Expand Down Expand Up @@ -35,8 +35,8 @@
"test-check": "DEBUG=jest jest --forceExit --detectOpenHandles --silent false --verbose false --runInBand"
},
"dependencies": {
"@visactor/vgrammar-coordinate": "workspace:0.12.6",
"@visactor/vgrammar-util": "workspace:0.12.6",
"@visactor/vgrammar-coordinate": "workspace:0.12.7",
"@visactor/vgrammar-util": "workspace:0.12.7",
"@visactor/vscale": "~0.18.1",
"@visactor/vrender-core": "0.18.7",
"@visactor/vrender-kits": "0.18.7",
Expand Down
4 changes: 4 additions & 0 deletions packages/vgrammar-core/src/interactions/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ export abstract class BaseInteraction<T extends IBaseInteractionOptions> {

protected abstract getEvents(): Array<{ type: string | string[]; handler: InteractionEventHandler }>;

getStartState(): string {
return null;
}

depend(grammar: IGrammarBase[] | IGrammarBase | string[] | string) {
this.references.clear();
array(grammar)
Expand Down
4 changes: 4 additions & 0 deletions packages/vgrammar-core/src/interactions/brush-active.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ export class BrushActive extends BrushBase<BrushActiveOptions> {
super(view, Object.assign({}, BrushActive.defaultOptions, option));
}

getStartState(): string {
return this.options.state;
}

handleBrushUpdate = (event: {
type: string;
detail: {
Expand Down
4 changes: 4 additions & 0 deletions packages/vgrammar-core/src/interactions/brush-highlight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ export class BrushHighlight extends BrushBase<BrushHighlightOptions> {
super(view, Object.assign({}, BrushHighlight.defaultOptions, option));
}

getStartState(): string {
return this.options.highlightState;
}

handleBrushUpdate = (event: {
type: string;
detail: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ export class ElementActiveByLegend extends BaseInteraction<ElementActiveByLegend
];
}

getStartState(): string {
return this.options.state;
}

start(element: IElement | IGlyphElement | string) {
const itemKey = element;

Expand Down
Loading

0 comments on commit 6a575bd

Please sign in to comment.