UNPKG

webglimpse

Version:

Webglimpse is a data visualization library for the web.

333 lines (332 loc) 13.3 kB
export declare let GL: { new (): WebGLRenderingContext; prototype: WebGLRenderingContext; readonly ACTIVE_ATTRIBUTES: number; readonly ACTIVE_TEXTURE: number; readonly ACTIVE_UNIFORMS: number; readonly ALIASED_LINE_WIDTH_RANGE: number; readonly ALIASED_POINT_SIZE_RANGE: number; readonly ALPHA: number; readonly ALPHA_BITS: number; readonly ALWAYS: number; readonly ARRAY_BUFFER: number; readonly ARRAY_BUFFER_BINDING: number; readonly ATTACHED_SHADERS: number; readonly BACK: number; readonly BLEND: number; readonly BLEND_COLOR: number; readonly BLEND_DST_ALPHA: number; readonly BLEND_DST_RGB: number; readonly BLEND_EQUATION: number; readonly BLEND_EQUATION_ALPHA: number; readonly BLEND_EQUATION_RGB: number; readonly BLEND_SRC_ALPHA: number; readonly BLEND_SRC_RGB: number; readonly BLUE_BITS: number; readonly BOOL: number; readonly BOOL_VEC2: number; readonly BOOL_VEC3: number; readonly BOOL_VEC4: number; readonly BROWSER_DEFAULT_WEBGL: number; readonly BUFFER_SIZE: number; readonly BUFFER_USAGE: number; readonly BYTE: number; readonly CCW: number; readonly CLAMP_TO_EDGE: number; readonly COLOR_ATTACHMENT0: number; readonly COLOR_BUFFER_BIT: number; readonly COLOR_CLEAR_VALUE: number; readonly COLOR_WRITEMASK: number; readonly COMPILE_STATUS: number; readonly COMPRESSED_TEXTURE_FORMATS: number; readonly CONSTANT_ALPHA: number; readonly CONSTANT_COLOR: number; readonly CONTEXT_LOST_WEBGL: number; readonly CULL_FACE: number; readonly CULL_FACE_MODE: number; readonly CURRENT_PROGRAM: number; readonly CURRENT_VERTEX_ATTRIB: number; readonly CW: number; readonly DECR: number; readonly DECR_WRAP: number; readonly DELETE_STATUS: number; readonly DEPTH_ATTACHMENT: number; readonly DEPTH_BITS: number; readonly DEPTH_BUFFER_BIT: number; readonly DEPTH_CLEAR_VALUE: number; readonly DEPTH_COMPONENT: number; readonly DEPTH_COMPONENT16: number; readonly DEPTH_FUNC: number; readonly DEPTH_RANGE: number; readonly DEPTH_STENCIL: number; readonly DEPTH_STENCIL_ATTACHMENT: number; readonly DEPTH_TEST: number; readonly DEPTH_WRITEMASK: number; readonly DITHER: number; readonly DONT_CARE: number; readonly DST_ALPHA: number; readonly DST_COLOR: number; readonly DYNAMIC_DRAW: number; readonly ELEMENT_ARRAY_BUFFER: number; readonly ELEMENT_ARRAY_BUFFER_BINDING: number; readonly EQUAL: number; readonly FASTEST: number; readonly FLOAT: number; readonly FLOAT_MAT2: number; readonly FLOAT_MAT3: number; readonly FLOAT_MAT4: number; readonly FLOAT_VEC2: number; readonly FLOAT_VEC3: number; readonly FLOAT_VEC4: number; readonly FRAGMENT_SHADER: number; readonly FRAMEBUFFER: number; readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: number; readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: number; readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: number; readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: number; readonly FRAMEBUFFER_BINDING: number; readonly FRAMEBUFFER_COMPLETE: number; readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: number; readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: number; readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: number; readonly FRAMEBUFFER_UNSUPPORTED: number; readonly FRONT: number; readonly FRONT_AND_BACK: number; readonly FRONT_FACE: number; readonly FUNC_ADD: number; readonly FUNC_REVERSE_SUBTRACT: number; readonly FUNC_SUBTRACT: number; readonly GENERATE_MIPMAP_HINT: number; readonly GEQUAL: number; readonly GREATER: number; readonly GREEN_BITS: number; readonly HIGH_FLOAT: number; readonly HIGH_INT: number; readonly IMPLEMENTATION_COLOR_READ_FORMAT: number; readonly IMPLEMENTATION_COLOR_READ_TYPE: number; readonly INCR: number; readonly INCR_WRAP: number; readonly INT: number; readonly INT_VEC2: number; readonly INT_VEC3: number; readonly INT_VEC4: number; readonly INVALID_ENUM: number; readonly INVALID_FRAMEBUFFER_OPERATION: number; readonly INVALID_OPERATION: number; readonly INVALID_VALUE: number; readonly INVERT: number; readonly KEEP: number; readonly LEQUAL: number; readonly LESS: number; readonly LINEAR: number; readonly LINEAR_MIPMAP_LINEAR: number; readonly LINEAR_MIPMAP_NEAREST: number; readonly LINES: number; readonly LINE_LOOP: number; readonly LINE_STRIP: number; readonly LINE_WIDTH: number; readonly LINK_STATUS: number; readonly LOW_FLOAT: number; readonly LOW_INT: number; readonly LUMINANCE: number; readonly LUMINANCE_ALPHA: number; readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: number; readonly MAX_CUBE_MAP_TEXTURE_SIZE: number; readonly MAX_FRAGMENT_UNIFORM_VECTORS: number; readonly MAX_RENDERBUFFER_SIZE: number; readonly MAX_TEXTURE_IMAGE_UNITS: number; readonly MAX_TEXTURE_SIZE: number; readonly MAX_VARYING_VECTORS: number; readonly MAX_VERTEX_ATTRIBS: number; readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: number; readonly MAX_VERTEX_UNIFORM_VECTORS: number; readonly MAX_VIEWPORT_DIMS: number; readonly MEDIUM_FLOAT: number; readonly MEDIUM_INT: number; readonly MIRRORED_REPEAT: number; readonly NEAREST: number; readonly NEAREST_MIPMAP_LINEAR: number; readonly NEAREST_MIPMAP_NEAREST: number; readonly NEVER: number; readonly NICEST: number; readonly NONE: number; readonly NOTEQUAL: number; readonly NO_ERROR: number; readonly ONE: number; readonly ONE_MINUS_CONSTANT_ALPHA: number; readonly ONE_MINUS_CONSTANT_COLOR: number; readonly ONE_MINUS_DST_ALPHA: number; readonly ONE_MINUS_DST_COLOR: number; readonly ONE_MINUS_SRC_ALPHA: number; readonly ONE_MINUS_SRC_COLOR: number; readonly OUT_OF_MEMORY: number; readonly PACK_ALIGNMENT: number; readonly POINTS: number; readonly POLYGON_OFFSET_FACTOR: number; readonly POLYGON_OFFSET_FILL: number; readonly POLYGON_OFFSET_UNITS: number; readonly RED_BITS: number; readonly RENDERBUFFER: number; readonly RENDERBUFFER_ALPHA_SIZE: number; readonly RENDERBUFFER_BINDING: number; readonly RENDERBUFFER_BLUE_SIZE: number; readonly RENDERBUFFER_DEPTH_SIZE: number; readonly RENDERBUFFER_GREEN_SIZE: number; readonly RENDERBUFFER_HEIGHT: number; readonly RENDERBUFFER_INTERNAL_FORMAT: number; readonly RENDERBUFFER_RED_SIZE: number; readonly RENDERBUFFER_STENCIL_SIZE: number; readonly RENDERBUFFER_WIDTH: number; readonly RENDERER: number; readonly REPEAT: number; readonly REPLACE: number; readonly RGB: number; readonly RGB565: number; readonly RGB5_A1: number; readonly RGBA: number; readonly RGBA4: number; readonly SAMPLER_2D: number; readonly SAMPLER_CUBE: number; readonly SAMPLES: number; readonly SAMPLE_ALPHA_TO_COVERAGE: number; readonly SAMPLE_BUFFERS: number; readonly SAMPLE_COVERAGE: number; readonly SAMPLE_COVERAGE_INVERT: number; readonly SAMPLE_COVERAGE_VALUE: number; readonly SCISSOR_BOX: number; readonly SCISSOR_TEST: number; readonly SHADER_TYPE: number; readonly SHADING_LANGUAGE_VERSION: number; readonly SHORT: number; readonly SRC_ALPHA: number; readonly SRC_ALPHA_SATURATE: number; readonly SRC_COLOR: number; readonly STATIC_DRAW: number; readonly STENCIL_ATTACHMENT: number; readonly STENCIL_BACK_FAIL: number; readonly STENCIL_BACK_FUNC: number; readonly STENCIL_BACK_PASS_DEPTH_FAIL: number; readonly STENCIL_BACK_PASS_DEPTH_PASS: number; readonly STENCIL_BACK_REF: number; readonly STENCIL_BACK_VALUE_MASK: number; readonly STENCIL_BACK_WRITEMASK: number; readonly STENCIL_BITS: number; readonly STENCIL_BUFFER_BIT: number; readonly STENCIL_CLEAR_VALUE: number; readonly STENCIL_FAIL: number; readonly STENCIL_FUNC: number; readonly STENCIL_INDEX8: number; readonly STENCIL_PASS_DEPTH_FAIL: number; readonly STENCIL_PASS_DEPTH_PASS: number; readonly STENCIL_REF: number; readonly STENCIL_TEST: number; readonly STENCIL_VALUE_MASK: number; readonly STENCIL_WRITEMASK: number; readonly STREAM_DRAW: number; readonly SUBPIXEL_BITS: number; readonly TEXTURE: number; readonly TEXTURE0: number; readonly TEXTURE1: number; readonly TEXTURE10: number; readonly TEXTURE11: number; readonly TEXTURE12: number; readonly TEXTURE13: number; readonly TEXTURE14: number; readonly TEXTURE15: number; readonly TEXTURE16: number; readonly TEXTURE17: number; readonly TEXTURE18: number; readonly TEXTURE19: number; readonly TEXTURE2: number; readonly TEXTURE20: number; readonly TEXTURE21: number; readonly TEXTURE22: number; readonly TEXTURE23: number; readonly TEXTURE24: number; readonly TEXTURE25: number; readonly TEXTURE26: number; readonly TEXTURE27: number; readonly TEXTURE28: number; readonly TEXTURE29: number; readonly TEXTURE3: number; readonly TEXTURE30: number; readonly TEXTURE31: number; readonly TEXTURE4: number; readonly TEXTURE5: number; readonly TEXTURE6: number; readonly TEXTURE7: number; readonly TEXTURE8: number; readonly TEXTURE9: number; readonly TEXTURE_2D: number; readonly TEXTURE_BINDING_2D: number; readonly TEXTURE_BINDING_CUBE_MAP: number; readonly TEXTURE_CUBE_MAP: number; readonly TEXTURE_CUBE_MAP_NEGATIVE_X: number; readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: number; readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: number; readonly TEXTURE_CUBE_MAP_POSITIVE_X: number; readonly TEXTURE_CUBE_MAP_POSITIVE_Y: number; readonly TEXTURE_CUBE_MAP_POSITIVE_Z: number; readonly TEXTURE_MAG_FILTER: number; readonly TEXTURE_MIN_FILTER: number; readonly TEXTURE_WRAP_S: number; readonly TEXTURE_WRAP_T: number; readonly TRIANGLES: number; readonly TRIANGLE_FAN: number; readonly TRIANGLE_STRIP: number; readonly UNPACK_ALIGNMENT: number; readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: number; readonly UNPACK_FLIP_Y_WEBGL: number; readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: number; readonly UNSIGNED_BYTE: number; readonly UNSIGNED_INT: number; readonly UNSIGNED_SHORT: number; readonly UNSIGNED_SHORT_4_4_4_4: number; readonly UNSIGNED_SHORT_5_5_5_1: number; readonly UNSIGNED_SHORT_5_6_5: number; readonly VALIDATE_STATUS: number; readonly VENDOR: number; readonly VERSION: number; readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: number; readonly VERTEX_ATTRIB_ARRAY_ENABLED: number; readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: number; readonly VERTEX_ATTRIB_ARRAY_POINTER: number; readonly VERTEX_ATTRIB_ARRAY_SIZE: number; readonly VERTEX_ATTRIB_ARRAY_STRIDE: number; readonly VERTEX_ATTRIB_ARRAY_TYPE: number; readonly VERTEX_SHADER: number; readonly VIEWPORT: number; readonly ZERO: number; }; export declare function hasval(value: any): boolean; export declare function isNumber(value: any): boolean; export declare function isString(value: any): boolean; export declare function isEmpty(array: any[]): boolean; export declare function notEmpty(array: any[]): boolean; export declare function alwaysTrue(): boolean; export declare function alwaysFalse(): boolean; export declare function constantFn<V>(value: V): () => V; export declare function log10(x: number): number; export declare function order(x: number): number; export declare function clamp(xMin: number, xMax: number, x: number): number; export declare function copyArray<T>(values: T[]): T[]; export declare function ensureCapacityFloat32(buffer: Float32Array, minNewCapacity: number): Float32Array; export declare function ensureCapacityUint32(buffer: Uint32Array, minNewCapacity: number): Uint32Array; export declare function ensureCapacityUint16(buffer: Uint16Array, minNewCapacity: number): Uint16Array; export interface StringMap<V> { [key: string]: V; } export declare type IdFunction<V> = (value: V) => string; export declare let getObjectId: (obj: any) => string; export declare function concatLines(...lines: string[]): string; export declare function parseTime_PMILLIS(time_ISO8601: string): number; /** * Formats a timestamp from posix-millis into the format 'YYYY-MM-DDThh:mm:ss.SSSZZ' (for * example '2014-01-01T00:00:00.000Z'). * * The input value is effectively truncated (not rounded!) to milliseconds. So for example, * formatTime_ISO8601(12345.999) will return '1970-01-01T00:00:12.345Z' -- exactly the same * as for an input of 12345. * */ export declare function formatTime_ISO8601(time_PMILLIS: number): string;