Wykres commitów

12 Commity (6502d09177a76e8a52deeb581bc47ecf0ef088fa)

Autor SHA1 Wiadomość Data
Atul Varma 9ac1243249 Oops, fix type error. 2021-02-16 07:17:40 -05:00
Atul Varma aa87e3b77e Sort attachment points top to bottom, left to right. 2021-02-16 07:04:16 -05:00
Atul Varma 61697d4552 Put hand on eye. 2021-02-15 16:40:47 -05:00
Atul Varma 291c9d60fa Factor out svg-symbol.tsx, visible-specs.tsx. 2021-02-15 09:56:02 -05:00
Atul Varma 11c27b905f Make attachment point code more DRY. 2021-02-15 09:13:00 -05:00
Atul Varma 4334a3eb3c Enable stricter typescript checks, remove unused import. 2021-02-15 07:44:22 -05:00
Atul Varma 897448ee6e Use latest symbols. 2021-02-15 07:33:48 -05:00
Atul Varma aa47012d4b
Use arrows for attachment points instead of circles. (#3)
Here we attempt to use arrowhead symbols in SVGs to allow artists to specify the orientation of attached symbols, rather than attempting to auto-detect it via projecting the circles onto the shape and using the normal as we did in #2.

It seems like this logic is both much simpler and less error-prone, especially around corners.  It also gives artists much more control over the placement of attachments.

The one fragile aspect of the implementation is that we assume the first point of the arrow shape is its tip, and that the third point is its indented bottom.  This appears to be consistent across all of Nina's SVGs, so far at least...
2021-02-14 21:27:20 -05:00
Atul Varma f3beb8cdd9
Auto-detect direction of normals. (#2)
This auto-detects the direction of normals on which to attach attachments.

Right now it's getting very confused by corners, but otherwise it seems to mostly work.
2021-02-14 12:07:34 -05:00
Atul Varma 6d911e1654 Use js-bezier's BBox struct and functions. 2021-02-14 07:44:52 -05:00
Atul Varma f70cdbad8d Extract attachment points and nesting boxes. 2021-02-13 20:47:28 -05:00
Atul Varma 26d4c721cf Remove specs-related shapes. 2021-02-13 20:29:20 -05:00