mirror of
https://github.com/NohamR/Pocket-Bird.git
synced 2026-05-25 04:07:23 +00:00
Add jsconfig file
This commit is contained in:
15
dist/birb.js
vendored
15
dist/birb.js
vendored
@@ -1,16 +1,12 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
// @ts-check
|
||||
|
||||
const Directions = {
|
||||
LEFT: -1,
|
||||
RIGHT: 1,
|
||||
};
|
||||
|
||||
// @ts-check
|
||||
|
||||
// Sprite theme color indicators
|
||||
/** Indicators for parts of the base bird sprite sheet */
|
||||
const Sprite = {
|
||||
THEME_HIGHLIGHT: "theme-highlight",
|
||||
TRANSPARENT: "transparent",
|
||||
@@ -210,8 +206,6 @@
|
||||
}),
|
||||
};
|
||||
|
||||
// @ts-check
|
||||
|
||||
class Layer {
|
||||
/**
|
||||
* @param {string[][]} pixels
|
||||
@@ -223,8 +217,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
// @ts-check
|
||||
|
||||
class Frame {
|
||||
|
||||
/** @type {{ [tag: string]: string[][] }} */
|
||||
@@ -291,9 +283,6 @@
|
||||
} } }
|
||||
}
|
||||
|
||||
// @ts-check
|
||||
|
||||
|
||||
// @ts-ignore
|
||||
const SHARED_CONFIG = {
|
||||
birbCssScale: 1,
|
||||
@@ -1017,7 +1006,6 @@
|
||||
const canvas = document.createElement("canvas");
|
||||
|
||||
/** @type {CanvasRenderingContext2D} */
|
||||
// @ts-expect-error
|
||||
const ctx = canvas.getContext("2d");
|
||||
|
||||
const States = {
|
||||
@@ -1389,7 +1377,6 @@
|
||||
|
||||
const textarea = noteElement.querySelector(".birb-sticky-note-input");
|
||||
if (textarea && textarea instanceof HTMLTextAreaElement) {
|
||||
/** @type {NodeJS.Timeout | undefined} */
|
||||
let saveTimeout;
|
||||
// Save after debounce
|
||||
textarea.addEventListener("input", () => {
|
||||
|
||||
Reference in New Issue
Block a user