Merged PR 173: Implements API methods through right click + more (read desc)
- Implements API methods through right click - Refactor events - Refactor usage of setHistory and setHistoryCurrentStep into a single function - Update ContainerOperations documentations - Added AddContainers in order to add multiple containers + refactor AddContainer to use it - Fix regression - Fix AddContainer at index
This commit is contained in:
parent
79c6874240
commit
57e6c9a156
20 changed files with 652 additions and 291 deletions
|
@ -90,6 +90,17 @@ const GetSVGLayoutConfiguration = () => {
|
|||
<line x1="{width}" y1="0" x2="0" y2="{height}" stroke="black" style='{userData.styleLine}'></line>
|
||||
`
|
||||
,
|
||||
Actions: [
|
||||
{
|
||||
Action: "SplitRemplissage",
|
||||
Label: "Diviser le remplissage",
|
||||
Description: "Diviser le remplissage en insérant un montant",
|
||||
CustomLogo: {
|
||||
Url: ""
|
||||
},
|
||||
AddingBehavior: 2
|
||||
}
|
||||
],
|
||||
Style: {
|
||||
fillOpacity: 1,
|
||||
strokeWidth: 1,
|
||||
|
@ -186,20 +197,30 @@ const FillHoleWithChassis = (request) => {
|
|||
}
|
||||
}
|
||||
return {
|
||||
ApplicationState: {
|
||||
Containers: lstModels
|
||||
}
|
||||
Containers: lstModels
|
||||
};
|
||||
};
|
||||
|
||||
const SplitRemplissage = (request) => {
|
||||
const lstModels = [
|
||||
{ Type: 'Remplissage' },
|
||||
{ Type: 'Montant' },
|
||||
{ Type: 'Remplissage' }
|
||||
{
|
||||
properties: {
|
||||
type: 'Remplissage'
|
||||
}
|
||||
},
|
||||
{
|
||||
properties: {
|
||||
type: 'Montant'
|
||||
}
|
||||
},
|
||||
{
|
||||
properties: {
|
||||
type: 'Remplissage'
|
||||
}
|
||||
},
|
||||
];
|
||||
|
||||
return {
|
||||
ApplicationState: { Containers: lstModels }
|
||||
Containers: lstModels
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue