docstring_tokens stringlengths 0 76.5k | code_tokens stringlengths 75 1.81M | label_window listlengths 4 2.12k | html_url stringlengths 74 116 | file_name stringlengths 3 311 |
|---|---|---|---|---|
return this; | <mask> this.y *= scale;
<mask> this.z *= scale;
<mask> }
<mask>
<mask> public scale(scale: number): Vector3 {
<mask> return new Vector3(this.x * scale, this.y * scale, this.z * scale);
<mask> }
</s> Return 'this' in Vector2/3::ScaleInPlace/Normalize f... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/ecc2ad2f61b2f1640589548f3881cc297f95d2a5 | Babylon/Math/babylon.math.ts |
return this; | <mask>
<mask> this.x *= num;
<mask> this.y *= num;
<mask> this.z *= num;
<mask> }
<mask>
<mask> public clone(): Vector3 {
<mask> return new Vector3(this.x, this.y, this.z);
<mask> }
</s> Return 'this' in Vector2/3::ScaleInPlace/Normaliz... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/ecc2ad2f61b2f1640589548f3881cc297f95d2a5 | Babylon/Math/babylon.math.ts |
} else { | <mask> this.triggerOptions = triggerOptions;
<mask> if (triggerOptions.parameter) {
<mask> this.trigger = triggerOptions.trigger;
<mask> this._triggerParameter = triggerOptions.parameter;
<mask> }
<mask> else {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Actions/babylon.action.js |
} else { | <mask> if (this._condition._evaluationId === currentRenderId) {
<mask> if (!this._condition._currentResult) {
<mask> return;
<mask> }
<mask> }
<mask> else {
<mask> this._condition._... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Actions/babylon.action.js |
} else { | <mask> if (!this._nextActiveAction._child._actionManager) {
<mask> this._nextActiveAction._child._actionManager = this._actionManager;
<mask> }
<mask> this._nextActiveAction = this._nextActiveAction._child;
<mask> }
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Actions/babylon.action.js |
<mask> return Action;
<mask> })();
<mask> BABYLON.Action = Action;
<mask> })(BABYLON || (BABYLON = {}));
<mask> //# sourceMappingURL=babylon.action.js.map </s> Update after project rebuild
Former-commit-id: a2d5c6a94ad4c31a48c189703e1214d6166528bf </s> remove //# sourceMappingURL=babylon.scene.js... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Actions/babylon.action.js | |
<mask> ActionManager.prototype._getProperty = function (propertyPath) {
<mask> var properties = propertyPath.split(".");
<mask> return properties[properties.length - 1];
<mask> };
<mask> // Statics
<mask> ActionManager._NothingTrigger = 0;
<mask> Ac... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Actions/babylon.actionManager.js | |
<mask> return ActionManager;
<mask> })();
<mask> BABYLON.ActionManager = ActionManager;
<mask> })(BABYLON || (BABYLON = {}));
<mask> //# sourceMappingURL=babylon.actionManager.js.map </s> Update after project rebuild
Former-commit-id: a2d5c6a94ad4c31a48c189703e1214d6166528bf </s> remove //# sourc... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Actions/babylon.actionManager.js | |
if (typeof operator === "undefined") { operator = ValueCondition.IsEqual; } | <mask> BABYLON.Condition = Condition;
<mask> var ValueCondition = (function (_super) {
<mask> __extends(ValueCondition, _super);
<mask> function ValueCondition(actionManager, target, propertyPath, value, operator) {
<mask> if (operator === void 0) { operator = ValueCondition.IsE... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Actions/babylon.condition.js |
} else { | <mask> case ValueCondition.IsDifferent:
<mask> var check;
<mask> if (this.value.equals) {
<mask> check = this.value.equals(this._target[this._property]);
<mask> }
<mask> else {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Actions/babylon.condition.js |
<mask> return this.operator === ValueCondition.IsEqual ? check : !check;
<mask> }
<mask> return false;
<mask> };
<mask> // Statics
<mask> ValueCondition._IsEqual = 0;
<mask> ValueCondition._IsDifferent = 1;
<mask> ValueCondition... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Actions/babylon.condition.js | |
<mask> return StateCondition;
<mask> })(Condition);
<mask> BABYLON.StateCondition = StateCondition;
<mask> })(BABYLON || (BABYLON = {}));
<mask> //# sourceMappingURL=babylon.condition.js.map </s> Update after project rebuild
Former-commit-id: a2d5c6a94ad4c31a48c189703e1214d6166528bf </s> remove ... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Actions/babylon.condition.js | |
if (typeof triggerOptions === "undefined") { triggerOptions = BABYLON.ActionManager.NothingTrigger; } | <mask> BABYLON.StopAnimationAction = StopAnimationAction;
<mask> var DoNothingAction = (function (_super) {
<mask> __extends(DoNothingAction, _super);
<mask> function DoNothingAction(triggerOptions, condition) {
<mask> if (triggerOptions === void 0) { triggerOptions = BABYLON.Ac... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Actions/babylon.directActions.js |
<mask> return SetParentAction;
<mask> })(BABYLON.Action);
<mask> BABYLON.SetParentAction = SetParentAction;
<mask> })(BABYLON || (BABYLON = {}));
<mask> //# sourceMappingURL=babylon.directActions.js.map </s> Update after project rebuild
Former-commit-id: a2d5c6a94ad4c31a48c189703e1214d6166528bf <... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Actions/babylon.directActions.js | |
if (typeof duration === "undefined") { duration = 1000; } | <mask> (function (BABYLON) {
<mask> var InterpolateValueAction = (function (_super) {
<mask> __extends(InterpolateValueAction, _super);
<mask> function InterpolateValueAction(triggerOptions, target, propertyPath, value, duration, condition, stopOtherAnimations) {
<mask> if (duration... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Actions/babylon.interpolateValueAction.js |
}, { | <mask> var keys = [
<mask> {
<mask> frame: 0,
<mask> value: this._target[this._property]
<mask> },
<mask> {
<mask> frame: 100,
<mask> value: this.value
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Actions/babylon.interpolateValueAction.js |
} else if (this.value instanceof BABYLON.Color3) { | <mask> ];
<mask> var dataType;
<mask> if (typeof this.value === "number") {
<mask> dataType = BABYLON.Animation.ANIMATIONTYPE_FLOAT;
<mask> }
<mask> else if (this.value instanceof BABYLON.Color3) {
<mask> dataType = BABYL... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Actions/babylon.interpolateValueAction.js |
} else if (this.value instanceof BABYLON.Vector3) { | <mask> dataType = BABYLON.Animation.ANIMATIONTYPE_FLOAT;
<mask> }
<mask> else if (this.value instanceof BABYLON.Color3) {
<mask> dataType = BABYLON.Animation.ANIMATIONTYPE_COLOR3;
<mask> }
<mask> else if (this.value instanceof BABYLON... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Actions/babylon.interpolateValueAction.js |
} else if (this.value instanceof BABYLON.Matrix) { | <mask> dataType = BABYLON.Animation.ANIMATIONTYPE_COLOR3;
<mask> }
<mask> else if (this.value instanceof BABYLON.Vector3) {
<mask> dataType = BABYLON.Animation.ANIMATIONTYPE_VECTOR3;
<mask> }
<mask> else if (this.value instanceof BABY... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Actions/babylon.interpolateValueAction.js |
} else if (this.value instanceof BABYLON.Quaternion) { | <mask> dataType = BABYLON.Animation.ANIMATIONTYPE_VECTOR3;
<mask> }
<mask> else if (this.value instanceof BABYLON.Matrix) {
<mask> dataType = BABYLON.Animation.ANIMATIONTYPE_MATRIX;
<mask> }
<mask> else if (this.value instanceof BABYL... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Actions/babylon.interpolateValueAction.js |
} else { | <mask> dataType = BABYLON.Animation.ANIMATIONTYPE_MATRIX;
<mask> }
<mask> else if (this.value instanceof BABYLON.Quaternion) {
<mask> dataType = BABYLON.Animation.ANIMATIONTYPE_QUATERNION;
<mask> }
<mask> else {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Actions/babylon.interpolateValueAction.js |
<mask> return InterpolateValueAction;
<mask> })(BABYLON.Action);
<mask> BABYLON.InterpolateValueAction = InterpolateValueAction;
<mask> })(BABYLON || (BABYLON = {}));
<mask> //# sourceMappingURL=babylon.interpolateValueAction.js.map </s> Update after project rebuild
Former-commit-id: a2d5c6a94ad4... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Actions/babylon.interpolateValueAction.js | |
if (typeof fromFrame === "undefined") { fromFrame = 0; }
if (typeof toFrame === "undefined") { toFrame = 100; }
if (typeof loopAnimation === "undefined") { loopAnimation = false; }
if (typeof speedRatio === "undefined") { speedRatio = 1.0; }
| <mask> var BABYLON;
<mask> (function (BABYLON) {
<mask> var Animatable = (function () {
<mask> function Animatable(scene, target, fromFrame, toFrame, loopAnimation, speedRatio, onAnimationEnd, animations) {
<mask> if (fromFrame === void 0) { fromFrame = 0; }
<mask> if (toFrame ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Animations/babylon.animatable.js |
} else if (this._pausedDelay) {
| <mask> return true;
<mask> }
<mask> if (!this._localDelayOffset) {
<mask> this._localDelayOffset = delay;
<mask> }
<mask> else if (this._pausedDelay) {
<mask> this._localDelayOffset += delay - this._pausedDelay;
<mas... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Animations/babylon.animatable.js |
<mask> return Animatable;
<mask> })();
<mask> BABYLON.Animatable = Animatable;
<mask> })(BABYLON || (BABYLON = {}));
<mask> //# sourceMappingURL=babylon.animatable.js.map </s> Update after project rebuild
Former-commit-id: a2d5c6a94ad4c31a48c189703e1214d6166528bf </s> remove //# sourceMappingURL=... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Animations/babylon.animatable.js | |
//# sourceMappingURL=babylon.animatable.js.map
| <mask> })();
<mask> BABYLON.Animatable = Animatable;
<mask> })(BABYLON || (BABYLON = {}));
<mask> //# sourceMappingURL=babylon.animatable.js.map
</s> Update after project rebuild
Former-commit-id: a2d5c6a94ad4c31a48c189703e1214d6166528bf </s> remove //# sourceMappingURL=babylon.animatable.js.map </s> add... | [
"keep",
"keep",
"keep",
"add"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Animations/babylon.animatable.js |
} else if (from instanceof BABYLON.Quaternion) {
| <mask> Animation.CreateAndStartAnimation = function (name, mesh, tartgetProperty, framePerSecond, totalFrame, from, to, loopMode) {
<mask> var dataType = undefined;
<mask> if (!isNaN(parseFloat(from)) && isFinite(from)) {
<mask> dataType = Animation.ANIMATIONTYPE_FLOA... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Animations/babylon.animation.js |
} else if (from instanceof BABYLON.Vector3) {
| <mask> dataType = Animation.ANIMATIONTYPE_FLOAT;
<mask> }
<mask> else if (from instanceof BABYLON.Quaternion) {
<mask> dataType = Animation.ANIMATIONTYPE_QUATERNION;
<mask> }
<mask> else if (from instanceof BABYLON.Vector3) {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Animations/babylon.animation.js |
} else if (from instanceof BABYLON.Vector2) {
| <mask> dataType = Animation.ANIMATIONTYPE_QUATERNION;
<mask> }
<mask> else if (from instanceof BABYLON.Vector3) {
<mask> dataType = Animation.ANIMATIONTYPE_VECTOR3;
<mask> }
<mask> else if (from instanceof BABYLON.Vector2) {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Animations/babylon.animation.js |
} else if (from instanceof BABYLON.Color3) {
| <mask> dataType = Animation.ANIMATIONTYPE_VECTOR3;
<mask> }
<mask> else if (from instanceof BABYLON.Vector2) {
<mask> dataType = Animation.ANIMATIONTYPE_VECTOR2;
<mask> }
<mask> else if (from instanceof BABYLON.Color3) {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Animations/babylon.animation.js |
// Methods
| <mask> animation.setKeys(keys);
<mask> mesh.animations.push(animation);
<mask> mesh.getScene().beginAnimation(mesh, 0, totalFrame, (animation.loopMode === 1));
<mask> };
<mask> // Methods
<mask> Animation.prototype.isStopped = function () {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Animations/babylon.animation.js |
} else {
| <mask> var highLimitValue = 0;
<mask> if (ratio > range && !loop) {
<mask> returnValue = false;
<mask> highLimitValue = this._getKeyValue(this._keys[this._keys.length - 1].value);
<mask> }
<mask> else {
<mask> // Get ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Animations/babylon.animation.js |
} else {
| <mask> for (var index = 1; index < this.targetPropertyPath.length - 1; index++) {
<mask> property = property[this.targetPropertyPath[index]];
<mask> }
<mask> property[this.targetPropertyPath[this.targetPropertyPath.length - 1]] = currentValue;
<ma... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Animations/babylon.animation.js |
<mask> },
<mask> enumerable: true,
<mask> configurable: true
<mask> });
<mask> // Statics
<mask> Animation._ANIMATIONTYPE_FLOAT = 0;
<mask> Animation._ANIMATIONTYPE_VECTOR3 = 1;
<mask> Animation._ANIMATIONTYPE_QUATERNION = 2;
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Animations/babylon.animation.js | |
<mask> return Animation;
<mask> })();
<mask> BABYLON.Animation = Animation;
<mask> })(BABYLON || (BABYLON = {}));
<mask> //# sourceMappingURL=babylon.animation.js.map </s> Update after project rebuild
Former-commit-id: a2d5c6a94ad4c31a48c189703e1214d6166528bf </s> remove //# sourceMappingURL=baby... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Animations/babylon.animation.js | |
<mask> return (((1 - this.easeInCore((1 - gradient) * 2)) * 0.5) + 0.5);
<mask> }
<mask> return (this.easeInCore(gradient * 2) * 0.5);
<mask> };
<mask> //Statics
<mask> EasingFunction._EASINGMODE_EASEIN = 0;
<mask> EasingFunction._EASINGMODE... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Animations/babylon.easing.js | |
if (typeof amplitude === "undefined") { amplitude = 1; } | <mask> BABYLON.CircleEase = CircleEase;
<mask> var BackEase = (function (_super) {
<mask> __extends(BackEase, _super);
<mask> function BackEase(amplitude) {
<mask> if (amplitude === void 0) { amplitude = 1; }
<mask> _super.call(this);
<mask> this.amplit... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Animations/babylon.easing.js |
if (typeof bounces === "undefined") { bounces = 3; }
if (typeof bounciness === "undefined") { bounciness = 2; } | <mask> BABYLON.BackEase = BackEase;
<mask> var BounceEase = (function (_super) {
<mask> __extends(BounceEase, _super);
<mask> function BounceEase(bounces, bounciness) {
<mask> if (bounces === void 0) { bounces = 3; }
<mask> if (bounciness === void 0) { bounciness = ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Animations/babylon.easing.js |
if (typeof oscillations === "undefined") { oscillations = 3; }
if (typeof springiness === "undefined") { springiness = 3; } | <mask> BABYLON.CubicEase = CubicEase;
<mask> var ElasticEase = (function (_super) {
<mask> __extends(ElasticEase, _super);
<mask> function ElasticEase(oscillations, springiness) {
<mask> if (oscillations === void 0) { oscillations = 3; }
<mask> if (springiness === v... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Animations/babylon.easing.js |
} else { | <mask> var num3 = Math.max(0.0, this.oscillations);
<mask> var num = Math.max(0.0, this.springiness);
<mask> if (num == 0) {
<mask> num2 = gradient;
<mask> }
<mask> else {
<mask> num2 = (Math.exp(num * gradient) - 1.0) / ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Animations/babylon.easing.js |
if (typeof exponent === "undefined") { exponent = 2; } | <mask> BABYLON.ElasticEase = ElasticEase;
<mask> var ExponentialEase = (function (_super) {
<mask> __extends(ExponentialEase, _super);
<mask> function ExponentialEase(exponent) {
<mask> if (exponent === void 0) { exponent = 2; }
<mask> _super.call(this);
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Animations/babylon.easing.js |
if (typeof power === "undefined") { power = 2; } | <mask> BABYLON.ExponentialEase = ExponentialEase;
<mask> var PowerEase = (function (_super) {
<mask> __extends(PowerEase, _super);
<mask> function PowerEase(power) {
<mask> if (power === void 0) { power = 2; }
<mask> _super.call(this);
<mask> this.power... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Animations/babylon.easing.js |
if (typeof x1 === "undefined") { x1 = 0; }
if (typeof y1 === "undefined") { y1 = 0; }
if (typeof x2 === "undefined") { x2 = 1; }
if (typeof y2 === "undefined") { y2 = 1; } | <mask> BABYLON.SineEase = SineEase;
<mask> var BezierCurveEase = (function (_super) {
<mask> __extends(BezierCurveEase, _super);
<mask> function BezierCurveEase(x1, y1, x2, y2) {
<mask> if (x1 === void 0) { x1 = 0; }
<mask> if (y1 === void 0) { y1 = 0; }
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Animations/babylon.easing.js |
<mask> return BezierCurveEase;
<mask> })(EasingFunction);
<mask> BABYLON.BezierCurveEase = BezierCurveEase;
<mask> })(BABYLON || (BABYLON = {}));
<mask> //# sourceMappingURL=babylon.easing.js.map </s> Update after project rebuild
Former-commit-id: a2d5c6a94ad4c31a48c189703e1214d6166528bf </s> rem... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Animations/babylon.easing.js | |
try { | <mask> var AudioEngine = (function () {
<mask> function AudioEngine() {
<mask> this.audioContext = null;
<mask> this.canUseWebAudio = false;
<mask> try {
<mask> if (typeof AudioContext !== 'undefined') {
<mask> this.audioContext ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Audio/babylon.audioengine.js |
} else if (typeof webkitAudioContext !== 'undefined') { | <mask> try {
<mask> if (typeof AudioContext !== 'undefined') {
<mask> this.audioContext = new AudioContext();
<mask> this.canUseWebAudio = true;
<mask> }
<mask> else if (typeof webkitAudioContext !== 'undefined') {... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Audio/babylon.audioengine.js |
} catch (e) { | <mask> else if (typeof webkitAudioContext !== 'undefined') {
<mask> this.audioContext = new webkitAudioContext();
<mask> this.canUseWebAudio = true;
<mask> }
<mask> }
<mask> catch (e) {
<mask> this.can... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Audio/babylon.audioengine.js |
} else { | <mask> }
<mask> AudioEngine.prototype.getGlobalVolume = function () {
<mask> if (this.canUseWebAudio) {
<mask> return this.masterGain.gain.value;
<mask> }
<mask> else {
<mask> return -1;
<mask> }
<mask> };
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Audio/babylon.audioengine.js |
<mask> return AudioEngine;
<mask> })();
<mask> BABYLON.AudioEngine = AudioEngine;
<mask> })(BABYLON || (BABYLON = {}));
<mask> //# sourceMappingURL=babylon.audioengine.js.map </s> Update after project rebuild
Former-commit-id: a2d5c6a94ad4c31a48c189703e1214d6166528bf </s> remove //# sourceMapping... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Audio/babylon.audioengine.js | |
} else { | <mask> // Default custom attenuation function is a linear attenuation
<mask> this._customAttenuationFunction = function (currentVolume, currentDistance, maxDistance, refDistance, rolloffFactor) {
<mask> if (currentDistance < maxDistance) {
<mask> return cu... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Audio/babylon.sound.js |
} else { | <mask> this._soundGain = this._audioEngine.audioContext.createGain();
<mask> this._soundGain.gain.value = this._volume;
<mask> if (this.spatialSound) {
<mask> this._createSpatialParameters();
<mask> }
<mask> else {... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Audio/babylon.sound.js |
} else { | <mask> if (typeof (urlOrArrayBuffer) === "string") {
<mask> BABYLON.Tools.LoadFile(urlOrArrayBuffer, function (data) {
<mask> _this._soundLoaded(data);
<mask> }, null, null, true);
<mask> }
<mask> else ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Audio/babylon.sound.js |
} else { | <mask> }
<mask> else {
<mask> if (urlOrArrayBuffer instanceof ArrayBuffer) {
<mask> this._soundLoaded(urlOrArrayBuffer);
<mask> }
<mask> else {
<mask> BABYLON.Tools.Error("P... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Audio/babylon.sound.js |
} else { | <mask> this._soundPanner.maxDistance = Number.MAX_VALUE;
<mask> this._soundPanner.refDistance = 1;
<mask> this._soundPanner.rolloffFactor = 1;
<mask> this._soundPanner.panningModel = "HRTF";
<mask> }
<mask> else {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Audio/babylon.sound.js |
try { | <mask> * @param time (optional) Start the sound after X seconds. Start immediately (0) by default.
<mask> */
<mask> Sound.prototype.play = function (time) {
<mask> if (this._isReadyToPlay) {
<mask> try {
<mask> var startTime = time ? this._au... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Audio/babylon.sound.js |
} else { | <mask> this._soundPanner.coneOuterAngle = this._coneOuterAngle;
<mask> this._soundPanner.coneOuterGain = this._coneOuterGain;
<mask> if (this._connectedMesh) {
<mask> this._updateDirection();
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Audio/babylon.sound.js |
} catch (ex) { | <mask> this._soundSource.loop = this.loop;
<mask> this.startTime = startTime;
<mask> this._soundSource.start(startTime, this.startOffset % this._soundSource.buffer.duration);
<mask> this._isPlaying = true;
<mask> }
<ma... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Audio/babylon.sound.js |
meshToConnectTo.registerAfterWorldMatrixUpdate(function (connectedMesh) {
return _this._onRegisterAfterWorldMatrixUpdate(connectedMesh);
}); | <mask> this.stop();
<mask> this.play();
<mask> }
<mask> }
<mask> meshToConnectTo.registerAfterWorldMatrixUpdate(function (connectedMesh) { return _this._onRegisterAfterWorldMatrixUpdate(connectedMesh); });
<mask> };
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Audio/babylon.sound.js |
<mask> return Sound;
<mask> })();
<mask> BABYLON.Sound = Sound;
<mask> })(BABYLON || (BABYLON = {}));
<mask> //# sourceMappingURL=babylon.sound.js.map </s> Update after project rebuild
Former-commit-id: a2d5c6a94ad4c31a48c189703e1214d6166528bf </s> remove //# sourceMappingURL=babylon.scene.js.map... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Audio/babylon.sound.js | |
} else { | <mask> sound.connectToSoundTrackAudioNode(this._trackGain);
<mask> if (sound.soundTrackId) {
<mask> if (sound.soundTrackId === -1) {
<mask> this._scene.mainSoundTrack.RemoveSound(sound);
<mask> }
<mask> else {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Audio/babylon.soundtrack.js |
<mask> return SoundTrack;
<mask> })();
<mask> BABYLON.SoundTrack = SoundTrack;
<mask> })(BABYLON || (BABYLON = {}));
<mask> //# sourceMappingURL=babylon.soundtrack.js.map </s> Update after project rebuild
Former-commit-id: a2d5c6a94ad4c31a48c189703e1214d6166528bf </s> remove //# sourceMappingURL=... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Audio/babylon.soundtrack.js | |
} else { | <mask> skeleton.bones.push(this);
<mask> if (parentBone) {
<mask> this._parent = parentBone;
<mask> parentBone.children.push(this);
<mask> }
<mask> else {
<mask> this._parent = null;
<mask> }
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Bones/babylon.bone.js |
} else { | <mask> };
<mask> Bone.prototype._updateDifferenceMatrix = function () {
<mask> if (this._parent) {
<mask> this._matrix.multiplyToRef(this._parent._absoluteTransform, this._absoluteTransform);
<mask> }
<mask> else {
<mask> this._a... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Bones/babylon.bone.js |
<mask> return Bone;
<mask> })();
<mask> BABYLON.Bone = Bone;
<mask> })(BABYLON || (BABYLON = {}));
<mask> //# sourceMappingURL=babylon.bone.js.map </s> Update after project rebuild
Former-commit-id: a2d5c6a94ad4c31a48c189703e1214d6166528bf </s> remove //# sourceMappingURL=babylon.scene.js.map </s... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Bones/babylon.bone.js | |
//# sourceMappingURL=babylon.bone.js.map | <mask> })();
<mask> BABYLON.Bone = Bone;
<mask> })(BABYLON || (BABYLON = {}));
<mask> //# sourceMappingURL=babylon.bone.js.map
</s> Update after project rebuild
Former-commit-id: a2d5c6a94ad4c31a48c189703e1214d6166528bf </s> remove //# sourceMappingURL=babylon.bone.js.map </s> add </s> remove //# source... | [
"keep",
"keep",
"keep",
"add"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Bones/babylon.bone.js |
} else { | <mask> var bone = this.bones[index];
<mask> var parentBone = bone.getParent();
<mask> if (parentBone) {
<mask> bone.getLocalMatrix().multiplyToRef(parentBone.getWorldMatrix(), bone.getWorldMatrix());
<mask> }
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Bones/babylon.skeleton.js |
<mask> return Skeleton;
<mask> })();
<mask> BABYLON.Skeleton = Skeleton;
<mask> })(BABYLON || (BABYLON = {}));
<mask> //# sourceMappingURL=babylon.skeleton.js.map </s> Update after project rebuild
Former-commit-id: a2d5c6a94ad4c31a48c189703e1214d6166528bf </s> remove //# sourceMappingURL=babylon.... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Bones/babylon.skeleton.js | |
//# sourceMappingURL=babylon.skeleton.js.map | <mask> })();
<mask> BABYLON.Skeleton = Skeleton;
<mask> })(BABYLON || (BABYLON = {}));
<mask> //# sourceMappingURL=babylon.skeleton.js.map
</s> Update after project rebuild
Former-commit-id: a2d5c6a94ad4c31a48c189703e1214d6166528bf </s> remove //# sourceMappingURL=babylon.skeleton.js.map </s> add </s> r... | [
"keep",
"keep",
"keep",
"add"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Bones/babylon.skeleton.js |
} else { | <mask> pitch: pitch,
<mask> roll: roll
<mask> };
<mask> return;
<mask> }
<mask> else {
<mask> this.rotation.y += yaw - this._offsetOrientation.yaw;
<mask> this.rotation.x += pitch - th... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/VR/babylon.oculusCamera.js |
<mask> return OculusCamera;
<mask> })(BABYLON.FreeCamera);
<mask> BABYLON.OculusCamera = OculusCamera;
<mask> })(BABYLON || (BABYLON = {}));
<mask> //# sourceMappingURL=babylon.oculusCamera.js.map </s> Update after project rebuild
Former-commit-id: a2d5c6a94ad4c31a48c189703e1214d6166528bf </s> re... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/VR/babylon.oculusCamera.js | |
//# sourceMappingURL=babylon.oculusCamera.js.map | <mask> })(BABYLON.FreeCamera);
<mask> BABYLON.OculusCamera = OculusCamera;
<mask> })(BABYLON || (BABYLON = {}));
<mask> //# sourceMappingURL=babylon.oculusCamera.js.map
</s> Update after project rebuild
Former-commit-id: a2d5c6a94ad4c31a48c189703e1214d6166528bf </s> remove //# sourceMappingURL=babylon.oc... | [
"keep",
"keep",
"keep",
"add"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/VR/babylon.oculusCamera.js |
} else { | <mask> pitch: pitch,
<mask> roll: roll
<mask> };
<mask> return;
<mask> }
<mask> else {
<mask> this.rotation.y += yaw - this._offsetOrientation.yaw;
<mask> this.rotation.x += pitch - th... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/VR/babylon.oculusGamepadCamera.js |
<mask> return OculusGamepadCamera;
<mask> })(BABYLON.FreeCamera);
<mask> BABYLON.OculusGamepadCamera = OculusGamepadCamera;
<mask> })(BABYLON || (BABYLON = {}));
<mask> //# sourceMappingURL=babylon.oculusGamepadCamera.js.map </s> Update after project rebuild
Former-commit-id: a2d5c6a94ad4c31a48c1... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/VR/babylon.oculusGamepadCamera.js | |
} else { | <mask> this._beta = +evt.beta | 0;
<mask> this._gamma = +evt.gamma | 0;
<mask> if (this._gamma < 0) {
<mask> this._gamma = 90 + this._gamma;
<mask> }
<mask> else {
<mask> // Incline it in the correct angle.
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/VR/babylon.vrDeviceOrientationCamera.js |
<mask> return VRDeviceOrientationCamera;
<mask> })(BABYLON.OculusCamera);
<mask> BABYLON.VRDeviceOrientationCamera = VRDeviceOrientationCamera;
<mask> })(BABYLON || (BABYLON = {}));
<mask> //# sourceMappingURL=babylon.vrDeviceOrientationCamera.js.map </s> Update after project rebuild
Former-commi... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/VR/babylon.vrDeviceOrientationCamera.js | |
} else if (navigator.mozGetVRDevices) { | <mask> WebVRCamera.prototype.attachControl = function (element, noPreventDefault) {
<mask> _super.prototype.attachControl.call(this, element, noPreventDefault);
<mask> if (navigator.getVRDevices) {
<mask> navigator.getVRDevices().then(this._getWebVRDevices);
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/VR/babylon.webVRCamera.js |
<mask> return WebVRCamera;
<mask> })(BABYLON.OculusCamera);
<mask> BABYLON.WebVRCamera = WebVRCamera;
<mask> })(BABYLON || (BABYLON = {}));
<mask> //# sourceMappingURL=babylon.webVRCamera.js.map </s> Update after project rebuild
Former-commit-id: a2d5c6a94ad4c31a48c189703e1214d6166528bf </s> remo... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/VR/babylon.webVRCamera.js | |
<mask> return AnaglyphFreeCamera;
<mask> })(BABYLON.FreeCamera);
<mask> BABYLON.AnaglyphFreeCamera = AnaglyphFreeCamera;
<mask> })(BABYLON || (BABYLON = {}));
<mask> //# sourceMappingURL=babylon.anaglyphCamera.js.map </s> Update after project rebuild
Former-commit-id: a2d5c6a94ad4c31a48c189703e12... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/babylon.anaglyphCamera.js | |
} else if (event.detail) {
| <mask> this._wheel = function (event) {
<mask> var delta = 0;
<mask> if (event.wheelDelta) {
<mask> delta = event.wheelDelta / (_this.wheelPrecision * 40);
<mask> }
<mask> else if (event.detail)... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/babylon.arcRotateCamera.js |
// block the camera
| <mask> this._pinchStart = function (event) {
<mask> // save origin touch point
<mask> pinchPointX1 = event.touches[0].clientX;
<mask> pinchPointX2 = event.touches[1].clientX;
<mask> // block the camera
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/babylon.arcRotateCamera.js |
} else if (this.keysUp.indexOf(keyCode) !== -1) {
| <mask> for (var index = 0; index < this._keys.length; index++) {
<mask> var keyCode = this._keys[index];
<mask> if (this.keysLeft.indexOf(keyCode) !== -1) {
<mask> this.inertialAlphaOffset -= 0.01;
<mask> }
<mask> else... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/babylon.arcRotateCamera.js |
} else if (this.keysRight.indexOf(keyCode) !== -1) {
| <mask> this.inertialAlphaOffset -= 0.01;
<mask> }
<mask> else if (this.keysUp.indexOf(keyCode) !== -1) {
<mask> this.inertialBetaOffset -= 0.01;
<mask> }
<mask> else if (this.keysRight.indexOf(keyCode) !== -1) ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/babylon.arcRotateCamera.js |
} else if (this.keysDown.indexOf(keyCode) !== -1) {
| <mask> this.inertialBetaOffset -= 0.01;
<mask> }
<mask> else if (this.keysRight.indexOf(keyCode) !== -1) {
<mask> this.inertialAlphaOffset += 0.01;
<mask> }
<mask> else if (this.keysDown.indexOf(keyCode) !== -1... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/babylon.arcRotateCamera.js |
} else {
| <mask> if (meshesOrMinMaxVectorAndDistance.min === undefined) {
<mask> meshesOrMinMaxVector = meshesOrMinMaxVectorAndDistance || this.getScene().meshes;
<mask> meshesOrMinMaxVector = BABYLON.Mesh.MinMax(meshesOrMinMaxVector);
<mask> distance = BABYLON.Vect... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/babylon.arcRotateCamera.js |
<mask> return ArcRotateCamera;
<mask> })(BABYLON.Camera);
<mask> BABYLON.ArcRotateCamera = ArcRotateCamera;
<mask> })(BABYLON || (BABYLON = {}));
<mask> //# sourceMappingURL=babylon.arcRotateCamera.js.map </s> Update after project rebuild
Former-commit-id: a2d5c6a94ad4c31a48c189703e1214d6166528bf... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/babylon.arcRotateCamera.js | |
//# sourceMappingURL=babylon.arcRotateCamera.js.map
| <mask> })(BABYLON.Camera);
<mask> BABYLON.ArcRotateCamera = ArcRotateCamera;
<mask> })(BABYLON || (BABYLON = {}));
<mask> //# sourceMappingURL=babylon.arcRotateCamera.js.map
</s> Update after project rebuild
Former-commit-id: a2d5c6a94ad4c31a48c189703e1214d6166528bf </s> remove //# sourceMappingURL=babyl... | [
"keep",
"keep",
"keep",
"add"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/babylon.arcRotateCamera.js |
} else {
| <mask> }
<mask> var engine = this.getEngine();
<mask> if (this.mode === BABYLON.Camera.PERSPECTIVE_CAMERA) {
<mask> check = this._cache.fov === this.fov && this._cache.aspectRatio === engine.getAspectRatio(this);
<mask> }
<mask> else {
<... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/babylon.camera.js |
if (typeof insertAt === "undefined") { insertAt = null; }
| <mask> };
<mask> Camera.prototype._update = function () {
<mask> };
<mask> Camera.prototype.attachPostProcess = function (postProcess, insertAt) {
<mask> if (insertAt === void 0) { insertAt = null; }
<mask> if (!postProcess.isReusable() && this._postProcesse... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/babylon.camera.js |
if (typeof atIndices === "undefined") { atIndices = null; }
| <mask> this._postProcesses[result] = postProcess;
<mask> return result;
<mask> };
<mask> Camera.prototype.detachPostProcess = function (postProcess, atIndices) {
<mask> if (atIndices === void 0) { atIndices = null; }
<mask> var result = [];
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/babylon.camera.js |
} else {
| <mask> delete this._postProcesses[i];
<mask> var index = this._postProcessesTakenIndices.indexOf(i);
<mask> this._postProcessesTakenIndices.splice(index, 1);
<mask> }
<mask> }
<mask> else {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/babylon.camera.js |
<mask> for (var i = 0; i < this._postProcessesTakenIndices.length; ++i) {
<mask> this._postProcesses[this._postProcessesTakenIndices[i]].dispose(this);
<mask> }
<mask> };
<mask> // Statics
<mask> Camera.PERSPECTIVE_CAMERA = 0;
<mask> Camera.... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/babylon.camera.js | |
<mask> return Camera;
<mask> })(BABYLON.Node);
<mask> BABYLON.Camera = Camera;
<mask> })(BABYLON || (BABYLON = {}));
<mask> //# sourceMappingURL=babylon.camera.js.map </s> Update after project rebuild
Former-commit-id: a2d5c6a94ad4c31a48c189703e1214d6166528bf </s> remove // Statics
</s> ... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/babylon.camera.js | |
<mask> return DeviceOrientationCamera;
<mask> })(BABYLON.FreeCamera);
<mask> BABYLON.DeviceOrientationCamera = DeviceOrientationCamera;
<mask> })(BABYLON || (BABYLON = {}));
<mask> //# sourceMappingURL=babylon.deviceOrientationCamera.js.map </s> Update after project rebuild
Former-commit-id: a2d5... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/babylon.deviceOrientationCamera.js | |
var vx = dx * this.cameraAcceleration * 2; | <mask> var targetZ = cameraTarget.position.z + Math.cos(radians) * this.radius;
<mask> var dx = targetX - this.position.x;
<mask> var dy = (cameraTarget.position.y + this.heightOffset) - this.position.y;
<mask> var dz = (targetZ) - this.position.z;
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/babylon.followCamera.js |
<mask> return FollowCamera;
<mask> })(BABYLON.TargetCamera);
<mask> BABYLON.FollowCamera = FollowCamera;
<mask> })(BABYLON || (BABYLON = {}));
<mask> //# sourceMappingURL=babylon.followCamera.js.map </s> Update after project rebuild
Former-commit-id: a2d5c6a94ad4c31a48c189703e1214d6166528bf </s> ... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/babylon.followCamera.js | |
} else {
| <mask> var offsetY;
<mask> if (!engine.isPointerLock) {
<mask> offsetX = evt.clientX - previousPosition.x;
<mask> offsetY = evt.clientY - previousPosition.y;
<mask> }
<mask> else {
<mas... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/babylon.freeCamera.js |
} else {
| <mask> FreeCamera.prototype._collideWithWorld = function (velocity) {
<mask> var globalPosition;
<mask> if (this.parent) {
<mask> globalPosition = BABYLON.Vector3.TransformCoordinates(this.position, this.parent.getWorldMatrix());
<mask> }
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/babylon.freeCamera.js |
} else if (this.keysUp.indexOf(keyCode) !== -1) {
| <mask> var keyCode = this._keys[index];
<mask> var speed = this._computeLocalCameraSpeed();
<mask> if (this.keysLeft.indexOf(keyCode) !== -1) {
<mask> this._localDirection.copyFromFloats(-speed, 0, 0);
<mask> }
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/babylon.freeCamera.js |
} else if (this.keysRight.indexOf(keyCode) !== -1) {
| <mask> this._localDirection.copyFromFloats(-speed, 0, 0);
<mask> }
<mask> else if (this.keysUp.indexOf(keyCode) !== -1) {
<mask> this._localDirection.copyFromFloats(0, 0, speed);
<mask> }
<mask> else if (this.k... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/babylon.freeCamera.js |
} else if (this.keysDown.indexOf(keyCode) !== -1) {
| <mask> this._localDirection.copyFromFloats(0, 0, speed);
<mask> }
<mask> else if (this.keysRight.indexOf(keyCode) !== -1) {
<mask> this._localDirection.copyFromFloats(speed, 0, 0);
<mask> }
<mask> else if (this... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/edcbda493d762fc8ea70d9f619197c04976ad87e | Babylon/Cameras/babylon.freeCamera.js |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.