declare const JC: Readonly<{ __proto__: null; Animation: typeof dd; BatchedCameraValues: typeof Am; BatchedNodeValues: typeof Tm; BatchedValues: typeof Fu; CameraChannel: typeof Kc; CameraProperty: any; ExportContext: typeof M_; ImportContext: typeof E_; IndexedSet: typeof Au; InterpolationType: any; KeyType: any; KeyframeBuffer: typeof _h; Manager: typeof T_; NodeChannel: typeof qc; NodeProperty: any; NodeValues: typeof Em; NodeValuesFlags: any; Player: { new (t: any, e: any): { _viewer: any; animation: any; _nodeValues: Map; _disabledChannels: Set; _currentTime: number; _lastUpdate: number; speed: number; _animationTime: number; _state: number; loop: number; _loopCount: number; onComplete: any; nodeIdOffset: number; /** Sets the enabled state for a channel in this players animation. * All channels are enabled by default when a player is created. * A channel that has been disabled will not have its value interpolated by the system until it is re-enabled * @param channel a channel from the underlying animation * @param enabled boolean value indicating whether the channel should be enabled. */ setChannelEnabled(t: any, e: any): void; /** * Updates internal state of animation player. * * Call this method after any part of the underlying animation has been updated. * */ reload(): void; /** * Called automatically by the Animation.Manager when it is updating all animations. * @returns True if values were modified. * @hidden */ _tick(t: any, e: any): boolean; /** * Updates the animation using the supplied delta time specified in seconds. * @returns True if values were modified. * @hidden */ _tickTime(t: any, e: any): boolean; /** Starts playing the animation. */ play(): void; /** Pauses animation playback. */ pause(): void; /** Stops animation playback and resets the current time to 0. */ stop(): void; /** * Sets the current animation time. * @param time time in milliseconds */ setTime(t: any): void; /** * Calculate the values for each channel of the associated [[Animation]] * at the given time. * * @param time The time at which to evaluate the animation. * @param out Storage for the evaluated values. If supplied, this object * will be returned instead of a new [[BatchedValues]] object. This * allows values gathered from multiple players to be combined into one * batch. */ evaluate(t: any, e: any): any; /** Gets the current animation state. */ getState(): number; /** Gets the current time in seconds that the animation has been playing. */ getCurrentTime(): number; /** Gets the current time in seconds of the entire animation. */ getAnimationTime(): number; }; LoopIndefinitely: number; }; PlayerState: any; Sampler: { new (t: any, e: any): { buffer: any; interpolationType: any; /** * Returns the index of the next keyframe for a given frame T. * Note that this assumes that all keyframes in the buffer * are arranged in ascending order by frame time. */ _getNextKeyframeIndex(t: any): any; /** Computes an interpolated quaternion for the given frame. */ interpolateQuat(t: any, e: any): void; /** Computes an interpolated Vector 3 value for the given frame. */ interpolateVec3(t: any, e: any): void; /** Computes an interpolated scalar value for the given frame. */ interpolateScalar(t: any): any; /** Performs linear interpolation of two scalar values beginning at indices k0 and k1. */ interpolateScalarLinear(t: any, e: any, i: any): any; /** Performs spherical linear interpolation on the quaternion values beginning at indices k0 and k1. */ interpolateQuatSlerp(t: any, e: any, i: any, n: any): void; /** Performs linear interpolation on the Vector3 values at keyframes beginning at indices k0 and k1 */ interpolateVec3Linear(t: any, e: any, i: any, n: any): void; _interpCubicSpline(t: any, e: any, i: any, n: any, r: any): number; /** Performs Cubic Spline Interpolation on two scalar values beginning at indices k0 and k1 */ interpolateScalarCubicSpline(t: any, e: any, i: any): number; /** Performs Cubic Spline Interpolation on the Vector3 values at keyframes beginning at indices k0 and k1 */ interpolateVec3CubicSpline(t: any, e: any, i: any, n: any): void; /** Performs Cubic Spline Interpolation on the Quaternion values beginning at indices k0 and k1 */ interpolateQuatCubicSpline(t: any, e: any, i: any, n: any): void; _setVecFromKeyframeIndex(t: any, e: any): void; _setVecTanFromKeyframeIndex(t: any, e: any): void; _setQuatFromKeyframeIndex(t: any, e: any): void; _setQuatTanFromKeyframeIndex(t: any, e: any): void; /** @hidden */ _gatherForExport(t: any): void; /** @hidden */ _export(t: any): { buffer: any; interpolationType: any; }; }; _interpVec3(t: any, e: any, i: any, n: any): void; /** @hidden */ _import(t: any, e: any): { buffer: any; interpolationType: any; /** * Returns the index of the next keyframe for a given frame T. * Note that this assumes that all keyframes in the buffer * are arranged in ascending order by frame time. */ _getNextKeyframeIndex(t: any): any; /** Computes an interpolated quaternion for the given frame. */ interpolateQuat(t: any, e: any): void; /** Computes an interpolated Vector 3 value for the given frame. */ interpolateVec3(t: any, e: any): void; /** Computes an interpolated scalar value for the given frame. */ interpolateScalar(t: any): any; /** Performs linear interpolation of two scalar values beginning at indices k0 and k1. */ interpolateScalarLinear(t: any, e: any, i: any): any; /** Performs spherical linear interpolation on the quaternion values beginning at indices k0 and k1. */ interpolateQuatSlerp(t: any, e: any, i: any, n: any): void; /** Performs linear interpolation on the Vector3 values at keyframes beginning at indices k0 and k1 */ interpolateVec3Linear(t: any, e: any, i: any, n: any): void; _interpCubicSpline(t: any, e: any, i: any, n: any, r: any): number; /** Performs Cubic Spline Interpolation on two scalar values beginning at indices k0 and k1 */ interpolateScalarCubicSpline(t: any, e: any, i: any): number; /** Performs Cubic Spline Interpolation on the Vector3 values at keyframes beginning at indices k0 and k1 */ interpolateVec3CubicSpline(t: any, e: any, i: any, n: any): void; /** Performs Cubic Spline Interpolation on the Quaternion values beginning at indices k0 and k1 */ interpolateQuatCubicSpline(t: any, e: any, i: any, n: any): void; _setVecFromKeyframeIndex(t: any, e: any): void; _setVecTanFromKeyframeIndex(t: any, e: any): void; _setQuatFromKeyframeIndex(t: any, e: any): void; _setQuatTanFromKeyframeIndex(t: any, e: any): void; /** @hidden */ _gatherForExport(t: any): void; /** @hidden */ _export(t: any): { buffer: any; interpolationType: any; }; }; q0: { x: any; y: any; z: any; w: any; set(t: any, e: any, i: any, n: any): void; assign(t: any): void; copy(): any; equals(t: any): boolean; equalsWithTolerance(t: any, e: any): boolean; fromArray(t: any): any; toArray(t: any): any; negate(): any; magnitudeSquared(): number; magnitude(): number; normalize(): any; }; q1: { x: any; y: any; z: any; w: any; set(t: any, e: any, i: any, n: any): void; assign(t: any): void; copy(): any; equals(t: any): boolean; equalsWithTolerance(t: any, e: any): boolean; fromArray(t: any): any; toArray(t: any): any; negate(): any; magnitudeSquared(): number; magnitude(): number; normalize(): any; }; q2: { x: any; y: any; z: any; w: any; set(t: any, e: any, i: any, n: any): void; assign(t: any): void; copy(): any; equals(t: any): boolean; equalsWithTolerance(t: any, e: any): boolean; fromArray(t: any): any; toArray(t: any): any; negate(): any; magnitudeSquared(): number; magnitude(): number; normalize(): any; }; q3: { x: any; y: any; z: any; w: any; set(t: any, e: any, i: any, n: any): void; assign(t: any): void; copy(): any; equals(t: any): boolean; equalsWithTolerance(t: any, e: any): boolean; fromArray(t: any): any; toArray(t: any): any; negate(): any; magnitudeSquared(): number; magnitude(): number; normalize(): any; }; q4: { x: any; y: any; z: any; w: any; set(t: any, e: any, i: any, n: any): void; assign(t: any): void; copy(): any; equals(t: any): boolean; equalsWithTolerance(t: any, e: any): boolean; fromArray(t: any): any; toArray(t: any): any; negate(): any; magnitudeSquared(): number; magnitude(): number; normalize(): any; }; q5: { x: any; y: any; z: any; w: any; set(t: any, e: any, i: any, n: any): void; assign(t: any): void; copy(): any; equals(t: any): boolean; equalsWithTolerance(t: any, e: any): boolean; fromArray(t: any): any; toArray(t: any): any; negate(): any; magnitudeSquared(): number; magnitude(): number; normalize(): any; }; v0: _; v1: _; v2: _; v3: _; }; createCameraChannels: typeof Bb; exportAnimations: typeof Db; importAnimations: typeof Rb; keyframeCamera: typeof Vb; }>; declare var bg: any; declare class Ea extends Rs { } declare var zr: any; declare var Qe: any; declare let Zf: { new (t: any, e: any): { _position: $o; _viewportSize: $o; _anchor: any; _instanceKeys: any[]; _enabled: boolean; _sceneReady: Promise; _assemblyTreeReady: Promise; _axisTriadReadyToInit: Promise[]; _geometryCreated: boolean; _viewer: any; _view: any; /** * Sets the color of one axis on this [[AxisTriad]] * @param axis The axis that will change color * @param color The color to set */ setAxisColor(t: any, e: any): Promise; /** * Sets the anchor position for this [[AxisTriad]]. * @param anchor The anchor position. * @returns A promise that resolves on completion. */ setAnchor(t: any): Promise; /** * Gets the anchor position for this [[AxisTriad]]. * Default position is in the lower left corner. * @returns The overlay anchor value of the triad. */ getAnchor(): any; /** * Enables this [[AxisTriad]]. * @returns A promise that resolves on completion. */ enable(): Promise; /** * Disables this [[AxisTriad]]. * @returns A promise that resolves on completion. */ disable(): Promise; /** * Updates the visibility of this [[AxisTriad]] based on the enabled status. * @returns A promise that resolves on completion. */ _updateVisibility(): void; /** * Hides the overlay window. * @returns A promise that resolves on completion. */ _hideOverlay(): void; /** * Shows the overlay window. * @returns A promise that resolves on completion. */ _showOverlay(): void; /** * Gets the current state of this [[AxisTriad]]. * @returns `true` if enabled and `false` otherwise. */ getEnabled(): boolean; /** * Gets the overlay id. This id should be considered reserved and not be used by client applications. * @returns The overlay id used by this [[AxisTriad]]. */ getOverlayId(): any; _updateViewport(): void; _createViewport(): void; _onViewportSet(): void; _createGeometry(): Promise; _createGeomCallbacks(): void; /** @hidden */ _geometryHasBeenCreated(): boolean; /** * Determines whether or not a point is inside the axis triad overlay * @param mousePos * @returns Boolean indicating whether the provided point is inside the axis triad overlay */ insideOverlay(t: any): boolean; /** @hidden */ _getOverlayOffset(): any; /** @hidden */ _getViewportSize(): $o; /** @hidden */ _getViewportPixelSize(): any; /** * Checks if a selection is part of the axis triad, and return the corresponding axis. * @param selectionItem selection item to check. * @returns Axis if selected, null otherwise. */ getSelectionAxis(t: any): any; /** * Called when the axis triad is clicked. Realigns the view along the axis selected by `selection` * or does nothing if no axis is selected. * @param selection */ onClickSelection(t: any): Promise; _getScEngine(): any; _createInstance(t: any, e: any, i: any, n: any, r: any, o: any): Promise; _createAxis(t: any, e: any, i: any): Promise; _createAxisLabel(t: any, e: any, i: any): Promise; _onCameraUpdate(): void; _alignedFitBounding(t: any, e: any, i: any, n: any): Cn | undefined; }; _xRotMatrix: { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _yRotMatrix: { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _zRotMatrix: { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _xColor: vt; _yColor: vt; _zColor: vt; _fieldSize: number; }; declare var di: any; declare const YC: Readonly<{ __proto__: null; BCFComment: typeof Vf; BCFData: typeof Du; BCFFileType: any; BCFMarkup: typeof F_; BCFMarkupHeaderFile: typeof R_; BCFMarkupViewpoint: typeof L_; BCFSnapshot: typeof xa; BCFTopic: typeof bd; BCFVersion: any; BCFViewpoint: typeof bl; addElem: typeof Rr; appendPoint3: typeof cr; argbStringFromColor: typeof N_; boolToString: typeof vc; conditionalAddElem: typeof on; conditionalBoolToString: typeof Nu; conditionalDateToString: typeof bc; conditionalNumberToString: typeof Bf; conditionalSetAttribute: typeof Dr; defaultOriginatingSystem: string; exportComponent: typeof Tu; }>; declare const ZC: Readonly<{ __proto__: null; DefaultDoorConfig: any; DefaultFloorConfig: any; DefaultWallConfig: any; }>; declare var mn: any; declare var Ks: any; declare var Po: any; declare class yn { /** * Creates a new [[Box]] from an object given by [[toJson]]. * @param objData An object given by [[toJson]]. * @returns The prepared object. */ static fromJson(t: any): yn; /** * Creates and returns an invalid bounding box. * @returns an invalid bounding box. */ static invalid(): yn; /** * Creates a new box. * @param min The minimum extent of the box. Defaults to the origin. * @param max The maximum extent of the box. Defaults to the origin. */ constructor(t?: _, e?: _); min: _; max: _; /** * Creates a copy of the box. * @returns A copy of this box. */ copy(): yn; /** * Strictly compares this box with another box. * @param box Box to compare with. * @returns True if the values of this box equals the other. False otherwise. */ equals(t: any): boolean; /** * Gets the center point for the box. * @returns The center point of this box. */ center(): _; /** * Gets the extents of the box. * @returns A point with members set to extent values for each corresponding axis. */ extents(): _; /** * Expands the extents of the box so that it will contain another box. * @param box The box to add. */ addBox(t: any): void; /** * Expands the extents of the box so that it will contain a particular point. * @param point The point to add. */ addPoint(t: any): void; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { min: { x: any; y: any; z: any; }; max: { x: any; y: any; z: any; }; }; _toJson(): { min: { x: any; y: any; z: any; }; max: { x: any; y: any; z: any; }; }; /** * Gets all eight corner points for the box. * @returns The corner points of this box. */ getCorners(): _[]; /** * Returns whether a point is contained within the box * @returns whether a point is contained within the box */ containsPoint(t: any): boolean; /** * Returns whether or not the box is degenerate. * @returns whether or not the box is degenerate. */ isDegenerate(): boolean; } declare var de: any; declare var be: any; declare var Ee: any; declare var ys: any; declare class Cn { /** * Creates a new camera object with the given parameters. * @param pos the camera position. * @param tar the camera target. * @param up the camera up vector. * @param projection the camera projection mode. * @param width camera view width. * @param height camera view height. * @param nearLimit the camera near limit. * @returns a new camera object. */ static create(t: any, e: any, i: any, n: any, r: any, o: any, l: any): Cn; /** * Creates a new [[Camera]] from an object given by [[toJson]]. * @param objData An object given by [[toJson]]. * @returns The prepared object. */ static fromJson(t: any): Cn; _position: _; _target: _; _up: _; _width: number; _height: number; _projection: any; _nearLimit: number; _cameraFlags: any; /** @hidden */ _clearFlags(): void; /** @hidden */ _getFlags(): any; /** * Creates a copy of the camera. * @returns new object initialized with the current values of this camera */ copy(): Cn; /** * Sets the camera position * @param position the new camera position */ setPosition(t: any): void; /** * gets the camera position * @returns the camera position */ getPosition(): _; /** * Sets the camera target * @param target the new camera target */ setTarget(t: any): void; /** * gets the camera target * @returns the camera target */ getTarget(): _; /** * Sets the camera up vector * @param up the new camera up vector */ setUp(t: any): void; /** * gets the camera up vector * @returns the camera up vector */ getUp(): _; /** * Sets the camera width * @param width the new camera width */ setWidth(t: any): void; /** * gets the camera width * @returns the camera width */ getWidth(): number; /** * Sets the camera height * @param height the new camera height */ setHeight(t: any): void; /** * gets the camera height * @returns the camera width */ getHeight(): number; /** * Sets the camera projection * @param projection the new camera Projection */ setProjection(t: any): void; /** * gets the camera projection * @returns the camera projection */ getProjection(): any; /** * Sets the camera near clipping limit * @param nearLimit the new camera near clipping limit */ setNearLimit(t: any): void; /** * gets the camera near clipping limit * @returns the camera near clipping limit */ getNearLimit(): number; /** * Returns checks for equality with another camera * @param cam the camera to compare against */ equals(t: any): boolean; /** * Returns checks for equality with another camera with tolerance * @param cam the camera to compare against * @param tolerance floating point tolerance */ equalsWithTolerance(t: any, e: any): boolean; /** * Move the camera along a delta * @param delta */ dolly(t: any): void; /** * Finds the intersection point with the camera plane * @param point * @param view */ getCameraPlaneIntersectionPoint(t: any, e: any): _ | null; /** * Returns the camera's view matrix. This matrix places the camera at * `<0,0,0>`, with the negative z-axis pointing toward the camera's * target and the y-axis in the direction of the camera's up-vector. * @param viewer The [[WebViewer]] for which the matrix should be valid. */ getViewMatrix(t: any): any; /** * Returns the camera's projection matrix. * @param viewer The [[WebViewer]] for which the matrix should be valid. * @param view the [[View]] to use when calculating projection effects. Uses default view if undefined */ getProjectionMatrix(t: any, e: any): any; /** * Returns the camera's projection matrix multiplied by its view matrix. * @param viewer The [[WebViewer]] for which the matrix should be valid. * @param view the [[View]] to use when calculating projection effects. Uses default view if undefined */ getFullMatrix(t: any, e: any): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { position: { x: any; y: any; z: any; }; target: { x: any; y: any; z: any; }; up: { x: any; y: any; z: any; }; width: number; height: number; projection: any; nearLimit: number; className: string; }; _toJson(): { position: { x: any; y: any; z: any; }; target: { x: any; y: any; z: any; }; up: { x: any; y: any; z: any; }; width: number; height: number; projection: any; nearLimit: number; className: string; }; transform(t: any): Cn; } declare class vt { /** * Creates a new [[Color]] from an object given by [[toJson]]. * @param objData An object given by [[toJson]]. * @returns The prepared object. */ static fromJson(t: any): vt; /** * Creates a color object from floating point values. Values are specified in the 0.0-1.0 range. * @param r red color component * @param g green color component * @param b blue color component * @returns new color object */ static createFromFloat(t: any, e: any, i: any): vt; /** * Creates a color object from an array of floating point values. * Values are specified in the 0.0-1.0 range. */ static createFromFloatArray(t: any): vt; /** * Creates a new color object initialized to red. * @returns new color object */ static red(): vt; /** * Creates a new color object initialized to green. * @returns new color object */ static green(): vt; /** * Creates a new color object initialized to blue. * @returns new color object */ static blue(): vt; /** * Creates a new color object initialized to yellow. * @returns new color object */ static yellow(): vt; /** * Creates a new color object initialized to white. * @returns new color object */ static white(): vt; /** * Creates a new color object initialized to black. * @returns new color object */ static black(): vt; /** * Creates a new color object. Values are specified in the 0-255 range. * @param r red color component * @param g green color component * @param b blue color component */ constructor(t: any, e: any, i: any); r: any; g: any; b: any; /** * Sets this color equal to another color * @param color the point whose values will be used to set this color * @returns the color object */ assign(t: any): this; /** * Creates a copy of this color * @returns Copy of this color */ copy(): vt; /** * Compares this color with another color * @param color the color to compare with * @returns True if the values of this color equal the other. False otherwise. */ equals(t: any): boolean; /** * Sets the color object. Values are specified in the 0-255 range. * @param r red color component * @param g green color component * @param b blue color component */ set(t: any, e: any, i: any): void; /** * Sets the color object from floating point values. Values are specified in the 0.0-1.0 range. * @param r red color component * @param g green color component * @param b blue color component */ setFromFloat(t: any, e: any, i: any): void; /** * Sets this color from an array of normalized floating point values * @param the array to assign from */ fromFloatArray(t: any): void; /** * Gets an array of floating point values representing this color. Values are clamped in the 0.0 - 1.0 range. * @returns array of floating point values for this color. */ getFloatArray(): number[]; /** * Populates an array with floating point values for this color. Values are clamped in the 0.0 - 1.0 range. * @param arr array whose first three elements will be populated with the r,g, and b values of this color respectively. */ toFloatArray(t?: number[]): number[]; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { r: any; g: any; b: any; }; } declare class oe extends Error { /** * Creates a new CommunicatorError */ constructor(t: any); } declare var Pb: any; declare class fx { /** @hidden */ constructor(t: any, e: any, i: any, n: any); _cuttingSections: any[]; _isInit: boolean; _standinGeometryPickable: boolean; _cappingFaceColor: vt; _cappingLineColor: vt; _cappingIdleCallbackEnabled: boolean; _cappingIdlePromise: Promise | null; _conservativeIsCappingIdle: boolean; _viewer: any; _model: any; _callbackManager: any; _engine: any; /** * generates reference geometry for a cutting plane. * @param axis axis for reference geometry. * @param modelBounding modelBounding for geometry size. */ createReferenceGeometryFromAxis(t: any, e: any): _[]; /** * Uses a selection normal and position to create reference geometry for a cutting plane. * @param normal face normal. * @param position face position. * @param modelBounding model bounding for geometry size. */ createReferenceGeometryFromFaceNormal(t: any, e: any, i: any): _[]; /** * Activates all cutting sections, and restores any planes contained to the scene. */ activateCuttingSections(): Promise; /** * Deactivates all cutting sections. * Cutting planes are not removed from section and can be restored using [[activateCuttingSections]] */ deactivateAllCuttingSections(): Promise; /** * Clears all cutting sections. * This causes all cutting sections to be deactivated and all their cutting planes removed. */ clearAllCuttingSections(): Promise; /** * Sets the color for all cutting plane reference geometry. * @param color */ setCuttingPlaneColor(t: any): Promise; /** * Sets the color to be used for capping geometry faces. If null is passed in as the color object, no capping face will be shown. * @param color color to use for capping geometry faces. */ setCappingFaceColor(t: any): Promise; /** * Gets the color used for capping geometry faces. * @returns color used for capping geometry faces. */ getCappingFaceColor(): vt | null; /** * Sets the color to be used for capping geometry lines. If null is passed in as the color object, no capping line will be shown. * @param color color to use for capping geometry lines. */ setCappingLineColor(t: any): Promise; /** * Gets the color used for capping geometry lines. * @returns color used for capping geometry lines. */ getCappingLineColor(): vt | null; /** * Gets a cutting section by index. Cutting sections are created automatically by the system and may be queried at any point during or after the sceneReady callback has been triggered. * @returns the cutting section for the given index. */ getCuttingSection(t: any): any; /** * Gets the total number of planes supported by each cutting section. * Cutting planes contained in the same cutting section will work together (an object is only cut if all cutting planes in a section would cut it). * Cutting planes in separate cutting sections do not work together when cutting (an object is cut if any one of the cutting sections would cut it). * @returns the number of planes each cutting section may contain. */ getCuttingSectionCapacity(): any; /** * Gets the total number of cutting sections supported by the system. * @returns the number of cutting sections supported by the system. */ getCuttingSectionCount(): any; /** * Gets the cutting section containing the cutting plane with the given node ID. If the supplied node ID is not contained by any cutting section null will be returned. * @param nodeId a node ID for cutting plane stand-in geometry. * @returns the CuttingSection that contains the plane with the given node id or null if none contain it. */ getCuttingSectionFromNodeId(t: any): any; /** * Gets all nodes that have capping drawn for them. * @returns an array of node IDs that have capping drawn for them */ getNodesWithCapping(): Promise; /** * Sets whether stand-in geometry for cutting sections should be pickable. * If this option is set to false, picking rays will pass though stand-in geometry for cutting planes. * The default value is not pickable. * @param pickable boolean value indicating whether stand-in geometry should be pickable in the scene. */ setStandinGeometryPickable(t: any): Promise; /** * Gets whether stand-in geometry for cutting sections is pickable. * @returns boolean value indicating whether stand-in geometry for cutting sections is pickable. */ getStandinGeometryPickable(): boolean; /** @hidden */ _setStandinGeometryVisible(t: any): void; /** * Sets the delay used by delayCapping() in milliseconds. * @param delayInMilliseconds The delay amount. */ setCappingDelay(t: any): void; /** * Delays capping processing by a fixed time interval. */ delayCapping(): void; /** * Enables or disables activation of "cappingIdle" callback event. * @param enable Enables or disables activation of "cappingIdle" callback event. * @returns A promise returning whether or not capping generation was idle when this call resolves. */ enableCappingIdleCallback(t: any): any; waitForCappingIdle(): Promise; /** * Sets whether capping geometry will show. * The default value is true. * @param cappingGeometryVisibility */ setCappingGeometryVisibility(t: any): Promise; /** * Gets whether capping geometry will show * @returns boolean value indicating whether capping geometry will show */ getCappingGeometryVisibility(): any; /** * @returns the number of active cutting sections. */ getActiveCuttingSectionCount(): number; /** @hidden */ _init(): void; _cuttingLimits: any; /** @hidden */ _isInitialized(): boolean; /** * Updates all cutting plane geometry. */ refreshPlaneGeometry(): Promise; /** * @returns true if there is an active cutting section. */ hasActiveCuttingSection(): boolean; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { cuttingSections: any[]; cappingGeometryVisibility: any; cappingFaceColor: vt | null; cappingLineColor: vt | null; pickable: boolean; }; _toJson(): { cuttingSections: any[]; cappingGeometryVisibility: any; cappingFaceColor: vt | null; cappingLineColor: vt | null; pickable: boolean; }; /** * Removes any cutting planes in the scene, and restores cutting planes from a json object. * @param json */ fromJson(t: any): Promise; _gatherStandinGeometryIds(): any[]; } declare class Kp { plane: { normal: _; d: number; setFromPointAndNormal(t: any, e: any): any; /** * Update the plane to pass through the three points */ setFromPoints(t: any, e: any, i: any): void; setFromCoefficients(t: any, e: any, i: any, n: any): void; getCoefficients(): any[]; distanceToPoint(t: any): number; rayIntersection(t: any): _ | null; intersectsRay(t: any, e: any): boolean; /** * Returns true if the point is on the side of the plane that the plane's normal is directed. Returns false otherwise. * @param p The point to test. */ determineSide(t: any): boolean; /** * Creates a copy of this plane * @returns a copy of this plane object */ copy(): any; /** * Sets this plane equal to another plane * @param plane the plane to assign */ assign(t: any): void; /** * Returns true if the normal and d value are the same. * @param plane */ equals(t: any): boolean; }; referenceGeometry: any; meshId: any; instanceNodeId: any; color: vt; lineColor: vt; opacity: number; matrix: { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { plane: { normal: _; d: number; }; referenceGeometry: any; }; fromJson(t: any): void; getMatrix(): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; setMatrix(t: any): void; setReferenceGeometry(t: any): void; getReferenceGeometry(): any[] | null; createMeshData(): Cs | null; } declare class dx { /** @hidden */ constructor(t: any, e: any, i: any, n: any, r: any); _cuttingPlanes: any[]; _isActive: boolean; _viewer: any; _model: any; _callbackManager: any; _cuttingManager: any; _engine: any; /** * Adds a plane to the cutting section. * @param plane The plane to be used for cutting. * @param referenceGeometry An optional list of four points representing a quad to be used as reference geometry for the cutting plane. Pass null to use no reference geometry for this cutting plane. */ addPlane(t: any, e?: null): Promise; /** * Sets a plane currently in the cutting section at a given index. * @param index The index of the cutting plane to replace. * @param plane The plane to be used for cutting. * @param referenceGeometry a list of four points representing a quad to be used as reference geometry for the cutting plane. Pass null to use no reference geometry for this cutting plane. */ setPlane(t: any, e: any, i?: null): Promise; /** * Updates the position of a cutting plane and stand-in geometry if present. * @param index The index of the cutting plane. * @param plane The plane to use for cutting. * @param geometryMatrix A matrix that is multiplied by the previous position matrix to update the geometry position. * @param finalizePosition If true, sets the result of the geometry matrix multiplication as the new position matrix. * @param resetTranslation If true, uses the provided geometry matrix for the geometry position. */ updatePlane(t: any, e: any, i?: { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }, n?: boolean, r?: boolean): Promise; /** * Removes the cutting plane at the specified index. * @param index The index of the cutting plane to remove. */ removePlane(t: any): Promise; /** * Gets the plane for the item at the given index. In the case of an invalid index, null will be returned. * @param index The index of the cutting plane. * @returns Plane that is used for cutting at the given index or null. */ getPlane(t: any): any; /** * Gets the [[NodeId]] for the reference geometry for the cutting plane at the given index. * In the case of an invalid index or a cutting plane with no reference geometry, null will be returned. * @param index the index of the cutting plane. * @returns [[NodeId]] of the reference geometry for the cutting plane at the given index or null. */ getNodeId(t: any): any; /** * Gets the reference geometry for the item at the given index. In the case of an invalid index, null will be returned * @param index The index of the cutting plane. * @returns A list of four points representing a quad to be used as reference geometry for the cutting plane, or null if there is no reference geometry. */ getReferenceGeometry(t: any): any; /** * Gets the index of a plane for the corresponding node id. In the case of an invalid id, null will be returned. * @param id The [[NodeId]] for the plane reference geometry. * @returns The index of a plane associated with the provided [[NodeId]], or null if no plane is found. */ getPlaneIndexByNodeId(t: any): number | null; /** * Gets the opacity for the plane at the given index. * @param index The index of the cutting plane. */ getPlaneOpacity(t: any): any; /** * Sets the opacity for the plane at the given index. * * Equivalent to `section.applyPlaneOpacity(index, opacity)` * * @param index The index of the cutting plane. * @param opacity A number between 0 and 1. */ setPlaneOpacity(t: any, e: any): void; /** * Apply the opacity factor to the plane. * * @param index The index of the cutting plane. * @param opacity The value used to change the opacity if needed */ applyPlaneOpacity(t: any, e: any): void; /** * Reapply the opacity of the cutting planes to the engine * This function must be explicitly called after _resetOpacity has been emitted by the engine */ resetPlanesOpacity(): void; /** * Sets the color for all planes in the cutting section * @param color Color to set * @returns Promise that resolves when the operation has completed. */ setColor(t: any): Promise; /** * Sets the opacity for all planes in the cutting section * @param opacity opacity to set */ setOpacity(t: any): void; /** * Gets the number of planes in this cutting secton. * @returns the number of planes in this cutting section */ getCount(): number; /** * Removes all planes from this cutting section. This will also deactivate the cutting section. */ clear(): Promise; /** * Activates a cutting section for use. A cutting section must have at least one plane to be activated. * @returns a promise if the cutting section was activated. */ activate(): Promise; /** * Removes a cutting section from use. */ deactivate(): Promise; /** * Gets whether a cutting section is active * @returns boolean value indicating whether this cutting section is active */ isActive(): boolean; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { planes: any[]; }; _toJson(): { planes: any[]; }; fromJson(t: any): Promise; _initCuttingPlanesByNodeId(t: any): void; _destroyGeometry(): Promise; /** @hidden */ _getInstanceNodeIds(): any[]; _resetCuttingPlane(t: any): Promise; _createInstanceGeometry(t: any): Promise; _destroyMeshes(t: any, e: any): Promise; _createCuttingPlaneGeometry(t: any): Promise; } declare const rs: 400; declare var Yf: any; declare class px extends Uy { constructor(t: any, e: any, i: any, n: any); } declare var lr: any; declare var k_: any; declare var Yt: any; declare const ba: "_empty"; declare const i1: Readonly<{ __proto__: null; InputEvent: typeof Id; KeyInputEvent: typeof Uf; MouseInputEvent: typeof Wr; MouseInputEventBase: typeof Pg; MouseWheelInputEvent: typeof W_; NodeSelectionEvent: typeof Fr; TouchInputEvent: typeof Ou; isMouseEventType: typeof Gb; }>; declare var ae: any; declare class gx { /** @hidden */ constructor(t: any, e: any, i: any); _explodeActive: boolean; _explodeMagnitude: number; _model: any; _engine: any; /** * Starts an explode operation. This will cancel any currently active explode operation. * @param nodeIds an array of NodeId for the parts that should be exploded. If this parameter is omitted or is an empty array, the entire model will be considered for explosion. * @param explosionVector the vector to use for the center of the explosion. * @returns a promise that resolves when this operation is complete. */ start(t: any, e: any): Promise; /** * Sets the explosion magnitude if there is an active explosion operation. * A value of 1.0 indicates that the distance between a part's exploded center, and exploded center will be double. * @param magnitude the magnitude for the explosion. * @returns a promise that resolves when this operation is complete. */ setMagnitude(t: any): Promise; /** * Terminates any active explode operation. * @returns a promise that resolves when this operation is complete. */ stop(): Promise; /** * Gets the current explode magnitude. This will always return 0 when there is no active explode operation. * @returns the current explode magnitude. */ getMagnitude(): number; /** * Indicates whether there is a currently active explode operation. * @returns boolean value indicating if there is an active explode operation. */ getActive(): boolean; _doExplode(t: any, e: any): Promise; } declare class kb { pos1: _; pos2: _; distance: number; } declare class Ev { constructor(t: any, e: any, i: any, n: any, r?: number); vertexData: any; normalData: any; rgba32data: any; uvData: any; bits: number; } declare var Zs: any; declare var Dc: any; declare var vb: any; declare class Gp { constructor(t: any, e: any); isInclusive: any; nodeIds: any; } declare const t1: Readonly<{ __proto__: null; ActiveState: any; FloorInfo: typeof H_; FloorplanAutoActivation: any; FloorplanConfig: typeof Oh; FloorplanManager: { new (t: any, e: any, i: any, n: any, r: any): { _active: any; _isSceneReady: boolean; _isModelLoaded: boolean; _isOverlayVisible: boolean; _isCallbacksSet: boolean; _onCameraUpdateFunc: any; _onFrameDrawnFunc: any; _floorplanNode: any; _currentFloorInfo: any; _config: any; _floorLock: boolean; _tightBoundings: boolean; _genericStoreyType: string; _floorInfos: Map; _floorInfosArray: any[]; _avatarNode: any; _avatarDirty: boolean; _borderNode: any; _borderDirty: boolean; _backgroundNode: any; _backgroundDirty: boolean; _canvasSize: K; _sync: jo; _setFloorplanSync: P0; _viewer: any; _model: any; _engine: any; _overlayManager: any; /** Sets a custom avatar. See [[FloorplanConfig.customAvatar]] for detailed information. */ setCustomAvatar(t: any): Promise; /** Sets the size of the floorplan overlay window. See [[FloorplanConfig.overlaySize]] for detailed information. */ setOverlaySize(t: any, e: any, i: any): Promise; /** Sets the anchor position of the floorplan overlay window. See [[FloorplanConfig.overlayAnchor]] for detailed information. */ setOverlayAnchor(t: any): Promise; /** Sets the offset position of the floorplan overlay window. See [[FloorplanConfig.overlayOffset]] for detailed information. */ setOverlayOffset(t: any): Promise; /** Sets the overlay scaling. See [[FloorplanConfig.overlayFeetPerPixel]] for detailed information. */ setOverlayFeetPerPixel(t: any): Promise; /** Sets the overlay zoom level. See [[FloorplanConfig.zoomLevel]] for detailed information. */ setZoomLevel(t: any): Promise; /** Sets the overlay background color. See [[FloorplanConfig.backgroundColor]] for detailed information. */ setBackgroundColor(t: any): Promise; /** Sets the overlay background opacity. See [[FloorplanConfig.backgroundOpacity]] for detailed information. */ setBackgroundOpacity(t: any): Promise; /** Sets the overlay border color. See [[FloorplanConfig.borderColor]] for detailed information. */ setBorderColor(t: any): Promise; /** Sets the overlay border opacity. See [[FloorplanConfig.borderOpacity]] for detailed information. */ setBorderOpacity(t: any): Promise; /** Sets the avatar primary color. See [[FloorplanConfig.avatarColor]] for detailed information. */ setAvatarColor(t: any): Promise; /** Sets the avatar outline color. See [[FloorplanConfig.avatarOutlineColor]] for detailed information. */ setAvatarOutlineColor(t: any): Promise; /** Sets the avatar opacity. See [[FloorplanConfig.avatarOpacity]] for detailed information. */ setAvatarOpacity(t: any): Promise; /** Sets the avatar scale. See [[FloorplanConfig.avatarScale]] for detailed information. */ setAvatarScale(t: any): Promise; /** Sets the avatar size to fixed scale. See [[FloorplanConfig.fixedAvatarScale]] for detailed information. */ setFixedAvatarScale(t: any): Promise; /** Sets the floorplan tracking mode. See [[FloorplanConfig.trackCameraEnabled]] for detailed information. */ setTrackCameraEnabled(t: any): Promise; /** Sets the floorplan display orientation. See [[FloorplanConfig.floorplanOrientation]] for detailed information. */ setFloorplanOrientation(t: any): Promise; /** Sets the auto-activate capability for any models loaded after this call. See [[FloorplanConfig.autoActivate]] for detailed information. */ setAutoActivate(t: any): Promise; /** Locks floorplan to current floor such that changing floors will not change the displayed floorplan. */ setFloorLock(t: any): Promise; /** Returns `true` if displayed floor has been locked with [[setFloorLock]]. */ getFloorLock(): boolean; /** * Makes floorplans use tight boundings during creation which can result in a better fit for the overlay. * This involves recreating any already existing floorplans. * This can be significantly more time consuming than using loose boundings if your floors are complex. * Defaults to `false`. */ setUseTightBoundings(t: any): Promise; /** * Updates the floorplan to use the given configuration. This function allows * the user to set all configuration values with a single operation. There are * also `set()` functions for easily setting individual configuration * values. * * Note that when using this function, all settings in the given configuration are * used and thus overwrite any individual settings changed with a prior * `set()` call. * * All values from the passed configuration will be copied as part of this operation. */ setConfiguration(t: any): Promise; /** Returns a copy of the current floorplan configuration. */ getConfiguration(): any; /** Gets the [[NodeId]] of the current storey. */ getCurrentFloorNodeId(): any; /** Gets the [[NodeId]] of the floorplan avatar. */ getAvatarNodeId(): any; /** Returns `true` if the given point is inside the floorplan overlay and `false` otherwise. */ insideOverlay(t: any): boolean; /** * Activate the floorplan overlay. */ activate(): Promise; /** * Deactivate the floorplan overlay. Once explicitly deactivated via this call, auto-activation * will be suppressed for any new model that is loaded. Auto-activation can be reenabled by * calling [[setAutoActivate]]. */ deactivate(): Promise; /** * The avatar node needs to be deleted any time we are making changes to the mesh, * such as switching to a custom avatar or fixed avatar scale. */ _deleteAvatarNode(): Promise; /** Perform the steps needed to set a custom avatar. */ _doSetCustomAvatar(t: any): Promise; /** Call after something in the configuration has changed. Will update all visuals accordingly */ _onConfigurationChanged(): Promise; /** Sets the best floorplan for the given world position */ _setFloorplanFromPosition(t: any): Promise; /** Sets what floor the floorplan displays based on position */ _doSetFloorplanFromPosition(t: any): Promise; /** This function performs a downward selection and sorts the results by the top of their boundings */ _performDownwardSelection(t: any): Promise; /** * Will set the active state appropriately and kick off activation processing */ _activate(): Promise; /** * Deactivation will remove camera callbacks, hide the overlay, delete floornodes, and any other necessary cleanup */ _deactivate(): Promise; /** This will be called anytime a model has loaded... first model, second model, etc. */ _onModelLoaded(): Promise; /** * When a model is loaded, the active state will be examined and possibly modified here based on the incoming model. */ _doOnModelLoaded(): Promise; /** * This will activate the floorplan visuals if conditions allow. */ _doUpdateActivation(): Promise; /** * Deletes all floorplan infos including generated nodes */ _deleteAllFloorplans(): Promise; /** Hides the currently active floorplan */ _hideActiveFloorplan(): Promise; /** * Call when IFC information is available from the model tree. Note that this call can happen multiple * times within a session, thus it must be tolerant of existing data vs new data. */ _onProcessIfc(): Promise; /** */ _hasFloorInfo(t: any): boolean; /** */ _getFloorInfo(t: any): any; /** * Creates floorplan related information from a floor node */ _createFloorInfo(t: any): Promise; /** * Find the root floor nodes within the model. */ _gatherFloorInfos(): Promise; /** * Gathers all descendent nodes that have IFC types matching the given IFC types */ _gatherDescendentIfcNodes(t: any, e: any, i: any): void; /** * Creates a floorplan mesh from a FloorInfo object and returns the NodeId of the resulting mesh. * Note: This does not attach the created floorplan mesh to the FloorInfo param. That must be done after. */ _createFloorplanFromFloorInfo(t: any): Promise; /** We need to handle a canvas size updates, so use the frame-drawn callback */ _onFrameDrawn(): Promise; /** Updates the overlay camera based on current state */ _doCameraUpdate(): Promise; /** * Returns `true` if the [[FloorplanManager]] is fully active. */ isActive(): boolean; /** Call anytime something in the floorplan overlay might need to change. */ _updateOverlay(): Promise; /** * Call anytime something in the floorplan overlay might need to change. */ _updateOverlayNodes(t: any, e: any): Promise; /** * Moves the camera such that the avatar will appear at the provided point on the overlay. * This is only available when the floorplan is not tracking the camera. * @param point Point in canvas within overlay */ snapAvatarToPoint(t: any): void; /** Figure out the pixel size of the overlay window */ _getOverlaySizeInPixels(): any; /** Get overlay offset in pixels */ _getOverlayOffsetInPixels(): any; _getFixedCameraSize(t: any): K | null; /** Updates the camera settings for the overlay. Only update if the floorplan has changed? */ _updateOverlayCamera(t: any, e: any): Promise; /** * Sets the current floorplan based on the floorNode. * * @param floorNode A IFC Story node. */ _setFloorplanFromFloorNode(t: any): Promise; /** * Creates the floorplan overlay */ _setupOverlay(): Promise; /** Nodes within the the overlay displays aren't honoring their visibility settings. This is a workaround * until that problem is fixed. Since the floorplan is a top-down view, we can just move "hidden" nodes * far enough out of the camera view so they aren't rendered. */ _hideOverlayNode(t: any): Promise; /** See _hideOverlayNode for workaround description */ _showOverlayNode(t: any): Promise; /** Creates a simple node to show the camera-position as an avatar on the overlay */ _createAvatar(): Promise; /** Create a 2d line based box. Used for the overlay border & background */ _create2dBox(t: any, e: any, i: any): Promise; }; _genericStoreyType: string; _ifcFloorTypes: Set; _ifcSpaceTypes: Set; _ifcFloorplanCreationTypes: Set; _backgroundZ: number; _avatarZ: number; _borderZ: number; }; clamp: typeof il; isPointInBox: typeof z_; isPointInBoxOnlyZ: typeof Hf; multiplyMatrices: typeof zf; }>; declare var hl: any; declare var So: any; declare var Vr: any; declare var _s: any; declare class xd { constructor(t?: any); mustBeFullyContained: boolean; respectVisibility: boolean; forceEffectiveVisibilityMask: any; forceEffectiveSceneVisibilityMask: any; allowFaces: boolean; allowLines: boolean; allowPoints: boolean; ignoreCuttingSections: boolean; onlyStreamedInstances: boolean; ignoreUnrequestedInstances: boolean; } declare var Ib: any; declare var Qi: any; declare class oi extends oe { /** * Creates a new InternalLogicError */ constructor(); } declare class xg extends oe { } declare const vg: -1; declare class Ds extends oe { nodeId: any; } declare class is extends oe { /** * Creates a new InvalidNodeTypeError */ constructor(t: any, e: any, ...i: any[]); nodeId: any; expectedTypes: any[]; } declare var ti: any; declare var Df: any; declare var Ci: any; declare var bb: any; declare class Uy { /** * @param type The light's type. See [[type]]. * @param space The space in which a light is defined. See [[space]] * @param position The light's position. See [[position]]. * @param color The light's color. See [[color]]. */ constructor(t: any, e: any, i: any, n: any); type: any; space: any; position: any; color: any; } declare class _x extends Pd { /** @hidden */ constructor(t: any, e: any); _markupArray: any[]; _viewer: any; _callbackManager: any; /** * Adds a new Line to the Line Manager * @param lineItem LineMarkup Object that will be added */ addLine(t: any): Promise; /** * Removes an existing line item. * @param lineItem the line item to remove. */ removeLine(t: any): Promise; /** * Removes all line items. */ removeAllLines(): Promise; /** * Return an array of line items. * @returns array of all line items. */ getAllLines(): any[]; /** * Removes the most recently added line item. */ removeLastLine(): Promise; /** * Gets a line markup item associated with a node id. * @param id */ getLineByNodeId(t: any): any; /** * @returns JSON Array with line markup */ exportMarkup(): any[]; _handleLoadLine(t: any): Promise; /** * Loads JSON markup data * @param lineData * @param viewer */ loadData(t: any): Promise; } declare var Mb: any; declare class _d extends qr { /** * Creates a new LoadCancelledError */ constructor(); } declare class qr extends oe { } declare class Ma { additionalMatrix: any; allowMissingExternalModels: boolean; attachInvisibly: boolean; implicitlyLoadXmlExternalModels: boolean; ignoreCadViews: boolean; ignoreFilters: boolean; ignoreLayers: boolean; ignoreGenericTypes: boolean; ignoreBimRelationships: boolean; _allowSubtreeLoadedCallback: boolean; copy(): Ma; } declare const n1: Readonly<{ __proto__: null; Line: Readonly<{ __proto__: null; LineMarkup: { new (t: any, e?: null, i?: null, n?: null, r?: null): { _uniqueId: string; _lineMeshId: any; _lineMeshInstanceId: any; _lineColor: vt; _lineOpacity: number; _linePattern: any; _linePatternLength: any; _linePatternLengthUnit: any; _viewer: any; _firstPoint: any; _secondPoint: any; _firstNodeId: any; _secondNodeId: any; /** * Sets the line color. * @param color */ setLineColor(t: any): void; /** * Gets the line color. */ getLineColor(): vt; /** * Sets the line opacity. * @param opacity */ setLineOpacity(t: any): void; /** * Gets the line opacity. */ getLineOpacity(): number; /** * Sets the line pattern. * @param pattern The line pattern. * @param patternLength The length of a single repetition of the line pattern. * @param patternLengthUnit The unit in which the pattern length is measured. */ setLinePattern(t: any, e: any, i: any): void; /** * Gets the line pattern. */ getLinePattern(): any; /** * Gets the length of a single repetition of the line pattern. */ getLinePatternLength(): any; /** * Gets the unit in which the line pattern length is measured. */ getLinePatternLengthUnit(): any; /** * Sets the first point on the line. * @param firstPoint */ setFirstPoint(t: any): void; /** * Gets the first point on the line. * @returns the first point, or null if none is set. */ getFirstPoint(): any; /** * Sets the second point on the line. * @param secondPoint */ setSecondPoint(t: any): void; /** * Gets the second point on the line. * @returns the second point, or null if none is set. */ getSecondPoint(): any; /** * Sets the NodeId of the part associated with the first line point * @param nodeId */ setFirstNodeId(t: any): void; /** * Gets the NodeId of the part associated with the first line point */ getFirstNodeId(): any; /** * Sets the NodeId of the part associated with the second line point * @param nodeId */ setSecondNodeId(t: any): void; /** * Gets the NodeId of the part associated with the second line point */ getSecondNodeId(): any; /** * Gets the node id associated with the line markup. */ getNodeId(): any; /** * Removes the line geometry from the scene. */ removeLine(): Promise; /** * Draws updated line geometry in the scene. */ updateLine(): Promise; /** * Returns a unique markup id for this line. */ getId(): string; /** * Sets a markup id for this line. * @param id */ setId(t: any): void; /** * Returns the class name for this markup item. */ getClassName(): string; _toJson(): { className: string; uniqueId: string; firstPoint: any; secondPoint: any; firstNodeId: any; secondNodeId: any; lineColor: vt; lineOpacity: number; linePattern: any; linePatternLength: any; linePatternLengthUnit: any; }; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { className: string; uniqueId: string; firstPoint: any; secondPoint: any; firstNodeId: any; secondNodeId: any; lineColor: vt; lineOpacity: number; linePattern: any; linePatternLength: any; linePatternLengthUnit: any; }; _behindView: boolean; /** * Called when the MarkupItem is removed from a view from the system. * Any cleanup that needs to be done should be performed in this method. * @param view the view to remove from, null if removed from everywhere. */ remove(t: any): void; /** * Called when the markup item should be redrawn on a specific view. This most typically happens when the scene is rendered. * @param renderer renderer engine to draw. * @param view the view to draw on. */ draw(t: any, e: any): void; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @returns boolean value indicating whether this item was picked */ hit(t: any, e: any): boolean; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @param pickTolerance amount of tolerance allowed for a hit in pixels. * @returns boolean value indicating whether this item was picked */ hitWithTolerance(t: any, e: any, i: any): boolean; /** * Called when this markup item is selected by the system from a given view. * @param view the view where the selection occured */ onSelect(t: any): void; /** * Called when this markup item is deselected by the system */ onDeselect(): void; }; /** * Creates a new [[LineMarkup]] from an object given by [[toJson]]. * @param An object given by [[toJson]]. * @returns The prepared object. */ fromJson(t: any, e: any): Promise<{ _uniqueId: string; _lineMeshId: any; _lineMeshInstanceId: any; _lineColor: vt; _lineOpacity: number; _linePattern: any; _linePatternLength: any; _linePatternLengthUnit: any; _viewer: any; _firstPoint: any; _secondPoint: any; _firstNodeId: any; _secondNodeId: any; /** * Sets the line color. * @param color */ setLineColor(t: any): void; /** * Gets the line color. */ getLineColor(): vt; /** * Sets the line opacity. * @param opacity */ setLineOpacity(t: any): void; /** * Gets the line opacity. */ getLineOpacity(): number; /** * Sets the line pattern. * @param pattern The line pattern. * @param patternLength The length of a single repetition of the line pattern. * @param patternLengthUnit The unit in which the pattern length is measured. */ setLinePattern(t: any, e: any, i: any): void; /** * Gets the line pattern. */ getLinePattern(): any; /** * Gets the length of a single repetition of the line pattern. */ getLinePatternLength(): any; /** * Gets the unit in which the line pattern length is measured. */ getLinePatternLengthUnit(): any; /** * Sets the first point on the line. * @param firstPoint */ setFirstPoint(t: any): void; /** * Gets the first point on the line. * @returns the first point, or null if none is set. */ getFirstPoint(): any; /** * Sets the second point on the line. * @param secondPoint */ setSecondPoint(t: any): void; /** * Gets the second point on the line. * @returns the second point, or null if none is set. */ getSecondPoint(): any; /** * Sets the NodeId of the part associated with the first line point * @param nodeId */ setFirstNodeId(t: any): void; /** * Gets the NodeId of the part associated with the first line point */ getFirstNodeId(): any; /** * Sets the NodeId of the part associated with the second line point * @param nodeId */ setSecondNodeId(t: any): void; /** * Gets the NodeId of the part associated with the second line point */ getSecondNodeId(): any; /** * Gets the node id associated with the line markup. */ getNodeId(): any; /** * Removes the line geometry from the scene. */ removeLine(): Promise; /** * Draws updated line geometry in the scene. */ updateLine(): Promise; /** * Returns a unique markup id for this line. */ getId(): string; /** * Sets a markup id for this line. * @param id */ setId(t: any): void; /** * Returns the class name for this markup item. */ getClassName(): string; _toJson(): { className: string; uniqueId: string; firstPoint: any; secondPoint: any; firstNodeId: any; secondNodeId: any; lineColor: vt; lineOpacity: number; linePattern: any; linePatternLength: any; linePatternLengthUnit: any; }; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { className: string; uniqueId: string; firstPoint: any; secondPoint: any; firstNodeId: any; secondNodeId: any; lineColor: vt; lineOpacity: number; linePattern: any; linePatternLength: any; linePatternLengthUnit: any; }; _behindView: boolean; /** * Called when the MarkupItem is removed from a view from the system. * Any cleanup that needs to be done should be performed in this method. * @param view the view to remove from, null if removed from everywhere. */ remove(t: any): void; /** * Called when the markup item should be redrawn on a specific view. This most typically happens when the scene is rendered. * @param renderer renderer engine to draw. * @param view the view to draw on. */ draw(t: any, e: any): void; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @returns boolean value indicating whether this item was picked */ hit(t: any, e: any): boolean; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @param pickTolerance amount of tolerance allowed for a hit in pixels. * @returns boolean value indicating whether this item was picked */ hitWithTolerance(t: any, e: any, i: any): boolean; /** * Called when this markup item is selected by the system from a given view. * @param view the view where the selection occured */ onSelect(t: any): void; /** * Called when this markup item is deselected by the system */ onDeselect(): void; }>; className: string; }; }>; MarkupItem: typeof go; MarkupItemManager: typeof q_; MarkupView: typeof uh; Redline: Readonly<{ __proto__: null; RedlineItem: typeof Ll; }>; Shapes: Readonly<{ __proto__: null; Circle: typeof Gr; CircleCollection: typeof Sg; EndcapShape: typeof Dh; EndcapType: any; FilledShape: typeof Fa; Line: typeof Qn; LineCollection: typeof qb; Polygon: typeof J_; PolygonCollection: typeof Kb; Polyline: typeof Ba; PolylineCollection: typeof Hb; Rectangle: typeof vd; RectangleBase: typeof wd; RectangleCollection: typeof Ub; StrokedShape: typeof Cg; Text: typeof Xb; TextBox: typeof Fl; TextBoxBase: typeof Mg; TextBoxCollection: typeof Jb; TextCollection: typeof Y_; TextMarkupBase: typeof Sd; _MarkupCircleData: typeof B_; _MarkupLineData: typeof X_; _MarkupRectangleData: typeof V_; _MarkupTextData: typeof kg; }>; Svg: Readonly<{ __proto__: null; SVGMarkupRenderer: typeof Z_; createCircleMarker: typeof qf; createEndArrowMarker: typeof $f; createStartArrowMarker: typeof Gf; svgColorRgbString: typeof xl; svgNamespace: string; svgPointString: typeof Wf; }>; _MarkupViewConstruction: typeof K_; }>; declare class wx { /** @hidden */ constructor(t: any, e: any, i: any, n: any, r: any, o: any); _markupTypeMap: Map; _callbackManager: any; _viewer: any; _sheetManager: any; _noteTextManager: any; _renderer: Z_; _itemManager: q_; _viewManager: yx; _measurementManager: any; _lineManager: any; /** * Registers a MarkupTypeManager to add markup to exported data. * @param markupTypeManager */ registerMarkupTypeManager(t: any, e: any): void; /** * Registers a factory to load custom markups in markup views when using loadMarkupData. * @param className identifier of the markup item type, this is what's returned by getClassName function of MarkupItem. * @param factory a function to create the markup object from a json object outputed by toJson function of MarkupItem. */ registerMarkupFactory(t: any, e: any): void; /** * Creates a new markup view based on a given view, line, and face visibility values. * @param view the reference view for values used to create the markup view (camera, line and face visibility). * @param name optional name for the markup view. If omitted or null, the system will generate a default name * @param triggerEvent optional parameter indicating whether a [[CallbackMap.viewCreated]] event should be triggered. This parameter defaults to true * @param visibilityState optional parameter * @returns Unique identifier for the new view */ createMarkupView(t: any, e: any, i?: boolean, n?: null, r?: null, o?: null): any; /** * Gets a [[MarkupView]] object from the viewer. * @param uniqueId the handle for the view object to retreive * @returns [[MarkupView]] object for the corresponding ID or null if no view was found */ getMarkupView(t: any): any; /** * @returns an array of string keys for all markup views */ getMarkupViewKeys(): any[]; /** * Activates a [[MarkupView]] in the given view. * @param uniqueId the handle for the [[MarkupView]] object to activate * @param view the view to activate the markup view * @param duration the time in milliseconds for the transition to this view */ activateMarkupViewWithPromise(t: any, e: any, i?: number): Promise; /** * Returns the currently active [[MarkupView]]. * @returns [[MarkupView]] object for the currently active view, or null if no view is active */ getActiveMarkupView(t: any): any; /** * Deletes a [[MarkupView]] object. * @param uniqueId the handle for the view object to delete * @returns true if a [[MarkupView]] with the supplied uniqueId was deleted, false otherwise */ deleteMarkupView(t: any): boolean; /** * Registers a [[MarkupItem]] to be rendered with the 3D view in the given view. * @param markupItem the item to register * @param view the view where display markup * @returns unique handle to this [[MarkupItem]]. */ registerMarkup(t: any, e: any): string; /** * Unregisters a [[MarkupItem]]. It will no longer be rendered with the 3D view. * @param uniqueId unique handle to the object that was returned from [[registerMarkup]] * @param view the view the markup belongs to */ unregisterMarkup(t: any, e: any): void; /** * Add an HTML element to the markup element layer of a given view. The element will have its ID set to a system generated unique identifier. * @param element the HTML Element to add * @param view the view where to add the HTML element * @returns system generated unique identifier which is the id of the passed in object */ addMarkupElement(t: any, e: any): string; /** * Removes a markup element from the markup element layer of the given view * @param uniqueId unique handle to the object that was returned from [[registerMarkup]] * @param view the view where to remove the HTML element */ removeMarkupElement(t: any, e: any): void; /** * Redraws the markup without rendering the scene. Useful when markup is added or removed but the scene is not affected. * @param view the view where markups need to be redrawn */ refreshMarkup(t: any): void; /** * Redraws all views where the given markup view is active. Scene is not rendered. * Useful when something in a markup view has been updated and views need to reflect the changes. * @param markupView the markup view that has changed. */ refreshMarkupView(t: any): void; updateLater(t: any): void; /** * Picks a [[MarkupItem]]. Tests scene based and markup attached to the active view (if any) * @param point position to pick against * @param view view where the test is triggered * @returns [[MarkupItem]] that was selected or null if none was picked */ pickMarkupItem(t: any, e: any): any; /** * Gets the pick tolerance in pixels for picking a [[MarkupItem]] * @returns Current tolerance */ getPickTolerance(): number; /** * Sets the pick tolerance in pixels for picking a [[MarkupItem]] * @param tolerance The new tolerance */ setPickTolerance(t: any): void; /** * Selects a [[MarkupItem]]. Pass null to clear the selection. * Will refresh all views with markups. * @param markupItem The [[MarkupItem]] to select. * @param view The view the selection come from. */ selectMarkup(t: any, e: any): void; /** * Returns the currently selected [[MarkupItem]], or null if nothing is currently selected * @returns selected [[MarkupItem]] */ getSelectedMarkup(): any; /** * export markup from the viewer * @returns Serialized markup objects */ exportMarkup(): { views: any[]; notes: any; measurement: any; lines: any; }; /** * Loads markup data into the viewer. * @param data markup data to be loaded into the viewer */ loadMarkupData(t: any): Promise; _loadMarkupData(t: any): Promise; /** * Returns a the interface to the [[MarkupRenderer]]. * @returns [[MarkupRenderer]] interface */ getRenderer(): Z_; /** @hidden */ _shutdown(): void; /** @hidden */ _update(): void; /** @hidden */ _setActiveMarkupView(t: any, e: any): Promise; /** @hidden */ _getItemManager(): q_; /** @hidden */ _viewDeleted(t: any): void; } declare class Pd { /** * @returns JSON Array containing markup data. */ exportMarkup(): never[]; /** * Loads JSON markup data * @param jsonData JSON Array containing markup data. */ loadData(t: any): Promise; } declare let mt: { new (): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; /** * Creates a matrix from an array of numbers. * @param arr 16 element array of numbers. * @returns New matrix with elements set to the values of the array parameter. Array elements will be in column-major order. */ createFromArray(t: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; /** * Creates a rotation matrix from an arbitrary axis. * @param axis Axis to rotate about. * @param degrees Amount of degrees to rotate about the provided axis. * @returns Rotation matrix which represents the rotation about the supplied axis. */ createFromOffAxisRotation(t: any, e: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; /** * Creates a matrix from three [[Point3]]s, which will be used as the * columns of the matrix. * * @param xAxis The first column. * @param yAxis The second column. * @param zAxis The third column. */ createFromBasis(t: any, e: any, i: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; /** * Multiplies two matrices. * * (p' = ABp <=> p' = multiply(B, A).transform(p)) * * @param m1 The first matrix. * @param m2 The second matrix. * @returns Matrix which is the result of the multiplication. */ multiply(t: any, e: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; /** * Computes the inverse of a matrix if possible. * @param matrix Matrix whose inverse will be computed. * @returns Matrix set to the inverse of the supplied matrix. */ inverse(t: any): any; /** * Creates a new [[Matrix]] from an object given by [[toJson]]. * @param An object given by [[toJson]]. * @returns The prepared object. */ fromJson(t: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; /** @hidden */ toMatrix12(t: any): any[]; /** * Returns the matrix for a clockwise rotation around the X-axis. * @param degrees The degrees of the rotation. * @returns The rotation matrix. */ xAxisRotation(t: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; /** * Returns the matrix for a clockwise rotation around the Y-axis. * @param degrees The degrees of the rotation. * @returns The rotation matrix. */ yAxisRotation(t: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; /** * Returns the matrix for a clockwise rotation around the Z-axis. * @param degrees The degrees of the rotation. * @returns The rotation matrix. */ zAxisRotation(t: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; }; declare class vx extends Pd { /** @hidden */ constructor(t: any, e: any); _markupArray: any[]; _color: vt; _edgeColor: vt; _viewer: any; _callbackManager: any; /** * Adds a new Measurement to the Measure Manager * @param measurementItem MeasureMarkup Object that will be added */ addMeasurement(t: any): any; /** * Triggers a measurementCreated callback * @param measureItem * @param triggerEvent boolean trigger a callback event */ finalizeMeasurement(t: any): void; /** * Removes an existing measurement item. * @param measurementItem the measurement item to remove. */ removeMeasurement(t: any): void; /** * Removes all measurement items. */ removeAllMeasurements(): void; /** * Return an array of measurement items. * @returns array of all measurement items. */ getAllMeasurements(): any[]; /** * Removes the most recently added measurement item. */ removeLastMeasurement(): void; /** * Sets the current measurement color. * @param color the measurement color to set. */ setMeasurementColor(t: any): void; /** * Gets the current measurement color. * @returns color current measurement color. */ getMeasurementColor(): vt; /** * Sets the current measurement edge color. * @param color the measurement edge color to set. */ setMeasurementEdgeColor(t: any): void; /** * Gets the current measurement edge color. * @returns color current measurement edge color. */ getMeasurementEdgeColor(): vt; /** * @returns JSON Array with measurement markup */ exportMarkup(): any[]; _handleLoadMeasurement(t: any): boolean; /** * Loads JSON markup data * @param measurementData * @param viewer */ loadData(t: any): Promise; } declare class Cs { _faceMeshData: any[]; _pointMeshData: any[]; _polylineMeshData: any[]; _faceWinding: any; _backfacesEnabled: boolean; _isManifold: boolean; /** * Adds face data to the mesh. Note that the arrays passed into this function are not copied and should remain unchanged until the mesh has been created. * When adding vertex data into the mesh using this method, it is important to note that the data is interpreted as triangles in which each vertex must be explicitly enumerated. * @param vertexData floating point data describing the points in space for the faces to be added to the mesh * @param normalData normals for the corresponding vertex data points. * @param rgba32data colors for the corresponding vertex data points (four bytes per rbga). * @param uvs texture parameters for the corresponding vertex data points. * @param bits bitmask associated with the face. */ addFaces(t: any, e: any, i: any, n: any, r?: number): void; /** * Adds point data to the mesh. Note that the arrays passed into this function are not copied and should remain unchanged until the mesh has been created. * @param pointData floating point data describing the points to be added to the mesh * @param rgba32data colors for the corresponding vertex data points (four bytes per rbga). * @param bits bitmask associated with the point. */ addPoints(t: any, e: any, i?: number): void; /** * Adds polyline data to the mesh.Note that the arrays passed into this function are not copied and should remain unchanged until the mesh has been created. * @param polylineData floating point data describing the polyline to be added to the mesh * @param rgba32data colors for the corresponding vertex data points (four bytes per rbga). * @param bits bitmask associated with the line. */ addPolyline(t: any, e: any, i?: number): void; /** * Removes all data from the object. */ clear(): void; /** * Sets the face winding to be used for this mesh. The default value is CounterClockwise. * @param faceWinding the face winding to use for mesh geometry. */ setFaceWinding(t: any): void; /** * Gets the face winding used for this mesh. */ getFaceWinding(): any; /** * Sets whether backfaces should be enabled for this geometry. The default value is false. * Setting this to true for geometry with a large amount of faces may affect performance. * @param backfacesEnabled indicated whether backfaces should be enabled for this geometry. */ setBackfacesEnabled(t: any): void; /** * Gets whether backfaces are enabled for this geometry * @returns value indicting whether backfaces are enabled for this geometry. */ getBackfacesEnabled(): boolean; /** * Sets whether the mesh is a manifold one or not (if the mesh is not set as manifold, then capping won't happen while cutting). * @param isManifold indicated whether or not it's a manifold mesh. */ setManifold(t: any): void; /** * Gets if the mesh is set as manifold. * @returns value indicating whether or not it's a manifold mesh. */ isManifold(): boolean; /** @hidden */ _getFaceData(): any[]; /** @hidden */ _getPointData(): any[]; /** @hidden */ _getPolylineData(): any[]; } declare var ee: any; declare class Qs { /** * Creates a new MeshInstanceData object. * @param meshId the [[MeshId]] of the mesh to instantiate * @param matrix a matrix that will be applied to this instance * @param instanceName a name that will be visible when querying the model hierarchy * @param faceColor the color for faces of this instance * @param lineColor the color for lines of this instance * @param pointColor the color for points of this instance * @param creationFlags additional options that can be used to alter the behavior of this instance */ constructor(t: any, e: any, i: any, n: any, r: any, o: any, l: any); _meshId: any; _matrix: any; _faceColor: any; _lineColor: any; _pointColor: any; _instanceName: any; _faceOpacity: number; _lineOpacity: number; _pointOpacity: number; _creationFlags: any; overlayId: { viewKey: any; overayIndex: number; }; /** * Creates a copy of this MeshInstanceData. * @returns Copy of this MeshInstanceData object. */ copy(): Qs; /** * Resets all fields of this object. */ clear(): void; /** * Gets the [[MeshId]] of the mesh to use for this instance. * [[MeshId]]s are created with [[Model.createMesh]] or retrieved with [[Model.getMeshIds]]. * @returns the mesh ID to use for this instance. */ getMeshId(): any; /** * Sets the [[MeshId]] of the mesh to use for the instance. * [[MeshId]]s are created with [[Model.createMesh]] or retrieved with [[Model.getMeshIds]]. * @param meshId the [[MeshId]] to use. */ setMeshId(t: any): void; /** * Gets the matrix to apply to this instance. * @returns the current matrix that will be applied to this instance upon creation. */ getMatrix(): any; /** * Gets the mesh instance creation flags (SuppressCameraScale, DoNotExplode, DoNotLight...) * @returns the mesh instance creation flags (null if none set) */ getCreationFlags(): any; /** * Sets the mesh instance creation flags (SuppressCameraScale, DoNotExplode, DoNotLight...) * @param flags creation flags */ setCreationFlags(t: any): void; /** * Sets the matrix that will be applied to this instance. * @param matrix the matrix to apply. */ setMatrix(t: any): void; /** * Gets the name that will be applied to the instance. * @returns the instance name. */ getInstanceName(): any; /** * Sets the name that will be assigned to this instance. This name will be visible when querying the model hierarchy. * @param instanceName the name to assign to this instance. */ setInstanceName(t: any): void; /** * Sets the color for face elements in this instance. * @param faceColor the color to apply to face elements. */ setFaceColor(t: any): void; /** * Gets the color for face elements in this instance. * @returns the color for face elements. */ getFaceColor(): any; /** * Sets the color for line elements in this instance. * @param lineColor the color to apply to line elements. */ setLineColor(t: any): void; /** * Gets the color for line elements in this instance. * @returns the color for line elements. */ getLineColor(): any; /** * Sets the color for point elements in this instance. * @param pointColor the color to apply to point elements. */ setPointColor(t: any): void; /** * Gets the color for point elements in this instance. * @returns the color for point elements. */ getPointColor(): any; /** * Sets the point opacity for this instance. * @param pointOpacity opacity value to set. */ setPointOpacity(t: any): void; /** * Gets the point opacity value for this instance. * @returns the point opacity value for this instance. */ getPointOpacity(): number; /** * Sets the line opacity for this instance. * @param lineOpacity opacity value to set. */ setLineOpacity(t: any): void; /** * Gets the line opacity value for this instance. * @returns the line opacity value for this instance. */ getLineOpacity(): number; /** * Sets the face opacity for this instance. * @param faceOpacity opacity value to set. */ setOpacity(t: any): void; /** * Gets the face opacity value for this instance. * @returns the face opacity value for this instance. */ getOpacity(): number; /** * Sets the overlay index for this instance but doesn't change the associated view. * @param overlayIndex overlay index to set. * @deprecated use [[overlayId]] instead. */ setOverlayIndex(t: any): void; /** * Gets the overlay index for this instance. * @returns the overlay index for this instance, but not the associated view. * @deprecated use [[overlayId]] instead. */ getOverlayIndex(): number; } declare class yd extends qr { } declare class Nc { static _flatArrayToPairArray(t: any): any[][]; static _pairArrayToFlatArray(t: any): any[]; /** @hidden */ constructor(t: any, e: any); _pmiColor: vt; _pmiColorOverride: boolean; _viewAxes: Wp; _viewAxesSet: boolean; _engine: any; _callbackManager: any; /** @hidden */ _setModelStructure(t: any): void; _modelStructure: any; /** @hidden */ _setDefaultView(t: any): void; _defaultView: any; /** * Sets the up and front vectors for the model coordinate system. * Both the upVector and frontVector must be unique, cardinal axes. * @param frontVector * @param upVector */ setViewAxes(t: any, e: any): void; /** * Gets whether there has been a successful call to setViewAxes. */ viewAxesHaveBeenSet(): boolean; /** * @returns the up and front vectors for the model coordinate system. */ getViewAxes(): Wp; /** * Gets the world space bounding box for the model. * @returns Promise that resolves with a Box representing the world space bounding box of the model. */ getModelBounding(t: any, e: any, i?: boolean): Promise; /** * Gets the world space bounding box for the model. This does not take node visibility into account. * @returns Promise that resolves with a Box representing the world space bounding box of the model. */ getLooseBounding(): Promise; /** @hidden */ _allowNodeDeletion(t: any): any; /** @hidden */ _preventNodeDeletion(t: any): any; /** @hidden */ _preventMeshDeletion(t: any): any; /** @hidden */ _getNodeFromInstanceInc(t: any, e: any, i: any, n: any): any; /** * Gets the world space bounding box for a list of nodes. * @param nodeIds IDs of the nodes for which you wish to get the bounding box. * @param config Allows fine control of what body types to compute the bounding against. If not provided, all body types are considered. * @returns Promise that resolves with the world space bounding box for the given IDs. */ getNodesBounding(t: any, e: any): any; /** * Gets the world space bounding box for a node including any effects (explosion, camera suppression, etc). * Note: This function can have performance implications when used on nodes with many children. * @param nodeId ID of the node for which you wish to get the bounding box. * @param view View to use for determining visibility. * @returns Promise that resolves with the world space bounding box for the given ID. */ getNodeRealBounding(t: any, e: any): Promise; /** * Sets the visibility for a given set of nodes. * @param mapping The mapping of node IDs to boolean value indicating the visibility setting for that node. * @param initiallyHiddenStayHidden Controls whether or not initially hidden geometries stay hidden. Default behavior is driven by [[setBehaviorInitiallyHidden]]. * @param mode an optional walk mode to use while traversing the model tree * @returns Promise that resolves when the operation has completed. */ setNodesVisibilities(t: any, e?: null): any; /** * Sets visibility for a given list of nodes. * @param nodeIds The node IDs whose visibilities will be set. * @param visibility If true, nodes will be shown. If false, they will be hidden. * @param initiallyHiddenStayHidden Controls whether or not initially hidden geometries stay hidden. Default behavior is driven by [[setBehaviorInitiallyHidden]]. * @param mode an optional walk mode to use while traversing the model tree * @returns Promise that resolves when the operation has completed. */ setNodesVisibility(t: any, e: any, i?: null): any; setBodyNodesVisibility(t: any, e: any): any; /** * Resets visibility for all nodes in the model. * @returns Promise that resolves when the operation has completed. */ resetNodesVisibility(): any; /** * Returns a defaultVisibility boolean value and a visibilityException set of NodeIds. * defaultVisibility will be true if there are more nodes visible than hidden, and false otherwise. * If defaultVisibility is true, set of nodes that are hidden, if false, nodes that are visible. */ getVisibilityState(t: any): Promise; /** * Resets transform for all nodes in the model. * @returns Promise that resolves when the operation has completed. */ resetNodesTransform(): any; /** * Resets the state of the model to its default * @returns Promise that resolves when the operation has completed. */ reset(): any; /** * Remove all nodes, CAD views, configurations, and sheets from the model. * * If you intend to load additional models via the `loadSubtree` family * of methods, you should wait on the resolution of this promise before doing so. */ clear(): any; /** * Sets the color on the faces for a given list of nodes. * @param nodeIds IDs of nodes whose color to set * @param color the color to set * @returns Promise that resolves when this operation has completed. */ setNodesFaceColor(t: any, e: any): Promise; /** * Sets the ambient color on the faces for a given list of nodes. * @param nodeIds IDs of nodes whose color to set * @param color the color to set */ setNodesAmbientColor(t: any, e: any): void; /** * Sets the ambient mix on the faces for a given list of nodes. * The mix is between the material ambient light and the global ambient light, * with 1.0 representing full material ambient mix and 0.0 representing full global * ambient light. * @param nodeIds IDs of nodes whose color to set * @param value the decimal value to set, between 0 and 1 */ setNodesAmbientMix(t: any, e: any): void; /** * Gets the ambient color on the faces for a given list of nodes. * @param nodeIds IDs of nodes whose color to get */ getNodesAmbientColor(t: any): any; /** * Gets the ambient color set on the faces of a list of leaf nodes. If no color has been set, * the color specified when the model was authored will be returned. * @param nodeIds IDs of the nodes to be queried */ getNodesEffectiveAmbientColor(t: any): any; /** * Unsets the ambient color on the faces for a given list of nodes. * @param nodeIds IDs of nodes whose color to unset */ unsetNodesAmbientColor(t: any): void; /** * Sets the emissive color on the faces for a given list of nodes. * @param nodeIds IDs of nodes whose color to set * @param color the color to set */ setNodesFaceEmissiveColor(t: any, e: any): void; /** * Gets the emissive color on the faces for a given list of nodes. * @param nodeIds IDs of nodes whose color to get */ getNodesFaceEmissiveColor(t: any): any; /** * Gets the emissive color set on the faces of a list of leaf nodes. If no color has been set, * the color specified when the model was authored will be returned. * @param nodeIds IDs of the nodes to be queried */ getNodesEffectiveEmissiveColor(t: any): any; /** * Resets the emissive color on the faces for a given list of nodes. * @param nodeIds IDs of nodes whose color to reset */ unsetNodesFaceEmissiveColor(t: any): void; /** * Sets the specular color on the faces for a given list of nodes. * @param nodeIds IDs of nodes whose color to set * @param color the color to set */ setNodesFaceSpecularColor(t: any, e: any): void; /** * Gets the specular color on the faces for a given list of nodes. * @param nodeIds IDs of nodes whose color to get */ getNodesFaceSpecularColor(t: any): any; /** * Gets the specular color set on the faces of a list of leaf nodes. If no color has been set, * the color specified when the model was authored will be returned. * @param nodeIds IDs of the nodes to be queried */ getNodesEffectiveSpecularColor(t: any): any; /** * Resets the specular color on the faces for a given list of nodes. * @param nodeIds IDs of nodes whose color to reset */ unsetNodesFaceSpecularColor(t: any): void; /** * Sets the specular intensity on the faces for a given list of nodes. * @param nodeIds IDs of nodes whose color to set * @param value the value to set */ setNodesFaceSpecularIntensity(t: any, e: any): void; /** * Resets the specular intensity on the faces for a given list of nodes. * @param nodeIds IDs of nodes whose color to set */ unsetNodesFaceSpecularIntensity(t: any): void; _setNodesFaceColor(t: any, e: any): void; _unsetNodesColor(t: any, e: any): void; /** * Unsets the color on the faces for a given list of nodes. * @param nodeIds IDs of nodes to modify * @param color the color to set * @returns Promise that resolves when this operation has completed. */ unsetNodesFaceColor(t: any): Promise; /** * Sets the color on the lines/edges for a given list of nodes. * @param nodeIds IDs of nodes whose color to set * @param color the color to set * @returns Promise that resolves when this operation has completed. */ setNodesLineColor(t: any, e: any): Promise; _setNodesLineColor(t: any, e: any): void; /** * Unsets the color on the lines for a given list of nodes. * @param nodeIds IDs of nodes to modify * @param color the color to set * @returns Promise that resolves when this operation has completed. */ unsetNodesLineColor(t: any): Promise; /** * Sets whether the supplied nodes should appear highlighted. When a node is highlighted, * the highlight color will override any color previously set on the model. * * *Tip:* An easy way to unhighlight the entire model is to call [[setNodesHighlighted]] * on the root node of the model: * ``` * hwv.model.setNodesHighlighted([hwv.model.getAbsoluteRootNode()], false); * ``` * (In this case, `hwv` is your instance of [[WebViewer]].) * * @param nodeIds array of IDs for this operation. * @param highlighted value indicating whether the supplied nodes should be highlighted. * @returns Promise that resolves when this operation has completed. */ setNodesHighlighted(t: any, e: any): Promise; /** * Returns whether the supplied nodes have been highlighted with [[setNodesHighlighted]]. * @param nodeIds the list of nodes to be queried */ getNodesHighlighted(t: any): any; /** * Sets colors for a given set of nodes. * * @param params object mapping node IDs to color to set for that node * @param alsoApplyToWireframe change or not lines color * @param alsoApplyToPoints change or not points color * @returns Promise that resolves when this operation has completed. */ setNodesColors(t: any, e?: boolean, i?: boolean): Promise; /** * Gets an array of PMI topology references linking a PMI node to a body element, like a face or an edge. * @param pmiNodeId the ID of the PMI node. */ getPmiTopologyReferences(t: any): Sb[] | null; /** * Returns names and ids of all the PMIs available in the scene * @returns a map associating PMI IDs to PMI names */ getPmis(): any; /** * Returns the type of a given PMI * @param idPMI ID of the PMI * @returns Type of the PMI (Dimension, Datum, GD&T...) */ getPmiType(t: any): any; /** * Returns the subtype of a given PMI * @param idPMI ID of the PMI * @returns Subtype of the PMI (Dimension distance, Datum target, GD&T fcf...) */ getPmiSubtype(t: any): any; /** * Saves a PMI override color * @param color the override color */ setPmiColor(t: any): void; /** * Returns the set PMI override color (if none is set, defaults to black) * @returns color */ getPmiColor(): vt; /** * Takes a boolean value and either enables the set PMI override color or resets all PMI colors to their default * @returns Promise that resolves when this operation has completed. */ setPmiColorOverride(t: any, e: any): Promise; /** * @returns a boolean value indicating the status of the PMI override color. */ getPmiColorOverride(): boolean; /** * Computes the distance between two bodies * @param partId1 id for the part which the first face belongs to * @param partId2 id for the part which the second face belongs to * @returns a promise that resolves with a Markup.Measure.FaceFaceDistanceItem when the operation completes */ computeMinimumBodyBodyDistance(t: any, e: any): any; /** * Computes the distance between two faces * @param partId1 id for the part which the first face belongs to * @param faceId1 id for the face in the first part * @param partId2 id for the part which the second face belongs to * @param faceId2 id for the face in the second part * @returns a promise that resolves with a Markup.Measure.FaceFaceDistanceItem when the operation completes */ computeMinimumFaceFaceDistance(t: any, e: any, i: any, n: any): any; /** * Computers the minimum distance between a face and a ray. * @param nodeId id of the node the face belongs to * @param faceId id of the face in the node * @param ray the ray to test against * @returns a promise that resolves with a Markup.Measure.FaceFaceDistanceItem when the operation completes */ computeMinimumFaceRayDistance(t: any, e: any, i: any): any; /** * Computers the minimum distance between a face and an infinite line. * @param nodeId id of the node the face belongs to * @param faceId id of the face in the node * @param ray the line (in the form of a ray) to test against * @returns a promise that resolves with a Markup.Measure.FaceFaceDistanceItem when the operation completes */ computeMinimumFaceLineDistance(t: any, e: any, i: any): any; /** * Sets the color for a face element. This color will take precedence over any currently set color on the node * @param nodeId the Id of the node containing the face * @param faceId the Id of the face in the node that will have its color set * @param color the color to set */ setNodeFaceColor(t: any, e: any, i: any): Promise; _setNodeFaceColor(t: any, e: any, i: any): void; /** * Sets the visibility for a face element. This visibility setting will take precedence over other element visibility settings * @param partId the Id of the part containing the face * @param faceId the Id of the face in the node that will have its visibility set * @param visibility visibility state to be set */ setNodeFaceVisibility(t: any, e: any, i: any): void; /** * Clears the visibility for a node's face elements, resetting them to default. * @param partId the Id of the part to be reset */ clearNodeFaceVisibility(t: any): void; _setNodeElementVisibility(t: any, e: any, i: any, n: any): void; _clearNodeElementVisibility(t: any, e: any): void; _unsetElementColor(t: any, e: any, i: any): void; /** * Unsets the color for a face element. This will return the face's color to its default state. * @param nodeId the Id of the node containing the face * @param faceId the Id of the face in the node that will have its color unset */ unsetNodeFaceColor(t: any, e: any): Promise; /** * Sets whether the face element for a given node should appear highlighted. * When a face element is highlighted, the highlight color will override * any color previously set on the element. * @param nodeId the id for the node containing the face element. * @param faceId the face Id that is the target of this operation. * @param highlighted value indicating whether the supplied face element should be highlighted. */ setNodeFaceHighlighted(t: any, e: any, i: any): Promise; _setNodeFaceHighlighted(t: any, e: any, i: any): void; _getElementHighlighted(t: any, e: any, i: any): Promise; /** * Returns whether the supplied face element has been highlighted with [[setNodeFaceHighlighted]]. * @param nodeId the ID of the node containing the face element * @param faceIndex the index of the face within the node */ getNodeFaceHighlighted(t: any, e: any): Promise; /** * Gets the color set via [[setNodePointColor]] on a point element. * If no color has been set, `null` will be returned. *

See also: [[getNodeEffectivePointColor]] * @param nodeId the ID of the node containing the point * @param pointIndex the index of the point in the node */ getNodePointColor(t: any, e: any): Promise; /** * Gets the color set via [[setNodePointColor]] on a point element. If no color has been set, * the node's point color will be returned. If the node's point color has not been set, * the color specified when the model was authored will be returned. * @param nodeId the ID of the node containing the point * @param pointIndex the index of the point in the node * @param view the View to use for calculating view effects */ getNodeEffectivePointColor(t: any, e: any, i: any): Promise; /** * Sets the color for a point element. * @param partId the Id of the node containing the point. * @param pointId the Id of the point in the node that will have its color set. * @param color the color to set. */ setNodePointColor(t: any, e: any, i: any): void; /** * Unsets the color for a point element. This will return the point's color to its default state. * @param partId the Id of the node containing the point * @param pointId the Id of the point in the node that will have its color unset */ unsetNodePointColor(t: any, e: any): void; /** * Gets the color set via [[setNodesPointColor]] on the points of a list of leaf nodes. * If no color has been explicitly set for a particular node, `null` will appear at the corresponding * position in the returned array. *

See also: [[getNodesEffectivePointColor]] * @param nodeIds IDs of the nodes to be queried */ getNodesPointColor(t: any): any; /** * Gets the color set on the points of a list of leaf nodes. If no color has been set, * the color specified when the model was authored will be returned. * @param nodeIds IDs of the nodes to be queried */ getNodesEffectivePointColor(t: any): any; /** * Sets the color on the points for a given list of nodes. * @param nodeIds IDs of nodes whose color to set * @returns Promise that resolves when this operation has completed. */ setNodesPointColor(t: any, e: any): void; /** * Unsets the color on the points for a given list of nodes. * @param nodeIds IDs of nodes to modify */ unsetNodesPointColor(t: any): void; /** * Sets the color for a line element. * @param nodeId the Id of the node containing the line. * @param lineId the Id of the line in the node that will have its color set. * @param color the color to set. */ setNodeLineColor(t: any, e: any, i: any): Promise; _setNodeLineColor(t: any, e: any, i: any): void; /** * Unsets the color for a line element. This will return the line's color to its default state. * @param nodeId the Id of the node containing the line * @param lineId the Id of the line in the node that will have its color unset */ unsetNodeLineColor(t: any, e: any): Promise; /** * Sets the visibility for a line element. This visibility setting will take precedence over other element visibility settings * @param partId the Id of the part containing the line * @param lineId the Id of the line in the node that will have its visibility set * @param visibility visibility state to be set */ setNodeLineVisibility(t: any, e: any, i: any): void; /** * Clears the visibility for a node's line elements, resetting them to default. * @param partId the Id of the part to clear visibilities from */ clearNodeLineVisibility(t: any): void; /** * Sets whether the line element for a given node should appear highlighted. When a line element is highlighted, the highlight color will override any color previously set on the element. * @param nodeId the id for the node containing the line element. * @param lineId the line Id that is the target of this operation. * @param highlighted value indicating whether the supplied line element should be highlighted. */ setNodeLineHighlighted(t: any, e: any, i: any): Promise; _setNodeLineHighlighted(t: any, e: any, i: any): void; /** * Returns whether the supplied line element has been highlighted with [[setNodeLineHighlighted]]. * @param nodeId the ID of the node containing the line element * @param lineIndex the index of the line within the node */ getNodeLineHighlighted(t: any, e: any): Promise; /** * Sets the visibility for a point element. This visibility setting will take precedence over other element visibility settings * @param partId the Id of the part containing the point * @param pointId the Id of the point in the node that will have its visibility set * @param visibility visibility state to be set */ setNodePointVisibility(t: any, e: any, i: any): void; /** * Clears the visibility for a node's point elements, resetting it to default. * @param partId the Id of the part to clear visibilities from */ clearNodePointVisibility(t: any): void; /** * Sets whether the point element for a given node should appear highlighted. When a point element is highlighted, the highlight color will override any color previously set on the element. * @param nodeId the id for the node containing the point element. * @param pointId the point Id that is the target of this operation. * @param highlighted value indicating whether the supplied point element should be highlighted. */ setNodePointHighlighted(t: any, e: any, i: any): Promise; _setNodePointHighlighted(t: any, e: any, i: any): void; /** * Returns whether the supplied point element has been highlighted with [[setNodePointHighlighted]]. * @param nodeId the ID of the node containing the point element * @param pointIndex the index of the point within the node */ getNodePointHighlighted(t: any, e: any): Promise; /** * Resets color for all nodes in the model. * @returns Promise that resolves when this operation has completed. */ resetNodesColor(): Promise; /** * Sets opacity for a given list of nodes. * @param nodeIds IDs of nodes whose opacity will be set * @param opacity opacity value to apply to each node. The value should be between the range of 0.0 and 1.0. 0.0 indicates fully transparent, while 1.0 is fully opaque. */ setNodesOpacity(t: any, e: any): void; /** * Returns whether nodes with the given NodeIds have an opacity value that is not fully opaque. * @param nodeIds IDs of nodes to query. * @returns array of boolean values corresponding to the id array passed into the function. A value of true indicates that the node contains transparency and is not fully opaque. */ getNodesHaveTransparency(t: any): any; /** * Sets opacity for a given set of nodes. * @param params object mapping node IDs to opacity to set for that NodeId. The opacity value should be between the range of 0.0 and 1.0. 0.0 indicates fully transparent, while 1.0 is fully opaque. */ setNodesOpacities(t: any): void; /** * Resets opacity for all nodes in the model. * @returns Promise that resolves when this operation has completed. */ resetModelOpacity(): void; /** * Resets highlight for all nodes in the model. * @returns Promise that resolves when this operation has completed. */ resetModelHighlight(): Promise; /** * Resets opacity for a given list of nodes. * @param nodeIds IDs of nodes whose opacity will be reset to their default values */ resetNodesOpacity(t: any): void; _getNodesColor(t: any, e: any): any; _getNodesEffectiveColor(t: any, e: any): any; /** * Gets the color set via [[setNodesFaceColor]] on the faces of a list of leaf nodes. * If no color has been explicitly set for a particular node, `null` will appear at the corresponding * position in the returned array. *

See also: [[getNodesEffectiveFaceColor]] * @param nodeIds IDs of the nodes to be queried */ getNodesFaceColor(t: any): any; /** * Gets the color set on the faces of a list of leaf nodes. If no color has been set, * the color specified when the model was authored will be returned. * @param nodeIds IDs of the nodes to be queried */ getNodesEffectiveFaceColor(t: any): any; /** * Gets the color set via [[setNodesLineColor]] on the lines of a list of leaf nodes. * If no color has been set for a particular node, `null` will appear at the corresponding * position in the returned array. * @param nodeIds IDs of the nodes to be queried */ getNodesLineColor(t: any): any; /** * Gets the color set on the lines of a list of leaf nodes. If no color has been set, * the color specified when the model was authored will be returned. * @param nodeIds IDs of the nodes to be queried */ getNodesEffectiveLineColor(t: any): any; /** * Gets a map associating NodeIds to colors that are set on those nodes. * Only NodeIds of nodes that have a color set will be included. * @param startNodeId The start node to walk when building the color map. * @param elementType Returned colors are of this element type. */ getNodeColorMap(t: any, e: any): Promise>; /** * Gets the opacity set via [[setNodesOpacity]] on a list of leaf nodes. * If no value has been set for a particular node, `null` will appear at the corresponding * position in the returned array. * @param nodeIds IDs of the nodes to be queried */ getNodesOpacity(t: any): Promise; _getNodesOpacity(t: any): any; /** * Gets the opacity set on a list of leaf nodes multiplied by the opacity * specified when the model was authored. If no opacity has been set, * the opacity specified when the model was authored will be returned directly. * @param nodeIds IDs of the nodes to be queried * @param elementType the type of element (faces, lines or points) to query */ getNodesEffectiveOpacity(t: any, e: any): any; _getNodeElementColor(t: any, e: any, i: any): Promise; _getNodeEffectiveElementColor(t: any, e: any, i: any, n: any): Promise; /** * Gets the color set via [[setNodeFaceColor]] on a face element. * If no color has been set, `null` will be returned. *

See also: [[getNodeEffectiveFaceColor]] * @param nodeId the ID of the node containing the face * @param faceIndex the index of the face in the node */ getNodeFaceColor(t: any, e: any): Promise; /** * Gets the color set via [[setNodeFaceColor]] on a face element. If no color has been set, * the node's face color will be returned. If the node's face color has not been set, * the color specified when the model was authored will be returned. * @param nodeId the ID of the node containing the face * @param faceIndex the index of the face in the node * @param view the View to use when calculating view effects */ getNodeEffectiveFaceColor(t: any, e: any, i: any): Promise; /** * Gets the color set via [[setNodeLineColor]] on a line element. * If no color has been set, `null` will be returned. * @param nodeId the ID of the node containing the line * @param lineIndex the index of the line in the node */ getNodeLineColor(t: any, e: any): Promise; /** * Gets the color set via [[setNodeLineColor]] on a line element. If no color has been set, * the node's line color will be returned. If the node's line color has not been set, * the color specified when the model was authored will be returned. * @param nodeId the ID of the node containing the line * @param lineIndex the index of the line in the node * @param view the View to use when calculating view effects */ getNodeEffectiveLineColor(t: any, e: any, i: any): Promise; /** * Returns "Out Of Hierarchy" status for child node for the given Id. * @param id Node id to get children of * @returns false if node is Out Of Hierarchy, true if it is */ getOutOfHierarchy(t: any): any; /** * Returns the absolute root node of the assembly tree. * @returns Id for the model tree root node or null if the model structure is not loaded. */ getAbsoluteRootNode(): any; /** * Returns IDs for child nodes for the given Id. * @param id Node id to get children of * @param includeOutOfHierarchy true to include Out Of Hierarchy node, false or null to exclude them * @returns ID for the children of this node, or null if the ID is invalid */ getNodeChildren(t: any, e: any): any; /** * Returns IDs of nodes who instance the same part as the supplied node. * This method should be called on nodes whose type is `PartInstance`. * @param id ID of a `PartInstance` node. * @returns Array containing `PartInstance` node IDs. These nodes all instance the same part as the supplied node. If this method is called on a node which is not of type `PartInstance` then `null` will be returned. */ getNodesInstancingSamePart(t: any): any; /** * Returns the unit multiplier affecting the supplied node. * This number is a multiplier of millimeters (for example inches will be `25.4`). * The default value is `1.0`. * @returns The unit multiplier for the model (in mm) */ getNodeUnitMultiplier(t: any): any; /** * Creates a CAD view. This method will trigger a "cadViewCreated" callback if the creation is successful. * @param id Node id to attach the created view to * @param viewName Name of the view * @param camera Camera that will be set when the view gets activated * @param pmiIds (optional, if undefined or null no change applied to pmis) Node IDs of the PMI to show for the view others will be hidden * @param nodesToShow (optional, pass null or empty array if none to send) Node IDs of the elements to force visibility on * @param nodesToHide (optional, pass null or empty array if none to send) Node IDs of the elements to force visibility off * @param nodeIdsAndLocalTransforms (optional, pass null or empty array if none to send) array of node ID and matrix pair, defining specific local transform to apply * @param cuttingPlane (optional, pass null if none to send) Cutting plane to set when the view gets activated. Distance of the planes must be in the same unit as the model. * @param meshInstanceData (optional, pass null if none to send) object that specifies the data for the mesh instance of the rectangular frame (mostly found on capture views) * @returns id of the view, null is returned if the function fails */ createCadView(t: any, e: any, i: any, n: any, r: any, o: any, l: any, h: any, u: any): any; /** * Gets CAD View information for this model. * @returns a map mapping associating CAD View ID to name */ getCadViewMap(): any; /** * Activates a CAD View * @param id ID of the CAD View to activate. * @param duration camera transition time in milliseconds. * @param massageCamera If true, undesirable authored cameras may be modified into a camera with more reasonable values * @param view View to activate the CAD View in. Visibility will be applied to all views. Uses default view if not specified. * @returns None. */ activateCadView(t: any, e?: number, i?: boolean, n?: any): any; /** * Get PMI IDs for a CAD View * @param id ID of the CAD View * @returns IDs of visible PMIs for the view */ getCadViewPmis(t: any): any; /** * Gets whether or not cad configurations are enabled * @returns Boolean indicating whether or not cad configurations are enabled */ cadConfigurationsEnabled(): any; /** * Gets CAD configurations * @returns an object mapping CAD configuration ID to config name */ getCadConfigurations(): any; /** * Gets CAD default configuration * @returns ID of default CAD Configuration */ getDefaultCadConfiguration(): any; /** * Gets CAD default view * @returns ID of default CAD Configuration */ getDefaultCadView(): any; /** * Activate the default CAD view * @param duration Duration of the camera animation * @param massageCamera If true, undesirable authored cameras may be modified into a camera with more reasonable values * @param view View to set the CAD View in. Visibility will be applied to all views. Uses default view if not specified. * @returns None. */ activateDefaultCadView(t?: number, e?: boolean, i?: any): any; /** * Gets Active CAD configuration * @returns ID of activated CAD Configuration */ getActiveCadConfiguration(): any; /** * Get the configuration in which the view is defined * @returns ID of CAD Configuration of the view */ getCadViewConfiguration(t: any): any; /** * Activates a CAD configuration * @param id ID of the CAD Configuration to activate * @param view View to set the CAD Configuration in. Visibility will be applied to all views. Uses default view if not specified. * @returns None. */ activateCadConfiguration(t: any, e?: any): any; /** * Activates Default CAD configuration * @param fitNodes Fit view to visible nodes if possible (default true) * @param view View to set the CAD Configuration in. Visibility will be applied to all views. Uses default view if not specified. * @returns None. */ activateDefaultCadConfiguration(t?: boolean, e?: any): any; /** * Returns point attributes for a node of the given node and point. * @param nodeId Node to retrieve point properties from * @param pointIndex Index of point for which to retrieve point attributes * @returns Promise for the requested point attributes. Properties returned will be null if none associated with the point. */ getPointAttributes(t: any, e: any): any; /** * Returns edge count for a node of the given node. * @param nodeId Node to retrieve edge count from * @returns Promise providing the number of edges */ getEdgeCount(t: any): any; /** * Returns edge attributes for a node of the given node and edge. * @param nodeId Node to retrieve edge properties from * @param edgeIndex Index of edge for which to retrieve edge attributes * @returns Promise for the requested edge attributes. Properties returned will be null if none associated with the edge. */ getEdgeAttributes(t: any, e: any): any; /** * Returns edge properties for a node of the given node and edge. * @param nodeId Node to retrieve edge properties from * @param edgeid ID of edge for which to retrieve edge properties * @returns Promise for the requested edge properties. Properties returned will be null if none associated with the edge. */ getEdgeProperty(t: any, e: any): any; /** * Returns face count for a node of the given node and face. * @param nodeId Node to retrieve face count from * @returns Promise providing the number of faces */ getFaceCount(t: any): any; /** * Returns face attributes for a node of the given node and face. * @param nodeId Node to retrieve edge properties from * @param faceIndex Index of face for which to retrieve face attributes * @returns Promise for the requested face attributes. Properties returned will be null if none associated with the edge. */ getFaceAttributes(t: any, e: any): any; /** * Returns Face properties for a node of the given node and face. * @param nodeId Node to retrieve face properties from * @param faceid ID of face for which to retrieve face properties * @returns Promise for the requested face properties. Properties returned will be null if none associated with the face. */ getFaceProperty(t: any, e: any): any; /** * Set edge property for a node of the given node and edge. * @param id Node to set edge properties to * @param edgeid ID of edge * @param prop property (CircleElement, LineElement...) */ setEdgeProperty(t: any, e: any, i: any): void; /** * Set face property for a node of the given node and face. * @param id Node to set edge properties to * @param faceid ID of face * @param prop property (CylinderElement, PlaneElement...) */ setFaceProperty(t: any, e: any, i: any): void; /** * Fetch the mesh data for a particular node * @param nodeId the node's ID */ getNodeMeshData(t: any): Promise; /** * Fetch the mesh data for any capping geometry on a particular node * @param nodeIds the node IDs to get capping data from. */ getNodeCappingMeshData(t: any): Promise; /** * Fetch the mesh data for any capping geometry on a list of nodes and their children * @param nodeIds the node IDs to get capping data from. */ getNodesCappingMeshData(t: any): Promise; /** * Returns a copy of the Matrix for a node of the given ID * @param id Node to retrieve matrix from * @returns Copy of the Matrix of the node */ getNodeMatrix(t: any): any; /** * Sets Matrix for a node of the given ID * @param id Node to set matrix on * @param Matrix of the Node * @param setAsInitial tells if you want to change the node initial matrix or not */ setNodeMatrix(t: any, e: any, i?: boolean): any; /** * Used by Animation system to efficiently update the matrix of many nodes at once. * Currently not part of public API due to difference in signature with other bulk operations which use Map based parameter. * @hidden */ _setNodesMatrices(t: any, e: any, i?: boolean): any; /** * Reset node matrix to the one set as the initial one * @param id Node to set matrix on */ resetNodeMatrixToInitial(t: any): any; /** * Returns net matrix for a node of the given ID * @param id Node to retrieve net matrix from * @returns Net Matrix of the Node */ getNodeNetMatrix(t: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; /** * Returns the parent Id for the given node id. * @param id node id to get the parent of * @returns ID of the parent node for the supplied ID. If the ID is invalid or the root ID, null is returned. */ getNodeParent(t: any): any; /** * Returns the type of the node with the given ID. * @param id The ID of the node to get the type for. * @returns The type of the node. */ getNodeType(t: any): any; /** * Returns the properties for the given node ID. * @param id Node ID to get the parent of * @param computeFromChildren If true physical properties will be computed from child nodes. * @returns object properties for the supplied ID, or null if the ID was invalid */ getNodeProperties(t: any, e?: boolean): any; /** * Purpose: Adds a property to the node * @Param nodeId node id to set the property on * @Param property name * @Param property value * @returns true if all went right, false otherwise */ addPropertyToNode(t: any, e: any, i: any, n: any): any; /** * Purpose: Sets physical properties * @Param nodeId node id to set the property on, the node id has to be a body node * @Param gravityCenter gravity center in local coordinates * @Param surfaceArea surface area, in squared current unit * @Param volume volume, in cubed current unit * @returns true if all went right, false otherwise */ setPhysicalProperties(t: any, e: any, i: any, n: any): any; /** * Specifies nodes for the system to load. This method is useful when the viewer was created with the streamOnDemand option set to true. * @param nodeIds array of unique IDs for the system to load */ requestNodes(t: any): any; /** * Returns the name for a node in the assembly tree. * @param nodeId The node ID to get the name of. * @returns The name of the node with the given nodeId or null if no name is found. */ getNodeName(t: any): any; /** * Returns the Exchange ID of a node in the assembly tree. * @param nodeId The node ID to get the Exchange ID from. * @returns The Exchange ID of the node with the given nodeId or null if no Exchange ID is found. */ getNodeExchangeId(t: any): any; /** * Returns names and ids of all filters available in the scene * @returns a map associating Filter IDs to filter names */ getFilters(): any; /** * @returns The name of a filter for the given filter ID index or null if filter was not found */ getFilterName(t: any): any; /** * @param nodeId The ID of the node to query. * @returns Filters which retain or remove the given node. */ getFiltersWithNode(t: any): any; /** * @param filtersId array of filters indexes to take in account * @returns nodesId of nodes retained by the given filter indices and the type of filter (inclusive or not). Returns null if no filter is found. */ getNodesFromFiltersId(t: any): any; /** * Returns names and ids of all layers available in the scene * @returns a map associating Layer IDs to Layer names */ getLayers(): any; /** * Return names of layers. Different layers can have the same name. Some layers can be unnamed. * @returns Names of layers */ getUniqueLayerNames(): any; /** * @returns The name of a layer for the given filter ID or null if layer was not found */ getLayerName(t: any): any; /** * @returns Id of layers for the given filter name or null if no layers are found */ getLayerIdsFromName(t: any): any; /** * Returns the layer ID of a node in the assembly tree. * @param nodeId The node ID to get the Exchange ID from. * @returns The layer ID of the node with the given nodeId or null if no layer is found. */ getNodeLayerId(t: any): any; /** * Returns IDs of nodes in the given layer. * @param layerId The layer ID to get nodes from. * @param onlyTreeNodes if true return only nodes present in model Tree * @returns An array of nodes Id of nodes with the given layerId or null if no layers are found. */ getNodesFromLayer(t: any, e: any): any; /** * Returns IDs of nodes in given layers. * @param layersId Array of layers Id to get nodes from. * @param onlyTreeNodes if true return only nodes present in model Tree * @returns An array of nodes Id of nodes with one of the given layerId or null if no layers are found. */ getNodesFromLayers(t: any, e: any): any; /** * Returns IDs of nodes in the given layer. * @param layer name the name of layer to get nodes from. * @param onlyTreeNodes if true return only nodes present in model Tree * @returns An array of nodes Id of nodes with the given layerName or null if no layers are found. */ getNodesFromLayerName(t: any, e: any): any; /** * Returns the current visibility for a node. * @param nodeId ID of the node to get visibility for. * @returns true if the current node's visibility state is on or false if it is not. */ getNodeVisibility(t: any): any; /** * Branch visibility indicates the visibility state for all of a node's children. * @param nodeId ID of the node at the root of the branch. * @returns Shown/Hidden if all children have the same visibility state, Mixed otherwise. */ getBranchVisibility(t: any): any; /** * Returns a data object. During the authoring phase, a user can store general data within a model. (This is how * properties are stored, for example.) This function allows you to retrieve the data from the client application. * * @see {@link https://docs.techsoft3d.com/communicator/latest/api_ref/data_import/libsc/classSC_1_1Store_1_1Model.html#_CPPv4N2SC5Store5Model6InsertE8uint32_tPK7uint8_t8uint32_t Model::Insert} * * @param an Array of ModelKey-DataKey pairs ([ModelKey, DataKey, ModelKey, DataKey, ModelKey, DataKey...] * @returns promise that resolves when this operation has completed returning an array of 8bits int arrays for each ModelKey-DataKey pairs */ getDataFromIds(t: any): any; /** * @param meshData [[MeshData]] object containing data to insert into the scene. * @returns Promise that resolves with a [[MeshId]] when the mesh has been created. The [[MeshId]] can be used to create instances of the mesh using [[createMeshInstance]]. */ createMesh(t: any, e: any): Promise; /** * Retrieve the [[MeshId]] associated with the mesh data attached to the given nodes. */ getMeshIds(t: any): Promise; /** * Replace a mesh's data. This will affect all instances of that mesh. * @param key the [[MeshId]] identifying the mesh * @param data the new data */ replaceMesh(t: any, e: any): any; /** * Creates an instance of a mesh that has been created using [[createMesh]] or retrieved using [[getMeshIds]]. * @param data object that specifies the data for this mesh instance * @param parentNodeId the ID of the desired parent node * @param preventFromResetting if set to true, then the visibility and positioning won't be reset when resetxxx() functions gets called. * @param isOutOfHierarchy True if the node created shouldn't appear in the model structure. * @returns Promise that resolves with a node ID that can be used to perform operations on this instance. */ createMeshInstance(t: any, e: any, i: any, n: any): Promise; _createMeshInstance(t: any, e: any, i: any, n: any): Promise; /** * Creates a PMI Instance from a mesh that has been created using the createMesh method. * @param data object that specifies the data for the PMI graphic representation * @param pmiType see PmiType enum (Datum, Gdt, Dimension...) * @param pmiSubType see PmiSubType enum (DatumTarget, GdtFcf, DimensionDistance...) * @param refOnTopoItems see RefOnTopoItem. It defines the PMI links to a body element, like a face or an edge * @param parentNodeId the ID of the desired parent node * @returns Promise that resolves with a node ID that can be used to perform operations on this instance. You can use deleteMeshInstances() to delete the PMI */ createPmiInstance(t: any, e: any, i: any, n: any, r: any): Promise; /** * Creates an image that can be applied as a texture via [[setNodesTexture]]. * See [[deleteImages]]. * @param primaryImage The image data and associated options * @param thumbnailImage If specified, an uncompressed image that will be used as a * placeholder for the primary image until it is fully loaded. * Only useful when `primaryImage` is a compressed image. */ createImage(t: any, e: any): any; /** * Deletes images created with [[createImage]]. * @param imageIds The IDs of the images to be deleted */ deleteImages(t: any): any; /** * Apply an image to a node as a texture map. See [[createImage]] and [[unsetNodesTexture]]. * @param nodeIds The nodes on which to apply the texture * @param options Options specifying how the texture is applied */ setNodesTexture(t: any, e: any): any; /** * Remove one or more textures applied via [[setNodesTexture]]. * @param nodeIds The nodes from which to remove the texture or textures */ unsetNodesTexture(t: any): void; /** * Deletes meshes that have been created at run time. * * In order for this method to succeed, all mesh instances created for the given IDs * must have also been destroyed with [[deleteMeshInstances]]. * * @param meshIds The IDs of meshes that should be deleted * @returns Promise that resolves when this operation has completed. */ deleteMeshes(t: any): any; /** * Deletes mesh instances that have been created at run time * @param nodeIds array of IDs for mesh instances created at run time that should be destroyed * @returns Promise that resolves when this operation has completed. */ deleteMeshInstances(t: any): Promise; _obtainLoadSubtreeConfig(t: any): Ma; loadSubtreeFromXmlFile(t: any, e: any, i: any, ...n: any[]): any; loadSubtreeFromXmlBuffer(t: any, e: any, i: any, ...n: any[]): any; loadSubtreeFromScsXmlFile(t: any, e: any, i: any, ...n: any[]): any; loadSubtreeFromScsXmlBuffer(t: any, e: any, i: any, ...n: any[]): any; loadSubtreeFromModel(t: any, e: any, ...i: any[]): any; loadSubtreeFromScsFile(t: any, e: any, ...i: any[]): any; loadSubtreeFromScsBuffer(t: any, e: any, ...i: any[]): any; /** * Loads measurement data from a JSON object * @param json JSON object containing measurement data */ loadMeasurementFromJson(t: any): any; /** * Loads measurement data from a JSON string * @param str JSON string containing measurement data */ loadMeasurementFromString(t: any): any; /** * Loads measurement data from a ZIP file * @param filename Name of a file containing ZIP measurement data */ loadMeasurementFromFile(t: any): any; /** * Delete all the current scene and load the specified model instead. Also triggers a "modelSwitched" when finished. * @param newModelFilename Name of the model file to load after the existing scene gets deleted * @returns A `Promise` of the newly loaded model's root nodes IDs. */ switchToModel(t: any): any; /** * Creates a node * @param parentNodeId ID of the node to link the child node to. This ID should not have a type of Body or BodyInstance. If this parameter is `undefined`, the child node will be linked to the root. * @param name of the node to create * @param nodeID (optional) ID you want the node to have, if not specified the nodeID will be set automatically. Be aware that if the specified node ID is already used by another node, then it will be ignored a new one will be set automatically. * @param localMatrix (optional) Initial local matrix of the node (identity if none set) * @param visibility (optional) Initial visibility of the node (visible if nothing set) * @param measurmentUnit (optional) Specifies optional measurement units for this node. When set to null (the default), the node will inheret the unit setting of the parent node. If set, a scaling matrix will be computed * that scales appropriately based on the unit scaling and applied to the newly created node. If a non-null localMatrix has been specified, that matrix will be combined with the computed scaling matrix. * @returns child node ID */ createNode(t: any, e: any, i: any, n: any, r: any, o: any): any; /** * Delete a node and all its children * @param ID of the node */ deleteNode(t: any): Promise; /** * Creates an part node * @param nodeID (optional) ID you want the node to have, if not specified the nodeID will be set automatically. Be aware that if the specified node ID is already used by another node, then it will be ignored and new one will be set automatically. * @returns a node ID to access the created part node */ createPart(t: any): any; /** * Set a part on an assembly node * @param assemblyNodeID ID of the assembly node * @param partNodeID ID of the part node * @returns true if all went right, false otherwise */ setPart(t: any, e: any): any; /** * Creates a representation item on a part * @param partNodeId ID of the part node * @param repItemId (optional) Id you want the node to have, if not specified the nodeId will be set automatically. Be aware that if the specified node Id is already used by another node, then it will be ignored and a new one will be set automatically. * @returns node ID to access the created representation item, null is returned if something went wrong */ createAndAddRepresentationItem(t: any, e: any): any; /** * Returns the lowest available node ID */ getLowestAvailableNodeId(): any; /** * Allows changing the behavior in the viewer * @param instanceModifier InstanceModifier * @param nodeIds Array of node ids * @param value boolean */ setInstanceModifier(t: any, e: any, i: any): Promise; /** @hidden */ _setInstanceModifier(t: any, e: any, i: any, n: any): void; getAssociatedModelKey(t: any): Promise; hasDepthRange(t: any): any; /** * Remaps the depth values used for z-ordering of pixels to the given * range, which must be a subset of `[0,1]`. The depth value at the * near plane (normally `0`) is mapped to `min` and the value at * the far plane (normally `1`) is mapped to `max`. * * The smaller the range, the more z-fighting you will see among * objects set to that range. * * @param nodeIds the node IDs to operate on * @param min the depth value at the near plane * @param max the depth value at the far plane */ setDepthRange(t: any, e: any, i: any): Promise; _setDepthRange(t: any, e: any, i: any): void; /** * Unsets the depth range set by [[setDepthRange]]. * @param nodeIds the node IDs to operate on */ unsetDepthRange(t: any): void; /** @hidden */ _gatherInstanceIncsFromNodeIds(t: any, e?: any): any; _getInstanceIncsFromLeafNodes(t: any): any[]; _getInstanceIncFromSingleLeafNode(t: any): any; /** * Sets the desired mesh level * @param nodeIds IDs of nodes in the assembly on which mesh level will be set * @param meshLevel 0 standard, 1 low, 2 extra low * @returns Promise that resolves when the operation has completed. */ setMeshLevel(t: any, e: any): Promise; /** * Sets the metallic and roughness factors for the supplied nodes materials. * Materials that are not currently set to use the Metallic Roughness shading model will be upgraded to use this mode. * @param nodeIds List of nodes to set material properties for * @param metallicFactor The metalness of the material * @param roughnessFactor The roughness of the material */ setMetallicRoughness(t: any, e: any, i: any): void; /** * Gets the metallic and roughness factors for the supplied nodes materials. * Materials that are not currently set to use the Metallic Roughness shading model will have a null entry * @param nodeIds List of nodes to get material properties for */ getMetallicRoughness(t: any): any; /** * Unsets the metallic and roughness values set with [[setMetallicRoughness]] * These materials will no longer use the Metallic Roughness shading model. * @param nodeIds List of nodes to unset material properties for */ unsetMetallicRoughness(t: any): void; /** * If enabled then models loaded into an existing scene with a different unit value will be scaled to the unit value of the current scene. * @param enabled value indicating if automatic unit scaling will be active */ setEnableAutomaticUnitScaling(t: any): any; /** * By default, objects that are initially hidden stays hidden unless specifically set to be shown. This function allows this behavior to be disabled. * @param enabled value indicating if initially hidden objects stay hidden */ setBehaviorInitiallyHidden(t: any): any; /** * Tells if the model is a CAD drawing or not * @returns true if the model is a CAD drawing */ isDrawing(): any; /** * @returns true if the model contains measurement data. */ isMeasurable(): any; /** * @param bodyId ID of the body node containing the line * @param lineIndex Index of the line ot be checked * @returns true if the line has associated measurement data */ isLineMeasurable(t: any, e: any): any; isFaceMeasurable(t: any, e: any): any; /** * @returns the original file name of the model which contain the given node or null if the node is not found. */ getModelFileNameFromNode(t: any): any; /** * @returns the original file type of the model which contain the given node or null if the node is not found. */ getModelFileTypeFromNode(t: any): any; /** * @returns the generic type of the given node or null if the node is not found. */ getNodeGenericType(t: any): any; /** * @returns the generic id of the given node or null if the node is not found. */ getNodeGenericId(t: any): any; /** * This function recursively discovers BIM nodes in the supplied subtree and registers them. * @param startNodeId The root of the subtree to walk for registration. * @param attributeToMask The callback used to obtain a node's [[BimMask]] from its attributes. * @returns Promise that resolves when the operation has completed. */ registerBimNodes(t: any, e: any, i?: null): Promise; /** * Gets all generic types and NodeIds with that type. * @returns Map containing generic types and NodeIds */ getGenericTypeIdMap(): any; /** * This function returns all NodeIds with an IFC type. * @param genericType * @returns All NodeIds with an IFC type */ getNodesByGenericType(t: any): any; /** * This function gets all generic types contained in the model. * @returns All generic types. */ getGenericTypes(): any; /** * Checks if a [[NodeId]] is a generic type. * @param nodeId * @param genericType */ hasEffectiveGenericType(t: any, e: any): any; /** * This function recursively discovers IFC nodes in the supplied subtree and registers them. * @param startNodeId The root of the subtree to walk for registration. * @returns Promise that resolves when the operation has completed. */ registerIfcNodes(t: any, e?: null): Promise; /** * Tells if the view is an annotation view or not * @param cadViewNodeId Node ID of the CAD view * @returns true if the view is an annotation view */ isAnnotationView(t: any): any; /** * Tells if the view is a combine state view or not * @param cadViewNodeId Node ID of the CAD view * @returns true if the view is a combine state view */ isCombineStateView(t: any): any; /** * Sets a vector and angle used to determine an object's visibility based on camera orientation. * @param space The space in which the culling vector is defined. * @param vector A vector that will be compared with the view vector. * @param toleranceDegrees The maximum angle between the culling vector and the view vector within which the object will be visible. */ setNodesCullingVector(t: any, e: any, i: any, n: any): Promise; _setNodesCullingVector(t: any, e: any, i: any, n: any): any; /** * Unsets the vector and angle used to determine an object's visibility based on camera orientation. * @param nodeIds The nodes to unset culling vectors on. */ unsetNodesCullingVectors(t: any): Promise; _unsetNodesCullingVectors(t: any): void; /** * Retrieves the vector and angle used to determine an object's visibility based on camera orientation. * If unset, `null` will appear at the corresponding array index. * @param nodeIds The nodes to query culling vectors from. * @returns A promise of culling vectors. */ getNodesCullingVectors(t: any): any; /** * Retrieves the node ID offset for a given node. * @param nodeId The node to obtain the node ID offset from. * @returns The node ID offset for the supplied node. */ getNodeIdOffset(t: any): any; /** * Queries if a node is fully loaded or not. * @param nodeId The node to query. * @returns True if the node is fully loaded; false otherwise. */ isNodeLoaded(t: any): any; /** * Triangulates the supplied polygon. * @param polygonPoints An array of point data for the polygon. Points are stored [XYZXYZXYZ...] format. * @param normal The normal of the polygon to triangulate. * @returns An array containing the point data for the generated triangles. Points are stored [XYZXYZXYZ...] format. * This returned list is always divisible by 9 (3 points per triangle; 3 floats per point). */ triangulatePolygon(t: any, e: any): any; /** * Applies the given line pattern to the specified nodes. See also [[unsetNodesLinePattern]]. * @param nodeIds The IDs of the nodes. * @param pattern The line pattern. See [[LinePattern]] for details. * @param patternLength The length of a single repetition of the line pattern. * @param patternLengthUnit The unit in which the length of the pattern is measured. See [[LinePatternLengthUnit]] for details. */ setNodesLinePattern(t: any, e: any, i: any, n: any): void; /** * Removes the line pattern applied by [[setNodesLinePattern]]. * @param nodeIds The IDs of the nodes. */ unsetNodesLinePattern(t: any): void; /** @hidden */ _hwfAwaitAssemblyTreeReady(): Promise; /** * Returns all the `UserDataIndex` items associated with the input node. * @param nodeId The ID of the node to query. * @returns A list of `UserDataIndex`, possibly empty. * @throws `InvalidNodeIdError` */ getNodeUserDataIndices(t: any): any; /** * Returns the user data for a given node and index. * @param nodeId The ID of the node to query. * @param index The index of the data. * @returns The user data. * @throws `InvalidNodeIdError` `InvalidIndexError` */ getNodeUserData(t: any, e: any): any; /** * Returns a list of node IDs given a list of generic IDs. Note that the * returned list of node IDs may be longer than the provided list of generic * IDs since one ID can be used by more than one node. * @param genericIds Array of generic IDs to find nodes fore * @returns Array of node ids corresponding to the provided generic IDs */ getNodeIdsByGenericIds(t: any): any[]; /** @hidden */ _getModelStructure(): any; /** * Returns true if the node is within an external model. * @param nodeId */ isWithinExternalModel(t: any): any; /** @hidden */ _firstAssemblyDataHeader(): any; /** * Retrieves the bim id of the corresponding node id. * @param node the id of the node for which you want its bim id. * @returns the bim id corresponding to the node or null if none. */ getBimIdFromNode(t: any): any; /** * Retrieves the bim ids of the corresponding generic id. * @param ifcGuid the generic id for which you want its bim id. * @returns the bim id corresponding to the ifcGuid or null if none. */ getBimIdsFromGenericId(t: any): any[]; /** * Retrieves the node id of the corresponding bim id. * @param node any known node id of the working model. * @param bimID bim id for which you want its node id. * @returns the node id corresponding to the BimId or null if none. */ getNodeIdFromBimId(t: any, e: any): any; /** * Retrieves the generic id of the corresponding bim id. * @param node any known node id of the working model. * @param bimId bim id for which you want its generic id. * @returns the generic id corresponding to the BimId or null if none. */ getGenericIdFromBimId(t: any, e: any): any; /** * Retrieves all type of relationships that a bim id has. * @param node any known node id of the working model. * @param bimId bim id for which you want its types of relationships. * @returns array of type of relationship corresponding to the BimId. */ getRelationshipTypesFromBimId(t: any, e: any): any[]; /** * Retrieve all related relationships that a bim id have. * @param node any known node id of the working model. * @param bimId bim id for which you want its related relationships. * @returns array of bim id which are the related relationship of the BimId. */ getBimIdRelatedElements(t: any, e: any, i: any): any; /** * Retrieve all relating relationships that a bim id have. * @param node any known node id of the working model. * @param bimId bim id for which you want its relating relationships. * @returns array of bim id which are the relating relationship of the BimId. */ getBimIdRelatingElements(t: any, e: any, i: any): any; /** * Retrieve all relationships that a bim id have, sorted in 2 arrays (relateds and relatings) * @param node any known node id of the working model. * @param bimId bim id for which you want its relationships. * @returns double array of bim id of relationship of the BimId sorted by its relateds and its relatings. */ getBimIdConnectedElements(t: any, e: any, i: any): { relateds: any; relatings: any; }; /** * Retrieve the name of the bim element * @param bimId bim id for which you want the bim element name. * @param node any known node id of the working model. * @returns the name and the info regarding the connection to a node of the bim element. */ getBimInfoFromBimId(t: any, e: any): any; } declare var mr: any; declare let Qf: { new (t: any, e: any): { _position: $o; _viewportSize: $o; _anchor: any; _dimension: number; _fieldSize: number; _instanceKeys: any[]; _enabled: boolean; _textImageId: any; _selectionFaceColor: vt; _outlineColor: vt; _lastSelectedNodes: any[]; _nodeIds: any[]; _adjacentFaces: any[]; _preserveModelUp: boolean; _cameraRotation: number; _lastOrientation: any; _lastCamera: any; _lastFaceIndex: any; _textWidths: any[]; _sceneReady: Promise; _assemblyTreeReady: Promise; _navcubeReadyToInit: Promise[]; _texturesReady: boolean; _geometryCreated: boolean; _viewer: any; _view: any; _fontSize: number; _fontInfo: string; _textureSize: number; /** * Sets the anchor position for the NavCube. * @param anchor the anchor position. */ setAnchor(t: any): Promise; /** * Gets the anchor position for the NavCube. Default position is in the UpperRightCorner, see [[OverlayAnchor]] for more details. */ getAnchor(): any; /** * Enables the NavCube. */ enable(): Promise; /** * Disables the NavCube. */ disable(): Promise; /** * Determines if model up or camera up will the preserved when navigating with the NavCube. * If model up is preserved, navigation with the NavCube will keep the model upright all the time. * If camera up is preserved, navigation with the NavCube will attempt to preserve the current up direction of * the camera as much as possible. * Defaults to `true`. * @param preserve If true, model up is preserved. Otherwise, camera up is preserved. */ setPreserveModelUp(t: any): void; /** * Gets the NavCube preserveModelUp state. * @returns true if model up is preserved, false if camera up is preserved. */ getPreserveModelUp(): boolean; /** * Sets the visibility for the NavCube based on the enabled and textures state. */ _updateVisibility(): void; /** * Hides the overlay window */ _hideOverlay(): void; /** * Shows the overlay window */ _showOverlay(): void; /** * Gets whether the NavCube is currently enabled. */ getEnabled(): boolean; /** * Gets the associated overlay id. */ getOverlayId(): any; _setTextures(): Promise; _updateViewport(): void; _createViewport(): void; _onViewportSet(): void; _createGeometry(): Promise; _createTexture(t: any, e: any): any; /** @hidden */ _geometryHasBeenCreated(): boolean; /** * Determines whether or not a point is inside the NavCube overlay. * @param mousePos * @returns Boolean indicating whether the provided point is inside the NavCube overlay */ insideOverlay(t: any): boolean; /** @hidden */ _getOverlayOffset(): any; /** @hidden */ _getViewportSize(): $o; /** @hidden */ _getViewportPixelSize(): any; /** @hidden */ _onNoSelection(): void; /** * Called when the NavCube is clicked. Realigns the view to the side/edge/corner * selected by `selection`, or rotates the view 90 degrees if the selection matches * the current view orientation, or does nothing if no side is selected. * @param selection */ onClickSelection(t: any): Promise; /** * Called when the NavCube is "moused over". Displays face/edge/corner that will be selected. * @param selection */ onMoveSelection(t: any): void; /** * Returns the corresponding view orientation for each node index. * If the node indexes change in the future, this will need to be updated. */ _getViewOrientationFromFaceIndex(t: any): any; _setViewOrientation(t: any): Promise; _getScEngine(): any; _createInstance(t: any, e: any): Promise; _createCube(t: any, e: any): Promise; _onCameraUpdate(): void; _updateOrientationMatrices(): void; _createSelectionFace(t: any, e: any, i: any, n: any, r: any, o: any, l: any): Promise; _createQuad(t: any, e: any, i: any, n: any, r: any, o?: boolean): void; _makeRotationMatrixX(t: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _makeRotationMatrixY(t: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _makeRotationMatrixZ(t: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _getFaceIndexFromNodeId(t: any): number; _getNodeIdFromFaceIndex(t: any): any; _isSameEdge(t: any, e: any, i: any, n: any): boolean; _initializeTextures(): Promise; }; _faceTexts: string[]; }; declare var ho: any; declare var Le: any; declare const iv: "Ω"; declare var ve: any; declare class bx { /** @hidden */ constructor(t: any); _operatorStack: any[]; _operators: Map; _customOperatorIdCount: number; _customOperatorIdIndex: number; _mergeableEvents: any[]; _eventSequencePromise: Promise; _events: any[]; _viewer: any; /** @hidden */ _shutdown(): void; /** @hidden */ _registerOperator(t: any, e: any): void; /** * Registers a custom operator * @param operator * @returns operatorId */ registerCustomOperator(t: any): number; /** * Removes a custom operator from the registered operator list. * @param operatorId */ unregisterCustomOperator(t: any): void; /** * Replaces the operator that the specified id refers to. Returns a boolean indicating success or failure. * @param previousOperatorId operator id for the operator to be replaced. * @param newOperatorId operator id for the new operator. */ replaceOperator(t: any, e: any): boolean; /** * Returns the index of an operator on the stack * @param operatorId * @returns operator index or -1 if not found */ indexOf(t: any): number; /** * Adds an operator on the stack if it's not already on the stack * @param operatorId id of the operator to add to the stack * @returns boolean indicating success or failure */ push(t: any): boolean; /** * Sets a position on the stack to an operator if it's not already on the stack * If there is already an operator in that position, it is replaced. * @param operatorId id of the operator to add to the stack * @param position position on the stack to assign * @returns boolean indicating success or failure */ set(t: any, e: any): boolean; /** * Removes an operator from the top of the stack * @returns the operator id */ pop(): any; /** * Removes an operator from the stack * @param operatorId id of the operator to remove from the stack */ remove(t: any): void; /** * @returns the operator id at the top of the stack */ peek(): any; /** * @returns the operator id at the given position of the stack * Will return OperatorId.Invalid if position is out of bounds. */ get(t: any): any; /** * Removes all operators from the stack */ clear(): void; /** * @returns the operator stack size */ size(): number; getOperator(t: any): any; _injectEvent(t: any, e: any): Promise; injectEvent(t: any, e: any): Promise; _addOrMergeEventToQueue(t: any, e: any, i: any): void; _injectNextEvent(): Promise; _stopInteraction(): Promise; /** @hidden */ _injectViewOrientationChangeEvent(): void; _isValid(t: any): boolean; _contains(t: any): boolean; _activateOperator(t: any): any; _deactivateOperator(t: any): any; } declare const s1: Readonly<{ __proto__: null; AreaSelectionOperator: typeof Ty; AxisTriadOperator: typeof Ny; ButtonModifier: typeof Jf; Camera: Readonly<{ __proto__: null; CameraKeyboardWalkOperator: typeof od; CameraNavigationOperator: typeof cy; CameraOrbitBaseOperator: typeof Tg; CameraOrbitOperator: typeof Ng; CameraPanOperator: typeof hy; CameraTurntableOperator: typeof uy; CameraWalkBaseOperator: typeof Ag; CameraWalkModeOperator: typeof dy; CameraWalkOperator: typeof fy; CameraWindowZoomOperator: typeof gy; CameraZoomOperator: typeof py; DoorCache: typeof oy; MAX_ANGLE: number; MAX_TILT: number; MIN_ANGLE: number; MIN_TILT: number; OrbitMarkup: typeof ly; TimedPoints: typeof ay; applyGravity: typeof Xf; buildCollisionRayConfig: typeof Eg; clamp: typeof Kf; getDownAxis: typeof sy; normalizeDirections: typeof ny; removeOpposing: typeof nl; testWallCollision: typeof ry; }>; CuttingPlaneOperator: typeof Oy; CuttingPlaneOperatorContext: typeof Dy; FloorplanOperator: typeof Ry; HandleOperator: typeof Ly; Markup: Readonly<{ __proto__: null; CursorMarkup: typeof Og; HandleData: typeof Ic; HandleMarkup: { new (t: any): { _meshIds: Py; _scaleModifier: number; _id: number; _handleData: Map; _translationFromInitialHandlePosition: _; _groupIdRotationMatrix: Map; _viewer: any; _callbacks: { camera: () => void; _assemblyTreeReady: () => Promise; modelSwitchStart: () => void; }; remove(t: any): void; _getAxisMeshData(): Cs; _getPlaneMeshData(): Cs; _getViewPlaneMeshData(): Cs; _getRotateMeshData(t?: number, e?: number, i?: number): Cs; setAxisMeshData(t: any): Promise; setPlaneMeshData(t: any): Promise; setViewPlaneMeshData(t: any): Promise; setRotateMeshData(t: any): Promise; /** * Gets the associated overlay id */ getOverlayId(): any; _hideOverlay(): void; hideOverlay(): Promise; _showOverlay(): void; showOverlay(): Promise; _updateViewport(): void; updateViewport(): Promise; addHandles(t: any, e: any, i: any): Promise; _updateCamera(): void; getVector(t: any): any; getHandleType(t: any): any; getHandleGroupId(t: any): any; getPosition(t: any): any; getHandleNodeIds(t?: null): any[]; removeHandles(t?: null): Promise; isEmpty(): boolean; createDefaultHandles(t: any, e: any): Promise; _createMeshId(t: any): Promise; addAxisTranslationHandle(t: any, e: any, i: any, n: any, r: any): Promise; addViewPlaneHandle(t: any, e: any, i: any): Promise; addPlaneTranslationHandle(t: any, e: any, i: any, n: any, r: any, o: any): Promise; addRotateHandle(t: any, e: any, i: any, n: any, r: any): Promise; _getRotationMatrixFromVector(t: any, e: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _createMeshInstance(t: any, e: any, i: any, n: any, r: any, o: any): Promise; _createTransformationMatrix(t: any, e: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _getHandlePosition(t: any): null; getGroupIdRotationMatrix(t: any): any; updatePosition(t: any, e: any, i: any, n: any, r: any): Promise; resetTranslation(): void; getTranslation(): _; _behindView: boolean; /** * Called when the markup item should be redrawn on a specific view. This most typically happens when the scene is rendered. * @param renderer renderer engine to draw. * @param view the view to draw on. */ draw(t: any, e: any): void; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @returns boolean value indicating whether this item was picked */ hit(t: any, e: any): boolean; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @param pickTolerance amount of tolerance allowed for a hit in pixels. * @returns boolean value indicating whether this item was picked */ hitWithTolerance(t: any, e: any, i: any): boolean; /** * Called when this markup item is selected by the system from a given view. * @param view the view where the selection occured */ onSelect(t: any): void; /** * Called when this markup item is deselected by the system */ onDeselect(): void; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): {}; /** * Gets the fully qualified class name for this markup item. E.g. "Communicator.Markup.Redline.RedlineCircle" * @returns fully qualified class name */ getClassName(): string; }; className: string; defaultGroupId: number; _defaultScale: number; _cylinderRadius: number; _coneBaseRadius: number; _cylinderHeight: number; _capHeight: number; _taperHeight: number; _segmentCount: number; _planeOffset: number; _planeLength: number; _xColor: vt; _yColor: vt; _zColor: vt; _viewPlaneColor: vt; }; HandleMeshIds: typeof Py; Measure: Readonly<{ __proto__: null; MeasureBodyBodyDistanceMarkup: { new (t: any): { _firstNode: any; _firstPointShape: Gr; _secondPointShape: Gr; _arrowsInvert: boolean; _measurePoint1: any; _measurePoint2: any; _leaderPoint1: _ | null; _leaderPoint2: _ | null; _textPoint: any; _name: string; _lineShapes: Qn[]; _viewer: any; _textShape: Fl; initCircle(t: any): void; setUnitMultiplier(t: any): void; _unitMultiplier: number; setFirstNode(t: any): void; _stage: number; getFirstNode(): any; setSecondNode(t: any): Promise; _getStage(): number; finalize(): void; adjust(t: any): void; _updateArrowsInverted(): void; update(): void; _behindView: boolean; draw(): void; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { name: string; measurePoint1: any; measurePoint2: any; leaderPoint1: _ | null; leaderPoint2: _ | null; textPoint: any; text: any; measurementValue: number; unitMultiplier: number; className: string; }; _toJson(): { name: string; measurePoint1: any; measurePoint2: any; leaderPoint1: _ | null; leaderPoint2: _ | null; textPoint: any; text: any; measurementValue: number; unitMultiplier: number; className: string; }; getClassName(): string; _finalized: boolean; _uniqueId: string; _positions: any[]; _measurementValue: number; _visibility: boolean; /** * Gets the name of this measurement. * @returns the measurement name */ getName(): string; /** * Sets the name of this measurement * @param name the name to set */ setName(t: any): void; /** @hidden */ _nextStage(): void; /** @hidden */ _setId(t: any): void; /** @hidden */ _getId(): string; /** @hidden */ _isFinalized(): boolean; setVisibility(t: any): void; getVisibility(): boolean; /** * Returns the unit agnostic value for this measurement. * In the case where this value represents distance, use [[getUnitMultiplier]] to determine the measurement units. * In other cases, this value will be the angle measurement in degrees. * @returns the measurement value */ getMeasurementValue(): number; /** * Returns the unit multiplier incorporated into the measurement value. * This number is a multiplier of millimeters (for example inches will be `25.4`). * The default value is `1.0`. */ getUnitMultiplier(): number; /** * Sets the measurement text that is rendered with this measurement. * @param measurementText the text to render with this measurement */ setMeasurementText(t: any): void; /** * Gets the text for this measurement. By default this will contain the measurement value and units for the model in the cases where the measurement is a distance. * In other cases it will contain the angle in degrees. */ getMeasurementText(): any; /** * Returns whether the measurement markup is valid. Override in subclasses when needed. */ isMarkupValid(): boolean; /** @hidden */ _setMeasurementValue(t: any): void; /** * Called when the MarkupItem is removed from a view from the system. * Any cleanup that needs to be done should be performed in this method. * @param view the view to remove from, null if removed from everywhere. */ remove(t: any): void; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @returns boolean value indicating whether this item was picked */ hit(t: any, e: any): boolean; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @param pickTolerance amount of tolerance allowed for a hit in pixels. * @returns boolean value indicating whether this item was picked */ hitWithTolerance(t: any, e: any, i: any): boolean; /** * Called when this markup item is selected by the system from a given view. * @param view the view where the selection occured */ onSelect(t: any): void; /** * Called when this markup item is deselected by the system */ onDeselect(): void; }; /** * Creates a new [[MeasureBodyBodyDistanceMarkup]] from an object given by [[toJson]]. * @param objData An object given by [[toJson]]. * @returns The prepared object. */ fromJson(t: any, e: any): { _firstNode: any; _firstPointShape: Gr; _secondPointShape: Gr; _arrowsInvert: boolean; _measurePoint1: any; _measurePoint2: any; _leaderPoint1: _ | null; _leaderPoint2: _ | null; _textPoint: any; _name: string; _lineShapes: Qn[]; _viewer: any; _textShape: Fl; initCircle(t: any): void; setUnitMultiplier(t: any): void; _unitMultiplier: number; setFirstNode(t: any): void; _stage: number; getFirstNode(): any; setSecondNode(t: any): Promise; _getStage(): number; finalize(): void; adjust(t: any): void; _updateArrowsInverted(): void; update(): void; _behindView: boolean; draw(): void; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { name: string; measurePoint1: any; measurePoint2: any; leaderPoint1: _ | null; leaderPoint2: _ | null; textPoint: any; text: any; measurementValue: number; unitMultiplier: number; className: string; }; _toJson(): { name: string; measurePoint1: any; measurePoint2: any; leaderPoint1: _ | null; leaderPoint2: _ | null; textPoint: any; text: any; measurementValue: number; unitMultiplier: number; className: string; }; getClassName(): string; _finalized: boolean; _uniqueId: string; _positions: any[]; _measurementValue: number; _visibility: boolean; /** * Gets the name of this measurement. * @returns the measurement name */ getName(): string; /** * Sets the name of this measurement * @param name the name to set */ setName(t: any): void; /** @hidden */ _nextStage(): void; /** @hidden */ _setId(t: any): void; /** @hidden */ _getId(): string; /** @hidden */ _isFinalized(): boolean; setVisibility(t: any): void; getVisibility(): boolean; /** * Returns the unit agnostic value for this measurement. * In the case where this value represents distance, use [[getUnitMultiplier]] to determine the measurement units. * In other cases, this value will be the angle measurement in degrees. * @returns the measurement value */ getMeasurementValue(): number; /** * Returns the unit multiplier incorporated into the measurement value. * This number is a multiplier of millimeters (for example inches will be `25.4`). * The default value is `1.0`. */ getUnitMultiplier(): number; /** * Sets the measurement text that is rendered with this measurement. * @param measurementText the text to render with this measurement */ setMeasurementText(t: any): void; /** * Gets the text for this measurement. By default this will contain the measurement value and units for the model in the cases where the measurement is a distance. * In other cases it will contain the angle in degrees. */ getMeasurementText(): any; /** * Returns whether the measurement markup is valid. Override in subclasses when needed. */ isMarkupValid(): boolean; /** @hidden */ _setMeasurementValue(t: any): void; /** * Called when the MarkupItem is removed from a view from the system. * Any cleanup that needs to be done should be performed in this method. * @param view the view to remove from, null if removed from everywhere. */ remove(t: any): void; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @returns boolean value indicating whether this item was picked */ hit(t: any, e: any): boolean; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @param pickTolerance amount of tolerance allowed for a hit in pixels. * @returns boolean value indicating whether this item was picked */ hitWithTolerance(t: any, e: any, i: any): boolean; /** * Called when this markup item is selected by the system from a given view. * @param view the view where the selection occured */ onSelect(t: any): void; /** * Called when this markup item is deselected by the system */ onDeselect(): void; }; className: string; /** @hidden */ _serializePointArray(t: any): any[]; /** @hidden */ _constructPointArray(t: any): _[]; }; MeasureCircleEdgeLengthMarkup: { new (t: any, e: any, i: any, n: any): { _circlePoints: any[]; _radius: number; _surfaceCenter: _; _circlePlane: { normal: _; d: number; setFromPointAndNormal(t: any, e: any): any; /** * Update the plane to pass through the three points */ setFromPoints(t: any, e: any, i: any): void; setFromCoefficients(t: any, e: any, i: any, n: any): void; getCoefficients(): any[]; distanceToPoint(t: any): number; rayIntersection(t: any): _ | null; intersectsRay(t: any, e: any): boolean; /** * Returns true if the point is on the side of the plane that the plane's normal is directed. Returns false otherwise. * @param p The point to test. */ determineSide(t: any): boolean; /** * Creates a copy of this plane * @returns a copy of this plane object */ copy(): any; /** * Sets this plane equal to another plane * @param plane the plane to assign */ assign(t: any): void; /** * Returns true if the normal and d value are the same. * @param plane */ equals(t: any): boolean; }; _arrowsInvert: boolean; _name: string; _lineProperties: any; _matrix: any; _unitMultiplier: any; createCircleData(): void; setLineGeometry(t: any): void; adjust(t: any): void; _updateArrowsInverted(): void; update(): void; draw(): void; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { matrix: any; lineOrigin: any; lineRadius: any; lineNormal: any; linePositions: any[]; positions: any[]; text: any; measurementValue: number; unitMultiplier: any; className: string; }; _toJson(): { matrix: any; lineOrigin: any; lineRadius: any; lineNormal: any; linePositions: any[]; positions: any[]; text: any; measurementValue: number; unitMultiplier: any; className: string; }; getClassName(): string; _lineEdgeShape: Ba; _linePositions: any[]; _positions: any[]; _lineShapes: any[]; _stage: number; setMeasurementEdgeColor(t: any): void; reset(): void; getLineEdgeShape(): Ba; _finalized: boolean; _uniqueId: string; _measurementValue: number; _textShape: Fl; _visibility: boolean; _viewer: any; /** * Gets the name of this measurement. * @returns the measurement name */ getName(): string; /** * Sets the name of this measurement * @param name the name to set */ setName(t: any): void; /** @hidden */ _getStage(): number; /** @hidden */ _nextStage(): void; /** @hidden */ _setId(t: any): void; /** @hidden */ _getId(): string; /** @hidden */ _isFinalized(): boolean; setVisibility(t: any): void; getVisibility(): boolean; /** * Returns the unit agnostic value for this measurement. * In the case where this value represents distance, use [[getUnitMultiplier]] to determine the measurement units. * In other cases, this value will be the angle measurement in degrees. * @returns the measurement value */ getMeasurementValue(): number; /** * Returns the unit multiplier incorporated into the measurement value. * This number is a multiplier of millimeters (for example inches will be `25.4`). * The default value is `1.0`. */ getUnitMultiplier(): number; /** * Sets the measurement text that is rendered with this measurement. * @param measurementText the text to render with this measurement */ setMeasurementText(t: any): void; /** * Gets the text for this measurement. By default this will contain the measurement value and units for the model in the cases where the measurement is a distance. * In other cases it will contain the angle in degrees. */ getMeasurementText(): any; /** * Returns whether the measurement markup is valid. Override in subclasses when needed. */ isMarkupValid(): boolean; /** @hidden */ _setMeasurementValue(t: any): void; _behindView: boolean; /** * Called when the MarkupItem is removed from a view from the system. * Any cleanup that needs to be done should be performed in this method. * @param view the view to remove from, null if removed from everywhere. */ remove(t: any): void; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @returns boolean value indicating whether this item was picked */ hit(t: any, e: any): boolean; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @param pickTolerance amount of tolerance allowed for a hit in pixels. * @returns boolean value indicating whether this item was picked */ hitWithTolerance(t: any, e: any, i: any): boolean; /** * Called when this markup item is selected by the system from a given view. * @param view the view where the selection occured */ onSelect(t: any): void; /** * Called when this markup item is deselected by the system */ onDeselect(): void; }; /** * Creates a new [[MeasureCircleEdgeLengthMarkup]] from an object given by [[toJson]]. * @param objData An object given by [[toJson]]. * @returns The prepared object. */ fromJson(t: any, e: any): { _circlePoints: any[]; _radius: number; _surfaceCenter: _; _circlePlane: { normal: _; d: number; setFromPointAndNormal(t: any, e: any): any; /** * Update the plane to pass through the three points */ setFromPoints(t: any, e: any, i: any): void; setFromCoefficients(t: any, e: any, i: any, n: any): void; getCoefficients(): any[]; distanceToPoint(t: any): number; rayIntersection(t: any): _ | null; intersectsRay(t: any, e: any): boolean; /** * Returns true if the point is on the side of the plane that the plane's normal is directed. Returns false otherwise. * @param p The point to test. */ determineSide(t: any): boolean; /** * Creates a copy of this plane * @returns a copy of this plane object */ copy(): any; /** * Sets this plane equal to another plane * @param plane the plane to assign */ assign(t: any): void; /** * Returns true if the normal and d value are the same. * @param plane */ equals(t: any): boolean; }; _arrowsInvert: boolean; _name: string; _lineProperties: any; _matrix: any; _unitMultiplier: any; createCircleData(): void; setLineGeometry(t: any): void; adjust(t: any): void; _updateArrowsInverted(): void; update(): void; draw(): void; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { matrix: any; lineOrigin: any; lineRadius: any; lineNormal: any; linePositions: any[]; positions: any[]; text: any; measurementValue: number; unitMultiplier: any; className: string; }; _toJson(): { matrix: any; lineOrigin: any; lineRadius: any; lineNormal: any; linePositions: any[]; positions: any[]; text: any; measurementValue: number; unitMultiplier: any; className: string; }; getClassName(): string; _lineEdgeShape: Ba; _linePositions: any[]; _positions: any[]; _lineShapes: any[]; _stage: number; setMeasurementEdgeColor(t: any): void; reset(): void; getLineEdgeShape(): Ba; _finalized: boolean; _uniqueId: string; _measurementValue: number; _textShape: Fl; _visibility: boolean; _viewer: any; /** * Gets the name of this measurement. * @returns the measurement name */ getName(): string; /** * Sets the name of this measurement * @param name the name to set */ setName(t: any): void; /** @hidden */ _getStage(): number; /** @hidden */ _nextStage(): void; /** @hidden */ _setId(t: any): void; /** @hidden */ _getId(): string; /** @hidden */ _isFinalized(): boolean; setVisibility(t: any): void; getVisibility(): boolean; /** * Returns the unit agnostic value for this measurement. * In the case where this value represents distance, use [[getUnitMultiplier]] to determine the measurement units. * In other cases, this value will be the angle measurement in degrees. * @returns the measurement value */ getMeasurementValue(): number; /** * Returns the unit multiplier incorporated into the measurement value. * This number is a multiplier of millimeters (for example inches will be `25.4`). * The default value is `1.0`. */ getUnitMultiplier(): number; /** * Sets the measurement text that is rendered with this measurement. * @param measurementText the text to render with this measurement */ setMeasurementText(t: any): void; /** * Gets the text for this measurement. By default this will contain the measurement value and units for the model in the cases where the measurement is a distance. * In other cases it will contain the angle in degrees. */ getMeasurementText(): any; /** * Returns whether the measurement markup is valid. Override in subclasses when needed. */ isMarkupValid(): boolean; /** @hidden */ _setMeasurementValue(t: any): void; _behindView: boolean; /** * Called when the MarkupItem is removed from a view from the system. * Any cleanup that needs to be done should be performed in this method. * @param view the view to remove from, null if removed from everywhere. */ remove(t: any): void; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @returns boolean value indicating whether this item was picked */ hit(t: any, e: any): boolean; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @param pickTolerance amount of tolerance allowed for a hit in pixels. * @returns boolean value indicating whether this item was picked */ hitWithTolerance(t: any, e: any, i: any): boolean; /** * Called when this markup item is selected by the system from a given view. * @param view the view where the selection occured */ onSelect(t: any): void; /** * Called when this markup item is deselected by the system */ onDeselect(): void; }; className: string; /** @hidden */ _serializePointArray(t: any): any[]; /** @hidden */ _constructPointArray(t: any): _[]; }; MeasureFaceFaceAngleMarkup: { new (t: any): { _faceSelection: any[]; _arcArray: any[]; _lineGeometryShape: Ba; planeIntersectionLine: any[]; _pointOnLine: _; _clickpointOriginal2: _; _clickpointOriginal1: _; _plane1: { normal: _; d: number; setFromPointAndNormal(t: any, e: any): any; /** * Update the plane to pass through the three points */ setFromPoints(t: any, e: any, i: any): void; setFromCoefficients(t: any, e: any, i: any, n: any): void; getCoefficients(): any[]; distanceToPoint(t: any): number; rayIntersection(t: any): _ | null; intersectsRay(t: any, e: any): boolean; /** * Returns true if the point is on the side of the plane that the plane's normal is directed. Returns false otherwise. * @param p The point to test. */ determineSide(t: any): boolean; /** * Creates a copy of this plane * @returns a copy of this plane object */ copy(): any; /** * Sets this plane equal to another plane * @param plane the plane to assign */ assign(t: any): void; /** * Returns true if the normal and d value are the same. * @param plane */ equals(t: any): boolean; }; _plane2: { normal: _; d: number; setFromPointAndNormal(t: any, e: any): any; /** * Update the plane to pass through the three points */ setFromPoints(t: any, e: any, i: any): void; setFromCoefficients(t: any, e: any, i: any, n: any): void; getCoefficients(): any[]; distanceToPoint(t: any): number; rayIntersection(t: any): _ | null; intersectsRay(t: any, e: any): boolean; /** * Returns true if the point is on the side of the plane that the plane's normal is directed. Returns false otherwise. * @param p The point to test. */ determineSide(t: any): boolean; /** * Creates a copy of this plane * @returns a copy of this plane object */ copy(): any; /** * Sets this plane equal to another plane * @param plane the plane to assign */ assign(t: any): void; /** * Returns true if the normal and d value are the same. * @param plane */ equals(t: any): boolean; }; _secondPoint: _; _firstPoint: _; _textPos: _; _intermediatePoint: _; _textAnchorPoint: _; _angle: number; _useAuthoredNormals: boolean; _name: string; _textShape: Fl; _getNormalAndPositionFromSelection(t: any, e: any, i: any): Promise; getFirstSelection(): any; setFirstFace(t: any): Promise; setSecondFace(t: any): Promise; _measurementValue: number; adjust(t: any): void; _nextStage(): void; _finalized: boolean; cleanup(): void; update(): void; _behindView: boolean; draw(): void; /** * Sets whether created markup will use authored normals or use selection results to calculate angles * @param use */ setUseAuthoredNormals(t: any): void; /** * Gets whether created markup will use authored normals or use selection results to calculate angles */ getUseAuthoredNormals(): boolean; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { text: any; textPos: { x: any; y: any; z: any; }; arcArray: any[]; firstPoint: { x: any; y: any; z: any; }; clickpointOriginal1: { x: any; y: any; z: any; }; secondPoint: { x: any; y: any; z: any; }; clickpointOriginal2: { x: any; y: any; z: any; }; intermediatePoint: { x: any; y: any; z: any; }; textAnchorPoint: { x: any; y: any; z: any; }; measurementValue: number; className: string; }; _toJson(): { text: any; textPos: { x: any; y: any; z: any; }; arcArray: any[]; firstPoint: { x: any; y: any; z: any; }; clickpointOriginal1: { x: any; y: any; z: any; }; secondPoint: { x: any; y: any; z: any; }; clickpointOriginal2: { x: any; y: any; z: any; }; intermediatePoint: { x: any; y: any; z: any; }; textAnchorPoint: { x: any; y: any; z: any; }; measurementValue: number; className: string; }; getClassName(): string; _stage: number; _uniqueId: string; _positions: any[]; _unitMultiplier: number; _visibility: boolean; _lineShapes: any[]; _viewer: any; /** * Gets the name of this measurement. * @returns the measurement name */ getName(): string; /** * Sets the name of this measurement * @param name the name to set */ setName(t: any): void; /** @hidden */ _getStage(): number; /** @hidden */ _setId(t: any): void; /** @hidden */ _getId(): string; /** @hidden */ _isFinalized(): boolean; setVisibility(t: any): void; getVisibility(): boolean; /** * Returns the unit agnostic value for this measurement. * In the case where this value represents distance, use [[getUnitMultiplier]] to determine the measurement units. * In other cases, this value will be the angle measurement in degrees. * @returns the measurement value */ getMeasurementValue(): number; /** * Returns the unit multiplier incorporated into the measurement value. * This number is a multiplier of millimeters (for example inches will be `25.4`). * The default value is `1.0`. */ getUnitMultiplier(): number; /** * Sets the measurement text that is rendered with this measurement. * @param measurementText the text to render with this measurement */ setMeasurementText(t: any): void; /** * Gets the text for this measurement. By default this will contain the measurement value and units for the model in the cases where the measurement is a distance. * In other cases it will contain the angle in degrees. */ getMeasurementText(): any; /** * Returns whether the measurement markup is valid. Override in subclasses when needed. */ isMarkupValid(): boolean; /** @hidden */ _setMeasurementValue(t: any): void; /** * Called when the MarkupItem is removed from a view from the system. * Any cleanup that needs to be done should be performed in this method. * @param view the view to remove from, null if removed from everywhere. */ remove(t: any): void; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @returns boolean value indicating whether this item was picked */ hit(t: any, e: any): boolean; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @param pickTolerance amount of tolerance allowed for a hit in pixels. * @returns boolean value indicating whether this item was picked */ hitWithTolerance(t: any, e: any, i: any): boolean; /** * Called when this markup item is selected by the system from a given view. * @param view the view where the selection occured */ onSelect(t: any): void; /** * Called when this markup item is deselected by the system */ onDeselect(): void; }; /** * Creates a new [[MeasureFaceFaceAngleMarkup]] from an object given by [[toJson]]. * @param objData An object given by [[toJson]]. * @returns The prepared object. */ fromJson(t: any, e: any): { _faceSelection: any[]; _arcArray: any[]; _lineGeometryShape: Ba; planeIntersectionLine: any[]; _pointOnLine: _; _clickpointOriginal2: _; _clickpointOriginal1: _; _plane1: { normal: _; d: number; setFromPointAndNormal(t: any, e: any): any; /** * Update the plane to pass through the three points */ setFromPoints(t: any, e: any, i: any): void; setFromCoefficients(t: any, e: any, i: any, n: any): void; getCoefficients(): any[]; distanceToPoint(t: any): number; rayIntersection(t: any): _ | null; intersectsRay(t: any, e: any): boolean; /** * Returns true if the point is on the side of the plane that the plane's normal is directed. Returns false otherwise. * @param p The point to test. */ determineSide(t: any): boolean; /** * Creates a copy of this plane * @returns a copy of this plane object */ copy(): any; /** * Sets this plane equal to another plane * @param plane the plane to assign */ assign(t: any): void; /** * Returns true if the normal and d value are the same. * @param plane */ equals(t: any): boolean; }; _plane2: { normal: _; d: number; setFromPointAndNormal(t: any, e: any): any; /** * Update the plane to pass through the three points */ setFromPoints(t: any, e: any, i: any): void; setFromCoefficients(t: any, e: any, i: any, n: any): void; getCoefficients(): any[]; distanceToPoint(t: any): number; rayIntersection(t: any): _ | null; intersectsRay(t: any, e: any): boolean; /** * Returns true if the point is on the side of the plane that the plane's normal is directed. Returns false otherwise. * @param p The point to test. */ determineSide(t: any): boolean; /** * Creates a copy of this plane * @returns a copy of this plane object */ copy(): any; /** * Sets this plane equal to another plane * @param plane the plane to assign */ assign(t: any): void; /** * Returns true if the normal and d value are the same. * @param plane */ equals(t: any): boolean; }; _secondPoint: _; _firstPoint: _; _textPos: _; _intermediatePoint: _; _textAnchorPoint: _; _angle: number; _useAuthoredNormals: boolean; _name: string; _textShape: Fl; _getNormalAndPositionFromSelection(t: any, e: any, i: any): Promise; getFirstSelection(): any; setFirstFace(t: any): Promise; setSecondFace(t: any): Promise; _measurementValue: number; adjust(t: any): void; _nextStage(): void; _finalized: boolean; cleanup(): void; update(): void; _behindView: boolean; draw(): void; /** * Sets whether created markup will use authored normals or use selection results to calculate angles * @param use */ setUseAuthoredNormals(t: any): void; /** * Gets whether created markup will use authored normals or use selection results to calculate angles */ getUseAuthoredNormals(): boolean; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { text: any; textPos: { x: any; y: any; z: any; }; arcArray: any[]; firstPoint: { x: any; y: any; z: any; }; clickpointOriginal1: { x: any; y: any; z: any; }; secondPoint: { x: any; y: any; z: any; }; clickpointOriginal2: { x: any; y: any; z: any; }; intermediatePoint: { x: any; y: any; z: any; }; textAnchorPoint: { x: any; y: any; z: any; }; measurementValue: number; className: string; }; _toJson(): { text: any; textPos: { x: any; y: any; z: any; }; arcArray: any[]; firstPoint: { x: any; y: any; z: any; }; clickpointOriginal1: { x: any; y: any; z: any; }; secondPoint: { x: any; y: any; z: any; }; clickpointOriginal2: { x: any; y: any; z: any; }; intermediatePoint: { x: any; y: any; z: any; }; textAnchorPoint: { x: any; y: any; z: any; }; measurementValue: number; className: string; }; getClassName(): string; _stage: number; _uniqueId: string; _positions: any[]; _unitMultiplier: number; _visibility: boolean; _lineShapes: any[]; _viewer: any; /** * Gets the name of this measurement. * @returns the measurement name */ getName(): string; /** * Sets the name of this measurement * @param name the name to set */ setName(t: any): void; /** @hidden */ _getStage(): number; /** @hidden */ _setId(t: any): void; /** @hidden */ _getId(): string; /** @hidden */ _isFinalized(): boolean; setVisibility(t: any): void; getVisibility(): boolean; /** * Returns the unit agnostic value for this measurement. * In the case where this value represents distance, use [[getUnitMultiplier]] to determine the measurement units. * In other cases, this value will be the angle measurement in degrees. * @returns the measurement value */ getMeasurementValue(): number; /** * Returns the unit multiplier incorporated into the measurement value. * This number is a multiplier of millimeters (for example inches will be `25.4`). * The default value is `1.0`. */ getUnitMultiplier(): number; /** * Sets the measurement text that is rendered with this measurement. * @param measurementText the text to render with this measurement */ setMeasurementText(t: any): void; /** * Gets the text for this measurement. By default this will contain the measurement value and units for the model in the cases where the measurement is a distance. * In other cases it will contain the angle in degrees. */ getMeasurementText(): any; /** * Returns whether the measurement markup is valid. Override in subclasses when needed. */ isMarkupValid(): boolean; /** @hidden */ _setMeasurementValue(t: any): void; /** * Called when the MarkupItem is removed from a view from the system. * Any cleanup that needs to be done should be performed in this method. * @param view the view to remove from, null if removed from everywhere. */ remove(t: any): void; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @returns boolean value indicating whether this item was picked */ hit(t: any, e: any): boolean; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @param pickTolerance amount of tolerance allowed for a hit in pixels. * @returns boolean value indicating whether this item was picked */ hitWithTolerance(t: any, e: any, i: any): boolean; /** * Called when this markup item is selected by the system from a given view. * @param view the view where the selection occured */ onSelect(t: any): void; /** * Called when this markup item is deselected by the system */ onDeselect(): void; }; className: string; /** @hidden */ _serializePointArray(t: any): any[]; /** @hidden */ _constructPointArray(t: any): _[]; }; MeasureFaceFaceDistanceMarkup: { new (t: any): { _faceSelection: any[]; _line1PreviewShape1: Qn; _line1PreviewShape2: Qn; _line2PreviewShape1: Qn; _line2PreviewShape2: Qn; _matrix1: { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _matrix2: { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _lineGeometryShape: Ba; _parallelFaces: boolean; _triangulatedDistance: boolean; _pointsOnSameRay: boolean; _arrowsInvert: boolean; _faceData: any[]; _distance: number; _surfaceCenter: _[]; _surfaceAxis1: _[]; _surfaceAxis2: _[]; _cylinderAxisInfinite1: _[]; _cylinderAxisInfinite2: _[]; _secondPointInitial: _; _firstPointHelper: _; _secondPointHelper: _; _secondPoint: _; _firstPoint: _; _textPos: _; _name: string; _textShape: Fl; setUnitMultiplier(t: any): void; _unitMultiplier: number; setFirstFace(t: any, e: any, i: any, n: any): void; getFirstSelection(): any; getFirstFaceData(): any; cleanup(): void; createCylinderData(t: any, e: any, i: any): void; setSecondFace(t: any, e: any, i: any, n: any, r: any): Promise; adjust(t: any): void; _updateArrowsInverted(): void; _nextStage(): void; _finalized: boolean; /** @hidden */ update(): void; _behindView: boolean; draw(): void; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { text: any; textPos: { x: any; y: any; z: any; }; firstPoint: { x: any; y: any; z: any; }; secondPoint: { x: any; y: any; z: any; }; firstPointHelper: { x: any; y: any; z: any; }; secondPointHelper: { x: any; y: any; z: any; }; secondPointInitial: { x: any; y: any; z: any; }; measurementValue: number; unitMultiplier: number; parallelFaces: boolean; faceData: ({ type: string; origin: any; normal: any; radius: any; } | { type: string; origin: any; normal: any; radius?: undefined; } | null)[]; surfaceCenter: { x: any; y: any; z: any; }[]; surfaceAxis1: { x: any; y: any; z: any; }[]; surfaceAxis2: { x: any; y: any; z: any; }[]; name: string; className: string; }; _toJson(): { text: any; textPos: { x: any; y: any; z: any; }; firstPoint: { x: any; y: any; z: any; }; secondPoint: { x: any; y: any; z: any; }; firstPointHelper: { x: any; y: any; z: any; }; secondPointHelper: { x: any; y: any; z: any; }; secondPointInitial: { x: any; y: any; z: any; }; measurementValue: number; unitMultiplier: number; parallelFaces: boolean; faceData: ({ type: string; origin: any; normal: any; radius: any; } | { type: string; origin: any; normal: any; radius?: undefined; } | null)[]; surfaceCenter: { x: any; y: any; z: any; }[]; surfaceAxis1: { x: any; y: any; z: any; }[]; surfaceAxis2: { x: any; y: any; z: any; }[]; name: string; className: string; }; getClassName(): string; _stage: number; _uniqueId: string; _positions: any[]; _measurementValue: number; _visibility: boolean; _lineShapes: any[]; _viewer: any; /** * Gets the name of this measurement. * @returns the measurement name */ getName(): string; /** * Sets the name of this measurement * @param name the name to set */ setName(t: any): void; /** @hidden */ _getStage(): number; /** @hidden */ _setId(t: any): void; /** @hidden */ _getId(): string; /** @hidden */ _isFinalized(): boolean; setVisibility(t: any): void; getVisibility(): boolean; /** * Returns the unit agnostic value for this measurement. * In the case where this value represents distance, use [[getUnitMultiplier]] to determine the measurement units. * In other cases, this value will be the angle measurement in degrees. * @returns the measurement value */ getMeasurementValue(): number; /** * Returns the unit multiplier incorporated into the measurement value. * This number is a multiplier of millimeters (for example inches will be `25.4`). * The default value is `1.0`. */ getUnitMultiplier(): number; /** * Sets the measurement text that is rendered with this measurement. * @param measurementText the text to render with this measurement */ setMeasurementText(t: any): void; /** * Gets the text for this measurement. By default this will contain the measurement value and units for the model in the cases where the measurement is a distance. * In other cases it will contain the angle in degrees. */ getMeasurementText(): any; /** * Returns whether the measurement markup is valid. Override in subclasses when needed. */ isMarkupValid(): boolean; /** @hidden */ _setMeasurementValue(t: any): void; /** * Called when the MarkupItem is removed from a view from the system. * Any cleanup that needs to be done should be performed in this method. * @param view the view to remove from, null if removed from everywhere. */ remove(t: any): void; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @returns boolean value indicating whether this item was picked */ hit(t: any, e: any): boolean; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @param pickTolerance amount of tolerance allowed for a hit in pixels. * @returns boolean value indicating whether this item was picked */ hitWithTolerance(t: any, e: any, i: any): boolean; /** * Called when this markup item is selected by the system from a given view. * @param view the view where the selection occured */ onSelect(t: any): void; /** * Called when this markup item is deselected by the system */ onDeselect(): void; }; _serializeFaceProp(t: any): { type: string; origin: any; normal: any; radius: any; } | { type: string; origin: any; normal: any; radius?: undefined; } | null; _constructFaceProp(t: any): Li | Wi | null; /** * Creates a new [[MeasureFaceFaceDistanceMarkup]] from an object given by [[toJson]]. * @param objData An object given by [[toJson]]. * @returns The prepared object. */ fromJson(t: any, e: any): { _faceSelection: any[]; _line1PreviewShape1: Qn; _line1PreviewShape2: Qn; _line2PreviewShape1: Qn; _line2PreviewShape2: Qn; _matrix1: { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _matrix2: { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _lineGeometryShape: Ba; _parallelFaces: boolean; _triangulatedDistance: boolean; _pointsOnSameRay: boolean; _arrowsInvert: boolean; _faceData: any[]; _distance: number; _surfaceCenter: _[]; _surfaceAxis1: _[]; _surfaceAxis2: _[]; _cylinderAxisInfinite1: _[]; _cylinderAxisInfinite2: _[]; _secondPointInitial: _; _firstPointHelper: _; _secondPointHelper: _; _secondPoint: _; _firstPoint: _; _textPos: _; _name: string; _textShape: Fl; setUnitMultiplier(t: any): void; _unitMultiplier: number; setFirstFace(t: any, e: any, i: any, n: any): void; getFirstSelection(): any; getFirstFaceData(): any; cleanup(): void; createCylinderData(t: any, e: any, i: any): void; setSecondFace(t: any, e: any, i: any, n: any, r: any): Promise; adjust(t: any): void; _updateArrowsInverted(): void; _nextStage(): void; _finalized: boolean; /** @hidden */ update(): void; _behindView: boolean; draw(): void; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { text: any; textPos: { x: any; y: any; z: any; }; firstPoint: { x: any; y: any; z: any; }; secondPoint: { x: any; y: any; z: any; }; firstPointHelper: { x: any; y: any; z: any; }; secondPointHelper: { x: any; y: any; z: any; }; secondPointInitial: { x: any; y: any; z: any; }; measurementValue: number; unitMultiplier: number; parallelFaces: boolean; faceData: ({ type: string; origin: any; normal: any; radius: any; } | { type: string; origin: any; normal: any; radius?: undefined; } | null)[]; surfaceCenter: { x: any; y: any; z: any; }[]; surfaceAxis1: { x: any; y: any; z: any; }[]; surfaceAxis2: { x: any; y: any; z: any; }[]; name: string; className: string; }; _toJson(): { text: any; textPos: { x: any; y: any; z: any; }; firstPoint: { x: any; y: any; z: any; }; secondPoint: { x: any; y: any; z: any; }; firstPointHelper: { x: any; y: any; z: any; }; secondPointHelper: { x: any; y: any; z: any; }; secondPointInitial: { x: any; y: any; z: any; }; measurementValue: number; unitMultiplier: number; parallelFaces: boolean; faceData: ({ type: string; origin: any; normal: any; radius: any; } | { type: string; origin: any; normal: any; radius?: undefined; } | null)[]; surfaceCenter: { x: any; y: any; z: any; }[]; surfaceAxis1: { x: any; y: any; z: any; }[]; surfaceAxis2: { x: any; y: any; z: any; }[]; name: string; className: string; }; getClassName(): string; _stage: number; _uniqueId: string; _positions: any[]; _measurementValue: number; _visibility: boolean; _lineShapes: any[]; _viewer: any; /** * Gets the name of this measurement. * @returns the measurement name */ getName(): string; /** * Sets the name of this measurement * @param name the name to set */ setName(t: any): void; /** @hidden */ _getStage(): number; /** @hidden */ _setId(t: any): void; /** @hidden */ _getId(): string; /** @hidden */ _isFinalized(): boolean; setVisibility(t: any): void; getVisibility(): boolean; /** * Returns the unit agnostic value for this measurement. * In the case where this value represents distance, use [[getUnitMultiplier]] to determine the measurement units. * In other cases, this value will be the angle measurement in degrees. * @returns the measurement value */ getMeasurementValue(): number; /** * Returns the unit multiplier incorporated into the measurement value. * This number is a multiplier of millimeters (for example inches will be `25.4`). * The default value is `1.0`. */ getUnitMultiplier(): number; /** * Sets the measurement text that is rendered with this measurement. * @param measurementText the text to render with this measurement */ setMeasurementText(t: any): void; /** * Gets the text for this measurement. By default this will contain the measurement value and units for the model in the cases where the measurement is a distance. * In other cases it will contain the angle in degrees. */ getMeasurementText(): any; /** * Returns whether the measurement markup is valid. Override in subclasses when needed. */ isMarkupValid(): boolean; /** @hidden */ _setMeasurementValue(t: any): void; /** * Called when the MarkupItem is removed from a view from the system. * Any cleanup that needs to be done should be performed in this method. * @param view the view to remove from, null if removed from everywhere. */ remove(t: any): void; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @returns boolean value indicating whether this item was picked */ hit(t: any, e: any): boolean; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @param pickTolerance amount of tolerance allowed for a hit in pixels. * @returns boolean value indicating whether this item was picked */ hitWithTolerance(t: any, e: any, i: any): boolean; /** * Called when this markup item is selected by the system from a given view. * @param view the view where the selection occured */ onSelect(t: any): void; /** * Called when this markup item is deselected by the system */ onDeselect(): void; }; className: string; /** @hidden */ _serializePointArray(t: any): any[]; /** @hidden */ _constructPointArray(t: any): _[]; }; MeasureLengthMarkup: { new (t: any): { _lineEdgeShape: Ba; _linePositions: any[]; _name: string; _positions: any[]; _lineShapes: any[]; setLineGeometry(t: any): void; _stage: number; setMeasurementEdgeColor(t: any): void; reset(): void; adjust(t: any): void; draw(): void; getLineEdgeShape(): Ba; getClassName(): string; _finalized: boolean; _uniqueId: string; _measurementValue: number; _unitMultiplier: number; _textShape: Fl; _visibility: boolean; _viewer: any; /** * Gets the name of this measurement. * @returns the measurement name */ getName(): string; /** * Sets the name of this measurement * @param name the name to set */ setName(t: any): void; /** @hidden */ _getStage(): number; /** @hidden */ _nextStage(): void; /** @hidden */ _setId(t: any): void; /** @hidden */ _getId(): string; /** @hidden */ _isFinalized(): boolean; /** @hidden */ update(): void; setVisibility(t: any): void; getVisibility(): boolean; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): {}; /** * Returns the unit agnostic value for this measurement. * In the case where this value represents distance, use [[getUnitMultiplier]] to determine the measurement units. * In other cases, this value will be the angle measurement in degrees. * @returns the measurement value */ getMeasurementValue(): number; /** * Returns the unit multiplier incorporated into the measurement value. * This number is a multiplier of millimeters (for example inches will be `25.4`). * The default value is `1.0`. */ getUnitMultiplier(): number; /** * Sets the measurement text that is rendered with this measurement. * @param measurementText the text to render with this measurement */ setMeasurementText(t: any): void; /** * Gets the text for this measurement. By default this will contain the measurement value and units for the model in the cases where the measurement is a distance. * In other cases it will contain the angle in degrees. */ getMeasurementText(): any; /** * Returns whether the measurement markup is valid. Override in subclasses when needed. */ isMarkupValid(): boolean; /** @hidden */ _setMeasurementValue(t: any): void; _behindView: boolean; /** * Called when the MarkupItem is removed from a view from the system. * Any cleanup that needs to be done should be performed in this method. * @param view the view to remove from, null if removed from everywhere. */ remove(t: any): void; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @returns boolean value indicating whether this item was picked */ hit(t: any, e: any): boolean; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @param pickTolerance amount of tolerance allowed for a hit in pixels. * @returns boolean value indicating whether this item was picked */ hitWithTolerance(t: any, e: any, i: any): boolean; /** * Called when this markup item is selected by the system from a given view. * @param view the view where the selection occured */ onSelect(t: any): void; /** * Called when this markup item is deselected by the system */ onDeselect(): void; }; className: string; /** @hidden */ _serializePointArray(t: any): any[]; /** @hidden */ _constructPointArray(t: any): _[]; }; MeasureLineLineAngleMarkup: { new (t: any): { _anchorLinePoint: any; _firstLinePoint: any; _secondLinePoint: any; _selectionPosition: any; _lineGeometryShape: Ba; _viewer: any; _name: string; addPoint(t: any): boolean; _stage: number; _measurementValue: number; _finalized: boolean; setSelectionPosition(t: any): void; getLineGeometryShape(): Ba; _drawPreviewLine(t: any, e: any): void; _drawAngleMarkup(t: any, e: any, i: any): void; draw(): void; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { name: string; anchorPoint: any; firstPoint: any; secondPoint: any; measurementValue: number; measurementText: any; className: string; }; _toJson(): { name: string; anchorPoint: any; firstPoint: any; secondPoint: any; measurementValue: number; measurementText: any; className: string; }; getClassName(): string; _uniqueId: string; _positions: any[]; _unitMultiplier: number; _textShape: Fl; _visibility: boolean; _lineShapes: any[]; /** * Gets the name of this measurement. * @returns the measurement name */ getName(): string; /** * Sets the name of this measurement * @param name the name to set */ setName(t: any): void; /** @hidden */ _getStage(): number; /** @hidden */ _nextStage(): void; /** @hidden */ _setId(t: any): void; /** @hidden */ _getId(): string; /** @hidden */ adjust(t: any): void; /** @hidden */ _isFinalized(): boolean; /** @hidden */ update(): void; setVisibility(t: any): void; getVisibility(): boolean; /** * Returns the unit agnostic value for this measurement. * In the case where this value represents distance, use [[getUnitMultiplier]] to determine the measurement units. * In other cases, this value will be the angle measurement in degrees. * @returns the measurement value */ getMeasurementValue(): number; /** * Returns the unit multiplier incorporated into the measurement value. * This number is a multiplier of millimeters (for example inches will be `25.4`). * The default value is `1.0`. */ getUnitMultiplier(): number; /** * Sets the measurement text that is rendered with this measurement. * @param measurementText the text to render with this measurement */ setMeasurementText(t: any): void; /** * Gets the text for this measurement. By default this will contain the measurement value and units for the model in the cases where the measurement is a distance. * In other cases it will contain the angle in degrees. */ getMeasurementText(): any; /** * Returns whether the measurement markup is valid. Override in subclasses when needed. */ isMarkupValid(): boolean; /** @hidden */ _setMeasurementValue(t: any): void; _behindView: boolean; /** * Called when the MarkupItem is removed from a view from the system. * Any cleanup that needs to be done should be performed in this method. * @param view the view to remove from, null if removed from everywhere. */ remove(t: any): void; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @returns boolean value indicating whether this item was picked */ hit(t: any, e: any): boolean; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @param pickTolerance amount of tolerance allowed for a hit in pixels. * @returns boolean value indicating whether this item was picked */ hitWithTolerance(t: any, e: any, i: any): boolean; /** * Called when this markup item is selected by the system from a given view. * @param view the view where the selection occured */ onSelect(t: any): void; /** * Called when this markup item is deselected by the system */ onDeselect(): void; }; /** * Creates a new [[MeasurePointPointDistanceMarkup]] from an object given by [[toJson]]. * @param objData An object given by [[toJson]]. * @returns The prepared object. */ fromJson(t: any, e: any): { _anchorLinePoint: any; _firstLinePoint: any; _secondLinePoint: any; _selectionPosition: any; _lineGeometryShape: Ba; _viewer: any; _name: string; addPoint(t: any): boolean; _stage: number; _measurementValue: number; _finalized: boolean; setSelectionPosition(t: any): void; getLineGeometryShape(): Ba; _drawPreviewLine(t: any, e: any): void; _drawAngleMarkup(t: any, e: any, i: any): void; draw(): void; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { name: string; anchorPoint: any; firstPoint: any; secondPoint: any; measurementValue: number; measurementText: any; className: string; }; _toJson(): { name: string; anchorPoint: any; firstPoint: any; secondPoint: any; measurementValue: number; measurementText: any; className: string; }; getClassName(): string; _uniqueId: string; _positions: any[]; _unitMultiplier: number; _textShape: Fl; _visibility: boolean; _lineShapes: any[]; /** * Gets the name of this measurement. * @returns the measurement name */ getName(): string; /** * Sets the name of this measurement * @param name the name to set */ setName(t: any): void; /** @hidden */ _getStage(): number; /** @hidden */ _nextStage(): void; /** @hidden */ _setId(t: any): void; /** @hidden */ _getId(): string; /** @hidden */ adjust(t: any): void; /** @hidden */ _isFinalized(): boolean; /** @hidden */ update(): void; setVisibility(t: any): void; getVisibility(): boolean; /** * Returns the unit agnostic value for this measurement. * In the case where this value represents distance, use [[getUnitMultiplier]] to determine the measurement units. * In other cases, this value will be the angle measurement in degrees. * @returns the measurement value */ getMeasurementValue(): number; /** * Returns the unit multiplier incorporated into the measurement value. * This number is a multiplier of millimeters (for example inches will be `25.4`). * The default value is `1.0`. */ getUnitMultiplier(): number; /** * Sets the measurement text that is rendered with this measurement. * @param measurementText the text to render with this measurement */ setMeasurementText(t: any): void; /** * Gets the text for this measurement. By default this will contain the measurement value and units for the model in the cases where the measurement is a distance. * In other cases it will contain the angle in degrees. */ getMeasurementText(): any; /** * Returns whether the measurement markup is valid. Override in subclasses when needed. */ isMarkupValid(): boolean; /** @hidden */ _setMeasurementValue(t: any): void; _behindView: boolean; /** * Called when the MarkupItem is removed from a view from the system. * Any cleanup that needs to be done should be performed in this method. * @param view the view to remove from, null if removed from everywhere. */ remove(t: any): void; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @returns boolean value indicating whether this item was picked */ hit(t: any, e: any): boolean; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @param pickTolerance amount of tolerance allowed for a hit in pixels. * @returns boolean value indicating whether this item was picked */ hitWithTolerance(t: any, e: any, i: any): boolean; /** * Called when this markup item is selected by the system from a given view. * @param view the view where the selection occured */ onSelect(t: any): void; /** * Called when this markup item is deselected by the system */ onDeselect(): void; }; className: string; /** @hidden */ _serializePointArray(t: any): any[]; /** @hidden */ _constructPointArray(t: any): _[]; }; MeasureMarkup: typeof Rn; MeasurePointPointDistanceMarkup: { new (t: any): { _firstPointShape: Gr; _secondPointShape: Gr; _arrowsInvert: boolean; _name: string; _lineShapes: Qn[]; _viewer: any; _textShape: Fl; initCircle(t: any): void; setUnitMultiplier(t: any): void; _unitMultiplier: number; setFirstPointPosition(t: any): void; _stage: number; setSecondPointPosition(t: any): void; _getStage(): number; finalize(): void; getFirstPointPosition(): any; getSecondPointPosition(): any; adjust(t: any): void; _updateArrowsInverted(): void; update(): void; _behindView: boolean; draw(): void; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { name: string; measurePoint1: any; measurePoint2: any; leaderPoint1: any; leaderPoint2: any; textPoint: any; text: any; measurementValue: number; unitMultiplier: number; className: string; }; _toJson(): { name: string; measurePoint1: any; measurePoint2: any; leaderPoint1: any; leaderPoint2: any; textPoint: any; text: any; measurementValue: number; unitMultiplier: number; className: string; }; getClassName(): string; /** * Returns whether the measurement markup is valid. */ isMarkupValid(): boolean; _finalized: boolean; _uniqueId: string; _positions: any[]; _measurementValue: number; _visibility: boolean; /** * Gets the name of this measurement. * @returns the measurement name */ getName(): string; /** * Sets the name of this measurement * @param name the name to set */ setName(t: any): void; /** @hidden */ _nextStage(): void; /** @hidden */ _setId(t: any): void; /** @hidden */ _getId(): string; /** @hidden */ _isFinalized(): boolean; setVisibility(t: any): void; getVisibility(): boolean; /** * Returns the unit agnostic value for this measurement. * In the case where this value represents distance, use [[getUnitMultiplier]] to determine the measurement units. * In other cases, this value will be the angle measurement in degrees. * @returns the measurement value */ getMeasurementValue(): number; /** * Returns the unit multiplier incorporated into the measurement value. * This number is a multiplier of millimeters (for example inches will be `25.4`). * The default value is `1.0`. */ getUnitMultiplier(): number; /** * Sets the measurement text that is rendered with this measurement. * @param measurementText the text to render with this measurement */ setMeasurementText(t: any): void; /** * Gets the text for this measurement. By default this will contain the measurement value and units for the model in the cases where the measurement is a distance. * In other cases it will contain the angle in degrees. */ getMeasurementText(): any; /** @hidden */ _setMeasurementValue(t: any): void; /** * Called when the MarkupItem is removed from a view from the system. * Any cleanup that needs to be done should be performed in this method. * @param view the view to remove from, null if removed from everywhere. */ remove(t: any): void; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @returns boolean value indicating whether this item was picked */ hit(t: any, e: any): boolean; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @param pickTolerance amount of tolerance allowed for a hit in pixels. * @returns boolean value indicating whether this item was picked */ hitWithTolerance(t: any, e: any, i: any): boolean; /** * Called when this markup item is selected by the system from a given view. * @param view the view where the selection occured */ onSelect(t: any): void; /** * Called when this markup item is deselected by the system */ onDeselect(): void; }; /** * Creates a new [[MeasurePointPointDistanceMarkup]] from an object given by [[toJson]]. * @param objData An object given by [[toJson]]. * @returns The prepared object. */ fromJson(t: any, e: any): { _firstPointShape: Gr; _secondPointShape: Gr; _arrowsInvert: boolean; _name: string; _lineShapes: Qn[]; _viewer: any; _textShape: Fl; initCircle(t: any): void; setUnitMultiplier(t: any): void; _unitMultiplier: number; setFirstPointPosition(t: any): void; _stage: number; setSecondPointPosition(t: any): void; _getStage(): number; finalize(): void; getFirstPointPosition(): any; getSecondPointPosition(): any; adjust(t: any): void; _updateArrowsInverted(): void; update(): void; _behindView: boolean; draw(): void; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { name: string; measurePoint1: any; measurePoint2: any; leaderPoint1: any; leaderPoint2: any; textPoint: any; text: any; measurementValue: number; unitMultiplier: number; className: string; }; _toJson(): { name: string; measurePoint1: any; measurePoint2: any; leaderPoint1: any; leaderPoint2: any; textPoint: any; text: any; measurementValue: number; unitMultiplier: number; className: string; }; getClassName(): string; /** * Returns whether the measurement markup is valid. */ isMarkupValid(): boolean; _finalized: boolean; _uniqueId: string; _positions: any[]; _measurementValue: number; _visibility: boolean; /** * Gets the name of this measurement. * @returns the measurement name */ getName(): string; /** * Sets the name of this measurement * @param name the name to set */ setName(t: any): void; /** @hidden */ _nextStage(): void; /** @hidden */ _setId(t: any): void; /** @hidden */ _getId(): string; /** @hidden */ _isFinalized(): boolean; setVisibility(t: any): void; getVisibility(): boolean; /** * Returns the unit agnostic value for this measurement. * In the case where this value represents distance, use [[getUnitMultiplier]] to determine the measurement units. * In other cases, this value will be the angle measurement in degrees. * @returns the measurement value */ getMeasurementValue(): number; /** * Returns the unit multiplier incorporated into the measurement value. * This number is a multiplier of millimeters (for example inches will be `25.4`). * The default value is `1.0`. */ getUnitMultiplier(): number; /** * Sets the measurement text that is rendered with this measurement. * @param measurementText the text to render with this measurement */ setMeasurementText(t: any): void; /** * Gets the text for this measurement. By default this will contain the measurement value and units for the model in the cases where the measurement is a distance. * In other cases it will contain the angle in degrees. */ getMeasurementText(): any; /** @hidden */ _setMeasurementValue(t: any): void; /** * Called when the MarkupItem is removed from a view from the system. * Any cleanup that needs to be done should be performed in this method. * @param view the view to remove from, null if removed from everywhere. */ remove(t: any): void; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @returns boolean value indicating whether this item was picked */ hit(t: any, e: any): boolean; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @param pickTolerance amount of tolerance allowed for a hit in pixels. * @returns boolean value indicating whether this item was picked */ hitWithTolerance(t: any, e: any, i: any): boolean; /** * Called when this markup item is selected by the system from a given view. * @param view the view where the selection occured */ onSelect(t: any): void; /** * Called when this markup item is deselected by the system */ onDeselect(): void; }; className: string; /** @hidden */ _serializePointArray(t: any): any[]; /** @hidden */ _constructPointArray(t: any): _[]; }; MeasurePolygonAreaMarkup: { new (t: any): { _initialPoint: Gr; _leaderLine: Qn; _endpoints: Sg; _textboxCorners: any[]; _polygon: J_; _plane: { normal: _; d: number; setFromPointAndNormal(t: any, e: any): any; /** * Update the plane to pass through the three points */ setFromPoints(t: any, e: any, i: any): void; setFromCoefficients(t: any, e: any, i: any, n: any): void; getCoefficients(): any[]; distanceToPoint(t: any): number; rayIntersection(t: any): _ | null; intersectsRay(t: any, e: any): boolean; /** * Returns true if the point is on the side of the plane that the plane's normal is directed. Returns false otherwise. * @param p The point to test. */ determineSide(t: any): boolean; /** * Creates a copy of this plane * @returns a copy of this plane object */ copy(): any; /** * Sets this plane equal to another plane * @param plane the plane to assign */ assign(t: any): void; /** * Returns true if the normal and d value are the same. * @param plane */ equals(t: any): boolean; } | null; textPosition: _; leaderPosition: _; pointRadius: number; _viewer: any; _calculateArea(): number; /** * Adds a point to the point list and updates the calculated polygon area. * Only points that are coplanar will be added. * Returns a bool representing if the point was accepted or not */ addPoint(t: any): boolean; getPoints(): any[]; getLast(): any; finalize(): void; _finalized: boolean; setUnitMultiplier(t: any): void; _unitMultiplier: number; isValid(): boolean; getMeasurementText(): any; /** Calculates the screen position for each point in the polygon */ _updateProjectedPoints(): K[]; _behindView: boolean; _updateTextBoxCorners(): void; /** Finds and returns the closest corner of the text box. Used as the endpoint of the leader line. */ _calculateLeaderEndpoint(t: any): Point; draw(): void; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { name: string; points: any[]; textPoint: { x: any; y: any; z: any; }; leaderPoint: { x: any; y: any; z: any; }; measurementValue: number; unitMultiplier: number; text: any; className: string; }; _toJson(): { name: string; points: any[]; textPoint: { x: any; y: any; z: any; }; leaderPoint: { x: any; y: any; z: any; }; measurementValue: number; unitMultiplier: number; text: any; className: string; }; /** This measurement only allows clicking on the text box portion of the markup. */ hit(t: any): boolean; getClassName(): string; _stage: number; _uniqueId: string; _positions: any[]; _name: string; _measurementValue: number; _textShape: Fl; _visibility: boolean; _lineShapes: any[]; /** * Gets the name of this measurement. * @returns the measurement name */ getName(): string; /** * Sets the name of this measurement * @param name the name to set */ setName(t: any): void; /** @hidden */ _getStage(): number; /** @hidden */ _nextStage(): void; /** @hidden */ _setId(t: any): void; /** @hidden */ _getId(): string; /** @hidden */ adjust(t: any): void; /** @hidden */ _isFinalized(): boolean; /** @hidden */ update(): void; setVisibility(t: any): void; getVisibility(): boolean; /** * Returns the unit agnostic value for this measurement. * In the case where this value represents distance, use [[getUnitMultiplier]] to determine the measurement units. * In other cases, this value will be the angle measurement in degrees. * @returns the measurement value */ getMeasurementValue(): number; /** * Returns the unit multiplier incorporated into the measurement value. * This number is a multiplier of millimeters (for example inches will be `25.4`). * The default value is `1.0`. */ getUnitMultiplier(): number; /** * Sets the measurement text that is rendered with this measurement. * @param measurementText the text to render with this measurement */ setMeasurementText(t: any): void; /** * Returns whether the measurement markup is valid. Override in subclasses when needed. */ isMarkupValid(): boolean; /** @hidden */ _setMeasurementValue(t: any): void; /** * Called when the MarkupItem is removed from a view from the system. * Any cleanup that needs to be done should be performed in this method. * @param view the view to remove from, null if removed from everywhere. */ remove(t: any): void; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @param pickTolerance amount of tolerance allowed for a hit in pixels. * @returns boolean value indicating whether this item was picked */ hitWithTolerance(t: any, e: any, i: any): boolean; /** * Called when this markup item is selected by the system from a given view. * @param view the view where the selection occured */ onSelect(t: any): void; /** * Called when this markup item is deselected by the system */ onDeselect(): void; }; /** * Creates a new [[MeasurePolygonAreaMarkup]] from an object given by [[toJson]]. * @param objData An object given by [[toJson]]. * @returns The prepared object. */ fromJson(t: any, e: any): { _initialPoint: Gr; _leaderLine: Qn; _endpoints: Sg; _textboxCorners: any[]; _polygon: J_; _plane: { normal: _; d: number; setFromPointAndNormal(t: any, e: any): any; /** * Update the plane to pass through the three points */ setFromPoints(t: any, e: any, i: any): void; setFromCoefficients(t: any, e: any, i: any, n: any): void; getCoefficients(): any[]; distanceToPoint(t: any): number; rayIntersection(t: any): _ | null; intersectsRay(t: any, e: any): boolean; /** * Returns true if the point is on the side of the plane that the plane's normal is directed. Returns false otherwise. * @param p The point to test. */ determineSide(t: any): boolean; /** * Creates a copy of this plane * @returns a copy of this plane object */ copy(): any; /** * Sets this plane equal to another plane * @param plane the plane to assign */ assign(t: any): void; /** * Returns true if the normal and d value are the same. * @param plane */ equals(t: any): boolean; } | null; textPosition: _; leaderPosition: _; pointRadius: number; _viewer: any; _calculateArea(): number; /** * Adds a point to the point list and updates the calculated polygon area. * Only points that are coplanar will be added. * Returns a bool representing if the point was accepted or not */ addPoint(t: any): boolean; getPoints(): any[]; getLast(): any; finalize(): void; _finalized: boolean; setUnitMultiplier(t: any): void; _unitMultiplier: number; isValid(): boolean; getMeasurementText(): any; /** Calculates the screen position for each point in the polygon */ _updateProjectedPoints(): K[]; _behindView: boolean; _updateTextBoxCorners(): void; /** Finds and returns the closest corner of the text box. Used as the endpoint of the leader line. */ _calculateLeaderEndpoint(t: any): Point; draw(): void; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { name: string; points: any[]; textPoint: { x: any; y: any; z: any; }; leaderPoint: { x: any; y: any; z: any; }; measurementValue: number; unitMultiplier: number; text: any; className: string; }; _toJson(): { name: string; points: any[]; textPoint: { x: any; y: any; z: any; }; leaderPoint: { x: any; y: any; z: any; }; measurementValue: number; unitMultiplier: number; text: any; className: string; }; /** This measurement only allows clicking on the text box portion of the markup. */ hit(t: any): boolean; getClassName(): string; _stage: number; _uniqueId: string; _positions: any[]; _name: string; _measurementValue: number; _textShape: Fl; _visibility: boolean; _lineShapes: any[]; /** * Gets the name of this measurement. * @returns the measurement name */ getName(): string; /** * Sets the name of this measurement * @param name the name to set */ setName(t: any): void; /** @hidden */ _getStage(): number; /** @hidden */ _nextStage(): void; /** @hidden */ _setId(t: any): void; /** @hidden */ _getId(): string; /** @hidden */ adjust(t: any): void; /** @hidden */ _isFinalized(): boolean; /** @hidden */ update(): void; setVisibility(t: any): void; getVisibility(): boolean; /** * Returns the unit agnostic value for this measurement. * In the case where this value represents distance, use [[getUnitMultiplier]] to determine the measurement units. * In other cases, this value will be the angle measurement in degrees. * @returns the measurement value */ getMeasurementValue(): number; /** * Returns the unit multiplier incorporated into the measurement value. * This number is a multiplier of millimeters (for example inches will be `25.4`). * The default value is `1.0`. */ getUnitMultiplier(): number; /** * Sets the measurement text that is rendered with this measurement. * @param measurementText the text to render with this measurement */ setMeasurementText(t: any): void; /** * Returns whether the measurement markup is valid. Override in subclasses when needed. */ isMarkupValid(): boolean; /** @hidden */ _setMeasurementValue(t: any): void; /** * Called when the MarkupItem is removed from a view from the system. * Any cleanup that needs to be done should be performed in this method. * @param view the view to remove from, null if removed from everywhere. */ remove(t: any): void; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @param pickTolerance amount of tolerance allowed for a hit in pixels. * @returns boolean value indicating whether this item was picked */ hitWithTolerance(t: any, e: any, i: any): boolean; /** * Called when this markup item is selected by the system from a given view. * @param view the view where the selection occured */ onSelect(t: any): void; /** * Called when this markup item is deselected by the system */ onDeselect(): void; }; className: string; /** @hidden */ _serializePointArray(t: any): any[]; /** @hidden */ _constructPointArray(t: any): _[]; }; MeasurePolylineDistanceMarkup: { new (t: any): { _polyline: Ba; _initialPoint: Gr; _leaderLine: Qn; _endpoints: Sg; _textboxCorners: any[]; textPosition: _; leaderPosition: _; isLoop: boolean; pointRadius: number; _viewer: any; /** Adds a point to the pointlist and updates the calculated polyline distance */ addPoint(t: any): void; getPoints(): any[]; getlast(): any; finalize(): void; _finalized: boolean; setUnitMultiplier(t: any): void; _unitMultiplier: number; isValid(): boolean; getMeasurementText(): any; /** Calculates the screen position for each point in the polyline */ _updateProjectedPoints(): K[]; _behindView: boolean; _updateTextBoxCorners(): void; /** Finds and returns the closest corner of the text box. Used as the endpoint of the leader line. */ _calculateLeaderEndpoint(t: any): Point; draw(): void; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { name: string; points: any[]; textPoint: { x: any; y: any; z: any; }; leaderPoint: { x: any; y: any; z: any; }; measurementValue: number; unitMultiplier: number; isLoop: boolean; text: any; className: string; }; _toJson(): { name: string; points: any[]; textPoint: { x: any; y: any; z: any; }; leaderPoint: { x: any; y: any; z: any; }; measurementValue: number; unitMultiplier: number; isLoop: boolean; text: any; className: string; }; /** This measurement only allows clicking on the text box portion of the markup. */ hit(t: any): boolean; getClassName(): string; _stage: number; _uniqueId: string; _positions: any[]; _name: string; _measurementValue: number; _textShape: Fl; _visibility: boolean; _lineShapes: any[]; /** * Gets the name of this measurement. * @returns the measurement name */ getName(): string; /** * Sets the name of this measurement * @param name the name to set */ setName(t: any): void; /** @hidden */ _getStage(): number; /** @hidden */ _nextStage(): void; /** @hidden */ _setId(t: any): void; /** @hidden */ _getId(): string; /** @hidden */ adjust(t: any): void; /** @hidden */ _isFinalized(): boolean; /** @hidden */ update(): void; setVisibility(t: any): void; getVisibility(): boolean; /** * Returns the unit agnostic value for this measurement. * In the case where this value represents distance, use [[getUnitMultiplier]] to determine the measurement units. * In other cases, this value will be the angle measurement in degrees. * @returns the measurement value */ getMeasurementValue(): number; /** * Returns the unit multiplier incorporated into the measurement value. * This number is a multiplier of millimeters (for example inches will be `25.4`). * The default value is `1.0`. */ getUnitMultiplier(): number; /** * Sets the measurement text that is rendered with this measurement. * @param measurementText the text to render with this measurement */ setMeasurementText(t: any): void; /** * Returns whether the measurement markup is valid. Override in subclasses when needed. */ isMarkupValid(): boolean; /** @hidden */ _setMeasurementValue(t: any): void; /** * Called when the MarkupItem is removed from a view from the system. * Any cleanup that needs to be done should be performed in this method. * @param view the view to remove from, null if removed from everywhere. */ remove(t: any): void; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @param pickTolerance amount of tolerance allowed for a hit in pixels. * @returns boolean value indicating whether this item was picked */ hitWithTolerance(t: any, e: any, i: any): boolean; /** * Called when this markup item is selected by the system from a given view. * @param view the view where the selection occured */ onSelect(t: any): void; /** * Called when this markup item is deselected by the system */ onDeselect(): void; }; /** * Creates a new [[MeasurePolylineDistanceMarkup]] from an object given by [[toJson]]. * @param objData An object given by [[toJson]]. * @returns The prepared object. */ fromJson(t: any, e: any): { _polyline: Ba; _initialPoint: Gr; _leaderLine: Qn; _endpoints: Sg; _textboxCorners: any[]; textPosition: _; leaderPosition: _; isLoop: boolean; pointRadius: number; _viewer: any; /** Adds a point to the pointlist and updates the calculated polyline distance */ addPoint(t: any): void; getPoints(): any[]; getlast(): any; finalize(): void; _finalized: boolean; setUnitMultiplier(t: any): void; _unitMultiplier: number; isValid(): boolean; getMeasurementText(): any; /** Calculates the screen position for each point in the polyline */ _updateProjectedPoints(): K[]; _behindView: boolean; _updateTextBoxCorners(): void; /** Finds and returns the closest corner of the text box. Used as the endpoint of the leader line. */ _calculateLeaderEndpoint(t: any): Point; draw(): void; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { name: string; points: any[]; textPoint: { x: any; y: any; z: any; }; leaderPoint: { x: any; y: any; z: any; }; measurementValue: number; unitMultiplier: number; isLoop: boolean; text: any; className: string; }; _toJson(): { name: string; points: any[]; textPoint: { x: any; y: any; z: any; }; leaderPoint: { x: any; y: any; z: any; }; measurementValue: number; unitMultiplier: number; isLoop: boolean; text: any; className: string; }; /** This measurement only allows clicking on the text box portion of the markup. */ hit(t: any): boolean; getClassName(): string; _stage: number; _uniqueId: string; _positions: any[]; _name: string; _measurementValue: number; _textShape: Fl; _visibility: boolean; _lineShapes: any[]; /** * Gets the name of this measurement. * @returns the measurement name */ getName(): string; /** * Sets the name of this measurement * @param name the name to set */ setName(t: any): void; /** @hidden */ _getStage(): number; /** @hidden */ _nextStage(): void; /** @hidden */ _setId(t: any): void; /** @hidden */ _getId(): string; /** @hidden */ adjust(t: any): void; /** @hidden */ _isFinalized(): boolean; /** @hidden */ update(): void; setVisibility(t: any): void; getVisibility(): boolean; /** * Returns the unit agnostic value for this measurement. * In the case where this value represents distance, use [[getUnitMultiplier]] to determine the measurement units. * In other cases, this value will be the angle measurement in degrees. * @returns the measurement value */ getMeasurementValue(): number; /** * Returns the unit multiplier incorporated into the measurement value. * This number is a multiplier of millimeters (for example inches will be `25.4`). * The default value is `1.0`. */ getUnitMultiplier(): number; /** * Sets the measurement text that is rendered with this measurement. * @param measurementText the text to render with this measurement */ setMeasurementText(t: any): void; /** * Returns whether the measurement markup is valid. Override in subclasses when needed. */ isMarkupValid(): boolean; /** @hidden */ _setMeasurementValue(t: any): void; /** * Called when the MarkupItem is removed from a view from the system. * Any cleanup that needs to be done should be performed in this method. * @param view the view to remove from, null if removed from everywhere. */ remove(t: any): void; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @param pickTolerance amount of tolerance allowed for a hit in pixels. * @returns boolean value indicating whether this item was picked */ hitWithTolerance(t: any, e: any, i: any): boolean; /** * Called when this markup item is selected by the system from a given view. * @param view the view where the selection occured */ onSelect(t: any): void; /** * Called when this markup item is deselected by the system */ onDeselect(): void; }; className: string; /** @hidden */ _serializePointArray(t: any): any[]; /** @hidden */ _constructPointArray(t: any): _[]; }; MeasureStraightEdgeLengthMarkup: { new (t: any, e: any, i: any, n: any): { _lineProperties: any; _worldSpaceLength: number; _arrowsInvert: boolean; _name: string; _matrix: any; _unitMultiplier: any; /** @hidden */ setLineGeometry(t: any): void; /** @hidden */ adjust(t: any): void; _updateArrowsInverted(): void; /** @hidden */ update(): void; _behindView: boolean; /** @hidden */ draw(): void; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { name: string; measurePoint1: any; measurePoint2: any; leaderPoint1: any; leaderPoint2: any; textPoint: any; text: any; measurementValue: number; unitMultiplier: any; className: string; matrix: any; }; _toJson(): { name: string; measurePoint1: any; measurePoint2: any; leaderPoint1: any; leaderPoint2: any; textPoint: any; text: any; measurementValue: number; unitMultiplier: any; className: string; matrix: any; }; getClassName(): string; _lineEdgeShape: Ba; _linePositions: any[]; _positions: any[]; _lineShapes: any[]; _stage: number; setMeasurementEdgeColor(t: any): void; reset(): void; getLineEdgeShape(): Ba; _finalized: boolean; _uniqueId: string; _measurementValue: number; _textShape: Fl; _visibility: boolean; _viewer: any; /** * Gets the name of this measurement. * @returns the measurement name */ getName(): string; /** * Sets the name of this measurement * @param name the name to set */ setName(t: any): void; /** @hidden */ _getStage(): number; /** @hidden */ _nextStage(): void; /** @hidden */ _setId(t: any): void; /** @hidden */ _getId(): string; /** @hidden */ _isFinalized(): boolean; setVisibility(t: any): void; getVisibility(): boolean; /** * Returns the unit agnostic value for this measurement. * In the case where this value represents distance, use [[getUnitMultiplier]] to determine the measurement units. * In other cases, this value will be the angle measurement in degrees. * @returns the measurement value */ getMeasurementValue(): number; /** * Returns the unit multiplier incorporated into the measurement value. * This number is a multiplier of millimeters (for example inches will be `25.4`). * The default value is `1.0`. */ getUnitMultiplier(): number; /** * Sets the measurement text that is rendered with this measurement. * @param measurementText the text to render with this measurement */ setMeasurementText(t: any): void; /** * Gets the text for this measurement. By default this will contain the measurement value and units for the model in the cases where the measurement is a distance. * In other cases it will contain the angle in degrees. */ getMeasurementText(): any; /** * Returns whether the measurement markup is valid. Override in subclasses when needed. */ isMarkupValid(): boolean; /** @hidden */ _setMeasurementValue(t: any): void; /** * Called when the MarkupItem is removed from a view from the system. * Any cleanup that needs to be done should be performed in this method. * @param view the view to remove from, null if removed from everywhere. */ remove(t: any): void; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @returns boolean value indicating whether this item was picked */ hit(t: any, e: any): boolean; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @param pickTolerance amount of tolerance allowed for a hit in pixels. * @returns boolean value indicating whether this item was picked */ hitWithTolerance(t: any, e: any, i: any): boolean; /** * Called when this markup item is selected by the system from a given view. * @param view the view where the selection occured */ onSelect(t: any): void; /** * Called when this markup item is deselected by the system */ onDeselect(): void; }; /** * Creates a new [[MeasureStraightEdgeLengthMarkup]] from an object given by [[toJson]]. * @param objData An object given by [[toJson]]. * @returns The prepared object. */ fromJson(t: any, e: any): { _lineProperties: any; _worldSpaceLength: number; _arrowsInvert: boolean; _name: string; _matrix: any; _unitMultiplier: any; /** @hidden */ setLineGeometry(t: any): void; /** @hidden */ adjust(t: any): void; _updateArrowsInverted(): void; /** @hidden */ update(): void; _behindView: boolean; /** @hidden */ draw(): void; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { name: string; measurePoint1: any; measurePoint2: any; leaderPoint1: any; leaderPoint2: any; textPoint: any; text: any; measurementValue: number; unitMultiplier: any; className: string; matrix: any; }; _toJson(): { name: string; measurePoint1: any; measurePoint2: any; leaderPoint1: any; leaderPoint2: any; textPoint: any; text: any; measurementValue: number; unitMultiplier: any; className: string; matrix: any; }; getClassName(): string; _lineEdgeShape: Ba; _linePositions: any[]; _positions: any[]; _lineShapes: any[]; _stage: number; setMeasurementEdgeColor(t: any): void; reset(): void; getLineEdgeShape(): Ba; _finalized: boolean; _uniqueId: string; _measurementValue: number; _textShape: Fl; _visibility: boolean; _viewer: any; /** * Gets the name of this measurement. * @returns the measurement name */ getName(): string; /** * Sets the name of this measurement * @param name the name to set */ setName(t: any): void; /** @hidden */ _getStage(): number; /** @hidden */ _nextStage(): void; /** @hidden */ _setId(t: any): void; /** @hidden */ _getId(): string; /** @hidden */ _isFinalized(): boolean; setVisibility(t: any): void; getVisibility(): boolean; /** * Returns the unit agnostic value for this measurement. * In the case where this value represents distance, use [[getUnitMultiplier]] to determine the measurement units. * In other cases, this value will be the angle measurement in degrees. * @returns the measurement value */ getMeasurementValue(): number; /** * Returns the unit multiplier incorporated into the measurement value. * This number is a multiplier of millimeters (for example inches will be `25.4`). * The default value is `1.0`. */ getUnitMultiplier(): number; /** * Sets the measurement text that is rendered with this measurement. * @param measurementText the text to render with this measurement */ setMeasurementText(t: any): void; /** * Gets the text for this measurement. By default this will contain the measurement value and units for the model in the cases where the measurement is a distance. * In other cases it will contain the angle in degrees. */ getMeasurementText(): any; /** * Returns whether the measurement markup is valid. Override in subclasses when needed. */ isMarkupValid(): boolean; /** @hidden */ _setMeasurementValue(t: any): void; /** * Called when the MarkupItem is removed from a view from the system. * Any cleanup that needs to be done should be performed in this method. * @param view the view to remove from, null if removed from everywhere. */ remove(t: any): void; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @returns boolean value indicating whether this item was picked */ hit(t: any, e: any): boolean; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @param pickTolerance amount of tolerance allowed for a hit in pixels. * @returns boolean value indicating whether this item was picked */ hitWithTolerance(t: any, e: any, i: any): boolean; /** * Called when this markup item is selected by the system from a given view. * @param view the view where the selection occured */ onSelect(t: any): void; /** * Called when this markup item is deselected by the system */ onDeselect(): void; }; className: string; /** @hidden */ _serializePointArray(t: any): any[]; /** @hidden */ _constructPointArray(t: any): _[]; }; }>; Note: Readonly<{ __proto__: null; NoteText: { new (t: any, e: any, i: any, n: any, r: any): { _uniqueId: string; _noteElementId: any; _position: _; _text: string; _color: vt; _sphereRadius: number; _deleted: boolean; _active: boolean; _callbacks: { visibilityChanged: () => void; } | null; _viewer: any; _noteTextManager: any; _selectionPosition: any; _selectionNormal: any; _partId: any; _init(): Promise; _stemInstanceId: any; _sphereInstanceId: any; _matchPartVisibility(): void; updatePosition(): Promise; _pinBoundingBox: any; _restore(t: any): Promise; restore(): Promise; setText(t: any): void; saveTextValue(): void; draw(): Promise; _behindView: boolean; hit(t: any, e: any): boolean; hitWithTolerance(t: any, e: any, i: any): boolean; getClassName(): string; getUniqueId(): string; getSphereInstanceId(): any; getStemInstanceId(): any; onSelect(): void; onDeselect(): void; hide(): void; _show(t: any): void; show(): void; remove(t: any): Promise; getRemoved(): boolean; setColor(t: any): Promise; getColor(): vt; getPartId(): any; _updateColor(): void; _createPinTransformationMatrix(t: any, e: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _createPinStemInstance(t: any): Promise; _createPinSphereInstance(t: any): Promise; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { uniqueId: string; className: string; selectionPosition: any; selectionNormal: any; text: string; color: vt; partId: any; }; _toJson(): { uniqueId: string; className: string; selectionPosition: any; selectionNormal: any; text: string; color: vt; partId: any; }; }; _fromJson(t: any, e: any, i: any): { _uniqueId: string; _noteElementId: any; _position: _; _text: string; _color: vt; _sphereRadius: number; _deleted: boolean; _active: boolean; _callbacks: { visibilityChanged: () => void; } | null; _viewer: any; _noteTextManager: any; _selectionPosition: any; _selectionNormal: any; _partId: any; _init(): Promise; _stemInstanceId: any; _sphereInstanceId: any; _matchPartVisibility(): void; updatePosition(): Promise; _pinBoundingBox: any; _restore(t: any): Promise; restore(): Promise; setText(t: any): void; saveTextValue(): void; draw(): Promise; _behindView: boolean; hit(t: any, e: any): boolean; hitWithTolerance(t: any, e: any, i: any): boolean; getClassName(): string; getUniqueId(): string; getSphereInstanceId(): any; getStemInstanceId(): any; onSelect(): void; onDeselect(): void; hide(): void; _show(t: any): void; show(): void; remove(t: any): Promise; getRemoved(): boolean; setColor(t: any): Promise; getColor(): vt; getPartId(): any; _updateColor(): void; _createPinTransformationMatrix(t: any, e: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _createPinStemInstance(t: any): Promise; _createPinSphereInstance(t: any): Promise; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { uniqueId: string; className: string; selectionPosition: any; selectionNormal: any; text: string; color: vt; partId: any; }; _toJson(): { uniqueId: string; className: string; selectionPosition: any; selectionNormal: any; text: string; color: vt; partId: any; }; } | null; /** * Creates a new [[NoteText]] from an object given by [[toJson]]. * @param An object given by [[toJson]]. * @returns The prepared object. */ fromJson(t: any, e: any, i: any): Promise<{ _uniqueId: string; _noteElementId: any; _position: _; _text: string; _color: vt; _sphereRadius: number; _deleted: boolean; _active: boolean; _callbacks: { visibilityChanged: () => void; } | null; _viewer: any; _noteTextManager: any; _selectionPosition: any; _selectionNormal: any; _partId: any; _init(): Promise; _stemInstanceId: any; _sphereInstanceId: any; _matchPartVisibility(): void; updatePosition(): Promise; _pinBoundingBox: any; _restore(t: any): Promise; restore(): Promise; setText(t: any): void; saveTextValue(): void; draw(): Promise; _behindView: boolean; hit(t: any, e: any): boolean; hitWithTolerance(t: any, e: any, i: any): boolean; getClassName(): string; getUniqueId(): string; getSphereInstanceId(): any; getStemInstanceId(): any; onSelect(): void; onDeselect(): void; hide(): void; _show(t: any): void; show(): void; remove(t: any): Promise; getRemoved(): boolean; setColor(t: any): Promise; getColor(): vt; getPartId(): any; _updateColor(): void; _createPinTransformationMatrix(t: any, e: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _createPinStemInstance(t: any): Promise; _createPinSphereInstance(t: any): Promise; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { uniqueId: string; className: string; selectionPosition: any; selectionNormal: any; text: string; color: vt; partId: any; }; _toJson(): { uniqueId: string; className: string; selectionPosition: any; selectionNormal: any; text: string; color: vt; partId: any; }; } | null>; className: string; }; NoteTextElement: typeof Sy; NoteTextManager: { new (t: any): { _pinSphereMeshId: any; _pinStemMeshId: any; _noteTextList: any[]; _activeItemHandle: any; _activeItem: any; _explodeActive: boolean; _isolateActive: boolean; _stemLength: number; _sphereIterations: number; _viewer: any; _noteTextElement: Sy; _init(): Promise; _createPinStemMeshData(): Cs; _createPinSphereMeshData(): Cs; /** * Retrieves the mesh id of the stem of the note pin, if there is one * @returns MeshId of the note pin stem, or null if there is none */ getPinStemMeshId(): any; /** * Retrieves the mesh id of the spherical head of the note pin, if there is one * @returns MeshId of the note pin sphere, or null if there is none */ getPinSphereMeshId(): any; /** * Retrieves the note text element * @returns note text element */ getNoteTextElement(): Sy; /** * Sets the note text element * @param noteTextElement */ setNoteTextElement(t: any): void; /** * Gets an array of all NoteText items that have been added to the manager * @returns array of all NoteText items */ getNoteTextList(): any[]; /** * Adds a note and makes it active * @param note NoteText to be added to the manager */ addNote(t: any): void; /** * Removes a note from the manager * @param note NoteText to be removed from the manager */ removeNote(t: any): void; /** * Updates note pin visibility based on manager state (namely the current explode state) */ updatePinVisibility(): Promise; /** * Sets manager explode state based on explosion magnitude. Active explosion hides note pins * @param magnitude Explosion magnitude */ explode(t: any): Promise; /** * Gets managers explosion state. Active explosion hides note pins */ getExplodeActive(): boolean; /** * Sets whether an isolate is currently active or not * @param isolateActive */ setIsolateActive(t: any): void; /** * Gets whether an isolate is currently active or not * @returns isolate status */ getIsolateActive(): boolean; /** * Get the currently active note text * @returns Currently active note text */ getActiveItem(): any; /** * Sets a new currently active note text * @param activeItem note text to be marked as currently active */ setActiveItem(t: any): void; /** * Get the active handle string, such as the one returned by [[MarkupManager.registerMarkup]] * @returns Active handle string */ getActiveItemHandle(): any; /** * Set the active handle string, should be provided by [[MarkupManager.registerMarkup]] * @param activeItemHandle Active handle string */ setActiveItemHandle(t: any): void; /** * Attempts to set the active note to the one associated with the * pins elected by the provided [[SelectionItem]] * @param selection SelectionItem to attempt to find note from */ selectPin(t: any): boolean; /** * Checks if a nodeId is part of a note pin * @param nodeId NodeId to be checked */ checkPinInstance(t: any): boolean; _getNoteTextFromNodeId(t: any): any; /** * Checks if a UUID is associated with any existing notes * @param id UUID to check */ findById(t: any): boolean; /** * Loads notes from an iterable of JSON data like that returned by [[exportMarkup]] * @param notes JSON note data iterable */ loadData(t: any): Promise; /** * Exports note texts to an array of JSON Objects that can be restored via [[loadData]] * @returns Array of JSON objects representing notes */ exportMarkup(): any[]; }; _globalPinSphereMeshData: any; _globalPinStemMeshData: any; }; }>; Redline: Readonly<{ __proto__: null; RedlineCircle: { new (t: any): { _uniqueId: string; _centerPt: _; _radiusPt: _; _circleShape: Gr; _previousDragPlanePosition: _; setCenter(t: any): void; getCenter(): _; setRadiusPoint(t: any): void; getRadiusPoint(): _; getUniqueId(): string; _update(t: any): void; draw(t: any, e: any): void; hit(t: any, e: any): boolean; hitWithTolerance(t: any, e: any, i: any): boolean; onSelect(): void; onDeselect(): void; isValid(): boolean; onDragStart(t: any, e: any): boolean; onDragMove(t: any, e: any): boolean; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { uniqueId: string; centerPoint: { x: any; y: any; z: any; }; radiusPoint: { x: any; y: any; z: any; }; className: string; }; _toJson(): { uniqueId: string; centerPoint: { x: any; y: any; z: any; }; radiusPoint: { x: any; y: any; z: any; }; className: string; }; getClassName(): string; _viewer: any; onDragEnd(t: any, e: any): boolean; remove(t: any): void; _behindView: boolean; }; /** * Creates a new [[RedlineCircle]] from an object given by [[toJson]]. * @param objData An object given by [[toJson]]. * @returns The prepared object. */ fromJson(t: any, e: any): { _uniqueId: string; _centerPt: _; _radiusPt: _; _circleShape: Gr; _previousDragPlanePosition: _; setCenter(t: any): void; getCenter(): _; setRadiusPoint(t: any): void; getRadiusPoint(): _; getUniqueId(): string; _update(t: any): void; draw(t: any, e: any): void; hit(t: any, e: any): boolean; hitWithTolerance(t: any, e: any, i: any): boolean; onSelect(): void; onDeselect(): void; isValid(): boolean; onDragStart(t: any, e: any): boolean; onDragMove(t: any, e: any): boolean; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { uniqueId: string; centerPoint: { x: any; y: any; z: any; }; radiusPoint: { x: any; y: any; z: any; }; className: string; }; _toJson(): { uniqueId: string; centerPoint: { x: any; y: any; z: any; }; radiusPoint: { x: any; y: any; z: any; }; className: string; }; getClassName(): string; _viewer: any; onDragEnd(t: any, e: any): boolean; remove(t: any): void; _behindView: boolean; }; className: string; _validRadiusTolerance: number; }; RedlinePolyline: { new (t: any): { _uniqueId: string; _points: any[]; _polylineShape: Ba; _previousDragPlanePosition: _; addPoint(t: any): void; getPoints(): any[]; _update(t: any): void; draw(t: any, e: any): void; hit(t: any, e: any): boolean; hitWithTolerance(t: any, e: any, i: any): boolean; onSelect(): void; onDeselect(): void; getClassName(): string; isValid(): boolean; onDragStart(t: any, e: any): boolean; onDragMove(t: any, e: any): boolean; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { uniqueId: string; points: any[]; }; _toJson(): { uniqueId: string; points: any[]; }; _viewer: any; onDragEnd(t: any, e: any): boolean; remove(t: any): void; _behindView: boolean; }; /** * Creates a new [[RedlinePolyline]] from an object given by [[toJson]]. * @param objData An object given by [[toJson]]. * @returns The prepared object. */ fromJson(t: any, e: any): { _uniqueId: string; _points: any[]; _polylineShape: Ba; _previousDragPlanePosition: _; addPoint(t: any): void; getPoints(): any[]; _update(t: any): void; draw(t: any, e: any): void; hit(t: any, e: any): boolean; hitWithTolerance(t: any, e: any, i: any): boolean; onSelect(): void; onDeselect(): void; getClassName(): string; isValid(): boolean; onDragStart(t: any, e: any): boolean; onDragMove(t: any, e: any): boolean; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { uniqueId: string; points: any[]; }; _toJson(): { uniqueId: string; points: any[]; }; _viewer: any; onDragEnd(t: any, e: any): boolean; remove(t: any): void; _behindView: boolean; }; className: string; }; RedlineRectangle: { new (t: any): { _uniqueId: string; _point1: _; _point2: _; _rectangleShape: vd; _previousDragPlanePosition: _; setPoint1(t: any): void; getPoint1(): _; setPoint2(t: any): void; getPoint2(): _; getUniqueId(): string; _update(t: any): void; draw(t: any, e: any): void; hit(t: any, e: any): boolean; hitWithTolerance(t: any, e: any, i: any): boolean; onSelect(): void; onDeselect(): void; isValid(): boolean; onDragStart(t: any, e: any): boolean; onDragMove(t: any, e: any): boolean; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { uniqueId: string; className: string; point1: { x: any; y: any; z: any; }; point2: { x: any; y: any; z: any; }; }; _toJson(): { uniqueId: string; className: string; point1: { x: any; y: any; z: any; }; point2: { x: any; y: any; z: any; }; }; getClassName(): string; _viewer: any; onDragEnd(t: any, e: any): boolean; remove(t: any): void; _behindView: boolean; }; /** * Creates a new [[RedlineRectangle]] from an object given by [[toJson]]. * @param objData An object given by [[toJson]]. * @returns The prepared object. */ fromJson(t: any, e: any): { _uniqueId: string; _point1: _; _point2: _; _rectangleShape: vd; _previousDragPlanePosition: _; setPoint1(t: any): void; getPoint1(): _; setPoint2(t: any): void; getPoint2(): _; getUniqueId(): string; _update(t: any): void; draw(t: any, e: any): void; hit(t: any, e: any): boolean; hitWithTolerance(t: any, e: any, i: any): boolean; onSelect(): void; onDeselect(): void; isValid(): boolean; onDragStart(t: any, e: any): boolean; onDragMove(t: any, e: any): boolean; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { uniqueId: string; className: string; point1: { x: any; y: any; z: any; }; point2: { x: any; y: any; z: any; }; }; _toJson(): { uniqueId: string; className: string; point1: { x: any; y: any; z: any; }; point2: { x: any; y: any; z: any; }; }; getClassName(): string; _viewer: any; onDragEnd(t: any, e: any): boolean; remove(t: any): void; _behindView: boolean; }; className: string; _validSizeTolerance: K; }; RedlineText: { new (t: any, e?: string): { _uniqueId: string; _position: _; _size: K; _redlineTextElements: Map; _previousDragPlanePosition: _; _callbacks: { selectionArray: () => void; } | null; _text: string; setPosition(t: any): void; getPosition(): _; setSize(t: any): void; getSize(): Point; setText(t: any): void; getText(): string; registerCallback(): void; unregisterCallback(): void; createTextElement(): { _sizeChanged: boolean; _sizeUpdateCallback: any; _textUpdateCallback: any; _createTextBox(): void; _currentSize: any; _textArea: HTMLTextAreaElement | undefined; setPosition(t: any): void; setBorderWidth(t: any): void; setText(t: any): void; setSize(t: any): void; focus(): void; blur(): void; getTextArea(): HTMLTextAreaElement | undefined; }; draw(t: any, e: any): void; hit(t: any, e: any): boolean; hitWithTolerance(t: any, e: any, i: any): boolean; getClassName(): string; onSelect(t: any): void; onDeselect(): void; isValid(): boolean; remove(t: any): void; onDragStart(t: any, e: any): boolean; onDragMove(t: any, e: any): boolean; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { uniqueId: string; className: string; position: { x: any; y: any; z: any; }; size: { x: any; y: any; }; text: string; }; _toJson(): { uniqueId: string; className: string; position: { x: any; y: any; z: any; }; size: { x: any; y: any; }; text: string; }; _viewer: any; onDragEnd(t: any, e: any): boolean; _behindView: boolean; }; /** * Creates a new [[RedlineText]] from an object given by [[toJson]]. * @param objData An object given by [[toJson]]. * @returns The prepared object. */ fromJson(t: any, e: any): { _uniqueId: string; _position: _; _size: K; _redlineTextElements: Map; _previousDragPlanePosition: _; _callbacks: { selectionArray: () => void; } | null; _text: string; setPosition(t: any): void; getPosition(): _; setSize(t: any): void; getSize(): Point; setText(t: any): void; getText(): string; registerCallback(): void; unregisterCallback(): void; createTextElement(): { _sizeChanged: boolean; _sizeUpdateCallback: any; _textUpdateCallback: any; _createTextBox(): void; _currentSize: any; _textArea: HTMLTextAreaElement | undefined; setPosition(t: any): void; setBorderWidth(t: any): void; setText(t: any): void; setSize(t: any): void; focus(): void; blur(): void; getTextArea(): HTMLTextAreaElement | undefined; }; draw(t: any, e: any): void; hit(t: any, e: any): boolean; hitWithTolerance(t: any, e: any, i: any): boolean; getClassName(): string; onSelect(t: any): void; onDeselect(): void; isValid(): boolean; remove(t: any): void; onDragStart(t: any, e: any): boolean; onDragMove(t: any, e: any): boolean; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { uniqueId: string; className: string; position: { x: any; y: any; z: any; }; size: { x: any; y: any; }; text: string; }; _toJson(): { uniqueId: string; className: string; position: { x: any; y: any; z: any; }; size: { x: any; y: any; }; text: string; }; _viewer: any; onDragEnd(t: any, e: any): boolean; _behindView: boolean; }; className: string; defaultText: string; }; RedlineTextElement: { new (t: any, e: any): { _sizeChanged: boolean; _sizeUpdateCallback: any; _textUpdateCallback: any; _createTextBox(): void; _currentSize: any; _textArea: HTMLTextAreaElement | undefined; setPosition(t: any): void; setBorderWidth(t: any): void; setText(t: any): void; setSize(t: any): void; focus(): void; blur(): void; getTextArea(): HTMLTextAreaElement | undefined; }; _defaultSize: K; }; }>; }>; Measure: Readonly<{ __proto__: null; MeasureBodyBodyDistanceOperator: typeof my; MeasureEdgeLengthOperator: typeof _y; MeasureFaceFaceAngleOperator: typeof yy; MeasureFaceFaceDistanceOperator: typeof wy; MeasureLineLineAngleOperator: typeof by; MeasurePointPointDistanceOperator: typeof xy; MeasurePolygonAreaAnchor: any; MeasurePolygonAreaOperator: typeof Iy; MeasurePolylineDistanceAnchor: any; MeasurePolylineDistanceOperator: typeof Cy; PointCursor: typeof Vh; SelectionPoints: typeof vy; Stage: any; worldPointToScreenPoint: typeof Ru; }>; NavCubeOperator: typeof Fy; NoteOperator: typeof By; OperatorBase: typeof Ai; RayDrillSelectionOperator: typeof Vy; Redline: Readonly<{ __proto__: null; RedlineCircleOperator: typeof ky; RedlineOperator: typeof zh; RedlinePolylineOperator: typeof My; RedlineRectangleOperator: typeof Ey; RedlineTextOperator: typeof Ay; }>; SelectionOperator: typeof zy; SelectionRectangleMarkup: typeof Dg; SpaceMouseOperator: typeof Hy; }>; declare var yc: any; declare const QC: Readonly<{ __proto__: null; OverlayManager: typeof j_; OverlayUnitPoint: typeof $o; OverlayViewport: typeof U_; }>; declare var qe: any; declare var Fe: any; declare class Rs extends oe { } declare class Si { constructor(t?: any); respectVisibility: boolean; forceEffectiveVisibilityMask: any; forceEffectiveSceneVisibilityMask: any; respectDepthRange: boolean; oneEntityPerTypePerInstance: boolean; restrictLinesAndPointsToSelectedFaceInstances: boolean; enableProximityFaces: boolean; ignoreCappingGeometry: boolean; ignoreOverlays: boolean; restrictToOverlays: boolean; selectionMask: any; /** Returns a copy of this [[PickConfig]]. */ copy(): Si; set allowFaces(t: boolean); get allowFaces(): boolean; set allowLines(t: boolean); get allowLines(): boolean; set allowPoints(t: boolean); get allowPoints(): boolean; } declare class Oo extends oe { /** * Creates a new PickOutsideCanvasError */ constructor(); } declare let ln: { new (): { normal: _; d: number; setFromPointAndNormal(t: any, e: any): any; /** * Update the plane to pass through the three points */ setFromPoints(t: any, e: any, i: any): void; setFromCoefficients(t: any, e: any, i: any, n: any): void; getCoefficients(): any[]; distanceToPoint(t: any): number; rayIntersection(t: any): _ | null; intersectsRay(t: any, e: any): boolean; /** * Returns true if the point is on the side of the plane that the plane's normal is directed. Returns false otherwise. * @param p The point to test. */ determineSide(t: any): boolean; /** * Creates a copy of this plane * @returns a copy of this plane object */ copy(): any; /** * Sets this plane equal to another plane * @param plane the plane to assign */ assign(t: any): void; /** * Returns true if the normal and d value are the same. * @param plane */ equals(t: any): boolean; }; createFromPointAndNormal(t: any, e: any): { normal: _; d: number; setFromPointAndNormal(t: any, e: any): any; /** * Update the plane to pass through the three points */ setFromPoints(t: any, e: any, i: any): void; setFromCoefficients(t: any, e: any, i: any, n: any): void; getCoefficients(): any[]; distanceToPoint(t: any): number; rayIntersection(t: any): _ | null; intersectsRay(t: any, e: any): boolean; /** * Returns true if the point is on the side of the plane that the plane's normal is directed. Returns false otherwise. * @param p The point to test. */ determineSide(t: any): boolean; /** * Creates a copy of this plane * @returns a copy of this plane object */ copy(): any; /** * Sets this plane equal to another plane * @param plane the plane to assign */ assign(t: any): void; /** * Returns true if the normal and d value are the same. * @param plane */ equals(t: any): boolean; }; createFromPoints(t: any, e: any, i: any): { normal: _; d: number; setFromPointAndNormal(t: any, e: any): any; /** * Update the plane to pass through the three points */ setFromPoints(t: any, e: any, i: any): void; setFromCoefficients(t: any, e: any, i: any, n: any): void; getCoefficients(): any[]; distanceToPoint(t: any): number; rayIntersection(t: any): _ | null; intersectsRay(t: any, e: any): boolean; /** * Returns true if the point is on the side of the plane that the plane's normal is directed. Returns false otherwise. * @param p The point to test. */ determineSide(t: any): boolean; /** * Creates a copy of this plane * @returns a copy of this plane object */ copy(): any; /** * Sets this plane equal to another plane * @param plane the plane to assign */ assign(t: any): void; /** * Returns true if the normal and d value are the same. * @param plane */ equals(t: any): boolean; }; createFromCoefficients(t: any, e: any, i: any, n: any): { normal: _; d: number; setFromPointAndNormal(t: any, e: any): any; /** * Update the plane to pass through the three points */ setFromPoints(t: any, e: any, i: any): void; setFromCoefficients(t: any, e: any, i: any, n: any): void; getCoefficients(): any[]; distanceToPoint(t: any): number; rayIntersection(t: any): _ | null; intersectsRay(t: any, e: any): boolean; /** * Returns true if the point is on the side of the plane that the plane's normal is directed. Returns false otherwise. * @param p The point to test. */ determineSide(t: any): boolean; /** * Creates a copy of this plane * @returns a copy of this plane object */ copy(): any; /** * Sets this plane equal to another plane * @param plane the plane to assign */ assign(t: any): void; /** * Returns true if the normal and d value are the same. * @param plane */ equals(t: any): boolean; }; }; declare var S_: any; declare var ch: any; declare var C_: any; declare class K { /** * Creates a new [[Point2]] from an object given by [[toJson]]. * @param objData An object given by [[toJson]]. * @returns The prepared object. */ static fromJson(t: any): K; /** * Subtracts a point from another * @param {Point2} pt1 initial point * @param {Point2} pt2 the point to subtract * @returns {Point2} new point set to pt1 - pt2 */ static subtract(t: any, e: any): Point2; /** * Adds two points * @param {Point2} pt1 initial point * @param {Point2} pt2 the point to add * @returns {Point2} new point set to pt1 + pt2 */ static add(t: any, e: any): Point2; /** * Scale a point by a constant factor * @param {Point2} pt Point to be scaled * @param {number} k Amount to scale by * @returns {Point2} The scaled point */ static scale(t: any, e: any): Point2; /** * Calculate distance between two points * @param {Point2} p1 first point * @param {Point2} p2 second point * @returns {number} the distance between p1 and p2 */ static distance(t: any, e: any): number; /** * Creates a point initialized to (0,0) * @returns {Point} The new point */ static zero(): Point; static fromPoint3(t: any): K; /** * Creates a new point * @param {number} x value to set for x * @param {number} y value to set for y */ constructor(t: any, e: any); x: any; y: any; /** * Sets this point equal to another point * @param {Point2} pt the point whose values will be used to set this object * @returns {Point2} the point object */ assign(t: any): Point2; /** * Adds a point to this one * @param {Point2} pt the point whose values will be added * @returns {Point2} the point object */ add(t: any): Point2; /** * Subtracts a point from this one * @param {Point2} pt the point whose values will be subtracted * @returns {Point2} the point object */ subtract(t: any): Point2; /** * Scales the point by a constant value * @param {number} k the value to scale by * @returns {Point2} the point object */ scale(t: any): Point2; /** * Compares this point with another point * @param {Point2} pt the point to compare with * @returns {Boolean} True if the values of this point equal the other. False otherwise. */ equals(t: any): boolean; /** * Sets the values of this point * @param {number} x value to set for x * @param {number} y value to set for y * @returns {Point2} the point object */ set(t: any, e: any): Point2; /** * Creates a copy of this point * @returns {Point} Copy of this point */ copy(): Point; /** * Returns the length of this point * @returns {number} the point length */ length(): number; /** * Returns the squared length of this vector. * @returns Vector squared length. */ squaredLength(): number; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { x: any; y: any; }; } declare class _ { /** * Creates a new [[Point3]] from an object given by [[toJson]]. * @param objData An object given by [[toJson]]. * @returns The prepared object. */ static fromJson(t: any): _; /** * Creates a new Point initialized to (0,0,0). * @returns New point with all elements set to 0. */ static zero(): _; /** * Adds two points. * @param p1 First point. * @param p2 Second point. * @returns Sum of p1 and p2. */ static add(t: any, e: any): _; /** * Subtract two points. * @param p1 First point. * @param p2 Second point. * @returns Difference of p1 and p2. */ static subtract(t: any, e: any): _; /** * Calculate dot product. * @param p1 First point. * @param p2 Second point. * @returns Dot product of p1 and p2. */ static dot(t: any, e: any): number; /** * Calculate cross product. * @param p1 First point. * @param p2 Second point. * @returns Cross product of p1 and p2. */ static cross(t: any, e: any): _; /** * Calculate distance between two points * @param p1 First point * @param p2 Second point * @returns Distance between p1 and p2 */ static distance(t: any, e: any): number; /** * Scale a point by a constant factor * @param p1 Point to scale * @param k Constant value to scale byS * @returns Copy of p scaled by a constant factor */ static scale(t: any, e: any): any; /** * Creates a point from an array of numbers * @param Array to assign from * @returns new point set from array elements */ static createFromArray(t: any): _; /** * Creates a new point object. * @param x X value * @param y Y value * @param z Z value */ constructor(t: any, e: any, i: any); x: any; y: any; z: any; /** * Sets this point equal to another point. * @param point The point to assign. * @returns This point object. */ assign(t: any): this; /** * Sets the values of this point. * @param x X value to set. * @param y Y value to set. * @param z Z value to set. * @returns This point object. */ set(t: any, e: any, i: any): this; /** * Sets an array from this point. * @param arr Array to assign. */ toArray(t?: number[]): number[]; /** * Sets this point from an array. * @param arr Array to assign from. * @returns This point object. */ fromArray(t: any): this; /** * Adds another point to this point. * @param point Point to add. * @returns This point object. */ add(t: any): this; /** * Subtracts another point from this point. * @param point Point to subtract. * @returns This point object. */ subtract(t: any): this; /** * Creates a copy of this point. * @returns Copy of this point object. */ copy(): _; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { x: any; y: any; z: any; }; /** * Strictly compares this point with another. * @param other Point to compare with. * @returns True if the values of this point equal those of the other. */ equals(t: any): boolean; /** * Compares this point with another using a tolerance. * @param other Point to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this point equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Returns a boolean value indicating if this vector lies on a major axis. */ isAxis(): boolean; /** * Returns the length of this vector. * @returns Vector length. */ length(): number; /** * Returns the squared length of this vector. * @returns Vector squared length. */ squaredLength(): number; /** * Scale the point by constant value. * @param k Constant value to scale by. * @returns Point object. */ scale(t: any): this; /** * Normalizes the vector. * @returns This object. */ normalize(): this; /** * Negates the point. * @returns This object. */ negate(): this; } declare class Hr { static zero(): Hr; constructor(t: any, e: any, i: any, n: any); x: any; y: any; z: any; w: any; scale(t: any): this; set(t: any, e: any, i: any, n: any): void; assign(t: any): void; /** * Strictly compares this point with another. * @param other Point to compare with. * @returns True if the values of this point equal those of the other. */ equals(t: any): boolean; /** * Compares this point with another using a tolerance. * @param other Point to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this point equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; } declare class mx extends Uy { /** * @param type The light's type. See [[type]]. * @param space The space in which a light is defined. See [[space]] * @param position The light's position. See [[position]]. * @param color The light's color. See [[color]]. * @param power The light's power. See [[power]]. * @param decay The light's power. See [[decay]]. */ constructor(t: any, e: any, i: any, n: any, r: any, o: any); power: any; decay: any; } declare class Tv { constructor(t: any, e: any, i?: number); vertexData: any; rgba32data: any; bits: number; } declare var Rf: any; declare var Of: any; declare class Av { constructor(t: any, e: any, i?: number); vertexData: any; rgba32data: any; bits: number; } declare var ri: any; declare let Zn: { new (t: any, e: any, i: any, n: any): { x: any; y: any; z: any; w: any; set(t: any, e: any, i: any, n: any): void; assign(t: any): void; copy(): any; equals(t: any): boolean; equalsWithTolerance(t: any, e: any): boolean; fromArray(t: any): any; toArray(t: any): any; negate(): any; magnitudeSquared(): number; magnitude(): number; normalize(): any; }; add(t: any, e: any): { x: any; y: any; z: any; w: any; set(t: any, e: any, i: any, n: any): void; assign(t: any): void; copy(): any; equals(t: any): boolean; equalsWithTolerance(t: any, e: any): boolean; fromArray(t: any): any; toArray(t: any): any; negate(): any; magnitudeSquared(): number; magnitude(): number; normalize(): any; }; subtract(t: any, e: any): { x: any; y: any; z: any; w: any; set(t: any, e: any, i: any, n: any): void; assign(t: any): void; copy(): any; equals(t: any): boolean; equalsWithTolerance(t: any, e: any): boolean; fromArray(t: any): any; toArray(t: any): any; negate(): any; magnitudeSquared(): number; magnitude(): number; normalize(): any; }; identity(): { x: any; y: any; z: any; w: any; set(t: any, e: any, i: any, n: any): void; assign(t: any): void; copy(): any; equals(t: any): boolean; equalsWithTolerance(t: any, e: any): boolean; fromArray(t: any): any; toArray(t: any): any; negate(): any; magnitudeSquared(): number; magnitude(): number; normalize(): any; }; toMatrix(t: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; createFromMatrix(t: any): { x: any; y: any; z: any; w: any; set(t: any, e: any, i: any, n: any): void; assign(t: any): void; copy(): any; equals(t: any): boolean; equalsWithTolerance(t: any, e: any): boolean; fromArray(t: any): any; toArray(t: any): any; negate(): any; magnitudeSquared(): number; magnitude(): number; normalize(): any; }; interpolate(t: any, e: any, i: any): { x: any; y: any; z: any; w: any; set(t: any, e: any, i: any, n: any): void; assign(t: any): void; copy(): any; equals(t: any): boolean; equalsWithTolerance(t: any, e: any): boolean; fromArray(t: any): any; toArray(t: any): any; negate(): any; magnitudeSquared(): number; magnitude(): number; normalize(): any; }; _arccos(t: any): number; _epsilon: number; }; declare class wr { constructor(t: any, e: any); origin: _; direction: _; /** * Creates a copy of this ray * @returns {Ray} a copy of this ray object */ copy(): Ray; /** * Sets this ray equal to another ray * @param {Ray} ray the ray to assign */ assign(t: any): this; /** * Flips the ray's direction. */ negate(): this; } declare class Sb { bodyId: number; subElementType: number; subElementIndex: number; } declare var P_: any; declare var lh: any; declare const UC: Readonly<{ __proto__: null; AntiAliasingMode: any; AttachScope: any; BimMask: any; BimType: any; BlurIntervalUnit: any; ColorType: any; CullingVectorSpace: any; CuttingSectionKey: any; DataKey: any; DrawMode: any; DrawStrategy: any; ElementMask: any; ElementType: any; GroupKey: any; HighlightFilter: any; HighlightMode: any; ImageFormat: any; ImageKey: any; InclusionKey: any; InstanceKey: any; Key: any; LightKey: any; LightSpace: any; LightType: any; LinePatternLengthUnit: any; MasterModelKey: any; MatrixKey: any; MeshKey: any; ModelKey: any; OverlayAnchor: any; OverlayUnit: any; PointShape: any; PointSizeUnit: any; Projection: any; SessionType: any; SetVisibility: any; SimpleReflectionAttenuationUnit: any; SmaaQuality: any; StateFailure: any; StreamcacheModule: { new (): {}; createInstance(t: any): Promise<{}>; catchExceptions(t: any, e: any): (...i: any[]) => void; getElement(t: any): any; getAvailableCore(): any; getWasmBinary(t: any): Promise; createRenderCanvas(t: any): OffscreenCanvas; createCore(t: any, e: any): { $$available: boolean; $$facade: any; callAfterMap: { index: number; indexedWrappers: {}; }; canvas: any; wasmBinary: any; }; getCore(t: any, e: any): Promise<{ core: any; isNew: boolean; }>; getFacade(t: any): { facade: any; args: any; }; setupNewView(t: any, e: any, i: any): void; createWrapper(): HTMLDivElement; createSubContainer(t: any, e: any): HTMLDivElement; createScInstance(t: any): Promise; core_pool: any[]; }; TextureInterpolation: any; TextureMipMapping: any; TextureModifier: any; TextureParameterization: any; TextureTiling: any; TransparencyMode: any; UnspecifiedMeasurementUnit: number; ViewKey: any; XRayGroup: any; getStateFailure: typeof Gm; isError: typeof ha; }>; declare var xb: any; declare const e1: Readonly<{ __proto__: null; CompositeSelectionItem: typeof rd; FaceEntity: typeof Rh; IncrementalSelectionId: typeof xc; LineEntity: typeof Lh; NodeCounts: typeof G_; Op: any; PointEntity: typeof Fh; SelectionItem: typeof _i; SelectionManager: typeof Cd; TemporalLink: typeof $_; ifcSelectionFilter: typeof jf; }>; declare var Tr: any; declare class no extends oe { /** * Creates a new SelectionInvalidatedError */ constructor(); } declare var Se: any; declare var xn: any; declare var On: any; declare class xx { constructor(t: any, e: any, i: any, n: any); _activeSheetId: any; _backgroundSheetMeshId: any; _sheetIds: null[]; _backgroundSheetEnabled: boolean; _backgroundSelectionEnabled: boolean; _backgroundColor: vt; _sheetColor: vt; _sheetShadowColor: vt; _viewer: any; _engine: any; _callbackManager: any; /** * @returns an array of 2D [[SheetId]]s. */ getSheetIds(): any; /** * Returns Ids of sheet nodes which contain 3D data. */ get3DNodes(): any[]; /** * Deactivate sheets and only display 3D content * @param triggerCallback triggers a "sheetDeactivated" callback if true * @param ignoreFitNodes camera will not fit nodes if true * @returns promise that resolves when the operation has completed */ deactivateSheets(t?: boolean, e?: boolean): Promise; /** * Sets the id of the current active sheet * @param activeSheetId id of the sheet which will be activated. * @param isolateNodes indicates whether the nodes in the sheet should be isolated * @param fitNodes indicates whether a fit world should be performed after isolating the nodes. Note: This parameter has no effect if `isolateNodes` is `false`. * @returns promise that resolves when the operation has completed */ setActiveSheetId(t: any, e?: boolean, i?: boolean): Promise; _activateSheetId(t: any, e: any, i: any): Promise; /** * @returns gets the id of the current active sheet. null if none has been set. */ getActiveSheetId(): any; /** * @returns true if a drawing sheet is activated, false otherwise */ isDrawingSheetActive(): any; /** @hidden */ setMarkupManager(t: any): void; _markupManager: any; _createBackgroundSheetMesh(): Promise; _createBackgroundSheetMatrix(t: any, e: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _createBackgroundSheetInstance(t: any, e: any, i: any, n: any, r: any, o: any): Promise; /** * Deletes background sheets described by sheetTypes, but only if they exist. * @param sheetTypes An array with the sheets to delete. Omitting will delete all sheets. */ _deleteBackgroundSheetInstances(t?: number[]): Promise; /** * Creates the sheet-type into our array, or if the sheet already exists updates the necessary state values */ _createOrUpdateSheet(t: any, e: any, i: any, n: any, r: any, o: any): Promise; /** * Refreshes the background sheets used for 2D drawings. */ _refreshBackgroundSheets(): Promise; /** * Sets custom sheet colors. * @param backgroundColor viewer background color. * @param sheetColor sheet background color. * @param sheetShadowColor sheet shadow effect color. */ setSheetColors(t: any, e: any, i: any): Promise; /** * Gets the sheet Background Color. */ getSheetBackgroundColor(): vt; /** * Gets the Sheet Color. */ getSheetColor(): vt; /** * Gets the Sheet Shadow Color. */ getSheetShadowColor(): vt; /** * Enables or disables the background sheet used for 2D drawings. */ setBackgroundSheetEnabled(t: any): Promise; /** * Gets the current state of the background sheet. * @returns `true` if enabled and `false` otherwise. */ getBackgroundSheetEnabled(): boolean; /** * Sets whether the background for 2D drawings is selectable. By default it is not. * 2D drawings have an invisible selection plane with a single face. Note that this setting * is unaffected by the background-sheet enable setting. */ setBackgroundSelectionEnabled(t: any): Promise; /** Gets the current state of the background sheet. * @returns `true` if enabled and `false` otherwise. */ getBackgroundSelectionEnabled(): boolean; /** * Enables a visual comparison of two drawing sheets. The nodes specified * by `sheetId1` are filled with one color, the nodes specified by * `sheetId2` with another color, and overlapping areas are filled * with a third color. * * See [[endSheetComparison]], [[View.startComparison]]. * * @param sheetId1 the drawing sheet to compare against `sheetId2` * @param sheetId2 the drawing sheet to compare against `sheetId1` * @param config settings controlling the behavior of the comparison */ startComparison(t: any, e: any, i: any): Promise; /** * Disables a visual comparison of two drawing sheets enabled by * [[startSheetComparison]]. The `Promise` returned by that function * should be waited upon before calling [[endSheetComparison]]. */ endComparison(): Promise; } declare var Lf: any; declare class Ix { /** * Creates a new SnapshotConfig object. */ constructor(t?: number, e?: number, i?: any, n?: any); viewKey: any; width: number; height: number; layers: any; } declare var Oc: any; declare var Lo: any; declare class Tc { constructor(t: any); attributes: any; copy(): Tc; } declare const ev: "¹"; declare const Tp: "²"; declare const Np: "³"; declare const of: "⁻"; declare class Xp { svgXmlPrologEnabled: boolean; svgBackgroundCssColor: string; silhouettesEnabled: boolean; linesDrawModelLinesEnabled: boolean; linesStrokeWidth: number; linesCssColor: string; linesClipProximityToPlane: number; linesClipZNudgeFactor: number; polygonsForceDrawCssColor: string; logProgress: boolean; logDiagnostics: boolean; } declare var Nb: any; declare var Tb: any; declare var Ff: any; declare var Eu: any; declare var Cb: any; declare var Ab: any; declare const jC: Readonly<{ __proto__: null; ActionQueue: typeof Ac; CurrentAction: typeof fo; Lazy: typeof Is; StateMachine: typeof Lv; Timer: typeof Xo; TimerIdleType: any; TypeAssert: typeof Rv; TypeAssertNever: typeof $r; _timerStressTest: typeof Wv; copyMap: typeof gd; copySet: typeof yv; createCylinderMeshDataFromArc: typeof i_; createOpenPromise: typeof wi; createTrackedOpenPromise: typeof pd; createUnsafePromise: typeof No; delayCall: typeof Fv; exchangeIdEqual: typeof Bv; filterInPlace: typeof Sv; generateConeCylinderMeshData: typeof dg; generateSphereMeshData: typeof t_; isCircleElement: typeof zv; isFace: typeof jv; isLineElement: typeof Vv; isOtherEdgeElement: typeof Hv; isPlaneElement: typeof Uv; setSubtraction: typeof Sf; setToArray: typeof ao; sleep: typeof md; toSet: typeof Ec; waitForAll: typeof Ge; }>; declare class jy { constructor(t: any, e: any); top: any; bottom: any; } declare class Jp { /** @hidden */ constructor(t: any, e: any, i: any, n: any, r: any, o: any); _backfacesVisible: boolean; _initialCamera: any; _lineVisibility: boolean; _faceVisibility: boolean; _boundingCalculationIgnoresInvisible: boolean; _backgroundColorTop: any; _backgroundColorBottom: any; _drawMode: any; _ambientOcclusionEnabled: boolean; _ambientOcclusionRadius: number; _antiAliasingMode: any; _lightingEnabled: boolean; _ambientLightColor: vt; _massageExtremeCameras: boolean; _bloomEnabled: boolean; _bloomThreshold: number; _bloomThresholdRampWidth: number; _bloomIntensityScale: number; _bloomLayers: any[]; _simpleShadowEnabled: boolean; _simpleReflectionEnabled: boolean; _silhouetteEnabled: boolean; _hardEdgesEnabled: boolean; _imageBasedLightingEnabled: boolean; _lineJitterEnabled: boolean; _hiddenLineSettings: Mx; _projectionMode: any; _drawStrategy: any; _id: any; _viewer: any; _engine: any; _callbackManager: any; _interpolationManager: any; operatorManager: bx; _eventDispatcher: Cx; _model: any; _statistics: Ax; _navCube: { _position: $o; _viewportSize: $o; _anchor: any; _dimension: number; _fieldSize: number; _instanceKeys: any[]; _enabled: boolean; _textImageId: any; _selectionFaceColor: vt; _outlineColor: vt; _lastSelectedNodes: any[]; _nodeIds: any[]; _adjacentFaces: any[]; _preserveModelUp: boolean; _cameraRotation: number; _lastOrientation: any; _lastCamera: any; _lastFaceIndex: any; _textWidths: any[]; _sceneReady: Promise; _assemblyTreeReady: Promise; _navcubeReadyToInit: Promise[]; _texturesReady: boolean; _geometryCreated: boolean; _viewer: any; _view: any; _fontSize: number; _fontInfo: string; _textureSize: number; /** * Sets the anchor position for the NavCube. * @param anchor the anchor position. */ setAnchor(t: any): Promise; /** * Gets the anchor position for the NavCube. Default position is in the UpperRightCorner, see [[OverlayAnchor]] for more details. */ getAnchor(): any; /** * Enables the NavCube. */ enable(): Promise; /** * Disables the NavCube. */ disable(): Promise; /** * Determines if model up or camera up will the preserved when navigating with the NavCube. * If model up is preserved, navigation with the NavCube will keep the model upright all the time. * If camera up is preserved, navigation with the NavCube will attempt to preserve the current up direction of * the camera as much as possible. * Defaults to `true`. * @param preserve If true, model up is preserved. Otherwise, camera up is preserved. */ setPreserveModelUp(t: any): void; /** * Gets the NavCube preserveModelUp state. * @returns true if model up is preserved, false if camera up is preserved. */ getPreserveModelUp(): boolean; /** * Sets the visibility for the NavCube based on the enabled and textures state. */ _updateVisibility(): void; /** * Hides the overlay window */ _hideOverlay(): void; /** * Shows the overlay window */ _showOverlay(): void; /** * Gets whether the NavCube is currently enabled. */ getEnabled(): boolean; /** * Gets the associated overlay id. */ getOverlayId(): any; _setTextures(): Promise; _updateViewport(): void; _createViewport(): void; _onViewportSet(): void; _createGeometry(): Promise; _createTexture(t: any, e: any): any; /** @hidden */ _geometryHasBeenCreated(): boolean; /** * Determines whether or not a point is inside the NavCube overlay. * @param mousePos * @returns Boolean indicating whether the provided point is inside the NavCube overlay */ insideOverlay(t: any): boolean; /** @hidden */ _getOverlayOffset(): any; /** @hidden */ _getViewportSize(): $o; /** @hidden */ _getViewportPixelSize(): any; /** @hidden */ _onNoSelection(): void; /** * Called when the NavCube is clicked. Realigns the view to the side/edge/corner * selected by `selection`, or rotates the view 90 degrees if the selection matches * the current view orientation, or does nothing if no side is selected. * @param selection */ onClickSelection(t: any): Promise; /** * Called when the NavCube is "moused over". Displays face/edge/corner that will be selected. * @param selection */ onMoveSelection(t: any): void; /** * Returns the corresponding view orientation for each node index. * If the node indexes change in the future, this will need to be updated. */ _getViewOrientationFromFaceIndex(t: any): any; _setViewOrientation(t: any): Promise; _getScEngine(): any; _createInstance(t: any, e: any): Promise; _createCube(t: any, e: any): Promise; _onCameraUpdate(): void; _updateOrientationMatrices(): void; _createSelectionFace(t: any, e: any, i: any, n: any, r: any, o: any, l: any): Promise; _createQuad(t: any, e: any, i: any, n: any, r: any, o?: boolean): void; _makeRotationMatrixX(t: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _makeRotationMatrixY(t: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _makeRotationMatrixZ(t: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _getFaceIndexFromNodeId(t: any): number; _getNodeIdFromFaceIndex(t: any): any; _isSameEdge(t: any, e: any, i: any, n: any): boolean; _initializeTextures(): Promise; }; _axisTriad: { _position: $o; _viewportSize: $o; _anchor: any; _instanceKeys: any[]; _enabled: boolean; _sceneReady: Promise; _assemblyTreeReady: Promise; _axisTriadReadyToInit: Promise[]; _geometryCreated: boolean; _viewer: any; _view: any; /** * Sets the color of one axis on this [[AxisTriad]] * @param axis The axis that will change color * @param color The color to set */ setAxisColor(t: any, e: any): Promise; /** * Sets the anchor position for this [[AxisTriad]]. * @param anchor The anchor position. * @returns A promise that resolves on completion. */ setAnchor(t: any): Promise; /** * Gets the anchor position for this [[AxisTriad]]. * Default position is in the lower left corner. * @returns The overlay anchor value of the triad. */ getAnchor(): any; /** * Enables this [[AxisTriad]]. * @returns A promise that resolves on completion. */ enable(): Promise; /** * Disables this [[AxisTriad]]. * @returns A promise that resolves on completion. */ disable(): Promise; /** * Updates the visibility of this [[AxisTriad]] based on the enabled status. * @returns A promise that resolves on completion. */ _updateVisibility(): void; /** * Hides the overlay window. * @returns A promise that resolves on completion. */ _hideOverlay(): void; /** * Shows the overlay window. * @returns A promise that resolves on completion. */ _showOverlay(): void; /** * Gets the current state of this [[AxisTriad]]. * @returns `true` if enabled and `false` otherwise. */ getEnabled(): boolean; /** * Gets the overlay id. This id should be considered reserved and not be used by client applications. * @returns The overlay id used by this [[AxisTriad]]. */ getOverlayId(): any; _updateViewport(): void; _createViewport(): void; _onViewportSet(): void; _createGeometry(): Promise; _createGeomCallbacks(): void; /** @hidden */ _geometryHasBeenCreated(): boolean; /** * Determines whether or not a point is inside the axis triad overlay * @param mousePos * @returns Boolean indicating whether the provided point is inside the axis triad overlay */ insideOverlay(t: any): boolean; /** @hidden */ _getOverlayOffset(): any; /** @hidden */ _getViewportSize(): $o; /** @hidden */ _getViewportPixelSize(): any; /** * Checks if a selection is part of the axis triad, and return the corresponding axis. * @param selectionItem selection item to check. * @returns Axis if selected, null otherwise. */ getSelectionAxis(t: any): any; /** * Called when the axis triad is clicked. Realigns the view along the axis selected by `selection` * or does nothing if no axis is selected. * @param selection */ onClickSelection(t: any): Promise; _getScEngine(): any; _createInstance(t: any, e: any, i: any, n: any, r: any, o: any): Promise; _createAxis(t: any, e: any, i: any): Promise; _createAxisLabel(t: any, e: any, i: any): Promise; _onCameraUpdate(): void; _alignedFitBounding(t: any, e: any, i: any, n: any): Cn | undefined; }; overlayManager: j_; _inputMonitor: { _isIE: boolean; _isFirefox: boolean; _canvas: any; _canvasEventFunctions: Map; _documentEventFunctions: Map; _pointerEventsEnabled: boolean; _processInput: boolean; _eventsBound: boolean; _dragStarted: boolean; _captureInput: boolean; _elementOffset: Tx; _pointerUp: boolean; _buttons: any; _viewKey: any; _eventDispatcher: any; _timeoutMonitor: any; _document: Document; _tryLockEventDispatcher(): boolean; _unlockEventDispatcher(): void; shutdown(): void; setDocument(t: any): void; setOptions(t: any): void; elementResize(): void; setPointerEventsEnabled(t: any): void; getPointerEventsEnabled(): boolean; _browserSupportsPointerEvents(): boolean; _usePointerEvents(): boolean; _calculateElementOffset(): void; _initDocumentEvents(): void; _initCanvasEvents(): void; bindEvents(t: any): void; _bindDocumentEvent(t: any, e: any): void; _bindCanvasEvent(t: any, e: any): void; _unbindDocumentEvents(): void; _unbindCanvasEvents(): void; unbindEvents(): void; _convertEventCoordsToTargetCoords(t: any, e: any, i?: boolean): K; focusInput(t: any): void; _setButtons(t: any): void; _processMouseDown(t: any): void; _processMouseMove(t: any, e?: boolean): void; _processMouseUp(t: any, e?: boolean): void; _processMousewheel(t: any): void; _processDocumentMouseMove(t: any): void; _processDocumentMouseUp(t: any): void; _processMouseLeave(t: any): void; _processMouseEnter(t: any): void; _isFunctionKey(t: any): boolean; _processKeyDownEvent(t: any): void; _processKeyUpEvent(t: any): void; _processTouchStart(t: any): void; _processTouchMove(t: any): void; _processTouchEnd(t: any): void; _processPointerDown(t: any): void; _processPointerMove(t: any, e?: boolean): void; _processPointerUp(t: any, e?: boolean): void; _processPointerEnter(t: any): void; _processPointerLeave(t: any): void; _processDocumentPointerMove(t: any): void; _processDocumentPointerUp(t: any): void; _getEventModifiers(t: any): any; }; _determineInitialAxes: any; floorplanManager: { _active: any; _isSceneReady: boolean; _isModelLoaded: boolean; _isOverlayVisible: boolean; _isCallbacksSet: boolean; _onCameraUpdateFunc: any; _onFrameDrawnFunc: any; _floorplanNode: any; _currentFloorInfo: any; _config: any; _floorLock: boolean; _tightBoundings: boolean; _genericStoreyType: string; _floorInfos: Map; _floorInfosArray: any[]; _avatarNode: any; _avatarDirty: boolean; _borderNode: any; _borderDirty: boolean; _backgroundNode: any; _backgroundDirty: boolean; _canvasSize: K; _sync: jo; _setFloorplanSync: P0; _viewer: any; _model: any; _engine: any; _overlayManager: any; /** Sets a custom avatar. See [[FloorplanConfig.customAvatar]] for detailed information. */ setCustomAvatar(t: any): Promise; /** Sets the size of the floorplan overlay window. See [[FloorplanConfig.overlaySize]] for detailed information. */ setOverlaySize(t: any, e: any, i: any): Promise; /** Sets the anchor position of the floorplan overlay window. See [[FloorplanConfig.overlayAnchor]] for detailed information. */ setOverlayAnchor(t: any): Promise; /** Sets the offset position of the floorplan overlay window. See [[FloorplanConfig.overlayOffset]] for detailed information. */ setOverlayOffset(t: any): Promise; /** Sets the overlay scaling. See [[FloorplanConfig.overlayFeetPerPixel]] for detailed information. */ setOverlayFeetPerPixel(t: any): Promise; /** Sets the overlay zoom level. See [[FloorplanConfig.zoomLevel]] for detailed information. */ setZoomLevel(t: any): Promise; /** Sets the overlay background color. See [[FloorplanConfig.backgroundColor]] for detailed information. */ setBackgroundColor(t: any): Promise; /** Sets the overlay background opacity. See [[FloorplanConfig.backgroundOpacity]] for detailed information. */ setBackgroundOpacity(t: any): Promise; /** Sets the overlay border color. See [[FloorplanConfig.borderColor]] for detailed information. */ setBorderColor(t: any): Promise; /** Sets the overlay border opacity. See [[FloorplanConfig.borderOpacity]] for detailed information. */ setBorderOpacity(t: any): Promise; /** Sets the avatar primary color. See [[FloorplanConfig.avatarColor]] for detailed information. */ setAvatarColor(t: any): Promise; /** Sets the avatar outline color. See [[FloorplanConfig.avatarOutlineColor]] for detailed information. */ setAvatarOutlineColor(t: any): Promise; /** Sets the avatar opacity. See [[FloorplanConfig.avatarOpacity]] for detailed information. */ setAvatarOpacity(t: any): Promise; /** Sets the avatar scale. See [[FloorplanConfig.avatarScale]] for detailed information. */ setAvatarScale(t: any): Promise; /** Sets the avatar size to fixed scale. See [[FloorplanConfig.fixedAvatarScale]] for detailed information. */ setFixedAvatarScale(t: any): Promise; /** Sets the floorplan tracking mode. See [[FloorplanConfig.trackCameraEnabled]] for detailed information. */ setTrackCameraEnabled(t: any): Promise; /** Sets the floorplan display orientation. See [[FloorplanConfig.floorplanOrientation]] for detailed information. */ setFloorplanOrientation(t: any): Promise; /** Sets the auto-activate capability for any models loaded after this call. See [[FloorplanConfig.autoActivate]] for detailed information. */ setAutoActivate(t: any): Promise; /** Locks floorplan to current floor such that changing floors will not change the displayed floorplan. */ setFloorLock(t: any): Promise; /** Returns `true` if displayed floor has been locked with [[setFloorLock]]. */ getFloorLock(): boolean; /** * Makes floorplans use tight boundings during creation which can result in a better fit for the overlay. * This involves recreating any already existing floorplans. * This can be significantly more time consuming than using loose boundings if your floors are complex. * Defaults to `false`. */ setUseTightBoundings(t: any): Promise; /** * Updates the floorplan to use the given configuration. This function allows * the user to set all configuration values with a single operation. There are * also `set()` functions for easily setting individual configuration * values. * * Note that when using this function, all settings in the given configuration are * used and thus overwrite any individual settings changed with a prior * `set()` call. * * All values from the passed configuration will be copied as part of this operation. */ setConfiguration(t: any): Promise; /** Returns a copy of the current floorplan configuration. */ getConfiguration(): any; /** Gets the [[NodeId]] of the current storey. */ getCurrentFloorNodeId(): any; /** Gets the [[NodeId]] of the floorplan avatar. */ getAvatarNodeId(): any; /** Returns `true` if the given point is inside the floorplan overlay and `false` otherwise. */ insideOverlay(t: any): boolean; /** * Activate the floorplan overlay. */ activate(): Promise; /** * Deactivate the floorplan overlay. Once explicitly deactivated via this call, auto-activation * will be suppressed for any new model that is loaded. Auto-activation can be reenabled by * calling [[setAutoActivate]]. */ deactivate(): Promise; /** * The avatar node needs to be deleted any time we are making changes to the mesh, * such as switching to a custom avatar or fixed avatar scale. */ _deleteAvatarNode(): Promise; /** Perform the steps needed to set a custom avatar. */ _doSetCustomAvatar(t: any): Promise; /** Call after something in the configuration has changed. Will update all visuals accordingly */ _onConfigurationChanged(): Promise; /** Sets the best floorplan for the given world position */ _setFloorplanFromPosition(t: any): Promise; /** Sets what floor the floorplan displays based on position */ _doSetFloorplanFromPosition(t: any): Promise; /** This function performs a downward selection and sorts the results by the top of their boundings */ _performDownwardSelection(t: any): Promise; /** * Will set the active state appropriately and kick off activation processing */ _activate(): Promise; /** * Deactivation will remove camera callbacks, hide the overlay, delete floornodes, and any other necessary cleanup */ _deactivate(): Promise; /** This will be called anytime a model has loaded... first model, second model, etc. */ _onModelLoaded(): Promise; /** * When a model is loaded, the active state will be examined and possibly modified here based on the incoming model. */ _doOnModelLoaded(): Promise; /** * This will activate the floorplan visuals if conditions allow. */ _doUpdateActivation(): Promise; /** * Deletes all floorplan infos including generated nodes */ _deleteAllFloorplans(): Promise; /** Hides the currently active floorplan */ _hideActiveFloorplan(): Promise; /** * Call when IFC information is available from the model tree. Note that this call can happen multiple * times within a session, thus it must be tolerant of existing data vs new data. */ _onProcessIfc(): Promise; /** */ _hasFloorInfo(t: any): boolean; /** */ _getFloorInfo(t: any): any; /** * Creates floorplan related information from a floor node */ _createFloorInfo(t: any): Promise; /** * Find the root floor nodes within the model. */ _gatherFloorInfos(): Promise; /** * Gathers all descendent nodes that have IFC types matching the given IFC types */ _gatherDescendentIfcNodes(t: any, e: any, i: any): void; /** * Creates a floorplan mesh from a FloorInfo object and returns the NodeId of the resulting mesh. * Note: This does not attach the created floorplan mesh to the FloorInfo param. That must be done after. */ _createFloorplanFromFloorInfo(t: any): Promise; /** We need to handle a canvas size updates, so use the frame-drawn callback */ _onFrameDrawn(): Promise; /** Updates the overlay camera based on current state */ _doCameraUpdate(): Promise; /** * Returns `true` if the [[FloorplanManager]] is fully active. */ isActive(): boolean; /** Call anytime something in the floorplan overlay might need to change. */ _updateOverlay(): Promise; /** * Call anytime something in the floorplan overlay might need to change. */ _updateOverlayNodes(t: any, e: any): Promise; /** * Moves the camera such that the avatar will appear at the provided point on the overlay. * This is only available when the floorplan is not tracking the camera. * @param point Point in canvas within overlay */ snapAvatarToPoint(t: any): void; /** Figure out the pixel size of the overlay window */ _getOverlaySizeInPixels(): any; /** Get overlay offset in pixels */ _getOverlayOffsetInPixels(): any; _getFixedCameraSize(t: any): K | null; /** Updates the camera settings for the overlay. Only update if the floorplan has changed? */ _updateOverlayCamera(t: any, e: any): Promise; /** * Sets the current floorplan based on the floorNode. * * @param floorNode A IFC Story node. */ _setFloorplanFromFloorNode(t: any): Promise; /** * Creates the floorplan overlay */ _setupOverlay(): Promise; /** Nodes within the the overlay displays aren't honoring their visibility settings. This is a workaround * until that problem is fixed. Since the floorplan is a top-down view, we can just move "hidden" nodes * far enough out of the camera view so they aren't rendered. */ _hideOverlayNode(t: any): Promise; /** See _hideOverlayNode for workaround description */ _showOverlayNode(t: any): Promise; /** Creates a simple node to show the camera-position as an avatar on the overlay */ _createAvatar(): Promise; /** Create a 2d line based box. Used for the overlay border & background */ _create2dBox(t: any, e: any, i: any): Promise; }; domElements: any; get id(): any; get inputMonitor(): { _isIE: boolean; _isFirefox: boolean; _canvas: any; _canvasEventFunctions: Map; _documentEventFunctions: Map; _pointerEventsEnabled: boolean; _processInput: boolean; _eventsBound: boolean; _dragStarted: boolean; _captureInput: boolean; _elementOffset: Tx; _pointerUp: boolean; _buttons: any; _viewKey: any; _eventDispatcher: any; _timeoutMonitor: any; _document: Document; _tryLockEventDispatcher(): boolean; _unlockEventDispatcher(): void; shutdown(): void; setDocument(t: any): void; setOptions(t: any): void; elementResize(): void; setPointerEventsEnabled(t: any): void; getPointerEventsEnabled(): boolean; _browserSupportsPointerEvents(): boolean; _usePointerEvents(): boolean; _calculateElementOffset(): void; _initDocumentEvents(): void; _initCanvasEvents(): void; bindEvents(t: any): void; _bindDocumentEvent(t: any, e: any): void; _bindCanvasEvent(t: any, e: any): void; _unbindDocumentEvents(): void; _unbindCanvasEvents(): void; unbindEvents(): void; _convertEventCoordsToTargetCoords(t: any, e: any, i?: boolean): K; focusInput(t: any): void; _setButtons(t: any): void; _processMouseDown(t: any): void; _processMouseMove(t: any, e?: boolean): void; _processMouseUp(t: any, e?: boolean): void; _processMousewheel(t: any): void; _processDocumentMouseMove(t: any): void; _processDocumentMouseUp(t: any): void; _processMouseLeave(t: any): void; _processMouseEnter(t: any): void; _isFunctionKey(t: any): boolean; _processKeyDownEvent(t: any): void; _processKeyUpEvent(t: any): void; _processTouchStart(t: any): void; _processTouchMove(t: any): void; _processTouchEnd(t: any): void; _processPointerDown(t: any): void; _processPointerMove(t: any, e?: boolean): void; _processPointerUp(t: any, e?: boolean): void; _processPointerEnter(t: any): void; _processPointerLeave(t: any): void; _processDocumentPointerMove(t: any): void; _processDocumentPointerUp(t: any): void; _getEventModifiers(t: any): any; }; _initEvents(): void; _initEffects(): void; _initEventDispatcher(): void; /** hidden */ injectViewOrientationChangeEvent(): void; _massageInitialCamera(t: any): Promise; /** * Sets the line visibility for the view. * @param lineVisibility indicates whether to draw lines. */ setLineVisibility(t: any): Promise; _setLineVisibility(t: any): void; /** * Gets the line visibility for the view. * @returns whether lines are currently being drawn. */ getLineVisibility(): boolean; /** * Sets the face visibility for the view. * @param faceVisibility indicates whether to draw faces. */ setFaceVisibility(t: any): Promise; _setFaceVisibility(t: any): Promise; /** * Gets the face visibility for the view. * @returns whether faces are currently being drawn. */ getFaceVisibility(): boolean; /** * Sets the projection mode. * @param projection the projection mode to set. */ setProjectionMode(t: any): void; /** * Gets the projection mode. * @returns The current projection mode. */ getProjectionMode(): any; /** * Gets the draw strategy. * @returns The current draw strategy. */ getDrawStrategy(): any; /** * Gets the view matrix. * @returns The current view matrix. */ getViewMatrix(): any; /** * Gets the projection matrix. * @returns The current projection matrix. */ getProjectionMatrix(): any; /** * This is equivalent to (projectionMatrix * viewMatrix). * @returns The current full camera matrix. */ getFullCameraMatrix(): any; /** * Creates a ray based on a viewport position. * @param point The (X, Y) viewport position. * @returns The ray if it was generated, otherwise null. */ raycastFromPoint(t: any): wr | null; /** * @param source * @param projectionMatrix * @param viewMatrix * @param viewSize */ _unproject(t: any, e: any, i: any, n: any): _ | null; _rectifySelectionItem(t: any): void; /** @hidden */ isOutsideCanvasArea(t: any): boolean; /** * Performs a picking operation from the given position on the canvas. The best candidate entity is be returned. * This method does not trigger a selection event. * This method will reject if the point is outside the canvas area. * @param point Canvas position to pick from. * @param config The configuration object used for this picking operation. * @returns An object containing the result of the picking operation. */ pickFromPoint(t: any, e: any): Promise; /** * Performs a picking operation from the given position on the canvas. All candidate entities are returned. * This method does not trigger a selection event. * This method will reject if the point is outside the canvas area. * @param point Canvas position to pick from. * @param config The configuration object used for this picking operation. * @returns An object containing the result of the picking operation. */ pickAllFromPoint(t: any, e: any): Promise; /** * Performs a composite picking operation. This operation will return all candidate Node entities according to the PickConfig. * @param point Canvas position to pick from. * @param config The configuration object used for this picking operation. * @returns An object containing the result of the picking operation. */ compositePickFromPoint(t: any, e: any): Promise; /** * Performs a selection operation from the given world-space ray. The best candidate entity is be returned. * This method does not trigger a selection event. * @param ray The world-space ray to perform the selection with. * @param config The configuration object used for this picking operation. * @param selectionMode The mode to use for this selection. * @returns An object containing the result of the picking operation. */ pickFromRay(t: any, e: any): Promise; /** * Performs a selection operation from the given world-space ray. All candidate entities are returned. * This method does not trigger a selection event. * @param ray The world-space ray to perform the selection with. * @param config The configuration object used for this picking operation. * @param selectionMode The mode to use for this selection. * @returns An object containing the result of the picking operation. */ pickAllFromRay(t: any, e: any): Promise; /** * Creates a new and active selection context for the provided selection window. * @param areaCssMin The minimum coodinate in CSS pixel space for the selection window. * @param areaCssMax The maximum coodinate in CSS pixel space for the selection window. * @param config The configuration object used for this selection operation. * @returns The handle for the selection context. */ beginScreenSelectByArea(t: any, e: any, i: any): Promise; /** * Creates a new and active selection context for the provided selection ray. * The ray is created at the supplied ray origin and is cast into the scene. * Faces are selected if they lie along the ray. * Lines and points are selected if they lie within the ray's box radius. * * Note: Somewhat confusingly ray drill selection is actually a selection by volume. * The provided ray origin and radius are used to create a frustum to preform the selection. * This has some consequences. For example, the `SelectionResult`s returned by advancing a * ray drill selection will not have selection positions, since they were not selected at * a single point. * @param rayCssOrigin The coordinate in CSS pixel space for the selection ray's origin. * @param rayCssBoxRadius The radius around the ray in CSS pixel space used for line and point selection proximity. * @param config The configuration object used for this selection operation. * @returns The handle for the selection context. */ beginRayDrillSelection(t: any, e: any, i: any): Promise; /** * Creates a new and active selection context for the provided selection volume. * The selection volume is a convex polyhedron defined by the bounded intersection of its half-spaces. * @param volumePlanes The planes used to define volume. A point p is inside the volume if and only if (plane.determineSide(p) == true) for all supplied planes. * @param heuristicOrigin A point used to compute distances against for prioritizing returned results. This is typically (but not necessarily) the center of the volume. * @param config The configuration object used for this selection operation. * @returns The handle for the selection context. */ beginConvexPolyhedronSelection(t: any, e: any, i: any): Promise; /** * Creates a new and active selection context for the provided selection sphere. * @param sphereCenter The center of the selection sphere. * @param sphereRadius The radius of the selection sphere. * @param config The configuration object used for this selection operation. * @returns The handle for the selection context. */ beginSphereSelection(t: any, e: any, i: any): Promise; /** * Deactivates and destroys the provided selection context. * @param handle The selection context to destroy. */ endIncrementalSelection(t: any): Promise; _endIncrementalSelection(t: any): void; /** * Returns the next batch of geometry selected by the supplied selection context. * @param handle The handle to an active area selection context. * @returns Returns selected items. If the resulting list is null then there are no more items to select. */ advanceIncrementalSelection(t: any): Promise; /** * Projects a 3d world space point to a 3d screen space point. * @param point world space point to be projected. * @param camera if a camera is provided, its projection and view matrix will be used. * @returns point projected into 3d screen space. */ projectPoint(t: any, e: any): _; /** * @param source * @param projectionMatrix * @param viewMatrix * @param viewSize */ _project(t: any, e: any, i: any, n: any): _; /** * Unprojects a 2d screen space point to a 3d world space point. * @param point 2d screen space * @param z z value, default 0 * @returns point world space point */ unprojectPoint(t: any, e: any): _ | null; /** * Creates a normalized window position in the range of (-1, 1) for a given point in window space. * @returns the normalized window position */ pointToWindowPosition(t: any): K; /** * Sets the camera that will be used for the initial camera view. * @param camera */ setInitialCamera(t: any): void; /** * Sets the current camera * @param camera the camera to set * @param duration camera transition time in milliseconds */ setCamera(t: any, e?: number): any; /** @hidden */ _setCameraPromise(t: any, e: any): any; _setCameraImpl(t: any, e: any): Promise; _interpolateCamera(t: any, e: any): Promise; /** * Updates camera properties individually. This method should be used to incrementally update camera properties individually. * @param camera the camera to set. * @returns updated camera object. */ updateCamera(t: any): any; /** * Resets the camera to the initial view of the model when first loaded. * @param duration the amount of time in milliseconds that the camera transition between the current and initial view should take. */ resetCamera(t?: number): Promise; /** * Unsets the default camera. After this is called the next camera to be set will be the new default */ unsetDefaultCamera(): void; /** * Gets the current camera * @returns the current camera */ getCamera(): any; /** * Returns a camera set to a ViewOrientation * @param orientation The desired view orientation for the camera. * @param bounding Optional bounding to fit the camera about. If not supplied, the model bounding will be used. */ getViewOrientationCamera(t: any, e: any, i?: boolean): Promise; /** * Sets the view to a standard orientation. * @param orientation The desired view orientation for the camera. * @param duration The number of milliseconds used to transition to the new camera. * @param bounding Optional bounding to fit the camera about. If not supplied, the model bounding will be used. * @param preserveModelUp Indicates whether the camera up will be set according to model up or current camera. */ setViewOrientation(t: any, e: number | undefined, i: any, n?: boolean): Promise; /** * Centers the camera on a specified node id. * @param nodeId * @param duration the number of milliseconds to transition to the new camera. */ centerCameraOnNode(t: any, e?: number, i?: any): Promise; /** @hidden */ _setInitialView(t: any): Promise; /** * Returns the size of the viewer canvas. * @returns the current size of the viewer canvas. */ getCanvasSize(): any; /** * Sets the display for the default statistic overlay. * @param visible whether the default statistics overlay should be drawn. */ setStatisticsDisplayVisibility(t: any): Promise; /** * Returns the background colors of the canvas. * @returns the canvas background colors. */ getBackgroundColor(): jy; /** * Sets the viewer background color to a gradient interpolating from the top to bottom color. * For a solid color, the top and bottom color should have the same values. * Background Transparency is only available with client-side rendering. * To re-enable a transparent background, pass null to the parameters of this function. * * When draw mode is set to {@link DrawMode.HiddenLine}, the background color is defined in {@link HiddenLineSettings HiddenLineSettings}. * See {@link HiddenLineSettings.setBackgroundColor HiddenLineSettings.setBackgroundColor}. * @param top the top color for the the background gradient. * @param bottom the bottom color for the the background gradient. * @returns a promise that resolves when the operation has completed. */ setBackgroundColor(t?: null, e?: null): Promise; /** * Hides all nodes except those specified. Also fits the camera to those nodes' bounding box. * @param nodeIds An array of the node IDs to be isolated. * @param duration Time in milliseconds for the camera transition to the new camera view. * @param fitNodes If true, then the view is fitted around the isolated nodes. * @param initiallyHiddenStayHidden Controls whether or not initially hidden geometries stay hidden. Default behavior is driven by [[setBehaviorInitiallyHidden]]. */ isolateNodes(t: any, e?: number, i?: boolean, n?: null): Promise; /** * Fits the camera to the bounding box containing the node ids. * @param nodeIds Array of node ids to fit the camera. * @param duration Time in milliseconds for the camera transition to the new camera view. * @returns A promise that will be resolved once the transition is complete. */ fitNodes(t: any, e?: number): Promise; /** * Fits the view to the model bounding box. * @param duration the number of milliseconds to transition to the new camera. * @returns A promise that will be resolved once the transition is complete. */ fitWorld(t: number | undefined, e: any): Promise; _fitCameraToBounding(t: any, e: any): void; /** * Fits the camera to the bounding box. * @param bounding bounding box to fit the camera. * @param duration Time in milliseconds for the camera transition to the new camera view. * @returns A promise that will be resolved once the transition is complete. */ fitBounding(t: any, e?: number, i?: any): Promise; /** * Sets whether backfaces should be rendered in the scene. * @param visible Boolean value indicating whether backfaces should be rendered. * @returns Promise that is resolved when this operation has completed. */ setBackfacesVisible(t: any): Promise; /** * Gets whether backfaces are being rendered in the scene. * @returns Boolean value indicating whether backfaces are being rendered in the scene. */ getBackfacesVisible(): boolean; /** * Sets the drawing mode for the scene. * @param drawMode The drawing mode to set. */ setDrawMode(t: any): Promise; _setDrawMode(t: any): void; /** * @returns The current draw mode */ getDrawMode(): any; /** * Sets the anti-aliasing mode for the scene. * @param antiAliasingMode */ setAntiAliasingMode(t: any): Promise; _setAntiAliasingMode(t: any): void; /** * Gets the anti-aliasing mode for the scene. The Default value is AntiAliasingMode.SMAA * @returns the current anti-aliasing mode. */ getAntiAliasingMode(): any; /** * @returns a [[HiddenLineSettings]] object. */ getHiddenLineSettings(): Mx; /** * Sets whether ambient occlusion is enabled * @param enabled sets whether ambient occlusion will be enabled */ setAmbientOcclusionEnabled(t?: boolean): Promise; _setAmbientOcclusionEnabled(t?: boolean): void; /** * @returns boolean value indicating whether ambient occlusion is enabled */ getAmbientOcclusionEnabled(): boolean; /** * Sets the ambient occlusion radius. This value represents the maximum screen-proportional distance between two points such that one will cast a shadow on the other. * @param radius the ambient occlusion radius. */ setAmbientOcclusionRadius(t: any): Promise; _setAmbientOcclusionRadius(t: any): void; /** * @returns the ambient occlusion radius */ getAmbientOcclusionRadius(): number; /** * Sets whether lighting is enabled. When disabled, material colors * are drawn at full intensity. * * See also [[InstanceModifier.DoNotLight]], [[clearLights]]. */ setLightingEnabled(t?: boolean): Promise; _setLightingEnabled(t?: boolean): void; /** * Returns whether lighting is enabled. * * See also [[setLightingEnabled]]. */ getLightingEnabled(): boolean; /** * Sets how transparent objects are blended. */ setTransparencyMode(t: any): void; /** * Sets the opacity of unselected items in x-ray mode. * @param opacity a number between 0 and 1 * @param element the type of element to which the opacity will apply. * If unspecified, the opacity will apply to all element types. */ setXRayOpacity(t: any, e: any): Promise; _setXRayOpacity(t: any, e: any): void; /** * Sets how transparent (unselected) objects are blended in x-ray mode. */ setXRayTransparencyMode(t: any): Promise; _setXRayTransparencyMode(t: any): void; /** * Sets the color applied to nodes in x-ray mode. * By default, the color is unset. * * See [[unsetXRayColor]]. * * @param element the type of geometry to apply the color to * @param color the color to apply * @param group the category of nodes that will be affected. * If unspecified, [[XRayGroup.Selected]] will be used. */ setXRayColor(t: any, e: any, i?: any): Promise; /** * Unsets the color applied to selected items in x-ray mode. * Selected items will be displayed without overriding their colors. * * See [[setXRayColor]]. * * @param element the type of geometry affected by the change * @param group the category of nodes that will be affected. * If unspecified, [[XRayGroup.Selected]] will be used. */ unsetXRayColor(t: any, e?: any): any; /** * Sets the value to use as the blue tone in Gooch shading. * @param blue the blue tone. This value should be in the range [0,1] */ setGoochBlue(t: any): void; _goochBlue: any; /** * Gets the value to use as the blue tone in Gooch shading. */ getGoochBlue(): any; /** * Sets the prominence of the object's base color in Gooch shading. * @param prominence this scalar value determines the amount of the object's base color is applied to the final shaded color. */ setGoochBaseColorProminence(t: any): void; _goochBaseColorProminence: any; /** * Gets the prominence of the object's base color in Gooch shading. */ getGoochBaseColorProminence(): any; /** * Sets the value to use as the yellow tone in Gooch shading. * @param yellow the yellow tone. This value should be in the range [0,1] * */ setGoochYellow(t: any): void; _goochYellow: any; /** * Gets the value to use as the yellow tone in Gooch shading. */ getGoochYellow(): any; /** * Sets the number of discrete shading bands that will be used when toon shading is enabled. Each band represents a shade between dark and light which will control the final color of the pixel based on its light intensity. The default band count is 3. */ setToonShadingBandCount(t: any): void; _toonBandCount: any; /** * Gets the current number of discrete shading bands that will be used when toon shading is enabled. */ getToonShadingBandCount(): any; /** * Sets a scale factor which controls the size of specular highlights when toon shading is enabled. The default value is 1.0. */ setToonShadingSpecularFactor(t: any): void; _toonSpecularFactor: any; /** * Gets the current toon shading specular scale factor. */ getToonShadingSpecularFactor(): any; /** * Sets the strength of the luminance shift in Gooch shading. * @param shiftStrength this scalar values determines the amount of luminance shift that is applied to the object's base color */ setGoochLuminanceShiftStrength(t: any): void; _goochLuminanceShiftStrength: any; /** * Gets the strength of the luminance shift in Gooch shading. */ getGoochLuminanceShiftStrength(): any; /** * Sets the diameter of rendered points. (default: 1, ScreenPixels) See [[PointSizeUnit]]. */ setPointSize(t: any, e: any): Promise; _setPointSize(t: any, e: any): void; /** * Gets the diameter of rendered points. See [[PointSizeUnit]]. */ getPointSize(): any; /** * Controls the appearance of rendered points. (default: Square) See [[PointShape]]. */ setPointShape(t: any): Promise; _setPointShape(t: any): void; /** * Gets the PointShape. See [[PointShape]] */ getPointShape(): any; /** * Enables or disables eye-dome lighting for point clouds. (default: disabled) */ setEyeDomeLightingEnabled(t?: boolean): Promise; _setEyeDomeLightingEnabled(t?: boolean): void; /** * @returns boolean value indicating if eye-dome lighting is enabled or disabled. */ getEyeDomeLightingEnabled(): any; /** * Sets the diameter of the blur filter used in eye-dome lighting for point clouds. * Setting the value to 0 will disable blurring. (default: 7) */ setEyeDomeLightingBlurSamples(t: any): Promise; _setEyeDomeLightingBlurSamples(t: any): void; /** * Returns the diameter of the blur filter used in eye-dome lighting for point clouds. * A value of 0 means that blurring is disabled. */ getEyeDomeLightingBlurSamples(): any; /** * Sets the distance in pixels between samples taken by the blur filter used in eye-dome lighting * for point clouds. (default: 1) */ setEyeDomeLightingBlurInterval(t: any): Promise; _setEyeDomeLightingBlurInterval(t: any): void; /** * Returns the distance in pixels between samples taken by the blur filter used in eye-dome lighting * for point clouds. */ getEyeDomeLightingBlurInterval(): any; /** * Controls the maximum Z-distance between samples taken by the blur filter used in eye-dome * lighting for point clouds. The value is taken as a proportion of the screen size. * Decreasing the value will result in sharper edges, and increasing the value will result * in softer edges. (default: .03) */ setEyeDomeLightingBlurEdgeDistance(t: any): Promise; _setEyeDomeLightingBlurEdgeDistance(t: any): void; /** * Returns a value that controls the maximum Z-distance between samples taken by * the blur filter used in eye-dome lighting for point clouds. * The value is a proportion of the screen size. */ getEyeDomeLightingBlurEdgeDistance(): any; /** * Controls the shading contrast in eye-dome lighting for point clouds. The value is taken * as a number of pixels. Increasing the value will result in overall lighter shading, and * decreasing the value will result in overall darker shading. (default: 2) */ setEyeDomeLightingShadingEdgeDistance(t: any): Promise; _setEyeDomeLightingShadingEdgeDistance(t: any): void; /** * Returns a value that controls the shading contrast in eye-dome lighting for point clouds. * The value is a number of pixels. */ getEyeDomeLightingShadingEdgeDistance(): any; /** * Sets the opacity of the shading rendered by eye-dome lighting for point clouds. (default: 1) * @param value A number in the range [0,1]. */ setEyeDomeLightingOpacity(t: any): Promise; _setEyeDomeLightingOpacity(t: any): void; /** * Returns the opacity of the shading rendered by eye-dome lighting for point clouds. * The value is in the range [0,1]. */ getEyeDomeLightingOpacity(): any; /** * Sets whether or not bounding calculations by this View object ignores invisible geometry. */ setBoundingCalculationIgnoresInvisible(t: any): void; /** * @returns whether or not bounding calculations by this View object ignores invisible geometry. */ getBoundingCalculationIgnoresInvisible(): boolean; /** * Sets whether intermediate frames of an incremental draw will be displayed. (default: true) * * If false, the image will only be displayed once completely drawn, except immediately * after certain operations, such as setting the camera. To disable these exceptions, * call [[setInteractiveDrawDelay]] with a value of 0. */ setDisplayIncompleteFrames(t: any): Promise; _setDisplayIncompleteFrames(t: any): void; /** * Sets whether to change cad view cameras with extreme values to functionally identical cameras with * better behavior. This should be disabled if it is important that cameras have their authored values * Default: true * @param value Whether to modify cameras */ setMassageExtremeCameras(t: any): void; getMassageExtremeCameras(): boolean; /** * Sets how long after certain operations, such as setting the camera, to wait before * starting a redraw. This delay exists in order to prevent flicker during continuous * interaction. The initial value is 200ms. * @param value The delay in milliseconds */ setInteractiveDrawDelay(t: any): Promise; _setInteractiveDrawDelay(t: any): void; /** * Sets whether or not the viewer will periodically attempt to increase the amount drawn during interaction. * Setting this to `false` may improve periodic framerate dips caused by such adjustments. * @param enable */ setInteractiveDrawLimitIncreaseEnabled(t: any): void; /** * Gets whether or not the viewer will periodically attempt to increase the amount drawn during interaction. * @return boolean value indicating whether this feature is enabled or not */ getInteractiveDrawLimitIncreaseEnabled(): any; /** * Sets a minimum frame rate that will be maintained by this views. * The view will use various culling techniques in order to maintain the value passed in. * * Passing `0` will cause the entire scene to be drawn for every frame. * @param minimum The minimum framerate to be maintained by this view. */ setMinimumFramerate(t: any): void; /** * Forces the a redraw of this view. * @param callback A function to be called once the draw is complete. * This is provided instead of a `Promise` to ensure the callback is * called before the start of another redraw. */ redraw(t: any): void; getNavCube(): { _position: $o; _viewportSize: $o; _anchor: any; _dimension: number; _fieldSize: number; _instanceKeys: any[]; _enabled: boolean; _textImageId: any; _selectionFaceColor: vt; _outlineColor: vt; _lastSelectedNodes: any[]; _nodeIds: any[]; _adjacentFaces: any[]; _preserveModelUp: boolean; _cameraRotation: number; _lastOrientation: any; _lastCamera: any; _lastFaceIndex: any; _textWidths: any[]; _sceneReady: Promise; _assemblyTreeReady: Promise; _navcubeReadyToInit: Promise[]; _texturesReady: boolean; _geometryCreated: boolean; _viewer: any; _view: any; _fontSize: number; _fontInfo: string; _textureSize: number; /** * Sets the anchor position for the NavCube. * @param anchor the anchor position. */ setAnchor(t: any): Promise; /** * Gets the anchor position for the NavCube. Default position is in the UpperRightCorner, see [[OverlayAnchor]] for more details. */ getAnchor(): any; /** * Enables the NavCube. */ enable(): Promise; /** * Disables the NavCube. */ disable(): Promise; /** * Determines if model up or camera up will the preserved when navigating with the NavCube. * If model up is preserved, navigation with the NavCube will keep the model upright all the time. * If camera up is preserved, navigation with the NavCube will attempt to preserve the current up direction of * the camera as much as possible. * Defaults to `true`. * @param preserve If true, model up is preserved. Otherwise, camera up is preserved. */ setPreserveModelUp(t: any): void; /** * Gets the NavCube preserveModelUp state. * @returns true if model up is preserved, false if camera up is preserved. */ getPreserveModelUp(): boolean; /** * Sets the visibility for the NavCube based on the enabled and textures state. */ _updateVisibility(): void; /** * Hides the overlay window */ _hideOverlay(): void; /** * Shows the overlay window */ _showOverlay(): void; /** * Gets whether the NavCube is currently enabled. */ getEnabled(): boolean; /** * Gets the associated overlay id. */ getOverlayId(): any; _setTextures(): Promise; _updateViewport(): void; _createViewport(): void; _onViewportSet(): void; _createGeometry(): Promise; _createTexture(t: any, e: any): any; /** @hidden */ _geometryHasBeenCreated(): boolean; /** * Determines whether or not a point is inside the NavCube overlay. * @param mousePos * @returns Boolean indicating whether the provided point is inside the NavCube overlay */ insideOverlay(t: any): boolean; /** @hidden */ _getOverlayOffset(): any; /** @hidden */ _getViewportSize(): $o; /** @hidden */ _getViewportPixelSize(): any; /** @hidden */ _onNoSelection(): void; /** * Called when the NavCube is clicked. Realigns the view to the side/edge/corner * selected by `selection`, or rotates the view 90 degrees if the selection matches * the current view orientation, or does nothing if no side is selected. * @param selection */ onClickSelection(t: any): Promise; /** * Called when the NavCube is "moused over". Displays face/edge/corner that will be selected. * @param selection */ onMoveSelection(t: any): void; /** * Returns the corresponding view orientation for each node index. * If the node indexes change in the future, this will need to be updated. */ _getViewOrientationFromFaceIndex(t: any): any; _setViewOrientation(t: any): Promise; _getScEngine(): any; _createInstance(t: any, e: any): Promise; _createCube(t: any, e: any): Promise; _onCameraUpdate(): void; _updateOrientationMatrices(): void; _createSelectionFace(t: any, e: any, i: any, n: any, r: any, o: any, l: any): Promise; _createQuad(t: any, e: any, i: any, n: any, r: any, o?: boolean): void; _makeRotationMatrixX(t: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _makeRotationMatrixY(t: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _makeRotationMatrixZ(t: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _getFaceIndexFromNodeId(t: any): number; _getNodeIdFromFaceIndex(t: any): any; _isSameEdge(t: any, e: any, i: any, n: any): boolean; _initializeTextures(): Promise; }; get navCube(): { _position: $o; _viewportSize: $o; _anchor: any; _dimension: number; _fieldSize: number; _instanceKeys: any[]; _enabled: boolean; _textImageId: any; _selectionFaceColor: vt; _outlineColor: vt; _lastSelectedNodes: any[]; _nodeIds: any[]; _adjacentFaces: any[]; _preserveModelUp: boolean; _cameraRotation: number; _lastOrientation: any; _lastCamera: any; _lastFaceIndex: any; _textWidths: any[]; _sceneReady: Promise; _assemblyTreeReady: Promise; _navcubeReadyToInit: Promise[]; _texturesReady: boolean; _geometryCreated: boolean; _viewer: any; _view: any; _fontSize: number; _fontInfo: string; _textureSize: number; /** * Sets the anchor position for the NavCube. * @param anchor the anchor position. */ setAnchor(t: any): Promise; /** * Gets the anchor position for the NavCube. Default position is in the UpperRightCorner, see [[OverlayAnchor]] for more details. */ getAnchor(): any; /** * Enables the NavCube. */ enable(): Promise; /** * Disables the NavCube. */ disable(): Promise; /** * Determines if model up or camera up will the preserved when navigating with the NavCube. * If model up is preserved, navigation with the NavCube will keep the model upright all the time. * If camera up is preserved, navigation with the NavCube will attempt to preserve the current up direction of * the camera as much as possible. * Defaults to `true`. * @param preserve If true, model up is preserved. Otherwise, camera up is preserved. */ setPreserveModelUp(t: any): void; /** * Gets the NavCube preserveModelUp state. * @returns true if model up is preserved, false if camera up is preserved. */ getPreserveModelUp(): boolean; /** * Sets the visibility for the NavCube based on the enabled and textures state. */ _updateVisibility(): void; /** * Hides the overlay window */ _hideOverlay(): void; /** * Shows the overlay window */ _showOverlay(): void; /** * Gets whether the NavCube is currently enabled. */ getEnabled(): boolean; /** * Gets the associated overlay id. */ getOverlayId(): any; _setTextures(): Promise; _updateViewport(): void; _createViewport(): void; _onViewportSet(): void; _createGeometry(): Promise; _createTexture(t: any, e: any): any; /** @hidden */ _geometryHasBeenCreated(): boolean; /** * Determines whether or not a point is inside the NavCube overlay. * @param mousePos * @returns Boolean indicating whether the provided point is inside the NavCube overlay */ insideOverlay(t: any): boolean; /** @hidden */ _getOverlayOffset(): any; /** @hidden */ _getViewportSize(): $o; /** @hidden */ _getViewportPixelSize(): any; /** @hidden */ _onNoSelection(): void; /** * Called when the NavCube is clicked. Realigns the view to the side/edge/corner * selected by `selection`, or rotates the view 90 degrees if the selection matches * the current view orientation, or does nothing if no side is selected. * @param selection */ onClickSelection(t: any): Promise; /** * Called when the NavCube is "moused over". Displays face/edge/corner that will be selected. * @param selection */ onMoveSelection(t: any): void; /** * Returns the corresponding view orientation for each node index. * If the node indexes change in the future, this will need to be updated. */ _getViewOrientationFromFaceIndex(t: any): any; _setViewOrientation(t: any): Promise; _getScEngine(): any; _createInstance(t: any, e: any): Promise; _createCube(t: any, e: any): Promise; _onCameraUpdate(): void; _updateOrientationMatrices(): void; _createSelectionFace(t: any, e: any, i: any, n: any, r: any, o: any, l: any): Promise; _createQuad(t: any, e: any, i: any, n: any, r: any, o?: boolean): void; _makeRotationMatrixX(t: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _makeRotationMatrixY(t: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _makeRotationMatrixZ(t: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _getFaceIndexFromNodeId(t: any): number; _getNodeIdFromFaceIndex(t: any): any; _isSameEdge(t: any, e: any, i: any, n: any): boolean; _initializeTextures(): Promise; }; getAxisTriad(): { _position: $o; _viewportSize: $o; _anchor: any; _instanceKeys: any[]; _enabled: boolean; _sceneReady: Promise; _assemblyTreeReady: Promise; _axisTriadReadyToInit: Promise[]; _geometryCreated: boolean; _viewer: any; _view: any; /** * Sets the color of one axis on this [[AxisTriad]] * @param axis The axis that will change color * @param color The color to set */ setAxisColor(t: any, e: any): Promise; /** * Sets the anchor position for this [[AxisTriad]]. * @param anchor The anchor position. * @returns A promise that resolves on completion. */ setAnchor(t: any): Promise; /** * Gets the anchor position for this [[AxisTriad]]. * Default position is in the lower left corner. * @returns The overlay anchor value of the triad. */ getAnchor(): any; /** * Enables this [[AxisTriad]]. * @returns A promise that resolves on completion. */ enable(): Promise; /** * Disables this [[AxisTriad]]. * @returns A promise that resolves on completion. */ disable(): Promise; /** * Updates the visibility of this [[AxisTriad]] based on the enabled status. * @returns A promise that resolves on completion. */ _updateVisibility(): void; /** * Hides the overlay window. * @returns A promise that resolves on completion. */ _hideOverlay(): void; /** * Shows the overlay window. * @returns A promise that resolves on completion. */ _showOverlay(): void; /** * Gets the current state of this [[AxisTriad]]. * @returns `true` if enabled and `false` otherwise. */ getEnabled(): boolean; /** * Gets the overlay id. This id should be considered reserved and not be used by client applications. * @returns The overlay id used by this [[AxisTriad]]. */ getOverlayId(): any; _updateViewport(): void; _createViewport(): void; _onViewportSet(): void; _createGeometry(): Promise; _createGeomCallbacks(): void; /** @hidden */ _geometryHasBeenCreated(): boolean; /** * Determines whether or not a point is inside the axis triad overlay * @param mousePos * @returns Boolean indicating whether the provided point is inside the axis triad overlay */ insideOverlay(t: any): boolean; /** @hidden */ _getOverlayOffset(): any; /** @hidden */ _getViewportSize(): $o; /** @hidden */ _getViewportPixelSize(): any; /** * Checks if a selection is part of the axis triad, and return the corresponding axis. * @param selectionItem selection item to check. * @returns Axis if selected, null otherwise. */ getSelectionAxis(t: any): any; /** * Called when the axis triad is clicked. Realigns the view along the axis selected by `selection` * or does nothing if no axis is selected. * @param selection */ onClickSelection(t: any): Promise; _getScEngine(): any; _createInstance(t: any, e: any, i: any, n: any, r: any, o: any): Promise; _createAxis(t: any, e: any, i: any): Promise; _createAxisLabel(t: any, e: any, i: any): Promise; _onCameraUpdate(): void; _alignedFitBounding(t: any, e: any, i: any, n: any): Cn | undefined; }; get axisTriad(): { _position: $o; _viewportSize: $o; _anchor: any; _instanceKeys: any[]; _enabled: boolean; _sceneReady: Promise; _assemblyTreeReady: Promise; _axisTriadReadyToInit: Promise[]; _geometryCreated: boolean; _viewer: any; _view: any; /** * Sets the color of one axis on this [[AxisTriad]] * @param axis The axis that will change color * @param color The color to set */ setAxisColor(t: any, e: any): Promise; /** * Sets the anchor position for this [[AxisTriad]]. * @param anchor The anchor position. * @returns A promise that resolves on completion. */ setAnchor(t: any): Promise; /** * Gets the anchor position for this [[AxisTriad]]. * Default position is in the lower left corner. * @returns The overlay anchor value of the triad. */ getAnchor(): any; /** * Enables this [[AxisTriad]]. * @returns A promise that resolves on completion. */ enable(): Promise; /** * Disables this [[AxisTriad]]. * @returns A promise that resolves on completion. */ disable(): Promise; /** * Updates the visibility of this [[AxisTriad]] based on the enabled status. * @returns A promise that resolves on completion. */ _updateVisibility(): void; /** * Hides the overlay window. * @returns A promise that resolves on completion. */ _hideOverlay(): void; /** * Shows the overlay window. * @returns A promise that resolves on completion. */ _showOverlay(): void; /** * Gets the current state of this [[AxisTriad]]. * @returns `true` if enabled and `false` otherwise. */ getEnabled(): boolean; /** * Gets the overlay id. This id should be considered reserved and not be used by client applications. * @returns The overlay id used by this [[AxisTriad]]. */ getOverlayId(): any; _updateViewport(): void; _createViewport(): void; _onViewportSet(): void; _createGeometry(): Promise; _createGeomCallbacks(): void; /** @hidden */ _geometryHasBeenCreated(): boolean; /** * Determines whether or not a point is inside the axis triad overlay * @param mousePos * @returns Boolean indicating whether the provided point is inside the axis triad overlay */ insideOverlay(t: any): boolean; /** @hidden */ _getOverlayOffset(): any; /** @hidden */ _getViewportSize(): $o; /** @hidden */ _getViewportPixelSize(): any; /** * Checks if a selection is part of the axis triad, and return the corresponding axis. * @param selectionItem selection item to check. * @returns Axis if selected, null otherwise. */ getSelectionAxis(t: any): any; /** * Called when the axis triad is clicked. Realigns the view along the axis selected by `selection` * or does nothing if no axis is selected. * @param selection */ onClickSelection(t: any): Promise; _getScEngine(): any; _createInstance(t: any, e: any, i: any, n: any, r: any, o: any): Promise; _createAxis(t: any, e: any, i: any): Promise; _createAxisLabel(t: any, e: any, i: any): Promise; _onCameraUpdate(): void; _alignedFitBounding(t: any, e: any, i: any, n: any): Cn | undefined; }; _determineViewAxes(t: any): void; /** * Sets the color of the ambient light applied to the scene. * This is a constant source of light that affects every point * in the scene in the same way regardless of position * or surface normal. * * See also [[getAmbientLightColor]]. */ setAmbientLightColor(t: any): void; /** * Gets the color of the ambient light applied to the scene. * * See also [[setAmbientLightColor]]. */ getAmbientLightColor(): vt; /** * Get the list of light keys in the scene. * @returns The list of light keys in the scene. */ getLightKeys(): any; /** * Get a Light given its key if it exists. * @param key The key of the light to get. * @returns A Light given its key if it exists. */ getLight(t: any): any; /** * Removes all lights from the scene. When there are no lights, * material colors are drawn at full intensity. This has the same * visual effect as calling `setLightingEnabled(false)`. * * See also: * - [[InstanceModifier.DoNotLight]] * - [[setLightingEnabled]] */ clearLights(): void; /** * Adds a light to the scene. The returned promise may be rejected if * there are too many lights in the scene. See [[Light]]. * * See also: * - [[clearLights]] * - [[removeLight]] * - [[updateLight]] * - [[setAmbientLightColor]] */ addLight(t: any): any; /** * removes a light from the scene. See [[Light]]. * * See also: * - [[addLight]] * - [[clearLights]] * - [[updateLight]] */ removeLight(t: any): void; /** * Updates a light in the scene. See [[Light]]. * * See also: * - [[addLight]] * - [[clearLights]] * - [[removeLight]] */ updateLight(t: any, e: any): void; /** * Sets whether bloom is enabled. * * See [[getBloomEnabled]]. */ setBloomEnabled(t?: boolean): void; /** * Returns whether bloom is enabled. * * See [[setBloomEnabled]]. */ getBloomEnabled(): boolean; /** * Sets the minimum luminance value a pixel must have for it to * contribute to bloom. The value should be in the range `[0,1]`. * * See [[getBloomThreshold]], [[setBloomThresholdRampWidth]]. */ setBloomThreshold(t: any): void; /** * Returns the minimum luminance value a pixel must have for it to * contribute to bloom. * * See [[setBloomThreshold]], [[getBloomThresholdRampWidth]]. */ getBloomThreshold(): number; /** * Sets how much greater than the threshold set by [[setBloomThreshold]] * a pixel's luminance value must be before it contributes fully to * the bloom effect. * * If the pixel's luminance value does not exceed * the threshold by at least the amount set by this function, * the pixel's contribution will be diminished based on how close * its luminance value is to the threshold. * * See [[getBloomThresholdRampWidth]]. */ setBloomThresholdRampWidth(t: any): void; /** * Returns how much greater than the threshold set by [[setBloomThreshold]] * a pixel's luminance value must be before it contributes fully to * the bloom effect. * * See [[setBloomThresholdRampWidth]]. */ getBloomThresholdRampWidth(): number; /** * Sets the intensity of the bloom effect. This value is multiplied * by the intensities of the individual layers set by [[setBloomLayers]]. * * See [[getBloomIntensityScale]]. */ setBloomIntensityScale(t: any): void; /** * Gets the intensity of the bloom effect. * * See [[setBloomIntensityScale]]. */ getBloomIntensityScale(): number; /** * Sets the number of layers in the bloom effect and the layers' * attributes. * * The bloom effect is achieved by applying a luminance filter to the * source image, then progressively downsampling, blurring, and adding * the results together. The result of each downsample/blur operation is * fed into the next, which is executed at half the resolution of the * previous. The number of stages and the behavior of each stage * are controlled by this function. * * See [[BloomLayerInfo]], [[getBloomLayers]]. */ setBloomLayers(t: any): void; /** * Returns an array of objects describing each layer in the bloom * effect. * * See [[setBloomLayers]]. */ getBloomLayers(): any; /** * Enables a visual comparison of two sets of nodes. The nodes specified * by `nodeIdSet1` are filled with one color, the nodes specified by * `nodeIdSet2` with another color, and overlapping areas are filled * with a third color. * * See [[endComparison]]. * * @param nodeIdSet1 the nodes to compare against `nodeIdSet2` * @param nodeIdSet2 the nodes to compare against `nodeIdSet1` * @param config settings controlling the behavior of the comparison */ startComparison(t: any, e: any, i: any): void; /** * Disables a visual comparison of two sets of nodes enabled by * [[startComparison]]. */ endComparison(): void; /** * Enables or disables a full-scene shadow projected onto an * invisible ground plane. * * See also: * - [[getSimpleShadowEnabled]] * - [[setSimpleShadowColor]] * - [[setSimpleShadowOpacity]] * - [[setGroundPlane]] * - [[setSimpleShadowResolution]] * - [[setSimpleShadowInteractiveUpdateEnabled]] * * @param value Whether simple shadows should be enabled. */ setSimpleShadowEnabled(t?: boolean): void; /** * Returns whether simple shadows are enabled. * * See [[setSimpleShadowEnabled]]. */ getSimpleShadowEnabled(): boolean; /** * Sets the color of simple shadows. * * See also: * - [[getSimpleShadowColor]] * - [[setSimpleShadowEnabled]] * * @param color The color to set. */ setSimpleShadowColor(t: any): void; _simpleShadowColor: any; /** * Returns the color of simple shadows. * * See also: * - [[setSimpleShadowColor]] * - [[setSimpleShadowEnabled]] */ getSimpleShadowColor(): any; /** * Sets the opacity of simple shadows. * * See also: * - [[getSimpleShadowOpacity]] * - [[setSimpleShadowEnabled]] * * @param opacity The opacity to set. */ setSimpleShadowOpacity(t: any): void; _simpleShadowOpacity: any; /** * Returns the opacity of simple shadows. * * See also: * - [[setSimpleShadowOpacity]] * - [[setSimpleShadowEnabled]] */ getSimpleShadowOpacity(): any; /** * Defines the invisible ground plane onto which simple shadows * and reflections are projected. * * See also: * - [[getGroundPlane]] * - [[setSimpleShadowEnabled]] * - [[setSimpleReflectionEnabled]] * * @param plane The plane to set. */ setGroundPlane(t: any): void; _groundPlane: any; _updateGroundPlane(t: any, e: any): void; /** * Returns information about the invisible ground plane onto which * simple shadows and reflections are projected. * * See also: * - [[setGroundPlane]] */ getGroundPlane(): any; /** * Sets the width and height in pixels of the texture image into which * simple shadows are drawn. * * See also: * - [[getSimpleShadowResolution]] * - [[setSimpleShadowEnabled]] * * @param pixels The resolution to set. */ setSimpleShadowResolution(t: any): void; _simpleShadowResolution: any; /** * Returns the width and height in pixels of the texture image * into which simple shadows are drawn. * * See also: * - [[getSimpleShadowResolution]] * - [[setSimpleShadowEnabled]] */ getSimpleShadowResolution(): any; /** * Sets the diameter of the blur filter used for simple shadows. * Setting the value to `0` will disable blurring. * * See also: * - [[getSimpleShadowBlurSamples]] * - [[setSimpleShadowEnabled]] * * @param value The number of samples. */ setSimpleShadowBlurSamples(t: any): void; _simpleShadowBlurSamples: any; /** * Returns the diameter of the blur filter used for simple shadows. * * See also: * - [[setSimpleShadowBlurSamples]] * - [[setSimpleShadowEnabled]] */ getSimpleShadowBlurSamples(): any; /** * Sets the distance in pixels between samples taken by the blur filter * used for simple shadows. * * See also: * - [[getSimpleShadowBlurInterval]] * - [[setSimpleShadowEnabled]] * * @param value The interval to set. */ setSimpleShadowBlurInterval(t: any): void; _simpleShadowBlurInterval: any; /** * Returns the distance in pixels between samples taken by the blur * filter used for simple shadows. * * See also: * - [[setSimpleShadowBlurInterval]] * - [[setSimpleShadowEnabled]] */ getSimpleShadowBlurInterval(): any; /** * Enables or disables updates to simple shadows during user * interaction. * * See also: * - [[getSimpleShadowInteractiveUpdateEnabled]] * - [[setSimpleShadowEnabled]] */ setSimpleShadowInteractiveUpdateEnabled(t?: boolean): void; _simpleShadowInteractiveUpdateEnabled: boolean | undefined; /** * Returns whether simple shadows will be updated during user * interaction. * * See also: * - [[setSimpleShadowInteractiveUpdateEnabled]] * - [[setSimpleShadowEnabled]] */ getSimpleShadowInteractiveUpdateEnabled(): boolean | undefined; /** * Enables or disables silhouette edges. * * Silhouette edges are always enabled in hidden line mode. * * See also: * - [[getSilhouetteEnabled]] * - [[setSilhouetteColor]] * - [[setSilhouetteOpacity]] * - [[setSilhouetteThreshold]] * - [[setSilhouetteThresholdRampWidth]] * * @param value Whether silhouette edges should be enabled. */ setSilhouetteEnabled(t?: boolean): void; /** * Returns whether silhouette edges are enabled. * * Silhouette edges are always enabled in hidden line mode, regardless * of the return value. * * See [[setSilhouetteEnabled]]. */ getSilhouetteEnabled(): boolean; /** * Sets the color of silhouette edges. * * See also: * - [[getSilhouetteColor]] * - [[setSilhouetteEnabled]] * * @param value The color to set. */ setSilhouetteColor(t: any): void; _silhouetteColor: any; /** * Returns the color of silhouette edges. * * See also: * - [[setSilhouetteColor]] * - [[setSilhouetteEnabled]] */ getSilhouetteColor(): any; /** * Sets the opacity of silhouette edges. * * See also: * - [[getSilhouetteOpacity]] * - [[setSilhouetteEnabled]] * * @param value The opacity to set. */ setSilhouetteOpacity(t: any): void; _silhouetteOpacity: any; /** * Returns the opacity of silhouette edges. * * See also: * - [[setSilhouetteOpacity]] * - [[setSilhouetteEnabled]] */ getSilhouetteOpacity(): any; /** * Sets the distance threshold for silhouette edges. This value * affects the minimum z-distance required between two pixels * for an edge to be drawn. A smaller value will result in more edges * being drawn on finer details. * * The value is a proportion of the canvas size and not a world-space * distance. * * See also: * - [[getSilhouetteThreshold]] * - [[setSilhouetteThresholdRampWidth]] * - [[setSilhouetteEnabled]] * * @param value The threshold to set. */ setSilhouetteThreshold(t: any): void; _silhouetteThreshold: any; /** * Returns the distance threshold for silhouette edges. This value * affects the minimum z-distance required between two pixels * for an edge to be drawn. A smaller value will result in more edges * being drawn on finer details. * * The value is a proportion of the canvas size and not a world-space * distance. * * See also: * - [[setSilhouetteThreshold]] * - [[setSilhouetteThresholdRampWidth]] * - [[setSilhouetteEnabled]] * * @param value The threshold to set. */ getSilhouetteThreshold(): any; /** * Controls how quickly edges fade as z-distance between pixels * decreases. * * This value is added to the one set by [[setSilhouetteThreshold]] * to create a secondary threshold. Distances greater than the * secondary threshold will result in edges with full opacity, and * distances between the two thresholds will result in edges with * reduced opacity. * * Setting this value to `0` will cause all edges to be drawn * at full opacity. * * See also: * - [[getSilhouetteThresholdRampWidth]] * - [[setSilhouetteEnabled]] */ setSilhouetteThresholdRampWidth(t: any): void; _silhouetteThresholdRampWidth: any; /** * Returns the value set by [[setSilhouetteThresholdRampWidth]]. * * This value is added to the one set by [[setSilhouetteThreshold]] * to create a secondary threshold. Distances greater than the * secondary threshold will result in edges with full opacity, and * distances between the two thresholds will result in edges with * reduced opacity. * * A value of `0` means that all edges are drawn at full opacity. * * See also: * - [[setSilhouetteThresholdRampWidth]] * - [[setSilhouetteEnabled]] */ getSilhouetteThresholdRampWidth(): any; /** * Enables or disables hard edges. Hard edges are edges between two * faces whose normals diverge beyond a given angle. * * Hard edges are always enabled in hidden line mode. * * See also: * - [[getHardEdgesEnabled]] * - [[setHardEdgeColor]] * - [[setHardEdgeOpacity]] * - [[setHardEdgeThreshold]] * - [[setHardEdgeThresholdRampWidth]] * * @param value Whether hard edges should be enabled. */ setHardEdgesEnabled(t?: boolean): void; /** * Returns whether hard edges are enabled. Hard edges are edges between * two faces whose normals diverge beyond a given angle. * * Hard edges are always enabled in hidden line mode, regardless of the * return value. * * See [[setHardEdgesEnabled]]. */ getHardEdgesEnabled(): boolean; /** * Sets the color of hard edges. * * See also: * - [[getHardEdgeColor]] * - [[setHardEdgesEnabled]] * * @param value The color to set. */ setHardEdgeColor(t: any): void; _hardEdgeColor: any; /** * Returns the color of hard edges. * * See also: * - [[setHardEdgeColor]] * - [[setHardEdgesEnabled]] */ getHardEdgeColor(): any; /** * Sets the opacity of hard edges. * * See also: * - [[getHardEdgeOpacity]] * - [[setHardEdgesEnabled]] * * @param value The opacity to set. */ setHardEdgeOpacity(t: any): void; _hardEdgeOpacity: any; /** * Returns the opacity of hard edges. * * See also: * - [[setHardEdgeOpacity]] * - [[setHardEdgesEnabled]] */ getHardEdgeOpacity(): any; /** * Sets the angle threshold for hard edges. Edges will be drawn between * two faces whose normals diverge beyond this angle. * * See also: * - [[getHardEdgeThreshold]] * - [[setHardEdgeThresholdRampWidth]] * - [[setHardEdgesEnabled]] * * @param degrees The threshold to set. */ setHardEdgeThreshold(t: any): void; _hardEdgeThreshold: any; /** * Returns the angle threshold for hard edges. Edges will be drawn * between two faces whose normals diverge beyond this angle. * * See also: * - [[setHardEdgeThreshold]] * - [[setHardEdgeThresholdRampWidth]] * - [[setHardEdgesEnabled]] * * @param value The threshold to set. */ getHardEdgeThreshold(): any; /** * Controls how quickly edges fade as the angle between adjacent faces * decreases. * * This value is added to the one set by [[setHardEdgeThreshold]] to * create a secondary threshold. Angles greater than the secondary * threshold will result in edges with full opacity, and angles between * the two thresholds will result in edges with reduced opacity. * * Setting this value to `0` will cause all edges to be drawn at full * opacity. * * See also: * - [[getHardEdgeThresholdRampWidth]] * - [[setHardEdgesEnabled]] */ setHardEdgeThresholdRampWidth(t: any): void; _hardEdgeThresholdRampWidth: any; /** * Returns the value set by [[setHardEdgeThresholdRampWidth]]. * * This value is added to the one set by [[setHardEdgeThreshold]] to * create a secondary threshold. Angles greater than the secondary * threshold will result in edges with full opacity, and angles between * the two thresholds will result in edges with reduced opacity. * * A value of `0` means that all edges are drawn at full opacity. * * See also: * - [[setHardEdgeThresholdRampWidth]] * - [[setHardEdgesEnabled]] */ getHardEdgeThresholdRampWidth(): any; /** * Enables or disables simple reflections projected onto an * invisible ground plane. * * See also: * - [[getSimpleReflectionEnabled]] * - [[setSimpleReflectionOpacity]] * - [[setSimpleReflectionBlurSamples]] * - [[setSimpleReflectionBlurInterval]] * - [[setSimpleReflectionFadeAngle]] */ setSimpleReflectionEnabled(t?: boolean): void; /** * Returns whether simple reflections are enabled. * * See [[setSimpleReflectionEnabled]]. */ getSimpleReflectionEnabled(): boolean; /** * Sets the distance between samples taken by the blur filter used for * simple reflections. * * See also: * - [[getSimpleReflectionBlurInterval]] * - [[setSimpleReflectionEnabled]] * * @param value The interval to set. * @param unit The unit in which the `value` argument is specified. */ setSimpleReflectionBlurInterval(t: any, e?: any): void; _simpleReflectionBlurInterval: any[] | undefined; /** * Returns the distance between samples taken by the blur filter used * for simple reflections. * * See also: * - [[setSimpleReflectionBlurInterval]] * - [[setSimpleReflectionEnabled]] */ getSimpleReflectionBlurInterval(): any[]; /** * Sets the diameter of the blur filter used for simple reflections. * Setting the value less than or equal to `1` will disable blurring. * * See also: * - [[getSimpleReflectionBlurSamples]] * - [[setSimpleReflectionEnabled]] */ setSimpleReflectionBlurSamples(t: any): void; _simpleReflectionBlurSamples: any; /** * Returns the diameter of the blur filter used for simple reflections. * A value less than or equal to `1` means that blurring is disabled. * * See also: * - [[setSimpleReflectionBlurSamples]] * - [[setSimpleReflectionEnabled]] */ getSimpleReflectionBlurSamples(): any; /** * Sets the angle, in degrees, between the view vector and the ground * plane at which simple reflections begin to fade. * * Settings the value to `0` will disable the fading effect. * * Regardless of the value, simple reflections will not be drawn * if the camera is below the ground plane. * * See also: * - [[getSimpleReflectionFadeAngle]] * - [[setSimpleReflectionEnabled]] * * @param degrees The angle in degrees. */ setSimpleReflectionFadeAngle(t: any): void; _simpleReflectionFadeAngle: any; /** * Returns the angle, in degrees, between the view vector and the ground * plane at which simple reflections begin to fade. * * A value to `0` means that the fading effect is disabled. * * Regardless of the value, simple reflections will not be drawn * if the camera is below the ground plane. * * See also: * - [[setSimpleReflectionFadeAngle]] * - [[setSimpleReflectionEnabled]] */ getSimpleReflectionFadeAngle(): any; /** * Sets the opacity of simple reflections. * * See also: * - [[getSimpleReflectionOpacity]] * - [[setSimpleReflectionEnabled]] * * @param opacity The opacity to set. */ setSimpleReflectionOpacity(t: any): void; _simpleReflectionOpacity: any; /** * Returns the opacity of simple reflections. * * See also: * - [[setSimpleReflectionOpacity]] * - [[setSimpleReflectionEnabled]] */ getSimpleReflectionOpacity(): any; /** * Controls how objects drawn in simple reflections fade as they * move further from the ground plane. * * Attenuation begins at `nearDistance` and increases linearly * such that the model is not visible in the reflection beyond * `farDistance`. * * Attenuation is disabled if `farDistance` is less than or equal to * `nearDistance`. * * See also: * - [[getSimpleReflectionAttenuation]] * - [[setSimpleReflectionEnabled]] * * @param nearDistance The distance from the ground plane at which * objects begin to fade. * @param farDistance The distance from the ground plane at which * objects are completely faded. * @param unit The unit in which `nearDistance` and `farDistance` are * specified. If unspecified, [[SimpleReflectionAttenuationUnit.World]] * will be used. */ setSimpleReflectionAttenuation(t: any, e: any, i?: any): void; _simpleReflectionAttenuation: { nearDistance: any; farDistance: any; unit: any; } | undefined; /** * Returns properties that control how objects drawn in simple * reflections fade as they move further from the ground plane. * * Attenuation begins at `nearDistance` and increases linearly * such that the model is not visible in the reflection beyond * `farDistance`. * * Attenuation is disabled if `farDistance` is less than or equal to * `nearDistance`. * * See also: * - [[setSimpleReflectionAttenuation]] * - [[setSimpleReflectionEnabled]] * * @returns An object with the following properties: */ getSimpleReflectionAttenuation(): { nearDistance?: any; farDistance?: any; unit?: any; }; /** * Tests whether the given points are visible by comparing them to * the depth buffer of the most-recently-drawn frame. Points that * are partially obscured by transparent objects are considered visible. * * If the test is to be run every time a frame is drawn, * [[setPointVisibilityTest]] should be used instead for proper * synchronization. * * @param points The points to test. * @returns A list of indices of the visible points. */ testPointVisibility(t: any): any; /** * Sets a list of points whose visibility will be tested every time a * frame is drawn by comparing them to the frame's depth buffer. Points * that are partially obscured by transparent objects are considered * visible. * * The results are passed to the [[CallbackMap.frameDrawn]] callback so * that UI elements may be updated in sync with rendering. * * See also [[testPointVisibility]]. * * @param points The points to test. An empty array will disable the test. */ setPointVisibilityTest(t: any): void; /** * Sets whether image-based lighting is enabled for physically-based * materials. * * See also: * - [[getImageBasedLightingEnabled]] * - [[setImageBasedLightingIntensity]] * - [[setImageBasedLightingOrientation]] */ setImageBasedLightingEnabled(t: any): void; /** * Returns whether image-based lighting is enabled for physically-based * materials. * * See also: * - [[setImageBasedLightingEnabled]] * - [[setImageBasedLightingIntensity]] * - [[setImageBasedLightingOrientation]] */ getImageBasedLightingEnabled(): boolean; /** * Sets the intensity (brightness) of image-based lighting applied to * physically-based materials. * * The default value is 1. * * See also: * - [[getImageBasedLightingIntensity]] * - [[setImageBasedLightingEnabled]] * - [[setImageBasedLightingOrientation]] */ setImageBasedLightingIntensity(t: any): void; _imageBasedLightingIntensity: any; /** * Returns the intensity (brightness) of image-based lighting applied to * physically-based materials. * * The default value is 1. * * See also: * - [[setImageBasedLightingIntensity]] * - [[setImageBasedLightingEnabled]] * - [[setImageBasedLightingOrientation]] */ getImageBasedLightingIntensity(): any; _copyImageBasedLightingOrientation(t: any): any; /** * Sets the orientation of the image-based lighting environment applied * to physically-based materials. * * See also: * - [[getImageBasedLightingOrientation]] * - [[setImageBasedLightingEnabled]] * - [[setImageBasedLightingIntensity]] */ setImageBasedLightingOrientation(t: any): void; _imageBasedLightingOrientation: any; /** * Returns the orientation of the image-based lighting environment * applied to physically-based materials. * * See also: * - [[setImageBasedLightingOrientation]] * - [[setImageBasedLightingEnabled]] * - [[setImageBasedLightingIntensity]] */ getImageBasedLightingOrientation(): any; _updateImageBasedLightingOrientation(t: any, e: any): void; /** * Sets the environment image used by image-based lighting applied to * physically-based materials. * * Passing `null` will cause the default environment image to be used. * * The image should be a cube map in KTX2 format with a space-separated * list of spherical harmonics coefficients stored under the "sh" * metadata key. * * A compatible image can be created from an equirectangular source * image (such as those found at [HDRI Haven](https://hdrihaven.com)) * with the following process: * * - cmgen: https://github.com/google/filament * - ktx2ktx2, ktx2sc: https://github.com/KhronosGroup/KTX-Software/ * * ``` * cmgen -x out --format=ktx --size=256 in.hdr * ktx2ktx2 -o uncompressed.ktx2 out/out_ibl.ktx * ktxsc --zcmp 20 -o out.ktx2 uncompressed.ktx2 * ``` */ setImageBasedLightingEnvironment(t: any): void; /** * Sets whether line jitter is enabled. * * Line jitter makes lines look 'sketchy' by drawing them multiple times * with randomized offsets applied to the vertices. * * See also: * - [[getLineJitterEnabled]] * - [[setLineJitterInstanceCount]] * - [[setLineJitterRadius]] * - [[setLineJitterFrequency]] */ setLineJitterEnabled(t?: boolean): void; /** * Returns whether line jitter is enabled. * * Line jitter makes lines look 'sketchy' by drawing them multiple times * with randomized offsets applied to the vertices. * * See also: * - [[setLineJitterEnabled]] * - [[getLineJitterInstanceCount]] * - [[getLineJitterRadius]] * - [[getLineJitterFrequency]] */ getLineJitterEnabled(): boolean; /** * Sets the number of times lines are drawn when line jitter is enabled. * The default value is 4. * * Increasing this number can make the lines look more 'sketchy.' * * See also: * - [[setLineJitterEnabled]] * - [[getLineJitterInstanceCount]] * - [[setLineJitterRadius]] * - [[setLineJitterFrequency]] */ setLineJitterInstanceCount(t: any): void; _lineJitterInstanceCount: any; /** * Returns the number of times lines are drawn when line jitter is * enabled. The default value is 4. * * See also: * - [[getLineJitterEnabled]] * - [[setLineJitterInstanceCount]] * - [[getLineJitterRadius]] * - [[getLineJitterFrequency]] */ getLineJitterInstanceCount(): any; /** * Sets the radius of the random offset applied to line vertices when * line jitter is enabled. The default value is 0.005. * * The value is specified as a proportion of the canvas height, where 1 * means the full height of the canvas. * * See also: * - [[setLineJitterEnabled]] * - [[setLineJitterInstanceCount]] * - [[getLineJitterRadius]] * - [[setLineJitterFrequency]] */ setLineJitterRadius(t: any): void; _lineJitterRadius: any; /** * Returns the radius of the random offset applied to line vertices when * line jitter is enabled. The default value is 0.005. * * The value is specified as a proportion of the canvas height, where 1 * means the full height of the canvas. * * See also: * - [[getLineJitterEnabled]] * - [[getLineJitterInstanceCount]] * - [[setLineJitterRadius]] * - [[getLineJitterFrequency]] */ getLineJitterRadius(): any; /** * Sets the frequency of the noise used to offset line vertices when * line jitter is enabled. The default value is 5. * * Decreasing this value causes lines to appear smoother, while * increasing it causes lines to look more noisy. * * See also: * - [[setLineJitterEnabled]] * - [[setLineJitterInstanceCount]] * - [[setLineJitterRadius]] * - [[getLineJitterFrequency]] */ setLineJitterFrequency(t: any): void; _lineJitterFrequency: any; /** * Returns the frequency of the noise used to offset line vertices when * line jitter is enabled. The default value is 5. * * See also: * - [[getLineJitterEnabled]] * - [[getLineJitterInstanceCount]] * - [[getLineJitterRadius]] * - [[setLineJitterFrequency]] */ getLineJitterFrequency(): any; } declare class Wp { frontVector: _; upVector: _; } declare var Me: any; declare var Ct: any; declare class Eb { constructor(t: any, e: any); defaultVisibility: any; visibilityExceptions: any; } declare var Re: any; declare var wc: any; declare class r1 { static set defaultEnginePath(t: any); static get defaultEnginePath(): any; static set defaultEngineBinary(t: any); static get defaultEngineBinary(): any; /** * Creates a new Web Viewer instance. You must pass in a **containerId** key with the ID of an element or a **container** element to use for your viewer. * The system will create any required elements inside the supplied container. * * @param inputParams object containing key-value pairs for viewer to set */ constructor(t: any); _callbackManager: Mv; _interpolationManager: dI; _streamingMode: any; _rendererType: any; _alreadyShutDown: boolean; _shutdownTimer: Xo; _sceneReadyPromise: Promise; _modelReady: boolean; _modelLoadFailure: boolean; _seenPriorityMetaDataSent: boolean; _views: Jp[]; config: any; _contextMenuActiveFlag: boolean; _timeoutMonitor: BC; _engine: lI; model: Nc; measureManager: vx; lineManager: _x; sheetManager: xx; noteTextManager: { _pinSphereMeshId: any; _pinStemMeshId: any; _noteTextList: any[]; _activeItemHandle: any; _activeItem: any; _explodeActive: boolean; _isolateActive: boolean; _stemLength: number; _sphereIterations: number; _viewer: any; _noteTextElement: Sy; _init(): Promise; _createPinStemMeshData(): Cs; _createPinSphereMeshData(): Cs; /** * Retrieves the mesh id of the stem of the note pin, if there is one * @returns MeshId of the note pin stem, or null if there is none */ getPinStemMeshId(): any; /** * Retrieves the mesh id of the spherical head of the note pin, if there is one * @returns MeshId of the note pin sphere, or null if there is none */ getPinSphereMeshId(): any; /** * Retrieves the note text element * @returns note text element */ getNoteTextElement(): Sy; /** * Sets the note text element * @param noteTextElement */ setNoteTextElement(t: any): void; /** * Gets an array of all NoteText items that have been added to the manager * @returns array of all NoteText items */ getNoteTextList(): any[]; /** * Adds a note and makes it active * @param note NoteText to be added to the manager */ addNote(t: any): void; /** * Removes a note from the manager * @param note NoteText to be removed from the manager */ removeNote(t: any): void; /** * Updates note pin visibility based on manager state (namely the current explode state) */ updatePinVisibility(): Promise; /** * Sets manager explode state based on explosion magnitude. Active explosion hides note pins * @param magnitude Explosion magnitude */ explode(t: any): Promise; /** * Gets managers explosion state. Active explosion hides note pins */ getExplodeActive(): boolean; /** * Sets whether an isolate is currently active or not * @param isolateActive */ setIsolateActive(t: any): void; /** * Gets whether an isolate is currently active or not * @returns isolate status */ getIsolateActive(): boolean; /** * Get the currently active note text * @returns Currently active note text */ getActiveItem(): any; /** * Sets a new currently active note text * @param activeItem note text to be marked as currently active */ setActiveItem(t: any): void; /** * Get the active handle string, such as the one returned by [[MarkupManager.registerMarkup]] * @returns Active handle string */ getActiveItemHandle(): any; /** * Set the active handle string, should be provided by [[MarkupManager.registerMarkup]] * @param activeItemHandle Active handle string */ setActiveItemHandle(t: any): void; /** * Attempts to set the active note to the one associated with the * pins elected by the provided [[SelectionItem]] * @param selection SelectionItem to attempt to find note from */ selectPin(t: any): boolean; /** * Checks if a nodeId is part of a note pin * @param nodeId NodeId to be checked */ checkPinInstance(t: any): boolean; _getNoteTextFromNodeId(t: any): any; /** * Checks if a UUID is associated with any existing notes * @param id UUID to check */ findById(t: any): boolean; /** * Loads notes from an iterable of JSON data like that returned by [[exportMarkup]] * @param notes JSON note data iterable */ loadData(t: any): Promise; /** * Exports note texts to an array of JSON Objects that can be restored via [[loadData]] * @returns Array of JSON objects representing notes */ exportMarkup(): any[]; }; cuttingManager: fx; explodeManager: gx; markupManager: wx; _modelStructure: iI; BCFManager: uI; selectionManager: Cd; animationManager: T_; /** * @deprecated OverlayManagers are now properties of Views. */ get overlayManager(): j_; /** * @deprecated FloorplanManagers are now properties of Views. */ get floorplanManager(): { _active: any; _isSceneReady: boolean; _isModelLoaded: boolean; _isOverlayVisible: boolean; _isCallbacksSet: boolean; _onCameraUpdateFunc: any; _onFrameDrawnFunc: any; _floorplanNode: any; _currentFloorInfo: any; _config: any; _floorLock: boolean; _tightBoundings: boolean; _genericStoreyType: string; _floorInfos: Map; _floorInfosArray: any[]; _avatarNode: any; _avatarDirty: boolean; _borderNode: any; _borderDirty: boolean; _backgroundNode: any; _backgroundDirty: boolean; _canvasSize: K; _sync: jo; _setFloorplanSync: P0; _viewer: any; _model: any; _engine: any; _overlayManager: any; /** Sets a custom avatar. See [[FloorplanConfig.customAvatar]] for detailed information. */ setCustomAvatar(t: any): Promise; /** Sets the size of the floorplan overlay window. See [[FloorplanConfig.overlaySize]] for detailed information. */ setOverlaySize(t: any, e: any, i: any): Promise; /** Sets the anchor position of the floorplan overlay window. See [[FloorplanConfig.overlayAnchor]] for detailed information. */ setOverlayAnchor(t: any): Promise; /** Sets the offset position of the floorplan overlay window. See [[FloorplanConfig.overlayOffset]] for detailed information. */ setOverlayOffset(t: any): Promise; /** Sets the overlay scaling. See [[FloorplanConfig.overlayFeetPerPixel]] for detailed information. */ setOverlayFeetPerPixel(t: any): Promise; /** Sets the overlay zoom level. See [[FloorplanConfig.zoomLevel]] for detailed information. */ setZoomLevel(t: any): Promise; /** Sets the overlay background color. See [[FloorplanConfig.backgroundColor]] for detailed information. */ setBackgroundColor(t: any): Promise; /** Sets the overlay background opacity. See [[FloorplanConfig.backgroundOpacity]] for detailed information. */ setBackgroundOpacity(t: any): Promise; /** Sets the overlay border color. See [[FloorplanConfig.borderColor]] for detailed information. */ setBorderColor(t: any): Promise; /** Sets the overlay border opacity. See [[FloorplanConfig.borderOpacity]] for detailed information. */ setBorderOpacity(t: any): Promise; /** Sets the avatar primary color. See [[FloorplanConfig.avatarColor]] for detailed information. */ setAvatarColor(t: any): Promise; /** Sets the avatar outline color. See [[FloorplanConfig.avatarOutlineColor]] for detailed information. */ setAvatarOutlineColor(t: any): Promise; /** Sets the avatar opacity. See [[FloorplanConfig.avatarOpacity]] for detailed information. */ setAvatarOpacity(t: any): Promise; /** Sets the avatar scale. See [[FloorplanConfig.avatarScale]] for detailed information. */ setAvatarScale(t: any): Promise; /** Sets the avatar size to fixed scale. See [[FloorplanConfig.fixedAvatarScale]] for detailed information. */ setFixedAvatarScale(t: any): Promise; /** Sets the floorplan tracking mode. See [[FloorplanConfig.trackCameraEnabled]] for detailed information. */ setTrackCameraEnabled(t: any): Promise; /** Sets the floorplan display orientation. See [[FloorplanConfig.floorplanOrientation]] for detailed information. */ setFloorplanOrientation(t: any): Promise; /** Sets the auto-activate capability for any models loaded after this call. See [[FloorplanConfig.autoActivate]] for detailed information. */ setAutoActivate(t: any): Promise; /** Locks floorplan to current floor such that changing floors will not change the displayed floorplan. */ setFloorLock(t: any): Promise; /** Returns `true` if displayed floor has been locked with [[setFloorLock]]. */ getFloorLock(): boolean; /** * Makes floorplans use tight boundings during creation which can result in a better fit for the overlay. * This involves recreating any already existing floorplans. * This can be significantly more time consuming than using loose boundings if your floors are complex. * Defaults to `false`. */ setUseTightBoundings(t: any): Promise; /** * Updates the floorplan to use the given configuration. This function allows * the user to set all configuration values with a single operation. There are * also `set()` functions for easily setting individual configuration * values. * * Note that when using this function, all settings in the given configuration are * used and thus overwrite any individual settings changed with a prior * `set()` call. * * All values from the passed configuration will be copied as part of this operation. */ setConfiguration(t: any): Promise; /** Returns a copy of the current floorplan configuration. */ getConfiguration(): any; /** Gets the [[NodeId]] of the current storey. */ getCurrentFloorNodeId(): any; /** Gets the [[NodeId]] of the floorplan avatar. */ getAvatarNodeId(): any; /** Returns `true` if the given point is inside the floorplan overlay and `false` otherwise. */ insideOverlay(t: any): boolean; /** * Activate the floorplan overlay. */ activate(): Promise; /** * Deactivate the floorplan overlay. Once explicitly deactivated via this call, auto-activation * will be suppressed for any new model that is loaded. Auto-activation can be reenabled by * calling [[setAutoActivate]]. */ deactivate(): Promise; /** * The avatar node needs to be deleted any time we are making changes to the mesh, * such as switching to a custom avatar or fixed avatar scale. */ _deleteAvatarNode(): Promise; /** Perform the steps needed to set a custom avatar. */ _doSetCustomAvatar(t: any): Promise; /** Call after something in the configuration has changed. Will update all visuals accordingly */ _onConfigurationChanged(): Promise; /** Sets the best floorplan for the given world position */ _setFloorplanFromPosition(t: any): Promise; /** Sets what floor the floorplan displays based on position */ _doSetFloorplanFromPosition(t: any): Promise; /** This function performs a downward selection and sorts the results by the top of their boundings */ _performDownwardSelection(t: any): Promise; /** * Will set the active state appropriately and kick off activation processing */ _activate(): Promise; /** * Deactivation will remove camera callbacks, hide the overlay, delete floornodes, and any other necessary cleanup */ _deactivate(): Promise; /** This will be called anytime a model has loaded... first model, second model, etc. */ _onModelLoaded(): Promise; /** * When a model is loaded, the active state will be examined and possibly modified here based on the incoming model. */ _doOnModelLoaded(): Promise; /** * This will activate the floorplan visuals if conditions allow. */ _doUpdateActivation(): Promise; /** * Deletes all floorplan infos including generated nodes */ _deleteAllFloorplans(): Promise; /** Hides the currently active floorplan */ _hideActiveFloorplan(): Promise; /** * Call when IFC information is available from the model tree. Note that this call can happen multiple * times within a session, thus it must be tolerant of existing data vs new data. */ _onProcessIfc(): Promise; /** */ _hasFloorInfo(t: any): boolean; /** */ _getFloorInfo(t: any): any; /** * Creates floorplan related information from a floor node */ _createFloorInfo(t: any): Promise; /** * Find the root floor nodes within the model. */ _gatherFloorInfos(): Promise; /** * Gathers all descendent nodes that have IFC types matching the given IFC types */ _gatherDescendentIfcNodes(t: any, e: any, i: any): void; /** * Creates a floorplan mesh from a FloorInfo object and returns the NodeId of the resulting mesh. * Note: This does not attach the created floorplan mesh to the FloorInfo param. That must be done after. */ _createFloorplanFromFloorInfo(t: any): Promise; /** We need to handle a canvas size updates, so use the frame-drawn callback */ _onFrameDrawn(): Promise; /** Updates the overlay camera based on current state */ _doCameraUpdate(): Promise; /** * Returns `true` if the [[FloorplanManager]] is fully active. */ isActive(): boolean; /** Call anytime something in the floorplan overlay might need to change. */ _updateOverlay(): Promise; /** * Call anytime something in the floorplan overlay might need to change. */ _updateOverlayNodes(t: any, e: any): Promise; /** * Moves the camera such that the avatar will appear at the provided point on the overlay. * This is only available when the floorplan is not tracking the camera. * @param point Point in canvas within overlay */ snapAvatarToPoint(t: any): void; /** Figure out the pixel size of the overlay window */ _getOverlaySizeInPixels(): any; /** Get overlay offset in pixels */ _getOverlayOffsetInPixels(): any; _getFixedCameraSize(t: any): K | null; /** Updates the camera settings for the overlay. Only update if the floorplan has changed? */ _updateOverlayCamera(t: any, e: any): Promise; /** * Sets the current floorplan based on the floorNode. * * @param floorNode A IFC Story node. */ _setFloorplanFromFloorNode(t: any): Promise; /** * Creates the floorplan overlay */ _setupOverlay(): Promise; /** Nodes within the the overlay displays aren't honoring their visibility settings. This is a workaround * until that problem is fixed. Since the floorplan is a top-down view, we can just move "hidden" nodes * far enough out of the camera view so they aren't rendered. */ _hideOverlayNode(t: any): Promise; /** See _hideOverlayNode for workaround description */ _showOverlayNode(t: any): Promise; /** Creates a simple node to show the camera-position as an avatar on the overlay */ _createAvatar(): Promise; /** Create a 2d line based box. Used for the overlay border & background */ _create2dBox(t: any, e: any, i: any): Promise; }; /** * Adds another 3D view of the scene to the page. * @param config configuration to be used for the new view. * @returns A promise with the created View. */ addView(t: any): Promise; /** * Removes an existing view from the page. Note that the default view cannot be removed. * @param view The view to remove. */ removeView(t: any): void; /** * Gets a view with the provided key. * @param viewKey The key of the view to be returned. * @returns The view, or undefined if it doesn't exist. */ getView(t: any): Jp | undefined; get view(): Jp; get views(): Jp[]; /** * @deprecated OperatorManagers are now properties of Views. */ get operatorManager(): bx; /** * Sets a boolean with the status of the context menu * @param isActive */ setContextMenuStatus(t: any): void; /** * @returns boolean true if the context menu is active, false otherwise */ getContextMenuStatus(): boolean; /** * @param options */ _setInitialOptions(t: any): void; /** * Returns the viewer version string. * @returns string containing version information for the viewer. */ getViewerVersionString(): string; /** * Returns the format version string. * @returns string containing version information for the format. */ getFormatVersionString(): any; /** * Starts the viewer and begins the loading process */ start(): boolean; /** * Associates a custom operator object with a system generated operatorId. * @param operatorId the ID of the operator that is to be unregistered * @returns an operatorId to be used for this operator. */ registerCustomOperator(t: any): number; /** * Removes a previously registered custom operator from the system. * @param operatorId the ID of the operator that is to be unregistered */ unregisterCustomOperator(t: any): void; /** * Sets whether keyboard input should be directed to this Web Viewer. * @param focus if true, the Web Viewer will be focused and accept keyboard input, otherwise it will be blurred and not accept keyboard input */ focusInput(t: any): void; /** * Registers callbacks that will be called when their corresponding events occur. * @param callbacks object with property names set to corresponding functions to be called when the event occurs. */ setCallbacks(t: any): void; /** * Unregisters callbacks from the system. Note the actual function object passed in must be the same as the one that was registered using setCallbacks. * @param callbacks object with property names set to corresponding functions to be unregistered. */ unsetCallbacks(t: any): void; /** * This method should be called after the container element is moved or resized. */ resizeCanvas(): void; /** * This method should be called when the viewer is being moved to a new window. An example use case would be opening a new pop up window. * @param win the new document that this viewer will be associated with. */ moveToWindow(t: any): void; /** * Forces the viewer to perform a full redraw of all views. * @param callback A function to be called once the draw is complete. * This is provided instead of a `Promise` to ensure the callback is * called before the start of another redraw. */ redraw(t: any): void; /** * Selects a part with the given Id. * @param nodeId nodeId of the part to select. Pass null to clear the selection. */ selectPart(t: any, e?: any): any; /** * Used to trigger Web Viewer events from operators. Refer to the overloaded method signatures for acceptable invocations of this method. Refer to [[CallbackMap]] for additional details for each event. * @param name * @param args */ trigger(t: any, ...e: any[]): void; /** @hidden */ _getCallbackManager(): Mv; /** @hidden */ _setStreamIdleMarker(): any; /** * Gets viewer statistics for the current rendered frame. Statistics marked with a (*) below must be calculated and will not be included in the results unless the calculateTotals parameter is true. * The values of these items will be cached and only updated during the next call to this method with calculateTotals set to true. * @param calculateTotals Forces an update of the total count elements. Please note that repeatedly calculating these items can cause a performance impact. * @returns an object containing informational key/value pairs * * | Statistic Name| Description | * | ----------------------- | -----------------------------------------------------| * | draw_call_count | number of draw calls made when rendering the frame | * | frames_per_second | frames per second estimation | * | triangle_count | the number of triangles rendered | * | line_segment_count | the number of line segments rendered | * | point_count | the number of points rendered | * | total_element_count(*) | the total number of elements in the scene | * | total_triangle_count(*) | the total number of triangles in the scene | * */ getStatistics(t?: boolean): Promise; /** * Sets a minimum frame rate that will be maintained by all views. * Views will use various culling techniques in order to maintain the value passed in. * * Passing `0` will cause the entire scene to be drawn for every frame. * @param value The frame rate for the views to maintain. * @returns Promise that is resolved when the operation has completed. */ setMinimumFramerate(t: any): Promise; _setMinimumFramerate(t: any): void; /** * Gets the minimum framerate that will be maintained by the viewer. The viewer will use various culling techniques in order to maintain the value returned. * @returns Promise that is resolved when the operation has completed. * @deprecated Views can have independent framerates. This should be set using `View.getMinimumFramerate`. */ getMinimumFramerate(): any; /** * Sets the image quality settings for the high quality and low quality server side render. The low quality settings will be applied during model interaction (camera changes, selection, etc) * @param jpegQualityLow The JPEG quality of the low quality render frame * @param jpegQualityHigh The JPEG quality of the high quality render frame * @param scaleLow The scale factor for the low quality render frame * @param scaleHigh The scale factor for the high quality render frame */ setServerRenderQuality(t: any, e: any, i: any, n: any): void; /** * Gets the streaming mode this viewer was created with. * @returns the streaming mode. */ getStreamingMode(): any; /** * Gets the RendererType this viewer was created with. * @returns the render mode. */ getRendererType(): any; /** * Gets the view element for this viewer. This element contains the canvas * @returns the view element */ getViewElement(): any; /** * Releases the resources used by the viewer. This method should be called when the viewer is no longer needed but the page is not being reloaded. */ shutdown(): void; /** * Sets the parameters for client driven timeout monitoring. * If no input is recorded for the the duration, the viewer will disconnect and free server resources. * Calling this method will reset any pending timeout duration. * No timeout will occur when viewing SCS Files. * The default value is to disconnect after 15 minutes, with a warning issued after 14 minutes of inactivity. *

Please note: Both parameters are required. * @param timeoutDuration the total time in minutes of inactivity that is allowed before a timeout event occurs * @param warningTime the number of minutes before issuing a timeoutWarning event * @returns boolean value indicating whether the timeout values were sucessfully updated */ setClientTimeout(t: any, e: any): boolean; /** * Resets the client timeout to the duration set with setClientTimeout. */ resetClientTimeout(): void; /** * Pauses rendering updates for all views. This function is useful when * performing large batches of updates and you would like the result * to appear all at once. * * @param callback If provided, rendering will be paused, the callback * will be called, and then rendering will be resumed once the callback * returns or throws an exception. */ pauseRendering(t: any): Promise; _pauseRendering(t: any): void; /** * Resumes rendering for all views. */ resumeRendering(): Promise; _resumeRendering(): void; /** * Delays capping processing by a fixed time interval. */ delayCapping(): void; /** * Reset the camera, visibility, and transforms to their default state * @param duration the amount of time in milliseconds that the camera transition between the current and initial view should take. * @returns Promise that resolves when the operation has completed. */ reset(t?: number): Promise; /** * Disconnects the network connection when in CSR mode. */ closeConnection(): void; /** * Controls rendering on high DPI displays. If true, the image will be rendered at full resolution when a high-DPI display is detected. If false, the image may be rendered at a lower resolution. The default value is false. * This method may be called any time during or after the sceneReady callback has triggered. * @param allow controls the high DPI Setting. */ setAllowHighDpi(t: any): void; /** * Gets the current value for high DPI rendering * @returns current high DPI setting */ getAllowHighDpi(): any; /** * Creates an Image of the current canvas */ takeSnapshot(t?: Ix): Promise; fitWorld(t?: number): Promise; /** * Sets the orientation of the current model view. * @param orientation a [[ViewOrientation]] object specifying back, front, top, etc. * @param duration the time in milliseconds for the model to transition to the new view orientation. */ setViewOrientation(t: any, e?: number): Promise; _applyMetallicRoughnessDefaults(): void; _scEngineReady(): Promise; _sceneReady(): void; getSceneReady(): boolean; getModelReady(): boolean; _priorityMetaDataSent(t: any, e: any): void; _renderComplete(): void; _streamingActivated(): void; _streamingDeactivated(): void; /** * Specifies a scale factor that will be applied to the streaming size cutoff. * An object whose projected size is lower than the cutoff will not be streamed * until its projected size reaches the cutoff. * * This value may also be set for file-based sessions. In that case, when loading * an SCS file based assembly via XML, projected size will be calculated on a * per-file basis using the bounding information provided in the XML. * For additional information, refer to [[Model.loadSubtreeFromXmlBuffer]]. * * A value of 0 will disable the cutoff. The value should be in the interval of [0.0, 2.0]. */ setStreamCutoffScale(t: any): Promise; _setStreamCutoffScale(t: any): void; /** * Returns the scale factor that will be applied to the streaming size cutoff. * An object whose projected size is lower than the cutoff will not be streamed * until its projected size reaches the cutoff. A value of 0 disables the cutoff. */ getStreamCutoffScale(): number; /** @hidden */ _loseWebGlContext(): any; /** @hidden */ _getScEngine(): lI; /** @hidden */ _debug_log(t: any): any; /** @hidden */ _debug_stateFailure(t: any): any; /** @hidden */ _debug_sync(): any; /** * Exports the current scene to a two-dimensional SVG representation. * * @param config Allows customization of the resultant SVG. * @return A promise that resolves to the created SVG string. */ exportToSvg(t?: Xp): Promise; /** * Setup the env to export the current scene to a two-dimensional SVG representation through stream. * * @param config Allows customization of the resultant SVG. * @return A promise that resolves to void when the env is ready. */ beginExportToSvg(t?: Xp): Promise; /** * Reset the env after SVG stream export. * * @return A promise that resolves to void when the env is reset. */ endExportToSvg(): Promise; /** * Get the next chunk of the SVG code * * @return A promise that resolves to a string containing the next chunk or undefined on completed.. */ advanceExportToSvg(): Promise; /** * Returns a Promise that will resolve after streaming and associated * asynchronous operations complete and the scene is fully drawn. */ waitForIdle(t?: {}): Promise; applyFilter(t: any): void; } declare var hh: any; declare class si extends Rs { } declare function cv(s: any, t: any, e: any): _; declare function km(s: any, t: any, e: any): number; declare function yr(s: any, t: any): number; declare function hc(s: any, t: any, e: any): any; declare function eo(s: any, t: any, e: any, i: any): number; declare function Ss(): string; declare function Fo(s: any): number; declare function lv(s: any, t: any, e: any, i: any, n: any, r: any): number; declare function $c(s: any, t: any): string; declare function xf(s: any, t: any, e: any, i: any, n: any): _[]; declare function av(s: any, t: any, e: any, i: any, n: any): void; declare function dv(s: any): string; declare function rv(s: any, t: any, e: any, i: any, n: any, r: any): 0 | 1 | 2; declare function zo(s: any, t: any, e: any, i: any, n: any, r: any): boolean; declare function Sm(s: any, t: any, e: any, i: any): boolean; declare function gv(s: any): boolean; declare function xm(s: any): boolean; declare function Im(s: any): boolean; declare function HC(s: any): boolean; declare function Mm(s: any, t: any, e: any, i?: number): boolean; declare function hv(s: any, t: any, e: any, i: any): boolean; declare function uc(s: any, t: any, e: any, i: any): boolean; declare function Pm(s: any, t: any, e: any, i: any): _ | null; declare function Cm(s: any, t: any): any; declare function rg(s: any): number; declare class dd { /** @hidden */ static _import(t: any, e: any): dd; /** * Creates a new, empty Animation * @param name friendly name for the animation */ constructor(t: any); name: any; nodeChannels: any[]; cameraChannels: any[]; pivotPoints: Map; /** * Creates a new node animation channel. * @param name friendly name for the channel. * @param target id of node that will receive interpolated values. * @param property the node property that will be animated. * @param sampler sampler describing the buffer and interpolation type. */ createNodeChannel(t: any, e: any, i: any, n: any): qc; _registerNodeChannel(t: any): void; /** * Creates a new camera animation channel. * @param name friendly name for the channel. * @param property the property that will be animated by this channel. * @param sampler sampler describing the buffer and interpolation type used. */ createCameraChannel(t: any, e: any, i: any): Kc; _registerCameraChannel(t: any): void; /** * Removes a channel from this animation. * * Call [[Player.reload]] on any players that are referencing this animation. */ deleteChannel(t: any): void; /** @hidden */ _gatherForExport(t: any): void; /** @hidden */ _export(t: any): { name: any; pivotPoints: any[]; }; } declare class Am { position: any; target: any; up: any; width: any; height: any; /** Reset this object to its initial state. */ clear(): void; /** * Set the stored values on the supplied [[Camera]]. * @returns True if the camera was modified. */ apply(t: any): boolean; } declare class Tm { opacities: Map; colors: Map; matrixNodeIds: any[]; matrices: any[]; visibilityOn: any[]; visibilityOff: any[]; /** Reset this object to its initial state. */ clear(): void; /** Set the stored values on the supplied [[WebViewer]]. */ apply(t: any): void; } declare class Fu { node: Tm; camera: Am; /** Reset this object to its initial state. */ clear(): void; /** Set the stored values on the supplied [[WebViewer]]. */ apply(t: any): void; } declare class Kc { /** @hidden */ static _import(t: any, e: any): Kc; /** * Do not use directly. Create via Animation class API. * @hidden * */ constructor(t: any, e: any, i: any); name: any; property: any; sampler: any; /** @hidden */ _getValue(t: any, e: any): void; /** @hidden */ _gatherForExport(t: any): void; /** @hidden */ _export(t: any): { name: any; property: any; sampler: any; }; } declare class M_ { buffers: Au; samplers: Au; colorMaps: Au; } declare class E_ { buffers: any[]; samplers: any[]; colorMaps: any[]; } declare class Au { map: Map; add(t: any): void; getIndex(t: any): any; /** * Returns an array containing each element of the set placed at its * assigned index. */ toArray(): any[]; isEmpty(): boolean; } declare class _h { /** @hidden */ static _import(t: any): _h; /** * Creates a new buffer for storing keyframe data. * @param keyType The type of keyframes that will be stored in the buffer. */ constructor(t: any); keyType: any; times: any[]; values: any[]; tangents: any[]; _hasTangents: any; keyOffset: any; _validateKey(t: any): void; _validateTangents(t: any): void; _findIndexFromTime(t: any): number; /** Returns the index of the keyframe at the specified time. */ getKeyframeIndex(t: any): number; /** Deletes a keyframe at the specified index. */ deleteKeyframe(t: any): void; /** * Inserts a Scalar keyframe with the specified time. The type of this buffer should be [[KeyType.Scalar]] * @returns Index at which keyframe was inserted */ insertScalarKeyframe(t: any, e: any, i: any, n: any): number; /** Updates a Scalar keyframe at the specified index. The type of this buffer should be [[KeyType.Scalar]] */ updateScalarKeyframe(t: any, e: any, i: any, n: any, r: any): void; /** * Inserts a Vec3 keyframe with the specified time. The type of this buffer should be [[KeyType.Vec3]] * @returns Index at which keyframe was inserted */ insertVec3Keyframe(t: any, e: any, i: any, n: any, r: any, o: any, l: any, h: any, u: any, d: any): number; /** Updates a Vec3 keyframe at the specified index. The type of this buffer should be [[KeyType.Vec3]] */ updateVec3Keyframe(t: any, e: any, i: any, n: any, r: any, o: any, l: any, h: any, u: any, d: any, g: any): any; /** * Inserts a Quat keyframe with the specified time. The type of this buffer should be [[KeyType.Quat]] * @returns Index at which keyframe was inserted */ insertQuatKeyframe(t: any, e: any, i: any, n: any, r: any, o: any, l: any, h: any, u: any, d: any, g: any, y: any, m: any): void; /** Updates a Quat keyframe at the specified index. The type of this buffer should be [[KeyType.Quat]] */ updateQuatKeyframe(t: any, e: any, i: any, n: any, r: any, o: any, l: any, h: any, u: any, d: any, g: any, y: any, m: any, x: any): void; /** @hidden */ _export(): { tangents: any[]; keyType: any; times: any[]; values: any[]; }; } declare class T_ { /** @hidden Created during WebViewer Initialization. */ constructor(t: any); _viewer: any; _players: any[]; _intervalHandle: NodeJS.Timeout | null; _batch: Fu; /** Creates a new animation player for the supplied animation. */ createPlayer(t: any): { _viewer: any; animation: any; _nodeValues: Map; _disabledChannels: Set; _currentTime: number; _lastUpdate: number; speed: number; _animationTime: number; _state: number; loop: number; _loopCount: number; onComplete: any; nodeIdOffset: number; /** Sets the enabled state for a channel in this players animation. * All channels are enabled by default when a player is created. * A channel that has been disabled will not have its value interpolated by the system until it is re-enabled * @param channel a channel from the underlying animation * @param enabled boolean value indicating whether the channel should be enabled. */ setChannelEnabled(t: any, e: any): void; /** * Updates internal state of animation player. * * Call this method after any part of the underlying animation has been updated. * */ reload(): void; /** * Called automatically by the Animation.Manager when it is updating all animations. * @returns True if values were modified. * @hidden */ _tick(t: any, e: any): boolean; /** * Updates the animation using the supplied delta time specified in seconds. * @returns True if values were modified. * @hidden */ _tickTime(t: any, e: any): boolean; /** Starts playing the animation. */ play(): void; /** Pauses animation playback. */ pause(): void; /** Stops animation playback and resets the current time to 0. */ stop(): void; /** * Sets the current animation time. * @param time time in milliseconds */ setTime(t: any): void; /** * Calculate the values for each channel of the associated [[Animation]] * at the given time. * * @param time The time at which to evaluate the animation. * @param out Storage for the evaluated values. If supplied, this object * will be returned instead of a new [[BatchedValues]] object. This * allows values gathered from multiple players to be combined into one * batch. */ evaluate(t: any, e: any): any; /** Gets the current animation state. */ getState(): number; /** Gets the current time in seconds that the animation has been playing. */ getCurrentTime(): number; /** Gets the current time in seconds of the entire animation. */ getAnimationTime(): number; }; /** Removes the player at the provided index from control of the manager. Returns `true` if a player was removed */ removePlayerByIndex(t: any): boolean; /** Removes the provided player from control of the manager. Returns `true` is a player was removed */ removePlayer(t: any): boolean; /** Removes all players from control of the manager. */ clear(): void; _tick(): void; /** @hidden Called by the web viewer only*/ _shutdown(): void; /** * Sets the interval at which animations are updated. * @param milliseconds number of milliseconds between update intervals */ setTickInterval(t: any): void; } declare class qc { /** @hidden */ static _import(t: any, e: any): qc; constructor(t: any, e: any, i: any, n: any); name: any; nodeId: any; property: any; sampler: any; /** @hidden */ _getValue(t: any, e: any): void; _getColorFromMap(t: any): any; /** @hidden */ _gatherForExport(t: any): void; /** @hidden */ _export(t: any): { name: any; colorMap: any; nodeId: any; property: any; sampler: any; }; } declare class Em { constructor(t: any); nodeId: any; translate: _; rotation: { x: any; y: any; z: any; w: any; set(t: any, e: any, i: any, n: any): void; assign(t: any): void; copy(): any; equals(t: any): boolean; equalsWithTolerance(t: any, e: any): boolean; fromArray(t: any): any; toArray(t: any): any; negate(): any; magnitudeSquared(): number; magnitude(): number; normalize(): any; }; scale: _; color: _; pivotPoint: any; opacity: number; visibility: number; matrix: { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; flags: number; updateMatrix(): void; _updateMatrixWithOrigin(): void; _updateMatrix(): void; } declare function Bb(s: any, t: any, e: any): any[]; declare function Db(s: any): { buffers: any[]; samplers: any[]; colorMaps: any[]; animations: any[]; }; declare function Rb(s: any): dd[]; declare function Vb(s: any, t: any, e: any): void; declare class Vf { constructor(t: any, e: any, i: any, n: any, r: any, o: any, l: any); _guid: any; _date: any; _author: any; _text: any; _viewpointGuid: any; _modifiedDate: any; _modifiedAuthor: any; getId(): any; getDate(): any; setDate(t: any): void; getAuthor(): any; setAuthor(t: any): void; getText(): any; setText(t: any): void; getViewpointGuid(): any; setViewpointGuid(t: any): void; getModifiedDate(): any; setModifiedDate(t: any): void; getModifiedAuthor(): any; setModifiedAuthor(t: any): void; } declare class Du { constructor(t: any, e: any); _version: any; _topicsMap: Map; _bcfFileName: any; _id: any; /** * Exports BCF data to a file. Prompts the user to save it on their device. * @param filename Filename BCF data will be exported as */ exportBCF(t: any): Promise; /** * Creates a BCFZIP blob. The resulting blob is importable using `BcfManager.addBCFFromBuffer`. */ toBcfZipBlob(): any; /** * Adds a BCF topic. * @param topicId * @param topic */ addTopic(t: any, e: any): void; /** * @returns A map associating BCF topic ids to BCF topic data. */ getTopics(): Map; /** * Gets a BCF topic. * @param topicId */ getTopic(t: any): any; /** * Gets the BCF version. */ getVersion(): any; /** * Sets the BCF version. * @param version */ setVersion(t: any): void; /** * Gets the BCF filename. */ getFilename(): any; /** * Identifier used to keep track of loaded BCF data. */ getId(): any; } declare class F_ { constructor(t: any, e: any, i: any); _markupHeaderFiles: any[]; _topic: { guid: string; title: string; creationDate: Date; creationAuthor: string; }; _comments: Map; _viewpoints: Map; _filename: any; _bcfTopic: any; _parseDocument(t: any): void; _exportHeader(t: any): any; _exportTopicData(t: any): any; _exportBimSnippet(t: any, e: any): any; _exportDocumentReference(t: any, e: any): any; _exportRelatedTopic(t: any, e: any): any; _exportTopic(t: any): any; _exportComment(t: any, e: any): any; _exportViewpoint(t: any, e: any): any; /** * @returns XML document containing the markup data. */ export(): XMLDocument; /** * @returns the project GUID. */ getProjectGuid(): any; /** * @returns a list of [[BCFMarkupHeaderFile]] containing data related to IFC files. */ getMarkupHeaderFiles(): any[]; /** * Gets the Markup filename. */ getFilename(): any; /** * Gets the topic id. */ getTopicId(): string; /** * Sets the topic id. * @param guid */ setTopicId(t: any): void; /** * Gets the topic type. */ getTopicType(): any; /** * Sets the topic type. * @param topicType */ setTopicType(t: any): void; /** * Gets the topic status. */ getTopicStatus(): any; /** * Sets the topic status. * @param topicStatus */ setTopicStatus(t: any): void; /** * Gets the title of the markup topic. */ getTopicTitle(): string; /** * Sets the title of the markup topic. * @param title */ setTopicTitle(t: any): void; /** * Gets the creation date of the markup topic. */ getTopicCreationDate(): Date; /** * Sets the creation date of the markup topic; * @param date */ setTopicCreationDate(t: any): void; /** * Gets the name of the user that created the markup topic. */ getTopicCreationAuthor(): string; /** * Sets the name of the user that created the markup topic. * @param author */ setTopicCreationAuthor(t: any): void; /** * List of references to the topic, for example, a work request management system or an URI to a model. */ getTopicReferenceLink(): any; /** * Sets the ReferenceLink. * @param referenceLink */ setTopicReferenceLink(t: any): void; /** * Gets the topic priority. */ getTopicPriority(): any; /** * Sets the topic priority. * @param priority */ setTopicPriority(t: any): void; /** * Number to maintain the order of the topics. */ getTopicIndex(): any; /** * Sets the topic index. * @param index */ setTopicIndex(t: any): void; /** * Tags for grouping Topics. */ getTopicLabels(): any; /** * Sets the topic labels. * @param labels */ setTopicLabels(t: any): void; /** * Date when the topic was last modified. Exists only when Topic has been modified after creation. */ getTopicModifiedDate(): any; /** * Sets the topic modified date. * @param date */ setTopicModifiedDate(t: any): void; /** * User who modified the topic. Exists only when Topic has been modified after creation. */ getTopicModifiedAuthor(): any; /** * Sets the author that last modified the topic. * @param modifiedAuthor */ setTopicModifiedAuthor(t: any): void; /** * Date when the issue needs to be resolved by. */ getTopicDueDate(): any; /** * Sets the topic due date. * @param date */ setTopicDueDate(t: any): void; /** * The user to whom this topic is assigned to. Recommended to be in email format. The list of possible values are defined in the extension schema. */ getTopicAssignedTo(): any; /** * Sets the user that the topic is assigned to. */ setTopicAssignedTo(t: any): void; /** * Description of the topic. */ getTopicDescription(): any; /** * Sets the topic description; * @param description */ setTopicDescription(t: any): void; /** * Stage this topic is part of. */ getTopicStage(): any; /** * Sets the topic stage; * @param stage */ setTopicState(t: any): void; /** * Gets a map of GUIDs and corresponding comments. */ getComments(): Map; /** * Adds a comment to the topic. * @param date * @param author * @param text * @param viewpointGuid * @param modifiedDate * @param modifiedAuthor */ addComment(t: any, e: any, i: any, n: any, r: any, o: any): Vf; /** * Updates a topic comment. * @param comment */ updateComment(t: any): void; /** * Deletes a comment from the topic.. * @param guid */ deleteComment(t: any): void; /** * Gets a map of GUIDs and corresponding viewpoints. */ getViewpoints(): Map; _addFile(t: any): void; _parseHeader(t: any): void; _projectGuid: any; _parseTopic(t: any): void; _parseComment(t: any): void; _parseViewpoint(t: any): void; addViewpoint(t: any, e: any, i: any, n: any): void; _getChildData(t: any): Map; _getElementAttributes(t: any): Map; } declare class R_ { constructor(t: any, e: any, i: any, n: any, r: any, o: any); _ifcProject: any; _ifcSpatialStructureElement: any; _isExternal: any; _filename: any; _date: any; _reference: any; /** * [[GenericId]] Reference to the project to which this topic is related in the IFC file */ getIfcProject(): any; /** * [[GenericId]] Reference to the spatial structure element, e.g. IfcBuildingStorey, to which this topic is related. */ getIfcSpacialStructureElement(): any; /** * Is the IFC file external or within the bcfzip */ getIsExternal(): any; /** * The BIM file related to this topic. */ getBimFilename(): any; /** * Date of the BIM file. */ getBimDate(): any; /** * URI to IfcFile. * IsExternal=false "..\example.ifc" (within bcfzip) * IsExternal=true "https://.../example.ifc" */ getReference(): any; } declare class L_ { constructor(t: any, e: any, i: any, n: any); _guid: any; _viewpointFilename: any; _snapshotFilename: any; _index: number | undefined; getGuid(): any; getViewpointFilename(): any; getSnapshotFilename(): any; getIndex(): number | null; } declare class xa { /** * Creates a BCF Snapshot from an HTMLImageElement. * @param filename * @param image */ static createFromImage(t: any, e: any): xa; /** * Gets image data as a Uint8Array from an HTMLImageElement. * @param img */ static snapshotDataFromImage(t: any): Uint8Array; static _convertDataURIToBinary(t: any): Uint8Array; constructor(t: any, e: any); _filename: any; _data: any; /** * Gets the filename. */ getFilename(): any; /** * Gets png data. */ getData(): any; /** * Gets a url for images corresponding to viewpoints. */ getUrl(): string; } declare class bd { /** * Takes a MarkupView and creates a BCF Topic from it. * @param bcfDataId * @param bcfFilename * @param viewer * @param markupView * @param topicTitle */ static createTopic(t: any, e: any, i: any, n: any, r?: null): Promise; constructor(t: any, e: any, i: any, n: any); _viewpointMap: Map; _snapshotMap: Map; _viewer: any; _topicId: any; _bcfDataId: any; _bcfFilename: any; /** * Gets the topic id corresponding to the BCF topic folder. */ getTopicId(): any; /** * Adds a BCF markup. * @param markup BCF markup data. */ addMarkup(t: any, e: any): F_; _markup: F_ | undefined; /** * @returns BCF markup data. */ getMarkup(): F_ | undefined; /** * Creates and adds BCF viewpoint. * @param fileName viewpoint filename. * @param viewpoint BCF viewpoint data. */ addViewpoint(t: any, e: any, i: any, n: any, r: any): bl; /** * Adds a BCF Viewpoint. If there is a already a viewpoint with the same filename, it will be replaced. * @param filename * @param viewpoint */ setViewpoint(t: any, e: any): void; /** * @returns A map associating viewpoint filenames with viewpoint data. */ getViewpointMap(): Map; /** * Gets viewpoint data. * @param filename viewpoint filename. */ getViewpoint(t: any): any; /** * Creates and adds a Snapshot. * @param fileName Snapshot filename. * @param png Image data. */ addSnapshot(t: any, e: any): void; /** * Adds a BCF Snapshot. If there is already a snapshot with the smae filename, it will be replaced. * @param filename * @param snapshot */ setSnapshot(t: any, e: any): void; /** * @returns A map associating snapshot filenames with snapshot data. */ getSnapshotMap(): Map; /** * Gets snapshot data. * @param filename snapshot or corresponding viewpoint filename */ getSnapshot(t: any): any; _massageSnapshotFilename(t: any): any; } declare class bl { static createViewpoint(t: any, e: any, i?: null): Promise; static _markupRedlineToBcf(t: any, e: any): any[]; constructor(t: any, e: any, i: any, n: any, r: any, o: any); _version: any; _components: {}; _lines: any[]; _clippingPlanes: any[]; _viewer: any; _filename: any; _modelBounding: any; _unitScale: number; _parseDocument(t: any): void; _viewpointGuid: any; _exportComponents(t: any): any; _exportOrthogonalCamera(t: any, e: any): any; _exportPerspectiveCamera(t: any, e: any): any; _exportLines(t: any): any; _exportClippingPlanes(t: any): any; /** * @returns XML document containing the viewpoint data. */ export(): XMLDocument; /** * Activates viewpoint. * Sets the camera, visibility, cutting planes, colors, and markup. */ activate(): Promise; _activateCamera(): Promise; _activateComponentsVisibility(): Promise; _activateMarkup(): Promise; _activateCuttingPlanes(): Promise; _activateSelected(): void; _activateColors(): Promise; /** * Gets the viewpoint filename. */ getFilename(): any; /** * Gets the GUID associated with the viewpoint. */ getViewpointGuid(): any; _fromBCFPerspectiveCamera(t: any, e: any): Cn; _fromBCFOrthogonalCamera(t: any, e: any): Cn; /** * Gets the viewpoint camera, or null if none is set. */ getCamera(): Cn | null; /** * Sets the viewpoint camera. * @param camera */ setCamera(t: any): void; _perspectiveCamera: { cameraDirection: _; cameraUpVector: any; cameraViewPoint: any; fieldOfView: number; } | { cameraViewPoint: number | _; cameraDirection: number | _; cameraUpVector: number | _; fieldOfView: number | _; } | undefined; _orthogonalCamera: { cameraDirection: _; cameraUpVector: any; cameraViewPoint: any; viewToWorldScale: number; } | { cameraViewPoint: number | _; cameraDirection: number | _; cameraUpVector: number | _; viewToWorldScale: number | _; } | undefined; _toBCFOrthogonalCamera(t: any): { cameraDirection: _; cameraUpVector: any; cameraViewPoint: any; viewToWorldScale: number; }; _toBCFPerspectiveCamera(t: any): { cameraDirection: _; cameraUpVector: any; cameraViewPoint: any; fieldOfView: number; }; /** * Sets the default visibility. * If true, visibility exceptions are hidden. * If false, visibility exceptions are shown. * @param defaultVisibility */ setDefaultVisibility(t: any): void; _getDefaultVisibility(): any; /** * Sets the visibility exceptions. These nodes will be shown or hidden based on the default visibility setting. * @param visibilityExceptions Array of GenericIds corresponding to components. */ setVisibilityExceptions(t: any): void; /** * Sets the visibility exceptions. These nodes will be shown or hidden based on the default visibility setting. * @param visibilityExceptions Array of BcfNodes corresponding to components. */ setVisibilityExceptionNodes(t: any): void; /** * Gets the visibility exception generic ids. * @returns Array of GenericIds corresponding to components. */ getVisibilityExceptions(): any[]; /** * Gets the visibility exception node ids. * @returns Array of NodeIds corresponding to components. */ getVisibilityExceptionNodes(): any[]; /** * Sets the colors. * @param colorGenericIdMap Map correlating color to GenericIds. */ setColors(t: any): void; /** * Sets the colors. * @param colorNodeMap Map correlating color to BfcNodes. */ setColorNodes(t: any): void; /** * @returns Map correlating color to components. */ getColors(): Map; /** * @returns Map correlating color to nodes. */ getColorsToNodes(): Map; /** * Sets the markup lines. * @param lines array of start point and end point line pairs. */ setLines(t: any): void; /** * Gets markup lines. * @returns Array containing start point and end point line pairs. */ getLines(): any[]; /** * Sets the clipping planes. * @param planes array containing position and direction pairs. */ setClippingPlanes(t: any): void; /** * Gets the clipping planes. * @returns Array containing position and direction pairs. */ getClippingPlanes(): any[]; /** * Sets a list of items to be added to the selection set. */ setSelection(t: any): void; /** * Sets a list of items to be added to the selection set. */ setSelectionNodes(t: any): void; /** * Gets a list of generic IDs that are in the selection set. */ getSelection(): any[]; /** * Gets a list of node IDs that are in the selection set. */ getSelectionNodes(): any[]; _getGenericIdsFromComponents(t: any): any[]; _getNodeIdsFromComponents(t: any): any[]; _parseComponentsV2_0(t: any): void; _parseComponents(t: any): void; _getCameraData(t: any): (number | _)[]; _parseOrthogonalCamera(t: any): void; _parsePerspectiveCamera(t: any): void; _parseLines(t: any): void; _parseClippingPlanes(t: any): void; _getClippingPlane(t: any): { location: _; direction: _; }; _getLine(t: any): { startPoint: _; endPoint: _; }; _getPoint(t: any): _; _colorFromArgb(t: any, e: any): { color: vt; components: any; }; _getColoring(t: any): { color: vt; components: any; }[]; _getComponents(t: any): { ifcGuid: any; }[]; } declare function Rr(s: any, t: any, e: any, i: any): void; declare function cr(s: any, t: any, e: any): void; declare function N_(s: any, t: any): string; declare function vc(s: any): "true" | "false"; declare function on(s: any, t: any, e: any, i: any): void; declare function Nu(s: any): "true" | "false" | null; declare function bc(s: any): any; declare function Bf(s: any): any; declare function Dr(s: any, t: any, e: any): void; declare function Tu(s: any, t: any): any; declare class Id { /** * @param viewKey key for the View the event is occurring in */ constructor(t?: any); _date: Date; _handled: boolean; _viewKey: any; /** * Get the ViewKey this event is associated with. */ get viewKey(): any; /** * Gets the handled state of the event * @returns whether the event has been handled */ getHandled(): boolean; /** * Sets the handled state of the event. When an event has been handled it will not propagate any further * @param handled Indicates whether this event has been handled. */ setHandled(t: any): void; /** * Gets the Date this event occurred * @returns the event Date */ getDate(): Date; } declare class Uf extends Id { /** @hidden */ constructor(t: any, e: any, i: any, n: any); _keyCode: any; _eventType: any; /** * gets the key code * @returns the key code of the event */ getKeyCode(): any; /** * gets the event type * @returns the type of key event */ getEventType(): any; } declare class Wr extends Pg { /** * Mouse Event class * @param positionX X window position of the mouse * @param positionY Y window position of the mouse * @param button mouse button associated with this event * @param buttons mouse buttons currently pressed with this event * @param modifiers bitwise collection of values from KeyModifiers enum * @param inputType the type of the event */ constructor(t: any, e: any, i: any, n: any, r: any, o: any, l: any); _button: any; _buttons: any; /** * gets the mouse button associated with this event * @returns the mouse button for this event */ getButton(): any; /** * gets the mouse buttons currently pressed with this event * @returns the mouse buttons currently pressed for this event */ getButtons(): any; } declare class Pg extends Id { /** @hidden */ constructor(t: any, e: any, i: any, n: any, r: any); _position: K; _modifiers: any; _inputType: any; /** * gets the window position of the mouse pointer for this event * @returns the mouse position for this event */ getPosition(): Point; /** * gets the state of the shift key * @returns whether the shift key was down when this event was generated */ shiftDown(): boolean; /** * gets the state of the alt key * @returns whether the alt key was down when this event was generated */ altDown(): boolean; /** * gets the state of the control key * @returns whether the control key was down when this event was generated */ controlDown(): boolean; /** * gets the state of the command key * @returns whether the command key was down when this event was generated */ commandDown(): boolean; /** * gets the event type * @returns the type of mouse event */ getEventType(): any; /** * gets the event modifiers * @returns bitwise combination of KeyModifiers */ getModifiers(): any; } declare class W_ extends Pg { /** * Mousewheel Event class * @param positionX X window position of the mouse * @param positionY Y window position of the mouse * @param wheelDelta the direction the mouse wheel moved * @param buttons mouse buttons currently pressed with this event * @param modifiers bitwise collection of values from KeyModifiers enum * @param inputType the type of the event * @hidden */ constructor(t: any, e: any, i: any, n: any, r: any, o: any, l: any); _wheelDelta: any; _buttons: any; /** * Gets the wheel delta for this event. A positive value indicates that the wheel was scrolled Up, while a negative value indicated the wheel was scrolled down. * @returns Wheel dela value */ getWheelDelta(): any; /** * gets the mouse buttons currently pressed with this event * @returns the mouse buttons currently pressed for this event */ getButtons(): any; } declare class Fr { /** * Creates a no-selection event. * @returns Selection event with result set to none. * @hidden */ static _createNull(): Fr; /** * Creates a new NodeSelectionEvent * @hidden */ constructor(t: any); _selection: any; /** * Gets the result of the selection operator. * @returns the result of the selection */ getType(): any; /** * Gets the selection object. * @returns Selection object containing detailed information about the selection */ getSelection(): any; } declare class Ou extends Id { /** * Touch Event class * @param id unique identifier for this touch * @param positionX X window position of the touch * @param positionY Y window position of the touch * @hidden */ constructor(t: any, e: any, i: any, n: any, r: any, o: any); _id: any; _position: K; _buttons: any; _inputType: any; /** * gets the id this event * @returns the unique identifier for this touch */ getId(): any; /** * gets the window position of the mouse pointer for this event * @returns the mouse position for this event */ getPosition(): K; /** * gets the event type * @returns the type of touch event */ getEventType(): any; /** * gets the mouse buttons currently pressed with this event * @returns the mouse buttons currently pressed for this event */ getButtons(): any; } declare function Gb(s: any): boolean; declare class H_ { constructor(t: any, e: any, i: any, n: any, r: any); floorplanNode: any; floorNode: any; bounds: any; slabNodes: any; spaceNodes: any; floorplanMeshCreationNodes: any; } declare class Oh { overlayAnchor: any; overlaySize: K; overlayWidthUnit: any; overlayHeightUnit: any; overlayOffset: K; overlayOffsetXUnit: any; overlayOffsetYUnit: any; backgroundColor: vt; backgroundOpacity: number; borderColor: vt; borderOpacity: number; avatarColor: vt; avatarOutlineColor: vt; avatarOpacity: number; avatarScale: number; fixedAvatarScale: boolean; overlayFeetPerPixel: number; zoomLevel: number; autoActivate: any; floorplanOrientation: any; customAvatar: any; trackCameraEnabled: boolean; /** * Per-floor information. * @returns Copy of this configuration object. */ copy(): Oh; } declare function il(s: any, t: any, e: any): number; declare function z_(s: any, t: any): boolean; declare function Hf(s: any, t: any): boolean; declare function zf(s: any): any; declare class go { _behindView: boolean; /** * Called when the MarkupItem is removed from a view from the system. * Any cleanup that needs to be done should be performed in this method. * @param view the view to remove from, null if removed from everywhere. */ remove(t: any): void; /** * Called when the markup item should be redrawn on a specific view. This most typically happens when the scene is rendered. * @param renderer renderer engine to draw. * @param view the view to draw on. */ draw(t: any, e: any): void; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @returns boolean value indicating whether this item was picked */ hit(t: any, e: any): boolean; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @param pickTolerance amount of tolerance allowed for a hit in pixels. * @returns boolean value indicating whether this item was picked */ hitWithTolerance(t: any, e: any, i: any): boolean; /** * Called when this markup item is selected by the system from a given view. * @param view the view where the selection occured */ onSelect(t: any): void; /** * Called when this markup item is deselected by the system */ onDeselect(): void; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): {}; /** * Gets the fully qualified class name for this markup item. E.g. "Communicator.Markup.Redline.RedlineCircle" * @returns fully qualified class name */ getClassName(): string; } declare class q_ { constructor(t: any, e: any); _markupItems: Map; _activeViews: Map; _selectedMarkup: any; _pendingUpdateHandleTimer: Xo; _viewToUpdate: Set; _pickTolerance: number; _callbackManager: any; _markupRenderer: any; shutdown(): void; _updateLater(t: any, e: any): void; updateLater(t: any): void; _updateAllViews(): void; update(): void; registerMarkupItem(t: any, e: any): string; unregisterMarkupItem(t: any, e: any): void; getActiveView(t: any): any; getViews(t: any): any[]; setActiveView(t: any, e: any): Promise; markupViewDeleted(t: any): void; viewDeleted(t: any): void; renderMarkup(t: any): void; renderActiveViewMarkup(t: any): void; getPickTolerance(): number; setPickTolerance(t: any): void; pick(t: any, e: any): any; select(t: any, e: any): void; getSelected(): any; } declare class uh { /** @hidden */ static _fromJson(t: any, e: any): Promise; /** @hidden */ constructor(t: any, e: any, i: any, n: any, r: any, o?: null); _lineVisibility: boolean; _faceVisibility: boolean; _markupItems: Set; _sheetId: any; _colorMap: Map; _snapshotImage: any; _defaultVisibility: boolean; _visibilityExceptions: Set; _uniqueId: any; _camera: any; _name: any; _explodeMagnitude: any; _cuttingPlaneData: any; /** * Gets the camera of this view * @returns the camera of this view */ getCamera(): any; /** * Gets the sheet id for this view * @returns the id of the sheet for this view. If no view was active at the time of creation this function will return null. */ getSheetId(): any; /** * Gets the unique identifier of this view * @returns unique identifier of this view */ getUniqueId(): any; /** * Gets the name of this view * @returns name of this view */ getName(): any; /** * Sets the name for this view * @param name name to set */ setName(t: any): void; /** * Gets line visibility setting for this view * @returns line visibility setting for this view */ getLineVisibility(): boolean; /** * Sets line visibility for this view * @param lineVisibility line visibility setting for this view */ setLineVisibility(t: any): void; /** * Gets face visibility setting for this view * @returns face visibility setting for this view */ getFaceVisibility(): boolean; /** * Sets face visibility for this view * @param faceVisibility face visibility setting for this view */ setFaceVisibility(t: any): void; /** * Adds a markup item to this view * @param markupItem the markup to be added to this view. */ addMarkupItem(t: any): void; /** * Gets an array of markup items associated with this view * @returns {boolean} face visibility setting for this view */ getMarkup(): boolean; /** * Removes a markup item from the view * @param markupItem the markup to be removed from this view. * @returns result of the removal operation */ removeMarkup(t: any): boolean; /** * @returns a JSON object with the cutting plane data associated with this view */ getCuttingPlaneData(): any; /** * Takes a JSON cutting plane data object and associates it with this view * @param cuttingPlaneData */ setCuttingPlaneData(t: any): void; /** * @returns the explode value associated with this view */ getExplodeMagnitude(): any; /** * Takes an explode magnitude and associates it with this view */ setExplodeMagnitude(t: any): void; /** * @returns A color map associating NodeIds to Colors. */ getColorMap(): Map; /** * Takes a color map associating NodeIds to Colors and associates it with this view. * @param colorMap */ setColorMap(t: any): void; getDefaultVisibility(): boolean; setDefaultVisibility(t: any): void; getVisibilityExceptions(): Set; setVisibilityExceptions(t: any): void; getSnapshotImage(): any; setSnapshotImage(t: any): void; _handleLoadMarkupItem(t: any): boolean; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { uniqueId: any; name: any; camera: any; cuttingData: any; explodeMagnitude: any; lineVisibility: boolean; faceVisibility: boolean; markup: never[]; sheetId: any; defaultVisibility: boolean; visibilityExceptions: never[]; colors: never[]; imageSrc: string; }; _toJson(): { uniqueId: any; name: any; camera: any; cuttingData: any; explodeMagnitude: any; lineVisibility: boolean; faceVisibility: boolean; markup: never[]; sheetId: any; defaultVisibility: boolean; visibilityExceptions: never[]; colors: never[]; imageSrc: string; }; } declare class K_ { constructor(t: any, e: any); markupView: any; itemResults: any; } declare class Z_ { _svgCanvas: any; _svgDefsElement: SVGDefsElement | null; _svgElements: any[]; _svgTextElements: any[]; _setCanvas(t: any): void; _clear(): void; _finalize(): void; drawCircle(t: any): SVGCircleElement; drawCircles(t: any): SVGCircleElement[]; drawLine(t: any): SVGLineElement; drawLines(t: any): SVGLineElement[]; drawText(t: any): SVGTextElement; drawTexts(t: any): SVGTextElement[]; measureText(t: any, e: any): K; measureTextBox(t: any): K; drawPolyline(t: any): SVGPolylineElement; drawPolylines(t: any): SVGPolylineElement[]; drawPolygon(t: any): SVGPolygonElement; drawPolygons(t: any): SVGPolygonElement[]; drawRectangle(t: any): SVGRectElement; drawRectangles(t: any): SVGRectElement[]; drawTextBox(t: any): (SVGTextElement | SVGRectElement)[]; drawTextBoxes(t: any): (SVGTextElement | SVGRectElement)[][]; _addTextBoxElement(t: any, e: any, i: any): (SVGTextElement | SVGRectElement)[]; _renderEndcaps(t: any, e: any, i: any, n: any): void; _createTextElement(t: any, e: any, i: any): SVGTextElement; _addTextElement(t: any, e: any, i: any): SVGTextElement; _addRectangleElement(t: any, e: any, i: any, n?: boolean): SVGRectElement; _addLineElement(t: any, e: any, i: any): SVGLineElement; _addPolygonElement(t: any, e: any): SVGPolygonElement; _addPolylineElement(t: any, e: any): SVGPolylineElement; _addCircleNode(t: any, e: any, i: any): SVGCircleElement; _setGenericFillAttributes(t: any, e: any): void; _setGenericStrokeAttributes(t: any, e: any): void; _addSVGTextItemElement(t: any): void; _addSVGElement(t: any): void; } declare class yx extends Pd { constructor(t: any, e: any, i: any, n: any, r: any, o: any); _markupViews: Map; _defaultViewCounter: number; _markupItemManager: any; _callbackManager: any; _explodeManager: any; _cuttingManager: any; _viewer: any; _sheetManager: any; _initEvents(): void; getView(t: any): any; getViewKeys(): any[]; loadData(t: any): Promise; exportMarkup(): any[]; createView(t: string | undefined, e: any, i?: boolean, n?: null, r?: null, o?: null, l?: null): uh; _activateSheet(t: any): Promise; _activateViewImpl(t: any, e: any, i: any): Promise; _activateView(t: any, e: any, i: any): Promise; activateView(t: any, e: any, i?: number): Promise; /** This is a helper for `activateView`. */ _setActiveView(t: any, e: any): Promise; deleteView(t: any): boolean; _createDefaultViewName(): string; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): any[]; } declare class Ty extends Ai { _forceEffectiveSceneVisibilityMask: any; _rectangleMarkup: Dg; _incrementalSelection: Bh; /** * Gets the mask used for forcing effective scene visibility during selection. */ getForceEffectiveSceneVisibilityMask(): any; /** * Sets the mask used for forcing effective scene visibility during selection. */ setForceEffectiveSceneVisibilityMask(t: any): void; hasActiveSelection(): boolean; waitForIdle(): Promise; clearSelection(): Promise; _allowSelection(t: any, e: any): boolean; _createBeginConfig(t: any, e: any, i: any): { pickConfig: xd; areaCssMin: any; areaCssMax: any; }; _performSelection(t: any): Promise; /** @hidden */ onKeyUp(t: any): void; } declare class Ny extends Ai { _axisTriad: any; _pickConfig: Si; /** @hidden */ onMouseUp(t: any): Promise; } declare class Jf { constructor(t: any, e: any); _button: any; _modifier: any; getButton(): any; getModifier(): any; } declare class Oy extends Ai { constructor(t: any, e: any, i: any); _context: Dy | null; _cuttingManager: any; onMouseDown(t: any): Promise; onMouseMove(t: any): Promise; _updatePlane(t: any, e: any, i: any): Promise; onMouseUp(t: any): Promise; /** * Perform the selection operation. If successful, the cutting plane context will be properly * setup, otherwise the cutting plane context will be null. */ _startSelection(t: any): Promise; } declare class Dy { constructor(t: any, e: any, i: any, n: any, r: any); section: any; node: any; planeIndex: any; plane: any; selectionPosition: any; origPlaneD: any; } declare class Ry extends Ai { _draggingAvatar: boolean; _restrictToAvatar: boolean; _floorLocked: boolean; _manager: any; /** @hidden */ onMouseDown(t: any): Promise; /** @hidden */ onMouseUp(t: any): Promise; /** * Set whether or not dragging is restricted to the avatar. If true the operator will only function if * the selection begins on the avatar */ restrictToAvatar(t: any): void; } declare class Ly extends Ai { _draggingHandle: boolean; _newRotationMatrix: { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _translation: _; _newTranslation: _; _nodeIdGroupMap: Map; _groupIdCount: number; _activeChildrenGroupIds: Map; _initialLocalNodeMatrices: any[]; _newLocalNodeMatrices: any[]; _trackedPoints: any[]; _trackedPointsPositions: any[]; _trackedPointCount: number; _previousContextClick: boolean; _overlayIndex: any; _activeHandleNodeId: any; _handleEventType: any; _highlightedHandleId: any; _handleSize: number; _explodeActive: boolean; _measureActive: boolean; _settingMatrixInProgress: boolean; _handleMarkup: { _meshIds: Py; _scaleModifier: number; _id: number; _handleData: Map; _translationFromInitialHandlePosition: _; _groupIdRotationMatrix: Map; _viewer: any; _callbacks: { camera: () => void; _assemblyTreeReady: () => Promise; modelSwitchStart: () => void; }; remove(t: any): void; _getAxisMeshData(): Cs; _getPlaneMeshData(): Cs; _getViewPlaneMeshData(): Cs; _getRotateMeshData(t?: number, e?: number, i?: number): Cs; setAxisMeshData(t: any): Promise; setPlaneMeshData(t: any): Promise; setViewPlaneMeshData(t: any): Promise; setRotateMeshData(t: any): Promise; /** * Gets the associated overlay id */ getOverlayId(): any; _hideOverlay(): void; hideOverlay(): Promise; _showOverlay(): void; showOverlay(): Promise; _updateViewport(): void; updateViewport(): Promise; addHandles(t: any, e: any, i: any): Promise; _updateCamera(): void; getVector(t: any): any; getHandleType(t: any): any; getHandleGroupId(t: any): any; getPosition(t: any): any; getHandleNodeIds(t?: null): any[]; removeHandles(t?: null): Promise; isEmpty(): boolean; createDefaultHandles(t: any, e: any): Promise; _createMeshId(t: any): Promise; addAxisTranslationHandle(t: any, e: any, i: any, n: any, r: any): Promise; addViewPlaneHandle(t: any, e: any, i: any): Promise; addPlaneTranslationHandle(t: any, e: any, i: any, n: any, r: any, o: any): Promise; addRotateHandle(t: any, e: any, i: any, n: any, r: any): Promise; _getRotationMatrixFromVector(t: any, e: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _createMeshInstance(t: any, e: any, i: any, n: any, r: any, o: any): Promise; _createTransformationMatrix(t: any, e: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; _getHandlePosition(t: any): null; getGroupIdRotationMatrix(t: any): any; updatePosition(t: any, e: any, i: any, n: any, r: any): Promise; resetTranslation(): void; getTranslation(): _; _behindView: boolean; /** * Called when the markup item should be redrawn on a specific view. This most typically happens when the scene is rendered. * @param renderer renderer engine to draw. * @param view the view to draw on. */ draw(t: any, e: any): void; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @returns boolean value indicating whether this item was picked */ hit(t: any, e: any): boolean; /** * Called when a hit test is performed on this markup item. * @param point position in window where the hit test is being performed. * @param pickTolerance amount of tolerance allowed for a hit in pixels. * @returns boolean value indicating whether this item was picked */ hitWithTolerance(t: any, e: any, i: any): boolean; /** * Called when this markup item is selected by the system from a given view. * @param view the view where the selection occured */ onSelect(t: any): void; /** * Called when this markup item is deselected by the system */ onDeselect(): void; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): {}; /** * Gets the fully qualified class name for this markup item. E.g. "Communicator.Markup.Redline.RedlineCircle" * @returns fully qualified class name */ getClassName(): string; }; _pickConfig: Si; /** * Sets the mesh data for axis handles. * @param meshData */ setAxisMeshData(t: any): Promise; /** * Sets the mesh data for plane handles. * @param meshData */ setPlaneMeshData(t: any): Promise; /** * Sets the mesh data for view plane handles. * @param meshData */ setViewPlaneMeshData(t: any): Promise; /** * Sets the mesh data for rotation handles. * @param meshData */ setRotateMeshData(t: any): Promise; /** * Add a point to the tracked points list. When the handle moves, these points will update in world space. * @param point * @returns point index */ addTrackedPoint(t: any): number; /** * Gets the tracked point list. */ getTrackedPoints(): any[]; /** * Clear the list of tracked points. */ clearTrackedPoints(): void; /** * Returns a boolean value indicating if handles are available to be added to the scene * If there is an active explode, active measure, or the model is a 2d drawing. * this will be false. */ isEnabled(): boolean; _guardEnabled(): void; /** * Takes a scale value to change the handle size with 1 representing the default size * @param size */ setHandleSize(t: any): void; /** * Adds all handles into the scene, oriented along the primary axes * @param nodeIds corresponding to the parts that will move with the handles * @param position world space coordinates the the handle position */ addHandles(t: any, e?: null, i?: null): any; /** * Returns the group id associated to the given group of node ids, returns null if does not exist * @param nodeIds */ _findGroupId(t: any): null; /** * This will generate a unique id to associate a group of handles with a group of NodeIds. */ generateGroupId(): number; _massageGroupId(t: any): any; /** * Adds a handle that moves along an axis. * @param position center of the handle. * @param axis axis to move along * @param color color of the handle geometry * @param positionNormal optional vector to control the orientation of the handle geometry. * @param groupId optional parameter to associate this handle with a group of NodeIds */ addAxisTranslationHandle(t: any, e: any, i: any, n?: null, r?: null): Promise; /** * Adds a handle that rotates around an axis * @param position center of the handle. * @param axis axis to rotate around * @param color color of the handle geometry * @param positionNormal optional vector to control the orientation of the handle geometry. * @param groupId optional parameter to associate this handle with a group of NodeIds */ addAxisRotationHandle(t: any, e: any, i: any, n?: null, r?: null): Promise; /** * Adds a handle that restricts movement to a plane. * @param position center of the handle. * @param normal normal of the plane * @param faceColor face color of the handle geometry * @param lineColor outline color of the handle geometry * @param positionNormal optional vector to control the orientation of the handle geometry. * @param groupId optional parameter to associate this handle with a group of NodeIds */ addPlaneTranslationHandle(t: any, e: any, i: any, n: any, r?: null, o?: null): Promise; /** * Adds a handle that restricts movement to the viewplane. * @param position center of the handle * @param color geometry color * @param groupId optional parameter to associate this handle with a group of NodeIds */ addViewPlaneTranslationHandle(t: any, e: any, i?: null): Promise; /** * Sets the NodeIds that any handles in the scene will move. * @param nodeIds * @param groupId optional parameter that associates a group of NodeIds with a group of handles. */ setNodeIds(t: any, e?: null): void; /** * Gets the NodeIds that the handles in the scene will move. * @param groupId optional parameter that specifies if the NodeIds to retrieve are part of a group. */ getNodeIds(t?: null): any; /** * Shows any handles that have been added to the scene. */ showHandles(): void; /** * Updates the current handle position. * @param translation additional translation * @param rotation additional rotation * @param finalizePosition keep translation and rotation. If true, added translation and rotation * will not reset the next time the position is updated. */ updatePosition(t: any, e: any, i: any, n?: null): Promise; /** * @returns the current handle position or null if not currently active. */ getPosition(): any; /** * Removes all handles from the scene. */ removeHandles(): Promise; /** * @returns the total translation applied to the handles. */ getTranslation(): _; _initLocalNodeMatrices(t: any): void; _getHandleEventType(t: any): any; _rotate(t: any, e: any, i: any, n: any): Promise; _translate(t: any, e: any, i: any): Promise; _genericTransform(t: any, e: any, i: any, n: any, r: any, o: any): Promise; /** @hidden */ _testRotate(t: any, e: any, i?: null): Promise; /** @hidden */ _testTranslate(t: any, e?: null): Promise; _getActiveNodeIdByGroupId(t: any): any; _startDragging(t: any, e: any): void; _stopDragging(): Promise; /** @hidden */ onMouseDown(t: any): Promise; _onHandleDrag(): void; /** @hidden */ onMouseMove(t: any): Promise; _getClosestPoint(t: any, e: any, i: any): _ | null; _getTranslationComponent(t: any, e: any, i: any, n: any): _; _clearHighlightedHandle(): Promise; _highlightHandle(t: any): Promise; _getPlaneIntersectionPoint(t: any, e: any, i: any): _ | null; _getRotationAngle(t: any, e: any): number; _getRotationMatrix(t: any, e: any, i: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; } declare class Fy extends Ai { _navCube: any; _pickConfig: Si; /** @hidden */ onMouseMove(t: any): Promise; /** @hidden */ onMouseUp(t: any): Promise; } declare class By extends Ai { /** @hidden */ constructor(t: any, e: any, i: any); _insertNoteButton: any; _callbackFlag: boolean; _noteTextManager: any; /** * @returns a NoteTextElement that can be used to configure the NoteText HTML container. */ getNoteTextElement(): any; /** * @param noteTextElement */ setNoteTextElement(t: any): void; /** * Returns true if the nodeId is the id of a note pin instance. * @param nodeId */ checkPinInstance(t: any): boolean; } declare class Ai { /** @hidden */ constructor(t: any, e: any); _ptFirst: Point; _ptPrevious: Point; _ptCurrent: Point; _dragging: boolean; _dragCount: number; _primaryTouchId: any; _mapping: any[]; _buttonModifierActive: boolean; _doubleClickInterval: number; _firstMouseDownTime: number | null; _isDoubleClick: boolean; _viewer: any; _view: any; /** @hidden */ onDoubleClick(t: any): void; /** @hidden */ onMouseDown(t: any): void; /** @hidden */ onMouseMove(t: any): void; /** @hidden */ onMouseUp(t: any): void; /** @hidden */ stopInteraction(): void; /** @hidden */ isDragging(): boolean; /** @hidden */ isActive(): boolean; /** @hidden */ onTouchStart(t: any): void; /** @hidden */ onTouchMove(t: any): Promise; /** @hidden */ onTouchEnd(t: any): void; /** * Adds a button and key modifier mapping for the operator. If no mapping is provided, all combinations are considered valid. * All mappings require a mouse button, but a key modifier is optional. * @param button * @param modifier */ addMapping(t: any, e?: any): void; /** * Clears any button and key modifier mappings for the operator. */ clearMapping(): void; /** * Sets the button and key modifier mapping for the operator. * @param button * @param modifier */ setMapping(t: any, e?: any): void; /** @hidden */ checkMapping(t: any): boolean; /** @hidden */ setHandled(): boolean; /** @hidden */ onDeactivate(): void; } declare class Vy extends Ai { _selectionButton: any; _ignoreTransparency: boolean; _forceEffectiveSceneVisibilityMask: any; _incrementalSelection: Bh; /** * Gets the mask used for forcing effective scene visibility during selection. */ getForceEffectiveSceneVisibilityMask(): any; /** * Sets the mask used for forcing effective scene visibility during selection. */ setForceEffectiveSceneVisibilityMask(t: any): void; setIgnoreTransparency(t: any): void; getIgnoreTransparency(): boolean; hasActiveSelection(): boolean; waitForIdle(): Promise; clearSelection(): Promise; _createBeginConfig(t: any): { pickConfig: xd; rayCssOrigin: any; rayCssBoxRadius: number; }; _selectionPredicate(t: any): Promise; _performSelection(t: any): Promise; /** @hidden */ onKeyUp(t: any): void; } declare class zy extends Ai { /** @hidden */ constructor(t: any, e: any, i: any); _selectionButton: any; _pickConfig: Si; _forceEffectiveSceneVisibilityMask: any; _doubleClickFitWorld: boolean; _noteTextManager: any; /** Sets the [[PickConfig]] that will be passed to [[View.pickFromPoint]]. */ setPickConfig(t: any): void; /** Returns the [[PickConfig]] that will be passed to [[View.pickFromPoint]]. */ getPickConfig(): Si; /** * Gets the button used for selection. * @returns Button */ getSelectionButton(): any; /** * Sets the button used for selection * @param button */ setSelectionButton(t: any): void; /** @hidden */ onKeyUp(t: any): void; /** @hidden */ onDoubleClick(): Promise; /** * When enabled, a double click will fit the view to the model bounding box. * @param doubleClickFitWorld */ setDoubleClickFitWorldEnabled(t: any): void; _getSelectionOrParentIfSelected(t: any): any; _processSelectionClick(t: any, e: any): void; } declare class Dg extends Rn { constructor(t: any, e: any); _rectangle: vd; _markupHandle: any; _dim: K; initialPosition: K; currentPosition: K; min: K; max: K; _constantStrokeColor: any; updateCurrentPosition(t: any): void; _updateRectangleVertices(): void; activate(t: any): void; deactivate(): void; isActive(): boolean; } declare class Hy extends Ai { _modelBounding: yn; _selectionBounding: yn; _pivot: _; _hitRayOrigin: _ | null; _hitRayDirection: _ | null; _hitRayAperture: number; _hitRaySelectionOnly: boolean; _hitRaySelectionItem: any; _client: { onConnect: () => void; on3dmouseCreated: () => void; onDisconnect: (i: any) => void; getCoordinateSystem: () => number[]; getConstructionPlane: () => any[]; getFov: () => number; setFov: (i: any) => void; getPerspective: () => boolean; getViewExtents: () => number[]; setViewExtents: (i: any) => void; getViewFrustum: () => any[]; getViewMatrix: () => any[]; setViewMatrix: (i: any) => void; getViewRotatable: () => boolean; getFrontView: () => number[]; getPivotPosition: () => any[]; setPivotPosition: (i: any) => void; setPivotVisible: (i: any) => void; getPointerPosition: () => any[]; getModelExtents: () => any[]; getFloorPlane: () => any[]; getUnitsToMeters: () => number; setTransaction: (i: any) => void; setLookFrom: (i: any) => void; setLookDirection: (i: any) => void; setLookAperture: (i: any) => void; setSelectionOnly: (i: any) => void; getLookAt: () => any[] | null; getSelectionEmpty: () => boolean; getSelectionExtents: () => any[]; }; _3dMouseInitialized: boolean; _connexion: any; _pivotMarkup: Og; _updateModelBounding(): Promise; _updateSelectionBounding(): Promise; _updateHitTest(): Promise; /** * Connect to the space mouse. To be successful, this method * should be called in the sceneReady callback. If you want to * connect at a later time, the canvas where the mouse is * to be used must have focus. * * Note: If this is called but the 3d connexion software is not running, * a connection error will be shown in the console. */ connect(): void; } declare class j_ { /** @hidden */ constructor(t: any, e: any, i: any, n: any); _view: any; _model: any; _callbackManager: any; _engine: any; _viewports: null[]; /** * Gets the maximum index value that can be used for indexing overlays. * @returns the maximum index value. */ maxIndex(): number; /** * Creates an overlay or updates an existing one. * @param index the index of the overlay. This value may be any number between 1 and maxIndex(). If No overlay exists for this index one will be created. * @param anchor the anchor point for the viewport. * @param x the x value of the viewport location. * @param xUnit the unit type of the x parameter. * @param y the y value of the viewport location. * @param yUnit the unit type of the y parameter. * @param width the width of the viewport. * @param widthUnit the unit type of the width parameter. * @param height the height of the viewport. * @param heightUnit the unit type of the height parameter. */ setViewport(t: any, e: any, i: any, n: any, r: any, o: any, l: any, h: any, u: any, d: any): Promise; /** * @hidden * Gets the position of a viewport as it was defined with OverlayUnits * @param index Index to get position of * @returns OverlayUnitPoint expressing overlay's position */ _getViewportPosition(t: any): any; /** * Gets position in pixels of the viewport with the supplied index, or `null` if none has been set. * Note: This does not take the anchor point into account * @param index The index of the overlay to get the position of. */ getViewportPixelPosition(t: any): any; /** * Gets the calculated position of the upper-left corner of the viewport with the supplied index, or `null` * if none has been set. * @param index The index of the overlay to get the offset of */ getViewportPixelOffsetInCanvas(t: any): any; /** * @hidden * Gets the size of a viewport as it was defined with OverlayUnits * @param index Index to get size of * @returns OverlayUnitPoint expressing overlay's size */ _getViewportSize(t: any): any; /** * Gets size in pixels of the viewport with the supplied index, or `null` if none has been set. * @param index The index of the overlay to get the size of. */ getViewportPixelSize(t: any): any; /** * Get the anchor point of the viewport with the supplied index, or `null` if none has been set. * @param index The index of the overlay to get the anchor of. */ getViewportAnchor(t: any): any; /** * Sets the visibility state for the given viewport. * @param index the overlay index. * @param visibility boolean value indicating whether the overlay should be rendered. */ setVisibility(t: any, e: any): Promise; /** * Removes an overlay from the system. All nodes that have been assigned to this overlay will be returned to the default view. * @param index the index of the overlay to destroy. */ destroy(t: any): Promise; /** * Adds nodes into the overlay at the given index. They will no longer be rendered in the main window or any other overlay. * This method should not be called before the model structure ready callback has been triggered. * @param index the overlay index to add nodes into. * @param nodes the nodes to add into the overlay. */ addNodes(t: any, e: any): Promise; /** * Sets the camera for the given index. * @param index * @param camera */ setCamera(t: any, e: any): Promise; /** @hidden */ _getOverlayOffset(t: any, e: any): Point; /** * @hidden * Converts an OverlayUnitPoint to a pixel defined Point2 using the viewer's current dimensions * @param unitPoint Point defined with [[OverlayUnit]]s to convert * @returns point expressed in pixels based on viewer's current size */ _toPixelPoint(t: any): Point; _validateUnit(t: any, e: any, i: any): void; } declare class $o { constructor(t: any, e: any, i: any, n: any); x: any; xUnit: any; y: any; yUnit: any; } declare class U_ { constructor(t: any, e: any, i: any); _anchor: any; _position: any; _size: any; getAnchor(): any; getPosition(): any; getSize(): any; } declare function Gm(s: any): any; declare function ha(s: any): boolean; declare class rd { constructor(t: any, e: any, i: any); faceItem: any; lineItem: any; pointItem: any; /** * Returns the most relevant selection item for the provided selection mask. * The priority used by this method is points -> lines -> faces. * For example, if your selection mask was Faces | Lines and this item contained and all fields were populated, this method would return its lineItem. * @param mask a selection mask used to indicate the relevancy of the item to retrieve. * @returns the most relevant selection item if one exists. If no relevant item is found, null is returned. */ fetchMostRelevant(t: any): any; } declare class Rh { /** * Creates a new [[FaceEntity]] from an object given by [[toJson]]. * @param objData An object given by [[toJson]]. * @returns The prepared object. */ static fromJson(t: any): Rh; /** @hidden */ constructor(t: any, e: any, i: any, n: any, r: any, o: any, l: any); _position: any; _normal: any; _elementIndex: any; _elementBits: any; _bounding: any; _overlayIndex: any; _isProximityFace: any; /** * Returns whether or not this face entity was selected by proximity or was instead selected dead-on. * @returns True if this face entity was selected by proximity and false otherwise. */ isProximityFace(): any; /** * Returns whether or not this face entity is capping geometry or not. * @returns True if this face entity is capping geometry and false otherwise. */ isCappingGeometry(): boolean; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { position: any; normal: any; cadFaceIndex: any; cadFaceBits: any; bounding: any; overlayIndex: any; isProximityFace: any; }; _toJson(): { position: any; normal: any; cadFaceIndex: any; cadFaceBits: any; bounding: any; overlayIndex: any; isProximityFace: any; }; /** * Gets the world space position of the selection point. * @returns World space position of the selection point if it can be determined. */ getPosition(): any; /** * Gets the face normal for the selection Point. * @returns Face normal for the selection position if it can be determined. */ getNormal(): any; /** * Gets the cad face index for the selection Point. * @returns The index for the cad face. */ getCadFaceIndex(): any; /** * Gets the cad face bits for the selection Point. * @returns The bits set on the cad face. */ getCadFaceBits(): any; /** * Gets the bounding box for the face entity * @returns Bounding box for the face entity */ getBounding(): any; /** * @returns The index of the overlay the entity belongs to. */ overlayIndex(): any; } declare class xc { constructor(t: any); _handle: any; } declare class Lh { /** * Creates a new [[LineEntity]] from an object given by [[toJson]]. * @param objData An object given by [[toJson]]. * @returns The prepared object. */ static fromJson(t: any): Lh; /** @hidden */ constructor(t: any, e: any, i: any, n: any, r: any, o: any, l: any); _lineSegmentVertices: _[]; _elementIndex: any; _elementBits: any; _position: any; _bounding: any; _overlayIndex: any; _bestLineSegmentVertexIndex: _ | undefined; isCappingGeometry(): boolean; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { lineId: any; lineBits: any; position: any; linePoints: { x: any; y: any; z: any; }[]; bounding: any; overlayIndex: any; }; _toJson(): { lineId: any; lineBits: any; position: any; linePoints: { x: any; y: any; z: any; }[]; bounding: any; overlayIndex: any; }; /** * Gets the line identifier * @returns the identifier of the line that was selected */ getLineId(): any; /** * Gets the closest point on the selected line * @returns the closest point on the line */ getPosition(): any; getPoints(): _[]; /** * Returns the vertex of the line that is closest to the selection * point. * * Clipped vertices are skipped. If the vertex is occluded, then * `null` is returned. */ getBestVertex(): _ | null; /** * Gets the kine bits for the selection Point. * @returns The bits set on the line/edge. */ getLineBits(): any; /** * Gets the bounding box for the line entity * @returns Bounding box for the line entity */ getBounding(): any; /** * @returns The index of the overlay the entity belongs to. */ overlayIndex(): any; } declare class G_ { none: number; face: number; line: number; point: number; part: number; update(t: any, e: any): void; sum(): number; } declare class Fh { /** * Creates a new [[PointEntity]] from an object given by [[toJson]]. * @param objData An object given by [[toJson]]. * @returns The prepared object. */ static fromJson(t: any): Fh; /** @hidden */ constructor(t: any, e: any, i: any, n: any); _position: any; _elementIndex: any; _overlayIndex: any; _elementBits: any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { pointId: any; pointBits: any; position: any; overlayIndex: any; }; _toJson(): { pointId: any; pointBits: any; position: any; overlayIndex: any; }; /** * Gets the world space position of the selection point. * @returns World space position of the selection point if it can be determined. */ getPosition(): any; /** * Gets the cad bits for the selection Point. * @returns The bits set on the point. */ getPointBits(): any; /** * Gets the point identifier * @returns the identifier of the point that was selected */ getPointId(): any; /** * @returns The index of the overlay the entity belongs to. */ overlayIndex(): any; } declare class _i { static create(t: any, e: any, i: any, n: any, r: any): _i; /** @hidden */ static _fromJson(t: any): _i; /** @hidden */ constructor(t?: null, e?: null, i?: null, n?: null, r?: null); _nodeId: any; _inclusionKey: any; _faceEntity: any; _lineEntity: any; _pointEntity: any; getSelectionType(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): { nodeId: any; includeId: any; faceEntity: any; lineEntity: any; pointEntity: any; }; _toJson(): { nodeId: any; includeId: any; faceEntity: any; lineEntity: any; pointEntity: any; }; /** * Gets the face entity for this selection. * @returns the face entity if one was selected, otherwise null */ getFaceEntity(): any; /** * Gets the line entity for this selection. * @returns the line entity if one was selected, otherwise null */ getLineEntity(): any; /** * Gets the point entity for this selection. * @returns the point entity if one was selected, otherwise null */ getPointEntity(): any; /** * Gets the part id for this selection. * @returns the part id associated with this selection item */ getNodeId(): any; /** * Gets the include id for this selection. * @returns the inclusion key associated with this selection item */ getInclusionKey(): any; /** * Convenience method for getting the world space position of the selection point. * [[SelectionItem]]s with a type of [[SelectionType.Part]] will not have a position and null will be returned. * @returns World space position of the selection point if it can be determined. */ getPosition(): any; /** * Gets the overlay index for this selection. * @returns the overlay index associated with this selection item */ overlayIndex(): any; /** @hidden */ _setNodeId(t: any): void; /** * Determines if two selection items are equal. * @param selectionItem The selection item to test against. * @returns whether or not the two items are equal. */ equals(t: any): boolean; /** @hidden */ _hash(t: any): any; /** * @returns true if the object has the fields required for an [[EntitySelectionItem]]. * This function can be used as a TypeScript [type guard](https://www.typescriptlang.org/docs/handbook/advanced-types.html#user-defined-type-guards). */ isEntitySelection(): boolean; /** * @returns true if the object has the fields required for a [[NodeSelectionItem]]. * This function can be used as a TypeScript [type guard](https://www.typescriptlang.org/docs/handbook/advanced-types.html#user-defined-type-guards). */ isNodeSelection(): boolean; /** * @returns true if the object has the fields required for a [[NodeEntitySelectionItem]]. * This function can be used as a TypeScript [type guard](https://www.typescriptlang.org/docs/handbook/advanced-types.html#user-defined-type-guards). */ isNodeEntitySelection(): boolean; /** * @returns true if the object has the fields required for a [[FaceSelectionItem]]. * This function can be used as a TypeScript [type guard](https://www.typescriptlang.org/docs/handbook/advanced-types.html#user-defined-type-guards). */ isFaceSelection(): boolean; /** * @returns true if the object has the fields required for a [[LineSelectionItem]]. * This function can be used as a TypeScript [type guard](https://www.typescriptlang.org/docs/handbook/advanced-types.html#user-defined-type-guards). */ isLineSelection(): boolean; /** * @returns true if the object has the fields required for a [[PointSelectionItem]]. * This function can be used as a TypeScript [type guard](https://www.typescriptlang.org/docs/handbook/advanced-types.html#user-defined-type-guards). */ isPointSelection(): boolean; } declare class Cd { static _selectionItemIsFromModelBrowser(t: any): boolean; /** @hidden */ constructor(t: any, e: any, i: any, n: any, r: any); _selectedItemsPruned: Map; _selectedItemsFull: Map; _selectedNodeCounts: Map; _temporalLinks: Map; _oldestItemHash: any; _newestItemHash: any; _selectedLayers: Set; _selectedTypes: Set; _nodeSelectionColor: vt; _nodeSelectionOutlineColor: vt; _elementSelectionColor: vt; _elementSelectionOutlineColor: vt; _nodeHighlightMode: any; _nodeElementHighlightMode: any; _highlightNodeSelection: boolean; _highlightFaceElementSelection: boolean; _highlightLineElementSelection: boolean; _highlightPointElementSelection: boolean; _selectParentIfSelected: boolean; _pruneSelectionDescendants: boolean; _ignoreEntityWhenTogglingChildSelection: boolean; _singleEntityToggleMode: boolean; _suppressImplicitRemovalCallback: boolean; _selectionFilter: any; _incrementalBlacklistedInstanceNodes: Set; _viewer: any; _engine: any; _model: any; _modelStructure: any; _callbackManager: any; /** * @hidden */ _init(): void; /** * This allows manipulating the selected NodeId. * To reset the filter, set it to null. * @param selectionFilter function that manipulates the selected NodeId. */ setSelectionFilter(t: any): void; /** * @returns [[SelectionFilter]] function or null if none is set. */ getSelectionFilter(): any; /** * Enables / disables descendant pruning and clears the current selection set. When enabled, a parent and child will not be present in the same selection set. This behavior is enabled by default. */ setPruneSelectionDescendants(t: any): void; /** * Gets whether descendant pruning is enabled. * See also: [[setPruneSelectionDescendants]] */ getPruneSelectionDescendants(): boolean; /** * Enables / disables automatic parent selection. When enabled, if a selected part is selected again, its parent will be selected. This behavior is enabled by default. */ setSelectParentIfSelected(t: any): void; /** * Gets whether automatic parent selection is enabled. * See also: [[setSelectParentIfSelected]] */ getSelectParentIfSelected(): boolean; /** * Enables / disables ignore entity when toggling child selection mode. * * When enabled, a [[NodeSelectionItem]] that has a selected ancestor may only be toggled if it does not contain an entity selection. * A selection item without an entity selection is usually generated from selecting a node via a model tree control. * A selection item containing an entity selection is usually generated as a result of a viewport picking operation. * * This behavior is enabled by default. * See Also: [[toggle]] */ setIgnoreEntityWhenTogglingChildSelection(t: any): void; /** * Gets whether ignore entity when toggling child selection mode is enabled. * See also: [[setIgnoreEntityWhenTogglingChildSelection]] */ getIgnoreEntityWhenTogglingChildSelection(): boolean; /** * Enables / disables single entity toggle mode. * * When enabled, limits the selection set to containing only one entity selection for each node id. * Toggling with an entity selection that has the same node id as a [[NodeSelectionItem]] * already in the selection set will remove that item from the selection set. * * This behavior is disabled by default. * See Also: [[toggle]] */ setSingleEntityToggleModeEnabled(t: any): void; /** * Gets whether single entity toggle mode is enabled. * See also: [[setSingleEntityToggleModeEnabled]] */ getSingleEntityToggleModeEnabled(): boolean; /** * Sets whether to generate selectionArray callbacks with implicitly removed nodes. * * For example, consider the case where you have a parent node that has a multiple child nodes. * Normally, if the parent begins selected and then a child is removed from the selection set * there will be two selectionArray callbacks generated. The first will for the removal of the * parent node. The second wil be for the addition of all of it's children except the one that was * initially removed. * * When this behavior is enabled only a single selectionArray callback will be generated for the * child node that was removed. * * This behavior is disabled by default. */ setSuppressImplicitRemovalCallback(t: any): void; /** * Gets whether implicit removal callbacks are being suppressed * See also: [[setSuppressImplicitRemovalCallback]] */ getSuppressImplicitRemovalCallback(): boolean; /** * Performs a selection operation from the given position on the canvas. The best candidate entity is selected. * This method triggers a selection event. * @param point The canvas position to select from. * @param config The configuration object used for this picking operation. * @param selectionMode The mode to use for this selection. * @param view The view to use when projecting the point into the scene. * @returns Promise that resolves when this operation has completed. */ selectFromPoint(t: any, e: any, i?: any, n?: any): Promise; /** * Performs a selection operation from the given position on the canvas. All candidate entities are selected. * This method triggers a selection event. * @param point The canvas position to select from. * @param config The configuration object used for this picking operation. * @param selectionMode The mode to use for this selection. * @param view The view to use when projecting the point into the scene. * @returns Promise that resolves when this operation has completed. */ selectAllFromPoint(t: any, e: any, i?: any, n?: any): Promise; /** * Performs a selection operation from the given world-space ray. The best candidate entity is selected. * This method triggers a selection event. * @param ray The world-space ray to perform the selection with. * @param config The configuration object used for this picking operation. * @param selectionMode The mode to use for this selection. * @param view The view to use when projecting the point into the scene. * @returns Promise that resolves when this operation has completed. */ selectFromRay(t: any, e: any, i?: any, n?: any): Promise; /** * Performs a selection operation from the given world-space ray. All candidate entities are selected. * This method triggers a selection event. * @param ray The world-space ray to perform the selection with. * @param config The configuration object used for this picking operation. * @param selectionMode The mode to use for this selection. * @param view The view to use when projecting the point into the scene. * @returns Promise that resolves when this operation has completed. */ selectAllFromRay(t: any, e: any, i?: any, n?: any): Promise; _onSelectionItem(t: any, e: any): void; _onSelectionItems(t: any, e: any): void; /** * Creates a new and active selection context for the provided selection window. * @param areaCssMin The minimum coordinate in css pixel space for the selection window. * @param areaCssMax The maximum coordinate in css pixel space for the selection window. * @param config The configuration object used for this selection operation. * @param view The view to use when projecting the point into the scene. * @returns The handle for the selection context. */ beginScreenSelectByArea(t: any, e: any, i: any, n?: any): any; /** * Creates a new and active selection context for the provided selection ray. * The ray is created at the supplied ray origin and is cast into the scene. * Faces are selected if they lie along the ray. * Lines and points are selected if they lie within the ray's box radius. * * Note: Somewhat confusingly ray drill selection is actually a selection by volume. * The provided ray origin and radius are used to create a frustum to preform the selection. * This has some consequences. For example, the `SelectionResult`s returned by advancing a * ray drill selection will not have selection positions, since they were not selected at * a single point. * @param rayCssOrigin The coordinate in css pixel space for the selection ray's origin. * @param rayCssBoxRadius The radius around the ray in css pixel space used for line and point selection proximity. * @param config The configuration object used for this selection operation. * @param view The view to use when projecting the point into the scene. * @returns The handle for the selection context. */ beginRayDrillSelection(t: any, e: any, i: any, n?: any): any; /** * Creates a new and active selection context for the provided selection volume. * The selection volume is a convex polyhedron defined by the bounded intersection of its half-spaces. * @param volumePlanes The planes used to define volume. A point p is inside the volume if and only if (plane.determineSide(p) == true) for all supplied planes. * @param heuristicOrigin A point used to compute distances against for ordering returned results. This is typically (but not necessarily) the center of the volume. * @param config The configuration object used for this selection operation. * @returns The handle for the selection context. */ beginConvexPolyhedronSelection(t: any, e: any, i: any): any; /** * Creates a new and active selection context for the provided selection sphere. * @param sphereCenter The center of the selection sphere. * @param sphereRadius The radius of the selection sphere. * @param config The configuration object used for this selection operation. * @returns The handle for the selection context. */ beginSphereSelection(t: any, e: any, i: any): any; /** * Deactivates and destroys the provided selection context. * @param handle The selection context to destroy. */ endIncrementalSelection(t: any): Promise; /** * Adds the next batch of instances selected by the supplied selection * context to the selection set. * * @param handle The handle to an active area selection context. * @param predicate An optional function that returns `true` if a given * [[NodeSelectionItem]] should be added to the selection set. If * `false` is returned, the item will not be added. * * @returns `true` if there are possibly more items to select and * `false` if not. */ advanceIncrementalSelection(t: any, e?: null): Promise; isSelected(t: any): boolean; /** * Checks whether a node, or its parents, appear in the selection set or not. * Note: for the purposes of this function element selections on a node * are considered the same as node selection. * @param nodeId Node to check for * @returns `true` if the node or its parents appear in the selection set. `false` otherwise */ isNodeSelected(t: any): boolean; contains(t: any): boolean; /** * Checks if the parent of a selection item is in the selection set. * @param selectionItem * @returns parent selection item, or null if not found */ containsParent(t: any): any; _findAncestor(t: any): any; /** * Adds all items in a layer to the selection set. * @param layerName * @param selectionMode */ selectLayer(t: any, e: any): void; /** * Gets all selected layers. */ getSelectedLayers(): any[]; /** * Adds all items with an IFC type to the selection set. * @param genericType */ selectType(t: any, e: any): void; /** * Gets all selected IFC types. */ getSelectedTypes(): any[]; /** * Selects a node with the given Id. * @param nodeId nodeId of the node to select. Pass null to clear the selection. * @returns the selection type of this operation. */ selectNode(t: any, e?: any): any; _triggerNullSelection(): void; _isInAxisOverlay(t: any): boolean; _getNodeCounts(t: any): any; _addToFull(t: any, e: any): void; _addItems(t: any, e: any): void; _addItem(t: any, e: any): void; /** * Manually adds an item or array of items to the selection set. * Triggers a selection event. * @param itemOrItems A selectionItem or selectionItem array that will be added to the current selection set. * @param suppressCallback Optional boolean param to suppress the selectionArray callbacks calls to this generate. */ add(t: any, e?: boolean): void; _filterItem(t: any): any; _addImpl(t: any, e: any): boolean; _removeUpdateLayers(t: any): void; _removeUpdateTypes(t: any): void; _removeFromFull(t: any, e: any): void; _removeItems(t: any, e: any): void; _removeItem(t: any, e: any): void; /** * Manually removes an item or an array of items from the selection set. * Triggers a selection event. * @param itemOrItems A selectionItem or an array of selection items that will be removed from the current selection set. * @param suppressCallback Optional boolean param to suppress the selectionArray callbacks calls to this generate. */ remove(t: any, e?: boolean): void; /** hidden */ _removeImpl(t: any, e: any): boolean; /** * Manually adds or removes an item from the selection set. * Triggers a selection event. * @param selectionItem A selectionItem that will be added or removed from the selection set. */ toggle(t: any): void; /** * Manually removes all currently selected items (if any) from the selection set and adds the supplied item. * Triggers a selection event. * @param selectionItem A selectionItem that will become the new selection item. */ set(t: any): void; /** * Gets all current selection items. * @returns array of all selection items. */ getResults(): any[]; /** * Gets a selection at the specified index. The first selected item will be at index 0. * @param index index of selection item to get * @returns the selection result at the given index. */ getResult(t: any): any; _getItemFromOldest(t: any): any; _getItemFromNewest(t: any): any; /** * Gets the least recent selection item. * @returns the least recently selected item (if any). */ getFirst(): any; /** * Gets the most recent selection item. * @returns the most recently selected item (if any). */ getLast(): any; /** * Gets the number of selection items. * @returns the number of selected items. */ size(): number; /** * Iterates over all selection items. * The function passed in will be called once for every selection item and will receive the item as its parameter. * @param func a function to be called for every selection item. */ each(t: any): void; /** * Removes all items from the selection set. * @param triggerCallback triggers a null selection callback when true. */ clear(t?: boolean): void; /** * Sets the color to be used when selecting nodes. * This method should not be called before the sceneReady callback has been triggered. * @param color the color to apply to the selected node. */ setNodeSelectionColor(t: any): Promise; _setNodeSelectionColor(t: any): void; /** * Gets the color to be used when selecting nodes. * @returns the color that is applied to a selected node. */ getNodeSelectionColor(): vt; /** * Sets color for the node selection outline. * This method should not be called before the sceneReady callback has been triggered. * @param color the color to apply to the node selection outline. */ setNodeSelectionOutlineColor(t: any): Promise; _setNodeSelectionOutlineColor(t: any): void; /** * Gets the color to be used for outlining the node selection. * @returns the color for node selection outline. */ getNodeSelectionOutlineColor(): vt; /** * Sets the color to use for node element selection. * This method should not be called before the sceneReady callback has been triggered. * @param color the color to apply to selected node elements. */ setNodeElementSelectionColor(t: any): Promise; _setNodeElementSelectionColor(t: any): void; /** * Gets the color to use for face and line selection. * @returns the color used for face and line selection. */ getNodeElementSelectionColor(): vt; /** * Gets the color to use for outlining node element selection. * This method should not be called before the sceneReady callback has been triggered. * @param color the color used for outlining face and line selection. */ setNodeElementSelectionOutlineColor(t: any): Promise; _setNodeElementSelectionOutlineColor(t: any): void; /** * Gets the color to use for outlining face and line selection. * @returns color the color used for outlining face and line selection. */ getNodeElementSelectionOutlineColor(): vt; /** * Gets whether face elements will be highlighted on selection. * @returns boolean the current value for face element selection highlighting. */ getHighlightFaceElementSelection(): boolean; /** * Sets whether face elements should be highlighted when a selection occurs. * By default the system will automatically highlight face elements associated with a selection item. * @param highlightFaceElementSelection value indicating whether selected face elements should be highlighted. */ setHighlightFaceElementSelection(t: any): Promise; /** * Sets the highlighting mode for selected nodes. The default behavior is to highlight the node and render an overlay outline. * This method should not be called before the sceneReady callback has been triggered. * @param highlightMode the highlighting mode that will be applied to selected nodes. */ setNodeSelectionHighlightMode(t: any): Promise; _setNodeSelectionHighlightMode(t: any): void; /** * Gets the highlighting mode for selected nodes. * @returns the current */ getNodeSelectionHighlightMode(): any; /** * Sets the highlighting mode for selected node elements. * The default behavior is to highlight the node element and render an overlay outline. * This method should not be called before the sceneReady callback has been triggered. * @param highlightMode the highlighting mode that will be applied to selected nodes. */ setNodeElementSelectionHighlightMode(t: any): Promise; _setNodeElementSelectionHighlightMode(t: any): void; getNodeElementSelectionHighlightMode(): any; /** * Sets whether nodes should be highlighted when a selection occurs. * By default, the system will automatically highlight the node associated with a selection item. * @param highlightNodeSelection value indicating whether selected nodes should be highlighted. */ setHighlightNodeSelection(t: any): Promise; /** * Gets whether nodes will be highlighted on selection. * @returns the current value for node selection highlighting. */ getHighlightNodeSelection(): boolean; /** * Gets whether line elements will be highlighted on selection. * @returns boolean the current value for line element selection highlighting. */ getHighlightLineElementSelection(): boolean; /** * Gets whether point elements will be highlighted on selection. * @returns boolean the current value for point element selection highlighting. */ getHighlightPointElementSelection(): boolean; /** * Sets whether line elements should be highlighted when a selection occurs. * By default the system will automatically highlight line elements associated with a selection item. * @param highlightLineElementSelection value indicating whether selected line elements should be highlighted. */ setHighlightLineElementSelection(t: any): Promise; /** * Sets whether point elements should be highlighted when a selection occurs. * By default the system will automatically highlight point elements associated with a selection item. * @param highlightPointElementSelection value indicating whether selected point elements should be highlighted. */ setHighlightPointElementSelection(t: any): Promise; /** * Sets the pick tolerance in pixels for line and point picking. * If a line or point is within this pixel tolerance of the click point, * it will be prioritized over the face at the click position. * * The default value is 20. * @param Pick Tolerance value in pixels */ setPickTolerance(t: any): void; /** * Gets the pick tolerance in pixels for line and point picking. * * The default value is 20. * @returns number Pick tolerance value in pixels */ getPickTolerance(): any; /** * Exports selection objects so that they may be loaded back into the the system at a later time using loadSelectionData. * @returns exported selection data. */ exportSelectionData(): any[]; /** * Loads serialized selection items exported using [[exportSelectionData]] back into the [[SelectionManager]]. * The current selection will be cleared. A selection event will be triggered for each loaded item. * This method should not be called before the [[CallbackMap.modelStructureReady]] callback has been triggered. * @param data data to be imported in the form of a JavaScript object or JSON string */ loadSelectionData(t: any): void; _pathToParent(t: any, e: any): any[]; _removeImplicit(t: any, e: any, i: any): void; _removeDescendants(t: any): void; _removeDescendantsRecursive(t: any): void; _processSelection(t: any, e: any): void; _clearHighlight(): void; _updateHighlight(): void; _updateItemHighlight(t: any, e: any, i: any): void; _updateHighlightingMode(): void; _onSubtreeLoaded(t: any): void; } declare class $_ { constructor(t: any); futureItemHash: any; pastItemHash: any; } declare function jf(s: any, t: any): any; declare class Ac { /** * Creates a new [ActionQueue] * @param maxActivePromises Max number of promises to leave open before they begin getting deferred * @param suppressFailures Whether or not rejected promises and actions that throw cause the queue to fail */ constructor(t: any, e: any); _failed: boolean; _failureError: any; _activePromiseCount: number; _idlePromise: Promise | null; _maxActivePromises: any; _suppressFailures: any; _deferredActions: Ym; /** * Returns `true` if there are no actions waiting to be evaluated * @returns Boolean indicating idle status */ isIdle(): boolean; /** * Returns a `Promise` that resolves when all actions have been completed or rejects if there * was a failure * * It should be noted that if the queue is configured not to suppress failures and an action throws an error, * any deferred actions (actions that were queued but not active at the time of the failure) will be * cleared from the queue and will not be evaluated * @returns A promise that resolves/rejects when all actions have been completed */ waitForIdle(): Promise; /** * Pushes a new [ActionLike] to be evaluated onto the queue * @param action */ push(t: any): void; _immediateAction(t: any): boolean; _finalizePromise(): void; _tryActivateIdlePromise(): void; } declare class fo { /** * Creates a new `CurrentAction`. * @param suppressFailures Controls whether or not thrown action errors cause `waitForIdle` to throw. */ constructor(t: any); _active: any; _pending: any; _idlePromise: Promise | null; _suppressFailures: any; /** * Queries the idle state of this object. * @return `true` if there are no executing actions and `false` otherwise. */ isIdle(): boolean; /** * Creates `Promise` that can be used to wait for this object to become idle. * * If this object was created with `suppressFailures`, then the returned `Promise` * never throws. Otherwise action failures (from `this.set`) propagate to the returned `Promise`. * * @return The idle `Promise`. */ waitForIdle(): Promise; /** * Sets the action to execute to the one supplied. * * If this object is idle, then the action is immediately executed, * and this object is no longer as long as the action is running. * * Otherwise if the object is not idle, then action becomes pended * and will execute after the current one finishes. If an action is * already pended, then the prior pending action is replaced by the * newly supplied action and is discarded. * * @param action */ set(t: any): void; _advance(t: any, e: any): void; /** * Clears and discards any pending actions. If an action is * currently being executed, it remains unaffected by this. */ clear(): void; } declare class Is { /** * Creates a new lazy value, which is the result of the supplied function * once the lazy value is forced. */ static create(t: any): Is; constructor(t: any); _deferredValue: any; /** * Forces the lazy value given at construction and returns it. */ get(): any; _resolvedValue: any; } declare class Lv { constructor(t: any, e: any); _state: any; _reducer: any; /** * Handle an action and update the state * * @param evt The action to handle * @param payload The payload if any */ handle(t: any, e: any): void; } declare class Xo { _timerId: any; _action: any; _beforeActionIdlePromise: Promise | null; _afterActionIdlePromise: Promise | null; /** * Returns true if no pending action exists and false otherwise. */ isIdle(t: any): boolean; /** * Returns a promise that resolves when the timer becomes (or already is) idle. */ waitForIdle(t: any): Promise; _triggerIdlePromise(t: any): void; _clearTimeout(): void; /** * Clears the pending action if it exists. */ clear(): void; /** * Sets a new delayed action. If one is already pending before this call is made, it gets cleared. * @param delay The delay in milliseconds to pend the action. * @param action The action to pend. */ set(t: any, e: any): void; } declare function Rv(s: any): void; declare function $r(s: any): void; declare function Wv(): void; declare function gd(s: any): Map; declare function yv(s: any): Set; declare function i_(s: any, t: any, e: any, i: any): Cs; declare function wi(): Promise; declare function pd(): Promise; declare function No(s: any, t: any): Promise; declare function Fv(s: any, ...t: any[]): NodeJS.Timeout; declare function Bv(s: any, t: any): boolean; declare function Sv(s: any, t: any): void; declare function dg(s: any, t: any, e: any, i: any, n: any, r: any): Cs; declare function t_(): Cs; declare function zv(s: any): s is { radius: any; origin: any; normal: any; copy(): any; type(): number; }; declare function jv(s: any): s is Li | Wi | Ca | Sa | Pa | vh | bh | xh | Ih | Ch | Sh | Ph | kh | Mh | Eh | Ah | Th | wh; declare function Vv(s: any): s is { length: any; copy(): any; type(): number; }; declare function Hv(s: any): s is Ho; declare function Uv(s: any): s is Wi; declare function Sf(s: any, t: any): Set; declare function ao(s: any): any[]; declare function md(s: any): Promise; declare function Ec(s: any): Set; declare function Ge(s: any): Promise; declare class Mx { _obscuredLineColor: vt; _obscuredLineOpacity: number; _visibleLineColor: vt; _visibleLineOpacity: number; _backgroundColorTop: vt; _backgroundColorBottom: vt; /** * Returns the `Color` used for rendering obscured lines. * @returns The color used for obscured lines. */ getObscuredLineColor(): vt; /** * Sets the `Color` used for rendering obscured lines. * @param color The color used for obscured lines. */ setObscuredLineColor(t: any): void; /** * Returns the opacity used for rendering obscured lines. * @returns The opacity used for obscured lines. */ getObscuredLineOpacity(): number; /** * Sets the opacity used for rendering obscured lines. * @param opacity The opacity used for obscured lines. */ setObscuredLineOpacity(t: any): void; /** * Gets the `Color` used for rendering visible lines. * @returns The color used for visible lines. */ getVisibleLineColor(): vt; /** * Sets the `Color` used for rendering visible lines. * @param color The color used for visible lines. */ setVisibleLineColor(t: any): void; /** * Gets the opacity used for rendering visible lines. * @returns The opacity used for visible lines. */ getVisibleLineOpacity(): number; /** * Sets the opacity used for rendering visible lines. * @param opacity The opacity used for visible lines. */ setVisibleLineOpacity(t: any): void; /** * Gets the colors used for the background in hidden line rendering. * @returns The background colors used for hidden line. */ getBackgroundColor(): jy; /** * Sets the background color in hidden line rendering to a gradient interpolating from the top to bottom color. * For a solid color, the top and bottom color should have the same values. * To enable a transparent background, pass null to the parameters of this function. * * @param top the top color for the the background gradient, null for transparent. * @param bottom the bottom color for the the background gradient, null for transparent. */ setBackgroundColor(t?: null, e?: null): void; } declare class Cx { constructor(t: any, e: any); _callbackManager: any; _operatorManager: any; _contextEventChecker: Sx; injectMouseDownEvent(t: any, e: any, i: any, n: any, r: any, o: any): void; injectMouseMoveEvent(t: any, e: any, i: any, n: any, r: any, o: any): void; injectMouseUpEvent(t: any, e: any, i: any, n: any, r: any, o: any): void; injectMousewheelEvent(t: any, e: any, i: any, n: any, r: any, o: any): void; injectKeyDownEvent(t: any, e: any, i: any): void; injectKeyUpEvent(t: any, e: any, i: any): void; injectTouchStartEvent(t: any, e: any, i: any, n: any, r: any): void; injectTouchMoveEvent(t: any, e: any, i: any, n: any, r: any): void; injectTouchEndEvent(t: any, e: any, i: any, n: any, r: any): void; injectViewOrientationChangeEvent(t: any): void; } declare class Ax { constructor(t: any, e: any); _statisticsDisplayHandle: any; _statistics: Wy; _viewer: any; _callbackManager: any; _statisticsDisplay: Ex; update(): Promise; isShown(): boolean; getStatistics(): Wy; showDisplay(): Promise; hideDisplay(): void; } declare class Tx { left: number; top: number; } declare class jo extends d_ { constructor(t: any, e: any); _queue(t: any): void; _dequeue(): any; push(t: any): Promise; waitOnLatest(): Promise; } declare class P0 extends jo { constructor(t: any); } declare class Mv { _aliasMap: Map; _callbackMap: Map; _activeTriggerDepth: number; _pendingClearUnboundFilteredNames: Set; _filterName(t: any): any; bind(t: any, e: any): void; unbind(t: any): void; _clearUnboundCallbacks(): void; promiseTrigger(t: any, e: any, ...i: any[]): Promise; _unsafePromiseTrigger(t: any, e: any): Promise; trigger(t: any, ...e: any[]): void; unsafeTrigger(t: any, e: any): void; } declare class dI { _activeInterpolation: any; _updateTimer: Xo; _updateInterval: number; stop(): void; start(t: any, e?: boolean): boolean; update(): void; } declare class BC { constructor(t: any); _timeoutDurationMinutes: number; _timeoutWarningMinutes: number; _timer: Xo; _enabled: boolean; _callbackManager: any; setTimeoutDurations(t: any, e: any): boolean; shutdown(): void; resetTimeout(): void; _warn(): void; _timeout(): void; } declare class lI { constructor(t: any, e: any); _viewIndices: Set; _windowSizes: Map; _engineReadyPromise: Promise; _sessionStartedPromise: Promise; _connectionlessEmpty: boolean; _uri: string; _streamingMode: any; _rendererType: any; _meshLevel: number; _memoryLimit: number; _boundingPreviewMode: any; _streamCutoffScale: number; _loadFinished: boolean; _statistics: Wy; _cachedTriangleCount: any; _cachedElementCount: any; _cuttingSectionToKeyMap: Map; _cappingQuantizationGranularity: number; _cappingFaceColor: vt; _cappingLineColor: vt; _cappingGeometryVisibility: boolean; _cappingNeedsUpdate: boolean; _cappingDelayTimeoutId: any; _cappingDelay: number; _requestBatchCountByType: number[]; _pendingRequestsByType: never[][]; _callbackManager: any; addView(t: any): Promise; removeView(t: any): void; getNetworkModelName(): any; logMessage(t: any): void; setTimeout(t: any, e: any): NodeJS.Timeout; sleep(t: any): Promise; getScsInfo(): any; _applyOptions(t: any): void; _model: any; _sessionToken: any; _buffer: any; start(t: any, e: any): boolean; _canvasContainers: Map | undefined; _initOptions: any; _canvases: Map | undefined; _canvas2dContexts: Map | undefined; setPickTolerance(t: any): void; getPickTolerance(): number; _onEngineReady(t: any): void; _sc: any; _sessionType: any; _matrixCache: nI | undefined; _scSelectionManager: aI | undefined; loadFinished(): boolean; resetCachedStatistics(): void; setAmbientOcclusionEnabled(t: any, e: any): void; setAmbientOcclusionRadius(t: any, e: any): void; setLightingEnabled(t: any, e: any): void; _fillStatTotalCounts(): void; _updateCachedStats(): Promise; _toVector3(t: any): any; startExplode(t: any, e: any): void; setExplodeMagnitude(t: any): void; stopExplode(): void; getStatistics(t?: boolean): Promise; setStreamIdleMarker(): any; hasDepthRange(t: any): any; setDepthRange(t: any, e: any, i: any): void; unsetDepthRange(t: any): void; setDefaultDepthRange(t: any, e: any, i: any): void; _getScPlaneArray(t: any): any[][]; getCuttingSectionLimits(): any; _addCuttingSection(t: any, e: any): Promise; addCuttingSection(t: any): Promise; removeCuttingSection(t: any): Promise; removeAllCuttingSections(): any; updateCuttingSection(t: any): Promise; setCappingDelay(t: any): void; enableCappingIdleCallback(t: any): any; getCappedInstances(): any; delayCapping(): void; setCappingGeometryVisibility(t: any, e: any): void; _regenerateCapping(t: any): void; getCappingGeometryVisibility(): boolean; _toRgb(t: any): any; _toRgba(t: any, e: any): any; setCappingFaceColor(t: any): void; setCappingLineColor(t: any): void; _onSessionStarted(): Promise; isInit(): boolean; setRemoteEndpoint(t: any, e: any): void; getSessionType(): any; _awaitEmptyLoad(): Promise; loadEmpty(): Promise; _loadEmpty(t: any): any; _loadEmptyScs(): any; _loadEmptyNetwork(): any; setProjection(t: any, e: any): void; getViewMatrix(t: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; getProjectionMatrix(t: any, e: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; getFullCameraMatrix(t: any, e: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; getPrimaryModelKey(): any; getPartsBounding(t: any, e: any, i: any): Promise; getDrawnPartsBounding(t: any, e: any): Promise; getBounding(t: any, e: any, i: any, n: any): Promise; getLooseBounding(): Promise; getClientDimensions(t: any): any[]; getModelBounding(t: any, e: any, i: any): Promise; pickFromScreen(t: any, e: any, i: any, n: any): Promise<_i | null>; pickAllFromScreen(t: any, e: any, i: any, n: any): Promise<_i[]>; compositePickFromScreen(t: any, e: any, i: any, n: any): Promise; beginScreenAreaSelection(t: any, e: any, i: any, n: any): Promise; beginRayDrillSelection(t: any, e: any, i: any, n: any): Promise; beginConvexPolyhedronSelection(t: any, e: any, i: any): Promise; beginSphereSelection(t: any, e: any, i: any): Promise; endIncrementalSelection(t: any): void; advanceIncrementalSelection(t: any): Promise; flushMetaDataCache(): void; safeGetMetaDatas(t: any, e: any): Promise; safeGetMetaData(t: any, e: any): Promise; safeLoadMetaDatas(t: any): Promise; getDataFromIds(t: any): any; _getDataFromIds(t: any): any; pickFromRay(t: any, e: any): Promise<_i | null>; pickAllFromRay(t: any, e: any): Promise<_i[]>; updateCamera(t: any, e: any): Cn; _toProjection(t: any): any; _toCamera(t: any, e: any): any; setCamera(t: any, e: any): void; _setCamera(t: any, e: any): void; markCameraAsEmpty(t: any): void; setInstancesMatrix(t: any, e: any): void; setMatrices(t: any, e: any): void; highlightParts(t: any, e: any): void; highlightElements(t: any, e: any, i: any, n: any, r: any): void; getPartHighlighted(t: any): any; getElementHighlighted(t: any, e: any, i: any): any; setNodeHighlightColor(t: any, e: any, i: any): void; setElementHighlightColor(t: any, e: any, i: any): void; setHighlightColorizeCompression(t: any, e: any): void; computeMinimumBodyBodyDistance(t: any, e: any): Promise; computeMininimumFaceFaceDistance(t: any, e: any, i: any, n: any): Promise; computeMinimumFaceRayDistance(t: any, e: any, i: any): Promise; computeMinimumFaceLineDistance(t: any, e: any, i: any): Promise; pauseRendering(t: any, e: any): void; pauseAllRendering(t: any): void; resumeRendering(t: any): void; resumeAllRendering(): void; beginRequestBatch(t: any): void; endRequestBatch(t: any): void; _flushBatchedRequests(t: any): Promise; _flushBatchedMetaDataRequests(t: any, e: any): Promise; clearHighlight(): void; resetColors(): void; resetOpacity(): void; setPartOpacity(t: any, e: any): void; unsetPartOpacity(t: any): void; getPartOpacity(t: any): any; getEffectivePartOpacity(t: any, e: any): any; getPartHasTransparency(t: any): Promise; setPartColor(t: any, e: any, i: any): void; unsetPartColor(t: any, e: any): void; getPartColor(t: any, e: any): any; getEffectivePartColor(t: any, e: any): Promise; setPartAmbientColor(t: any, e: any, i: any): void; unsetPartAmbientColor(t: any, e: any): void; getPartAmbientColor(t: any, e: any): any; getPartEffectiveAmbientColor(t: any, e: any): any; setPartAmbientMix(t: any, e: any, i: any): void; setPartEmissiveColor(t: any, e: any, i: any): void; getPartEmissiveColor(t: any, e: any): any; getPartEffectiveEmissiveColor(t: any, e: any): any; unsetPartEmissiveColor(t: any, e: any): void; setPartSpecularColor(t: any, e: any, i: any): void; getPartSpecularColor(t: any, e: any): any; getPartEffectiveSpecularColor(t: any, e: any): any; unsetPartSpecularColor(t: any, e: any): void; setPartSpecularIntensity(t: any, e: any, i: any): void; unsetPartSpecularIntensity(t: any, e: any): void; setElementColor(t: any, e: any, i: any, n: any, r: any): void; unsetElementColor(t: any, e: any, i: any, n: any): void; getElementColor(t: any, e: any, i: any): any; getEffectiveElementColor(t: any, e: any, i: any, n: any): Promise; synchronizeVisibilities(t: any, e: any): void; setPartVisibility(t: any, e: any, i: any): void; setElementVisibility(t: any, e: any, i: any, n: any, r: any): void; clearElementVisibility(t: any, e: any): void; setVisibilityByAttachment(t: any, e: any): void; requestMeshInstances(t: any): void; getRendererType(): any; _toMeshDataBuilder(t: any): any; createMesh(t: any): any; replaceMesh(t: any, e: any): any; destroyMeshes(t: any): any; _toImageFormat(t: any): any; _validateImage(t: any): void; _pngImageHasAlpha(t: any): Promise; createImage(t: any, e: any): Promise; destroyImages(t: any): any; _toTextureTiling(t: any): any; _toTextureInterpolation(t: any): any; _toTextureMipMapping(t: any): any; _toTextureParameterization(t: any): any; _toTextureModifier(t: any): any; setTexture(t: any, e: any): Promise; unsetTexture(t: any): void; createMatrix(t: any): any; createIdentityMatrix(): any; createMeshInstance(t: any): Promise; destroyLocalInstances(t: any): any; _fromScCamera(t: any): Cn; getCameraPromise(t: any): Promise; getCamera(t: any): Cn; resize(t: any): void; _resizeRenderCanvas(): void; setFaceVisibility(t: any, e: any): void; setLineVisibility(t: any, e: any): void; getCanvasSize(t: any): any; setBackgroundGradient(t: any, e: any, i: any): void; setBoundingPreviewUnderDrawColor(t: any, e: any): void; setBoundingPreviewTestedColor(t: any, e: any): void; setBoundingPreviewEjectedColor(t: any, e: any): void; setBoundingPreviewUnderDraw(t: any, e: any): void; setBoundingDebugLevel(t: any, e: any): void; setBoundingPreviewTested(t: any, e: any): void; setBoundingPreviewEjected(t: any, e: any): void; setServerRenderQuality(t: any, e: any, i: any, n: any): void; setMinimumFramerate(t: any, e: any): void; getMinimumFramerate(t: any): any; setBackFacesVisible(t: any, e: any): void; setDrawMode(t: any, e: any): void; enableHiddenLineRendering(t: any, e: any): void; setAntiAliasingMode(t: any, e: any): void; setInstanceModifier(t: any, e: any, i: any): void; attachModel(t: any, e: any, i: any, n: any, r: any): Promise; attachScsModelByKey(t: any, e: any, i: any, n: any, r: any): any; _attachModels(t: any, e: any, i: any, n: any): Promise; attachScsBuffer(t: any, e: any, i: any, n: any, r: any, o: any, l: any): Promise; feedScsBuffer(t: any, e: any): void; _parseKeyInfo(t: any, e: any, i: any): any; instanceKeyInfo(t: any, e: any, i: any): Promise; metaDataKeyInfo(t: any, e: any, i: any): Promise; modelKeysFromInclusionKeys(t: any): any; detachInclusions(t: any): any; resetToEmpty(t: any, e: any): Promise; setDrawStrategy(t: any, e: any): void; redraw(t: any): void; disconnectNetwork(): void; shutdown(): void; getVersionString(): any; setAllowHighDpi(t: any): void; getAllowHighDpi(): any; setMeshLevel(t: any, e: any): void; setMetallicRoughness(t: any, e: any, i: any): void; setMetallicRoughnessMaterialOverride(t: any, e: any): void; getMetallicRoughness(t: any): Promise<({ metallic: any; roughness: any; } | null)[]>; unsetMetallicRoughness(t: any): void; setOverlayVisibility(t: any, e: any, i: any): void; setOverlayCamera(t: any, e: any, i: any): void; destroyOverlay(t: any, e: any): void; _overlayUnit(t: any): any; getMaxOverlayIndex(): any; _overlayAnchor(t: any): any; setOverlayViewport(t: any, e: any, i: any, n: any, r: any, o: any, l: any, h: any, u: any, d: any, g: any): void; addNodesToOverlay(t: any, e: any, i: any): void; getInstancesMeshData(t: any): any; getInstancesCappingMeshData(t: any): any; getMeshData(t: any): any; _toElementType(t: any): any; _toXRayGroup(t: any): any; setXRayColor(t: any, e: any, i: any, n: any): void; unsetXRayColor(t: any, e: any, i: any): any; setXRayOpacity(t: any, e: any, i: any): void; setXRayTransparencyMode(t: any, e: any): void; setGoochBlue(t: any, e: any): void; setGoochBaseColorProminence(t: any, e: any): void; setGoochYellow(t: any, e: any): void; setGoochLuminanceShiftStrength(t: any, e: any): void; setToonShadingBandCount(t: any, e: any): void; setToonShadingSpecularFactor(t: any, e: any): void; setTransparencyMode(t: any, e: any): void; setPointSize(t: any, e: any, i: any): void; getPointSize(t: any): Promise; setPointShape(t: any, e: any): void; getPointShape(t: any): Promise; setEyeDomeLightingEnabled(t: any, e: any): void; getEyeDomeLightingEnabled(t: any): any; setEyeDomeLightingBlurSamples(t: any, e: any): void; getEyeDomeLightingBlurSamples(t: any): any; setEyeDomeLightingBlurInterval(t: any, e: any): void; getEyeDomeLightingBlurInterval(t: any): any; setEyeDomeLightingBlurEdgeDistance(t: any, e: any): void; getEyeDomeLightingBlurEdgeDistance(t: any): any; setEyeDomeLightingShadingEdgeDistance(t: any, e: any): void; getEyeDomeLightingShadingEdgeDistance(t: any): any; setEyeDomeLightingOpacity(t: any, e: any): void; getEyeDomeLightingOpacity(t: any): any; setDisplayIncompleteFrames(t: any, e: any): void; setInteractiveDrawDelay(t: any, e: any): void; setInteractiveDrawLimitIncreaseEnabled(t: any, e: any): void; getInteractiveDrawLimitIncreaseEnabled(t: any): any; setCullingVector(t: any, e: any, i: any, n: any): void; unsetCullingVector(t: any): void; getCullingVector(t: any): Promise<({ space: any; vector: _; toleranceDegrees: any; } | null)[]>; _setStreamCutoffScale(t: any): void; setStreamCutoffScale(t: any): void; getStreamCutoffScale(): number; loseWebGlContext(): any; triangulatePolygon(t: any, e: any): Float32Array; debug_log(t: any): any; debug_stateFailure(t: any): any; debug_sync(): any; setLinePattern(t: any, e: any, i: any, n: any): void; unsetLinePattern(t: any): void; createFloorplanMesh(t: any): Promise; exportToSvg(t: any): Promise; beginExportToSvg(t: any): Promise; advanceExportToSvg(): Promise; waitForImageDecoding(): any; registerBimInstances(t: any, e: any): any; setAmbientLightColor(t: any, e: any): void; getLightKeys(t: any): any; getLight(t: any, e: any): Promise; clearLights(t: any): void; addLight(t: any, e: any): any; addPointLight(t: any, e: any): Promise; removeLight(t: any, e: any): void; updateLight(t: any, e: any, i: any): void; setBloomEnabled(t: any, e: any): void; setBloomThreshold(t: any, e: any): void; setBloomThresholdRampWidth(t: any, e: any): void; setBloomIntensityScale(t: any, e: any): void; _toBlurIntervalUnit(t: any): any; setBloomLayers(t: any, e: any): void; startComparison(t: any, e: any, i: any, n: any): void; endComparison(t: any): void; setSimpleShadowColor(t: any, e: any): void; setSimpleShadowEnabled(t: any, e: any): void; setSimpleShadowOpacity(t: any, e: any): void; setGroundPlane(t: any, e: any, i: any): void; setSimpleShadowResolution(t: any, e: any): void; setSimpleShadowBlurSamples(t: any, e: any): void; setSimpleShadowBlurInterval(t: any, e: any): void; setSimpleShadowInteractiveUpdateEnabled(t: any, e?: boolean): void; setSilhouetteColor(t: any, e: any): void; setSilhouetteEnabled(t: any, e?: boolean): void; setSilhouetteOpacity(t: any, e: any): void; setSilhouetteThreshold(t: any, e: any): void; setSilhouetteThresholdRampWidth(t: any, e: any): void; setHardEdgeColor(t: any, e: any): void; setHardEdgesEnabled(t: any, e?: boolean): void; setHardEdgeOpacity(t: any, e: any): void; setHardEdgeThreshold(t: any, e: any): void; setHardEdgeThresholdRampWidth(t: any, e: any): void; setSimpleReflectionEnabled(t: any, e?: boolean): void; setSimpleReflectionBlurInterval(t: any, e: any, i: any): void; setSimpleReflectionBlurSamples(t: any, e: any): void; setSimpleReflectionFadeAngle(t: any, e: any): void; setSimpleReflectionOpacity(t: any, e: any): void; setSimpleReflectionAttenuation(t: any, e: any, i: any, n?: any): void; throttleLoad(t: any, e: any): void; _toVector3Array(t: any): any[][]; testPointVisibility(t: any, e: any): any; setPointVisibilityTest(t: any, e: any): void; setImageBasedLightingEnabled(t: any, e: any): void; setImageBasedLightingIntensity(t: any, e: any): void; _toMatrix9(t: any): any[]; setImageBasedLightingMatrix(t: any, e: any): void; setImageBasedLightingEnvironment(t: any, e: any): void; setImageBasedLightingEnvironmentToDefault(t: any): void; setLineJitterEnabled(t: any, e: any): void; setLineJitterInstanceCount(t: any, e: any): void; setLineJitterRadius(t: any, e: any): void; setLineJitterFrequency(t: any, e: any): void; } declare class Sy { _positionOffset: Point; _position: Point; _activeNoteText: any; _createTextBox(): void; _container: any; _textArea: HTMLTextAreaElement | undefined; /** * Sets the corner offset position of the HTML container. * @param positionOffset */ setPositionOffset(t: any): void; /** * @returns the current HTML container offset position. */ getPositionOffset(): any; /** * Sets the position of the HTML container, taking into account the position offset. * @param position */ setPosition(t: any): void; /** * @returns the position of the HTML container, taking into account the position offset. */ getPosition(): any; /** * Sets the text in the HTML container text area. * @param text */ setText(t: any): void; /** * @returns the current text in the HTML container text area. */ getText(): any; /** * Sets the size of the HTML container. * @param size */ setSize(t: any): void; /** * @returns the size of the HTML container. */ getSize(): K; /** * Puts the cursor focus in the HTML container text area. */ focus(): void; /** * Removes the cursor focus from the HTML container text area. */ blur(): void; /** * Hides the HTML container. */ hide(): void; /** * Sets the active NoteText and shows the HTML container. * @param noteText */ show(t: any): void; /** * @returns the HTML container element. */ getHtmlContainer(): any; /** * Sets the HTML container element. * @param container */ setHtmlContainer(t: any): void; } declare class iI { constructor(t: any, e: any, i: any, n: any, r: any); _clearQueue: jo; _clearInProgress: boolean; _cadConfigurationsEnabled: boolean; _engine: any; _callbackManager: any; _cuttingManager: any; _model: any; _assemblyTree: Fx; _readyPromise: Promise; init(t: any, e: any): Promise; _treeLoader: Lg | undefined; _loadSubtreePrologue(t: any, e: any, i: any): Promise; _loadSubtreeEpilogue(t: any, e: any): Promise; loadSubtreeFromXmlFile(t: any, e: any, i: any, n: any): Promise; loadSubtreeFromXmlDoc(t: any, e: any, i: any, n: any): Promise; loadSubtreeFromScsXmlFile(t: any, e: any, i: any, n: any): Promise; loadSubtreeFromScsXmlDoc(t: any, e: any, i: any, n: any): Promise; _loadSubtreeFromStream(t: any, e: any, i: any, n: any): Promise; loadSubtreeFromStream(t: any, e: any, i: any): Promise; loadSubtreeFromScsFile(t: any, e: any, i: any): Promise; loadSubtreeFromScsBuffer(t: any, e: any, i: any): Promise; /** * I don't think this is used at all. If so, this should be removed. */ loadSubtreeFromAssemblyData(t: any, e: any, i: any, n: any): Promise; loadMeasurementFromJson(t: any): Promise; loadMeasurementFromString(t: any): Promise; loadMeasurementFromFile(t: any): Promise; _clearImpl(): Promise; clear(): Promise; switchToModel(t: any): Promise; getAbsoluteRootNodeId(): any; isIdValid(t: any): boolean; _getNodeChildren(t: any, e: any): any; getChildIds(t: any, e: any): any[]; isOutOfHierarchy(t: any): boolean; getParentId(t: any): any; getPartReferrers(t: any): Promise; getAttributes(t: any): Promise; getProperties(t: any, e: any): Promise; addProperty(t: any, e: any, i: any, n: any): boolean; setPhysicalProperties(t: any, e: any, i: any, n: any): boolean; getUserDataIndices(t: any): any; getUserData(t: any, e: any): any; getInstanceIncs(t: any, e: any): any; getNodeFromInstanceInc(t: any, e: any, i: any, n: any): any; _getAssociatedModelKey(t: any): any; getAssociatedModelKey(t: any): any; getMatrix(t: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; setMatrix(t: any, e: any, i: any): Promise; setMatrices(t: any, e: any, i: any): Promise; resetToInitialMatrix(t: any): Promise; getNetMatrix(t: any): number[]; _getBodyInstanceIndexFrom(t: any, e: any, i: any): any; getNodeOrRepItem(t: any): Promise; _getNodeOrRepItemFromId(t: any): Promise; getPointAttributes(t: any, e: any): Promise; getEdgeCount(t: any): Promise; getEdgeAttributes(t: any, e: any): Promise; getEdgeProperty(t: any, e: any): Promise; getFaceCount(t: any): Promise; getFaceAttributes(t: any, e: any): Promise; getFaceProperty(t: any, e: any): Promise; setEdgeProperty(t: any, e: any, i: any): void; setFaceProperty(t: any, e: any, i: any): void; getName(t: any): any; getNodeExchangeId(t: any): any; getFilters(): Map; getFilterName(t: any): any; getFiltersWithNode(t: any): number[]; getNodesFromFilterIds(t: any): Gp | null; getLayers(): Map; getUniqueLayerNames(): any[]; getLayerName(t: any): any; getLayerIdsFromName(t: any): any; getNodeLayerId(t: any): any; getAuthoredNodesFromLayer(t: any, e: any): any; getAuthoredNodesFromLayers(t: any, e: any): any[] | null; getRuntimeNodesFromLayer(t: any, e: any): any; getRuntimeNodesFromLayers(t: any, e: any): any[] | null; getRuntimeNodesFromLayerName(t: any, e: any): any[] | null; createCadView(t: any, e: any, i: any, n: any, r: any, o: any, l: any, h: any, u: any): any; getCadViewMap(): Map; activateCadView(t: any, e: any, i: any, n: any): any; getCadViewPmis(t: any): any[]; _disableCadConfigurations(): Promise; cadConfigurationsEnabled(): Promise; getCadConfigurations(): {}; getDefaultCadConfiguration(): any; getActiveCadConfiguration(): any; getCadViewConfiguration(t: any): any; _activateCadConfiguration(t: any, e: any, i: any): Promise; activateCadConfiguration(t: any, e: any, i: any): Promise; activateDefaultCadConfiguration(t: any, e: any): Promise; getDefaultCadView(): any; activateDefaultCadView(t: any, e: any, i: any): Promise; getPmis(): {}; getPmiType(t: any): any; getPmiSubType(t: any): any; getUnit(t: any): any; _rectifyParent(t: any, e: any): any; createMeshInstance(t: any, e: any, i: any, n: any, r: any, o: any, l: any): any; createPmiInstance(t: any, e: any, i: any, n: any, r: any, o: any, l: any): any; setVisibilitiesByMap(t: any, e: any): Promise; setBodyNodesVisibility(t: any, e: any): Promise; setVisibilitiesByValue(t: any, e: any, i: any): Promise; resetAllVisibilities(): Promise; resetAllTransforms(): Promise; reset(): Promise; setPmiColor(t: any, e: any): void; resetPmiColor(t: any): void; getPmiTopologyReferences(t: any): any; createNode(t: any, e: any, i: any, n?: null, r?: boolean, o?: null): any; deleteNode(t: any): Promise; createPart(t: any): any; setPart(t: any, e: any): boolean; createAndAddRepItem(t: any, e: any): any; getLowestAvailableNodeId(): number; getType(t: any): any; isVisible(t: any): any; getBranchVisibility(t: any): any; setMeshLevel(t: any, e: any): void; setEnableAutomaticUnitScaling(t: any): void; setBehaviorInitiallyHidden(t: any): void; isACadDrawing(): boolean; isMeasurable(): boolean; isLineMeasurable(t: any, e: any): Promise; isFaceMeasurable(t: any, e: any): Promise; getModelFileNameFromNode(t: any): string | null; getModelFileTypeFromNode(t: any): any; isAnnotationView(t: any): any; isCombineStateView(t: any): any; /** This will undo the effect of calling preventNodeDeletion() for the given node. */ allowNodeDeletion(t: any): void; preventNodeDeletion(t: any): void; preventMeshDeletion(t: any): void; getBounding(t: any, e: any, i: any, n: any): Promise; getIdOffset(t: any): any; /** * Motivation for this function: * * It is possible to begin a load where some SC geometry gets streamed in * but the assembly tree has not been fully parsed. Suppose an SC instance * (A) gets streamed, and has its node parsed by the assembly tree. If the * user attempts to select (A), our internals will find the NodeId associated * with (A). This is so far okay (but not ideal perhaps). The big issue comes * when the user starts to query the parents or children of the node. Since * the entire loaded subtree has not been fully parsed, querying such things * may not make sense because they might not be available. (Querying other * things might also be problematic.) * * It might make sense to not expose this function publically (as it is today * in `Model`) and do all the required filtering of selection results in the * selection internals. This, however might be 'problematic' when loading a * giant model (such as the Boeing). In this case, it might take ages for the * tree to completely load, which would make geometry not selectable in the * meantime. This might be interpreted as a bug from our users because they might * want to highlight such selected geometries. * * Related: COM-1169 */ isNodeLoaded(t: any): any; shutdown(): void; isReady(): boolean; waitForReady(): Promise; lookupAnyTreeNode(t: any): any; lookupAnyBody(t: any): any; lookupBodyInstance(t: any): any; gatherInstanceIncsFromNodeIds(t: any, e: any, i: any): any; gatherInclusionKeysFromNodeIds(t: any): any[]; requestNodes(t: any): Promise; isWithinExternalModel(t: any): boolean; getNodeGenericType(t: any): any; getNodeGenericId(t: any): any; getNodesByGenericId(t: any): Set | null; getNodesByGenericType(t: any): Set | null; getGenericTypes(): any[]; getGenericTypeIdMap(): Map; hasEffectiveGenericType(t: any, e: any): boolean; registerGenericId(t: any, e: any): void; registerGenericType(t: any, e: any): void; hasRelationships(t: any): boolean; getBimIdFromNode(t: any): any; getRuntimeNodeFromBimId(t: any, e: any): any; getRelationsByTypeFromNode(t: any, e: any): Map; firstAssemblyDataHeader(): any; setPrefetchScsCutoffScale(t: any): void; getAllRelationships(t: any): any; getAllBimInfos(t: any): any; getInfoOfBimId(t: any, e: any): { name: any; connected: boolean; }; getBimIdRelationshipTypes(t: any, e: any): { type: any; relateds: any[]; relatings: any[]; }[]; getFiltersFromView(t: any): any; applyFilters(t: any): void; _applyFiltersAsync(t: any, e: any): Promise; _getNodeAttributes(t: any): Promise; _handlePhysicalProperties(t: any, e: any): { "Surface Area": string; Volume: string; COG: string; }; _getPartDefAttributes(t: any): Promise<{}>; } declare class uI { constructor(t: any); _id: number; _bcfMap: Map; _viewer: any; _getId(): number; /** * Gets a map containing BCF data correlated with the BCF filename. */ getBCFMap(): Map; /** * Gets the parsed BCF data for a BCF file. * @param id corresponding to the BCF file. */ getBCFData(t: any): any; /** * Removes the parsed BCF data for a BCF file. * @param id corresponding to the BCF file. */ removeBCFData(t: any): void; /** * Creates a BCF file. * @param filename */ createBCFData(t: any): Du; /** * Imports BCF data from a BCF file. * @param filename */ addBCFFromFile(t: any): Promise; /** * Imports BCF data from a buffer. * @param buffer * @param filename */ addBCFFromBuffer(t: any, e: any): Promise; _getVersion(t: any): Promise; _loadBCFData(t: any, e: any): Promise; _getDocument(t: any): Promise; _getFileType(t: any): any; } declare class Wy { total_element_count: number; total_triangle_count: number; } declare class Bh { /** * Creates a new `IncrementalSelection` object that can be used to perform incremental selections. * * @param mode Controls whether or not selections are performed using the [[View]] or the [[SelectionManager]]. * @param viewer The `WebViewer` of the scene. * @param createSelectionPredicate This callback is used to create a selection predicate. Return null to not filter selection results. * @returns The created `IncrementalSelection` object. */ static create(t: any, e: any): Bh; constructor(t: any, e: any); _mode: any; _impl: sx; performSelection(t: any, e: any, i: any): Promise; /** * Returns whether or not this object has an active selection in progress. * @returns `true` if active and `false` if idle. */ isIdle(): boolean; /** * Used to wait for this object to become idle. * @returns A promise that resolves when this becomes idle. */ waitForIdle(): Promise; /** * Stops the selection. * @returns A `Promise` that resolves when completed. */ stopSelection(): Promise; /** * Stops and clears the selection. * @returns A `Promise` that resolves when completed. */ clearSelection(): Promise; } declare class Py { axis: any; plane: any; viewPlane: any; rotate: any; } declare class Rn extends go { /** @hidden */ static _serializePointArray(t: any): any[]; /** @hidden */ static _constructPointArray(t: any): _[]; /** @hidden */ constructor(t: any); _stage: number; _finalized: boolean; _uniqueId: string; _positions: any[]; _name: string; _measurementValue: number; _unitMultiplier: number; _textShape: Fl; _visibility: boolean; _lineShapes: any[]; _viewer: any; /** * Gets the name of this measurement. * @returns the measurement name */ getName(): string; /** * Sets the name of this measurement * @param name the name to set */ setName(t: any): void; /** @hidden */ _getStage(): number; /** @hidden */ _nextStage(): void; /** @hidden */ _setId(t: any): void; /** @hidden */ _getId(): string; /** @hidden */ adjust(t: any): void; /** @hidden */ _isFinalized(): boolean; /** @hidden */ update(): void; /** @hidden */ draw(): void; setVisibility(t: any): void; getVisibility(): boolean; /** * Returns the unit agnostic value for this measurement. * In the case where this value represents distance, use [[getUnitMultiplier]] to determine the measurement units. * In other cases, this value will be the angle measurement in degrees. * @returns the measurement value */ getMeasurementValue(): number; /** * Returns the unit multiplier incorporated into the measurement value. * This number is a multiplier of millimeters (for example inches will be `25.4`). * The default value is `1.0`. */ getUnitMultiplier(): number; /** * Sets the measurement text that is rendered with this measurement. * @param measurementText the text to render with this measurement */ setMeasurementText(t: any): void; /** * Gets the text for this measurement. By default this will contain the measurement value and units for the model in the cases where the measurement is a distance. * In other cases it will contain the angle in degrees. */ getMeasurementText(): any; /** * Returns whether the measurement markup is valid. Override in subclasses when needed. */ isMarkupValid(): boolean; /** @hidden */ _setMeasurementValue(t: any): void; } declare class vd extends wd { /** * Creates a new rectangle markup item * @param position the screen space position of the top left of the rectangle. * @param size the point object representing the width and height of the rectangle in pixels. */ constructor(t: any, e: any); _position: Point; _size: Point; /** * Sets the rectanlge position * @param position the top left corner of the rectangle */ setPosition(t: any): void; /** * Gets rectangle position * @returns the rectangle position */ getPosition(): any; /** * Sets the rectanlge size * @param size indicating the rectangle width and height */ setSize(t: any): void; /** * Gets rectangle size * @returns the rectangle size */ getSize(): any; } declare class Og extends Rn { constructor(t: any, e: any); _cursorSprite: Gr; _removed: boolean; _view: any; _markupId: any; enable(t: any): void; isEnabled(): boolean; setPosition(t: any): void; destroy(): void; remove(t: any): void; } declare class Ym { clear(): void; _head: any; _tail: any; _size: number | undefined; get length(): number | undefined; push(t: any): void; pop(): any; } declare class Li { static fromJson(t: any): Li; constructor(t: any, e: any, i: any); radius: any; origin: any; normal: any; copy(): Li; type(): number; } declare class Wi { static fromJson(t: any): Wi; constructor(t: any, e: any); origin: any; normal: any; copy(): Wi; type(): number; } declare class Ca { static fromJson(t: any): Ca; constructor(t: any, e: any, i: any, n: any); radius: any; origin: any; normal: any; halfAngle: any; copy(): Ca; type(): number; } declare class Sa { static fromJson(t: any): Sa; constructor(t: any, e: any, i: any); radius: any; origin: any; normal: any; copy(): Sa; type(): number; } declare class Pa { static fromJson(t: any): Pa; constructor(t: any, e: any, i: any, n: any); majorRadius: any; minorRadius: any; origin: any; normal: any; copy(): Pa; type(): number; } declare class vh { copy(): vh; type(): number; } declare class bh { copy(): bh; type(): number; } declare class xh { copy(): xh; type(): number; } declare class Ih { copy(): Ih; type(): number; } declare class Ch { copy(): Ch; type(): number; } declare class Sh { copy(): Sh; type(): number; } declare class Ph { copy(): Ph; type(): number; } declare class kh { copy(): kh; type(): number; } declare class Mh { copy(): Mh; type(): number; } declare class Eh { copy(): Eh; type(): number; } declare class Ah { copy(): Ah; type(): number; } declare class Th { copy(): Th; type(): number; } declare class wh { copy(): wh; type(): number; } declare class Ho { static fromJson(t: any): Ho; constructor(t: any); length: any; copy(): Ho; type(): number; } declare class Sx { constructor(t: any); _contextMenuMouseButton: any; _contextMenuPositionStart: Point; _touchTimer: Xo; _activeTouchCount: number; _initialPosition: Point; _callbackManager: any; onMouseDownEvent(t: any): void; onMouseUpEvent(t: any): void; onTouchStartEvent(t: any): void; onTouchMoveEvent(t: any): void; onTouchEndEvent(t: any): void; } declare class Ex extends go { constructor(t: any); _position: K; _nextItemPosition: Point; _statItemOffset: K; _maxStatWidth: number; _viewer: any; _backgroundPanel: vd; _statsText: Y_; draw(): void; clearStatsText(): void; setPosition(t: any): void; addStatistic(t: any, e: any): void; _updateBackgroundSize(): void; } declare class d_ { constructor(t: any, e: any, i: any); _failed: boolean; _failureError: any; _activePromiseCount: number; _idlePromise: Promise | null; _latestPromise: Promise; _needsResorting: boolean; _maxActivePromises: any; _deferredPromises: any; _failureFailsAll: any; maxActivePromises(): any; activePromiseCount(): number; isIdle(): boolean; waitForIdle(): Promise; killDeferred(): void; _push(t: any, e: any): Promise; _resort(): void; _drainQueue(): any[]; _deferPromise(t: any, e: any): Promise; _immediatePromise(t: any): Promise; _fetchNext(): void; _finalizePromise(): void; } declare class nI { constructor(t: any); _engine: any; getIdentityInc(): any; init(): Promise; _identityInc: any; } declare class aI { constructor(t: any); _pickTolerance: number; _incrementalChunkedItems: Map; _sc: any; setPickTolerance(t: any): void; getPickTolerance(): number; beginScreenAreaSelection(t: any, e: any, i: any, n: any): Promise; beginRayDrillSelection(t: any, e: any, i: any, n: any): Promise; beginConvexPolyhedronSelection(t: any, e: any, i: any): Promise; beginSphereSelection(t: any, e: any, i: any): Promise; endIncrementalSelection(t: any): void; advanceIncrementalSelection(t: any, e: any): any; _screenSelectByRay(t: any, e: any, i: any, n: any, r: any): Promise; _worldSelectByRay(t: any, e: any, i: any): Promise; pickFromScreen(t: any, e: any, i: any, n: any): Promise<_i | null>; pickAllFromScreen(t: any, e: any, i: any, n: any): Promise<_i[]>; compositePickFromScreen(t: any, e: any, i: any, n: any): Promise; pickFromRay(t: any, e: any): Promise<_i | null>; pickAllFromRay(t: any, e: any): Promise<_i[]>; pickCompositeFromRay(t: any, e: any): Promise; } declare class Fx { constructor(t: any, e: any, i: any, n: any, r: any); _centralQueueClock: Dx; _productOccurrences: Map; _pmis: Map; _cadViews: Map; _bodyInstances: Map; _pmiBodies: Map; _viewFrames: Map; _partDefinitions: Map; _representationItems: Map; _partToInstance: Map; _filters: any[]; _layers: Map; _layersIds: Map; _nextLayerId: number; _genericTypeToNodes: Map; _genericIdToNodes: Map; _cadConfigurations: Set; _modelContents: Map; _inclusionContents: Map; _nodeDeletionBlackList: Set; _meshDeletionBlackList: Set; _dynamicNodeIdSeed: number; _currentNodeIdOffset: number; _initialEmptyNodeIdOffsetObtained: boolean; _activeCadView: any; _activeCadConfiguration: any; _defaultCadConfiguration: any; _defaultCadViewsByConfiguration: Map; _firstProductOccurrenceWithView: any; _containsDrawings: boolean; _isMeasurable: boolean; _automaticMeasurementUnitScaling: boolean; _initiallyHiddenStayHidden: boolean; _nextLoadId: number; _activeLoadIds: Set; _requestedNodes: Map; _unnamedProductCount: number; _unnamedGroupCount: number; _unnamedDrawingSheetCount: number; _unnamedDrawingViewCount: number; _isInitialized: boolean; _seenExternalModel: boolean; _config: any; _engine: any; _callbackManager: any; _cuttingManager: any; _model: any; _isScs: boolean; initialize(t: any): void; _centralQueue: jo | undefined; _rootLoadContext: Ls | undefined; _rootNode: _e | undefined; isInitialized(): boolean; getRootNode(): _e | undefined; getAbstractScEngine(): any; generateDynamicNodeId(): number; newNodeIdOffset(): number; /** * Please don't use me. This was kept for legacy reasons with Erwan's tree, which * had fundamental design problems with NodeIds (because they could conflict). */ getLowestAvailableNodeId(): number; tryParseHeader(t: any): any; _isRegistered(t: any): boolean; registerProductOccurrence(t: any): void; lookupProductOccurrence(t: any): any; registerPmi(t: any): void; lookupPmi(t: any): any; registerCadView(t: any): void; getFirstProductOccurrenceWithView(): any; lookupCadView(t: any): any; registerBodyInstance(t: any, e: any): void; lookupBodyInstance(t: any): any; registerPmiBody(t: any, e: any): void; lookupPmiBody(t: any): any; registerViewFrame(t: any, e: any): void; lookupViewFrame(t: any): any; registerPartDefinition(t: any): void; lookupPartDefinition(t: any): any; registerRepresentationItem(t: any): void; lookupRepresentationItem(t: any): any; lookupAnyBody(t: any): any; lookupAnyTreeNode(t: any): any; lookupAnyNonTreeNode(t: any): any; lookupAnyNode(t: any): any; _registerCadConfiguration(t: any): void; getInstanceCountByInclusion(t: any): any; lookupAnyBodyByInstanceInc(t: any, e: any): any; _registerAnyBodyByInstanceInc(t: any, e: any): void; _getInclusionContent(t: any): any; _getModelContent(t: any, e: any): any; registerPrototypeByDataId(t: any, e: any, i: any, n: any): void; registerPartDefinitionByDataId(t: any, e: any, i: any, n: any): void; lookupPrototypeByDataId(t: any, e: any, i: any): any; lookupPartDefinitionByDataId(t: any, e: any, i: any): any; registerInclusionContext(t: any): void; getInclusionContexts(t: any): any; _createLayer(t: any, e: any, i: any, n: any): { id: any; name: any; nodes: any; treeNodes: any; }; _updateNameToLayersMap(t: any, e: any): void; /** * Creates a new layer in the assembly tree. Also creates a mapping in the supplied assembly tree from * the authored layer id to the effective, runtime, id. * @param authoredLayerId The authored ID of the layer. Used to create the mapping in the assembly tree * @param layerName Name of the layer * @param loadContext Attach context of the node creating the layer. A layer mapping will be created in it */ createLayer(t: any, e: any, i: any): { id: any; name: any; nodes: any; treeNodes: any; }; /** * Changes the name of an existing layer. * @param layerId Layer id to update * @param layerName Name to be set */ updateLayerName(t: any, e: any): void; _registerNodeInLayer(t: any, e: any, i: any): void; /** * Registers a node as part of a layer. This will create a layer if one doesn't exist. * @param node Node to be registered * @param authoredLayerId Authored id of the Layer */ registerNodeInLayer(t: any, e: any): void; /** * Registers a tree node as part of a layer. This will create a layer if one doesn't exist. * @param node Node to be registered * @param authoredLayerId Authored id of the Layer */ registerTreeNodeInLayer(t: any, e: any): void; addFilter(t: any, e: any): void; getFilters(): Map; getFilterName(t: any): any; getFiltersWithNode(t: any): number[]; getNodesFromFilterIds(t: any): Gp | null; getLayers(): Map; getUniqueLayerNames(): any[]; getLayerName(t: any): any; getLayersIdFromName(t: any): any; getNodesFromLayer(t: any, e: any): any; getNodesFromLayers(t: any, e: any): any[]; getNodesFromLayerName(t: any, e: any): any[] | null; generateProductName(): string; generateGroupName(): string; generateDrawingSheetName(): string; generateDrawingViewName(): string; forEachCadView(t: any): void; forEachPmi(t: any): void; forEachCadConfiguration(t: any): void; hasActiveCadView(): boolean; activateCadView(t: any, e: any, i: any, n: any): any; deactivateActiveCadView(): Promise; getDefaultCadView(t: any): any; getCadViewPmis(t: any): any[]; isMeasurable(): boolean; containsDrawings(): boolean; getCadConfigurations(): any[]; getDefaultCadConfiguration(): any; getActiveCadConfiguration(): any; activateCadConfiguration(t: any): void; massageAuthoredUserId(t: any, e: any): any; createNode(t: any, e: any, i: any, n: any, r: any, o?: null): _e; createPart(t: any): ns; setPart(t: any, e: any): void; _createCadView(t: any, e: any, i: any, n: any, r: any, o: any, l: any, h: any): ss; _createCadViewInstance(t: any, e: any, i: any): Promise; createCadView(t: any, e: any, i: any, n: any, r: any, o: any, l: any, h: any, u: any, d: any): ss; createMeshInstance(t: any, e: any, i: any, n: any, r: any, o: any, l: any, h: any, u: any, d: any): Ui; createPmiInstance(t: any, e: any, i: any, n: any, r: any, o: any, l: any, h: any): Sn; getRelationshipsOfItem(t: any, e: any): Map; getAutomaticMeasurementUnitScaling(): boolean; setAutomaticMeasurementUnitScaling(t: any): void; getInitiallyHiddenStayHidden(): boolean; setInitiallyHiddenStayHidden(t: any): void; _removeIdMappingsRecursive(t: any): Promise; deleteNode(t: any): Promise; _canDeleteNode(t: any): boolean; allowNodeDeletion(t: any): void; preventNodeDeletion(t: any): void; preventMeshDeletion(t: any): void; _resetContents(): any; reset(): Promise; setViewAxes(t: any, e: any): void; _requestIncsOfNodes(t: any): Promise; _requestExternalModelsLocal(t: any, e: any, i: any): any; _requestExternalModelsNonLocal(t: any, e: any, i: any): any; _requestExternalModelsOfNodes(t: any, e: any, i: any): any; _requestNodes(t: any, e: any, i: any): any; requestNodes(t: any, e: any, i: any): Promise; isBeingRequested(t: any): boolean; onDemandRequestsActive(): boolean; onLoadBegin(): number; onLoadEnd(t: any): void; markSeenExternalModel(): void; seenExternalModel(): boolean; getNodesByGenericId(t: any): any; getNodesByGenericType(t: any): any; genericTypeToNodes(): Map; registerGenericGlobalId(t: any, e: any): void; registerGenericType(t: any, e: any): void; disableAutomaticFitWorld(): any; markImplicitNodesOutOfHierarchy(): any; _throttleLoad(): Promise; /** * Enqueues an action that can be throttled by user interactions. */ enqueue(t: any): Promise; _onUserInteraction(t: any, e: any): void; } declare class Lg { static _getNetMatrix(t: any, e: any): { /** * Sets the matrix to the identity matrix. * @returns This matrix object. */ loadIdentity(): any; m: number[] | undefined; isIdentity(): boolean; /** * Strictly compares this matrix with another. * @param other Matrix to compare with. * @returns True if the values of this matrix equal those of the other. */ equals(t: any): boolean; /** * Compares this matrix with another using a tolerance. * @param other Matrix to compare with. * @param tolerance Tolerance to be used in the comparison. * @returns True if the values of this matrix equal those of the other. */ equalsWithTolerance(t: any, e: any): boolean; /** * Sets the scale components of this matrix. * @param x X scale value. * @param y Y scale value. * @param z Z scale value. * @returns This matrix object. */ setScaleComponent(t: any, e: any, i: any): any; /** * Sets the translation components of this matrix. * @param x X translation value. * @param y Y translation value. * @param z Z translation value. * @returns This matrix object. */ setTranslationComponent(t: any, e: any, i: any): any; /** * Creates a copy of this matrix. * @returns Copy of this matrix. */ copy(): any; /** * Sets the value of this matrix to another. * @param matrix the matrix whose values will be set. * @returns This matrix object. */ assign(t: any): any; /** * Multiply the matrix by given scalar. * @param scalar Scalar to multiply the matrix with. * @return This matrix object. */ multiplyByScalar(t: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform(t: any, e: any): any; /** * Transforms a point according to this matrix. The source and destination points are allowed to be the same object. * @param point The point to be transformed. * @param result A Point3 which can hold the result of the transformation. * @returns A new point if result is undefined, result otherwise. */ transform4(t: any, e: any): any; /** * Transforms an array of points according to this matrix. * @param inPoints an array of points to be transformed. * @param outPoints an array that will be populated with transformed points. Note that the results will be pushed onto the end of the array. */ transformArray(t: any, e: any): void; transformBox(t: any): yn; /** * Sets this matrix equal to its transpose. * @returns This matrix object. */ transpose(): any; /** * Computes the determinant and inverse of a matrix, if possible. * @returns An array containing the inverse (or null if not invertible) followed by the determinant */ inverseAndDeterminant(): (number | null)[] | (number | any)[]; /** * Computes the determinant of the upper-left 3x3 subsection of this matrix. */ upperLeft3x3Determinant(): number; /** * @returns the version of this matrix suitable for applying to normals, * i.e. the inverse transpose of the upper-left 3x3 submatrix. */ normalMatrix(): any; /** * Creates an object ready for JSON serialization. * @returns The prepared object. */ toJson(): number[]; }; constructor(t: any, e: any, i: any, n: any, r: any); _loadQueue: jo; _activeLoadCount: number; _activeLoadGeneration: number; _isFirstLoad: boolean; _firstAssemblyDataHeader: any; _assemblyTree: any; _scAttacher: any; _engine: any; _view: any; _callbackManager: any; _isScsSession: boolean; _nodesUntilNextSleep: number; _resolveMeasurementUnits(t: any, e: any, i: any, n: any): void; _applyScalePatchIfNeeded(t: any, e: any, i: any, n: any, r: any): void; /** * Used to create assembly tree data for instances that don't have authored assembly tree data. */ _patchImplicitNodesByModelInc(t: any, e: any, i: any, n: any, r: any): Promise; _getPrototypeInstanceCountByAttachment(t: any): number; /** * Used to create assembly tree data for instances that don't have authored assembly tree data. */ _patchImplicitNodesByAttachment(t: any, e: any, i: any): Promise; /** * Newly loaded children should have their instances demanded if any of their * ancestors are currently being demanded. This function performs this logic. */ _updateOnDemandRequests(t: any): Promise; _populateAttachment(t: any, e: any, i: any, n: any, r: any, o: any): Promise; _postProcessAttachContext(t: any, e: any, i: any, n: any): Promise; _parseRootNodes(t: any, e: any, i: any, n: any, r: any): Promise; _parseRootNode(t: any, e: any, i: any, n: any, r: any): Promise; _setupRootNode(t: any, e: any, i?: boolean, n?: any[], r?: any): void; _populateInclusion(t: any, e: any, i: any, n: any, r: any): Promise<_e>; /** * COM-1701 */ _rectifyLateVisibilityChange(t: any, e: any): Promise; _loadCleanup(t: any, e: any, i: any): void; _wrap(t: any, e: any, i: any, n: any): Promise; _initLoad(t: any, e: any, i: any): Ls; _lazyAttachInvisibly(t: any, e: any): Is; _loadBySingleAttach(t: any, e: any, i: any, n: any): Promise; _populateFromXml(t: any, e: any, i: any, n: any): Promise; _loadByXml(t: any, e: any, i: any, n: any, r: any): Promise; _attachExternalModelByInc(t: any, e: any): Promise; _attachExternalModelInfoByName(t: any, e: any, i: any): Promise; setPrefetchScsCutoffScale(t: any): void; isIdle(): boolean; waitOnCurrentLoads(): Promise; cancelPendingLoads(): Promise; cancelActiveAttachmentProcess(): Promise; loadByStream(t: any, e: any, i: any): Promise; loadByScsBuffer(t: any, e: any, i: any): Promise; loadByScsFile(t: any, e: any, i: any): Promise; loadByXmlDoc(t: any, e: any, i: any, n: any): Promise; loadByXmlFile(t: any, e: any, i: any, n: any): Promise; attachByExternalModelInfo(t: any, e: any, i: any): Promise; /** * I don't think this is used at all. If so, this should be removed. */ loadByAssemblyData(t: any, e: any, i: any, n: any): Promise; reset(): any; notifyDirectRequest(t: any): void; onLoadChildProductOccurrence(): any; firstAssemblyDataHeader(): any; } declare class sx { constructor(t: any); _killHandles: any[]; _activeSelectionCount: number; _inactivityPromise: Promise | null; viewer: any; isIdle(): boolean; waitForIdle(): Promise; stopSelection(): Promise; clearSelection(): Promise; _advanceBySelectionManager(t: any, e: any): Promise; _advanceByView(t: any, e: any, i: any): Promise; _wrapBeginSelection(t: any, e: any): any; performSelection(t: any, e: any, i: any, n: any): Promise; _performSelection(t: any, e: any, i: any, n: any): Promise; } declare class Fl extends Mg { /** * Creates a new TextBox Markup Shape. * @param position the screen space point of the top left of the box. Default value is (0,0). * @param text the text string for the box. Default value is empty string. */ constructor(t: any, e: any); _position: Point; _textStr: any; /** * Gets the position in screen space of the top-left corner of the TextBox rectangle * @returns the TextBox position */ getPosition(): any; /** * Sets the position in screen space of the top-left corner of the TextBox rectangle * @param position the TextBox position */ setPosition(t: any): void; /** * Gets the text string for this box * @returns the text string */ getTextString(): any; /** * Sets the text string for this box * @param text the text string */ setTextString(t: any): void; } declare class wd extends Fa { _borderRadius: number; /** * Gets the border radius for this shape * @returns the border radius */ getBorderRadius(): number; /** * Sets the border radius for this shape * @param borderRadius the border radius in pixels */ setBorderRadius(t: any): void; } declare class Gr extends Fa { _center: Point; _radius: number; /** * Sets the values for the circle * @param center the center point of the circle. * @radius the circle radius. */ set(t: any, e: any): void; /** * Gets the center of the circle * @returns the circle center */ getCenter(): any; /** * Sets the center of the circle * @param the circle center */ setCenter(t: any): void; /** * Gets the radius of the circle * @returns the circle radius */ getRadius(): number; /** * Sets the radius of the circle * @param radius the circle radius */ setRadius(t: any): void; } declare class Y_ extends Sd { constructor(...args: any[]); _textStrings: any[]; /** * Removes all text strings from this collection */ clear(): void; /** * Adds a string to the collection * @param text the text to render * @param position the top left position of the text */ addString(t: any, e: any): void; /** * Gets the strings in the collection */ getStrings(): any[]; } declare class Dx { _currentTime: number; _stopTime: number; stop(): void; isTicking(): boolean; tickFor(t: any): void; _remainingDuration(): number; _refreshCurrentTime(): void; } declare class Ls { constructor(t: any, e: any, i: any); _handledExternalModels: Set | null; _attachContexts: any; _registeredScsModelKeys: Map; _layerIdMap: b_; _parent: any; _scsBufferCache: any; /** * Returns whether or not an authored external model should be handled or not. */ handleExternalModel(t: any, e: any, i: any): boolean; getParent(): any; addAttachContext(t: any): void; getChildren(): any; getAttachContexts(): any[]; hasChildren(): boolean; removeProductOccurrence(t: any): boolean; purgeContents(): Promise; isLoaded(): boolean; /** * This should not be called more than once per `ExternalModelName` in a given `LoadContext`. */ initializeScsModelKeysOf(t: any): void; /** * Gets the model keys of an SCS model by its external name from a shattered XML file. * * Returns: * - `null` if `initializeScsModelKeysOf` was not called for the given model. * - `TrackedOpenPromise` if the model has no attachment data. * - `TrackedOpenPromise` if the model has attachment data. */ getScsModelKeysOf(t: any): any; markAsFirstLoad(): void; _isFirstLoad: boolean | undefined; isFirstLoad(): boolean; toScsBuffer(t: any, e: any): Promise; onLoadComplete(): void; addLayerIdToMap(t: any, e: any): void; getAuthoredLayerId(t: any): any; getRuntimeLayerId(t: any): any; } declare class _e extends ts { static parseXml(t: any, e: any, i: any, n: any, r: any): { nodeInfo: { nodeId: number | null; bits: any; name: any; localTransform: number[] | null; attributes: gr[]; header: { headerVersion: any; _rootAssemblyDataKey: any; isDrawing: any; isMeasurable: any; originalFileName: any; originalFileType: any; doublePrecisionMatrices: any; assemblyDataVersion: any; supportsAttributeBits(): boolean; rootAssemblyDataKey(): any; }; exchangeId: any; layerId: number | null; genericTypeId: null; genericId: null; userDatas: null; }; productBits: number; childDataKeys: never[]; prototypeDataKey: null; partDefinition: { nodeInfo: { nodeId: number | null; bits: any; name: any; localTransform: number[] | null; attributes: gr[]; header: { headerVersion: any; _rootAssemblyDataKey: any; isDrawing: any; isMeasurable: any; originalFileName: any; originalFileType: any; doublePrecisionMatrices: any; assemblyDataVersion: any; supportsAttributeBits(): boolean; rootAssemblyDataKey(): any; }; exchangeId: any; layerId: number | null; genericTypeId: null; genericId: null; userDatas: null; }; repItemInfos: { nodeInfo: { nodeId: number | null; bits: any; name: any; localTransform: number[] | null; attributes: gr[]; header: { headerVersion: any; _rootAssemblyDataKey: any; isDrawing: any; isMeasurable: any; originalFileName: any; originalFileType: any; doublePrecisionMatrices: any; assemblyDataVersion: any; supportsAttributeBits(): boolean; rootAssemblyDataKey(): any; }; exchangeId: any; layerId: number | null; genericTypeId: null; genericId: null; userDatas: null; }; meshKey: number | null; bodyType: number; faceMeasurementProps: never[]; edgeMeasurementProps: never[]; physicalProps: null; faceAttributes: never[]; edgeAttributes: never[]; pointAttributes: never[]; }[]; } | null; quickAccessPartDefinitionDataId: null; externalModelInfo: { config: any; modelName: any; bounding: yn | null; measurementUnit: number | null; toAttachData: any; reservedNodeIdOffset: number; cancelUnitScale: boolean; } | null; bodyInstanceInfos: { nodeInfo: { nodeId: number | null; bits: any; name: any; localTransform: number[] | null; attributes: gr[]; header: { headerVersion: any; _rootAssemblyDataKey: any; isDrawing: any; isMeasurable: any; originalFileName: any; originalFileType: any; doublePrecisionMatrices: any; assemblyDataVersion: any; supportsAttributeBits(): boolean; rootAssemblyDataKey(): any; }; exchangeId: any; layerId: number | null; genericTypeId: null; genericId: null; userDatas: null; }; inclusionKey: any; instanceKey: number; bits: number; modifierbits: number; }[]; cadViewInfos: { nodeId: number; name: any; camera: Cn | null; instanceMarkupKeysToShow: any[]; viewFrameInfo: { nodeInfo: { nodeId: number | null; bits: any; name: any; localTransform: number[] | null; attributes: gr[]; header: { headerVersion: any; _rootAssemblyDataKey: any; isDrawing: any; isMeasurable: any; originalFileName: any; originalFileType: any; doublePrecisionMatrices: any; assemblyDataVersion: any; supportsAttributeBits(): boolean; rootAssemblyDataKey(): any; }; exchangeId: any; layerId: number | null; genericTypeId: null; genericId: null; userDatas: null; }; inclusionKey: any; instanceKey: number; bits: number; modifierbits: number; } | null; nodesToShow: any[]; nodesToHide: any[]; filters: any[]; transformMap: Map; cuttingPlanes: any[]; bits: number; }[]; pmiInfos: never[]; measurementUnit: number | null; simpleMaterial: ug | null; layerInfos: { id: number; name: any; }[]; filters: eh[]; relationships: ka[]; bimInfos: any[]; }; static parseBinary(t: any, e: any, i: any, n: any): { nodeInfo: { nodeId: any; bits: any; name: any; localTransform: any; attributes: any; header: any; exchangeId: any; layerId: any; genericTypeId: any; genericId: any; userDatas: Map | null; }; productBits: number; childDataKeys: any[]; prototypeDataKey: any; partDefinition: any[] | null; quickAccessPartDefinitionDataId: any[] | null; externalModelInfo: { config: any; inclusionKey: any; modelKey: any; } | null; bodyInstanceInfos: { nodeInfo: { nodeId: any; bits: any; name: any; localTransform: any; attributes: any; header: any; exchangeId: any; layerId: any; genericTypeId: any; genericId: any; userDatas: Map | null; }; inclusionKey: any; instanceKey: any; bits: number; modifierbits: number; }[]; cadViewInfos: { nodeId: any; name: any; camera: Cn | null; instanceMarkupKeysToShow: any[]; viewFrameInfo: { nodeInfo: { nodeId: any; bits: any; name: any; localTransform: any; attributes: any; header: any; exchangeId: any; layerId: any; genericTypeId: any; genericId: any; userDatas: Map | null; }; inclusionKey: any; instanceKey: any; bits: number; modifierbits: number; } | null; nodesToShow: any[]; nodesToHide: any[]; filters: any[]; transformMap: Map; cuttingPlanes: any[]; bits: number; }[]; pmiInfos: { nodeId: any; name: any; attributesDataKey: any; pmiBodyInfos: { nodeInfo: { nodeId: any; bits: any; name: any; localTransform: any; attributes: any; header: any; exchangeId: any; layerId: any; genericTypeId: any; genericId: any; userDatas: Map | null; }; inclusionKey: any; instanceKey: any; bits: number; modifierbits: number; }[]; initiallyShown: boolean; pmiType: any; pmiSubType: any; topoRefInfos: { bodyInstanceKey: any; topoItemType: any; itemIndex: any; }[]; topoRefs: never[]; exchangeId: any; }[]; measurementUnit: any; simpleMaterial: null; layerInfos: { id: any; name: any; }[]; filters: eh[]; relationships: ka[]; bimInfos: any[]; }; /** * Like `reify` but with a synchronous return result. * * Usage requirements: * - `info.childDataKeys` must be empty. * - `info.externalModelInfo` must be `null`. */ static reifySync(t: any, e: any, i: any, n: any, r: any, o: any): _e; static reify(t: any, e: any, i: any, n: any, r: any, o: any): Promise<_e>; static createDynamic(t: any, e: any, i: any, n: any, r: any, o: any, l?: boolean, h?: null): _e; static createMissing(t: any, e: any): _e; static _amendInfo(t: any, e: any): any; static _loadProductOccurrence(t: any, e: any, i: any, n: any, r: any, o: any): Promise<_e>; constructor(t: any, e: any, i: any, n: any, r: any, o: any, l: any); isMissing(): boolean; _parent: any; _prototypeContext: any; _partDefinition: any; _children: any; _bodyInstances: any; _cadViews: any; _pmis: any; _measurementUnit: any; _pendingExternalModels: any; _loadExternalModel(t: any, e: any, i: any): Promise; _loadAndAttachExternalModel(t: any, e: any, i: any): Promise; loadPendingExternalModels(t: any): Promise; _lazyLoadPartDefinitionByInfo(t: any, e: any, i: any, n: any): jn; _lazyLoadPartDefinitionById(t: any, e: any, i: any, n: any, r: any): any; _loadPrototypeContext(t: any, e: any, i: any, n: any, r: any, o: any): null; _loadProductOccurrences(t: any, e: any, i: any, n: any, r: any, o: any): Promise<_e[]>; _loadBodyInstances(t: any, e: any, i: any): Ui[]; _loadCadViews(t: any, e: any, i: any): ss[]; _loadPmis(t: any, e: any, i: any): Sn[]; getParent(): any; getRuntimeId(): any; isAbsoluteRoot(): boolean; getPrototype(): any; isAConfigurationNode(): boolean; isADefaultNode(): boolean; isAProductNode(): boolean; isAGroupNode(): boolean; isADrawingSheetNode(): boolean; isADrawingViewNode(): boolean; addProductOccurrence(t: any): void; addBodyInstance(t: any): void; addCadView(t: any): void; addPmi(t: any): void; addLoadContext(t: any): void; _childContexts: any; addAttachContext(t: any): void; _followPrototypesWhileEmpty(): any; getRawPartDefinition(): any; getPartDefinition(): Promise; getPartDefinitionSync(): any; getChildContexts(): any[]; _getChildren(): any[]; getChildren(): Promise; getChildrenSync(): any; tryGetChildrenSync(): any; forEachChild(t: any): Promise; forEachBodyInstance(t: any): Promise; forEachPmi(t: any): Promise; forEachCadView(t: any): Promise; hasBodyInstances(): boolean; getBodyInstances(): any[]; getCadViews(): any[]; getPmis(): any[]; setMeasurementUnit(t: any): void; unsetMeasurementUnit(): void; hasMeasurementUnit(): boolean; getMeasurementUnit(): any; getPhysicalProperties(t: any): any; setPartDefinition(t: any): void; setPrototype(t: any): void; removePrototype(): any; getBranchVisibility(): any; _getBranchVisibility(): any; _setBranchVisibility(t: any): void; _updateBranchVisibility(): void; _getSubBranchVisibilities(): any; _itemWasAdded(): void; _onItemRemoved(): void; markBranchVisibilityDirty(): void; _markBranchVisibilityDirty(t: any): any; setVisibility(t: any): void; _removeDirectChild(t: any): boolean; _removeIndirectChild(t: any): boolean; removeProductOccurrence(t: any): boolean; removePmi(t: any): boolean; removeBodyInstance(t: any): boolean; purgeContents(): Promise; removePartDefinition(): any; isOutOfHierarchy(): boolean; markIsExternalModelRoot(t: any): void; isExternalModelRoot(): boolean; addPendingExternalModel(t: any): void; hasPendingExternalModels(): boolean; } declare class ns extends ts { static parseXml(t: any, e: any, i: any): { nodeInfo: { nodeId: number | null; bits: any; name: any; localTransform: number[] | null; attributes: gr[]; header: { headerVersion: any; _rootAssemblyDataKey: any; isDrawing: any; isMeasurable: any; originalFileName: any; originalFileType: any; doublePrecisionMatrices: any; assemblyDataVersion: any; supportsAttributeBits(): boolean; rootAssemblyDataKey(): any; }; exchangeId: any; layerId: number | null; genericTypeId: null; genericId: null; userDatas: null; }; repItemInfos: { nodeInfo: { nodeId: number | null; bits: any; name: any; localTransform: number[] | null; attributes: gr[]; header: { headerVersion: any; _rootAssemblyDataKey: any; isDrawing: any; isMeasurable: any; originalFileName: any; originalFileType: any; doublePrecisionMatrices: any; assemblyDataVersion: any; supportsAttributeBits(): boolean; rootAssemblyDataKey(): any; }; exchangeId: any; layerId: number | null; genericTypeId: null; genericId: null; userDatas: null; }; meshKey: number | null; bodyType: number; faceMeasurementProps: never[]; edgeMeasurementProps: never[]; physicalProps: null; faceAttributes: never[]; edgeAttributes: never[]; pointAttributes: never[]; }[]; }; static parseBinary(t: any, e: any, i: any): { nodeInfo: { nodeId: any; bits: any; name: any; localTransform: any; attributes: any; header: any; exchangeId: any; layerId: any; genericTypeId: any; genericId: any; userDatas: Map | null; }; repItemInfos: { nodeInfo: { nodeId: any; bits: any; name: any; localTransform: any; attributes: any; header: any; exchangeId: any; layerId: any; genericTypeId: any; genericId: any; userDatas: Map | null; }; meshKey: any; bodyType: any; faceMeasurementProps: (Li | Wi | Ca | Sa | Pa | vh | bh | xh | Ih | Ch | Sh | Ph | kh | Mh | Eh | Ah | Th | wh)[]; edgeMeasurementProps: ({ radius: any; origin: any; normal: any; copy(): any; type(): number; } | { length: any; copy(): any; type(): number; } | Ho)[]; physicalProps: wa | null; faceAttributes: (Tc | null)[]; edgeAttributes: (Tc | null)[]; pointAttributes: (Tc | null)[]; }[]; }; static reify(t: any, e: any, i: any, n: any): ns; static createDynamic(t: any, e: any, i: any): ns; static createMissing(t: any): ns; constructor(t: any, e: any, i: any, n: any); isMissing(): boolean; _inclusionContextForNodeId: any; _modelKey: any; _repItems: any; _loadRepresentationItems(t: any, e: any, i: any): tn[]; getRuntimeId(): any; getInclusionContextForNodeId(): any; addReferrer(t: any): void; _referrers: any; createRepItem(t: any, e: any): tn; _addRepresentationItem(t: any): void; getRepresentationItems(): any[]; getReferrers(): any[]; removeAllReferrers(): void; getModelKey(): any; } declare class ss extends ts { static parseXml(t: any, e: any, i: any, n: any): { nodeId: number; name: any; camera: Cn | null; instanceMarkupKeysToShow: any[]; viewFrameInfo: { nodeInfo: { nodeId: number | null; bits: any; name: any; localTransform: number[] | null; attributes: gr[]; header: { headerVersion: any; _rootAssemblyDataKey: any; isDrawing: any; isMeasurable: any; originalFileName: any; originalFileType: any; doublePrecisionMatrices: any; assemblyDataVersion: any; supportsAttributeBits(): boolean; rootAssemblyDataKey(): any; }; exchangeId: any; layerId: number | null; genericTypeId: null; genericId: null; userDatas: null; }; inclusionKey: any; instanceKey: number; bits: number; modifierbits: number; } | null; nodesToShow: any[]; nodesToHide: any[]; filters: any[]; transformMap: Map; cuttingPlanes: any[]; bits: number; }; static parseBinary(t: any, e: any, i: any, n: any): { nodeId: any; name: any; camera: Cn | null; instanceMarkupKeysToShow: any[]; viewFrameInfo: { nodeInfo: { nodeId: any; bits: any; name: any; localTransform: any; attributes: any; header: any; exchangeId: any; layerId: any; genericTypeId: any; genericId: any; userDatas: Map | null; }; inclusionKey: any; instanceKey: any; bits: number; modifierbits: number; } | null; nodesToShow: any[]; nodesToHide: any[]; filters: any[]; transformMap: Map; cuttingPlanes: any[]; bits: number; }; static reify(t: any, e: any, i: any, n: any): ss; static createDynamic(t: any, e: any, i: any, n: any, r: any, o: any, l: any, h: any, u: any): ss; static isAuthoredViewInfo(t: any, e: any): boolean; static _toRuntimeIds(t: any, e: any): Set; constructor(t: any, e: any, i: any, n: any, r: any); _parent: any; _camera: { initial: any; derived: any; } | undefined; _filters: any; _instanceMarkupKeysToShow: Set; _nodesToShow: Set; _nodesToHide: Set; _transformMap: Map | undefined; _viewFrame: co | undefined; _cuttingPlanes: any; getFilters(): any; _loadViewFrame(t: any, e: any, i: any): co; getViewFrame(): co | null; getParent(): any; getRuntimeId(): any; getBranchVisibility(): any; setVisibility(t: any): void; isPmiFilteringSet(): boolean; isDefaultView(): boolean; IsCombineState(): boolean; deactivate(t: any): any; _replaceCuttingPlanes(t: any, e: any): Promise; activate(t: any, e: any, i: any, n: any, r: any, o: any, l: any, h: any): Promise; _activateView(t: any, e: any, i: any, n: any, r: any): Promise; _activateCamera(t: any, e: any, i: any, n: any, r: any): Promise; hasPmi(t: any): boolean; isAnnotationView(): boolean; isCombineStateView(): boolean; setViewFrame(t: any): void; } declare class Ui extends Rl { static parseXml(t: any, e: any, i: any, n: any): { nodeInfo: { nodeId: number | null; bits: any; name: any; localTransform: number[] | null; attributes: gr[]; header: { headerVersion: any; _rootAssemblyDataKey: any; isDrawing: any; isMeasurable: any; originalFileName: any; originalFileType: any; doublePrecisionMatrices: any; assemblyDataVersion: any; supportsAttributeBits(): boolean; rootAssemblyDataKey(): any; }; exchangeId: any; layerId: number | null; genericTypeId: null; genericId: null; userDatas: null; }; inclusionKey: any; instanceKey: number; bits: number; modifierbits: number; }; static parseBinary(t: any, e: any, i: any, n: any): { nodeInfo: { nodeId: any; bits: any; name: any; localTransform: any; attributes: any; header: any; exchangeId: any; layerId: any; genericTypeId: any; genericId: any; userDatas: Map | null; }; inclusionKey: any; instanceKey: any; bits: number; modifierbits: number; }; static reify(t: any, e: any, i: any, n: any): Ui; static createDynamic(t: any, e: any, i: any, n: any, r: any, o: any, l: any, h: any): Ui; getInstanceInc(): any[]; setVisibility(t: any): void; getRuntimeId(): any; } declare class Sn extends ts { static parseBinary(t: any, e: any, i: any, n: any): { nodeId: any; name: any; attributesDataKey: any; pmiBodyInfos: { nodeInfo: { nodeId: any; bits: any; name: any; localTransform: any; attributes: any; header: any; exchangeId: any; layerId: any; genericTypeId: any; genericId: any; userDatas: Map | null; }; inclusionKey: any; instanceKey: any; bits: number; modifierbits: number; }[]; initiallyShown: boolean; pmiType: any; pmiSubType: any; topoRefInfos: { bodyInstanceKey: any; topoItemType: any; itemIndex: any; }[]; topoRefs: never[]; exchangeId: any; }; static reify(t: any, e: any, i: any, n: any): Sn; static createDynamic(t: any, e: any, i: any, n: any, r: any, o: any, l: any, h: any): Sn; static _loadTopoRefs(t: any, e: any): wl[]; static _pack(t: any, e: any): any; constructor(t: any, e: any, i: any, n: any); _parent: any; _packed: any; _pmiBodies: any; _topoRefs: any; _loadPmiBody(t: any, e: any, i: any): Bs; getPmiBodies(): any[]; getPmiType(): number; getPmiSubType(): number; getParent(): any; getRuntimeId(): any; getBranchVisibility(): any; setVisibility(t: any): void; getPmiTopologyReferences(t: any): any[]; } declare class Pn { constructor(t: any, e: any, i: any, n: any, r: any); _reservedNodeIdOffset: any; _inclusionContexts: any; _originalFileName: string; _originalFileType: any; _assemblyDataVersion: any[]; _genericTypeMaps: any; _remapper: any; _attachScope: any; _attachedInvisibly: any; _masterModelKey: any; _parent: any; getRootNodeMetaData(t: any): Promise; getAttachScope(): any; attachedInvisibly(): any; getMasterModelKey(): any; addInclusionContext(t: any): void; getRemapper(): any; getParent(): any; getChildren(): any; getInclusionContexts(): any[]; split(t: any, e: any, i: any): Pn; hasChildren(): boolean; removeProductOccurrence(t: any): boolean; purgeContents(): Promise; isLoaded(): boolean; setReservedNodeIdOffset(t: any): void; getReservedNodeIdOffset(): any; forgetReservedNodeIdOffset(): void; getOriginalFileName(): string; getOriginalFileType(): any; setGenericTypeMaps(t: any): void; getGenericTypeMaps(): any; getAssemblyDataVersion(): any[]; } declare class Mg { _padding: number; _text: Sd; _box: wd; /** @hidden */ _assign(t: any): void; /** * Gets the Text portion of the TextBox. Use the methods on this object to modify the appearance of the text string * @returns the text markup object */ getTextPortion(): Sd; /** * Gets the Box portion of the TextBox. Use the methods on this object to modify the appearance of the rectangle around the text string * @returns the rectangle markup object. */ getBoxPortion(): wd; /** * Gets the Pixel distance between the text and outer rectangle * @returns the padding value. */ getPadding(): number; /** * Sets the Pixel distance between the text and outer rectangle * @param padding the padding value. */ setPadding(t: any): void; } declare class Fa extends Cg { constructor(...args: any[]); _fillColor: vt; _fillOpacity: number; /** * Gets the fill opacity for this shape * @returns the fill opacity */ getFillOpacity(): number; /** * Sets the fill opacity for this shape * @param fillOpacity the fill opacity */ setFillOpacity(t: any): void; /** * Sets the fill color for this shape * @param color the fill color */ setFillColor(t: any): void; /** * Gets the fill color for this shape * @returns the fill color */ getFillColor(): vt; } declare class Sd extends Fa { /** @hidden */ constructor(); _fontFamily: any; _fontSize: number; /** * Gets the font family for this text * @returns the font family */ getFontFamily(): any; /** * Sets the font family this shape * @param fontFamily font family to use for this text */ setFontFamily(t: any): void; /** * Sets the font size for this text * @param fontSize size to use for this text */ setFontSize(t: any): void; /** * Gets the font size for this text * @returns the font size */ getFontSize(): number; } declare class b_ { _leftToRight: Map; _rightToLeft: Map; set(t: any, e: any): void; getLeft(t: any): any; getRight(t: any): any; } declare class ts { static _lazyLoadAttributes(t: any, e: any, i: any, n: any): jn; constructor(t: any, e: any, i: any); _bits: any; _nodeId: any; _name: any; _localTransform: any; _lazyAttributes: jn | undefined; _exchangeId: any; _layerId: any; _genericTypeId: any; _genericId: any; _userDatas: Map | undefined; hasAuthoredId(): boolean; getAuthoredId(): any; getName(): any; getExchangeId(): any; getAuthoredLayerId(): any; getGenericTypeId(): any; getGenericId(): any; _hasBits(t: any): boolean; isLoaded(): boolean; markLoaded(): void; _setVisibility(t: any): void; isVisible(): boolean; isInitiallyShown(): boolean; _toAffineTransformation(t: any): any; setLocalTransformAsInitial(t: any): void; overrideLocalTransform(t: any): void; _localTransformOverride: any; hasLocalTransformOverride(): boolean; removeLocalTransformOverride(): void; getLocalTransform(): any; getAttributes(): Promise; addAttribute(t: any): void; _attributes: any; getUserDataIndices(): any[]; getUserData(t: any): any; } declare class jn { /** * Creates a new lazy value, which is the result of the supplied function * once the lazy value is forced (or the value itself if a `T` is directly supplied). */ static create(t: any): jn; constructor(t: any); _value: any; /** * Returns whether or not this has been both forced (lazy). * This says nothing about resolution (promise). */ isUnforced(): boolean; /** * Returns whether or not this has been both forced (lazy) and resolved (promise). */ isResolved(): boolean; /** * Returns the final promised value synchronously. * * This is only legal to call if `isResolved()` returns `true`. * */ getResolved(): any; /** * Forces the lazy promise and then delegates to the forced promise's `then()` method. * * Note: This intentionally returns a normal `Promise`, not a `LazyPromise`. */ then(t: any, e: any): Promise; _rectifyResult(t: any): any; } declare class gr { static parseBinary(t: any): gr; static parseXml(t: any): gr; constructor(t: any, e: any, i: any, n: any, r: any); _type: any; _valueName: any; _title: any; _value: any; _unit: any; getType(): any; getValueName(): any; getTitle(): any; getValue(): any; getUnit(): string; copy(): gr; } declare class ug { static parseXml(t: any): ug; constructor(t: any, e: any); _color: any; _alpha: any; getColor(): any; getAlpha(): any; } declare class eh { static parseBinary(t: any): eh; static parseXml(t: any): eh; isDisplayfilter: boolean; name: any; isActive: boolean; layers: any; entities: any; scId: any; } declare class ka { static registerBimId(t: any, e: any): void; static parseBinary(t: any, e: any): ka; static parseXml(t: any): ka; type: any; related: any; relating: any; } declare class tn extends ts { static parseXml(t: any, e: any, i: any): { nodeInfo: { nodeId: number | null; bits: any; name: any; localTransform: number[] | null; attributes: gr[]; header: { headerVersion: any; _rootAssemblyDataKey: any; isDrawing: any; isMeasurable: any; originalFileName: any; originalFileType: any; doublePrecisionMatrices: any; assemblyDataVersion: any; supportsAttributeBits(): boolean; rootAssemblyDataKey(): any; }; exchangeId: any; layerId: number | null; genericTypeId: null; genericId: null; userDatas: null; }; meshKey: number | null; bodyType: number; faceMeasurementProps: never[]; edgeMeasurementProps: never[]; physicalProps: null; faceAttributes: never[]; edgeAttributes: never[]; pointAttributes: never[]; }; static parseBinary(t: any, e: any, i: any): { nodeInfo: { nodeId: any; bits: any; name: any; localTransform: any; attributes: any; header: any; exchangeId: any; layerId: any; genericTypeId: any; genericId: any; userDatas: Map | null; }; meshKey: any; bodyType: any; faceMeasurementProps: (Li | Wi | Ca | Sa | Pa | vh | bh | xh | Ih | Ch | Sh | Ph | kh | Mh | Eh | Ah | Th | wh)[]; edgeMeasurementProps: ({ radius: any; origin: any; normal: any; copy(): any; type(): number; } | { length: any; copy(): any; type(): number; } | Ho)[]; physicalProps: wa | null; faceAttributes: (Tc | null)[]; edgeAttributes: (Tc | null)[]; pointAttributes: (Tc | null)[]; }; static reify(t: any, e: any, i: any, n: any): tn; static createDynamic(t: any, e: any, i: any, n: any, r: any): tn; constructor(t: any, e: any, i: any, n: any); _parent: any; _bodyType: any; _faceMeasurementProps: any; _edgeMeasurementProps: any; _physicalProps: any; _faceAttributes: any[] | undefined; _edgeAttributes: any[] | undefined; _pointAttributes: any[] | undefined; setPhysicalProperties(t: any): void; getPhysicalProperties(): any; getParent(): any; getFaceCount(): any; getEdgeCount(): any; getFaceAttributes(t: any): any; getEdgeAttributes(t: any): any; getPointAttributes(t: any): any; getFaceMeasurementProperty(t: any): any; getEdgeMeasurementProperty(t: any): any; setFaceMeasurementProperty(t: any, e: any): void; setEdgeMeasurementProperty(t: any, e: any): void; getBodyType(): any; getRuntimeId(): any; } declare class wa { static parseBinary(t: any): wa; constructor(t: any, e: any, i: any); surfaceArea: any; volume: any; centerOfGravity: any; } declare class co extends Rl { static parseXml(t: any, e: any, i: any, n: any): { nodeInfo: { nodeId: number | null; bits: any; name: any; localTransform: number[] | null; attributes: gr[]; header: { headerVersion: any; _rootAssemblyDataKey: any; isDrawing: any; isMeasurable: any; originalFileName: any; originalFileType: any; doublePrecisionMatrices: any; assemblyDataVersion: any; supportsAttributeBits(): boolean; rootAssemblyDataKey(): any; }; exchangeId: any; layerId: number | null; genericTypeId: null; genericId: null; userDatas: null; }; inclusionKey: any; instanceKey: number; bits: number; modifierbits: number; }; static parseBinary(t: any, e: any, i: any, n: any): { nodeInfo: { nodeId: any; bits: any; name: any; localTransform: any; attributes: any; header: any; exchangeId: any; layerId: any; genericTypeId: any; genericId: any; userDatas: Map | null; }; inclusionKey: any; instanceKey: any; bits: number; modifierbits: number; }; static reify(t: any, e: any, i: any, n: any): co; getInstanceInc(): any[]; setVisibility(t: any): void; getRuntimeId(): any; } declare class Rl extends ts { constructor(t: any, e: any, i: any, n: any); _modifiers: any; _parent: any; _instanceKey: any; setRequested(): void; isRequested(): boolean; isOutOfHierarchy(): boolean; preventFromResetting(): boolean; isImplicitBody(): boolean; getParent(): any; getInstanceKey(): any; hasModifiers(): boolean; ignoreParentScale(): boolean; ignoreParentRotation(): boolean; } declare class Bs extends Rl { static parseBinary(t: any, e: any, i: any, n: any, r: any): { nodeInfo: { nodeId: any; bits: any; name: any; localTransform: any; attributes: any; header: any; exchangeId: any; layerId: any; genericTypeId: any; genericId: any; userDatas: Map | null; }; inclusionKey: any; instanceKey: any; bits: number; modifierbits: number; }; static reify(t: any, e: any, i: any, n: any): Bs; getInstanceInc(): any[]; setVisibility(t: any): void; getRuntimeId(): any; } declare class wl { static parseBinary(t: any): { bodyInstanceKey: any; topoItemType: any; itemIndex: any; }; static reify(t: any, e: any): wl; static fromBodyInstance(t: any, e: any, i: any): wl; constructor(t: any, e: any, i: any, n: any); _inclusionKey: any; _bodyInstanceKey: any; _topoItemType: any; _itemIndex: any; getBodyInstanceInc(): any[]; getTopoItemType(): any; getItemIndex(): any; } declare class va { constructor(t: any, e: any); header: any; bytes: any; } declare class Cg { _strokeWidth: number; _strokeColor: vt; /** @hidden */ _assign(t: any): void; /** * Sets the stroke color for this shape * @param color the stroke color */ setStrokeColor(t: any): void; /** * Gets the stroke color for this shape * @returns the stroke color */ getStrokeColor(): vt; /** * Sets the stroke width for this shape in pixels * @param strokeWidth the stroke width in pixels */ setStrokeWidth(t: any): void; /** * Gets the stroke width for this shape in pixels * @returns the stroke width in pixels */ getStrokeWidth(): number; } export { JC as Animation, bg as AntiAliasingMode, Ea as AssemblyDataParseError, zr as AttributeType, Qe as Axis, Zf as AxisTriad, di as BasicUnit, YC as Bcf, ZC as Bim, mn as BimMask, Ks as BlurIntervalUnit, Po as BoundingPreviewMode, yn as Box, de as BranchVisibility, be as BuiltinOverlayIndex, Ee as Button, ys as Buttons, Cn as Camera, vt as Color, oe as CommunicatorError, Pb as CullingVectorSpace, fx as CuttingManager, Kp as CuttingPlane, dx as CuttingSection, rs as DefaultTransitionDuration, Yf as DepthRange, px as DirectionalLight, lr as DrawMode, k_ as DrawStrategy, Yt as ElementType, ba as EmptyModelName, i1 as Event, ae as EventType, gx as ExplodeManager, kb as FaceFaceDistanceItem, Ev as FaceMeshData, Zs as FaceWinding, Dc as FileType, vb as FilterId, Gp as FilteredNodes, t1 as Floorplan, hl as FloorplanOrientation, So as HandleEventType, Vr as HandleType, _s as ImageFormat, xd as IncrementalPickConfig, Ib as InfoType, Qi as InstanceModifier, oi as InternalLogicError, xg as InvalidIndexError, vg as InvalidNodeId, Ds as InvalidNodeIdError, is as InvalidNodeTypeError, ti as KeyCode, Df as KeyInputType, Ci as KeyModifiers, bb as LayerId, Uy as Light, _x as LineManager, Mb as LinePatternLengthUnit, _d as LoadCancelledError, qr as LoadError, Ma as LoadSubtreeConfig, n1 as Markup, wx as MarkupManager, Pd as MarkupTypeManager, mt as Matrix, vx as MeasureManager, Cs as MeshData, ee as MeshInstanceCreationFlags, Qs as MeshInstanceData, yd as MissingModelError, Nc as Model, mr as MouseInputType, Qf as NavCube, ho as NodeSource, Le as NodeType, iv as Ohm, ve as OperatorId, bx as OperatorManager, s1 as Operators, yc as OrbitFallbackMode, QC as Overlay, qe as OverlayAnchor, Fe as OverlayUnit, Rs as ParseError, Si as PickConfig, Oo as PickOutsideCanvasError, ln as Plane, S_ as PmiSubType, ch as PmiTopoRef, C_ as PmiType, K as Point2, _ as Point3, Hr as Point4, mx as PointLight, Tv as PointMeshData, Rf as PointShape, Of as PointSizeUnit, Av as PolylineMeshData, ri as Projection, Zn as Quaternion, wr as Ray, Sb as RefOnTopoItem, P_ as RelationshipType, lh as RendererType, UC as Sc, xb as ScreenConfiguration, e1 as Selection, Tr as SelectionHighlightMode, no as SelectionInvalidatedError, Se as SelectionMask, xn as SelectionMode, On as SelectionType, xx as SheetManager, Lf as SimpleReflectionAttenuationUnit, Ix as SnapshotConfig, Oc as SnapshotLayer, Lo as StreamingMode, Tc as SubentityAttributes, ev as Subscript1, Tp as Subscript2, Np as Subscript3, of as SubscriptNeg, Xp as SvgConfig, Nb as TextureModifier, Tb as TextureParameterization, Ff as TextureTiling, Eu as TouchInputType, Cb as TransparencyMode, Ab as TreeWalkMode, jC as Util, jy as VerticalGradient, Jp as View, Wp as ViewAxes, Me as ViewKey, Ct as ViewOrientation, Eb as VisibilityState, Re as WalkDirection, wc as WalkMode, r1 as WebViewer, hh as XRayGroup, si as XmlParseError, cv as closestPointFromPointToSegment, km as closestPointScalarFromPointToSegment, yr as computeAngleBetweenVector, hc as computeOffaxisRotation, eo as computePointToLineDistance, Ss as createUuid, Fo as degreesToRadians, lv as distanceLineLine, $c as formatWithUnit, xf as generateArcPoints, av as generatePointsOnCircle, dv as getLongUnitString, rv as intersect3d2Planes, zo as intersectionPlaneLine, Sm as intersectionPlaneLine2, gv as isIColor, xm as isIPoint2, Im as isIPoint3, HC as isIPoint4, Mm as isPointInRect2d, hv as isPointOnLineSegment, uc as isPointOnLineSegment2d, Pm as lineLineIntersect, Cm as oneVectorCross, rg as radiansToDegrees };