mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-04 13:02:50 -05:00
Merge pull request #10654 from dotCooCoo/fix/script-image-matrix-locks
Scripts: image matrix assignment refuses locked and hidden images
This commit is contained in:
4 files changed
+59
-5
No files matched your search
+3
-1
@@ -3536,7 +3536,9 @@ through `$`:
|
||||
that maps the image's pixels, row 0 at the top, to script coordinates, and a distorted image has none. Assigning
|
||||
`matrix` runs `object.transform`, except that a matrix equal to the one `matrix` reads runs no command; a value
|
||||
that is not finite, a matrix with no area, one that puts a corner of the image outside the canvas and one that a
|
||||
nearly singular image cannot reach exactly throw an error with nothing changed. `boundingBox` is the pixel rectangle at one point
|
||||
nearly singular image cannot reach exactly throw an error with nothing changed. Assigning `matrix` to a locked or
|
||||
hidden image, one inside a locked or hidden layer or group, or one on a locked artboard throws the transform methods'
|
||||
error with nothing changed, even when the matrix is unchanged. `boundingBox` is the pixel rectangle at one point
|
||||
a pixel. `removeAll()` refuses images as `pageItems.removeAll()` refuses objects, and so throws `cannot delete
|
||||
objects on a locked artboard` and deletes nothing when an image is on one. Assigning `file` or `matrix` checks the
|
||||
item before the value, so a stale item throws `Stale page item` whatever the value. Assigning `matrix` to an `add()`
|
||||
|
||||
Reference in new issue
Block a user