Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
97d0721
feat: enhance rough
neuqzxy Apr 18, 2025
4a4726f
feat: add animate base code
neuqzxy Mar 12, 2025
ad2e545
feat: complete base of vrender-animate
neuqzxy Mar 14, 2025
bdfded4
feat: ticker support fps config
neuqzxy Mar 14, 2025
439e646
feat: access to vrender-core
neuqzxy Mar 14, 2025
d5c66e3
feat: support bounce
neuqzxy Mar 14, 2025
1e2a39e
fix: fix issue with add animate
neuqzxy Mar 14, 2025
7d801f3
feat: support custom animate
neuqzxy Mar 17, 2025
dfcd3d1
feat: support IncreaseCount animate
neuqzxy Mar 17, 2025
75e3848
feat: support part custom animate
neuqzxy Mar 18, 2025
6da8549
feat: support animate-executor
neuqzxy Mar 19, 2025
ab36a33
feat: support custom animate for executor
neuqzxy Mar 19, 2025
444d4f3
feat: support base function for state animate
neuqzxy Mar 20, 2025
da0f4da
feat: support status schedule
neuqzxy Mar 20, 2025
fce33f9
feat: support base function for vrender-animate
neuqzxy Mar 24, 2025
3b0fad4
feat: add custom animate from vgrammar
neuqzxy Mar 25, 2025
d573b45
fix: remove temp export from vrender-core
neuqzxy Mar 25, 2025
dc16e95
fix: fix issue with type
neuqzxy Mar 25, 2025
42bb4d8
feat: final attribute seted by vchart
neuqzxy Mar 26, 2025
56e05a9
fix: fix issue with getAttributes, optmize performance for scale and …
neuqzxy Mar 27, 2025
450ebe3
feat: optmize performance for animate update value
neuqzxy Mar 27, 2025
c9edc60
feat: support font performance cache
neuqzxy Mar 27, 2025
f436b8c
feat: optmize the performance for rect/arc/symbol render
neuqzxy Mar 27, 2025
261d8d3
feat: remove extra save/restore, optmize setTransform call
neuqzxy Mar 27, 2025
16293dc
fix: fix issue with rect/arc/symbol pick issue
neuqzxy Mar 27, 2025
e13ebb3
feat: optmize performance for scroll check
neuqzxy Mar 27, 2025
a8d6045
feat: optmize the performance for group.drawingCb
neuqzxy Mar 27, 2025
1000f0c
feat: ticker are randomly and evenly distributed in the timeline
neuqzxy Mar 28, 2025
322cdfb
fix: fix issue with arc label
neuqzxy Mar 28, 2025
3ae73bc
feat: support setAttributesAndPreventAnimate
neuqzxy Mar 28, 2025
9a32825
fix: fix issue with canvas font set
neuqzxy Mar 31, 2025
3c92407
feat: support component animator
neuqzxy Apr 1, 2025
843d3d6
feat: support part function for label animate refactor
neuqzxy Apr 2, 2025
2834406
feat: support label animate mode, fix issue with delay and delayAfter…
neuqzxy Apr 2, 2025
4c6d7b4
feat: support input-richtext
neuqzxy Apr 2, 2025
2dc5d8b
feat: support side richtext animate
neuqzxy Apr 3, 2025
fad534d
fix: fix issue with pie angle interpolate with deleteSelfAttr
neuqzxy Apr 3, 2025
966b08e
fix: fix type issue
neuqzxy Apr 3, 2025
4b0b16f
feat: support story animate
neuqzxy Apr 3, 2025
2cce667
fix: tagPointtsUpdate custom animation
xiaoluoHe Apr 7, 2025
140136c
feat: support axis animate, fix issue with component animate conflict
neuqzxy Apr 7, 2025
be3154d
fix: fix issue with story-animate register
neuqzxy Apr 8, 2025
9202b04
feat: support story animate out
neuqzxy Apr 8, 2025
5c9889a
feat: support text animate out
neuqzxy Apr 8, 2025
bb477a3
feat: optmize effect for story animate
neuqzxy Apr 8, 2025
7c4c271
feat: animate-executor support array animate, support move and rotate…
neuqzxy Apr 8, 2025
76fcae3
feat: motionPath & export custom Animate class
xiaoluoHe Apr 9, 2025
d22f890
fix: customParams value
xiaoluoHe Apr 9, 2025
8687954
feat: support lastScale to get newTick last pos
neuqzxy Apr 8, 2025
c7baf05
feat: update vutils, axis support to use lastScale
neuqzxy Apr 9, 2025
178e3f8
fix: fix issue with state animate
neuqzxy Apr 8, 2025
be0b728
feat: optmize code for custom animate
neuqzxy Apr 9, 2025
4cd1277
fix: fix issue with state and support from-to animate type
neuqzxy Apr 9, 2025
c976e01
fix: fix type error
neuqzxy Apr 9, 2025
21a9a71
feat: export animate `FromTo`
xiaoluoHe Apr 10, 2025
7980404
chore: update vrender-animate config
xiaoluoHe Apr 11, 2025
3487be7
feat: ignore do not use customParameters.data
neuqzxy Apr 10, 2025
1f73302
feat: move vrender-animate/interface to vrender-core
neuqzxy Apr 10, 2025
e953893
feat: support setAttributes when target is glyph
neuqzxy Apr 10, 2025
2620c36
fix: fix issue in fromTo and effect custom attribute
neuqzxy Apr 10, 2025
6279cee
feat: support export streamlight
neuqzxy Apr 11, 2025
3172899
fix: fix issue with entries
neuqzxy Apr 11, 2025
76da5d4
fix: fix issue with executor get data, and support getGraphicAttribut…
neuqzxy Apr 14, 2025
517fe80
fix: fi x issue with growPoint and move, fix issue with call end at w…
neuqzxy Apr 14, 2025
ea99b78
fix: fix issue with common enter custom animate
neuqzxy Apr 14, 2025
3a7dede
fix: fix issue with fromto animate
neuqzxy Apr 14, 2025
7b93689
fix: fix issue with manual-ticker
neuqzxy Apr 15, 2025
ef35d89
fix: fix issue with manual tick caused by checkSkip
neuqzxy Apr 17, 2025
f1b7e52
fix: fix issue with timeline
neuqzxy Apr 17, 2025
50ec32a
feat: support PulseAnimate and add stroke effect for InputRichText
neuqzxy Apr 17, 2025
44ceb79
feat: support morphing
neuqzxy Apr 18, 2025
12a85b9
feat: export some for morphing
neuqzxy Apr 21, 2025
ebd073c
feat: enhance toCustomPath to support any shape morphing
neuqzxy Apr 22, 2025
259a750
fix: fix issue with clone params crash, fix issue with label get boun…
neuqzxy Apr 23, 2025
5bcb09c
fix: fix issue with axis update animateType
neuqzxy Apr 23, 2025
bab8e27
fix: fix scale issue with addUpdateBoundTag
neuqzxy Apr 23, 2025
c89b74c
fix: fix issue with oneByOne
neuqzxy Apr 23, 2025
2a3d041
fix: fix issue with label while has animate and compute bounds
neuqzxy Apr 23, 2025
9a3c5a0
feat: support layoutRect in options
neuqzxy Apr 25, 2025
007f5f2
fix: fix issue with controlOptions in timeline
neuqzxy Apr 25, 2025
c4d5762
fix: fix type error
neuqzxy Apr 25, 2025
67d62b5
fix: fix issue with dependencies
neuqzxy Apr 25, 2025
2bd7618
fix: fix issue with single graphicService call all stage
neuqzxy May 6, 2025
b28ff62
feat: support diff attribute of axis to optmize performance
neuqzxy May 7, 2025
9a0bcca
feat: upgrade vutils
neuqzxy May 7, 2025
2645dae
fix: fix issue with axis bounds and render cache
neuqzxy May 9, 2025
a925750
fix: change order of context.reset and context.save
neuqzxy May 9, 2025
6406980
fix: fix issue with TagPointsUpdate for line segment
neuqzxy May 9, 2025
a0125d5
fix: fix issue with appear animate set attribute when has image attr
neuqzxy May 9, 2025
1840c68
fix: revert axis performance commit
neuqzxy May 9, 2025
fb0a899
fix: update `getBoundsWithoutRender` of axis
xile611 May 9, 2025
f10b0f5
feat: support afterStateUpdate event, and lable listen afterStateUpdate
neuqzxy May 13, 2025
b1e6f5d
fix: fix issue with _debug_bounds and 3d sort
neuqzxy May 14, 2025
ad6b837
fix: fix issue with shadow
neuqzxy May 14, 2025
1c57833
fix: fix issue with arc stroke
neuqzxy May 14, 2025
7f40379
fix: add animaitonend event to timeline
xile611 May 14, 2025
9df5a28
fix: update interface of IGraphic
xile611 May 14, 2025
14d9a5f
Merge pull request #1835 from VisActor/feat/timeline-animation-end-event
neuqzxy May 15, 2025
a5991c7
Merge pull request #1833 from VisActor/fix/animate-issue
neuqzxy May 15, 2025
bea604b
fix: fix issue with global graphic service hooks is empty
neuqzxy May 15, 2025
f56383a
Merge pull request #1836 from VisActor/fix/graphicService
neuqzxy May 15, 2025
6fc5539
feat: remove marker type. close @VisActor/VChart#3782
skie1997 May 16, 2025
b910807
fix: solve animate problem
skie1997 May 16, 2025
826cdc0
chore: test error
skie1997 May 16, 2025
f65a6d0
Merge pull request #1837 from VisActor/feat/marker-type-remove
xile611 May 19, 2025
7b1a61f
feat: add transition
neuqzxy May 20, 2025
993b32a
Merge pull request #1838 from VisActor/feat/add-transition
xile611 May 20, 2025
b7b976f
fix: fix issue with circular deps
neuqzxy May 21, 2025
3dc7cfe
Merge pull request #1840 from VisActor/fix/circular-deps
xile611 May 21, 2025
e26292c
fix: delete-default-value
skie1997 May 21, 2025
790db96
Merge pull request #1842 from VisActor/chore/default-value
xile611 May 21, 2025
94b142c
fix: style error
skie1997 May 21, 2025
1b5d7fe
fix: delete default style
skie1997 May 21, 2025
8653c24
Merge pull request #1844 from VisActor/fix/style-error
xile611 May 22, 2025
11878c5
feat: merge develop
neuqzxy May 29, 2025
cb6b9ac
fix: polygon should not throw error when points is empty
xile611 May 29, 2025
4548bc2
fix: performanceRAF id start from 1
neuqzxy May 29, 2025
ee6b151
Merge pull request #1845 from VisActor/fix/polygon-no-points-error
neuqzxy May 29, 2025
232a8e5
Merge pull request #1846 from VisActor/fix/performanceRAF-id
xile611 May 29, 2025
8b549e7
feat: change setFinalAttribute and initFinalAttribute to setFinalAttr…
neuqzxy May 29, 2025
7874095
Merge pull request #1848 from VisActor/feat/api-change
xile611 May 30, 2025
7aac339
fix: clone diffAttrs to avoid recall same animate
neuqzxy Jun 3, 2025
07eabe3
fix: fix issue with performance raf idx repeat
neuqzxy Jun 3, 2025
7760a58
Merge pull request #1849 from VisActor/fix/performance-raf-idx
xile611 Jun 3, 2025
e07b7ba
fix: fix issue with sphere animate
neuqzxy Jun 3, 2025
d58f665
fix: fix issue with RotateBySphereAnimate bind set attribute
neuqzxy Jun 3, 2025
3b484c6
Merge pull request #1850 from VisActor/fix/sphere-animate
xile611 Jun 3, 2025
4276953
fix: fix label aniamtion when update
xile611 Jun 4, 2025
6d9a66f
Merge pull request #1852 from VisActor/fix/label-update-animation
xile611 Jun 4, 2025
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
531 changes: 531 additions & 0 deletions VRender-Animate-Guide.md

