mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-04 04:52:54 -05:00
`PlacedItem.trace()` and `RasterItem.trace()` run `imageTrace.make` with the Default preset and return the Image Trace object as a `PluginItem`. Its `tracing` is a `TracingObject` with the source image, the path, anchor and color counts, the image's resolution, `expandTracing()`, `releaseTracing()` and a `TracingOptions` object. Assigning an option or loading a preset traces the image again, keeping its source image and view; a value the tracing already has runs no command. Option values are checked for type and range before any trace, and nothing changes when one is refused. Options with no VectorCraft setting and `expandTracing(true)` throw. `storeToPreset` returns `false` for a built-in preset name or `Custom` and throws for any other name. A tracing that was expanded, released, deleted or traced again by a command is stale. The source image is reached through `sourceArt` and is not listed in `pageItems`, `placedItems` or `rasterItems`, and the name of a tracing cannot be changed from a script. With a script running, `imageTrace.make` stops at the run's stop request. Setting `File.hidden` stores the new path with `set_path`, since the path is held in the object's class on this branch. Docs: docs/mcp.md, docs/target-app-parity.md.