top of page

Global Viewer Configurations


To globally set Viewer-related properties, you can add the following config to the Dimensions tag init:

const d8sApi = initDimensions({
  account: "",
  viewers: ["IMAGE", "VIDEO", "3D"],

  threeDViewer: {
    viewer: {
      controls: {
         ar: false
      }
    }
  }
});

These will be added to every instance of viewer.

Related Posts

See All

Set Website Integration

Learn how to add a code snippet to easily embed Dimensions assets using HTML and/or Javascript code. The dimensions tag is a JS snippet...

HTML Tag Attributes

The tag searches for specific data attributes in your page’s HTML. 🖼️ Images Include an image in your website like this: <div...

Programmatic

Another way to include an image on the page is through the tag’s API. const d8sApi = initDimensions({ ... }); ...

bottom of page