Minimum Requirements

  • Install plattar-web SDK (see installation section)
  • Website must be hosted and using https protocol
  • Browser must support webgl 1 & 2 (supported by modern browsers)

Supported Attributes

The following HTML Attributes are supported by all plattar-web SDK nodes

  • width (optional)

Sets the width for the Viewer in pixels. This attribute is optional and default value is 500px.

<plattar-viewer scene-id="" width="500px" />
  • height (optional)

Sets the height for the Viewer in pixels. This attribute is optional and default value is 500px.

<plattar-viewer scene-id="" height="500px" />
  • fullscreen (optional)

Resizes the Viewer to be the same size as the current window. This will ignore the previously set width and height attributes. This attribute is optional and disabled by default.

<plattar-viewer scene-id="" fullscreen />
  • sameorigin (optional)

Marks the Viewer to initialise on the same origin as the website. This attribute is optional and disabled by default.

<plattar-viewer scene-id="" sameorigin />
  • server (optional)

The backend server to target for the embedded Scene. This must be one of production, staging or dev. This attribute is optional and default value is production.

<plattar-viewer scene-id="" server="production" />