@carbonenginejs/runtime-resource 0.9.0 → 0.9.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/NOTICE +5 -3
- package/README.md +1 -1
- package/dist/CjsResMan.js +1 -1
- package/dist/CjsResMan.js.map +1 -1
- package/dist/CjsResource.js +2 -2
- package/dist/CjsResource.js.map +1 -1
- package/dist/CjsResourceSource.js +9 -0
- package/dist/CjsResourceSource.js.map +1 -1
- package/dist/format/CjsBlueReader.js +2 -2
- package/dist/format/CjsBlueReader.js.map +1 -1
- package/dist/format/CjsFormat.js +10 -5
- package/dist/format/CjsFormat.js.map +1 -1
- package/dist/format/CjsResourceProbe.js +2 -2
- package/dist/format/CjsResourceProbe.js.map +1 -1
- package/dist/formats/black/core/CjsBlackBinaryReader.js +4 -0
- package/dist/formats/black/core/CjsBlackBinaryReader.js.map +1 -1
- package/dist/formats/black/core/CjsBlackPropertyReaders.js +6 -1
- package/dist/formats/black/core/CjsBlackPropertyReaders.js.map +1 -1
- package/dist/formats/black/core/CjsBlackReader.js +2 -2
- package/dist/formats/black/core/CjsBlackReader.js.map +1 -1
- package/dist/formats/black/core/CjsBlackSchemaRegistry.js +4 -0
- package/dist/formats/black/core/CjsBlackSchemaRegistry.js.map +1 -1
- package/dist/formats/black/core/black-schema-v1-2026-07-23.json.js +4 -0
- package/dist/formats/black/core/black-schema-v1-2026-07-23.json.js.map +1 -0
- package/dist/formats/black/core/blackDefinitions.js +1 -1
- package/dist/formats/black/core/blackDefinitions.js.map +1 -1
- package/dist/formats/black/core/blackSchema.js +1 -1
- package/dist/formats/bnk/core/musicNodes.js +4 -0
- package/dist/formats/bnk/core/musicNodes.js.map +1 -1
- package/dist/formats/cmf/core/binary.js +5 -0
- package/dist/formats/cmf/core/binary.js.map +1 -1
- package/dist/formats/dds/CjsDdsFormat.js +7 -0
- package/dist/formats/dds/CjsDdsFormat.js.map +1 -1
- package/dist/formats/dds/core/bc7.js +7 -2
- package/dist/formats/dds/core/bc7.js.map +1 -1
- package/dist/formats/fbx/core/helpers.js +11 -1
- package/dist/formats/fbx/core/helpers.js.map +1 -1
- package/dist/formats/flac/CjsFlacFormat.js +6 -0
- package/dist/formats/flac/CjsFlacFormat.js.map +1 -1
- package/dist/formats/gif/CjsGifFormat.js +5 -0
- package/dist/formats/gif/CjsGifFormat.js.map +1 -1
- package/dist/formats/gltf/core/helpers.js +3 -3
- package/dist/formats/gltf/core/helpers.js.map +1 -1
- package/dist/formats/gr2/core/tangents.js +9 -9
- package/dist/formats/gr2/core/tangents.js.map +1 -1
- package/dist/formats/index.js +4 -4
- package/dist/formats/jpeg/CjsJpegFormat.js +6 -0
- package/dist/formats/jpeg/CjsJpegFormat.js.map +1 -1
- package/dist/formats/jpeg/core/jpeg.js +10 -0
- package/dist/formats/jpeg/core/jpeg.js.map +1 -1
- package/dist/formats/mp3/CjsMp3Format.js +5 -0
- package/dist/formats/mp3/CjsMp3Format.js.map +1 -1
- package/dist/formats/mp4/CjsMp4Format.js +6 -0
- package/dist/formats/mp4/CjsMp4Format.js.map +1 -1
- package/dist/formats/obj/core/helpers.js +2 -2
- package/dist/formats/obj/core/helpers.js.map +1 -1
- package/dist/formats/ogg/CjsOggFormat.js +6 -0
- package/dist/formats/ogg/CjsOggFormat.js.map +1 -1
- package/dist/formats/ogg/core/vorbis.js +5 -0
- package/dist/formats/ogg/core/vorbis.js.map +1 -1
- package/dist/formats/png/CjsPngFormat.js +6 -0
- package/dist/formats/png/CjsPngFormat.js.map +1 -1
- package/dist/formats/red/CjsRedFormat.js +1 -1
- package/dist/formats/red/CjsRedFormat.js.map +1 -1
- package/dist/formats/red/core/blackDefinitions.js +1 -1
- package/dist/formats/stl/core/stl.js +7 -2
- package/dist/formats/stl/core/stl.js.map +1 -1
- package/dist/formats/tga/CjsTgaFormat.js +5 -0
- package/dist/formats/tga/CjsTgaFormat.js.map +1 -1
- package/dist/formats/wav/CjsWavFormat.js +6 -0
- package/dist/formats/wav/CjsWavFormat.js.map +1 -1
- package/dist/formats/webm/CjsWebmFormat.js +6 -0
- package/dist/formats/webm/CjsWebmFormat.js.map +1 -1
- package/dist/formats/webp/CjsWebpFormat.js +5 -0
- package/dist/formats/webp/CjsWebpFormat.js.map +1 -1
- package/dist/formats/wem/CjsWemFormat.js +3 -2
- package/dist/formats/wem/CjsWemFormat.js.map +1 -1
- package/dist/formats/yaml/CjsYamlFormat.js +6 -0
- package/dist/formats/yaml/CjsYamlFormat.js.map +1 -1
- package/dist/formats/yaml/core/CjsYamlReader.js +6 -0
- package/dist/formats/yaml/core/CjsYamlReader.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/resources/AudioGeometryResData.js +3 -3
- package/dist/resources/AudioGeometryResData.js.map +1 -1
- package/dist/resources/GStateBindingCallbackData.js +2 -2
- package/dist/resources/GStateBindingCallbackData.js.map +1 -1
- package/dist/resources/MeshDecalData.js +2 -2
- package/dist/resources/MeshDecalData.js.map +1 -1
- package/dist/resources/MeshDecalLodData.js +2 -2
- package/dist/resources/MeshDecalLodData.js.map +1 -1
- package/dist/resources/Tr2EffectRes.js +1 -1
- package/dist/resources/Tr2EffectRes.js.map +1 -1
- package/dist/resources/Tr2GrannyIntersectionResult.js +4 -4
- package/dist/resources/Tr2GrannyIntersectionResult.js.map +1 -1
- package/dist/resources/Tr2GrannyStateRes.js +1 -1
- package/dist/resources/Tr2GrannyStateRes.js.map +1 -1
- package/dist/resources/Tr2ImageRes.js +1 -1
- package/dist/resources/Tr2ImageRes.js.map +1 -1
- package/dist/resources/Tr2LightProfileRes.js +1 -1
- package/dist/resources/Tr2LightProfileRes.js.map +1 -1
- package/dist/resources/Tr2MaterialArea.js +2 -2
- package/dist/resources/Tr2MaterialArea.js.map +1 -1
- package/dist/resources/Tr2MaterialMesh.js +2 -2
- package/dist/resources/Tr2MaterialMesh.js.map +1 -1
- package/dist/resources/Tr2MaterialRes.js +2 -2
- package/dist/resources/Tr2MaterialRes.js.map +1 -1
- package/dist/resources/Tr2ShaderPermutation.js +2 -2
- package/dist/resources/Tr2ShaderPermutation.js.map +1 -1
- package/dist/resources/Tr2TextureLodManager.js +2 -2
- package/dist/resources/Tr2TextureLodManager.js.map +1 -1
- package/dist/resources/Tr2TextureLodUpdateRequest.js +2 -2
- package/dist/resources/Tr2TextureLodUpdateRequest.js.map +1 -1
- package/dist/resources/Tr2TexturePackChannel.js +2 -2
- package/dist/resources/Tr2TexturePackChannel.js.map +1 -1
- package/dist/resources/Tr2TexturePipeline.js +2 -2
- package/dist/resources/Tr2TexturePipeline.js.map +1 -1
- package/dist/resources/Tr2TexturePipelineParams.js +2 -2
- package/dist/resources/Tr2TexturePipelineParams.js.map +1 -1
- package/dist/resources/Tr2TexturePipelineStepCompress.js +2 -2
- package/dist/resources/Tr2TexturePipelineStepCompress.js.map +1 -1
- package/dist/resources/Tr2TexturePipelineStepGenerateMips.js +2 -2
- package/dist/resources/Tr2TexturePipelineStepGenerateMips.js.map +1 -1
- package/dist/resources/Tr2TexturePipelineStepLimitSize.js +2 -2
- package/dist/resources/Tr2TexturePipelineStepLimitSize.js.map +1 -1
- package/dist/resources/Tr2TexturePipelineStepLoad.js +2 -2
- package/dist/resources/Tr2TexturePipelineStepLoad.js.map +1 -1
- package/dist/resources/Tr2TexturePipelineStepPack.js +2 -2
- package/dist/resources/Tr2TexturePipelineStepPack.js.map +1 -1
- package/dist/resources/TriGeometryRes.js +1 -1
- package/dist/resources/TriGeometryRes.js.map +1 -1
- package/dist/resources/TriGeometryResAreaData.js +3 -3
- package/dist/resources/TriGeometryResAreaData.js.map +1 -1
- package/dist/resources/TriGeometryResJointData.js +3 -3
- package/dist/resources/TriGeometryResJointData.js.map +1 -1
- package/dist/resources/TriGeometryResLodData.js +2 -2
- package/dist/resources/TriGeometryResLodData.js.map +1 -1
- package/dist/resources/TriGeometryResMeshData.js +4 -4
- package/dist/resources/TriGeometryResMeshData.js.map +1 -1
- package/dist/resources/TriGeometryResSkeletonData.js +2 -2
- package/dist/resources/TriGeometryResSkeletonData.js.map +1 -1
- package/dist/resources/TriGrannyRes.js +1 -1
- package/dist/resources/TriGrannyRes.js.map +1 -1
- package/dist/resources/TriJointBinding.js +3 -3
- package/dist/resources/TriJointBinding.js.map +1 -1
- package/dist/resources/TriMorphTargetGeometryConstants.js +2 -2
- package/dist/resources/TriMorphTargetGeometryConstants.js.map +1 -1
- package/dist/resources/TriRtGeometryConstants.js +2 -2
- package/dist/resources/TriRtGeometryConstants.js.map +1 -1
- package/dist/resources/TriTextureRes.js +1 -1
- package/dist/resources/TriTextureRes.js.map +1 -1
- package/dist/resources/texturePipelineBehavior.js +2 -2
- package/dist/resources/texturePipelineBehavior.js.map +1 -1
- package/dist/texture/CjsTextureArrayRes.js +1 -1
- package/dist/texture/CjsTextureArrayRes.js.map +1 -1
- package/dist/texture/CjsTextureParameterProxy.js +1 -1
- package/dist/texture/CjsTextureParameterProxy.js.map +1 -1
- package/docs/README.md +6 -2
- package/docs/architecture.md +1 -1
- package/docs/formats/README.md +7 -6
- package/docs/formats/gr2.md +161 -0
- package/docs/reference/classes/README.md +33 -0
- package/docs/reference/classes/core.md +106 -0
- package/docs/reference/classes/dropped.md +46 -0
- package/docs/reference/classes/formats.md +522 -0
- package/docs/reference/classes/resources.md +346 -0
- package/docs/reference/classes/texture.md +26 -0
- package/docs/reference/events.md +1 -1
- package/format-notices/black/NOTICE +1 -1
- package/package.json +2 -4
- package/dist/formats/black/core/black-schema-v1-2026-07-11.json.js +0 -4
- package/dist/formats/black/core/black-schema-v1-2026-07-11.json.js.map +0 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Class catalog
|
|
2
|
+
|
|
3
|
+
Status: Evolving
|
|
4
|
+
Scope: `@carbonenginejs/runtime-resource` classes
|
|
5
|
+
Audience: Users, maintainers, and automated readers
|
|
6
|
+
Summary: Indexes the one-sentence purpose descriptors for every maintained class in the package.
|
|
7
|
+
|
|
8
|
+
## Purpose
|
|
9
|
+
|
|
10
|
+
Every maintained class carries exactly one catalog entry with a stable HTML
|
|
11
|
+
marker, so a class can be located with an exact low-cost search:
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
rg 'class:CjsResMan' docs/reference/classes
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Entries record a one-sentence responsibility plus Export, Source, Visibility,
|
|
18
|
+
and Kind metadata. The catalog is an index, not a replacement for the API
|
|
19
|
+
reference or source documentation, and it is validated by the shared
|
|
20
|
+
documentation check against the actual source tree.
|
|
21
|
+
|
|
22
|
+
## Catalog pages
|
|
23
|
+
|
|
24
|
+
- [core.md](core.md): the resource manager, MotherLode cache, resource and
|
|
25
|
+
source classes, and the format/probe bases.
|
|
26
|
+
- [resources.md](resources.md): the Carbon-shaped semantic resource and data
|
|
27
|
+
classes under `src/resources`.
|
|
28
|
+
- [texture.md](texture.md): texture-array aggregation classes under
|
|
29
|
+
`src/texture`.
|
|
30
|
+
- [formats.md](formats.md): format entry classes and their internal reader
|
|
31
|
+
machinery under `src/formats`.
|
|
32
|
+
- [dropped.md](dropped.md): retained native shapes under `src/dropped` that
|
|
33
|
+
are documented but never exported or bundled.
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# Core class catalog
|
|
2
|
+
|
|
3
|
+
Status: Evolving
|
|
4
|
+
Scope: `@carbonenginejs/runtime-resource` classes under `src/` and `src/format/`
|
|
5
|
+
Audience: Users, maintainers, and automated readers
|
|
6
|
+
Summary: Provides one-sentence purpose descriptors for the resource manager, registry, resource, source, and format/probe base classes.
|
|
7
|
+
|
|
8
|
+
<!-- class:CjsMotherLode -->
|
|
9
|
+
## `CjsMotherLode`
|
|
10
|
+
|
|
11
|
+
Strong, deterministic resource registry that owns canonical path/variant identities and evicts entries only through explicit ownership removal, inactivity sweeps, or recorded-byte cache trimming, replacing Carbon's weak-live/strong-cache ownership transition.
|
|
12
|
+
|
|
13
|
+
- Export: `@carbonenginejs/runtime-resource`
|
|
14
|
+
- Source: `src/CjsMotherLode.js`
|
|
15
|
+
- Visibility: Public
|
|
16
|
+
- Kind: Adapted Carbon concept
|
|
17
|
+
|
|
18
|
+
<!-- class:CjsResMan -->
|
|
19
|
+
## `CjsResMan`
|
|
20
|
+
|
|
21
|
+
GPU-free resource manager that resolves paths through registered sources and formats, publishes canonical resources into a `CjsMotherLode` registry under exact-owner generation guards, and drives the main/background work queues, read-operation caching, reload staging, and automatic purge policy.
|
|
22
|
+
|
|
23
|
+
- Export: `@carbonenginejs/runtime-resource`
|
|
24
|
+
- Source: `src/CjsResMan.js`
|
|
25
|
+
- Visibility: Public
|
|
26
|
+
- Kind: Adapted Carbon concept
|
|
27
|
+
|
|
28
|
+
<!-- class:CjsResManWorkQueue -->
|
|
29
|
+
## `CjsResManWorkQueue`
|
|
30
|
+
|
|
31
|
+
Small FIFO executor used inside `CjsResMan` that tracks item ids, pause state, concurrency, cancellation, and sync/async completion while queue policy stays in the manager.
|
|
32
|
+
|
|
33
|
+
- Export: None
|
|
34
|
+
- Source: `src/CjsResManQueue.js`
|
|
35
|
+
- Visibility: Internal
|
|
36
|
+
- Kind: Internal implementation class
|
|
37
|
+
|
|
38
|
+
<!-- class:CjsResource -->
|
|
39
|
+
## `CjsResource`
|
|
40
|
+
|
|
41
|
+
Base runtime resource handle that carries normalized path/extension/requirement identity, load state, and an attached CPU payload, with manager lifecycle callbacks supplied by `CjsResMan` after canonical insertion.
|
|
42
|
+
|
|
43
|
+
- Export: `@carbonenginejs/runtime-resource`
|
|
44
|
+
- Source: `src/CjsResource.js`
|
|
45
|
+
- Visibility: Public
|
|
46
|
+
- Kind: Adapted Carbon concept
|
|
47
|
+
|
|
48
|
+
<!-- class:CjsMemoryResourceSource -->
|
|
49
|
+
## `CjsMemoryResourceSource`
|
|
50
|
+
|
|
51
|
+
In-memory resource source that maps normalized resource paths to preset values and serves them to reads without any I/O.
|
|
52
|
+
|
|
53
|
+
- Export: `@carbonenginejs/runtime-resource`
|
|
54
|
+
- Source: `src/CjsResourceSource.js`
|
|
55
|
+
- Visibility: Public
|
|
56
|
+
- Kind: Original CarbonEngineJS class
|
|
57
|
+
|
|
58
|
+
<!-- class:CjsFetchResourceSource -->
|
|
59
|
+
## `CjsFetchResourceSource`
|
|
60
|
+
|
|
61
|
+
Resource source that resolves a normalized path against an optional base URL and reads response bytes through an injected fetch implementation.
|
|
62
|
+
|
|
63
|
+
- Export: `@carbonenginejs/runtime-resource`
|
|
64
|
+
- Source: `src/CjsResourceSource.js`
|
|
65
|
+
- Visibility: Public
|
|
66
|
+
- Kind: Original CarbonEngineJS class
|
|
67
|
+
|
|
68
|
+
<!-- class:CjsBlueReader -->
|
|
69
|
+
## `CjsBlueReader`
|
|
70
|
+
|
|
71
|
+
Shared output and hydration backend for Blue persistence readers that owns common payload/runtime targets, reference emission, hydration adapter phases, reports, finalization, and schema-descriptor helpers, while transports keep framing and member decoding.
|
|
72
|
+
|
|
73
|
+
- Export: None
|
|
74
|
+
- Source: `src/format/CjsBlueReader.js`
|
|
75
|
+
- Visibility: Internal
|
|
76
|
+
- Kind: Internal implementation class
|
|
77
|
+
|
|
78
|
+
<!-- class:CjsFormat -->
|
|
79
|
+
## `CjsFormat`
|
|
80
|
+
|
|
81
|
+
Base class for format readers that defines the static `read`/`readAsync`/`isSupported`/`resolveType` contract and instance option handling that concrete format packages implement.
|
|
82
|
+
|
|
83
|
+
- Export: `@carbonenginejs/runtime-resource`
|
|
84
|
+
- Source: `src/format/CjsFormat.js`
|
|
85
|
+
- Visibility: Public
|
|
86
|
+
- Kind: Original CarbonEngineJS class
|
|
87
|
+
|
|
88
|
+
<!-- class:CjsReader -->
|
|
89
|
+
## `CjsReader`
|
|
90
|
+
|
|
91
|
+
Internal base for construction-bound readers that are created for one source and dropped after use, relying on garbage collection instead of explicit dispose/clear cleanup.
|
|
92
|
+
|
|
93
|
+
- Export: None
|
|
94
|
+
- Source: `src/format/CjsReader.js`
|
|
95
|
+
- Visibility: Internal
|
|
96
|
+
- Kind: Internal implementation class
|
|
97
|
+
|
|
98
|
+
<!-- class:CjsResourceProbe -->
|
|
99
|
+
## `CjsResourceProbe`
|
|
100
|
+
|
|
101
|
+
Standard probe-report model that formats return from inspection, recording support status, content-verification state, confidence, preferred route, capability variants, warnings, and errors without choosing an engine or media backend.
|
|
102
|
+
|
|
103
|
+
- Export: `@carbonenginejs/runtime-resource`
|
|
104
|
+
- Source: `src/format/CjsResourceProbe.js`
|
|
105
|
+
- Visibility: Public
|
|
106
|
+
- Kind: Original CarbonEngineJS class
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Dropped class catalog
|
|
2
|
+
|
|
3
|
+
Status: Evolving
|
|
4
|
+
Scope: `@carbonenginejs/runtime-resource` classes under `src/dropped`
|
|
5
|
+
Audience: Users, maintainers, and automated readers
|
|
6
|
+
Summary: Provides one-sentence purpose descriptors for retained-only Carbon reference shapes that are never exported or bundled.
|
|
7
|
+
|
|
8
|
+
<!-- class:CmfVertexReader -->
|
|
9
|
+
## `CmfVertexReader`
|
|
10
|
+
|
|
11
|
+
Retained-only reference shape mirroring Carbon's CMF vertex-element pointer-lookup helper, superseded by the JavaScript CMF format's channel decoding.
|
|
12
|
+
|
|
13
|
+
- Export: None
|
|
14
|
+
- Source: `src/dropped/CmfVertexReader.js`
|
|
15
|
+
- Visibility: Internal
|
|
16
|
+
- Kind: Faithful Carbon port
|
|
17
|
+
|
|
18
|
+
<!-- class:Tr2AsyncSave -->
|
|
19
|
+
## `Tr2AsyncSave`
|
|
20
|
+
|
|
21
|
+
Retained-only reference shape mirroring Carbon's abstract prepare/save callback base, superseded by promise-based format `Write`/`WriteAsync` operations and resource-level save-status compatibility methods.
|
|
22
|
+
|
|
23
|
+
- Export: None
|
|
24
|
+
- Source: `src/dropped/Tr2AsyncSave.js`
|
|
25
|
+
- Visibility: Internal
|
|
26
|
+
- Kind: Faithful Carbon port
|
|
27
|
+
|
|
28
|
+
<!-- class:Tr2CmfContents -->
|
|
29
|
+
## `Tr2CmfContents`
|
|
30
|
+
|
|
31
|
+
Retained-only reference shape mirroring Carbon's native CMF section lifetime and decompression holder, superseded by `CjsCmfFormat`'s bounded section access and typed-array data.
|
|
32
|
+
|
|
33
|
+
- Export: None
|
|
34
|
+
- Source: `src/dropped/Tr2CmfContents.js`
|
|
35
|
+
- Visibility: Internal
|
|
36
|
+
- Kind: Faithful Carbon port
|
|
37
|
+
|
|
38
|
+
<!-- class:Tr2LoadPrepareFence -->
|
|
39
|
+
## `Tr2LoadPrepareFence`
|
|
40
|
+
|
|
41
|
+
Retained-only reference shape mirroring Carbon's two-queue load/prepare fence helper, superseded by the snapshot-fence contract owned by `CjsResMan.Wait()`.
|
|
42
|
+
|
|
43
|
+
- Export: None
|
|
44
|
+
- Source: `src/dropped/Tr2LoadPrepareFence.js`
|
|
45
|
+
- Visibility: Internal
|
|
46
|
+
- Kind: Faithful Carbon port
|