Skip to main content

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​

ApproachWhen to use it
Embed template settingsChange 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 JavaScriptAdd 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 UIBuild 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.mimeeqApp first and otherwise listen for mimeeq-api-installed on document. An older embed that does not emit that event can use mimeeq-app-loaded.
  • Embed loaded. The mimeeq-app-loaded event signals that the first embed has loaded. A modal or a product picker can load before a product opens. Watch status.productLoaded and status.loading for product-dependent code.
  • Deferred embed ready. Call whenReady() on the specific <mmq-embed> before calling show().
  • 3D scene ready. Use status.firstRender for camera and geometry features and status.sceneSettled when 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 no oldValue. Use getValue() for a synchronous read. Handle null, 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 from event.detail. For teardown on removal, listen for mimeeq-embed-unmounted on the embed element as shown above. Events are notifications and do not replay. Use embedInstanceId where 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​

IdentifierUse it for
embedInstanceIdDistinguishing embed mounts on a host page. Read it from observers.config.embedInstanceId or a payload that includes it.
productIdIdentifying a catalog product definition. Multiple placed items can share this ID. Get it from product.mainProductData or modular.catalog.
instanceIdIdentifying one placed item in a modular scene. Use keys from modular.sceneItems with per-item options, prices, bounds and placement actions.
blockIdIdentifying 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.
meshIdIdentifies an authored mesh. Pair it with the instanceId returned by observers.meshes.
snapIdIdentifying a connector on a placed item. Pair it with the owning instanceId. Read these from modular.snapStatuses or modular.snapPlacementControls.
configurationCode, variantCode, short codeA 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​

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​

NameUse
mmq-embed.whenReady()Resolves when that embed is ready for show() and rejects with its configuration error if setup fails.
versionVersion of the loaded embed build. Unversioned builds report dev.
mountMount an embed programmatically. For declarative embeds, use <mmq-embed> or <mmq-auth>.
initializeInitialize authentication and service configuration for a manual mount. The web components normally handle it.
authorization.signInStart a sign-in session.
authorization.signOutEnd the current session.
authorization.getUserDataRequest user data. Use observers.auth.user to follow the embed's session state.
authorization.forgotPasswordRequest a password reset code.
authorization.forgotPasswordSubmitSubmit the reset code and new password.
authorization.resendSignUpResend a sign-up confirmation.
authorization.getTokenRetrieve a session token for an authentication integration.
config.pdfCustomize PDF generation.
config.imageCustomize generated images.
config.iconsCustomize built-in icons.
mountLoginLegacy login mount. Use mount or <mmq-auth> for new integrations.
mountUserProfileLegacy profile mount. Use mount or <mmq-auth> for new integrations.
mountForgotPasswordLegacy password recovery mount. Use mount or <mmq-auth> for new integrations.
mountFavouritesLegacy favourites mount. Use mount or <mmq-embed> for new integrations.
mountARPageLegacy AR page mount. Use mount or <mmq-embed> for new integrations.
mountListLegacy product list mount. Use mount or <mmq-embed> for new integrations.
mountConfiguratorLegacy 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​

CameraObservers reference

ObserverCurrent value
camera.projectionModeCurrent camera projection.
camera.viewModeTop when the camera looks within one degree of straight down.
camera.autoRotateEnabledWhether idle auto-rotation is enabled, including while it waits.
camera.autoFitLockedWhether auto-fit is locked by the author or by the integration.
camera.isAnimatingWhether a finite camera transition is running.
camera.zoomLevelEye-to-target distance in perspective, half the visible height in orthographic projection.
camera.zoomLimitsThe range used by setZoom, in the same units as zoomLevel.
camera.positionEye position in Y-up scene coordinates.
camera.targetLook-at point in Y-up scene coordinates.

auth​

AuthObservers reference

ObserverCurrent value
auth.userReplays the current signed-in profile on subscription and emits null when signed out.

scene​

SceneObservers reference

ObserverCurrent value
scene.boundsOverall scene bounds, or null when there is no measured geometry.
scene.instanceBoundsMeasured modular item bounds by instance ID.

status​

ObserverUse
status.appReadyCheck that the mounted 3D engine has initialized.
status.productLoadedCheck whether main product data is present.
status.firstRenderWait for the mounted scene's first frame, including an empty modular start.
status.loadingTrack main product loading or absence.
status.priceLoadingTrack pending or running price calculation.
status.productListLoadingTrack product-list loading.
status.busyCheck for unfinished queued 3D tasks.
status.pdfTrack PDF generation through completion or failure.
status.arTrack AR as closed, generating, ready, or failed.
status.loadErrorRead the current embed failure as { type, reason, status? } or null.
status.uiBlockedCheck for a canvas loader, image capture, or PDF generation.
status.uiBlockedByRead UI blocking reasons, including generatingPdf during PDF generation.
status.sceneActivityRead current drawing activity, including camera motion and drag.
status.sceneFrozenCheck whether the canvas loader is showing or drawing activity is idle.
status.settledRead product state once loaded and unblocked, with no active drag or pending 3D tasks.
status.sceneSettledWait for both settled state and a still scene.

meshes​

ObserverUse
meshes.allInspect authored meshes and whether each is active, hidden, disabled, or missing.
meshes.activeList active meshes, including enabled invisible anchors.
meshes.collisionsList active collision meshes.
meshes.hotspotsRead hotspot mesh references, activity, and presentation.
meshes.materialsList materials, thumbnails, and the active meshes that use them.
meshes.texturesInspect channels and image URLs for materials in use.
meshes.animationsList authored animation groups by instance.

dimensions​

ObserverUse
dimensions.availableCheck if product and embed settings allow dimensions.
dimensions.visibleCheck whether the main overlay is active.
dimensions.unitRead the overlay's display unit.
dimensions.valuesRead measured width, height, and depth in millimetres.
dimensions.customRead custom measurement IDs and optional labels.

history​

HistoryObservers reference

ObserverCurrent value
history.stackThe complete history stack of configuration changes.
history.currentElementThe index of the currently active history entry.
history.canUndoWhether the configuration history has an undo step available.
history.canRedoWhether the configuration history has a redo step available.

modular​

ModularObservers reference

ObserverCurrent value
modular.apcPricesComponent pricing data for modular APC pricing.
modular.sceneSetupConfiguration settings for the 3D scene environment.
modular.sceneValidityRequired-snap verdict and missing or broken snaps on items below their minimum.
modular.elementActionInformation about the currently active element action.
modular.chosenProductIdID of the product selected for adding to the scene.
modular.showCollisionWarningIndicates whether a collision warning should be shown to the user.
modular.isDimensionsActiveWhether dimensions are visible on the 3D scene.
modular.currentElementInstance ID(s) of the currently selected element(s) on the scene.
modular.variantCodesMap of variant codes for all elements on the scene.
modular.toolbarDataInformation about possible actions and names for currently selected models.
modular.hasProductsIndicates whether there are any products on the scene.
modular.allSelectedIndicates whether all models on the scene are selected.
modular.favSceneShortcodeID of the currently loaded favorite scene.
modular.hasUnsavedChangesWhether a saved modular scene has unsaved content edits.
modular.elementsList of elements currently added to the scene.
modular.modularSceneElementsPlaced item metadata, including each item’s requiredSnaps.number and requiredSnaps.list.
modular.catalogConfigured catalog products, categories and rules, including unplaced products.
modular.instanceBlocksOptions-panel blocks and available options for every placed item, keyed by instance ID.
modular.instancePricesPrices by placed item ID. An unpriced item is null.
modular.sceneItemsPlaced item records by instance ID, including items excluded from the summary.
modular.componentsList of components which can be used to build the current modular product.
modular.productCategoriesList of categories connected to components available at current modular product.
modular.freeSnapPointsInformation about snapping points state on the modular scene.
modular.currentElementMetadataAdditional information related to currently selected product.
modular.applyOptionsForAllWhether new option selections are synced to all items.
modular.applyOptionsForInstancesWhich placed items are included in option synchronization.
modular.activeAddProductDataData for the actively selected product to add or clone.
modular.snapStatusesSnap definitions and evaluated state, including meshId, meshName, visible, and possibleConnections.
modular.snapPlacementControlsAdd-mode placement controls and their availability.
modular.autoSyncRulesByTypeThe loaded modular product's auto-sync rules grouped by type, or null before rules load.

optionSets​

OptionSetsObservers reference

ObserverCurrent value
optionSets.optionSetsDataRaw option set data.
optionSets.selectedOptionsSelections keyed by product context or placed item ID.
optionSets.visibleOptionsByBlockVisible choices by block ID in panel order. Disabled choices are flagged.
optionSets.printOnDemandCropsOriginal-size crop URLs keyed by instance ID and block ID.
optionSets.selectedOptionsByBlockCodeSelected options keyed by block code for the current selection context.
optionSets.blocksThe available option blocks for the currently selected product.
optionSets.blockGroupsThe organized groups of blocks with their selection status.
optionSets.blockGroupContainersContainer hierarchy for organizing block groups into logical categories.
optionSets.imageWidgetActiveBlockInformation about the active image/texture upload widget.
optionSets.imageWidgetImagesAvailable images in the library for the current account or product.
optionSets.imageWidgetIsLibraryOpenIndicates whether the image library modal is currently open.
optionSets.imageWidgetSelectedImageThe ID of the currently selected image for the active block.
optionSets.imageWidgetUploadingImagesIndicates whether images are currently being uploaded to the library.
optionSets.imageWidgetUploadingPrintOnDemandIndicates whether a print-on-demand image is being uploaded.

pricing​

PricingObservers reference

ObserverCurrent value
pricing.activePriceTierPrice-break row for the current quantity, or null.
pricing.priceSourceLatest fetched or custom price and its origin.
pricing.quantityThe currently selected product quantity.
pricing.priceTypeThe currently selected price type.
pricing.priceOptionsAvailable price type options for the current user.
pricing.minimumFractionDigitsMinimum number of decimal places to show in prices.
pricing.maximumFractionDigitsMaximum number of decimal places to show in prices.
pricing.pricesCurrent price data for the product configuration.
pricing.isPriceLoadingDeprecated. Use status.priceLoading.
pricing.modularPricesPrice data for all unique configurations in a modular product.
pricing.totalPriceModularTotal price for all components in a modular product.
pricing.totalComparePriceModularCompare-at total price for all components in a modular product.
pricing.dealersList of available dealers for the current user.
pricing.selectedDealerThe currently selected dealer entry.

product​

ProductObservers reference

ObserverCurrent value
product.availabilityAvailability derived from the current configuration's settled Item Master pricing data.
product.mainProductDataData for the currently selected product.
product.isLoadingDeprecated. Use status.loading.
product.hotSpotActive hotspot information.
product.loaderLoader information for the 3D scene.
product.currentViewIdID of the currently displayed view.
product.skuSKU of the current product configuration.
product.configurationCodeCurrent configuration code for the product.
product.isConfigurationCodeValidIndicates whether the current configuration code is valid.
product.hiddenRequiredOptionsRequired option blocks that cannot be highlighted in the standard option panel.
product.tabsAvailable tabs for the current product.
product.configurationShortCodeShort code for the current configuration.
product.dimensionsCurrent physical dimensions of the configured model.

config​

ConfigObservers reference

ObserverCurrent value
config.cdnPathEmbed CDN base URL, or undefined until known.
config.translationSetIdTranslation set ID assigned to the active embed template, or null.
config.uiConfigConfiguration for UI element visibility and behavior.
config.customerConfigAccount configuration settings.
config.basketConfigConfiguration settings for the basket functionality.
config.cartConfigObservable stream of cart configuration settings.
config.canvasBackgroundCurrent canvas background color.
config.embedInstanceIdThe unique identifier for the current embed instance.
config.localeThe active locale code for the current embed instance.
config.dimensionUnitsUnits supported by the dimensions display.

misc​

MiscObservers reference

ObserverCurrent value
misc.favouriteItemsInformation about favorite items and collections.
misc.favouriteCollectionsAvailable collections for organizing favorite items.
misc.favouriteSceneNameThe name of the currently loaded favorite scene.
misc.canvasAspectRatioThe aspect ratio of the canvas set by aspect ratio rules.
misc.has2dLayersIndicates whether 2D layers are visible on the canvas.
misc.globalAppErrorObservers for tracking global application errors.

productList​

ProductListObservers reference

ObserverCurrent value
productList.productsThe list of available products.
productList.categoriesThe list of product categories.
productList.isLoadingDeprecated. Use status.productListLoading.

Actions​

Actions reference · Programmatic configuration · Modular scene API

Options, widgets, and product configuration​

ActionUse
markOptionSelects a specific option for a product configuration.
markOptionModularSelects options for a modular product component.
markOptionByBlockNameAndOptionCodeSelect by authored block code and option code or pass a supported widget input value.
markOptionByCodeForInstancesSelect an option by block and option code for the given item IDs.
setConfigurationCodeApply a complete standard configuration code.
filterOptionsFilters options based on selected filter criteria.
prepareFilterOptionsPrepares filter options with counts for available choices.
openWidgetQueues the open trigger for a widget block.
closeWidgetQueues the close trigger for a widget block.
openGroupQueues the open trigger for an option group.
closeGroupQueues the close trigger for an option group.
hoverGroupQueues the hover-enter or hover-leave trigger for an option group.
clickButtonWidgetQueues the click trigger for a button widget block.
closeHotspotQueues the close trigger for a hotspot, identified by its hotspot ID.
get3dInformationTemplateRetrieves template data for a 3D hotspot information display.

Camera and canvas​

ActionUse
setCameraProjectionModeSwitches projection while retaining the current view direction and apparent zoom.
setCameraAutoRotateEnables or disables idle auto-rotation.
pauseCameraAutoRotateRestarts the idle wait without changing whether auto-rotation is enabled.
setCameraAutoFitLockedLocks or unlocks auto-fit for the active camera.
setCameraPoseApplies an eye position and look-at target together, under the authored camera limits.
getCameraPoseRead the current camera position, target, orbit angles, radius, and orthographic height when applicable. Returns null without an interactive camera.
fitCameraToSceneFrames visible product geometry inside the inset viewport while keeping the view direction.
restoreCameraPositionResets the camera to the default product view or a specified custom position.
zoomOutAutomatically frames the entire product perfectly in the viewport.
increaseZoomMoves the camera away (longer eye-to-target distance). Use it for a zoom-out button.
decreaseZoomMoves the camera closer (shorter eye-to-target distance). Use it for a zoom-in button.
setZoomSets a specific zoom level for the camera view.
applyZoomInputApply a zoom input with optional continuous hold. Pass { ignoreDuringZoomAll: true } to ignore presses during Zoom All.
releaseZoomInputEnd a held zoom input.
getMeshPositionReturns world bounds and a canvas-relative CSS rectangle for matching visible meshes.
getScreenPositionProjects world points into canvas-relative CSS pixels with an inView flag per point.
toggleDimensionsShows or hides measurement lines that display the product's dimensions.
setDimensionsUnitSets the unit of measurement for dimension displays.
toggleGridToggles the visibility of the measurement grid on the scene floor.
freezeCanvasScrollingDisables scrolling and zooming interactions on the 3D view.
unfreezeCanvasScrollingRe-enables normal scrolling and zooming interactions on the 3D view.
registerSceneCanvasViewAdds a new viewing canvas that shows the same 3D product from the same camera angle.
unregisterSceneCanvasViewRemoves a previously registered canvas from the 3D viewing system.
setSceneInputCanvasDesignates which canvas should receive user interactions like click, drag, and zoom.

Modular placement and editing​

ActionUse
chooseProductToAddSelects a product to add to the modular scene.
addProductToSnappingPointAdds a product to a specific snapping point on a modular scene.
insertProductAtSnapInsert the expected modular product at the given existing joint.
hoverProductForActionHighlights valid placement positions for a specific product action.
selectElementSelects a specific product in the modular scene.
deselectAllModelsDeselects all models currently selected on the modular scene.
clearSceneCompletely clears the modular scene, removing all products and resetting to an empty state.
enableCloneActivates clone mode for the currently selected product.
enableMoveActivates move mode for the currently selected product.
enableReplaceActivates replace mode for the currently selected product.
rotateModelRotates a freely movable product by a specified angle.
removeSelectedRemoves the currently selected product(s) from the modular scene.
removeProductsRemoves specific product configurations by their element instance IDs.
flipProductFlips or rotates the currently selected product to change its orientation.
toggleSlideActivates slide mode for the currently selected product.
cancelOperationsCancels any active modular operations like clone, move, or replace.
checkCanMoveChecks if a specific product instance can be moved to another position.
copyStylesActivates style copying mode for the currently selected product.
pasteStylesApplies previously copied styles to the currently selected product.
toggleApplyOptionsForInstancesToggles whether option changes apply to all instances of a specific product on the scene.
toggleApplyOptionsForAllToggles whether option changes apply to all products on the scene.
getGroupedSceneItemsGroup placed items by product ID or configuration code.
getInstanceScreenRectGets a placed item's projected rectangle in CSS pixels from the top-left of the active canvas.
placeFreeItemPlaces a free, unconnected modular item at an absolute position and optional Y heading. A successful move records an undo step.
getBoundingBoxPosition2dRetrieves the screen position and dimensions of a specific element in the scene.

History, sharing, and saved configurations​

