Home Reference Source
import {CgCanvas} from './core/cg/cg_canvas.js'
public class | source

CgCanvas

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public get
public
public
public

pixelDensity: number

Private Members
private
private

_cg: *

private
private

Method Summary

Public Methods
public
public

setSize(w: *, h: *, ignorestyle: *)

public

Public Constructors

public constructor() source

Public Members

public get canvasEle: * source

public canvasHeight: * source

public canvasWidth: * source

public pixelDensity: number source

Private Members

private _canvasEle: * source

private _cg: * source

private _oldHeightRp: * source

private _oldWidthRp: * source

Public Methods

public dispose() source

public setSize(w: *, h: *, ignorestyle: *) source

Params:

NameTypeAttributeDescription
w *
h *
ignorestyle *

public updateSize() source