Type Alias: GetMeshPosition
GetMeshPosition = (
query) =>Promise<Nullable<{screen: {height:number;visible:boolean;width:number;x:number;y:number; };world: {center:ProjectionPoint;max:ProjectionPoint;min:ProjectionPoint; }; }>>
Returns the combined world-space bounds and canvas rectangle of matching meshes.
Omit instanceId for a standard product, or provide the placed item ID for a modular product.
Match by admin mesh ID, exact case-sensitive mesh name, or JavaScript RegExp against the
mesh name. Provide at least one mesh filter. When both are provided, both must match.
Matches are read from the current configuration on every call. Enabled hotspot anchor meshes
are included even when their geometry is invisible.
The screen rectangle uses CSS pixels from the active canvas's top-left corner.
visible indicates overlap with the camera viewport and depth range, independent of
occlusion by other parts. Returns null when no visible mesh or enabled hotspot anchor matches,
or projection is unavailable.
Parameters
query
instanceId?
string
meshId?
string
meshName?
string | RegExp
Returns
Promise<Nullable<{ screen: { height: number; visible: boolean; width: number; x: number; y: number; }; world: { center: ProjectionPoint; max: ProjectionPoint; min: ProjectionPoint; }; }>>
Example
const seat = await window.mimeeqApp.actions.getMeshPosition({ meshName: /^seat-/i });
if (seat?.screen.visible) console.log(seat.screen.x, seat.screen.y);