ActionUse
goBackReverts the most recent change in the configuration.
redoRepeats a previously undone action in the configuration history.
resetResets the product configuration to its initial state.
resetHistoryBaselineMakes the current standard configuration or modular scene the first entry in its history. Resolves to false if the scene was still loading.
getShareUrlReturn a link to the current standard configuration.
getModularShareUrlGenerates a shareable URL for the current modular scene configuration.
saveLastSavedDesignSaves the current modular design to this browser’s autosave.
getLastSavedDesignReads the current modular product’s local autosave for loadModularScene, or returns null.
loadModularSceneLoads a saved modular scene state with complete product initialization.
openLoadSceneModalOpens the "Load Scene" modal dialog to browse and load saved modular scenes.
openSaveSceneAsOpens the "Save Scene As" dialog for modular products.
getFavouriteCollectionsRetrieves all available favorite collections for the current user.
getFavouriteItemsRetrieves all saved favorite items for the current user.
saveFavouriteSceneAsSaves the current modular scene as a new favorite with a custom name.
saveFavouriteSceneUpdates an existing saved modular scene with the current state.
saveFavouriteConfigurationSaves the current product configuration as a favorite.
createFavouriteCollectionCreates a new collection for organizing saved favorites.

Pricing and cart​

ActionUse
setQuantityUpdates the quantity for price calculations.
setPriceTypeChanges the active price type used for calculations.
setDealerChanges the active dealer for pricing calculations.
openFinishModalOpens the finish modal showing all elements in the modular scene and available tabs.
triggerFinishEventDispatch the applicable finish, selector, or cart event.
prepareCartImagePrepares an image for inclusion in a cart item.
createCartCreates a new empty shopping cart.
getCartForPreviewRetrieves comprehensive cart data formatted for display or email sharing.
addItemToCartAdds an item to the shopping cart.
removeCartItemRemoves a specific item from the cart.
getCartItemsRetrieves all items currently in the specified cart.
preSubmitCartSaves partial contact information without fully submitting the cart.
submitCartFinalizes and submits a cart for processing.
recalculateCartRecalculates all prices in the cart based on specified pricing parameters.
getCartSubmissionFormRetrieves the custom fields and form structure required for cart submission.

Product content and image widgets​

ActionUse
getRelatedProductsRetrieves all related products for the current product.
getRelatedDynamicDataEnhances related product items with dynamic data like images and matched configurations.
selectRelatedProductNavigates to a related product with the appropriate configuration.
getProductCarouselImagesRetrieves a list of images for the product's carousel views.
getProductLightboxImagesRetrieves high-quality images of the current product configuration for lightbox display.
getProductThumbnailGenerates a thumbnail image URL for a product.
get2dViewImageGenerates an image URL for a specific 2D view of the current configuration.
setCarouselViewSwitches the active view in the product visualization.
getTabFilesRetrieves downloadable files associated with a specific product tab.
downloadFileInitiates download of a specific file from storage.
getTabFinishesRetrieves detailed information about material finish options displayed in a tab.
getTabPopularRetrieves data for popular product configurations to display in a tab.
selectPopularConfigApplies a popular configuration to the current product.
getTabGalleryRetrieves image gallery data for display in a product tab.
setImageWidgetLibraryStateShow or hide the image library.
imageWidgetAddNewImagesAdd images to the library and optionally apply them.
imageWidgetRemoveImagesRemove images from the library.
imageWidgetSelectImageSelect an image from the library.
setImageWidgetActiveBlockSet the active image widget block.

Exports, AR, and diagnostics​

ActionUse
showExportPDFOpens the PDF export dialogue for the current configuration.
showExportModalOpens the 3D model export dialogue.
showExportImageModalOpens the image export dialogue.
exportGlbExports the current product configuration as a GLB 3D model file.
exportUsdzExports the current product configuration as a USDZ 3D model file.
exportStlExports the current product configuration as an STL file for 3D printing or manufacturing.
exportObjExports the current product configuration as an OBJ 3D model file.
saveImageCaptures and saves the current product view as a high-quality image.
getPdfTabsLists eligible PDF section IDs, labels, and types for the current product.
generateProductPDFGenerates a comprehensive PDF document for the current product configuration.
showAROpens the Augmented Reality (AR) viewing interface.
generateARCreates an Augmented Reality (AR) version of the current product configuration.
regenerateARAttempts to recreate an AR model when initial generation fails.
getARShortCodeDataRetrieves detailed information about an AR model from its shortcode.
havePermissionsChecks if the current user has specific permissions.
getBomDebugInfoRetrieves Bill of Materials (BOM) information for the current configuration.
getBundlingDebugInfoRetrieves information about product bundling settings
getBundlingCoverageInfoRead bundling coverage for the requested pattern.
savePodFilesToMediaLibrarySave 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.
getPodFilesUrlGenerates 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​

Utils reference

