[Fix] SymbolDimension (Canvas/Svg) => DEFAULT_DIMENSION_SYMBOL_STYLE in default.ts
This commit is contained in:
parent
6b6175a521
commit
869cd2a7c4
3 changed files with 11 additions and 14 deletions
|
@ -9,6 +9,7 @@ import { type ISymbolModel } from '../Interfaces/ISymbolModel';
|
|||
import { Orientation } from '../Enums/Orientation';
|
||||
import { AppState } from '../Enums/AppState';
|
||||
import { type IDimensionOptions } from '../Interfaces/IDimensionOptions';
|
||||
import { type IDimensionStyle } from '../Components/SVG/Elements/Dimension';
|
||||
|
||||
/// EDITOR DEFAULTS ///
|
||||
|
||||
|
@ -69,6 +70,9 @@ export const SHOW_BORROWER_DIMENSIONS = true;
|
|||
export const DIMENSION_MARGIN = 50;
|
||||
export const SYMBOL_MARGIN = 25;
|
||||
export const NOTCHES_LENGTH = 10;
|
||||
export const DEFAULT_DIMENSION_SYMBOL_STYLE: IDimensionStyle = {
|
||||
color: '#000000'
|
||||
};
|
||||
|
||||
/// SYMBOL DEFAULTS ///
|
||||
|
||||
|
@ -306,7 +310,7 @@ export function GetDefaultSymbolModel(name: string,
|
|||
type: name,
|
||||
config: structuredClone(symbolConfig),
|
||||
offset: 0,
|
||||
isVertical : symbolConfig.isVertical ?? DEFAULT_SYMBOL_IS_VERTICAL,
|
||||
isVertical: symbolConfig.isVertical ?? DEFAULT_SYMBOL_IS_VERTICAL,
|
||||
width: symbolConfig.Width ?? DEFAULT_SYMBOL_WIDTH,
|
||||
height: symbolConfig.Height ?? DEFAULT_SYMBOL_HEIGHT,
|
||||
linkedContainers: new Set(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue