Merged PR 198: Change MarkPosition for multiple orientation
Implement EnumCheckboxGroupInput
This commit is contained in:
parent
417829945f
commit
7836d27d5f
12 changed files with 164 additions and 68 deletions
|
@ -152,7 +152,7 @@ function UnlinkContainerFromSymbols(symbols: Map<string, ISymbolModel>, containe
|
|||
*/
|
||||
export function OnPropertyChange(
|
||||
key: string,
|
||||
value: string | number | boolean,
|
||||
value: string | number | boolean | number[],
|
||||
type: PropertyType = PropertyType.Simple,
|
||||
selected: IContainerModel | undefined,
|
||||
fullHistory: IHistoryState[],
|
||||
|
@ -247,7 +247,7 @@ export function SortChildren(parentClone: IContainerModel | null | undefined): v
|
|||
*/
|
||||
function SetContainer(
|
||||
container: ContainerModel,
|
||||
key: string, value: string | number | boolean,
|
||||
key: string, value: string | number | boolean | number[],
|
||||
type: PropertyType,
|
||||
symbols: Map<string, ISymbolModel>
|
||||
): void {
|
||||
|
@ -282,7 +282,7 @@ function SetContainer(
|
|||
* @param value Value of the property
|
||||
* @param type Type of the property
|
||||
*/
|
||||
function AssignProperty(container: ContainerModel, key: string, value: string | number | boolean, type: PropertyType): void {
|
||||
function AssignProperty(container: ContainerModel, key: string, value: string | number | boolean | number[], type: PropertyType): void {
|
||||
switch (type) {
|
||||
case PropertyType.Style:
|
||||
(container.properties.style as any)[key] = value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue