Skip to main content
Version: v5.3

IafViewer

IafViewer overview​

The IafViewer is a React component which enables a user to interact with a digital twin model in 3D space using various tools.

This page describes how to install and import the IafViewer component and describes the range of React data props available.

Note: Most applications use IafViewerDBM, which loads model files and forwards the same mode object props (view3d, view2d, gis, arcgis, ue, photosphere, modelComposition) documented here. For a product introduction and mode guides, see IafViewer Overview and IafViewer Enhanced Viewing Modes.

Install​

npm install @dtplatform/iaf-viewer

Import​

import { IafViewer } from "@dtplatform/iaf-viewer";

Props​

Data props​

PropTypeDescriptionDefault valueRequired
toolbarSizeStringSets the size of the toolbar. Pass none, small, medium, or large.mediumNo
showToolTipBooleanEnables or disables the tool tip hover-over descriptions. Pass true or false.trueNo
sidePanelColorStringSets the side panel color. You can pass a hex code, RGB value, or a color name."#1D1D1D"No
onHoverIconColorStringSets the icon color during a mouse hover event.invert(40%) sepia(86%) saturate(6224%) hue-rotate(311deg) brightness(83%) contrast(101%)No
onActiveIconColorStringSets the color of the active icon.invert(40%) sepia(86%) saturate(6224%) hue-rotate(311deg) brightness(83%) contrast(101%)No
toolbarColorStringSets the toolbar color."#333333"No
isShowNavCubeBooleanShows or hides the navigation cube.trueNo
modelVersionIdStringPass the model's version id as a string.No
showNotificationBooleanShow or hide notificationstrueNo
enableFocusModeBooleanEnable or disable focus modetrueNo
enable2DViewerBooleanToggles the display of the 2D viewertrueNo
enableOptimizedSelectionBooleanEnables a performance-optimized algorithm that improves 2D and 3D node selection speed and prevents unnecessary rerenderingfalseNo
workflowObjectAnimation workflows (markup, sprites, transforms). See IafViewerDBM — Animations.See PropertyStore defaultsNo
modelCompositionObjectWhich models and disciplines load. See modelComposition.See breakdownNo
enablePersistenceBooleanWhen true, persists viewer state (annotations, GIS, graphics, view settings) to the configured backend. When false, falls back to local browser storage.falseNo
view3dObject3D view configuration. See View3d.See breakdownNo
view2dObject2D view configuration. See View2d.See breakdownNo
gisObjectMapbox GIS mode. See GIS.See breakdownNo
arcgisObjectArcGIS SceneView mode. See Arcgis and arcgis overview.No
arcgisOverviewObjectArcGIS overview / context map. Same prop shape as arcgis with different layout defaults.No
ueObjectUnreal Engine pixel-stream view. See UE.No
photosphereObject360° panoramic view. See Photosphere.No
apsObjectAutodesk Platform Services (APS) viewer mode. See APS.See breakdownNo
i18nObjectLanguage, message overrides, and fonts for the viewer chrome. See i18n.{ locale: 'en', messages: {}, fontFamily: undefined, fonts: [] }No
titleStringUnique label for identifying the viewer instance in logs and debugging.undefinedNo

Callback props​

PropEvent that triggers callback functionReturns
OnIsolateElementChangeCallbackThe user isolates an element in the graphics viewer when they right-click the element, then click IsolateThe ID of the isolated element
OnSelectedElementChangeCallbackThe user selects one or more elements in the graphics viewerAn updated array of the selected elements' IDs
OnResetCallbackThe user clicks the Reset buttontrue
OnHiddenElementChangeCallbackThe user hides one or more elements in the graphics viewerAn updated array of the hidden elements' IDs
saveSettingsThe user clicks the Save & Close button in the Settings pane.The IafViewer settings as a JSON object for your function to store in local storage.
OnNotificationCallbackAn info, warning or error notification event occurs.The notification as a JSON object
OnViewerReadyCallbackCallback function that triggers when the model's structure is successfully loaded and ready. This is called separately for 3D and 2D viewers. Pass '2d' or '3d' as the parameter.

Example​

