http.js reduce API size
This commit is contained in:
parent
0fd354fc1f
commit
d1e04769bb
1 changed files with 16 additions and 179 deletions
|
@ -43,23 +43,8 @@ const GetSVGLayoutConfiguration = () => {
|
|||
return {
|
||||
AvailableContainers: [
|
||||
{
|
||||
BodyColor: null,
|
||||
BorderColor: '#ff0000',
|
||||
BorderWidth: 48,
|
||||
ContainerActions: null,
|
||||
ContainerDimensionning: null,
|
||||
DefaultChildrenContainers: null,
|
||||
Height: 0,
|
||||
IsPositionFixed: false,
|
||||
IsWidthFixed: false,
|
||||
MaxHeight: 0,
|
||||
MaxWidth: 3000,
|
||||
MinHeight: 0,
|
||||
MinWidth: 500,
|
||||
Type: 'Chassis',
|
||||
TypeChildContainerDefault: 'Trou',
|
||||
Width: 500,
|
||||
XPositionReference: 0,
|
||||
Style: {
|
||||
fillOpacity: 0,
|
||||
borderWidth: 2,
|
||||
|
@ -67,158 +52,25 @@ const GetSVGLayoutConfiguration = () => {
|
|||
}
|
||||
},
|
||||
{
|
||||
BodyColor: null,
|
||||
BorderColor: '#FFFFFF',
|
||||
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
|
||||
Width: 300,
|
||||
Style: {
|
||||
fillOpacity: 0,
|
||||
borderWidth: 2,
|
||||
stroke: 'green'
|
||||
}
|
||||
},
|
||||
{
|
||||
BodyColor: '#99C8FF',
|
||||
BorderColor: '#00FF00',
|
||||
BorderWidth: 0,
|
||||
ContainerActions: [
|
||||
{
|
||||
Action: 'SplitRemplissage',
|
||||
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
|
||||
},
|
||||
{
|
||||
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
|
||||
},
|
||||
{
|
||||
BodyColor: '#FFA3D1',
|
||||
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
|
||||
},
|
||||
{
|
||||
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,
|
||||
XPositionReference: 0
|
||||
},
|
||||
{
|
||||
BodyColor: '#dee2e4',
|
||||
BorderColor: '#54616c',
|
||||
BorderWidth: 0,
|
||||
ContainerActions: [
|
||||
{
|
||||
Action: 'FillHoleWithChassis',
|
||||
AddingBehavior: 1,
|
||||
CustomLogo: {
|
||||
Base64Image: null,
|
||||
Name: null,
|
||||
Svg: null,
|
||||
Url: ''
|
||||
},
|
||||
Description: 'Remplir le trou avec des châssis',
|
||||
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
|
||||
Width: 100,
|
||||
Style: {
|
||||
fillOpacity: 0,
|
||||
borderWidth: 2,
|
||||
stroke: 'blue',
|
||||
transform: 'translateX(-50%)',
|
||||
transformOrigin: 'center',
|
||||
transformBox: 'fill-box'
|
||||
}
|
||||
}
|
||||
],
|
||||
AvailableSymbols: [
|
||||
|
@ -248,23 +100,8 @@ const GetSVGLayoutConfiguration = () => {
|
|||
}
|
||||
],
|
||||
MainContainer: {
|
||||
BodyColor: null,
|
||||
BorderColor: '#FFFFFF',
|
||||
BorderWidth: 0,
|
||||
ContainerActions: null,
|
||||
ContainerDimensionning: null,
|
||||
DefaultChildrenContainers: null,
|
||||
Height: 200,
|
||||
IsPositionFixed: false,
|
||||
IsWidthFixed: false,
|
||||
MaxHeight: 0,
|
||||
MaxWidth: 0,
|
||||
MinHeight: 0,
|
||||
MinWidth: 0,
|
||||
Type: 'Trou',
|
||||
TypeChildContainerDefault: null,
|
||||
Width: 1000,
|
||||
XPositionReference: 0
|
||||
Width: 1000
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue