@galacean/engine-math 1.4.0-alpha.2 → 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/module.js CHANGED
@@ -127,7 +127,7 @@ function _create_class(Constructor, protoProps, staticProps) {
127
127
  this._x = x;
128
128
  this._y = y;
129
129
  this._z = z;
130
- this._onValueChanged && this._onValueChanged();
130
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
131
131
  return this;
132
132
  };
133
133
  /**
@@ -138,7 +138,7 @@ function _create_class(Constructor, protoProps, staticProps) {
138
138
  this._x += right._x;
139
139
  this._y += right._y;
140
140
  this._z += right._z;
141
- this._onValueChanged && this._onValueChanged();
141
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
142
142
  return this;
143
143
  };
144
144
  /**
@@ -149,7 +149,7 @@ function _create_class(Constructor, protoProps, staticProps) {
149
149
  this._x -= right._x;
150
150
  this._y -= right._y;
151
151
  this._z -= right._z;
152
- this._onValueChanged && this._onValueChanged();
152
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
153
153
  return this;
154
154
  };
155
155
  /**
@@ -160,7 +160,7 @@ function _create_class(Constructor, protoProps, staticProps) {
160
160
  this._x *= right._x;
161
161
  this._y *= right._y;
162
162
  this._z *= right._z;
163
- this._onValueChanged && this._onValueChanged();
163
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
164
164
  return this;
165
165
  };
166
166
  /**
@@ -171,7 +171,7 @@ function _create_class(Constructor, protoProps, staticProps) {
171
171
  this._x /= right._x;
172
172
  this._y /= right._y;
173
173
  this._z /= right._z;
174
- this._onValueChanged && this._onValueChanged();
174
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
175
175
  return this;
176
176
  };
177
177
  /**
@@ -195,7 +195,7 @@ function _create_class(Constructor, protoProps, staticProps) {
195
195
  this._x = -this._x;
196
196
  this._y = -this._y;
197
197
  this._z = -this._z;
198
- this._onValueChanged && this._onValueChanged();
198
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
199
199
  return this;
200
200
  };
201
201
  /**
@@ -213,7 +213,7 @@ function _create_class(Constructor, protoProps, staticProps) {
213
213
  this._x *= s;
214
214
  this._y *= s;
215
215
  this._z *= s;
216
- this._onValueChanged && this._onValueChanged();
216
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
217
217
  return this;
218
218
  };
219
219
  /**
@@ -274,7 +274,7 @@ function _create_class(Constructor, protoProps, staticProps) {
274
274
  this._x = source.x;
275
275
  this._y = source.y;
276
276
  this._z = source.z;
277
- this._onValueChanged && this._onValueChanged();
277
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
278
278
  return this;
279
279
  };
280
280
  /**
@@ -297,7 +297,7 @@ function _create_class(Constructor, protoProps, staticProps) {
297
297
  this._x = array[offset];
298
298
  this._y = array[offset + 1];
299
299
  this._z = array[offset + 2];
300
- this._onValueChanged && this._onValueChanged();
300
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
301
301
  return this;
302
302
  };
303
303
  /**
@@ -329,7 +329,7 @@ function _create_class(Constructor, protoProps, staticProps) {
329
329
  out._x = left._x + right._x;
330
330
  out._y = left._y + right._y;
331
331
  out._z = left._z + right._z;
332
- out._onValueChanged && out._onValueChanged();
332
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
333
333
  };
334
334
  /**
335
335
  * Determines the difference between two vectors.
@@ -340,7 +340,7 @@ function _create_class(Constructor, protoProps, staticProps) {
340
340
  out._x = left._x - right._x;
341
341
  out._y = left._y - right._y;
342
342
  out._z = left._z - right._z;
343
- out._onValueChanged && out._onValueChanged();
343
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
344
344
  };
345
345
  /**
346
346
  * Determines the product of two vectors.
@@ -351,7 +351,7 @@ function _create_class(Constructor, protoProps, staticProps) {
351
351
  out._x = left._x * right._x;
352
352
  out._y = left._y * right._y;
353
353
  out._z = left._z * right._z;
354
- out._onValueChanged && out._onValueChanged();
354
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
355
355
  };
356
356
  /**
357
357
  * Determines the divisor of two vectors.
@@ -362,7 +362,7 @@ function _create_class(Constructor, protoProps, staticProps) {
362
362
  out._x = left._x / right._x;
363
363
  out._y = left._y / right._y;
364
364
  out._z = left._z / right._z;
365
- out._onValueChanged && out._onValueChanged();
365
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
366
366
  };
367
367
  /**
368
368
  * Determines the dot product of two vectors.
@@ -427,7 +427,7 @@ function _create_class(Constructor, protoProps, staticProps) {
427
427
  out._x = _x + (end._x - _x) * t;
428
428
  out._y = _y + (end._y - _y) * t;
429
429
  out._z = _z + (end._z - _z) * t;
430
- out._onValueChanged && out._onValueChanged();
430
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
431
431
  };
432
432
  /**
433
433
  * Calculate a vector containing the largest components of the specified vectors.
@@ -438,7 +438,7 @@ function _create_class(Constructor, protoProps, staticProps) {
438
438
  out._x = Math.max(left._x, right._x);
439
439
  out._y = Math.max(left._y, right._y);
440
440
  out._z = Math.max(left._z, right._z);
441
- out._onValueChanged && out._onValueChanged();
441
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
442
442
  };
443
443
  /**
444
444
  * Calculate a vector containing the smallest components of the specified vectors.
@@ -449,7 +449,7 @@ function _create_class(Constructor, protoProps, staticProps) {
449
449
  out._x = Math.min(left._x, right._x);
450
450
  out._y = Math.min(left._y, right._y);
451
451
  out._z = Math.min(left._z, right._z);
452
- out._onValueChanged && out._onValueChanged();
452
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
453
453
  };
454
454
  /**
455
455
  * Reverses the direction of a given vector.
@@ -459,7 +459,7 @@ function _create_class(Constructor, protoProps, staticProps) {
459
459
  out._x = -a._x;
460
460
  out._y = -a._y;
461
461
  out._z = -a._z;
462
- out._onValueChanged && out._onValueChanged();
462
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
463
463
  };
464
464
  /**
465
465
  * Converts the vector into a unit vector.
@@ -482,7 +482,7 @@ function _create_class(Constructor, protoProps, staticProps) {
482
482
  out._x = a._x * s;
483
483
  out._y = a._y * s;
484
484
  out._z = a._z * s;
485
- out._onValueChanged && out._onValueChanged();
485
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
486
486
  };
487
487
  /**
488
488
  * Performs a normal transformation using the given 4x4 matrix.
@@ -501,7 +501,7 @@ function _create_class(Constructor, protoProps, staticProps) {
501
501
  out._x = _x * e[0] + _y * e[4] + _z * e[8];
502
502
  out._y = _x * e[1] + _y * e[5] + _z * e[9];
503
503
  out._z = _x * e[2] + _y * e[6] + _z * e[10];
504
- out._onValueChanged && out._onValueChanged();
504
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
505
505
  };
506
506
  /**
507
507
  * Performs a transformation using the given 4x4 matrix.
@@ -514,7 +514,7 @@ function _create_class(Constructor, protoProps, staticProps) {
514
514
  out._x = _x * e[0] + _y * e[4] + _z * e[8] + e[12];
515
515
  out._y = _x * e[1] + _y * e[5] + _z * e[9] + e[13];
516
516
  out._z = _x * e[2] + _y * e[6] + _z * e[10] + e[14];
517
- out._onValueChanged && out._onValueChanged();
517
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
518
518
  };
519
519
  /**
520
520
  * Performs a transformation from vector3 to vector4 using the given 4x4 matrix.
@@ -528,7 +528,7 @@ function _create_class(Constructor, protoProps, staticProps) {
528
528
  out._y = _x * e[1] + _y * e[5] + _z * e[9] + e[13];
529
529
  out._z = _x * e[2] + _y * e[6] + _z * e[10] + e[14];
530
530
  out._w = _x * e[3] + _y * e[7] + _z * e[11] + e[15];
531
- out._onValueChanged && out._onValueChanged();
531
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
532
532
  };
533
533
  /**
534
534
  * Performs a coordinate transformation using the given 4x4 matrix.
@@ -550,7 +550,7 @@ function _create_class(Constructor, protoProps, staticProps) {
550
550
  out._x = (_x * e[0] + _y * e[4] + _z * e[8] + e[12]) * w;
551
551
  out._y = (_x * e[1] + _y * e[5] + _z * e[9] + e[13]) * w;
552
552
  out._z = (_x * e[2] + _y * e[6] + _z * e[10] + e[14]) * w;
553
- out._onValueChanged && out._onValueChanged();
553
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
554
554
  };
555
555
  /**
556
556
  * Performs a transformation using the given quaternion.
@@ -569,7 +569,7 @@ function _create_class(Constructor, protoProps, staticProps) {
569
569
  out._x = ix * qw - iw * qx - iy * qz + iz * qy;
570
570
  out._y = iy * qw - iw * qy - iz * qx + ix * qz;
571
571
  out._z = iz * qw - iw * qz - ix * qy + iy * qx;
572
- out._onValueChanged && out._onValueChanged();
572
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
573
573
  };
574
574
  _create_class(Vector3, [
575
575
  {
@@ -581,7 +581,7 @@ function _create_class(Constructor, protoProps, staticProps) {
581
581
  },
582
582
  set: function set(value) {
583
583
  this._x = value;
584
- this._onValueChanged && this._onValueChanged();
584
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
585
585
  }
586
586
  },
587
587
  {
@@ -593,7 +593,7 @@ function _create_class(Constructor, protoProps, staticProps) {
593
593
  },
594
594
  set: function set(value) {
595
595
  this._y = value;
596
- this._onValueChanged && this._onValueChanged();
596
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
597
597
  }
598
598
  },
599
599
  {
@@ -605,7 +605,7 @@ function _create_class(Constructor, protoProps, staticProps) {
605
605
  },
606
606
  set: function set(value) {
607
607
  this._z = value;
608
- this._onValueChanged && this._onValueChanged();
608
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
609
609
  }
610
610
  }
611
611
  ]);
@@ -704,7 +704,7 @@ BoundingSphere._tempVec30 = new Vector3();
704
704
  var centerX = max._x + min._x;
705
705
  var centerY = max._y + min._y;
706
706
  var centerZ = max._z + min._z;
707
- out.set(isNaN(centerX) ? 0 : centerX * 0.5, isNaN(centerY) ? 0 : centerY * 0.5, isNaN(centerZ) ? 0 : centerZ * 0.5);
707
+ out.set(Number.isNaN(centerX) ? 0 : centerX * 0.5, Number.isNaN(centerY) ? 0 : centerY * 0.5, Number.isNaN(centerZ) ? 0 : centerZ * 0.5);
708
708
  return out;
709
709
  };
710
710
  /**
@@ -716,7 +716,7 @@ BoundingSphere._tempVec30 = new Vector3();
716
716
  var extentX = max._x - min._x;
717
717
  var extentY = max._y - min._y;
718
718
  var extentZ = max._z - min._z;
719
- out.set(isNaN(extentX) ? 0 : extentX * 0.5, isNaN(extentY) ? 0 : extentY * 0.5, isNaN(extentZ) ? 0 : extentZ * 0.5);
719
+ out.set(Number.isNaN(extentX) ? 0 : extentX * 0.5, Number.isNaN(extentY) ? 0 : extentY * 0.5, Number.isNaN(extentZ) ? 0 : extentZ * 0.5);
720
720
  return out;
721
721
  };
722
722
  /**
@@ -2018,7 +2018,7 @@ CollisionUtil._tempVec32 = new Vector3();
2018
2018
  this._y = y;
2019
2019
  this._z = z;
2020
2020
  this._w = w;
2021
- this._onValueChanged && this._onValueChanged();
2021
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
2022
2022
  return this;
2023
2023
  };
2024
2024
  /**
@@ -2028,7 +2028,7 @@ CollisionUtil._tempVec32 = new Vector3();
2028
2028
  this._x *= -1;
2029
2029
  this._y *= -1;
2030
2030
  this._z *= -1;
2031
- this._onValueChanged && this._onValueChanged();
2031
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
2032
2032
  return this;
2033
2033
  };
2034
2034
  /**
@@ -2059,7 +2059,7 @@ CollisionUtil._tempVec32 = new Vector3();
2059
2059
  this._y = 0;
2060
2060
  this._z = 0;
2061
2061
  this._w = 1;
2062
- this._onValueChanged && this._onValueChanged();
2062
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
2063
2063
  return this;
2064
2064
  };
2065
2065
  /**
@@ -2092,7 +2092,7 @@ CollisionUtil._tempVec32 = new Vector3();
2092
2092
  var t = out._x;
2093
2093
  out._x = out._y;
2094
2094
  out._y = t;
2095
- out._onValueChanged && out._onValueChanged();
2095
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2096
2096
  return out;
2097
2097
  };
2098
2098
  /**
@@ -2101,7 +2101,7 @@ CollisionUtil._tempVec32 = new Vector3();
2101
2101
  * @returns Euler x->yaw y->pitch z->roll
2102
2102
  */ _proto.toYawPitchRoll = function toYawPitchRoll(out) {
2103
2103
  this._toYawPitchRoll(out);
2104
- out._onValueChanged && out._onValueChanged();
2104
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2105
2105
  return out;
2106
2106
  };
