rename function grid to gird and fix image not show all properties

This commit is contained in:
Asaki Yuki 2026-02-23 16:31:23 +07:00
parent af3c42f7e8
commit 8850928388
3 changed files with 4 additions and 3 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "asajs", "name": "asajs",
"version": "4.1.3", "version": "4.1.5",
"description": "Create your Minecraft JSON-UI resource packs using JavaScript", "description": "Create your Minecraft JSON-UI resource packs using JavaScript",
"keywords": [ "keywords": [
"Minecraft", "Minecraft",

View file

@ -305,7 +305,7 @@ export function InputPanel(properties?: InputPanel, namespace?: string, name?: s
return new UI(Type.INPUT_PANEL, name, namespace, undefined, allowObfuscate).setProperties(properties || {}) return new UI(Type.INPUT_PANEL, name, namespace, undefined, allowObfuscate).setProperties(properties || {})
} }
export function Gird(properties?: Grid, namespace?: string, name?: string, allowObfuscate?: boolean) { export function Grid(properties?: Grid, namespace?: string, name?: string, allowObfuscate?: boolean) {
return new UI(Type.GRID, name, namespace, undefined, allowObfuscate).setProperties(properties || {}) return new UI(Type.GRID, name, namespace, undefined, allowObfuscate).setProperties(properties || {})
} }

View file

@ -1,6 +1,7 @@
import { Value } from "../value.js" import { Value } from "../value.js"
import { Sprite } from "./Sprite.js"
export interface Image { export interface Image extends Sprite {
fill?: Value<boolean> fill?: Value<boolean>
texture_path?: Value<string> texture_path?: Value<string>
texture?: Value<string> texture?: Value<string>