Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/three

Package Overview
Dependencies
Maintainers
1
Versions
232
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/three - npm Package Compare versions

Comparing version 0.138.0 to 0.139.0

three/src/geometries/CapsuleGeometry.d.ts

3

three/examples/jsm/exporters/EXRExporter.d.ts
/**
* @author sciecode / https://github.com/sciecode
*
* EXR format references: https://www.openexr.com/documentation/openexrfilelayout.pdf
* EXR format references:
* https://www.openexr.com/documentation/openexrfilelayout.pdf
*/

@@ -6,0 +7,0 @@

@@ -6,3 +6,3 @@ import { Scene, Camera, ColorRepresentation, ShaderMaterial, WebGLRenderTarget } from '../../../src/Three';

export class SSAARenderPass extends Pass {
constructor(scene: Scene, camera: Camera, clearColor: ColorRepresentation, clearAlpha: number);
constructor(scene: Scene, camera: Camera, clearColor?: ColorRepresentation, clearAlpha?: number);
scene: Scene;

@@ -9,0 +9,0 @@ camera: Camera;

@@ -18,1 +18,3 @@ import {

export function computeMorphedAttributes(object: Mesh | Line | Points): object;
export function computeTangents(geometry: BufferGeometry, negateSign?: boolean): BufferGeometry;
export function mergeGroups(geometry: BufferGeometry): BufferGeometry;

@@ -1,2 +0,2 @@

import { BufferGeometry, Group, InstancedMesh, Material, Object3D, Scene } from '../../../src/Three';
import { BufferGeometry, Group, InstancedMesh, Material, Object3D, Scene, Mesh } from '../../../src/Three';

@@ -13,1 +13,3 @@ export function createMeshesFromInstancedMesh(instancedMesh: InstancedMesh): Group;

export function attach(child: Object3D, scene: Scene, parent: Object3D): void;
export function createMeshesFromMultiMaterialMesh(mesh: Mesh): Group;

@@ -1,2 +0,2 @@

// Type definitions for three 0.138
// Type definitions for three 0.139
// Project: https://threejs.org/

@@ -3,0 +3,0 @@ // Definitions by: Josh Ellis <https://github.com/joshuaellis>

{
"name": "@types/three",
"version": "0.138.0",
"version": "0.139.0",
"description": "TypeScript definitions for three",

@@ -28,4 +28,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three",

"dependencies": {},
"typesPublisherContentHash": "7873774346bfbeaa8143902909709f9b2a5154afc0017f590bff41e5d3e5e0b7",
"typesPublisherContentHash": "3d3b533eda48e6d4aad35b8b2177550c7d54d7f9eef4a9c679730a92b75d3551",
"typeScriptVersion": "3.9"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Wed, 02 Mar 2022 16:01:44 GMT
* Last updated: Sat, 26 Mar 2022 21:01:43 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: `THREE`

@@ -7,3 +7,3 @@ import { AnimationClip } from './AnimationClip';

function isTypedArray(object: any): boolean;
function getKeyFrameOrder(times: number[]): number[];
function getKeyframeOrder(times: number[]): number[];
function sortedArray(values: any[], stride: number, order: number[]): any[];

@@ -10,0 +10,0 @@ function flattenJSON(jsonKeys: string[], times: any[], values: any[], valuePropertyName: string): void;

@@ -118,3 +118,2 @@ export const REVISION: string;

export const CubeUVReflectionMapping: Mapping;
export const CubeUVRefractionMapping: Mapping;

@@ -157,2 +156,3 @@ // Wrapping modes

export const AlphaFormat: PixelFormat;
export const RGBFormat: PixelFormat;
export const RGBAFormat: PixelFormat;

@@ -318,2 +318,7 @@ export const LuminanceFormat: PixelFormat;

export type ColorSpace = NoColorSpace | SRGBColorSpace | LinearSRGBColorSpace;
export type NoColorSpace = '';
export type SRGBColorSpace = 'srgb';
export type LinearSRGBColorSpace = 'srgb-linear';
// Stencil Op types

@@ -320,0 +325,0 @@ export enum StencilOp {}

@@ -25,4 +25,2 @@ import { BufferAttribute } from './BufferAttribute';

static MaxIndex: number;
/**

@@ -29,0 +27,0 @@ * Unique number of this buffergeometry instance

@@ -16,4 +16,2 @@ import { BufferGeometry } from './BufferGeometry';

groups: Array<{ start: number; count: number; instances: number }>;
/**

@@ -23,4 +21,2 @@ * @default Infinity

instanceCount: number;
addGroup(start: number, count: number, instances: number): void;
}

@@ -16,3 +16,2 @@ export class Uniform {

dynamic: boolean;
onUpdateCallback: () => void;

@@ -19,0 +18,0 @@ /**

export namespace DataUtils {
function toHalfFloat(val: number): number;
function fromHalfFloat(val: number): number;
}
export * from './BoxGeometry';
export * from './CapsuleGeometry';
export * from './CircleGeometry';

@@ -3,0 +4,0 @@ export * from './ConeGeometry';

@@ -84,7 +84,2 @@ import { Plane } from './../math/Plane';

/**
* @default false
*/
alphaWrite: boolean;
/**
* Blending destination. It's one of the blending mode constants defined in Three.js. Default is {@link OneMinusSrcAlphaFactor}.

@@ -91,0 +86,0 @@ * @default THREE.OneMinusSrcAlphaFactor

@@ -33,3 +33,2 @@ import { Color } from './../math/Color';

envMapIntensity?: number | undefined;
refractionRatio?: number | undefined;
wireframe?: boolean | undefined;

@@ -175,7 +174,2 @@ wireframeLinewidth?: number | undefined;

/**
* @default 0.98
*/
refractionRatio: number;
/**
* @default false

@@ -182,0 +176,0 @@ */

@@ -0,4 +1,8 @@

import { ColorSpace } from '../constants';
import { ColorRepresentation } from '../utils';
import { BufferAttribute } from './../core/BufferAttribute';
export { SRGBToLinear } from './ColorManagement';
export interface HSL {

@@ -10,3 +14,7 @@ h: number;

export function SRGBToLinear(c: number): number;
export interface RGB {
r: number;
g: number;
b: number;
}

@@ -47,3 +55,3 @@ /**

setScalar(scalar: number): Color;
setHex(hex: number): Color;
setHex(hex: number, colorSpace?: ColorSpace): Color;

@@ -56,3 +64,3 @@ /**

*/
setRGB(r: number, g: number, b: number): Color;
setRGB(r: number, g: number, b: number, colorSpace?: ColorSpace): Color;

@@ -67,3 +75,3 @@ /**

*/
setHSL(h: number, s: number, l: number): Color;
setHSL(h: number, s: number, l: number, colorSpace?: ColorSpace): Color;

@@ -74,3 +82,3 @@ /**

*/
setStyle(style: string): Color;
setStyle(style: string, colorSpace?: ColorSpace): Color;

@@ -82,3 +90,3 @@ /**

*/
setColorName(style: string): Color;
setColorName(style: string, colorSpace?: ColorSpace): Color;

@@ -121,3 +129,3 @@ /**

*/
getHex(): number;
getHex(colorSpace?: ColorSpace): number;

@@ -127,6 +135,8 @@ /**

*/
getHexString(): string;
getHexString(colorSpace?: ColorSpace): string;
getHSL(target: HSL): HSL;
getHSL(target: HSL, colorSpace?: ColorSpace): HSL;
getRGB(target: RGB, colorSpace?: ColorSpace): RGB;
/**

@@ -136,3 +146,3 @@ * Returns the value of this color in CSS context style.

*/
getStyle(): string;
getStyle(colorSpace?: ColorSpace): string;

@@ -139,0 +149,0 @@ offsetHSL(h: number, s: number, l: number): this;

@@ -34,3 +34,2 @@ import { Vector3 } from './Vector3';

projectPoint(point: Vector3, target: Vector3): Vector3;
orthoPoint(point: Vector3, target: Vector3): Vector3;
intersectLine(line: Line3, target: Vector3): Vector3 | null;

@@ -37,0 +36,0 @@ intersectsLine(line: Line3): boolean;

@@ -1,2 +0,2 @@

import { CompressedPixelFormat, TextureEncoding } from '../../constants';
import { CompressedPixelFormat, PixelFormat, TextureEncoding, TextureDataType } from '../../constants';

@@ -6,3 +6,3 @@ export class WebGLUtils {

convert(p: CompressedPixelFormat, encoding?: TextureEncoding | null): void;
convert(p: PixelFormat | CompressedPixelFormat | TextureDataType, encoding?: TextureEncoding | null): number | null;
}

@@ -221,3 +221,3 @@ import { Scene } from './../scenes/Scene';

*/
getContext(): WebGLRenderingContext;
getContext(): WebGLRenderingContext | WebGL2RenderingContext;
getContextAttributes(): any;

@@ -224,0 +224,0 @@ forceContextLoss(): void;

@@ -25,3 +25,2 @@ import { Vector4 } from './../math/Vector4';

uuid: string;
width: number;

@@ -28,0 +27,0 @@ height: number;

@@ -48,18 +48,3 @@ import { FogBase } from './Fog';

/**
* Calls before rendering scene
*/
onBeforeRender: (
renderer: WebGLRenderer,
scene: Scene,
camera: Camera,
renderTarget: any, // any required for Object3D.onBeforeRender compatibility
) => void;
/**
* Calls after rendering scene
*/
onAfterRender: (renderer: WebGLRenderer, scene: Scene, camera: Camera) => void;
toJSON(meta?: any): any;
}

@@ -212,2 +212,3 @@ /**

export * from './renderers/webxr/WebXRManager';
export { WebGLUtils } from './renderers/webgl/WebGLUtils.js';
/**

@@ -214,0 +215,0 @@ * Scenes

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc