File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const path = require("path");
66const yargs = require ( "yargs" ) ;
77const obj2gltf = require ( "../lib/obj2gltf" ) ;
88
9- const defaultValue = Cesium . defaultValue ;
9+ const defaultValue = ( a , b ) => a ?? b ;
1010const defined = Cesium . defined ;
1111
1212const defaults = obj2gltf . defaults ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const JasmineSpecReporter = require("jasmine-spec-reporter").SpecReporter;
1010const path = require ( "path" ) ;
1111const yargs = require ( "yargs" ) ;
1212
13- const defaultValue = Cesium . defaultValue ;
13+ const defaultValue = ( a , b ) => a ?? b ;
1414const defined = Cesium . defined ;
1515const argv = yargs . argv ;
1616
@@ -119,7 +119,7 @@ function cloc() {
119119}
120120
121121function getLicenseDataFromPackage ( packageName , override ) {
122- override = defaultValue ( override , defaultValue . EMPTY_OBJECT ) ;
122+ override = defaultValue ( override , Cesium . Frozen . EMPTY_OBJECT ) ;
123123 const packagePath = path . join ( "node_modules" , packageName , "package.json" ) ;
124124
125125 if ( ! fsExtra . existsSync ( packagePath ) ) {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const getBufferPadded = require("./getBufferPadded");
77const getDefaultMaterial = require ( "./loadMtl" ) . getDefaultMaterial ;
88const Texture = require ( "./Texture" ) ;
99
10- const defaultValue = Cesium . defaultValue ;
10+ const defaultValue = ( a , b ) => a ?? b ;
1111const defined = Cesium . defined ;
1212const WebGLConstants = Cesium . WebGLConstants ;
1313
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const Texture = require("./Texture");
1010const CesiumMath = Cesium . Math ;
1111const clone = Cesium . clone ;
1212const combine = Cesium . combine ;
13- const defaultValue = Cesium . defaultValue ;
13+ const defaultValue = ( a , b ) => a ?? b ;
1414const defined = Cesium . defined ;
1515
1616module . exports = loadMtl ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const Axis = Cesium.Axis;
1212const Cartesian3 = Cesium . Cartesian3 ;
1313const ComponentDatatype = Cesium . ComponentDatatype ;
1414const CoplanarPolygonGeometryLibrary = Cesium . CoplanarPolygonGeometryLibrary ;
15- const defaultValue = Cesium . defaultValue ;
15+ const defaultValue = ( a , b ) => a ?? b ;
1616const defined = Cesium . defined ;
1717const PolygonPipeline = Cesium . PolygonPipeline ;
1818const RuntimeError = Cesium . RuntimeError ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const PNG = require("pngjs").PNG;
77const Promise = require ( "bluebird" ) ;
88const Texture = require ( "./Texture" ) ;
99
10- const defaultValue = Cesium . defaultValue ;
10+ const defaultValue = ( a , b ) => a ?? b ;
1111const defined = Cesium . defined ;
1212
1313module . exports = loadTexture ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const createGltf = require("./createGltf");
66const loadObj = require ( "./loadObj" ) ;
77const writeGltf = require ( "./writeGltf" ) ;
88
9- const defaultValue = Cesium . defaultValue ;
9+ const defaultValue = ( a , b ) => a ?? b ;
1010const defined = Cesium . defined ;
1111const DeveloperError = Cesium . DeveloperError ;
1212
@@ -75,7 +75,7 @@ function obj2gltf(objPath, options) {
7575 options . unlit = defaultValue ( options . unlit , defaults . unlit ) ;
7676 options . overridingTextures = defaultValue (
7777 options . overridingTextures ,
78- defaultValue . EMPTY_OBJECT ,
78+ Cesium . Frozen . EMPTY_OBJECT ,
7979 ) ;
8080 options . logger = defaultValue ( options . logger , getDefaultLogger ( ) ) ;
8181 options . writer = defaultValue (
You can’t perform that action at this time.
0 commit comments