mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-18 01:36:57 +00:00
Merge main into feat/ai-editing-data-meshes
This commit is contained in:
File diff suppressed because one or more lines are too long
+46
-7
@@ -3618,7 +3618,10 @@ already walks Image Trace. Short agent entry points:
|
||||
a straight Pencil line too, or with Alt held at the release. The stroke's end then joins the other end when it is
|
||||
within four times the Fidelity of it (at least 6 pt and at most 400 pt), and a straight segment closes the path from
|
||||
farther away. Without `closed`, the stroke closes the path when it ends within that four-times-Fidelity distance. The
|
||||
Blob Brush's `path.blob` Fidelity stays in points, 0.01 to 100 pt.
|
||||
Blob Brush's `path.blob` Fidelity stays in points, 0.01 to 100 pt, and is
|
||||
not used when left out or null. `path.blob` rejects a `fidelity` outside 0.01 to 100 pt, an `angle` outside -180° to
|
||||
180° and a `roundness` outside 0% to 100% with an error such as `` `angle` must be from -180 to 180 degrees ``; the
|
||||
document does not change and no undo step is recorded. These ranges are VectorCraft's own values.
|
||||
- Variables: `variable.list`, `variable.define {name, kind: text|visibility|image|graph}`, `variable.bind {variable, ids?}`,
|
||||
`variable.makeTextDynamic`, `variable.makeVisibilityDynamic`, `variable.makeImageDynamic`, `variable.makeGraphDynamic`
|
||||
(`variable.bind` and `variable.makeTextDynamic` refuse type that already has another text variable and name it),
|
||||
@@ -6057,6 +6060,11 @@ These commands refuse a string, a number or another value that is not true or fa
|
||||
in `path.curvatureEdit`; `perpendicular` in `path.reshapeSegment`; and `keepSelected`, `mergeOnlySelection` and
|
||||
`merge` in `path.blob`. A null is read as a key left out.
|
||||
|
||||
`path.freehand` (and `brush.freehand`, which runs it) refuses a `style` other than "pencil" or "brush" with
|
||||
`style must be "pencil" or "brush"`, and an `end` of `extend` other than "start" or "end" with
|
||||
`extend end must be "start" or "end"`; the document does not change and no undo step is recorded. Left out or null,
|
||||
`style` is "pencil" and the `end` of `extend` is "end".
|
||||
|
||||
A `pointer_gesture` with `mods: {cmd: true}` held at the press, with any tool but the selection tools (Command on
|
||||
macOS, Ctrl elsewhere), drags with the selection tool chosen last (`select_tool`), or Direct Selection with the Pen,
|
||||
Curvature and anchor tools until one is chosen; the release gives the tool back as it was, so the Pen goes on drawing
|
||||
@@ -7560,7 +7568,7 @@ nothing. Opening a document reads a DCS file and its plates again even with the
|
||||
keeps the saved preview of other linked EPS files. These rules are VectorCraft's own: the screen, composite print and exports show the image as its plates
|
||||
mixed into CMYK (each ink amount times the ink's CMYK values, plates combined as `1 − (1 − a)(1 − b)`); Separations
|
||||
Preview and `file.print` separations show each plate on its own ink, and a spot plate prints as the document's swatch
|
||||
of its ink (else its CMYK values) with `spotsToProcess`. Separations Preview shows a reduced image's plates as the
|
||||
of its ink (else its CMYK values) with `spotsToProcess` or that ink's own `convertToProcess`. Separations Preview shows a reduced image's plates as the
|
||||
mean of the plate pixels each shown pixel covers. A file may name 64 plates, a plate file may be 1 GB, and the plates together may hold 512 MB of
|
||||
ink amounts; a plate that can't be read is an error naming the plate, and nothing is placed. The plates go on the first
|
||||
plate's pixel grid, grown to hold every plate where it prints; a plate of another size or position is resampled onto
|
||||
@@ -8646,7 +8654,9 @@ picked as the printer, File → Print saves the PDF instead (see Printing). Head
|
||||
`{pages, path | dataBase64, bytes, warnings}`; `print.preview {settings?}`
|
||||
answers what it would print without writing it: `{pages (copies included), sheets: [{artboard, tile?, ink?, width,
|
||||
height, orientation, scale}] (one copy, in order), tiles: [{artboard, columns, rows, printed, tiles}] (document
|
||||
space), inks: [{name, spot, print, frequency, angle}], warnings, settings}`. `print.setup {settings?}` saves the
|
||||
space), inks: [{name, spot, print, frequency, angle}] (the plates), documentInks: [{name, spot, print, frequency,
|
||||
angle, convertToProcess?}] (every ink of the document, the spot inks printing as process included), warnings,
|
||||
settings}`. `print.setup {settings?}` saves the
|
||||
settings with the document (one undo step, kept in the native file as `print_setup`); both other commands start from
|
||||
the saved settings, or from a print preset's with `preset` (see Print presets), with `settings` over them (`null` keeps
|
||||
a value). `list_commands` with filter `print.setup`
|
||||
@@ -8676,9 +8686,19 @@ documents every field:
|
||||
- `marks` and `bleed` as `document.exportPdf` takes them (the bleed is the document's unless `useDocument: false`),
|
||||
drawn around the artboard at the paper's scale; the page information adds the tile and the ink with its screen.
|
||||
- `output: {mode: composite|separations, emulsion: up|down, image: positive|negative, spotsToProcess, overprintBlack,
|
||||
inks: [{name, print, frequency, angle}]}`: separations print one page per ink in the gray of its coverage (images
|
||||
too; overprinting fills, strokes and characters don't knock out), Registration on every plate; emulsion down mirrors
|
||||
the page and a negative inverts it.
|
||||
inks: [{name, print, frequency, angle, convertToProcess}]}`: separations print one page per ink in the gray of its
|
||||
coverage (images too; overprinting fills, strokes and characters don't knock out), Registration on every plate;
|
||||
emulsion down mirrors the page and a negative inverts it.
|
||||
- `output.inks[].convertToProcess` (default false) prints one spot ink as process inks: it gets no plate of its own,
|
||||
and its color prints on the Cyan, Magenta, Yellow and Black plates, while other spot inks keep their plates. The
|
||||
Print dialog's Document Ink Options list shows an icon before each spot ink's name, and a click on it switches that
|
||||
ink between spot and process output, as
|
||||
[the help page](https://helpx.adobe.com/illustrator/using/printing-color-separations.html) describes for single
|
||||
spot colors. The rest is VectorCraft's own rule. `spotsToProcess` converts every spot ink whatever each one's
|
||||
own setting says, and the dialog then dims the icons; turning it off again applies each ink's own setting. A
|
||||
converted ink's `print`, `frequency` and `angle` are kept for when it prints as a spot ink again, and its Print
|
||||
checkbox and fields are dimmed: `print: false` does not leave its color out of the process plates. Process inks and
|
||||
Registration have no icon, and `convertToProcess` on a process ink is ignored with a setting note.
|
||||
- `output.overprintBlack` (default false) makes black ink overprint in separations, as the Output step of
|
||||
[Print color separations](https://helpx.adobe.com/illustrator/using/printing-color-separations.html) describes:
|
||||
black art leaves the inks under it on the other plates. Which paints count as black is VectorCraft's own rule: a
|
||||
@@ -8977,6 +8997,25 @@ file size), `seconds` to download at `kbps` (default 56.6), the size, and for pa
|
||||
`source` (the colour the reduction made), so a colour keeps its edits when it is web-shifted or snapped. `slice: n`
|
||||
previews one slice; `image: true` adds the file; `warnings` holds the export's warnings.
|
||||
|
||||
Optimize to File Size (the dialog's button under Preset) is `webExport.optimizeToFileSize {desiredK, startWith?,
|
||||
use?, slice?, …settings}`. It searches for settings whose files fit in `desiredK` K (1 K is 1024 bytes; above 0, at
|
||||
most 1048576) and returns them without writing a file or changing the remembered settings: `{targetBytes, achieved,
|
||||
bytes, format, settings, trials, images, warnings}`. `startWith: current` (the default) keeps the format and takes the
|
||||
highest JPEG quality (1 to the current quality) or the most GIF/PNG-8 colors (2 to the current count) that fit,
|
||||
measured by encoding. A lower value can give a larger file, so the search measures up to 6 values spread over the
|
||||
range, from the top down, and then narrows the step above the first one that fits. When no value measured fits, GIF
|
||||
tries lossy 100 with the most colors that fit. PNG-24 has no
|
||||
setting to lower. `startWith: auto` takes GIF for art with transparent pixels or at most 256 colors and JPEG
|
||||
otherwise. With `transparency: false` it counts the colors the pixels have once blended over the matte, as the file
|
||||
is written. For opaque art it tries the other format when the first one cannot reach the size. `use: allSlices` (the
|
||||
default) measures the image, or the image slices' files together; `eachSlice` measures the largest slice file;
|
||||
`currentSlice` measures `slice` (a number from `slice.list`), else the selected image slice, else the first. The
|
||||
slices share one setting, so every `use` changes the setting of all of them. The search encodes at most 32 trial
|
||||
settings. When none fits, `achieved` is false and `settings` are the smallest trial. A `desiredK` that is missing,
|
||||
not a number, 0 or less or above 1048576 is an error, as are an unknown `startWith` or `use` and a `slice` that is
|
||||
not a slice number or comes with another `use`. In the dialog, the desired size starts at the size of what Total of All
|
||||
Slices measures with the current settings, rounded up to 0.001 K.
|
||||
|
||||
Presets: `webExport.presets.list` (built-in ones, then saved ones), `webExport.presets.save {name, newName?, …settings}`,
|
||||
`webExport.presets.delete {name}`; any name works as `preset` in the other commands (its settings, then the keys
|
||||
given). `webExport.settings {…}` remembers the settings the dialog opens on (`{}` reads them, `reset: true` restores the
|
||||
@@ -9362,7 +9401,7 @@ layers are refused.
|
||||
destination or output intent is refused. Transparency is flattened before writing.
|
||||
- **pdfX3** (PDF/X-3:2002, written as PDF 1.3): colours are tagged with ICC profiles; transparency is flattened.
|
||||
- **pdfX4** (PDF/X-4:2010, PDF 1.6 at most): transparency and layers are kept, colours are tagged, and the XMP metadata
|
||||
names the standard.
|
||||
names the standard and has an `xmp:MetadataDate` equal to its `xmp:ModifyDate`.
|
||||
|
||||
Flattening uses `flattenerPreset` (default High Resolution, see PDF 1.3 above) on a copy (the document is untouched; a
|
||||
warning says so), and images with see-through pixels count as transparency. The written file is checked against
|
||||
|
||||
+4
-2
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user