|  | @@ -1,18 +1,18 @@
 | 
		
	
		
			
			| 1 |  | -import { Data, ShapeType } from "types"
 | 
		
	
		
			
			| 2 |  | -import shapeUtils from "lib/shape-utils"
 | 
		
	
		
			
			| 3 |  | -import { shades } from "lib/colors"
 | 
		
	
		
			
			|  | 1 | +import { Data, ShapeType } from 'types'
 | 
		
	
		
			
			|  | 2 | +import shapeUtils from 'lib/shape-utils'
 | 
		
	
		
			
			|  | 3 | +import { shades } from 'lib/colors'
 | 
		
	
		
			
			| 4 | 4 |  
 | 
		
	
		
			
			| 5 |  | -export const defaultDocument: Data["document"] = {
 | 
		
	
		
			
			|  | 5 | +export const defaultDocument: Data['document'] = {
 | 
		
	
		
			
			| 6 | 6 |    pages: {
 | 
		
	
		
			
			| 7 | 7 |      page0: {
 | 
		
	
		
			
			| 8 |  | -      id: "page0",
 | 
		
	
		
			
			| 9 |  | -      type: "page",
 | 
		
	
		
			
			| 10 |  | -      name: "Page 0",
 | 
		
	
		
			
			|  | 8 | +      id: 'page0',
 | 
		
	
		
			
			|  | 9 | +      type: 'page',
 | 
		
	
		
			
			|  | 10 | +      name: 'Page 0',
 | 
		
	
		
			
			| 11 | 11 |        childIndex: 0,
 | 
		
	
		
			
			| 12 | 12 |        shapes: {
 | 
		
	
		
			
			| 13 | 13 |          shape3: shapeUtils[ShapeType.Dot].create({
 | 
		
	
		
			
			| 14 |  | -          id: "shape3",
 | 
		
	
		
			
			| 15 |  | -          name: "Shape 3",
 | 
		
	
		
			
			|  | 14 | +          id: 'shape3',
 | 
		
	
		
			
			|  | 15 | +          name: 'Shape 3',
 | 
		
	
		
			
			| 16 | 16 |            childIndex: 3,
 | 
		
	
		
			
			| 17 | 17 |            point: [400, 500],
 | 
		
	
		
			
			| 18 | 18 |            style: {
 | 
		
	
	
		
			
			|  | @@ -22,8 +22,8 @@ export const defaultDocument: Data["document"] = {
 | 
		
	
		
			
			| 22 | 22 |            },
 | 
		
	
		
			
			| 23 | 23 |          }),
 | 
		
	
		
			
			| 24 | 24 |          shape0: shapeUtils[ShapeType.Circle].create({
 | 
		
	
		
			
			| 25 |  | -          id: "shape0",
 | 
		
	
		
			
			| 26 |  | -          name: "Shape 0",
 | 
		
	
		
			
			|  | 25 | +          id: 'shape0',
 | 
		
	
		
			
			|  | 26 | +          name: 'Shape 0',
 | 
		
	
		
			
			| 27 | 27 |            childIndex: 1,
 | 
		
	
		
			
			| 28 | 28 |            point: [100, 600],
 | 
		
	
		
			
			| 29 | 29 |            radius: 50,
 | 
		
	
	
		
			
			|  | @@ -34,8 +34,8 @@ export const defaultDocument: Data["document"] = {
 | 
		
	
		
			
			| 34 | 34 |            },
 | 
		
	
		
			
			| 35 | 35 |          }),
 | 
		
	
		
			
			| 36 | 36 |          shape5: shapeUtils[ShapeType.Ellipse].create({
 | 
		
	
		
			
			| 37 |  | -          id: "shape5",
 | 
		
	
		
			
			| 38 |  | -          name: "Shape 5",
 | 
		
	
		
			
			|  | 37 | +          id: 'shape5',
 | 
		
	
		
			
			|  | 38 | +          name: 'Shape 5',
 | 
		
	
		
			
			| 39 | 39 |            childIndex: 5,
 | 
		
	
		
			
			| 40 | 40 |            point: [200, 200],
 | 
		
	
		
			
			| 41 | 41 |            radiusX: 50,
 | 
		
	
	
		
			
			|  | @@ -47,8 +47,8 @@ export const defaultDocument: Data["document"] = {
 | 
		
	
		
			
			| 47 | 47 |            },
 | 
		
	
		
			
			| 48 | 48 |          }),
 | 
		
	
		
			
			| 49 | 49 |          shape7: shapeUtils[ShapeType.Ellipse].create({
 | 
		
	
		
			
			| 50 |  | -          id: "shape7",
 | 
		
	
		
			
			| 51 |  | -          name: "Shape 7",
 | 
		
	
		
			
			|  | 50 | +          id: 'shape7',
 | 
		
	
		
			
			|  | 51 | +          name: 'Shape 7',
 | 
		
	
		
			
			| 52 | 52 |            childIndex: 7,
 | 
		
	
		
			
			| 53 | 53 |            point: [100, 100],
 | 
		
	
		
			
			| 54 | 54 |            radiusX: 50,
 | 
		
	
	
		
			
			|  | @@ -60,8 +60,8 @@ export const defaultDocument: Data["document"] = {
 | 
		
	
		
			
			| 60 | 60 |            },
 | 
		
	
		
			
			| 61 | 61 |          }),
 | 
		
	
		
			
			| 62 | 62 |          shape6: shapeUtils[ShapeType.Line].create({
 | 
		
	
		
			
			| 63 |  | -          id: "shape6",
 | 
		
	
		
			
			| 64 |  | -          name: "Shape 6",
 | 
		
	
		
			
			|  | 63 | +          id: 'shape6',
 | 
		
	
		
			
			|  | 64 | +          name: 'Shape 6',
 | 
		
	
		
			
			| 65 | 65 |            childIndex: 1,
 | 
		
	
		
			
			| 66 | 66 |            point: [400, 400],
 | 
		
	
		
			
			| 67 | 67 |            direction: [0.2, 0.2],
 | 
		
	
	
		
			
			|  | @@ -72,8 +72,8 @@ export const defaultDocument: Data["document"] = {
 | 
		
	
		
			
			| 72 | 72 |            },
 | 
		
	
		
			
			| 73 | 73 |          }),
 | 
		
	
		
			
			| 74 | 74 |          rayShape: shapeUtils[ShapeType.Ray].create({
 | 
		
	
		
			
			| 75 |  | -          id: "rayShape",
 | 
		
	
		
			
			| 76 |  | -          name: "Ray",
 | 
		
	
		
			
			|  | 75 | +          id: 'rayShape',
 | 
		
	
		
			
			|  | 76 | +          name: 'Ray',
 | 
		
	
		
			
			| 77 | 77 |            childIndex: 3,
 | 
		
	
		
			
			| 78 | 78 |            point: [300, 100],
 | 
		
	
		
			
			| 79 | 79 |            direction: [0.5, 0.5],
 | 
		
	
	
		
			
			|  | @@ -84,8 +84,8 @@ export const defaultDocument: Data["document"] = {
 | 
		
	
		
			
			| 84 | 84 |            },
 | 
		
	
		
			
			| 85 | 85 |          }),
 | 
		
	
		
			
			| 86 | 86 |          shape2: shapeUtils[ShapeType.Polyline].create({
 | 
		
	
		
			
			| 87 |  | -          id: "shape2",
 | 
		
	
		
			
			| 88 |  | -          name: "Shape 2",
 | 
		
	
		
			
			|  | 87 | +          id: 'shape2',
 | 
		
	
		
			
			|  | 88 | +          name: 'Shape 2',
 | 
		
	
		
			
			| 89 | 89 |            childIndex: 2,
 | 
		
	
		
			
			| 90 | 90 |            point: [200, 600],
 | 
		
	
		
			
			| 91 | 91 |            points: [
 | 
		
	
	
		
			
			|  | @@ -95,13 +95,13 @@ export const defaultDocument: Data["document"] = {
 | 
		
	
		
			
			| 95 | 95 |            ],
 | 
		
	
		
			
			| 96 | 96 |            style: {
 | 
		
	
		
			
			| 97 | 97 |              stroke: shades.black,
 | 
		
	
		
			
			| 98 |  | -            fill: shades.transparent,
 | 
		
	
		
			
			|  | 98 | +            fill: shades.none,
 | 
		
	
		
			
			| 99 | 99 |              strokeWidth: 1,
 | 
		
	
		
			
			| 100 | 100 |            },
 | 
		
	
		
			
			| 101 | 101 |          }),
 | 
		
	
		
			
			| 102 | 102 |          shape1: shapeUtils[ShapeType.Rectangle].create({
 | 
		
	
		
			
			| 103 |  | -          id: "shape1",
 | 
		
	
		
			
			| 104 |  | -          name: "Shape 1",
 | 
		
	
		
			
			|  | 103 | +          id: 'shape1',
 | 
		
	
		
			
			|  | 104 | +          name: 'Shape 1',
 | 
		
	
		
			
			| 105 | 105 |            childIndex: 1,
 | 
		
	
		
			
			| 106 | 106 |            point: [400, 600],
 | 
		
	
		
			
			| 107 | 107 |            size: [200, 200],
 | 
		
	
	
		
			
			|  | @@ -116,8 +116,8 @@ export const defaultDocument: Data["document"] = {
 | 
		
	
		
			
			| 116 | 116 |    },
 | 
		
	
		
			
			| 117 | 117 |    code: {
 | 
		
	
		
			
			| 118 | 118 |      file0: {
 | 
		
	
		
			
			| 119 |  | -      id: "file0",
 | 
		
	
		
			
			| 120 |  | -      name: "index.ts",
 | 
		
	
		
			
			|  | 119 | +      id: 'file0',
 | 
		
	
		
			
			|  | 120 | +      name: 'index.ts',
 | 
		
	
		
			
			| 121 | 121 |        code: `
 | 
		
	
		
			
			| 122 | 122 |  new Dot({
 | 
		
	
		
			
			| 123 | 123 |    point: new Vector(0, 0),
 |