Variable validateInteractionParameterSettingsConst
validateInteractionParameterSettings: (
param: unknown,
) => z.ZodSafeParseResult<
| {
props: {
activeMode?: "default"
| "activeOnStart";
availableColor?: string | { [x: string]: unknown } | null;
draggingColor?: string | { [x: string]: unknown } | null;
hover?: boolean;
hoverColor?: string | { [x: string]: unknown } | null;
objects?:
| {
nameFilter: string;
restrictions: string[];
dragAnchors?: { id: ...; position: ...; rotation?: ... }[]
| null;
dragOrigin?: number[] | null;
}[]
| null;
prompt?: | {
activeText?: string
| null;
activeTitle?: string | null;
inactiveTitle?: string | null;
}
| null;
restrictions?: | {
id: string;
type: string;
rotation?: { angle: number; axis: (...)[] }
| null;
[x: string]: unknown;
}[]
| null;
};
type: "dragging";
}
| {
props: {
activeMode?: "default"
| "activeOnStart";
availableColor?: string | { [x: string]: unknown } | null;
corners?:
| {
bottomLeft?: boolean;
bottomRight?: boolean;
topLeft?: boolean;
topRight?: boolean;
}
| null;
deselectOnEmpty?: boolean;
edgeControls?: | {
bottom?: boolean;
left?: boolean;
right?: boolean;
top?: boolean;
}
| null;
enableRotation?: boolean;
enableScaling?: boolean;
enableTranslation?: boolean;
hover?: boolean;
hoverColor?: string
| { [x: string]: unknown }
| null;
maximumSelection?: number | null;
minimumSelection?: number | null;
nameFilter?: string[] | null;
objects?:
| {
nameFilter: string;
restrictions: string[];
dragAnchors?: { id: ...; position: ...; rotation?: ... }[]
| null;
dragOrigin?: number[] | null;
}[]
| null;
plane?: | {
type: string;
vector_u: number[];
vector_v: number[];
id?: string;
origin?: number[];
rotation?: { angle: number; axis: number[] }
| null;
[x: string]: unknown;
}
| null;
prompt?: | {
activeText?: string
| null;
activeTitle?: string | null;
inactiveTitle?: string | null;
}
| null;
restrictions?: | {
id: string;
type: string;
rotation?: { angle: number; axis: (...)[] }
| null;
[x: string]: unknown;
}[]
| null;
rotation?: | {
handleDistance?: number
| null;
max?: number | null;
min?: number | null;
step?: number | null;
stepThreshold?: number | null;
visualization?:
| {
distanceLabels?: boolean;
distanceMultiplicationFactor?: number
| null;
edgeControlVisualization?: { lines?: ...; points?: ... } | null;
lines?: any;
pointerPosition?: boolean;
pointLabels?: boolean;
points?: any;
wireframe?: boolean;
wireframeColor?: string | null;
}
| null;
}
| null;
scaling?: | {
step?: number
| null;
uMax?: number | null;
uMin?: number | null;
uniform?: boolean;
visualization?:
| {
distanceLabels?: boolean;
distanceMultiplicationFactor?: number
| null;
edgeControlVisualization?: { lines?: ...; points?: ... } | null;
lines?: any;
pointerPosition?: boolean;
pointLabels?: boolean;
points?: any;
wireframe?: boolean;
wireframeColor?: string | null;
}
| null;
vMax?: number
| null;
vMin?: number | null;
}
| null;
selectionColor?: string
| { [x: string]: unknown }
| null;
};
type: "rectangleTransform";
}
| {
props: {
activeMode?: "default"
| "activeOnStart";
availableColor?: string | { [x: string]: unknown } | null;
deselectOnEmpty?: boolean;
hover?: boolean;
hoverColor?: string | { [x: string]: unknown } | null;
maximumSelection?: number | null;
minimumSelection?: number | null;
nameFilter?: string[] | null;
prompt?:
| {
activeText?: string
| null;
activeTitle?: string | null;
inactiveTitle?: string | null;
}
| null;
selectionColor?: string
| { [x: string]: unknown }
| null;
};
type: "selection";
}
| {
props: {
activeMode?: "default"
| "activeOnStart";
availableColor?: string | { [x: string]: unknown } | null;
deselectOnEmpty?: boolean;
enableRotation?: boolean;
enableRotationAxes?:
| {
x?: boolean;
xy?: boolean;
xz?: boolean;
y?: boolean;
yz?: boolean;
z?: boolean;
}
| null;
enableScaling?: boolean;
enableScalingAxes?: | {
x?: boolean;
xy?: boolean;
xz?: boolean;
y?: boolean;
yz?: boolean;
z?: boolean;
}
| null;
enableTranslation?: boolean;
enableTranslationAxes?: | {
x?: boolean;
xy?: boolean;
xz?: boolean;
y?: boolean;
yz?: boolean;
z?: boolean;
}
| null;
hover?: boolean;
hoverColor?: string
| { [x: string]: unknown }
| null;
maximumSelection?: number | null;
minimumSelection?: number | null;
nameFilter?: string[] | null;
objects?:
| {
nameFilter: string;
restrictions: string[];
dragAnchors?: { id: ...; position: ...; rotation?: ... }[]
| null;
dragOrigin?: number[] | null;
}[]
| null;
prompt?: | {
activeText?: string
| null;
activeTitle?: string | null;
inactiveTitle?: string | null;
}
| null;
restrictions?: | {
id: string;
type: string;
rotation?: { angle: number; axis: (...)[] }
| null;
[x: string]: unknown;
}[]
| null;
scale?: number
| null;
selectionColor?: string | { [x: string]: unknown } | null;
space?: "local" | "world" | null;
};
type: "gumball";
},
>
Type Declaration
- (
param: unknown,
): z.ZodSafeParseResult<
| {
props: {
activeMode?: "default"
| "activeOnStart";
availableColor?: string | { [x: string]: unknown } | null;
draggingColor?: string | { [x: string]: unknown } | null;
hover?: boolean;
hoverColor?: string | { [x: string]: unknown } | null;
objects?:
| {
nameFilter: string;
restrictions: string[];
dragAnchors?: { id: ...; position: ...; rotation?: ... }[]
| null;
dragOrigin?: number[] | null;
}[]
| null;
prompt?: | {
activeText?: string
| null;
activeTitle?: string | null;
inactiveTitle?: string | null;
}
| null;
restrictions?: | {
id: string;
type: string;
rotation?: { angle: number; axis: (...)[] }
| null;
[x: string]: unknown;
}[]
| null;
};
type: "dragging";
}
| {
props: {
activeMode?: "default"
| "activeOnStart";
availableColor?: string | { [x: string]: unknown } | null;
corners?:
| {
bottomLeft?: boolean;
bottomRight?: boolean;
topLeft?: boolean;
topRight?: boolean;
}
| null;
deselectOnEmpty?: boolean;
edgeControls?: | {
bottom?: boolean;
left?: boolean;
right?: boolean;
top?: boolean;
}
| null;
enableRotation?: boolean;
enableScaling?: boolean;
enableTranslation?: boolean;
hover?: boolean;
hoverColor?: string
| { [x: string]: unknown }
| null;
maximumSelection?: number | null;
minimumSelection?: number | null;
nameFilter?: string[] | null;
objects?:
| {
nameFilter: string;
restrictions: string[];
dragAnchors?: { id: ...; position: ...; rotation?: ... }[]
| null;
dragOrigin?: number[] | null;
}[]
| null;
plane?: | {
type: string;
vector_u: number[];
vector_v: number[];
id?: string;
origin?: number[];
rotation?: { angle: number; axis: number[] }
| null;
[x: string]: unknown;
}
| null;
prompt?: | {
activeText?: string
| null;
activeTitle?: string | null;
inactiveTitle?: string | null;
}
| null;
restrictions?: | {
id: string;
type: string;
rotation?: { angle: number; axis: (...)[] }
| null;
[x: string]: unknown;
}[]
| null;
rotation?: | {
handleDistance?: number
| null;
max?: number | null;
min?: number | null;
step?: number | null;
stepThreshold?: number | null;
visualization?:
| {
distanceLabels?: boolean;
distanceMultiplicationFactor?: number
| null;
edgeControlVisualization?: { lines?: ...; points?: ... } | null;
lines?: any;
pointerPosition?: boolean;
pointLabels?: boolean;
points?: any;
wireframe?: boolean;
wireframeColor?: string | null;
}
| null;
}
| null;
scaling?: | {
step?: number
| null;
uMax?: number | null;
uMin?: number | null;
uniform?: boolean;
visualization?:
| {
distanceLabels?: boolean;
distanceMultiplicationFactor?: number
| null;
edgeControlVisualization?: { lines?: ...; points?: ... } | null;
lines?: any;
pointerPosition?: boolean;
pointLabels?: boolean;
points?: any;
wireframe?: boolean;
wireframeColor?: string | null;
}
| null;
vMax?: number
| null;
vMin?: number | null;
}
| null;
selectionColor?: string
| { [x: string]: unknown }
| null;
};
type: "rectangleTransform";
}
| {
props: {
activeMode?: "default"
| "activeOnStart";
availableColor?: string | { [x: string]: unknown } | null;
deselectOnEmpty?: boolean;
hover?: boolean;
hoverColor?: string | { [x: string]: unknown } | null;
maximumSelection?: number | null;
minimumSelection?: number | null;
nameFilter?: string[] | null;
prompt?:
| {
activeText?: string
| null;
activeTitle?: string | null;
inactiveTitle?: string | null;
}
| null;
selectionColor?: string
| { [x: string]: unknown }
| null;
};
type: "selection";
}
| {
props: {
activeMode?: "default"
| "activeOnStart";
availableColor?: string | { [x: string]: unknown } | null;
deselectOnEmpty?: boolean;
enableRotation?: boolean;
enableRotationAxes?:
| {
x?: boolean;
xy?: boolean;
xz?: boolean;
y?: boolean;
yz?: boolean;
z?: boolean;
}
| null;
enableScaling?: boolean;
enableScalingAxes?: | {
x?: boolean;
xy?: boolean;
xz?: boolean;
y?: boolean;
yz?: boolean;
z?: boolean;
}
| null;
enableTranslation?: boolean;
enableTranslationAxes?: | {
x?: boolean;
xy?: boolean;
xz?: boolean;
y?: boolean;
yz?: boolean;
z?: boolean;
}
| null;
hover?: boolean;
hoverColor?: string
| { [x: string]: unknown }
| null;
maximumSelection?: number | null;
minimumSelection?: number | null;
nameFilter?: string[] | null;
objects?:
| {
nameFilter: string;
restrictions: string[];
dragAnchors?: { id: ...; position: ...; rotation?: ... }[]
| null;
dragOrigin?: number[] | null;
}[]
| null;
prompt?: | {
activeText?: string
| null;
activeTitle?: string | null;
inactiveTitle?: string | null;
}
| null;
restrictions?: | {
id: string;
type: string;
rotation?: { angle: number; axis: (...)[] }
| null;
[x: string]: unknown;
}[]
| null;
scale?: number
| null;
selectionColor?: string | { [x: string]: unknown } | null;
space?: "local" | "world" | null;
};
type: "gumball";
},
> Returns z.ZodSafeParseResult<
| {
props: {
activeMode?: "default"
| "activeOnStart";
availableColor?: string | { [x: string]: unknown } | null;
draggingColor?: string | { [x: string]: unknown } | null;
hover?: boolean;
hoverColor?: string | { [x: string]: unknown } | null;
objects?:
| {
nameFilter: string;
restrictions: string[];
dragAnchors?: { id: ...; position: ...; rotation?: ... }[]
| null;
dragOrigin?: number[] | null;
}[]
| null;
prompt?: | {
activeText?: string
| null;
activeTitle?: string | null;
inactiveTitle?: string | null;
}
| null;
restrictions?: | {
id: string;
type: string;
rotation?: { angle: number; axis: (...)[] }
| null;
[x: string]: unknown;
}[]
| null;
};
type: "dragging";
}
| {
props: {
activeMode?: "default"
| "activeOnStart";
availableColor?: string | { [x: string]: unknown } | null;
corners?:
| {
bottomLeft?: boolean;
bottomRight?: boolean;
topLeft?: boolean;
topRight?: boolean;
}
| null;
deselectOnEmpty?: boolean;
edgeControls?: | {
bottom?: boolean;
left?: boolean;
right?: boolean;
top?: boolean;
}
| null;
enableRotation?: boolean;
enableScaling?: boolean;
enableTranslation?: boolean;
hover?: boolean;
hoverColor?: string
| { [x: string]: unknown }
| null;
maximumSelection?: number | null;
minimumSelection?: number | null;
nameFilter?: string[] | null;
objects?:
| {
nameFilter: string;
restrictions: string[];
dragAnchors?: { id: ...; position: ...; rotation?: ... }[]
| null;
dragOrigin?: number[] | null;
}[]
| null;
plane?: | {
type: string;
vector_u: number[];
vector_v: number[];
id?: string;
origin?: number[];
rotation?: { angle: number; axis: number[] }
| null;
[x: string]: unknown;
}
| null;
prompt?: | {
activeText?: string
| null;
activeTitle?: string | null;
inactiveTitle?: string | null;
}
| null;
restrictions?: | {
id: string;
type: string;
rotation?: { angle: number; axis: (...)[] }
| null;
[x: string]: unknown;
}[]
| null;
rotation?: | {
handleDistance?: number
| null;
max?: number | null;
min?: number | null;
step?: number | null;
stepThreshold?: number | null;
visualization?:
| {
distanceLabels?: boolean;
distanceMultiplicationFactor?: number
| null;
edgeControlVisualization?: { lines?: ...; points?: ... } | null;
lines?: any;
pointerPosition?: boolean;
pointLabels?: boolean;
points?: any;
wireframe?: boolean;
wireframeColor?: string | null;
}
| null;
}
| null;
scaling?: | {
step?: number
| null;
uMax?: number | null;
uMin?: number | null;
uniform?: boolean;
visualization?:
| {
distanceLabels?: boolean;
distanceMultiplicationFactor?: number
| null;
edgeControlVisualization?: { lines?: ...; points?: ... } | null;
lines?: any;
pointerPosition?: boolean;
pointLabels?: boolean;
points?: any;
wireframe?: boolean;
wireframeColor?: string | null;
}
| null;
vMax?: number
| null;
vMin?: number | null;
}
| null;
selectionColor?: string
| { [x: string]: unknown }
| null;
};
type: "rectangleTransform";
}
| {
props: {
activeMode?: "default"
| "activeOnStart";
availableColor?: string | { [x: string]: unknown } | null;
deselectOnEmpty?: boolean;
hover?: boolean;
hoverColor?: string | { [x: string]: unknown } | null;
maximumSelection?: number | null;
minimumSelection?: number | null;
nameFilter?: string[] | null;
prompt?:
| {
activeText?: string
| null;
activeTitle?: string | null;
inactiveTitle?: string | null;
}
| null;
selectionColor?: string
| { [x: string]: unknown }
| null;
};
type: "selection";
}
| {
props: {
activeMode?: "default"
| "activeOnStart";
availableColor?: string | { [x: string]: unknown } | null;
deselectOnEmpty?: boolean;
enableRotation?: boolean;
enableRotationAxes?:
| {
x?: boolean;
xy?: boolean;
xz?: boolean;
y?: boolean;
yz?: boolean;
z?: boolean;
}
| null;
enableScaling?: boolean;
enableScalingAxes?: | {
x?: boolean;
xy?: boolean;
xz?: boolean;
y?: boolean;
yz?: boolean;
z?: boolean;
}
| null;
enableTranslation?: boolean;
enableTranslationAxes?: | {
x?: boolean;
xy?: boolean;
xz?: boolean;
y?: boolean;
yz?: boolean;
z?: boolean;
}
| null;
hover?: boolean;
hoverColor?: string
| { [x: string]: unknown }
| null;
maximumSelection?: number | null;
minimumSelection?: number | null;
nameFilter?: string[] | null;
objects?:
| {
nameFilter: string;
restrictions: string[];
dragAnchors?: { id: ...; position: ...; rotation?: ... }[]
| null;
dragOrigin?: number[] | null;
}[]
| null;
prompt?: | {
activeText?: string
| null;
activeTitle?: string | null;
inactiveTitle?: string | null;
}
| null;
restrictions?: | {
id: string;
type: string;
rotation?: { angle: number; axis: (...)[] }
| null;
[x: string]: unknown;
}[]
| null;
scale?: number
| null;
selectionColor?: string | { [x: string]: unknown } | null;
space?: "local" | "world" | null;
};
type: "gumball";
},
>