ve.Colour

ve.Component. ve.Colour

Refer to ve.Component for methods or fields inherited from this Component's parent such as .options.attributes or .element.

Basic colour input used to fetch [R, G, B] parameters. May also fetch hex value via getHex().

  • Functional binding: veColour().
Constructor:
  • arg0_value: Array<number, number, number>
  • arg1_options: Object
Instance:
  • .v: Array<number, number, number> - The R, G, B value of the present Component.
Methods:
  • getHex() | string - Returns the hex value of the present R, G, B value.
  • toString() | string - Returns the R,G,B value as a string.

Constructor

new ve.Colour()

Source:

Extends

Members

from_binding

Internal .from_binding setter for handling .options.from_binding. Accepts a string literal that is then parsed to a variable reference.

.to_binding counterparts are manually handled child-side.

Overrides:
Source:

limit

Tests the current this.limit by calling this.limit_function(this.v, this). Otherwise resolves to true if no .options.limit is set.

Overrides:
Source:

name

Returns the visual name of the present ve.Component,

Overrides:
Source:

Methods

addComponent()

Adds the current component to this.parent_el should it exist.

Overrides:
Source:

bind(arg0_container_el)

Manually binds/mounts the present ve.Component into the visual DOM.

Overrides:
Source:
Parameters:
Name Type Description
arg0_container_el HTMLElement

fireFromBinding()

Pseudo-setter from binding. Fires only upon program-driven changes to .v directly, which means that this has to be monitored manually component-side in set v(). This should always come last in set v().

Overrides:
Source:

fireToBinding()

Pseudo-setter to binding. Fires only upon user-driven changes, which means that this has to be monitored manually component-side.

Overrides:
Source:

remove()

Removes the component/element from the DOM.

Overrides:
Source:

removeComponent()

Removes the current component from this.parent_el should it exist.

Overrides:
Source:

setOwner(arg0_value, arg1_owner_array)

Sets the root parent and ownership tree. Influences this.parent_el, this.owner, this.owners.

Overrides:
Source:
Parameters:
Name Type Description
arg0_value
arg1_owner_array