Skip to content
Snippets Groups Projects
Commit 28beb5ab authored by Alexander Rose's avatar Alexander Rose
Browse files

canvas ui fixes

parent aa032067
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,7 @@ export class StructureRepresentationComponent extends React.Component<StructureR ...@@ -57,7 +57,7 @@ export class StructureRepresentationComponent extends React.Component<StructureR
flatShaded: (repr.props as any).flatShaded, flatShaded: (repr.props as any).flatShaded,
resolutionFactor: (repr.props as any).resolutionFactor, resolutionFactor: (repr.props as any).resolutionFactor,
radiusOffset: (repr.props as any).probeRadius, radiusOffset: (repr.props as any).radiusOffset,
smoothness: (repr.props as any).smoothness, smoothness: (repr.props as any).smoothness,
}) })
} }
...@@ -73,7 +73,7 @@ export class StructureRepresentationComponent extends React.Component<StructureR ...@@ -73,7 +73,7 @@ export class StructureRepresentationComponent extends React.Component<StructureR
if (state.flatShaded !== undefined) (props as any).flatShaded = state.flatShaded if (state.flatShaded !== undefined) (props as any).flatShaded = state.flatShaded
if (state.resolutionFactor !== undefined) (props as any).resolutionFactor = state.resolutionFactor if (state.resolutionFactor !== undefined) (props as any).resolutionFactor = state.resolutionFactor
if (state.radiusOffset !== undefined) (props as any).probeRadius = state.radiusOffset if (state.radiusOffset !== undefined) (props as any).radiusOffset = state.radiusOffset
if (state.smoothness !== undefined) (props as any).smoothness = state.smoothness if (state.smoothness !== undefined) (props as any).smoothness = state.smoothness
await repr.createOrUpdate(props).run( await repr.createOrUpdate(props).run(
...@@ -101,7 +101,7 @@ export class StructureRepresentationComponent extends React.Component<StructureR ...@@ -101,7 +101,7 @@ export class StructureRepresentationComponent extends React.Component<StructureR
flatShaded: (repr.props as any).flatShaded, flatShaded: (repr.props as any).flatShaded,
resolutionFactor: (repr.props as any).resolutionFactor, resolutionFactor: (repr.props as any).resolutionFactor,
probeRadius: (repr.props as any).probeRadius, radiusOffset: (repr.props as any).radiusOffset,
isoValue: (repr.props as any).isoValue, isoValue: (repr.props as any).isoValue,
} }
this.setState(newState) this.setState(newState)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment