Bladeren bron

Unknown ts fix with this and generic type in BufferGeometry

master
Palash Bansal 11 maanden geleden
bovenliggende
commit
7b9fb3d21b
No account linked to committer's email address
4 gewijzigde bestanden met toevoegingen van 9 en 9 verwijderingen
  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 Bestand weergeven

"version": "0.0.47", "version": "0.0.47",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "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/webxr": "^0.5.1",
"@types/wicg-file-system-access": "^2020.9.5", "@types/wicg-file-system-access": "^2020.9.5",
"popmotion": "^11.0.5", "popmotion": "^11.0.5",
"license": "MIT" "license": "MIT"
}, },
"node_modules/@types/three": { "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": { "dependencies": {
"@types/stats.js": "*", "@types/stats.js": "*",
"@types/webxr": "*", "@types/webxr": "*",

+ 3
- 3
package.json Bestand weergeven

"vitepress-plugin-nprogress": "^0.0.4" "vitepress-plugin-nprogress": "^0.0.4"
}, },
"dependencies": { "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/webxr": "^0.5.1",
"@types/wicg-file-system-access": "^2020.9.5", "@types/wicg-file-system-access": "^2020.9.5",
"popmotion": "^11.0.5", "popmotion": "^11.0.5",
"ts-browser-helpers": "^0.16.2", "ts-browser-helpers": "^0.16.2",
"three": "https://github.com/repalash/three.js-modded/releases/download/v0.158.1004/package.tgz", "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", "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" "@types/three-pkg": "https://gitpkg.now.sh/repalash/three-ts-types/types/three?modded_three"
}, },
"local_dependencies": { "local_dependencies": {

+ 1
- 1
src/core/IGeometry.ts Bestand weergeven

* @param keepWorldPosition - Updates the attached meshes, so that the world position of the geometry remains the same. * @param keepWorldPosition - Updates the attached meshes, so that the world position of the geometry remains the same.
* @param setDirty * @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 * Same as center but returns a function to undo the centering

+ 1
- 1
src/postprocessing/GenericBlendTexturePass.ts Bestand weergeven

import {IUniform} from 'three/src/renderers/shaders/UniformsLib'
import type {IUniform} from 'three/src/renderers/shaders/UniformsLib'
import {Texture} from 'three' import {Texture} from 'three'
import {CopyShader} from 'three/examples/jsm/shaders/CopyShader.js' import {CopyShader} from 'three/examples/jsm/shaders/CopyShader.js'
import {ExtendedShaderPass} from './ExtendedShaderPass' import {ExtendedShaderPass} from './ExtendedShaderPass'

Laden…
Annuleren
Opslaan