babylonjs-gui
Advanced tools
Comparing version 3.1.0-alpha1.3 to 3.1.0-alpha3.2
declare module BABYLON.GUI { | ||
interface IFocusableControl { | ||
onFocus(): void; | ||
onBlur(): void; | ||
processKeyboard(evt: KeyboardEvent): void; | ||
} | ||
class AdvancedDynamicTexture extends DynamicTexture { | ||
@@ -7,7 +12,9 @@ private _isDirty; | ||
private _resizeObserver; | ||
private _preKeyboardObserver; | ||
private _pointerMoveObserver; | ||
private _pointerObserver; | ||
private _canvasBlurObserver; | ||
private _canvasPointerOutObserver; | ||
private _background; | ||
_rootContainer: Container; | ||
_lastPickedControl: Control; | ||
_lastControlOver: Control; | ||
@@ -24,2 +31,3 @@ _lastControlDown: Control; | ||
private _renderAtIdealSize; | ||
private _focusedControl; | ||
background: string; | ||
@@ -30,2 +38,4 @@ idealWidth: number; | ||
readonly layer: Layer; | ||
readonly rootContainer: Container; | ||
focusedControl: IFocusableControl; | ||
constructor(name: string, width: number, height: number, scene: Scene, generateMipMaps?: boolean, samplingMode?: number); | ||
@@ -44,3 +54,4 @@ executeOnAllControls(func: (control: Control) => void, container?: Container): void; | ||
attachToMesh(mesh: AbstractMesh, supportPointerMove?: boolean): void; | ||
private _attachToOnBlur(scene); | ||
private _manageFocus(); | ||
private _attachToOnPointerOut(scene); | ||
static CreateForMesh(mesh: AbstractMesh, width?: number, height?: number, supportPointerMove?: boolean): AdvancedDynamicTexture; | ||
@@ -124,2 +135,3 @@ static CreateFullscreenUI(name: string, foreground?: boolean, scene?: Scene): AdvancedDynamicTexture; | ||
private _fontFamily; | ||
private _fontStyle; | ||
private _fontSize; | ||
@@ -166,2 +178,3 @@ private _font; | ||
isPointerBlocker: boolean; | ||
isFocusInvisible: boolean; | ||
protected _linkOffsetX: ValueAndUnit; | ||
@@ -211,2 +224,3 @@ protected _linkOffsetY: ValueAndUnit; | ||
fontFamily: string; | ||
fontStyle: string; | ||
fontSize: string | number; | ||
@@ -258,2 +272,3 @@ color: string; | ||
private _prepareFont(); | ||
dispose(): void; | ||
private static _HORIZONTAL_ALIGNMENT_LEFT; | ||
@@ -310,2 +325,3 @@ private static _HORIZONTAL_ALIGNMENT_RIGHT; | ||
protected _additionalProcessing(parentMeasure: Measure, context: CanvasRenderingContext2D): void; | ||
dispose(): void; | ||
} | ||
@@ -319,4 +335,9 @@ } | ||
private _isVertical; | ||
private _manualWidth; | ||
private _manualHeight; | ||
private _doNotTrackManualChanges; | ||
private _tempMeasureStore; | ||
isVertical: boolean; | ||
width: string | number; | ||
height: string | number; | ||
constructor(name?: string); | ||
@@ -360,3 +381,2 @@ protected _getTypeName(): string; | ||
declare var DOMImage: new (width?: number, height?: number) => HTMLImageElement; | ||
declare module BABYLON.GUI { | ||
@@ -395,3 +415,2 @@ class Line extends Control { | ||
declare var DOMImage: new (width?: number, height?: number) => HTMLImageElement; | ||
declare module BABYLON.GUI { | ||
@@ -427,3 +446,2 @@ class Slider extends Control { | ||
declare var DOMImage: new (width?: number, height?: number) => HTMLImageElement; | ||
declare module BABYLON.GUI { | ||
@@ -449,3 +467,2 @@ class Checkbox extends Control { | ||
declare var DOMImage: new (width?: number, height?: number) => HTMLImageElement; | ||
declare module BABYLON.GUI { | ||
@@ -559,3 +576,2 @@ class RadioButton extends Control { | ||
declare var DOMImage: new (width?: number, height?: number) => HTMLImageElement; | ||
declare module BABYLON.GUI { | ||
@@ -601,6 +617,9 @@ class ColorPicker extends Control { | ||
declare module BABYLON.GUI { | ||
class InputText extends Control { | ||
class InputText extends Control implements IFocusableControl { | ||
name: string; | ||
private _text; | ||
private _placeholderText; | ||
private _background; | ||
private _focusedBackground; | ||
private _placeholderColor; | ||
private _thickness; | ||
@@ -610,2 +629,11 @@ private _margin; | ||
private _maxWidth; | ||
private _isFocused; | ||
private _blinkTimeout; | ||
private _blinkIsEven; | ||
private _cursorOffset; | ||
private _scrollLeft; | ||
promptMessage: string; | ||
onTextChangedObservable: Observable<InputText>; | ||
onFocusObservable: Observable<InputText>; | ||
onBlurObservable: Observable<InputText>; | ||
maxWidth: string | number; | ||
@@ -615,8 +643,54 @@ margin: string; | ||
thickness: number; | ||
focusedBackground: string; | ||
background: string; | ||
placeholderColor: string; | ||
placeholderText: string; | ||
text: string; | ||
constructor(name?: string, text?: string); | ||
onBlur(): void; | ||
onFocus(): void; | ||
protected _getTypeName(): string; | ||
processKey(keyCode: number, key?: string): void; | ||
processKeyboard(evt: KeyboardEvent): void; | ||
_draw(parentMeasure: Measure, context: CanvasRenderingContext2D): void; | ||
protected _onPointerDown(coordinates: Vector2): boolean; | ||
protected _onPointerUp(coordinates: Vector2): void; | ||
dispose(): void; | ||
} | ||
} | ||
declare module BABYLON.GUI { | ||
class KeyPropertySet { | ||
width?: string; | ||
height?: string; | ||
paddingLeft?: string; | ||
paddingRight?: string; | ||
paddingTop?: string; | ||
paddingBottom?: string; | ||
color?: string; | ||
background?: string; | ||
} | ||
class VirtualKeyboard extends StackPanel { | ||
onKeyPressObservable: Observable<string>; | ||
defaultButtonWidth: string; | ||
defaultButtonHeight: string; | ||
defaultButtonPaddingLeft: string; | ||
defaultButtonPaddingRight: string; | ||
defaultButtonPaddingTop: string; | ||
defaultButtonPaddingBottom: string; | ||
defaultButtonColor: string; | ||
defaultButtonBackground: string; | ||
protected _getTypeName(): string; | ||
private _createKey(key, propertySet?); | ||
addKeysRow(keys: Array<string>, propertySets?: Array<KeyPropertySet>): void; | ||
private _connectedInputText; | ||
private _onFocusObserver; | ||
private _onBlurObserver; | ||
private _onKeyPressObserver; | ||
readonly connectedInputText: InputText; | ||
connect(input: InputText): void; | ||
disconnect(): void; | ||
static CreateDefaultLayout(): VirtualKeyboard; | ||
} | ||
} |
@@ -1,3 +0,13 @@ | ||
/// <reference path="../../dist/preview release/babylon.d.ts" /> | ||
/// <reference types="babylonjs"/> | ||
declare module 'babylonjs-gui' { | ||
export = BABYLON.GUI; | ||
} | ||
declare module BABYLON.GUI { | ||
interface IFocusableControl { | ||
onFocus(): void; | ||
onBlur(): void; | ||
processKeyboard(evt: KeyboardEvent): void; | ||
} | ||
class AdvancedDynamicTexture extends DynamicTexture { | ||
@@ -7,7 +17,9 @@ private _isDirty; | ||
private _resizeObserver; | ||
private _preKeyboardObserver; | ||
private _pointerMoveObserver; | ||
private _pointerObserver; | ||
private _canvasBlurObserver; | ||
private _canvasPointerOutObserver; | ||
private _background; | ||
_rootContainer: Container; | ||
_lastPickedControl: Control; | ||
_lastControlOver: Control; | ||
@@ -24,2 +36,3 @@ _lastControlDown: Control; | ||
private _renderAtIdealSize; | ||
private _focusedControl; | ||
background: string; | ||
@@ -30,2 +43,4 @@ idealWidth: number; | ||
readonly layer: Layer; | ||
readonly rootContainer: Container; | ||
focusedControl: IFocusableControl; | ||
constructor(name: string, width: number, height: number, scene: Scene, generateMipMaps?: boolean, samplingMode?: number); | ||
@@ -44,3 +59,4 @@ executeOnAllControls(func: (control: Control) => void, container?: Container): void; | ||
attachToMesh(mesh: AbstractMesh, supportPointerMove?: boolean): void; | ||
private _attachToOnBlur(scene); | ||
private _manageFocus(); | ||
private _attachToOnPointerOut(scene); | ||
static CreateForMesh(mesh: AbstractMesh, width?: number, height?: number, supportPointerMove?: boolean): AdvancedDynamicTexture; | ||
@@ -51,3 +67,3 @@ static CreateFullscreenUI(name: string, foreground?: boolean, scene?: Scene): AdvancedDynamicTexture; | ||
/// <reference path="../../dist/preview release/babylon.d.ts" /> | ||
declare module BABYLON.GUI { | ||
@@ -66,3 +82,3 @@ class Measure { | ||
/// <reference path="../../dist/preview release/babylon.d.ts" /> | ||
declare module BABYLON.GUI { | ||
@@ -92,3 +108,3 @@ class Matrix2D { | ||
/// <reference path="../../dist/preview release/babylon.d.ts" /> | ||
declare module BABYLON.GUI { | ||
@@ -116,3 +132,3 @@ class ValueAndUnit { | ||
/// <reference path="../../../dist/preview release/babylon.d.ts" /> | ||
declare module BABYLON.GUI { | ||
@@ -128,2 +144,3 @@ class Control { | ||
private _fontFamily; | ||
private _fontStyle; | ||
private _fontSize; | ||
@@ -170,2 +187,3 @@ private _font; | ||
isPointerBlocker: boolean; | ||
isFocusInvisible: boolean; | ||
protected _linkOffsetX: ValueAndUnit; | ||
@@ -215,2 +233,3 @@ protected _linkOffsetY: ValueAndUnit; | ||
fontFamily: string; | ||
fontStyle: string; | ||
fontSize: string | number; | ||
@@ -262,2 +281,3 @@ color: string; | ||
private _prepareFont(); | ||
dispose(): void; | ||
private static _HORIZONTAL_ALIGNMENT_LEFT; | ||
@@ -289,3 +309,3 @@ private static _HORIZONTAL_ALIGNMENT_RIGHT; | ||
/// <reference path="../../../dist/preview release/babylon.d.ts" /> | ||
declare module BABYLON.GUI { | ||
@@ -315,6 +335,7 @@ class Container extends Control { | ||
protected _additionalProcessing(parentMeasure: Measure, context: CanvasRenderingContext2D): void; | ||
dispose(): void; | ||
} | ||
} | ||
/// <reference path="../../../dist/preview release/babylon.d.ts" /> | ||
declare module BABYLON.GUI { | ||
@@ -324,4 +345,9 @@ class StackPanel extends Container { | ||
private _isVertical; | ||
private _manualWidth; | ||
private _manualHeight; | ||
private _doNotTrackManualChanges; | ||
private _tempMeasureStore; | ||
isVertical: boolean; | ||
width: string | number; | ||
height: string | number; | ||
constructor(name?: string); | ||
@@ -333,3 +359,3 @@ protected _getTypeName(): string; | ||
/// <reference path="../../../dist/preview release/babylon.d.ts" /> | ||
declare module BABYLON.GUI { | ||
@@ -351,3 +377,3 @@ class Rectangle extends Container { | ||
/// <reference path="../../../dist/preview release/babylon.d.ts" /> | ||
declare module BABYLON.GUI { | ||
@@ -366,4 +392,3 @@ class Ellipse extends Container { | ||
/// <reference path="../../../dist/preview release/babylon.d.ts" /> | ||
declare var DOMImage: new (width?: number, height?: number) => HTMLImageElement; | ||
declare module BABYLON.GUI { | ||
@@ -401,4 +426,3 @@ class Line extends Control { | ||
/// <reference path="../../../dist/preview release/babylon.d.ts" /> | ||
declare var DOMImage: new (width?: number, height?: number) => HTMLImageElement; | ||
declare module BABYLON.GUI { | ||
@@ -433,4 +457,3 @@ class Slider extends Control { | ||
/// <reference path="../../../dist/preview release/babylon.d.ts" /> | ||
declare var DOMImage: new (width?: number, height?: number) => HTMLImageElement; | ||
declare module BABYLON.GUI { | ||
@@ -455,4 +478,3 @@ class Checkbox extends Control { | ||
/// <reference path="../../../dist/preview release/babylon.d.ts" /> | ||
declare var DOMImage: new (width?: number, height?: number) => HTMLImageElement; | ||
declare module BABYLON.GUI { | ||
@@ -478,3 +500,3 @@ class RadioButton extends Control { | ||
/// <reference path="../../../dist/preview release/babylon.d.ts" /> | ||
declare module BABYLON.GUI { | ||
@@ -505,3 +527,3 @@ class TextBlock extends Control { | ||
/// <reference path="../../../dist/preview release/babylon.d.ts" /> | ||
declare var DOMImage: new (width?: number, height?: number) => HTMLImageElement; | ||
@@ -546,3 +568,3 @@ declare module BABYLON.GUI { | ||
/// <reference path="../../../dist/preview release/babylon.d.ts" /> | ||
declare module BABYLON.GUI { | ||
@@ -568,4 +590,3 @@ class Button extends Rectangle { | ||
/// <reference path="../../../dist/preview release/babylon.d.ts" /> | ||
declare var DOMImage: new (width?: number, height?: number) => HTMLImageElement; | ||
declare module BABYLON.GUI { | ||
@@ -609,8 +630,11 @@ class ColorPicker extends Control { | ||
/// <reference path="../../../dist/preview release/babylon.d.ts" /> | ||
declare module BABYLON.GUI { | ||
class InputText extends Control { | ||
class InputText extends Control implements IFocusableControl { | ||
name: string; | ||
private _text; | ||
private _placeholderText; | ||
private _background; | ||
private _focusedBackground; | ||
private _placeholderColor; | ||
private _thickness; | ||
@@ -620,2 +644,11 @@ private _margin; | ||
private _maxWidth; | ||
private _isFocused; | ||
private _blinkTimeout; | ||
private _blinkIsEven; | ||
private _cursorOffset; | ||
private _scrollLeft; | ||
promptMessage: string; | ||
onTextChangedObservable: Observable<InputText>; | ||
onFocusObservable: Observable<InputText>; | ||
onBlurObservable: Observable<InputText>; | ||
maxWidth: string | number; | ||
@@ -625,10 +658,54 @@ margin: string; | ||
thickness: number; | ||
focusedBackground: string; | ||
background: string; | ||
placeholderColor: string; | ||
placeholderText: string; | ||
text: string; | ||
constructor(name?: string, text?: string); | ||
onBlur(): void; | ||
onFocus(): void; | ||
protected _getTypeName(): string; | ||
processKey(keyCode: number, key?: string): void; | ||
processKeyboard(evt: KeyboardEvent): void; | ||
_draw(parentMeasure: Measure, context: CanvasRenderingContext2D): void; | ||
protected _onPointerDown(coordinates: Vector2): boolean; | ||
protected _onPointerUp(coordinates: Vector2): void; | ||
dispose(): void; | ||
} | ||
} | ||
export = BABYLON.GUI; | ||
declare module BABYLON.GUI { | ||
class KeyPropertySet { | ||
width?: string; | ||
height?: string; | ||
paddingLeft?: string; | ||
paddingRight?: string; | ||
paddingTop?: string; | ||
paddingBottom?: string; | ||
color?: string; | ||
background?: string; | ||
} | ||
class VirtualKeyboard extends StackPanel { | ||
onKeyPressObservable: Observable<string>; | ||
defaultButtonWidth: string; | ||
defaultButtonHeight: string; | ||
defaultButtonPaddingLeft: string; | ||
defaultButtonPaddingRight: string; | ||
defaultButtonPaddingTop: string; | ||
defaultButtonPaddingBottom: string; | ||
defaultButtonColor: string; | ||
defaultButtonBackground: string; | ||
protected _getTypeName(): string; | ||
private _createKey(key, propertySet?); | ||
addKeysRow(keys: Array<string>, propertySets?: Array<KeyPropertySet>): void; | ||
private _connectedInputText; | ||
private _onFocusObserver; | ||
private _onBlurObserver; | ||
private _onKeyPressObserver; | ||
readonly connectedInputText: InputText; | ||
connect(input: InputText): void; | ||
disconnect(): void; | ||
static CreateDefaultLayout(): VirtualKeyboard; | ||
} | ||
} |
{ | ||
"author": { | ||
"name": "David CATUHE" | ||
}, | ||
"name": "babylonjs-gui", | ||
"description": "The Babylon.js GUI library is an extension you can use to generate interactive user interface. It is build on top of the DynamicTexture.", | ||
"version": "3.1.0-alpha1.3", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/BabylonJS/Babylon.js.git" | ||
}, | ||
"main": "babylon.gui.js", | ||
"files": [ | ||
"babylon.gui.js", | ||
"babylon.gui.min.js", | ||
"babylon.gui.d.ts", | ||
"babylon.gui.module.d.ts", | ||
"package.json" | ||
], | ||
"typings": "babylon.gui.module.d.ts", | ||
"keywords": [ | ||
"3D", | ||
"javascript", | ||
"html5", | ||
"webgl", | ||
"gui" | ||
], | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"babylonjs": "3.1.0-alpha1" | ||
}, | ||
"engines": { | ||
"node": "*" | ||
}, | ||
"_id": "babylonjs-gui@3.1.0-alpha1", | ||
"_from": "babylonjs-gui@" | ||
} | ||
"author": { | ||
"name": "David CATUHE" | ||
}, | ||
"name": "babylonjs-gui", | ||
"description": "The Babylon.js GUI library is an extension you can use to generate interactive user interface. It is build on top of the DynamicTexture.", | ||
"version": "3.1.0-alpha3.2", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/BabylonJS/Babylon.js.git" | ||
}, | ||
"main": "babylon.gui.min.js", | ||
"files": [ | ||
"babylon.gui.js", | ||
"babylon.gui.min.js", | ||
"babylon.gui.d.ts", | ||
"babylon.gui.module.d.ts", | ||
"package.json" | ||
], | ||
"typings": "babylon.gui.module.d.ts", | ||
"keywords": [ | ||
"3D", | ||
"javascript", | ||
"html5", | ||
"webgl", | ||
"gui" | ||
], | ||
"license": "Apache-2.0", | ||
"peerDependencies": { | ||
"babylonjs": ">=3.1.0-alpha" | ||
}, | ||
"engines": { | ||
"node": "*" | ||
}, | ||
"_id": "babylonjs-gui@3.1.0-alpha1", | ||
"_from": "babylonjs-gui@" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
315216
5658
3
+ Addedbabylonjs@7.37.0(transitive)
- Removedbabylonjs@3.1.0-alpha1
- Removedbabylonjs@3.1.0-alpha1(transitive)