test-server: Truly fix the api
This commit is contained in:
parent
94c9ac26c0
commit
a70c336e80
1 changed files with 171 additions and 39 deletions
|
@ -43,91 +43,223 @@ const GetSVGLayoutConfiguration = () => {
|
||||||
return {
|
return {
|
||||||
AvailableContainers: [
|
AvailableContainers: [
|
||||||
{
|
{
|
||||||
Type: 'Chassis',
|
BodyColor: null,
|
||||||
BorderColor: '#ff0000',
|
BorderColor: '#ff0000',
|
||||||
TypeChildContainerDefault: 'Trou',
|
|
||||||
BorderWidth: 48,
|
BorderWidth: 48,
|
||||||
MinWidth: 500,
|
ContainerActions: null,
|
||||||
|
ContainerDimensionning: null,
|
||||||
|
DefaultChildrenContainers: null,
|
||||||
|
Height: 0,
|
||||||
|
IsPositionFixed: false,
|
||||||
|
IsWidthFixed: false,
|
||||||
|
MaxHeight: 0,
|
||||||
MaxWidth: 3000,
|
MaxWidth: 3000,
|
||||||
Width: 500,
|
MinHeight: 0,
|
||||||
Style: {
|
MinWidth: 500,
|
||||||
fillOpacity: 0,
|
Type: 'Chassis',
|
||||||
borderWidth: 2,
|
TypeChildContainerDefault: 'Trou',
|
||||||
stroke: 'red'
|
Width: 0,
|
||||||
}
|
XPositionReference: 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Type: 'Trou',
|
BodyColor: null,
|
||||||
BorderColor: '#FFFFFF',
|
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',
|
BodyColor: '#99C8FF',
|
||||||
BorderColor: '#00FF00',
|
BorderColor: '#00FF00',
|
||||||
ContainerDimensionning: {
|
BorderWidth: 0,
|
||||||
DimensionningStyle: 1
|
|
||||||
},
|
|
||||||
ContainerActions: [
|
ContainerActions: [
|
||||||
{
|
{
|
||||||
Action: 'SplitRemplissage',
|
Action: 'SplitRemplissage',
|
||||||
Label: 'Diviser le remplissage',
|
AddingBehavior: 0,
|
||||||
Description: 'Diviser le remplissage en insérant un montant',
|
|
||||||
CustomLogo: {
|
CustomLogo: {
|
||||||
|
Base64Image: null,
|
||||||
|
Name: null,
|
||||||
|
Svg: null,
|
||||||
Url: ''
|
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',
|
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,
|
Width: 50,
|
||||||
XPositionReference: 1
|
XPositionReference: 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Type: 'Ouverture',
|
|
||||||
BorderColor: '#FF6DE6',
|
|
||||||
BodyColor: '#FFA3D1',
|
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',
|
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,
|
Width: 8,
|
||||||
ContainerDimensionning: { ShowLabel: false }
|
XPositionReference: 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Type: '',
|
|
||||||
BorderColor: '#54616c',
|
|
||||||
BodyColor: '#dee2e4',
|
BodyColor: '#dee2e4',
|
||||||
ContainerActions: [{
|
BorderColor: '#54616c',
|
||||||
ContainerActions: {
|
BorderWidth: 0,
|
||||||
|
ContainerActions: [
|
||||||
|
{
|
||||||
Action: 'FillHoleWithChassis',
|
Action: 'FillHoleWithChassis',
|
||||||
Label: 'Calepiner',
|
AddingBehavior: 1,
|
||||||
|
CustomLogo: {
|
||||||
|
Base64Image: null,
|
||||||
|
Name: null,
|
||||||
|
Svg: null,
|
||||||
|
Url: ''
|
||||||
|
},
|
||||||
Description: 'Remplir le trou avec des châssis',
|
Description: 'Remplir le trou avec des châssis',
|
||||||
CustomLogo: { Url: '' },
|
Id: null,
|
||||||
AddingBehavior: 0
|
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: [
|
AvailableSymbols: [
|
||||||
{
|
{
|
||||||
|
Height: 0,
|
||||||
|
Image: {
|
||||||
|
Base64Image: null,
|
||||||
|
Name: null,
|
||||||
|
Svg: null,
|
||||||
|
Url: 'https://www.manutan.fr/img/S/GRP/ST/AIG3930272.jpg'
|
||||||
|
},
|
||||||
Name: 'Poteau structure',
|
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',
|
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: {
|
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',
|
Type: 'Trou',
|
||||||
BorderColor: '#ffffff',
|
TypeChildContainerDefault: null,
|
||||||
Height: 300,
|
Width: 20000,
|
||||||
Width: 2000
|
XPositionReference: 0
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue