@@ -34,7 +34,7 @@ module.exports = {
34
34
AnimationClip : {
35
35
relativePath : './animation/AnimationClip' ,
36
36
properties : {
37
- name : new Types . String ( null , true ) ,
37
+ name : new Types . String ( null , { nullable : true } ) ,
38
38
duration : new Types . Float ( - 1.0 ) ,
39
39
tracks : new Types . ThreeTypeArray ( 'KeyframeTrack' ) ,
40
40
} ,
@@ -168,7 +168,7 @@ module.exports = {
168
168
Controls : {
169
169
relativePath : './controls/Controls' ,
170
170
properties : {
171
- controlling : new Types . ThreeType ( 'Object3D' , { allowNull : false } ) ,
171
+ controlling : new Types . ThreeType ( 'Object3D' , { nullable : false } ) ,
172
172
} ,
173
173
} ,
174
174
OrbitControls : {
@@ -251,14 +251,14 @@ module.exports = {
251
251
superClass : 'Controls' ,
252
252
properties : {
253
253
event : new Types . String ( 'click' ) ,
254
- root : new Types . ThreeType ( 'Object3D' , { allowNull : true } ) ,
254
+ root : new Types . ThreeType ( 'Object3D' , { nullable : true } ) ,
255
255
all : new Types . Bool ( false ) ,
256
- distance : new Types . Float ( null , true ) ,
256
+ distance : new Types . Float ( null , { nullable : true } ) ,
257
257
point : new Types . Vector3 ( 0 , 0 , 0 ) ,
258
258
face : new Types . Vector3 ( 0 , 0 , 0 ) ,
259
259
faceNormal : new Types . Vector3 ( 0 , 0 , 0 ) ,
260
260
faceVertices : new Types . VectorArray ( ) ,
261
- faceIndex : new Types . Int ( null , true ) ,
261
+ faceIndex : new Types . Int ( null , { nullable : true } ) ,
262
262
object : new Types . ThreeType ( 'Object3D' , { nullable : true } ) ,
263
263
picked : new Types . Array ( ) ,
264
264
uv : new Types . Vector2 ( 0 , 0 ) ,
@@ -340,7 +340,7 @@ module.exports = {
340
340
morphNormals : new Types . Array ( ) ,
341
341
skinWeights : new Types . VectorArray ( ) ,
342
342
skinIndices : new Types . VectorArray ( ) ,
343
- _ref_geometry : new Types . ThreeType ( 'Geometry' , { allowNull : false } ) ,
343
+ _ref_geometry : new Types . ThreeType ( 'Geometry' , { nullable : false } ) ,
344
344
} ,
345
345
} ,
346
346
PlainBufferGeometry : {
@@ -353,7 +353,7 @@ module.exports = {
353
353
// TODO: These likely require special types:
354
354
//groups: new Types.GeometryGroup(),
355
355
//drawRange: new Types.DrawRange(),
356
- _ref_geometry : new Types . ThreeType ( [ 'Geometry' , 'BufferGeometry' ] , { allowNull : false } ) ,
356
+ _ref_geometry : new Types . ThreeType ( [ 'Geometry' , 'BufferGeometry' ] , { nullable : false } ) ,
357
357
} ,
358
358
} ,
359
359
InstancedBufferAttribute : {
@@ -368,7 +368,7 @@ module.exports = {
368
368
relativePath : './core/InstancedBufferGeometry' ,
369
369
superClass : 'PlainBufferGeometry' ,
370
370
properties : {
371
- maxInstancedCount : new Types . Int ( null , true ) ,
371
+ maxInstancedCount : new Types . Int ( null , { nullable : true } ) ,
372
372
} ,
373
373
} ,
374
374
InstancedInterleavedBuffer : {
@@ -632,9 +632,9 @@ module.exports = {
632
632
clippingPlanes : new Types . ThreeTypeArray ( 'Plane' ) ,
633
633
clipShadows : new Types . Bool ( false ) ,
634
634
colorWrite : new Types . Bool ( true ) ,
635
- //customDepthMaterial: new Types.ForwardDeclaredThreeType('MeshDepthMaterial', 'pythreejs', {allowNull : true}),
636
- //customDistanceMaterial: new Types.ForwardDeclaredThreeType('MeshDepthMaterial', 'pythreejs', {allowNull : true}),
637
- defines : new Types . Dict ( null , true ) ,
635
+ //customDepthMaterial: new Types.ForwardDeclaredThreeType('MeshDepthMaterial', 'pythreejs', {nullable : true}),
636
+ //customDistanceMaterial: new Types.ForwardDeclaredThreeType('MeshDepthMaterial', 'pythreejs', {nullable : true}),
637
+ defines : new Types . Dict ( null , { nullable : true } ) ,
638
638
depthFunc : new Types . Enum ( 'DepthMode' , 'LessEqualDepth' ) ,
639
639
depthTest : new Types . Bool ( true ) ,
640
640
depthWrite : new Types . Bool ( true ) ,
@@ -645,7 +645,7 @@ module.exports = {
645
645
polygonOffset : new Types . Bool ( false ) ,
646
646
polygonOffsetFactor : new Types . Float ( 0 ) ,
647
647
polygonOffsetUnits : new Types . Float ( 0 ) ,
648
- precision : new Types . String ( null , true ) ,
648
+ precision : new Types . String ( null , { nullable : true } ) ,
649
649
premultipliedAlpha : new Types . Bool ( false ) ,
650
650
dithering : new Types . Bool ( false ) ,
651
651
flatShading : new Types . Bool ( false ) ,
@@ -787,7 +787,7 @@ module.exports = {
787
787
properties : {
788
788
clearCoat : new Types . Float ( 0.0 ) ,
789
789
clearCoatRoughness : new Types . Float ( 0.0 ) ,
790
- defines : new Types . Dict ( { 'PHYSICAL' : '' } , true ) ,
790
+ defines : new Types . Dict ( { 'PHYSICAL' : '' } , { nullable : true } ) ,
791
791
reflectivity : new Types . Float ( 0.5 ) ,
792
792
} ,
793
793
} ,
@@ -801,7 +801,7 @@ module.exports = {
801
801
bumpMap : new Types . ThreeType ( 'Texture' ) ,
802
802
bumpScale : new Types . Float ( 1.0 ) ,
803
803
color : new Types . Color ( '#ffffff' ) ,
804
- defines : new Types . Dict ( { 'STANDARD' : '' } , true ) ,
804
+ defines : new Types . Dict ( { 'STANDARD' : '' } , { nullable : true } ) ,
805
805
displacementMap : new Types . ThreeType ( 'Texture' ) ,
806
806
displacementScale : new Types . Float ( 1.0 ) ,
807
807
displacementBias : new Types . Float ( 0.0 ) ,
@@ -1098,8 +1098,8 @@ module.exports = {
1098
1098
superClass : 'Object3D' ,
1099
1099
constructorArgs : [ 'geometry' , 'material' ] ,
1100
1100
properties : {
1101
- material : new Types . ThreeType ( 'Material' , { allowNull : false } ) ,
1102
- geometry : new Types . ThreeType ( [ 'Geometry' , 'BufferGeometry' ] , { allowNull : false } ) ,
1101
+ material : new Types . ThreeType ( 'Material' , { nullable : false } ) ,
1102
+ geometry : new Types . ThreeType ( [ 'Geometry' , 'BufferGeometry' ] , { nullable : false } ) ,
1103
1103
drawMode : new Types . Enum ( 'DrawModes' , 'TrianglesDrawMode' ) ,
1104
1104
morphTargetInfluences : new Types . Array ( ) ,
1105
1105
} ,
@@ -1110,8 +1110,8 @@ module.exports = {
1110
1110
superClass : 'Object3D' ,
1111
1111
constructorArgs : [ 'geometry' , 'material' ] ,
1112
1112
properties : {
1113
- material : new Types . ThreeType ( 'Material' , { allowNull : false } ) ,
1114
- geometry : new Types . ThreeType ( [ 'Geometry' , 'BufferGeometry' ] , { allowNull : false } ) ,
1113
+ material : new Types . ThreeType ( 'Material' , { nullable : false } ) ,
1114
+ geometry : new Types . ThreeType ( [ 'Geometry' , 'BufferGeometry' ] , { nullable : false } ) ,
1115
1115
} ,
1116
1116
} ,
1117
1117
Skeleton : {
@@ -1187,7 +1187,7 @@ module.exports = {
1187
1187
fog : new Types . ThreeType ( 'Fog' ) ,
1188
1188
overrideMaterial : new Types . ThreeType ( 'Material' ) ,
1189
1189
autoUpdate : new Types . Bool ( true ) ,
1190
- background : new Types . Color ( null , true ) ,
1190
+ background : new Types . Color ( null , { nullable : true } ) ,
1191
1191
} ,
1192
1192
} ,
1193
1193
Texture : {
@@ -1721,8 +1721,8 @@ module.exports = {
1721
1721
origin : new Types . Vector3 ( 0 , 0 , 0 ) ,
1722
1722
length : new Types . Float ( 1.0 ) ,
1723
1723
hex : new Types . Int ( 0 ) ,
1724
- headLength : new Types . Float ( null , true ) ,
1725
- headWidth : new Types . Float ( null , true ) ,
1724
+ headLength : new Types . Float ( null , { nullable : true } ) ,
1725
+ headWidth : new Types . Float ( null , { nullable : true } ) ,
1726
1726
} ,
1727
1727
} ,
1728
1728
AxisHelper : {
@@ -1738,7 +1738,7 @@ module.exports = {
1738
1738
superClass : 'Object3D' , // Should really be LineSegments, but we don't want to sync geometry/material
1739
1739
properties : {
1740
1740
object : new Types . ThreeType ( 'Object3D' ) ,
1741
- color : new Types . Color ( null , true ) ,
1741
+ color : new Types . Color ( null , { nullable : true } ) ,
1742
1742
} ,
1743
1743
constructorArgs : [ 'object' , 'color' ] ,
1744
1744
propsDefinedByThree : [ 'matrixAutoUpdate' ]
@@ -1747,7 +1747,7 @@ module.exports = {
1747
1747
superClass : 'Object3D' , // Should really be LineSegments, but we don't want to sync geometry/material
1748
1748
properties : {
1749
1749
box : new Types . ThreeType ( 'Box3' ) ,
1750
- color : new Types . Color ( 'yellow' , true ) ,
1750
+ color : new Types . Color ( 'yellow' , { nullable : true } ) ,
1751
1751
} ,
1752
1752
constructorArgs : [ 'box' , 'color' ] ,
1753
1753
} ,
@@ -1766,7 +1766,7 @@ module.exports = {
1766
1766
properties : {
1767
1767
light : new Types . ThreeType ( 'DirectionalLight' ) ,
1768
1768
size : new Types . Float ( 1.0 ) ,
1769
- color : new Types . Color ( null , true ) ,
1769
+ color : new Types . Color ( null , { nullable : true } ) ,
1770
1770
} ,
1771
1771
constructorArgs : [ 'light' , 'size' , 'color' ] ,
1772
1772
propsDefinedByThree : [ 'matrixAutoUpdate' ]
@@ -1800,7 +1800,7 @@ module.exports = {
1800
1800
properties : {
1801
1801
light : new Types . ThreeType ( 'HemisphereLight' ) ,
1802
1802
size : new Types . Float ( 1.0 ) ,
1803
- color : new Types . Color ( null , true ) ,
1803
+ color : new Types . Color ( null , { nullable : true } ) ,
1804
1804
} ,
1805
1805
constructorArgs : [ 'light' , 'size' , 'color' ] ,
1806
1806
propsDefinedByThree : [ 'matrixAutoUpdate' ]
@@ -1810,7 +1810,7 @@ module.exports = {
1810
1810
properties : {
1811
1811
plane : new Types . ThreeType ( 'Plane' ) ,
1812
1812
size : new Types . Float ( 1.0 ) ,
1813
- color : new Types . Color ( 'yellow' , true ) ,
1813
+ color : new Types . Color ( 'yellow' , { nullable : true } ) ,
1814
1814
} ,
1815
1815
constructorArgs : [ 'plane' , 'size' , 'color' ] ,
1816
1816
} ,
@@ -1820,7 +1820,7 @@ module.exports = {
1820
1820
properties : {
1821
1821
light : new Types . ThreeType ( 'PointLight' ) ,
1822
1822
sphereSize : new Types . Float ( 1.0 ) ,
1823
- color : new Types . Color ( null , true ) ,
1823
+ color : new Types . Color ( null , { nullable : true } ) ,
1824
1824
} ,
1825
1825
constructorArgs : [ 'light' , 'sphereSize' , 'color' ] ,
1826
1826
propsDefinedByThree : [ 'matrixAutoUpdate' ]
@@ -1843,7 +1843,7 @@ module.exports = {
1843
1843
superClass : 'Object3D' ,
1844
1844
properties : {
1845
1845
light : new Types . ThreeType ( 'RectAreaLight' ) ,
1846
- color : new Types . Color ( null , true ) ,
1846
+ color : new Types . Color ( null , { nullable : true } ) ,
1847
1847
} ,
1848
1848
constructorArgs : [ 'light' , 'color' ] ,
1849
1849
} ,
@@ -1860,7 +1860,7 @@ module.exports = {
1860
1860
superClass : 'Object3D' ,
1861
1861
properties : {
1862
1862
light : new Types . ThreeType ( 'SpotLight' ) ,
1863
- color : new Types . Color ( null , true ) ,
1863
+ color : new Types . Color ( null , { nullable : true } ) ,
1864
1864
} ,
1865
1865
constructorArgs : [ 'light' , 'color' ] ,
1866
1866
propsDefinedByThree : [ 'matrixAutoUpdate' ]
0 commit comments