-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix/animate-zero-duration
- Loading branch information
Showing
17 changed files
with
348 additions
and
108 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
...sactor/vrender-components/fix-TagPointsUpdate-support-segemnet-line_2024-08-23-08-31.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@visactor/vrender-components", | ||
"comment": "feat: support line segments update animation in TagPointsUpdate custom animation", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "@visactor/vrender-components" | ||
} |
11 changes: 11 additions & 0 deletions
11
common/changes/@visactor/vrender-components/fix-axis-label-angle_2024-08-23-08-21.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"comment": "fix: fix textAlign of label when set different angle\n\n", | ||
"type": "none", | ||
"packageName": "@visactor/vrender-components" | ||
} | ||
], | ||
"packageName": "@visactor/vrender-components", | ||
"email": "[email protected]" | ||
} |
10 changes: 10 additions & 0 deletions
10
common/changes/@visactor/vrender-components/fix-indicator-interactive_2024-08-23-06-36.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@visactor/vrender-components", | ||
"comment": "fix: indicator stop tooltip interaction. fix@VisActor/VChart#3123", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "@visactor/vrender-components" | ||
} |
10 changes: 10 additions & 0 deletions
10
...anges/@visactor/vrender-components/fix-line-label-support-segements_2024-08-23-08-24.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@visactor/vrender-components", | ||
"comment": "fix: segment line will cause incorrect label position", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "@visactor/vrender-components" | ||
} |
10 changes: 10 additions & 0 deletions
10
common/changes/@visactor/vrender-components/fix-poptip-stage-memory_2024-08-21-06-27.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@visactor/vrender-components", | ||
"comment": "fix: fix issue with poptip memory while stage is released", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "@visactor/vrender-components" | ||
} |
11 changes: 11 additions & 0 deletions
11
common/changes/@visactor/vrender-core/fix-axis-label-angle_2024-08-23-08-21.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"comment": "fix: fix textAlign of label when set different angle\n\n", | ||
"type": "none", | ||
"packageName": "@visactor/vrender-core" | ||
} | ||
], | ||
"packageName": "@visactor/vrender-core", | ||
"email": "[email protected]" | ||
} |
117 changes: 117 additions & 0 deletions
117
packages/vrender-components/__tests__/browser/examples/axis-labels.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
import { createStage } from '@visactor/vrender-core'; | ||
import { initBrowserEnv } from '@visactor/vrender-kits'; | ||
initBrowserEnv(); | ||
import render from '../../util/render'; | ||
import { LineAxis } from '../../../src'; | ||
|
||
const stage = createStage({ | ||
canvas: 'main', | ||
width: 1200, | ||
height: 1200, | ||
autoRender: true, | ||
disableDirtyBounds: true, | ||
enableHtmlAttribute: true | ||
}); | ||
(window as any).stage = stage; | ||
|
||
const axies: any[] = []; | ||
|
||
[false, true].forEach((inside, insideIndex) => { | ||
['left', 'right'].forEach(orient => { | ||
let currentX: number = orient === 'left' ? (inside ? 20 : 600) : inside ? 1180 : 650; | ||
new Array(9).fill(0).map((entry, index) => { | ||
const axis = new LineAxis({ | ||
x: currentX, | ||
y: 40 + insideIndex * 600, | ||
start: { | ||
x: 0, | ||
y: 0 | ||
}, | ||
end: { | ||
x: 0, | ||
y: 408 | ||
}, | ||
pickable: true, | ||
visible: true, | ||
orient: orient, | ||
line: { | ||
visible: true | ||
}, | ||
label: { | ||
visible: true, | ||
// containerAlign: 'left', | ||
inside, | ||
space: 12, | ||
style: { | ||
// textAlign: 'right', | ||
angle: (index * Math.PI) / 4, | ||
fontSize: 10, | ||
fill: '#000000', | ||
fontWeight: 'normal', | ||
fillOpacity: 1 | ||
} | ||
}, | ||
tick: { | ||
visible: true, | ||
inside | ||
}, | ||
subTick: { | ||
visible: false | ||
}, | ||
title: { | ||
visible: true, | ||
text: `测试label旋转角度${index * 45}`, | ||
maxWidth: null | ||
}, | ||
panel: { | ||
visible: true, | ||
style: { | ||
background: 'pink' | ||
} | ||
}, | ||
verticalFactor: orient === 'left' ? 1 : -1, | ||
items: [ | ||
[ | ||
{ | ||
id: 0, | ||
label: 0, | ||
value: 1, | ||
rawValue: 0 | ||
}, | ||
{ | ||
id: 5, | ||
label: 500, | ||
value: 0.75, | ||
rawValue: 500 | ||
}, | ||
{ | ||
id: 10, | ||
label: 1000, | ||
value: 0.5, | ||
rawValue: 1000 | ||
}, | ||
{ | ||
id: 15, | ||
label: 1500, | ||
value: 0.25, | ||
rawValue: 1500 | ||
}, | ||
{ | ||
id: 20, | ||
label: 2000, | ||
value: 0, | ||
rawValue: 2000 | ||
} | ||
] | ||
], | ||
verticalLimitSize: 87, | ||
verticalMinSize: null as any | ||
}); | ||
|
||
stage.defaultLayer.add(axis); | ||
currentX += (orient === 'left' ? -1 : 1) * (inside ? -1 : 1) * ((axis as any).AABBBounds.width() + 10); | ||
}); | ||
}); | ||
}); | ||
|
||
stage.render(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.