2107
2107
  /**
@@ -2193,7 +2193,7 @@ CollisionUtil._tempVec32 = new Vector3();
2193
2193
  this._y = source.y;
2194
2194
  this._z = source.z;
2195
2195
  this._w = source.w;
2196
- this._onValueChanged && this._onValueChanged();
2196
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
2197
2197
  return this;
2198
2198
  };
2199
2199
  /**
@@ -2218,7 +2218,7 @@ CollisionUtil._tempVec32 = new Vector3();
2218
2218
  this._y = array[offset + 1];
2219
2219
  this._z = array[offset + 2];
2220
2220
  this._w = array[offset + 3];
2221
- this._onValueChanged && this._onValueChanged();
2221
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
2222
2222
  return this;
2223
2223
  };
2224
2224
  /**
@@ -2276,7 +2276,7 @@ CollisionUtil._tempVec32 = new Vector3();
2276
2276
  out._y = left._y + right._y;
2277
2277
  out._z = left._z + right._z;
2278
2278
  out._w = left._w + right._w;
2279
- out._onValueChanged && out._onValueChanged();
2279
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2280
2280
  };
2281
2281
  /**
2282
2282
  * Determines the product of two quaternions.
@@ -2290,7 +2290,7 @@ CollisionUtil._tempVec32 = new Vector3();
2290
2290
  out._y = ay * bw + aw * by + az * bx - ax * bz;
2291
2291
  out._z = az * bw + aw * bz + ax * by - ay * bx;
2292
2292
  out._w = aw * bw - ax * bx - ay * by - az * bz;
2293
- out._onValueChanged && out._onValueChanged();
2293
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2294
2294
  };
2295
2295
  /**
2296
2296
  * Calculate quaternion that contains conjugated version of the specified quaternion.
@@ -2301,7 +2301,7 @@ CollisionUtil._tempVec32 = new Vector3();
2301
2301
  out._y = -a._y;
2302
2302
  out._z = -a._z;
2303
2303
  out._w = a._w;
2304
- out._onValueChanged && out._onValueChanged();
2304
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2305
2305
  };
2306
2306
  /**
2307
2307
  * Determines the dot product of two quaternions.
@@ -2333,7 +2333,7 @@ CollisionUtil._tempVec32 = new Vector3();
2333
2333
  out._y = normalAxis._y * s;
2334
2334
  out._z = normalAxis._z * s;
2335
2335
  out._w = Math.cos(rad);
2336
- out._onValueChanged && out._onValueChanged();
2336
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2337
2337
  };
2338
2338
  /**
2339
2339
  * Calculate a quaternion rotates around x, y, z axis (pitch/yaw/roll).
@@ -2366,7 +2366,7 @@ CollisionUtil._tempVec32 = new Vector3();
2366
2366
  out._y = sinYaw * cosPitch * cosRoll - cosYaw * sinPitch * sinRoll;
2367
2367
  out._z = cosYawPitch * sinRoll - sinYawPitch * cosRoll;
2368
2368
  out._w = cosYawPitch * cosRoll + sinYawPitch * sinRoll;
2369
- out._onValueChanged && out._onValueChanged();
2369
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2370
2370
  };
2371
2371
  /**
2372
2372
  * Calculate a quaternion from the specified 3x3 matrix.
@@ -2408,7 +2408,7 @@ CollisionUtil._tempVec32 = new Vector3();
2408
2408
  out._z = 0.5 * sqrt;
2409
2409
  out._w = (m12 - m21) * half;
2410
2410
  }
2411
- out._onValueChanged && out._onValueChanged();
2411
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2412
2412
  };
2413
2413
  /**
2414
2414
  * Calculate the inverse of the specified quaternion.
@@ -2423,7 +2423,7 @@ CollisionUtil._tempVec32 = new Vector3();
2423
2423
  out._y = -y * invDot;
2424
2424
  out._z = -z * invDot;
2425
2425
  out._w = w * invDot;
2426
- out._onValueChanged && out._onValueChanged();
2426
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2427
2427
  }
2428
2428
  };
2429
2429
  /**
@@ -2470,7 +2470,7 @@ CollisionUtil._tempVec32 = new Vector3();
2470
2470
  out.y = inverse * start.y + opposite * end.y;
2471
2471
  out.z = inverse * start.z + opposite * end.z;
2472
2472
  out.w = inverse * start.w + opposite * end.w;
2473
- out._onValueChanged && out._onValueChanged();
2473
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2474
2474
  };
2475
2475
  /**
2476
2476
  * Scales the specified quaternion magnitude to unit length.
@@ -2485,7 +2485,7 @@ CollisionUtil._tempVec32 = new Vector3();
2485
2485
  out._y = _y * len;
2486
2486
  out._z = _z * len;
2487
2487
  out._w = _w * len;
2488
- out._onValueChanged && out._onValueChanged();
2488
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2489
2489
  }
2490
2490
  };
2491
2491
  /**
@@ -2500,7 +2500,7 @@ CollisionUtil._tempVec32 = new Vector3();
2500
2500
  out._y = 0;
2501
2501
  out._z = 0;
2502
2502
  out._w = c;
2503
- out._onValueChanged && out._onValueChanged();
2503
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2504
2504
  };
2505
2505
  /**
2506
2506
  * Calculate a quaternion rotate around Y axis.
@@ -2514,7 +2514,7 @@ CollisionUtil._tempVec32 = new Vector3();
2514
2514
  out._y = s;
2515
2515
  out._z = 0;
2516
2516
  out._w = c;
2517
- out._onValueChanged && out._onValueChanged();
2517
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2518
2518
  };
2519
2519
  /**
2520
2520
  * Calculate a quaternion rotate around Z axis.
@@ -2528,7 +2528,7 @@ CollisionUtil._tempVec32 = new Vector3();
2528
2528
  out._y = 0;
2529
2529
  out._z = s;
2530
2530
  out._w = c;
2531
- out._onValueChanged && out._onValueChanged();
2531
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2532
2532
  };
2533
2533
  /**
2534
2534
  * Calculate a quaternion that the specified quaternion rotate around X axis.
@@ -2544,7 +2544,7 @@ CollisionUtil._tempVec32 = new Vector3();
2544
2544
  out._y = _y * bw + _z * bx;
2545
2545
  out._z = _z * bw - _y * bx;
2546
2546
  out._w = _w * bw - _x * bx;
2547
- out._onValueChanged && out._onValueChanged();
2547
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2548
2548
  };
2549
2549
  /**
2550
2550
  * Calculate a quaternion that the specified quaternion rotate around Y axis.
@@ -2560,7 +2560,7 @@ CollisionUtil._tempVec32 = new Vector3();
2560
2560
  out._y = _y * bw + _w * by;
2561
2561
  out._z = _z * bw + _x * by;
2562
2562
  out._w = _w * bw - _y * by;
2563
- out._onValueChanged && out._onValueChanged();
2563
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2564
2564
  };
2565
2565
  /**
2566
2566
  * Calculate a quaternion that the specified quaternion rotate around Z axis.
@@ -2576,7 +2576,7 @@ CollisionUtil._tempVec32 = new Vector3();
2576
2576
  out._y = _y * bw - _x * bz;
2577
2577
  out._z = _z * bw + _w * bz;
2578
2578
  out._w = _w * bw - _z * bz;
2579
- out._onValueChanged && out._onValueChanged();
2579
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2580
2580
  };
2581
2581
  /**
2582
2582
  * Scale a quaternion by a given number.
@@ -2588,7 +2588,7 @@ CollisionUtil._tempVec32 = new Vector3();
2588
2588
  out._y = a._y * s;
2589
2589
  out._z = a._z * s;
2590
2590
  out._w = a._w * s;
2591
- out._onValueChanged && out._onValueChanged();
2591
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2592
2592
  };
2593
2593
  _create_class(Quaternion, [
2594
2594
  {
@@ -2600,7 +2600,7 @@ CollisionUtil._tempVec32 = new Vector3();
2600
2600
  },
2601
2601
  set: function set(value) {
2602
2602
  this._x = value;
2603
- this._onValueChanged && this._onValueChanged();
2603
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
2604
2604
  }
2605
2605
  },
2606
2606
  {
@@ -2612,7 +2612,7 @@ CollisionUtil._tempVec32 = new Vector3();
2612
2612
  },
2613
2613
  set: function set(value) {
2614
2614
  this._y = value;
2615
- this._onValueChanged && this._onValueChanged();
2615
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
2616
2616
  }
2617
2617
  },
2618
2618
  {
@@ -2624,7 +2624,7 @@ CollisionUtil._tempVec32 = new Vector3();
2624
2624
  },
2625
2625
  set: function set(value) {
2626
2626
  this._z = value;
2627
- this._onValueChanged && this._onValueChanged();
2627
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
2628
2628
  }
2629
2629
  },
2630
2630
  {
@@ -2644,7 +2644,7 @@ CollisionUtil._tempVec32 = new Vector3();
2644
2644
  },
2645
2645
  set: function set(value) {
2646
2646
  this._w = value;
2647
- this._onValueChanged && this._onValueChanged();
2647
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
2648
2648
  }
2649
2649
  }
2650
2650
  ]);
@@ -2850,7 +2850,7 @@ CollisionUtil._tempVec32 = new Vector3();
2850
2850
  out._y = (e[6] + e[9]) / s3;
2851
2851
  out._z = 0.25 * s3;
2852
2852
  }
2853
- out._onValueChanged && out._onValueChanged();
2853
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
2854
2854
  return out;
2855
2855
  };
2856
2856
  /**
@@ -3662,7 +3662,7 @@ Matrix._tempMat30 = new Matrix3x3();
3662
3662
  */ _proto.set = function set(x, y) {
3663
3663
  this._x = x;
3664
3664
  this._y = y;
3665
- this._onValueChanged && this._onValueChanged();
3665
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
3666
3666
  return this;
3667
3667
  };
