mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-25 02:07:09 -06:00
Document Info: Objects gives the paths' total length (#1958)
Document Info › Objects counts the paths but didn't say how long they are, which sign and print work reads there (an LED strip along the letters, a cut line). `document.info` now adds up the length of every path it counts, the pieces of compound paths included and guides left out, and returns it as `pathLength` (pt); the Objects section shows it as Path Length in the document's units, right after the Paths count, so Selection Only gives the selected paths' length. The label is translated in the catalogs that cover the menus; pt-br only takes strings the UI itself shows.
This commit is contained in:
+4
-2
@@ -2422,8 +2422,10 @@ result carries the same files as a zip (`{name: "<name>.zip", dataBase64}`, entr
|
||||
|
||||
`document.info {selectionOnly?, category?, format?: "text"}` adds `sections` (`[{id, title, rows: [[label, value]]}]`:
|
||||
document, objects, graphicStyles, spotColors, patterns, gradients, symbols, fonts, fontDetails, linkedImages,
|
||||
embeddedImages); `format: "text"` returns the plain-text report Document Info › Save… (`docInfo.save {path?}`) and
|
||||
the package report write.
|
||||
embeddedImages) and `pathLength` (pt: the total length of the paths, compound paths' pieces included and guides left
|
||||
out, which objects lists as Path Length in the document's units, say for a cut line or an LED strip along the letters);
|
||||
`format: "text"` returns the plain-text report Document Info › Save… (`docInfo.save {path?}`) and the package report
|
||||
write.
|
||||
|
||||
```json
|
||||
{"name":"run_command","arguments":{"command":"file.package","params":{"folder":"/tmp/handoff","copyFonts":false}}}
|
||||
|
||||
Reference in New Issue
Block a user