@cardenelabs/cdl 0.28.0 → 0.29.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/CHANGELOG.md +31 -1
- package/dist/index.cjs +23 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +23 -18
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +3 -0
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +3 -0
- package/dist/react.js.map +1 -1
- package/dist/{render-ViWKnlu1.d.cts → render-CabTMeao.d.cts} +13 -0
- package/dist/{render-ViWKnlu1.d.ts → render-CabTMeao.d.ts} +13 -0
- package/package.json +1 -1
- package/src/builder.ts +6 -0
- package/src/layout.ts +2 -0
- package/src/presets.ts +18 -18
- package/src/render/stage.tsx +1 -0
- package/src/types.ts +13 -0
package/dist/react.cjs
CHANGED
|
@@ -9002,6 +9002,8 @@ function layout(diag) {
|
|
|
9002
9002
|
// **遮断はここだけに置く**。 描画は必ず組み立てを通り、組み立て API も `er` も
|
|
9003
9003
|
// 素通しにしてある。 上流にも置くと、どの入力でも通らない分岐が残る
|
|
9004
9004
|
...diag.palette ? { palette: diag.palette } : {},
|
|
9005
|
+
// 種類も配色と同じく空の目印を出さない。 遮断をここに揃えると手書きの図にも効く
|
|
9006
|
+
...diag.type ? { type: diag.type } : {},
|
|
9005
9007
|
bboxes,
|
|
9006
9008
|
collisions,
|
|
9007
9009
|
nearCollisions,
|
|
@@ -17204,6 +17206,7 @@ function CdlStage({
|
|
|
17204
17206
|
"data-cdl-stage": "",
|
|
17205
17207
|
"data-cdl-scale": diagramScale === 1 ? void 0 : diagramScale,
|
|
17206
17208
|
"data-cdl-palette": laid.palette,
|
|
17209
|
+
"data-cdl-type": laid.type,
|
|
17207
17210
|
children: [
|
|
17208
17211
|
/* @__PURE__ */ jsxRuntime.jsxs("defs", { children: [
|
|
17209
17212
|
Object.entries(TONE).flatMap(
|