@ignifx/ui 0.11.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -11
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/skills/ui/SKILL.md +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1709,6 +1709,8 @@ export declare class HudText extends TextComponent implements ComponentHooks {
|
|
|
1709
1709
|
#private;
|
|
1710
1710
|
/** The registration id the serializer writes into scene files. */
|
|
1711
1711
|
static typeId: string;
|
|
1712
|
+
/** What the component does, in one line, for an inspector. */
|
|
1713
|
+
static description: string;
|
|
1712
1714
|
/** One HUD label per entity; a second belongs on a second entity. */
|
|
1713
1715
|
static allowMultiple: boolean;
|
|
1714
1716
|
/** The declarative fields (ADR-0004). */
|
|
@@ -1801,6 +1803,8 @@ export declare class WorldText extends TextComponent implements ComponentHooks {
|
|
|
1801
1803
|
#private;
|
|
1802
1804
|
/** The registration id the serializer writes into scene files. */
|
|
1803
1805
|
static typeId: string;
|
|
1806
|
+
/** What the component does, in one line, for an inspector. */
|
|
1807
|
+
static description: string;
|
|
1804
1808
|
/** One sign per entity. */
|
|
1805
1809
|
static allowMultiple: boolean;
|
|
1806
1810
|
/** The declarative fields (ADR-0004). */
|
|
@@ -1873,6 +1877,8 @@ export declare class WorldText2D extends TextComponent implements ComponentHooks
|
|
|
1873
1877
|
#private;
|
|
1874
1878
|
/** The registration id the serializer writes into scene files. */
|
|
1875
1879
|
static typeId: string;
|
|
1880
|
+
/** What the component does, in one line, for an inspector. */
|
|
1881
|
+
static description: string;
|
|
1876
1882
|
/** One floating label per entity. */
|
|
1877
1883
|
static allowMultiple: boolean;
|
|
1878
1884
|
/** The declarative fields (ADR-0004). */
|
|
@@ -3194,6 +3200,8 @@ export declare class WorldAnchor extends Component implements ComponentHooks {
|
|
|
3194
3200
|
#private;
|
|
3195
3201
|
/** The registration id the serializer writes into scene files. */
|
|
3196
3202
|
static typeId: string;
|
|
3203
|
+
/** What the component does, in one line, for an inspector. */
|
|
3204
|
+
static description: string;
|
|
3197
3205
|
/** One anchored element per entity. */
|
|
3198
3206
|
static allowMultiple: boolean;
|
|
3199
3207
|
/** The declarative fields (ADR-0004). */
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/dom/layer.ts","../src/dom/dom-target.ts","../src/settings.ts","../src/dom/scaling.ts","../src/dom/host.ts","../src/i18n/locale-file.ts","../src/i18n/message.ts","../src/i18n/i18n-service.ts","../src/augmentation.ts","../src/dom/focus.ts","../src/dom/styles.ts","../src/errors.ts","../src/extension.ts","../src/i18n/loader.ts","../src/lite/text.ts","../src/schemas.ts","../src/text/hud-layout.ts","../src/text/text-component.ts","../src/text/text-runtime.ts","../src/text/hud-text.ts","../src/text/world-text.ts","../src/text/world-text-2d.ts","../src/version.ts","../src/widgets/dialog.ts","../src/widgets/loading-screen.ts","../src/widgets/menu-row.ts","../src/widgets/menu.ts","../src/widgets/menu-stack.ts","../src/widgets/toast.ts","../src/widgets/virtual-button.ts","../src/widgets/virtual-device.ts","../src/widgets/virtual-joystick.ts","../src/world/anchor-math.ts","../src/world/ui-system.ts","../src/world/world-anchor.ts"],"mappings":";;;;;;;;;;;;;;;;;;UAkBiB;;WAEN;;WAEA;;;;;;;;;;;;;;qBAeE;;;WAEF;;;;;;;;;;;EAkBT,YAAY,cAAc,SAAS,uBAAuB,gBAAgB;;;;;;;;;;;;;;EAuB1E,OAAO,SAAS;;;;;;MAUZ,WAAW;;;;;;MASX;MAKA,OAAO;;;;;;;MAcP;MAKA,QAAQ;;;;;;;EAcZ;;;;;;;;;;;;;;;;;;;UCzHe;;WAEN,QAAQ;;WAER,UAAU;;WAEV,QAAQ;;;;;;;;;;;;;;qBCRN;;;;;;;qBAQA;;;;;;;;;;;;;;;;;KAkBD,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../src/i18n/locale-file.ts","../src/i18n/message.ts","../src/i18n/i18n-service.ts","../src/augmentation.ts","../src/dom/focus.ts","../src/dom/styles.ts","../src/errors.ts","../src/extension.ts","../src/i18n/loader.ts","../src/lite/text.ts","../src/schemas.ts","../src/text/hud-layout.ts","../src/text/text-component.ts","../src/text/text-runtime.ts","../src/text/hud-text.ts","../src/text/world-text.ts","../src/text/world-text-2d.ts","../src/version.ts","../src/widgets/dialog.ts","../src/widgets/loading-screen.ts","../src/widgets/menu-row.ts","../src/widgets/menu.ts","../src/widgets/menu-stack.ts","../src/widgets/toast.ts","../src/widgets/virtual-button.ts","../src/widgets/virtual-device.ts","../src/widgets/virtual-joystick.ts","../src/world/anchor-math.ts","../src/world/ui-system.ts","../src/world/world-anchor.ts"],"mappings":";;;;;;;;;;;;;;;;;;UAkBiB;;WAEN;;WAEA;;;;;;;;;;;;;;qBAeE;;;WAEF;;;;;;;;;;;EAkBT,YAAY,cAAc,SAAS,uBAAuB,gBAAgB;;;;;;;;;;;;;;EAuB1E,OAAO,SAAS;;;;;;MAUZ,WAAW;;;;;;MASX;MAKA,OAAO;;;;;;;MAcP;MAKA,QAAQ;;;;;;;EAcZ;;;;;;;;;;;;;;;;;;;UCzHe;;WAEN,QAAQ;;WAER,UAAU;;WAEV,QAAQ;;;;;;;;;;;;;;qBCRN;;;;;;;qBAQA;;;;;;;;;;;;;;;;;KAkBD,wBAAwB;;;;;;;;;;;;;;UAenB;;WAEN,SAAS;;;;;WAKT;;;;;WAKA;;WAEA;;;;;;;;;qBAUE;;;;;;;;wBASG,qBAAqB;;;;;;;;wBAWrB,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;UCxEnB;;WAEN;;WAEA;;WAEA;;WAEA;;;;;;;UAQM;;WAEN,MAAM;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA;;;;;;;;;;;;;;;;;;;wBA6CK,gBACd,MAAM,eACN,SAAS,kBACT,+BACC;;;;;;;;;;;;;UAyDc;;WAEN;;WA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A,kBACA,kBACA,mBACA,oBACA,SAAS"}
|
package/dist/index.js
CHANGED
|
@@ -1244,13 +1244,13 @@ function asObject(value) {
|
|
|
1244
1244
|
*/
|
|
1245
1245
|
function readTable(value) {
|
|
1246
1246
|
const source = asObject(value);
|
|
1247
|
-
const table =
|
|
1248
|
-
if (source === null) return
|
|
1247
|
+
const table = [];
|
|
1248
|
+
if (source === null) return {};
|
|
1249
1249
|
for (const key of Object.keys(source).toSorted()) {
|
|
1250
1250
|
const message = source[key];
|
|
1251
|
-
if (typeof message === "string") table[key
|
|
1251
|
+
if (typeof message === "string") table.push([key, message]);
|
|
1252
1252
|
}
|
|
1253
|
-
return table;
|
|
1253
|
+
return Object.fromEntries(table);
|
|
1254
1254
|
}
|
|
1255
1255
|
/**
|
|
1256
1256
|
* Parses and validates a translation document.
|
|
@@ -1284,8 +1284,7 @@ function parseLocaleFile(value, address) {
|
|
|
1284
1284
|
context: { file: address },
|
|
1285
1285
|
hint: "Add at least one entry to the \"locales\" object, keyed by BCP 47 tag."
|
|
1286
1286
|
});
|
|
1287
|
-
const locales =
|
|
1288
|
-
for (const tag of tags) locales[tag] = readTable(raw?.[tag]);
|
|
1287
|
+
const locales = Object.fromEntries(tags.map((tag) => [tag, readTable(raw?.[tag])]));
|
|
1289
1288
|
const declared = file["defaultLocale"];
|
|
1290
1289
|
const fallback = tags[0] ?? "";
|
|
1291
1290
|
return {
|
|
@@ -2583,6 +2582,8 @@ var TextComponent = class extends Component {
|
|
|
2583
2582
|
var HudText = class HudText extends TextComponent {
|
|
2584
2583
|
/** The registration id the serializer writes into scene files. */
|
|
2585
2584
|
static typeId = "ignifx/HudText";
|
|
2585
|
+
/** What the component does, in one line, for an inspector. */
|
|
2586
|
+
static description = "Pixel-space text drawn by Babylon Lite, anchored to a corner of the render target.";
|
|
2586
2587
|
/** One HUD label per entity; a second belongs on a second entity. */
|
|
2587
2588
|
static allowMultiple = false;
|
|
2588
2589
|
/** The declarative fields (ADR-0004). */
|
|
@@ -2792,6 +2793,8 @@ var TextRuntime = class {
|
|
|
2792
2793
|
var WorldText2D = class WorldText2D extends TextComponent {
|
|
2793
2794
|
/** The registration id the serializer writes into scene files. */
|
|
2794
2795
|
static typeId = "ignifx/WorldText2D";
|
|
2796
|
+
/** What the component does, in one line, for an inspector. */
|
|
2797
|
+
static description = "Pixel-space text placed at an entity's projected position: damage numbers and name tags.";
|
|
2795
2798
|
/** One floating label per entity. */
|
|
2796
2799
|
static allowMultiple = false;
|
|
2797
2800
|
/** The declarative fields (ADR-0004). */
|
|
@@ -2939,6 +2942,8 @@ function worldText2DSchema() {
|
|
|
2939
2942
|
var WorldText = class WorldText extends TextComponent {
|
|
2940
2943
|
/** The registration id the serializer writes into scene files. */
|
|
2941
2944
|
static typeId = "ignifx/WorldText";
|
|
2945
|
+
/** What the component does, in one line, for an inspector. */
|
|
2946
|
+
static description = "3D text in the render scene: signs and banners, optionally billboarded.";
|
|
2942
2947
|
/** One sign per entity. */
|
|
2943
2948
|
static allowMultiple = false;
|
|
2944
2949
|
/** The declarative fields (ADR-0004). */
|
|
@@ -3068,7 +3073,7 @@ function worldTextSchema() {
|
|
|
3068
3073
|
*
|
|
3069
3074
|
* @public
|
|
3070
3075
|
*/
|
|
3071
|
-
const VERSION = "0.
|
|
3076
|
+
const VERSION = "0.13.0";
|
|
3072
3077
|
//#endregion
|
|
3073
3078
|
//#region src/world/anchor-math.ts
|
|
3074
3079
|
/**
|
|
@@ -3174,6 +3179,8 @@ function computeAnchorPlacement(input, out) {
|
|
|
3174
3179
|
var WorldAnchor = class WorldAnchor extends Component {
|
|
3175
3180
|
/** The registration id the serializer writes into scene files. */
|
|
3176
3181
|
static typeId = "ignifx/WorldAnchor";
|
|
3182
|
+
/** What the component does, in one line, for an inspector. */
|
|
3183
|
+
static description = "Keeps a DOM element at an entity's screen position, with clamping and distance scaling.";
|
|
3177
3184
|
/** One anchored element per entity. */
|
|
3178
3185
|
static allowMultiple = false;
|
|
3179
3186
|
/** The declarative fields (ADR-0004). */
|
|
@@ -3689,10 +3696,10 @@ const ui = defineExtension((raw) => {
|
|
|
3689
3696
|
*/
|
|
3690
3697
|
function describeSchemas() {
|
|
3691
3698
|
return {
|
|
3692
|
-
"ignifx/WorldAnchor": describeSchema("ignifx/WorldAnchor", WorldAnchor.schema, { description:
|
|
3693
|
-
"ignifx/HudText": describeSchema("ignifx/HudText", HudText.schema, { description:
|
|
3694
|
-
"ignifx/WorldText": describeSchema("ignifx/WorldText", WorldText.schema, { description:
|
|
3695
|
-
"ignifx/WorldText2D": describeSchema("ignifx/WorldText2D", WorldText2D.schema, { description:
|
|
3699
|
+
"ignifx/WorldAnchor": describeSchema("ignifx/WorldAnchor", WorldAnchor.schema, { description: WorldAnchor.description }),
|
|
3700
|
+
"ignifx/HudText": describeSchema("ignifx/HudText", HudText.schema, { description: HudText.description }),
|
|
3701
|
+
"ignifx/WorldText": describeSchema("ignifx/WorldText", WorldText.schema, { description: WorldText.description }),
|
|
3702
|
+
"ignifx/WorldText2D": describeSchema("ignifx/WorldText2D", WorldText2D.schema, { description: WorldText2D.description }),
|
|
3696
3703
|
"ignifx/i18n-file": describeLocaleFileFormat()
|
|
3697
3704
|
};
|
|
3698
3705
|
}
|