Skip to content

Commit 09cb9d8

Browse files
committed
Fix example code URL reference and update dependencies
- Fix example URL reference from relative path to absolute URL in example-detail.tsx - Update flywave.gl package.json to include proper workspace dependencies - Add Three.js AnimationClip and Scene types to GLTFWithBuffers interface - Update api-extractor.json to include additional packages - Revert flywave.gl version from 0.0.9 to 0.0.8 - Update pnpm-lock.yaml with consistent formatting The main issue fixed was the incorrect URL reference in the example code which was using a relative path instead of the absolute GitHub Pages URL.
1 parent 76c7593 commit 09cb9d8

File tree

5 files changed

+26019
-33580
lines changed

5 files changed

+26019
-33580
lines changed

@flywave/flywave-gltf/src/gltf/types/gltf-types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import { type ImageType } from "@flywave/flywave-utils";
66

77
import type { GLTF } from "./gltf-json-schema";
8+
import { AnimationClip, Scene } from "three";
89

910
/** GLTFLoader removes processed extensions from `extensionsUsed` and `extensionsUsed`
1011
* `processedExtensions` is used to track those extensions
@@ -14,6 +15,8 @@ export interface GLTFWithBuffers {
1415
binary?: ArrayBuffer;
1516
buffers: GLTFExternalBuffer[];
1617
images?: GLTFExternalImage[];
18+
scene?: Scene;
19+
animations?: AnimationClip[];
1720
}
1821

1922
export interface GLTFExternalBuffer {

@flywave/flywave.gl/api-extractor.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
"@flywave/flywave-features-datasource",
1515
"@flywave/flywave-utils",
1616
"@flywave/flywave-vectortile-datasource",
17-
"@flywave/flywave-inspector"
17+
"@flywave/flywave-inspector",
18+
"@flywave/flywave-gltf",
19+
"@flywave/flywave-transfer-manager",
20+
"@flywave/flywave-geometry"
1821
],
1922
"compiler": {
2023
"tsconfigFilePath": "<projectFolder>/tsconfig.json",

@flywave/flywave.gl/package.json

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@flywave/flywave.gl",
3-
"version": "0.0.9",
3+
"version": "0.0.8",
44
"type": "module",
55
"description": "WebGl GIS",
66
"exports": {
@@ -56,5 +56,33 @@
5656
"publishConfig": {
5757
"access": "public"
5858
},
59+
"devDependencies": {
60+
"@flywave/flywave-3dtile-datasource": "workspace:*",
61+
"@flywave/flywave-datasource-protocol": "workspace:*",
62+
"@flywave/flywave-draw-controls": "workspace:*",
63+
"@flywave/flywave-features-datasource": "workspace:*",
64+
"@flywave/flywave-geojson-datasource": "workspace:*",
65+
"@flywave/flywave-geometry": "workspace:*",
66+
"@flywave/flywave-geoutils": "workspace:*",
67+
"@flywave/flywave-gltf": "workspace:*",
68+
"@flywave/flywave-inspector": "workspace:*",
69+
"@flywave/flywave-map-controls": "workspace:*",
70+
"@flywave/flywave-mapview": "workspace:*",
71+
"@flywave/flywave-mapview-decoder": "workspace:*",
72+
"@flywave/flywave-terrain-datasource": "workspace:*",
73+
"@flywave/flywave-transfer-manager": "workspace:*",
74+
"@flywave/flywave-utils": "workspace:*",
75+
"@flywave/flywave-vectortile-datasource": "workspace:*",
76+
"@flywave/flywave-webpack-utils": "workspace:*",
77+
"@flywave/flywave-webtile-datasource": "workspace:*",
78+
"copy-webpack-plugin": "catalog:",
79+
"cross-env": "catalog:",
80+
"expose-loader": "5.0.1",
81+
"tsconfig-paths-webpack-plugin": "catalog:",
82+
"typescript": "catalog:",
83+
"webpack": "catalog:",
84+
"webpack-cli": "catalog:",
85+
"webpack-merge": "catalog:"
86+
},
5987
"gitHead": "31ea639ccb9a06d4595f4325396c21ba4164c454"
6088
}

docs/src/pages/example-detail.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ export default function ExampleDetail() {
310310
"three/examples/jsm/loaders/FBXLoader.js": "https://unpkg.com/three@0.178.0/examples/jsm/loaders/FBXLoader.js",
311311
"@turf/turf": "https://cdn.jsdelivr.net/npm/@turf/turf@6.5.0/+esm",
312312
"dat.gui": "https://unpkg.com/dat.gui@0.7.9/build/dat.gui.module.js",
313-
"@flywave/flywave.gl": "./flywave.gl.module.js",
313+
"@flywave/flywave.gl": "https://flywave.github.io/flywave.gl/flywave.gl.module.js",
314314
"three-nebula": "./three-nebula.module.js"
315315
}
316316
}

0 commit comments

Comments
 (0)