@lightningjs/solid-primitives
Advanced tools
Comparing version
@@ -1,2 +0,2 @@ | ||
import { type TextureRef } from '@lightningjs/renderer'; | ||
import { type SpecificTextureRef } from '@lightningjs/renderer'; | ||
export interface SpriteDef { | ||
@@ -9,2 +9,2 @@ name: string; | ||
} | ||
export declare function createSpriteMap(src: string, subTextures: SpriteDef[]): Record<string, TextureRef>; | ||
export declare function createSpriteMap(src: string, subTextures: SpriteDef[]): Record<string, SpecificTextureRef<"SubTexture">>; |
{ | ||
"name": "@lightningjs/solid-primitives", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Lightning Primitives for Solid Lightning", | ||
@@ -15,17 +15,2 @@ "type": "module", | ||
"sideEffects": false, | ||
"scripts": { | ||
"start": "npm run dev", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"lint": "npm run lint:prettier && npm run lint:eslint", | ||
"lint:fix": "npm run lint:fix:prettier && npm run lint:fix:eslint", | ||
"lint:prettier": "prettier --check \"**/*.{ts,js,cjs,md}\"", | ||
"lint:fix:prettier": "prettier --write \"**/*.{ts,js,cjs,md}\"", | ||
"lint:eslint": "eslint .", | ||
"lint:fix:eslint": "eslint --fix .", | ||
"build": "tsc", | ||
"watch": "tsc -w", | ||
"dev": "concurrently -c \"auto\" \"npm:watch\" \"npm:vite\"", | ||
"vite": "vite --open \"/test/index.html\" --host", | ||
"prepack": "npm run build" | ||
}, | ||
"keywords": [ | ||
@@ -77,3 +62,17 @@ "lightning", | ||
"README.md" | ||
] | ||
} | ||
], | ||
"scripts": { | ||
"start": "npm run dev", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"lint": "npm run lint:prettier && npm run lint:eslint", | ||
"lint:fix": "npm run lint:fix:prettier && npm run lint:fix:eslint", | ||
"lint:prettier": "prettier --check \"**/*.{ts,js,cjs,md}\"", | ||
"lint:fix:prettier": "prettier --write \"**/*.{ts,js,cjs,md}\"", | ||
"lint:eslint": "eslint .", | ||
"lint:fix:eslint": "eslint --fix .", | ||
"build": "tsc", | ||
"watch": "tsc -w", | ||
"dev": "concurrently -c \"auto\" \"npm:watch\" \"npm:vite\"", | ||
"vite": "vite --open \"/test/index.html\" --host" | ||
} | ||
} |
@@ -19,3 +19,3 @@ /* | ||
import { renderer } from '@lightningjs/solid'; | ||
import { type TextureRef } from '@lightningjs/renderer'; | ||
import { type SpecificTextureRef } from '@lightningjs/renderer'; | ||
@@ -35,3 +35,3 @@ export interface SpriteDef { | ||
return subTextures.reduce<Record<string, TextureRef>>((acc, t) => { | ||
return subTextures.reduce<Record<string, SpecificTextureRef<"SubTexture">>>((acc, t) => { | ||
const { x, y, width, height } = t; | ||
@@ -38,0 +38,0 @@ acc[t.name] = renderer.createTexture('SubTexture', { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
150667
0.25%1
Infinity%