@dineug/erd-editor 4.0.0 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. package/README.md +106 -280
  2. package/dist/components/dictionary/Dictionary.d.ts +12 -0
  3. package/dist/components/dictionary/Dictionary.styles.d.ts +33 -0
  4. package/dist/components/dictionary/checkCount.d.ts +28 -0
  5. package/dist/components/dictionary/checkSheet.d.ts +41 -0
  6. package/dist/components/dictionary/dictionary-context-menu/DictionaryContextMenu.d.ts +30 -0
  7. package/dist/components/dictionary/dictionaryCommit.d.ts +83 -0
  8. package/dist/components/dictionary/dictionaryFile.d.ts +23 -0
  9. package/dist/components/dictionary/dictionaryKeys.d.ts +48 -0
  10. package/dist/components/dictionary/dictionaryView.d.ts +65 -0
  11. package/dist/components/dictionary/domain-cell-editor/DomainCellEditor.d.ts +22 -0
  12. package/dist/components/dictionary/domain-cell-editor/DomainCellEditor.styles.d.ts +7 -0
  13. package/dist/components/dictionary/domain-cell-editor/openDomainCellEditor.d.ts +9 -0
  14. package/dist/components/dictionary/gridTheme.d.ts +18 -0
  15. package/dist/components/dictionary/sheets.d.ts +65 -0
  16. package/dist/components/erd/automatic-table-placement/flowPlacement.d.ts +4 -4
  17. package/dist/components/erd/canvas/DiffOutline.template.d.ts +14 -0
  18. package/dist/components/erd/canvas/EditOverlay.styles.d.ts +6 -0
  19. package/dist/components/erd/canvas/sceneHit.d.ts +5 -0
  20. package/dist/components/erd/canvas/sceneTokens.d.ts +8 -0
  21. package/dist/components/erd/canvas/table/Table.d.ts +6 -0
  22. package/dist/components/erd/canvas/table/blankLogicalName.d.ts +19 -0
  23. package/dist/components/erd/canvas/table/cellLayout.d.ts +4 -4
  24. package/dist/components/erd/canvas/table/column/Column.d.ts +32 -5
  25. package/dist/components/erd/canvas/table/dictionaryMarks.d.ts +29 -0
  26. package/dist/components/erd/canvas/table/useFocusTable.d.ts +1 -0
  27. package/dist/components/erd/diff-viewer/diff-tree/DiffTree.d.ts +19 -0
  28. package/dist/components/erd/diff-viewer/diff-tree/DiffTree.styles.d.ts +13 -0
  29. package/dist/components/erd/diff-viewer/diff-tree/diffTreeModel.d.ts +52 -0
  30. package/dist/components/erd/diff-viewer/diff.d.ts +21 -19
  31. package/dist/components/erd/draw-target/placePill.d.ts +1 -3
  32. package/dist/components/erd/erd-context-menu/menus/nameViewMenus.d.ts +22 -0
  33. package/dist/components/erd/floating-toolbar/FloatingToolbar.d.ts +7 -4
  34. package/dist/components/erd/floating-toolbar/nameViewDropdown.d.ts +16 -0
  35. package/dist/components/erd/floating-toolbar/nameViewDropdown.styles.d.ts +5 -0
  36. package/dist/components/erd/goToErdTarget.d.ts +40 -16
  37. package/dist/components/erd/readerNameView.d.ts +15 -0
  38. package/dist/components/erd/relationshipHighlight.d.ts +18 -0
  39. package/dist/components/erd/welcome-screen/welcome-hints/WelcomeHints.styles.d.ts +5 -0
  40. package/dist/components/erd/welcome-screen/welcomeLayout.d.ts +7 -3
  41. package/dist/components/erd-editor/ErdEditor.styles.d.ts +4 -0
  42. package/dist/components/erd-editor/viewportLayout.d.ts +52 -0
  43. package/dist/components/explorer/Explorer.d.ts +12 -0
  44. package/dist/components/explorer/explorer-controller/ExplorerController.d.ts +11 -0
  45. package/dist/components/explorer/explorer-panel/ExplorerPanel.d.ts +14 -0
  46. package/dist/components/explorer/explorer-panel/ExplorerPanel.styles.d.ts +13 -0
  47. package/dist/components/explorer/explorer-search/ExplorerSearch.d.ts +12 -0
  48. package/dist/components/explorer/explorer-search/ExplorerSearch.styles.d.ts +13 -0
  49. package/dist/components/explorer/explorerCommands.d.ts +28 -0
  50. package/dist/components/explorer/explorerNavigation.d.ts +14 -0
  51. package/dist/components/explorer/explorerSearch.d.ts +71 -0
  52. package/dist/components/explorer/explorerTree.d.ts +93 -0
  53. package/dist/components/explorer/explorerView.d.ts +54 -0
  54. package/dist/components/{find-replace → explorer}/fieldIcon.d.ts +4 -1
  55. package/dist/components/{find-replace → explorer}/matchTarget.d.ts +7 -9
  56. package/dist/components/export-image/ExportImage.d.ts +10 -0
  57. package/dist/components/export-image/exportImageActions.d.ts +2 -2
  58. package/dist/components/flowCenters.d.ts +9 -0
  59. package/dist/components/map-columns/nameOf.d.ts +11 -3
  60. package/dist/components/primitives/icon/icons.d.ts +13 -4
  61. package/dist/components/primitives/sash/Sash.d.ts +1 -0
  62. package/dist/components/primitives/tree/Tree.d.ts +30 -0
  63. package/dist/components/primitives/tree/Tree.styles.d.ts +5 -0
  64. package/dist/components/primitives/tree/treeModel.d.ts +42 -0
  65. package/dist/components/quick-search/QuickSearch.styles.d.ts +1 -0
  66. package/dist/components/quick-search/actions.d.ts +3 -4
  67. package/dist/components/quick-search/paletteList.d.ts +7 -0
  68. package/dist/components/quick-search/scopedActions.d.ts +5 -11
  69. package/dist/components/schema-sql/schema-sql-options/SchemaSQLOptions.d.ts +2 -2
  70. package/dist/components/schema-sql/schema-sql-options/SchemaSQLOptions.styles.d.ts +2 -0
  71. package/dist/components/schema-sql/schemaSQLView.d.ts +2 -0
  72. package/dist/components/settings/lockSettingRows.d.ts +2 -1
  73. package/dist/components/table-view/column/column-domain/ColumnDomain.d.ts +19 -0
  74. package/dist/components/table-view/column/column-domain/domainOptions.d.ts +13 -0
  75. package/dist/components/table-view/column/column-logical-name/ColumnLogicalName.d.ts +22 -0
  76. package/dist/components/table-view/column/column-logical-name/ColumnLogicalName.styles.d.ts +4 -0
  77. package/dist/components/table-view/column/columnViewText.d.ts +33 -0
  78. package/dist/components/table-view/column/useHintList.d.ts +24 -0
  79. package/dist/components/theme-builder/ThemeBuilder.styles.d.ts +3 -3
  80. package/dist/components/toolbar/Toolbar.styles.d.ts +0 -1
  81. package/dist/components/visualization/createVisualization.d.ts +2 -0
  82. package/dist/components/visualization/flowLayout.d.ts +2 -1
  83. package/dist/components/visualization/table/column/Column.d.ts +4 -0
  84. package/dist/components/visualization/visualization-toolbar/VisualizationToolbar.d.ts +2 -2
  85. package/dist/components/visualization/visualizationView.d.ts +15 -4
  86. package/dist/constants/layout.d.ts +18 -1
  87. package/dist/constants/open.d.ts +0 -1
  88. package/dist/constants/schema.d.ts +15 -2
  89. package/dist/engine/actions.d.ts +5 -2
  90. package/dist/engine/history.actions.d.ts +8 -0
  91. package/dist/engine/history.d.ts +11 -3
  92. package/dist/engine/index.js +17 -17
  93. package/dist/engine/modules/dictionary/actions.d.ts +74 -0
  94. package/dist/engine/modules/dictionary/atom.actions.d.ts +74 -0
  95. package/dist/engine/modules/dictionary/checks.d.ts +76 -0
  96. package/dist/engine/modules/dictionary/derive.d.ts +54 -0
  97. package/dist/engine/modules/dictionary/derivedNames.d.ts +23 -0
  98. package/dist/engine/modules/dictionary/dictionaryIndex.d.ts +73 -0
  99. package/dist/engine/modules/dictionary/domainLinks.d.ts +9 -0
  100. package/dist/engine/modules/dictionary/domainTypes.d.ts +27 -0
  101. package/dist/engine/modules/dictionary/entryWrites.d.ts +63 -0
  102. package/dist/engine/modules/dictionary/generator.actions.d.ts +126 -0
  103. package/dist/engine/modules/dictionary/history.d.ts +14 -0
  104. package/dist/engine/modules/dictionary/membership.d.ts +28 -0
  105. package/dist/engine/modules/dictionary/orderKeys.d.ts +13 -0
  106. package/dist/engine/modules/dictionary/termIndex.d.ts +24 -0
  107. package/dist/engine/modules/editor/actions.d.ts +18 -3
  108. package/dist/engine/modules/editor/atom.actions.d.ts +24 -6
  109. package/dist/engine/modules/editor/generator.actions.d.ts +22 -8
  110. package/dist/engine/modules/editor/state.d.ts +24 -0
  111. package/dist/engine/modules/editor/utils/nameView.d.ts +103 -0
  112. package/dist/engine/modules/editor/view.actions.d.ts +24 -1
  113. package/dist/engine/modules/editor/view.d.ts +8 -0
  114. package/dist/engine/modules/relationship/fkColumns.d.ts +10 -4
  115. package/dist/engine/modules/settings/actions.d.ts +13 -3
  116. package/dist/engine/modules/settings/atom.actions.d.ts +49 -5
  117. package/dist/engine/modules/settings/generator.actions.d.ts +2 -2
  118. package/dist/engine/modules/table/actions.d.ts +7 -0
  119. package/dist/engine/modules/table/atom.actions.d.ts +46 -0
  120. package/dist/engine/modules/table/generator.actions.d.ts +7 -0
  121. package/dist/engine/modules/table/history.d.ts +2 -0
  122. package/dist/engine/modules/table-column/actions.d.ts +7 -0
  123. package/dist/engine/modules/table-column/atom.actions.d.ts +49 -0
  124. package/dist/engine/modules/table-column/generator.actions.d.ts +5 -0
  125. package/dist/engine/modules/table-column/history.d.ts +3 -0
  126. package/dist/engine/modules/table-column/utils/dataType.d.ts +3 -1
  127. package/dist/engine/rx-store.d.ts +6 -0
  128. package/dist/engine/tag.d.ts +8 -0
  129. package/dist/erd-editor.umd.js +1586 -1018
  130. package/dist/i18n/messages/ar-SA.d.ts +166 -15
  131. package/dist/i18n/messages/de-DE.d.ts +134 -11
  132. package/dist/i18n/messages/en/code.d.ts +0 -1
  133. package/dist/i18n/messages/en/common.d.ts +11 -1
  134. package/dist/i18n/messages/en/contextMenu.d.ts +1 -0
  135. package/dist/i18n/messages/en/dictionary.d.ts +79 -0
  136. package/dist/i18n/messages/en/explorer.d.ts +37 -0
  137. package/dist/i18n/messages/en/findReplace.d.ts +7 -1
  138. package/dist/i18n/messages/en/index.d.ts +135 -12
  139. package/dist/i18n/messages/en/palette.d.ts +5 -7
  140. package/dist/i18n/messages/en/schemaSql.d.ts +1 -0
  141. package/dist/i18n/messages/en/settings.d.ts +1 -0
  142. package/dist/i18n/messages/en/shortcuts.d.ts +3 -1
  143. package/dist/i18n/messages/en/toolbar.d.ts +0 -1
  144. package/dist/i18n/messages/en/visualization.d.ts +2 -0
  145. package/dist/i18n/messages/es-ES.d.ts +142 -12
  146. package/dist/i18n/messages/eu-ES.d.ts +134 -11
  147. package/dist/i18n/messages/fa-IR.d.ts +134 -11
  148. package/dist/i18n/messages/fr-FR.d.ts +142 -12
  149. package/dist/i18n/messages/he-IL.d.ts +142 -12
  150. package/dist/i18n/messages/id-ID.d.ts +126 -10
  151. package/dist/i18n/messages/it-IT.d.ts +142 -12
  152. package/dist/i18n/messages/ja-JP.d.ts +126 -10
  153. package/dist/i18n/messages/ko-KR.d.ts +126 -10
  154. package/dist/i18n/messages/nl-NL.d.ts +134 -11
  155. package/dist/i18n/messages/pl-PL.d.ts +150 -13
  156. package/dist/i18n/messages/pt-BR.d.ts +142 -12
  157. package/dist/i18n/messages/pt-PT.d.ts +142 -12
  158. package/dist/i18n/messages/ro-RO.d.ts +142 -12
  159. package/dist/i18n/messages/ru-RU.d.ts +150 -13
  160. package/dist/i18n/messages/sk-SK.d.ts +150 -13
  161. package/dist/i18n/messages/sl-SI.d.ts +150 -13
  162. package/dist/i18n/messages/sv-SE.d.ts +134 -11
  163. package/dist/i18n/messages/tr-TR.d.ts +134 -11
  164. package/dist/i18n/messages/uk-UA.d.ts +150 -13
  165. package/dist/i18n/messages/zh-CN.d.ts +126 -10
  166. package/dist/i18n/messages/zh-TW.d.ts +126 -10
  167. package/dist/index.d.ts +1 -0
  168. package/dist/index.js +34929 -25093
  169. package/dist/internal-types/index.d.ts +6 -0
  170. package/dist/konva/scene/columnDropTarget.d.ts +2 -2
  171. package/dist/loadValue-B5ojYrZ-.js +14682 -0
  172. package/dist/peer/index.d.ts +4 -0
  173. package/dist/peer/index.js +60 -59
  174. package/dist/services/export-png/ExportScene.d.ts +1 -1
  175. package/dist/services/export-png/documentScene.d.ts +7 -1
  176. package/dist/services/export-png/index.d.ts +11 -5
  177. package/dist/services/export-png/renderPng.d.ts +4 -1
  178. package/dist/services/export-png/renderSvg.d.ts +4 -1
  179. package/dist/shared-store-S7YWEz3E.js +1656 -0
  180. package/dist/styles/scrollbar.styles.d.ts +1 -1
  181. package/dist/themes/tokens.d.ts +21 -4
  182. package/dist/utils/calcTable.d.ts +20 -4
  183. package/dist/utils/collection/domain.entity.d.ts +3 -0
  184. package/dist/utils/collection/term.entity.d.ts +3 -0
  185. package/dist/utils/collection/word.entity.d.ts +3 -0
  186. package/dist/utils/dictionary-csv/csv.d.ts +13 -0
  187. package/dist/utils/dictionary-csv/decode.d.ts +7 -0
  188. package/dist/utils/dictionary-csv/dictionaryCsv.d.ts +55 -0
  189. package/dist/utils/dictionary-csv/index.d.ts +4 -0
  190. package/dist/utils/diff/compareEntities.d.ts +39 -0
  191. package/dist/utils/diff/diffDocuments.d.ts +12 -0
  192. package/dist/utils/diff/index.d.ts +5 -0
  193. package/dist/utils/diff/pairEntities.d.ts +41 -0
  194. package/dist/utils/diff/types.d.ts +81 -0
  195. package/dist/utils/emitter.d.ts +2 -8
  196. package/dist/utils/file/exportFile.d.ts +10 -0
  197. package/dist/utils/find-replace/findMatches.d.ts +31 -12
  198. package/dist/utils/find-replace/matcher.d.ts +2 -0
  199. package/dist/utils/find-replace/present.d.ts +4 -3
  200. package/dist/utils/find-replace/preserveCase.d.ts +10 -0
  201. package/dist/utils/find-replace/replaceActions.d.ts +9 -5
  202. package/dist/utils/focus.d.ts +2 -0
  203. package/dist/utils/formatCount.d.ts +10 -0
  204. package/dist/utils/keyboard-shortcut/index.d.ts +11 -3
  205. package/dist/utils/map-columns/alignTypes.d.ts +3 -3
  206. package/dist/utils/schema-sql/Databricks.d.ts +2 -2
  207. package/dist/utils/schema-sql/MSSQL.d.ts +1 -1
  208. package/dist/utils/schema-sql/MariaDB.d.ts +2 -2
  209. package/dist/utils/schema-sql/MySQL.d.ts +2 -2
  210. package/dist/utils/schema-sql/Oracle.d.ts +1 -1
  211. package/dist/utils/schema-sql/PostgreSQL.d.ts +1 -1
  212. package/dist/utils/schema-sql/SQLite.d.ts +2 -2
  213. package/dist/utils/schema-sql/Snowflake.d.ts +2 -2
  214. package/dist/utils/schema-sql/options.d.ts +2 -0
  215. package/dist/utils/schema-sql/utils.d.ts +14 -0
  216. package/dist/utils/table-clipboard/copy.d.ts +2 -3
  217. package/dist/utils/table-clipboard/index.d.ts +9 -1
  218. package/dist/utils/table-clipboard/paste.d.ts +2 -2
  219. package/dist/utils/table-clipboard/payload.d.ts +12 -0
  220. package/dist/utils/takeover.d.ts +6 -0
  221. package/dist/utils/validation.d.ts +1 -0
  222. package/dist/utils/virtualRange.d.ts +15 -0
  223. package/dist/workers/exportPng.shared-worker.js +30 -29
  224. package/package.json +8 -6
  225. package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.d.ts +0 -12
  226. package/dist/components/erd/diff-viewer/tree-viewer/TreeViewer.styles.d.ts +0 -6
  227. package/dist/components/find-replace/FindReplace.d.ts +0 -13
  228. package/dist/components/find-replace/FindReplace.styles.d.ts +0 -27
  229. package/dist/components/find-replace/panelLayout.d.ts +0 -20
  230. package/dist/konva/batchDraw.d.ts +0 -42
  231. package/dist/konva/host.d.ts +0 -30
  232. package/dist/konva/jsx-types.test-d.d.ts +0 -2
  233. package/dist/loadValue-B3EFSe9k.js +0 -12925
  234. package/dist/shared-store-fUggY7sI.js +0 -1341
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dineug/erd-editor",
3
- "version": "4.0.0",
3
+ "version": "4.2.0",
4
4
  "description": "Entity-Relationship Diagram Editor",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -48,7 +48,7 @@
