skinview-utils
Advanced tools
Comparing version 0.5.9 to 0.6.0
export * from "./types.js"; | ||
export * from "./process.js"; | ||
export * from "./load-image.js"; | ||
export * from "./viewer-mixins.js"; |
export * from "./types.js"; | ||
export * from "./process.js"; | ||
export * from "./load-image.js"; | ||
export * from "./viewer-mixins.js"; | ||
//# sourceMappingURL=index.js.map |
export declare type TextureCanvas = HTMLCanvasElement | OffscreenCanvas; | ||
export declare type TextureSource = HTMLImageElement | HTMLVideoElement | ImageBitmap | TextureCanvas; | ||
export declare type ModelType = "default" | "slim"; | ||
export declare function isTextureSource(value: unknown): value is TextureSource; |
@@ -1,2 +0,8 @@ | ||
export {}; | ||
export function isTextureSource(value) { | ||
return value instanceof HTMLImageElement || | ||
value instanceof HTMLVideoElement || | ||
value instanceof HTMLCanvasElement || | ||
(typeof ImageBitmap !== "undefined" && value instanceof ImageBitmap) || | ||
(typeof OffscreenCanvas !== "undefined" && value instanceof OffscreenCanvas); | ||
} | ||
//# sourceMappingURL=types.js.map |
{ | ||
"name": "skinview-utils", | ||
"version": "0.5.9", | ||
"version": "0.6.0", | ||
"description": "Utilities for working with Minecraft skins", | ||
@@ -14,12 +14,12 @@ "type": "module", | ||
"devDependencies": { | ||
"@rollup/plugin-commonjs": "^15.1.0", | ||
"@rollup/plugin-image": "^2.0.5", | ||
"@rollup/plugin-node-resolve": "^9.0.0", | ||
"@rollup/plugin-typescript": "^6.0.0", | ||
"@types/chai": "^4.2.12", | ||
"@types/mocha": "^8.0.3", | ||
"@typescript-eslint/eslint-plugin": "^4.3.0", | ||
"@typescript-eslint/parser": "^4.3.0", | ||
"@rollup/plugin-commonjs": "^17.0.0", | ||
"@rollup/plugin-image": "^2.0.6", | ||
"@rollup/plugin-node-resolve": "^11.0.1", | ||
"@rollup/plugin-typescript": "^8.1.0", | ||
"@types/chai": "^4.2.14", | ||
"@types/mocha": "^8.2.0", | ||
"@typescript-eslint/eslint-plugin": "^4.11.0", | ||
"@typescript-eslint/parser": "^4.11.0", | ||
"chai": "^4.2.0", | ||
"eslint": "^7.10.0", | ||
"eslint": "^7.16.0", | ||
"karma": "^5.2.3", | ||
@@ -29,7 +29,7 @@ "karma-chrome-launcher": "^3.1.0", | ||
"karma-rollup-preprocessor": "^7.0.5", | ||
"mocha": "^8.1.3", | ||
"puppeteer": "^5.3.1", | ||
"mocha": "^8.2.1", | ||
"puppeteer": "^5.5.0", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.28.2", | ||
"typescript": "^4.0.3" | ||
"rollup": "^2.35.1", | ||
"typescript": "^4.1.3" | ||
}, | ||
@@ -36,0 +36,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
23809
15
242