Members
-
MarkupMode
-
Defines type of markup object. For old Visualize markup (MarkupType) only "Line" and "Text" markup objects are supported. For new Konva markup (MarkupType) available markup objects: Line, Text, Rectangle, Ellipse, Arrow, Image, Cloud.
-
MarkupType
-
Version of the markup support. Old = "Visualize", New = "Konva"
Type Definitions
-
AssembliesResult
-
Result for assembly list.
Type:
- Object
Properties:
Name Type Description allSizenumber Total number of assemblies the user has access to.
startnumber The starting index in the assembly list in the request.
limitnumber The maximum number of requested assemblies.
resultArray.<Assembly> Result assembly list.
sizenumber The number of assemblies in the result list.
-
Event
-
Each event is represented by an object and may have additional custom fields to provide information about what happened.
Type:
- Object
Properties:
Name Type Description typestring Event type.
*any Additional custom fields. See events description for more information.
-
EventListener(event)
-
Event listener function.
Parameters:
Name Type Description eventEvent Event object.
-
FetchError
-
The
FetchErrorobject indicates an error when request to Open Cloud Server could not be performed. AFetchErroris typically (but not exclusively) thrown when a network error occurs, access denied, or object not found.Type:
- Class
Properties:
Name Type Description messagestring Error message. Inherited from Error.
statusnumber The HTTP status code of the response.
statusTextstring The status message corresponding to the
statuscode. -
FileInformation
-
Information about the file (model) that can be reference in the project topics.
Type:
- Object
Properties:
Name Type Description display_informationArray.<Object> The list of fields to allow users to associate the file with a server model.
Properties
Name Type Description field_display_namestring Field display name.
field_valuestring Field value.
fileObject The file reference object.
Properties
Name Type Description file_namestring File name.
referencestring File ID.
-
FileProgressCallback(progress, file)
-
File upload progress receiver.
Parameters:
Name Type Description progressnumber The ratio of work done from 0 to 1. To get a percentage (%), multiply the
progressby 100.filefile The file that is being uploaded.
-
FileReference
-
Reference to file.
Type:
- Object
Properties:
Name Type Description idnumber The ID of the referenced file.
namestring The name of the referenced file.
-
FileReferences
-
References are images, fonts, or any other files to correct rendering of the file.
Type:
- Object
Properties:
Name Type Description idstring The references ID, changed after each update of the file references.
referencesArray.<FileReference> | null List of file references or
nullif there are no references. -
FilesResult
-
Result for file list.
Type:
- Object
Properties:
Name Type Description allSizenumber Total number of files the user has access to.
startnumber The starting index in the file list in the request.
limitnumber The maximum number of requested files.
resultArray.<File> Result file list.
sizenumber The number of files in the result list.
-
JobsResult
-
Result for job list.
Type:
- Object
Properties:
Name Type Description allSizenumber Total number of jobs created by the user.
startnumber The starting index in the job list in the request.
limitnumber The maximum number of requested jobs.
resultArray.<Job> Result job list.
sizenumber The number of jobs in the result list.
-
Options
-
VisualizeJSparameters.Type:
- Class
Properties:
Name Type Default Description showWCSboolean true Show WCS.
cameraAnimationboolean true Enable camera animation.
antialiasingboolean true Enable antialiasing use FXAA.
shadowsboolean false Enable shadows.
groundShadowboolean false Enable ground shadows.
ambientOcclusionboolean false Ambient occlusion.
enablePartialModeboolean false Enable partial load mode to be able open large drawing. If enablePartialMode enabled, then sceneGraph will be switched off
memoryLimitnumber 3294967296 The size of the memory buffer that the Viewer can use for graphics data.
edgesColorObject Outline edges color in RGB format.
facesColorObject Faces color in the RGB format.
edgesVisibility=boolean Show or hide edges.
edgesOverlap=boolean Show edges over drawing.
facesOverlap=boolean Show faces over drawing.
facesTransparancy=number Faces transparency value from 0 to 255.
enableCustomHighlight=boolean Enable custom highlight settings
sceneGraphboolean false Enable or disable scene graph, it increases perfomance improvement, but consumes memory If sceneGraph enabled, then enablePartialMode will be switched off
-
Principial
-
Principials are any entity that can be authenticated by the server, such as a any user or project that will get access to the file.
Type:
- Object
Properties:
Name Type Description userObject The user entry that get access to the file.
Properties
Name Type Description idstring User ID.
namestring User name.
projectObject The project entry that get access to the file.
Properties
Name Type Description idstring Project ID.
namestring Project name.
-
ProgressCallback(progress)
-
Work progress receiver.
Parameters:
Name Type Description progressnumber The ratio of work done from 0 to 1. To get a percentage (%), multiply the
progressby 100. -
ProjectsResult
-
Result for project list.
Type:
- Object
Properties:
Name Type Description allSizenumber Total number of projects the user has access to.
startnumber The starting index in the project list in the request.
limitnumber The maximum number of requested projects.
resultArray.<Project> Result project list.
sizenumber The number of projects in the result list.
-
Properties
-
Object properties.
Type:
- Object
Properties:
Name Type Description handlestring Object original handle.
*string | Object Object property. Can be
Objectfor nested properties. -
QueryOperator
-
Query operator. Operator name can be
$and,$or,$not,$eq,$regex.Type:
- Object
Properties:
Name Type Description *string | Array.<SearchPattern> | Array.<QueryOperator> Array of the query values or patterns for operator.
-
SearchPattern
-
Search pattern.
Type:
- Object
Properties:
Name Type Description keystring Property name.
valuestring Property value.
-
Transform
-
Transformation matrix.
Type:
- Object
Properties:
Name Type Description translateObject Translation part, move along the X, Y, Z axes.
Properties
Name Type Description xnumber The value for substruct for X axes.
ynumber The value for substruct for Y axes.
znumber The value for substruct for Z axes.
rotationObject Rotation part, rotate by the specified angle, around the specified vector.
Properties
Name Type Description xnumber X coordinate of the rotation vector.
ynumber Y coordinate of the rotation vector.
znumber Z coordinate of the rotation vector.
anglenumber The angle of rotation.
scalenumber Scaling part, scale with multiplier, from center of extends.
-
VersionResult
-
The Object represents server version information.
Type:
- Object
Properties:
Name Type Description versionstring The server version.
hashstring Build hash.
Events
-
select
-
A Viewer event that fires when the user selects an entity with the mouse.
Properties:
Name Type Description typestring selectdataOdTvSelectionSet The set of selected entities. For more information, see OdTvSelectionSet.
-
update
-
A Viewer event that fires when the viewer needs to be updated.
Properties:
Name Type Description typestring update -
uploadprogress
-
A Client event measuring progress of an file uploading process.
Properties:
Name Type Description typestring uploadprogressdatanumber The non-rounded progress value from 0 to 1. To get a percentage (%), multiply the
databy 100.filefile File object to upload.
-
visualizeprogress
-
A Viewer event measuring progress of loading a
VisualizeJSlibrary.Properties:
Name Type Description typestring visualizeprogressloadednumber A 64-bit unsigned integer value indicating the amount of work already performed by the underlying process. The ratio of work done can be calculated by dividing total by the value of this property.
totalnumber A 64-bit unsigned integer representing the total amount of work that the underlying process is in the progress of performing.
Client.js