@vertexvis/geometry 1.1.3-canary.0 → 1.1.3-canary.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.js CHANGED
@@ -799,12 +799,11 @@ var matrix4 = /*#__PURE__*/Object.freeze({
799
799
  * @returns A set of Euler angles.
800
800
  */
801
801
  function create$c(value = {}) {
802
- var _a, _b, _c, _d;
803
802
  return {
804
- x: (_a = value.x) !== null && _a !== void 0 ? _a : 0,
805
- y: (_b = value.y) !== null && _b !== void 0 ? _b : 0,
806
- z: (_c = value.z) !== null && _c !== void 0 ? _c : 0,
807
- order: (_d = value.order) !== null && _d !== void 0 ? _d : 'xyz',
803
+ x: value.x ?? 0,
804
+ y: value.y ?? 0,
805
+ z: value.z ?? 0,
806
+ order: value.order ?? 'xyz',
808
807
  };
809
808
  }
810
809
  /**
@@ -1149,19 +1148,18 @@ var quaternion = /*#__PURE__*/Object.freeze({
1149
1148
  });
1150
1149
 
1151
1150
  function create$a(...args) {
1152
- var _a, _b, _c, _d, _e, _f;
1153
1151
  if (args.length === 1) {
1154
1152
  return {
1155
- x: (_a = args[0].x) !== null && _a !== void 0 ? _a : 0,
1156
- y: (_b = args[0].y) !== null && _b !== void 0 ? _b : 0,
1157
- z: (_c = args[0].z) !== null && _c !== void 0 ? _c : 0,
1153
+ x: args[0].x ?? 0,
1154
+ y: args[0].y ?? 0,
1155
+ z: args[0].z ?? 0,
1158
1156
  };
1159
1157
  }
1160
1158
  else if (args.length === 3) {
1161
1159
  return {
1162
- x: (_d = args[0]) !== null && _d !== void 0 ? _d : 0,
1163
- y: (_e = args[1]) !== null && _e !== void 0 ? _e : 0,
1164
- z: (_f = args[2]) !== null && _f !== void 0 ? _f : 0,
1160
+ x: args[0] ?? 0,
1161
+ y: args[1] ?? 0,
1162
+ z: args[2] ?? 0,
1165
1163
  };
1166
1164
  }
1167
1165
  return {
@@ -2048,10 +2046,9 @@ var dimensions = /*#__PURE__*/Object.freeze({
2048
2046
  * @param values The values to assign to the line.
2049
2047
  */
2050
2048
  function create$5(values = {}) {
2051
- var _a, _b;
2052
2049
  return {
2053
- start: (_a = values.start) !== null && _a !== void 0 ? _a : origin(),
2054
- end: (_b = values.end) !== null && _b !== void 0 ? _b : origin(),
2050
+ start: values.start ?? origin(),
2051
+ end: values.end ?? origin(),
2055
2052
  };
2056
2053
  }
2057
2054
  /**
@@ -2301,10 +2298,9 @@ var plane = /*#__PURE__*/Object.freeze({
2301
2298
  * @returns A new ray.
2302
2299
  */
2303
2300
  function create$1(value = {}) {
2304
- var _a, _b;
2305
2301
  return {
2306
- origin: (_a = value.origin) !== null && _a !== void 0 ? _a : origin(),
2307
- direction: (_b = value.direction) !== null && _b !== void 0 ? _b : forward(),
2302
+ origin: value.origin ?? origin(),
2303
+ direction: value.direction ?? forward(),
2308
2304
  };
2309
2305
  }
2310
2306
  /**