Repository navigation
Open FIG files whose objectBoundingBox mask has a zero matrix - #1378
Open
luckyzifan wants to merge 1 commit into
Open
luckyzifan wants to merge 1 commit into
luckyzifan wants to merge 1 commit into
Conversation
The #1343 file keeps left-half at 0.5×1 with one child and transform [0,0,0,0,0,0]. Map that mask onto the following object's bounds during import, and still reject ordinary positive singular layers. [skip ci] Co-authored-by: luckyzifan <luckyzifan@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
解决什么问题 / Problem and result
#1343 的原件能读出 2 页、6 个节点,但校验停在蒙版组
left-half:尺寸 0.5×1、子层 1 个、变换[0,0,0,0,0,0]。这不是 0×0 容器。零尺寸组的兼容条件覆盖不到它,于是整个文件被「图层数据无效」拒绝。导入时只改写两类奇异矩阵:
原变换写入
figUntranslated,并给出把源 SVG 的clipPathUnits改为userSpaceOnUse再经 Figma 重新导入的提示。10×10 奇异组、非蒙版的 0.5×1 奇异组、没有子层的单位蒙版仍然拒绝。已有 FIG 契约没有改语义。按关闭记录重建的形状:2 页、6 个节点,
left-half映射为[120, 0, 0, 80, 0, 0]。CPU 精确帧里 x=20 为不透明红,x=90 为全透明。工作区没有 SHA-256d66ac70ce294bd6968f63e30e7bdcbc398bb29e0d95febf0387657ba604404d6的原件,因此这不是该字节的打开结果。关联问题 / Related issues
Refs #1343
未重开已关闭的 #1356,也未改动 #1358。
验证 / Validation
基线
b8d76fb36872279a820eca4df212e7d7bafa28b7。候选8b20c9f1ae5df224659df68610d0fb00e36af9bf。cargo test --locked --manifest-path design-studio/Cargo.toml -p futureox-design-kernel --test fig_interop_contractleft-half、负例和 CPU Analytic 像素bun run test src/import-fig-fidelity.test.tsd66ac70c…4404d6同一重建输入下,旧导入保留全零矩阵,
validate报「图层数据无效」/Invalid scene node。新导入完成校验,左半边有像素、右半边被裁掉。未验证的范围 / Checks not run
render_exact,不是 WebGPU。