UtilityUse
dispatchEventDispatches a DOM custom event and relays its serializable details to the parent window.
cssMediaBrowser media-query, pixel-ratio and device detection helpers.
takeScreenshotCaptures the current 3D configuration. Use the options form for camera, projection, fitting, or projection metadata.
getShortcodeGenerates a unique shortcode for a specific product configuration.
setPriceSets custom pricing data for the current product configuration.
setPricingSettingsConfigures the decimal place settings for price display.
showModularDisplays and renders a modular product configurator.
showConfiguratorDisplays and renders a standard product configurator.
closeConfiguratorCloses and unmounts the active configurator from the DOM.
addToCartTriggers 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​

EventDetailWhen 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-changedEmbedAnalyticsContextPer-instance analytics identity resolved or invalidated.
mimeeq-app-template-errorAppTemplateErrorEventPayloadError 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-errorAppApiErrorEventPayloadEligible 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-unmountedTreeUnmountedEventPayloadEmbed unmounted from DOM, with type identifier (legacy embed only).

Configuration and history​

EventDetailWhen it fires
mimeeq-select-optionSelectOptionEventPayloadOption selected in the option panel.
mimeeq-select-popular-variantSelectPopularVariantEventPayloadPopular configuration variant selected.
mimeeq-select-tabSelectTabEventPayloadTab changed in the configurator.
mimeeq-price-changePriceChangeEventPayloadSignals a pricing input change on a standard product.
mimeeq-price-fetchedPriceFetchedEventPayloadCurrent built-in price request completed (success or failure).
mimeeq-select-filtersSelectFiltersEventPayloadFilters changed.
mimeeq-deactivate-matching-optionsDeactivateMatchingOptionsEventPayloadMatch Options toggled.
mimeeq-activate-matching-optionsDeactivateMatchingOptionsEventPayloadMatch Options was activated.
mimeeq-change-quantityChangeQuantityEventPayloadQuantity changed in the configurator.
mimeeq-download-fileDownloadFileEventPayloadFile downloaded from gallery or files tab.
mimeeq-open-related-productOpenRelatedProductEventPayloadRelated product clicked.
mimeeq-clear-filters—Clear Filters button clicked.
mimeeq-history-go-backHistoryItemAn undo step was applied.
mimeeq-history-go-forwardHistoryItemA 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-productProductPrefixEventPayloadProduct configurator opened.
mimeeq-leave-productProductPrefixEventPayloadProduct configurator closed.

Favourites and product lists​

EventDetailWhen it fires
mimeeq-favourites-add-productProductPrefixEventPayloadProduct added to favourites.
mimeeq-favourites-remove-productProductPrefixEventPayloadProduct removed from favourites.
mimeeq-favourites-add-collectionFavouritesCollectionEventPayloadFavourites collection created.
mimeeq-favourites-update-collectionFavouritesCollectionEventPayloadFavourites collection updated.
mimeeq-favourites-remove-collection—Favourites collection(s) deleted.
mimeeq-favourites-copy-to-collectionFavouritesCollectionItemsEventPayloadItems copied to another favourites collection.
mimeeq-favourites-move-to-collectionFavouritesCollectionItemsEventPayloadItems moved to another favourites collection.
mimeeq-favourites-delete-from-collectionFavouritesDeleteFromCollectionEventPayloadItems removed from a favourites collection.
mimeeq-open-favourites—Favourites panel opened from the product list.
mimeeq-close-favourites—Favourites panel closed.
mimeeq-select-favourites-collectionSelectFavouritesCollectionEventPayloadFavourites collection selected from menu.
mimeeq-product-list-select-productProductListSelectProductEventPayloadProduct selected from product list.

Finish, cart intent and pricing context​

EventDetailWhen it fires
mimeeq-before-add-to-cartBeforeAddToCartEventPayloadAdd to Cart action started, before validation and payload preparation.
mimeeq-scene-validationSceneValidationEventPayloadModular scene validation completed before a Finish or Add to Cart action.
mimeeq-show-summaryFinishEventPayloadFinish button clicked (non-basket mode).
mimeeq-select-productFinishEventPayloadSelect button clicked (selector variant).
mimeeq-add-to-cartFinishEventPayloadHands off the prepared configuration and pricing for a basket action.
mimeeq-app-url-changeFinishEventPayloadURL updated after finish action.
mimeeq-select-companySelectCompanyEventPayloadCompany changed in price selector.
mimeeq-select-price-typeSelectPriceTypeEventPayloadPrice type changed in price selector.

Exports, viewport and hotspots​

EventDetailWhen it fires
mimeeq-show-export-pdf-modal—Generate PDF modal opened.
mimeeq-pdf-generate-start—PDF generation started.
mimeeq-pdf-generate-donePdfGenerateDoneEventPayloadPDF generation completed.
mimeeq-3d-before-export-image—Image export started.
mimeeq-3d-after-export-image—Image exported and saved.
mimeeq-2d-image-downloadedImageDownloadedEventPayloadImage downloaded from the image gallery (2D viewer).
mimeeq-3d-before-export-sceneExportSceneEventPayload3D model export started.
mimeeq-3d-after-export-sceneExportSceneEventPayloadA 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-onstringHighlight Group behavior started on mesh hover.
mmq-action-highlight-group-offstringHighlight Group behavior ended on mesh hover exit.
mmq-action-open-groupstringA mesh click fired Open Group.
mmq-action-scroll-to-blockstringClicked mesh with Scroll to Block action.
mmq-action-flash-highlight-blockstringScrolled to option block after Scroll to Block mesh click.
mimeeq-click-hotspotClickHotspotEventPayloadHotspot clicked in the 3D scene.

Augmented reality​

EventDetailWhen it fires
mimeeq-generate-ar-short-codeGenerateArShortCodeEventPayloadAR short code generated.
mimeeq-ar-modal-openedArModalOpenedEventPayloadDesktop AR QR modal opened.
mimeeq-ar-get-back-to-configurationArGoBackEventPayloadEdit button clicked on AR landing page.
mimeeq-ar-viewer-launch-attemptedArViewerLaunchEventPayloadNative viewer launch requested from the Android AR landing page.
mimeeq-ar-viewer-quick-returnArViewerQuickReturnEventPayloadBrowser returned rapidly after an observed Android viewer handoff.

Authentication​

EventDetailWhen it fires
mimeeq-auth-loaded—Authentication library loaded.
mimeeq-enter-login—Login form shown.
mimeeq-leave-login—Login form closed.
mimeeq-login-successLoginSuccessEventPayloadLogin 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-successSignUpSuccessEventPayloadSign Up successful.
mimeeq-logout-success—Logout completed.
mimeeq-enter-profile—User profile opened.
mimeeq-leave-profile—User profile closed.
mimeeq-user-signed-inUserSignedInEventPayloadUser 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-codeResendSignupConfirmCodeEventPayloadSignup 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​

EventDetailWhen it fires
mimeeq-basket-createdBasketCreatedEventPayloadNew basket created.
mimeeq-basket-submittedBasketSubmittedEventPayloadBasket submitted as order/RFQ.
mimeeq-basket-updatedBasketUpdatedEventPayloadBasket contents or totals updated.
mimeeq-basket-item-addedBasketItemAddedEventPayloadItem added to basket.

Modular scene​

