@nodecraft/rendermite 1.11.0 → 1.11.2
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/README.md +48 -16
- package/assets/builtin/mobheads/items/frostbite.json +6 -0
- package/assets/builtin/mobheads/models/item/frostbite.json +6 -0
- package/assets/mod-models/README.md +24 -0
- package/dist/atlas/registry.d.ts +5 -6
- package/dist/atlas/registry.js +1 -2
- package/dist/atlas/sources.d.ts +2 -2
- package/dist/atlas/sources.js +1 -2
- package/dist/{atlas-pack-BUadroKy.d.ts → atlas-pack-Dxl3kwT2.d.ts} +1 -1
- package/dist/{biomes-BGOF6gRM.js → biomes-DTmzQfnL.js} +1 -1
- package/dist/{biomes-CnnhDCnk.d.ts → biomes-_HZ93QNR.d.ts} +1 -1
- package/dist/{blend-mJAeQB3C.d.ts → blend-DnogOnaU.d.ts} +1 -1
- package/dist/{block-behaviour-D1qC9_cc.d.ts → block-behaviour-D6NwU9bV.d.ts} +7 -7
- package/dist/{block-entities-C807EY2I.js → block-entities-Dp3rMxWq.js} +1 -1
- package/dist/{block-overrides-BhuJIxKC.js → block-overrides-DMzzzeq_.js} +1 -1
- package/dist/blocks/atlas-pack.d.ts +1 -1
- package/dist/blocks/atlas-pack.js +1 -2
- package/dist/blocks/biomes.d.ts +1 -1
- package/dist/blocks/biomes.js +1 -2
- package/dist/blocks/block-behaviour.d.ts +1 -1
- package/dist/blocks/block-behaviour.js +1 -2
- package/dist/blocks/block-entities.d.ts +12 -13
- package/dist/blocks/block-entities.js +1 -2
- package/dist/blocks/block-overrides.d.ts +7 -8
- package/dist/blocks/block-overrides.js +1 -2
- package/dist/blocks/blockstate-eval.d.ts +1 -1
- package/dist/blocks/blockstate-eval.js +1 -2
- package/dist/blocks/cli.d.ts +2 -3
- package/dist/blocks/cli.js +1 -2
- package/dist/blocks/datapack.d.ts +1 -1
- package/dist/blocks/datapack.js +1 -2
- package/dist/blocks/ender-storage.d.ts +4 -5
- package/dist/blocks/ender-storage.js +1 -2
- package/dist/blocks/entities.d.ts +8 -9
- package/dist/blocks/entities.js +1 -2
- package/dist/blocks/entity-geo.d.ts +4 -5
- package/dist/blocks/entity-geo.js +1 -2
- package/dist/blocks/entity-models.d.ts +8 -9
- package/dist/blocks/entity-models.js +1 -2
- package/dist/blocks/entity-sizes.d.ts +4 -4
- package/dist/blocks/entity-sizes.js +1 -2
- package/dist/blocks/export.d.ts +1 -1
- package/dist/blocks/export.js +1 -2
- package/dist/blocks/game-rules.js +1 -2
- package/dist/blocks/geo-blocks.d.ts +5 -6
- package/dist/blocks/geo-blocks.js +1 -2
- package/dist/blocks/item-sprites.d.ts +9 -10
- package/dist/blocks/item-sprites.js +1 -2
- package/dist/blocks/light-bytecode.d.ts +1 -1
- package/dist/blocks/light-bytecode.js +1 -2
- package/dist/blocks/light-eval.d.ts +1 -1
- package/dist/blocks/light-eval.js +1 -2
- package/dist/blocks/light.d.ts +8 -9
- package/dist/blocks/light.js +1 -2
- package/dist/blocks/names.d.ts +1 -1
- package/dist/blocks/names.js +1 -2
- package/dist/blocks/obj-mesh.d.ts +1 -1
- package/dist/blocks/obj-mesh.js +1 -2
- package/dist/blocks/pack-format.d.ts +1 -1
- package/dist/blocks/pack-format.js +1 -2
- package/dist/blocks/sprite-sheet.d.ts +11 -12
- package/dist/blocks/sprite-sheet.js +1 -2
- package/dist/blocks/states.js +1 -2
- package/dist/blocks/tints.d.ts +1 -1
- package/dist/blocks/tints.js +1 -2
- package/dist/{blockstate-DVb8Mhxc.js → blockstate-D5FgI-Qv.js} +3 -4
- package/dist/{blockstate-eval-BzznRcVY.d.ts → blockstate-eval-C-ZSx78w.d.ts} +3 -2
- package/dist/{blockstate-eval-CV_LwUwj.js → blockstate-eval-Cu-9TWH0.js} +3 -4
- package/dist/builtin.d.ts +5 -6
- package/dist/builtin.js +1 -2
- package/dist/{classfile-BJSs3JH0.js → classfile-YGjbyMPk.js} +3 -4
- package/dist/{cli-BsEk_aEv.js → cli-CeEAmdX9.js} +5 -5
- package/dist/cli.js +8 -8
- package/dist/{datapack-D6eH46ay.js → datapack-BZpO7nv-.js} +8 -9
- package/dist/{datapack-CmEg0Vko.d.ts → datapack-DhBAuxw5.d.ts} +1 -1
- package/dist/{definition-ColsvWrH.js → definition-Dab22cHd.js} +1 -1
- package/dist/{descriptor-Dz2cR-BH.js → descriptor-CJLtRmBc.js} +3 -3
- package/dist/{discovery-DWe_kX8W.d.ts → discovery-2Qk3x25z.d.ts} +1 -1
- package/dist/{discovery-CD0QqxSF.js → discovery-CMHJfdHQ.js} +13 -15
- package/dist/dynamic/generators.d.ts +1 -1
- package/dist/dynamic/generators.js +1 -2
- package/dist/{encode-TzYXOEId.js → encode-BIAWeZy2.js} +2 -3
- package/dist/{encode-BNEYHHR0.d.ts → encode-DZSVif8a.d.ts} +1 -1
- package/dist/{ender-storage-CKDiYgYc.js → ender-storage-COyXL-I4.js} +1 -1
- package/dist/entities/classfile.js +1 -2
- package/dist/entities/geo-model.d.ts +3 -4
- package/dist/entities/geo-model.js +1 -2
- package/dist/entities/inherit.d.ts +4 -5
- package/dist/entities/inherit.js +1 -2
- package/dist/entities/jar-classes.js +1 -2
- package/dist/entities/link.d.ts +9 -10
- package/dist/entities/link.js +1 -2
- package/dist/entities/mappings.js +1 -2
- package/dist/entities/merge.d.ts +7 -8
- package/dist/entities/merge.js +1 -2
- package/dist/entities/model-bytecode.d.ts +5 -6
- package/dist/entities/model-bytecode.js +1 -2
- package/dist/entities/model-code.js +1 -2
- package/dist/{entities-rQ4TZjEo.js → entities-4UMp3qXG.js} +4 -5
- package/dist/{entity-fallback-BEzCbJq0.js → entity-fallback-ZfurtmEQ.js} +9 -11
- package/dist/{entity-geo-DcrcN8TE.js → entity-geo-vJTSO0bB.js} +2 -2
- package/dist/{entity-models-D6AMLAy6.js → entity-models-CleLnlV4.js} +9 -10
- package/dist/{entity-sizes-Dmr4w0vu.js → entity-sizes-CC6-7DBz.js} +1 -1
- package/dist/{entity-textures-DG6NUNyp.js → entity-textures-BS5dI5dz.js} +15 -19
- package/dist/{export-CnKiSTiu.d.ts → export-BL_3VVZI.d.ts} +1 -1
- package/dist/{export-BdHar0ND.js → export-BPH-b4LT.js} +25 -27
- package/dist/{face-uWXECGNr.d.ts → face-BOsq7v9f.d.ts} +4 -4
- package/dist/{face-D6SfTISC.js → face-DtbBpvbY.js} +2 -2
- package/dist/{game-rules-Dehe210A.js → game-rules-DrYU_6hd.js} +14 -16
- package/dist/{generators-D6giKoab.js → generators-7b5w6s0L.js} +1 -1
- package/dist/{generators-hu_vk10m.d.ts → generators-P1goUyvI.d.ts} +1 -1
- package/dist/{geo-BOYYFFQn.js → geo-CZHkm59F.js} +10 -12
- package/dist/{geo-DsWwuC5o.d.ts → geo-Ci_PGkFI.d.ts} +5 -5
- package/dist/{geo-blocks-BQqFfAQT.js → geo-blocks-BYSBc8uq.js} +1 -1
- package/dist/{geometry-bUDBhncX.js → geometry-BGTvfmbS.js} +1 -2
- package/dist/{geometry--UzHu1Vh.d.ts → geometry-Btiz31vH.d.ts} +1 -1
- package/dist/index.d.ts +22 -22
- package/dist/index.js +19 -19
- package/dist/{inherit-DJ45bOB_.js → inherit-LSSIV8N2.js} +2 -2
- package/dist/{item-sprites-CwiEBEAJ.js → item-sprites-Cip695Kk.js} +3 -3
- package/dist/{item-styles-BAeneY1R.js → item-styles-D-7N6j1i.js} +1 -1
- package/dist/items/blockstate.d.ts +5 -6
- package/dist/items/blockstate.js +1 -2
- package/dist/items/definition.js +1 -2
- package/dist/items/discovery.d.ts +1 -1
- package/dist/items/discovery.js +1 -2
- package/dist/{jar-DvofBm71.js → jar-Df0Xhw7X.js} +1 -1
- package/dist/{jar-4Jg7ufWK.d.ts → jar-IHoEeMdV.d.ts} +1 -1
- package/dist/{jar-classes-0wqWbTax.js → jar-classes-C5P3F18e.js} +1 -1
- package/dist/{legacy-reshape-CcdstKyI.js → legacy-reshape-ClEZFEVT.js} +6 -8
- package/dist/{light-Culwie4W.js → light-Bj0iD-ok.js} +20 -23
- package/dist/{light-bytecode-Bx3XLTRI.js → light-bytecode-B4_sP6ri.js} +6 -5
- package/dist/{light-eval-Cl2L3RBz.d.ts → light-eval-DJA58Kdg.d.ts} +2 -2
- package/dist/{lighting-3FGRC3Af.d.ts → lighting-DYkS-NlV.d.ts} +2 -2
- package/dist/{lighting--5myudVu.js → lighting-f_oZTiOx.js} +2 -2
- package/dist/{link-IDjVJ2Ij.js → link-CxzBRqeB.js} +4 -5
- package/dist/{loader-qOH0Jynq.js → loader-Ckhy0t8m.js} +3 -4
- package/dist/{loader-C4gsX_wO.d.ts → loader-CrPTL0zk.d.ts} +1 -1
- package/dist/{loader-BYyPIs9f.d.ts → loader-mGAKSRp6.d.ts} +2 -2
- package/dist/{manager-D6zXmFrO.js → manager-B1VPl4UQ.js} +4 -5
- package/dist/{manager-Ct0dEOMg.d.ts → manager-Ey26G_3e.d.ts} +1 -1
- package/dist/{model-bytecode-CXYAZ5dX.js → model-bytecode-Cp4LGfjI.js} +5 -6
- package/dist/{model-code-C5Au_FKU.js → model-code-B11iaTy1.js} +1 -1
- package/dist/models/loader.d.ts +1 -1
- package/dist/models/loader.js +1 -2
- package/dist/models/types.d.ts +1 -1
- package/dist/{models-BsYA-NZg.js → models-CvFehP26.js} +1 -1
- package/dist/mods/models.d.ts +3 -4
- package/dist/mods/models.js +1 -2
- package/dist/mods/prepare.d.ts +1 -1
- package/dist/mods/prepare.js +1 -2
- package/dist/mods/synthesize.d.ts +5 -6
- package/dist/mods/synthesize.js +1 -2
- package/dist/mods/tints.d.ts +7 -8
- package/dist/mods/tints.js +1 -2
- package/dist/{names-D1abAVIB.d.ts → names-D30ZIXkK.d.ts} +1 -1
- package/dist/{obj-NxBaySXt.js → obj-BWsU8pYz.js} +16 -18
- package/dist/{obj-mesh-BBSLG2Fv.js → obj-mesh-WShUgD4g.js} +1 -1
- package/dist/{obj-mesh-CzL0lOlJ.d.ts → obj-mesh-yN3ttPYf.d.ts} +2 -2
- package/dist/output/encode.d.ts +1 -1
- package/dist/output/encode.js +1 -2
- package/dist/output/item-styles.d.ts +3 -4
- package/dist/output/item-styles.js +1 -2
- package/dist/output/minify.js +1 -2
- package/dist/output/stylesheet.d.ts +1 -1
- package/dist/output/stylesheet.js +1 -2
- package/dist/pack.d.ts +6 -6
- package/dist/pack.js +1 -1
- package/dist/{pipeline-CCfkRth7.js → pipeline-DV4hIRMp.js} +12 -12
- package/dist/{pipeline-DuPF3sap.d.ts → pipeline-DmLQ49DB.d.ts} +4 -4
- package/dist/{pool-CKGp1qup.js → pool-Co7kPWwN.js} +1 -1
- package/dist/{prepare-DkJkZXuQ.js → prepare-BC5PYUmn.js} +7 -8
- package/dist/{prepare-Ce5SpR7Y.d.ts → prepare-BpwBH_m9.d.ts} +1 -1
- package/dist/{prepare-BPzsZI_S.d.ts → prepare-CZu44oTS.d.ts} +1 -1
- package/dist/{prepare-sj36BP90.js → prepare-DJnJQYtn.js} +9 -10
- package/dist/{rasterizer-M9Y7mn-W.js → rasterizer-B3tOyG4B.js} +5 -6
- package/dist/{rasterizer-DjnurUgD.d.ts → rasterizer-UBaTPhH4.d.ts} +1 -1
- package/dist/{registry-DafxsAhG.js → registry-CNFi94eo.js} +5 -7
- package/dist/render/blend.d.ts +1 -1
- package/dist/render/blend.js +1 -2
- package/dist/render/compose.d.ts +4 -5
- package/dist/render/compose.js +1 -2
- package/dist/render/entity-fallback.d.ts +12 -13
- package/dist/render/entity-fallback.js +1 -2
- package/dist/render/face.d.ts +1 -1
- package/dist/render/face.js +1 -2
- package/dist/render/fluid-bucket.d.ts +4 -5
- package/dist/render/fluid-bucket.js +1 -2
- package/dist/render/geo.d.ts +1 -1
- package/dist/render/geo.js +1 -2
- package/dist/render/geometry.d.ts +1 -1
- package/dist/render/geometry.js +1 -2
- package/dist/render/legacy-tints.d.ts +4 -5
- package/dist/render/legacy-tints.js +1 -2
- package/dist/render/lighting.d.ts +1 -1
- package/dist/render/lighting.js +1 -2
- package/dist/render/obj.d.ts +10 -10
- package/dist/render/obj.js +1 -2
- package/dist/render/pipeline.d.ts +1 -1
- package/dist/render/pipeline.js +1 -2
- package/dist/render/rasterizer.d.ts +1 -1
- package/dist/render/rasterizer.js +1 -2
- package/dist/render/renderer.d.ts +1 -1
- package/dist/render/renderer.js +1 -2
- package/dist/render/tints.d.ts +1 -1
- package/dist/render/tints.js +1 -2
- package/dist/render/vector.js +1 -2
- package/dist/{renderer-QgROYvPv.d.ts → renderer-DZSDiXL0.d.ts} +6 -6
- package/dist/resources/cache.d.ts +2 -3
- package/dist/resources/cache.js +1 -2
- package/dist/resources/cached.d.ts +3 -4
- package/dist/resources/cached.js +1 -2
- package/dist/resources/descriptor.d.ts +1 -1
- package/dist/resources/descriptor.js +1 -2
- package/dist/resources/entity-textures.d.ts +19 -20
- package/dist/resources/entity-textures.js +1 -2
- package/dist/resources/jar.d.ts +1 -1
- package/dist/resources/jar.js +1 -2
- package/dist/resources/locator.js +1 -2
- package/dist/resources/manager.d.ts +1 -1
- package/dist/resources/manager.js +1 -2
- package/dist/resources/read-ahead.d.ts +2 -3
- package/dist/resources/read-ahead.js +1 -2
- package/dist/resources/synthetic.d.ts +1 -1
- package/dist/resources/synthetic.js +1 -2
- package/dist/resources/zip-reader.d.ts +2 -3
- package/dist/resources/zip-reader.js +1 -2
- package/dist/{run-Bf5TLTJw.js → run-5Rc8hTHT.js} +15 -11
- package/dist/{run-CxB1qabg.d.ts → run-CfvR5OAR.d.ts} +3 -3
- package/dist/run.d.ts +1 -1
- package/dist/run.js +2 -2
- package/dist/{sources-DYY5Qu-t.js → sources-BsEa9YPc.js} +1 -1
- package/dist/{sources-sFtealLJ.d.ts → sources-ByuTQR_o.d.ts} +7 -3
- package/dist/{sprite-sheet-BWsLl0Vd.js → sprite-sheet-BQsUioOJ.js} +6 -7
- package/dist/{stylesheet-C61VrCAV.js → stylesheet-Cin7eCyU.js} +6 -7
- package/dist/{stylesheet-DxHkk4qA.d.ts → stylesheet-XJ-kH6kk.d.ts} +1 -1
- package/dist/{synthesize-jTjVjPAt.js → synthesize-DNvUwWhZ.js} +3 -4
- package/dist/{synthetic-CWtFtAkR.d.ts → synthetic-C8_0G5iP.d.ts} +1 -1
- package/dist/{synthetic-rc9BPT4P.js → synthetic-y9Mr-wB2.js} +0 -0
- package/dist/textures/loader.d.ts +1 -1
- package/dist/textures/loader.js +1 -2
- package/dist/textures/overlay.d.ts +3 -4
- package/dist/textures/overlay.js +1 -2
- package/dist/{tints-B0a1K11c.d.ts → tints-BNS9JGf7.d.ts} +2 -2
- package/dist/{tints-DwFmEkf3.d.ts → tints-CvHlfvDC.d.ts} +2 -2
- package/dist/{tints-B3WQcPtx.js → tints-Cw5okshA.js} +1 -1
- package/dist/{tints-CZeyKzMv.js → tints-DhSA5SCg.js} +3 -3
- package/dist/{types-qlp3I8_-.d.ts → types-BQQzfHEY.d.ts} +4 -0
- package/dist/versions/download.d.ts +2 -3
- package/dist/versions/download.js +1 -2
- package/dist/versions/legacy-reshape.d.ts +3 -4
- package/dist/versions/legacy-reshape.js +1 -2
- package/dist/versions/prepare.d.ts +1 -1
- package/dist/versions/prepare.js +1 -2
- package/dist/workers/pool.d.ts +6 -7
- package/dist/workers/pool.js +1 -2
- package/dist/workers/render-worker.d.ts +6 -7
- package/dist/workers/render-worker.js +2 -2
- package/package.json +9 -9
|
@@ -2,7 +2,7 @@ import { n as ResourceLocator } from "./locator-COMEtEn9.js";
|
|
|
2
2
|
//#region src/render/tints.ts
|
|
3
3
|
/**
|
|
4
4
|
* Tint definition → color resolution for static icons, mirroring upstream's
|
|
5
|
-
* Tinter classes (docs/
|
|
5
|
+
* Tinter classes (docs/renderchest-spec.md §8).
|
|
6
6
|
*/
|
|
7
7
|
var InvalidTinterDefinitionError = class extends Error {};
|
|
8
8
|
/** The 16 dye colors upstream's renderchest:random picks from. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as modTintPackPath } from "./builtin-WkWjATeh.js";
|
|
2
2
|
import { n as ResourceLocator } from "./locator-COMEtEn9.js";
|
|
3
|
-
import { n as MapResourceManager } from "./synthetic-
|
|
4
|
-
import { t as FolderResourceManager } from "./manager-
|
|
5
|
-
import { a as defaultProperties, o as evaluateItemModel } from "./definition-
|
|
3
|
+
import { n as MapResourceManager } from "./synthetic-y9Mr-wB2.js";
|
|
4
|
+
import { t as FolderResourceManager } from "./manager-B1VPl4UQ.js";
|
|
5
|
+
import { a as defaultProperties, o as evaluateItemModel } from "./definition-Dab22cHd.js";
|
|
6
6
|
//#region src/mods/tints.ts
|
|
7
7
|
/**
|
|
8
8
|
* Tints for mod items whose colors live in client code rather than asset JSON.
|
|
@@ -32,6 +32,10 @@ interface ElementRotationJson {
|
|
|
32
32
|
/** -45 to 45 in 22.5 steps in vanilla; mods ship arbitrary angles. */
|
|
33
33
|
angle: number;
|
|
34
34
|
rescale?: boolean;
|
|
35
|
+
/** Per-axis form, used instead of `axis`/`angle` by newer versions. */
|
|
36
|
+
x?: number;
|
|
37
|
+
y?: number;
|
|
38
|
+
z?: number;
|
|
35
39
|
}
|
|
36
40
|
interface ModelElementJson {
|
|
37
41
|
/** Corner coordinates in 0–16 block space (mods exceed the range). */
|
|
@@ -4,6 +4,5 @@
|
|
|
4
4
|
* (stable + snapshot channels) and downloads from Mojang, caching by version.
|
|
5
5
|
* Shared by the CLI's --version flag and the test fixtures.
|
|
6
6
|
*/
|
|
7
|
-
declare function downloadClientJar(version: string, cacheDir: string): Promise<string>;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { downloadClientJar };
|
|
7
|
+
export declare function downloadClientJar(version: string, cacheDir: string): Promise<string>;
|
|
8
|
+
//#endregion
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { downloadClientJar };
|
|
1
|
+
export { t as downloadClientJar } from "../download-1wAfrGKx.js";
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { a as ResourceManager } from "../manager-
|
|
1
|
+
import { a as ResourceManager } from "../manager-Ey26G_3e.js";
|
|
2
2
|
//#region src/versions/legacy-reshape.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Build an in-memory texture layer for a pre-1.6 jar. `sheets` selects the
|
|
5
5
|
* ≤1.4.7 stitched-sheet path; otherwise the 1.5.x individual-file path.
|
|
6
6
|
*/
|
|
7
|
-
declare function reshapeLegacyAssets(jarPath: string, referenceJar: string, sheets: boolean): Promise<ResourceManager>;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { reshapeLegacyAssets };
|
|
7
|
+
export declare function reshapeLegacyAssets(jarPath: string, referenceJar: string, sheets: boolean): Promise<ResourceManager>;
|
|
8
|
+
//#endregion
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { reshapeLegacyAssets };
|
|
1
|
+
export { t as reshapeLegacyAssets } from "../legacy-reshape-ClEZFEVT.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as compareVersions, i as PrepareOptions, n as EraName, o as eraForVersion, r as GEOMETRY_DONOR_VERSIONS, s as prepareVersionResources, t as Era } from "../prepare-
|
|
1
|
+
import { a as compareVersions, i as PrepareOptions, n as EraName, o as eraForVersion, r as GEOMETRY_DONOR_VERSIONS, s as prepareVersionResources, t as Era } from "../prepare-BpwBH_m9.js";
|
|
2
2
|
export { Era, EraName, GEOMETRY_DONOR_VERSIONS, PrepareOptions, compareVersions, eraForVersion, prepareVersionResources };
|
package/dist/versions/prepare.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Era, GEOMETRY_DONOR_VERSIONS, compareVersions, eraForVersion, prepareVersionResources };
|
|
1
|
+
export { t as Era, n as GEOMETRY_DONOR_VERSIONS, r as compareVersions, i as eraForVersion, a as prepareVersionResources } from "../prepare-BC5PYUmn.js";
|
package/dist/workers/pool.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region src/workers/pool.d.ts
|
|
2
2
|
/**
|
|
3
3
|
* Worker-thread pool for parallel item rendering. Design goals born from the
|
|
4
|
-
* PHP tool's failure modes (docs/
|
|
4
|
+
* PHP tool's failure modes (docs/mod-coverage.md): errors
|
|
5
5
|
* cross the worker boundary as structured data, a dead worker's in-flight items
|
|
6
6
|
* are reported rather than orphaned, and results stream back so output lands
|
|
7
7
|
* incrementally.
|
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
* native encoding overlaps the next item's rasterization; and the queue drains
|
|
12
12
|
* through a cursor, because shift() on a 400k-item array is quadratic.
|
|
13
13
|
*/
|
|
14
|
-
interface WorkerTask {
|
|
14
|
+
export interface WorkerTask {
|
|
15
15
|
id: string;
|
|
16
16
|
}
|
|
17
|
-
interface WorkerResult<T> {
|
|
17
|
+
export interface WorkerResult<T> {
|
|
18
18
|
id: string;
|
|
19
19
|
result?: T;
|
|
20
20
|
error?: string;
|
|
21
21
|
}
|
|
22
|
-
interface PoolOptions {
|
|
22
|
+
export interface PoolOptions {
|
|
23
23
|
workerUrl: URL;
|
|
24
24
|
workerData: unknown;
|
|
25
25
|
/** Worker threads to spawn. */
|
|
@@ -27,7 +27,7 @@ interface PoolOptions {
|
|
|
27
27
|
/** Tasks held by each worker at once (default 2). */
|
|
28
28
|
inFlight?: number;
|
|
29
29
|
}
|
|
30
|
-
declare class WorkerRenderPool<T> {
|
|
30
|
+
export declare class WorkerRenderPool<T> {
|
|
31
31
|
private readonly options;
|
|
32
32
|
private readonly inFlightLimit;
|
|
33
33
|
private readonly workers;
|
|
@@ -50,5 +50,4 @@ declare class WorkerRenderPool<T> {
|
|
|
50
50
|
run(tasks: WorkerTask[], onResult: (result: WorkerResult<T>) => void): Promise<void>;
|
|
51
51
|
close(): Promise<void>;
|
|
52
52
|
}
|
|
53
|
-
//#endregion
|
|
54
|
-
export { PoolOptions, WorkerRenderPool, WorkerResult, WorkerTask };
|
|
53
|
+
//#endregion
|
package/dist/workers/pool.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { WorkerRenderPool };
|
|
1
|
+
export { t as WorkerRenderPool } from "../pool-Co7kPWwN.js";
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { s as ResourceDescriptor } from "../manager-
|
|
2
|
-
import { n as ItemRenderOutcome, r as PipelineSettings } from "../pipeline-
|
|
1
|
+
import { s as ResourceDescriptor } from "../manager-Ey26G_3e.js";
|
|
2
|
+
import { n as ItemRenderOutcome, r as PipelineSettings } from "../pipeline-DmLQ49DB.js";
|
|
3
3
|
//#region src/workers/render-worker.d.ts
|
|
4
|
-
interface RenderWorkerData {
|
|
4
|
+
export interface RenderWorkerData {
|
|
5
5
|
resources: ResourceDescriptor;
|
|
6
6
|
settings: PipelineSettings;
|
|
7
7
|
/** libvips threads per worker; the pool already saturates the CPU. */
|
|
8
8
|
sharpConcurrency: number;
|
|
9
9
|
}
|
|
10
|
-
interface RenderWorkerTask {
|
|
10
|
+
export interface RenderWorkerTask {
|
|
11
11
|
id: string;
|
|
12
12
|
}
|
|
13
|
-
type RenderWorkerOutcome = ItemRenderOutcome;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { RenderWorkerData, RenderWorkerOutcome, RenderWorkerTask };
|
|
13
|
+
export type RenderWorkerOutcome = ItemRenderOutcome;
|
|
14
|
+
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as ItemPipeline } from "../pipeline-
|
|
2
|
-
import { n as restoreResources } from "../descriptor-
|
|
1
|
+
import { t as ItemPipeline } from "../pipeline-DV4hIRMp.js";
|
|
2
|
+
import { n as restoreResources } from "../descriptor-CJLtRmBc.js";
|
|
3
3
|
import sharp from "sharp";
|
|
4
4
|
import { parentPort, workerData } from "node:worker_threads";
|
|
5
5
|
//#region src/workers/render-worker.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nodecraft/rendermite",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.2",
|
|
4
4
|
"description": "Minecraft item icon renderer: renders inventory-identical item icons from vanilla and modded assets across game versions, outputting optimized PNG/WebP/AVIF plus CSS and a JSON item library.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -58,23 +58,23 @@
|
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"lightningcss": "1.33.0",
|
|
61
|
-
"sharp": "0.35.
|
|
61
|
+
"sharp": "0.35.5",
|
|
62
62
|
"yauzl": "3.4.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@nodecraft/eslint-config": "
|
|
65
|
+
"@nodecraft/eslint-config": "52.2.0",
|
|
66
66
|
"@semantic-release/changelog": "7.0.0",
|
|
67
|
-
"@types/node": "24.
|
|
67
|
+
"@types/node": "24.19.2",
|
|
68
68
|
"@types/yauzl": "3.4.0",
|
|
69
69
|
"@types/yazl": "3.3.1",
|
|
70
|
-
"eslint": "10.
|
|
70
|
+
"eslint": "10.12.0",
|
|
71
71
|
"rimraf": "6.1.3",
|
|
72
|
-
"rolldown": "1.2.
|
|
72
|
+
"rolldown": "1.2.14",
|
|
73
73
|
"semantic-release": "25.0.9",
|
|
74
|
-
"tsdown": "0.
|
|
74
|
+
"tsdown": "0.23.1",
|
|
75
75
|
"typescript": "6.0.3",
|
|
76
|
-
"typescript-eslint": "8.
|
|
77
|
-
"vitest": "
|
|
76
|
+
"typescript-eslint": "8.71.2",
|
|
77
|
+
"vitest": "5.0.5",
|
|
78
78
|
"yazl": "3.3.1"
|
|
79
79
|
}
|
|
80
80
|
}
|