Implement Category list

This commit is contained in:
Eric NGUYEN 2022-09-16 16:23:17 +02:00
parent 9f24d2d40a
commit 0476a294d6
7 changed files with 61 additions and 51 deletions

View file

@ -77,7 +77,7 @@ const GetSVGLayoutConfiguration = () => {
},
ShowSelfDimensions: true,
IsDimensionBorrower: true,
Category: "Category"
Category: "Stuff"
},
{
Type: 'Trou',
@ -96,11 +96,11 @@ const GetSVGLayoutConfiguration = () => {
stroke: 'green',
fill: 'white'
},
Category: "Category"
Category: "Stuff"
},
{
Type: 'Remplissage',
Category: "Category2",
Category: "Other stuff",
CustomSVG: `
<rect width="{width}" height="{height}" style="{style}"></rect>
<rect width="{width}" height="{height}" stroke="black" fill-opacity="0"></rect>
@ -204,6 +204,16 @@ const GetSVGLayoutConfiguration = () => {
XPositionReference: 0
}
],
Categories: [
{
Type: "Stuff",
DisplayedText: "Stuff made here"
},
{
Type: "Other stuff",
DisplayedText: "Stuff not made here"
}
],
MainContainer: {
Height: 200,
Width: 800