import React from "react";
import { IafViewer } from "@dtplatform/iaf-viewer";

const ViewerPage = () => {

const mySaveSettingsFunction = (settings) => {
//your function here
}

return (
<PageTemplate>
<IafViewer
toolbarSize={"large"}
saveSettings={mySaveSettingsFunction}
/>
</PageTemplate>
)
}

export default ViewerPage;

Object prop breakdowns​

Defaults below match PropertyStore in @dtplatform/iaf-viewer. Apps usually pass these through IafViewerDBM.

modelComposition​

PropTypeDescriptionDefault valueRequired
modelComposition.defaultFederationTypeString"SingleModel" (one model from model / modelVersionId), "Project" (all workspace models), or "MultiModel" (outlines placed only from the models listed in clusteredModels)"SingleModel"No
modelComposition.clusteredModelsArrayOptional clusters of models (filter + shared map outline / site). Used with Project / MultiModel. Each entry may be a string array or { evmMode?, ids, center?, altitude?, id?, name?, title?, bearing?, zoom? }.[]No
modelComposition.clusteredModels[].evmModeStringMode of the cluster's designs. Omit for View3D (ids are model _id values, outline from Graphics Service ViewOutline). Set to 'aps' for APS (ids are design URNs, outline from APS Extra Derivatives GlbDraco).View3DNo
modelComposition.clusteredModels[].idsArrayModel IDs (View3D) or design URNs (APS) in the cluster. modelIds is still accepted as a legacy alias for View3D clusters only.—Yes, for object entries
modelComposition.initialObjectPer-discipline { load, visible } for Structural, Architectural, Mechanical, Electrical, Plumbing, FireProtection, Infrastructural, default. Architectural defaults to { load: true, visible: true }; others default to { load: false, visible: false }.See PropertyStoreNo
modelComposition.qualityStringDynamic-loading eligibility: 'low' (default), 'medium', 'high'.'low'No

How each federation type treats View3D and APS clusters:

Federation typeView3D clustersAPS clusters
SingleModelUnchangedIgnored
ProjectUnchanged (all project models; clusters act as a filter)Not seeded or placed
MultiModelOutlines only from View3D clusters (no all-project fallback)Placed as GlbDraco outlines

Resolution order when merging composition: props.settings → localStorage (iafviewer_settings) → props.modelComposition → PropertyStore default. Integrator guide: Model composition.

View3d​

PropTypeDescriptionDefault valueRequired
view3d.enableBooleanEnables or disables the 3D model rendering.trueNo
view3d.visibleBooleanShows or hides the enabled widget without turning it off.trueNo
view3d.opacityNumberModel opacity between 0.0 (transparent) and 1.0 (opaque).1.0No
view3d.displayModeEnumEvmUtils.EVMDisplayMode: DEFAULT, SPLIT, FULLSCREEN, FIXED.FULLSCREENNo
view3d.showToolbarBooleanShows or hides the 3D viewer toolbar.falseNo
view3d.showLauncherBooleanShows or hides the main-toolbar launcher that opens the 3D viewer.trueNo
view3d.alignmentEnumEvmUtils.EVMWidgetAlignment: LEFT_TOP, LEFT_BOTTOM, RIGHT_TOP, RIGHT_BOTTOM (SPLIT / FIXED).RIGHT_TOPNo
view3d.orderNumberLayout order among EVM widgets.1No
view3d.marginNumberLayout margin.0No
view3d.renderingModeEnumDraw mode (for example EvmUtils.EVMDrawMode.Shaded).ShadedNo
view3d.onRenderingModeChangeFunction(mode) => void when rendering mode changes.noopNo
view3d.cameraObjectStructured camera placement, aligned with aps.camera: enable, mode ('spherical' | 'absolute'), projection, fov, view (named orientation), spherical { bearingDeg, pitchDeg, distance, useModelOriginTarget }, absolute { position, target, up, width, height, nearLimit }. A Communicator.Camera.toJson() object is also accepted and normalized into absolute. To restore a saved camera, assign a stored onCameraUpdate payload back to view3d.camera.{ enable: false }No
view3d.onCameraUpdateObject{ delayInMs, callback } — throttled camera observer. delay is still accepted as an alias for delayInMs. After a named-view apply, the payload may include view. Prefer this over driving Mapbox / View3D cameras from app code when GIS is also enabled.{ delayInMs: 300, callback: undefined }No
view3d.rendering.ignoreSpaceTransparencyInGlassBooleanIn Glass mode, draws isolated spaceElementIds in the XRay Selected overlay, which overrides authored space transparency. Set to false to keep authored space transparency.trueNo
view3d.keepAliveBooleanKeep-alive for the 3D subtree load.falseNo

