@predy-js/editor-gizmo
Advanced tools
Comparing version 0.3.0-beta.23 to 0.3.0-beta.26
@@ -1,2 +0,2 @@ | ||
import type { mat4 } from '@predy-js/math'; | ||
import type { vec3, mat4 } from '@predy-js/math'; | ||
import type { GeometryDrawMode } from '@predy-js/render-interface'; | ||
@@ -9,4 +9,5 @@ import { GeometryType } from '.'; | ||
renderMode?: GeometryDrawMode; | ||
color?: vec3; | ||
} | ||
export declare function createGeometry(type: GeometryType, size: Record<string, any>, options: GeometryOptions): Normal3dGeometryData; | ||
export {}; |
@@ -6,2 +6,3 @@ import type { GeometryDrawMode } from '@predy-js/render-interface'; | ||
points: Float32Array; | ||
colors?: Float32Array; | ||
indices: Uint16Array; | ||
@@ -8,0 +9,0 @@ mode?: GeometryDrawMode; |
@@ -20,3 +20,4 @@ /// <reference types="hammerjs" /> | ||
onTap(e: HammerInput, gs: GizmoSystem): void; | ||
onWheel(e: WheelEvent, gs: GizmoSystem): void; | ||
generateBoundingBox(): number[][]; | ||
} |
@@ -14,2 +14,5 @@ /// <reference types="hammerjs" /> | ||
onHover: (e: MouseEvent, gs: GizmoSystem) => void; | ||
onWheel?: (e: WheelEvent, gs: GizmoSystem) => void; | ||
onKeydown?: (e: KeyboardEvent, gs: GizmoSystem) => void; | ||
onKeyup?: (e: KeyboardEvent, gs: GizmoSystem) => void; | ||
} | ||
@@ -27,3 +30,5 @@ export declare class GizmoSystem { | ||
get gizmos(): EditorGizmo[] | undefined | null; | ||
isCtrlOrCmdPressed: boolean; | ||
isCtrlPressed: boolean; | ||
isAltPressed: boolean; | ||
isShiftPressed: boolean; | ||
selectTemp: string[]; | ||
@@ -30,0 +35,0 @@ constructor(); |
import type { BaseItem, BezierPathValue, ParticleShape } from '@predy-js/specification'; | ||
import type { CameraParams } from './types'; | ||
export * from '@predy-js/player/dist/type/index'; | ||
export * from '@predy-js/player/dist/src/math/Camera'; | ||
export declare enum GizmoName { | ||
gizmo = "gizmo", | ||
emitter = "gizmo-emitter", | ||
bezier = "gizmo-bezier", | ||
transform = "gizmo-transform", | ||
translation = "gizmo-translation-3d", | ||
rotation = "gizmo-rotation-3d", | ||
scale = "gizmo-scale-3d", | ||
camera = "gizmo-camera" | ||
} | ||
export declare enum GizmoSubtype { | ||
@@ -8,3 +19,4 @@ none = 0, | ||
transform = 2, | ||
emitter = 3 | ||
emitter = 3, | ||
camera = 4 | ||
} | ||
@@ -19,2 +31,3 @@ export type TransformGizmoData = { | ||
[GizmoSubtype.emitter]: ParticleShape; | ||
[GizmoSubtype.camera]: CameraParams; | ||
} | ||
@@ -21,0 +34,0 @@ export interface GizmoItem<T extends GizmoSubtype> extends BaseItem { |
{ | ||
"name": "@predy-js/editor-gizmo", | ||
"version": "0.3.0-beta.23", | ||
"version": "0.3.0-beta.26", | ||
"description": "gizmo", | ||
@@ -19,5 +19,5 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@predy-js/player": "0.3.0-beta.23", | ||
"@predy-js/render-interface": "0.3.0-beta.23", | ||
"@predy-js/specification": "0.3.0-beta.23", | ||
"@predy-js/player": "0.3.0-beta.26", | ||
"@predy-js/render-interface": "0.3.0-beta.26", | ||
"@predy-js/specification": "0.3.0-beta.26", | ||
"@rollup/plugin-commonjs": "^21.0.3", | ||
@@ -24,0 +24,0 @@ "@rollup/plugin-image": "^3.0.3", |
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
418279
124
10676