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 |
|---|---|---|---|---|
/** Gets or sets thumb width */
| <mask> }
<mask>
<mask> public get thumbWidth(): string | number {
<mask> return this._thumbWidth.toString(this._host);
<mask> }
<mask>
<mask> /** Gets thumb width in pixels */
<mask> public get thumbWidthInPixels(): number {
</s> Finish GUI documenta... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/slider.ts |
/** Gets thumb width in pixels */
| <mask> public get thumbWidth(): string | number {
<mask> return this._thumbWidth.toString(this._host);
<mask> }
<mask>
<mask> public get thumbWidthInPixels(): number {
<mask> return this._thumbWidth.getValueInPixel(this._host, this._cachedParentMeasure.width);
<ma... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/slider.ts |
/** Gets or sets minimum value */
| <mask> this._markAsDirty();
<mask> }
<mask> }
<mask>
<mask> public get minimum(): number {
<mask> return this._minimum;
<mask> }
<mask>
<mask> public set minimum(value: number) {
</s> Finish GUI documentation
Former-commit-id: 9b97b17... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/slider.ts |
/** Gets or sets maximum value */
| <mask>
<mask> this.value = Math.max(Math.min(this.value, this._maximum), this._minimum);
<mask> }
<mask>
<mask> public get maximum(): number {
<mask> return this._maximum;
<mask> }
<mask>
<mask> public set maximum(value: number) {
</s> Finish GUI docu... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/slider.ts |
/** Gets or sets current value */
| <mask> this.value = Math.max(Math.min(this.value, this._maximum), this._minimum);
<mask> }
<mask>
<mask> public get value(): number {
<mask> return this._value;
<mask> }
<mask>
<mask> public set value(value: number) {
</s> Finish GUI documentation
For... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/slider.ts |
/** Gets or sets a boolean indicating if the thumb should be round or square */
| <mask> this._markAsDirty();
<mask> this.onValueChangedObservable.notifyObservers(this._value);
<mask> }
<mask>
<mask> public get isThumbCircle(): boolean {
<mask> return this._isThumbCircle;
<mask> }
<mask>
</s> Finish GUI documentation
Former-com... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/slider.ts |
/** Gets or sets a value indicating if the thumb can go over main bar extends */
| <mask> this._isThumbCircle = value;
<mask> this._markAsDirty();
<mask> }
<mask>
<mask>
<mask> public get isThumbClamped(): boolean {
<mask> return this._isThumbClamped;
<mask> }
<mask>
<mask>
</s> Finish GUI documentation
Former-commit-id: 9b9... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/slider.ts |
/**
* Creates a new Slider
* @param name defines the control name
*/
| <mask> this._isThumbClamped = value;
<mask> this._markAsDirty();
<mask> }
<mask>
<mask>
<mask> constructor(public name?: string) {
<mask> super(name);
<mask>
<mask> this.isPointerBlocker = true;
<mask> }
</s> Finish GUI documentation
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/slider.ts |
/**
* Class used to create a 2D stack panel container
*/
| <mask> /// <reference path="../../../../dist/preview release/babylon.d.ts"/>
<mask>
<mask> module BABYLON.GUI {
<mask> export class StackPanel extends Container {
<mask> private _isVertical = true;
<mask> private _manualWidth = false;
<mask> private _manualHeight = false;
</s> Finis... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/stackPanel.ts |
/** Gets or sets a boolean indicating if the stack panel is vertical or horizontal*/
| <mask> private _tempMeasureStore = Measure.Empty();
<mask>
<mask> public get isVertical(): boolean {
<mask> return this._isVertical;
<mask> }
<mask>
<mask> public set isVertical(value: boolean) {
<mask> if (this._isVertical === value) {
</s> Finish GUI ... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/stackPanel.ts |
/** Gets or sets panel width */
| <mask> this._markAsDirty();
<mask> }
<mask>
<mask> public set width(value: string | number ) {
<mask> if (!this._doNotTrackManualChanges) {
<mask> this._manualWidth = true;
<mask> }
<mask>
<mask> if (this._width.toString(t... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/stackPanel.ts |
/** Gets or sets panel height */
| <mask> }
<mask>
<mask> public set height(value: string | number ) {
<mask> if (!this._doNotTrackManualChanges) {
<mask> this._manualHeight = true;
<mask> }
</s> Finish GUI documentation
Former-commit-id: 9b97b17b0b5467f33beb0f42f8a7ee0e72f93d55 | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/stackPanel.ts |
/**
* Creates a new StackPanel
* @param name defines control name
*/
| <mask> public get height(): string | number {
<mask> return this._height.toString(this._host);
<mask> }
<mask>
<mask> constructor(public name?: string) {
<mask> super(name);
<mask> }
<mask>
<mask> protected _getTypeName(): string {
<mask> ... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/stackPanel.ts |
/**
* Class used to create text block control
*/
| <mask> /// <reference path="../../../../dist/preview release/babylon.d.ts"/>
<mask>
<mask> module BABYLON.GUI {
<mask> export class TextBlock extends Control {
<mask> private _text = "";
<mask> private _textWrapping = false;
<mask> private _textHorizontalAlignment = Control.HORIZONTA... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/textBlock.ts |
/**
* Class used to store key control properties
*/
| <mask> module BABYLON.GUI {
<mask>
<mask> export class KeyPropertySet {
<mask> /** Width */
<mask> width?: string;
<mask> /** Height */
<mask> height?: string;
<mask> /** Left padding */
</s> Finish GUI documentation
Former-commit-id: 9b97b17b0b5467f33beb0f42f8a7e... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
/** Width */
| <mask> */
<mask> export class KeyPropertySet {
<mask> width?: string;
<mask> /** Height */
<mask> height?: string;
<mask> /** Left padding */
</s> Finish GUI documentation
Former-commit-id: 9b97b17b0b5467f33beb0f42f8a7ee0e72f93d55 | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
/** Height */
| <mask> */
<mask> export class KeyPropertySet {
<mask> /** Width */
<mask> width?: string;
<mask> height?: string;
<mask> /** Left padding */
<mask> paddingLeft?: string;
<mask> /** Right padding */
</s> Finish GUI documentation
Former-commit-id: 9b97b1... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
/** Left padding */
| <mask> /** Width */
<mask> width?: string;
<mask> /** Height */
<mask> height?: string;
<mask> paddingLeft?: string;
<mask> /** Right padding */
<mask> paddingRight?: string;
<mask> /** Top padding */
<mask> paddingTop?: string;
<mask> ... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
/** Right padding */
| <mask> /** Height */
<mask> height?: string;
<mask> /** Left padding */
<mask> paddingLeft?: string;
<mask> paddingRight?: string;
<mask> /** Top padding */
<mask> paddingTop?: string;
<mask> /** Bottom padding */
<mask> paddingBottom?: st... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
/** Top padding */
| <mask> paddingLeft?: string;
<mask> /** Right padding */
<mask> paddingRight?: string;
<mask> paddingTop?: string;
<mask> /** Bottom padding */
<mask> paddingBottom?: string;
<mask> /** Foreground color */
</s> Finish GUI documentation
Former-commit-id: ... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
/** Bottom padding */
| <mask> /** Top padding */
<mask> paddingTop?: string;
<mask> paddingBottom?: string;
<mask> /** Foreground color */
<mask> color?: string;
<mask> /** Background color */
</s> Finish GUI documentation
Former-commit-id: 9b97b17b0b5467f33beb0f42f8a7ee0e72f93d55 | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
/** Foreground color */
| <mask> paddingTop?: string;
<mask> /** Bottom padding */
<mask> paddingBottom?: string;
<mask> color?: string;
<mask> /** Background color */
<mask> background?: string;
<mask> }
</s> Finish GUI documentation
Former-commit-id: 9b97b17b0b5467f33beb0f42f8a7ee0... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
/** Background color */
| <mask> /** Foreground color */
<mask> color?: string;
<mask> background?: string;
<mask> }
<mask>
<mask> /**
</s> Finish GUI documentation
Former-commit-id: 9b97b17b0b5467f33beb0f42f8a7ee0e72f93d55 | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
/**
* Class used to create virtual keyboard
*/
| <mask> /** Background color */
<mask> background?: string;
<mask> }
<mask>
<mask> export class VirtualKeyboard extends StackPanel {
<mask> /** Observable raised when a key is pressed */
<mask> public onKeyPressObservable = new Observable<string>();
<mask>
</s> Finish G... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
/** Observable raised when a key is pressed */
| <mask> /**
<mask> * Class used to create virtual keyboard
<mask> */
<mask> export class VirtualKeyboard extends StackPanel {
<mask> public onKeyPressObservable = new Observable<string>();
<mask>
<mask> /** Gets or sets default key button width */
<mask> public defaultB... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
/** Gets or sets default key button width */
| <mask> public onKeyPressObservable = new Observable<string>();
<mask>
<mask> public defaultButtonWidth = "40px";
<mask> /** Gets or sets default key button height */
<mask> public defaultButtonHeight = "40px";
<mask>
<mask> /** Gets or sets default key button left paddin... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
/** Gets or sets default key button height */
| <mask> /** Gets or sets default key button width */
<mask> public defaultButtonWidth = "40px";
<mask> public defaultButtonHeight = "40px";
<mask>
<mask> /** Gets or sets default key button left padding */
<mask> public defaultButtonPaddingLeft = "2px";
<mask> /** ... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
/** Gets or sets default key button left padding */
| <mask> /** Gets or sets default key button height */
<mask> public defaultButtonHeight = "40px";
<mask>
<mask> public defaultButtonPaddingLeft = "2px";
<mask> /** Gets or sets default key button right padding */
<mask> public defaultButtonPaddingRight = "2px";
<mask> ... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
/** Gets or sets default key button right padding */
| <mask> /** Gets or sets default key button left padding */
<mask> public defaultButtonPaddingLeft = "2px";
<mask> public defaultButtonPaddingRight = "2px";
<mask> /** Gets or sets default key button top padding */
<mask> public defaultButtonPaddingTop = "2px";
<mask> ... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
/** Gets or sets default key button top padding */
| <mask> public defaultButtonPaddingLeft = "2px";
<mask> /** Gets or sets default key button right padding */
<mask> public defaultButtonPaddingRight = "2px";
<mask> public defaultButtonPaddingTop = "2px";
<mask> /** Gets or sets default key button bottom padding */
<mask> ... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
/** Gets or sets default key button bottom padding */
| <mask> /** Gets or sets default key button top padding */
<mask> public defaultButtonPaddingTop = "2px";
<mask> public defaultButtonPaddingBottom = "2px";
<mask>
<mask> /** Gets or sets default key button foreground color */
<mask> public defaultButtonColor = "#DDD";
<mas... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
/** Gets or sets default key button foreground color */
| <mask> /** Gets or sets default key button bottom padding */
<mask> public defaultButtonPaddingBottom = "2px";
<mask>
<mask> public defaultButtonColor = "#DDD";
<mask> /** Gets or sets default key button background color */
<mask> public defaultButtonBackground = "#070707"... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
/** Gets or sets default key button background color */
| <mask> /** Gets or sets default key button foreground color */
<mask> public defaultButtonColor = "#DDD";
<mask> public defaultButtonBackground = "#070707";
<mask>
<mask> /** Gets or sets shift button foreground color */
<mask> public shiftButtonColor = "#7799FF";
<mask> ... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
/** Gets or sets shift button foreground color */
| <mask> /** Gets or sets default key button background color */
<mask> public defaultButtonBackground = "#070707";
<mask>
<mask> public shiftButtonColor = "#7799FF";
<mask> /** Gets or sets shift button thickness*/
<mask> public selectedShiftThickness = 1;
<mask>
<mask> ... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
/** Gets or sets shift button thickness*/
| <mask> public defaultButtonBackground = "#070707";
<mask>
<mask> /** Gets or sets shift button foreground color */
<mask> public shiftButtonColor = "#7799FF";
<mask> public selectedShiftThickness = 1;
<mask>
<mask> /** Gets shift key state */
<mask> public shift... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
/** Gets shift key state */
| <mask> /** Gets or sets shift button thickness*/
<mask> public selectedShiftThickness = 1;
<mask>
<mask> public shiftState = 0;
<mask>
<mask> protected _getTypeName(): string {
<mask> return "VirtualKeyboard";
<mask> }
<mask>
</s> Finish GUI documentation... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
/**
* Adds a new row of keys
* @param keys defines the list of keys to add
* @param propertySets defines the associated property sets
*/
| <mask> }
<mask>
<mask> public addKeysRow(keys: Array<string>, propertySets?: Array<KeyPropertySet>): void {
<mask> let panel = new StackPanel();
<mask> panel.isVertical = false;
<mask> panel.isFocusInvisible = true;
<mask>
<mask> for (var i = 0; ... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
/**
* Set the shift key to a specific state
* @param shiftState defines the new shift state
*/
| <mask> }
<mask>
<mask> public applyShiftState(shiftState: number): void {
<mask> if (!this.children) {
<mask> return;
<mask> }
<mask>
</s> Finish GUI documentation
Former-commit-id: 9b97b17b0b5467f33beb0f42f8a7ee0e72f93d55 | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
/** Gets the input text control attached with the keyboard */
| <mask> private _onBlurObserver: Nullable<Observer<InputText>>;
<mask> private _onKeyPressObserver: Nullable<Observer<string>>;
<mask>
<mask> public get connectedInputText(): Nullable<InputText> {
<mask> return this._connectedInputText;
<mask> }
<mask>
<mask> ... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
/**
* Connects the keyboard with an input text control
* @param input defines the target control
*/
| <mask> public get connectedInputText(): Nullable<InputText> {
<mask> return this._connectedInputText;
<mask> }
<mask>
<mask> public connect(input: InputText): void {
<mask> this.isVisible = false;
<mask> this._connectedInputText = input;
<mask>
</s>... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
/**
* Disconnects the keyboard from an input text control
*/
| <mask> }
<mask> });
<mask> }
<mask>
<mask> public disconnect(): void {
<mask> if (!this._connectedInputText) {
<mask> return;
<mask> }
<mask>
</s> Finish GUI documentation
Former-commit-id: 9b97b17b0b5467f33beb0f42f8a7ee0e... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
/**
* Creates a new keyboard using a default layout
* @returns a new VirtualKeyboard
*/
| <mask> }
<mask>
<mask> // Statics
<mask> public static CreateDefaultLayout(): VirtualKeyboard {
<mask> let returnValue = new VirtualKeyboard();
<mask>
<mask> returnValue.addKeysRow(["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "\u2190"]);
</s> Finish GUI do... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/controls/virtualKeyboard.ts |
public constructor(source: Vector2,
/** defines the current mouse button index */
public buttonIndex: number = 0) {
| <mask> * Creates a new Vector2WithInfo
<mask> * @param source defines the vector2 data to transport
<mask> * @param buttonIndex defines the current mouse button index
<mask> */
<mask> public constructor(source: Vector2, public buttonIndex: number = 0) {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/math2D.ts |
/** Class used to provide 2D matrix features */
| <mask> }
<mask>
<mask> export class Matrix2D {
<mask> /** Gets the internal array of 6 floats used to store matrix data */
<mask> public m = new Float32Array(6);
<mask>
</s> Finish GUI documentation
Former-commit-id: 9b97b17b0b5467f33beb0f42f8a7ee0e72f93d55 </s> remove public ... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/math2D.ts |
/** Gets the internal array of 6 floats used to store matrix data */
| <mask> /** Class used to provide 2D matrix features */
<mask> export class Matrix2D {
<mask> public m = new Float32Array(6);
<mask>
<mask> /**
<mask> * Creates a new matrix
<mask> * @param m00 defines value for (0, 0)
<mask> * @param m01 defines value for (0, ... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/math2D.ts |
/**
* Creates a new matrix
* @param m00 defines value for (0, 0)
* @param m01 defines value for (0, 1)
* @param m10 defines value for (1, 0)
* @param m11 defines value for (1, 1)
* @param m20 defines value for (2, 0)
* @param m21 defines ... | <mask> /** Gets the internal array of 6 floats used to store matrix data */
<mask> public m = new Float32Array(6);
<mask>
<mask> constructor(m00: number, m01: number, m10: number, m11: number, m20: number, m21: number) {
<mask> this.fromValues(m00, m01, m10, m11, m20, m21);
<m... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/math2D.ts |
/**
* Fills the matrix from direct values
* @param m00 defines value for (0, 0)
* @param m01 defines value for (0, 1)
* @param m10 defines value for (1, 0)
* @param m11 defines value for (1, 1)
* @param m20 defines value for (2, 0)
* @param m... | <mask> }
<mask>
<mask> public fromValues(m00: number, m01: number, m10: number, m11: number, m20: number, m21: number): Matrix2D {
<mask> this.m[0] = m00; this.m[1] = m01;
<mask> this.m[2] = m10; this.m[3] = m11;
<mask> this.m[4] = m20; this.m[5] = m21;
<mask... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/math2D.ts |
/**
* Gets matrix determinant
* @returns the determinant
*/
| <mask> return this;
<mask> }
<mask>
<mask> public determinant(): number {
<mask> return this.m[0] * this.m[3] - this.m[1] * this.m[2];
<mask> }
<mask>
</s> Finish GUI documentation
Former-commit-id: 9b97b17b0b5467f33beb0f42f8a7ee0e72f93d55 | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/math2D.ts |
/**
* Inverses the matrix and stores it in a target matrix
* @param result defines the target matrix
* @returns the current matrix
*/
| <mask> public determinant(): number {
<mask> return this.m[0] * this.m[3] - this.m[1] * this.m[2];
<mask> }
<mask>
<mask> public invertToRef(result: Matrix2D): Matrix2D {
<mask> let l0 = this.m[0]; let l1 = this.m[1];
<mask> let l2 = this.m[2]; let l3 ... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/math2D.ts |
/**
* Multiplies the current matrix with another one
* @param other defines the second operand
* @param result defines the target matrix
* @returns the current matrix
*/
| <mask> return this;
<mask> }
<mask>
<mask> public multiplyToRef(other: Matrix2D, result: Matrix2D): Matrix2D {
<mask> let l0 = this.m[0]; let l1 = this.m[1];
<mask> let l2 = this.m[2]; let l3 = this.m[3];
<mask> let l4 = this.m[4]; let ... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/math2D.ts |
/**
* Apply the current matrix to a set of 2 floats and stores the result in a vector2
* @param x defines the x coordinate to transform
* @param y defines the x coordinate to transform
* @param result defines the target vector2
* @returns the current matrix
... | <mask> }
<mask>
<mask> public transformCoordinates(x: number, y: number, result: Vector2): Matrix2D {
<mask> result.x = x * this.m[0] + y * this.m[2] + this.m[4];
<mask> result.y = x * this.m[1] + y * this.m[3] + this.m[5];
<mask>
<mask> return this;
<mask> ... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/math2D.ts |
/**
* Creates an identity matrix
* @returns a new matrix
*/
| <mask>
<mask> // Statics
<mask> public static Identity(): Matrix2D {
<mask> return new Matrix2D(1, 0, 0, 1, 0, 0);
<mask> }
<mask>
</s> Finish GUI documentation
Former-commit-id: 9b97b17b0b5467f33beb0f42f8a7ee0e72f93d55 | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/math2D.ts |
/**
* Creates a translation matrix and stores it in a target matrix
* @param x defines the x coordinate of the translation
* @param y defines the y coordinate of the translation
* @param result defines the target matrix
*/
| <mask> public static Identity(): Matrix2D {
<mask> return new Matrix2D(1, 0, 0, 1, 0, 0);
<mask> }
<mask>
<mask> public static TranslationToRef(x: number, y: number, result: Matrix2D): void {
<mask> result.fromValues(1, 0, 0, 1, x, y);
<mask> }
<mask>
<... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/math2D.ts |
/**
* Creates a scaling matrix and stores it in a target matrix
* @param x defines the x coordinate of the scaling
* @param y defines the y coordinate of the scaling
* @param result defines the target matrix
*/
| <mask> }
<mask>
<mask> public static ScalingToRef(x: number, y: number, result: Matrix2D): void {
<mask> result.fromValues(x, 0, 0, y, 0, 0);
<mask> }
<mask>
<mask> /**
<mask> * Creates a rotation matrix and stores it in a target matrix
</s> Finish GUI do... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/math2D.ts |
/**
* Creates a rotation matrix and stores it in a target matrix
* @param angle defines the rotation angle
* @param result defines the target matrix
*/
| <mask> result.fromValues(x, 0, 0, y, 0, 0);
<mask> }
<mask>
<mask> public static RotationToRef(angle: number, result: Matrix2D): void {
<mask> var s = Math.sin(angle);
<mask> var c = Math.cos(angle);
<mask>
<mask> result.fromValues(c, s, -s, c, ... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/math2D.ts |
/**
* Compose a matrix from translation, rotation, scaling and parent matrix and stores it in a target matrix
* @param tx defines the x coordinate of the translation
* @param ty defines the y coordinate of the translation
* @param angle defines the rotation angle
... | <mask> private static _TempCompose1 = Matrix2D.Identity();
<mask> private static _TempCompose2 = Matrix2D.Identity();
<mask>
<mask> public static ComposeToRef(tx: number, ty: number, angle: number, scaleX: number, scaleY: number, parentMatrix: Nullable<Matrix2D>, result: Matrix2D): void {
... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/math2D.ts |
* @returns a new measure
| <mask>
<mask> /**
<mask> * Creates an empty measure
<mask> */
<mask> public static Empty(): Measure {
<mask> return new Measure(0, 0, 0, 0);
<mask> }
</s> Finish GUI documentation
Former-commit-id: 9b97b17b0b5467f33beb0f42f8a7ee0e72f93d55 | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/2D/measure.ts |
public constructor(source: Vector3,
/** defines the current mouse button index */
public buttonIndex: number = 0) {
| <mask> * Creates a new Vector3WithInfo
<mask> * @param source defines the vector3 data to transport
<mask> * @param buttonIndex defines the current mouse button index
<mask> */
<mask> public constructor(source: Vector3, public buttonIndex: number = 0) {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e54b4f3fbf648acf912418ecc3cd9b11e6fd73d | gui/src/3D/vector3WithInfo.ts |
import { SceneManager } from '../../managers/sceneManager';
| <mask> import { Scalar, DefaultRenderingPipeline, Scene } from 'babylonjs';
<mask> import { SceneManager } from '../../viewer/sceneManager';
<mask>
<mask> /**
<mask> * A custom upgrade-oriented function configuration for the scene optimizer.
<mask> *
<mask> * @param viewer the viewer to optimize
</s> Scene... | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e8fd4028def13f1aa15f87546b6449bd9c6944b | Viewer/src/optimizer/custom/extended.ts |
import { SceneManager } from "../../managers/sceneManager";
| <mask> import { extendedUpgrade, extendedDegrade } from "./extended";
<mask> import { SceneManager } from "../../viewer/sceneManager";
<mask>
<mask> const cache: { [key: string]: (sceneManager: SceneManager) => boolean } = {};
<mask>
<mask> /**
<mask> *
</s> Scene Manager moved
Former-commit-id: 3a25dcb80... | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e8fd4028def13f1aa15f87546b6449bd9c6944b | Viewer/src/optimizer/custom/index.ts |
import { SceneManager } from '../managers/sceneManager';
| <mask> import { viewerManager } from './viewerManager';
<mask> import { SceneManager } from './sceneManager';
<mask> import { ConfigurationLoader } from './../configuration/loader';
<mask> import { Skeleton, AnimationGroup, ParticleSystem, CubeTexture, Color3, IEnvironmentHelperOptions, EnvironmentHelper, Effect, S... | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e8fd4028def13f1aa15f87546b6449bd9c6944b | Viewer/src/viewer/viewer.ts |
import { SceneManager } from "../../src/managers/sceneManager";
| <mask> import { BABYLON, AbstractViewer, DefaultViewer, ViewerModel, viewerGlobals, AnimationPlayMode, AnimationState } from "../../src";
<mask> import { ViewerConfiguration } from "../../src/configuration/configuration";
<mask> import { IModelAnimation } from "../../src/model/modelAnimation";
<mask> import { Scene... | [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8e8fd4028def13f1aa15f87546b6449bd9c6944b | Viewer/tests/commons/helper.ts |
var tsProject = typescript.createProject({
noExternalResolve: true,
target: 'ES5',
declarationFiles: true,
typescript: require('typescript'),
experimentalDecorators: true,
isolatedModules: false,
});
| <mask> var decorateSearchRegex = /var\s__decorate[\s\S]+?\};/g;
<mask>
<mask> //function to convert the shaders' filenames to variable names.
<mask> function shadersName(filename) {
<mask> return filename.replace('.fragment', 'Pixel')
<mask> .replace('.vertex', 'Vertex')
</s> Fix Main Maps
Former-... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8eec736e23d26778df6718150c4fe047fc348c63 | Tools/Gulp/gulpfile.js |
var tsResult = gulp.src(config.core.typescript)
.pipe(sourcemaps.init())
.pipe(typescript(tsProject));
| <mask> /*
<mask> Compiles all typescript files and creating a declaration file.
<mask> */
<mask> gulp.task('typescript-compile', function () {
<mask> var tsResult = gulp.src(config.core.typescript).
<mask> pipe(typescript({
<mask> noExternalResolve: true,
<mask> target: 'ES5'... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8eec736e23d26778df6718150c4fe047fc348c63 | Tools/Gulp/gulpfile.js |
.pipe(sourcemaps.write("./",
{
includeContent:false,
sourceRoot: (filePath) => {
var repeatCount = filePath.relative.split(path.sep).length - 1;
return '../'.repeat(repeatCount);
}
... | <mask> //.pipe(addDtsExport("BABYLON"))
<mask> .pipe(gulp.dest(config.build.outputDirectory)),
<mask> tsResult.js
<mask> .pipe(gulp.dest(config.build.srcOutputDirectory))
<mask> ])
<mask> });
<mask>
<mask> gulp.task("buildCore", ["shaders"], function () {
</s> F... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8eec736e23d26778df6718150c4fe047fc348c63 | Tools/Gulp/gulpfile.js |
<mask> .pipe(gulp.dest(config.build.srcOutputDirectory))
<mask> ])
<mask> });
<mask>
<mask> gulp.task('typescript-sourcemaps', function () {
<mask> var tsResult = gulp.src(config.core.typescript)
<mask> .pipe(sourcemaps.init()) // sourcemaps init. currently redundant directory def, w... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8eec736e23d26778df6718150c4fe047fc348c63 | Tools/Gulp/gulpfile.js | |
<mask> gulp.task('default', function (cb) {
<mask> runSequence("buildNoWorker", "build", "buildCore", cb);
<mask> });
<mask>
<mask> /**
<mask> * Watch task, will call the default task if a js file is updated.
<mask> */
<mask> gulp.task('watch', function () {
<mask> gulp.watch(config.core.typescript,... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8eec736e23d26778df6718150c4fe047fc348c63 | Tools/Gulp/gulpfile.js | |
gulp.task('watch', ['typescript-compile'], function () {
return gulp.watch(config.core.typescript, ['typescript-compile']); | <mask>
<mask> /**
<mask> * Watch typescript task, will call the default typescript task if a typescript file is updated.
<mask> */
<mask> var tsProject = typescript.createProject({
<mask> noExternalResolve: true,
<mask> target: 'ES5',
<mask> declarationFiles: true,
<mask>... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"re... | https://github.com/BabylonJS/Babylon.js/commit/8eec736e23d26778df6718150c4fe047fc348c63 | Tools/Gulp/gulpfile.js |
transform-origin: 50% 50%;
&:active {
transform: scale(0.90);
}
| <mask> .button{
<mask> color: #ffffff;
<mask> width: 40px;
<mask> height: 40px;
<mask>
<mask> &:hover {
<mask> background: #3f3461;
<mask> }
</s> update preview buttons hover/active css
Former-commit-id: 34df9ca961af5d7c7f65... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8efdf54395db1f3d414ae046bb577fe1d19b6c21 | nodeEditor/src/main.scss |
background: #3f3461;
| <mask> width: 40px;
<mask> height: 40px;
<mask>
<mask> &:hover {
<mask> background-color: #3f3461;
<mask> }
<mask>
<mask> img{
<mask> height: 40px;
<mask> width: 100%;
</s> update preview buttons hov... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8efdf54395db1f3d414ae046bb577fe1d19b6c21 | nodeEditor/src/main.scss |
&.selected {
background: #9379e6;
}
| <mask> &:hover {
<mask> background: #3f3461;
<mask> }
<mask>
<mask> img{
<mask> height: 40px;
<mask> width: 100%;
</s> update preview buttons hover/active css
Former-commit-id: 34df9ca961af5d7c7f65fa79c2519ddd109da6ed </s> re... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8efdf54395db1f3d414ae046bb577fe1d19b6c21 | nodeEditor/src/main.scss |
transform-origin: 50% 50%;
&:hover {
background: #3f3461;
}
| <mask> grid-row: 1;
<mask> height: 40px;
<mask>
<mask> &.selected {
<mask> background: #9379e6;
<mask> }
</s> update preview buttons hover/active css
Former-commit-id: 34df9ca961af5d7c7f65fa79c2519ddd109da6ed </s> remove &.selected, ... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8efdf54395db1f3d414ae046bb577fe1d19b6c21 | nodeEditor/src/main.scss |
&.selected {
| <mask> width: 40px;
<mask> grid-row: 1;
<mask> height: 40px;
<mask>
<mask> &.selected, &:hover {
<mask> background: #9379e6;
<mask> }
<mask>
<mask> img{
<mask> height: auto;
</s> update preview buttons h... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8efdf54395db1f3d414ae046bb577fe1d19b6c21 | nodeEditor/src/main.scss |
}
&:active {
transform: scale(0.90);
| <mask>
<mask> &.selected {
<mask> background: #9379e6;
<mask> }
<mask>
<mask> img{
<mask> height: auto;
</s> update preview buttons hover/active css
Former-commit-id: 34df9ca961af5d7c7f65fa79c2519ddd109da6ed </s> remove &.select... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8efdf54395db1f3d414ae046bb577fe1d19b6c21 | nodeEditor/src/main.scss |
<mask> this._dragPlane = BABYLON.Mesh.CreatePlane("pointerDragPlane", this._debugMode ? 1 : 10000, PointerDragBehavior._planeScene, false, BABYLON.Mesh.DOUBLESIDE);
<mask>
<mask> // State of the drag
<mask> this.lastDragPosition = new BABYLON.Vector3(0,0,0);
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8f60032cb91c281df962b61103fb67edd58e3f06 | src/Behaviors/Mesh/babylon.pointerDragBehavior.ts | |
this._startDrag((<PointerEvent>pointerInfo.event).pointerId, pointerInfo.pickInfo.ray, pointerInfo.pickInfo.pickedPoint);
| <mask>
<mask> if (pointerInfo.type == BABYLON.PointerEventTypes.POINTERDOWN) {
<mask>
<mask> if(!this.dragging && pointerInfo.pickInfo && pointerInfo.pickInfo.hit && pointerInfo.pickInfo.pickedMesh && pointerInfo.pickInfo.pickedPoint && point... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8f60032cb91c281df962b61103fb67edd58e3f06 | src/Behaviors/Mesh/babylon.pointerDragBehavior.ts |
var pointerId = (<PointerEvent>pointerInfo.event).pointerId;
| <mask> if(this.currentDraggingPointerID == (<PointerEvent>pointerInfo.event).pointerId){
<mask> this.releaseDrag();
<mask> }
<mask> }else if(pointerInfo.type == BABYLON.PointerEventTypes.POINTERMOVE){
<mask> if(this... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8f60032cb91c281df962b61103fb67edd58e3f06 | src/Behaviors/Mesh/babylon.pointerDragBehavior.ts |
// Keep track of last pointer ray, this is used simulating the start of a drag in startDrag()
if(!this._lastPointerRay[pointerId]){
this._lastPointerRay[pointerId] = new BABYLON.Ray(new BABYLON.Vector3(), new BABYLON.Vector3());
}
... | <mask> if(this._options.dragAxis){
<mask> // Convert local drag axis to world
<mask> Vector3.TransformCoordinatesToRef(this._options.dragAxis, this._attachedNode.getWorldMatrix().getRotationMatrix(), this._worldDragAxis);
<m... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8f60032cb91c281df962b61103fb67edd58e3f06 | src/Behaviors/Mesh/babylon.pointerDragBehavior.ts |
private _lastPointerRay:{[key: number]: Ray} = {};
| <mask> }
<mask>
<mask> private _startDragRay = new BABYLON.Ray(new BABYLON.Vector3(), new BABYLON.Vector3());
<mask> /**
<mask> * Simulates the start of a pointer drag event on the behavior
<mask> * @param pointerId pointerID of the pointer that should be simulated (Defa... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8f60032cb91c281df962b61103fb67edd58e3f06 | src/Behaviors/Mesh/babylon.pointerDragBehavior.ts |
this._startDrag(pointerId, fromRay, startPickedPoint);
if(this._lastPointerRay[pointerId]){
// if there was a last pointer ray drag the object there
this._moveDrag(this._lastPointerRay[pointerId]);
}
}
private _startDrag(pointer... | <mask> * @param startPickedPoint picked point of the pointer to be simulated (Default: attached mesh position)
<mask> */
<mask> public startDrag(pointerId = 1, fromRay?:Ray, startPickedPoint?:Vector3){
<mask> if(!this._scene.activeCamera || this.dragging || !this._attachedNode)... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/8f60032cb91c281df962b61103fb67edd58e3f06 | src/Behaviors/Mesh/babylon.pointerDragBehavior.ts |
initialized: false
| <mask> from: 0,
<mask> to: 0,
<mask> loop: false,
<mask> };
<mask>
<mask> constructor(props: IAnimationGridComponentProps) {
<mask> super(props);
</s> Fix animation creation ACE
Former-commit-id: 6cbd913f0df0cd009ff236a908aca002ccd0f848 </s> remove this.fromKey... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/901fcf13fcb74e0049fd0765ac76cafe2f9871f7 | inspector/src/components/actionTabs/tabs/propertyGrids/animations/animationPropertyGridComponent.tsx |
this._animationControl.initialized = true;
| <mask> this._animationControl.from = this._mainAnimatable.fromFrame;
<mask> this._animationControl.to = this._mainAnimatable.toFrame;
<mask> this._animationControl.loop = this._mainAnimatable.loopAnimation;
<mask> }
<mask> }
<mask>
<mask> ... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/901fcf13fcb74e0049fd0765ac76cafe2f9871f7 | inspector/src/components/actionTabs/tabs/propertyGrids/animations/animationPropertyGridComponent.tsx |
this._animationCurveEditorContext.useExistingPlayRange = this._animationControl.initialized;
| <mask> this._animationCurveEditorContext.fromKey = this._animationControl.from;
<mask> this._animationCurveEditorContext.toKey = this._animationControl.to;
<mask> }
<mask>
<mask> return (
<mask> <div>
</s> Fix animation creation ACE
Former-commit-id: 6cbd913... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/901fcf13fcb74e0049fd0765ac76cafe2f9871f7 | inspector/src/components/actionTabs/tabs/propertyGrids/animations/animationPropertyGridComponent.tsx |
useExistingPlayRange: boolean = false;
| <mask> activeFrame: number;
<mask> fromKey: number;
<mask> toKey: number;
<mask> forwardAnimation = true;
<mask> isPlaying: boolean;
<mask> clipLength: number;
<mask>
</s> Fix animation creation ACE
Former-commit-id: 6cbd913f0df0cd009ff236a908aca002ccd0f848 </s> remove this.fr... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/901fcf13fcb74e0049fd0765ac76cafe2f9871f7 | inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/context.ts |
if (!this.useExistingPlayRange) {
this.fromKey = this.referenceMinFrame;
this.toKey = this.referenceMaxFrame;
}
| <mask>
<mask> this.referenceMinFrame = 0;
<mask> this.referenceMaxFrame = keys[keys.length - 1].frame;
<mask>
<mask> this.fromKey = this.fromKey !== undefined ? this.fromKey : keys[0].frame;
<mask> this.toKey = this.toKey !== undefined ? this.toKey : keys[keys.len... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/901fcf13fcb74e0049fd0765ac76cafe2f9871f7 | inspector/src/components/actionTabs/tabs/propertyGrids/animations/curveEditor/context.ts |
};
| <mask> const prepareArray = function (this: WebGLPipelineContext) {
<mask> args.length = 0;
<mask> Array.prototype.push.apply(args, arguments);
<mask> args[0] = this._uniforms[args[0]];
<mask> }
<mask> const proxyFunction: (functionName: string) => ((/*u... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/9027e07edc60dc32a958dab0cc076ed375edac4b | packages/dev/core/src/Engines/WebGL/webGLPipelineContext.ts |
for (let i = 0; i < cache.length; ++i) {
if (cache[i] !== arguments[i + 1]) {
cache[i] = arguments[i + 1];
| <mask> return true;
<mask> }
<mask>
<mask> let changed = false;
<mask> cache.forEach(function (num, idx) {
<mask> if (num !== arguments[idx + 1]) {
<mask> cache[idx] = arguments[idx + 1];
<mask> changed = true;
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/9027e07edc60dc32a958dab0cc076ed375edac4b | packages/dev/core/src/Engines/WebGL/webGLPipelineContext.ts |
}
| <mask> if (num !== arguments[idx + 1]) {
<mask> cache[idx] = arguments[idx + 1];
<mask> changed = true;
<mask> }
<mask> });
<mask> return changed;
<mask> }
<mask>
<mask> /**
<mask> * @param uniformName
</s> move to for loop... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/9027e07edc60dc32a958dab0cc076ed375edac4b | packages/dev/core/src/Engines/WebGL/webGLPipelineContext.ts |
<mask> if (!matrixData) {
<mask> return; // TODO: error handling
<mask> }
<mask> this._createOrUpdateBodyInstances(body, motionType, matrixData, 0, instancesCount, false);
<mask> body._pluginDataInstances.forEach((bodyId, index) => {
<mask> this._bodies.set(... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/90617de290fa14a3e77ea9b317882719d012c1af | packages/dev/core/src/Physics/v2/Plugins/havokPlugin.ts | |
this._bodies.set(hkbody[0], { body: pluginData, index: i });
| <mask> body._pluginDataInstances.push(pluginData);
<mask> this._hknp.HP_World_AddBody(this.world, hkbody, body.startAsleep);
<mask> pluginData.worldTransformOffset = this._hknp.HP_Body_GetWorldTransformOffset(hkbody)[1];
<mask> }
<mask> }
<mask> ... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/90617de290fa14a3e77ea9b317882719d012c1af | packages/dev/core/src/Physics/v2/Plugins/havokPlugin.ts |
this._bodies.delete(hkbody.hpBodyId[0]);
| <mask> const instancesToRemove = pluginInstancesCount - instancesCount;
<mask> for (let i = 0; i < instancesToRemove; i++) {
<mask> const hkbody = body._pluginDataInstances.pop();
<mask> this._hknp.HP_World_RemoveBody(this.world, hkbody.hpBodyId);
<mask> ... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/90617de290fa14a3e77ea9b317882719d012c1af | packages/dev/core/src/Physics/v2/Plugins/havokPlugin.ts |
public angularSensibilityX = 1000.0;
public angularSensibilityY = 1000.0; | <mask> public lowerBetaLimit = 0.01;
<mask> public upperBetaLimit = Math.PI;
<mask> public lowerRadiusLimit = null;
<mask> public upperRadiusLimit = null;
<mask> public angularSensibility = 1000.0;
<mask> public wheelPrecision = 3.0;
<mask> public pinchPrec... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/90b43f9934d1fc35cde8f2d086632c0a5c4f555e | src/Cameras/babylon.arcRotateCamera.ts |
this.inertialAlphaOffset -= offsetX / this.angularSensibilityX;
this.inertialBetaOffset -= offsetY / this.angularSensibilityY; | <mask> this.inertialPanningY += (evt.clientY - cacheSoloPointer.y) / this.panningSensibility;
<mask> } else {
<mask> var offsetX = evt.clientX - cacheSoloPointer.x;
<mask> var offsetY = evt.cl... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/90b43f9934d1fc35cde8f2d086632c0a5c4f555e | src/Cameras/babylon.arcRotateCamera.ts |
this.inertialRadiusOffset += (pinchSquaredDistance - previousPinchDistance) / (this.pinchPrecision * this.wheelPrecision * ((this.angularSensibilityX+this.angularSensibilityY)/2) * direction); | <mask> return;
<mask> }
<mask>
<mask> if (pinchSquaredDistance !== previousPinchDistance) {
<mask> this.inertialRadiusOffset += (pinchSquaredDistance - previousPinchDistance) / (this.pinchPrecis... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/90b43f9934d1fc35cde8f2d086632c0a5c4f555e | src/Cameras/babylon.arcRotateCamera.ts |
this.inertialAlphaOffset -= offsetX / this.angularSensibilityX;
this.inertialBetaOffset -= offsetY / this.angularSensibilityY; | <mask>
<mask> var offsetX = evt.movementX || evt.mozMovementX || evt.webkitMovementX || evt.msMovementX || 0;
<mask> var offsetY = evt.movementY || evt.mozMovementY || evt.webkitMovementY || evt.msMovementY || 0;
<mask>
<mask> this.inertialAlphaOffset -... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/90b43f9934d1fc35cde8f2d086632c0a5c4f555e | src/Cameras/babylon.arcRotateCamera.ts |
"babylonIncluded": false | <mask> "noBundleInName": true,
<mask> "output": "babylon.gui.js",
<mask> "webpack": "../../gui/webpack.config.js",
<mask> "bundle": "true",
<mask> "babylonIncluded": true
<mask> }
<mask> ],
<mask> "build"... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/90d2ae0e79698eb1e34909a0bc37c0ed08098da7 | Tools/Gulp/config.json |
"distOutputDirectory": "/gui/",
"processDeclaration": {
"filename": "babylon.gui.module.d.ts",
"packageName": "babylonjs-gui",
"moduleName": "BABYLON.GUI",
"importsToRemove": [],
"classMap": {
"ba... | <mask> }
<mask> ],
<mask> "build": {
<mask> "srcOutputDirectory": "../../gui/src/",
<mask> "distOutputDirectory": "/gui/"
<mask> }
<mask> },
<mask> "inspector": {
<mask> "libraries": [
<mask> {
</s> legacy declaration set... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/90d2ae0e79698eb1e34909a0bc37c0ed08098da7 | Tools/Gulp/config.json |
"files": [],
"sassFiles": [], | <mask> },
<mask> "inspector": {
<mask> "libraries": [
<mask> {
<mask> "files": [
<mask> "../../inspector/src/Inspector.ts",
<mask> "../../inspector/src/properties.ts",
<mask> "../../inspector/src/properties_g... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"replace",
"re... | https://github.com/BabylonJS/Babylon.js/commit/90d2ae0e79698eb1e34909a0bc37c0ed08098da7 | Tools/Gulp/config.json |
<mask> ],
<mask> "output": "babylon.inspector.js",
<mask> "webpack": "../../inspector/webpack.config.js",
<mask> "bundle": "true",
<mask> "moduleDeclaration": {
<mask> "name": "INSPECTOR",
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/90d2ae0e79698eb1e34909a0bc37c0ed08098da7 | Tools/Gulp/config.json | |
"srcOutputDirectory": "../../inspector/src/",
"distOutputDirectory": "/inspector/",
"processDeclaration": {
"filename": "babylon.inspector.module.d.ts",
"packageName": "babylonjs-inspector",
"moduleName": "INSPECTOR",
"i... | <mask> "extendsRoot": true
<mask> }
<mask> ],
<mask> "build": {
<mask> "srcOutputDirectory": "../../inspector/",
<mask> "distOutputDirectory": "/inspector/"
<mask> }
<mask> },
<mask> "viewer": {
<mask> "libraries": [
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/BabylonJS/Babylon.js/commit/90d2ae0e79698eb1e34909a0bc37c0ed08098da7 | Tools/Gulp/config.json |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.