48
48
  "homepage": "https://github.com/dineug/erd-editor#readme",
49
49
  "license": "MIT",
50
50
  "dependencies": {
51
- "@chenglou/pretext": "^0.0.8",
51
+ "@chenglou/pretext": "^1.0.0",
52
52
  "@radix-ui/colors": "^3.0.0",
53
53
  "@shikijs/langs": "^4.4.3",
54
54
  "@shikijs/themes": "^4.4.3",
@@ -57,7 +57,7 @@
57
57
  "elkjs": "^0.12.0",
58
58
  "es-hangul": "^2.4.0",
59
59
  "es-toolkit": "^1.50.0",
60
- "fuse.js": "^7.0.0",
60
+ "fuse.js": "^7.5.0",
61
61
  "graphql": "^17.0.2",
62
62
  "konva": "^10.3.2",
63
63
  "lucide": "^1.35.0",
@@ -86,10 +86,12 @@
86
86
  "vite-plus": "1.0.0",
87
87
  "vitest": "5.0.1",
88
88
  "@dineug/erd-editor-schema": "0.1.0",
89
- "@dineug/vite-plugin-r-html": "0.1.0",
90
- "@dineug/uuid": "0.1.0",
89
+ "@dineug/grid": "0.1.0",
91
90
  "@dineug/r-html": "0.1.3",
92
- "@dineug/schema-sql-parser": "0.1.0"
91
+ "@dineug/r-html-konva": "0.1.0",
92
+ "@dineug/vite-plugin-r-html": "0.1.0",
93
+ "@dineug/schema-sql-parser": "0.1.0",
94
+ "@dineug/uuid": "0.1.0"
93
95
  },
