@dforge-core/diagram 0.0.6 → 0.0.7
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/EntityNode.svelte +7 -2
- package/dist/model-graph.js +1 -1
- package/package.json +1 -1
package/dist/EntityNode.svelte
CHANGED
|
@@ -50,7 +50,9 @@
|
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
<style>
|
|
53
|
+
/* Fixed heights: 2px border + 28px header = the layout's 30px header, 22px rows (model-graph.ts, simple-layout.ts) */
|
|
53
54
|
.entity-node {
|
|
55
|
+
box-sizing: border-box;
|
|
54
56
|
background: var(--bs-body-bg, #fff);
|
|
55
57
|
border: 2px solid var(--module-color, #6c757d);
|
|
56
58
|
border-radius: 6px;
|
|
@@ -65,7 +67,8 @@
|
|
|
65
67
|
display: flex;
|
|
66
68
|
align-items: center;
|
|
67
69
|
gap: 0.35rem;
|
|
68
|
-
|
|
70
|
+
height: 28px;
|
|
71
|
+
padding: 0 0.5rem;
|
|
69
72
|
background: var(--module-color, #6c757d);
|
|
70
73
|
color: #fff;
|
|
71
74
|
border-radius: 3px 3px 0 0;
|
|
@@ -95,7 +98,9 @@
|
|
|
95
98
|
display: flex;
|
|
96
99
|
align-items: center;
|
|
97
100
|
gap: 0.3rem;
|
|
98
|
-
|
|
101
|
+
box-sizing: border-box;
|
|
102
|
+
height: 22px;
|
|
103
|
+
padding: 0 0.5rem;
|
|
99
104
|
border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.08));
|
|
100
105
|
position: relative;
|
|
101
106
|
}
|
package/dist/model-graph.js
CHANGED
|
@@ -22,7 +22,7 @@ export const MODULE_COLORS = [
|
|
|
22
22
|
];
|
|
23
23
|
export const getModuleColor = (index) => MODULE_COLORS[index % MODULE_COLORS.length];
|
|
24
24
|
const NODE_WIDTH = 260;
|
|
25
|
-
const NODE_HEIGHT_BASE =
|
|
25
|
+
const NODE_HEIGHT_BASE = 32; // 30px header (incl. top border) + 2px bottom border
|
|
26
26
|
const ROW_HEIGHT = 22;
|
|
27
27
|
/**
|
|
28
28
|
* Build a diagram graph from the given modules.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dforge-core/diagram",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "Entity-relationship and workspace diagram components for dForge models. Standalone Svelte 5 library with no dForge runtime dependencies.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "dForge",
|