Shear: 180 and -180 leave the art unchanged

The tangent of 180 degrees in radians is about 1e-16, not 0, so a shear
by 180 or -180 moved coordinates very slightly and recorded an undo
step. Angles within 1e-9 degrees of 0, 180 or -180 now shear by 0:
without `copy`, nothing moves and no undo step is recorded.

Docs: params text, docs/mcp.md.
This commit is contained in:
dotCooCoo
2026-11-17 17:04:12 -08:00
parent b4d5d192ba
commit cd259b9fa8
4 changed files with 25 additions and 5 deletions
+2 -1
View File
@@ -6844,7 +6844,8 @@ an error that lists the choices of a `horizontal`, `vertical`, `to`, `axis` or `
(`object.reflect` also takes an angle and names the value given), and one for a `spacing` that is not a number; nothing
moves. `object.shear` takes an `angle` from -359 to 359 degrees, the range of the
[Shear dialog](https://helpx.adobe.com/illustrator/desktop/manage-objects/reshape-transform-objects/shear-objects.html),
and shears by its tangent, so 120 slants as -60. It returns an error for an angle outside that range, and, as
and shears by its tangent, so 120 slants as -60. An angle of 0 or ±180 (within 1e-9 degrees) has no slant: without
`copy`, nothing moves and no undo step is recorded, and with `copy` the copies keep the art's place. It returns an error for an angle outside that range, and, as
VectorCraft's own rule, for ±90 and ±270 (within 1e-9 degrees), which have no finite shear; nothing moves and no undo
step is recorded.