@predy-js/editor-gizmo
Advanced tools
Comparing version 0.3.0-beta.40 to 0.3.0-beta.43
@@ -5,4 +5,4 @@ /// <reference types="hammerjs" /> | ||
import type { GizmoSystem } from '../GizmoSystem'; | ||
import type { Mesh } from '@predy-js/render-interface'; | ||
import type { BezierPathValue } from '@predy-js/specification'; | ||
import type { mat4, Mesh } from '@predy-js/render-interface'; | ||
import type { BezierPathValue, vec4 } from '@predy-js/specification'; | ||
import { BaseEditorGizmoItem } from './BaseEditorGizmoItem'; | ||
@@ -19,2 +19,5 @@ type PointParams = { | ||
tempPos: vec3; | ||
tempQuat: vec4; | ||
tempSize: vec3; | ||
tempMat4: mat4; | ||
get thickness(): number; | ||
@@ -25,2 +28,3 @@ get controlPointParams(): PointParams; | ||
get cameraToItemDistance(): number; | ||
get worldSize(): number; | ||
get meshes(): Map<string, Mesh>; | ||
@@ -27,0 +31,0 @@ set meshes(m: Map<string, Mesh>); |
@@ -9,3 +9,3 @@ /// <reference types="hammerjs" /> | ||
subType: GizmoSubtype; | ||
isLocalCoord: boolean; | ||
isGlobalCoord: boolean; | ||
hoveredId: number; | ||
@@ -12,0 +12,0 @@ _angleAccumulation: number; |
@@ -9,3 +9,3 @@ /// <reference types="hammerjs" /> | ||
subType: GizmoSubtype; | ||
isLocalCoord: boolean; | ||
isGlobalCoord: boolean; | ||
hoveredId: number; | ||
@@ -12,0 +12,0 @@ tempPos: vec3; |
@@ -31,3 +31,3 @@ import type { BaseItem, BezierPathValue, ModelLightOptions, ParticleShape } from '@predy-js/specification'; | ||
export interface GizmoTransformData { | ||
isLocalCoord?: boolean; | ||
isGlobalCoord?: boolean; | ||
} | ||
@@ -34,0 +34,0 @@ export interface GizmoData { |
@@ -83,2 +83,22 @@ import { GizmoSubtype } from 'src/types'; | ||
disabledSchemas?: undefined; | ||
} | { | ||
type: string; | ||
pluginName: string; | ||
pn: number; | ||
delay: number; | ||
duration: number; | ||
id: string; | ||
options: { | ||
subType: GizmoSubtype; | ||
property: string; | ||
targets: string[]; | ||
data: { | ||
position: number[]; | ||
}; | ||
}; | ||
name?: undefined; | ||
endBehavior?: undefined; | ||
transform?: undefined; | ||
renderer?: undefined; | ||
disabledSchemas?: undefined; | ||
})[]; | ||
@@ -85,0 +105,0 @@ downgrade: { |
@@ -82,3 +82,3 @@ import { GizmoSubtype } from 'src/types'; | ||
children: number[]; | ||
nodes: { | ||
nodes: ({ | ||
id: string; | ||
@@ -90,5 +90,16 @@ name: string; | ||
size: number[]; | ||
translate?: undefined; | ||
}; | ||
children: number[]; | ||
}[]; | ||
} | { | ||
id: string; | ||
name: string; | ||
transform: { | ||
quat: number[]; | ||
position: number[]; | ||
size: number[]; | ||
translate: number[][]; | ||
}; | ||
children: never[]; | ||
})[]; | ||
}; | ||
@@ -185,2 +196,28 @@ disabledSchemas: never[]; | ||
transform?: undefined; | ||
} | { | ||
type: string; | ||
pluginName: string; | ||
pn: number; | ||
delay: number; | ||
duration: number; | ||
id: string; | ||
options: { | ||
subType: GizmoSubtype; | ||
property: string; | ||
targets: string[]; | ||
data: number[][]; | ||
primitives?: undefined; | ||
fov?: undefined; | ||
near?: undefined; | ||
far?: undefined; | ||
color?: undefined; | ||
intensity?: undefined; | ||
lightType?: undefined; | ||
direction?: undefined; | ||
}; | ||
name?: undefined; | ||
parentId?: undefined; | ||
disabledSchemas?: undefined; | ||
tree?: undefined; | ||
transform?: undefined; | ||
})[]; | ||
@@ -187,0 +224,0 @@ downgrade: { |
{ | ||
"name": "@predy-js/editor-gizmo", | ||
"version": "0.3.0-beta.40", | ||
"version": "0.3.0-beta.43", | ||
"description": "gizmo", | ||
@@ -19,5 +19,5 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@predy-js/player": "0.3.0-beta.40", | ||
"@predy-js/render-interface": "0.3.0-beta.40", | ||
"@predy-js/specification": "0.3.0-beta.40", | ||
"@predy-js/player": "0.3.0-beta.43", | ||
"@predy-js/render-interface": "0.3.0-beta.43", | ||
"@predy-js/specification": "0.3.0-beta.43", | ||
"@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
491917
13131