When the GIS overlay is on, the GIS tuner can overwrite the camera every frame, so camera pushes from view3d.camera compete with it.

View2d​

PropTypeDescriptionDefault valueRequired
view2d.enableBooleanEnables or disables the 2D viewer.trueNo
view2d.visibleBooleanShows or hides the enabled widget without turning it off.trueNo
view2d.fullscreenBooleanWhen true, the 2D viewer occupies the full screen.falseNo
view2d.displayModeEnumEvmUtils.EVMDisplayMode: DEFAULT, SPLIT, FULLSCREEN, FIXED.DEFAULTNo
view2d.showToolbarBooleanDisplay or hide the 2D viewer toolbar.trueNo
view2d.showLauncherBooleanShows or hides the launcher for the 2D viewer.trueNo
view2d.alignmentEnumLEFT_TOP, LEFT_BOTTOM, RIGHT_TOP, RIGHT_BOTTOM.LEFT_TOPNo
view2d.orderNumberLayout order.2No
view2d.marginNumberLayout margin.10No
view2d.keepAliveBooleanKeep-alive for the 2D subtree.falseNo

GIS​

GIS features rely on external GIS services like Mapbox. Applications integrating GIS must:

  • Supply a valid Mapbox token (token)
  • Handle token lifecycle (generation, refresh, expiration)
  • Ensure compliance with Mapbox’s licensing, usage limits, and terms of service.

gis is a top-level prop group — not nested under view3d.

PropTypeDescriptionDefault valueRequired
gis.enableBooleanEnables or disables GIS mode.falseNo
gis.visibleBooleanShows or hides the enabled widget without turning it off.trueNo
gis.tokenStringMapbox access token (app-managed lifecycle).undefinedNo
gis.opacityNumberMap layer opacity (0.0–1.0).1.0No
gis.federatedModeEnumEvmUtils.EvmFederatedMode: None, Outline, Hybrid (enum; not offered in GIS UI today), Dynamic, Markers.OutlineNo
gis.primaryModelIdStringReference model for alignment.undefinedNo
gis.elevationModeEnumEvmUtils.EvmElevationMode (for example None, QuickSurface, Underground).NoneNo
gis.showMapMarkersBooleanShow location markers on the map.trueNo
gis.enableLocationTooltipOnHoverBooleanWhen true, marker hover tooltip includes Lat/Lng under the title.trueNo
gis.initialObjectDefault Mapbox session: zoom, bearing, pitch, center: { lng, lat }, and clusterLoadMode ("Replace" | "Incremental"). Partial gis.initial merges with PropertyStore defaults.See PropertyStore (clusterLoadMode: "Replace")No
gis.initial.enableOverlayBooleanSet to false when your application shows the detailed model in a separate widget, such as Geo BIM side by side. It also resolves to false when any APS cluster is present. When it's effectively false: Reference Model, Rendering Distance, and Rendering Zoom stay visible but disabled; the federated-mode dropdown omits None and Dynamic and coerces to Outline; double-click doesn't call setPrimaryModel, but onModelSelect still fires.trueNo
gis.dynamicRenderingDistanceNumberScales detailed vs outline switching distance (meters baseline × scale).750No
gis.dynamicRenderingZoomNumberMap zoom offset for the same switching logic.14No
gis.onIafMapReadyFunction(mapProxy) => void when the Mapbox instance is ready.undefinedNo
gis.onFederatedModeChangedFunction(federatedMode) => voidundefinedNo
gis.onReferenceModelChangedFunction(modelId) => voidundefinedNo
gis.onElevationModeChangedFunction(elevationMode) => voidundefinedNo
gis.onModelSelectFunction(modelId, eventType, modelIds) => void. Fires for both 'click' and 'dblclick', and fires even when View3D is disabled. modelIds lists every marker under the pointer ( IDs and/or APS IDs); filter it in your application.undefinedNo
gis.onOutlineLoadedFunction(modelIds) => voidundefinedNo
gis.onLongitudeChange / onLatitudeChange / onBearingChange / onAltitudeChangeFunction(modelIds, value) => void for realignment changesundefinedNo
gis.displayModeEnumDEFAULT, SPLIT, FULLSCREEN, FIXED.FULLSCREENNo
gis.showToolbarBooleanGIS toolbar visibility.falseNo
gis.showLauncherBooleanLauncher visibility.trueNo
gis.alignmentEnumWidget alignment for SPLIT / FIXED.RIGHT_TOPNo
gis.debug.showGisAnchorLabelBooleanDiagnostic: shows the GIS anchor label.falseNo
gis.debug.showOutlineModelOriginLabelBooleanDiagnostic: shows the outline model origin label.falseNo
gis.debug.showAxisOriginLabelBooleanDiagnostic: shows the axis origin label.falseNo
gis.debug.originLabelDisplayStringWhat the origin labels show: 'geo', 'model', or 'both'.'both'No

Integrator UI and camera-sync guidance: IafViewer GIS (Mapbox). Multi-building consumption: Federated View3D Buildings on Gis(Mapbox).

Arcgis and arcgis overview​

PropTypeDescriptionDefault valueRequired
enableBooleanEnables or disables the ArcGIS view.falseNo
visibleBooleanShows or hides the enabled widget without turning it off.trueNo
slicedElementsArrayList of model elements to slice or clip within the scene.[]No
themeElementsArrayElements with visual themes or highlighting applied.[]No
layersArrayArcGIS layers to render.[]No
graphicsArrayGraphic overlays (points, lines, polygons).[]No
zoomElementsArrayElement IDs or references to zoom into on initialization.[]No
cameraObjectCamera configuration (position, tilt, heading).{}No
configObjectPortal URL, API key, web scene id, WKID, and SceneView options.undefinedNo
portalUrlStringArcGIS portal URL (often under config).undefinedNo
apiKeyStringArcGIS portal API key.undefinedNo
modelStringWeb scene ID to load.undefinedNo
sceneWKIDStringSpatial reference WKID.undefinedNo
commandArrayLegacy command queue.[]No
eventHandlerFunctionCallback for ArcGIS viewer events.undefinedNo
onIafMapReadyFunction(mapInstance) => void when SceneView / MapView is ready.undefinedNo
displayModeEnumLayout mode. Defaults: arcgis FULLSCREEN; arcgisOverview DEFAULT.see leftNo
showToolbarBooleanToolbar visibility.trueNo
alignmentEnumWidget alignment. Defaults: arcgis LEFT_TOP; arcgisOverview LEFT_BOTTOM.see leftNo
arcgis={{
enable: true,
slicedElements: ['zone-12'],
themeElements: ['sensor-critical'],
layers: ['base-terrain', 'heatmap-layer'],
graphics: [customLine, customPoint],
zoomElements: ['facility-23'],
camera: { heading: 45, tilt: 30 },
config: {
portalUrl: "https://gis.example.com/arcgis",
apiKey: `#########################################`,
model: "6745f5a0f1df4812a26925c19fdab6f8",
sceneWKID: 102100,
shadows: false,
groundOpacity: 1,
popUpEnabled: false,
highlightOnClick: false,
},
command: [],
displayMode: EvmUtils.EVMDisplayMode.SPLIT,
showToolbar: true,
alignment: EvmUtils.EVMWidgetAlignment.RIGHT_BOTTOM,
eventHandler: (event) => {
console.log('ArcGIS event:', event);
},
onIafMapReady: (mapInstance) => {
mapInstance.setMapStyle("arcgis/light-gray");
}
}}

UE​

