@markdstage/markdstage 2.5.0 → 2.6.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.
- package/package.json +1 -1
- package/shared/README.md +35 -15
- package/shared/architecture-editor/editor.css +116 -20
- package/shared/architecture-editor/editor.js +577 -42
- package/shared/architecture-editor/index.html +53 -24
- package/shared/renderer/architecture.mjs +96 -15
- package/shared/renderer/index.html +11 -0
- package/shared/renderer/renderer.js +227 -13
- package/shared/renderer/slides.css +5 -2
- package/shared/runtime/pptx-package.mjs +9 -1
- package/shared/schema/architecture-v1.schema.json +11 -1
|
@@ -250,12 +250,15 @@ body.mermaid-loading .mermaid{visibility:hidden;}
|
|
|
250
250
|
.architecture-editor [data-architecture-movable="false"]{cursor:not-allowed;outline:none;}
|
|
251
251
|
.architecture-editor [data-architecture-type]:focus-visible>rect,
|
|
252
252
|
.architecture-editor [data-architecture-type]:focus-visible>ellipse,
|
|
253
|
+
.architecture-editor [data-architecture-type]:focus-visible>polygon,
|
|
253
254
|
.architecture-editor .architecture-selected>rect,
|
|
254
|
-
.architecture-editor .architecture-selected>ellipse
|
|
255
|
+
.architecture-editor .architecture-selected>ellipse,
|
|
256
|
+
.architecture-editor .architecture-selected>polygon{
|
|
255
257
|
stroke:var(--accent-strong);stroke-width:7;filter:drop-shadow(0 0 8px var(--accent-line));}
|
|
256
258
|
/* Layout-managed elements cannot move. Show a dashed explanation only when selected. */
|
|
257
259
|
.architecture-editor [data-architecture-movable="false"].architecture-selected>rect,
|
|
258
|
-
.architecture-editor [data-architecture-movable="false"].architecture-selected>ellipse
|
|
260
|
+
.architecture-editor [data-architecture-movable="false"].architecture-selected>ellipse,
|
|
261
|
+
.architecture-editor [data-architecture-movable="false"].architecture-selected>polygon{
|
|
259
262
|
stroke-dasharray:10 8;}
|
|
260
263
|
.architecture-error{display:flex;flex-direction:column;gap:.35em;margin:.5em 0;
|
|
261
264
|
padding:.8em 1em;border:2px solid #d13438;border-radius:8px;
|
|
@@ -569,8 +569,16 @@ function nativeShapeXml(element, path, id, relationships) {
|
|
|
569
569
|
rect: "rect",
|
|
570
570
|
roundedRect: "roundRect",
|
|
571
571
|
ellipse: "ellipse",
|
|
572
|
+
diamond: "diamond",
|
|
573
|
+
triangle: "triangle",
|
|
574
|
+
hexagon: "hexagon",
|
|
575
|
+
parallelogram: "parallelogram",
|
|
572
576
|
}[element.shape];
|
|
573
|
-
if (!preset)
|
|
577
|
+
if (!preset) {
|
|
578
|
+
fail(
|
|
579
|
+
`${path}.shape must be rect, roundedRect, ellipse, diamond, triangle, hexagon, or parallelogram`,
|
|
580
|
+
);
|
|
581
|
+
}
|
|
574
582
|
const opacity = optionalUnitInterval(element.opacity, `${path}.opacity`);
|
|
575
583
|
const properties = `${xfrmXml(bounds)}<a:prstGeom prst="${preset}"><a:avLst/></a:prstGeom>${colorXml(
|
|
576
584
|
element.fill,
|
|
@@ -204,7 +204,17 @@
|
|
|
204
204
|
"properties": {
|
|
205
205
|
"type": { "const": "node" },
|
|
206
206
|
"id": { "$ref": "#/$defs/identifier" },
|
|
207
|
-
"shape": {
|
|
207
|
+
"shape": {
|
|
208
|
+
"enum": [
|
|
209
|
+
"rect",
|
|
210
|
+
"rounded-rect",
|
|
211
|
+
"ellipse",
|
|
212
|
+
"diamond",
|
|
213
|
+
"triangle",
|
|
214
|
+
"hexagon",
|
|
215
|
+
"parallelogram"
|
|
216
|
+
]
|
|
217
|
+
},
|
|
208
218
|
"x": { "$ref": "#/$defs/coordinate" },
|
|
209
219
|
"y": { "$ref": "#/$defs/coordinate" },
|
|
210
220
|
"width": { "$ref": "#/$defs/extent" },
|