@arach/arc 0.1.0 → 0.2.4
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.
- package/dist/arc.es.js +27229 -4917
- package/dist/arc.umd.js +118 -109
- package/dist/index.d.ts +33 -3
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Connector as ArcConnector } from './components/ArcDiagram';
|
|
2
|
+
import { ConnectorStyle as ArcConnectorStyle } from './components/ArcDiagram';
|
|
3
|
+
import { default as ArcDiagram } from './components/ArcDiagram';
|
|
4
|
+
import { ArcDiagramData } from './components/ArcDiagram';
|
|
5
|
+
import { default as ArcDiagramIsometric } from './player/ArcDiagram';
|
|
6
|
+
import { NodeData as ArcNodeData } from './components/ArcDiagram';
|
|
7
|
+
import { NodePosition as ArcNodePosition } from './components/ArcDiagram';
|
|
2
8
|
import { configToYaml } from './utils/yamlConfig';
|
|
3
9
|
import { default as DiagramCanvas } from './components/editor/DiagramCanvas';
|
|
10
|
+
import { DiagramColor } from './components/ArcDiagram';
|
|
4
11
|
import { default as DiagramEditor } from './components/editor/DiagramEditor';
|
|
12
|
+
import { DiagramLayout } from './components/ArcDiagram';
|
|
13
|
+
import { DiagramMode } from './components/ArcDiagram';
|
|
5
14
|
import { EditorProvider } from './components/editor/EditorProvider';
|
|
6
15
|
import { getColorShading } from './utils/isometric';
|
|
7
16
|
import { ISO_COLORS } from './utils/isometric';
|
|
@@ -9,6 +18,7 @@ import { isoBoundingBox } from './utils/isometric';
|
|
|
9
18
|
import { isoBox } from './utils/isometric';
|
|
10
19
|
import { isoShading } from './utils/isometric';
|
|
11
20
|
import { isoToScreen } from './utils/isometric';
|
|
21
|
+
import { NodeSize } from './components/ArcDiagram';
|
|
12
22
|
import { parseYamlConfig } from './utils/yamlConfig';
|
|
13
23
|
import { renderToElement } from './player/vanilla';
|
|
14
24
|
import { renderToString } from './player/vanilla';
|
|
@@ -18,8 +28,20 @@ import { useEditor } from './components/editor/EditorProvider';
|
|
|
18
28
|
import { useEditorState } from './components/editor/EditorProvider';
|
|
19
29
|
import { useViewMode } from './components/editor/EditorProvider';
|
|
20
30
|
|
|
31
|
+
export { ArcConnector }
|
|
32
|
+
|
|
33
|
+
export { ArcConnectorStyle }
|
|
34
|
+
|
|
21
35
|
export { ArcDiagram }
|
|
22
36
|
|
|
37
|
+
export { ArcDiagramData }
|
|
38
|
+
|
|
39
|
+
export { ArcDiagramIsometric }
|
|
40
|
+
|
|
41
|
+
export { ArcNodeData }
|
|
42
|
+
|
|
43
|
+
export { ArcNodePosition }
|
|
44
|
+
|
|
23
45
|
export { configToYaml }
|
|
24
46
|
|
|
25
47
|
export declare interface ConnectorStyle {
|
|
@@ -35,6 +57,8 @@ export declare interface ConnectorStyle {
|
|
|
35
57
|
|
|
36
58
|
export { DiagramCanvas }
|
|
37
59
|
|
|
60
|
+
export { DiagramColor }
|
|
61
|
+
|
|
38
62
|
export declare interface DiagramConfig {
|
|
39
63
|
id?: string;
|
|
40
64
|
title: string;
|
|
@@ -65,6 +89,10 @@ export declare interface DiagramConfig {
|
|
|
65
89
|
|
|
66
90
|
export { DiagramEditor }
|
|
67
91
|
|
|
92
|
+
export { DiagramLayout }
|
|
93
|
+
|
|
94
|
+
export { DiagramMode }
|
|
95
|
+
|
|
68
96
|
export declare interface DiagramNode {
|
|
69
97
|
tier: number;
|
|
70
98
|
x: number;
|
|
@@ -108,7 +136,7 @@ export { isoToScreen }
|
|
|
108
136
|
export declare interface NodePosition {
|
|
109
137
|
x: number;
|
|
110
138
|
y: number;
|
|
111
|
-
size:
|
|
139
|
+
size: NodeSize_2;
|
|
112
140
|
width?: number;
|
|
113
141
|
height?: number;
|
|
114
142
|
z?: number;
|
|
@@ -116,7 +144,9 @@ export declare interface NodePosition {
|
|
|
116
144
|
isoDepth?: number;
|
|
117
145
|
}
|
|
118
146
|
|
|
119
|
-
|
|
147
|
+
export { NodeSize }
|
|
148
|
+
|
|
149
|
+
declare type NodeSize_2 = 'large' | 'normal' | 'small';
|
|
120
150
|
|
|
121
151
|
export { parseYamlConfig }
|
|
122
152
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arach/arc",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Visual diagram editor for creating architecture diagrams",
|
|
6
6
|
"author": "Arach Tchoupani",
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
+
"@arach/dewey": "^0.2.0",
|
|
52
53
|
"@base-ui/react": "^1.0.0",
|
|
53
54
|
"@types/three": "^0.182.0",
|
|
54
55
|
"js-yaml": "^4.1.1",
|