EventDetailWhen it fires
mimeeq-modular-add-product-to-sceneModularProductSceneEventPayloadProduct added to the modular scene.
mimeeq-modular-insert-product-to-sceneModularProductSceneEventPayloadProduct inserted between elements on the scene.
mimeeq-modular-move-productModularProductSceneEventPayloadProduct 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-replacedModularProductSceneEventPayloadProduct replaced with another on the scene.
mimeeq-modular-select-product-to-addModularSelectProductToAddEventPayloadProduct to add chosen from product list modal.
mimeeq-modular-select-optionModularSelectOptionEventPayloadOption selected for a single product in modular.
mimeeq-modular-select-option-multipleModularSelectOptionMultipleEventPayloadOption applied to multiple products in modular.
mimeeq-modular-load-sceneModularLoadSceneEventPayloadThe 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-sceneModularSaveSceneEventPayloadScene saved or updated as favourite.
mimeeq-modular-create-new-sceneModularLoadSceneEventPayloadNew 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 loadsCheck the loaded flag and listen once
Subscribe as soon as the API is installedCheck window.mimeeqApp and listen for mimeeq-api-installed
Show a deferred embedAwait embed.whenReady(), then call embed.show() on the same element.
Wait for measured geometryobservers.status.firstRender and observers.scene.bounds
Read one value immediatelyThe observer's getValue()
Render a live controlThe observer's subscribe()
Know which product is openobservers.product.mainProductData
Detect a product switch or a loading productobservers.product.mainProductData and observers.status.loading
Get the current SKUobservers.product.sku
Navigate a block’s visible optionsobservers.optionSets.visibleOptionsByBlock
Read the cropped artwork URLobservers.optionSets.printOnDemandCrops by instance ID and block ID
Read the active quantity price breakobservers.pricing.activePriceTier
Read a block's selected optionsobservers.optionSets.selectedOptionsByBlockCode
Show available choices and disabled blocksobservers.optionSets.blocks
Find incomplete option groupsobservers.optionSets.blockGroups
Set a standard option by its codeactions.markOptionByBlockNameAndOptionCode
Apply a saved standard configurationactions.setConfigurationCode
Check required selections before showing a host actionobservers.product.isConfigurationCodeValid and observers.product.hiddenRequiredOptions
Trigger widget opening or closingactions.openWidget and actions.closeWidget
Trigger group open, close, or hoveractions.openGroup, actions.closeGroup, and actions.hoverGroup
Trigger a button widgetactions.clickButtonWidget
Dismiss the current hotspotactions.closeHotspot with the mesh ID from observers.product.hotSpot
Build an asset URL from the embed CDNobservers.config.cdnPath
Read the active template’s translation setobservers.config.translationSetId
Save shopper uploads and link to them from a PDFMedia Library PDF recipe
Read the active languageobservers.config.locale
Set the embed's wordingAssign a translation set to the template
Greet a signed-in userobservers.auth.user
Find out whether a user has a permissionactions.havePermissions
Update the order quantityactions.setQuantity
Render the current price and loading stateobservers.pricing.prices and observers.status.priceLoading
Apply a custom price and ignore its echoutils.setPrice and observers.pricing.priceSource
Show the resolved lead time in daysobservers.product.availability
Share a configured standard productactions.getShareUrl
Save a modular layout and share itactions.getModularShareUrl
Save the current modular design on this deviceactions.saveLastSavedDesign
Restore the last local autosaveactions.getLastSavedDesign and actions.loadModularScene
Restore a modular sceneactions.loadModularScene
Show the catalog of placeable modulesobservers.modular.catalog
List every placed itemobservers.modular.sceneItems
Group a scene summary by configuration code or product IDactions.getGroupedSceneItems('configurationCode') or actions.getGroupedSceneItems('productId')
Choose a component to placeactions.chooseProductToAdd
Highlight valid placement controlsobservers.modular.snapPlacementControls
Inspect connected or free snaps by placed itemobservers.modular.snapStatuses
Add a component at an open connectoractions.addProductToSnappingPoint
Insert a component at an allowed existing jointactions.insertProductAtSnap
Show modular rules by auto-sync typeobservers.modular.autoSyncRulesByType
Edit options on specific placed itemsobservers.modular.instanceBlocks and actions.markOptionByCodeForInstances
Show prices by placed itemobservers.modular.instancePrices
Anchor a DOM toolbar over a placed itemactions.getInstanceScreenRect with the item ID
Read world-space bounds by placed itemobservers.scene.instanceBounds
Enable undo and redo buttonsobservers.history.canUndo and observers.history.canRedo
Undo or redo a changeactions.goBack or actions.redo
Make the current configuration the history baselineactions.resetHistoryBaseline
Switch camera projectionobservers.camera.projectionMode and actions.setCameraProjectionMode
Look from a particular eye position at a targetactions.setCameraPose
Fit the model beside a UI sidebaractions.fitCameraToScene with insets
Change or temporarily pause auto-rotationactions.setCameraAutoRotate or actions.pauseCameraAutoRotate
Stop automatic camera fittingactions.setCameraAutoFitLocked
Build a zoom slider within the camera limitsobservers.camera.zoomLevel, observers.camera.zoomLimits, and actions.setZoom
Trigger the configured add-to-cart flowutils.addToCart
Add a line item to a host cart with a previewmimeeq-add-to-cart and event.detail.image
Track a selected option in host analyticsmimeeq-select-option or mimeeq-modular-select-option
Read active mesh materials or texture channelsobservers.meshes.materials or observers.meshes.textures
Position a label on a visible meshobservers.meshes.hotspots and actions.getMeshPosition
Project custom points onto the canvasactions.getScreenPosition
Show required snap progress or warningsobservers.modular.modularSceneElements and observers.modular.sceneValidity
Move a free modular item with undoactions.placeFreeItem and actions.goBack
Wait for product data to settle or for a still frameobservers.status.settled for data, or firstRender and sceneSettled for settled 3D capture
Show the dimensions toggle or report measurementsobservers.dimensions.available, visible, and values
List selectable sections for a PDFactions.getPdfTabs
Capture the configured productutils.takeScreenshot
Open the configured AR experienceactions.showAR
Open the PDF export controlsactions.showExportPDF
Adapt a host control at a breakpointutils.cssMedia.matchMedia, then dispose() at teardown
Notify a host script of a custom actionutils.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​