Implement DefaultChildType
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Siklos 2022-08-18 15:51:45 +02:00
parent f268011315
commit 9f9ec8dc65
4 changed files with 78 additions and 7 deletions

View file

@ -55,6 +55,7 @@ const GetSVGLayoutConfiguration = () => {
Type: 'Chassis',
Width: 500,
MinWidth: 200,
DefaultChildType: 'Trou',
Style: {
fillOpacity: 1,
strokeWidth: 2,
@ -68,6 +69,7 @@ const GetSVGLayoutConfiguration = () => {
DefaultY: 10,
Width: 480,
Height: 180,
DefaultChildType: 'Remplissage',
Style: {
fillOpacity: 1,
strokeWidth: 2,
@ -77,6 +79,7 @@ const GetSVGLayoutConfiguration = () => {
},
{
Type: 'Remplissage',
DefaultChildType: 'Trou',
CustomSVG: `
<rect width="{width}" height="{height}" style="{style}"></rect>
<rect width="{width}" height="{height}" stroke="black" fill-opacity="0"></rect>