DrawingApi <Change>
Index
Constructors
publicconstructor
Constructor
Type parameters
- Change: BimChangeBlob | BimChangeDwg = BimChangeDwg
Parameters
_api: BimCoreApi
Api
_textureSize: number = 1024
Defines size of texture used to render drawings. Recommended value is power of two. Higher resolution gives better visuals but costs more memory (a pixel takes 4 bytes).
_grayscaleDefault: boolean = false
_invertedBackgroundDefault: boolean = false
Returns DrawingApi<Change>
Properties
publicstaticreadonlydefaultPosition
publicstaticreadonlydefaultScale
publicstaticreadonlypdfDefaultBackgroundColor
Accessors
publicboundingInfo
Bounding information for the currently loaded DWG’s
Returns BoundingInfo
publicdrawingParentNode
Returns TransformNode
publicgrayscaleDefault
Returns boolean
Parameters
value: boolean
Returns void
publicinvertedBackgroundDefault
Returns boolean
Parameters
value: boolean
Returns void
Methods
[iterator]
Returns IterableIterator<DrawingType<Change>>
publicclear
Remove all loaded drawings
Returns void
publicfitDrawingsToCamera
Parameters
camera: ViewerCamera
Returns Promise<void>
publicforeach
Iterate all loaded drawings.
Parameters
action: BimDrawingObjectForEachAction<Change>
Action which is called on each drawing.
Returns void
publicload
Load one or more drawings. Only PDF and 2D DWG files are supported. Note that 3D DWG’s are not supported.
Parameters
drawings: DrawingApiLoadParameter<Change>
Drawings to load
optionalcamera: ViewerCamera
Returns Promise<void>
Promise
Use this API to load and visualize drawings.