Implement #7539
This commit is contained in:
parent
2c6b511a2f
commit
7c83116df1
8 changed files with 32 additions and 9 deletions
|
@ -227,6 +227,8 @@ export const DEFAULT_MAINCONTAINER_PROPS: IContainerProperties = {
|
|||
* @param parent Parent of the container
|
||||
* @param x horizontal offset
|
||||
* @param y vertical offset
|
||||
* @param width
|
||||
* @param height
|
||||
* @param containerConfig default config of the container sent by the API
|
||||
* @returns {IContainerProperties} Default properties of a newly created container
|
||||
*/
|
||||
|
@ -276,8 +278,10 @@ export function GetDefaultSymbolModel(name: string,
|
|||
newCounters: Record<string, number>,
|
||||
type: string,
|
||||
symbolConfig: IAvailableSymbol): ISymbolModel {
|
||||
const id = `${name}-${newCounters[type]}`;
|
||||
return {
|
||||
id: `${name}-${newCounters[type]}`,
|
||||
id,
|
||||
displayedText: symbolConfig.DisplayedText ?? id,
|
||||
type: name,
|
||||
config: structuredClone(symbolConfig),
|
||||
x: 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue