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

pixi3d

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pixi3d - npm Package Compare versions

Comparing version 0.8.1 to 0.9.0

types/console.d.ts

2

package.json
{
"name": "pixi3d",
"version": "0.8.1",
"version": "0.9.0",
"description": "The 3D rendering library which makes it simple to composite both 3D and 2D content on the web",

@@ -5,0 +5,0 @@ "main": "dist/pixi3d.js",

@@ -5,8 +5,14 @@ import * as PIXI from "pixi.js";

*/
export declare abstract class Animation {
export declare abstract class Animation extends PIXI.utils.EventEmitter {
name?: string | undefined;
private _ticker?;
private _update?;
/** The duration (in seconds) of this animation. */
abstract readonly duration: number;
/** The current position (in seconds) of this animation. */
abstract position: number;
/** The speed that the animation will play at. */
speed: number;
/** A value indicating if the animation is looping. */
loop: boolean;
/**

@@ -31,3 +37,3 @@ * Creates a new animation with the specified name.

*/
abstract update(delta: number): void;
update(delta: number): void;
}

@@ -7,5 +7,16 @@ import { Animation } from "../../animation";

export declare class glTFAnimation extends Animation {
/** Channels used by this animation. */
channels: glTFChannel[];
update(delta: number): void;
private _duration;
private _position;
private _channels;
/**
* Creates a new glTF animation.
* @param channels The channels used by this animation.
* @param name The name for the animation.
*/
constructor(channels: glTFChannel[], name?: string);
/** The duration (in seconds) of this animation. */
get duration(): number;
/** The current position (in seconds) of this animation. */
get position(): number;
set position(value: number);
}

@@ -28,2 +28,6 @@ import * as PIXI from "pixi.js";

/**
* Destroys the material and it's used resources.
*/
destroy(): void;
/**
* Renders the specified mesh.

@@ -30,0 +34,0 @@ * @param mesh The mesh to render.

@@ -8,2 +8,3 @@ import * as PIXI from "pixi.js";

function build(renderer: PIXI.Renderer, mesh: Mesh3D, geometry: MeshGeometry3D, material: StandardMaterial, lightingEnvironment: LightingEnvironment): string[] | undefined;
function hasSkinningTextureFeature(features: string[]): boolean;
}

@@ -28,2 +28,3 @@ import * as PIXI from "pixi.js";

private _lightsCount?;
private _skinUniforms;
/** The roughness of the material. */

@@ -84,2 +85,3 @@ roughness: number;

set unlit(value: boolean);
destroy(): void;
/**

@@ -86,0 +88,0 @@ * Invalidates the shader so it can be rebuilt with the current features.

@@ -7,3 +7,3 @@ import * as PIXI from "pixi.js";

get name(): string;
addGeometryAttributes(geometry: MeshGeometry3D): void;
createShaderGeometry(geometry: MeshGeometry3D): PIXI.Geometry;
}

@@ -6,6 +6,6 @@ import * as PIXI from "pixi.js";

/**
* Geometry which can add the required attributes for a specific shader.
* Geometry with mesh data (i.e. positions, normals, uvs).
*/
export declare class MeshGeometry3D extends PIXI.Geometry {
private _shaders;
export declare class MeshGeometry3D {
private _shaderGeometry;
indices?: MeshGeometryAttribute;

@@ -19,14 +19,21 @@ positions?: MeshGeometryAttribute;

weights?: MeshGeometryAttribute;
addAttribute(id: string, buffer?: PIXI.Buffer | number[], size?: number, normalized?: boolean, type?: number, stride?: number, start?: number): MeshGeometry3D;
addIndex(buffer?: PIXI.Buffer | number[]): MeshGeometry3D;
/**
* Adds the attributes required by the specified shader.
* Returns geometry with attributes required by the specified shader.
* @param shader The shader to use.
*/
addShaderAttributes(shader: MeshShader): void;
getShaderGeometry(shader: MeshShader): PIXI.Geometry;
/**
* Returns a value indicating if attributes are compatible with the specified shader.
* @param shader The shader to test for compatibility.
* Creates geometry with attributes required by the specified shader.
* @param shader The shader to use.
*/
hasShaderAttributes(shader: MeshShader): boolean;
addShaderGeometry(shader: MeshShader): void;
/**
* Returns a value indicating if geometry with required attributes has been created the specified shader.
* @param shader The shader to test.
*/
hasShaderGeometry(shader: MeshShader): boolean;
/**
* Destroys the geometry and it's used resources.
*/
destroy(): void;
}

@@ -19,6 +19,6 @@ import * as PIXI from "pixi.js";

/**
* Adds the required attributes used by this shader to the specified geometry. Override when using custom attributes.
* @param geometry The geometry to add attributes to.
* Creates geometry with required attributes used by this shader. Override when using custom attributes.
* @param geometry The geometry with mesh data.
*/
addGeometryAttributes(geometry: MeshGeometry3D): void;
createShaderGeometry(geometry: MeshGeometry3D): PIXI.Geometry;
/**

@@ -25,0 +25,0 @@ * Renders the geometry of the specified mesh.

@@ -26,2 +26,6 @@ import * as PIXI from "pixi.js";

constructor(geometry: MeshGeometry3D, material?: Material | undefined);
/**
* Destroys the mesh and it's used resources.
*/
destroy(): void;
_render(renderer: PIXI.Renderer): void;

@@ -28,0 +32,0 @@ /**

export declare namespace Platform {
function getMaxVertexUniformVectors(renderer: PIXI.Renderer): number;
function isFloatTextureSupported(renderer: PIXI.Renderer): boolean;
function isHalfFloatFramebufferSupported(renderer: PIXI.Renderer): boolean;

@@ -3,0 +5,0 @@ function isFloatFramebufferSupported(renderer: PIXI.Renderer): boolean;

@@ -47,2 +47,6 @@ import { Light } from "../lighting/light";

/**
* Destroys the shadow casting light and it's used resources.
*/
destroy(): void;
/**
* Clears the rendered shadow texture.

@@ -49,0 +53,0 @@ */

Sorry, the diff of this file is too big to display

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