@predy-js/editor-gizmo
Advanced tools
Comparing version 0.1.25-beta.11 to 0.1.25-beta.12
@@ -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; | ||
} |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
198696
37
4910