litecanvas 0.300.0 → 0.301.1

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/src/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '0.300.0'
2
+ export const version = '0.301.1'
package/types/global.d.ts CHANGED
@@ -687,6 +687,14 @@ declare global {
687
687
  * Returns `true` if the engine loop is paused.
688
688
  */
689
689
  function ispaused(): boolean
690
+ /**
691
+ * Resizes the canvas
692
+ *
693
+ * @param width
694
+ * @param height
695
+ * @param autoscale
696
+ */
697
+ function resize(width: number, height?: number, autoscale?: boolean | number): void
690
698
  /**
691
699
  * Shutdown the litecanvas instance and remove all event listeners.
692
700
  */
package/types/types.d.ts CHANGED
@@ -671,6 +671,14 @@ type LitecanvasInstance = {
671
671
  * Returns `true` if the engine loop is paused.
672
672
  */
673
673
  ispaused(): boolean
674
+ /**
675
+ * Resizes the canvas
676
+ *
677
+ * @param width
678
+ * @param height
679
+ * @param autoscale
680
+ */
681
+ resize(width: number, height?: number, autoscale?: boolean | number): void
674
682
  /**
675
683
  * Shutdown the litecanvas instance and remove all event listeners.
676
684
  */