3668
3668
  /**
@@ -3672,7 +3672,7 @@ Matrix._tempMat30 = new Matrix3x3();
3672
3672
  */ _proto.add = function add(right) {
3673
3673
  this._x += right._x;
3674
3674
  this._y += right._y;
3675
- this._onValueChanged && this._onValueChanged();
3675
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
3676
3676
  return this;
3677
3677
  };
3678
3678
  /**
@@ -3682,7 +3682,7 @@ Matrix._tempMat30 = new Matrix3x3();
3682
3682
  */ _proto.subtract = function subtract(right) {
3683
3683
  this._x -= right._x;
3684
3684
  this._y -= right._y;
3685
- this._onValueChanged && this._onValueChanged();
3685
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
3686
3686
  return this;
3687
3687
  };
3688
3688
  /**
@@ -3692,7 +3692,7 @@ Matrix._tempMat30 = new Matrix3x3();
3692
3692
  */ _proto.multiply = function multiply(right) {
3693
3693
  this._x *= right._x;
3694
3694
  this._y *= right._y;
3695
- this._onValueChanged && this._onValueChanged();
3695
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
3696
3696
  return this;
3697
3697
  };
3698
3698
  /**
@@ -3702,7 +3702,7 @@ Matrix._tempMat30 = new Matrix3x3();
3702
3702
  */ _proto.divide = function divide(right) {
3703
3703
  this._x /= right._x;
3704
3704
  this._y /= right._y;
3705
- this._onValueChanged && this._onValueChanged();
3705
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
3706
3706
  return this;
3707
3707
  };
3708
3708
  /**
@@ -3725,7 +3725,7 @@ Matrix._tempMat30 = new Matrix3x3();
3725
3725
  */ _proto.negate = function negate() {
3726
3726
  this._x = -this._x;
3727
3727
  this._y = -this._y;
3728
- this._onValueChanged && this._onValueChanged();
3728
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
3729
3729
  return this;
3730
3730
  };
3731
3731
  /**
@@ -3742,7 +3742,7 @@ Matrix._tempMat30 = new Matrix3x3();
3742
3742
  */ _proto.scale = function scale(s) {
3743
3743
  this._x *= s;
3744
3744
  this._y *= s;
3745
- this._onValueChanged && this._onValueChanged();
3745
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
3746
3746
  return this;
3747
3747
  };
3748
3748
  /**
@@ -3758,7 +3758,7 @@ Matrix._tempMat30 = new Matrix3x3();
3758
3758
  */ _proto.copyFrom = function copyFrom(source) {
3759
3759
  this._x = source.x;
3760
3760
  this._y = source.y;
3761
- this._onValueChanged && this._onValueChanged();
3761
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
3762
3762
  return this;
3763
3763
  };
3764
3764
  /**
@@ -3779,7 +3779,7 @@ Matrix._tempMat30 = new Matrix3x3();
3779
3779
  if (offset === void 0) offset = 0;
3780
3780
  this._x = array[offset];
3781
3781
  this._y = array[offset + 1];
3782
- this._onValueChanged && this._onValueChanged();
3782
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
3783
3783
  return this;
3784
3784
  };
3785
3785
  /**
@@ -3808,7 +3808,7 @@ Matrix._tempMat30 = new Matrix3x3();
3808
3808
  */ Vector2.add = function add(left, right, out) {
3809
3809
  out._x = left._x + right._x;
3810
3810
  out._y = left._y + right._y;
3811
- out._onValueChanged && out._onValueChanged();
3811
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
3812
3812
  };
3813
3813
  /**
3814
3814
  * Determines the difference between two vectors.
@@ -3818,7 +3818,7 @@ Matrix._tempMat30 = new Matrix3x3();
3818
3818
  */ Vector2.subtract = function subtract(left, right, out) {
3819
3819
  out._x = left._x - right._x;
3820
3820
  out._y = left._y - right._y;
3821
- out._onValueChanged && out._onValueChanged();
3821
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
3822
3822
  };
3823
3823
  /**
3824
3824
  * Determines the product of two vectors.
@@ -3828,7 +3828,7 @@ Matrix._tempMat30 = new Matrix3x3();
3828
3828
  */ Vector2.multiply = function multiply(left, right, out) {
3829
3829
  out._x = left._x * right._x;
3830
3830
  out._y = left._y * right._y;
3831
- out._onValueChanged && out._onValueChanged();
3831
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
3832
3832
  };
3833
3833
  /**
3834
3834
  * Determines the divisor of two vectors.
@@ -3838,7 +3838,7 @@ Matrix._tempMat30 = new Matrix3x3();
3838
3838
  */ Vector2.divide = function divide(left, right, out) {
3839
3839
  out._x = left._x / right._x;
3840
3840
  out._y = left._y / right._y;
3841
- out._onValueChanged && out._onValueChanged();
3841
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
3842
3842
  };
3843
3843
  /**
3844
3844
  * Determines the dot product of two vectors.
@@ -3886,7 +3886,7 @@ Matrix._tempMat30 = new Matrix3x3();
3886
3886
  var _x = left._x, _y = left._y;
3887
3887
  out._x = _x + (right._x - _x) * t;
3888
3888
  out._y = _y + (right._y - _y) * t;
3889
- out._onValueChanged && out._onValueChanged();
3889
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
3890
3890
  };
3891
3891
  /**
3892
3892
  * Calculate a vector containing the largest components of the specified vectors.
@@ -3896,7 +3896,7 @@ Matrix._tempMat30 = new Matrix3x3();
3896
3896
  */ Vector2.max = function max(left, right, out) {
3897
3897
  out._x = Math.max(left._x, right._x);
3898
3898
  out._y = Math.max(left._y, right._y);
3899
- out._onValueChanged && out._onValueChanged();
3899
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
3900
3900
  };
3901
3901
  /**
3902
3902
  * Calculate a vector containing the smallest components of the specified vectors.
@@ -3906,7 +3906,7 @@ Matrix._tempMat30 = new Matrix3x3();
3906
3906
  */ Vector2.min = function min(left, right, out) {
3907
3907
  out._x = Math.min(left._x, right._x);
3908
3908
  out._y = Math.min(left._y, right._y);
3909
- out._onValueChanged && out._onValueChanged();
3909
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
3910
3910
  };
3911
3911
  /**
3912
3912
  * Reverses the direction of a given vector.
@@ -3915,7 +3915,7 @@ Matrix._tempMat30 = new Matrix3x3();
3915
3915
  */ Vector2.negate = function negate(left, out) {
3916
3916
  out._x = -left._x;
3917
3917
  out._y = -left._y;
3918
- out._onValueChanged && out._onValueChanged();
3918
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
3919
3919
  };
3920
3920
  /**
3921
3921
  * Converts the vector into a unit vector.
@@ -3928,7 +3928,7 @@ Matrix._tempMat30 = new Matrix3x3();
3928
3928
  len = 1 / len;
3929
3929
  out._x = _x * len;
3930
3930
  out._y = _y * len;
3931
- out._onValueChanged && out._onValueChanged();
3931
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
3932
3932
  }
3933
3933
  };
3934
3934
  /**
@@ -3939,7 +3939,7 @@ Matrix._tempMat30 = new Matrix3x3();
3939
3939
  */ Vector2.scale = function scale(left, s, out) {
3940
3940
  out._x = left._x * s;
3941
3941
  out._y = left._y * s;
3942
- out._onValueChanged && out._onValueChanged();
3942
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
3943
3943
  };
3944
3944
  _create_class(Vector2, [
3945
3945
  {
@@ -3951,7 +3951,7 @@ Matrix._tempMat30 = new Matrix3x3();
3951
3951
  },
3952
3952
  set: function set(value) {
3953
3953
  this._x = value;
3954
- this._onValueChanged && this._onValueChanged();
3954
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
3955
3955
  }
3956
3956
  },
3957
3957
  {
@@ -3963,7 +3963,7 @@ Matrix._tempMat30 = new Matrix3x3();
3963
3963
  },
3964
3964
  set: function set(value) {
3965
3965
  this._y = value;
3966
- this._onValueChanged && this._onValueChanged();
3966
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
3967
3967
  }
3968
3968
  }
3969
3969
  ]);
@@ -3999,7 +3999,7 @@ Matrix._tempMat30 = new Matrix3x3();
3999
3999
  this._y = y;
4000
4000
  this._z = z;
4001
4001
  this._w = w;
4002
- this._onValueChanged && this._onValueChanged();
4002
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4003
4003
  return this;
4004
4004
  };
4005
4005
  /**
@@ -4011,7 +4011,7 @@ Matrix._tempMat30 = new Matrix3x3();
4011
4011
  this._y += right._y;
4012
4012
  this._z += right._z;
4013
4013
  this._w += right._w;
4014
- this._onValueChanged && this._onValueChanged();
4014
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4015
4015
  return this;
4016
4016
  };
4017
4017
  /**
@@ -4023,7 +4023,7 @@ Matrix._tempMat30 = new Matrix3x3();
4023
4023
  this._y -= right._y;
4024
4024
  this._z -= right._z;
4025
4025
  this._w -= right._w;
4026
- this._onValueChanged && this._onValueChanged();
4026
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4027
4027
  return this;
4028
4028
  };
4029
4029
  /**
@@ -4035,7 +4035,7 @@ Matrix._tempMat30 = new Matrix3x3();
4035
4035
  this._y *= right._y;
4036
4036
  this._z *= right._z;
4037
4037
  this._w *= right._w;
4038
- this._onValueChanged && this._onValueChanged();
4038
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4039
4039
  return this;
4040
4040
  };
4041
4041
  /**
@@ -4047,7 +4047,7 @@ Matrix._tempMat30 = new Matrix3x3();
4047
4047
  this._y /= right._y;
4048
4048
  this._z /= right._z;
4049
4049
  this._w /= right._w;
4050
- this._onValueChanged && this._onValueChanged();
4050
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4051
4051
  return this;
4052
4052
  };
4053
4053
  /**
@@ -4072,7 +4072,7 @@ Matrix._tempMat30 = new Matrix3x3();
4072
4072
  this._y = -this._y;
4073
4073
  this._z = -this._z;
4074
4074
  this._w = -this._w;
4075
- this._onValueChanged && this._onValueChanged();
4075
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4076
4076
  return this;
4077
4077
  };
4078
4078
  /**
@@ -4091,7 +4091,7 @@ Matrix._tempMat30 = new Matrix3x3();
4091
4091
  this._y *= s;
4092
4092
  this._z *= s;
4093
4093
  this._w *= s;
4094
- this._onValueChanged && this._onValueChanged();
4094
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4095
4095
  return this;
4096
4096
  };
4097
4097
  /**
@@ -4110,7 +4110,7 @@ Matrix._tempMat30 = new Matrix3x3();
4110
4110
  this._y = source.y;
4111
4111
  this._z = source.z;
4112
4112
  this._w = source.w;
4113
- this._onValueChanged && this._onValueChanged();
4113
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4114
4114
  return this;
4115
4115
  };
4116
4116
  /**
@@ -4135,7 +4135,7 @@ Matrix._tempMat30 = new Matrix3x3();
4135
4135
  this._y = array[offset + 1];
4136
4136
  this._z = array[offset + 2];
4137
4137
  this._w = array[offset + 3];
4138
- this._onValueChanged && this._onValueChanged();
4138
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4139
4139
  return this;
4140
4140
  };
4141
4141
  /**
@@ -4170,7 +4170,7 @@ Matrix._tempMat30 = new Matrix3x3();
4170
4170
  out._y = left._y + right._y;
4171
4171
  out._z = left._z + right._z;
4172
4172
  out._w = left._w + right._w;
4173
- out._onValueChanged && out._onValueChanged();
4173
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4174
4174
  };
4175
4175
  /**
4176
4176
  * Determines the difference between two vectors.
@@ -4182,7 +4182,7 @@ Matrix._tempMat30 = new Matrix3x3();
4182
4182
  out._y = left._y - right._y;
4183
4183
  out._z = left._z - right._z;
4184
4184
  out._w = left._w - right._w;
4185
- out._onValueChanged && out._onValueChanged();
4185
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4186
4186
  };
4187
4187
  /**
4188
4188
  * Determines the product of two vectors.
@@ -4194,7 +4194,7 @@ Matrix._tempMat30 = new Matrix3x3();
4194
4194
  out._y = left._y * right._y;
4195
4195
  out._z = left._z * right._z;
4196
4196
  out._w = left._w * right._w;
4197
- out._onValueChanged && out._onValueChanged();
4197
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4198
4198
  };
4199
4199
  /**
4200
4200
  * Determines the divisor of two vectors.
@@ -4206,7 +4206,7 @@ Matrix._tempMat30 = new Matrix3x3();
4206
4206
  out._y = left._y / right._y;
4207
4207
  out._z = left._z / right._z;
4208
4208
  out._w = left._w / right._w;
4209
- out._onValueChanged && out._onValueChanged();
4209
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4210
4210
  };
4211
4211
  /**
4212
4212
  * Determines the dot product of two vectors.
@@ -4260,7 +4260,7 @@ Matrix._tempMat30 = new Matrix3x3();
4260
4260
  out._y = _y + (end._y - _y) * t;
4261
4261
  out._z = _z + (end._z - _z) * t;
4262
4262
  out._w = _w + (end._w - _w) * t;
4263
- out._onValueChanged && out._onValueChanged();
4263
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4264
4264
  };
4265
4265
  /**
4266
4266
  * Calculate a vector containing the largest components of the specified vectors.
@@ -4272,7 +4272,7 @@ Matrix._tempMat30 = new Matrix3x3();
4272
4272
  out._y = Math.max(left._y, right._y);
4273
4273
  out._z = Math.max(left._z, right._z);
4274
4274
  out._w = Math.max(left._w, right._w);
4275
- out._onValueChanged && out._onValueChanged();
4275
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4276
4276
  };
4277
4277
  /**
4278
4278
  * Calculate a vector containing the smallest components of the specified vectors.
@@ -4284,7 +4284,7 @@ Matrix._tempMat30 = new Matrix3x3();
4284
4284
  out._y = Math.min(left._y, right._y);
4285
4285
  out._z = Math.min(left._z, right._z);
4286
4286
  out._w = Math.min(left._w, right._w);
4287
- out._onValueChanged && out._onValueChanged();
4287
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4288
4288
  };
4289
4289
  /**
4290
4290
  * Reverses the direction of a given vector.
@@ -4295,7 +4295,7 @@ Matrix._tempMat30 = new Matrix3x3();
4295
4295
  out._y = -a._y;
4296
4296
  out._z = -a._z;
4297
4297
  out._w = -a._w;
4298
- out._onValueChanged && out._onValueChanged();
4298
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4299
4299
  };
4300
4300
  /**
4301
4301
  * Converts the vector into a unit vector.
@@ -4310,7 +4310,7 @@ Matrix._tempMat30 = new Matrix3x3();
4310
4310
  out._y = _y * len;
4311
4311
  out._z = _z * len;
4312
4312
  out._w = _w * len;
4313
- out._onValueChanged && out._onValueChanged();
4313
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4314
4314
  }
4315
4315
  };
4316
4316
  /**
@@ -4323,7 +4323,7 @@ Matrix._tempMat30 = new Matrix3x3();
4323
4323
  out._y = a._y * s;
4324
4324
  out._z = a._z * s;
4325
4325
  out._w = a._w * s;
4326
- out._onValueChanged && out._onValueChanged();
4326
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4327
4327
  };
4328
4328
  /**
4329
4329
  * Performs a transformation using the given 4x4 matrix.
@@ -4337,7 +4337,7 @@ Matrix._tempMat30 = new Matrix3x3();
4337
4337
  out._y = _x * e[1] + _y * e[5] + _z * e[9] + _w * e[13];
4338
4338
  out._z = _x * e[2] + _y * e[6] + _z * e[10] + _w * e[14];
4339
4339
  out._w = _x * e[3] + _y * e[7] + _z * e[11] + _w * e[15];
4340
- out._onValueChanged && out._onValueChanged();
4340
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4341
4341
  };
4342
4342
  /**
4343
4343
  * Performs a transformation using the given quaternion.
@@ -4360,7 +4360,7 @@ Matrix._tempMat30 = new Matrix3x3();
4360
4360
  out._y = iy * qw - iw * qy - iz * qx + ix * qz;
4361
4361
  out._z = iz * qw - iw * qz - ix * qy + iy * qx;
4362
4362
  out._w = w;
4363
- out._onValueChanged && out._onValueChanged();
4363
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4364
4364
  };
4365
4365
  _create_class(Vector4, [
4366
4366
  {
@@ -4372,7 +4372,7 @@ Matrix._tempMat30 = new Matrix3x3();
4372
4372
  },
4373
4373
  set: function set(value) {
4374
4374
  this._x = value;
4375
- this._onValueChanged && this._onValueChanged();
4375
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4376
4376
  }
4377
4377
  },
4378
4378
  {
@@ -4384,7 +4384,7 @@ Matrix._tempMat30 = new Matrix3x3();
4384
4384
  },
4385
4385
  set: function set(value) {
4386
4386
  this._y = value;
4387
- this._onValueChanged && this._onValueChanged();
4387
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4388
4388
  }
4389
4389
  },
4390
4390
  {
@@ -4396,7 +4396,7 @@ Matrix._tempMat30 = new Matrix3x3();
4396
4396
  },
4397
4397
  set: function set(value) {
4398
4398
  this._z = value;
4399
- this._onValueChanged && this._onValueChanged();
4399
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4400
4400
  }
4401
4401
  },
4402
4402
  {
@@ -4408,7 +4408,7 @@ Matrix._tempMat30 = new Matrix3x3();
4408
4408
  },
4409
4409
  set: function set(value) {
4410
4410
  this._w = value;
4411
- this._onValueChanged && this._onValueChanged();
4411
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4412
4412
  }
4413
4413
  }
4414
4414
  ]);
@@ -4444,7 +4444,7 @@ Matrix._tempMat30 = new Matrix3x3();
4444
4444
  this._g = g;
4445
4445
  this._b = b;
4446
4446
  this._a = a;
4447
- this._onValueChanged && this._onValueChanged();
4447
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4448
4448
  return this;
4449
4449
  };
4450
4450
  /**
@@ -4456,7 +4456,7 @@ Matrix._tempMat30 = new Matrix3x3();
4456
4456
  this._g += color._g;
4457
4457
  this._b += color._b;
4458
4458
  this._a += color._a;
4459
- this._onValueChanged && this._onValueChanged();
4459
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4460
4460
  return this;
4461
4461
  };
4462
4462
  /**
@@ -4468,7 +4468,7 @@ Matrix._tempMat30 = new Matrix3x3();
4468
4468
  this._g *= s;
4469
4469
  this._b *= s;
4470
4470
  this._a *= s;
4471
- this._onValueChanged && this._onValueChanged();
4471
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4472
4472
  return this;
4473
4473
  };
4474
4474
  /**
@@ -4487,7 +4487,7 @@ Matrix._tempMat30 = new Matrix3x3();
4487
4487
  this._g = source.g;
4488
4488
  this._b = source.b;
4489
4489
  this._a = source.a;
4490
- this._onValueChanged && this._onValueChanged();
4490
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4491
4491
  return this;
4492
4492
  };
4493
4493
  /**
@@ -4512,7 +4512,7 @@ Matrix._tempMat30 = new Matrix3x3();
4512
4512
  this._g = source[offset + 1];
4513
4513
  this._b = source[offset + 2];
4514
4514
  this._a = source[offset + 3];
4515
- this._onValueChanged && this._onValueChanged();
4515
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4516
4516
  return this;
4517
4517
  };
4518
4518
  /**
@@ -4534,7 +4534,7 @@ Matrix._tempMat30 = new Matrix3x3();
4534
4534
  out._r = Color.gammaToLinearSpace(this._r);
4535
4535
  out._g = Color.gammaToLinearSpace(this._g);
4536
4536
  out._b = Color.gammaToLinearSpace(this._b);
4537
- out._onValueChanged && out._onValueChanged();
4537
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4538
4538
  return out;
4539
4539
  };
4540
4540
  /**
@@ -4545,7 +4545,7 @@ Matrix._tempMat30 = new Matrix3x3();
4545
4545
  out._r = Color.linearToGammaSpace(this._r);
4546
4546
  out._g = Color.linearToGammaSpace(this._g);
4547
4547
  out._b = Color.linearToGammaSpace(this._b);
4548
- out._onValueChanged && out._onValueChanged();
4548
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4549
4549
  return out;
4550
4550
  };
4551
4551
  /**
@@ -4617,7 +4617,7 @@ Matrix._tempMat30 = new Matrix3x3();
4617
4617
  out._g = left._g + right._g;
4618
4618
  out._b = left._b + right._b;
4619
4619
  out._a = left._a + right._a;
4620
- out._onValueChanged && out._onValueChanged();
4620
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4621
4621
  return out;
4622
4622
  };
4623
4623
  /**
@@ -4630,7 +4630,7 @@ Matrix._tempMat30 = new Matrix3x3();
4630
4630
  out._g = left._g - right._g;
4631
4631
  out._b = left._b - right._b;
4632
4632
  out._a = left._a - right._a;
4633
- out._onValueChanged && out._onValueChanged();
4633
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4634
4634
  };
4635
4635
  /**
4636
4636
  * Scale a color by the given value.
@@ -4643,7 +4643,7 @@ Matrix._tempMat30 = new Matrix3x3();
4643
4643
  out._g = left._g * s;
4644
4644
  out._b = left._b * s;
4645
4645
  out._a = left._a * s;
4646
- out._onValueChanged && out._onValueChanged();
4646
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4647
4647
  return out;
4648
4648
  };
4649
4649
  /**
@@ -4658,7 +4658,7 @@ Matrix._tempMat30 = new Matrix3x3();
4658
4658
  out._g = _g + (end._g - _g) * t;
4659
4659
  out._b = _b + (end._b - _b) * t;
4660
4660
  out._a = _a + (end._a - _a) * t;
4661
- out._onValueChanged && out._onValueChanged();
4661
+ out._onValueChanged == null ? void 0 : out._onValueChanged.call(out);
4662
4662
  return out;
4663
4663
  };
4664
4664
  _create_class(Color, [
@@ -4671,7 +4671,7 @@ Matrix._tempMat30 = new Matrix3x3();
4671
4671
  },
4672
4672
  set: function set(value) {
4673
4673
  this._r = value;
4674
- this._onValueChanged && this._onValueChanged();
4674
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4675
4675
  }
4676
4676
  },
4677
4677
  {
@@ -4683,7 +4683,7 @@ Matrix._tempMat30 = new Matrix3x3();
4683
4683
  },
4684
4684
  set: function set(value) {
4685
4685
  this._g = value;
4686
- this._onValueChanged && this._onValueChanged();
4686
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4687
4687
  }
4688
4688
  },
4689
4689
  {
@@ -4695,7 +4695,7 @@ Matrix._tempMat30 = new Matrix3x3();
4695
4695
  },
4696
4696
  set: function set(value) {
4697
4697
  this._b = value;
4698
- this._onValueChanged && this._onValueChanged();
4698
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4699
4699
  }
4700
4700
  },
4701
4701
  {
@@ -4707,7 +4707,7 @@ Matrix._tempMat30 = new Matrix3x3();
4707
4707
  },
4708
4708
  set: function set(value) {
4709
4709
  this._a = value;
4710
- this._onValueChanged && this._onValueChanged();
4710
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4711
4711
  }
4712
4712
  }
4713
4713
  ]);
@@ -4740,7 +4740,7 @@ var Rect = /*#__PURE__*/ function() {
4740
4740
  this._y = y;
4741
4741
  this._width = width;
4742
4742
  this._height = height;
4743
- this._onValueChanged && this._onValueChanged();
4743
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4744
4744
  return this;
4745
4745
  };
