Merged PR 194: Added option to disable any API call

Added option to disable any API call
Fix http.js and node-http.js
Fix MainContainer not using IAvailableContainer from MainContainer
Fix generate_dts.py script
More docs
Fix MainContainer default style. Extend config will now be taken into account. But Main container can still have its own type.
This commit is contained in:
Eric Nguyen 2022-09-23 15:59:42 +00:00
parent 8ba19cc96b
commit 3ecff4cf01
10 changed files with 648 additions and 570 deletions

View file

@ -2,7 +2,7 @@ import http from 'http';
const host = 'localhost';
const port = 5000;
const requestListener = async(request, response) => {
const requestListener = async (request, response) => {
response.setHeader('Access-Control-Allow-Origin', '*');
response.setHeader('Access-Control-Allow-Headers', '*');
response.setHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, PATCH, OPTIONS');
@ -81,7 +81,6 @@ const GetSVGLayoutConfiguration = () => {
stroke: 'red',
fill: '#d3c9b7',
},
HideChildrenInTreeview: true,
ShowSelfDimensions: true,
IsDimensionBorrower: true,
Category: "Stuff"
@ -89,8 +88,6 @@ const GetSVGLayoutConfiguration = () => {
{
Type: 'Trou',
Blacklist: ["Chassis"],
DefaultX: 0,
DefaultY: 0,
Margin: {
left: 10,
bottom: 10,
@ -118,10 +115,14 @@ const GetSVGLayoutConfiguration = () => {
,
Actions: [
{
Id: "SplitRemplissage",
Action: "SplitRemplissage",
Label: "Diviser le remplissage",
Description: "Diviser le remplissage en insérant un montant",
CustomLogo: {
Base64Image: null,
Name: 'Image1',
Svg: null,
Url: ""
},
AddingBehavior: 2
@ -192,7 +193,7 @@ const GetSVGLayoutConfiguration = () => {
Height: 32,
Image: {
Base64Image: null,
Name: null,
Name: 'Image1',
Svg: null,
Url: 'https://www.manutan.fr/img/S/GRP/ST/AIG3930272.jpg'
},
@ -204,7 +205,7 @@ const GetSVGLayoutConfiguration = () => {
Height: 32,
Image: {
Base64Image: null,
Name: null,
Name: 'Image2',
Svg: null,
Url: 'https://e7.pngegg.com/pngimages/647/127/png-clipart-svg-working-group-information-world-wide-web-internet-structure.png'
},
@ -222,11 +223,13 @@ const GetSVGLayoutConfiguration = () => {
DisplayedText: "Stuff not made here"
}
],
Patterns: [],
MainContainer: {
Height: 200,
Width: 800
Type: 'main',
Width: 800,
Height: 200
}
};
}
};
const FillHoleWithChassis = (request) => {