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) {
33
33
throw new RangeError ( 'Invalid number of values for array setter' ) ;
34
34
}
35
35
let changeDetected = false ;
36
+ // Instanciation time : if model.value is undefined, change needs to be done
36
37
if ( model . value ) {
37
38
model . value . forEach ( ( item , index ) => {
38
39
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';
3
3
4
4
const { FieldAssociations } = vtkDataSet ;
5
5
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
-
18
6
// ----------------------------------------------------------------------------
19
7
// vtkHardwareSelector methods
20
8
// ----------------------------------------------------------------------------
@@ -43,6 +31,18 @@ function vtkHardwareSelector(publicAPI, model) {
43
31
} ;
44
32
}
45
33
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
+
46
46
// ----------------------------------------------------------------------------
47
47
48
48
export function extend ( publicAPI , model , initialValues = { } ) {
You can’t perform that action at this time.
0 commit comments