diff --git a/src/App.tsx b/src/App.tsx index 516e2f1..7f9a129 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -81,7 +81,11 @@ class App extends React.Component { y: 0, width: properties?.Width, height: this.state.configuration.MainContainer.Height, - children: [] + children: [], + style: properties.Style, + userData: { + type + } }); const newMainContainer = new MainContainer({ diff --git a/src/Components/SVG/Elements/Container.tsx b/src/Components/SVG/Elements/Container.tsx index b1cf0d7..c3374ca 100644 --- a/src/Components/SVG/Elements/Container.tsx +++ b/src/Components/SVG/Elements/Container.tsx @@ -9,6 +9,7 @@ interface IContainerProps { width: number, height: number, style?: React.CSSProperties, + userData?: Record } export class Container extends React.Component { diff --git a/test-server/http.js b/test-server/http.js index 32ebb85..b30acac 100644 --- a/test-server/http.js +++ b/test-server/http.js @@ -16,7 +16,12 @@ serve({ BorderWidth: 48, MinWidth: 500, MaxWidth: 3000, - Width: 500 + Width: 500, + Style: { + fillOpacity: 0, + borderWidth: 2, + stroke: 'red' + } } ], AvailableSymbols: [],