ソースを参照

Unknown ts fix with this and generic type in BufferGeometry

master
Palash Bansal 11ヶ月前
コミット
7b9fb3d21b
コミッターのメールアドレスに関連付けられたアカウントが存在しません
4個のファイルの変更9行の追加9行の削除
  1. 4
    4
      package-lock.json
  2. 3
    3
      package.json
  3. 1
    1
      src/core/IGeometry.ts
  4. 1
    1
      src/postprocessing/GenericBlendTexturePass.ts

+ 4
- 4
package-lock.json ファイルの表示

@@ -9,7 +9,7 @@
"version": "0.0.47",
"license": "Apache-2.0",
"dependencies": {
"@types/three": "https://github.com/repalash/three-ts-types/releases/download/v0.158.1003/package.tgz",
"@types/three": "https://github.com/repalash/three-ts-types/releases/download/v0.158.1004/package.tgz",
"@types/webxr": "^0.5.1",
"@types/wicg-file-system-access": "^2020.9.5",
"popmotion": "^11.0.5",
@@ -2401,9 +2401,9 @@
"license": "MIT"
},
"node_modules/@types/three": {
"version": "0.158.1003",
"resolved": "https://github.com/repalash/three-ts-types/releases/download/v0.158.1003/package.tgz",
"integrity": "sha512-RtKP7Tpb6RBpfeyRgSh2iKQtPDXFaesHM4loJluJaWr1weZx9utQqq2UqqqbyjyMglsw46Z2NHn1vQ9Fl7ZdIg==",
"version": "0.158.1004",
"resolved": "https://github.com/repalash/three-ts-types/releases/download/v0.158.1004/package.tgz",
"integrity": "sha512-2/yP96h+aQW0771+E1tCk7grDZZF9RWDx+/oqk+FaXc4L5MuPOMJ9WPIxKtNmRYuFuHf0DxM/BEYm8L54ZaEXQ==",
"dependencies": {
"@types/stats.js": "*",
"@types/webxr": "*",

+ 3
- 3
package.json ファイルの表示

@@ -121,7 +121,7 @@
"vitepress-plugin-nprogress": "^0.0.4"
},
"dependencies": {
"@types/three": "https://github.com/repalash/three-ts-types/releases/download/v0.158.1003/package.tgz",
"@types/three": "https://github.com/repalash/three-ts-types/releases/download/v0.158.1004/package.tgz",
"@types/webxr": "^0.5.1",
"@types/wicg-file-system-access": "^2020.9.5",
"popmotion": "^11.0.5",
@@ -143,8 +143,8 @@
"ts-browser-helpers": "^0.16.2",
"three": "https://github.com/repalash/three.js-modded/releases/download/v0.158.1004/package.tgz",
"three-f": "https://github.com/repalash/three.js-modded/archive/refs/tags/v0.158.1004.tar.gz",
"@types/three": "https://github.com/repalash/three-ts-types/releases/download/v0.158.1003/package.tgz",
"@types/three-f": "https://github.com/repalash/three-ts-types/archive/refs/tags/v0.158.1003.tar.gz",
"@types/three": "https://github.com/repalash/three-ts-types/releases/download/v0.158.1004/package.tgz",
"@types/three-f": "https://github.com/repalash/three-ts-types/archive/refs/tags/v0.158.1004.tar.gz",
"@types/three-pkg": "https://gitpkg.now.sh/repalash/three-ts-types/types/three?modded_three"
},
"local_dependencies": {

+ 1
- 1
src/core/IGeometry.ts ファイルの表示

@@ -31,7 +31,7 @@ export interface IGeometry<Attributes extends NormalOrGLBufferAttributes = Norma
* @param keepWorldPosition - Updates the attached meshes, so that the world position of the geometry remains the same.
* @param setDirty
*/
center(offset?: Vector3, keepWorldPosition?: boolean, setDirty?: boolean): this
center(offset?: Vector3, keepWorldPosition?: boolean, setDirty?: boolean): BufferGeometry

/**
* Same as center but returns a function to undo the centering

+ 1
- 1
src/postprocessing/GenericBlendTexturePass.ts ファイルの表示

@@ -1,4 +1,4 @@
import {IUniform} from 'three/src/renderers/shaders/UniformsLib'
import type {IUniform} from 'three/src/renderers/shaders/UniformsLib'
import {Texture} from 'three'
import {CopyShader} from 'three/examples/jsm/shaders/CopyShader.js'
import {ExtendedShaderPass} from './ExtendedShaderPass'

読み込み中…
キャンセル
保存