mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 17:56:50 -06:00
A selection with more than 100,000 anchors shows its bounds instead of every outline and anchor (#525). The count took in path anchors only. Type, images, symbol instances, placed documents, gradient meshes and envelopes counted nothing, although the selection overlay outlines each of them: a box, an area type frame or a type path, a baseline marker for point type, and the points and mesh lines of meshes and envelopes. The PDF importer makes type objects from a page's text lines, one image object per image and one gradient mesh per patch or triangle of a mesh shading, so selecting all of a large PDF outlined each of them: 131,072 selected mesh pieces need 16.8 million vertices, a 336 MB vertex buffer, past wgpu's 256 MiB buffer limit. The count now takes in what the overlay draws for each kind. Paths count their anchors. Area type and type on a path count the anchors of their frame or path, and point type counts six: its box's corners and the ends of its baseline marker. Images, symbol instances, placed documents, and area type or type on a path in perspective count the four corners of their box, and gradient meshes and envelopes count their points and the ends of their mesh lines. The selection's outline, the key object's outline and the hover highlight all use the count. Docs: docs/target-app-parity.md.