Webapp

Line

Line finder and line geometry tool used for edges, gaps, distances, and measurements.

27 config keys · 22 public methods

Import

from Xenonix.Webapp import Line

Search this API

Filter methods, arguments, and configuration keys on this page.

Configuration

Use Config(...) with these keys where the class exposes configuration.

Config key Default Common values What it controls
Name False Any valid value Object name used for lookup, labels, or public access.
Background '#000000' Any valid value Background color.
Display True True, False Initial visible/hidden state.
Left None Any valid value Left position when placed absolutely.
Top None Any valid value Top position when placed absolutely.
Right None Any valid value Right position when placed absolutely.
Bottom None Any valid value Bottom position when placed absolutely.
Width 100 Any valid value Widget or image width.
Height 2 Any valid value Widget or image height.
Animate_Left 0 Any valid value Animate Left setting for Line.
Animate_Top 0 Any valid value Animate Top setting for Line.
Animate_Width 0 Any valid value Animate Width setting for Line.
Animate_Height 0 Any valid value Animate Height setting for Line.
Animate_Time 1.0 Any valid value Animate Time setting for Line.
Animate_Ease 'cubic-bezier(0.22, 1, 0.36, 1)' Any valid value Animate Ease setting for Line.
Border_Radius 0 Any valid value Corner radius.
Margin 0 Any valid value Extra region margin.
Mode 'Flow' Flow, Place, Auto, Manual Layout or algorithm mode.
Classes '' Any valid value Extra CSS classes.
Style '' Any valid value Extra CSS style.
Z_Index None Any valid value CSS stacking order.
Shadow_X 0 Any valid value Horizontal shadow offset.
Shadow_Y 0 Any valid value Vertical shadow offset.
Shadow_Blur 0 Any valid value Shadow blur amount.
Shadow_Spread 0 Any valid value Shadow spread amount.
Shadow_Color 'transparent' Any valid value Shadow color.
Hover_Background False Any valid value Hover Background setting for Line.

Public methods

Create

Creates a new Line instance.

Create(Main, *args, **kwargs)

Arguments

Argument Default Accepted values What it does
Main Required Any valid value Main value used by the operation.
args *args Any valid value Additional values passed to the operation.
kwargs **kwargs Any valid value Additional values passed to the operation.

Output

Creates a new Line object.

Create

Runs the Create operation for Line.

Create()

Arguments

No arguments.

Output

Returns the object, so the call can be chained.

Copy

Creates a copy of the object, optionally with supplied data.

Copy(Name=False, Main=False)

Arguments

Argument Default Accepted values What it does
Name False Any valid value Display/name identifier.
Main False Any valid value Turns main on or off.

Output

Returns a copy of the object.

Delete

Removes the requested item.

Delete()

Arguments

No arguments.

Output

Runs the operation. Some methods update the object in place.

Show

Displays the object/result.

Show()

Arguments

No arguments.

Output

Updates the object or visible UI state.

Hide

Hides the object/result.

Hide()

Arguments

No arguments.

Output

Updates the object or visible UI state.

Animate

Runs the Animate operation for Line.

Animate(Widget=None, Hide=False, Thread=True)

Arguments

Argument Default Accepted values What it does
Widget None Any valid value Widget value used by the operation.
Hide False Any valid value Turns hide on or off.
Thread True Any valid value Turns thread on or off.

Output

Returns True/False to indicate success.

Animate_Cancel

Runs the Animate_Cancel operation for Line.

Animate_Cancel()

Arguments

No arguments.

Output

Returns True/False to indicate success.

Widget

Runs the Widget operation for Line.

Widget()

Arguments

No arguments.

Output

Returns the calculated result.

Bind

Runs the Bind operation for Line.

Bind(**Input)

Arguments

Argument Default Accepted values What it does
Input **kwargs Any valid value Input value used by the operation.

Output

Runs the operation. Some methods update the object in place.

Config_Get

Reads one or more configuration values by name.

Config_Get(*Input)

Arguments

Argument Default Accepted values What it does
Input *args Any valid value Input value used by the operation.

Output

Returns selected configuration values.

Config

Changes one or more supported settings. Pass only the configuration keys you want to update.

Config(**Input)

Arguments

Argument Default Accepted values What it does
Input **kwargs Any valid value Input value used by the operation.

Output

Updates configuration values on the object.

Move

Moves the object/data by the requested amount.

Move(Left=None, Top=None)

Arguments

Argument Default Accepted values What it does
Left None Any valid value Left value used by the operation.
Top None Any valid value Top value used by the operation.

Output

Returns True/False to indicate success.

Center

Runs the Center operation for Line.

Center(Left=None, Top=None)

Arguments

Argument Default Accepted values What it does
Left None Any valid value Left value used by the operation.
Top None Any valid value Top value used by the operation.

Output

Returns structured data such as a list or dictionary.

Position

Runs the Position operation for Line.

Position(Left=None, Top=None, Right=None, Bottom=None)

Arguments

Argument Default Accepted values What it does
Left None Any valid value Left value used by the operation.
Top None Any valid value Top value used by the operation.
Right None Any valid value Right value used by the operation.
Bottom None Any valid value Bottom value used by the operation.

Output

Returns structured data such as a list or dictionary.

Size

Runs the Size operation for Line.

Size(Width=False, Height=False)

Arguments

Argument Default Accepted values What it does
Width False Any valid value Width in pixels, world units, or widget units depending on the class.
Height False Any valid value Height in pixels, world units, or widget units depending on the class.

Output

Returns structured data such as a list or dictionary.

Enlarge

Runs the Enlarge operation for Line.

Enlarge(Value=None)

Arguments

Argument Default Accepted values What it does
Value None Any valid value Value to set or process.

Output

Returns True/False to indicate success.

Shrink

Runs the Shrink operation for Line.

Shrink(Value=None)

Arguments

Argument Default Accepted values What it does
Value None Any valid value Value to set or process.

Output

Returns True/False to indicate success.

Box

Runs the Box operation for Line.

Box()

Arguments

No arguments.

Output

Returns structured data such as a list or dictionary.

Ratio

Runs the Ratio operation for Line.

Ratio()

Arguments

No arguments.

Output

Returns structured data such as a list or dictionary.

Place

Runs the Place operation for Line.

Place(Left=None, Top=None, Right=None, Bottom=None, Width=None, Height=None)

Arguments

Argument Default Accepted values What it does
Left None Any valid value Left value used by the operation.
Top None Any valid value Top value used by the operation.
Right None Any valid value Right value used by the operation.
Bottom None Any valid value Bottom value used by the operation.
Width None Any valid value Width in pixels, world units, or widget units depending on the class.
Height None Any valid value Height in pixels, world units, or widget units depending on the class.

Output

Returns the object, so the call can be chained.

Pack

Runs the Pack operation for Line.

Pack(Classes=None, Style=None, Margin=None)

Arguments

Argument Default Accepted values What it does
Classes None Any valid value Classes value used by the operation.
Style None Any valid value Style value used by the operation.
Margin None Any valid value Margin value used by the operation.

Output

Returns the object, so the call can be chained.