test-server: Truly fix the api

This commit is contained in:
Siklos 2022-08-01 11:26:52 +02:00
parent 94c9ac26c0
commit a70c336e80

View file

@ -43,91 +43,223 @@ const GetSVGLayoutConfiguration = () => {
return {
AvailableContainers: [
{
Type: 'Chassis',
BodyColor: null,
BorderColor: '#ff0000',
TypeChildContainerDefault: 'Trou',
BorderWidth: 48,
MinWidth: 500,
ContainerActions: null,
ContainerDimensionning: null,
DefaultChildrenContainers: null,
Height: 0,
IsPositionFixed: false,
IsWidthFixed: false,
MaxHeight: 0,
MaxWidth: 3000,
Width: 500,
Style: {
fillOpacity: 0,
borderWidth: 2,
stroke: 'red'
}
MinHeight: 0,
MinWidth: 500,
Type: 'Chassis',
TypeChildContainerDefault: 'Trou',
Width: 0,
XPositionReference: 0
},
{
Type: 'Trou',
BodyColor: null,
BorderColor: '#FFFFFF',
TypeChildContainerDefault: 'Remplissage'
BorderWidth: 0,
ContainerActions: null,
ContainerDimensionning: null,
DefaultChildrenContainers: null,
Height: 0,
IsPositionFixed: false,
IsWidthFixed: false,
MaxHeight: 0,
MaxWidth: 0,
MinHeight: 0,
MinWidth: 0,
Type: 'Trou',
TypeChildContainerDefault: 'Remplissage',
Width: 0,
XPositionReference: 0
},
{
Type: 'Remplissage',
BodyColor: '#99C8FF',
BorderColor: '#00FF00',
ContainerDimensionning: {
DimensionningStyle: 1
},
BorderWidth: 0,
ContainerActions: [
{
Action: 'SplitRemplissage',
Label: 'Diviser le remplissage',
Description: 'Diviser le remplissage en insérant un montant',
AddingBehavior: 0,
CustomLogo: {
Base64Image: null,
Name: null,
Svg: null,
Url: ''
},
Description: 'Diviser le remplissage en insérant un montant',
Id: null,
Label: 'Diviser le remplissage'
}
}
]
],
ContainerDimensionning: {
DimensionningStyle: 1,
ShowDimensionning: false,
ShowLabel: false
},
DefaultChildrenContainers: null,
Height: 0,
IsPositionFixed: false,
IsWidthFixed: false,
MaxHeight: 0,
MaxWidth: 0,
MinHeight: 0,
MinWidth: 0,
Type: 'Remplissage',
TypeChildContainerDefault: null,
Width: 0,
XPositionReference: 0
},
{
Type: 'Montant',
BorderColor: '#FFA947',
BodyColor: '#FFA947',
BorderColor: '#FFA947',
BorderWidth: 0,
ContainerActions: null,
ContainerDimensionning: null,
DefaultChildrenContainers: null,
Height: 0,
IsPositionFixed: false,
IsWidthFixed: false,
MaxHeight: 0,
MaxWidth: 0,
MinHeight: 0,
MinWidth: 0,
Type: 'Montant',
TypeChildContainerDefault: null,
Width: 50,
XPositionReference: 1
},
{
Type: 'Ouverture',
BorderColor: '#FF6DE6',
BodyColor: '#FFA3D1',
ContainerDimensionning: { ShowDimensionning: false }
BorderColor: '#FF6DE6',
BorderWidth: 0,
ContainerActions: null,
ContainerDimensionning: {
DimensionningStyle: 0,
ShowDimensionning: false,
ShowLabel: false
},
DefaultChildrenContainers: null,
Height: 0,
IsPositionFixed: false,
IsWidthFixed: false,
MaxHeight: 0,
MaxWidth: 0,
MinHeight: 0,
MinWidth: 0,
Type: 'Ouverture',
TypeChildContainerDefault: null,
Width: 0,
XPositionReference: 0
},
{
Type: 'Dilatation',
BodyColor: '#000000',
BorderColor: null,
BorderWidth: 0,
ContainerActions: null,
ContainerDimensionning: {
DimensionningStyle: 0,
ShowDimensionning: false,
ShowLabel: false
},
DefaultChildrenContainers: null,
Height: 0,
IsPositionFixed: false,
IsWidthFixed: false,
MaxHeight: 0,
MaxWidth: 0,
MinHeight: 0,
MinWidth: 0,
Type: 'Dilatation',
TypeChildContainerDefault: null,
Width: 8,
ContainerDimensionning: { ShowLabel: false }
XPositionReference: 0
},
{
Type: '',
BorderColor: '#54616c',
BodyColor: '#dee2e4',
ContainerActions: [{
ContainerActions: {
BorderColor: '#54616c',
BorderWidth: 0,
ContainerActions: [
{
Action: 'FillHoleWithChassis',
Label: 'Calepiner',
AddingBehavior: 1,
CustomLogo: {
Base64Image: null,
Name: null,
Svg: null,
Url: ''
},
Description: 'Remplir le trou avec des châssis',
CustomLogo: { Url: '' },
AddingBehavior: 0
Id: null,
Label: 'Calepiner'
}
}]
],
ContainerDimensionning: null,
DefaultChildrenContainers: null,
Height: 0,
IsPositionFixed: false,
IsWidthFixed: false,
MaxHeight: 0,
MaxWidth: 0,
MinHeight: 0,
MinWidth: 0,
Type: '',
TypeChildContainerDefault: null,
Width: 0,
XPositionReference: 0
}
],
AvailableSymbols: [
{
Height: 0,
Image: {
Base64Image: null,
Name: null,
Svg: null,
Url: 'https://www.manutan.fr/img/S/GRP/ST/AIG3930272.jpg'
},
Name: 'Poteau structure',
Image: { Url: 'https://www.manutan.fr/img/S/GRP/ST/AIG3930272.jpg' }
Width: 0,
XPositionReference: 1
},
{
Height: 0,
Image: {
Base64Image: null,
Name: null,
Svg: null,
Url: 'https://e7.pngegg.com/pngimages/647/127/png-clipart-svg-working-group-information-world-wide-web-internet-structure.png'
},
Name: 'Joint de structure',
Image: { Url: 'https://e7.pngegg.com/pngimages/647/127/png-clipart-svg-working-group-information-world-wide-web-internet-structure.png' }
Width: 0,
XPositionReference: 0
}
],
MainContainer: {
BodyColor: null,
BorderColor: '#FFFFFF',
BorderWidth: 0,
ContainerActions: null,
ContainerDimensionning: null,
DefaultChildrenContainers: null,
Height: 1600,
IsPositionFixed: false,
IsWidthFixed: false,
MaxHeight: 0,
MaxWidth: 0,
MinHeight: 0,
MinWidth: 0,
Type: 'Trou',
BorderColor: '#ffffff',
Height: 300,
Width: 2000
TypeChildContainerDefault: null,
Width: 20000,
XPositionReference: 0
}
};
};