Move dimension options in Dimensions class
This commit is contained in:
parent
96c3fbdf4e
commit
3d6d979389
11 changed files with 112 additions and 77 deletions
|
@ -339,8 +339,8 @@ export function ContainerForm(props: IContainerFormProps): JSX.Element {
|
|||
id='showSelfDimensions'
|
||||
name='ShowSelfDimensions'
|
||||
labelText={Text({ textId: '@ContainerShowDimension' })}
|
||||
value={props.properties.showSelfDimensions}
|
||||
onChange={props.onChange}
|
||||
value={props.properties.dimensionOptions.showSelfDimensions}
|
||||
onChange={(key, value) => props.onChange(key, value, PropertyType.DimensionOptions)}
|
||||
/>
|
||||
</div>
|
||||
}
|
||||
|
@ -351,8 +351,8 @@ export function ContainerForm(props: IContainerFormProps): JSX.Element {
|
|||
id='showChildrenDimensions'
|
||||
name='ShowChildrenDimensions'
|
||||
labelText={Text({ textId: '@ContainerShowChildrenDimension' })}
|
||||
value={props.properties.showChildrenDimensions}
|
||||
onChange={props.onChange}
|
||||
value={props.properties.dimensionOptions.showChildrenDimensions}
|
||||
onChange={(key, value) => props.onChange(key, value, PropertyType.DimensionOptions)}
|
||||
/>
|
||||
</div>
|
||||
}
|
||||
|
@ -363,9 +363,9 @@ export function ContainerForm(props: IContainerFormProps): JSX.Element {
|
|||
<OrientationCheckboxes
|
||||
id='markPosition'
|
||||
name='MarkPosition'
|
||||
value={props.properties.markPosition}
|
||||
value={props.properties.dimensionOptions.markPosition}
|
||||
labelText={Text({ textId: '@ContainerMarkPosition' })}
|
||||
onChange={props.onChange}
|
||||
onChange={(key, value) => props.onChange(key, value, PropertyType.DimensionOptions)}
|
||||
/>
|
||||
</div>
|
||||
<div className='grid grid-cols-1 gap-2'>
|
||||
|
@ -373,8 +373,8 @@ export function ContainerForm(props: IContainerFormProps): JSX.Element {
|
|||
id='showDimensionWithMarks'
|
||||
name='ShowDimensionWithMarks'
|
||||
labelText={Text({ textId: '@ContainerShowDimensionWithMarks' })}
|
||||
value={props.properties.showDimensionWithMarks}
|
||||
onChange={props.onChange}
|
||||
value={props.properties.dimensionOptions.showDimensionWithMarks}
|
||||
onChange={(key, value) => props.onChange(key, value, PropertyType.DimensionOptions)}
|
||||
/>
|
||||
</div>
|
||||
</>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue