littlejsengine 1.18.25 → 1.18.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/littlejs.d.ts +22 -0
- package/dist/littlejs.esm.js +688 -618
- package/dist/littlejs.esm.min.js +1 -1
- package/dist/littlejs.js +684 -618
- package/dist/littlejs.min.js +1 -1
- package/dist/littlejs.release.js +684 -618
- package/package.json +59 -58
- package/plugins/threejs.js +3 -0
- package/src/engine.js +612 -612
- package/src/engineDraw.js +24 -3
- package/src/engineExport.js +4 -0
- package/src/engineInput.js +34 -5
- package/src/engineSettings.js +13 -0
package/dist/littlejs.d.ts
CHANGED
|
@@ -514,6 +514,13 @@ declare module "littlejsengine" {
|
|
|
514
514
|
* @default
|
|
515
515
|
* @memberof Settings */
|
|
516
516
|
export let gamepadDirectionEmulateStick: boolean;
|
|
517
|
+
/** If true, axes that do not rest near center are ignored on gamepads without
|
|
518
|
+
* standard mapping. Steering wheels and flight sticks report pedal and throttle
|
|
519
|
+
* axes that rest at full deflection, which otherwise reads as a stick held down.
|
|
520
|
+
* @type {boolean}
|
|
521
|
+
* @default
|
|
522
|
+
* @memberof Settings */
|
|
523
|
+
export let gamepadAxisFilterEnable: boolean;
|
|
517
524
|
/** If true the WASD keys are also routed to the direction keys (for better accessibility)
|
|
518
525
|
* @type {boolean}
|
|
519
526
|
* @default
|
|
@@ -780,6 +787,10 @@ declare module "littlejsengine" {
|
|
|
780
787
|
* @param {boolean} enable
|
|
781
788
|
* @memberof Settings */
|
|
782
789
|
export function setGamepadDirectionEmulateStick(enable: boolean): void;
|
|
790
|
+
/** Set if axes that do not rest near center are ignored on non-standard gamepads
|
|
791
|
+
* @param {boolean} enable
|
|
792
|
+
* @memberof Settings */
|
|
793
|
+
export function setGamepadAxisFilterEnable(enable: boolean): void;
|
|
783
794
|
/** Set if true the WASD keys are also routed to the direction keys
|
|
784
795
|
* @param {boolean} enable
|
|
785
796
|
* @memberof Settings */
|
|
@@ -1817,6 +1828,11 @@ declare module "littlejsengine" {
|
|
|
1817
1828
|
* @type {OffscreenCanvasRenderingContext2D}
|
|
1818
1829
|
* @memberof Draw */
|
|
1819
1830
|
export let workReadContext: OffscreenCanvasRenderingContext2D;
|
|
1831
|
+
/** Extra canvas to composite behind the engine canvases when combining canvases
|
|
1832
|
+
* Set by plugins that render to their own canvas below the LittleJS canvases
|
|
1833
|
+
* @type {HTMLCanvasElement}
|
|
1834
|
+
* @memberof Draw */
|
|
1835
|
+
export let backgroundCanvas: HTMLCanvasElement;
|
|
1820
1836
|
/** The size of the main canvas (and other secondary canvases)
|
|
1821
1837
|
* @type {Vector2}
|
|
1822
1838
|
* @memberof Draw */
|
|
@@ -2050,6 +2066,12 @@ declare module "littlejsengine" {
|
|
|
2050
2066
|
* @param {boolean} [additive]
|
|
2051
2067
|
* @memberof Draw */
|
|
2052
2068
|
export function setAdditiveBlendMode(additive?: boolean): void;
|
|
2069
|
+
/** Set an extra canvas to composite behind the engine canvases when combining
|
|
2070
|
+
* Plugins that insert their own canvas below the LittleJS canvases should set
|
|
2071
|
+
* this so it appears in screenshots and video capture
|
|
2072
|
+
* @param {HTMLCanvasElement} [canvas]
|
|
2073
|
+
* @memberof Draw */
|
|
2074
|
+
export function setBackgroundCanvas(canvas?: HTMLCanvasElement): void;
|
|
2053
2075
|
/** Combines LittleJS canvases onto the main canvas
|
|
2054
2076
|
* This is necessary for things like screenshots and video
|
|
2055
2077
|
* @memberof Draw */
|