import { ImageDataBase } from './canvas-plugin.common' ; export class ImageData extends ImageDataBase { constructor ( nativeInstance ) { super ( nativeInstance ) ; this . data = new Uint8ClampedArray ( nativeInstance . data ) ; } static fromNative ( nativeInstance ) { return new ImageData ( nativeInstance ) ; } static from ( instance ) { return new ImageData ( instance . nativeInstance ) ; } }