PropTypeDescriptionDefault valueRequired
ue.enableBooleanEnables or disables the Unreal Engine viewer.falseNo
ue.visibleBooleanShows or hides the enabled widget without turning it off.trueNo
ue.configObject{ server, app } for the pixel-stream connector URL.{ server: "", app: "" }No
ue.zoomElementsArrayElement IDs to focus on when initializing.[]No
ue.commandArrayLegacy command queue.[]No
ue.eventHandlerFunction(event) => void for UE viewer events.noopNo
ue.onUeReadyFunction(viewerInfo) => void when the stream is ready (sendCommand, viewerReady, …).noopNo
ue.displayModeEnumDEFAULT, SPLIT, FULLSCREEN, FIXED.DEFAULTNo
ue.showToolbarBooleanToolbar visibility.trueNo
ue.showLauncherBooleanLauncher visibility.trueNo
ue.alignmentEnumWidget alignment.RIGHT_BOTTOMNo
ue={{
enable: true,
config: {
server: 'https://connector.example.com',
app: '/v6/eyJ...'
},
zoomElements: ['machine-42'],
command: [],
displayMode: EvmUtils.EVMDisplayMode.FULLSCREEN,
showToolbar: false,
alignment: EvmUtils.EVMWidgetAlignment.LEFT_TOP,
eventHandler: (event) => {
console.log('Unreal Engine event:', event);
},
onUeReady: (viewerInfo) => {
if (viewerInfo.viewerReady) {
// viewerInfo.sendCommand({ commandName, params })
}
}
}}

Integrator guide: IafViewer Unreal Engine.

Photosphere​

PropTypeDescriptionDefault valueRequired
photosphere.enableBooleanEnables or disables the Photosphere view.falseNo
photosphere.visibleBooleanShows or hides the enabled widget without turning it off.trueNo
photosphere.configObject{ modelUriBase, model: { id, defaultImage, defaultScene, scenes } }. Image URL is modelUriBase + defaultImage.See PropertyStoreNo
photosphere.eventHandlerFunctionOptional callback for scene-change / hotspot events.undefinedNo
photosphere.displayModeEnumDEFAULT, SPLIT, FULLSCREEN, FIXED.DEFAULTNo
photosphere.showToolbarBooleanToolbar visibility.trueNo
photosphere.showLauncherBooleanLauncher visibility.trueNo
photosphere.alignmentEnumWidget alignment.RIGHT_TOPNo
photosphere={{
enable: true,
config: {
modelUriBase: 'https://example.com/panoramas/',
model: {
id: 'lobby-tour',
defaultImage: 'lobby.jpg',
defaultScene: {
id: 'lobby',
type: 'equirectangular',
autoLoad: true,
hfov: 110,
pitch: 0,
yaw: 0,
hotSpots: []
},
scenes: []
}
},
displayMode: EvmUtils.EVMDisplayMode.FULLSCREEN,
showToolbar: true,
alignment: EvmUtils.EVMWidgetAlignment.LEFT_BOTTOM
}}

Integrator guide: IafViewer Photosphere.

APS​

Autodesk Platform Services (APS) viewer mode. The IafViewer loads the Autodesk Viewer (LMV) SDK from the Autodesk CDN (default SDK 7.100, configurable with aps.config.sdkVersion) and uses the viewer token your application passes in aps.config.accessToken. APS requires network access to developer.api.autodesk.com. An APS-enabled GraphicsService is optional and provides the APS REST proxy (OSS, Model Derivative, Extra Derivatives).

