From 1a54a11e32d382b77f34fa4426593afa82f1dbe2 Mon Sep 17 00:00:00 2001 From: ArgonarioD Date: Wed, 23 Nov 2022 11:33:51 +0800 Subject: [PATCH] created example_new.json --- 1st_encode/example_new.json | 289 ++++++++++++++++++++++++++++++++++++ 1 file changed, 289 insertions(+) create mode 100644 1st_encode/example_new.json diff --git a/1st_encode/example_new.json b/1st_encode/example_new.json new file mode 100644 index 0000000..73c307d --- /dev/null +++ b/1st_encode/example_new.json @@ -0,0 +1,289 @@ +{ + "height": 1080, + "width": 1080, + "elements": [ + { + "type": "path", + "data": { + "operations": [ + { + "type": "line", + "data": { + "target": { + "x": 15, + "y": 20 + } + } + }, + { + "type": "cubic", + "data": { + "target": { + "x": 18, + "y": 21 + }, + "control": { + "start": { + "x": 17, + "y": 22 + }, + "end": { + "x": 20, + "y": 23 + } + } + } + }, + { + "type": "cubic-smooth", + "data": { + "target": { + "x": 18, + "y": 21 + }, + "control": { + "x": 18, + "y": 21 + } + } + }, + { + "type": "quadratic", + "data": { + "target": { + "x": 18, + "y": 21 + }, + "control": { + "x": 18, + "y": 21 + } + } + }, + { + "type": "quadratic-smooth", + "data": { + "target": { + "x": 18, + "y": 21 + } + } + }, + { + "type": "arc", + "data": { + "center": { + "x": 18, + "y": 21 + }, + "x-axis": 40, + "y-axis": 50, + "angle": 6000 + } + }, + { + "type": "zeal" + } + ] + } + }, + { + "type": "polygon", + "data": { + "points": [ + { + "x": 10, + "y": 20 + }, + { + "x": 10, + "y": 20 + }, + { + "x": 10, + "y": 20 + }, + { + "x": 10, + "y": 20 + }, + { + "x": 10, + "y": 20 + } + ] + } + }, + { + "type": "round", + "data": { + "x-axis": 30, + "y-axis": 40, + "angle": 6000 + } + }, + { + "type": "group", + "reference-layer": "0.0" + } + ], + "root-layer": { + "name": "root", + "offset": { + "x": 0, + "y": 0 + }, + "transformation": [ + 0,0,0, + 0,0,0, + 0,0,0 + ], + "effects": [], + "is-folder": true, + "referenced-by": null, + "children": [ + { + "name": "GroupFolderExample", + "offset": { + "x": 5, + "y": 10 + }, + "transformation": [ + 0,0,0, + 0,0,0, + 0,0,0 + ], + "effects": [ + { + "type": "iteration", + "data": { + "times": 5, + "operation": [ + [ + { + "type": "move", + "data": { + "dx": 5, + "dy": 6 + } + }, + { + "type": "rotate", + "data": { + "center": { + "dx": 0, + "dy": 0 + }, + "dθ": 6000 + } + }, + { + "type": "zoom", + "data": { + "zoom": 1.5 + } + }, + { + "type": "flip" + } + ], + [ + { + "type": "move", + "data": { + "dx": 5, + "dy": 6 + } + }, + { + "type": "rotate", + "data": { + "center": { + "dx": 0, + "dy": 0 + }, + "dθ": 6000 + } + }, + { + "type": "zoom", + "data": { + "zoom": 1.5 + } + }, + { + "type": "flip" + } + ] + ] + } + } + ], + "is-folder": true, + "referenced-by": 3, + "children": [ + { + "name": "GroupedLayer1", + "offset": { + "x": 10, + "y": 20 + }, + "transformation": [ + 5,0,0, + 0,6,0, + 0,0,0 + ], + "effects": [], + "is-folder": false, + "element": 0 + }, + { + "name": "GroupedLayer2", + "offset": { + "x": 15, + "y": 25 + }, + "transformation": [ + 5,0,0, + 0,6,0, + 0,0,0 + ], + "effects": [], + "is-folder": false, + "element": 1 + } + ] + }, + { + "name": "ReferencingGroupLayer", + "offset": { + "x": 10, + "y": 20 + }, + "transformation": [ + 5,0,0, + 0,6,0, + 0,0,0 + ], + "effects": [], + "is-folder": false, + "element": 3 + }, + { + "name": "Layer1", + "offset": { + "x": 10, + "y": 20 + }, + "transformation": [ + 5,0,0, + 0,6,0, + 0,0,0 + ], + "effects": [], + "is-folder": false, + "element": 3 + } + ] + } +} \ No newline at end of file