diff --git a/d2compiler/compile_test.go b/d2compiler/compile_test.go index 04a82103c..7fc88f41c 100644 --- a/d2compiler/compile_test.go +++ b/d2compiler/compile_test.go @@ -2261,23 +2261,7 @@ layers: { x: { style.border-radius: -1 }`, - expErr: `d2/testdata/d2compiler/TestCompile/border-radius-negative.d2:3:24: expected "border-radius" to be a number between 0 and 20`, - }, - { - name: "border-radius-more-than-20", - text: `x -x: { - style.border-radius: 21 -}`, - expErr: `d2/testdata/d2compiler/TestCompile/border-radius-more-than-20.d2:3:24: expected "border-radius" to be a number between 0 and 20`, - }, - { - name: "border-radius-more-than-100-percent", - text: `x -x: { - style.border-radius: 1.5 -}`, - expErr: `d2/testdata/d2compiler/TestCompile/border-radius-more-than-100-percent.d2:3:24: expected "border-radius" to be an integer if greater than 1`, + expErr: `d2/testdata/d2compiler/TestCompile/border-radius-negative.d2:3:24: expected "border-radius" to be a number greater or equal to 0`, }, { name: "near_near_const", diff --git a/e2etests-cli/testdata/TestCLI_E2E/hello_world_png_sketch.exp.png b/e2etests-cli/testdata/TestCLI_E2E/hello_world_png_sketch.exp.png index db70b585c..75d351d33 100644 Binary files a/e2etests-cli/testdata/TestCLI_E2E/hello_world_png_sketch.exp.png and b/e2etests-cli/testdata/TestCLI_E2E/hello_world_png_sketch.exp.png differ diff --git a/e2etests-cli/testdata/TestCLI_E2E/internal_linked_pdf.exp.pdf b/e2etests-cli/testdata/TestCLI_E2E/internal_linked_pdf.exp.pdf index 23628020d..e447a9d7f 100644 Binary files a/e2etests-cli/testdata/TestCLI_E2E/internal_linked_pdf.exp.pdf and b/e2etests-cli/testdata/TestCLI_E2E/internal_linked_pdf.exp.pdf differ diff --git a/e2etests/stable_test.go b/e2etests/stable_test.go index d24f05afa..d4f59865e 100644 --- a/e2etests/stable_test.go +++ b/e2etests/stable_test.go @@ -2333,24 +2333,24 @@ three-dee: { `, }, { - name: "border-radius-percent", + name: "border-radius-pill-shape", script: ` x: { - style.border-radius: 0.1 + style.border-radius: 999 } y: { - style.border-radius: 0.2 + style.border-radius: 999 } multiple2: { - style.border-radius: 0.25 + style.border-radius: 999 style.multiple: true } double: { - style.border-radius: 0.35 + style.border-radius: 999 style.double-border: true } three-dee: { - style.border-radius: 0.3 + style.border-radius: 999 style.3d: true } `, diff --git a/e2etests/testdata/stable/arrowhead_adjustment/dagre/sketch.exp.svg b/e2etests/testdata/stable/arrowhead_adjustment/dagre/sketch.exp.svg index 5deab3ab2..54ce31c07 100644 --- a/e2etests/testdata/stable/arrowhead_adjustment/dagre/sketch.exp.svg +++ b/e2etests/testdata/stable/arrowhead_adjustment/dagre/sketch.exp.svg @@ -96,7 +96,7 @@ .d2-1296221605 .color-AA4{color:#EDF0FD;} .d2-1296221605 .color-AA5{color:#F7F8FE;} .d2-1296221605 .color-AB4{color:#EDF0FD;} - .d2-1296221605 .color-AB5{color:#F7F8FE;}.appendix text.text{fill:#0A0F25}.md{--color-fg-default:#0A0F25;--color-fg-muted:#676C7E;--color-fg-subtle:#9499AB;--color-canvas-default:#FFFFFF;--color-canvas-subtle:#EEF1F8;--color-border-default:#0D32B2;--color-border-muted:#0D32B2;--color-neutral-muted:#EEF1F8;--color-accent-fg:#0D32B2;--color-accent-emphasis:#0D32B2;--color-attention-subtle:#676C7E;--color-danger-fg:red;}.sketch-overlay-B1{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>abc * + .d2-1296221605 .color-AB5{color:#F7F8FE;}.appendix text.text{fill:#0A0F25}.md{--color-fg-default:#0A0F25;--color-fg-muted:#676C7E;--color-fg-subtle:#9499AB;--color-canvas-default:#FFFFFF;--color-canvas-subtle:#EEF1F8;--color-border-default:#0D32B2;--color-border-muted:#0D32B2;--color-neutral-muted:#EEF1F8;--color-accent-fg:#0D32B2;--color-accent-emphasis:#0D32B2;--color-attention-subtle:#676C7E;--color-danger-fg:red;}.sketch-overlay-B1{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>abc * \ No newline at end of file diff --git a/e2etests/testdata/stable/arrowhead_adjustment/elk/sketch.exp.svg b/e2etests/testdata/stable/arrowhead_adjustment/elk/sketch.exp.svg index 5dbc57b8c..687a8f073 100644 --- a/e2etests/testdata/stable/arrowhead_adjustment/elk/sketch.exp.svg +++ b/e2etests/testdata/stable/arrowhead_adjustment/elk/sketch.exp.svg @@ -96,7 +96,7 @@ .d2-1482414948 .color-AA4{color:#EDF0FD;} .d2-1482414948 .color-AA5{color:#F7F8FE;} .d2-1482414948 .color-AB4{color:#EDF0FD;} - .d2-1482414948 .color-AB5{color:#F7F8FE;}.appendix text.text{fill:#0A0F25}.md{--color-fg-default:#0A0F25;--color-fg-muted:#676C7E;--color-fg-subtle:#9499AB;--color-canvas-default:#FFFFFF;--color-canvas-subtle:#EEF1F8;--color-border-default:#0D32B2;--color-border-muted:#0D32B2;--color-neutral-muted:#EEF1F8;--color-accent-fg:#0D32B2;--color-accent-emphasis:#0D32B2;--color-attention-subtle:#676C7E;--color-danger-fg:red;}.sketch-overlay-B1{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>abc * + .d2-1482414948 .color-AB5{color:#F7F8FE;}.appendix text.text{fill:#0A0F25}.md{--color-fg-default:#0A0F25;--color-fg-muted:#676C7E;--color-fg-subtle:#9499AB;--color-canvas-default:#FFFFFF;--color-canvas-subtle:#EEF1F8;--color-border-default:#0D32B2;--color-border-muted:#0D32B2;--color-neutral-muted:#EEF1F8;--color-accent-fg:#0D32B2;--color-accent-emphasis:#0D32B2;--color-attention-subtle:#676C7E;--color-danger-fg:red;}.sketch-overlay-B1{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>abc * \ No newline at end of file diff --git a/e2etests/testdata/stable/border-radius-percent/dagre/sketch.exp.svg b/e2etests/testdata/stable/border-radius-percent/dagre/sketch.exp.svg deleted file mode 100644 index 684d85364..000000000 --- a/e2etests/testdata/stable/border-radius-percent/dagre/sketch.exp.svg +++ /dev/null @@ -1,97 +0,0 @@ -xymultiple2double - -three-dee - - - \ No newline at end of file diff --git a/e2etests/testdata/stable/border-radius-percent/dagre/board.exp.json b/e2etests/testdata/stable/border-radius-pill-shape/dagre/board.exp.json similarity index 97% rename from e2etests/testdata/stable/border-radius-percent/dagre/board.exp.json rename to e2etests/testdata/stable/border-radius-pill-shape/dagre/board.exp.json index 2193f8c97..bc1d49918 100644 --- a/e2etests/testdata/stable/border-radius-percent/dagre/board.exp.json +++ b/e2etests/testdata/stable/border-radius-pill-shape/dagre/board.exp.json @@ -15,7 +15,7 @@ "opacity": 1, "strokeDash": 0, "strokeWidth": 2, - "borderRadius": 0.1, + "borderRadius": 999, "fill": "B6", "stroke": "B1", "shadow": false, @@ -56,7 +56,7 @@ "opacity": 1, "strokeDash": 0, "strokeWidth": 2, - "borderRadius": 0.2, + "borderRadius": 999, "fill": "B6", "stroke": "B1", "shadow": false, @@ -97,7 +97,7 @@ "opacity": 1, "strokeDash": 0, "strokeWidth": 2, - "borderRadius": 0.25, + "borderRadius": 999, "fill": "B6", "stroke": "B1", "shadow": false, @@ -138,7 +138,7 @@ "opacity": 1, "strokeDash": 0, "strokeWidth": 2, - "borderRadius": 0.35, + "borderRadius": 999, "fill": "B6", "stroke": "B1", "shadow": false, @@ -179,7 +179,7 @@ "opacity": 1, "strokeDash": 0, "strokeWidth": 2, - "borderRadius": 0.3, + "borderRadius": 999, "fill": "B6", "stroke": "B1", "shadow": false, diff --git a/e2etests/testdata/stable/border-radius-pill-shape/dagre/sketch.exp.svg b/e2etests/testdata/stable/border-radius-pill-shape/dagre/sketch.exp.svg new file mode 100644 index 000000000..9f23c496a --- /dev/null +++ b/e2etests/testdata/stable/border-radius-pill-shape/dagre/sketch.exp.svg @@ -0,0 +1,97 @@ +xymultiple2double + +three-dee + + + \ No newline at end of file diff --git a/e2etests/testdata/stable/border-radius-percent/elk/board.exp.json b/e2etests/testdata/stable/border-radius-pill-shape/elk/board.exp.json similarity index 97% rename from e2etests/testdata/stable/border-radius-percent/elk/board.exp.json rename to e2etests/testdata/stable/border-radius-pill-shape/elk/board.exp.json index edaede7a9..2dbef6f05 100644 --- a/e2etests/testdata/stable/border-radius-percent/elk/board.exp.json +++ b/e2etests/testdata/stable/border-radius-pill-shape/elk/board.exp.json @@ -15,7 +15,7 @@ "opacity": 1, "strokeDash": 0, "strokeWidth": 2, - "borderRadius": 0.1, + "borderRadius": 999, "fill": "B6", "stroke": "B1", "shadow": false, @@ -56,7 +56,7 @@ "opacity": 1, "strokeDash": 0, "strokeWidth": 2, - "borderRadius": 0.2, + "borderRadius": 999, "fill": "B6", "stroke": "B1", "shadow": false, @@ -97,7 +97,7 @@ "opacity": 1, "strokeDash": 0, "strokeWidth": 2, - "borderRadius": 0.25, + "borderRadius": 999, "fill": "B6", "stroke": "B1", "shadow": false, @@ -138,7 +138,7 @@ "opacity": 1, "strokeDash": 0, "strokeWidth": 2, - "borderRadius": 0.35, + "borderRadius": 999, "fill": "B6", "stroke": "B1", "shadow": false, @@ -179,7 +179,7 @@ "opacity": 1, "strokeDash": 0, "strokeWidth": 2, - "borderRadius": 0.3, + "borderRadius": 999, "fill": "B6", "stroke": "B1", "shadow": false, diff --git a/e2etests/testdata/stable/border-radius-percent/elk/sketch.exp.svg b/e2etests/testdata/stable/border-radius-pill-shape/elk/sketch.exp.svg similarity index 56% rename from e2etests/testdata/stable/border-radius-percent/elk/sketch.exp.svg rename to e2etests/testdata/stable/border-radius-pill-shape/elk/sketch.exp.svg index 26c977807..b9ea856c3 100644 --- a/e2etests/testdata/stable/border-radius-percent/elk/sketch.exp.svg +++ b/e2etests/testdata/stable/border-radius-pill-shape/elk/sketch.exp.svg @@ -1,9 +1,9 @@ -xymultiple2double + .d2-2772170457 .fill-N1{fill:#0A0F25;} + .d2-2772170457 .fill-N2{fill:#676C7E;} + .d2-2772170457 .fill-N3{fill:#9499AB;} + .d2-2772170457 .fill-N4{fill:#CFD2DD;} + .d2-2772170457 .fill-N5{fill:#DEE1EB;} + .d2-2772170457 .fill-N6{fill:#EEF1F8;} + .d2-2772170457 .fill-N7{fill:#FFFFFF;} + .d2-2772170457 .fill-B1{fill:#0D32B2;} + .d2-2772170457 .fill-B2{fill:#0D32B2;} + .d2-2772170457 .fill-B3{fill:#E3E9FD;} + .d2-2772170457 .fill-B4{fill:#E3E9FD;} + .d2-2772170457 .fill-B5{fill:#EDF0FD;} + .d2-2772170457 .fill-B6{fill:#F7F8FE;} + .d2-2772170457 .fill-AA2{fill:#4A6FF3;} + .d2-2772170457 .fill-AA4{fill:#EDF0FD;} + .d2-2772170457 .fill-AA5{fill:#F7F8FE;} + .d2-2772170457 .fill-AB4{fill:#EDF0FD;} + .d2-2772170457 .fill-AB5{fill:#F7F8FE;} + .d2-2772170457 .stroke-N1{stroke:#0A0F25;} + .d2-2772170457 .stroke-N2{stroke:#676C7E;} + .d2-2772170457 .stroke-N3{stroke:#9499AB;} + .d2-2772170457 .stroke-N4{stroke:#CFD2DD;} + .d2-2772170457 .stroke-N5{stroke:#DEE1EB;} + .d2-2772170457 .stroke-N6{stroke:#EEF1F8;} + .d2-2772170457 .stroke-N7{stroke:#FFFFFF;} + .d2-2772170457 .stroke-B1{stroke:#0D32B2;} + .d2-2772170457 .stroke-B2{stroke:#0D32B2;} + .d2-2772170457 .stroke-B3{stroke:#E3E9FD;} + .d2-2772170457 .stroke-B4{stroke:#E3E9FD;} + .d2-2772170457 .stroke-B5{stroke:#EDF0FD;} + .d2-2772170457 .stroke-B6{stroke:#F7F8FE;} + .d2-2772170457 .stroke-AA2{stroke:#4A6FF3;} + .d2-2772170457 .stroke-AA4{stroke:#EDF0FD;} + .d2-2772170457 .stroke-AA5{stroke:#F7F8FE;} + .d2-2772170457 .stroke-AB4{stroke:#EDF0FD;} + .d2-2772170457 .stroke-AB5{stroke:#F7F8FE;} + .d2-2772170457 .background-color-N1{background-color:#0A0F25;} + .d2-2772170457 .background-color-N2{background-color:#676C7E;} + .d2-2772170457 .background-color-N3{background-color:#9499AB;} + .d2-2772170457 .background-color-N4{background-color:#CFD2DD;} + .d2-2772170457 .background-color-N5{background-color:#DEE1EB;} + .d2-2772170457 .background-color-N6{background-color:#EEF1F8;} + .d2-2772170457 .background-color-N7{background-color:#FFFFFF;} + .d2-2772170457 .background-color-B1{background-color:#0D32B2;} + .d2-2772170457 .background-color-B2{background-color:#0D32B2;} + .d2-2772170457 .background-color-B3{background-color:#E3E9FD;} + .d2-2772170457 .background-color-B4{background-color:#E3E9FD;} + .d2-2772170457 .background-color-B5{background-color:#EDF0FD;} + .d2-2772170457 .background-color-B6{background-color:#F7F8FE;} + .d2-2772170457 .background-color-AA2{background-color:#4A6FF3;} + .d2-2772170457 .background-color-AA4{background-color:#EDF0FD;} + .d2-2772170457 .background-color-AA5{background-color:#F7F8FE;} + .d2-2772170457 .background-color-AB4{background-color:#EDF0FD;} + .d2-2772170457 .background-color-AB5{background-color:#F7F8FE;} + .d2-2772170457 .color-N1{color:#0A0F25;} + .d2-2772170457 .color-N2{color:#676C7E;} + .d2-2772170457 .color-N3{color:#9499AB;} + .d2-2772170457 .color-N4{color:#CFD2DD;} + .d2-2772170457 .color-N5{color:#DEE1EB;} + .d2-2772170457 .color-N6{color:#EEF1F8;} + .d2-2772170457 .color-N7{color:#FFFFFF;} + .d2-2772170457 .color-B1{color:#0D32B2;} + .d2-2772170457 .color-B2{color:#0D32B2;} + .d2-2772170457 .color-B3{color:#E3E9FD;} + .d2-2772170457 .color-B4{color:#E3E9FD;} + .d2-2772170457 .color-B5{color:#EDF0FD;} + .d2-2772170457 .color-B6{color:#F7F8FE;} + .d2-2772170457 .color-AA2{color:#4A6FF3;} + .d2-2772170457 .color-AA4{color:#EDF0FD;} + .d2-2772170457 .color-AA5{color:#F7F8FE;} + .d2-2772170457 .color-AB4{color:#EDF0FD;} + .d2-2772170457 .color-AB5{color:#F7F8FE;}.appendix text.text{fill:#0A0F25}.md{--color-fg-default:#0A0F25;--color-fg-muted:#676C7E;--color-fg-subtle:#9499AB;--color-canvas-default:#FFFFFF;--color-canvas-subtle:#EEF1F8;--color-border-default:#0D32B2;--color-border-muted:#0D32B2;--color-neutral-muted:#EEF1F8;--color-accent-fg:#0D32B2;--color-accent-emphasis:#0D32B2;--color-attention-subtle:#676C7E;--color-danger-fg:red;}.sketch-overlay-B1{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>xymultiple2double -three-dee +three-dee \ No newline at end of file diff --git a/e2etests/testdata/stable/border-radius/dagre/sketch.exp.svg b/e2etests/testdata/stable/border-radius/dagre/sketch.exp.svg index 3eb369766..7f53a764d 100644 --- a/e2etests/testdata/stable/border-radius/dagre/sketch.exp.svg +++ b/e2etests/testdata/stable/border-radius/dagre/sketch.exp.svg @@ -89,7 +89,7 @@ .d2-441686790 .color-AA4{color:#EDF0FD;} .d2-441686790 .color-AA5{color:#F7F8FE;} .d2-441686790 .color-AB4{color:#EDF0FD;} - .d2-441686790 .color-AB5{color:#F7F8FE;}.appendix text.text{fill:#0A0F25}.md{--color-fg-default:#0A0F25;--color-fg-muted:#676C7E;--color-fg-subtle:#9499AB;--color-canvas-default:#FFFFFF;--color-canvas-subtle:#EEF1F8;--color-border-default:#0D32B2;--color-border-muted:#0D32B2;--color-neutral-muted:#EEF1F8;--color-accent-fg:#0D32B2;--color-accent-emphasis:#0D32B2;--color-attention-subtle:#676C7E;--color-danger-fg:red;}.sketch-overlay-B1{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>xymultiple2double + .d2-441686790 .color-AB5{color:#F7F8FE;}.appendix text.text{fill:#0A0F25}.md{--color-fg-default:#0A0F25;--color-fg-muted:#676C7E;--color-fg-subtle:#9499AB;--color-canvas-default:#FFFFFF;--color-canvas-subtle:#EEF1F8;--color-border-default:#0D32B2;--color-border-muted:#0D32B2;--color-neutral-muted:#EEF1F8;--color-accent-fg:#0D32B2;--color-accent-emphasis:#0D32B2;--color-attention-subtle:#676C7E;--color-danger-fg:red;}.sketch-overlay-B1{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>xymultiple2double three-dee diff --git a/e2etests/testdata/stable/border-radius/elk/sketch.exp.svg b/e2etests/testdata/stable/border-radius/elk/sketch.exp.svg index 2cf7fe92e..2f44a211a 100644 --- a/e2etests/testdata/stable/border-radius/elk/sketch.exp.svg +++ b/e2etests/testdata/stable/border-radius/elk/sketch.exp.svg @@ -89,7 +89,7 @@ .d2-2541858325 .color-AA4{color:#EDF0FD;} .d2-2541858325 .color-AA5{color:#F7F8FE;} .d2-2541858325 .color-AB4{color:#EDF0FD;} - .d2-2541858325 .color-AB5{color:#F7F8FE;}.appendix text.text{fill:#0A0F25}.md{--color-fg-default:#0A0F25;--color-fg-muted:#676C7E;--color-fg-subtle:#9499AB;--color-canvas-default:#FFFFFF;--color-canvas-subtle:#EEF1F8;--color-border-default:#0D32B2;--color-border-muted:#0D32B2;--color-neutral-muted:#EEF1F8;--color-accent-fg:#0D32B2;--color-accent-emphasis:#0D32B2;--color-attention-subtle:#676C7E;--color-danger-fg:red;}.sketch-overlay-B1{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>xymultiple2double + .d2-2541858325 .color-AB5{color:#F7F8FE;}.appendix text.text{fill:#0A0F25}.md{--color-fg-default:#0A0F25;--color-fg-muted:#676C7E;--color-fg-subtle:#9499AB;--color-canvas-default:#FFFFFF;--color-canvas-subtle:#EEF1F8;--color-border-default:#0D32B2;--color-border-muted:#0D32B2;--color-neutral-muted:#EEF1F8;--color-accent-fg:#0D32B2;--color-accent-emphasis:#0D32B2;--color-attention-subtle:#676C7E;--color-danger-fg:red;}.sketch-overlay-B1{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-B2{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-B3{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-B6{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AA2{fill:url(#streaks-dark);mix-blend-mode:overlay}.sketch-overlay-AA4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AA5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AB4{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-AB5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N1{fill:url(#streaks-darker);mix-blend-mode:lighten}.sketch-overlay-N2{fill:url(#streaks-dark);mix-blend-mode:overlay}.sketch-overlay-N3{fill:url(#streaks-normal);mix-blend-mode:color-burn}.sketch-overlay-N4{fill:url(#streaks-normal);mix-blend-mode:color-burn}.sketch-overlay-N5{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N6{fill:url(#streaks-bright);mix-blend-mode:darken}.sketch-overlay-N7{fill:url(#streaks-bright);mix-blend-mode:darken}.light-code{display: block}.dark-code{display: none}]]>xymultiple2double three-dee diff --git a/testdata/d2compiler/TestCompile/border-radius-more-than-100-percent.exp.json b/testdata/d2compiler/TestCompile/border-radius-more-than-100-percent.exp.json deleted file mode 100644 index 604c3015b..000000000 --- a/testdata/d2compiler/TestCompile/border-radius-more-than-100-percent.exp.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "graph": null, - "err": { - "ioerr": null, - "errs": [ - { - "range": "d2/testdata/d2compiler/TestCompile/border-radius-more-than-100-percent.d2,2:23:30-2:26:33", - "errmsg": "d2/testdata/d2compiler/TestCompile/border-radius-more-than-100-percent.d2:3:24: expected \"border-radius\" to be an integer if greater than 1" - } - ] - } -} diff --git a/testdata/d2compiler/TestCompile/border-radius-more-than-20.exp.json b/testdata/d2compiler/TestCompile/border-radius-more-than-20.exp.json deleted file mode 100644 index fd3b9618f..000000000 --- a/testdata/d2compiler/TestCompile/border-radius-more-than-20.exp.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "graph": null, - "err": { - "ioerr": null, - "errs": [ - { - "range": "d2/testdata/d2compiler/TestCompile/border-radius-more-than-20.d2,2:23:30-2:25:32", - "errmsg": "d2/testdata/d2compiler/TestCompile/border-radius-more-than-20.d2:3:24: expected \"border-radius\" to be a number between 0 and 20" - } - ] - } -} diff --git a/testdata/d2compiler/TestCompile/border-radius-negative.exp.json b/testdata/d2compiler/TestCompile/border-radius-negative.exp.json index 25584f80a..fe11d846b 100644 --- a/testdata/d2compiler/TestCompile/border-radius-negative.exp.json +++ b/testdata/d2compiler/TestCompile/border-radius-negative.exp.json @@ -5,7 +5,7 @@ "errs": [ { "range": "d2/testdata/d2compiler/TestCompile/border-radius-negative.d2,2:23:30-2:25:32", - "errmsg": "d2/testdata/d2compiler/TestCompile/border-radius-negative.d2:3:24: expected \"border-radius\" to be a number between 0 and 20" + "errmsg": "d2/testdata/d2compiler/TestCompile/border-radius-negative.d2:3:24: expected \"border-radius\" to be a number greater or equal to 0" } ] }