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

@predy-js/editor-gizmo

Package Overview
Dependencies
Maintainers
2
Versions
459
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@predy-js/editor-gizmo - npm Package Compare versions

Comparing version 0.1.25-beta.11 to 0.1.25-beta.12

dist/src/geometry-data/circle.d.ts

9

dist/src/EditorGizmoItem.d.ts

@@ -15,2 +15,9 @@ /// <reference types="hammerjs" />

prevMousePos: vec2;
isDraging: boolean;
startRotationPoint: vec3;
endRotationPoint: vec3;
lastStartAngle: number;
lastEndAngle: number;
get isRotating(): boolean;
get isTranslating(): boolean;
onConstructed(options: any): void;

@@ -25,3 +32,3 @@ update(): void;

createRayWorld(x: number, y: number): vec3;
createRayToPlane(rayWorld: vec3, objOriginPos: vec3, planeNormal?: vec3): vec3;
createRayToPlane(rayWorld: vec3, objPos: vec3, planeNormal?: vec3): vec3;
addMeshesBezier(bezierCurve: BezierPathValue): void;

@@ -28,0 +35,0 @@ addMeshesGizmo(data: TransformGizmoData): void;

@@ -8,2 +8,3 @@ import { Composition, PredyPlayerRenderFrame, PredyPlugin, VFXItem, PredyPluginLoadedScene } from "@predy-js/player";

isAdded: boolean;
isDisplay: boolean;
gizmoSystem: GizmoSystem;

@@ -14,2 +15,3 @@ onCompositionConstructed(composition: Composition, scene: PredyPluginLoadedScene): void;

prepareRenderFrame(composition: Composition, frame: PredyPlayerRenderFrame): boolean;
onCompositionDestroyed(composition: Composition): void;
}

3

dist/src/geometry-data/index.d.ts

@@ -15,3 +15,4 @@ import type { vec3 } from '@predy-js/specification';

PointLight = 10,
FloorGrid = 11
FloorGrid = 11,
Sector = 12
}

@@ -18,0 +19,0 @@ export interface MeshOption {

@@ -6,2 +6,4 @@ import { vec3, mat4 } from "@predy-js/render-interface";

export { createRotationGizmoGeometry } from './rotation/geometry';
export { createSectorGeometry, createsSectorGeometry } from "./rotation/sector/geometry";
export { createSectorMesh } from "./rotation/sector/mesh";
export declare const color: {

@@ -8,0 +10,0 @@ xAxisColor: vec3;

/// <reference types="hammerjs" />
import { GizmoSystemDelegate } from "./types";
import { GizmoSystemDelegate, Payload } from "./types";
export interface Gizmo {

@@ -22,3 +22,3 @@ subType: number;

reset(): void;
didChangePropertyValue(targets: string[], property: string, value: any): void;
didChangePropertyValue(payload: Payload[]): void;
didSelectItems(itemIds: string[], multiSelect?: boolean): void;

@@ -25,0 +25,0 @@ needsUpdateFrame(): void;

@@ -25,4 +25,9 @@ import { BaseItem, BezierPathValue } from '@predy-js/specification';

}
export interface Payload {
id: string;
property: string;
value: any;
}
export interface GizmoSystemDelegate {
didChangePropertyValue(targets: string[], property: string, value: any): void;
didChangePropertyValue(payload: Payload[]): void;
needsUpdateFrame(): void;

@@ -29,0 +34,0 @@ didSelectItems(ids: string[]): void;

@@ -9,1 +9,2 @@ import { vec3, vec4, mat4, Ray, Camera } from '@predy-js/player';

export declare function calculateAngleBetweenVectors(vec1: vec3, vec2: vec3): number;
export declare function calculateRotationMatrix(startVec: vec3, endVec: vec3, P: vec3): mat4;
{
"name": "@predy-js/editor-gizmo",
"version": "0.1.25-beta.11",
"version": "0.1.25-beta.12",
"description": "gizmo",

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

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