4746
4746
  /**
@@ -4758,7 +4758,7 @@ var Rect = /*#__PURE__*/ function() {
4758
4758
  this._y = source.y;
4759
4759
  this._width = source.width;
4760
4760
  this._height = source.height;
4761
- this._onValueChanged && this._onValueChanged();
4761
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4762
4762
  return this;
4763
4763
  };
4764
4764
  _create_class(Rect, [
@@ -4771,7 +4771,7 @@ var Rect = /*#__PURE__*/ function() {
4771
4771
  },
4772
4772
  set: function set(value) {
4773
4773
  this._x = value;
4774
- this._onValueChanged && this._onValueChanged();
4774
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4775
4775
  }
4776
4776
  },
4777
4777
  {
@@ -4783,7 +4783,7 @@ var Rect = /*#__PURE__*/ function() {
4783
4783
  },
4784
4784
  set: function set(value) {
4785
4785
  this._y = value;
4786
- this._onValueChanged && this._onValueChanged();
4786
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4787
4787
  }
4788
4788
  },
4789
4789
  {
@@ -4795,7 +4795,7 @@ var Rect = /*#__PURE__*/ function() {
4795
4795
  },
4796
4796
  set: function set(value) {
4797
4797
  this._width = value;
4798
- this._onValueChanged && this._onValueChanged();
4798
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4799
4799
  }
4800
4800
  },
4801
4801
  {
@@ -4807,7 +4807,7 @@ var Rect = /*#__PURE__*/ function() {
4807
4807
  },
4808
4808
  set: function set(value) {
4809
4809
  this._height = value;
4810
- this._onValueChanged && this._onValueChanged();
4810
+ this._onValueChanged == null ? void 0 : this._onValueChanged.call(this);
4811
4811
  }
4812
4812
  }
4813
4813
  ]);