94
96
  "scripts": {
95
97
  "dev": "vp run --filter @dineug/erd-editor... --filter !@dineug/erd-editor build && vp dev",
@@ -1,12 +0,0 @@
1
- import { FC } from '@dineug/r-html';
2
- import { AppContext } from '../../../appContext';
3
- import { DiffMap } from '../diff';
4
- export type TreeViewerProps = {
5
- prevApp: AppContext;
6
- prevDiffMap: DiffMap;
7
- app: AppContext;
8
- diffMap: DiffMap;
9
- };
10
- declare const TreeViewer: FC<TreeViewerProps>;
11
- export default TreeViewer;
12
- //# sourceMappingURL=TreeViewer.d.ts.map
@@ -1,6 +0,0 @@
1
- export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
2
- export declare const icon: import('@dineug/r-html').CSSTemplateLiterals;
3
- export declare const table: import('@dineug/r-html').CSSTemplateLiterals;
4
- export declare const column: import('@dineug/r-html').CSSTemplateLiterals;
5
- export declare const ellipsis: import('@dineug/r-html').CSSTemplateLiterals;
6
- //# sourceMappingURL=TreeViewer.styles.d.ts.map
@@ -1,13 +0,0 @@
1
- import { FC } from '@dineug/r-html';
2
- export type FindReplaceProps = {
3
- readonly: boolean;
4
- };
5
- /** How many result rows the list draws at once; the rest are reached by moving through them. */
6
- export declare const MATCH_ROW_LIMIT = 200;
7
- /** The rows drawn for a list longer than the limit: a window kept around the current match. */
8
- export declare function rowWindow(current: number, total: number, limit?: number): [number, number];
9
- /** How long the panel waits for typing to pause before it searches a regular expression. */
10
- export declare const REGEX_INPUT_DELAY = 150;
11
- declare const FindReplace: FC<FindReplaceProps>;
12
- export default FindReplace;
13
- //# sourceMappingURL=FindReplace.d.ts.map
@@ -1,27 +0,0 @@
1
- /** What the panel's box adds to the height of its controls: its padding and border, above and below. */
2
- export declare const PANEL_CHROME_HEIGHT: number;
3
- /**
4
- * A panel over the top left of the canvas, clear of the minimap in the other
5
- * corner. Its top and height are set inline, since zen mode takes the toolbar
6
- * above it away; on a short canvas the list gives up its height first.
7
- */
8
- export declare const root: import('@dineug/r-html').CSSTemplateLiterals;
9
- export declare const controls: import('@dineug/r-html').CSSTemplateLiterals;
10
- export declare const header: import('@dineug/r-html').CSSTemplateLiterals;
11
- export declare const row: import('@dineug/r-html').CSSTemplateLiterals;
12
- export declare const actions: import('@dineug/r-html').CSSTemplateLiterals;
13
- export declare const input: import('@dineug/r-html').CSSTemplateLiterals;
14
- export declare const toggle: import('@dineug/r-html').CSSTemplateLiterals;
15
- export declare const scopes: import('@dineug/r-html').CSSTemplateLiterals;
16
- export declare const scope: import('@dineug/r-html').CSSTemplateLiterals;
17
- export declare const status: import('@dineug/r-html').CSSTemplateLiterals;
18
- export declare const count: import('@dineug/r-html').CSSTemplateLiterals;
19
- export declare const list: import('@dineug/r-html').CSSTemplateLiterals;
20
- export declare const match: import('@dineug/r-html').CSSTemplateLiterals;
21
- export declare const icon: import('@dineug/r-html').CSSTemplateLiterals;
22
- export declare const body: import('@dineug/r-html').CSSTemplateLiterals;
23
- export declare const text: import('@dineug/r-html').CSSTemplateLiterals;
24
- export declare const mark: import('@dineug/r-html').CSSTemplateLiterals;
25
- export declare const location: import('@dineug/r-html').CSSTemplateLiterals;
26
- export declare const more: import('@dineug/r-html').CSSTemplateLiterals;
27
- //# sourceMappingURL=FindReplace.styles.d.ts.map
@@ -1,20 +0,0 @@
1
- import { RootState } from '../../engine/state';
2
- /** The overlays that take the whole canvas over, under which the panel stands down and opens on nothing. */
3
- export declare const TAKEOVERS: ("automaticTablePlacement" | "diffViewer" | "timeTravel")[];
4
- /** Whether an overlay that takes the canvas over is up, which keeps Find and Replace shut. */
5
- export declare const isTakenOver: ({ editor }: RootState) => boolean;
6
- /**
7
- * Whether the panel is drawn: it stands aside, still open, off the ERD tab and
8
- * under a takeover, and draws over no dialog, which closes it as it opens.
9
- */
10
- export declare const isPanelShown: (state: RootState) => boolean;
11
- /** How far in from the left of the canvas the panel stands, and how wide it is at most, as FindReplace.styles draws it. */
12
- export declare const PANEL_LEFT = 16;
13
- export declare const PANEL_WIDTH = 380;
14
- /**
15
- * How far in from the left edge of the canvas the panel hides it, read from
16
- * the state rather than the panel's box, so a jump that brings the panel back
17
- * with the ERD tab lands clear of it too. None while the panel is not drawn.
18
- */
19
- export declare function coveredWidth(state: RootState): number;
20
- //# sourceMappingURL=panelLayout.d.ts.map
@@ -1,42 +0,0 @@
1
- import { Layer } from 'konva/lib/Layer';
2
- /**
3
- * The commit counter the host's epoch scoped reconcile reads. It advances once
4
- * per flush and never on a deferred hop, so one commit reconciles a parent at
5
- * most once however many hops the fixed point took.
6
- */
7
- export declare function currentEpoch(): number;
8
- /**
9
- * Registers work that settles the scene before a commit draws it. The host
10
- * reconciles its ledger here, which is what makes the flush the one boundary
11
- * where the konva tree and the ledger are known to agree.
12
- */
13
- export declare function onBeforeFlush(listener: () => void): () => void;
14
- /**
15
- * Arms the gate without naming a layer, for a change that has to reach the
16
- * fixed point but nothing to draw yet. The arming mark counts as dirt itself,
17
- * so the commit always lands at least one hop later than the write.
18
- */
19
- export declare function requestFlush(): void;
20
- /**
21
- * Records that a layer needs redrawing and arms the gate. A layer a Tween has
22
- * claimed is parked instead, and the end of that window hands it back.
23
- */
24
- export declare function markDirty(layer: Layer): void;
25
- /**
26
- * Hands the draw authority for one layer to a Tween, whose animation frame
27
- * draws it. Windows count rather than latch, because one FLIP tweens many
28
- * nodes of a layer and each of them opens and closes its own.
29
- */
30
- export declare function beginAnimation(layer: Layer): void;
31
- /**
32
- * Closes one Tween window and, with the last one on a layer, hands the marks
33
- * parked meanwhile back to the gate as a single re-arm.
34
- */
35
- export declare function endAnimation(layer: Layer): void;
36
- /**
37
- * Resolves once the scene has settled. An open Tween window anywhere defers
38
- * the answer to the end of that window, an armed gate to its flush, and an
39
- * idle gate answers at once so a call after a flush never hangs.
40
- */
41
- export declare function whenDrawn(): Promise<void>;
42
- //# sourceMappingURL=batchDraw.d.ts.map
@@ -1,30 +0,0 @@
1
- import { DOMTemplateLiterals, HostAdapter } from '@dineug/r-html';
2
- import { Stage } from 'konva/lib/Stage';
3
- /**
4
- * The name the minimap Stage carries, and the whole reach of the id ban below.
5
- * An id scan over Konva.stages is ambiguous the moment two stages spell one id,
6
- * so ids belong to the main canvas and the minimap locates by name.
7
- */
8
- export declare const MINIMAP_STAGE_NAME = "minimap";
9
- /**
10
- * What the marker bench reads. A reconcile gone quadratic is invisible from
11
- * outside the host, so the counters name the shape of the work itself rather
12
- * than a wall clock.
13
- */
14
- export interface HostStats {
15
- reconcile: number;
16
- scan: number;
17
- attach: number;
18
- drop: number;
19
- order: number;
20
- setZIndex: number;
21
- }
22
- export declare const hostStats: HostStats;
23
- export declare function resetHostStats(): void;
24
- export declare const konvaAdapter: HostAdapter;
25
- /** Spelt out rather than inferred: the inferred one names an r-html internal. */
26
- type KonvaTag = (strings: TemplateStringsArray, ...values: any[]) => DOMTemplateLiterals;
27
- export declare const konva: KonvaTag;
28
- export declare function renderKonva(stage: Stage, templateLiterals?: DOMTemplateLiterals | null): void;
29
- export {};
30
- //# sourceMappingURL=host.d.ts.map
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=jsx-types.test-d.d.ts.map