GradientEditor
Extends:
gradient editor dialog
Static Method Summary
| Static Public Methods | ||
| public static |
getCssGradientString(keys: import("./canv_pointeditor.js").KeyObject[]): * |
|
Constructor Summary
| Public Constructor | ||
| public |
constructor(opid: any, portname: any, options: import("./canv_pointeditor.js").CanvasPointEditorOptions) |
|
Member Summary
| Public Members | ||
| public |
ctx: * |
|
| public |
imageData: * |
|
| Private Members | ||
| private |
_opId: * |
|
| private |
_portName: * |
|
| private |
log: * |
|
Method Summary
| Public Methods | ||
| public |
oklabToRGB(L: number, a: number, b: number): undefined[] |
|
| public |
rgbToOklab(r: number, g: number, b: number): undefined[] |
|
| public |
|
|
| public |
|
|
Inherited Summary
| From class CanvasPointEditor | ||
| public get |
height: * |
|
| public get |
id: * |
|
| public get |
width: * |
|
| public |
|
|
| public |
anim: * |
|
| public |
ctx: * |
|
| public |
|
|
| public |
op: Op |
|
| public |
openerEle: * |
|
| public |
|
|
| public |
port: Port |
|
| public |
type: * |
|
| private |
_bg: * |
|
| private |
_elContainer: * |
|
| private |
_opId: * |
|
| private |
_portName: * |
|
| private |
_timeout: * |
|
| private |
callback: * |
|
| private |
currentKey: * |
|
| private |
docListener: * |
|
| private |
downDot: * |
|
| private |
|
|
| private |
keyHeight: * |
|
| private |
keyOpacity: * |
|
| private |
|
|
| private |
keyWidth: * |
|
| private |
log: * |
|
| private |
|
|
| private |
|
|
| public |
addKey(pos: number, posy: number, r: number, g: number, b: number, a: number) |
|
| public |
close() |
|
| public |
|
|
| public |
getInvStrokeColor(r: number, g: number, b: number): * |
|
| public |
onChange() |
|
| public |
selectKey(i: number) |
|
| public |
setCurrentKey(key: KeyObject) |
|
| public |
show(cb: Function) |
|
| public |
|
|
| public |
|
|
Static Public Methods
public static getCssGradientString(keys: import("./canv_pointeditor.js").KeyObject[]): * source
Params:
| Name | Type | Attribute | Description |
| keys | import("./canv_pointeditor.js").KeyObject[] |
Return:
| * |
Public Constructors
public constructor(opid: any, portname: any, options: import("./canv_pointeditor.js").CanvasPointEditorOptions) source
Override:
CanvasPointEditor#constructorParams:
| Name | Type | Attribute | Description |
| opid | any | ||
| portname | any | ||
| options | import("./canv_pointeditor.js").CanvasPointEditorOptions |
Public Methods
public oklabToRGB(L: number, a: number, b: number): undefined[] source
Params:
| Name | Type | Attribute | Description |
| L | number | ||
| a | number | ||
| b | number |
Return:
| undefined[] |
public rgbToOklab(r: number, g: number, b: number): undefined[] source
Params:
| Name | Type | Attribute | Description |
| r | number | ||
| g | number | ||
| b | number |
Return:
| undefined[] |