Skip to content

Commit

Permalink
Fixing SVG string for WIP on the new DMN Editor
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagobento committed Dec 27, 2023
1 parent c4d888e commit 49eeb93
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions packages/dmn-editor-envelope/src/DmnEditorFactory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,26 +56,24 @@ export class DmnEditorInterface implements Editor {

public getPreview(): Promise<string | undefined> {
return Promise.resolve(`
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"
width="1080" height="1080" viewBox="0 0 1080 1080" xml:space="preserve">
<g transform="matrix(1 0 0 1 540 540)" id="ee1530d3-d469-49de-b8ad-62ffb6e5db7a"></g>
<g transform="matrix(1 0 0 1 540 540)" id="b6eca5e2-94e1-4e3f-a04e-16bc0ada9ea4">
width="540" height="540" viewBox="0 0 540 540" xml:space="preserve">
<g transform="matrix(1 0 0 1 270 270)" id="ee1530d3-d469-49de-b8ad-62ffb6e5db7a"></g>
<g transform="matrix(1 0 0 1 270 270)" id="b6eca5e2-94e1-4e3f-a04e-16bc0ada9ea4">
<rect style="stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(255,255,255); fill-rule: nonzero; opacity: 1; visibility: hidden;" vector-effect="non-scaling-stroke" x="-540" y="-540" rx="0" ry="0" width="1080" height="1080" />
</g>
<g transform="matrix(0.68 0 0 0.68 540 292.07)" style="" id="12bd02ec-b291-4d62-acdc-3fdd30cc84d7" >
<g transform="matrix(0.68 0 0 0.68 270 192.07)" style="" id="12bd02ec-b291-4d62-acdc-3fdd30cc84d7" >
<text xml:space="preserve" font-family="Raleway" font-size="105" font-style="normal" font-weight="900" style="stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(0,0,0); fill-rule: nonzero; opacity: 1; white-space: pre;" >
<tspan x="-187.11" y="-26.34" >Not yet</tspan>
<tspan x="-351.65" y="92.31" >implemented</tspan>
<tspan x="-321.65" y="92.31" >implemented</tspan>
</text>
</g>
<g transform="matrix(1 0 0 1 523.42 454.97)" style="" id="b2ea8c5b-9fc6-43c0-9e3f-5837adab8b51" >
<text xml:space="preserve" font-family="Alegreya" font-size="44" font-style="normal" font-weight="700" style="stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(0,0,0); fill-rule: nonzero; opacity: 1; white-space: pre;" >
<tspan x="-270.07" y="-11.04" style="white-space: pre; ">Use the legacy DMN Editor to </tspan>
<tspan x="-251.26" y="38.68" >generate SVGs temporarily.</tspan>
<g transform="matrix(1 0 0 1 200 354.97)" style="" id="b2ea8c5b-9fc6-43c0-9e3f-5837adab8b51" >
<text xml:space="preserve" font-family="Alegreya" font-size="38" font-style="normal" font-weight="700" style="stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(0,0,0); fill-rule: nonzero; opacity: 1; white-space: pre;" >
<tspan x="-190" y="-11.04" style="white-space: pre; ">Use the legacy DMN Editor to </tspan>
<tspan x="-170" y="38.68" >generate SVGs temporarily.</tspan>
</text>
</g>
</svg>`);
Expand Down

0 comments on commit 49eeb93

Please sign in to comment.