litecanvas 0.58.1 → 0.58.2
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/package.json +1 -1
- package/src/types.js +2 -1
- package/types/types.d.ts +17 -6
package/package.json
CHANGED
package/src/types.js
CHANGED
|
@@ -8,10 +8,11 @@
|
|
|
8
8
|
* @property {boolean} [pauseOnBlur=true]
|
|
9
9
|
* @property {boolean} [autoscale=true]
|
|
10
10
|
* @property {boolean} [pixelart=false]
|
|
11
|
-
* @property {boolean} [antialias=
|
|
11
|
+
* @property {boolean} [antialias=false]
|
|
12
12
|
* @property {string} [canvas]
|
|
13
13
|
* @property {boolean} [global=true]
|
|
14
14
|
* @property {boolean} [tapEvents=true]
|
|
15
|
+
* @property {boolean} [keyboardEvents=true]
|
|
15
16
|
* @property {LitecanvasGameLoop} [loop]
|
|
16
17
|
*/
|
|
17
18
|
|
package/types/types.d.ts
CHANGED
|
@@ -659,7 +659,7 @@ type LitecanvasOptions = {
|
|
|
659
659
|
*/
|
|
660
660
|
pixelart?: boolean
|
|
661
661
|
/**
|
|
662
|
-
* If `false
|
|
662
|
+
* If `false` (default), disable the canvas antialias.
|
|
663
663
|
*/
|
|
664
664
|
antialias?: boolean
|
|
665
665
|
/**
|
|
@@ -670,11 +670,6 @@ type LitecanvasOptions = {
|
|
|
670
670
|
* If `true` (default), all methods and properties of the engine will be exposed to the global scope (window).
|
|
671
671
|
*/
|
|
672
672
|
global?: boolean
|
|
673
|
-
/**
|
|
674
|
-
* if `false` disable the click/touch events handling.
|
|
675
|
-
* Useful when you want to implement your own input handler.
|
|
676
|
-
*/
|
|
677
|
-
tapEvents?: boolean
|
|
678
673
|
/**
|
|
679
674
|
* Specify your game loop callbacks.
|
|
680
675
|
* By default use that global functions (if they exist):
|
|
@@ -688,6 +683,22 @@ type LitecanvasOptions = {
|
|
|
688
683
|
* - `window.tapping(tapX: number, tapY: number, tapId: number): void`
|
|
689
684
|
*/
|
|
690
685
|
loop?: LitecanvasGameLoop
|
|
686
|
+
/**
|
|
687
|
+
* default: `true`
|
|
688
|
+
*
|
|
689
|
+
* if `false` disable the click/touch events handling.
|
|
690
|
+
*
|
|
691
|
+
* Useful when you want to implement your own input handler.
|
|
692
|
+
*/
|
|
693
|
+
tapEvents?: boolean
|
|
694
|
+
/**
|
|
695
|
+
* default: `true`
|
|
696
|
+
*
|
|
697
|
+
* if `false` disable the `iskeydown()` method.
|
|
698
|
+
*
|
|
699
|
+
* Useful when you want to implement your keyboard handler.
|
|
700
|
+
*/
|
|
701
|
+
keyboardEvents?: boolean
|
|
691
702
|
}
|
|
692
703
|
|
|
693
704
|
type LitecanvasGameLoop = {
|