tldraw/__tests__/__mocks__/document.json
Steve Ruiz d1a3860bb1 Fixes a perf-killing deepCompare in context menu
Was deep comparing an array of actual selected shapes, rather than selected shape ids
2021-06-27 10:07:20 +01:00

100 lines
2.6 KiB
JSON

{
"document": {
"id": "0001",
"name": "My Document",
"pages": {
"page1": {
"id": "page1",
"type": "page",
"name": "Page 1",
"childIndex": 0,
"shapes": {
"5ca167d7-54de-47c9-aa8f-86affa25e44d": {
"id": "5ca167d7-54de-47c9-aa8f-86affa25e44d",
"seed": 0.08116783083496548,
"type": "arrow",
"isGenerated": false,
"name": "Arrow",
"parentId": "page1",
"childIndex": 16,
"point": [100, 100],
"rotation": 0,
"isAspectRatioLocked": false,
"isLocked": false,
"isHidden": false,
"bend": 0,
"points": [
[6.503619523263069, 281.09020634582345],
[0, 0]
],
"handles": {
"start": {
"id": "start",
"index": 0,
"point": [6.503619523263069, 281.09020634582345]
},
"end": {
"id": "end",
"index": 1,
"point": [0, 0]
},
"bend": {
"id": "bend",
"index": 2,
"point": [3.2518097616315345, 140.54510317291172]
}
},
"decorations": {
"start": null,
"end": null,
"middle": null
},
"style": {
"color": "Black",
"size": "Small",
"isFilled": false,
"dash": "Solid"
}
},
"1f6c251c-e12e-40b4-8dd2-c1847d80b72f": {
"id": "1f6c251c-e12e-40b4-8dd2-c1847d80b72f",
"seed": 0.6440313303074272,
"type": "rectangle",
"isGenerated": false,
"name": "Rectangle",
"parentId": "page1",
"childIndex": 24,
"point": [0, 0],
"size": [67.22075383450237, 72.92795609221832],
"radius": 2,
"rotation": 0,
"isAspectRatioLocked": false,
"isLocked": false,
"isHidden": false,
"style": {
"size": "Small",
"color": "Black",
"dash": "Solid",
"isFilled": false
}
}
}
}
},
"code": {
"file0": {
"id": "file0",
"name": "index.ts",
"code": ""
}
}
},
"pageState": {
"id": "page1",
"selectedIds": {},
"camera": {
"point": [-776.1126994855964, -404.44260065511594],
"zoom": 0.260047458798192
}
}
}