Home Reference Source
import CanvasLens from './ui/components/canvas/canvaslens.js'
public class | source

CanvasLens

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
Private Members
private

_color: *

private
private

_ctx: *

private
private
private

_hex: *

private
private
private
private
private
private
private

_scale: number

private

_size: *

private

_size2: *

private

_x: *

private

_y: *

Method Summary

Public Methods
public

close()

public

rgbToHex(R: *, G: *, B: *): *

Private Methods
private

_onCopy(e: *)

private
private
private

_onMouseMove(e: *)

private

_toHex(n: *): *

Public Constructors

public constructor() source

Public Members

public leaveTimeout: * source

Private Members

private _color: * source

private _copyListener: * source

private _ctx: * source

private _endFrameListener: * source

private _endFrameListenerId: * source

private _hex: * source

private _lensCanvas: * source

private _moveLeaveListener: * source

private _moveListener: * source

private _origCanvas: * source

private _origPixels: * source

private _origPixels2: * source

private _scale: number source

private _size: * source

private _size2: * source

private _x: * source

private _y: * source

Public Methods

public close() source

public rgbToHex(R: *, G: *, B: *): * source

Params:

NameTypeAttributeDescription
R *
G *
B *

Return:

*

Private Methods

private _onCopy(e: *) source

Params:

NameTypeAttributeDescription
e *

private _onEndframe() source

private _onMouseLeave() source

private _onMouseMove(e: *) source

Params:

NameTypeAttributeDescription
e *

private _toHex(n: *): * source

Params:

NameTypeAttributeDescription
n *

Return:

*