PropTypeDescriptionDefault valueRequired
aps.enableBooleanMaster switch for the APS widget.falseNo
aps.visibleBooleanShows or hides the enabled widget without turning it off.trueNo
aps.layoutObjectWidget chrome: displayMode, showToolbar, showLauncher, alignment, order, margin. Top-level legacy keys on aps are still read.displayMode: FULLSCREEN, showToolbar: true, showLauncher: true, alignment: LEFT_TOP, order: 6, margin: 0No
aps.config.urnString | ArrayDesign URN, or an ordered set of URNs loaded in one viewer. Element 0 is primary and drives single-design APIs.undefinedYes, to load a design
aps.config.viewableGuidStringViewable to load. Takes precedence over viewableName. If no viewable matches, the viewer falls back to {3D}.undefinedNo
aps.config.viewableNameStringViewable to load by name.undefinedNo
aps.config.accessTokenStringAPS token that your application supplies. The viewer uses it to load designs and forwards it to GraphicsService as X-Aps-Access-Token. The token's scopes decide which APIs work: for example, a viewables:read token loads and displays designs, but payload.apis.server.fetchModelProperties also needs data:read, and uploadModelFile needs data:write and data:create. For the full scope table, see IafViewer APS — Access token scopes. Legacy top-level aps.accessToken is still accepted.undefinedYes
aps.config.bucketKeyStringOSS bucket, forwarded to GraphicsService as X-Aps-Bucket-Key, for model list and upload. Optional if urn is provided.undefinedNo
aps.config.sdkVersionStringLMV SDK version. undefined uses the loader default.undefinedNo
aps.config.modelOutlineQualityObjectMesh quality for GIS outline placement: mode 'source' (original GlbDraco), 'simplify' (meshoptimizer), or 'shell' (voxel outer surface, uses voxelCm); plus ratio, error, voxelCm.{ mode: 'source', ratio: 0.02, error: 0.02, voxelCm: 50 }No
aps.config.initial.extensionsArrayOptional LMV extension IDs, such as Autodesk.DocumentBrowser. Prefer dedicated aps.* props where they exist.[]No
aps.config.initial.enableDefaultUiBooleantrue uses GuiViewer3D; false uses Viewer3D (no LMV toolbar).trueNo
aps.camera​

Pushing a pose doesn't lock the canvas. Orbit, pan, and zoom stay interactive. The camera is Z-up.

PropTypeDescriptionDefault valueRequired
aps.camera.enableBooleanEnables camera placement from mode.falseNo
aps.camera.modeString'spherical' (bearing and pitch orbit) or 'absolute' (explicit position and target).'spherical'No
aps.camera.viewStringNamed orientation: 'home', 'fit', 'top', 'bottom', 'front', 'back', 'left', 'right'. A non-empty view owns the camera; clear it to hand control back to mode. Applies independently of enable.undefinedNo
aps.camera.projectionString'perspective' or 'orthographic'. undefined leaves LMV alone. Applies even when enable is false.undefinedNo
aps.camera.fovNumberVertical field of view in degrees. Ignored when orthographic.undefinedNo
aps.camera.showNavCubeBooleanShows the LMV navigation cube (ViewCube).falseNo
aps.camera.sphericalObjectbearingDeg (−180 to 180), pitchDeg (0 to 85), distance (undefined keeps the current distance), useModelOriginTarget (true aims at the model bounding-box center).{ bearingDeg: 0, pitchDeg: 30, distance: undefined, useModelOriginTarget: true }No
aps.camera.absoluteObjectposition, target, and up vectors. An omitted vector comes from the live camera.{ position: undefined, target: undefined, up: { x: 0, y: 0, z: 1 } }No
aps.navigation, aps.rendering, aps.cuttingPlanes, and aps.selection​
PropTypeDescriptionDefault valueRequired
aps.navigation.modeStringMouse mapping: undefined or 'pan' (left pan, middle dolly, right orbit), 'orbit', 'zoom', 'walk', 'firstPerson'. Matches View3D navigation.undefinedNo
aps.rendering.modeString'shaded', 'wireframeOnShaded', 'hiddenLine', 'wireframe', 'glass'. Close to View3D draw modes. An invalid value falls back to 'shaded'.'shaded'No
aps.rendering.glassObjectUsed when mode is 'glass': mode 'materials' (face opacity) or 'ghosting', and opacity (0 to 1).{ mode: 'materials', opacity: 0.05 }No
aps.rendering.sliceObjectLook of sliced elements: mode, opacity.{ mode: 'ghosting', opacity: 1 }No
aps.rendering.appearanceObjectantialiasing, ambientShadows, groundShadow, groundReflection.All falseNo
aps.rendering.displayObjectlines, points, sectionHatches, units, precision.See PropertyStoreNo
aps.rendering.performanceObjectdisableShadowEffect, progressiveDisplay, largeModelExperience.See PropertyStoreNo
aps.cuttingPlanes.enableBooleanMaster switch. false clears all cutting planes. Drives LMV only, not HOOPS cutting planes.falseNo
aps.cuttingPlanes.modeString'named' (uses planes), 'absolute' (uses absolute), or 'box' (uses box).'named'No
aps.cuttingPlanes.planesObjectCut depth from each face, 0 to 1 (0 is off): top, bottom, front, back, left, right.All 0No
aps.cuttingPlanes.absoluteArray{ x, y, z, w } plane coefficients in model units. For example, { x: 0, y: 0, z: 1, w: -5 } clips above z = 5. Up to about 6 planes.[]No
aps.cuttingPlanes.boxObject{ min: {x,y,z}, max: {x,y,z} } in viewer space. Seed it from onApsReady boundingBoxViewer, then tighten.Open box (±1e9)No
aps.selection.modeStringSelection mode.'lastObject'No
aps.selection.selectedElementIds / slicedElementIds / hiddenElementIdsArray of NumberLMV dbId integers. Each array replaces the previous set; [] clears it. There's no ↔ LMV ID mapping, so don't reuse View3D ID arrays. The slice look follows aps.rendering.slice.[]No

The Autodesk.Section gizmo isn't driven by aps.cuttingPlanes. To use it, add it to aps.config.initial.extensions.

aps.callbacks​

Use aps.callbacks.* instead of the legacy top-level aps.onApsReady and aps.onApsCameraChange, which are still read.

CallbackSignatureWhen it fires
onApsReady(payload) => voidAfter the viewer starts and loads the initial document. Payload: urn, error, viewer, document, viewableNode, namespace, viewerState, boundingBox, boundingBoxViewer, globalOffset, unit, models, apis (LMV and GraphicsService APS helper functions).
onApsModelsChange({ urns, primaryUrn, models, added, removed, failed }) => voidAfter a later change to aps.config.urn (not the initial load).
onApsCameraChange{ delayInMs: 300, callback({ position, target, up, fov, projection, view? }) }Once on ready, then debounced on every camera change. Same shape as view3d.onCameraUpdate. view appears only after a named-view apply.
onCuttingPlanesUpdate(status) => voidAfter each cutting-plane apply. status includes enable, mode, unit, appliedCount, cleared, summary, and planes[] with a human-readable meaning.
onSelectedElementChange(dbIds: number[]) => voidOn canvas selection or prop-driven highlight.
onSlicedElementChange / onHiddenElementChange(dbIds: number[]) => voidAfter each selection apply.
import { IafViewerDBM, IafEvmUtils } from '@dtplatform/iaf-viewer';

<IafViewerDBM
aps={{
enable: true,
layout: { displayMode: IafEvmUtils.EVMDisplayMode.FULLSCREEN, showToolbar: true },
config: { urn: ['dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6...'] },
camera: { enable: true, view: 'fit' },
rendering: { mode: 'shaded' },
callbacks: {
onApsReady: (payload) => console.log(payload.viewerState, payload.apis),
onSelectedElementChange: (dbIds) => setSelected(dbIds),
},
}}
/>

Integrator guide: IafViewer APS.

i18n​

Language and fonts for the viewer chrome. Your application localizes the page around the viewer.

PropTypeDescriptionDefault valueRequired
i18n.localeStringBCP 47 tag. The language subtag selects one of the 17 shipped catalogs. Unsupported tags and missing keys fall back to English.'en'No
i18n.messagesObjectNested overrides deep-merged onto the shipped catalog, using the same tree as IafI18n.catalog. Not a flat dotted map. Keep {placeholders} intact.{}No
i18n.fontFamilyStringCSS font-family stack that replaces the locale-derived stack. Include script coverage (CJK, Devanagari, and so on) yourself.undefined (derived)No
i18n.fontsArrayExtra { label, value } font choices. The markup Style dropdown is the first consumer.[]No

The IafI18n export exposes IafI18n.catalog, the English message tree, for key discovery.

Integrator guide: IafViewer internationalization.