Repository navigation
svg 导入 pagx 文本问题
#3690
|
当前pagx 导入 svg 时,对于tspan节点只取了了 dx dy 而有些软件导出的svg tspan 则是通过 x y 绝对位置 例如从figam 导出的 svg 文本 figma 会将换行的文本拆分为多个 tspan 然后通过 x y 进行定位 <text id="location" fill="white" style="white-space: pre" xml:space="preserve" font-family="PingFang SC" font-size="72" font-weight="500" letter-spacing="0em">
<tspan x="44" y="1798.42">成都·双流国际机机场音乐节青</tspan>
<tspan x="44" y="1899.42">岛成都·双流国际机…</tspan>
</text>导入生成的 pagx 完全丢失了 position <Layer id="location">
<Text text="成都·双流国际机机场音乐节青岛成都·双流国际机…" fontFamily="PingFang SC" fontStyle="Medium" fontSize="72" baseline="alphabetic"/>
<Fill color="#FFFFFF"/>
</Layer>test.zip 导出的 svg pagx pagx 0.4.47 npm 安装的
|
Answered by
fengdyli
Oct 21, 2026
Replies: 1 comment
|
你好,这个问题已经修复了,牵扯到其他内容还没提交,可以在feature/lifengdy_smil_import体验 |
0 replies
Answer selected by
0x1306a94
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

你好,这个问题已经修复了,牵扯到其他内容还没提交,可以在feature/lifengdy_smil_import体验