New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pmndrs/vanilla

Package Overview
Dependencies
Maintainers
0
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pmndrs/vanilla - npm Package Compare versions

Comparing version 1.19.0 to 1.19.1

2

core/AccumulativeShadows.d.ts
import * as THREE from 'three';
declare type SoftShadowMaterialProps = {
type SoftShadowMaterialProps = {
map: THREE.Texture | null;

@@ -4,0 +4,0 @@ color: THREE.Color;

import * as THREE from 'three';
export declare type BillboardProps = {
export type BillboardProps = {
follow?: boolean;

@@ -8,3 +8,3 @@ lockX?: boolean;

};
export declare type BillboardType = {
export type BillboardType = {
group: THREE.Group;

@@ -11,0 +11,0 @@ update: (camera: THREE.Camera) => void;

import * as THREE from 'three';
import { PlaneGeometry } from 'three';
export declare type CausticsProjectionMaterialType = THREE.MeshNormalMaterial & {
export type CausticsProjectionMaterialType = THREE.MeshNormalMaterial & {
viewMatrix: {

@@ -13,3 +13,3 @@ value?: THREE.Matrix4;

};
export declare type CausticsProps = {
export type CausticsProps = {
frames?: number;

@@ -28,3 +28,3 @@ causticsOnly?: boolean;

};
export declare type CausticsProjectionShaderType = {
export type CausticsProjectionShaderType = {
causticsTexture?: THREE.Texture | null;

@@ -39,3 +39,3 @@ causticsTextureB?: THREE.Texture | null;

};
export declare type CausticsMaterialType = {
export type CausticsMaterialType = {
cameraMatrixWorld: THREE.Matrix4;

@@ -61,3 +61,3 @@ cameraProjectionMatrixInv: THREE.Matrix4;

};
export declare type CausticsType = {
export type CausticsType = {
scene: THREE.Scene;

@@ -64,0 +64,0 @@ group: THREE.Group;

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

import { Color, Group, Texture, Vector3, InstancedMesh, Material, Matrix4 } from 'three';
import { Color, Group, Texture, Vector3, InstancedMesh, Material, Matrix4, Camera } from 'three';
export declare const CLOUD_URL = "https://rawcdn.githack.com/pmndrs/drei-assets/9225a9f1fbd449d9411125c2f419b843d0308c9f/cloud.png";
declare type CloudState = {
type CloudState = {
ref: Group;

@@ -23,3 +23,3 @@ uuid: string;

};
declare type CloudsProps = {
type CloudsProps = {
texture?: Texture | undefined;

@@ -31,3 +31,3 @@ limit?: number;

};
declare type CloudProps = {
type CloudProps = {
seed?: number;

@@ -54,3 +54,3 @@ segments?: number;

cloudMaterial: Material;
update: (camera: THREE.Camera, time: number, delta: number) => void;
update: (camera: Camera, time: number, delta: number) => void;
constructor({ limit, range, material, texture, frustumCulled }?: CloudsProps);

@@ -57,0 +57,0 @@ }

import * as THREE from 'three';
export declare type GridProps = {
export type GridProps = {
args?: Array<number>;

@@ -16,3 +16,3 @@ cellSize?: number;

};
export declare type GridType = {
export type GridType = {
mesh: THREE.Mesh;

@@ -19,0 +19,0 @@ update: (camera: THREE.Camera) => void;

import * as THREE from 'three';
export declare type OutlinesProps = {
export type OutlinesProps = {
color?: THREE.Color;

@@ -15,3 +15,3 @@ screenspace?: boolean;

};
export declare type OutlinesType = {
export type OutlinesType = {
group: THREE.Group;

@@ -18,0 +18,0 @@ updateProps: (props: Partial<OutlinesProps>) => void;

import * as THREE from 'three';
declare type SoftShadowsProps = {
type SoftShadowsProps = {
size?: number;

@@ -4,0 +4,0 @@ samples?: number;

import * as THREE from 'three';
declare type UniformValue = THREE.CubeTexture | THREE.Texture | Int32Array | Float32Array | THREE.Matrix4 | THREE.Matrix3 | THREE.Quaternion | THREE.Vector4 | THREE.Vector3 | THREE.Vector2 | THREE.Color | number | boolean | Array<any> | null;
declare type UniformProps = {
type UniformValue = THREE.CubeTexture | THREE.Texture | Int32Array | Float32Array | THREE.Matrix4 | THREE.Matrix3 | THREE.Quaternion | THREE.Vector4 | THREE.Vector3 | THREE.Vector2 | THREE.Color | number | boolean | Array<any> | null;
type UniformProps = {
[name: string]: UniformValue;
};
declare type ShaderMaterialInstance<TProps extends UniformProps> = THREE.ShaderMaterial & TProps;
declare type ShaderMaterialParameters<TProps extends UniformProps> = THREE.ShaderMaterialParameters & Partial<TProps>;
declare type ShaderMaterial<TProps extends UniformProps> = (new (parameters?: ShaderMaterialParameters<TProps>) => ShaderMaterialInstance<TProps>) & {
type ShaderMaterialInstance<TProps extends UniformProps> = THREE.ShaderMaterial & TProps;
type ShaderMaterialParameters<TProps extends UniformProps> = THREE.ShaderMaterialParameters & Partial<TProps>;
type ShaderMaterial<TProps extends UniformProps> = (new (parameters?: ShaderMaterialParameters<TProps>) => ShaderMaterialInstance<TProps>) & {
key: string;

@@ -10,0 +10,0 @@ };

import * as THREE from 'three';
export declare type SplatMaterialType = {
export type SplatMaterialType = {
alphaTest?: number;

@@ -10,3 +10,3 @@ alphaHash?: boolean;

};
export declare type TargetMesh = THREE.Mesh<THREE.InstancedBufferGeometry, THREE.ShaderMaterial & SplatMaterialType> & {
export type TargetMesh = THREE.Mesh<THREE.InstancedBufferGeometry, THREE.ShaderMaterial & SplatMaterialType> & {
ready: boolean;

@@ -19,3 +19,3 @@ sorted: boolean;

};
export declare type SharedState = {
export type SharedState = {
url: string;

@@ -22,0 +22,0 @@ gl: THREE.WebGLRenderer;

import * as THREE from 'three';
export declare type SpriteAnimatorProps = {
export type SpriteAnimatorProps = {
startFrame?: number;

@@ -24,3 +24,3 @@ endFrame?: number;

};
export declare type SpriteAnimatorType = {
export type SpriteAnimatorType = {
group: THREE.Group;

@@ -27,0 +27,0 @@ init: Function;

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

export declare type TextProps = {
import { Mesh } from 'three';
export type TextProps = {
text: string;

@@ -33,4 +34,4 @@ characters?: string;

};
export declare type TextType = {
mesh: THREE.Mesh;
export type TextType = {
mesh: Mesh;
updateProps: (newProps: Partial<TextProps>) => void;

@@ -37,0 +38,0 @@ dispose: () => void;

import * as THREE from 'three';
declare type FBOSettings = {
type FBOSettings = {
samples?: number;
depth?: boolean;
} & THREE.WebGLRenderTargetOptions;
} & THREE.RenderTargetOptions;
declare function useFBO(width?: number, height?: number, settings?: FBOSettings): THREE.WebGLRenderTarget;
export { useFBO };

@@ -1,4 +0,5 @@

export declare const setUpdateRange: (attribute: THREE.BufferAttribute, updateRange: {
import { BufferAttribute } from 'three';
export declare const setUpdateRange: (attribute: BufferAttribute, updateRange: {
offset: number;
count: number;
}) => void;

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

} else {
// @ts-ignore
attribute.updateRange = updateRange;

@@ -12,0 +13,0 @@ }

@@ -51,3 +51,3 @@ import { Matrix4, MeshStandardMaterial, Texture } from 'three';

}
export declare type MeshReflectorMaterialProps = {
export type MeshReflectorMaterialProps = {
mixBlur: number;

@@ -54,0 +54,0 @@ mixStrength: number;

@@ -79,2 +79,4 @@ import * as THREE from 'three';

};
// @ts-ignore
this.onBeforeCompile = shader => {

@@ -81,0 +83,0 @@ shader.uniforms = {

import { Color, Vector2, Vector3, type Texture } from 'three';
declare type SpotLightMaterialProps = {
type SpotLightMaterialProps = {
depth: Texture | null;

@@ -4,0 +4,0 @@ opacity: number;

{
"name": "@pmndrs/vanilla",
"version": "1.19.0",
"version": "1.19.1",
"private": false,

@@ -5,0 +5,0 @@ "publishConfig": {

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