@aethervtt/shard-gltf 0.0.1

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.
@@ -0,0 +1,6 @@
1
+ export { type AnimationChannel, type AnimationClipAsset, AnimationClipAssetType, AnimationClips, } from '@aethervtt/shard-animation';
2
+ export { type SkinAsset, SkinAssetType, Skins } from '@aethervtt/shard-render';
3
+ export { type AccessorData, Accessors } from './accessors.js';
4
+ export { type GltfDocument, type ParsedGltf, parseGltf } from './document.js';
5
+ export { GltfImporter, GltfImportSettings } from './importer.js';
6
+ export { gltfPlugin } from './plugin.js';
package/dist/index.js ADDED
@@ -0,0 +1,20 @@
1
+ import {
2
+ AnimationClipAssetType,
3
+ AnimationClips
4
+ } from "@aethervtt/shard-animation";
5
+ import { SkinAssetType, Skins } from "@aethervtt/shard-render";
6
+ import { Accessors } from "./accessors.js";
7
+ import { parseGltf } from "./document.js";
8
+ import { GltfImporter, GltfImportSettings } from "./importer.js";
9
+ import { gltfPlugin } from "./plugin.js";
10
+ export {
11
+ Accessors,
12
+ AnimationClipAssetType,
13
+ AnimationClips,
14
+ GltfImportSettings,
15
+ GltfImporter,
16
+ SkinAssetType,
17
+ Skins,
18
+ gltfPlugin,
19
+ parseGltf
20
+ };
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Imports `.gltf` and `.glb` files. Loading their artifacts needs only render and animation; this
3
+ * plugin is for hosts that import sources at runtime (a dev server, an editor).
4
+ */
5
+ export declare const gltfPlugin: import("@aethervtt/shard-runtime").Plugin;
package/dist/plugin.js ADDED
@@ -0,0 +1,11 @@
1
+ import { definePlugin } from "@aethervtt/shard-runtime";
2
+ import { GltfImporter } from "./importer.js";
3
+ const gltfPlugin = definePlugin({
4
+ name: "gltf",
5
+ provides: [GltfImporter],
6
+ build() {
7
+ }
8
+ });
9
+ export {
10
+ gltfPlugin
11
+ };
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@aethervtt/shard-gltf",
3
+ "version": "0.0.1",
4
+ "license": "MIT",
5
+ "type": "module",
6
+ "sideEffects": false,
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "default": "./dist/index.js"
11
+ }
12
+ },
13
+ "files": [
14
+ "dist",
15
+ "LICENSE",
16
+ "README.md"
17
+ ],
18
+ "dependencies": {
19
+ "@aethervtt/shard-animation": "0.0.1",
20
+ "@aethervtt/shard-assets": "0.0.1",
21
+ "@aethervtt/shard-core": "0.0.1",
22
+ "@aethervtt/shard-mesh": "0.0.1",
23
+ "@aethervtt/shard-render": "0.0.1",
24
+ "@aethervtt/shard-scene": "0.0.1",
25
+ "@aethervtt/shard-texture": "0.0.1",
26
+ "mikktspace": "^1.1.1"
27
+ },
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git+https://github.com/aethervtt/shard.git",
31
+ "directory": "packages/gltf"
32
+ },
33
+ "publishConfig": {
34
+ "access": "public",
35
+ "provenance": true
36
+ },
37
+ "shard": {
38
+ "buildSha": "d6c5c6aef4675575c878b02cf2c8f738b4190229"
39
+ }
40
+ }