HTML Drawing Control

Use Navigation Toolbar to navigate a drawing

The Navigation Toolbar is an optional add-on that you can specify in the addOnsConfig parameter before loading the HTML drawing control.

var parameters = new Ab.view.ConfigObject();
parameters['addOnsConfig'] = { 'NavigationToolbar': {divId: "svgDiv"},…};

Navigation toolbar contains the following controls: Zoom In, Zoom Out, Zoom Extents, Zoom Into Window Area, and Select Multiple Assets.

Navigation mode

Zooming for navigation mode

Users have two ways of zooming the drawing:

  • Navigation toolbar provides a zooming range check so the zooming will stop if zoom factor is out of boundary. The default range is 0.2-10.

    Notes:
    The user can execute any combination of zoom in/out action multiple times as needed.
    If the zoom scale exceeds the max zoom factor (10), the zoom in icon (blue plus sign) ) will be disabled (will be shown in red) and further action will not zoom in.
    If the zoom scale is less than the min zoom factor (0.2), the zoom out icon (blue minus sign) will be disabled (will be shown red) and further action will not zoom out.

    Panning in navigation mode

    Users can use mouse click-move-release action to pan the drawing, except when they are in "Zoom into Selected Window Area" or "Select Multiple Assets" mode.

    Drawing mode

    Zooming in drawing mode

    Note that you will need to use string 'true' instead of Boolean value true.

    Then, you need to specify the asset types and related events:

    parameters['addOnsConfig'] = { 'SelectWindow': {assetType: "rm;eq", customEvent: this.onSelectWindow}, …}

    Example View:  http://localhost:8080/archibus/schema/ab-products/solutions/programming/drawing/ab-ex-dwg-html-control-navtoolbar.axvw

    Copyright © 1984-2018, ARCHIBUS, Inc. All rights reserved.