@diagrammo/dgmo 0.48.1 → 0.48.2

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/advanced.js CHANGED
@@ -69,7 +69,7 @@ import {
69
69
  import {
70
70
  renderRing,
71
71
  renderRingForExport
72
- } from "./chunk-A4VFQH5G.js";
72
+ } from "./chunk-YGJZWZTY.js";
73
73
  import {
74
74
  measurePertAnalysisBlock,
75
75
  renderPert,
@@ -269,7 +269,7 @@ import {
269
269
  renderSlopeChart,
270
270
  renderVenn,
271
271
  renderWordCloud
272
- } from "./chunk-UC7TFHUM.js";
272
+ } from "./chunk-PZMETGLY.js";
273
273
  import "./chunk-PBAHEPLQ.js";
274
274
  import {
275
275
  renderLegendSvg,
package/dist/auto.css CHANGED
@@ -137,15 +137,21 @@ pre.dgmo, code.language-dgmo, pre > code.language-dgmo,
137
137
  opacity: 1;
138
138
  }
139
139
 
140
- /* === Open state: frame the whole block ===
140
+ /* === Frame the whole block ===
141
141
  * When the source panel is open, diagram + toolbar + code get one shared
142
- * border so the code visibly belongs to the chart above it, not to the
143
- * surrounding prose. Closed blocks stay frameless. */
144
- .dgmo:has(> .dgmo-source-wrap[open]) {
145
- border: 1px solid rgba(127, 127, 127, 0.3);
142
+ * border so the code visibly belongs to the chart above it. The frame box
143
+ * (border + padding) is RESERVED at all times — with the border transparent
144
+ * while closed — so opening the panel only paints the border in. It never
145
+ * reflows the diagram or shifts the toolbar: the SVG box and toolbar position
146
+ * are identical open vs closed. */
147
+ .dgmo:has(> .dgmo-source-wrap) {
148
+ border: 1px solid transparent;
146
149
  border-radius: 0.6em;
147
150
  padding: 0.75em 0.75em 0.5em;
148
151
  }
152
+ .dgmo:has(> .dgmo-source-wrap[open]) {
153
+ border-color: rgba(127, 127, 127, 0.3);
154
+ }
149
155
 
150
156
  /* === Source panel (hidden until toggled) === */
151
157
  .dgmo-source-inner {