Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

docs: add architecture docs (#302)

Wenzhao Hu04a153de9add
diff --git a/docs/about-zh.md b/docs/about-zh.md
deleted file mode 100644
index 52de18611d..0000000000
--- a/docs/about-zh.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# 关于
-
-## 贡献者
-
-## 赞助商
-
-## 社区案例
-
-## 开源软件申明
-
-我们站在巨人的肩膀上构建新的应用,非常感谢这些开源贡献者们的无私奉献。
-
-- [react](https://react.dev)
-- [dayjs](https://github.com/iamkun/dayjs)
-- [numeral](https://github.com/adamwdraper/Numeral-js)
-- [reflect-metadata](https://github.com/rbuckton/reflect-metadata)
-- [es6-proxy-polyfill](https://github.com/ambit-tsai/es6-proxy-polyfill)
-- [react-colorful](https://github.com/omgovich/react-colorful)
-- [css-vars-ponyfill](https://github.com/jhildenbiddle/css-vars-ponyfill)
\ No newline at end of file
diff --git a/docs/graphs.tldr b/docs/graphs.tldr
index a86633477b..b81e997ac3 100644
--- a/docs/graphs.tldr
+++ b/docs/graphs.tldr
@@ -20,10 +20,10 @@
"version": 2
},
"instance": {
- "version": 17
+ "version": 21
},
"instance_page_state": {
- "version": 3
+ "version": 5
},
"page": {
"version": 1
@@ -33,22 +33,22 @@
"subTypeKey": "type",
"subTypeVersions": {
"group": 0,
- "embed": 4,
- "bookmark": 1,
- "image": 2,
"text": 1,
+ "bookmark": 1,
"draw": 1,
"geo": 7,
- "line": 0,
"note": 4,
+ "line": 1,
"frame": 0,
"arrow": 1,
"highlight": 0,
+ "embed": 4,
+ "image": 2,
"video": 1
}
},
"instance_presence": {
- "version": 4
+ "version": 5
},
"pointer": {
"version": 1
@@ -63,56 +63,27 @@
"id": "document:document",
"typeName": "document"
},
- {
- "id": "pointer:pointer",
- "typeName": "pointer",
- "x": 605,
- "y": 233,
- "lastActivityTimestamp": 1696329880133,
- "meta": {}
- },
{
"meta": {},
"id": "page:rA3Bannhl7kKSPnxwH2KA",
- "name": "command system architecture",
+ "name": "plugins",
"index": "a1",
"typeName": "page"
},
- {
- "x": 234.65206485338803,
- "y": 141.02093052118468,
- "z": 0.9490969095982434,
- "meta": {},
- "id": "camera:page:rA3Bannhl7kKSPnxwH2KA",
- "typeName": "camera"
- },
- {
- "editingId": null,
- "croppingId": null,
- "selectedIds": [],
- "hoveredId": null,
- "erasingIds": [],
- "hintingIds": [],
- "focusLayerId": null,
- "meta": {},
- "id": "instance_page_state:page:rA3Bannhl7kKSPnxwH2KA",
- "pageId": "page:rA3Bannhl7kKSPnxwH2KA",
- "typeName": "instance_page_state"
- },
{
"followingUserId": null,
"opacityForNextShape": 1,
"stylesForNextShape": {
"tldraw:geo": "rectangle",
"tldraw:dash": "draw",
- "tldraw:color": "yellow",
- "tldraw:fill": "semi"
+ "tldraw:color": "black",
+ "tldraw:verticalAlign": "middle",
+ "tldraw:horizontalAlign": "middle"
},
"brush": null,
"scribble": null,
"cursor": {
"type": "default",
- "color": "black",
"rotation": 0
},
"isFocusMode": false,
@@ -122,8 +93,8 @@
"screenBounds": {
"x": 0,
"y": 0,
- "w": 1392,
- "h": 738
+ "w": 743,
+ "h": 760
},
"zoomBrush": null,
"isGridMode": false,
@@ -131,101 +102,209 @@
"chatMessage": "",
"isChatting": false,
"highlightedUserIds": [],
+ "canMoveCamera": true,
+ "isFocused": true,
+ "devicePixelRatio": 1.5,
+ "isCoarsePointer": false,
+ "isHoveringCanvas": true,
+ "openMenus": [],
+ "isChangingStyle": false,
+ "isReadonly": false,
"meta": {},
"id": "instance:instance",
- "currentPageId": "page:xeHrQfrwHqlXdVIW8hZ9M",
+ "currentPageId": "page:-cEwd99JAPOR6yTk8m3P2",
"typeName": "instance"
},
{
- "x": 439.53247946758506,
- "y": 94.65373260827283,
+ "x": 819.6708838925945,
+ "y": 1208.0303897031586,
+ "z": 0.37249102389454575,
+ "meta": {},
+ "id": "camera:page:rA3Bannhl7kKSPnxwH2KA",
+ "typeName": "camera"
+ },
+ {
+ "editingShapeId": null,
+ "croppingShapeId": null,
+ "selectedShapeIds": [],
+ "hoveredShapeId": null,
+ "erasingShapeIds": [],
+ "hintingShapeIds": [],
+ "focusedGroupId": null,
+ "meta": {},
+ "id": "instance_page_state:page:rA3Bannhl7kKSPnxwH2KA",
+ "pageId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "typeName": "instance_page_state"
+ },
+ {
+ "id": "pointer:pointer",
+ "typeName": "pointer",
+ "x": 595.8455191546986,
+ "y": 667.183008798484,
+ "lastActivityTimestamp": 1698121660276,
+ "meta": {}
+ },
+ {
+ "meta": {},
+ "id": "page:-cEwd99JAPOR6yTk8m3P2",
+ "name": "layers",
+ "index": "a2",
+ "typeName": "page"
+ },
+ {
+ "x": -40.10607291968047,
+ "y": -3.445613497551502,
+ "z": 0.6666793269940358,
+ "meta": {},
+ "id": "camera:page:-cEwd99JAPOR6yTk8m3P2",
+ "typeName": "camera"
+ },
+ {
+ "editingShapeId": null,
+ "croppingShapeId": null,
+ "selectedShapeIds": [],
+ "hoveredShapeId": "shape:nl5EP80Tg5hlw3hsMU9il",
+ "erasingShapeIds": [],
+ "hintingShapeIds": [],
+ "focusedGroupId": null,
+ "meta": {},
+ "id": "instance_page_state:page:-cEwd99JAPOR6yTk8m3P2",
+ "pageId": "page:-cEwd99JAPOR6yTk8m3P2",
+ "typeName": "instance_page_state"
+ },
+ {
+ "meta": {},
+ "id": "page:tUmbHe1qsXONl9wzM72t6",
+ "name": "Command",
+ "index": "a3",
+ "typeName": "page"
+ },
+ {
+ "x": 0,
+ "y": 0,
+ "z": 1,
+ "meta": {},
+ "id": "camera:page:tUmbHe1qsXONl9wzM72t6",
+ "typeName": "camera"
+ },
+ {
+ "editingShapeId": null,
+ "croppingShapeId": null,
+ "selectedShapeIds": [],
+ "hoveredShapeId": null,
+ "erasingShapeIds": [],
+ "hintingShapeIds": [],
+ "focusedGroupId": null,
+ "meta": {},
+ "id": "instance_page_state:page:tUmbHe1qsXONl9wzM72t6",
+ "pageId": "page:tUmbHe1qsXONl9wzM72t6",
+ "typeName": "instance_page_state"
+ },
+ {
+ "meta": {},
+ "id": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "name": "sheet architecture",
+ "index": "a4",
+ "typeName": "page"
+ },
+ {
+ "x": 744.5598832551813,
+ "y": 455.6228651819523,
+ "z": 0.4777206355575486,
+ "meta": {},
+ "id": "camera:page:gTFhdE16Uc_KHufN8Qq0O",
+ "typeName": "camera"
+ },
+ {
+ "editingShapeId": null,
+ "croppingShapeId": null,
+ "selectedShapeIds": [
+ "shape:N8FIg3Gbpgup1qxS38W-A"
+ ],
+ "hoveredShapeId": null,
+ "erasingShapeIds": [],
+ "hintingShapeIds": [],
+ "focusedGroupId": null,
+ "meta": {},
+ "id": "instance_page_state:page:gTFhdE16Uc_KHufN8Qq0O",
+ "pageId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "typeName": "instance_page_state"
+ },
+ {
+ "x": 0,
+ "y": 0,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"type": "geo",
"props": {
- "w": 287.5,
+ "w": 61.6953125,
"h": 61.6953125,
- "geo": "rectangle",
- "color": "black",
+ "geo": "ellipse",
+ "color": "orange",
"labelColor": "black",
"fill": "none",
"dash": "solid",
"size": "m",
"font": "draw",
- "text": "ICommandService",
+ "text": "DI",
"align": "middle",
"verticalAlign": "middle",
"growY": 0,
"url": ""
},
- "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
- "index": "a1",
- "id": "shape:RyMexxxwgYQpcKl9XUjc6",
+ "parentId": "shape:EXTAV2ZFeDoY7JD9ykdXo",
+ "index": "a2",
+ "id": "shape:-NlsVAEiZ8MB1C8baEWDY",
"typeName": "shape"
},
{
- "x": 47.5,
- "y": 43,
+ "x": 760.7541997326252,
+ "y": 498.32022656093363,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
- "type": "geo",
- "props": {
- "w": 222,
- "h": 61.6953125,
- "geo": "rectangle",
- "color": "black",
- "labelColor": "black",
- "fill": "none",
- "dash": "draw",
- "size": "m",
- "font": "draw",
- "text": "Univer",
- "align": "middle",
- "verticalAlign": "middle",
- "growY": 0,
- "url": ""
- },
- "parentId": "shape:EXTAV2ZFeDoY7JD9ykdXo",
- "index": "a1",
- "id": "shape:_Iol5bXeZW3J-TeKm5A0u",
+ "type": "group",
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "a3",
+ "props": {},
+ "id": "shape:EXTAV2ZFeDoY7JD9ykdXo",
"typeName": "shape"
},
{
- "x": 0,
- "y": 0,
+ "x": 880.1293333476856,
+ "y": -632.6915067978543,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"type": "geo",
"props": {
- "w": 61.6953125,
- "h": 61.6953125,
- "geo": "ellipse",
- "color": "orange",
+ "w": 853.3284670524083,
+ "h": 383.4267490579654,
+ "geo": "rectangle",
+ "color": "black",
"labelColor": "black",
"fill": "none",
- "dash": "solid",
+ "dash": "dotted",
"size": "m",
"font": "draw",
- "text": "DI",
- "align": "middle",
- "verticalAlign": "middle",
+ "text": "ui-sheets-plugin",
+ "align": "end",
+ "verticalAlign": "start",
"growY": 0,
"url": ""
},
- "parentId": "shape:EXTAV2ZFeDoY7JD9ykdXo",
- "index": "a2",
- "id": "shape:-NlsVAEiZ8MB1C8baEWDY",
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "aG",
+ "id": "shape:Q2TuuuU1lvvxGpbKQPHao",
"typeName": "shape"
},
{
"x": 47.5,
- "y": 42.99999999999997,
+ "y": 43,
"rotation": 0,
"isLocked": false,
"opacity": 1,
@@ -241,87 +320,44 @@
"dash": "draw",
"size": "m",
"font": "draw",
- "text": "UniverSheet",
+ "text": "Univer",
"align": "middle",
"verticalAlign": "middle",
"growY": 0,
"url": ""
},
- "parentId": "shape:W0amEPzL3oqhERqpVU03u",
+ "parentId": "shape:EXTAV2ZFeDoY7JD9ykdXo",
"index": "a1",
- "id": "shape:rc-hRnk8B3Z3SeAPEn81e",
+ "id": "shape:_Iol5bXeZW3J-TeKm5A0u",
"typeName": "shape"
},
{
- "x": 0,
- "y": -2.842170943040401e-14,
+ "x": 483.64975878987457,
+ "y": 284.2694845663012,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"type": "geo",
"props": {
- "w": 61.6953125,
- "h": 61.6953125,
- "geo": "ellipse",
- "color": "orange",
+ "w": 853.3284670524083,
+ "h": 352.4262884958321,
+ "geo": "rectangle",
+ "color": "black",
"labelColor": "black",
"fill": "none",
- "dash": "solid",
+ "dash": "dotted",
"size": "m",
"font": "draw",
- "text": "DI",
- "align": "middle",
- "verticalAlign": "middle",
+ "text": "core plugin",
+ "align": "end",
+ "verticalAlign": "start",
"growY": 0,
"url": ""
},
- "parentId": "shape:W0amEPzL3oqhERqpVU03u",
- "index": "a2",
- "id": "shape:pNaLnvf0SwFtoE9xWzZMH",
- "typeName": "shape"
- },
- {
- "x": 265.5,
- "y": 183,
- "rotation": 0,
- "isLocked": false,
- "opacity": 1,
- "meta": {},
- "type": "arrow",
"parentId": "page:rA3Bannhl7kKSPnxwH2KA",
- "index": "a6",
- "props": {
- "dash": "dotted",
- "size": "m",
- "fill": "none",
- "color": "orange",
- "labelColor": "black",
- "bend": 0,
- "start": {
- "type": "binding",
- "boundShapeId": "shape:RyMexxxwgYQpcKl9XUjc6",
- "normalizedAnchor": {
- "x": 0.5,
- "y": 0.5
- },
- "isExact": false
- },
- "end": {
- "type": "binding",
- "boundShapeId": "shape:pNaLnvf0SwFtoE9xWzZMH",
- "normalizedAnchor": {
- "x": 0.5,
- "y": 0.5
- },
- "isExact": false
- },
- "arrowheadStart": "none",
- "arrowheadEnd": "arrow",
- "text": "",
- "font": "draw"
- },
- "id": "shape:Rr4Pd1wv_JyRTOnSpxASa",
+ "index": "aE",
+ "id": "shape:gmqmbadS-VKRnoKf941o9",
"typeName": "shape"
},
{
@@ -335,7 +371,7 @@
"parentId": "page:rA3Bannhl7kKSPnxwH2KA",
"index": "a9",
"props": {
- "dash": "dotted",
+ "dash": "solid",
"size": "m",
"fill": "none",
"color": "orange",
@@ -368,51 +404,37 @@
"typeName": "shape"
},
{
- "x": 522,
- "y": 265,
+ "x": 970.2091282052829,
+ "y": -168.78143651684246,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
- "type": "arrow",
- "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
- "index": "a7",
+ "type": "geo",
"props": {
- "dash": "solid",
- "size": "m",
- "fill": "none",
- "color": "orange",
+ "w": 853.3284670524083,
+ "h": 383.4267490579654,
+ "geo": "rectangle",
+ "color": "black",
"labelColor": "black",
- "bend": 0,
- "start": {
- "type": "binding",
- "boundShapeId": "shape:pNaLnvf0SwFtoE9xWzZMH",
- "normalizedAnchor": {
- "x": 0.5,
- "y": 0.5
- },
- "isExact": false
- },
- "end": {
- "type": "binding",
- "boundShapeId": "shape:-NlsVAEiZ8MB1C8baEWDY",
- "normalizedAnchor": {
- "x": 0.5,
- "y": 0.5
- },
- "isExact": false
- },
- "arrowheadStart": "none",
- "arrowheadEnd": "arrow",
- "text": "",
- "font": "draw"
+ "fill": "none",
+ "dash": "dotted",
+ "size": "m",
+ "font": "draw",
+ "text": "base-ui",
+ "align": "end",
+ "verticalAlign": "start",
+ "growY": 0,
+ "url": ""
},
- "id": "shape:QakBNC0Rk6xsBUTBxHSSK",
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "aH",
+ "id": "shape:nnc_AaPnMaRlnnpzSlaVh",
"typeName": "shape"
},
{
- "x": 321.9866165385808,
- "y": 290.89139227450494,
+ "x": 545.6386852270588,
+ "y": 345.5000307548444,
"rotation": 0,
"isLocked": false,
"opacity": 1,
@@ -440,25 +462,25 @@
"typeName": "shape"
},
{
- "x": 293,
- "y": 167,
+ "x": 31.96113388313006,
+ "y": 43.84976579779436,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"type": "arrow",
"parentId": "page:rA3Bannhl7kKSPnxwH2KA",
- "index": "a8V",
+ "index": "aIV",
"props": {
- "dash": "dotted",
+ "dash": "solid",
"size": "m",
"fill": "none",
- "color": "orange",
+ "color": "black",
"labelColor": "black",
"bend": 0,
"start": {
"type": "binding",
- "boundShapeId": "shape:RyMexxxwgYQpcKl9XUjc6",
+ "boundShapeId": "shape:Me3rwQ5rNV_KP4KrxngDx",
"normalizedAnchor": {
"x": 0.5,
"y": 0.5
@@ -479,58 +501,116 @@
"text": "",
"font": "draw"
},
- "id": "shape:PtpUjdnpGE51HEsWDSPkw",
+ "id": "shape:s2nQFQX6LGG-DG8QWd3Bs",
"typeName": "shape"
},
{
- "x": 143.8158741794448,
- "y": -6.155882805263957,
+ "x": -34.38425323524882,
+ "y": -326.7659091452224,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"type": "geo",
"props": {
- "w": 228.31526401659505,
- "h": 61.6953125,
+ "w": 853.3284670524083,
+ "h": 383.4267490579654,
"geo": "rectangle",
- "color": "light-blue",
+ "color": "black",
"labelColor": "black",
"fill": "none",
- "dash": "draw",
+ "dash": "dotted",
"size": "m",
"font": "draw",
- "text": "SheetCommands",
- "align": "middle",
- "verticalAlign": "middle",
+ "text": "base-sheets plugin",
+ "align": "end",
+ "verticalAlign": "start",
"growY": 0,
"url": ""
},
"parentId": "page:rA3Bannhl7kKSPnxwH2KA",
- "index": "aA",
- "id": "shape:mjNPq0t9Puk0Zvy_3YM4_",
+ "index": "aF",
+ "id": "shape:zP8MszP1fiG2OFBvUTWLH",
"typeName": "shape"
},
{
- "x": 547.1509083067438,
- "y": 47.79758016119371,
+ "x": 446.88345263420194,
+ "y": -170.64187173572464,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
- "type": "arrow",
- "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
- "index": "aB",
+ "type": "geo",
"props": {
- "dash": "draw",
+ "w": 294.7492322805273,
+ "h": 70.50114556553649,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "dotted",
+ "size": "m",
+ "font": "draw",
+ "text": "BaseSheetController",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "aI",
+ "id": "shape:Me3rwQ5rNV_KP4KrxngDx",
+ "typeName": "shape"
+ },
+ {
+ "x": 163.8614639748527,
+ "y": -50.6652160423273,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 294.7492322805273,
+ "h": 61.69791793823242,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "draw",
+ "size": "m",
+ "font": "draw",
+ "text": "EditorBridgetService",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "aJ",
+ "id": "shape:3MynbtmZCrKx7xSK9RDe1",
+ "typeName": "shape"
+ },
+ {
+ "x": 461.3321635853672,
+ "y": -21.639915417772045,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "arrow",
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "aK",
+ "props": {
+ "dash": "solid",
"size": "m",
"fill": "none",
- "color": "light-blue",
+ "color": "orange",
"labelColor": "black",
"bend": 0,
"start": {
"type": "binding",
- "boundShapeId": "shape:mjNPq0t9Puk0Zvy_3YM4_",
+ "boundShapeId": "shape:3MynbtmZCrKx7xSK9RDe1",
"normalizedAnchor": {
"x": 0.5,
"y": 0.5
@@ -539,7 +619,7 @@
},
"end": {
"type": "binding",
- "boundShapeId": "shape:RyMexxxwgYQpcKl9XUjc6",
+ "boundShapeId": "shape:-NlsVAEiZ8MB1C8baEWDY",
"normalizedAnchor": {
"x": 0.5,
"y": 0.5
@@ -551,58 +631,87 @@
"text": "",
"font": "draw"
},
- "id": "shape:gu_dxmGcATVyn-jDvvLl0",
+ "id": "shape:YdKqgzEDJ1fnYbNKMAo1t",
"typeName": "shape"
},
{
- "x": 52.35817476069343,
- "y": 158.99435139694162,
+ "x": 908.6450249568305,
+ "y": 449.06963164951253,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"type": "geo",
"props": {
- "w": 248.73907181699673,
- "h": 61.6953125,
+ "w": 296.20350392886166,
+ "h": 61.69791793823242,
"geo": "rectangle",
- "color": "light-blue",
+ "color": "black",
"labelColor": "black",
"fill": "none",
- "dash": "draw",
+ "dash": "solid",
"size": "m",
"font": "draw",
- "text": "CommonCommands",
+ "text": "IUniverInstanceService",
"align": "middle",
"verticalAlign": "middle",
"growY": 0,
"url": ""
},
"parentId": "page:rA3Bannhl7kKSPnxwH2KA",
- "index": "aC",
- "id": "shape:fx8UKMzZfi4EulsqtVvLq",
+ "index": "aL",
+ "id": "shape:n4ny7RyBTqxs4NJKvULmg",
+ "typeName": "shape"
+ },
+ {
+ "x": 76.69891787891254,
+ "y": -230.11758033650528,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 294.7492322805273,
+ "h": 61.69791793823242,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "dotted",
+ "size": "m",
+ "font": "draw",
+ "text": "EditorBridgeController",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "aM",
+ "id": "shape:mwnvsmFWKAomdbEgey4y_",
"typeName": "shape"
},
{
- "x": 56.30598912409266,
- "y": 251.11001987625963,
+ "x": 220.35328511970084,
+ "y": -213.39753560524264,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"type": "arrow",
"parentId": "page:rA3Bannhl7kKSPnxwH2KA",
- "index": "aD",
+ "index": "aN",
"props": {
- "dash": "draw",
+ "dash": "solid",
"size": "m",
"fill": "none",
- "color": "light-blue",
+ "color": "black",
"labelColor": "black",
"bend": 0,
"start": {
"type": "binding",
- "boundShapeId": "shape:fx8UKMzZfi4EulsqtVvLq",
+ "boundShapeId": "shape:mwnvsmFWKAomdbEgey4y_",
"normalizedAnchor": {
"x": 0.5,
"y": 0.5
@@ -611,7 +720,7 @@
},
"end": {
"type": "binding",
- "boundShapeId": "shape:rUT6E9SRsBYNLkWFII3jO",
+ "boundShapeId": "shape:3MynbtmZCrKx7xSK9RDe1",
"normalizedAnchor": {
"x": 0.5,
"y": 0.5
@@ -623,29 +732,29 @@
"text": "",
"font": "draw"
},
- "id": "shape:yPWMtHT-IFjuDHl3EEl-J",
+ "id": "shape:AxAHpukN7FEt5m_YYM6Vu",
"typeName": "shape"
},
{
- "x": 31.96113388313006,
- "y": 43.84976579779436,
+ "x": 300.3377535426358,
+ "y": -200.0668065150885,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
"type": "arrow",
"parentId": "page:rA3Bannhl7kKSPnxwH2KA",
- "index": "aAV",
+ "index": "aO",
"props": {
- "dash": "dotted",
+ "dash": "solid",
"size": "m",
"fill": "none",
- "color": "light-blue",
+ "color": "black",
"labelColor": "black",
"bend": 0,
"start": {
"type": "binding",
- "boundShapeId": "shape:mjNPq0t9Puk0Zvy_3YM4_",
+ "boundShapeId": "shape:mwnvsmFWKAomdbEgey4y_",
"normalizedAnchor": {
"x": 0.5,
"y": 0.5
@@ -654,7 +763,7 @@
},
"end": {
"type": "binding",
- "boundShapeId": "shape:rUT6E9SRsBYNLkWFII3jO",
+ "boundShapeId": "shape:n4ny7RyBTqxs4NJKvULmg",
"normalizedAnchor": {
"x": 0.5,
"y": 0.5
@@ -666,239 +775,1892 @@
"text": "",
"font": "draw"
},
- "id": "shape:s2nQFQX6LGG-DG8QWd3Bs",
+ "id": "shape:Qwm9q2CBSR-e9k2iMjpty",
"typeName": "shape"
},
{
- "x": 675.4950894431682,
- "y": 221.78843315206828,
+ "x": 991.485658657029,
+ "y": 446.9870654824016,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
- "type": "group",
+ "type": "arrow",
"parentId": "page:rA3Bannhl7kKSPnxwH2KA",
- "index": "a5",
- "props": {},
- "id": "shape:W0amEPzL3oqhERqpVU03u",
+ "index": "aLV",
+ "props": {
+ "dash": "solid",
+ "size": "m",
+ "fill": "none",
+ "color": "orange",
+ "labelColor": "black",
+ "bend": 0,
+ "start": {
+ "type": "binding",
+ "boundShapeId": "shape:n4ny7RyBTqxs4NJKvULmg",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "end": {
+ "type": "binding",
+ "boundShapeId": "shape:-NlsVAEiZ8MB1C8baEWDY",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "arrowheadStart": "none",
+ "arrowheadEnd": "arrow",
+ "text": "",
+ "font": "draw"
+ },
+ "id": "shape:oSR_egG_1GlPeWYvf6IEy",
"typeName": "shape"
},
{
- "x": 592,
- "y": 397,
+ "x": 1500.3248464359608,
+ "y": 6.078729614795975,
"rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
- "type": "group",
- "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
- "index": "a3",
- "props": {},
- "id": "shape:EXTAV2ZFeDoY7JD9ykdXo",
- "typeName": "shape"
- },
- {
- "meta": {},
- "id": "page:xeHrQfrwHqlXdVIW8hZ9M",
- "name": "insert rows",
- "index": "a2",
- "typeName": "page"
- },
- {
- "x": 0,
- "y": 0,
- "z": 1,
- "meta": {},
- "id": "camera:page:xeHrQfrwHqlXdVIW8hZ9M",
- "typeName": "camera"
- },
- {
- "editingId": null,
- "croppingId": null,
- "selectedIds": [
- "shape:RphC77DXcei5dnJ8JuaoJ"
- ],
- "hoveredId": "shape:iWaogg_a6oGlono6L5tkF",
- "erasingIds": [],
- "hintingIds": [],
- "focusLayerId": null,
- "meta": {},
- "id": "instance_page_state:page:xeHrQfrwHqlXdVIW8hZ9M",
- "pageId": "page:xeHrQfrwHqlXdVIW8hZ9M",
- "typeName": "instance_page_state"
- },
- {
- "x": 630.4834288659661,
- "y": 521.4557366371839,
- "rotation": 4.694935687864747,
- "isLocked": false,
- "opacity": 1,
- "meta": {},
- "id": "shape:4lsYqE-ub8p2QXEMetslA",
"type": "geo",
"props": {
- "w": 313,
- "h": 43.5,
+ "w": 296.20350392886166,
+ "h": 61.69791793823242,
"geo": "rectangle",
- "color": "light-blue",
+ "color": "black",
"labelColor": "black",
- "fill": "semi",
- "dash": "draw",
+ "fill": "none",
+ "dash": "solid",
"size": "m",
"font": "draw",
- "text": "",
+ "text": "IContextMenuService",
"align": "middle",
"verticalAlign": "middle",
"growY": 0,
"url": ""
},
- "parentId": "page:xeHrQfrwHqlXdVIW8hZ9M",
- "index": "a1",
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "aP",
+ "id": "shape:ClOs3_Y3c_EKb_7noe1mM",
"typeName": "shape"
},
{
- "x": 689.98309293099,
- "y": 520.9172423017438,
- "rotation": 4.694935687864747,
+ "x": 1081.9447378338596,
+ "y": 65.55420351055125,
+ "rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
- "id": "shape:TuzpOKiUFohxwmLLhGBNC",
"type": "geo",
"props": {
- "w": 313,
- "h": 43.5,
+ "w": 296.20350392886166,
+ "h": 61.69791793823242,
"geo": "rectangle",
- "color": "light-blue",
+ "color": "black",
"labelColor": "black",
- "fill": "semi",
- "dash": "draw",
+ "fill": "none",
+ "dash": "solid",
"size": "m",
"font": "draw",
- "text": "",
+ "text": "IMenuService",
"align": "middle",
"verticalAlign": "middle",
"growY": 0,
"url": ""
},
- "parentId": "page:xeHrQfrwHqlXdVIW8hZ9M",
- "index": "a2",
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "aQ",
+ "id": "shape:yH1gCS_6rdhqRaBXPOd1J",
"typeName": "shape"
},
{
- "x": 750.0001332500294,
- "y": 521.3698694582413,
- "rotation": 4.694935687864747,
+ "x": 1106.5552496204448,
+ "y": -115.94882553131913,
+ "rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
- "id": "shape:nDx8qbiBNBvqbfTEKtOzf",
"type": "geo",
"props": {
- "w": 313,
- "h": 43.5,
+ "w": 296.20350392886166,
+ "h": 61.69791793823242,
"geo": "rectangle",
- "color": "light-blue",
+ "color": "black",
"labelColor": "black",
- "fill": "semi",
- "dash": "draw",
+ "fill": "none",
+ "dash": "dotted",
"size": "m",
"font": "draw",
- "text": "",
+ "text": "SharedController",
"align": "middle",
"verticalAlign": "middle",
"growY": 0,
"url": ""
},
- "parentId": "page:xeHrQfrwHqlXdVIW8hZ9M",
- "index": "a3",
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "aR",
+ "id": "shape:hEDiOWlzKD2nOvLKqdd9i",
"typeName": "shape"
},
{
- "x": 627.1033248892835,
- "y": 361.4285097170675,
- "rotation": 4.694935687864747,
+ "x": 1233.489916437547,
+ "y": -63.68300214095245,
+ "rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
- "id": "shape:RphC77DXcei5dnJ8JuaoJ",
- "type": "geo",
+ "type": "arrow",
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "aS",
"props": {
- "w": 112,
- "h": 99.99987902044526,
- "geo": "rectangle",
- "color": "orange",
- "labelColor": "black",
- "fill": "semi",
- "dash": "draw",
+ "dash": "solid",
"size": "m",
- "font": "draw",
+ "fill": "none",
+ "color": "black",
+ "labelColor": "black",
+ "bend": 0,
+ "start": {
+ "type": "binding",
+ "boundShapeId": "shape:hEDiOWlzKD2nOvLKqdd9i",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "end": {
+ "type": "binding",
+ "boundShapeId": "shape:ClOs3_Y3c_EKb_7noe1mM",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "arrowheadStart": "none",
+ "arrowheadEnd": "arrow",
"text": "",
- "align": "middle",
- "verticalAlign": "middle",
- "growY": 0,
- "url": ""
+ "font": "draw"
},
- "parentId": "page:xeHrQfrwHqlXdVIW8hZ9M",
- "index": "a4",
+ "id": "shape:kjWNQO-D2pRzjRsnZx5c-",
"typeName": "shape"
},
{
- "x": 578.508801124271,
- "y": 523.3631094670791,
- "rotation": 4.694935687864747,
+ "x": 1432.6453053192824,
+ "y": 124.00429809145487,
+ "rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
- "id": "shape:iWaogg_a6oGlono6L5tkF",
"type": "geo",
"props": {
- "w": 318,
- "h": 36,
+ "w": 296.20350392886166,
+ "h": 61.69791793823242,
"geo": "rectangle",
- "color": "light-green",
+ "color": "black",
"labelColor": "black",
- "fill": "semi",
- "dash": "draw",
+ "fill": "none",
+ "dash": "solid",
"size": "m",
"font": "draw",
- "text": "",
+ "text": "IShortcutService",
"align": "middle",
"verticalAlign": "middle",
"growY": 0,
"url": ""
},
- "parentId": "page:xeHrQfrwHqlXdVIW8hZ9M",
- "index": "a5",
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "aT",
+ "id": "shape:QiJ52f_v4T7VtnVpqsUqO",
"typeName": "shape"
},
{
- "x": 575.3912757534723,
- "y": 172.86413509545207,
- "rotation": 4.694935687864747,
+ "x": 1290.9146317035993,
+ "y": -75.98830497525012,
+ "rotation": 0,
"isLocked": false,
"opacity": 1,
"meta": {},
- "id": "shape:itSsTYoqsyiKUCXWUI766",
- "type": "geo",
+ "type": "arrow",
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "aRV",
"props": {
- "w": 108,
- "h": 151.37870215686772,
- "geo": "rectangle",
- "color": "yellow",
- "labelColor": "black",
- "fill": "semi",
- "dash": "draw",
+ "dash": "solid",
"size": "m",
- "font": "draw",
+ "fill": "none",
+ "color": "black",
+ "labelColor": "black",
+ "bend": 0,
+ "start": {
+ "type": "binding",
+ "boundShapeId": "shape:hEDiOWlzKD2nOvLKqdd9i",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "end": {
+ "type": "binding",
+ "boundShapeId": "shape:rUT6E9SRsBYNLkWFII3jO",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "arrowheadStart": "none",
+ "arrowheadEnd": "arrow",
"text": "",
- "align": "middle",
- "verticalAlign": "middle",
- "growY": 0,
- "url": ""
+ "font": "draw"
+ },
+ "id": "shape:thKgouy3HeuDHi9hLFUnp",
+ "typeName": "shape"
+ },
+ {
+ "x": 1336.0341380173643,
+ "y": -74.96283177838859,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "arrow",
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "aU",
+ "props": {
+ "dash": "solid",
+ "size": "m",
+ "fill": "none",
+ "color": "black",
+ "labelColor": "black",
+ "bend": 0,
+ "start": {
+ "type": "binding",
+ "boundShapeId": "shape:hEDiOWlzKD2nOvLKqdd9i",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "end": {
+ "type": "binding",
+ "boundShapeId": "shape:QiJ52f_v4T7VtnVpqsUqO",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "arrowheadStart": "none",
+ "arrowheadEnd": "arrow",
+ "text": "",
+ "font": "draw"
+ },
+ "id": "shape:tKw1jwLdYQcmeLhX-DgD2",
+ "typeName": "shape"
+ },
+ {
+ "x": 1539.071634783276,
+ "y": 19.377791990556943,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "arrow",
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "aV",
+ "props": {
+ "dash": "solid",
+ "size": "m",
+ "fill": "none",
+ "color": "black",
+ "labelColor": "black",
+ "bend": 0,
+ "start": {
+ "type": "binding",
+ "boundShapeId": "shape:QiJ52f_v4T7VtnVpqsUqO",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "end": {
+ "type": "binding",
+ "boundShapeId": "shape:rUT6E9SRsBYNLkWFII3jO",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "arrowheadStart": "none",
+ "arrowheadEnd": "arrow",
+ "text": "",
+ "font": "draw"
+ },
+ "id": "shape:BC8LhruGJN0Z8v_ZCdDCJ",
+ "typeName": "shape"
+ },
+ {
+ "x": 1627.259701017083,
+ "y": 2.970690250823395,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "arrow",
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "aTV",
+ "props": {
+ "dash": "solid",
+ "size": "m",
+ "fill": "none",
+ "color": "black",
+ "labelColor": "black",
+ "bend": 0,
+ "start": {
+ "type": "binding",
+ "boundShapeId": "shape:yH1gCS_6rdhqRaBXPOd1J",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "end": {
+ "type": "binding",
+ "boundShapeId": "shape:QiJ52f_v4T7VtnVpqsUqO",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "arrowheadStart": "none",
+ "arrowheadEnd": "arrow",
+ "text": "",
+ "font": "draw"
+ },
+ "id": "shape:XvblFSLorbShNA0YNHNoh",
+ "typeName": "shape"
+ },
+ {
+ "x": 1017.3418979537969,
+ "y": 353.7035346837056,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 296.20350392886166,
+ "h": 61.69791793823242,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "solid",
+ "size": "m",
+ "font": "draw",
+ "text": "IContextService",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "aW",
+ "id": "shape:HKq3Smgtz3mm2uT4KKFhe",
+ "typeName": "shape"
+ },
+ {
+ "x": 1602.6490953484877,
+ "y": 152.68527065611863,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "arrow",
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "aX",
+ "props": {
+ "dash": "solid",
+ "size": "m",
+ "fill": "none",
+ "color": "black",
+ "labelColor": "black",
+ "bend": 0,
+ "start": {
+ "type": "binding",
+ "boundShapeId": "shape:QiJ52f_v4T7VtnVpqsUqO",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "end": {
+ "type": "binding",
+ "boundShapeId": "shape:HKq3Smgtz3mm2uT4KKFhe",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "arrowheadStart": "none",
+ "arrowheadEnd": "arrow",
+ "text": "",
+ "font": "draw"
+ },
+ "id": "shape:vzIAbZZl1EbkMkn9ciZcw",
+ "typeName": "shape"
+ },
+ {
+ "x": 537.2148331028662,
+ "y": -127.26036882415372,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "arrow",
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "aIG",
+ "props": {
+ "dash": "solid",
+ "size": "m",
+ "fill": "none",
+ "color": "orange",
+ "labelColor": "black",
+ "bend": 0,
+ "start": {
+ "type": "binding",
+ "boundShapeId": "shape:Me3rwQ5rNV_KP4KrxngDx",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "end": {
+ "type": "binding",
+ "boundShapeId": "shape:-NlsVAEiZ8MB1C8baEWDY",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "arrowheadStart": "none",
+ "arrowheadEnd": "arrow",
+ "text": "",
+ "font": "draw"
+ },
+ "id": "shape:Mhbziu8iNkvwbZONDBQTR",
+ "typeName": "shape"
+ },
+ {
+ "x": 1351.4158604422464,
+ "y": -495.3941684202431,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 338.5441276978072,
+ "h": 61.69791793823242,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "dotted",
+ "size": "m",
+ "font": "draw",
+ "text": "SheetClipboardController",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "aY",
+ "id": "shape:yQXSjbvJz9Z8CfBG-JrZJ",
+ "typeName": "shape"
+ },
+ {
+ "x": 1501.3505073968429,
+ "y": -108.7707947993191,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 296.20350392886166,
+ "h": 61.69791793823242,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "solid",
+ "size": "m",
+ "font": "draw",
+ "text": "IClipboardService",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "aZ",
+ "id": "shape:OFFsLd87cLGoIv4eQOg5U",
+ "typeName": "shape"
+ },
+ {
+ "x": 1303.4401888512186,
+ "y": -371.28385934299615,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 296.20350392886166,
+ "h": 61.69791793823242,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "solid",
+ "size": "m",
+ "font": "draw",
+ "text": "SheetClipboardService",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "aa",
+ "id": "shape:mjCgRcXnBhT1oWOTRmbak",
+ "typeName": "shape"
+ },
+ {
+ "x": 1485.7487184226595,
+ "y": -373.36651939211754,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "arrow",
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "ab",
+ "props": {
+ "dash": "draw",
+ "size": "m",
+ "fill": "none",
+ "color": "black",
+ "labelColor": "black",
+ "bend": 0,
+ "start": {
+ "type": "binding",
+ "boundShapeId": "shape:mjCgRcXnBhT1oWOTRmbak",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "end": {
+ "type": "binding",
+ "boundShapeId": "shape:OFFsLd87cLGoIv4eQOg5U",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "arrowheadStart": "none",
+ "arrowheadEnd": "arrow",
+ "text": "",
+ "font": "draw"
+ },
+ "id": "shape:Ia1HLWQsOA-sok4XXqcRl",
+ "typeName": "shape"
+ },
+ {
+ "x": 1483.6977720289365,
+ "y": -524.1064791122642,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "arrow",
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "aaV",
+ "props": {
+ "dash": "draw",
+ "size": "m",
+ "fill": "none",
+ "color": "black",
+ "labelColor": "black",
+ "bend": 0,
+ "start": {
+ "type": "binding",
+ "boundShapeId": "shape:yQXSjbvJz9Z8CfBG-JrZJ",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "end": {
+ "type": "binding",
+ "boundShapeId": "shape:mjCgRcXnBhT1oWOTRmbak",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "arrowheadStart": "none",
+ "arrowheadEnd": "arrow",
+ "text": "",
+ "font": "draw"
+ },
+ "id": "shape:CKqX9SK8hAAnmFSZuHeSA",
+ "typeName": "shape"
+ },
+ {
+ "x": 1423.1967310543098,
+ "y": -340.5524097946603,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "arrow",
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "ac",
+ "props": {
+ "dash": "draw",
+ "size": "m",
+ "fill": "none",
+ "color": "black",
+ "labelColor": "black",
+ "bend": 0,
+ "start": {
+ "type": "binding",
+ "boundShapeId": "shape:mjCgRcXnBhT1oWOTRmbak",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "end": {
+ "type": "binding",
+ "boundShapeId": "shape:rUT6E9SRsBYNLkWFII3jO",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "arrowheadStart": "none",
+ "arrowheadEnd": "arrow",
+ "text": "",
+ "font": "draw"
+ },
+ "id": "shape:tqrwf5dXHfeGMRY_Zn70E",
+ "typeName": "shape"
+ },
+ {
+ "x": 927.1029792082777,
+ "y": -542.5327197083124,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 366.53427996002097,
+ "h": 61.69791793823242,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "dotted",
+ "size": "m",
+ "font": "draw",
+ "text": "SheetContextMenuController",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "ad",
+ "id": "shape:1eweSikBAIvc-bKx4-wNI",
+ "typeName": "shape"
+ },
+ {
+ "x": 1137.0984401568887,
+ "y": -480.0124459953606,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "arrow",
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "ae",
+ "props": {
+ "dash": "draw",
+ "size": "m",
+ "fill": "none",
+ "color": "black",
+ "labelColor": "black",
+ "bend": 0,
+ "start": {
+ "type": "binding",
+ "boundShapeId": "shape:1eweSikBAIvc-bKx4-wNI",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "end": {
+ "type": "binding",
+ "boundShapeId": "shape:ClOs3_Y3c_EKb_7noe1mM",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "arrowheadStart": "none",
+ "arrowheadEnd": "arrow",
+ "text": "",
+ "font": "draw"
+ },
+ "id": "shape:Zg4oTil5qhq47JxTuCo3g",
+ "typeName": "shape"
+ },
+ {
+ "x": 1647.7686016622529,
+ "y": 18.865055392126806,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "arrow",
+ "parentId": "page:rA3Bannhl7kKSPnxwH2KA",
+ "index": "aQV",
+ "props": {
+ "dash": "draw",
+ "size": "m",
+ "fill": "none",
+ "color": "black",
+ "labelColor": "black",
+ "bend": 0,
+ "start": {
+ "type": "binding",
+ "boundShapeId": "shape:ClOs3_Y3c_EKb_7noe1mM",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "end": {
+ "type": "binding",
+ "boundShapeId": "shape:yH1gCS_6rdhqRaBXPOd1J",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "arrowheadStart": "none",
+ "arrowheadEnd": "arrow",
+ "text": "",
+ "font": "draw"
+ },
+ "id": "shape:-0jBNiGJIfpx-_UFlcu0k",
+ "typeName": "shape"
+ },
+ {
+ "x": 358.0000915527344,
+ "y": 288.66668701171875,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 529.3333129882812,
+ "h": 61.69791793823242,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "draw",
+ "size": "m",
+ "font": "draw",
+ "text": "Views (Canvas / React)",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:-cEwd99JAPOR6yTk8m3P2",
+ "index": "a1",
+ "id": "shape:i17QDvYYVYIubOAoE_BLw",
+ "typeName": "shape"
+ },
+ {
+ "x": 356.666748046875,
+ "y": 378.5000305175781,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 532,
+ "h": 61.69791793823242,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "draw",
+ "size": "m",
+ "font": "draw",
+ "text": "Controllers",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:-cEwd99JAPOR6yTk8m3P2",
+ "index": "a2",
+ "id": "shape:Iu0zxGPwrhI9tcFt24ivG",
+ "typeName": "shape"
+ },
+ {
+ "x": 358.0000915527344,
+ "y": 468.3333740234375,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 529.3333129882812,
+ "h": 61.69791793823242,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "draw",
+ "size": "m",
+ "font": "draw",
+ "text": "Commands",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:-cEwd99JAPOR6yTk8m3P2",
+ "index": "a3",
+ "id": "shape:1a-6VsGmC_36LB-kPckCW",
+ "typeName": "shape"
+ },
+ {
+ "x": 358.0000915527344,
+ "y": 558.1667175292969,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 529.3333129882812,
+ "h": 61.69791793823242,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "draw",
+ "size": "m",
+ "font": "draw",
+ "text": "Services",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:-cEwd99JAPOR6yTk8m3P2",
+ "index": "a4",
+ "id": "shape:cxr5OXuSH091vj0L8S3tm",
+ "typeName": "shape"
+ },
+ {
+ "x": 358.0000915527344,
+ "y": 648.0000610351562,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 529.3333129882812,
+ "h": 61.69791793823242,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "draw",
+ "size": "m",
+ "font": "draw",
+ "text": "Models",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:-cEwd99JAPOR6yTk8m3P2",
+ "index": "a5",
+ "id": "shape:nl5EP80Tg5hlw3hsMU9il",
+ "typeName": "shape"
+ },
+ {
+ "x": -153.83187666367309,
+ "y": -250.13691115798645,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 620.1387680879751,
+ "h": 372.64913982290295,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "dotted",
+ "size": "m",
+ "font": "draw",
+ "text": "base-sheets",
+ "align": "end",
+ "verticalAlign": "start",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "index": "a2",
+ "id": "shape:N8FIg3Gbpgup1qxS38W-A",
+ "typeName": "shape"
+ },
+ {
+ "x": 486.56652181263587,
+ "y": -549.8126369166102,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 690.500248054534,
+ "h": 518.1111159688231,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "dotted",
+ "size": "m",
+ "font": "draw",
+ "text": "ui-sheets-plugin",
+ "align": "end",
+ "verticalAlign": "start",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "index": "a3",
+ "id": "shape:NVUGsR9N1u0E_1J2Hu5YB",
+ "typeName": "shape"
+ },
+ {
+ "x": 487.9519507656606,
+ "y": 6.274120954885802,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 690.500248054534,
+ "h": 310.2713596711716,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "dotted",
+ "size": "m",
+ "font": "draw",
+ "text": "base-ui",
+ "align": "end",
+ "verticalAlign": "start",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "index": "a4",
+ "id": "shape:wbayiuFanLXtmzCzJBb0A",
+ "typeName": "shape"
+ },
+ {
+ "x": 287.4768357589329,
+ "y": 613.375153670117,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 290.97559961757497,
+ "h": 61.69791793823242,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "draw",
+ "size": "m",
+ "font": "draw",
+ "text": "UniverSheet",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "index": "a5",
+ "id": "shape:Vu2De0JUiO2QzC0OXMhuj",
+ "typeName": "shape"
+ },
+ {
+ "x": 289.3242716934236,
+ "y": 705.748388087984,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 290.97559961757497,
+ "h": 61.69791793823242,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "draw",
+ "size": "m",
+ "font": "draw",
+ "text": "LifecycleService",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "index": "a6",
+ "id": "shape:k3Q7bdXDT5GgivjwnKH5X",
+ "typeName": "shape"
+ },
+ {
+ "x": 441.7400619692962,
+ "y": 645.7057476597822,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "arrow",
+ "parentId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "index": "a7",
+ "props": {
+ "dash": "draw",
+ "size": "m",
+ "fill": "none",
+ "color": "black",
+ "labelColor": "black",
+ "bend": 0,
+ "start": {
+ "type": "binding",
+ "boundShapeId": "shape:Vu2De0JUiO2QzC0OXMhuj",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "end": {
+ "type": "binding",
+ "boundShapeId": "shape:k3Q7bdXDT5GgivjwnKH5X",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "arrowheadStart": "none",
+ "arrowheadEnd": "arrow",
+ "text": "",
+ "font": "draw"
+ },
+ "id": "shape:a160wtQzRwAYtjnFKLsSt",
+ "typeName": "shape"
+ },
+ {
+ "x": -42.06457041123292,
+ "y": 10.178102907540165,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 264,
+ "h": 61.69791793823242,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "draw",
+ "size": "m",
+ "font": "draw",
+ "text": "services",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "index": "a9",
+ "id": "shape:nuDBry7eEScsSYf3s_IsD",
+ "typeName": "shape"
+ },
+ {
+ "x": -42.06457041123292,
+ "y": -185.65310839043178,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 264,
+ "h": 61.69791793823242,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "dotted",
+ "size": "m",
+ "font": "draw",
+ "text": "controllers",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "index": "aA",
+ "id": "shape:rr26Z37ByYKlB4XEErMh2",
+ "typeName": "shape"
+ },
+ {
+ "x": -42.06457041123292,
+ "y": -87.73750274144581,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 264,
+ "h": 61.69791793823242,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "draw",
+ "size": "m",
+ "font": "draw",
+ "text": "commands",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "index": "aB",
+ "id": "shape:1oD2-V6Jl89VZ161qToS6",
+ "typeName": "shape"
+ },
+ {
+ "x": 916.0765323291878,
+ "y": -147.78016431219663,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "arrow",
+ "parentId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "index": "a5G",
+ "props": {
+ "dash": "dotted",
+ "size": "m",
+ "fill": "none",
+ "color": "black",
+ "labelColor": "black",
+ "bend": 0,
+ "start": {
+ "type": "binding",
+ "boundShapeId": "shape:NVUGsR9N1u0E_1J2Hu5YB",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "end": {
+ "type": "binding",
+ "boundShapeId": "shape:Vu2De0JUiO2QzC0OXMhuj",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "arrowheadStart": "none",
+ "arrowheadEnd": "arrow",
+ "text": "",
+ "font": "draw"
+ },
+ "id": "shape:-Yc4DfTHDAgoEU_RBbFN2",
+ "typeName": "shape"
+ },
+ {
+ "x": 125.36177425894516,
+ "y": 805.5114508140098,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 593.9597442348293,
+ "h": 61.69791793823242,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "draw",
+ "size": "m",
+ "font": "draw",
+ "text": "Univer",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "index": "aC",
+ "id": "shape:pfeC03turGP5W1l7X_A5s",
+ "typeName": "shape"
+ },
+ {
+ "x": 520.2573154529928,
+ "y": 225.54603850835952,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 330.33499334479916,
+ "h": 61.69791793823242,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "draw",
+ "size": "m",
+ "font": "draw",
+ "text": "ClipboardInterfaceService",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "index": "aD",
+ "id": "shape:FQIndZHm4tFmKNh6FqAvy",
+ "typeName": "shape"
+ },
+ {
+ "x": 828.3220991730377,
+ "y": 140.56263239865132,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 330.33499334479916,
+ "h": 61.69791793823242,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "draw",
+ "size": "m",
+ "font": "draw",
+ "text": "IMenuService",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "index": "aE",
+ "id": "shape:lztDv7mHKDlakWAkobo9T",
+ "typeName": "shape"
+ },
+ {
+ "x": 508.2488550235091,
+ "y": 54.65555060679594,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 330.33499334479916,
+ "h": 61.69791793823242,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "draw",
+ "size": "m",
+ "font": "draw",
+ "text": "IShortcutService",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "index": "aF",
+ "id": "shape:dPOVYy2dmGjE5qiJHQ60Z",
+ "typeName": "shape"
+ },
+ {
+ "x": 816.7755611548241,
+ "y": -450.62589450679496,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 330.33499334479916,
+ "h": 61.69791793823242,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "dotted",
+ "size": "m",
+ "font": "draw",
+ "text": "SheetClipboardController",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "index": "aG",
+ "id": "shape:mARJznt7ME8BSnZ4oS6rS",
+ "typeName": "shape"
+ },
+ {
+ "x": 820.9321862946827,
+ "y": -124.54848357017187,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 330.33499334479916,
+ "h": 61.69791793823242,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "draw",
+ "size": "m",
+ "font": "draw",
+ "text": "SheetClipboardService",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "index": "aH",
+ "id": "shape:JhWo5QOlJB5wXCtS_QtoQ",
+ "typeName": "shape"
+ },
+ {
+ "x": 543.8127367516702,
+ "y": -326.8458052090573,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 330.33499334479916,
+ "h": 61.69791793823242,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "dotted",
+ "size": "m",
+ "font": "draw",
+ "text": "SheetShortcutController",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "index": "aI",
+ "id": "shape:sdEHfB5bybF__dPnEkzEJ",
+ "typeName": "shape"
+ },
+ {
+ "x": 676.8299000091165,
+ "y": -290.95864806032176,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "arrow",
+ "parentId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "index": "aJ",
+ "props": {
+ "dash": "draw",
+ "size": "m",
+ "fill": "none",
+ "color": "black",
+ "labelColor": "black",
+ "bend": 0,
+ "start": {
+ "type": "binding",
+ "boundShapeId": "shape:sdEHfB5bybF__dPnEkzEJ",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "end": {
+ "type": "binding",
+ "boundShapeId": "shape:1oD2-V6Jl89VZ161qToS6",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "arrowheadStart": "none",
+ "arrowheadEnd": "arrow",
+ "text": "",
+ "font": "draw"
+ },
+ "id": "shape:YJBinYJkE_t7KmPLre3K3",
+ "typeName": "shape"
+ },
+ {
+ "x": 684.2197283172752,
+ "y": -288.1874518734877,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "arrow",
+ "parentId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "index": "aK",
+ "props": {
+ "dash": "draw",
+ "size": "m",
+ "fill": "none",
+ "color": "black",
+ "labelColor": "black",
+ "bend": 0,
+ "start": {
+ "type": "binding",
+ "boundShapeId": "shape:sdEHfB5bybF__dPnEkzEJ",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "end": {
+ "type": "binding",
+ "boundShapeId": "shape:dPOVYy2dmGjE5qiJHQ60Z",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "arrowheadStart": "none",
+ "arrowheadEnd": "arrow",
+ "text": "",
+ "font": "draw"
+ },
+ "id": "shape:W-_n5fUe1k7DemvrKn5lu",
+ "typeName": "shape"
+ },
+ {
+ "x": 948.407126318853,
+ "y": -193.9667815211301,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "arrow",
+ "parentId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "index": "aHV",
+ "props": {
+ "dash": "draw",
+ "size": "m",
+ "fill": "none",
+ "color": "black",
+ "labelColor": "black",
+ "bend": 0,
+ "start": {
+ "type": "binding",
+ "boundShapeId": "shape:mARJznt7ME8BSnZ4oS6rS",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "end": {
+ "type": "binding",
+ "boundShapeId": "shape:JhWo5QOlJB5wXCtS_QtoQ",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "arrowheadStart": "none",
+ "arrowheadEnd": "arrow",
+ "text": "",
+ "font": "draw"
+ },
+ "id": "shape:m3O32kbqWafDh8hivJbqo",
+ "typeName": "shape"
+ },
+ {
+ "x": 956.7207994495514,
+ "y": -108.05969972927471,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "arrow",
+ "parentId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "index": "aHG",
+ "props": {
+ "dash": "draw",
+ "size": "m",
+ "fill": "none",
+ "color": "black",
+ "labelColor": "black",
+ "bend": 0,
+ "start": {
+ "type": "binding",
+ "boundShapeId": "shape:JhWo5QOlJB5wXCtS_QtoQ",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "end": {
+ "type": "binding",
+ "boundShapeId": "shape:FQIndZHm4tFmKNh6FqAvy",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "arrowheadStart": "none",
+ "arrowheadEnd": "arrow",
+ "text": "",
+ "font": "draw"
+ },
+ "id": "shape:F3pmNnen14drKFGwf015H",
+ "typeName": "shape"
+ },
+ {
+ "x": 574.2956410962565,
+ "y": -209.5318051096839,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 330.33499334479916,
+ "h": 61.69791793823242,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "draw",
+ "size": "m",
+ "font": "draw",
+ "text": "SheetBarService",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "index": "aL",
+ "id": "shape:I1JNA5PIKV0VGnxXE-jNr",
+ "typeName": "shape"
+ },
+ {
+ "x": 132.28976472603017,
+ "y": 508.0697831406194,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 593.9597442348293,
+ "h": 61.69791793823242,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "draw",
+ "size": "m",
+ "font": "draw",
+ "text": "SheetInterceptorService",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "index": "aM",
+ "id": "shape:PdoyVjmSF_Vlk1JZMuF4D",
+ "typeName": "shape"
+ },
+ {
+ "x": 88.3333740234375,
+ "y": 445,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 674.6666259765625,
+ "h": 453.0060130204409,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "dotted",
+ "size": "m",
+ "font": "draw",
+ "text": "core",
+ "align": "end",
+ "verticalAlign": "start",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "index": "a1",
+ "id": "shape:bWbQYnhWzna0ekjOxvSER",
+ "typeName": "shape"
+ },
+ {
+ "x": 333.4474105185332,
+ "y": 90.9036501332082,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "arrow",
+ "parentId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "index": "aMV",
+ "props": {
+ "dash": "dotted",
+ "size": "m",
+ "fill": "none",
+ "color": "black",
+ "labelColor": "black",
+ "bend": 0,
+ "start": {
+ "type": "binding",
+ "boundShapeId": "shape:1oD2-V6Jl89VZ161qToS6",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "end": {
+ "type": "binding",
+ "boundShapeId": "shape:PdoyVjmSF_Vlk1JZMuF4D",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "arrowheadStart": "none",
+ "arrowheadEnd": "arrow",
+ "text": "",
+ "font": "draw"
+ },
+ "id": "shape:R9tAQmFG5qIZZZ8y43YmA",
+ "typeName": "shape"
+ },
+ {
+ "x": -211.21819450880565,
+ "y": 204.59883569615295,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "type": "geo",
+ "props": {
+ "w": 620.1387680879751,
+ "h": 194.6068471524382,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "dotted",
+ "size": "m",
+ "font": "draw",
+ "text": "base-render",
+ "align": "end",
+ "verticalAlign": "start",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "index": "a8",
+ "id": "shape:NaqygFApqinm8hmSMvVta",
+ "typeName": "shape"
+ },
+ {
+ "x": -108.0026891681008,
+ "y": 287.5368564086507,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "id": "shape:sZmQU3QOt5RouWnmmJyP8",
+ "type": "geo",
+ "props": {
+ "w": 396.9228743194003,
+ "h": 61.6953125,
+ "geo": "rectangle",
+ "color": "black",
+ "labelColor": "black",
+ "fill": "none",
+ "dash": "draw",
+ "size": "m",
+ "font": "draw",
+ "text": "RenderManagerService",
+ "align": "middle",
+ "verticalAlign": "middle",
+ "growY": 0,
+ "url": ""
+ },
+ "parentId": "page:gTFhdE16Uc_KHufN8Qq0O",
+ "index": "aN",
+ "typeName": "shape"
+ },
+ {
+ "x": 620.5950491489707,
+ "y": 577.9347036676241,
+ "rotation": 0,
+ "isLocked": false,
+ "opacity": 1,
+ "meta": {},
+ "id": "shape:Bik1MT5_Ht6zhEHfNZTRU",
+ "type": "arrow",
+ "parentId": "page:-cEwd99JAPOR6yTk8m3P2",
+ "index": "a4V",
+ "props": {
+ "dash": "dotted",
+ "size": "m",
+ "fill": "none",
+ "color": "black",
+ "labelColor": "black",
+ "bend": 0,
+ "start": {
+ "type": "binding",
+ "boundShapeId": "shape:cxr5OXuSH091vj0L8S3tm",
+ "normalizedAnchor": {
+ "x": 0.5,
+ "y": 0.5
+ },
+ "isExact": false
+ },
+ "end": {
+ "type": "point",
+ "x": 5.999886059217488,
+ "y": 44.24915968672883
+ },
+ "arrowheadStart": "none",
+ "arrowheadEnd": "arrow",
+ "text": "",
+ "font": "draw"
},
- "parentId": "page:xeHrQfrwHqlXdVIW8hZ9M",
- "index": "a6",
"typeName": "shape"
}
]
diff --git a/docs/graphs.tldr:Zone.Identifier b/docs/graphs.tldr:Zone.Identifier
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/docs/img/layers.png b/docs/img/layers.png
new file mode 100644
index 0000000000..de10e0e785
Binary files /dev/null and b/docs/img/layers.png differ
diff --git a/docs/img/sheet-architecture.png b/docs/img/sheet-architecture.png
new file mode 100644
index 0000000000..26a9daef99
Binary files /dev/null and b/docs/img/sheet-architecture.png differ
diff --git a/docs/index.md b/docs/index.md
new file mode 100644
index 0000000000..115fd3e733
--- /dev/null
+++ b/docs/index.md
@@ -0,0 +1,4 @@
+# Univer Documentation
+
+Sorry for the inconvenience, the documentation is still under construction. If you prefer to read the documentation in Chinese, please go to the zh/ folder.
+
diff --git a/docs/zh/achitecture.md b/docs/zh/achitecture.md
new file mode 100644
index 0000000000..4cb929b478
--- /dev/null
+++ b/docs/zh/achitecture.md
@@ -0,0 +1,300 @@
+# Architecture Notes 架构概要
+
+## Univer 架构设计的核心需求
+
+这些设计的需求部分来自于 Univer 的产品规划,部分来自于团队成员参与别的项目研发所得到的 learning
+
+1. **100% 拥抱 web 技术栈**。Univer 需要运行在相当多的环境里,要满足快速的迭代需求并让客户、ISV、社区有二次开发的能力,能同时满足这些需求的只有以 web 技术为核心的技术栈。
+2. **插件化和高度可扩展性**。Univer 的各个模块应当尽可能地以插件的方式存在,尽可能解耦插件之间的耦合关系,做到降低适配不同的用户需求、不同的运行环境的成本,同时降低二次开发的门槛。
+3. **层次结构和单向依赖**。Univer 的模块之间不允许循环依赖,这使得我们可以按照不同环境的需要加载所需的层次和模块。
+4. **面向多平台做设计**。解耦代码和具体运行环境的耦合关系,方便迁移到不同的运行环境当中。
+5. **面向高可测试性做设计**。各个模块直接尽可能基于接口建立依赖关系,方便独立测试。
+
+## 插件和依赖注入
+
+<img width="962" alt="" src="https://github.com/dream-num/univer/assets/12122021/2102f948-4ede-49b2-ac7d-45adf943a5b5">
+
+### 插件
+
+Univer 的模块需按照 **业务类型(Sheet / Doc / Slide)、关注面(配置管理 / UI / 快捷键 / canvas 渲染)、功能(Sheet 基本操作 / Sheet 条件格式 / Sheet 筛选、运行环境(桌面端 / 移动端 / Node.js 等)** 等因素综合考虑,拆分成各个插件(plugin),组合成为一个 Univer 应用。
+
+基于插件的设计能够使得 Univer 能够满足多样的运行环境(PC browser / Node / 移动端)、不同的功能需求、不同的配置要求、二次开发、三方插件等需要。
+
+典型的插件及扩展能力可以参考文档 [Plugin 扩展能力](https://github.com/dream-num/univer/wiki/%5BWIP%5D-Plugin-%E6%89%A9%E5%B1%95%E8%83%BD%E5%8A%9B)。
+
+### 依赖注入
+
+插件内部可以根据实际需要将代码划分为下面 “层次结构” 一节中介绍的各个层次的模块,这些模块中的 service 和 controller 需要加入 Univer 的依赖注入系统,这样 Univer 就能自动解析这些模块之间的依赖关系并实例化这些模块。依赖注入系统的文档参考 [redi - redi](https://redi.wendell.fun/zh-CN)。
+
+### 插件的公有私有模块
+
+可以通过在每个插件的 index.ts 文件中导出这些模块的依赖注入标识符 identifier。如果一个模块的 identifier 被导出,那么其它的插件就可以 import 这些模块的 identifier,从而建立对这些模块的依赖关系,这些模块也就成为前一个插件的公有模块,反之就是私有模块。如果你熟悉 Angular 的话,很容易发现这跟 NgModule 的概念非常相似,只不过我们不用申明 exports 字段,而是用 es module 的 export 来区分公有模块。
+
+### 插件生命周期
+
+插件有如下四个生命周期
+
+```ts
+export const enum LifecycleStages {
+ Starting,
+ Ready,
+ Rendered,
+ Steady,
+}
+```
+
+* `Starting` plugin 挂载到 Univer 实例上的第一个生命周期,此时 Univer 业务实例尚未被创建。Plugin 在此生命周期中应该将自己模块加入到依赖注入系统当中。不建议在此生命周期之外初始化插件内部模块。
+* `Ready` Univer 的第一个业务实例已经创建,plugin 可以在此生命周期做大部分初始化工作。
+* `Rendered` 第一次渲染已经完成,plugin 可以在此生命周期进行需要依赖 DOM 的初始化工作。
+* `Steady` 在 `Rendered` 一段时间之后触发,plugin 可以在此生命周期进行非首屏必须得工作,以提升加载性能。
+
+对应的,Plugin 类型上有四个生命周期勾子
+
+```ts
+/**
+ * Plug-in base class, all plug-ins must inherit from this base class. Provide basic methods.
+ */
+export abstract class Plugin {
+ onStarting(_injector: Injector): void {}
+
+ onReady(): void {}
+
+ onRendered(): void {}
+
+ onSteady(): void {}
+}
+```
+
+除了这四个生命周期勾子之外,插件内部的模块可以使用 `OnLifecycle` 装饰器声明自己需要在特定的生命周期阶段初始化,例如
+
+```ts
+@OnLifecycle(LifecycleStages.Rendered, IMEInputController)
+export class IMEInputController extends Disposable {}
+```
+
+另外也可以通过注入 `LifecycleService` 来监听生命周期事件。
+
+```ts
+export class YourService {
+ constructor(
+ @Inject(LifecycleService) private _lifecycleService: LifecycleService,
+ ) {
+ super();
+
+ this._lifecycleService.lifecycle$.subscribe((stage) => this._initModulesOnStage(stage));
+ }
+}
+```
+
+### 划分插件的依据
+
+插件的划分主要的依据是:在某些场景下,一些模块是否需要不需要加载。例如在 Node.js 端运行时,可能不需要加载 UI 相关的模块,这样就可以将 UI 相关的模块放在一个插件中,然后在 Node.js 端不加载这个插件;又例如想让用户自行选择是否加载一个功能,那么就可以将这个功能放在一个插件中。
+
+## 层次结构
+
+![image](../img/layers.png)
+
+插件内部的模块基本应当归属于以下层次:
+
+* View 处理渲染和交互,包括 canvas 渲染和 React 组件
+* Controller 封装业务逻辑(特别是功能逻辑),派发 Command 等
+* Command 通过命令模式执行逻辑,修改下面 Service / Model 等层次的状态或数据
+* Service 按照关注点封装功能给上层模块使用,存储应用内部状态,操作底层数据等等
+* Model 存储业务数据
+
+层次之间需要保持单向依赖关系,除部分 Controller 作为 MVVM 中的 view-model 之外可能持有对 UI 层对象的引用,其他层次禁止引用上层模块的代码。
+
+注意:插件的代码并非只能属于一个层次,例如一个插件可能同时提供 View 和 Controller。
+
+## 命令系统 Command
+
+对应用状态和数据的变更需要通过命令系统执行。Univer core 中提供了命令服务,其依赖注入 token 为 `ICommandService`。上层模块可以将业务逻辑封装在 Command 里,并通过命令系统获取到其他 services 从而执行业务逻辑。基于命令系统,Univer 可以通过简单的方式实现协同编辑、宏录制、撤销重做、跟随浏览等能力。
+
+plugin 可以通过 `ICommandService` 提供的 `registerCommand` 接口注册命令,并通过 `executeCommand` 接口执行命令:
+
+```ts
+export interface ICommand<P extends object = object, R = boolean> {
+ /**
+ * ${businessName}.${type}.${name}
+ */
+ readonly id: string;
+ readonly type: CommandType;
+
+ handler(accessor: IAccessor, params?: P): Promise<R>;
+
+ /** When this command is unregistered, this function would be called. */
+ onDispose?: () => void;
+}
+
+export interface ICommandService {
+ registerCommand(command: ICommand): IDisposable;
+
+ executeCommand<P extends object = object, R = boolean>(
+ id: string,
+ params?: P,
+ options?: IExecutionOptions
+ ): Promise<R> | R;
+}
+```
+
+`Command` 一共有三种类型
+
+```ts
+export const enum CommandType {
+ /** Command could generate some operations or mutations. */
+ COMMAND = 0,
+ /** An operation that do not require conflict resolve. */
+ OPERATION = 1,
+ /** An operation that need to be resolved before applied on peer client. */
+ MUTATION = 2,
+}
+```
+
+* `COMMAND` 负责根据特定的业务逻辑创建、编排和执行 `MUTATION` 或 `OPERATION`,例如一个 **删除行 `COMMAND`** 会生成一个 **删除行 `MUTATION`** 和用于 undo 的一个 **插入行 `MUTATION`** 及一个 **设置单元格内容 `MUTATION`**
+ * `COMMAND` 是业务逻辑的主要承载者,如果对于一个 _用户操作行为_ 需要根据应用的状态来触发不同的 _底层行为_ —— 例如 _用户点击加粗文字按钮_ 时 需要根据当前选区范围来决定 _加粗操作的生效范围_ —— 相应的判断应该由 `COMMAND` 完成
+ * 可以派发其他 `COMMAND` `OPERATION` `MUTATION`
+* `MUTATION` 是对落盘数据所做的变更,涉及协同编辑的冲突处理,例如插入行列,修改单元格内容,修改筛选范围等等操作
+ * 不可以再派发其他任何命令
+* `OPERATION` 是对不落盘数据(或称应用状态)所做的变更,不涉及冲突处理,例如修改滚动位置、修改侧边栏状态等等
+ * 不可以再派发其他任何命令
+
+### 协同编辑
+
+`ICommandService` 提供事件监听接口,插件可监听哪些命令被执行了,以及执行的参数是什么。实际上,命令执行后会派发这样一个事件:
+
+```ts
+/**
+ * The command info, only a command id and responsible params
+ */
+export interface ICommandInfo<T extends object = object> {
+ id: string;
+
+ type: CommandType;
+
+ /**
+ * Args should be serializable.
+ */
+ params?: T;
+}
+```
+
+对于协同编辑而言 collaboration-plugin 可以监听所有 `MUTATION` 类型命令,并通过协同编辑算法将 `MUTATION` 发送到其他协同端,再通过 `ICommandService` 重新执行这些 `MUTATION`。
+
+### 操作录制和回放
+
+通过监听 `OPERATION` 和 `MUTATION` 的执行,插件可以将用户的操作行为记录下来,并且可以在此基础上实现:
+
+* 协同光标
+* 类似于飞书视频的 Magic Share
+* 宏录制
+* AppScript
+
+等等。
+
+## 交互
+
+Univer 提供了一些机制简化 UI 的开发,降低菜单、快捷键等在不同的设备以及交互组件内的工作量。功能插件无需关心 UI 上的细节,只需要专注于业务逻辑即可。
+
+### ShortcutService
+
+通过向 `IShortcutService` 注入 `IShortcutItem` 可以注册一个快捷键,并且配置它的键位、优先级、触发条件、执行的 Command 等。
+
+```ts
+export interface IShortcutItem<P extends object = object> {
+ /** This should reuse the corresponding command's id. */
+ id: string;
+ description?: string;
+
+ priority?: number;
+ /** A callback that will be triggered to examine if the shortcut should be invoked. */
+ preconditions?: (contextService: IContextService) => boolean;
+
+ /** A command can be bound to several bindings, with different static parameters perhaps. */
+ binding: number;
+ mac?: number;
+ win?: number;
+ linux?: number;
+
+ /** Static parameters of this shortcut. Would be send to `CommandService.executeCommand`. */
+ staticParameters?: P;
+}
+
+export interface IShortcutService {
+ registerShortcut(shortcut: IShortcutItem): IDisposable;
+
+ getCommandShortcut(id: string): string | null;
+}
+```
+
+### MenuService
+
+通过向 `IMenuService` 注册 `IMenuItem` 可以配置一个菜单项。
+
+```ts
+interface IMenuItemBase<V> {
+ /** ID of the menu item. Normally it should be the same as the ID of the command that it would invoke. */
+ id: string;
+ title: string;
+ description?: string;
+ icon?: string;
+ tooltip?: string;
+
+ /** In what menu should the item display. */
+ positions: OneOrMany<MenuPosition | string>;
+
+ /** @deprecated this type seems unnecessary */
+ type: MenuItemType;
+ /** Determines how the label of the selector should display. */
+ display?: DisplayTypes;
+ /**
+ * Custom label component id.
+ * */
+ label?:
+ | string
+ | {
+ name: string;
+ props?: Record<string, string | number>;
+ };
+
+ hidden$?: Observable<boolean>;
+ disabled$?: Observable<boolean>;
+
+ /** On observable value that should emit the value of the corresponding selection component. */
+ value$?: Observable<V>;
+ onClose?: () => void;
+}
+
+export interface IMenuService {
+ menuChanged$: Observable<void>;
+
+ addMenuItem(item: IMenuItem): IDisposable;
+
+ /** Get menu items for display at a given position or a submenu. */
+ getMenuItems(position: MenuPosition | string): Array<IDisplayMenuItem<IMenuItem>>;
+ getMenuItem(id: string): IMenuItem | null;
+}
+```
+
+## 编写可维护和可扩展的代码一些基本原则
+
+* **注意 接口 的设计的概念完整性和简洁**
+ * 模块的接口尽可能小,最理想的情况是在小的接口后面封装大量复杂度
+ * 不要将外部传入的依赖再导出一次
+ * 透传是个不好的信号,说明接口可能不正确
+ * 变量的命名要保持一致
+ * 尽可能地使用接口来定义模块之间的依赖关系,这样可以使得模块之间的耦合度降低,方便测试和扩展
+* **注意通过 反转 来确定可扩展的耦合关系**
+ * 通过事件、回调来实现反转(依赖的方向和代码控制流的方向的反转)
+ * 避免 know-it-all 的模块,避免一个模块知道大量的业务细节
+* **注意代码的 可读性**
+ * 可读性不是格式化
+ * 可读性是代码意图的表达,一眼就能让别人明白你的代码想要做什么的代码就是好代码
+ * 通过名字来表达意图
+ * 通过合理的命名来表达意图
+ * 通过抽离函数来表达意图
+ * 通过抽离变量来表达意图(magic number)
+ * 通过空行来表达意图,比如处理函数参数的代码之间不空行,参数处理代码和主体逻辑之间空一行,意图由代码之间的距离所体现
+ * 通过注释来表达意图
+* **没有银弹**
+ * 没有按部就班的步骤能够保证代码一定是好理解可维护的
+ * code review ,见到看不懂的代码及时清理和增加注释,甚至是单元测试
diff --git a/docs/zh/facade.md b/docs/zh/facade.md
new file mode 100644
index 0000000000..9262d201ef
--- /dev/null
+++ b/docs/zh/facade.md
@@ -0,0 +1,108 @@
+# Facade
+
+Facade 的意图是作为
+
+1. 用户使用 Univer 的简单接口。如果用户没有自定义开发的需要而只是简单地使用一个表格组件,那么可以直接使用 Facade 提供的接口。
+2. 用户使用 Apps Scripts 的接口。
+
+Facade 和 Microsoft Excel 的 Office Scripts 以及 Google 的 Apps Scripts 有着相似的设计思路。它们都是为了简化用户的开发流程,让用户可以直接使用简单的接口来完成复杂的操作。中国国内的部分产品也提供了基于 API 的访问,例如钉钉文档的表格。
+
+### Microsoft Excel 的 Office Scripts
+
+[官方文档链接](https://learn.microsoft.com/en-us/office/dev/scripts/)
+
+语法上使用了现代 TypeScript 语法,并且支持 async await 等语言特性。
+
+```ts
+function main(workbook: ExcelScript.Workbook) {
+ // Add a new worksheet to store our email table
+ let emailsSheet = workbook.addWorksheet("Emails");
+
+ // Add data and create a table
+ emailsSheet.getRange("A1:D1").setValues([
+ ["Date", "Day of the week", "Email address", "Subject"]
+ ]);
+ let newTable = workbook.addTable(emailsSheet.getRange("A1:D2"), true);
+ newTable.setName("EmailTable");
+
+ // Add a new PivotTable to a new worksheet
+ let pivotWorksheet = workbook.addWorksheet("Subjects");
+ let newPivotTable = workbook.addPivotTable("Pivot", "EmailTable", pivotWorksheet.getRange("A3:C20"));
+
+ // Setup the pivot hierarchies
+ newPivotTable.addRowHierarchy(newPivotTable.getHierarchy("Day of the week"));
+ newPivotTable.addRowHierarchy(newPivotTable.getHierarchy("Email address"));
+ newPivotTable.addDataHierarchy(newPivotTable.getHierarchy("Subject"));
+}
+```
+
+另外值得注意的是 Excel 还有另外一套 API 叫做 office-js,这套 API 的语法较为复杂,官方文档声明 office-js 面向开发者而 Office Scripts 面向一般用户。
+
+据了解 office-js 是 Office Scripts 的底层,Office Scripts 对需要异步转同步的地方都做了一次类似于添加 await 语法的预编译。
+
+### 钉钉表格的 API
+
+[官方文档链接](https://open.dingtalk.com/document/orgapp/overview-of-dingtalk-scripts)
+
+钉钉的语法设计和 Office Scripts 非常类似,除了它不用从一个 main 函数开始执行而是直接自顶向下执行脚本。
+
+### Google 的 Apps Scripts
+
+[官方文档](https://developers.google.com/apps-script/reference/spreadsheet?hl=zh-cn)
+
+Apps Scripts 不仅可以操作表格,还可以操作 Google 的其他产品,例如 Google Docs,Google Drive 等等。它的语法和 JavaScript 非常类似,但是它的语法不支持 async await 等语言特性。实际上 Apps Scripts 的代码是同步阻塞执行的,并且 Apps Scripts 并非运行在浏览器中,而是运行在 Google 的服务器上,猜想应该是 hack 了解释器或者别的什么方式控制了脚本的执行过程。
+
+```js
+function createAndSendDocument() {
+ try {
+ // Create a new Google Doc named 'Hello, world!'
+ const doc = DocumentApp.create('Hello, world!');
+
+ // Access the body of the document, then add a paragraph.
+ doc.getBody().appendParagraph('This document was created by Google Apps Script.');
+
+ // Get the URL of the document.
+ const url = doc.getUrl();
+
+ // Get the email address of the active user - that's you.
+ const email = Session.getActiveUser().getEmail();
+
+ // Get the name of the document to use as an email subject line.
+ const subject = doc.getName();
+
+ // Append a new string to the "url" variable to use as an email body.
+ const body = 'Link to your doc: ' + url;
+
+ // Send yourself an email with a link to the document.
+ GmailApp.sendEmail(email, subject, body);
+ } catch (err) {
+ // TODO (developer) - Handle exception
+ console.log('Failed with error %s', err.message);
+ }
+}
+```
+
+## 可选的方案以及优缺点分析
+
+我们 Facade 的 API 时受到以下条件的约束(或者不?)
+
+1. 为了和 Apps Scripts 的语法保持一致(一定吗?),API 看起来要像是同步执行的
+2. 必然有一些操作行为是异步的,例如读取文件,网络请求等等
+
+所以我们需要设计一个机制,用户编写它时,看似是同步执行的,但是实际上是异步执行的。从这种思路出发有以下方案
+
+1. 预编译。在用户编写代码之后,我们对代码进行预编译,将异步的操作转换为同步的操作(补充 async await 操作符)。
+ 1. 优点是:实现起来可能较为简单
+ 2. 缺点是:Facade 作为简单 API 和 Scripts 语法时语法不一致,并且可能无法给 Scripts 用户正确的类型信息
+2. 同步阻塞式调用。在 Facade 内将所有需要用到异步语法 API 的地方全部改为一个同步的 XHRHttpRequest 调用,Facade 本身在 web worker 内运行并向主线程请求操作(通过 service worker 实现)。
+ 1. 优点是:可以实现真正的同步 API,而且可以给 Scripts 用户正确的类型信息
+ 2. 缺点是:只能跑在 web worker 里,无法作为简单 API 使用;复杂度很高
+3. 自己控制脚本执行过程。暂时还没有明确的方案。
+ 1. 优点是:可以实现真正的同步 API,而且可以给 Scripts 用户正确的类型信息
+ 2. 缺点是:只能运行在服务器环境,无法作为简单 API 使用;复杂度极高
+
+如果我们愿意放弃和 Apps Scripts 语法保持一致的前提,引入 async await 语法,那么我们可以使用以下方案
+
+1. 引入 async await 语法。
+ 1. 优点是:Facade 作为简单 API 和 Scripts 语法效果完全一致;Scripts 用户可以得到完善的代码编辑提示;实现非常简单
+ 2. 需要引导用户使用 async await 语法;生成 Scripts 的 AI 模型需要额外的工作(现在有这样的模型吗?)
diff --git a/docs/zh/index.md b/docs/zh/index.md
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/docs/zh/plugins.md b/docs/zh/plugins.md
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/docs/zh/sheet-architecture.md b/docs/zh/sheet-architecture.md
new file mode 100644
index 0000000000..5418bedf26
--- /dev/null
+++ b/docs/zh/sheet-architecture.md
@@ -0,0 +1,62 @@
+# Univer Sheet Architecture - Univer Sheet 架构
+
+如同在[架构概要](./achitecture.md) 中所提到的,Univer 以插件化的方式来实现各种功能,Univer Sheet 业务逻辑的实现也是通过插件来完成的,本文档将会介绍 Univer Sheet 的架构。
+
+---
+
+## 主要插件以及职责
+
+Univer Sheet 的插件架构如下图所示:
+
+![Univer Sheet 插件架构](../img/sheet-architecture.png)
+
+*上图并未绘制出全部的模块,仅做示意*。
+
+Univer Sheet 的架构主要由以下几个部分组成:
+
+### core
+
+`core` 跟 sheet 相关的模块主要是基数据结构和一个 `SheetInterceptorService`:
+
+* UniverSheet 类型,它负责管理 Sheet 相关的 plugin
+* Workbook 类型,它是一个工作簿,包含多个 Worksheet,存储工作簿的元数据
+* Worksheet 类型,它是一个工作表,存储每个子表的数据
+* `SheetInterceptorService`,允许其他插件干预从 Worksheet 上取值的行为
+
+#### SheetInterceptorService
+
+一个较为特殊的服务,它允许上层业务修改从 Worksheet 中获取单元格数据、获取行列隐藏信息等的操作的结果,以及在特定的 command 执行时补充 mutation 或者 operation。这个服务的主要目的是为了实现一些特殊的功能,例如:
+
+1. sheet 公式
+2. sheet 条件格式
+3. sheet 数据验证
+4. sheet 数据透视表
+
+等等
+
+### base-sheets
+
+承载 sheet 的主要(基础)业务逻辑和渲染:
+
+* 更改 sheet 数据的 commands / mutations
+* 应用程序的内部状态
+* 为高级功能提供内部扩展机制
+* canvas 渲染
+* 更改 canvas 区域状态的 operations
+
+或许 render 部分也应该单独拆解出来,但是目前还没有这个需求。
+
+### ui-plugin-sheets
+
+ui-plugin-sheets 提供了 sheet 的 UI,包括:
+
+* sheet 快捷键
+* 复制粘贴逻辑
+* sheet 的 UI 组件
+* 单元格编辑器
+
+后面如果有跨运行环境的 UI,则通过进一步按照平台拆分 plugin,或者通过二级入口点来解决。
+
+### 其他功能
+
+后续的高级功能
\ No newline at end of file
diff --git a/packages/base-ui/src/base-ui-plugin.ts b/packages/base-ui/src/base-ui-plugin.ts
index 210bb203e7..4b42f53008 100644
--- a/packages/base-ui/src/base-ui-plugin.ts
+++ b/packages/base-ui/src/base-ui-plugin.ts
@@ -26,29 +26,28 @@ const DEFAULT_SLIDE_PLUGIN_DATA = {};
* UI plugin provides basic interaction with users. Including workbench (menus, UI parts, notifications etc.), copy paste, shortcut.
*/
export class UIPlugin extends Plugin {
- protected override _injector: Injector;
-
static override type = PluginType.Univer;
private _config: IUIPluginConfig;
- constructor(config: Partial<IUIPluginConfig> = {}, @Inject(Injector) injector: Injector) {
+ constructor(
+ config: Partial<IUIPluginConfig> = {},
+ @Inject(Injector) protected readonly _injector: Injector
+ ) {
super(PLUGIN_NAMES.BASE_UI);
this._config = Object.assign(DEFAULT_SLIDE_PLUGIN_DATA, config);
- this._injector = injector;
}
- override onStarting(): void {
- this._initDependencies();
- this._initModules();
+ override onStarting(_injector: Injector): void {
+ this._initDependencies(_injector);
}
override onReady(): void {
this._initUI();
}
- private _initDependencies(): void {
+ private _initDependencies(injector: Injector): void {
const dependencies: Dependency[] = [
// legacy managers - deprecated
[ComponentManager],
@@ -68,11 +67,7 @@ export class UIPlugin extends Plugin {
[IUIController, { useClass: DesktopUIController }],
];
- dependencies.forEach((dependency) => this._injector.add(dependency));
- }
-
- private _initModules(): void {
- this._injector.get(SharedController).initialize();
+ dependencies.forEach((dependency) => injector.add(dependency));
}
private _initUI(): void {
diff --git a/packages/base-ui/src/controllers/shared-shortcut.controller.ts b/packages/base-ui/src/controllers/shared-shortcut.controller.ts
index 70ff3bd93d..fcaa781a1c 100644
--- a/packages/base-ui/src/controllers/shared-shortcut.controller.ts
+++ b/packages/base-ui/src/controllers/shared-shortcut.controller.ts
@@ -1,4 +1,4 @@
-import { Disposable, ICommandService, RedoCommand, UndoCommand } from '@univerjs/core';
+import { Disposable, ICommandService, LifecycleStages, OnLifecycle, RedoCommand, UndoCommand } from '@univerjs/core';
import { CopyCommand, CutCommand, PasteCommand } from '../services/clipboard/clipboard.command';
import { CopyShortcutItem, CutShortcutItem, PasteShortcutItem } from '../services/clipboard/clipboard.shortcut';
@@ -18,6 +18,7 @@ export const RedoShortcutItem: IShortcutItem = {
/**
* Define shared UI behavior across Univer business.
*/
+@OnLifecycle(LifecycleStages.Ready, SharedController)
export class SharedController extends Disposable {
constructor(
@IShortcutService private readonly _shortcutService: IShortcutService,
diff --git a/packages/base-ui/src/services/menu/menu.ts b/packages/base-ui/src/services/menu/menu.ts
index 9891c35bfc..d5f89629a3 100644
--- a/packages/base-ui/src/services/menu/menu.ts
+++ b/packages/base-ui/src/services/menu/menu.ts
@@ -51,6 +51,8 @@ interface IMenuItemBase<V> {
value$?: Observable<V>;
onClose?: () => void;
+ // FIXME@wzhudev: this parameters should not appear here
+
/**
* e.g. set cell text size, rotation angle of the text
*/
diff --git a/packages/base-ui/src/services/shortcut/shortcut.service.ts b/packages/base-ui/src/services/shortcut/shortcut.service.ts
index 1042093a78..62637a37f0 100644
--- a/packages/base-ui/src/services/shortcut/shortcut.service.ts
+++ b/packages/base-ui/src/services/shortcut/shortcut.service.ts
@@ -34,7 +34,6 @@ export interface IShortcutService {
export const IShortcutService = createIdentifier<IShortcutService>('univer.shortcut');
export class DesktopShortcutService extends Disposable implements IShortcutService {
- // TODO: @wzhudev: this should be a linked list to resolve different shortcut mapping to the same keybinding
private readonly _shortCutMapping = new Map<number, Set<IShortcutItem>>();
private readonly _idToShortcut = new Map<string, number>();