UNPKG

jupyterlab-emrys

Version:

A computational environment for Jupyter. Powered by Emrys

41 lines (40 loc) 1.14 kB
import { IKernel } from 'jupyter-js-services'; import { Message } from 'phosphor-messaging'; import { Widget } from 'phosphor-widget'; import { ABCWidgetFactory, IDocumentModel, IDocumentContext } from '../docregistry'; /** * A widget for images. */ export declare class ImageWidget extends Widget { /** * Create the node for the image widget. */ static createNode(): HTMLElement; /** * Construct a new image widget. */ constructor(context: IDocumentContext<IDocumentModel>); /** * The scale factor for the image. */ scale: number; /** * Dispose of the resources used by the widget. */ dispose(): void; /** * Handle `update-request` messages for the widget. */ protected onUpdateRequest(msg: Message): void; private _context; private _scale; } /** * A widget factory for images. */ export declare class ImageWidgetFactory extends ABCWidgetFactory<ImageWidget, IDocumentModel> { /** * Create a new widget given a context. */ createNew(context: IDocumentContext<IDocumentModel>, kernel?: IKernel.IModel): ImageWidget; }