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

2025-04-16


**🐛 Bug fix**

- **@visactor/vrender-components**: brush bug from aeolus and self test



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

# v0.22.5

2025-03-13
Expand Down
13 changes: 13 additions & 0 deletions docs/assets/changelog/zh/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# v0.22.8

2025-04-16


**🐛 功能修复**

- **@visactor/vrender-components**: brush bug from aeolus and self test



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

# v0.22.5

2025-03-13
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.19.5",
"@visactor/vgrammar": "~0.5.7",
"@visactor/vrender": "workspace:0.22.8",
"@visactor/vrender": "workspace:0.22.9",
"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.22.9",
"tag": "@visactor/react-vrender-utils_v0.22.9",
"date": "Fri, 18 Apr 2025 06:59:46 GMT",
"comments": {}
},
{
"version": "0.22.8",
"tag": "@visactor/react-vrender-utils_v0.22.8",
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, 16 Apr 2025 03:17:31 GMT and should not be manually modified.
This log was last generated on Fri, 18 Apr 2025 06:59:46 GMT and should not be manually modified.

## 0.22.9
Fri, 18 Apr 2025 06:59:46 GMT

_Version update only_

## 0.22.8
Wed, 16 Apr 2025 03:17:31 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.22.8",
"version": "0.22.9",
"description": "",
"sideEffects": false,
"main": "cjs/index.js",
Expand All @@ -24,8 +24,8 @@
"react-dom": "^18.2.0"
},
"dependencies": {
"@visactor/vrender": "workspace:0.22.8",
"@visactor/react-vrender": "workspace:0.22.8",
"@visactor/vrender": "workspace:0.22.9",
"@visactor/react-vrender": "workspace:0.22.9",
"@visactor/vutils": "~0.19.5",
"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.22.9",
"tag": "@visactor/react-vrender_v0.22.9",
"date": "Fri, 18 Apr 2025 06:59:46 GMT",
"comments": {}
},
{
"version": "0.22.8",
"tag": "@visactor/react-vrender_v0.22.8",
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, 16 Apr 2025 03:17:31 GMT and should not be manually modified.
This log was last generated on Fri, 18 Apr 2025 06:59:46 GMT and should not be manually modified.

## 0.22.9
Fri, 18 Apr 2025 06:59:46 GMT

_Version update only_

## 0.22.8
Wed, 16 Apr 2025 03:17:31 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.22.8",
"version": "0.22.9",
"description": "",
"sideEffects": false,
"main": "cjs/index.js",
Expand All @@ -23,7 +23,7 @@
"react": "^18.2.0"
},
"dependencies": {
"@visactor/vrender": "workspace:0.22.8",
"@visactor/vrender": "workspace:0.22.9",
"@visactor/vutils": "~0.19.5",
"react-reconciler": "^0.29.0",
"tslib": "^2.3.1"
Expand Down
12 changes: 12 additions & 0 deletions packages/vrender-components/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{
"name": "@visactor/vrender-components",
"entries": [
{
"version": "0.22.9",
"tag": "@visactor/vrender-components_v0.22.9",
"date": "Fri, 18 Apr 2025 06:59:46 GMT",
"comments": {
"none": [
{
"comment": "fix: fix state not sync with mouse\n\n"
}
]
}
},
{
"version": "0.22.8",
"tag": "@visactor/vrender-components_v0.22.8",
Expand Down
11 changes: 10 additions & 1 deletion packages/vrender-components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# Change Log - @visactor/vrender-components

This log was last generated on Wed, 16 Apr 2025 03:17:31 GMT and should not be manually modified.
This log was last generated on Fri, 18 Apr 2025 06:59:46 GMT and should not be manually modified.

## 0.22.9
Fri, 18 Apr 2025 06:59:46 GMT

### Updates

- fix: fix state not sync with mouse



## 0.22.8
Wed, 16 Apr 2025 03:17:31 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.22.8",
"version": "0.22.9",
"description": "components library for dp visualization",
"sideEffects": false,
"main": "cjs/index.js",
Expand All @@ -27,8 +27,8 @@
"dependencies": {
"@visactor/vutils": "~0.19.5",
"@visactor/vscale": "~0.19.5",
"@visactor/vrender-core": "workspace:0.22.8",
"@visactor/vrender-kits": "workspace:0.22.8"
"@visactor/vrender-core": "workspace:0.22.9",
"@visactor/vrender-kits": "workspace:0.22.9"
},
"devDependencies": {
"@internal/bundler": "workspace:*",
Expand Down
4 changes: 3 additions & 1 deletion packages/vrender-components/src/brush/brush.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export class Brush extends AbstractComponent<Required<BrushAttributes>> {
this._activeMoveState = brushMoved && this._isPosInBrushMask(e); // 如果是移动状态,在这里会标记operatingMask为正在移动的mask
this._activeDrawState = !this._activeMoveState;
this._startPos = this.eventPosToStagePos(e);
this._cacheDrawPoints = [this._startPos];
};

/**
Expand Down Expand Up @@ -151,7 +152,8 @@ export class Brush extends AbstractComponent<Required<BrushAttributes>> {
private _initDraw(e: FederatedPointerEvent) {
const { brushMode } = this.attribute as BrushAttributes;
const pos = this.eventPosToStagePos(e);
this._cacheDrawPoints = [pos];

this._cacheDrawPoints.push(pos);
brushMode === 'single' && this._clearMask();
this._addBrushMask();
this._dispatchBrushEvent(IOperateType.drawStart, e);
Expand Down
11 changes: 7 additions & 4 deletions packages/vrender-components/src/data-zoom/data-zoom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,12 @@ export class DataZoom extends AbstractComponent<Required<DataZoomAttributes>> {
const evtTarget = vglobal.env === 'browser' ? vglobal : this.stage;
const triggers = getEndTriggersOfDrag();

evtTarget.removeEventListener('pointermove', this._onHandlerPointerMove, { capture: true, passive: false });
evtTarget.removeEventListener('pointermove', this._onHandlerPointerMove, { capture: true });
triggers.forEach((trigger: string) => {
evtTarget.removeEventListener(trigger, this._onHandlerPointerUp);
});

(this as unknown as IGroup).removeEventListener('pointermove', this._onHandlerPointerMove, { capture: true });
}

/**
Expand Down Expand Up @@ -279,9 +281,10 @@ export class DataZoom extends AbstractComponent<Required<DataZoomAttributes>> {

/**
* move的时候,需要通过 capture: true,能够在捕获截断被拦截,
* move的时候,需要显示的设置passive: false,因为在移动端需要禁用浏览器默认行为
*/
evtTarget.addEventListener('pointermove', this._onHandlerPointerMove, { capture: true, passive: false });
evtTarget.addEventListener('pointermove', this._onHandlerPointerMove, { capture: true });
(this as unknown as IGroup).addEventListener('pointermove', this._onHandlerPointerMove, { capture: true });

triggers.forEach((trigger: string) => {
evtTarget.addEventListener(trigger, this._onHandlerPointerUp);
});
Expand Down Expand Up @@ -326,14 +329,14 @@ export class DataZoom extends AbstractComponent<Required<DataZoomAttributes>> {
end = end + dis;
}
}
this._activeCache.lastPos = pos;
brushSelect && this.renderDragMask();
}
start = Math.min(Math.max(start, 0), 1);
end = Math.min(Math.max(end, 0), 1);

// 避免attributes相同时, 重复渲染
if (startAttr !== start || endAttr !== end) {
this._activeCache.lastPos = pos;
this.setStateAttr(start, end, true);
if (realTime) {
this._dispatchEvent('change', {
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.22.9",
"tag": "@visactor/vrender-core_v0.22.9",
"date": "Fri, 18 Apr 2025 06:59:46 GMT",
"comments": {
"none": [
{
"comment": "fix: fix issue with string anchor and scale"
}
]
}
},
{
"version": "0.22.8",
"tag": "@visactor/vrender-core_v0.22.8",
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 Wed, 16 Apr 2025 03:17:31 GMT and should not be manually modified.
This log was last generated on Fri, 18 Apr 2025 06:59:46 GMT and should not be manually modified.

## 0.22.9
Fri, 18 Apr 2025 06:59:46 GMT

### Updates

- fix: fix issue with string anchor and scale

## 0.22.8
Wed, 16 Apr 2025 03:17:31 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.22.8",
"version": "0.22.9",
"description": "",
"sideEffects": [
"./src/modules.ts",
Expand Down
4 changes: 3 additions & 1 deletion packages/vrender-core/src/common/segment/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { ICurveType, IGenSegmentParams, ISegPath2D } from '../../interface'
import { genLinearSegments } from './linear';
import { genBasisSegments } from './basis';
import { genMonotoneXSegments, genMonotoneYSegments } from './monotone';
import { genStepSegments } from './step';
import { genStepClosedSegments, genStepSegments } from './step';
import { genLinearClosedSegments } from './linear-closed';
import { genCatmullRomSegments } from './catmull-rom';
import { genCatmullRomClosedSegments } from './catmull-rom-close';
Expand Down Expand Up @@ -31,6 +31,8 @@ export function calcLineCache(
return genMonotoneYSegments(points, params);
case 'step':
return genStepSegments(points, 0.5, params);
case 'stepClosed':
return genStepClosedSegments(points, 0.5, params);
case 'stepBefore':
return genStepSegments(points, 0, params);
case 'stepAfter':
Expand Down
Loading
Loading