File tree Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ function vtkCoordinate(publicAPI, model) {
3333 throw new RangeError ( 'Invalid number of values for array setter' ) ;
3434 }
3535 let changeDetected = false ;
36+ // Instanciation time : if model.value is undefined, change needs to be done
3637 if ( model . value ) {
3738 model . value . forEach ( ( item , index ) => {
3839 if ( item !== array [ index ] ) {
Original file line number Diff line number Diff line change @@ -3,18 +3,6 @@ import vtkDataSet from 'vtk.js/Sources/Common/DataModel/DataSet';
33
44const { FieldAssociations } = vtkDataSet ;
55
6- // ----------------------------------------------------------------------------
7- // Object factory
8- // ----------------------------------------------------------------------------
9-
10- function defaultValues ( initialValues ) {
11- return {
12- fieldAssociation : FieldAssociations . FIELD_ASSOCIATION_CELLS ,
13- captureZValues : false ,
14- ...initialValues ,
15- } ;
16- }
17-
186// ----------------------------------------------------------------------------
197// vtkHardwareSelector methods
208// ----------------------------------------------------------------------------
@@ -43,6 +31,18 @@ function vtkHardwareSelector(publicAPI, model) {
4331 } ;
4432}
4533
34+ // ----------------------------------------------------------------------------
35+ // Object factory
36+ // ----------------------------------------------------------------------------
37+
38+ function defaultValues ( initialValues ) {
39+ return {
40+ fieldAssociation : FieldAssociations . FIELD_ASSOCIATION_CELLS ,
41+ captureZValues : false ,
42+ ...initialValues ,
43+ } ;
44+ }
45+
4646// ----------------------------------------------------------------------------
4747
4848export function extend ( publicAPI , model , initialValues = { } ) {
You can’t perform that action at this time.
0 commit comments