From 88509283881e99f6132471c31b5a4c9978353694 Mon Sep 17 00:00:00 2001 From: Asaki Yuki Date: Mon, 23 Feb 2026 16:31:23 +0700 Subject: [PATCH] rename function grid to gird and fix image not show all properties --- package.json | 2 +- src/components/Utils.ts | 2 +- src/types/properties/element/Cycler.ts | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 8e56369..9ed6f89 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "asajs", - "version": "4.1.3", + "version": "4.1.5", "description": "Create your Minecraft JSON-UI resource packs using JavaScript", "keywords": [ "Minecraft", diff --git a/src/components/Utils.ts b/src/components/Utils.ts index 27c59de..f5bf3ef 100644 --- a/src/components/Utils.ts +++ b/src/components/Utils.ts @@ -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 || {}) } -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 || {}) } diff --git a/src/types/properties/element/Cycler.ts b/src/types/properties/element/Cycler.ts index 8c8a79e..e3f188c 100644 --- a/src/types/properties/element/Cycler.ts +++ b/src/types/properties/element/Cycler.ts @@ -1,6 +1,7 @@ import { Value } from "../value.js" +import { Sprite } from "./Sprite.js" -export interface Image { +export interface Image extends Sprite { fill?: Value texture_path?: Value texture?: Value