Large diffs are not rendered by default.

64 changes: 61 additions & 3 deletions abc.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,66 @@
<title>Document</title>
</head>
<body>
<img
src='<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="6" cy="6" r="6" fill="#FD9C87"></circle><circle opacity="0.6" cx="6" cy="6" r="1" stroke="white" stroke-width="2"></circle></svg>'
/>
<canvas id="canvas"></canvas>
</body>
<script>
const canvas = document.getElementById('canvas');
const ctx = canvas.getContext('2d');
const text = '渐变文字效果';
let progress = 0;

// 设置画布尺寸
canvas.width = 600;
canvas.height = 200;

// 创建单个离屏Canvas(同时处理文字和遮罩)
const maskCanvas = document.createElement('canvas');
maskCanvas.width = canvas.width;
maskCanvas.height = canvas.height;
const maskCtx = maskCanvas.getContext('2d');

function draw() {
// 清空所有画布
ctx.clearRect(0, 0, canvas.width, canvas.height);
maskCtx.clearRect(0, 0, maskCanvas.width, maskCanvas.height);

// 主Canvas绘制固定背景
ctx.fillStyle = 'pink';
ctx.fillRect(0, 0, canvas.width, canvas.height);

// 在离屏Canvas完成所有动态效果
// 步骤1:绘制原始文字
const gradient = maskCtx.createLinearGradient(0, 0, canvas.width, 0);
gradient.addColorStop(0, 'red');
gradient.addColorStop(1, 'blue');
maskCtx.fillStyle = gradient;
maskCtx.font = '40px Arial';
maskCtx.textAlign = 'center';
maskCtx.textBaseline = 'middle';
maskCtx.fillText(text, canvas.width / 2, canvas.height / 2);

// 步骤2:在同一离屏Canvas上创建动态遮罩
const maskGradient = maskCtx.createLinearGradient(0, 0, canvas.width, 0);
maskGradient.addColorStop(0, 'rgba(0,0,0,1)');
maskGradient.addColorStop(Math.min(progress, 1), 'rgba(0,0,0,1)');
maskGradient.addColorStop(Math.min(progress + 0.1, 1), 'rgba(0,0,0,0)');

// 使用合成模式裁剪文字
maskCtx.globalCompositeOperation = 'destination-out';
maskCtx.fillStyle = maskGradient;
maskCtx.fillRect(0, 0, maskCanvas.width, maskCanvas.height);
maskCtx.globalCompositeOperation = 'source-over'; // 恢复默认

// 将处理后的离屏Canvas绘制到主Canvas
ctx.drawImage(maskCanvas, 0, 0);

// 更新动画进度
if (progress < 1) {
progress += 0.002;
requestAnimationFrame(draw);
}
}

draw();
</script>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@visactor/vrender-components",
"comment": "fix: delete-default-value",
"type": "none"
}
],
"packageName": "@visactor/vrender-components"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@visactor/vrender-components",
"comment": "feat: remove marker type. close @VisActor/VChart#3782",
"type": "none"
}
],
"packageName": "@visactor/vrender-components"
}
Loading
Loading