Something went wrong. Try again.
inkfinite (an infinite canvas/whiteboard) monorepo ink.stormlightlabs.org
svelte rust tauri svg canvas perfect-freehand
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121{ "_do_not_edit": true, "_generated_by": "Inkfinite path topology fixture", "format": "inkfinite.path-topology-fixture", "cases": [ { "name": "open-and-close-compound-subpaths", "geometry": { "fill_rule": "evenodd", "subpaths": [ { "closed": false, "segments": [ { "type": "move", "to": { "x": 0.0, "y": 0.0 } }, { "type": "line", "to": { "x": 10.0, "y": 0.0 } } ] }, { "closed": true, "segments": [ { "type": "move", "to": { "x": 20.0, "y": 20.0 } }, { "type": "line", "to": { "x": 30.0, "y": 20.0 } } ] } ] }, "operations": [ { "type": "close_path", "subpath_index": 0 }, { "type": "open_path", "subpath_index": 1 } ], "expected": { "fill_rule": "evenodd", "subpaths": [ { "closed": true, "segments": [ { "type": "move", "to": { "x": 0.0, "y": 0.0 } }, { "type": "line", "to": { "x": 10.0, "y": 0.0 } } ] }, { "closed": false, "segments": [ { "type": "move", "to": { "x": 20.0, "y": 20.0 } }, { "type": "line", "to": { "x": 30.0, "y": 20.0 } } ] } ] } }, { "name": "join-open-compound-endpoints", "geometry": { "fill_rule": "evenodd", "subpaths": [ { "closed": false, "handle_modes": ["broken", "joined"], "segments": [ { "type": "move", "to": { "x": 0.0, "y": 0.0 } }, { "type": "cubic", "control_1": { "x": 3.0, "y": 0.0 }, "control_2": { "x": 7.0, "y": 0.0 }, "to": { "x": 10.0, "y": 0.0 } } ] }, { "closed": false, "handle_modes": ["joined", "broken"], "segments": [ { "type": "move", "to": { "x": 20.0, "y": 0.0 } }, { "type": "cubic", "control_1": { "x": 23.0, "y": 0.0 }, "control_2": { "x": 27.0, "y": 0.0 }, "to": { "x": 30.0, "y": 0.0 } } ] } ] }, "operations": [ { "type": "join_endpoints", "first_subpath_index": 0, "first_at_start": false, "second_subpath_index": 1, "second_at_start": true } ], "expected": { "fill_rule": "evenodd", "subpaths": [ { "closed": false, "handle_modes": ["broken", "joined", "joined", "broken"], "segments": [ { "type": "move", "to": { "x": 0.0, "y": 0.0 } }, { "type": "cubic", "control_1": { "x": 3.0, "y": 0.0 }, "control_2": { "x": 7.0, "y": 0.0 }, "to": { "x": 10.0, "y": 0.0 } }, { "type": "line", "to": { "x": 20.0, "y": 0.0 } }, { "type": "cubic", "control_1": { "x": 23.0, "y": 0.0 }, "control_2": { "x": 27.0, "y": 0.0 }, "to": { "x": 30.0, "y": 0.0 } } ] } ] } } ]}