Guide for AI assistants and new integrators
Start here when you are building or modifying a Mimeeq integration. A Mimeeq embed runs a product configurator, catalog, basket, or authentication flow in a host web page. A configurator lets a shopper pick options and view a standard product or assemble a modular scene. Its browser API is window.mimeeqApp.
Choose how to extend the embed
| Approach | When to use it |
|---|---|
| Embed template settings | Change the default UI, locale, translation set, finish behavior, pricing mode, or basket integration. The template applies these settings for every page that uses it. |
| Custom JavaScript | Add a few behaviors to the existing UI, such as writing to a host cart, greeting a signed-in user, or adding a share button. Use the public API from a host script or the template's custom JS. Start with the Web API recipes. |
| Custom UI | Build your own configurator controls and presentation. Use observers to render state, actions to change it, and events for handoffs and notifications. |
Start safely
Host JavaScript can load before or after the embed. Use this pattern to subscribe once when the API is available. It also renders the initial state for a late-loading script.
function start() {
const quantity = window.mimeeqApp.observers.pricing.quantity;
const output = document.createElement('output');
document.body.append(output);
const subscription = quantity.subscribe(({ newValue }) => {
output.textContent = newValue == null ? 'Choose a quantity' : `Quantity: ${newValue}`;
});
document.querySelector('mmq-embed')?.addEventListener(
'mimeeq-embed-unmounted',
() => {
subscription.unsubscribe();
output.remove();
},
{ once: true },
);
}
if (window.mimeeqApp) start();
else document.addEventListener('mimeeq-api-installed', start, { once: true });
- API installed. To attach observers as early as possible, check for
window.mimeeqAppfirst and otherwise listen formimeeq-api-installedondocument. An older embed that does not emit that event can usemimeeq-app-loaded. - Embed loaded. The
mimeeq-app-loadedevent signals that the first embed has loaded. A modal or a product picker can load before a product opens. Watchstatus.productLoadedandstatus.loadingfor product-dependent code. - Deferred embed ready. Call
whenReady()on the specific<mmq-embed>before callingshow(). - 3D scene ready. Use
status.firstRenderfor camera and geometry features andstatus.sceneSettledwhen you need a still scene. Standard products can also use a 2D viewer. - Read state. Subscribe with
({ newValue, oldValue }) => { ... }. The first emission gives the current value and has nooldValue. UsegetValue()for a synchronous read. Handlenull,undefined, empty arrays, and empty maps according to the observer contract. Treat all values as read-only. Some APIs return copies, and legacy observers can return shared state references. - Listen for events. Use
document.addEventListener()for configurator events and read the payload fromevent.detail. For teardown on removal, listen formimeeq-embed-unmountedon the embed element as shown above. Events are notifications and do not replay. UseembedInstanceIdwhere available to route events on a page with multiple embeds. - Clean up. Unsubscribe observers and remove event listeners, media watchers, and host controls when their owning UI unmounts. On a host that replaces the embed, attach them again for the new mount.
Know which identifier you have
| Identifier | Use it for |
|---|---|
embedInstanceId | Distinguishing embed mounts on a host page. Read it from observers.config.embedInstanceId or a payload that includes it. |
productId | Identifying a catalog product definition. Multiple placed items can share this ID. Get it from product.mainProductData or modular.catalog. |
instanceId | Identifying one placed item in a modular scene. Use keys from modular.sceneItems with per-item options, prices, bounds and placement actions. |
blockId | Identifying an option block or widget by its ID. Use block.id from optionSets.blocks or modular.instanceBlocks. |
Block code (blockName) | The authored code for a block. Use it to look up selectedOptionsByBlockCode or select an option by code. A block's name is its display label. |
Option code (option.code) | The authored code of a choice within a block. Use it with a block code for code-based selection. option.id identifies the option object. |
meshId | Identifies an authored mesh. Pair it with the instanceId returned by observers.meshes. |
snapId | Identifying a connector on a placed item. Pair it with the owning instanceId. Read these from modular.snapStatuses or modular.snapPlacementControls. |
configurationCode, variantCode, short code | A standard configuration code encodes options. Its full variant code includes the product prefix. An embed short code identifies an embed. A saved modular scene short code identifies the assembly. |
Standard products use a single configuration. Read optionSets.selectedOptionsByBlockCode, write selections through actions.markOptionByBlockNameAndOptionCode, and share with actions.getShareUrl(). Modular products contain individually placed items. Read item state by instance ID, write choices through actions.markOptionByCodeForInstances, and save or share through actions.getModularShareUrl().
Stay on the public API
- Use the documented observers, actions and utilities on
window.mimeeqApp. Check the Web API reference for argument types and return values. - Use documented events such as
mimeeq-app-loadedand the globals described in the relevant guide, such aswindow.mimeeqAuthfor sign-in flows. - Build host controls in your own DOM and style the embed through its documented CSS parts.
- Treat the documented surface as the full API contract. See simpler ways to do common tasks for updated examples.
For template-wide copy, manage an embed translation set in Mimeeq and assign it to the template. Mimeeq serves the published locale data through the embed translations API. Existing window.mimeeqCustomMessages overrides still take precedence per key on standard embeds. When moving a legacy integration to translation sets, migrate the values and remove the duplicate overrides so the template's values can take effect. Keep a host override only when the host specifically needs to supply copy. Embed translations API · Custom translations
API map
All names in the observer tables are relative to window.mimeeqApp.observers. Action and utility names are relative to window.mimeeqApp.actions and window.mimeeqApp.utils. The event table lists DOM event names.
Entry points
| Name | Use |
|---|---|
mmq-embed.whenReady() | Resolves when that embed is ready for show() and rejects with its configuration error if setup fails. |
version | Version of the loaded embed build. Unversioned builds report dev. |
mount | Mount an embed programmatically. For declarative embeds, use <mmq-embed> or <mmq-auth>. |
initialize | Initialize authentication and service configuration for a manual mount. The web components normally handle it. |
authorization.signIn | Start a sign-in session. |
authorization.signOut | End the current session. |
authorization.getUserData | Request user data. Use observers.auth.user to follow the embed's session state. |
authorization.forgotPassword | Request a password reset code. |
authorization.forgotPasswordSubmit | Submit the reset code and new password. |
authorization.resendSignUp | Resend a sign-up confirmation. |
authorization.getToken | Retrieve a session token for an authentication integration. |
config.pdf | Customize PDF generation. |
config.image | Customize generated images. |
config.icons | Customize built-in icons. |
mountLogin | Legacy login mount. Use mount or <mmq-auth> for new integrations. |
mountUserProfile | Legacy profile mount. Use mount or <mmq-auth> for new integrations. |
mountForgotPassword | Legacy password recovery mount. Use mount or <mmq-auth> for new integrations. |
mountFavourites | Legacy favourites mount. Use mount or <mmq-embed> for new integrations. |
mountARPage | Legacy AR page mount. Use mount or <mmq-embed> for new integrations. |
mountList | Legacy product list mount. Use mount or <mmq-embed> for new integrations. |
mountConfigurator | Legacy configurator mount. Use mount or <mmq-embed> for new integrations. |
MimeeqApp reference · Authorization reference · API configuration
Observers
Use every observer with subscribe() or getValue(). Observer usage · Observers reference
camera
| Observer | Current value |
|---|---|
camera.projectionMode | Current camera projection. |
camera.viewMode | Top when the camera looks within one degree of straight down. |
camera.autoRotateEnabled | Whether idle auto-rotation is enabled, including while it waits. |
camera.autoFitLocked | Whether auto-fit is locked by the author or by the integration. |
camera.isAnimating | Whether a finite camera transition is running. |
camera.zoomLevel | Eye-to-target distance in perspective, half the visible height in orthographic projection. |
camera.zoomLimits | The range used by setZoom, in the same units as zoomLevel. |
camera.position | Eye position in Y-up scene coordinates. |
camera.target | Look-at point in Y-up scene coordinates. |
auth
| Observer | Current value |
|---|---|
auth.user | Replays the current signed-in profile on subscription and emits null when signed out. |
scene
| Observer | Current value |
|---|---|
scene.bounds | Overall scene bounds, or null when there is no measured geometry. |
scene.instanceBounds | Measured modular item bounds by instance ID. |
status
| Observer | Use |
|---|---|
status.appReady | Check that the mounted 3D engine has initialized. |
status.productLoaded | Check whether main product data is present. |
status.firstRender | Wait for the mounted scene's first frame, including an empty modular start. |
status.loading | Track main product loading or absence. |
status.priceLoading | Track pending or running price calculation. |
status.productListLoading | Track product-list loading. |
status.busy | Check for unfinished queued 3D tasks. |
status.pdf | Track PDF generation through completion or failure. |
status.ar | Track AR as closed, generating, ready, or failed. |
status.loadError | Read the current embed failure as { type, reason, status? } or null. |
status.uiBlocked | Check for a canvas loader, image capture, or PDF generation. |
status.uiBlockedBy | Read UI blocking reasons, including generatingPdf during PDF generation. |
status.sceneActivity | Read current drawing activity, including camera motion and drag. |
status.sceneFrozen | Check whether the canvas loader is showing or drawing activity is idle. |
status.settled | Read product state once loaded and unblocked, with no active drag or pending 3D tasks. |
status.sceneSettled | Wait for both settled state and a still scene. |
meshes
| Observer | Use |
|---|---|
meshes.all | Inspect authored meshes and whether each is active, hidden, disabled, or missing. |
meshes.active | List active meshes, including enabled invisible anchors. |
meshes.collisions | List active collision meshes. |
meshes.hotspots | Read hotspot mesh references, activity, and presentation. |
meshes.materials | List materials, thumbnails, and the active meshes that use them. |
meshes.textures | Inspect channels and image URLs for materials in use. |
meshes.animations | List authored animation groups by instance. |
dimensions
| Observer | Use |
|---|---|
dimensions.available | Check if product and embed settings allow dimensions. |
dimensions.visible | Check whether the main overlay is active. |
dimensions.unit | Read the overlay's display unit. |
dimensions.values | Read measured width, height, and depth in millimetres. |
dimensions.custom | Read custom measurement IDs and optional labels. |
history
| Observer | Current value |
|---|---|
history.stack | The complete history stack of configuration changes. |
history.currentElement | The index of the currently active history entry. |
history.canUndo | Whether the configuration history has an undo step available. |
history.canRedo | Whether the configuration history has a redo step available. |
modular
| Observer | Current value |
|---|---|
modular.apcPrices | Component pricing data for modular APC pricing. |
modular.sceneSetup | Configuration settings for the 3D scene environment. |
modular.sceneValidity | Required-snap verdict and missing or broken snaps on items below their minimum. |
modular.elementAction | Information about the currently active element action. |
modular.chosenProductId | ID of the product selected for adding to the scene. |
modular.showCollisionWarning | Indicates whether a collision warning should be shown to the user. |
modular.isDimensionsActive | Whether dimensions are visible on the 3D scene. |
modular.currentElement | Instance ID(s) of the currently selected element(s) on the scene. |
modular.variantCodes | Map of variant codes for all elements on the scene. |
modular.toolbarData | Information about possible actions and names for currently selected models. |
modular.hasProducts | Indicates whether there are any products on the scene. |
modular.allSelected | Indicates whether all models on the scene are selected. |
modular.favSceneShortcode | ID of the currently loaded favorite scene. |
modular.hasUnsavedChanges | Whether a saved modular scene has unsaved content edits. |
modular.elements | List of elements currently added to the scene. |
modular.modularSceneElements | Placed item metadata, including each item’s requiredSnaps.number and requiredSnaps.list. |
modular.catalog | Configured catalog products, categories and rules, including unplaced products. |
modular.instanceBlocks | Options-panel blocks and available options for every placed item, keyed by instance ID. |
modular.instancePrices | Prices by placed item ID. An unpriced item is null. |
modular.sceneItems | Placed item records by instance ID, including items excluded from the summary. |
modular.components | List of components which can be used to build the current modular product. |
modular.productCategories | List of categories connected to components available at current modular product. |
modular.freeSnapPoints | Information about snapping points state on the modular scene. |
modular.currentElementMetadata | Additional information related to currently selected product. |
modular.applyOptionsForAll | Whether new option selections are synced to all items. |
modular.applyOptionsForInstances | Which placed items are included in option synchronization. |
modular.activeAddProductData | Data for the actively selected product to add or clone. |
modular.snapStatuses | Snap definitions and evaluated state, including meshId, meshName, visible, and possibleConnections. |
modular.snapPlacementControls | Add-mode placement controls and their availability. |
modular.autoSyncRulesByType | The loaded modular product's auto-sync rules grouped by type, or null before rules load. |
optionSets
| Observer | Current value |
|---|---|
optionSets.optionSetsData | Raw option set data. |
optionSets.selectedOptions | Selections keyed by product context or placed item ID. |
optionSets.visibleOptionsByBlock | Visible choices by block ID in panel order. Disabled choices are flagged. |
optionSets.printOnDemandCrops | Original-size crop URLs keyed by instance ID and block ID. |
optionSets.selectedOptionsByBlockCode | Selected options keyed by block code for the current selection context. |
optionSets.blocks | The available option blocks for the currently selected product. |
optionSets.blockGroups | The organized groups of blocks with their selection status. |
optionSets.blockGroupContainers | Container hierarchy for organizing block groups into logical categories. |
optionSets.imageWidgetActiveBlock | Information about the active image/texture upload widget. |
optionSets.imageWidgetImages | Available images in the library for the current account or product. |
optionSets.imageWidgetIsLibraryOpen | Indicates whether the image library modal is currently open. |
optionSets.imageWidgetSelectedImage | The ID of the currently selected image for the active block. |
optionSets.imageWidgetUploadingImages | Indicates whether images are currently being uploaded to the library. |
optionSets.imageWidgetUploadingPrintOnDemand | Indicates whether a print-on-demand image is being uploaded. |
pricing
| Observer | Current value |
|---|---|
pricing.activePriceTier | Price-break row for the current quantity, or null. |
pricing.priceSource | Latest fetched or custom price and its origin. |
pricing.quantity | The currently selected product quantity. |
pricing.priceType | The currently selected price type. |
pricing.priceOptions | Available price type options for the current user. |
pricing.minimumFractionDigits | Minimum number of decimal places to show in prices. |
pricing.maximumFractionDigits | Maximum number of decimal places to show in prices. |
pricing.prices | Current price data for the product configuration. |
pricing.isPriceLoading | Deprecated. Use status.priceLoading. |
pricing.modularPrices | Price data for all unique configurations in a modular product. |
pricing.totalPriceModular | Total price for all components in a modular product. |
pricing.totalComparePriceModular | Compare-at total price for all components in a modular product. |
pricing.dealers | List of available dealers for the current user. |
pricing.selectedDealer | The currently selected dealer entry. |
product
| Observer | Current value |
|---|---|
product.availability | Availability derived from the current configuration's settled Item Master pricing data. |
product.mainProductData | Data for the currently selected product. |
product.isLoading | Deprecated. Use status.loading. |
product.hotSpot | Active hotspot information. |
product.loader | Loader information for the 3D scene. |
product.currentViewId | ID of the currently displayed view. |
product.sku | SKU of the current product configuration. |
product.configurationCode | Current configuration code for the product. |
product.isConfigurationCodeValid | Indicates whether the current configuration code is valid. |
product.hiddenRequiredOptions | Required option blocks that cannot be highlighted in the standard option panel. |
product.tabs | Available tabs for the current product. |
product.configurationShortCode | Short code for the current configuration. |
product.dimensions | Current physical dimensions of the configured model. |
config
| Observer | Current value |
|---|---|
config.cdnPath | Embed CDN base URL, or undefined until known. |
config.translationSetId | Translation set ID assigned to the active embed template, or null. |
config.uiConfig | Configuration for UI element visibility and behavior. |
config.customerConfig | Account configuration settings. |
config.basketConfig | Configuration settings for the basket functionality. |
config.cartConfig | Observable stream of cart configuration settings. |
config.canvasBackground | Current canvas background color. |
config.embedInstanceId | The unique identifier for the current embed instance. |
config.locale | The active locale code for the current embed instance. |
config.dimensionUnits | Units supported by the dimensions display. |
misc
| Observer | Current value |
|---|---|
misc.favouriteItems | Information about favorite items and collections. |
misc.favouriteCollections | Available collections for organizing favorite items. |
misc.favouriteSceneName | The name of the currently loaded favorite scene. |
misc.canvasAspectRatio | The aspect ratio of the canvas set by aspect ratio rules. |
misc.has2dLayers | Indicates whether 2D layers are visible on the canvas. |
misc.globalAppError | Observers for tracking global application errors. |
productList
ProductListObservers reference
| Observer | Current value |
|---|---|
productList.products | The list of available products. |
productList.categories | The list of product categories. |
productList.isLoading | Deprecated. Use status.productListLoading. |
Actions
Actions reference · Programmatic configuration · Modular scene API
Options, widgets, and product configuration
| Action | Use |
|---|---|
markOption | Selects a specific option for a product configuration. |
markOptionModular | Selects options for a modular product component. |
markOptionByBlockNameAndOptionCode | Select by authored block code and option code or pass a supported widget input value. |
markOptionByCodeForInstances | Select an option by block and option code for the given item IDs. |
setConfigurationCode | Apply a complete standard configuration code. |
filterOptions | Filters options based on selected filter criteria. |
prepareFilterOptions | Prepares filter options with counts for available choices. |
openWidget | Queues the open trigger for a widget block. |
closeWidget | Queues the close trigger for a widget block. |
openGroup | Queues the open trigger for an option group. |
closeGroup | Queues the close trigger for an option group. |
hoverGroup | Queues the hover-enter or hover-leave trigger for an option group. |
clickButtonWidget | Queues the click trigger for a button widget block. |
closeHotspot | Queues the close trigger for a hotspot, identified by its hotspot ID. |
get3dInformationTemplate | Retrieves template data for a 3D hotspot information display. |
Camera and canvas
| Action | Use |
|---|---|
setCameraProjectionMode | Switches projection while retaining the current view direction and apparent zoom. |
setCameraAutoRotate | Enables or disables idle auto-rotation. |
pauseCameraAutoRotate | Restarts the idle wait without changing whether auto-rotation is enabled. |
setCameraAutoFitLocked | Locks or unlocks auto-fit for the active camera. |
setCameraPose | Applies an eye position and look-at target together, under the authored camera limits. |
getCameraPose | Read the current camera position, target, orbit angles, radius, and orthographic height when applicable. Returns null without an interactive camera. |
fitCameraToScene | Frames visible product geometry inside the inset viewport while keeping the view direction. |
restoreCameraPosition | Resets the camera to the default product view or a specified custom position. |
zoomOut | Automatically frames the entire product perfectly in the viewport. |
increaseZoom | Moves the camera away (longer eye-to-target distance). Use it for a zoom-out button. |
decreaseZoom | Moves the camera closer (shorter eye-to-target distance). Use it for a zoom-in button. |
setZoom | Sets a specific zoom level for the camera view. |
applyZoomInput | Apply a zoom input with optional continuous hold. Pass { ignoreDuringZoomAll: true } to ignore presses during Zoom All. |
releaseZoomInput | End a held zoom input. |
getMeshPosition | Returns world bounds and a canvas-relative CSS rectangle for matching visible meshes. |
getScreenPosition | Projects world points into canvas-relative CSS pixels with an inView flag per point. |
toggleDimensions | Shows or hides measurement lines that display the product's dimensions. |
setDimensionsUnit | Sets the unit of measurement for dimension displays. |
toggleGrid | Toggles the visibility of the measurement grid on the scene floor. |
freezeCanvasScrolling | Disables scrolling and zooming interactions on the 3D view. |
unfreezeCanvasScrolling | Re-enables normal scrolling and zooming interactions on the 3D view. |
registerSceneCanvasView | Adds a new viewing canvas that shows the same 3D product from the same camera angle. |
unregisterSceneCanvasView | Removes a previously registered canvas from the 3D viewing system. |
setSceneInputCanvas | Designates which canvas should receive user interactions like click, drag, and zoom. |
Modular placement and editing
| Action | Use |
|---|---|
chooseProductToAdd | Selects a product to add to the modular scene. |
addProductToSnappingPoint | Adds a product to a specific snapping point on a modular scene. |
insertProductAtSnap | Insert the expected modular product at the given existing joint. |
hoverProductForAction | Highlights valid placement positions for a specific product action. |
selectElement | Selects a specific product in the modular scene. |
deselectAllModels | Deselects all models currently selected on the modular scene. |
clearScene | Completely clears the modular scene, removing all products and resetting to an empty state. |
enableClone | Activates clone mode for the currently selected product. |
enableMove | Activates move mode for the currently selected product. |
enableReplace | Activates replace mode for the currently selected product. |
rotateModel | Rotates a freely movable product by a specified angle. |
removeSelected | Removes the currently selected product(s) from the modular scene. |
removeProducts | Removes specific product configurations by their element instance IDs. |
flipProduct | Flips or rotates the currently selected product to change its orientation. |
toggleSlide | Activates slide mode for the currently selected product. |
cancelOperations | Cancels any active modular operations like clone, move, or replace. |
checkCanMove | Checks if a specific product instance can be moved to another position. |
copyStyles | Activates style copying mode for the currently selected product. |
pasteStyles | Applies previously copied styles to the currently selected product. |
toggleApplyOptionsForInstances | Toggles whether option changes apply to all instances of a specific product on the scene. |
toggleApplyOptionsForAll | Toggles whether option changes apply to all products on the scene. |
getGroupedSceneItems | Group placed items by product ID or configuration code. |
getInstanceScreenRect | Gets a placed item's projected rectangle in CSS pixels from the top-left of the active canvas. |
placeFreeItem | Places a free, unconnected modular item at an absolute position and optional Y heading. A successful move records an undo step. |
getBoundingBoxPosition2d | Retrieves the screen position and dimensions of a specific element in the scene. |
History, sharing, and saved configurations
| Action | Use |
|---|---|
goBack | Reverts the most recent change in the configuration. |
redo | Repeats a previously undone action in the configuration history. |
reset | Resets the product configuration to its initial state. |
resetHistoryBaseline | Makes the current standard configuration or modular scene the first entry in its history. Resolves to false if the scene was still loading. |
getShareUrl | Return a link to the current standard configuration. |
getModularShareUrl | Generates a shareable URL for the current modular scene configuration. |
saveLastSavedDesign | Saves the current modular design to this browser’s autosave. |
getLastSavedDesign | Reads the current modular product’s local autosave for loadModularScene, or returns null. |
loadModularScene | Loads a saved modular scene state with complete product initialization. |
openLoadSceneModal | Opens the "Load Scene" modal dialog to browse and load saved modular scenes. |
openSaveSceneAs | Opens the "Save Scene As" dialog for modular products. |
getFavouriteCollections | Retrieves all available favorite collections for the current user. |
getFavouriteItems | Retrieves all saved favorite items for the current user. |
saveFavouriteSceneAs | Saves the current modular scene as a new favorite with a custom name. |
saveFavouriteScene | Updates an existing saved modular scene with the current state. |
saveFavouriteConfiguration | Saves the current product configuration as a favorite. |
createFavouriteCollection | Creates a new collection for organizing saved favorites. |
Pricing and cart
| Action | Use |
|---|---|
setQuantity | Updates the quantity for price calculations. |
setPriceType | Changes the active price type used for calculations. |
setDealer | Changes the active dealer for pricing calculations. |
openFinishModal | Opens the finish modal showing all elements in the modular scene and available tabs. |
triggerFinishEvent | Dispatch the applicable finish, selector, or cart event. |
prepareCartImage | Prepares an image for inclusion in a cart item. |
createCart | Creates a new empty shopping cart. |
getCartForPreview | Retrieves comprehensive cart data formatted for display or email sharing. |
addItemToCart | Adds an item to the shopping cart. |
removeCartItem | Removes a specific item from the cart. |
getCartItems | Retrieves all items currently in the specified cart. |
preSubmitCart | Saves partial contact information without fully submitting the cart. |
submitCart | Finalizes and submits a cart for processing. |
recalculateCart | Recalculates all prices in the cart based on specified pricing parameters. |
getCartSubmissionForm | Retrieves the custom fields and form structure required for cart submission. |
Product content and image widgets
| Action | Use |
|---|---|
getRelatedProducts | Retrieves all related products for the current product. |
getRelatedDynamicData | Enhances related product items with dynamic data like images and matched configurations. |
selectRelatedProduct | Navigates to a related product with the appropriate configuration. |
getProductCarouselImages | Retrieves a list of images for the product's carousel views. |
getProductLightboxImages | Retrieves high-quality images of the current product configuration for lightbox display. |
getProductThumbnail | Generates a thumbnail image URL for a product. |
get2dViewImage | Generates an image URL for a specific 2D view of the current configuration. |
setCarouselView | Switches the active view in the product visualization. |
getTabFiles | Retrieves downloadable files associated with a specific product tab. |
downloadFile | Initiates download of a specific file from storage. |
getTabFinishes | Retrieves detailed information about material finish options displayed in a tab. |
getTabPopular | Retrieves data for popular product configurations to display in a tab. |
selectPopularConfig | Applies a popular configuration to the current product. |
getTabGallery | Retrieves image gallery data for display in a product tab. |
setImageWidgetLibraryState | Show or hide the image library. |
imageWidgetAddNewImages | Add images to the library and optionally apply them. |
imageWidgetRemoveImages | Remove images from the library. |
imageWidgetSelectImage | Select an image from the library. |
setImageWidgetActiveBlock | Set the active image widget block. |
Exports, AR, and diagnostics
| Action | Use |
|---|---|
showExportPDF | Opens the PDF export dialogue for the current configuration. |
showExportModal | Opens the 3D model export dialogue. |
showExportImageModal | Opens the image export dialogue. |
exportGlb | Exports the current product configuration as a GLB 3D model file. |
exportUsdz | Exports the current product configuration as a USDZ 3D model file. |
exportStl | Exports the current product configuration as an STL file for 3D printing or manufacturing. |
exportObj | Exports the current product configuration as an OBJ 3D model file. |
saveImage | Captures and saves the current product view as a high-quality image. |
getPdfTabs | Lists eligible PDF section IDs, labels, and types for the current product. |
generateProductPDF | Generates a comprehensive PDF document for the current product configuration. |
showAR | Opens the Augmented Reality (AR) viewing interface. |
generateAR | Creates an Augmented Reality (AR) version of the current product configuration. |
regenerateAR | Attempts to recreate an AR model when initial generation fails. |
getARShortCodeData | Retrieves detailed information about an AR model from its shortcode. |
havePermissions | Checks if the current user has specific permissions. |
getBomDebugInfo | Retrieves Bill of Materials (BOM) information for the current configuration. |
getBundlingDebugInfo | Retrieves information about product bundling settings |
getBundlingCoverageInfo | Read bundling coverage for the requested pattern. |
savePodFilesToMediaLibrary | Save the Print on Demand artwork for a configuration short code as a ZIP in the customer's Media Library and return its name and persistent URL. |
getPodFilesUrl | Generates a download URL for POD (Print on Demand) files associated with a given product. |
For held zoom controls, pass the same { pauseAutoRotate: true } option to applyZoomInput and releaseZoomInput when you want interaction to renew the idle delay. The pauseAutoRotate option is also supported by increaseZoom, decreaseZoom, and setZoom. To ignore presses during Zoom All, pass { ignoreDuringZoomAll: true } to both applyZoomInput and releaseZoomInput.
Utilities
| Utility | Use |
|---|---|
dispatchEvent | Dispatches a DOM custom event and relays its serializable details to the parent window. |
cssMedia | Browser media-query, pixel-ratio and device detection helpers. |
takeScreenshot | Captures the current 3D configuration. Use the options form for camera, projection, fitting, or projection metadata. |
getShortcode | Generates a unique shortcode for a specific product configuration. |
setPrice | Sets custom pricing data for the current product configuration. |
setPricingSettings | Configures the decimal place settings for price display. |
showModular | Displays and renders a modular product configurator. |
showConfigurator | Displays and renders a standard product configurator. |
closeConfigurator | Closes and unmounts the active configurator from the DOM. |
addToCart | Triggers the "add to cart" or "finish" action for the current configuration. |
Use cssMedia.matchMedia(query) or new cssMedia.Mql(query) for a disposable watcher. The namespace also exposes getDevicePixelRatio(), checkIfiOS(), and the flags isAndroid, isBrowser, isIOS, isSafari, isMobile, isWinPhone, isDesktop, and isTablet.
Events
This table covers the event names declared in MimeeqEventMap reference. See Events for payloads, ordering and host commands. An em dash means there is no typed payload.
Lifecycle and errors
| Event | Detail | When it fires |
|---|---|---|
mimeeq-app-loaded | — | First embed setup reached the rendering path. For a specific embed, use whenReady(). |
mimeeq-api-installed | — | The configurator API has been installed on the page. |
mimeeq-analytics-context-changed | EmbedAnalyticsContext | Per-instance analytics identity resolved or invalidated. |
mimeeq-app-template-error | AppTemplateErrorEventPayload | Error loading embed template (file not found or parse failure). |
mimeeq-app-config-error | { type, error, reason?, status? } | Embed setup, runtime scripts, or primary product failed to load. |
mimeeq-ar-ready | { embedInstanceId?, url? } | The desktop QR link or mobile viewer file is available. |
mimeeq-api-error | AppApiErrorEventPayload | Eligible fetch/helper or shared service failure. |
mimeeq-3d-product-initialized | — | Initial standard 3D setup or a saved modular design loaded before any variants are configured. For the first frame, use observers.status.firstRender. |
mimeeq-2d-product-initialized | — | 2D product fully loaded and all image layers ready. |
mimeeq-webgl-not-supported | — | WebGL not supported and user attempted to load a 3D product. |
mimeeq-product-list-initialized | — | Product list loaded from database. |
mimeeq-embed-unmounted | { embedInstanceId: string } | Configurator tree unmounted. Listen on the embed element for removal. |
mimeeq-configurator-closed | — | Configurator modal closed (legacy embed only). |
mimeeq-modular-closed | — | Modular modal closed (legacy embed only). |
mimeeq-tree-unmounted | TreeUnmountedEventPayload | Embed unmounted from DOM, with type identifier (legacy embed only). |
Configuration and history
| Event | Detail | When it fires |
|---|---|---|
mimeeq-select-option | SelectOptionEventPayload | Option selected in the option panel. |
mimeeq-select-popular-variant | SelectPopularVariantEventPayload | Popular configuration variant selected. |
mimeeq-select-tab | SelectTabEventPayload | Tab changed in the configurator. |
mimeeq-price-change | PriceChangeEventPayload | Signals a pricing input change on a standard product. |
mimeeq-price-fetched | PriceFetchedEventPayload | Current built-in price request completed (success or failure). |
mimeeq-select-filters | SelectFiltersEventPayload | Filters changed. |
mimeeq-deactivate-matching-options | DeactivateMatchingOptionsEventPayload | Match Options toggled. |
mimeeq-activate-matching-options | DeactivateMatchingOptionsEventPayload | Match Options was activated. |
mimeeq-change-quantity | ChangeQuantityEventPayload | Quantity changed in the configurator. |
mimeeq-download-file | DownloadFileEventPayload | File downloaded from gallery or files tab. |
mimeeq-open-related-product | OpenRelatedProductEventPayload | Related product clicked. |
mimeeq-clear-filters | — | Clear Filters button clicked. |
mimeeq-history-go-back | HistoryItem | An undo step was applied. |
mimeeq-history-go-forward | HistoryItem | A redo step was applied. |
mimeeq-history-reset | — | History reset clicked. |
mimeeq-configurator-clear-history | — | Close button clicked in modal mode, clearing history. |
mimeeq-configurator-go-back | — | Back arrow clicked in configurator. |
mimeeq-enter-product | ProductPrefixEventPayload | Product configurator opened. |
mimeeq-leave-product | ProductPrefixEventPayload | Product configurator closed. |
Favourites and product lists
| Event | Detail | When it fires |
|---|---|---|
mimeeq-favourites-add-product | ProductPrefixEventPayload | Product added to favourites. |
mimeeq-favourites-remove-product | ProductPrefixEventPayload | Product removed from favourites. |
mimeeq-favourites-add-collection | FavouritesCollectionEventPayload | Favourites collection created. |
mimeeq-favourites-update-collection | FavouritesCollectionEventPayload | Favourites collection updated. |
mimeeq-favourites-remove-collection | — | Favourites collection(s) deleted. |
mimeeq-favourites-copy-to-collection | FavouritesCollectionItemsEventPayload | Items copied to another favourites collection. |
mimeeq-favourites-move-to-collection | FavouritesCollectionItemsEventPayload | Items moved to another favourites collection. |
mimeeq-favourites-delete-from-collection | FavouritesDeleteFromCollectionEventPayload | Items removed from a favourites collection. |
mimeeq-open-favourites | — | Favourites panel opened from the product list. |
mimeeq-close-favourites | — | Favourites panel closed. |
mimeeq-select-favourites-collection | SelectFavouritesCollectionEventPayload | Favourites collection selected from menu. |
mimeeq-product-list-select-product | ProductListSelectProductEventPayload | Product selected from product list. |
Finish, cart intent and pricing context
| Event | Detail | When it fires |
|---|---|---|
mimeeq-before-add-to-cart | BeforeAddToCartEventPayload | Add to Cart action started, before validation and payload preparation. |
mimeeq-scene-validation | SceneValidationEventPayload | Modular scene validation completed before a Finish or Add to Cart action. |
mimeeq-show-summary | FinishEventPayload | Finish button clicked (non-basket mode). |
mimeeq-select-product | FinishEventPayload | Select button clicked (selector variant). |
mimeeq-add-to-cart | FinishEventPayload | Hands off the prepared configuration and pricing for a basket action. |
mimeeq-app-url-change | FinishEventPayload | URL updated after finish action. |
mimeeq-select-company | SelectCompanyEventPayload | Company changed in price selector. |
mimeeq-select-price-type | SelectPriceTypeEventPayload | Price type changed in price selector. |
Exports, viewport and hotspots
| Event | Detail | When it fires |
|---|---|---|
mimeeq-show-export-pdf-modal | — | Generate PDF modal opened. |
mimeeq-pdf-generate-start | — | PDF generation started. |
mimeeq-pdf-generate-done | PdfGenerateDoneEventPayload | PDF generation completed. |
mimeeq-3d-before-export-image | — | Image export started. |
mimeeq-3d-after-export-image | — | Image exported and saved. |
mimeeq-2d-image-downloaded | ImageDownloadedEventPayload | Image downloaded from the image gallery (2D viewer). |
mimeeq-3d-before-export-scene | ExportSceneEventPayload | 3D model export started. |
mimeeq-3d-after-export-scene | ExportSceneEventPayload | A 3D export attempt finished. Check the payload for the result. |
mimeeq-3d-open-full-screen | — | Entered fullscreen view. |
mimeeq-3d-close-full-screen | — | Left fullscreen view. |
mimeeq-3d-show-dimensions | — | Dimensions overlay shown on the 3D scene. |
mimeeq-3d-hide-dimensions | — | Dimensions overlay hidden on the 3D scene. |
mimeeq-3d-zoom-out-scene | — | Zoom Out button clicked. |
mimeeq-open-option-panel | — | Option panel opened on mobile. |
mmq-webgl-support-modal-close | — | No WebGL support modal dismissed. |
mmq-action-highlight-group-on | string | Highlight Group behavior started on mesh hover. |
mmq-action-highlight-group-off | string | Highlight Group behavior ended on mesh hover exit. |
mmq-action-open-group | string | A mesh click fired Open Group. |
mmq-action-scroll-to-block | string | Clicked mesh with Scroll to Block action. |
mmq-action-flash-highlight-block | string | Scrolled to option block after Scroll to Block mesh click. |
mimeeq-click-hotspot | ClickHotspotEventPayload | Hotspot clicked in the 3D scene. |
Augmented reality
| Event | Detail | When it fires |
|---|---|---|
mimeeq-generate-ar-short-code | GenerateArShortCodeEventPayload | AR short code generated. |
mimeeq-ar-modal-opened | ArModalOpenedEventPayload | Desktop AR QR modal opened. |
mimeeq-ar-get-back-to-configuration | ArGoBackEventPayload | Edit button clicked on AR landing page. |
mimeeq-ar-viewer-launch-attempted | ArViewerLaunchEventPayload | Native viewer launch requested from the Android AR landing page. |
mimeeq-ar-viewer-quick-return | ArViewerQuickReturnEventPayload | Browser returned rapidly after an observed Android viewer handoff. |
Authentication
| Event | Detail | When it fires |
|---|---|---|
mimeeq-auth-loaded | — | Authentication library loaded. |
mimeeq-enter-login | — | Login form shown. |
mimeeq-leave-login | — | Login form closed. |
mimeeq-login-success | LoginSuccessEventPayload | Login successful. |
mimeeq-enter-forgot-password | — | Forgot Password link clicked. |
mimeeq-leave-forgot-password | — | Forgot Password form closed. |
mimeeq-enter-sign-up | — | Sign Up form shown. |
mimeeq-leave-sign-up | — | Sign Up form closed. |
mimeeq-sign-up-success | SignUpSuccessEventPayload | Sign Up successful. |
mimeeq-logout-success | — | Logout completed. |
mimeeq-enter-profile | — | User profile opened. |
mimeeq-leave-profile | — | User profile closed. |
mimeeq-user-signed-in | UserSignedInEventPayload | User session established after login. |
mimeeq-user-signed-out | — | User session destroyed after logout. |
mimeeq-user-updated | — | User profile data updated. |
mimeeq-user-deleted | — | Tier 2 user deleted own account. |
mimeeq-resend-signup-confirm-code | ResendSignupConfirmCodeEventPayload | Signup verification code resent. |
mimeeq-login-closed | — | Login modal dismissed. |
mimeeq-profile-closed | — | User Profile modal dismissed. |
mimeeq-forgot-password-closed | — | Forgot Password modal dismissed. |
Mimeeq basket
| Event | Detail | When it fires |
|---|---|---|
mimeeq-basket-created | BasketCreatedEventPayload | New basket created. |
mimeeq-basket-submitted | BasketSubmittedEventPayload | Basket submitted as order/RFQ. |
mimeeq-basket-updated | BasketUpdatedEventPayload | Basket contents or totals updated. |
mimeeq-basket-item-added | BasketItemAddedEventPayload | Item added to basket. |
Modular scene
| Event | Detail | When it fires |
|---|---|---|
mimeeq-modular-add-product-to-scene | ModularProductSceneEventPayload | Product added to the modular scene. |
mimeeq-modular-insert-product-to-scene | ModularProductSceneEventPayload | Product inserted between elements on the scene. |
mimeeq-modular-move-product | ModularProductSceneEventPayload | Product moved on the scene. |
mimeeq-modular-clear-scene | — | Scene cleared. |
mimeeq-modular-clone-product | — | Product cloned on the scene. |
mimeeq-modular-remove-product | — | Product removed from the scene. |
mimeeq-modular-product-replaced | ModularProductSceneEventPayload | Product replaced with another on the scene. |
mimeeq-modular-select-product-to-add | ModularSelectProductToAddEventPayload | Product to add chosen from product list modal. |
mimeeq-modular-select-option | ModularSelectOptionEventPayload | Option selected for a single product in modular. |
mimeeq-modular-select-option-multiple | ModularSelectOptionMultipleEventPayload | Option applied to multiple products in modular. |
mimeeq-modular-load-scene | ModularLoadSceneEventPayload | The scene load action queued work for a saved scene or local autosave. |
mimeeq-modular-load-scene-success | — | The automatic saved scene load returned. Check the scene state before using it. |
mimeeq-modular-save-scene | ModularSaveSceneEventPayload | Scene saved or updated as favourite. |
mimeeq-modular-create-new-scene | ModularLoadSceneEventPayload | New short code assigned for scene (after New Scene, Clear Scene, or entering a scene). |
mimeeq-modular-open-my-scenes | — | My Scenes view opened. |
mimeeq-modular-close-my-scenes | — | My Scenes view closed. |
mimeeq-modular-close-select-scene-modal | — | Load Scene modal closed. |
mimeeq-modular-enter-product | — | Modular product entered. |
mimeeq-modular-open-summary | — | Finish button clicked in modular (summary opened). |
mimeeq-modular-close-summary | — | Summary closed in modular. |
mimeeq-modular-open-warning | — | A modular scene warning opened. |
mimeeq-modular-close-warning | — | Warning modal closed in modular. |
mimeeq-modular-leave-product | — | Modular product left (navigated away). |
mimeeq-modular-set-clone | — | Clone button clicked in modular toolbar. |
mimeeq-modular-set-move | — | Move button clicked in modular toolbar. |
mimeeq-modular-set-copy-styles | — | Copy Styles button clicked in modular toolbar. |
mimeeq-modular-set-slide | — | Slide button clicked in modular toolbar. |
mimeeq-modular-set-replace | — | Replace button clicked in modular toolbar. |
mimeeq-modular-flip-product | — | Product flipped on the scene. |
mimeeq-modular-show-grid | — | Grid overlay activated. |
mimeeq-modular-hide-grid | — | Grid overlay hidden. |
mimeeq-modular-unselect-all | — | All products deselected on the scene. |
mimeeq-modular-abort-action | — | Currently active modular action aborted. |
mimeeq-modular-open-clear-scene-warning | — | The configurator requested confirmation before clearing the modular scene. |
mimeeq-modular-history-go-back | — | Modular history undo (back) clicked. |
mimeeq-modular-history-go-forward | — | Modular history redo (forward) clicked. |
Find the API for a task
| I need to… | Use |
|---|---|
| Run a late-loading host script after the embed loads | Check the loaded flag and listen once |
| Subscribe as soon as the API is installed | Check window.mimeeqApp and listen for mimeeq-api-installed |
| Show a deferred embed | Await embed.whenReady(), then call embed.show() on the same element. |
| Wait for measured geometry | observers.status.firstRender and observers.scene.bounds |
| Read one value immediately | The observer's getValue() |
| Render a live control | The observer's subscribe() |
| Know which product is open | observers.product.mainProductData |
| Detect a product switch or a loading product | observers.product.mainProductData and observers.status.loading |
| Get the current SKU | observers.product.sku |
| Navigate a block’s visible options | observers.optionSets.visibleOptionsByBlock |
| Read the cropped artwork URL | observers.optionSets.printOnDemandCrops by instance ID and block ID |
| Read the active quantity price break | observers.pricing.activePriceTier |
| Read a block's selected options | observers.optionSets.selectedOptionsByBlockCode |
| Show available choices and disabled blocks | observers.optionSets.blocks |
| Find incomplete option groups | observers.optionSets.blockGroups |
| Set a standard option by its code | actions.markOptionByBlockNameAndOptionCode |
| Apply a saved standard configuration | actions.setConfigurationCode |
| Check required selections before showing a host action | observers.product.isConfigurationCodeValid and observers.product.hiddenRequiredOptions |
| Trigger widget opening or closing | actions.openWidget and actions.closeWidget |
| Trigger group open, close, or hover | actions.openGroup, actions.closeGroup, and actions.hoverGroup |
| Trigger a button widget | actions.clickButtonWidget |
| Dismiss the current hotspot | actions.closeHotspot with the mesh ID from observers.product.hotSpot |
| Build an asset URL from the embed CDN | observers.config.cdnPath |
| Read the active template’s translation set | observers.config.translationSetId |
| Save shopper uploads and link to them from a PDF | Media Library PDF recipe |
| Read the active language | observers.config.locale |
| Set the embed's wording | Assign a translation set to the template |
| Greet a signed-in user | observers.auth.user |
| Find out whether a user has a permission | actions.havePermissions |
| Update the order quantity | actions.setQuantity |
| Render the current price and loading state | observers.pricing.prices and observers.status.priceLoading |
| Apply a custom price and ignore its echo | utils.setPrice and observers.pricing.priceSource |
| Show the resolved lead time in days | observers.product.availability |
| Share a configured standard product | actions.getShareUrl |
| Save a modular layout and share it | actions.getModularShareUrl |
| Save the current modular design on this device | actions.saveLastSavedDesign |
| Restore the last local autosave | actions.getLastSavedDesign and actions.loadModularScene |
| Restore a modular scene | actions.loadModularScene |
| Show the catalog of placeable modules | observers.modular.catalog |
| List every placed item | observers.modular.sceneItems |
| Group a scene summary by configuration code or product ID | actions.getGroupedSceneItems('configurationCode') or actions.getGroupedSceneItems('productId') |
| Choose a component to place | actions.chooseProductToAdd |
| Highlight valid placement controls | observers.modular.snapPlacementControls |
| Inspect connected or free snaps by placed item | observers.modular.snapStatuses |
| Add a component at an open connector | actions.addProductToSnappingPoint |
| Insert a component at an allowed existing joint | actions.insertProductAtSnap |
| Show modular rules by auto-sync type | observers.modular.autoSyncRulesByType |
| Edit options on specific placed items | observers.modular.instanceBlocks and actions.markOptionByCodeForInstances |
| Show prices by placed item | observers.modular.instancePrices |
| Anchor a DOM toolbar over a placed item | actions.getInstanceScreenRect with the item ID |
| Read world-space bounds by placed item | observers.scene.instanceBounds |
| Enable undo and redo buttons | observers.history.canUndo and observers.history.canRedo |
| Undo or redo a change | actions.goBack or actions.redo |
| Make the current configuration the history baseline | actions.resetHistoryBaseline |
| Switch camera projection | observers.camera.projectionMode and actions.setCameraProjectionMode |
| Look from a particular eye position at a target | actions.setCameraPose |
| Fit the model beside a UI sidebar | actions.fitCameraToScene with insets |
| Change or temporarily pause auto-rotation | actions.setCameraAutoRotate or actions.pauseCameraAutoRotate |
| Stop automatic camera fitting | actions.setCameraAutoFitLocked |
| Build a zoom slider within the camera limits | observers.camera.zoomLevel, observers.camera.zoomLimits, and actions.setZoom |
| Trigger the configured add-to-cart flow | utils.addToCart |
| Add a line item to a host cart with a preview | mimeeq-add-to-cart and event.detail.image |
| Track a selected option in host analytics | mimeeq-select-option or mimeeq-modular-select-option |
| Read active mesh materials or texture channels | observers.meshes.materials or observers.meshes.textures |
| Position a label on a visible mesh | observers.meshes.hotspots and actions.getMeshPosition |
| Project custom points onto the canvas | actions.getScreenPosition |
| Show required snap progress or warnings | observers.modular.modularSceneElements and observers.modular.sceneValidity |
| Move a free modular item with undo | actions.placeFreeItem and actions.goBack |
| Wait for product data to settle or for a still frame | observers.status.settled for data, or firstRender and sceneSettled for settled 3D capture |
| Show the dimensions toggle or report measurements | observers.dimensions.available, visible, and values |
| List selectable sections for a PDF | actions.getPdfTabs |
| Capture the configured product | utils.takeScreenshot |
| Open the configured AR experience | actions.showAR |
| Open the PDF export controls | actions.showExportPDF |
| Adapt a host control at a breakpoint | utils.cssMedia.matchMedia, then dispose() at teardown |
| Notify a host script of a custom action | utils.dispatchEvent with a name owned by your integration |
Camera observers return the most recent value sampled on a drawn frame. Subscribe to a pose field to keep pose readings current, or call actions.getCameraPose() for a one-time read.
Verify the integration
- Confirm the embed type and template in the target page. Verify the installed API version exposes the observers and actions you use.
- Run with your script both before and after embed load. Open the product separately if the embed starts closed or shows a catalog first.
- Check the initial observer value, a shopper-driven change and a missing value. Test sign-out, no selection, or an empty scene where relevant.
- Confirm a written selection stays in sync with the UI, including any rule-driven changes. With modular products, test two instances of the same product and confirm the intended instance changes.
- Open a generated share URL on a fresh page and check the restored options or the restored scene.
- For a host cart, verify the selected quantity and configuration become one line item. Test a missing image and a rejected request in the host cart.
- For 3D controls, test loading and replacement, camera motion and a resize. Use CSS pixels for screen rectangles and metres for scene bounds.
- Unmount and remount the integration. Check that listeners run once and controls and subscriptions are released on teardown.
Examples and references
- Web API recipes for ready state, options, pricing, sharing, carts, and host controls.
- Custom UI guide and simpler ways to do common tasks for building the controls.
- Modular examples for scene and catalog, snap-aware placement, per-item options, item toolbars and labels, undo and redo, and camera controls.
- Observers, Events, and the Web API reference for exact signatures and payloads.