@univer-cli/svg-facade 1.3.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/README.zh-CN.md +2 -0
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,6 +39,8 @@ await runtime.execute({ code: program, mode: "write" });
|
|
|
39
39
|
|
|
40
40
|
The compiler maps common shapes, paths, text, images, gradients, references, and viewport behavior. Results include code, viewport details, warnings, authoring lints, and text measurement information. Unsupported features are reported through diagnostics or `SvgFacadeError` instead of silently pretending to work.
|
|
41
41
|
|
|
42
|
+
Preserved SVG text follows XML line-ending rules, so Windows and Unix source files produce the same text. Character references retain their decoded values.
|
|
43
|
+
|
|
42
44
|
## External images and fonts
|
|
43
45
|
|
|
44
46
|
When an SVG references an external asset, the caller provides its content through a resolver. The package does not read URLs or arbitrary local paths on its own. Text fidelity depends on an injected text measurer; results explicitly report fallbacks or risks when precise font measurement is unavailable.
|
package/README.zh-CN.md
CHANGED
|
@@ -42,6 +42,8 @@ Compiler 映射常用图形、path、text、image、gradient、reference 和 vie
|
|
|
42
42
|
warnings、authoring lints 与文本量字信息。不支持的 feature 不会静默伪装成完整支持,而会进入 diagnostics 或
|
|
43
43
|
抛出 `SvgFacadeError`。
|
|
44
44
|
|
|
45
|
+
保留空白的 SVG 文本遵循 XML 行尾规则,Windows 和 Unix 源文件产生相同文本。字符引用保留解码后的值。
|
|
46
|
+
|
|
45
47
|
## 外部图片与字体
|
|
46
48
|
|
|
47
49
|
SVG 引用外部 asset 时,调用方通过 resolver 提供内容。Package 不自行读取 URL 或任意本地路径。文本 fidelity
|