mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-06 05:53:08 -05:00
Docs: loadFromPreset skips the trace only when the parameters match
docs/mcp.md now says that loadFromPreset(name) runs no command only when the tracing's preset matches name (ignoring letter case and, for a built-in preset, brackets) and its current parameters equal the preset's, as options_load in crates/engine/src/script/dom/tracing.rs checks.
This commit is contained in:
1 parent
625c9fe454
commit
061a036865
1 file changed
+4
-2
+4
-2
@@ -3621,8 +3621,10 @@ through `$`:
|
||||
count the seam fills of an Abutting trace, `usedColorCount` counts the different fill and stroke paints, and
|
||||
`imageResolution` is the image's pixels per inch as placed, an error for an image placed at different resolutions
|
||||
across and down. Assigning an option, or `loadFromPreset(name)`, traces again with `imageTrace.make`, keeps the
|
||||
source image and the view, and a value the tracing already has runs no command; a built-in preset's name with or
|
||||
without brackets, such as `Default` and `[Default]`, counts as the same preset. Assigning `viewRaster` or
|
||||
source image and the view, and a value the tracing already has runs no command. `loadFromPreset(name)` runs no
|
||||
command only when the tracing's preset is `name` and its current parameters equal that preset's. Preset names match
|
||||
without regard to letter case, and a built-in preset's name with or without brackets, such as `Default` and
|
||||
`[Default]`, counts as the same preset. Assigning `viewRaster` or
|
||||
`viewVector` does not trace again: it runs `imageTrace.setView`. The `PluginItem`, `TracingObject`
|
||||
and `TracingOptions` follow the new object, and a run traces again at most 10,000 times. Tracing again throws
|
||||
`Cannot retrace a tracing containing added artwork`, with nothing changed, when the tracing holds an object its trace
|
||||
|
||||
Reference in new issue
Block a user