Skip to content

Commit

Permalink
Merge pull request #2557 from galacean/chore/webcodecs-type
Browse files Browse the repository at this point in the history
chore: @types/dom-webcodecs
  • Loading branch information
MrKou47 authored Feb 13, 2025
2 parents 78f7415 + 334d688 commit 813242e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/typedoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
run: chmod +x ./scripts/typedoc.sh

- name: Generate TypeDoc Json
run: ./scripts/typedoc.sh
run: ./scripts/typedoc.sh galacean-typedoc

- name: Upload Typedoc JSON to CDN
uses: galacean/publish@main
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"@rollup/plugin-replace": "^2.3.4",
"@swc/core": "^1.3.49",
"@swc/helpers": "^0.5.1",
"@types/dom-webcodecs": "^0.1.13",
"@types/node": "^18.7.16",
"@types/webxr": "latest",
"@typescript-eslint/eslint-plugin": "^6.1.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/rhi-webgl/src/GLTexture2DArray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ export class GLTexture2DArray extends GLTexture implements IPlatformTexture2DArr
x,
y,
elementIndex,
(<Exclude<TexImageSource, VideoFrame>>imageSource).width ?? (<VideoFrame>imageSource).codedWidth,
(<Exclude<TexImageSource, VideoFrame>>imageSource).height ?? (<VideoFrame>imageSource).codedHeight,
(<Exclude<TexImageSource, VideoFrame>>imageSource).width ?? (imageSource as unknown as VideoFrame).codedWidth,
(<Exclude<TexImageSource, VideoFrame>>imageSource).height ?? (imageSource as unknown as VideoFrame).codedHeight,
1,
baseFormat,
dataType,
Expand Down
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions scripts/typedoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ do
if [ -d $directory ]; then
bn=`basename $directory`;
echo "typedoc compiling $directory"
npx $TYPEDOC --version
npx $TYPEDOC --json ${OUTPUT_DIR}/$bn.json --tsconfig $directory/tsconfig.json $directory/src/index.ts;
pnpx $TYPEDOC --version
pnpx $TYPEDOC --json ${OUTPUT_DIR}/$bn.json --tsconfig $directory/tsconfig.json $directory/src/index.ts;
SUCCESS+=("${OUTPUT_DIR}/$bn.json")
fi
done
Expand Down

0 comments on commit 813242e

Please sign in to comment.