mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-22 18:34:42 +01:00
Perspective Distort and Free Distort (`object.distort`) used to give an image only the warp's affine approximation at its center, so its corners did not follow the handles and it drifted away from paths warped with it. - An image's four corners now go exactly where the warp takes them, alone or in a mixed selection. A parallelogram stays in the image's transform; any other shape is kept in the new `image_quad` field of the native file, which older files do not have and still open as before. - Corners that would fold the image over, fall on one line, cross the warp's horizon or lie too close together for a perspective map are an error, and nothing changes. A file whose corners break these rules opens with the image placed by its transform. A drag is one undo step, and a distort that leaves the corners where they are records none. - Bounds, hit testing, transforms, Transform effects, blends, the Eyedropper, Outline view, the Color Theme Picker and Weed Box and Lines follow the corners. Image info measures the resolution at the image's middle, and plug-ins get the corners. - The canvas, printing and every exporter draw a distorted image as a mesh of affine image pieces through the shared mesh warp, clipped by the corners. In files and print the mesh aims to stay within 0.05 pt with cells of at least 2 pt; the canvas cuts it for the zoom, within a quarter of a pixel with cells of at least 4 pixels. Pieces reach into their neighbors (0.5 pt, or 2 pixels on the canvas), so the image stays opaque at every zoom. The mesh has at most 64 by 64 cells and no more cells across than the image has pixels on its longer side (at least 8). No warped copy of the pixels is stored. DXF and WMF write the nearest parallelogram and warn. - Crop Image, Image Trace, Relink, Embed, Unembed, Create Object Mosaic, Create Gradient Mesh and Place with Replace refuse a distorted image with an error that names the distortion. Update Links puts a changed file's pixels between the same corners, without applying Placement Options. Mask follows the corners. Rasterize makes a plain image of it. - The new error messages have rows in every complete-message catalog. Docs: docs/mcp.md, docs/plugins.md, docs/target-app-parity.md.