mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
The Selection and Direct Selection tools drew the start, center and end brackets of every selected type on a path, and hit-tested each of them, however large the selection was: 32,768 selected type on a path objects added 1,310,720 vertices to the frame's mesh, 40 for each object. The PDF importer makes type on a path for curved text lines, so selecting all of a large PDF can reach that size. With more than 10,000 type on a path objects selected, the tools now neither draw nor hit-test any bracket: a press where a bracket would be does not start a bracket drag, and the pointer does not change to the bracket cursor there. The tools draw 10 points for each object's brackets, so 10,000 objects take 100,000, the same number as the canvas's limit on the anchor points it outlines. The tools crate has its own constant with the same value. Docs: docs/target-app-parity.md.