Add factories for finer color management
This commit is contained in:
parent
ff6943169b
commit
5ff15fa58f
14 changed files with 644 additions and 391 deletions
18
src/drawables/empty-drawable.ts
Normal file
18
src/drawables/empty-drawable.ts
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import { mat2d, vec2 } from 'gl-matrix';
|
||||
import { Drawable } from './drawable';
|
||||
import { DrawableDescriptor } from './drawable-descriptor';
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export class EmptyDrawable extends Drawable {
|
||||
public static readonly descriptor: DrawableDescriptor;
|
||||
|
||||
public minDistance(target: vec2): number {
|
||||
throw new Error('Unimplemented');
|
||||
}
|
||||
|
||||
protected getObjectToSerialize(transform2d: mat2d, transform1d: number): any {
|
||||
throw new Error('Unimplemented');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue