We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.14.0
none
import { createStage, createSymbol, container, IGraphic } from '@visactor/vrender'; // container.load(roughModule); export const page = () => { const symbolList = [ 'circle', 'cross', 'diamond', 'square', 'arrow', 'arrow2Left', 'arrow2Right', 'wedge', 'thinTriangle', 'triangle', 'triangleUp', 'triangleDown', 'triangleRight', 'triangleLeft', 'stroke', 'star', 'wye', 'rect', 'M -2 2 L 4 -5 L 7 -6 L 6 -3 L -1 3 C 0 4 0 5 1 4 C 1 5 2 6 1 6 A 1.42 1.42 0 0 1 0 7 A 5 5 0 0 0 -2 4 Q -2.5 3.9 -2.5 4.5 T -4 5.8 T -4.8 5 T -3.5 3.5 T -3 3 A 5 5 90 0 0 -6 1 A 1.42 1.42 0 0 1 -5 0 C -5 -1 -4 0 -3 0 C -4 1 -3 1 -2 2 M 4 -5 L 4 -3 L 6 -3 L 5 -4 L 4 -5' ]; const graphics: IGraphic[] = []; symbolList.forEach((st, i) => { const attrs = { symbolType: st, x: ((i * 100) % 500) + 100, y: (Math.floor((i * 100) / 500) + 1) * 100, size: 60, fill: 'pink', outerBorder: { stroke: { gradient: 'radial', x0: 0.5, y0: 0.5, r0: 0, x1: 0.5, y1: 0.5, r1: 0.7, stops: [ { offset: 0, color: 'red' }, { offset: 1, color: '#6690F2' } ] }, distance: 10, lineWidth: 4, strokeOpacity: 0.2 } }; const symbol = createSymbol(attrs); console.log(attrs); symbol.addEventListener('mouseenter', () => { symbol.setAttribute('fill', 'blue'); }); graphics.push(symbol); }); const stage = createStage({ canvas: 'main', autoRender: true }); graphics.forEach(g => { stage.defaultLayer.add(g); }); };
- OS: - Browser: - Framework:
No response
The text was updated successfully, but these errors were encountered:
fix: fix the issue with outerborder gradient color, closed #343
bd5c1ed
50f4731
Merge pull request #352 from VisActor/fix/outerBorder-gradientColor
a4233b1
neuqzxy
No branches or pull requests
Version
0.14.0
Link to Minimal Reproduction
none
Steps to Reproduce
Current Behavior
Expected Behavior
Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: