Line

<< 点击显示目录 >>

主页  mappView帮助助手 > mapp View帮助信息 > Widgets  > Drawing  >

Line

Widget "Line" draws a line.

The following properties cannot be used in compound widget "Mapping":

zIndex

Appearance

line_editor

line_runtime

Editor

Web browser

Properties

Name

Type

Description

Bindable

Necessary

Default value

enable

Boolean

Defines the usability of the widget. A disabled widget (enable=false) does not react to user interaction and does not trigger events. The "enable" behavior is inherited from the container widgets to the child widgets.

check

 

true

permissionOperate

RoleCollection

Defines the roles that are permitted to use the widget. For roles without sufficient rights, the widget does not react to user interaction and does not trigger events.

 

 

 

permissionView

RoleCollection

Defines the roles that are permitted to see the widget. For roles without sufficient rights, the widget is hidden.

 

 

 

style

StyleReference

Reference to a customizable widget style.

check

 

default

visible

Boolean

Defines the visibility of the widget. The widget can be hidden with visible=false. (visible = true, hidden = false). The "visible" behavior is inherited from the container widget to the child widgets.

check

 

true

x1

Integer

Attribute "x1" defines the start of the line on the x-axis of the surrounding widget or content.

 

check

 

x2

Integer

Attribute "x2" defines the end of the line on the x-axis of the surrounding widget or content.

 

check

 

y1

Integer

Attribute "y1" defines the start of the line on the y-axis of the surrounding widget or content.

 

check

 

y2

Integer

Attribute "y2" defines the end of the line on the y-axis of the surrounding widget or content.

 

check

 

zIndex

UInteger

zIndex determines the z-order of the widget. With overlapping widgets, the zIndex determines which widget is on the top and which one is on the bottom. The widget with the larger zIndex is on top, and the one with the smaller zIndex is on the bottom. The zIndex must be unique within a piece of content or a container widget. The zIndex is automatically assigned by the visual editor and can therefore be changed via the toolbar.

 

check

 

tabIndex

Integer

Property tabIndex is used to manage the tab order during keyboard operation.

For additional information, see Keyboard operation.

ENTER triggers event Click if tabIndex ≥0.

 

 

-1

Styleable properties

Name

Type

Description

Default value

lineColor

Color

Defines the color of the line.

#000000

lineWidth

PixelVal

Defines the width of the line.

1px

lineCap

LineCap

Defines the type of line end.

butt

opacity

Opacity

Defines the transparency of the widget. The lower the value, the more transparent the widget.

1

margin

Margin

Defines the offset of the external boundary of the widget to the widget's actual set position. For more information, see here.

0px

Topics in this section:

Actions and events