@cardenelabs/dragon 0.32.0 → 0.33.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/dist/index.cjs +2 -4
- 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 +2 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/compile.ts +0 -3
- package/src/keywords.ts +9 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cardenelabs/dragon",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
4
4
|
"description": "Dragon — Mermaid 感覚で animated SVG を生成する Text DSL。 cdl engine を内部利用。",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "cardene777",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"sideEffects": false,
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@cardenelabs/cdl": "^0.139.
|
|
50
|
+
"@cardenelabs/cdl": "^0.139.1"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"react": "^19.0.0",
|
package/src/compile.ts
CHANGED
|
@@ -103,7 +103,6 @@ import {
|
|
|
103
103
|
DIAGRAM_SHAPES,
|
|
104
104
|
resolveShape,
|
|
105
105
|
shapesForDiagramType,
|
|
106
|
-
意匠の円の区画の間,
|
|
107
106
|
棒を描く節か,
|
|
108
107
|
意匠の棒の角,
|
|
109
108
|
type DslShape,
|
|
@@ -708,8 +707,6 @@ function 配色と縞を当てる(diagram: CdlDiagram, doc: DslDocument): void {
|
|
|
708
707
|
if (配色 === undefined) return;
|
|
709
708
|
diagram.palette = 配色;
|
|
710
709
|
for (const node of diagram.nodes) {
|
|
711
|
-
const 円の区画の間 = 意匠の円の区画の間(配色, node);
|
|
712
|
-
if (円の区画の間 !== undefined) node.chartPieSliceGap = 円の区画の間;
|
|
713
710
|
if (棒を描く節か(node)) {
|
|
714
711
|
const 棒の角 = 意匠の棒の角(配色, node);
|
|
715
712
|
if (棒の角 !== undefined) node.barCornerRadii = 棒の角;
|
package/src/keywords.ts
CHANGED
|
@@ -238,12 +238,16 @@ export function 意匠の字の測り方(_theme: DslTheme): "widest" {
|
|
|
238
238
|
return "widest";
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
/**
|
|
241
|
+
/**
|
|
242
|
+
* 意匠と節から円の区画間の弧の長さを引く (#2871 / #2926)。
|
|
243
|
+
*
|
|
244
|
+
* 区画の形を意匠で変えないため値は返さない。公開済みの関数なので互換の窓口だけを残す。
|
|
245
|
+
*/
|
|
242
246
|
export function 意匠の円の区画の間(
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
):
|
|
246
|
-
return
|
|
247
|
+
_theme: DslTheme,
|
|
248
|
+
_node: Pick<CdlNode, "kind">,
|
|
249
|
+
): undefined {
|
|
250
|
+
return undefined;
|
|
247
251
|
}
|
|
248
252
|
|
|
249
253
|
/** `barCornerRadii` が効く棒を描く節か。 */
|