Window

Document object, represents an opened document in the editor

Window

Classes

Window

Methods

async close()

Close the current modal dialog Only works for modal dialog
Since:
  • 22.11

async endModal(endModalParams)

End the current Modal, returning endModalParams The endModalParams should be a seralizable object. By default the UECI doesn't make use of this endModal params directly. Editor will need to override the default endModal function to pickup the return value from web modal dialog, and specialization implementation is needed on each Editor to handle the return data. E.g. for ShapesCloud, the native plugin will override the endModal() function and pass the stringifyed json object to native plugin, then the native plugin will parse the structural files from it and then place/open the .ard or .zae file.
Parameters:
Name Type Description
endModalParams The customized parameters to be returned to the native plugin
Throws:
if current view is not on modal dialog
Since:
  • 23.03

async isModal() → {bool}

Whether window is modal
Returns:
bool
Since:
  • 22.11

async resize(size)

Resize current window Only work for modal dialog
Parameters:
Name Type Description
size Size size of the modal dialog
Since:
  • 22.11