Add allowTransparency option

Fixes #1004
This commit is contained in:
CHaBou
2017-12-14 22:55:01 +01:00
parent 4f144dc6eb
commit 9f85790ad1
8 changed files with 24 additions and 29 deletions
+2 -2
View File
@@ -24,8 +24,8 @@ export class TextRenderLayer extends BaseRenderLayer {
private _characterFont: string;
private _characterOverlapCache: { [key: string]: boolean } = {};
constructor(container: HTMLElement, zIndex: number, colors: IColorSet) {
super(container, 'text', zIndex, false, colors);
constructor(container: HTMLElement, zIndex: number, alpha: boolean, colors: IColorSet) {
super(container, 'text', zIndex, alpha, colors);
this._state = new GridCache<CharData>();
}