-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
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
fix: update to latest @antv/g #5702
Conversation
packages/g6/tests/integration/snapshots/treegraph/treegraph-graphdata-actual.svg
Outdated
Show resolved
Hide resolved
SVG 的 但我觉得更好的做法是把 x/y 当作 CustomElement 的自定义属性,由它的各个子元素消费(例如子元素 把它赋值给自身的 cx/cy 属性,子元素 赋给自身的 x/y 属性这样),这样就可以和父元素的 transform 分离开,自然就不存在覆盖问题了。 我现在也在尝试往这个方向改,会修改到 protected getKeyStyle(attributes: Required<CircleStyleProps>): GCircleStyleProps {
const keyStyle = super.getKeyStyle(attributes);
const { x = 0, y = 0, z = 0 } = keyStyle;
return { ...keyStyle, r: Math.min(...this.getSize(attributes)) / 2, cx: x, cy: y, cz: z };
} |
目前只剩下 animation 这部分例子截图待生成。 |
@antv/component@2.x
which supports stringmarker
in Category items.anchor
attribute is removed. But we can modify path in symbols instead, an offset of half width is applied.x/y/z
are removed fromGroup
CustomElement
andMesh
, we should usetransform: 'translate3d()'
instead. For example, after calculating layout for each nodes:Another example in base combo:
And there are also no more redundant and non-standard attributes like
x/y
for<g>
in the generated SVGs.Checklist: