@galacean/engine-math 1.4.0-alpha.3 → 1.4.0-beta.0

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/main.js CHANGED
@@ -131,7 +131,7 @@ function _create_class(Constructor, protoProps, staticProps) {
131
131
  this._x = x;
132
132
  this._y = y;
133
133
  this._z = z;
134
- this._onValueChanged && this._onValueChanged();
134
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
135
135
  return this;
136
136
  };
137
137
  /**
@@ -142,7 +142,7 @@ function _create_class(Constructor, protoProps, staticProps) {
142
142
  this._x += right._x;
143
143
  this._y += right._y;
144
144
  this._z += right._z;
145
- this._onValueChanged && this._onValueChanged();
145
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
146
146
  return this;
147
147
  };
148
148
  /**
@@ -153,7 +153,7 @@ function _create_class(Constructor, protoProps, staticProps) {
153
153
  this._x -= right._x;
154
154
  this._y -= right._y;
155
155
  this._z -= right._z;
156
- this._onValueChanged && this._onValueChanged();
156
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
157
157
  return this;
158
158
  };
159
159
  /**
@@ -164,7 +164,7 @@ function _create_class(Constructor, protoProps, staticProps) {
164
164
  this._x *= right._x;
165
165
  this._y *= right._y;
166
166
  this._z *= right._z;
167
- this._onValueChanged && this._onValueChanged();
167
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
168
168
  return this;
169
169
  };
170
170
  /**
@@ -175,7 +175,7 @@ function _create_class(Constructor, protoProps, staticProps) {
175
175
  this._x /= right._x;
176
176
  this._y /= right._y;
177
177
  this._z /= right._z;
178
- this._onValueChanged && this._onValueChanged();
178
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
179
179
  return this;
180
180
  };
181
181
  /**
@@ -199,7 +199,7 @@ function _create_class(Constructor, protoProps, staticProps) {
199
199
  this._x = -this._x;
200
200
  this._y = -this._y;
201
201
  this._z = -this._z;
202
- this._onValueChanged && this._onValueChanged();
202
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
203
203
  return this;
204
204
  };
205
205
  /**
@@ -217,7 +217,7 @@ function _create_class(Constructor, protoProps, staticProps) {
217
217
  this._x *= s;
218
218
  this._y *= s;
219
219
  this._z *= s;
220
- this._onValueChanged && this._onValueChanged();
220
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
221
221
  return this;
222
222
  };
223
223
  /**
@@ -278,7 +278,7 @@ function _create_class(Constructor, protoProps, staticProps) {
278
278
  this._x = source.x;
279
279
  this._y = source.y;
280
280
  this._z = source.z;
281
- this._onValueChanged && this._onValueChanged();
281
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
282
282
  return this;
283
283
  };
284
284
  /**
@@ -301,7 +301,7 @@ function _create_class(Constructor, protoProps, staticProps) {
301
301
  this._x = array[offset];
302
302
  this._y = array[offset + 1];
303
303
  this._z = array[offset + 2];
304
- this._onValueChanged && this._onValueChanged();
304
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
305
305
  return this;
306
306
  };
307
307
  /**
@@ -333,7 +333,7 @@ function _create_class(Constructor, protoProps, staticProps) {
333
333
  out._x = left._x + right._x;
334
334
  out._y = left._y + right._y;
335
335
  out._z = left._z + right._z;
336
- out._onValueChanged && out._onValueChanged();
336
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
337
337
  };
338
338
  /**
339
339
  * Determines the difference between two vectors.
@@ -344,7 +344,7 @@ function _create_class(Constructor, protoProps, staticProps) {
344
344
  out._x = left._x - right._x;
345
345
  out._y = left._y - right._y;
346
346
  out._z = left._z - right._z;
347
- out._onValueChanged && out._onValueChanged();
347
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
348
348
  };
349
349
  /**
350
350
  * Determines the product of two vectors.
@@ -355,7 +355,7 @@ function _create_class(Constructor, protoProps, staticProps) {
355
355
  out._x = left._x * right._x;
356
356
  out._y = left._y * right._y;
357
357
  out._z = left._z * right._z;
358
- out._onValueChanged && out._onValueChanged();
358
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
359
359
  };
360
360
  /**
361
361
  * Determines the divisor of two vectors.
@@ -366,7 +366,7 @@ function _create_class(Constructor, protoProps, staticProps) {
366
366
  out._x = left._x / right._x;
367
367
  out._y = left._y / right._y;
368
368
  out._z = left._z / right._z;
369
- out._onValueChanged && out._onValueChanged();
369
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
370
370
  };
371
371
  /**
372
372
  * Determines the dot product of two vectors.
@@ -431,7 +431,7 @@ function _create_class(Constructor, protoProps, staticProps) {
431
431
  out._x = _x + (end._x - _x) * t;
432
432
  out._y = _y + (end._y - _y) * t;
433
433
  out._z = _z + (end._z - _z) * t;
434
- out._onValueChanged && out._onValueChanged();
434
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
435
435
  };
436
436
  /**
437
437
  * Calculate a vector containing the largest components of the specified vectors.
@@ -442,7 +442,7 @@ function _create_class(Constructor, protoProps, staticProps) {
442
442
  out._x = Math.max(left._x, right._x);
443
443
  out._y = Math.max(left._y, right._y);
444
444
  out._z = Math.max(left._z, right._z);
445
- out._onValueChanged && out._onValueChanged();
445
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
446
446
  };
447
447
  /**
448
448
  * Calculate a vector containing the smallest components of the specified vectors.
@@ -453,7 +453,7 @@ function _create_class(Constructor, protoProps, staticProps) {
453
453
  out._x = Math.min(left._x, right._x);
454
454
  out._y = Math.min(left._y, right._y);
455
455
  out._z = Math.min(left._z, right._z);
456
- out._onValueChanged && out._onValueChanged();
456
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
457
457
  };
458
458
  /**
459
459
  * Reverses the direction of a given vector.
@@ -463,7 +463,7 @@ function _create_class(Constructor, protoProps, staticProps) {
463
463
  out._x = -a._x;
464
464
  out._y = -a._y;
465
465
  out._z = -a._z;
466
- out._onValueChanged && out._onValueChanged();
466
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
467
467
  };
468
468
  /**
469
469
  * Converts the vector into a unit vector.
@@ -486,7 +486,7 @@ function _create_class(Constructor, protoProps, staticProps) {
486
486
  out._x = a._x * s;
487
487
  out._y = a._y * s;
488
488
  out._z = a._z * s;
489
- out._onValueChanged && out._onValueChanged();
489
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
490
490
  };
491
491
  /**
492
492
  * Performs a normal transformation using the given 4x4 matrix.
@@ -505,7 +505,7 @@ function _create_class(Constructor, protoProps, staticProps) {
505
505
  out._x = _x * e[0] + _y * e[4] + _z * e[8];
506
506
  out._y = _x * e[1] + _y * e[5] + _z * e[9];
507
507
  out._z = _x * e[2] + _y * e[6] + _z * e[10];
508
- out._onValueChanged && out._onValueChanged();
508
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
509
509
  };
510
510
  /**
511
511
  * Performs a transformation using the given 4x4 matrix.
@@ -518,7 +518,7 @@ function _create_class(Constructor, protoProps, staticProps) {
518
518
  out._x = _x * e[0] + _y * e[4] + _z * e[8] + e[12];
519
519
  out._y = _x * e[1] + _y * e[5] + _z * e[9] + e[13];
520
520
  out._z = _x * e[2] + _y * e[6] + _z * e[10] + e[14];
521
- out._onValueChanged && out._onValueChanged();
521
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
522
522
  };
523
523
  /**
524
524
  * Performs a transformation from vector3 to vector4 using the given 4x4 matrix.
@@ -532,7 +532,7 @@ function _create_class(Constructor, protoProps, staticProps) {
532
532
  out._y = _x * e[1] + _y * e[5] + _z * e[9] + e[13];
533
533
  out._z = _x * e[2] + _y * e[6] + _z * e[10] + e[14];
534
534
  out._w = _x * e[3] + _y * e[7] + _z * e[11] + e[15];
535
- out._onValueChanged && out._onValueChanged();
535
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
536
536
  };
537
537
  /**
538
538
  * Performs a coordinate transformation using the given 4x4 matrix.
@@ -554,7 +554,7 @@ function _create_class(Constructor, protoProps, staticProps) {
554
554
  out._x = (_x * e[0] + _y * e[4] + _z * e[8] + e[12]) * w;
555
555
  out._y = (_x * e[1] + _y * e[5] + _z * e[9] + e[13]) * w;
556
556
  out._z = (_x * e[2] + _y * e[6] + _z * e[10] + e[14]) * w;
557
- out._onValueChanged && out._onValueChanged();
557
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
558
558
  };
559
559
  /**
560
560
  * Performs a transformation using the given quaternion.
@@ -573,7 +573,7 @@ function _create_class(Constructor, protoProps, staticProps) {
573
573
  out._x = ix * qw - iw * qx - iy * qz + iz * qy;
574
574
  out._y = iy * qw - iw * qy - iz * qx + ix * qz;
575
575
  out._z = iz * qw - iw * qz - ix * qy + iy * qx;
576
- out._onValueChanged && out._onValueChanged();
576
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
577
577
  };
578
578
  _create_class(Vector3, [
579
579
  {
@@ -585,7 +585,7 @@ function _create_class(Constructor, protoProps, staticProps) {
585
585
  },
586
586
  set: function set(value) {
587
587
  this._x = value;
588
- this._onValueChanged && this._onValueChanged();
588
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
589
589
  }
590
590
  },
591
591
  {
@@ -597,7 +597,7 @@ function _create_class(Constructor, protoProps, staticProps) {
597
597
  },
598
598
  set: function set(value) {
599
599
  this._y = value;
600
- this._onValueChanged && this._onValueChanged();
600
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
601
601
  }
602
602
  },
603
603
  {
@@ -609,7 +609,7 @@ function _create_class(Constructor, protoProps, staticProps) {
609
609
  },
610
610
  set: function set(value) {
611
611
  this._z = value;
612
- this._onValueChanged && this._onValueChanged();
612
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
613
613
  }
614
614
  }
615
615
  ]);
@@ -708,7 +708,7 @@ BoundingSphere._tempVec30 = new Vector3();
708
708
  var centerX = max._x + min._x;
709
709
  var centerY = max._y + min._y;
710
710
  var centerZ = max._z + min._z;
711
- out.set(isNaN(centerX) ? 0 : centerX * 0.5, isNaN(centerY) ? 0 : centerY * 0.5, isNaN(centerZ) ? 0 : centerZ * 0.5);
711
+ out.set(Number.isNaN(centerX) ? 0 : centerX * 0.5, Number.isNaN(centerY) ? 0 : centerY * 0.5, Number.isNaN(centerZ) ? 0 : centerZ * 0.5);
712
712
  return out;
713
713
  };
714
714
  /**
@@ -720,7 +720,7 @@ BoundingSphere._tempVec30 = new Vector3();
720
720
  var extentX = max._x - min._x;
721
721
  var extentY = max._y - min._y;
722
722
  var extentZ = max._z - min._z;
723
- out.set(isNaN(extentX) ? 0 : extentX * 0.5, isNaN(extentY) ? 0 : extentY * 0.5, isNaN(extentZ) ? 0 : extentZ * 0.5);
723
+ out.set(Number.isNaN(extentX) ? 0 : extentX * 0.5, Number.isNaN(extentY) ? 0 : extentY * 0.5, Number.isNaN(extentZ) ? 0 : extentZ * 0.5);
724
724
  return out;
725
725
  };
726
726
  /**
@@ -2022,7 +2022,7 @@ CollisionUtil._tempVec32 = new Vector3();
2022
2022
  this._y = y;
2023
2023
  this._z = z;
2024
2024
  this._w = w;
2025
- this._onValueChanged && this._onValueChanged();
2025
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
2026
2026
  return this;
2027
2027
  };
2028
2028
  /**
@@ -2032,7 +2032,7 @@ CollisionUtil._tempVec32 = new Vector3();
2032
2032
  this._x *= -1;
2033
2033
  this._y *= -1;
2034
2034
  this._z *= -1;
2035
- this._onValueChanged && this._onValueChanged();
2035
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
2036
2036
  return this;
2037
2037
  };
2038
2038
  /**
@@ -2063,7 +2063,7 @@ CollisionUtil._tempVec32 = new Vector3();
2063
2063
  this._y = 0;
2064
2064
  this._z = 0;
2065
2065
  this._w = 1;
2066
- this._onValueChanged && this._onValueChanged();
2066
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
2067
2067
  return this;
2068
2068
  };
2069
2069
  /**
@@ -2096,7 +2096,7 @@ CollisionUtil._tempVec32 = new Vector3();
2096
2096
  var t = out._x;
2097
2097
  out._x = out._y;
2098
2098
  out._y = t;
2099
- out._onValueChanged && out._onValueChanged();
2099
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2100
2100
  return out;
2101
2101
  };
2102
2102
  /**
@@ -2105,7 +2105,7 @@ CollisionUtil._tempVec32 = new Vector3();
2105
2105
  * @returns Euler x->yaw y->pitch z->roll
2106
2106
  */ _proto.toYawPitchRoll = function toYawPitchRoll(out) {
2107
2107
  this._toYawPitchRoll(out);
2108
- out._onValueChanged && out._onValueChanged();
2108
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2109
2109
  return out;
2110
2110
  };
2111
2111
  /**
@@ -2197,7 +2197,7 @@ CollisionUtil._tempVec32 = new Vector3();
2197
2197
  this._y = source.y;
2198
2198
  this._z = source.z;
2199
2199
  this._w = source.w;
2200
- this._onValueChanged && this._onValueChanged();
2200
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
2201
2201
  return this;
2202
2202
  };
2203
2203
  /**
@@ -2222,7 +2222,7 @@ CollisionUtil._tempVec32 = new Vector3();
2222
2222
  this._y = array[offset + 1];
2223
2223
  this._z = array[offset + 2];
2224
2224
  this._w = array[offset + 3];
2225
- this._onValueChanged && this._onValueChanged();
2225
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
2226
2226
  return this;
2227
2227
  };
2228
2228
  /**
@@ -2280,7 +2280,7 @@ CollisionUtil._tempVec32 = new Vector3();
2280
2280
  out._y = left._y + right._y;
2281
2281
  out._z = left._z + right._z;
2282
2282
  out._w = left._w + right._w;
2283
- out._onValueChanged && out._onValueChanged();
2283
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2284
2284
  };
2285
2285
  /**
2286
2286
  * Determines the product of two quaternions.
@@ -2294,7 +2294,7 @@ CollisionUtil._tempVec32 = new Vector3();
2294
2294
  out._y = ay * bw + aw * by + az * bx - ax * bz;
2295
2295
  out._z = az * bw + aw * bz + ax * by - ay * bx;
2296
2296
  out._w = aw * bw - ax * bx - ay * by - az * bz;
2297
- out._onValueChanged && out._onValueChanged();
2297
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2298
2298
  };
2299
2299
  /**
2300
2300
  * Calculate quaternion that contains conjugated version of the specified quaternion.
@@ -2305,7 +2305,7 @@ CollisionUtil._tempVec32 = new Vector3();
2305
2305
  out._y = -a._y;
2306
2306
  out._z = -a._z;
2307
2307
  out._w = a._w;
2308
- out._onValueChanged && out._onValueChanged();
2308
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2309
2309
  };
2310
2310
  /**
2311
2311
  * Determines the dot product of two quaternions.
@@ -2337,7 +2337,7 @@ CollisionUtil._tempVec32 = new Vector3();
2337
2337
  out._y = normalAxis._y * s;
2338
2338
  out._z = normalAxis._z * s;
2339
2339
  out._w = Math.cos(rad);
2340
- out._onValueChanged && out._onValueChanged();
2340
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2341
2341
  };
2342
2342
  /**
2343
2343
  * Calculate a quaternion rotates around x, y, z axis (pitch/yaw/roll).
@@ -2370,7 +2370,7 @@ CollisionUtil._tempVec32 = new Vector3();
2370
2370
  out._y = sinYaw * cosPitch * cosRoll - cosYaw * sinPitch * sinRoll;
2371
2371
  out._z = cosYawPitch * sinRoll - sinYawPitch * cosRoll;
2372
2372
  out._w = cosYawPitch * cosRoll + sinYawPitch * sinRoll;
2373
- out._onValueChanged && out._onValueChanged();
2373
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2374
2374
  };
2375
2375
  /**
2376
2376
  * Calculate a quaternion from the specified 3x3 matrix.
@@ -2412,7 +2412,7 @@ CollisionUtil._tempVec32 = new Vector3();
2412
2412
  out._z = 0.5 * sqrt;
2413
2413
  out._w = (m12 - m21) * half;
2414
2414
  }
2415
- out._onValueChanged && out._onValueChanged();
2415
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2416
2416
  };
2417
2417
  /**
2418
2418
  * Calculate the inverse of the specified quaternion.
@@ -2427,7 +2427,7 @@ CollisionUtil._tempVec32 = new Vector3();
2427
2427
  out._y = -y * invDot;
2428
2428
  out._z = -z * invDot;
2429
2429
  out._w = w * invDot;
2430
- out._onValueChanged && out._onValueChanged();
2430
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2431
2431
  }
2432
2432
  };
2433
2433
  /**
@@ -2474,7 +2474,7 @@ CollisionUtil._tempVec32 = new Vector3();
2474
2474
  out.y = inverse * start.y + opposite * end.y;
2475
2475
  out.z = inverse * start.z + opposite * end.z;
2476
2476
  out.w = inverse * start.w + opposite * end.w;
2477
- out._onValueChanged && out._onValueChanged();
2477
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2478
2478
  };
2479
2479
  /**
2480
2480
  * Scales the specified quaternion magnitude to unit length.
@@ -2489,7 +2489,7 @@ CollisionUtil._tempVec32 = new Vector3();
2489
2489
  out._y = _y * len;
2490
2490
  out._z = _z * len;
2491
2491
  out._w = _w * len;
2492
- out._onValueChanged && out._onValueChanged();
2492
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2493
2493
  }
2494
2494
  };
2495
2495
  /**
@@ -2504,7 +2504,7 @@ CollisionUtil._tempVec32 = new Vector3();
2504
2504
  out._y = 0;
2505
2505
  out._z = 0;
2506
2506
  out._w = c;
2507
- out._onValueChanged && out._onValueChanged();
2507
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2508
2508
  };
2509
2509
  /**
2510
2510
  * Calculate a quaternion rotate around Y axis.
@@ -2518,7 +2518,7 @@ CollisionUtil._tempVec32 = new Vector3();
2518
2518
  out._y = s;
2519
2519
  out._z = 0;
2520
2520
  out._w = c;
2521
- out._onValueChanged && out._onValueChanged();
2521
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2522
2522
  };
2523
2523
  /**
2524
2524
  * Calculate a quaternion rotate around Z axis.
@@ -2532,7 +2532,7 @@ CollisionUtil._tempVec32 = new Vector3();
2532
2532
  out._y = 0;
2533
2533
  out._z = s;
2534
2534
  out._w = c;
2535
- out._onValueChanged && out._onValueChanged();
2535
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2536
2536
  };
2537
2537
  /**
2538
2538
  * Calculate a quaternion that the specified quaternion rotate around X axis.
@@ -2548,7 +2548,7 @@ CollisionUtil._tempVec32 = new Vector3();
2548
2548
  out._y = _y * bw + _z * bx;
2549
2549
  out._z = _z * bw - _y * bx;
2550
2550
  out._w = _w * bw - _x * bx;
2551
- out._onValueChanged && out._onValueChanged();
2551
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2552
2552
  };
2553
2553
  /**
2554
2554
  * Calculate a quaternion that the specified quaternion rotate around Y axis.
@@ -2564,7 +2564,7 @@ CollisionUtil._tempVec32 = new Vector3();
2564
2564
  out._y = _y * bw + _w * by;
2565
2565
  out._z = _z * bw + _x * by;
2566
2566
  out._w = _w * bw - _y * by;
2567
- out._onValueChanged && out._onValueChanged();
2567
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2568
2568
  };
2569
2569
  /**
2570
2570
  * Calculate a quaternion that the specified quaternion rotate around Z axis.
@@ -2580,7 +2580,7 @@ CollisionUtil._tempVec32 = new Vector3();
2580
2580
  out._y = _y * bw - _x * bz;
2581
2581
  out._z = _z * bw + _w * bz;
2582
2582
  out._w = _w * bw - _z * bz;
2583
- out._onValueChanged && out._onValueChanged();
2583
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2584
2584
  };
2585
2585
  /**
2586
2586
  * Scale a quaternion by a given number.
@@ -2592,7 +2592,7 @@ CollisionUtil._tempVec32 = new Vector3();
2592
2592
  out._y = a._y * s;
2593
2593
  out._z = a._z * s;
2594
2594
  out._w = a._w * s;
2595
- out._onValueChanged && out._onValueChanged();
2595
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2596
2596
  };
2597
2597
  _create_class(Quaternion, [
2598
2598
  {
@@ -2604,7 +2604,7 @@ CollisionUtil._tempVec32 = new Vector3();
2604
2604
  },
2605
2605
  set: function set(value) {
2606
2606
  this._x = value;
2607
- this._onValueChanged && this._onValueChanged();
2607
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
2608
2608
  }
2609
2609
  },
2610
2610
  {
@@ -2616,7 +2616,7 @@ CollisionUtil._tempVec32 = new Vector3();
2616
2616
  },
2617
2617
  set: function set(value) {
2618
2618
  this._y = value;
2619
- this._onValueChanged && this._onValueChanged();
2619
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
2620
2620
  }
2621
2621
  },
2622
2622
  {
@@ -2628,7 +2628,7 @@ CollisionUtil._tempVec32 = new Vector3();
2628
2628
  },
2629
2629
  set: function set(value) {
2630
2630
  this._z = value;
2631
- this._onValueChanged && this._onValueChanged();
2631
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
2632
2632
  }
2633
2633
  },
2634
2634
  {
@@ -2648,7 +2648,7 @@ CollisionUtil._tempVec32 = new Vector3();
2648
2648
  },
2649
2649
  set: function set(value) {
2650
2650
  this._w = value;
2651
- this._onValueChanged && this._onValueChanged();
2651
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
2652
2652
  }
2653
2653
  }
2654
2654
  ]);
@@ -2854,7 +2854,7 @@ CollisionUtil._tempVec32 = new Vector3();
2854
2854
  out._y = (e[6] + e[9]) / s3;
2855
2855
  out._z = 0.25 * s3;
2856
2856
  }
2857
- out._onValueChanged && out._onValueChanged();
2857
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2858
2858
  return out;
2859
2859
  };
2860
2860
  /**
@@ -3666,7 +3666,7 @@ Matrix._tempMat30 = new Matrix3x3();
3666
3666
  */ _proto.set = function set(x, y) {
3667
3667
  this._x = x;
3668
3668
  this._y = y;
3669
- this._onValueChanged && this._onValueChanged();
3669
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
3670
3670
  return this;
3671
3671
  };
3672
3672
  /**
@@ -3676,7 +3676,7 @@ Matrix._tempMat30 = new Matrix3x3();
3676
3676
  */ _proto.add = function add(right) {
3677
3677
  this._x += right._x;
3678
3678
  this._y += right._y;
3679
- this._onValueChanged && this._onValueChanged();
3679
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
3680
3680
  return this;
3681
3681
  };
3682
3682
  /**
@@ -3686,7 +3686,7 @@ Matrix._tempMat30 = new Matrix3x3();
3686
3686
  */ _proto.subtract = function subtract(right) {
3687
3687
  this._x -= right._x;
3688
3688
  this._y -= right._y;
3689
- this._onValueChanged && this._onValueChanged();
3689
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
3690
3690
  return this;
3691
3691
  };
3692
3692
  /**
@@ -3696,7 +3696,7 @@ Matrix._tempMat30 = new Matrix3x3();
3696
3696
  */ _proto.multiply = function multiply(right) {
3697
3697
  this._x *= right._x;
3698
3698
  this._y *= right._y;
3699
- this._onValueChanged && this._onValueChanged();
3699
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
3700
3700
  return this;
3701
3701
  };
3702
3702
  /**
@@ -3706,7 +3706,7 @@ Matrix._tempMat30 = new Matrix3x3();
3706
3706
  */ _proto.divide = function divide(right) {
3707
3707
  this._x /= right._x;
3708
3708
  this._y /= right._y;
3709
- this._onValueChanged && this._onValueChanged();
3709
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
3710
3710
  return this;
3711
3711
  };
3712
3712
  /**
@@ -3729,7 +3729,7 @@ Matrix._tempMat30 = new Matrix3x3();
3729
3729
  */ _proto.negate = function negate() {
3730
3730
  this._x = -this._x;
3731
3731
  this._y = -this._y;
3732
- this._onValueChanged && this._onValueChanged();
3732
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
3733
3733
  return this;
3734
3734
  };
3735
3735
  /**
@@ -3746,7 +3746,7 @@ Matrix._tempMat30 = new Matrix3x3();
3746
3746
  */ _proto.scale = function scale(s) {
3747
3747
  this._x *= s;
3748
3748
  this._y *= s;
3749
- this._onValueChanged && this._onValueChanged();
3749
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
3750
3750
  return this;
3751
3751
  };
3752
3752
  /**
@@ -3762,7 +3762,7 @@ Matrix._tempMat30 = new Matrix3x3();
3762
3762
  */ _proto.copyFrom = function copyFrom(source) {
3763
3763
  this._x = source.x;
3764
3764
  this._y = source.y;
3765
- this._onValueChanged && this._onValueChanged();
3765
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
3766
3766
  return this;
3767
3767
  };
3768
3768
  /**
@@ -3783,7 +3783,7 @@ Matrix._tempMat30 = new Matrix3x3();
3783
3783
  if (offset === void 0) offset = 0;
3784
3784
  this._x = array[offset];
3785
3785
  this._y = array[offset + 1];
3786
- this._onValueChanged && this._onValueChanged();
3786
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
3787
3787
  return this;
3788
3788
  };
3789
3789
  /**
@@ -3812,7 +3812,7 @@ Matrix._tempMat30 = new Matrix3x3();
3812
3812
  */ Vector2.add = function add(left, right, out) {
3813
3813
  out._x = left._x + right._x;
3814
3814
  out._y = left._y + right._y;
3815
- out._onValueChanged && out._onValueChanged();
3815
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
3816
3816
  };
3817
3817
  /**
3818
3818
  * Determines the difference between two vectors.
@@ -3822,7 +3822,7 @@ Matrix._tempMat30 = new Matrix3x3();
3822
3822
  */ Vector2.subtract = function subtract(left, right, out) {
3823
3823
  out._x = left._x - right._x;
3824
3824
  out._y = left._y - right._y;
3825
- out._onValueChanged && out._onValueChanged();
3825
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
3826
3826
  };
3827
3827
  /**
3828
3828
  * Determines the product of two vectors.
@@ -3832,7 +3832,7 @@ Matrix._tempMat30 = new Matrix3x3();
3832
3832
  */ Vector2.multiply = function multiply(left, right, out) {
3833
3833
  out._x = left._x * right._x;
3834
3834
  out._y = left._y * right._y;
3835
- out._onValueChanged && out._onValueChanged();
3835
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
3836
3836
  };
3837
3837
  /**
3838
3838
  * Determines the divisor of two vectors.
@@ -3842,7 +3842,7 @@ Matrix._tempMat30 = new Matrix3x3();
3842
3842
  */ Vector2.divide = function divide(left, right, out) {
3843
3843
  out._x = left._x / right._x;
3844
3844
  out._y = left._y / right._y;
3845
- out._onValueChanged && out._onValueChanged();
3845
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
3846
3846
  };
3847
3847
  /**
3848
3848
  * Determines the dot product of two vectors.
@@ -3890,7 +3890,7 @@ Matrix._tempMat30 = new Matrix3x3();
3890
3890
  var _x = left._x, _y = left._y;
3891
3891
  out._x = _x + (right._x - _x) * t;
3892
3892
  out._y = _y + (right._y - _y) * t;
3893
- out._onValueChanged && out._onValueChanged();
3893
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
3894
3894
  };
3895
3895
  /**
3896
3896
  * Calculate a vector containing the largest components of the specified vectors.
@@ -3900,7 +3900,7 @@ Matrix._tempMat30 = new Matrix3x3();
3900
3900
  */ Vector2.max = function max(left, right, out) {
3901
3901
  out._x = Math.max(left._x, right._x);
3902
3902
  out._y = Math.max(left._y, right._y);
3903
- out._onValueChanged && out._onValueChanged();
3903
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
3904
3904
  };
3905
3905
  /**
3906
3906
  * Calculate a vector containing the smallest components of the specified vectors.
@@ -3910,7 +3910,7 @@ Matrix._tempMat30 = new Matrix3x3();
3910
3910
  */ Vector2.min = function min(left, right, out) {
3911
3911
  out._x = Math.min(left._x, right._x);
3912
3912
  out._y = Math.min(left._y, right._y);
3913
- out._onValueChanged && out._onValueChanged();
3913
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
3914
3914
  };
3915
3915
  /**
3916
3916
  * Reverses the direction of a given vector.
@@ -3919,7 +3919,7 @@ Matrix._tempMat30 = new Matrix3x3();
3919
3919
  */ Vector2.negate = function negate(left, out) {
3920
3920
  out._x = -left._x;
3921
3921
  out._y = -left._y;
3922
- out._onValueChanged && out._onValueChanged();
3922
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
3923
3923
  };
3924
3924
  /**
3925
3925
  * Converts the vector into a unit vector.
@@ -3932,7 +3932,7 @@ Matrix._tempMat30 = new Matrix3x3();
3932
3932
  len = 1 / len;
3933
3933
  out._x = _x * len;
3934
3934
  out._y = _y * len;
3935
- out._onValueChanged && out._onValueChanged();
3935
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
3936
3936
  }
3937
3937
  };
3938
3938
  /**
@@ -3943,7 +3943,7 @@ Matrix._tempMat30 = new Matrix3x3();
3943
3943
  */ Vector2.scale = function scale(left, s, out) {
3944
3944
  out._x = left._x * s;
3945
3945
  out._y = left._y * s;
3946
- out._onValueChanged && out._onValueChanged();
3946
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
3947
3947
  };
3948
3948
  _create_class(Vector2, [
3949
3949
  {
@@ -3955,7 +3955,7 @@ Matrix._tempMat30 = new Matrix3x3();
3955
3955
  },
3956
3956
  set: function set(value) {
3957
3957
  this._x = value;
3958
- this._onValueChanged && this._onValueChanged();
3958
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
3959
3959
  }
3960
3960
  },
3961
3961
  {
@@ -3967,7 +3967,7 @@ Matrix._tempMat30 = new Matrix3x3();
3967
3967
  },
3968
3968
  set: function set(value) {
3969
3969
  this._y = value;
3970
- this._onValueChanged && this._onValueChanged();
3970
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
3971
3971
  }
3972
3972
  }
3973
3973
  ]);
@@ -4003,7 +4003,7 @@ Matrix._tempMat30 = new Matrix3x3();
4003
4003
  this._y = y;
4004
4004
  this._z = z;
4005
4005
  this._w = w;
4006
- this._onValueChanged && this._onValueChanged();
4006
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4007
4007
  return this;
4008
4008
  };
4009
4009
  /**
@@ -4015,7 +4015,7 @@ Matrix._tempMat30 = new Matrix3x3();
4015
4015
  this._y += right._y;
4016
4016
  this._z += right._z;
4017
4017
  this._w += right._w;
4018
- this._onValueChanged && this._onValueChanged();
4018
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4019
4019
  return this;
4020
4020
  };
4021
4021
  /**
@@ -4027,7 +4027,7 @@ Matrix._tempMat30 = new Matrix3x3();
4027
4027
  this._y -= right._y;
4028
4028
  this._z -= right._z;
4029
4029
  this._w -= right._w;
4030
- this._onValueChanged && this._onValueChanged();
4030
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4031
4031
  return this;
4032
4032
  };
4033
4033
  /**
@@ -4039,7 +4039,7 @@ Matrix._tempMat30 = new Matrix3x3();
4039
4039
  this._y *= right._y;
4040
4040
  this._z *= right._z;
4041
4041
  this._w *= right._w;
4042
- this._onValueChanged && this._onValueChanged();
4042
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4043
4043
  return this;
4044
4044
  };
4045
4045
  /**
@@ -4051,7 +4051,7 @@ Matrix._tempMat30 = new Matrix3x3();
4051
4051
  this._y /= right._y;
4052
4052
  this._z /= right._z;
4053
4053
  this._w /= right._w;
4054
- this._onValueChanged && this._onValueChanged();
4054
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4055
4055
  return this;
4056
4056
  };
4057
4057
  /**
@@ -4076,7 +4076,7 @@ Matrix._tempMat30 = new Matrix3x3();
4076
4076
  this._y = -this._y;
4077
4077
  this._z = -this._z;
4078
4078
  this._w = -this._w;
4079
- this._onValueChanged && this._onValueChanged();
4079
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4080
4080
  return this;
4081
4081
  };
4082
4082
  /**
@@ -4095,7 +4095,7 @@ Matrix._tempMat30 = new Matrix3x3();
4095
4095
  this._y *= s;
4096
4096
  this._z *= s;
4097
4097
  this._w *= s;
4098
- this._onValueChanged && this._onValueChanged();
4098
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4099
4099
  return this;
4100
4100
  };
4101
4101
  /**
@@ -4114,7 +4114,7 @@ Matrix._tempMat30 = new Matrix3x3();
4114
4114
  this._y = source.y;
4115
4115
  this._z = source.z;
4116
4116
  this._w = source.w;
4117
- this._onValueChanged && this._onValueChanged();
4117
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4118
4118
  return this;
4119
4119
  };
4120
4120
  /**
@@ -4139,7 +4139,7 @@ Matrix._tempMat30 = new Matrix3x3();
4139
4139
  this._y = array[offset + 1];
4140
4140
  this._z = array[offset + 2];
4141
4141
  this._w = array[offset + 3];
4142
- this._onValueChanged && this._onValueChanged();
4142
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4143
4143
  return this;
4144
4144
  };
4145
4145
  /**
@@ -4174,7 +4174,7 @@ Matrix._tempMat30 = new Matrix3x3();
4174
4174
  out._y = left._y + right._y;
4175
4175
  out._z = left._z + right._z;
4176
4176
  out._w = left._w + right._w;
4177
- out._onValueChanged && out._onValueChanged();
4177
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4178
4178
  };
4179
4179
  /**
4180
4180
  * Determines the difference between two vectors.
@@ -4186,7 +4186,7 @@ Matrix._tempMat30 = new Matrix3x3();
4186
4186
  out._y = left._y - right._y;
4187
4187
  out._z = left._z - right._z;
4188
4188
  out._w = left._w - right._w;
4189
- out._onValueChanged && out._onValueChanged();
4189
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4190
4190
  };
4191
4191
  /**
4192
4192
  * Determines the product of two vectors.
@@ -4198,7 +4198,7 @@ Matrix._tempMat30 = new Matrix3x3();
4198
4198
  out._y = left._y * right._y;
4199
4199
  out._z = left._z * right._z;
4200
4200
  out._w = left._w * right._w;
4201
- out._onValueChanged && out._onValueChanged();
4201
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4202
4202
  };
4203
4203
  /**
4204
4204
  * Determines the divisor of two vectors.
@@ -4210,7 +4210,7 @@ Matrix._tempMat30 = new Matrix3x3();
4210
4210
  out._y = left._y / right._y;
4211
4211
  out._z = left._z / right._z;
4212
4212
  out._w = left._w / right._w;
4213
- out._onValueChanged && out._onValueChanged();
4213
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4214
4214
  };
4215
4215
  /**
4216
4216
  * Determines the dot product of two vectors.
@@ -4264,7 +4264,7 @@ Matrix._tempMat30 = new Matrix3x3();
4264
4264
  out._y = _y + (end._y - _y) * t;
4265
4265
  out._z = _z + (end._z - _z) * t;
4266
4266
  out._w = _w + (end._w - _w) * t;
4267
- out._onValueChanged && out._onValueChanged();
4267
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4268
4268
  };
4269
4269
  /**
4270
4270
  * Calculate a vector containing the largest components of the specified vectors.
@@ -4276,7 +4276,7 @@ Matrix._tempMat30 = new Matrix3x3();
4276
4276
  out._y = Math.max(left._y, right._y);
4277
4277
  out._z = Math.max(left._z, right._z);
4278
4278
  out._w = Math.max(left._w, right._w);
4279
- out._onValueChanged && out._onValueChanged();
4279
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4280
4280
  };
4281
4281
  /**
4282
4282
  * Calculate a vector containing the smallest components of the specified vectors.
@@ -4288,7 +4288,7 @@ Matrix._tempMat30 = new Matrix3x3();
4288
4288
  out._y = Math.min(left._y, right._y);
4289
4289
  out._z = Math.min(left._z, right._z);
4290
4290
  out._w = Math.min(left._w, right._w);
4291
- out._onValueChanged && out._onValueChanged();
4291
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4292
4292
  };
4293
4293
  /**
4294
4294
  * Reverses the direction of a given vector.
@@ -4299,7 +4299,7 @@ Matrix._tempMat30 = new Matrix3x3();
4299
4299
  out._y = -a._y;
4300
4300
  out._z = -a._z;
4301
4301
  out._w = -a._w;
4302
- out._onValueChanged && out._onValueChanged();
4302
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4303
4303
  };
4304
4304
  /**
4305
4305
  * Converts the vector into a unit vector.
@@ -4314,7 +4314,7 @@ Matrix._tempMat30 = new Matrix3x3();
4314
4314
  out._y = _y * len;
4315
4315
  out._z = _z * len;
4316
4316
  out._w = _w * len;
4317
- out._onValueChanged && out._onValueChanged();
4317
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4318
4318
  }
4319
4319
  };
4320
4320
  /**
@@ -4327,7 +4327,7 @@ Matrix._tempMat30 = new Matrix3x3();
4327
4327
  out._y = a._y * s;
4328
4328
  out._z = a._z * s;
4329
4329
  out._w = a._w * s;
4330
- out._onValueChanged && out._onValueChanged();
4330
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4331
4331
  };
4332
4332
  /**
4333
4333
  * Performs a transformation using the given 4x4 matrix.
@@ -4341,7 +4341,7 @@ Matrix._tempMat30 = new Matrix3x3();
4341
4341
  out._y = _x * e[1] + _y * e[5] + _z * e[9] + _w * e[13];
4342
4342
  out._z = _x * e[2] + _y * e[6] + _z * e[10] + _w * e[14];
4343
4343
  out._w = _x * e[3] + _y * e[7] + _z * e[11] + _w * e[15];
4344
- out._onValueChanged && out._onValueChanged();
4344
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4345
4345
  };
4346
4346
  /**
4347
4347
  * Performs a transformation using the given quaternion.
@@ -4364,7 +4364,7 @@ Matrix._tempMat30 = new Matrix3x3();
4364
4364
  out._y = iy * qw - iw * qy - iz * qx + ix * qz;
4365
4365
  out._z = iz * qw - iw * qz - ix * qy + iy * qx;
4366
4366
  out._w = w;
4367
- out._onValueChanged && out._onValueChanged();
4367
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4368
4368
  };
4369
4369
  _create_class(Vector4, [
4370
4370
  {
@@ -4376,7 +4376,7 @@ Matrix._tempMat30 = new Matrix3x3();
4376
4376
  },
4377
4377
  set: function set(value) {
4378
4378
  this._x = value;
4379
- this._onValueChanged && this._onValueChanged();
4379
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4380
4380
  }
4381
4381
  },
4382
4382
  {
@@ -4388,7 +4388,7 @@ Matrix._tempMat30 = new Matrix3x3();
4388
4388
  },
4389
4389
  set: function set(value) {
4390
4390
  this._y = value;
4391
- this._onValueChanged && this._onValueChanged();
4391
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4392
4392
  }
4393
4393
  },
4394
4394
  {
@@ -4400,7 +4400,7 @@ Matrix._tempMat30 = new Matrix3x3();
4400
4400
  },
4401
4401
  set: function set(value) {
4402
4402
  this._z = value;
4403
- this._onValueChanged && this._onValueChanged();
4403
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4404
4404
  }
4405
4405
  },
4406
4406
  {
@@ -4412,7 +4412,7 @@ Matrix._tempMat30 = new Matrix3x3();
4412
4412
  },
4413
4413
  set: function set(value) {
4414
4414
  this._w = value;
4415
- this._onValueChanged && this._onValueChanged();
4415
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4416
4416
  }
4417
4417
  }
4418
4418
  ]);
@@ -4448,7 +4448,7 @@ Matrix._tempMat30 = new Matrix3x3();
4448
4448
  this._g = g;
4449
4449
  this._b = b;
4450
4450
  this._a = a;
4451
- this._onValueChanged && this._onValueChanged();
4451
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4452
4452
  return this;
4453
4453
  };
4454
4454
  /**
@@ -4460,7 +4460,7 @@ Matrix._tempMat30 = new Matrix3x3();
4460
4460
  this._g += color._g;
4461
4461
  this._b += color._b;
4462
4462
  this._a += color._a;
4463
- this._onValueChanged && this._onValueChanged();
4463
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4464
4464
  return this;
4465
4465
  };
4466
4466
  /**
@@ -4472,7 +4472,7 @@ Matrix._tempMat30 = new Matrix3x3();
4472
4472
  this._g *= s;
4473
4473
  this._b *= s;
4474
4474
  this._a *= s;
4475
- this._onValueChanged && this._onValueChanged();
4475
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4476
4476
  return this;
4477
4477
  };
4478
4478
  /**
@@ -4491,7 +4491,7 @@ Matrix._tempMat30 = new Matrix3x3();
4491
4491
  this._g = source.g;
4492
4492
  this._b = source.b;
4493
4493
  this._a = source.a;
4494
- this._onValueChanged && this._onValueChanged();
4494
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4495
4495
  return this;
4496
4496
  };
4497
4497
  /**
@@ -4516,7 +4516,7 @@ Matrix._tempMat30 = new Matrix3x3();
4516
4516
  this._g = source[offset + 1];
4517
4517
  this._b = source[offset + 2];
4518
4518
  this._a = source[offset + 3];
4519
- this._onValueChanged && this._onValueChanged();
4519
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4520
4520
  return this;
4521
4521
  };
4522
4522
  /**
@@ -4538,7 +4538,7 @@ Matrix._tempMat30 = new Matrix3x3();
4538
4538
  out._r = Color.gammaToLinearSpace(this._r);
4539
4539
  out._g = Color.gammaToLinearSpace(this._g);
4540
4540
  out._b = Color.gammaToLinearSpace(this._b);
4541
- out._onValueChanged && out._onValueChanged();
4541
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4542
4542
  return out;
4543
4543
  };
4544
4544
  /**
@@ -4549,7 +4549,7 @@ Matrix._tempMat30 = new Matrix3x3();
4549
4549
  out._r = Color.linearToGammaSpace(this._r);
4550
4550
  out._g = Color.linearToGammaSpace(this._g);
4551
4551
  out._b = Color.linearToGammaSpace(this._b);
4552
- out._onValueChanged && out._onValueChanged();
4552
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4553
4553
  return out;
4554
4554
  };
4555
4555
  /**
@@ -4621,7 +4621,7 @@ Matrix._tempMat30 = new Matrix3x3();
4621
4621
  out._g = left._g + right._g;
4622
4622
  out._b = left._b + right._b;
4623
4623
  out._a = left._a + right._a;
4624
- out._onValueChanged && out._onValueChanged();
4624
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4625
4625
  return out;
4626
4626
  };
4627
4627
  /**
@@ -4634,7 +4634,7 @@ Matrix._tempMat30 = new Matrix3x3();
4634
4634
  out._g = left._g - right._g;
4635
4635
  out._b = left._b - right._b;
4636
4636
  out._a = left._a - right._a;
4637
- out._onValueChanged && out._onValueChanged();
4637
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4638
4638
  };
4639
4639
  /**
4640
4640
  * Scale a color by the given value.
@@ -4647,7 +4647,7 @@ Matrix._tempMat30 = new Matrix3x3();
4647
4647
  out._g = left._g * s;
4648
4648
  out._b = left._b * s;
4649
4649
  out._a = left._a * s;
4650
- out._onValueChanged && out._onValueChanged();
4650
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4651
4651
  return out;
4652
4652
  };
4653
4653
  /**
@@ -4662,7 +4662,7 @@ Matrix._tempMat30 = new Matrix3x3();
4662
4662
  out._g = _g + (end._g - _g) * t;
4663
4663
  out._b = _b + (end._b - _b) * t;
4664
4664
  out._a = _a + (end._a - _a) * t;
4665
- out._onValueChanged && out._onValueChanged();
4665
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4666
4666
  return out;
4667
4667
  };
4668
4668
  _create_class(Color, [
@@ -4675,7 +4675,7 @@ Matrix._tempMat30 = new Matrix3x3();
4675
4675
  },
4676
4676
  set: function set(value) {
4677
4677
  this._r = value;
4678
- this._onValueChanged && this._onValueChanged();
4678
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4679
4679
  }
4680
4680
  },
4681
4681
  {
@@ -4687,7 +4687,7 @@ Matrix._tempMat30 = new Matrix3x3();
4687
4687
  },
4688
4688
  set: function set(value) {
4689
4689
  this._g = value;
4690
- this._onValueChanged && this._onValueChanged();
4690
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4691
4691
  }
4692
4692
  },
4693
4693
  {
@@ -4699,7 +4699,7 @@ Matrix._tempMat30 = new Matrix3x3();
4699
4699
  },
4700
4700
  set: function set(value) {
4701
4701
  this._b = value;
4702
- this._onValueChanged && this._onValueChanged();
4702
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4703
4703
  }
4704
4704
  },
4705
4705
  {
@@ -4711,7 +4711,7 @@ Matrix._tempMat30 = new Matrix3x3();
4711
4711
  },
4712
4712
  set: function set(value) {
4713
4713
  this._a = value;
4714
- this._onValueChanged && this._onValueChanged();
4714
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4715
4715
  }
4716
4716
  }
4717
4717
  ]);
@@ -4744,7 +4744,7 @@ var Rect = /*#__PURE__*/ function() {
4744
4744
  this._y = y;
4745
4745
  this._width = width;
4746
4746
  this._height = height;
4747
- this._onValueChanged && this._onValueChanged();
4747
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4748
4748
  return this;
4749
4749
  };
4750
4750
  /**
@@ -4762,7 +4762,7 @@ var Rect = /*#__PURE__*/ function() {
4762
4762
  this._y = source.y;
4763
4763
  this._width = source.width;
4764
4764
  this._height = source.height;
4765
- this._onValueChanged && this._onValueChanged();
4765
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4766
4766
  return this;
4767
4767
  };
4768
4768
  _create_class(Rect, [
@@ -4775,7 +4775,7 @@ var Rect = /*#__PURE__*/ function() {
4775
4775
  },
4776
4776
  set: function set(value) {
4777
4777
  this._x = value;
4778
- this._onValueChanged && this._onValueChanged();
4778
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4779
4779
  }
4780
4780
  },
4781
4781
  {
@@ -4787,7 +4787,7 @@ var Rect = /*#__PURE__*/ function() {
4787
4787
  },
4788
4788
  set: function set(value) {
4789
4789
  this._y = value;
4790
- this._onValueChanged && this._onValueChanged();
4790
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4791
4791
  }
4792
4792
  },
4793
4793
  {
@@ -4799,7 +4799,7 @@ var Rect = /*#__PURE__*/ function() {
4799
4799
  },
4800
4800
  set: function set(value) {
4801
4801
  this._width = value;
4802
- this._onValueChanged && this._onValueChanged();
4802
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4803
4803
  }
4804
4804
  },
4805
4805
  {
@@ -4811,7 +4811,7 @@ var Rect = /*#__PURE__*/ function() {
4811
4811
  },
4812
4812
  set: function set(value) {
4813
4813
  this._height = value;
4814
- this._onValueChanged && this._onValueChanged();
4814
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4815
4815
  }
4816
4816
  }
4817
4817
  ]);