new MiscellaneousOptions()
For instance, the "hAlign" option:
misc: { hAlign: 1 }changes the miscellaneous' hAlign option of the control to specified value
It is important to note that changing a field of the MiscellaneousOptions object does not automatically update the control. For example, oRollist.Misc.hAlign = 1 does not apply the change. Instead, you must assign the Misc property again, such as oRollist.Misc = {hAlign: 1}, so the control updates and applies the new value.
Members
(static) gradualOpacity :string
The opacity transition is determined by the distance from the center, where:
- A 'from-to' pair (e.g., "1 - 0.25") creates a gradual transition where items near the center are more opaque and those farther away become more transparent
- A single value (e.g., 0.5) applies a uniform semi-transparency to all items regardless of their position
Type:
- string
Example
null {null} or "" {string}, no effect (by default)
"1 - 0.25" {string}, results in an opacity transition from 1 (fully opaque) at the center (selectPos) to 0.75 (slightly transparent) toward the edges
0.5 {number}, semi-transparent for all
gradualOpacity
(static) gradualOpacityTransition :string|array
The gradualOpacityTransition field supports predefined transition types, which can be specified using string or array values. These predefined types include (fields of exontrol.Def.G.Transitions object):
- "linear" {string}, applies a constant-speed (linear) transition
- "ease" {string}, applies a smooth transition that starts slowly, speeds up, then slows down
- "ease-in" {string}, applies a transition that starts slowly and then accelerates
- "ease-out" {string}, applies a transition that starts quickly and then decelerates
- "ease-in-out" {string}, applies a transition that starts and ends slowly, with a faster middle phase
- "ease-in-out-expo" {string}, applies a more dramatic ease-in-out transition with exponential acceleration and deceleration
- "swipe" {string}, applies a custom swipe-like transition using a bezier curve
Alternatively, a custom bezier curve can be specified using an array of four values:
[P1.x, P1.y, P2.x, P2.y]
This defines the two control points P1 and P2 for the cubic bezier curve used during the transition. The x-values of both P1 and P2 must be between 0 and 1, as required for valid CSS timing functions. You can use the exontrol.Bezier control to effortlessly visualize or define various transition types. For example, the "ease" transition corresponds to the bezier curve defined by control points P1(0.25, 0.1) and P2(0.25, 1), which can be represented as [0.25, 0.1, 0.25, 1]. By specifying custom control points, you can create unique transition effects that differ from standard easing functions.
Type:
- string | array
Example
undefined {undefined}, null {null} or "ease" {string}, defined the default transtion to "ease"
"ease-in" {string}, applies a transition that starts slowly and then accelerates
[0,1,1,0] {array}, creates a custom-transition
gradualOpacityTransition
(static) hAlign :number
The alignment is determined by the ratio of the control's width, where:
- A value of 0 aligns the items near the top-left corner
- A value of 1 aligns them near the top-right corner
- A value of 0.5 places them at the top-center
- Values greater than 1 align the items beyond the top-right corner
Type:
- number
Example
null {null} or 0.25 {number}, the roll-items go to the top-center of the control
1 {number}, the roll-items go to the top-right corner of the control
hAlign
(static) selectPos :number
The position of the selected item is determined by the ratio of the control's height, where:
- A value between 0 and -1 positions the selected item progressively closer to the top of the control
- A value of 0 centers the selected item within the control
- A value between 0 and 1 positions the selected item progressively closer to the bottom of the control
Type:
- number
Example
null {null} or 0 {number}, centers the selected item
-1 {number}, always displays the selected item at the top of the control
selectPos
(static) tagName :string
Type:
- string
Example
null {null} or "pre" {string}, specifies that items are hosted in <pre> HTML elements by default
"div" {string}, indicates that items are hosted in <div> HTML elements
tagName
(static) vAlign :number
The vertical position is determined by the height of the rectangle, where:
- A value of 0 keeps the top edge at its initial position
- A value of 1 shifts the top edge downward by the height of the rectangle
- A value of 2 shifts it downward by twice the rectangle's height
- Higher values continue shifting it further down accordingly
Type:
- number
Example
null {null} or 0 {number}, keeps the top edge at its initial position
1 {number}, shifts the top edge downward by the height of the rectangle
vAlign
(static) zIndex :number
Type:
- number
Example
9999 {number}, sets the starting stacking order for the items
zIndex