فهرست منبع

Fixing naming and create release

DESKTOP-QJU4N0L\mityh 8 سال پیش
والد
کامیت
9c41113ebd

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 10105 - 10083
dist/preview release/babylon.d.ts


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 42 - 42
dist/preview release/babylon.js


+ 8 - 4
dist/preview release/babylon.max.js

@@ -35483,7 +35483,7 @@ var BABYLON;
                             previousPinchDistance = pinchDistance;
                             return;
                         }
-                        if (Math.abs(pinchDistance - previousPinchDistance) > _this.camera.pinchToPanMaxDistance) {
+                        if (pinchDistance > _this.camera.panMaxFingersDistance || Math.abs(pinchDistance - previousPinchDistance) > _this.camera.pinchToPanMaxDistance) {
                             _this.camera
                                 .inertialRadiusOffset += (pinchSquaredDistance - previousPinchSquaredDistance) /
                                 (_this.pinchPrecision *
@@ -35643,7 +35643,8 @@ var BABYLON;
             _this.upperRadiusLimit = null;
             _this.inertialPanningX = 0;
             _this.inertialPanningY = 0;
-            _this.pinchToPanMaxDistance = 2;
+            _this.pinchToPanMaxDistance = 3;
+            _this.panMaxFingersDistance = 100;
             _this.panningDistanceLimit = null;
             _this.panningOriginTarget = BABYLON.Vector3.Zero();
             _this.panningInertia = 0.9;
@@ -36334,6 +36335,9 @@ var BABYLON;
         ], ArcRotateCamera.prototype, "pinchToPanMaxDistance", void 0);
         __decorate([
             BABYLON.serialize()
+        ], ArcRotateCamera.prototype, "panMaxFingersDistance", void 0);
+        __decorate([
+            BABYLON.serialize()
         ], ArcRotateCamera.prototype, "panningDistanceLimit", void 0);
         __decorate([
             BABYLON.serializeAsVector3()
@@ -40964,7 +40968,7 @@ var BABYLON;
             this.angularSpeed = 0;
             this._currentFrameCounter = 0;
             this.cellIndex = 0;
-            if (!this.particleSystem.IsAnimationSheetEnabled) {
+            if (!this.particleSystem.isAnimationSheetEnabled) {
                 return;
             }
             this.cellIndex = this.particleSystem.startSpriteCellID;
@@ -41171,7 +41175,7 @@ var BABYLON;
             enumerable: true,
             configurable: true
         });
-        Object.defineProperty(ParticleSystem.prototype, "IsAnimationSheetEnabled", {
+        Object.defineProperty(ParticleSystem.prototype, "isAnimationSheetEnabled", {
             get: function () {
                 return this._isAnimationSheetEnabled;
             },

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 10105 - 10083
dist/preview release/babylon.module.d.ts


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 43 - 43
dist/preview release/babylon.worker.js


+ 1 - 1
src/Particles/babylon.particle.ts

@@ -15,7 +15,7 @@
         public cellIndex: number = 0;
 
         constructor(private particleSystem: ParticleSystem) {
-            if (!this.particleSystem.IsAnimationSheetEnabled) {
+            if (!this.particleSystem.isAnimationSheetEnabled) {
                 return;
             }
 

+ 1 - 1
src/Particles/babylon.particleSystem.ts

@@ -132,7 +132,7 @@
         public spriteCellHeight = 0;
         private _vertexBufferSize = 11;
 
-        public get IsAnimationSheetEnabled(): Boolean {
+        public get isAnimationSheetEnabled(): Boolean {
             return this._isAnimationSheetEnabled;
         }
         // end of sheet animation