Skip to content

Commit 7e85980

Browse files
committed
fix(widgets): disable coord shift scale for widgets
The glyph representation is primarily used for widget assembly where there the infinite lines or smaller diagonal length would trigger an unexpected coordinate shift scale. This change disables this by default. fix #3330
1 parent e2142b5 commit 7e85980

File tree

1 file changed

+1
-0
lines changed
  • Sources/Widgets/Representations/GlyphRepresentation

1 file changed

+1
-0
lines changed

Sources/Widgets/Representations/GlyphRepresentation/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ function defaultValues(publicAPI, model, initialValues) {
261261
initialValues._pipeline?.mapper ?? // in case mapper was provided
262262
vtkGlyph3DMapper.newInstance({
263263
scalarMode: ScalarMode.USE_POINT_FIELD_DATA,
264+
coordShiftScaleEnabled: false, // disable shift scale by default for widgets using glyphs
264265
}),
265266
actor:
266267
initialValues._pipeline?.actor ?? // in case actor was provided

0 commit comments

Comments
 (0)