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.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482{ "_do_not_edit": true, "_generated_by": "cargo run -p inkfinite-cli --bin generate-bindings", "format": "inkfinite.shape-registry-fixture", "geometry": { "bounds": "axis_aligned_enclosing_bounds", "coordinate_system": "local_origin_top_left_positive_x_right_positive_y_down", "rotation": "clockwise_radians_about_local_origin" }, "geometry_cases": [ { "expected_bounds": { "height": 64.68151994504743, "width": 84.58937110935591, "x": -4.38276615812609, "y": 20.0 }, "kind": "rect", "properties": { "height": 20.0, "width": 40.0 }, "transform": { "rotation": 0.5, "scale_x": 2.0, "scale_y": 1.5, "translation": { "x": 10.0, "y": 20.0 } } }, { "expected_bounds": { "height": 36.97549392047567, "width": 58.08961495933219, "x": -11.50144454654947, "y": 7.0 }, "kind": "path", "properties": { "fill_rule": "evenodd", "subpaths": [ { "closed": true, "segments": [ { "to": { "x": 0.0, "y": 0.0 }, "type": "move" }, { "to": { "x": 40.0, "y": 0.0 }, "type": "line" }, { "control": { "x": 50.0, "y": 10.0 }, "to": { "x": 40.0, "y": 20.0 }, "type": "quadratic" }, { "control_1": { "x": 40.0, "y": 30.0 }, "control_2": { "x": 0.0, "y": 30.0 }, "to": { "x": 0.0, "y": 20.0 }, "type": "cubic" } ] } ] }, "transform": { "rotation": 0.3, "scale_x": 1.2, "scale_y": 0.8, "translation": { "x": -5.0, "y": 7.0 } } } ], "invalid_path_cases": [ { "geometry": { "fill_rule": "nonzero", "subpaths": [] }, "name": "empty", "valid": false }, { "geometry": { "fill_rule": "nonzero", "subpaths": [ { "closed": false, "segments": [] } ] }, "name": "empty_subpath", "valid": false }, { "geometry": { "fill_rule": "nonzero", "subpaths": [ { "closed": false, "segments": [ { "to": { "x": 1.0, "y": 2.0 }, "type": "line" } ] } ] }, "name": "missing_move", "valid": false }, { "geometry": { "fill_rule": "nonzero", "subpaths": [ { "closed": false, "segments": [ { "to": { "x": 0.0, "y": 0.0 }, "type": "move" }, { "to": { "x": 1.0, "y": 1.0 }, "type": "move" } ] } ] }, "name": "move_not_first", "valid": false }, { "geometry": { "fill_rule": "nonzero", "subpaths": [ { "closed": false, "segments": [ { "to": { "x": null, "y": 0.0 }, "type": "move" } ] } ] }, "name": "nonfinite_coordinate", "valid": false } ], "kind_names": [ "rect", "ellipse", "line", "arrow", "text", "stroke", "path", "markdown", "image", "reference", "container" ], "path_geometry": { "fill_rule": "evenodd", "subpaths": [ { "closed": true, "segments": [ { "to": { "x": 0.0, "y": 0.0 }, "type": "move" }, { "to": { "x": 40.0, "y": 0.0 }, "type": "line" }, { "control": { "x": 50.0, "y": 10.0 }, "to": { "x": 40.0, "y": 20.0 }, "type": "quadratic" }, { "control_1": { "x": 40.0, "y": 30.0 }, "control_2": { "x": 0.0, "y": 30.0 }, "to": { "x": 0.0, "y": 20.0 }, "type": "cubic" } ] } ] }, "property_cases": [ { "kind": "rect", "properties": { "height": 20.0, "width": 40.0 }, "valid": true }, { "kind": "path", "properties": { "fill_rule": "evenodd", "subpaths": [ { "closed": true, "segments": [ { "to": { "x": 0.0, "y": 0.0 }, "type": "move" }, { "to": { "x": 40.0, "y": 0.0 }, "type": "line" }, { "control": { "x": 50.0, "y": 10.0 }, "to": { "x": 40.0, "y": 20.0 }, "type": "quadratic" }, { "control_1": { "x": 40.0, "y": 30.0 }, "control_2": { "x": 0.0, "y": 30.0 }, "to": { "x": 0.0, "y": 20.0 }, "type": "cubic" } ] } ] }, "valid": true }, { "kind": "stroke", "properties": { "brush": { "simulatePressure": true, "size": 8.0, "smoothing": 0.5, "streamline": 0.5, "thinning": 0.5 }, "points": [ [ 0.0, 0.0 ], [ 20.0, 10.0 ] ], "style": { "color": "#000000", "opacity": 1.0 } }, "valid": true }, { "kind": "stroke", "properties": { "brush": { "simulatePressure": true, "size": 8.0, "smoothing": 0.5, "streamline": 0.5, "thinning": 0.5 }, "points": [ [ 0.0, 0.0 ] ], "style": { "color": "#000000", "opacity": 1.0 } }, "valid": false }, { "kind": "rect", "properties": { "height": 20.0, "width": -1.0 }, "valid": false }, { "kind": "rect", "properties": { "height": 20.0, "width": "40" }, "valid": false }, { "kind": "unknown", "properties": {}, "valid": false } ], "serialization": { "shape": { "child_ids": [], "id": "shape:fixture", "kind": "rect", "layout": null, "metadata": { "agent_editable": true, "body": null, "custom_metadata": {}, "description": null, "link": null, "locked": false, "name": "Fixture rectangle", "provenance": { "actor_id": "actor:fixture", "origin": "system", "source": "native-fixture", "timestamp": 1700000000000 }, "role": "fixture.shape", "source": null, "tags": [ "fixture" ], "title": null }, "parent": { "id": "layer:fixture", "kind": "layer" }, "properties": { "height": 20.0, "width": 40.0 }, "style": { "fill_opacity": null, "opacity": 1.0, "stroke_opacity": null }, "transform": { "rotation": 0.5, "scale_x": 2.0, "scale_y": 1.5, "translation": { "x": 10.0, "y": 20.0 } }, "version": 1 }, "transaction": { "actor_id": "actor:fixture", "base_heads": [ "head:fixture" ], "description": "Native shared binding fixture", "id": "transaction:fixture", "operations": [ { "expected_version": 1, "patch": { "layout": null, "metadata": null, "properties": { "height": 20.0, "width": 40.0 }, "style": null, "transform": { "rotation": 0.5, "scale_x": 2.0, "scale_y": 1.5, "translation": { "x": 10.0, "y": 20.0 } } }, "shape_id": "shape:fixture", "type": "patch_shape" } ], "origin": "system", "timestamp": 1700000000000 } }, "version": 1}