Skip to content
Open
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@visactor/vchart",
"comment": "feat: add brush api before change",
"type": "none"
}
],
"packageName": "@visactor/vchart"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@visactor/vchart",
"comment": "git commit -m 'feat: add interactive api",
"type": "none"
}
],
"packageName": "@visactor/vchart"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@visactor/vchart",
"comment": "feat: add brush clear api and disable dimension hover config. close#4400",
"type": "none"
}
],
"packageName": "@visactor/vchart"
}
116 changes: 58 additions & 58 deletions common/config/rush/pnpm-lock.yaml

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

6 changes: 3 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"@visactor/vchart-theme": "~1.6.6",
"@visactor/vmind": "1.2.4-alpha.5",
"@visactor/vutils": "~1.0.12",
"@visactor/vrender": "~1.0.36",
"@visactor/vrender-kits": "~1.0.36",
"@visactor/vrender": "1.0.37-alpha.1",
"@visactor/vrender-kits": "1.0.37-alpha.1",
"@visactor/vtable": "1.19.0-alpha.0",
"@visactor/vtable-editors": "1.19.0-alpha.0",
"@visactor/vtable-gantt": "1.19.0-alpha.0",
Expand Down Expand Up @@ -58,4 +58,4 @@
"react-device-detect": "^2.2.2",
"minimist": "1.2.8"
}
}
}
6 changes: 3 additions & 3 deletions packages/openinula-vchart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"dependencies": {
"@visactor/vchart": "workspace:2.0.12",
"@visactor/vutils": "~1.0.12",
"@visactor/vrender-core": "~1.0.36",
"@visactor/vrender-kits": "~1.0.36",
"@visactor/vrender-core": "1.0.37-alpha.1",
"@visactor/vrender-kits": "1.0.37-alpha.1",
"react-is": "^18.2.0"
},
"devDependencies": {
Expand Down Expand Up @@ -78,4 +78,4 @@
"access": "public",
"registry": "https://registry.npmjs.org/"
}
}
}
6 changes: 3 additions & 3 deletions packages/react-vchart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"@visactor/vchart": "workspace:2.0.12",
"@visactor/vchart-extension": "workspace:2.0.12",
"@visactor/vutils": "~1.0.12",
"@visactor/vrender-core": "~1.0.36",
"@visactor/vrender-kits": "~1.0.36",
"@visactor/vrender-core": "1.0.37-alpha.1",
"@visactor/vrender-kits": "1.0.37-alpha.1",
"react-is": "^18.2.0"
},
"devDependencies": {
Expand Down Expand Up @@ -83,4 +83,4 @@
"access": "public",
"registry": "https://registry.npmjs.org/"
}
}
}
10 changes: 5 additions & 5 deletions packages/vchart-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
"start": "ts-node __tests__/runtime/browser/scripts/initVite.ts && vite serve __tests__/runtime/browser"
},
"dependencies": {
"@visactor/vrender-core": "~1.0.36",
"@visactor/vrender-kits": "~1.0.36",
"@visactor/vrender-components": "~1.0.36",
"@visactor/vrender-animate": "~1.0.36",
"@visactor/vrender-core": "1.0.37-alpha.1",
"@visactor/vrender-kits": "1.0.37-alpha.1",
"@visactor/vrender-components": "1.0.37-alpha.1",
"@visactor/vrender-animate": "1.0.37-alpha.1",
"@visactor/vchart": "workspace:2.0.12",
"@visactor/vutils": "~1.0.12",
"@visactor/vdataset": "~1.0.12",
Expand Down Expand Up @@ -66,4 +66,4 @@
"directory": "packages/vchart-extension"
},
"license": "MIT"
}
}
10 changes: 5 additions & 5 deletions packages/vchart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,14 @@
"@visactor/vdataset": "~1.0.12",
"@visactor/vscale": "~1.0.12",
"@visactor/vlayouts": "~1.0.12",
"@visactor/vrender-core": "~1.0.36",
"@visactor/vrender-kits": "~1.0.36",
"@visactor/vrender-components": "~1.0.36",
"@visactor/vrender-animate": "~1.0.36",
"@visactor/vrender-core": "1.0.37-alpha.1",
"@visactor/vrender-kits": "1.0.37-alpha.1",
"@visactor/vrender-components": "1.0.37-alpha.1",
"@visactor/vrender-animate": "1.0.37-alpha.1",
"@visactor/vutils-extension": "workspace:2.0.12"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
}
}
}
7 changes: 5 additions & 2 deletions packages/vchart/src/compile/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ export class Compiler implements ICompiler {

protected _container: IRenderContainer;
protected _option: IRenderOption;
getOption() {
return this._option;
}
// 已释放标记
private _released: boolean = false;

Expand Down Expand Up @@ -498,8 +501,8 @@ export class Compiler implements ICompiler {
const animationState = markAnimationStates.every(state => state === AnimationStateEnum.appear)
? AnimationStateEnum.appear
: markAnimationStates.every(state => state === AnimationStateEnum.disappear)
? AnimationStateEnum.disappear
: AnimationStateEnum.none;
? AnimationStateEnum.disappear
: AnimationStateEnum.none;
if (!this._stage.context) {
this._stage.context = {};
}
Expand Down
3 changes: 2 additions & 1 deletion packages/vchart/src/compile/interface/compilable-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { IMorphConfig } from '../../animation/spec';
import type { IBoundsLike } from '@visactor/vutils';
import type { EventSourceType, EventType } from '../../event/interface';
import type { IMark, IMarkGraphic } from '../../mark/interface';
import type { LayoutState } from '../interface/compiler';
import type { IRenderOption, LayoutState } from '../interface/compiler';
import type { MarkAnimationSpec } from '../../animation/interface';

export type CompilerListenerParameters = {
Expand Down Expand Up @@ -34,6 +34,7 @@ export interface IGrammarItemMap<T extends IGrammarItem> {
export type ICompilerModel = Record<GrammarType, IProductMap<IGrammarItem>>;

export interface ICompiler {
getOption: () => IRenderOption;
isInited?: boolean;
readonly stateAnimationConfig?: MarkAnimationSpec;
getCanvas: () => HTMLCanvasElement | undefined;
Expand Down
Loading
Loading