diff --git a/js/js.libraries/src/generated/org.khronos.webgl.kt b/js/js.libraries/src/generated/org.khronos.webgl.kt index 242d3ff4d2b..c24dea42840 100644 --- a/js/js.libraries/src/generated/org.khronos.webgl.kt +++ b/js/js.libraries/src/generated/org.khronos.webgl.kt @@ -21,18 +21,18 @@ import org.w3c.workers.* import org.w3c.xhr.* @native public interface WebGLContextAttributes { - var alpha: Boolean - var depth: Boolean - var stencil: Boolean - var antialias: Boolean - var premultipliedAlpha: Boolean - var preserveDrawingBuffer: Boolean - var preferLowPowerToHighPerformance: Boolean - var failIfMajorPerformanceCaveat: Boolean + var alpha: Boolean? /* = true */ + var depth: Boolean? /* = true */ + var stencil: Boolean? /* = false */ + var antialias: Boolean? /* = true */ + var premultipliedAlpha: Boolean? /* = true */ + var preserveDrawingBuffer: Boolean? /* = false */ + var preferLowPowerToHighPerformance: Boolean? /* = false */ + var failIfMajorPerformanceCaveat: Boolean? /* = false */ } @Suppress("NOTHING_TO_INLINE") -public inline fun WebGLContextAttributes(alpha: Boolean = true, depth: Boolean = true, stencil: Boolean = false, antialias: Boolean = true, premultipliedAlpha: Boolean = true, preserveDrawingBuffer: Boolean = false, preferLowPowerToHighPerformance: Boolean = false, failIfMajorPerformanceCaveat: Boolean = false): WebGLContextAttributes { +public inline fun WebGLContextAttributes(alpha: Boolean? = true, depth: Boolean? = true, stencil: Boolean? = false, antialias: Boolean? = true, premultipliedAlpha: Boolean? = true, preserveDrawingBuffer: Boolean? = false, preferLowPowerToHighPerformance: Boolean? = false, failIfMajorPerformanceCaveat: Boolean? = false): WebGLContextAttributes { val o = js("({})") o["alpha"] = alpha @@ -47,49 +47,49 @@ public inline fun WebGLContextAttributes(alpha: Boolean = true, depth: Boolean = return o } -@native public interface WebGLObject { +@native public abstract class WebGLObject { } -@native public interface WebGLBuffer : WebGLObject { +@native public abstract class WebGLBuffer : WebGLObject() { } -@native public interface WebGLFramebuffer : WebGLObject { +@native public abstract class WebGLFramebuffer : WebGLObject() { } -@native public interface WebGLProgram : WebGLObject { +@native public abstract class WebGLProgram : WebGLObject() { } -@native public interface WebGLRenderbuffer : WebGLObject { +@native public abstract class WebGLRenderbuffer : WebGLObject() { } -@native public interface WebGLShader : WebGLObject { +@native public abstract class WebGLShader : WebGLObject() { } -@native public interface WebGLTexture : WebGLObject { +@native public abstract class WebGLTexture : WebGLObject() { } -@native public interface WebGLUniformLocation { +@native public abstract class WebGLUniformLocation { } -@native public interface WebGLActiveInfo { - val size: Int +@native public abstract class WebGLActiveInfo { + open val size: Int get() = noImpl - val type: Int + open val type: Int get() = noImpl - val name: String + open val name: String get() = noImpl } -@native public interface WebGLShaderPrecisionFormat { - val rangeMin: Int +@native public abstract class WebGLShaderPrecisionFormat { + open val rangeMin: Int get() = noImpl - val rangeMax: Int + open val rangeMax: Int get() = noImpl - val precision: Int + open val precision: Int get() = noImpl } -@native public interface WebGLRenderingContext : RenderingContext { +@native public interface WebGLRenderingContextBase { val canvas: HTMLCanvasElement get() = noImpl val drawingBufferWidth: Int @@ -113,8 +113,8 @@ public inline fun WebGLContextAttributes(alpha: Boolean = true, depth: Boolean = fun blendFunc(sfactor: Int, dfactor: Int): Unit = noImpl fun blendFuncSeparate(srcRGB: Int, dstRGB: Int, srcAlpha: Int, dstAlpha: Int): Unit = noImpl fun bufferData(target: Int, size: Int, usage: Int): Unit = noImpl - fun bufferData(target: Int, data: dynamic, usage: Int): Unit = noImpl - fun bufferSubData(target: Int, offset: Int, data: dynamic): Unit = noImpl + fun bufferData(target: Int, data: BufferDataSource?, usage: Int): Unit = noImpl + fun bufferSubData(target: Int, offset: Int, data: BufferDataSource?): Unit = noImpl fun checkFramebufferStatus(target: Int): Int = noImpl fun clear(mask: Int): Unit = noImpl fun clearColor(red: Float, green: Float, blue: Float, alpha: Float): Unit = noImpl @@ -199,11 +199,11 @@ public inline fun WebGLContextAttributes(alpha: Boolean = true, depth: Boolean = fun stencilOp(fail: Int, zfail: Int, zpass: Int): Unit = noImpl fun stencilOpSeparate(face: Int, fail: Int, zfail: Int, zpass: Int): Unit = noImpl fun texImage2D(target: Int, level: Int, internalformat: Int, width: Int, height: Int, border: Int, format: Int, type: Int, pixels: ArrayBufferView?): Unit = noImpl - fun texImage2D(target: Int, level: Int, internalformat: Int, format: Int, type: Int, source: dynamic): Unit = noImpl + fun texImage2D(target: Int, level: Int, internalformat: Int, format: Int, type: Int, source: TexImageSource?): Unit = noImpl fun texParameterf(target: Int, pname: Int, param: Float): Unit = noImpl fun texParameteri(target: Int, pname: Int, param: Int): Unit = noImpl fun texSubImage2D(target: Int, level: Int, xoffset: Int, yoffset: Int, width: Int, height: Int, format: Int, type: Int, pixels: ArrayBufferView?): Unit = noImpl - fun texSubImage2D(target: Int, level: Int, xoffset: Int, yoffset: Int, format: Int, type: Int, source: dynamic): Unit = noImpl + fun texSubImage2D(target: Int, level: Int, xoffset: Int, yoffset: Int, format: Int, type: Int, source: TexImageSource?): Unit = noImpl fun uniform1f(location: WebGLUniformLocation?, x: Float): Unit = noImpl fun uniform1fv(location: WebGLUniformLocation?, v: Float32Array): Unit = noImpl fun uniform1fv(location: WebGLUniformLocation?, v: Array): Unit = noImpl @@ -236,19 +236,15 @@ public inline fun WebGLContextAttributes(alpha: Boolean = true, depth: Boolean = fun uniformMatrix4fv(location: WebGLUniformLocation?, transpose: Boolean, value: Array): Unit = noImpl fun useProgram(program: WebGLProgram?): Unit = noImpl fun validateProgram(program: WebGLProgram?): Unit = noImpl - fun vertexAttrib1f(indx: Int, x: Float): Unit = noImpl - fun vertexAttrib1fv(indx: Int, values: Float32Array): Unit = noImpl - fun vertexAttrib1fv(indx: Int, values: Array): Unit = noImpl - fun vertexAttrib2f(indx: Int, x: Float, y: Float): Unit = noImpl - fun vertexAttrib2fv(indx: Int, values: Float32Array): Unit = noImpl - fun vertexAttrib2fv(indx: Int, values: Array): Unit = noImpl - fun vertexAttrib3f(indx: Int, x: Float, y: Float, z: Float): Unit = noImpl - fun vertexAttrib3fv(indx: Int, values: Float32Array): Unit = noImpl - fun vertexAttrib3fv(indx: Int, values: Array): Unit = noImpl - fun vertexAttrib4f(indx: Int, x: Float, y: Float, z: Float, w: Float): Unit = noImpl - fun vertexAttrib4fv(indx: Int, values: Float32Array): Unit = noImpl - fun vertexAttrib4fv(indx: Int, values: Array): Unit = noImpl - fun vertexAttribPointer(indx: Int, size: Int, type: Int, normalized: Boolean, stride: Int, offset: Int): Unit = noImpl + fun vertexAttrib1f(index: Int, x: Float): Unit = noImpl + fun vertexAttrib1fv(index: Int, values: dynamic): Unit = noImpl + fun vertexAttrib2f(index: Int, x: Float, y: Float): Unit = noImpl + fun vertexAttrib2fv(index: Int, values: dynamic): Unit = noImpl + fun vertexAttrib3f(index: Int, x: Float, y: Float, z: Float): Unit = noImpl + fun vertexAttrib3fv(index: Int, values: dynamic): Unit = noImpl + fun vertexAttrib4f(index: Int, x: Float, y: Float, z: Float, w: Float): Unit = noImpl + fun vertexAttrib4fv(index: Int, values: dynamic): Unit = noImpl + fun vertexAttribPointer(index: Int, size: Int, type: Int, normalized: Boolean, stride: Int, offset: Int): Unit = noImpl fun viewport(x: Int, y: Int, width: Int, height: Int): Unit = noImpl companion object { @@ -552,27 +548,331 @@ public inline fun WebGLContextAttributes(alpha: Boolean = true, depth: Boolean = } } +@native public abstract class WebGLRenderingContext : WebGLRenderingContextBase, RenderingContext { + + companion object { + val DEPTH_BUFFER_BIT: Int = 0x00000100 + val STENCIL_BUFFER_BIT: Int = 0x00000400 + val COLOR_BUFFER_BIT: Int = 0x00004000 + val POINTS: Int = 0x0000 + val LINES: Int = 0x0001 + val LINE_LOOP: Int = 0x0002 + val LINE_STRIP: Int = 0x0003 + val TRIANGLES: Int = 0x0004 + val TRIANGLE_STRIP: Int = 0x0005 + val TRIANGLE_FAN: Int = 0x0006 + val ZERO: Int = 0 + val ONE: Int = 1 + val SRC_COLOR: Int = 0x0300 + val ONE_MINUS_SRC_COLOR: Int = 0x0301 + val SRC_ALPHA: Int = 0x0302 + val ONE_MINUS_SRC_ALPHA: Int = 0x0303 + val DST_ALPHA: Int = 0x0304 + val ONE_MINUS_DST_ALPHA: Int = 0x0305 + val DST_COLOR: Int = 0x0306 + val ONE_MINUS_DST_COLOR: Int = 0x0307 + val SRC_ALPHA_SATURATE: Int = 0x0308 + val FUNC_ADD: Int = 0x8006 + val BLEND_EQUATION: Int = 0x8009 + val BLEND_EQUATION_RGB: Int = 0x8009 + val BLEND_EQUATION_ALPHA: Int = 0x883D + val FUNC_SUBTRACT: Int = 0x800A + val FUNC_REVERSE_SUBTRACT: Int = 0x800B + val BLEND_DST_RGB: Int = 0x80C8 + val BLEND_SRC_RGB: Int = 0x80C9 + val BLEND_DST_ALPHA: Int = 0x80CA + val BLEND_SRC_ALPHA: Int = 0x80CB + val CONSTANT_COLOR: Int = 0x8001 + val ONE_MINUS_CONSTANT_COLOR: Int = 0x8002 + val CONSTANT_ALPHA: Int = 0x8003 + val ONE_MINUS_CONSTANT_ALPHA: Int = 0x8004 + val BLEND_COLOR: Int = 0x8005 + val ARRAY_BUFFER: Int = 0x8892 + val ELEMENT_ARRAY_BUFFER: Int = 0x8893 + val ARRAY_BUFFER_BINDING: Int = 0x8894 + val ELEMENT_ARRAY_BUFFER_BINDING: Int = 0x8895 + val STREAM_DRAW: Int = 0x88E0 + val STATIC_DRAW: Int = 0x88E4 + val DYNAMIC_DRAW: Int = 0x88E8 + val BUFFER_SIZE: Int = 0x8764 + val BUFFER_USAGE: Int = 0x8765 + val CURRENT_VERTEX_ATTRIB: Int = 0x8626 + val FRONT: Int = 0x0404 + val BACK: Int = 0x0405 + val FRONT_AND_BACK: Int = 0x0408 + val CULL_FACE: Int = 0x0B44 + val BLEND: Int = 0x0BE2 + val DITHER: Int = 0x0BD0 + val STENCIL_TEST: Int = 0x0B90 + val DEPTH_TEST: Int = 0x0B71 + val SCISSOR_TEST: Int = 0x0C11 + val POLYGON_OFFSET_FILL: Int = 0x8037 + val SAMPLE_ALPHA_TO_COVERAGE: Int = 0x809E + val SAMPLE_COVERAGE: Int = 0x80A0 + val NO_ERROR: Int = 0 + val INVALID_ENUM: Int = 0x0500 + val INVALID_VALUE: Int = 0x0501 + val INVALID_OPERATION: Int = 0x0502 + val OUT_OF_MEMORY: Int = 0x0505 + val CW: Int = 0x0900 + val CCW: Int = 0x0901 + val LINE_WIDTH: Int = 0x0B21 + val ALIASED_POINT_SIZE_RANGE: Int = 0x846D + val ALIASED_LINE_WIDTH_RANGE: Int = 0x846E + val CULL_FACE_MODE: Int = 0x0B45 + val FRONT_FACE: Int = 0x0B46 + val DEPTH_RANGE: Int = 0x0B70 + val DEPTH_WRITEMASK: Int = 0x0B72 + val DEPTH_CLEAR_VALUE: Int = 0x0B73 + val DEPTH_FUNC: Int = 0x0B74 + val STENCIL_CLEAR_VALUE: Int = 0x0B91 + val STENCIL_FUNC: Int = 0x0B92 + val STENCIL_FAIL: Int = 0x0B94 + val STENCIL_PASS_DEPTH_FAIL: Int = 0x0B95 + val STENCIL_PASS_DEPTH_PASS: Int = 0x0B96 + val STENCIL_REF: Int = 0x0B97 + val STENCIL_VALUE_MASK: Int = 0x0B93 + val STENCIL_WRITEMASK: Int = 0x0B98 + val STENCIL_BACK_FUNC: Int = 0x8800 + val STENCIL_BACK_FAIL: Int = 0x8801 + val STENCIL_BACK_PASS_DEPTH_FAIL: Int = 0x8802 + val STENCIL_BACK_PASS_DEPTH_PASS: Int = 0x8803 + val STENCIL_BACK_REF: Int = 0x8CA3 + val STENCIL_BACK_VALUE_MASK: Int = 0x8CA4 + val STENCIL_BACK_WRITEMASK: Int = 0x8CA5 + val VIEWPORT: Int = 0x0BA2 + val SCISSOR_BOX: Int = 0x0C10 + val COLOR_CLEAR_VALUE: Int = 0x0C22 + val COLOR_WRITEMASK: Int = 0x0C23 + val UNPACK_ALIGNMENT: Int = 0x0CF5 + val PACK_ALIGNMENT: Int = 0x0D05 + val MAX_TEXTURE_SIZE: Int = 0x0D33 + val MAX_VIEWPORT_DIMS: Int = 0x0D3A + val SUBPIXEL_BITS: Int = 0x0D50 + val RED_BITS: Int = 0x0D52 + val GREEN_BITS: Int = 0x0D53 + val BLUE_BITS: Int = 0x0D54 + val ALPHA_BITS: Int = 0x0D55 + val DEPTH_BITS: Int = 0x0D56 + val STENCIL_BITS: Int = 0x0D57 + val POLYGON_OFFSET_UNITS: Int = 0x2A00 + val POLYGON_OFFSET_FACTOR: Int = 0x8038 + val TEXTURE_BINDING_2D: Int = 0x8069 + val SAMPLE_BUFFERS: Int = 0x80A8 + val SAMPLES: Int = 0x80A9 + val SAMPLE_COVERAGE_VALUE: Int = 0x80AA + val SAMPLE_COVERAGE_INVERT: Int = 0x80AB + val COMPRESSED_TEXTURE_FORMATS: Int = 0x86A3 + val DONT_CARE: Int = 0x1100 + val FASTEST: Int = 0x1101 + val NICEST: Int = 0x1102 + val GENERATE_MIPMAP_HINT: Int = 0x8192 + val BYTE: Int = 0x1400 + val UNSIGNED_BYTE: Int = 0x1401 + val SHORT: Int = 0x1402 + val UNSIGNED_SHORT: Int = 0x1403 + val INT: Int = 0x1404 + val UNSIGNED_INT: Int = 0x1405 + val FLOAT: Int = 0x1406 + val DEPTH_COMPONENT: Int = 0x1902 + val ALPHA: Int = 0x1906 + val RGB: Int = 0x1907 + val RGBA: Int = 0x1908 + val LUMINANCE: Int = 0x1909 + val LUMINANCE_ALPHA: Int = 0x190A + val UNSIGNED_SHORT_4_4_4_4: Int = 0x8033 + val UNSIGNED_SHORT_5_5_5_1: Int = 0x8034 + val UNSIGNED_SHORT_5_6_5: Int = 0x8363 + val FRAGMENT_SHADER: Int = 0x8B30 + val VERTEX_SHADER: Int = 0x8B31 + val MAX_VERTEX_ATTRIBS: Int = 0x8869 + val MAX_VERTEX_UNIFORM_VECTORS: Int = 0x8DFB + val MAX_VARYING_VECTORS: Int = 0x8DFC + val MAX_COMBINED_TEXTURE_IMAGE_UNITS: Int = 0x8B4D + val MAX_VERTEX_TEXTURE_IMAGE_UNITS: Int = 0x8B4C + val MAX_TEXTURE_IMAGE_UNITS: Int = 0x8872 + val MAX_FRAGMENT_UNIFORM_VECTORS: Int = 0x8DFD + val SHADER_TYPE: Int = 0x8B4F + val DELETE_STATUS: Int = 0x8B80 + val LINK_STATUS: Int = 0x8B82 + val VALIDATE_STATUS: Int = 0x8B83 + val ATTACHED_SHADERS: Int = 0x8B85 + val ACTIVE_UNIFORMS: Int = 0x8B86 + val ACTIVE_ATTRIBUTES: Int = 0x8B89 + val SHADING_LANGUAGE_VERSION: Int = 0x8B8C + val CURRENT_PROGRAM: Int = 0x8B8D + val NEVER: Int = 0x0200 + val LESS: Int = 0x0201 + val EQUAL: Int = 0x0202 + val LEQUAL: Int = 0x0203 + val GREATER: Int = 0x0204 + val NOTEQUAL: Int = 0x0205 + val GEQUAL: Int = 0x0206 + val ALWAYS: Int = 0x0207 + val KEEP: Int = 0x1E00 + val REPLACE: Int = 0x1E01 + val INCR: Int = 0x1E02 + val DECR: Int = 0x1E03 + val INVERT: Int = 0x150A + val INCR_WRAP: Int = 0x8507 + val DECR_WRAP: Int = 0x8508 + val VENDOR: Int = 0x1F00 + val RENDERER: Int = 0x1F01 + val VERSION: Int = 0x1F02 + val NEAREST: Int = 0x2600 + val LINEAR: Int = 0x2601 + val NEAREST_MIPMAP_NEAREST: Int = 0x2700 + val LINEAR_MIPMAP_NEAREST: Int = 0x2701 + val NEAREST_MIPMAP_LINEAR: Int = 0x2702 + val LINEAR_MIPMAP_LINEAR: Int = 0x2703 + val TEXTURE_MAG_FILTER: Int = 0x2800 + val TEXTURE_MIN_FILTER: Int = 0x2801 + val TEXTURE_WRAP_S: Int = 0x2802 + val TEXTURE_WRAP_T: Int = 0x2803 + val TEXTURE_2D: Int = 0x0DE1 + val TEXTURE: Int = 0x1702 + val TEXTURE_CUBE_MAP: Int = 0x8513 + val TEXTURE_BINDING_CUBE_MAP: Int = 0x8514 + val TEXTURE_CUBE_MAP_POSITIVE_X: Int = 0x8515 + val TEXTURE_CUBE_MAP_NEGATIVE_X: Int = 0x8516 + val TEXTURE_CUBE_MAP_POSITIVE_Y: Int = 0x8517 + val TEXTURE_CUBE_MAP_NEGATIVE_Y: Int = 0x8518 + val TEXTURE_CUBE_MAP_POSITIVE_Z: Int = 0x8519 + val TEXTURE_CUBE_MAP_NEGATIVE_Z: Int = 0x851A + val MAX_CUBE_MAP_TEXTURE_SIZE: Int = 0x851C + val TEXTURE0: Int = 0x84C0 + val TEXTURE1: Int = 0x84C1 + val TEXTURE2: Int = 0x84C2 + val TEXTURE3: Int = 0x84C3 + val TEXTURE4: Int = 0x84C4 + val TEXTURE5: Int = 0x84C5 + val TEXTURE6: Int = 0x84C6 + val TEXTURE7: Int = 0x84C7 + val TEXTURE8: Int = 0x84C8 + val TEXTURE9: Int = 0x84C9 + val TEXTURE10: Int = 0x84CA + val TEXTURE11: Int = 0x84CB + val TEXTURE12: Int = 0x84CC + val TEXTURE13: Int = 0x84CD + val TEXTURE14: Int = 0x84CE + val TEXTURE15: Int = 0x84CF + val TEXTURE16: Int = 0x84D0 + val TEXTURE17: Int = 0x84D1 + val TEXTURE18: Int = 0x84D2 + val TEXTURE19: Int = 0x84D3 + val TEXTURE20: Int = 0x84D4 + val TEXTURE21: Int = 0x84D5 + val TEXTURE22: Int = 0x84D6 + val TEXTURE23: Int = 0x84D7 + val TEXTURE24: Int = 0x84D8 + val TEXTURE25: Int = 0x84D9 + val TEXTURE26: Int = 0x84DA + val TEXTURE27: Int = 0x84DB + val TEXTURE28: Int = 0x84DC + val TEXTURE29: Int = 0x84DD + val TEXTURE30: Int = 0x84DE + val TEXTURE31: Int = 0x84DF + val ACTIVE_TEXTURE: Int = 0x84E0 + val REPEAT: Int = 0x2901 + val CLAMP_TO_EDGE: Int = 0x812F + val MIRRORED_REPEAT: Int = 0x8370 + val FLOAT_VEC2: Int = 0x8B50 + val FLOAT_VEC3: Int = 0x8B51 + val FLOAT_VEC4: Int = 0x8B52 + val INT_VEC2: Int = 0x8B53 + val INT_VEC3: Int = 0x8B54 + val INT_VEC4: Int = 0x8B55 + val BOOL: Int = 0x8B56 + val BOOL_VEC2: Int = 0x8B57 + val BOOL_VEC3: Int = 0x8B58 + val BOOL_VEC4: Int = 0x8B59 + val FLOAT_MAT2: Int = 0x8B5A + val FLOAT_MAT3: Int = 0x8B5B + val FLOAT_MAT4: Int = 0x8B5C + val SAMPLER_2D: Int = 0x8B5E + val SAMPLER_CUBE: Int = 0x8B60 + val VERTEX_ATTRIB_ARRAY_ENABLED: Int = 0x8622 + val VERTEX_ATTRIB_ARRAY_SIZE: Int = 0x8623 + val VERTEX_ATTRIB_ARRAY_STRIDE: Int = 0x8624 + val VERTEX_ATTRIB_ARRAY_TYPE: Int = 0x8625 + val VERTEX_ATTRIB_ARRAY_NORMALIZED: Int = 0x886A + val VERTEX_ATTRIB_ARRAY_POINTER: Int = 0x8645 + val VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: Int = 0x889F + val IMPLEMENTATION_COLOR_READ_TYPE: Int = 0x8B9A + val IMPLEMENTATION_COLOR_READ_FORMAT: Int = 0x8B9B + val COMPILE_STATUS: Int = 0x8B81 + val LOW_FLOAT: Int = 0x8DF0 + val MEDIUM_FLOAT: Int = 0x8DF1 + val HIGH_FLOAT: Int = 0x8DF2 + val LOW_INT: Int = 0x8DF3 + val MEDIUM_INT: Int = 0x8DF4 + val HIGH_INT: Int = 0x8DF5 + val FRAMEBUFFER: Int = 0x8D40 + val RENDERBUFFER: Int = 0x8D41 + val RGBA4: Int = 0x8056 + val RGB5_A1: Int = 0x8057 + val RGB565: Int = 0x8D62 + val DEPTH_COMPONENT16: Int = 0x81A5 + val STENCIL_INDEX: Int = 0x1901 + val STENCIL_INDEX8: Int = 0x8D48 + val DEPTH_STENCIL: Int = 0x84F9 + val RENDERBUFFER_WIDTH: Int = 0x8D42 + val RENDERBUFFER_HEIGHT: Int = 0x8D43 + val RENDERBUFFER_INTERNAL_FORMAT: Int = 0x8D44 + val RENDERBUFFER_RED_SIZE: Int = 0x8D50 + val RENDERBUFFER_GREEN_SIZE: Int = 0x8D51 + val RENDERBUFFER_BLUE_SIZE: Int = 0x8D52 + val RENDERBUFFER_ALPHA_SIZE: Int = 0x8D53 + val RENDERBUFFER_DEPTH_SIZE: Int = 0x8D54 + val RENDERBUFFER_STENCIL_SIZE: Int = 0x8D55 + val FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: Int = 0x8CD0 + val FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: Int = 0x8CD1 + val FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: Int = 0x8CD2 + val FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: Int = 0x8CD3 + val COLOR_ATTACHMENT0: Int = 0x8CE0 + val DEPTH_ATTACHMENT: Int = 0x8D00 + val STENCIL_ATTACHMENT: Int = 0x8D20 + val DEPTH_STENCIL_ATTACHMENT: Int = 0x821A + val NONE: Int = 0 + val FRAMEBUFFER_COMPLETE: Int = 0x8CD5 + val FRAMEBUFFER_INCOMPLETE_ATTACHMENT: Int = 0x8CD6 + val FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: Int = 0x8CD7 + val FRAMEBUFFER_INCOMPLETE_DIMENSIONS: Int = 0x8CD9 + val FRAMEBUFFER_UNSUPPORTED: Int = 0x8CDD + val FRAMEBUFFER_BINDING: Int = 0x8CA6 + val RENDERBUFFER_BINDING: Int = 0x8CA7 + val MAX_RENDERBUFFER_SIZE: Int = 0x84E8 + val INVALID_FRAMEBUFFER_OPERATION: Int = 0x0506 + val UNPACK_FLIP_Y_WEBGL: Int = 0x9240 + val UNPACK_PREMULTIPLY_ALPHA_WEBGL: Int = 0x9241 + val CONTEXT_LOST_WEBGL: Int = 0x9242 + val UNPACK_COLORSPACE_CONVERSION_WEBGL: Int = 0x9243 + val BROWSER_DEFAULT_WEBGL: Int = 0x9244 + } +} + @native public open class WebGLContextEvent(type: String, eventInit: WebGLContextEventInit = noImpl) : Event(type, noImpl) { open val statusMessage: String get() = noImpl } @native public interface WebGLContextEventInit : EventInit { - var statusMessage: String + var statusMessage: String? /* = "" */ } @Suppress("NOTHING_TO_INLINE") -public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean = false, cancelable: Boolean = false): WebGLContextEventInit { +public inline fun WebGLContextEventInit(statusMessage: String? = "", bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): WebGLContextEventInit { val o = js("({})") o["statusMessage"] = statusMessage o["bubbles"] = bubbles o["cancelable"] = cancelable + o["composed"] = composed return o } -@native public open class ArrayBuffer(length: Int) : Transferable { +@native public open class ArrayBuffer(length: Int) : BufferDataSource { open val byteLength: Int get() = noImpl fun slice(begin: Int, end: Int = noImpl): ArrayBuffer = noImpl @@ -582,6 +882,15 @@ public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean } } +@native public interface ArrayBufferView : BufferDataSource { + val buffer: ArrayBuffer + get() = noImpl + val byteOffset: Int + get() = noImpl + val byteLength: Int + get() = noImpl +} + @native public open class Int8Array : ArrayBufferView { constructor(length: Int) constructor(array: Int8Array) @@ -589,12 +898,6 @@ public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl) open val length: Int get() = noImpl - open val buffer: ArrayBuffer - get() = noImpl - open val byteOffset: Int - get() = noImpl - open val byteLength: Int - get() = noImpl @Suppress("NATIVE_GETTER_RETURN_TYPE_SHOULD_BE_NULLABLE") @nativeGetter operator fun get(index: Int): Byte = noImpl @@ -616,12 +919,6 @@ public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl) open val length: Int get() = noImpl - open val buffer: ArrayBuffer - get() = noImpl - open val byteOffset: Int - get() = noImpl - open val byteLength: Int - get() = noImpl @Suppress("NATIVE_GETTER_RETURN_TYPE_SHOULD_BE_NULLABLE") @nativeGetter operator fun get(index: Int): Byte = noImpl @@ -643,12 +940,6 @@ public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl) open val length: Int get() = noImpl - open val buffer: ArrayBuffer - get() = noImpl - open val byteOffset: Int - get() = noImpl - open val byteLength: Int - get() = noImpl @Suppress("NATIVE_GETTER_RETURN_TYPE_SHOULD_BE_NULLABLE") @nativeGetter operator fun get(index: Int): Byte = noImpl @@ -670,12 +961,6 @@ public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl) open val length: Int get() = noImpl - open val buffer: ArrayBuffer - get() = noImpl - open val byteOffset: Int - get() = noImpl - open val byteLength: Int - get() = noImpl @Suppress("NATIVE_GETTER_RETURN_TYPE_SHOULD_BE_NULLABLE") @nativeGetter operator fun get(index: Int): Short = noImpl @@ -697,12 +982,6 @@ public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl) open val length: Int get() = noImpl - open val buffer: ArrayBuffer - get() = noImpl - open val byteOffset: Int - get() = noImpl - open val byteLength: Int - get() = noImpl @Suppress("NATIVE_GETTER_RETURN_TYPE_SHOULD_BE_NULLABLE") @nativeGetter operator fun get(index: Int): Short = noImpl @@ -724,12 +1003,6 @@ public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl) open val length: Int get() = noImpl - open val buffer: ArrayBuffer - get() = noImpl - open val byteOffset: Int - get() = noImpl - open val byteLength: Int - get() = noImpl @Suppress("NATIVE_GETTER_RETURN_TYPE_SHOULD_BE_NULLABLE") @nativeGetter operator fun get(index: Int): Int = noImpl @@ -751,12 +1024,6 @@ public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl) open val length: Int get() = noImpl - open val buffer: ArrayBuffer - get() = noImpl - open val byteOffset: Int - get() = noImpl - open val byteLength: Int - get() = noImpl @Suppress("NATIVE_GETTER_RETURN_TYPE_SHOULD_BE_NULLABLE") @nativeGetter operator fun get(index: Int): Int = noImpl @@ -778,12 +1045,6 @@ public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl) open val length: Int get() = noImpl - open val buffer: ArrayBuffer - get() = noImpl - open val byteOffset: Int - get() = noImpl - open val byteLength: Int - get() = noImpl @Suppress("NATIVE_GETTER_RETURN_TYPE_SHOULD_BE_NULLABLE") @nativeGetter operator fun get(index: Int): Float = noImpl @@ -805,12 +1066,6 @@ public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean constructor(buffer: ArrayBuffer, byteOffset: Int = noImpl, length: Int = noImpl) open val length: Int get() = noImpl - open val buffer: ArrayBuffer - get() = noImpl - open val byteOffset: Int - get() = noImpl - open val byteLength: Int - get() = noImpl @Suppress("NATIVE_GETTER_RETURN_TYPE_SHOULD_BE_NULLABLE") @nativeGetter operator fun get(index: Int): Double = noImpl @@ -826,12 +1081,6 @@ public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean } @native public open class DataView(buffer: ArrayBuffer, byteOffset: Int = noImpl, byteLength: Int = noImpl) : ArrayBufferView { - open val buffer: ArrayBuffer - get() = noImpl - open val byteOffset: Int - get() = noImpl - open val byteLength: Int - get() = noImpl fun getInt8(byteOffset: Int): Byte = noImpl fun getUint8(byteOffset: Int): Byte = noImpl fun getInt16(byteOffset: Int, littleEndian: Boolean = noImpl): Short = noImpl @@ -850,3 +1099,9 @@ public inline fun WebGLContextEventInit(statusMessage: String, bubbles: Boolean fun setFloat64(byteOffset: Int, value: Double, littleEndian: Boolean = noImpl): Unit = noImpl } +@native public @marker interface BufferDataSource { +} + +@native public @marker interface TexImageSource { +} + diff --git a/js/js.libraries/src/generated/org.w3c.dom.css.kt b/js/js.libraries/src/generated/org.w3c.dom.css.kt index 2e3b2b2005e..e19da31fb2e 100644 --- a/js/js.libraries/src/generated/org.w3c.dom.css.kt +++ b/js/js.libraries/src/generated/org.w3c.dom.css.kt @@ -20,690 +20,693 @@ import org.w3c.performance.* import org.w3c.workers.* import org.w3c.xhr.* -@native public interface CSSStyleDeclaration { - var cssText: String +@native public abstract class CSSStyleDeclaration { + open var cssText: String get() = noImpl set(value) = noImpl - val length: Int + open val length: Int get() = noImpl - val parentRule: CSSRule? + open val parentRule: CSSRule? get() = noImpl - var cssFloat: String + open var cssFloat: String get() = noImpl set(value) = noImpl - var _dashed_attribute: String + open var _dashed_attribute: String get() = noImpl set(value) = noImpl - var _camel_cased_attribute: String + open var _camel_cased_attribute: String get() = noImpl set(value) = noImpl - var alignContent: String + open var _webkit_cased_attribute: String get() = noImpl set(value) = noImpl - var alignItems: String + open var alignContent: String get() = noImpl set(value) = noImpl - var alignSelf: String + open var alignItems: String get() = noImpl set(value) = noImpl - var animation: String + open var alignSelf: String get() = noImpl set(value) = noImpl - var animationDelay: String + open var animation: String get() = noImpl set(value) = noImpl - var animationDirection: String + open var animationDelay: String get() = noImpl set(value) = noImpl - var animationDuration: String + open var animationDirection: String get() = noImpl set(value) = noImpl - var animationFillMode: String + open var animationDuration: String get() = noImpl set(value) = noImpl - var animationIterationCount: String + open var animationFillMode: String get() = noImpl set(value) = noImpl - var animationName: String + open var animationIterationCount: String get() = noImpl set(value) = noImpl - var animationPlayState: String + open var animationName: String get() = noImpl set(value) = noImpl - var animationTimingFunction: String + open var animationPlayState: String get() = noImpl set(value) = noImpl - var backfaceVisibility: String + open var animationTimingFunction: String get() = noImpl set(value) = noImpl - var background: String + open var backfaceVisibility: String get() = noImpl set(value) = noImpl - var backgroundAttachment: String + open var background: String get() = noImpl set(value) = noImpl - var backgroundClip: String + open var backgroundAttachment: String get() = noImpl set(value) = noImpl - var backgroundColor: String + open var backgroundClip: String get() = noImpl set(value) = noImpl - var backgroundImage: String + open var backgroundColor: String get() = noImpl set(value) = noImpl - var backgroundOrigin: String + open var backgroundImage: String get() = noImpl set(value) = noImpl - var backgroundPosition: String + open var backgroundOrigin: String get() = noImpl set(value) = noImpl - var backgroundRepeat: String + open var backgroundPosition: String get() = noImpl set(value) = noImpl - var backgroundSize: String + open var backgroundRepeat: String get() = noImpl set(value) = noImpl - var border: String + open var backgroundSize: String get() = noImpl set(value) = noImpl - var borderBottom: String + open var border: String get() = noImpl set(value) = noImpl - var borderBottomColor: String + open var borderBottom: String get() = noImpl set(value) = noImpl - var borderBottomLeftRadius: String + open var borderBottomColor: String get() = noImpl set(value) = noImpl - var borderBottomRightRadius: String + open var borderBottomLeftRadius: String get() = noImpl set(value) = noImpl - var borderBottomStyle: String + open var borderBottomRightRadius: String get() = noImpl set(value) = noImpl - var borderBottomWidth: String + open var borderBottomStyle: String get() = noImpl set(value) = noImpl - var borderCollapse: String + open var borderBottomWidth: String get() = noImpl set(value) = noImpl - var borderColor: String + open var borderCollapse: String get() = noImpl set(value) = noImpl - var borderImage: String + open var borderColor: String get() = noImpl set(value) = noImpl - var borderImageOutset: String + open var borderImage: String get() = noImpl set(value) = noImpl - var borderImageRepeat: String + open var borderImageOutset: String get() = noImpl set(value) = noImpl - var borderImageSlice: String + open var borderImageRepeat: String get() = noImpl set(value) = noImpl - var borderImageSource: String + open var borderImageSlice: String get() = noImpl set(value) = noImpl - var borderImageWidth: String + open var borderImageSource: String get() = noImpl set(value) = noImpl - var borderLeft: String + open var borderImageWidth: String get() = noImpl set(value) = noImpl - var borderLeftColor: String + open var borderLeft: String get() = noImpl set(value) = noImpl - var borderLeftStyle: String + open var borderLeftColor: String get() = noImpl set(value) = noImpl - var borderLeftWidth: String + open var borderLeftStyle: String get() = noImpl set(value) = noImpl - var borderRadius: String + open var borderLeftWidth: String get() = noImpl set(value) = noImpl - var borderRight: String + open var borderRadius: String get() = noImpl set(value) = noImpl - var borderRightColor: String + open var borderRight: String get() = noImpl set(value) = noImpl - var borderRightStyle: String + open var borderRightColor: String get() = noImpl set(value) = noImpl - var borderRightWidth: String + open var borderRightStyle: String get() = noImpl set(value) = noImpl - var borderSpacing: String + open var borderRightWidth: String get() = noImpl set(value) = noImpl - var borderStyle: String + open var borderSpacing: String get() = noImpl set(value) = noImpl - var borderTop: String + open var borderStyle: String get() = noImpl set(value) = noImpl - var borderTopColor: String + open var borderTop: String get() = noImpl set(value) = noImpl - var borderTopLeftRadius: String + open var borderTopColor: String get() = noImpl set(value) = noImpl - var borderTopRightRadius: String + open var borderTopLeftRadius: String get() = noImpl set(value) = noImpl - var borderTopStyle: String + open var borderTopRightRadius: String get() = noImpl set(value) = noImpl - var borderTopWidth: String + open var borderTopStyle: String get() = noImpl set(value) = noImpl - var borderWidth: String + open var borderTopWidth: String get() = noImpl set(value) = noImpl - var bottom: String + open var borderWidth: String get() = noImpl set(value) = noImpl - var boxDecorationBreak: String + open var bottom: String get() = noImpl set(value) = noImpl - var boxShadow: String + open var boxDecorationBreak: String get() = noImpl set(value) = noImpl - var boxSizing: String + open var boxShadow: String get() = noImpl set(value) = noImpl - var breakAfter: String + open var boxSizing: String get() = noImpl set(value) = noImpl - var breakBefore: String + open var breakAfter: String get() = noImpl set(value) = noImpl - var breakInside: String + open var breakBefore: String get() = noImpl set(value) = noImpl - var captionSide: String + open var breakInside: String get() = noImpl set(value) = noImpl - var clear: String + open var captionSide: String get() = noImpl set(value) = noImpl - var clip: String + open var clear: String get() = noImpl set(value) = noImpl - var color: String + open var clip: String get() = noImpl set(value) = noImpl - var columnCount: String + open var color: String get() = noImpl set(value) = noImpl - var columnFill: String + open var columnCount: String get() = noImpl set(value) = noImpl - var columnGap: String + open var columnFill: String get() = noImpl set(value) = noImpl - var columnRule: String + open var columnGap: String get() = noImpl set(value) = noImpl - var columnRuleColor: String + open var columnRule: String get() = noImpl set(value) = noImpl - var columnRuleStyle: String + open var columnRuleColor: String get() = noImpl set(value) = noImpl - var columnRuleWidth: String + open var columnRuleStyle: String get() = noImpl set(value) = noImpl - var columnSpan: String + open var columnRuleWidth: String get() = noImpl set(value) = noImpl - var columnWidth: String + open var columnSpan: String get() = noImpl set(value) = noImpl - var columns: String + open var columnWidth: String get() = noImpl set(value) = noImpl - var content: String + open var columns: String get() = noImpl set(value) = noImpl - var counterIncrement: String + open var content: String get() = noImpl set(value) = noImpl - var counterReset: String + open var counterIncrement: String get() = noImpl set(value) = noImpl - var cursor: String + open var counterReset: String get() = noImpl set(value) = noImpl - var direction: String + open var cursor: String get() = noImpl set(value) = noImpl - var display: String + open var direction: String get() = noImpl set(value) = noImpl - var emptyCells: String + open var display: String get() = noImpl set(value) = noImpl - var filter: String + open var emptyCells: String get() = noImpl set(value) = noImpl - var flex: String + open var filter: String get() = noImpl set(value) = noImpl - var flexBasis: String + open var flex: String get() = noImpl set(value) = noImpl - var flexDirection: String + open var flexBasis: String get() = noImpl set(value) = noImpl - var flexFlow: String + open var flexDirection: String get() = noImpl set(value) = noImpl - var flexGrow: String + open var flexFlow: String get() = noImpl set(value) = noImpl - var flexShrink: String + open var flexGrow: String get() = noImpl set(value) = noImpl - var flexWrap: String + open var flexShrink: String get() = noImpl set(value) = noImpl - var font: String + open var flexWrap: String get() = noImpl set(value) = noImpl - var fontFamily: String + open var font: String get() = noImpl set(value) = noImpl - var fontFeatureSettings: String + open var fontFamily: String get() = noImpl set(value) = noImpl - var fontKerning: String + open var fontFeatureSettings: String get() = noImpl set(value) = noImpl - var fontLanguageOverride: String + open var fontKerning: String get() = noImpl set(value) = noImpl - var fontSize: String + open var fontLanguageOverride: String get() = noImpl set(value) = noImpl - var fontSizeAdjust: String + open var fontSize: String get() = noImpl set(value) = noImpl - var fontStretch: String + open var fontSizeAdjust: String get() = noImpl set(value) = noImpl - var fontStyle: String + open var fontStretch: String get() = noImpl set(value) = noImpl - var fontSynthesis: String + open var fontStyle: String get() = noImpl set(value) = noImpl - var fontVariant: String + open var fontSynthesis: String get() = noImpl set(value) = noImpl - var fontVariantAlternates: String + open var fontVariant: String get() = noImpl set(value) = noImpl - var fontVariantCaps: String + open var fontVariantAlternates: String get() = noImpl set(value) = noImpl - var fontVariantEastAsian: String + open var fontVariantCaps: String get() = noImpl set(value) = noImpl - var fontVariantLigatures: String + open var fontVariantEastAsian: String get() = noImpl set(value) = noImpl - var fontVariantNumeric: String + open var fontVariantLigatures: String get() = noImpl set(value) = noImpl - var fontVariantPosition: String + open var fontVariantNumeric: String get() = noImpl set(value) = noImpl - var fontWeight: String + open var fontVariantPosition: String get() = noImpl set(value) = noImpl - var hangingPunctuation: String + open var fontWeight: String get() = noImpl set(value) = noImpl - var height: String + open var hangingPunctuation: String get() = noImpl set(value) = noImpl - var hyphens: String + open var height: String get() = noImpl set(value) = noImpl - var imageOrientation: String + open var hyphens: String get() = noImpl set(value) = noImpl - var imageRendering: String + open var imageOrientation: String get() = noImpl set(value) = noImpl - var imageResolution: String + open var imageRendering: String get() = noImpl set(value) = noImpl - var imeMode: String + open var imageResolution: String get() = noImpl set(value) = noImpl - var justifyContent: String + open var imeMode: String get() = noImpl set(value) = noImpl - var left: String + open var justifyContent: String get() = noImpl set(value) = noImpl - var letterSpacing: String + open var left: String get() = noImpl set(value) = noImpl - var lineBreak: String + open var letterSpacing: String get() = noImpl set(value) = noImpl - var lineHeight: String + open var lineBreak: String get() = noImpl set(value) = noImpl - var listStyle: String + open var lineHeight: String get() = noImpl set(value) = noImpl - var listStyleImage: String + open var listStyle: String get() = noImpl set(value) = noImpl - var listStylePosition: String + open var listStyleImage: String get() = noImpl set(value) = noImpl - var listStyleType: String + open var listStylePosition: String get() = noImpl set(value) = noImpl - var margin: String + open var listStyleType: String get() = noImpl set(value) = noImpl - var marginBottom: String + open var margin: String get() = noImpl set(value) = noImpl - var marginLeft: String + open var marginBottom: String get() = noImpl set(value) = noImpl - var marginRight: String + open var marginLeft: String get() = noImpl set(value) = noImpl - var marginTop: String + open var marginRight: String get() = noImpl set(value) = noImpl - var mark: String + open var marginTop: String get() = noImpl set(value) = noImpl - var markAfter: String + open var mark: String get() = noImpl set(value) = noImpl - var markBefore: String + open var markAfter: String get() = noImpl set(value) = noImpl - var marks: String + open var markBefore: String get() = noImpl set(value) = noImpl - var marqueeDirection: String + open var marks: String get() = noImpl set(value) = noImpl - var marqueePlayCount: String + open var marqueeDirection: String get() = noImpl set(value) = noImpl - var marqueeSpeed: String + open var marqueePlayCount: String get() = noImpl set(value) = noImpl - var marqueeStyle: String + open var marqueeSpeed: String get() = noImpl set(value) = noImpl - var mask: String + open var marqueeStyle: String get() = noImpl set(value) = noImpl - var maskType: String + open var mask: String get() = noImpl set(value) = noImpl - var maxHeight: String + open var maskType: String get() = noImpl set(value) = noImpl - var maxWidth: String + open var maxHeight: String get() = noImpl set(value) = noImpl - var minHeight: String + open var maxWidth: String get() = noImpl set(value) = noImpl - var minWidth: String + open var minHeight: String get() = noImpl set(value) = noImpl - var navDown: String + open var minWidth: String get() = noImpl set(value) = noImpl - var navIndex: String + open var navDown: String get() = noImpl set(value) = noImpl - var navLeft: String + open var navIndex: String get() = noImpl set(value) = noImpl - var navRight: String + open var navLeft: String get() = noImpl set(value) = noImpl - var navUp: String + open var navRight: String get() = noImpl set(value) = noImpl - var objectFit: String + open var navUp: String get() = noImpl set(value) = noImpl - var objectPosition: String + open var objectFit: String get() = noImpl set(value) = noImpl - var opacity: String + open var objectPosition: String get() = noImpl set(value) = noImpl - var order: String + open var opacity: String get() = noImpl set(value) = noImpl - var orphans: String + open var order: String get() = noImpl set(value) = noImpl - var outline: String + open var orphans: String get() = noImpl set(value) = noImpl - var outlineColor: String + open var outline: String get() = noImpl set(value) = noImpl - var outlineOffset: String + open var outlineColor: String get() = noImpl set(value) = noImpl - var outlineStyle: String + open var outlineOffset: String get() = noImpl set(value) = noImpl - var outlineWidth: String + open var outlineStyle: String get() = noImpl set(value) = noImpl - var overflowWrap: String + open var outlineWidth: String get() = noImpl set(value) = noImpl - var overflowX: String + open var overflowWrap: String get() = noImpl set(value) = noImpl - var overflowY: String + open var overflowX: String get() = noImpl set(value) = noImpl - var padding: String + open var overflowY: String get() = noImpl set(value) = noImpl - var paddingBottom: String + open var padding: String get() = noImpl set(value) = noImpl - var paddingLeft: String + open var paddingBottom: String get() = noImpl set(value) = noImpl - var paddingRight: String + open var paddingLeft: String get() = noImpl set(value) = noImpl - var paddingTop: String + open var paddingRight: String get() = noImpl set(value) = noImpl - var pageBreakAfter: String + open var paddingTop: String get() = noImpl set(value) = noImpl - var pageBreakBefore: String + open var pageBreakAfter: String get() = noImpl set(value) = noImpl - var pageBreakInside: String + open var pageBreakBefore: String get() = noImpl set(value) = noImpl - var perspective: String + open var pageBreakInside: String get() = noImpl set(value) = noImpl - var perspectiveOrigin: String + open var perspective: String get() = noImpl set(value) = noImpl - var phonemes: String + open var perspectiveOrigin: String get() = noImpl set(value) = noImpl - var position: String + open var phonemes: String get() = noImpl set(value) = noImpl - var quotes: String + open var position: String get() = noImpl set(value) = noImpl - var resize: String + open var quotes: String get() = noImpl set(value) = noImpl - var rest: String + open var resize: String get() = noImpl set(value) = noImpl - var restAfter: String + open var rest: String get() = noImpl set(value) = noImpl - var restBefore: String + open var restAfter: String get() = noImpl set(value) = noImpl - var right: String + open var restBefore: String get() = noImpl set(value) = noImpl - var tabSize: String + open var right: String get() = noImpl set(value) = noImpl - var tableLayout: String + open var tabSize: String get() = noImpl set(value) = noImpl - var textAlign: String + open var tableLayout: String get() = noImpl set(value) = noImpl - var textAlignLast: String + open var textAlign: String get() = noImpl set(value) = noImpl - var textCombineUpright: String + open var textAlignLast: String get() = noImpl set(value) = noImpl - var textDecoration: String + open var textCombineUpright: String get() = noImpl set(value) = noImpl - var textDecorationColor: String + open var textDecoration: String get() = noImpl set(value) = noImpl - var textDecorationLine: String + open var textDecorationColor: String get() = noImpl set(value) = noImpl - var textDecorationStyle: String + open var textDecorationLine: String get() = noImpl set(value) = noImpl - var textIndent: String + open var textDecorationStyle: String get() = noImpl set(value) = noImpl - var textJustify: String + open var textIndent: String get() = noImpl set(value) = noImpl - var textOrientation: String + open var textJustify: String get() = noImpl set(value) = noImpl - var textOverflow: String + open var textOrientation: String get() = noImpl set(value) = noImpl - var textShadow: String + open var textOverflow: String get() = noImpl set(value) = noImpl - var textTransform: String + open var textShadow: String get() = noImpl set(value) = noImpl - var textUnderlinePosition: String + open var textTransform: String get() = noImpl set(value) = noImpl - var top: String + open var textUnderlinePosition: String get() = noImpl set(value) = noImpl - var transform: String + open var top: String get() = noImpl set(value) = noImpl - var transformOrigin: String + open var transform: String get() = noImpl set(value) = noImpl - var transformStyle: String + open var transformOrigin: String get() = noImpl set(value) = noImpl - var transition: String + open var transformStyle: String get() = noImpl set(value) = noImpl - var transitionDelay: String + open var transition: String get() = noImpl set(value) = noImpl - var transitionDuration: String + open var transitionDelay: String get() = noImpl set(value) = noImpl - var transitionProperty: String + open var transitionDuration: String get() = noImpl set(value) = noImpl - var transitionTimingFunction: String + open var transitionProperty: String get() = noImpl set(value) = noImpl - var unicodeBidi: String + open var transitionTimingFunction: String get() = noImpl set(value) = noImpl - var verticalAlign: String + open var unicodeBidi: String get() = noImpl set(value) = noImpl - var visibility: String + open var verticalAlign: String get() = noImpl set(value) = noImpl - var voiceBalance: String + open var visibility: String get() = noImpl set(value) = noImpl - var voiceDuration: String + open var voiceBalance: String get() = noImpl set(value) = noImpl - var voicePitch: String + open var voiceDuration: String get() = noImpl set(value) = noImpl - var voicePitchRange: String + open var voicePitch: String get() = noImpl set(value) = noImpl - var voiceRate: String + open var voicePitchRange: String get() = noImpl set(value) = noImpl - var voiceStress: String + open var voiceRate: String get() = noImpl set(value) = noImpl - var voiceVolume: String + open var voiceStress: String get() = noImpl set(value) = noImpl - var whiteSpace: String + open var voiceVolume: String get() = noImpl set(value) = noImpl - var widows: String + open var whiteSpace: String get() = noImpl set(value) = noImpl - var width: String + open var widows: String get() = noImpl set(value) = noImpl - var wordBreak: String + open var width: String get() = noImpl set(value) = noImpl - var wordSpacing: String + open var wordBreak: String get() = noImpl set(value) = noImpl - var wordWrap: String + open var wordSpacing: String get() = noImpl set(value) = noImpl - var writingMode: String + open var wordWrap: String get() = noImpl set(value) = noImpl - var zIndex: String + open var writingMode: String + get() = noImpl + set(value) = noImpl + open var zIndex: String get() = noImpl set(value) = noImpl fun item(index: Int): String = noImpl @@ -717,11 +720,11 @@ import org.w3c.xhr.* fun removeProperty(property: String): String = noImpl } -@native public interface MediaList { - var mediaText: String +@native public abstract class MediaList { + open var mediaText: String get() = noImpl set(value) = noImpl - val length: Int + open val length: Int get() = noImpl fun item(index: Int): String? = noImpl @nativeGetter @@ -730,58 +733,63 @@ import org.w3c.xhr.* fun deleteMedium(medium: String): Unit = noImpl } -@native public interface StyleSheet { - val type: String +@native public abstract class StyleSheet { + open val type: String get() = noImpl - val href: String? + open val href: String? get() = noImpl - val ownerNode: UnionElementOrProcessingInstruction? + open val ownerNode: UnionElementOrProcessingInstruction? get() = noImpl - val parentStyleSheet: StyleSheet? + open val parentStyleSheet: StyleSheet? get() = noImpl - val title: String? + open val title: String? get() = noImpl - val media: MediaList + open val media: MediaList get() = noImpl - var disabled: Boolean + open var disabled: Boolean get() = noImpl set(value) = noImpl } -@native public interface CSSStyleSheet : StyleSheet { - val ownerRule: CSSRule? +@native public abstract class CSSStyleSheet : StyleSheet() { + open val ownerRule: CSSRule? get() = noImpl - val cssRules: CSSRuleList + open val cssRules: CSSRuleList get() = noImpl fun insertRule(rule: String, index: Int): Int = noImpl fun deleteRule(index: Int): Unit = noImpl } -@native public interface StyleSheetList { - val length: Int +@native public abstract class StyleSheetList { + open val length: Int get() = noImpl fun item(index: Int): StyleSheet? = noImpl @nativeGetter operator fun get(index: Int): StyleSheet? = noImpl } -@native public interface CSSRuleList { - val length: Int +@native public interface LinkStyle { + val sheet: StyleSheet? + get() = noImpl +} + +@native public abstract class CSSRuleList { + open val length: Int get() = noImpl fun item(index: Int): CSSRule? = noImpl @nativeGetter operator fun get(index: Int): CSSRule? = noImpl } -@native public interface CSSRule { - val type: Short +@native public abstract class CSSRule { + open val type: Short get() = noImpl - var cssText: String + open var cssText: String get() = noImpl set(value) = noImpl - val parentRule: CSSRule? + open val parentRule: CSSRule? get() = noImpl - val parentStyleSheet: CSSStyleSheet? + open val parentStyleSheet: CSSStyleSheet? get() = noImpl companion object { @@ -796,75 +804,63 @@ import org.w3c.xhr.* } } -@native public interface CSSStyleRule : CSSRule { - var selectorText: String +@native public abstract class CSSStyleRule : CSSRule() { + open var selectorText: String get() = noImpl set(value) = noImpl - val style: CSSStyleDeclaration + open val style: CSSStyleDeclaration get() = noImpl } -@native public interface CSSImportRule : CSSRule { - val href: String +@native public abstract class CSSImportRule : CSSRule() { + open val href: String get() = noImpl - val media: MediaList + open val media: MediaList get() = noImpl - val styleSheet: CSSStyleSheet + open val styleSheet: CSSStyleSheet get() = noImpl } -@native public interface CSSGroupingRule : CSSRule { - val cssRules: CSSRuleList +@native public abstract class CSSGroupingRule : CSSRule() { + open val cssRules: CSSRuleList get() = noImpl fun insertRule(rule: String, index: Int): Int = noImpl fun deleteRule(index: Int): Unit = noImpl } -@native public interface CSSMediaRule : CSSGroupingRule { - val media: MediaList +@native public abstract class CSSMediaRule : CSSGroupingRule() { + open val media: MediaList get() = noImpl } -@native public interface CSSPageRule : CSSGroupingRule { - var selectorText: String +@native public abstract class CSSPageRule : CSSGroupingRule() { + open var selectorText: String get() = noImpl set(value) = noImpl + open val style: CSSStyleDeclaration + get() = noImpl +} + +@native public abstract class CSSMarginRule : CSSRule() { + open val name: String + get() = noImpl + open val style: CSSStyleDeclaration + get() = noImpl +} + +@native public abstract class CSSNamespaceRule : CSSRule() { + open val namespaceURI: String + get() = noImpl + open val prefix: String + get() = noImpl +} + +@native public interface ElementCSSInlineStyle { val style: CSSStyleDeclaration get() = noImpl } -@native public interface CSSMarginRule : CSSRule { - val name: String - get() = noImpl - val style: CSSStyleDeclaration - get() = noImpl -} - -@native public interface CSSNamespaceRule : CSSRule { - var namespaceURI: String - get() = noImpl - set(value) = noImpl - var prefix: String - get() = noImpl - set(value) = noImpl -} - -@native public interface PseudoElement : GeometryNode { - val cascadedStyle: CSSStyleDeclaration - get() = noImpl - val defaultStyle: CSSStyleDeclaration - get() = noImpl - val rawComputedStyle: CSSStyleDeclaration - get() = noImpl - val usedStyle: CSSStyleDeclaration - get() = noImpl - fun getBoxQuads(options: BoxQuadOptions = noImpl): Array = noImpl - fun convertQuadFromNode(quad: DOMQuad, from: GeometryNode, options: ConvertCoordinateOptions = noImpl): DOMQuad = noImpl - fun convertRectFromNode(rect: DOMRectReadOnly, from: GeometryNode, options: ConvertCoordinateOptions = noImpl): DOMQuad = noImpl - fun convertPointFromNode(point: DOMPointInit, from: GeometryNode, options: ConvertCoordinateOptions = noImpl): DOMPoint = noImpl -} - -@native public interface CSS { +@native public abstract class CSS { companion object { fun escape(ident: String): String = noImpl diff --git a/js/js.libraries/src/generated/org.w3c.dom.events.kt b/js/js.libraries/src/generated/org.w3c.dom.events.kt index 4f712e3b91e..00b04c175e6 100644 --- a/js/js.libraries/src/generated/org.w3c.dom.events.kt +++ b/js/js.libraries/src/generated/org.w3c.dom.events.kt @@ -25,38 +25,37 @@ import org.w3c.xhr.* get() = noImpl open val detail: Int get() = noImpl - fun initUIEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, viewArg: Window?, detailArg: Int): Unit = noImpl } @native public interface UIEventInit : EventInit { - var view: Window? - var detail: Int + var view: Window? /* = null */ + var detail: Int? /* = 0 */ } @Suppress("NOTHING_TO_INLINE") -public inline fun UIEventInit(view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): UIEventInit { +public inline fun UIEventInit(view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): UIEventInit { val o = js("({})") o["view"] = view o["detail"] = detail o["bubbles"] = bubbles o["cancelable"] = cancelable + o["composed"] = composed return o } -@native public open class FocusEvent(typeArg: String, focusEventInitDict: FocusEventInit = noImpl) : UIEvent(noImpl, noImpl) { +@native public open class FocusEvent(type: String, eventInitDict: FocusEventInit = noImpl) : UIEvent(type, eventInitDict) { open val relatedTarget: EventTarget? get() = noImpl - fun initFocusEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, viewArg: Window?, detailArg: Int, relatedTargetArg: EventTarget?): Unit = noImpl } @native public interface FocusEventInit : UIEventInit { - var relatedTarget: EventTarget? + var relatedTarget: EventTarget? /* = null */ } @Suppress("NOTHING_TO_INLINE") -public inline fun FocusEventInit(relatedTarget: EventTarget? = null, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): FocusEventInit { +public inline fun FocusEventInit(relatedTarget: EventTarget? = null, view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): FocusEventInit { val o = js("({})") o["relatedTarget"] = relatedTarget @@ -64,41 +63,30 @@ public inline fun FocusEventInit(relatedTarget: EventTarget? = null, view: Windo o["detail"] = detail o["bubbles"] = bubbles o["cancelable"] = cancelable + o["composed"] = composed return o } -@native public open class MouseEvent(typeArg: String, mouseEventInitDict: MouseEventInit = noImpl) : UIEvent(noImpl, noImpl), UnionElementOrMouseEvent { +@native public open class MouseEvent(type: String, eventInitDict: MouseEventInit = noImpl) : UIEvent(type, eventInitDict), UnionElementOrMouseEvent { open val region: String? get() = noImpl -// open val screenX: Double -// get() = noImpl -// open val screenY: Double -// get() = noImpl - open val pageX: Double - get() = noImpl - open val pageY: Double - get() = noImpl -// open val clientX: Double -// get() = noImpl -// open val clientY: Double -// get() = noImpl -// open val x: Double -// get() = noImpl -// open val y: Double -// get() = noImpl - open val offsetX: Double - get() = noImpl - open val offsetY: Double - get() = noImpl open val screenX: Int get() = noImpl open val screenY: Int get() = noImpl + open val pageX: Double + get() = noImpl + open val pageY: Double + get() = noImpl open val clientX: Int get() = noImpl open val clientY: Int get() = noImpl + open val offsetX: Double + get() = noImpl + open val offsetY: Double + get() = noImpl open val ctrlKey: Boolean get() = noImpl open val shiftKey: Boolean @@ -109,26 +97,25 @@ public inline fun FocusEventInit(relatedTarget: EventTarget? = null, view: Windo get() = noImpl open val button: Short get() = noImpl - open val relatedTarget: EventTarget? - get() = noImpl open val buttons: Short get() = noImpl + open val relatedTarget: EventTarget? + get() = noImpl fun getModifierState(keyArg: String): Boolean = noImpl - fun initMouseEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, viewArg: Window?, detailArg: Int, screenXArg: Int, screenYArg: Int, clientXArg: Int, clientYArg: Int, ctrlKeyArg: Boolean, altKeyArg: Boolean, shiftKeyArg: Boolean, metaKeyArg: Boolean, buttonArg: Short, relatedTargetArg: EventTarget?): Unit = noImpl } @native public interface MouseEventInit : EventModifierInit { - var screenX: Int - var screenY: Int - var clientX: Int - var clientY: Int - var button: Short - var buttons: Short - var relatedTarget: EventTarget? + var screenX: Int? /* = 0 */ + var screenY: Int? /* = 0 */ + var clientX: Int? /* = 0 */ + var clientY: Int? /* = 0 */ + var button: Short? /* = 0 */ + var buttons: Short? /* = 0 */ + var relatedTarget: EventTarget? /* = null */ } @Suppress("NOTHING_TO_INLINE") -public inline fun MouseEventInit(screenX: Int = 0, screenY: Int = 0, clientX: Int = 0, clientY: Int = 0, button: Short = 0, buttons: Short = 0, relatedTarget: EventTarget? = null, ctrlKey: Boolean = false, shiftKey: Boolean = false, altKey: Boolean = false, metaKey: Boolean = false, modifierAltGraph: Boolean = false, modifierCapsLock: Boolean = false, modifierFn: Boolean = false, modifierFnLock: Boolean = false, modifierHyper: Boolean = false, modifierNumLock: Boolean = false, modifierOS: Boolean = false, modifierScrollLock: Boolean = false, modifierSuper: Boolean = false, modifierSymbol: Boolean = false, modifierSymbolLock: Boolean = false, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): MouseEventInit { +public inline fun MouseEventInit(screenX: Int? = 0, screenY: Int? = 0, clientX: Int? = 0, clientY: Int? = 0, button: Short? = 0, buttons: Short? = 0, relatedTarget: EventTarget? = null, ctrlKey: Boolean? = false, shiftKey: Boolean? = false, altKey: Boolean? = false, metaKey: Boolean? = false, modifierAltGraph: Boolean? = false, modifierCapsLock: Boolean? = false, modifierFn: Boolean? = false, modifierFnLock: Boolean? = false, modifierHyper: Boolean? = false, modifierNumLock: Boolean? = false, modifierScrollLock: Boolean? = false, modifierSuper: Boolean? = false, modifierSymbol: Boolean? = false, modifierSymbolLock: Boolean? = false, view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): MouseEventInit { val o = js("({})") o["screenX"] = screenX @@ -148,7 +135,6 @@ public inline fun MouseEventInit(screenX: Int = 0, screenY: Int = 0, clientX: In o["modifierFnLock"] = modifierFnLock o["modifierHyper"] = modifierHyper o["modifierNumLock"] = modifierNumLock - o["modifierOS"] = modifierOS o["modifierScrollLock"] = modifierScrollLock o["modifierSuper"] = modifierSuper o["modifierSymbol"] = modifierSymbol @@ -157,30 +143,30 @@ public inline fun MouseEventInit(screenX: Int = 0, screenY: Int = 0, clientX: In o["detail"] = detail o["bubbles"] = bubbles o["cancelable"] = cancelable + o["composed"] = composed return o } @native public interface EventModifierInit : UIEventInit { - var ctrlKey: Boolean - var shiftKey: Boolean - var altKey: Boolean - var metaKey: Boolean - var modifierAltGraph: Boolean - var modifierCapsLock: Boolean - var modifierFn: Boolean - var modifierFnLock: Boolean - var modifierHyper: Boolean - var modifierNumLock: Boolean - var modifierOS: Boolean - var modifierScrollLock: Boolean - var modifierSuper: Boolean - var modifierSymbol: Boolean - var modifierSymbolLock: Boolean + var ctrlKey: Boolean? /* = false */ + var shiftKey: Boolean? /* = false */ + var altKey: Boolean? /* = false */ + var metaKey: Boolean? /* = false */ + var modifierAltGraph: Boolean? /* = false */ + var modifierCapsLock: Boolean? /* = false */ + var modifierFn: Boolean? /* = false */ + var modifierFnLock: Boolean? /* = false */ + var modifierHyper: Boolean? /* = false */ + var modifierNumLock: Boolean? /* = false */ + var modifierScrollLock: Boolean? /* = false */ + var modifierSuper: Boolean? /* = false */ + var modifierSymbol: Boolean? /* = false */ + var modifierSymbolLock: Boolean? /* = false */ } @Suppress("NOTHING_TO_INLINE") -public inline fun EventModifierInit(ctrlKey: Boolean = false, shiftKey: Boolean = false, altKey: Boolean = false, metaKey: Boolean = false, modifierAltGraph: Boolean = false, modifierCapsLock: Boolean = false, modifierFn: Boolean = false, modifierFnLock: Boolean = false, modifierHyper: Boolean = false, modifierNumLock: Boolean = false, modifierOS: Boolean = false, modifierScrollLock: Boolean = false, modifierSuper: Boolean = false, modifierSymbol: Boolean = false, modifierSymbolLock: Boolean = false, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): EventModifierInit { +public inline fun EventModifierInit(ctrlKey: Boolean? = false, shiftKey: Boolean? = false, altKey: Boolean? = false, metaKey: Boolean? = false, modifierAltGraph: Boolean? = false, modifierCapsLock: Boolean? = false, modifierFn: Boolean? = false, modifierFnLock: Boolean? = false, modifierHyper: Boolean? = false, modifierNumLock: Boolean? = false, modifierScrollLock: Boolean? = false, modifierSuper: Boolean? = false, modifierSymbol: Boolean? = false, modifierSymbolLock: Boolean? = false, view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): EventModifierInit { val o = js("({})") o["ctrlKey"] = ctrlKey @@ -193,7 +179,6 @@ public inline fun EventModifierInit(ctrlKey: Boolean = false, shiftKey: Boolean o["modifierFnLock"] = modifierFnLock o["modifierHyper"] = modifierHyper o["modifierNumLock"] = modifierNumLock - o["modifierOS"] = modifierOS o["modifierScrollLock"] = modifierScrollLock o["modifierSuper"] = modifierSuper o["modifierSymbol"] = modifierSymbol @@ -202,11 +187,12 @@ public inline fun EventModifierInit(ctrlKey: Boolean = false, shiftKey: Boolean o["detail"] = detail o["bubbles"] = bubbles o["cancelable"] = cancelable + o["composed"] = composed return o } -@native public open class WheelEvent(typeArg: String, wheelEventInitDict: WheelEventInit = noImpl) : MouseEvent(typeArg, noImpl) { +@native public open class WheelEvent(type: String, eventInitDict: WheelEventInit = noImpl) : MouseEvent(type, eventInitDict) { open val deltaX: Double get() = noImpl open val deltaY: Double @@ -215,7 +201,6 @@ public inline fun EventModifierInit(ctrlKey: Boolean = false, shiftKey: Boolean get() = noImpl open val deltaMode: Int get() = noImpl - fun initWheelEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, viewArg: Window?, detailArg: Int, screenXArg: Int, screenYArg: Int, clientXArg: Int, clientYArg: Int, buttonArg: Short, relatedTargetArg: EventTarget?, modifiersListArg: String, deltaXArg: Double, deltaYArg: Double, deltaZArg: Double, deltaMode: Int): Unit = noImpl companion object { val DOM_DELTA_PIXEL: Int = 0x00 @@ -225,14 +210,14 @@ public inline fun EventModifierInit(ctrlKey: Boolean = false, shiftKey: Boolean } @native public interface WheelEventInit : MouseEventInit { - var deltaX: Double - var deltaY: Double - var deltaZ: Double - var deltaMode: Int + var deltaX: Double? /* = 0.0 */ + var deltaY: Double? /* = 0.0 */ + var deltaZ: Double? /* = 0.0 */ + var deltaMode: Int? /* = 0 */ } @Suppress("NOTHING_TO_INLINE") -public inline fun WheelEventInit(deltaX: Double = 0.0, deltaY: Double = 0.0, deltaZ: Double = 0.0, deltaMode: Int = 0, screenX: Int = 0, screenY: Int = 0, clientX: Int = 0, clientY: Int = 0, button: Short = 0, buttons: Short = 0, relatedTarget: EventTarget? = null, ctrlKey: Boolean = false, shiftKey: Boolean = false, altKey: Boolean = false, metaKey: Boolean = false, modifierAltGraph: Boolean = false, modifierCapsLock: Boolean = false, modifierFn: Boolean = false, modifierFnLock: Boolean = false, modifierHyper: Boolean = false, modifierNumLock: Boolean = false, modifierOS: Boolean = false, modifierScrollLock: Boolean = false, modifierSuper: Boolean = false, modifierSymbol: Boolean = false, modifierSymbolLock: Boolean = false, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): WheelEventInit { +public inline fun WheelEventInit(deltaX: Double? = 0.0, deltaY: Double? = 0.0, deltaZ: Double? = 0.0, deltaMode: Int? = 0, screenX: Int? = 0, screenY: Int? = 0, clientX: Int? = 0, clientY: Int? = 0, button: Short? = 0, buttons: Short? = 0, relatedTarget: EventTarget? = null, ctrlKey: Boolean? = false, shiftKey: Boolean? = false, altKey: Boolean? = false, metaKey: Boolean? = false, modifierAltGraph: Boolean? = false, modifierCapsLock: Boolean? = false, modifierFn: Boolean? = false, modifierFnLock: Boolean? = false, modifierHyper: Boolean? = false, modifierNumLock: Boolean? = false, modifierScrollLock: Boolean? = false, modifierSuper: Boolean? = false, modifierSymbol: Boolean? = false, modifierSymbolLock: Boolean? = false, view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): WheelEventInit { val o = js("({})") o["deltaX"] = deltaX @@ -256,7 +241,6 @@ public inline fun WheelEventInit(deltaX: Double = 0.0, deltaY: Double = 0.0, del o["modifierFnLock"] = modifierFnLock o["modifierHyper"] = modifierHyper o["modifierNumLock"] = modifierNumLock - o["modifierOS"] = modifierOS o["modifierScrollLock"] = modifierScrollLock o["modifierSuper"] = modifierSuper o["modifierSymbol"] = modifierSymbol @@ -265,11 +249,39 @@ public inline fun WheelEventInit(deltaX: Double = 0.0, deltaY: Double = 0.0, del o["detail"] = detail o["bubbles"] = bubbles o["cancelable"] = cancelable + o["composed"] = composed return o } -@native public open class KeyboardEvent(typeArg: String, keyboardEventInitDict: KeyboardEventInit = noImpl) : UIEvent(noImpl, noImpl) { +@native public open class InputEvent(type: String, eventInitDict: InputEventInit = noImpl) : UIEvent(type, eventInitDict) { + open val data: String + get() = noImpl + open val isComposing: Boolean + get() = noImpl +} + +@native public interface InputEventInit : UIEventInit { + var data: String? /* = "" */ + var isComposing: Boolean? /* = false */ +} + +@Suppress("NOTHING_TO_INLINE") +public inline fun InputEventInit(data: String? = "", isComposing: Boolean? = false, view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): InputEventInit { + val o = js("({})") + + o["data"] = data + o["isComposing"] = isComposing + o["view"] = view + o["detail"] = detail + o["bubbles"] = bubbles + o["cancelable"] = cancelable + o["composed"] = composed + + return o +} + +@native public open class KeyboardEvent(type: String, eventInitDict: KeyboardEventInit = noImpl) : UIEvent(type, eventInitDict) { open val key: String get() = noImpl open val code: String @@ -295,7 +307,6 @@ public inline fun WheelEventInit(deltaX: Double = 0.0, deltaY: Double = 0.0, del open val which: Int get() = noImpl fun getModifierState(keyArg: String): Boolean = noImpl - fun initKeyboardEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, viewArg: Window?, keyArg: String, locationArg: Int, modifiersListArg: String, repeat: Boolean, locale: String): Unit = noImpl companion object { val DOM_KEY_LOCATION_STANDARD: Int = 0x00 @@ -306,15 +317,15 @@ public inline fun WheelEventInit(deltaX: Double = 0.0, deltaY: Double = 0.0, del } @native public interface KeyboardEventInit : EventModifierInit { - var key: String - var code: String - var location: Int - var repeat: Boolean - var isComposing: Boolean + var key: String? /* = "" */ + var code: String? /* = "" */ + var location: Int? /* = 0 */ + var repeat: Boolean? /* = false */ + var isComposing: Boolean? /* = false */ } @Suppress("NOTHING_TO_INLINE") -public inline fun KeyboardEventInit(key: String = "", code: String = "", location: Int = 0, repeat: Boolean = false, isComposing: Boolean = false, ctrlKey: Boolean = false, shiftKey: Boolean = false, altKey: Boolean = false, metaKey: Boolean = false, modifierAltGraph: Boolean = false, modifierCapsLock: Boolean = false, modifierFn: Boolean = false, modifierFnLock: Boolean = false, modifierHyper: Boolean = false, modifierNumLock: Boolean = false, modifierOS: Boolean = false, modifierScrollLock: Boolean = false, modifierSuper: Boolean = false, modifierSymbol: Boolean = false, modifierSymbolLock: Boolean = false, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): KeyboardEventInit { +public inline fun KeyboardEventInit(key: String? = "", code: String? = "", location: Int? = 0, repeat: Boolean? = false, isComposing: Boolean? = false, ctrlKey: Boolean? = false, shiftKey: Boolean? = false, altKey: Boolean? = false, metaKey: Boolean? = false, modifierAltGraph: Boolean? = false, modifierCapsLock: Boolean? = false, modifierFn: Boolean? = false, modifierFnLock: Boolean? = false, modifierHyper: Boolean? = false, modifierNumLock: Boolean? = false, modifierScrollLock: Boolean? = false, modifierSuper: Boolean? = false, modifierSymbol: Boolean? = false, modifierSymbolLock: Boolean? = false, view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): KeyboardEventInit { val o = js("({})") o["key"] = key @@ -332,7 +343,6 @@ public inline fun KeyboardEventInit(key: String = "", code: String = "", locatio o["modifierFnLock"] = modifierFnLock o["modifierHyper"] = modifierHyper o["modifierNumLock"] = modifierNumLock - o["modifierOS"] = modifierOS o["modifierScrollLock"] = modifierScrollLock o["modifierSuper"] = modifierSuper o["modifierSymbol"] = modifierSymbol @@ -341,22 +351,22 @@ public inline fun KeyboardEventInit(key: String = "", code: String = "", locatio o["detail"] = detail o["bubbles"] = bubbles o["cancelable"] = cancelable + o["composed"] = composed return o } -@native public open class CompositionEvent(typeArg: String, compositionEventInitDict: CompositionEventInit = noImpl) : UIEvent(noImpl, noImpl) { +@native public open class CompositionEvent(type: String, eventInitDict: CompositionEventInit = noImpl) : UIEvent(type, eventInitDict) { open val data: String get() = noImpl - fun initCompositionEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, viewArg: Window?, dataArg: String, locale: String): Unit = noImpl } @native public interface CompositionEventInit : UIEventInit { - var data: String + var data: String? /* = "" */ } @Suppress("NOTHING_TO_INLINE") -public inline fun CompositionEventInit(data: String = "", view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): CompositionEventInit { +public inline fun CompositionEventInit(data: String? = "", view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): CompositionEventInit { val o = js("({})") o["data"] = data @@ -364,30 +374,11 @@ public inline fun CompositionEventInit(data: String = "", view: Window? = null, o["detail"] = detail o["bubbles"] = bubbles o["cancelable"] = cancelable + o["composed"] = composed return o } -@native public open class MutationEvent : Event(noImpl, noImpl) { - open val relatedNode: Node? - get() = noImpl - open val prevValue: String - get() = noImpl - open val newValue: String - get() = noImpl - open val attrName: String - get() = noImpl - open val attrChange: Short - get() = noImpl - fun initMutationEvent(typeArg: String, bubblesArg: Boolean, cancelableArg: Boolean, relatedNodeArg: Node?, prevValueArg: String, newValueArg: String, attrNameArg: String, attrChangeArg: Short): Unit = noImpl - - companion object { - val MODIFICATION: Short = 1 - val ADDITION: Short = 2 - val REMOVAL: Short = 3 - } -} - @native public open class Event(type: String, eventInitDict: EventInit = noImpl) { open val type: String get() = noImpl @@ -403,10 +394,13 @@ public inline fun CompositionEventInit(data: String = "", view: Window? = null, get() = noImpl open val defaultPrevented: Boolean get() = noImpl + open val composed: Boolean + get() = noImpl open val isTrusted: Boolean get() = noImpl open val timeStamp: Number get() = noImpl + fun composedPath(): Array = noImpl fun stopPropagation(): Unit = noImpl fun stopImmediatePropagation(): Unit = noImpl fun preventDefault(): Unit = noImpl @@ -420,11 +414,11 @@ public inline fun CompositionEventInit(data: String = "", view: Window? = null, } } -@native public interface EventTarget { - fun addEventListener(type: String, callback: EventListener?, capture: Boolean = false): Unit = noImpl - fun addEventListener(type: String, callback: ((Event) -> Unit)?, capture: Boolean = false): Unit = noImpl - fun removeEventListener(type: String, callback: EventListener?, capture: Boolean = false): Unit = noImpl - fun removeEventListener(type: String, callback: ((Event) -> Unit)?, capture: Boolean = false): Unit = noImpl +@native public abstract class EventTarget { + fun addEventListener(type: String, callback: EventListener?, options: dynamic = noImpl): Unit = noImpl + fun addEventListener(type: String, callback: ((Event) -> Unit)?, options: dynamic = noImpl): Unit = noImpl + fun removeEventListener(type: String, callback: EventListener?, options: dynamic = noImpl): Unit = noImpl + fun removeEventListener(type: String, callback: ((Event) -> Unit)?, options: dynamic = noImpl): Unit = noImpl fun dispatchEvent(event: Event): Boolean = noImpl } diff --git a/js/js.libraries/src/generated/org.w3c.dom.kt b/js/js.libraries/src/generated/org.w3c.dom.kt index ae333bd1641..fe09d896500 100644 --- a/js/js.libraries/src/generated/org.w3c.dom.kt +++ b/js/js.libraries/src/generated/org.w3c.dom.kt @@ -20,10 +20,10 @@ import org.w3c.performance.* import org.w3c.workers.* import org.w3c.xhr.* -@native public open class Document : Node, GeometryNode { +@native public open class Document : Node(), GlobalEventHandlers, DocumentAndElementEventHandlers, NonElementParentNode, DocumentOrShadowRoot, ParentNode, GeometryUtils { open val fullscreenEnabled: Boolean get() = noImpl - open val fullscreenElement: Element? + open val fullscreen: Boolean get() = noImpl var onfullscreenchange: ((Event) -> dynamic)? get() = noImpl @@ -31,13 +31,18 @@ import org.w3c.xhr.* var onfullscreenerror: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - open val location: Location? + open val rootElement: SVGSVGElement? get() = noImpl - var domain: String + open val title: String get() = noImpl - set(value) = noImpl open val referrer: String get() = noImpl + open val domain: String + get() = noImpl + open val activeElement: Element? + get() = noImpl + open val location: Location? + get() = noImpl var cookie: String get() = noImpl set(value) = noImpl @@ -45,9 +50,6 @@ import org.w3c.xhr.* get() = noImpl open val readyState: String get() = noImpl - var title: String - get() = noImpl - set(value) = noImpl var dir: String get() = noImpl set(value) = noImpl @@ -68,19 +70,13 @@ import org.w3c.xhr.* get() = noImpl open val scripts: HTMLCollection get() = noImpl - open val cssElementMap: DOMElementMap - get() = noImpl - open val currentScript: HTMLScriptElement? + open val currentScript: HTMLOrSVGScriptElement? get() = noImpl open val defaultView: Window? get() = noImpl - open val activeElement: Element? - get() = noImpl var designMode: String get() = noImpl set(value) = noImpl - open val commands: HTMLCollection - get() = noImpl var onreadystatechange: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @@ -117,6 +113,8 @@ import org.w3c.xhr.* get() = noImpl open val characterSet: String get() = noImpl + open val charset: String + get() = noImpl open val inputEncoding: String get() = noImpl open val contentType: String @@ -125,221 +123,16 @@ import org.w3c.xhr.* get() = noImpl open val documentElement: Element? get() = noImpl + open val scrollingElement: Element? + get() = noImpl open val styleSheets: StyleSheetList get() = noImpl - var selectedStyleSheetSet: String? - get() = noImpl - set(value) = noImpl - open val lastStyleSheetSet: String? - get() = noImpl - open val preferredStyleSheetSet: String? - get() = noImpl - open val styleSheetSets: Array - get() = noImpl - var onabort: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onautocomplete: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onautocompleteerror: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onblur: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var oncancel: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var oncanplay: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var oncanplaythrough: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onchange: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onclick: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onclose: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var oncontextmenu: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var oncuechange: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ondblclick: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ondrag: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ondragend: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ondragenter: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ondragexit: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ondragleave: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ondragover: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ondragstart: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ondrop: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ondurationchange: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onemptied: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onended: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onerror: ((dynamic, String, Int, Int, Any?) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onfocus: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var oninput: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var oninvalid: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onkeydown: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onkeypress: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onkeyup: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onload: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onloadeddata: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onloadedmetadata: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onloadstart: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onmousedown: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onmouseenter: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onmouseleave: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onmousemove: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onmouseout: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onmouseover: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onmouseup: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onmousewheel: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onpause: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onplay: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onplaying: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onprogress: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onratechange: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onreset: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onresize: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onscroll: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onseeked: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onseeking: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onselect: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onshow: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onsort: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onstalled: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onsubmit: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onsuspend: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ontimeupdate: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ontoggle: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onvolumechange: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onwaiting: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - open val children: HTMLCollection - get() = noImpl - open val firstElementChild: Element? - get() = noImpl - open val lastElementChild: Element? - get() = noImpl - open val childElementCount: Int - get() = noImpl - fun exitFullscreen(): Unit = noImpl + fun exitFullscreen(): dynamic = noImpl @nativeGetter operator fun get(name: String): dynamic = noImpl fun getElementsByName(elementName: String): NodeList = noImpl - fun getItems(typeNames: String = ""): NodeList = noImpl fun open(type: String = "text/html", replace: String = ""): Document = noImpl - fun open(url: String, name: String, features: String, replace: Boolean = false): Window = noImpl + fun open(url: String, name: String, features: String): Window = noImpl fun close(): Unit = noImpl fun write(vararg text: String): Unit = noImpl fun writeln(vararg text: String): Unit = noImpl @@ -353,360 +146,112 @@ import org.w3c.xhr.* fun clear(): Unit = noImpl fun captureEvents(): Unit = noImpl fun releaseEvents(): Unit = noImpl - fun getElementsByTagName(localName: String): HTMLCollection = noImpl + fun getElementsByTagName(qualifiedName: String): HTMLCollection = noImpl fun getElementsByTagNameNS(namespace: String?, localName: String): HTMLCollection = noImpl fun getElementsByClassName(classNames: String): HTMLCollection = noImpl - fun createElement(localName: String): Element = noImpl - fun createElementNS(namespace: String?, qualifiedName: String): Element = noImpl + fun createElement(localName: String, options: ElementCreationOptions = noImpl): Element = noImpl + fun createElementNS(namespace: String?, qualifiedName: String, options: ElementCreationOptions = noImpl): Element = noImpl fun createDocumentFragment(): DocumentFragment = noImpl fun createTextNode(data: String): Text = noImpl + fun createCDATASection(data: String): CDATASection = noImpl fun createComment(data: String): Comment = noImpl fun createProcessingInstruction(target: String, data: String): ProcessingInstruction = noImpl fun importNode(node: Node, deep: Boolean = false): Node = noImpl fun adoptNode(node: Node): Node = noImpl fun createAttribute(localName: String): Attr = noImpl - fun createAttributeNS(namespace: String?, name: String): Attr = noImpl + fun createAttributeNS(namespace: String?, qualifiedName: String): Attr = noImpl fun createEvent(interface_: String): Event = noImpl fun createRange(): Range = noImpl fun createNodeIterator(root: Node, whatToShow: Int = noImpl, filter: NodeFilter? = null): NodeIterator = noImpl fun createNodeIterator(root: Node, whatToShow: Int = noImpl, filter: ((Node) -> Short)? = null): NodeIterator = noImpl fun createTreeWalker(root: Node, whatToShow: Int = noImpl, filter: NodeFilter? = null): TreeWalker = noImpl fun createTreeWalker(root: Node, whatToShow: Int = noImpl, filter: ((Node) -> Short)? = null): TreeWalker = noImpl - fun getSelection(): Selection = noImpl fun elementFromPoint(x: Double, y: Double): Element? = noImpl fun elementsFromPoint(x: Double, y: Double): Array = noImpl fun caretPositionFromPoint(x: Double, y: Double): CaretPosition? = noImpl - fun enableStyleSheetsForSet(name: String?): Unit = noImpl - fun getElementById(elementId: String): Element? = noImpl - fun prepend(vararg nodes: dynamic): Unit = noImpl - fun append(vararg nodes: dynamic): Unit = noImpl - fun query(relativeSelectors: String): Element? = noImpl - fun queryAll(relativeSelectors: String): dynamic = noImpl - fun querySelector(selectors: String): Element? = noImpl - fun querySelectorAll(selectors: String): NodeList = noImpl - fun getBoxQuads(options: BoxQuadOptions = noImpl): Array = noImpl - fun convertQuadFromNode(quad: DOMQuad, from: GeometryNode, options: ConvertCoordinateOptions = noImpl): DOMQuad = noImpl - fun convertRectFromNode(rect: DOMRectReadOnly, from: GeometryNode, options: ConvertCoordinateOptions = noImpl): DOMQuad = noImpl - fun convertPointFromNode(point: DOMPointInit, from: GeometryNode, options: ConvertCoordinateOptions = noImpl): DOMPoint = noImpl } -@native public interface Window : EventTarget, UnionMessagePortOrWindow { - val caches: CacheStorage +@native public abstract class Window : EventTarget(), GlobalEventHandlers, WindowEventHandlers, WindowOrWorkerGlobalScope, WindowSessionStorage, WindowLocalStorage, GlobalPerformance, UnionMessagePortOrWindow { + open val window: Window get() = noImpl - val performance: Performance + open val self: Window get() = noImpl - val window: Window + open val document: Document get() = noImpl - val self: Window - get() = noImpl - val document: Document - get() = noImpl - var name: String - get() = noImpl - set(value) = noImpl - val location: Location - get() = noImpl - val history: History - get() = noImpl - val locationbar: BarProp - get() = noImpl - val menubar: BarProp - get() = noImpl - val personalbar: BarProp - get() = noImpl - val scrollbars: BarProp - get() = noImpl - val statusbar: BarProp - get() = noImpl - val toolbar: BarProp - get() = noImpl - var status: String - get() = noImpl - set(value) = noImpl - val closed: Boolean - get() = noImpl - val frames: Window - get() = noImpl - val length: Int - get() = noImpl - val top: Window - get() = noImpl - var opener: Any? - get() = noImpl - set(value) = noImpl - val parent: Window - get() = noImpl - val frameElement: Element? - get() = noImpl - val navigator: Navigator - get() = noImpl - val external: External - get() = noImpl - val applicationCache: ApplicationCache - get() = noImpl - val screen: Screen - get() = noImpl - val innerWidth: Double - get() = noImpl - val innerHeight: Double - get() = noImpl - val scrollX: Double - get() = noImpl - val pageXOffset: Double - get() = noImpl - val scrollY: Double - get() = noImpl - val pageYOffset: Double - get() = noImpl - val screenX: Double - get() = noImpl - val screenY: Double - get() = noImpl - val outerWidth: Double - get() = noImpl - val outerHeight: Double - get() = noImpl - val devicePixelRatio: Double - get() = noImpl - var onabort: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onautocomplete: ((Event) -> dynamic)? + open var name: String get() = noImpl set(value) = noImpl - var onautocompleteerror: ((Event) -> dynamic)? + open val location: Location get() = noImpl - set(value) = noImpl - var onblur: ((Event) -> dynamic)? + open val history: History get() = noImpl - set(value) = noImpl - var oncancel: ((Event) -> dynamic)? + open val customElements: CustomElementRegistry get() = noImpl - set(value) = noImpl - var oncanplay: ((Event) -> dynamic)? + open val locationbar: BarProp get() = noImpl - set(value) = noImpl - var oncanplaythrough: ((Event) -> dynamic)? + open val menubar: BarProp get() = noImpl - set(value) = noImpl - var onchange: ((Event) -> dynamic)? + open val personalbar: BarProp get() = noImpl - set(value) = noImpl - var onclick: ((Event) -> dynamic)? + open val scrollbars: BarProp get() = noImpl - set(value) = noImpl - var onclose: ((Event) -> dynamic)? + open val statusbar: BarProp get() = noImpl - set(value) = noImpl - var oncontextmenu: ((Event) -> dynamic)? + open val toolbar: BarProp get() = noImpl - set(value) = noImpl - var oncuechange: ((Event) -> dynamic)? + open var status: String get() = noImpl set(value) = noImpl - var ondblclick: ((Event) -> dynamic)? + open val closed: Boolean get() = noImpl - set(value) = noImpl - var ondrag: ((Event) -> dynamic)? + open val frames: Window get() = noImpl - set(value) = noImpl - var ondragend: ((Event) -> dynamic)? + open val length: Int get() = noImpl - set(value) = noImpl - var ondragenter: ((Event) -> dynamic)? + open val top: Window get() = noImpl - set(value) = noImpl - var ondragexit: ((Event) -> dynamic)? + open var opener: Any? get() = noImpl set(value) = noImpl - var ondragleave: ((Event) -> dynamic)? + open val parent: Window get() = noImpl - set(value) = noImpl - var ondragover: ((Event) -> dynamic)? + open val frameElement: Element? get() = noImpl - set(value) = noImpl - var ondragstart: ((Event) -> dynamic)? + open val navigator: Navigator get() = noImpl - set(value) = noImpl - var ondrop: ((Event) -> dynamic)? + open val applicationCache: ApplicationCache get() = noImpl - set(value) = noImpl - var ondurationchange: ((Event) -> dynamic)? + open val external: External get() = noImpl - set(value) = noImpl - var onemptied: ((Event) -> dynamic)? + open val screen: Screen get() = noImpl - set(value) = noImpl - var onended: ((Event) -> dynamic)? + open val innerWidth: Int get() = noImpl - set(value) = noImpl - var onerror: ((dynamic, String, Int, Int, Any?) -> dynamic)? + open val innerHeight: Int get() = noImpl - set(value) = noImpl - var onfocus: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var oninput: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var oninvalid: ((Event) -> dynamic)? + open val scrollX: Double get() = noImpl - set(value) = noImpl - var onkeydown: ((Event) -> dynamic)? + open val pageXOffset: Double get() = noImpl - set(value) = noImpl - var onkeypress: ((Event) -> dynamic)? + open val scrollY: Double get() = noImpl - set(value) = noImpl - var onkeyup: ((Event) -> dynamic)? + open val pageYOffset: Double get() = noImpl - set(value) = noImpl - var onload: ((Event) -> dynamic)? + open val screenX: Int get() = noImpl - set(value) = noImpl - var onloadeddata: ((Event) -> dynamic)? + open val screenY: Int get() = noImpl - set(value) = noImpl - var onloadedmetadata: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onloadstart: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onmousedown: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onmouseenter: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onmouseleave: ((Event) -> dynamic)? + open val outerWidth: Int get() = noImpl - set(value) = noImpl - var onmousemove: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onmouseout: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onmouseover: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onmouseup: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onmousewheel: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onpause: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onplay: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onplaying: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onprogress: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onratechange: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onreset: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onresize: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onscroll: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onseeked: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onseeking: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onselect: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onshow: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onsort: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onstalled: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onsubmit: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onsuspend: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ontimeupdate: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ontoggle: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onvolumechange: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onwaiting: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onafterprint: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onbeforeprint: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onbeforeunload: ((Event) -> String?)? - get() = noImpl - set(value) = noImpl - var onhashchange: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onlanguagechange: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onmessage: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onoffline: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ononline: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onpagehide: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onpageshow: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onpopstate: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onstorage: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onunload: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - val sessionStorage: Storage + open val outerHeight: Int get() = noImpl - val localStorage: Storage + open val devicePixelRatio: Double get() = noImpl fun close(): Unit = noImpl fun stop(): Unit = noImpl fun focus(): Unit = noImpl fun blur(): Unit = noImpl - fun open(url: String = "about:blank", target: String = "_blank", features: String = "", replace: Boolean = false): Window = noImpl - @nativeGetter - operator fun get(index: Int): Window? = noImpl + fun open(url: String = "about:blank", target: String = "_blank", features: String = ""): Window? = noImpl @nativeGetter operator fun get(name: String): dynamic = noImpl fun alert(): Unit = noImpl @@ -714,170 +259,53 @@ import org.w3c.xhr.* fun confirm(message: String = ""): Boolean = noImpl fun prompt(message: String = "", default: String = ""): String? = noImpl fun print(): Unit = noImpl - fun showModalDialog(url: String, argument: Any? = noImpl): Any? = noImpl fun requestAnimationFrame(callback: (Double) -> Unit): Int = noImpl fun cancelAnimationFrame(handle: Int): Unit = noImpl - fun postMessage(message: Any?, targetOrigin: String, transfer: Array = noImpl): Unit = noImpl + fun postMessage(message: Any?, targetOrigin: String, transfer: Array = arrayOf()): Unit = noImpl fun captureEvents(): Unit = noImpl fun releaseEvents(): Unit = noImpl - fun getSelection(): Selection = noImpl fun matchMedia(query: String): MediaQueryList = noImpl - fun moveTo(x: Double, y: Double): Unit = noImpl - fun moveBy(x: Double, y: Double): Unit = noImpl - fun resizeTo(x: Double, y: Double): Unit = noImpl - fun resizeBy(x: Double, y: Double): Unit = noImpl - fun scroll(x: Double, y: Double, options: ScrollOptions = noImpl): Unit = noImpl - fun scrollTo(x: Double, y: Double, options: ScrollOptions = noImpl): Unit = noImpl - fun scrollBy(x: Double, y: Double, options: ScrollOptions = noImpl): Unit = noImpl + fun moveTo(x: Int, y: Int): Unit = noImpl + fun moveBy(x: Int, y: Int): Unit = noImpl + fun resizeTo(x: Int, y: Int): Unit = noImpl + fun resizeBy(x: Int, y: Int): Unit = noImpl + fun scroll(options: ScrollToOptions = noImpl): Unit = noImpl + fun scroll(x: Double, y: Double): Unit = noImpl + fun scrollTo(options: ScrollToOptions = noImpl): Unit = noImpl + fun scrollTo(x: Double, y: Double): Unit = noImpl + fun scrollBy(options: ScrollToOptions = noImpl): Unit = noImpl + fun scrollBy(x: Double, y: Double): Unit = noImpl fun getComputedStyle(elt: Element, pseudoElt: String? = noImpl): CSSStyleDeclaration = noImpl - fun btoa(btoa: String): String = noImpl - fun atob(atob: String): String = noImpl - fun setTimeout(handler: () -> dynamic, timeout: Int = 0, vararg arguments: Any?): Int = noImpl - fun setTimeout(handler: String, timeout: Int = 0, vararg arguments: Any?): Int = noImpl - fun clearTimeout(handle: Int = 0): Unit = noImpl - fun setInterval(handler: () -> dynamic, timeout: Int = 0, vararg arguments: Any?): Int = noImpl - fun setInterval(handler: String, timeout: Int = 0, vararg arguments: Any?): Int = noImpl - fun clearInterval(handle: Int = 0): Unit = noImpl - fun createImageBitmap(image: ImageBitmapSource): dynamic = noImpl - fun createImageBitmap(image: ImageBitmapSource, sx: Int, sy: Int, sw: Int, sh: Int): dynamic = noImpl - fun fetch(input: dynamic, init: RequestInit = noImpl): dynamic = noImpl } -@native public interface Element : Node, UnionElementOrProcessingInstruction, UnionElementOrHTMLCollection, UnionElementOrRadioNodeList, UnionElementOrMouseEvent, GeometryNode { - var innerHTML: String +@native public abstract class HTMLAllCollection { + open val length: Int get() = noImpl - set(value) = noImpl - var outerHTML: String - get() = noImpl - set(value) = noImpl - val namespaceURI: String? - get() = noImpl - val prefix: String? - get() = noImpl - val localName: String - get() = noImpl - val tagName: String - get() = noImpl - var id: String - get() = noImpl - set(value) = noImpl - var className: String - get() = noImpl - set(value) = noImpl - val classList: DOMTokenList - get() = noImpl - val attributes: NamedNodeMap - get() = noImpl - var scrollTop: dynamic - get() = noImpl - set(value) = noImpl - var scrollLeft: dynamic - get() = noImpl - set(value) = noImpl - val scrollWidth: Double - get() = noImpl - val scrollHeight: Double - get() = noImpl - val clientTop: Double - get() = noImpl - val clientLeft: Double - get() = noImpl - val clientWidth: Double - get() = noImpl - val clientHeight: Double - get() = noImpl - val cascadedStyle: CSSStyleDeclaration - get() = noImpl - val defaultStyle: CSSStyleDeclaration - get() = noImpl - val rawComputedStyle: CSSStyleDeclaration - get() = noImpl - val usedStyle: CSSStyleDeclaration - get() = noImpl - val children: HTMLCollection - get() = noImpl - val firstElementChild: Element? - get() = noImpl - val lastElementChild: Element? - get() = noImpl - val childElementCount: Int - get() = noImpl - val previousElementSibling: Element? - get() = noImpl - val nextElementSibling: Element? - get() = noImpl - fun requestFullscreen(): Unit = noImpl - fun insertAdjacentHTML(position: String, text: String): Unit = noImpl - fun hasAttributes(): Boolean = noImpl - fun getAttribute(name: String): String? = noImpl - fun getAttributeNS(namespace: String?, localName: String): String? = noImpl - fun setAttribute(name: String, value: String): Unit = noImpl - fun setAttributeNS(namespace: String?, name: String, value: String): Unit = noImpl - fun removeAttribute(name: String): Unit = noImpl - fun removeAttributeNS(namespace: String?, localName: String): Unit = noImpl - fun hasAttribute(name: String): Boolean = noImpl - fun hasAttributeNS(namespace: String?, localName: String): Boolean = noImpl - fun getAttributeNode(name: String): Attr? = noImpl - fun getAttributeNodeNS(namespace: String?, localName: String): Attr? = noImpl - fun setAttributeNode(attr: Attr): Attr? = noImpl - fun setAttributeNodeNS(attr: Attr): Attr? = noImpl - fun removeAttributeNode(attr: Attr): Attr = noImpl - fun closest(selectors: String): Element? = noImpl - fun matches(selectors: String): Boolean = noImpl - fun getElementsByTagName(localName: String): HTMLCollection = noImpl - fun getElementsByTagNameNS(namespace: String?, localName: String): HTMLCollection = noImpl - fun getElementsByClassName(classNames: String): HTMLCollection = noImpl - fun getClientRects(): dynamic = noImpl - fun getBoundingClientRect(): DOMRect = noImpl - fun scrollIntoView(): Unit = noImpl - fun scrollIntoView(top: Boolean, options: ScrollOptions = noImpl): Unit = noImpl - fun pseudo(pseudoElt: String): PseudoElement? = noImpl - fun prepend(vararg nodes: dynamic): Unit = noImpl - fun append(vararg nodes: dynamic): Unit = noImpl - fun query(relativeSelectors: String): Element? = noImpl - fun queryAll(relativeSelectors: String): dynamic = noImpl - fun querySelector(selectors: String): Element? = noImpl - fun querySelectorAll(selectors: String): NodeList = noImpl - fun before(vararg nodes: dynamic): Unit = noImpl - fun after(vararg nodes: dynamic): Unit = noImpl - fun replaceWith(vararg nodes: dynamic): Unit = noImpl - fun remove(): Unit = noImpl - fun getBoxQuads(options: BoxQuadOptions = noImpl): Array = noImpl - fun convertQuadFromNode(quad: DOMQuad, from: GeometryNode, options: ConvertCoordinateOptions = noImpl): DOMQuad = noImpl - fun convertRectFromNode(rect: DOMRectReadOnly, from: GeometryNode, options: ConvertCoordinateOptions = noImpl): DOMQuad = noImpl - fun convertPointFromNode(point: DOMPointInit, from: GeometryNode, options: ConvertCoordinateOptions = noImpl): DOMPoint = noImpl -} - -@native public open class CustomEvent(type: String, eventInitDict: CustomEventInit = noImpl) : Event(type, eventInitDict) { - open val detail: Any? - get() = noImpl - fun initCustomEvent(type: String, bubbles: Boolean, cancelable: Boolean, detail: Any?): Unit = noImpl -} - -@native public interface HTMLAllCollection : HTMLCollection { - fun item(name: String): UnionElementOrHTMLCollection? = noImpl -// override fun namedItem(name: String): UnionElementOrHTMLCollection? = noImpl // @nativeGetter -// operator override fun get(name: String): UnionElementOrHTMLCollection? = noImpl +// operator fun get(index: Int): Element? = noImpl +// fun namedItem(name: String): UnionElementOrHTMLCollection? = noImpl +// @nativeGetter +// operator fun get(name: String): UnionElementOrHTMLCollection? = noImpl + fun item(nameOrIndex: String = noImpl): UnionElementOrHTMLCollection? = noImpl } -@native public interface HTMLFormControlsCollection : HTMLCollection { +@native public abstract class HTMLFormControlsCollection : HTMLCollection() { // override fun namedItem(name: String): UnionElementOrRadioNodeList? = noImpl // @nativeGetter // operator override fun get(name: String): UnionElementOrRadioNodeList? = noImpl } -@native public interface RadioNodeList : NodeList, UnionElementOrRadioNodeList { - var value: String +@native public abstract class RadioNodeList : NodeList(), UnionElementOrRadioNodeList { + open var value: String get() = noImpl set(value) = noImpl } -@native public interface HTMLOptionsCollection : HTMLCollection { +@native public abstract class HTMLOptionsCollection : HTMLCollection() { override var length: Int get() = noImpl set(value) = noImpl - var selectedIndex: Int + open var selectedIndex: Int get() = noImpl set(value) = noImpl @nativeSetter @@ -886,307 +314,55 @@ import org.w3c.xhr.* fun remove(index: Int): Unit = noImpl } -@native public interface HTMLPropertiesCollection : HTMLCollection { - val names: Array - get() = noImpl -// override fun namedItem(name: String): PropertyNodeList? = noImpl -// @nativeGetter -// operator override fun get(name: String): PropertyNodeList? = noImpl -} - -@native public interface PropertyNodeList : NodeList { - fun getValues(): Array = noImpl -} - -@native public interface DOMStringMap { - @nativeGetter - operator fun get(name: String): String? = noImpl - @nativeSetter - operator fun set(name: String, value: String): Unit = noImpl -} - -@native public interface DOMElementMap { - @nativeGetter - operator fun get(name: String): Element? = noImpl - @nativeSetter - operator fun set(name: String, value: Element): Unit = noImpl -} - -@native public open class XMLDocument : Document() { - fun load(url: String): Boolean = noImpl -} - -@native public interface HTMLElement : Element { - var title: String +@native public abstract class HTMLElement : Element(), ElementCSSInlineStyle, GlobalEventHandlers, DocumentAndElementEventHandlers, ElementContentEditable { + open var title: String get() = noImpl set(value) = noImpl - var lang: String + open var lang: String get() = noImpl set(value) = noImpl - var translate: Boolean + open var translate: Boolean get() = noImpl set(value) = noImpl - var dir: String + open var dir: String get() = noImpl set(value) = noImpl - val dataset: DOMStringMap + open val dataset: DOMStringMap get() = noImpl - var itemScope: Boolean + open var hidden: Boolean get() = noImpl set(value) = noImpl - val itemType: DOMSettableTokenList - get() = noImpl - var itemId: String - get() = noImpl - set(value) = noImpl - val itemRef: DOMSettableTokenList - get() = noImpl - val itemProp: DOMSettableTokenList - get() = noImpl - val properties: HTMLPropertiesCollection - get() = noImpl - var itemValue: Any? + open var tabIndex: Int get() = noImpl set(value) = noImpl - var hidden: Boolean + open var accessKey: String get() = noImpl set(value) = noImpl - var tabIndex: Int + open val accessKeyLabel: String get() = noImpl - set(value) = noImpl - var accessKey: String + open var draggable: Boolean get() = noImpl set(value) = noImpl - val accessKeyLabel: String + open val dropzone: DOMTokenList get() = noImpl - var draggable: Boolean + open var contextMenu: HTMLMenuElement? get() = noImpl set(value) = noImpl - val dropzone: DOMSettableTokenList - get() = noImpl - var contextMenu: HTMLMenuElement? + open var spellcheck: Boolean get() = noImpl set(value) = noImpl - var spellcheck: Boolean + open var innerText: String get() = noImpl set(value) = noImpl - val commandType: String? - get() = noImpl - val commandLabel: String? + open val offsetParent: Element? get() = noImpl - val commandIcon: String? + open val offsetTop: Int get() = noImpl - val commandHidden: Boolean? + open val offsetLeft: Int get() = noImpl - val commandDisabled: Boolean? + open val offsetWidth: Int get() = noImpl - val commandChecked: Boolean? - get() = noImpl - val offsetParent: Element? - get() = noImpl - val offsetTop: Double - get() = noImpl - val offsetLeft: Double - get() = noImpl - val offsetWidth: Double - get() = noImpl - val offsetHeight: Double - get() = noImpl - val style: CSSStyleDeclaration - get() = noImpl - var onabort: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onautocomplete: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onautocompleteerror: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onblur: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var oncancel: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var oncanplay: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var oncanplaythrough: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onchange: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onclick: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onclose: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var oncontextmenu: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var oncuechange: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ondblclick: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ondrag: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ondragend: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ondragenter: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ondragexit: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ondragleave: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ondragover: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ondragstart: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ondrop: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ondurationchange: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onemptied: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onended: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onerror: ((dynamic, String, Int, Int, Any?) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onfocus: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var oninput: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var oninvalid: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onkeydown: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onkeypress: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onkeyup: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onload: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onloadeddata: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onloadedmetadata: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onloadstart: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onmousedown: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onmouseenter: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onmouseleave: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onmousemove: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onmouseout: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onmouseover: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onmouseup: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onmousewheel: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onpause: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onplay: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onplaying: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onprogress: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onratechange: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onreset: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onresize: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onscroll: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onseeked: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onseeking: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onselect: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onshow: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onsort: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onstalled: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onsubmit: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onsuspend: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ontimeupdate: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ontoggle: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onvolumechange: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onwaiting: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var contentEditable: String - get() = noImpl - set(value) = noImpl - val isContentEditable: Boolean + open val offsetHeight: Int get() = noImpl fun click(): Unit = noImpl fun focus(): Unit = noImpl @@ -1194,284 +370,290 @@ import org.w3c.xhr.* fun forceSpellCheck(): Unit = noImpl } -@native public interface HTMLUnknownElement : HTMLElement { +@native public abstract class HTMLUnknownElement : HTMLElement() { } -@native public interface HTMLHtmlElement : HTMLElement { - var version: String +@native public abstract class DOMStringMap { + @nativeGetter + operator fun get(name: String): String? = noImpl + @nativeSetter + operator fun set(name: String, value: String): Unit = noImpl +} + +@native public abstract class HTMLHtmlElement : HTMLElement() { + open var version: String get() = noImpl set(value) = noImpl } -@native public interface HTMLHeadElement : HTMLElement { +@native public abstract class HTMLHeadElement : HTMLElement() { } -@native public interface HTMLTitleElement : HTMLElement { - var text: String +@native public abstract class HTMLTitleElement : HTMLElement() { + open var text: String get() = noImpl set(value) = noImpl } -@native public interface HTMLBaseElement : HTMLElement { - var href: String +@native public abstract class HTMLBaseElement : HTMLElement() { + open var href: String get() = noImpl set(value) = noImpl - var target: String + open var target: String get() = noImpl set(value) = noImpl } -@native public interface HTMLLinkElement : HTMLElement { - var href: String +@native public abstract class HTMLLinkElement : HTMLElement(), LinkStyle { + open var scope: String get() = noImpl set(value) = noImpl - var crossOrigin: String? + open var workerType: String get() = noImpl set(value) = noImpl - var rel: String + open var href: String get() = noImpl set(value) = noImpl - val relList: DOMTokenList - get() = noImpl - var media: String + open var crossOrigin: String? get() = noImpl set(value) = noImpl - var hreflang: String + open var rel: String get() = noImpl set(value) = noImpl - var type: String + @native("as") open var as_: String get() = noImpl set(value) = noImpl - val sizes: DOMSettableTokenList + open val relList: DOMTokenList get() = noImpl - var charset: String + open var media: String get() = noImpl set(value) = noImpl - var rev: String + open var nonce: String get() = noImpl set(value) = noImpl - var target: String + open var hreflang: String get() = noImpl set(value) = noImpl - val sheet: StyleSheet? - get() = noImpl -} - -@native public interface HTMLMetaElement : HTMLElement { - var name: String + open var type: String get() = noImpl set(value) = noImpl - var httpEquiv: String + open val sizes: DOMTokenList + get() = noImpl + open var referrerPolicy: String get() = noImpl set(value) = noImpl - var content: String + open var charset: String get() = noImpl set(value) = noImpl - var scheme: String + open var rev: String + get() = noImpl + set(value) = noImpl + open var target: String get() = noImpl set(value) = noImpl } -@native public interface HTMLStyleElement : HTMLElement { - var media: String +@native public abstract class HTMLMetaElement : HTMLElement() { + open var name: String get() = noImpl set(value) = noImpl - var type: String + open var httpEquiv: String get() = noImpl set(value) = noImpl - var scoped: Boolean + open var content: String get() = noImpl set(value) = noImpl - val sheet: StyleSheet? - get() = noImpl -} - -@native public interface HTMLBodyElement : HTMLElement { - var text: String - get() = noImpl - set(value) = noImpl - var link: String - get() = noImpl - set(value) = noImpl - var vLink: String - get() = noImpl - set(value) = noImpl - var aLink: String - get() = noImpl - set(value) = noImpl - var bgColor: String - get() = noImpl - set(value) = noImpl - var background: String - get() = noImpl - set(value) = noImpl - var onafterprint: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onbeforeprint: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onbeforeunload: ((Event) -> String?)? - get() = noImpl - set(value) = noImpl - var onhashchange: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onlanguagechange: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onmessage: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onoffline: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ononline: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onpagehide: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onpageshow: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onpopstate: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onstorage: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onunload: ((Event) -> dynamic)? + open var scheme: String get() = noImpl set(value) = noImpl } -@native public interface HTMLHeadingElement : HTMLElement { - var align: String +@native public abstract class HTMLStyleElement : HTMLElement(), LinkStyle { + open var media: String + get() = noImpl + set(value) = noImpl + open var nonce: String + get() = noImpl + set(value) = noImpl + open var type: String get() = noImpl set(value) = noImpl } -@native public interface HTMLParagraphElement : HTMLElement { - var align: String +@native public abstract class HTMLBodyElement : HTMLElement(), WindowEventHandlers { + open var text: String + get() = noImpl + set(value) = noImpl + open var link: String + get() = noImpl + set(value) = noImpl + open var vLink: String + get() = noImpl + set(value) = noImpl + open var aLink: String + get() = noImpl + set(value) = noImpl + open var bgColor: String + get() = noImpl + set(value) = noImpl + open var background: String get() = noImpl set(value) = noImpl } -@native public interface HTMLHRElement : HTMLElement { - var align: String - get() = noImpl - set(value) = noImpl - var color: String - get() = noImpl - set(value) = noImpl - var noShade: Boolean - get() = noImpl - set(value) = noImpl - var size: String - get() = noImpl - set(value) = noImpl - var width: String +@native public abstract class HTMLHeadingElement : HTMLElement() { + open var align: String get() = noImpl set(value) = noImpl } -@native public interface HTMLPreElement : HTMLElement { - var width: Int +@native public abstract class HTMLParagraphElement : HTMLElement() { + open var align: String get() = noImpl set(value) = noImpl } -@native public interface HTMLQuoteElement : HTMLElement { - var cite: String +@native public abstract class HTMLHRElement : HTMLElement() { + open var align: String + get() = noImpl + set(value) = noImpl + open var color: String + get() = noImpl + set(value) = noImpl + open var noShade: Boolean + get() = noImpl + set(value) = noImpl + open var size: String + get() = noImpl + set(value) = noImpl + open var width: String get() = noImpl set(value) = noImpl } -@native public interface HTMLOListElement : HTMLElement { - var reversed: Boolean - get() = noImpl - set(value) = noImpl - var start: Int - get() = noImpl - set(value) = noImpl - var type: String - get() = noImpl - set(value) = noImpl - var compact: Boolean +@native public abstract class HTMLPreElement : HTMLElement() { + open var width: Int get() = noImpl set(value) = noImpl } -@native public interface HTMLUListElement : HTMLElement { - var compact: Boolean - get() = noImpl - set(value) = noImpl - var type: String +@native public abstract class HTMLQuoteElement : HTMLElement() { + open var cite: String get() = noImpl set(value) = noImpl } -@native public interface HTMLLIElement : HTMLElement { - var value: Int +@native public abstract class HTMLOListElement : HTMLElement() { + open var reversed: Boolean get() = noImpl set(value) = noImpl - var type: String + open var start: Int + get() = noImpl + set(value) = noImpl + open var type: String + get() = noImpl + set(value) = noImpl + open var compact: Boolean get() = noImpl set(value) = noImpl } -@native public interface HTMLDListElement : HTMLElement { - var compact: Boolean +@native public abstract class HTMLUListElement : HTMLElement() { + open var compact: Boolean + get() = noImpl + set(value) = noImpl + open var type: String get() = noImpl set(value) = noImpl } -@native public interface HTMLDivElement : HTMLElement { - var align: String +@native public abstract class HTMLLIElement : HTMLElement() { + open var value: Int + get() = noImpl + set(value) = noImpl + open var type: String get() = noImpl set(value) = noImpl } -@native public interface HTMLAnchorElement : HTMLElement { - var target: String +@native public abstract class HTMLDListElement : HTMLElement() { + open var compact: Boolean get() = noImpl set(value) = noImpl - var download: String +} + +@native public abstract class HTMLDivElement : HTMLElement() { + open var align: String get() = noImpl set(value) = noImpl - var ping: DOMSettableTokenList +} + +@native public abstract class HTMLAnchorElement : HTMLElement(), HTMLHyperlinkElementUtils { + open var target: String get() = noImpl set(value) = noImpl - var rel: String + open var download: String get() = noImpl set(value) = noImpl - val relList: DOMTokenList - get() = noImpl - var hreflang: String + open var ping: String get() = noImpl set(value) = noImpl - var type: String + open var rel: String get() = noImpl set(value) = noImpl - var text: String + open val relList: DOMTokenList + get() = noImpl + open var hreflang: String get() = noImpl set(value) = noImpl - var coords: String + open var type: String get() = noImpl set(value) = noImpl - var charset: String + open var text: String get() = noImpl set(value) = noImpl - var name: String + open var referrerPolicy: String get() = noImpl set(value) = noImpl - var rev: String + open var coords: String get() = noImpl set(value) = noImpl - var shape: String + open var charset: String get() = noImpl set(value) = noImpl + open var name: String + get() = noImpl + set(value) = noImpl + open var rev: String + get() = noImpl + set(value) = noImpl + open var shape: String + get() = noImpl + set(value) = noImpl +} + +@native public abstract class HTMLDataElement : HTMLElement() { + open var value: String + get() = noImpl + set(value) = noImpl +} + +@native public abstract class HTMLTimeElement : HTMLElement() { + open var dateTime: String + get() = noImpl + set(value) = noImpl +} + +@native public abstract class HTMLSpanElement : HTMLElement() { +} + +@native public abstract class HTMLBRElement : HTMLElement() { + open var clear: String + get() = noImpl + set(value) = noImpl +} + +@native public interface HTMLHyperlinkElementUtils { var href: String get() = noImpl set(value) = noImpl @@ -1501,177 +683,243 @@ import org.w3c.xhr.* var search: String get() = noImpl set(value) = noImpl - var searchParams: URLSearchParams - get() = noImpl - set(value) = noImpl var hash: String get() = noImpl set(value) = noImpl } -@native public interface HTMLDataElement : HTMLElement { - var value: String +@native public abstract class HTMLModElement : HTMLElement() { + open var cite: String + get() = noImpl + set(value) = noImpl + open var dateTime: String get() = noImpl set(value) = noImpl } -@native public interface HTMLTimeElement : HTMLElement { - var dateTime: String +@native public abstract class HTMLPictureElement : HTMLElement() { +} + +@native public abstract class HTMLSourceElement : HTMLElement() { + open var src: String + get() = noImpl + set(value) = noImpl + open var type: String + get() = noImpl + set(value) = noImpl + open var srcset: String + get() = noImpl + set(value) = noImpl + open var sizes: String + get() = noImpl + set(value) = noImpl + open var media: String get() = noImpl set(value) = noImpl } -@native public interface HTMLSpanElement : HTMLElement { +@native public abstract class HTMLImageElement : HTMLElement(), TexImageSource, HTMLOrSVGImageElement { + open var alt: String + get() = noImpl + set(value) = noImpl + open var src: String + get() = noImpl + set(value) = noImpl + open var srcset: String + get() = noImpl + set(value) = noImpl + open var sizes: String + get() = noImpl + set(value) = noImpl + open var crossOrigin: String? + get() = noImpl + set(value) = noImpl + open var useMap: String + get() = noImpl + set(value) = noImpl + open var isMap: Boolean + get() = noImpl + set(value) = noImpl + open var width: Int + get() = noImpl + set(value) = noImpl + open var height: Int + get() = noImpl + set(value) = noImpl + open val naturalWidth: Int + get() = noImpl + open val naturalHeight: Int + get() = noImpl + open val complete: Boolean + get() = noImpl + open val currentSrc: String + get() = noImpl + open var referrerPolicy: String + get() = noImpl + set(value) = noImpl + open var name: String + get() = noImpl + set(value) = noImpl + open var lowsrc: String + get() = noImpl + set(value) = noImpl + open var align: String + get() = noImpl + set(value) = noImpl + open var hspace: Int + get() = noImpl + set(value) = noImpl + open var vspace: Int + get() = noImpl + set(value) = noImpl + open var longDesc: String + get() = noImpl + set(value) = noImpl + open var border: String + get() = noImpl + set(value) = noImpl + open val x: Int + get() = noImpl + open val y: Int + get() = noImpl } -@native public interface HTMLBRElement : HTMLElement { - var clear: String +@native public abstract class HTMLIFrameElement : HTMLElement() { + open var src: String get() = noImpl set(value) = noImpl -} - -@native public interface HTMLModElement : HTMLElement { - var cite: String + open var srcdoc: String get() = noImpl set(value) = noImpl - var dateTime: String + open var name: String get() = noImpl set(value) = noImpl -} - -@native public interface HTMLIFrameElement : HTMLElement { - var src: String + open val sandbox: DOMTokenList + get() = noImpl + open var allowFullscreen: Boolean get() = noImpl set(value) = noImpl - var srcdoc: String + open var allowUserMedia: Boolean get() = noImpl set(value) = noImpl - var name: String + open var width: String get() = noImpl set(value) = noImpl - val sandbox: DOMSettableTokenList - get() = noImpl - var seamless: Boolean + open var height: String get() = noImpl set(value) = noImpl - var allowFullscreen: Boolean + open var referrerPolicy: String get() = noImpl set(value) = noImpl - var width: String + open val contentDocument: Document? + get() = noImpl + open val contentWindow: Window? + get() = noImpl + open var align: String get() = noImpl set(value) = noImpl - var height: String + open var scrolling: String get() = noImpl set(value) = noImpl - val contentDocument: Document? - get() = noImpl - val contentWindow: Window? - get() = noImpl - var align: String + open var frameBorder: String get() = noImpl set(value) = noImpl - var scrolling: String + open var longDesc: String get() = noImpl set(value) = noImpl - var frameBorder: String + open var marginHeight: String get() = noImpl set(value) = noImpl - var longDesc: String - get() = noImpl - set(value) = noImpl - var marginHeight: String - get() = noImpl - set(value) = noImpl - var marginWidth: String + open var marginWidth: String get() = noImpl set(value) = noImpl fun getSVGDocument(): Document? = noImpl } -@native public interface HTMLEmbedElement : HTMLElement { - var src: String +@native public abstract class HTMLEmbedElement : HTMLElement() { + open var src: String get() = noImpl set(value) = noImpl - var type: String + open var type: String get() = noImpl set(value) = noImpl - var width: String + open var width: String get() = noImpl set(value) = noImpl - var height: String + open var height: String get() = noImpl set(value) = noImpl - var align: String + open var align: String get() = noImpl set(value) = noImpl - var name: String + open var name: String get() = noImpl set(value) = noImpl fun getSVGDocument(): Document? = noImpl } -@native public interface HTMLObjectElement : HTMLElement { - var data: String +@native public abstract class HTMLObjectElement : HTMLElement() { + open var data: String get() = noImpl set(value) = noImpl - var type: String + open var type: String get() = noImpl set(value) = noImpl - var typeMustMatch: Boolean + open var typeMustMatch: Boolean get() = noImpl set(value) = noImpl - var name: String + open var name: String get() = noImpl set(value) = noImpl - var useMap: String + open var useMap: String get() = noImpl set(value) = noImpl - val form: HTMLFormElement? + open val form: HTMLFormElement? get() = noImpl - var width: String + open var width: String get() = noImpl set(value) = noImpl - var height: String + open var height: String get() = noImpl set(value) = noImpl - val contentDocument: Document? + open val contentDocument: Document? get() = noImpl - val contentWindow: Window? + open val contentWindow: Window? get() = noImpl - val willValidate: Boolean + open val willValidate: Boolean get() = noImpl - val validity: ValidityState + open val validity: ValidityState get() = noImpl - val validationMessage: String + open val validationMessage: String get() = noImpl - var align: String + open var align: String get() = noImpl set(value) = noImpl - var archive: String + open var archive: String get() = noImpl set(value) = noImpl - var code: String + open var code: String get() = noImpl set(value) = noImpl - var declare: Boolean + open var declare: Boolean get() = noImpl set(value) = noImpl - var hspace: Int + open var hspace: Int get() = noImpl set(value) = noImpl - var standby: String + open var standby: String get() = noImpl set(value) = noImpl - var vspace: Int + open var vspace: Int get() = noImpl set(value) = noImpl - var codeBase: String + open var codeBase: String get() = noImpl set(value) = noImpl - var codeType: String + open var codeType: String get() = noImpl set(value) = noImpl - var border: String + open var border: String get() = noImpl set(value) = noImpl fun getSVGDocument(): Document? = noImpl @@ -1680,77 +928,62 @@ import org.w3c.xhr.* fun setCustomValidity(error: String): Unit = noImpl } -@native public interface HTMLParamElement : HTMLElement { - var name: String +@native public abstract class HTMLParamElement : HTMLElement() { + open var name: String get() = noImpl set(value) = noImpl - var value: String + open var value: String get() = noImpl set(value) = noImpl - var type: String + open var type: String get() = noImpl set(value) = noImpl - var valueType: String + open var valueType: String get() = noImpl set(value) = noImpl } -@native public interface HTMLVideoElement : HTMLMediaElement, CanvasImageSource, ImageBitmapSource { - var width: Int +@native public abstract class HTMLVideoElement : HTMLMediaElement(), TexImageSource { + open var width: Int get() = noImpl set(value) = noImpl - var height: Int + open var height: Int get() = noImpl set(value) = noImpl - val videoWidth: Int + open val videoWidth: Int get() = noImpl - val videoHeight: Int + open val videoHeight: Int get() = noImpl - var poster: String + open var poster: String + get() = noImpl + set(value) = noImpl + open var playsInline: Boolean get() = noImpl set(value) = noImpl } -@native public interface HTMLAudioElement : HTMLMediaElement { +@native public abstract class HTMLAudioElement : HTMLMediaElement() { } -@native public interface HTMLSourceElement : HTMLElement { - var src: String +@native public abstract class HTMLTrackElement : HTMLElement() { + open var kind: String get() = noImpl set(value) = noImpl - var type: String + open var src: String get() = noImpl set(value) = noImpl - var srcset: String + open var srclang: String get() = noImpl set(value) = noImpl - var sizes: String + open var label: String get() = noImpl set(value) = noImpl - var media: String + open var default: Boolean get() = noImpl set(value) = noImpl -} - -@native public interface HTMLTrackElement : HTMLElement { - var kind: String + open val readyState: Short get() = noImpl - set(value) = noImpl - var src: String - get() = noImpl - set(value) = noImpl - var srclang: String - get() = noImpl - set(value) = noImpl - var label: String - get() = noImpl - set(value) = noImpl - var default: Boolean - get() = noImpl - set(value) = noImpl - val readyState: Short - get() = noImpl - val track: TextTrack + open val track: TextTrack get() = noImpl companion object { @@ -1761,85 +994,79 @@ import org.w3c.xhr.* } } -@native public interface HTMLMediaElement : HTMLElement { - val error: MediaError? +@native public abstract class HTMLMediaElement : HTMLElement() { + open val error: MediaError? get() = noImpl - var src: String + open var src: String get() = noImpl set(value) = noImpl - var srcObject: dynamic + open var srcObject: dynamic get() = noImpl set(value) = noImpl - val currentSrc: String + open val currentSrc: String get() = noImpl - var crossOrigin: String? + open var crossOrigin: String? get() = noImpl set(value) = noImpl - val networkState: Short + open val networkState: Short get() = noImpl - var preload: String + open var preload: String get() = noImpl set(value) = noImpl - val buffered: TimeRanges + open val buffered: TimeRanges get() = noImpl - val readyState: Short + open val readyState: Short get() = noImpl - val seeking: Boolean + open val seeking: Boolean get() = noImpl - var currentTime: Double + open var currentTime: Double get() = noImpl set(value) = noImpl - val duration: Double + open val duration: Double get() = noImpl - val paused: Boolean + open val paused: Boolean get() = noImpl - var defaultPlaybackRate: Double + open var defaultPlaybackRate: Double get() = noImpl set(value) = noImpl - var playbackRate: Double + open var playbackRate: Double get() = noImpl set(value) = noImpl - val played: TimeRanges + open val played: TimeRanges get() = noImpl - val seekable: TimeRanges + open val seekable: TimeRanges get() = noImpl - val ended: Boolean + open val ended: Boolean get() = noImpl - var autoplay: Boolean + open var autoplay: Boolean get() = noImpl set(value) = noImpl - var loop: Boolean + open var loop: Boolean get() = noImpl set(value) = noImpl - var mediaGroup: String + open var controls: Boolean get() = noImpl set(value) = noImpl - var controller: MediaController? + open var volume: Double get() = noImpl set(value) = noImpl - var controls: Boolean + open var muted: Boolean get() = noImpl set(value) = noImpl - var volume: Double + open var defaultMuted: Boolean get() = noImpl set(value) = noImpl - var muted: Boolean + open val audioTracks: AudioTrackList get() = noImpl - set(value) = noImpl - var defaultMuted: Boolean + open val videoTracks: VideoTrackList get() = noImpl - set(value) = noImpl - val audioTracks: AudioTrackList - get() = noImpl - val videoTracks: VideoTrackList - get() = noImpl - val textTracks: TextTrackList + open val textTracks: TextTrackList get() = noImpl fun load(): Unit = noImpl fun canPlayType(type: String): String = noImpl fun fastSeek(time: Double): Unit = noImpl - fun getStartDate(): Date = noImpl - fun play(): Unit = noImpl + fun getStartDate(): dynamic = noImpl + fun play(): dynamic = noImpl fun pause(): Unit = noImpl fun addTextTrack(kind: String, label: String = "", language: String = ""): TextTrack = noImpl @@ -1856,8 +1083,8 @@ import org.w3c.xhr.* } } -@native public interface MediaError { - val code: Short +@native public abstract class MediaError { + open val code: Short get() = noImpl companion object { @@ -1868,16 +1095,16 @@ import org.w3c.xhr.* } } -@native public interface AudioTrackList : EventTarget { - val length: Int +@native public abstract class AudioTrackList : EventTarget() { + open val length: Int get() = noImpl - var onchange: ((Event) -> dynamic)? + open var onchange: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var onaddtrack: ((Event) -> dynamic)? + open var onaddtrack: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var onremovetrack: ((Event) -> dynamic)? + open var onremovetrack: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @nativeGetter @@ -1885,32 +1112,32 @@ import org.w3c.xhr.* fun getTrackById(id: String): AudioTrack? = noImpl } -@native public interface AudioTrack : UnionAudioTrackOrTextTrackOrVideoTrack { - val id: String +@native public abstract class AudioTrack : UnionAudioTrackOrTextTrackOrVideoTrack { + open val id: String get() = noImpl - val kind: String + open val kind: String get() = noImpl - val label: String + open val label: String get() = noImpl - val language: String + open val language: String get() = noImpl - var enabled: Boolean + open var enabled: Boolean get() = noImpl set(value) = noImpl } -@native public interface VideoTrackList : EventTarget { - val length: Int +@native public abstract class VideoTrackList : EventTarget() { + open val length: Int get() = noImpl - val selectedIndex: Int + open val selectedIndex: Int get() = noImpl - var onchange: ((Event) -> dynamic)? + open var onchange: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var onaddtrack: ((Event) -> dynamic)? + open var onaddtrack: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var onremovetrack: ((Event) -> dynamic)? + open var onremovetrack: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @nativeGetter @@ -1918,107 +1145,30 @@ import org.w3c.xhr.* fun getTrackById(id: String): VideoTrack? = noImpl } -@native public interface VideoTrack : UnionAudioTrackOrTextTrackOrVideoTrack { - val id: String +@native public abstract class VideoTrack : UnionAudioTrackOrTextTrackOrVideoTrack { + open val id: String get() = noImpl - val kind: String + open val kind: String get() = noImpl - val label: String + open val label: String get() = noImpl - val language: String + open val language: String get() = noImpl - var selected: Boolean + open var selected: Boolean get() = noImpl set(value) = noImpl } -@native public open class MediaController : EventTarget { - open val readyState: Short +@native public abstract class TextTrackList : EventTarget() { + open val length: Int get() = noImpl - open val buffered: TimeRanges - get() = noImpl - open val seekable: TimeRanges - get() = noImpl - open val duration: Double - get() = noImpl - var currentTime: Double + open var onchange: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - open val paused: Boolean - get() = noImpl - open val playbackState: String - get() = noImpl - open val played: TimeRanges - get() = noImpl - var defaultPlaybackRate: Double + open var onaddtrack: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var playbackRate: Double - get() = noImpl - set(value) = noImpl - var volume: Double - get() = noImpl - set(value) = noImpl - var muted: Boolean - get() = noImpl - set(value) = noImpl - var onemptied: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onloadedmetadata: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onloadeddata: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var oncanplay: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var oncanplaythrough: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onplaying: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onended: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onwaiting: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ondurationchange: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ontimeupdate: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onplay: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onpause: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onratechange: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onvolumechange: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - fun pause(): Unit = noImpl - fun unpause(): Unit = noImpl - fun play(): Unit = noImpl -} - -@native public interface TextTrackList : EventTarget { - val length: Int - get() = noImpl - var onchange: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onaddtrack: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onremovetrack: ((Event) -> dynamic)? + open var onremovetrack: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @nativeGetter @@ -2026,64 +1176,64 @@ import org.w3c.xhr.* fun getTrackById(id: String): TextTrack? = noImpl } -@native public interface TextTrack : EventTarget, UnionAudioTrackOrTextTrackOrVideoTrack { - val kind: String +@native public abstract class TextTrack : EventTarget(), UnionAudioTrackOrTextTrackOrVideoTrack { + open val kind: String get() = noImpl - val label: String + open val label: String get() = noImpl - val language: String + open val language: String get() = noImpl - val id: String + open val id: String get() = noImpl - val inBandMetadataTrackDispatchType: String + open val inBandMetadataTrackDispatchType: String get() = noImpl - var mode: String + open var mode: String get() = noImpl set(value) = noImpl - val cues: TextTrackCueList? + open val cues: TextTrackCueList? get() = noImpl - val activeCues: TextTrackCueList? + open val activeCues: TextTrackCueList? get() = noImpl - var oncuechange: ((Event) -> dynamic)? + open var oncuechange: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl fun addCue(cue: TextTrackCue): Unit = noImpl fun removeCue(cue: TextTrackCue): Unit = noImpl } -@native public interface TextTrackCueList { - val length: Int +@native public abstract class TextTrackCueList { + open val length: Int get() = noImpl @nativeGetter operator fun get(index: Int): TextTrackCue? = noImpl fun getCueById(id: String): TextTrackCue? = noImpl } -@native public interface TextTrackCue : EventTarget { - val track: TextTrack? +@native public abstract class TextTrackCue : EventTarget() { + open val track: TextTrack? get() = noImpl - var id: String + open var id: String get() = noImpl set(value) = noImpl - var startTime: Double + open var startTime: Double get() = noImpl set(value) = noImpl - var endTime: Double + open var endTime: Double get() = noImpl set(value) = noImpl - var pauseOnExit: Boolean + open var pauseOnExit: Boolean get() = noImpl set(value) = noImpl - var onenter: ((Event) -> dynamic)? + open var onenter: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var onexit: ((Event) -> dynamic)? + open var onexit: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl } -@native public interface TimeRanges { - val length: Int +@native public abstract class TimeRanges { + open val length: Int get() = noImpl fun start(index: Int): Double = noImpl fun end(index: Int): Double = noImpl @@ -2095,318 +1245,263 @@ import org.w3c.xhr.* } @native public interface TrackEventInit : EventInit { - var track: UnionAudioTrackOrTextTrackOrVideoTrack? + var track: UnionAudioTrackOrTextTrackOrVideoTrack? /* = null */ } @Suppress("NOTHING_TO_INLINE") -public inline fun TrackEventInit(track: UnionAudioTrackOrTextTrackOrVideoTrack?, bubbles: Boolean = false, cancelable: Boolean = false): TrackEventInit { +public inline fun TrackEventInit(track: UnionAudioTrackOrTextTrackOrVideoTrack? = null, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): TrackEventInit { val o = js("({})") o["track"] = track o["bubbles"] = bubbles o["cancelable"] = cancelable + o["composed"] = composed return o } -@native public interface HTMLMapElement : HTMLElement { - var name: String +@native public abstract class HTMLMapElement : HTMLElement() { + open var name: String get() = noImpl set(value) = noImpl - val areas: HTMLCollection - get() = noImpl - val images: HTMLCollection + open val areas: HTMLCollection get() = noImpl } -@native public interface HTMLAreaElement : HTMLElement { - var alt: String +@native public abstract class HTMLAreaElement : HTMLElement(), HTMLHyperlinkElementUtils { + open var alt: String get() = noImpl set(value) = noImpl - var coords: String + open var coords: String get() = noImpl set(value) = noImpl - var shape: String + open var shape: String get() = noImpl set(value) = noImpl - var target: String + open var target: String get() = noImpl set(value) = noImpl - var download: String + open var download: String get() = noImpl set(value) = noImpl - var ping: DOMSettableTokenList + open var ping: String get() = noImpl set(value) = noImpl - var rel: String + open var rel: String get() = noImpl set(value) = noImpl - val relList: DOMTokenList + open val relList: DOMTokenList get() = noImpl - var hreflang: String + open var referrerPolicy: String get() = noImpl set(value) = noImpl - var type: String - get() = noImpl - set(value) = noImpl - var noHref: Boolean - get() = noImpl - set(value) = noImpl - var href: String - get() = noImpl - set(value) = noImpl - val origin: String - get() = noImpl - var protocol: String - get() = noImpl - set(value) = noImpl - var username: String - get() = noImpl - set(value) = noImpl - var password: String - get() = noImpl - set(value) = noImpl - var host: String - get() = noImpl - set(value) = noImpl - var hostname: String - get() = noImpl - set(value) = noImpl - var port: String - get() = noImpl - set(value) = noImpl - var pathname: String - get() = noImpl - set(value) = noImpl - var search: String - get() = noImpl - set(value) = noImpl - var searchParams: URLSearchParams - get() = noImpl - set(value) = noImpl - var hash: String + open var noHref: Boolean get() = noImpl set(value) = noImpl } -@native public interface HTMLTableElement : HTMLElement { - var caption: HTMLTableCaptionElement? +@native public abstract class HTMLTableElement : HTMLElement() { + open var caption: HTMLTableCaptionElement? get() = noImpl set(value) = noImpl - var tHead: HTMLTableSectionElement? + open var tHead: HTMLTableSectionElement? get() = noImpl set(value) = noImpl - var tFoot: HTMLTableSectionElement? + open var tFoot: HTMLTableSectionElement? get() = noImpl set(value) = noImpl - val tBodies: HTMLCollection + open val tBodies: HTMLCollection get() = noImpl - val rows: HTMLCollection + open val rows: HTMLCollection get() = noImpl - var sortable: Boolean + open var align: String get() = noImpl set(value) = noImpl - var align: String + open var border: String get() = noImpl set(value) = noImpl - var border: String + open var frame: String get() = noImpl set(value) = noImpl - var frame: String + open var rules: String get() = noImpl set(value) = noImpl - var rules: String + open var summary: String get() = noImpl set(value) = noImpl - var summary: String + open var width: String get() = noImpl set(value) = noImpl - var width: String + open var bgColor: String get() = noImpl set(value) = noImpl - var bgColor: String + open var cellPadding: String get() = noImpl set(value) = noImpl - var cellPadding: String + open var cellSpacing: String get() = noImpl set(value) = noImpl - var cellSpacing: String - get() = noImpl - set(value) = noImpl - fun createCaption(): HTMLElement = noImpl + fun createCaption(): HTMLTableCaptionElement = noImpl fun deleteCaption(): Unit = noImpl - fun createTHead(): HTMLElement = noImpl + fun createTHead(): HTMLTableSectionElement = noImpl fun deleteTHead(): Unit = noImpl - fun createTFoot(): HTMLElement = noImpl + fun createTFoot(): HTMLTableSectionElement = noImpl fun deleteTFoot(): Unit = noImpl - fun createTBody(): HTMLElement = noImpl - fun insertRow(index: Int = -1): HTMLElement = noImpl + fun createTBody(): HTMLTableSectionElement = noImpl + fun insertRow(index: Int = -1): HTMLTableRowElement = noImpl fun deleteRow(index: Int): Unit = noImpl - fun stopSorting(): Unit = noImpl } -@native public interface HTMLTableCaptionElement : HTMLElement { - var align: String +@native public abstract class HTMLTableCaptionElement : HTMLElement() { + open var align: String get() = noImpl set(value) = noImpl } -@native public interface HTMLTableColElement : HTMLElement { - var span: Int +@native public abstract class HTMLTableColElement : HTMLElement() { + open var span: Int get() = noImpl set(value) = noImpl - var align: String + open var align: String get() = noImpl set(value) = noImpl - var ch: String + open var ch: String get() = noImpl set(value) = noImpl - var chOff: String + open var chOff: String get() = noImpl set(value) = noImpl - var vAlign: String + open var vAlign: String get() = noImpl set(value) = noImpl - var width: String + open var width: String get() = noImpl set(value) = noImpl } -@native public interface HTMLTableSectionElement : HTMLElement { - val rows: HTMLCollection +@native public abstract class HTMLTableSectionElement : HTMLElement() { + open val rows: HTMLCollection get() = noImpl - var align: String + open var align: String get() = noImpl set(value) = noImpl - var ch: String + open var ch: String get() = noImpl set(value) = noImpl - var chOff: String + open var chOff: String get() = noImpl set(value) = noImpl - var vAlign: String + open var vAlign: String get() = noImpl set(value) = noImpl fun insertRow(index: Int = -1): HTMLElement = noImpl fun deleteRow(index: Int): Unit = noImpl } -@native public interface HTMLTableRowElement : HTMLElement { - val rowIndex: Int +@native public abstract class HTMLTableRowElement : HTMLElement() { + open val rowIndex: Int get() = noImpl - val sectionRowIndex: Int + open val sectionRowIndex: Int get() = noImpl - val cells: HTMLCollection + open val cells: HTMLCollection get() = noImpl - var align: String + open var align: String get() = noImpl set(value) = noImpl - var ch: String + open var ch: String get() = noImpl set(value) = noImpl - var chOff: String + open var chOff: String get() = noImpl set(value) = noImpl - var vAlign: String + open var vAlign: String get() = noImpl set(value) = noImpl - var bgColor: String + open var bgColor: String get() = noImpl set(value) = noImpl fun insertCell(index: Int = -1): HTMLElement = noImpl fun deleteCell(index: Int): Unit = noImpl } -@native public interface HTMLTableDataCellElement : HTMLTableCellElement { - var abbr: String +@native public abstract class HTMLTableCellElement : HTMLElement() { + open var colSpan: Int + get() = noImpl + set(value) = noImpl + open var rowSpan: Int + get() = noImpl + set(value) = noImpl + open var headers: String + get() = noImpl + set(value) = noImpl + open val cellIndex: Int + get() = noImpl + open var scope: String + get() = noImpl + set(value) = noImpl + open var abbr: String + get() = noImpl + set(value) = noImpl + open var align: String + get() = noImpl + set(value) = noImpl + open var axis: String + get() = noImpl + set(value) = noImpl + open var height: String + get() = noImpl + set(value) = noImpl + open var width: String + get() = noImpl + set(value) = noImpl + open var ch: String + get() = noImpl + set(value) = noImpl + open var chOff: String + get() = noImpl + set(value) = noImpl + open var noWrap: Boolean + get() = noImpl + set(value) = noImpl + open var vAlign: String + get() = noImpl + set(value) = noImpl + open var bgColor: String get() = noImpl set(value) = noImpl } -@native public interface HTMLTableHeaderCellElement : HTMLTableCellElement { - var scope: String +@native public abstract class HTMLFormElement : HTMLElement() { + open var acceptCharset: String get() = noImpl set(value) = noImpl - var abbr: String + open var action: String get() = noImpl set(value) = noImpl - var sorted: String + open var autocomplete: String get() = noImpl set(value) = noImpl - fun sort(): Unit = noImpl -} - -@native public interface HTMLTableCellElement : HTMLElement { - var colSpan: Int + open var enctype: String get() = noImpl set(value) = noImpl - var rowSpan: Int + open var encoding: String get() = noImpl set(value) = noImpl - val headers: DOMSettableTokenList - get() = noImpl - val cellIndex: Int - get() = noImpl - var align: String + open var method: String get() = noImpl set(value) = noImpl - var axis: String + open var name: String get() = noImpl set(value) = noImpl - var height: String + open var noValidate: Boolean get() = noImpl set(value) = noImpl - var width: String + open var target: String get() = noImpl set(value) = noImpl - var ch: String + open val elements: HTMLFormControlsCollection get() = noImpl - set(value) = noImpl - var chOff: String - get() = noImpl - set(value) = noImpl - var noWrap: Boolean - get() = noImpl - set(value) = noImpl - var vAlign: String - get() = noImpl - set(value) = noImpl - var bgColor: String - get() = noImpl - set(value) = noImpl -} - -@native public interface HTMLFormElement : HTMLElement { - var acceptCharset: String - get() = noImpl - set(value) = noImpl - var action: String - get() = noImpl - set(value) = noImpl - var autocomplete: String - get() = noImpl - set(value) = noImpl - var enctype: String - get() = noImpl - set(value) = noImpl - var encoding: String - get() = noImpl - set(value) = noImpl - var method: String - get() = noImpl - set(value) = noImpl - var name: String - get() = noImpl - set(value) = noImpl - var noValidate: Boolean - get() = noImpl - set(value) = noImpl - var target: String - get() = noImpl - set(value) = noImpl - val elements: HTMLFormControlsCollection - get() = noImpl - val length: Int + open val length: Int get() = noImpl @nativeGetter operator fun get(index: Int): Element? = noImpl @@ -2416,158 +1511,151 @@ public inline fun TrackEventInit(track: UnionAudioTrackOrTextTrackOrVideoTrack?, fun reset(): Unit = noImpl fun checkValidity(): Boolean = noImpl fun reportValidity(): Boolean = noImpl - fun requestAutocomplete(): Unit = noImpl } -@native public interface HTMLLabelElement : HTMLElement { - val form: HTMLFormElement? +@native public abstract class HTMLLabelElement : HTMLElement() { + open val form: HTMLFormElement? get() = noImpl - var htmlFor: String + open var htmlFor: String get() = noImpl set(value) = noImpl - val control: HTMLElement? + open val control: HTMLElement? get() = noImpl } -@native public interface HTMLInputElement : HTMLElement { - var accept: String +@native public abstract class HTMLInputElement : HTMLElement() { + open var accept: String get() = noImpl set(value) = noImpl - var alt: String + open var alt: String get() = noImpl set(value) = noImpl - var autocomplete: String + open var autocomplete: String get() = noImpl set(value) = noImpl - var autofocus: Boolean + open var autofocus: Boolean get() = noImpl set(value) = noImpl - var defaultChecked: Boolean + open var defaultChecked: Boolean get() = noImpl set(value) = noImpl - var checked: Boolean + open var checked: Boolean get() = noImpl set(value) = noImpl - var dirName: String + open var dirName: String get() = noImpl set(value) = noImpl - var disabled: Boolean + open var disabled: Boolean get() = noImpl set(value) = noImpl - val form: HTMLFormElement? + open val form: HTMLFormElement? get() = noImpl - val files: FileList? + open val files: FileList? get() = noImpl - var formAction: String + open var formAction: String get() = noImpl set(value) = noImpl - var formEnctype: String + open var formEnctype: String get() = noImpl set(value) = noImpl - var formMethod: String + open var formMethod: String get() = noImpl set(value) = noImpl - var formNoValidate: Boolean + open var formNoValidate: Boolean get() = noImpl set(value) = noImpl - var formTarget: String + open var formTarget: String get() = noImpl set(value) = noImpl - var height: Int + open var height: Int get() = noImpl set(value) = noImpl - var indeterminate: Boolean + open var indeterminate: Boolean get() = noImpl set(value) = noImpl - var inputMode: String + open var inputMode: String get() = noImpl set(value) = noImpl - val list: HTMLElement? + open val list: HTMLElement? get() = noImpl - var max: String + open var max: String get() = noImpl set(value) = noImpl - var maxLength: Int + open var maxLength: Int get() = noImpl set(value) = noImpl - var min: String + open var min: String get() = noImpl set(value) = noImpl - var minLength: Int + open var minLength: Int get() = noImpl set(value) = noImpl - var multiple: Boolean + open var multiple: Boolean get() = noImpl set(value) = noImpl - var name: String + open var name: String get() = noImpl set(value) = noImpl - var pattern: String + open var pattern: String get() = noImpl set(value) = noImpl - var placeholder: String + open var placeholder: String get() = noImpl set(value) = noImpl - var readOnly: Boolean + open var readOnly: Boolean get() = noImpl set(value) = noImpl - var required: Boolean + open var required: Boolean get() = noImpl set(value) = noImpl - var size: Int + open var size: Int get() = noImpl set(value) = noImpl - var src: String + open var src: String get() = noImpl set(value) = noImpl - var step: String + open var step: String get() = noImpl set(value) = noImpl - var type: String + open var type: String get() = noImpl set(value) = noImpl - var defaultValue: String + open var defaultValue: String get() = noImpl set(value) = noImpl - var value: String + open var value: String get() = noImpl set(value) = noImpl - var valueAsDate: Date? + open var valueAsDate: dynamic get() = noImpl set(value) = noImpl - var valueAsNumber: Double + open var valueAsNumber: Double get() = noImpl set(value) = noImpl - var valueLow: Double + open var width: Int get() = noImpl set(value) = noImpl - var valueHigh: Double + open val willValidate: Boolean + get() = noImpl + open val validity: ValidityState + get() = noImpl + open val validationMessage: String + get() = noImpl + open val labels: NodeList + get() = noImpl + open var selectionStart: Int? get() = noImpl set(value) = noImpl - var width: Int + open var selectionEnd: Int? get() = noImpl set(value) = noImpl - val willValidate: Boolean - get() = noImpl - val validity: ValidityState - get() = noImpl - val validationMessage: String - get() = noImpl - val labels: NodeList - get() = noImpl - var selectionStart: Int + open var selectionDirection: String? get() = noImpl set(value) = noImpl - var selectionEnd: Int + open var align: String get() = noImpl set(value) = noImpl - var selectionDirection: String - get() = noImpl - set(value) = noImpl - var align: String - get() = noImpl - set(value) = noImpl - var useMap: String + open var useMap: String get() = noImpl set(value) = noImpl fun stepUp(n: Int = 1): Unit = noImpl @@ -2581,101 +1669,101 @@ public inline fun TrackEventInit(track: UnionAudioTrackOrTextTrackOrVideoTrack?, fun setSelectionRange(start: Int, end: Int, direction: String = noImpl): Unit = noImpl } -@native public interface HTMLButtonElement : HTMLElement { - var autofocus: Boolean +@native public abstract class HTMLButtonElement : HTMLElement() { + open var autofocus: Boolean get() = noImpl set(value) = noImpl - var disabled: Boolean + open var disabled: Boolean get() = noImpl set(value) = noImpl - val form: HTMLFormElement? + open val form: HTMLFormElement? get() = noImpl - var formAction: String + open var formAction: String get() = noImpl set(value) = noImpl - var formEnctype: String + open var formEnctype: String get() = noImpl set(value) = noImpl - var formMethod: String + open var formMethod: String get() = noImpl set(value) = noImpl - var formNoValidate: Boolean + open var formNoValidate: Boolean get() = noImpl set(value) = noImpl - var formTarget: String + open var formTarget: String get() = noImpl set(value) = noImpl - var name: String + open var name: String get() = noImpl set(value) = noImpl - var type: String + open var type: String get() = noImpl set(value) = noImpl - var value: String + open var value: String get() = noImpl set(value) = noImpl - var menu: HTMLMenuElement? + open var menu: HTMLMenuElement? get() = noImpl set(value) = noImpl - val willValidate: Boolean + open val willValidate: Boolean get() = noImpl - val validity: ValidityState + open val validity: ValidityState get() = noImpl - val validationMessage: String + open val validationMessage: String get() = noImpl - val labels: NodeList + open val labels: NodeList get() = noImpl fun checkValidity(): Boolean = noImpl fun reportValidity(): Boolean = noImpl fun setCustomValidity(error: String): Unit = noImpl } -@native public interface HTMLSelectElement : HTMLElement { - var autocomplete: String +@native public abstract class HTMLSelectElement : HTMLElement() { + open var autocomplete: String get() = noImpl set(value) = noImpl - var autofocus: Boolean + open var autofocus: Boolean get() = noImpl set(value) = noImpl - var disabled: Boolean + open var disabled: Boolean get() = noImpl set(value) = noImpl - val form: HTMLFormElement? + open val form: HTMLFormElement? get() = noImpl - var multiple: Boolean + open var multiple: Boolean get() = noImpl set(value) = noImpl - var name: String + open var name: String get() = noImpl set(value) = noImpl - var required: Boolean + open var required: Boolean get() = noImpl set(value) = noImpl - var size: Int + open var size: Int get() = noImpl set(value) = noImpl - val type: String + open val type: String get() = noImpl - val options: HTMLOptionsCollection + open val options: HTMLOptionsCollection get() = noImpl - var length: Int + open var length: Int get() = noImpl set(value) = noImpl - val selectedOptions: HTMLCollection + open val selectedOptions: HTMLCollection get() = noImpl - var selectedIndex: Int + open var selectedIndex: Int get() = noImpl set(value) = noImpl - var value: String + open var value: String get() = noImpl set(value) = noImpl - val willValidate: Boolean + open val willValidate: Boolean get() = noImpl - val validity: ValidityState + open val validity: ValidityState get() = noImpl - val validationMessage: String + open val validationMessage: String get() = noImpl - val labels: NodeList + open val labels: NodeList get() = noImpl fun item(index: Int): Element? = noImpl @nativeGetter @@ -2690,115 +1778,115 @@ public inline fun TrackEventInit(track: UnionAudioTrackOrTextTrackOrVideoTrack?, fun setCustomValidity(error: String): Unit = noImpl } -@native public interface HTMLDataListElement : HTMLElement { - val options: HTMLCollection +@native public abstract class HTMLDataListElement : HTMLElement() { + open val options: HTMLCollection get() = noImpl } -@native public interface HTMLOptGroupElement : HTMLElement, UnionHTMLOptGroupElementOrHTMLOptionElement { - var disabled: Boolean +@native public abstract class HTMLOptGroupElement : HTMLElement(), UnionHTMLOptGroupElementOrHTMLOptionElement { + open var disabled: Boolean get() = noImpl set(value) = noImpl - var label: String + open var label: String get() = noImpl set(value) = noImpl } -@native public interface HTMLOptionElement : HTMLElement, UnionHTMLOptGroupElementOrHTMLOptionElement { - var disabled: Boolean +@native public abstract class HTMLOptionElement : HTMLElement(), UnionHTMLOptGroupElementOrHTMLOptionElement { + open var disabled: Boolean get() = noImpl set(value) = noImpl - val form: HTMLFormElement? + open val form: HTMLFormElement? get() = noImpl - var label: String + open var label: String get() = noImpl set(value) = noImpl - var defaultSelected: Boolean + open var defaultSelected: Boolean get() = noImpl set(value) = noImpl - var selected: Boolean + open var selected: Boolean get() = noImpl set(value) = noImpl - var value: String + open var value: String get() = noImpl set(value) = noImpl - var text: String + open var text: String get() = noImpl set(value) = noImpl - val index: Int + open val index: Int get() = noImpl } -@native public interface HTMLTextAreaElement : HTMLElement { - var autocomplete: String +@native public abstract class HTMLTextAreaElement : HTMLElement() { + open var autocomplete: String get() = noImpl set(value) = noImpl - var autofocus: Boolean + open var autofocus: Boolean get() = noImpl set(value) = noImpl - var cols: Int + open var cols: Int get() = noImpl set(value) = noImpl - var dirName: String + open var dirName: String get() = noImpl set(value) = noImpl - var disabled: Boolean + open var disabled: Boolean get() = noImpl set(value) = noImpl - val form: HTMLFormElement? + open val form: HTMLFormElement? get() = noImpl - var inputMode: String + open var inputMode: String get() = noImpl set(value) = noImpl - var maxLength: Int + open var maxLength: Int get() = noImpl set(value) = noImpl - var minLength: Int + open var minLength: Int get() = noImpl set(value) = noImpl - var name: String + open var name: String get() = noImpl set(value) = noImpl - var placeholder: String + open var placeholder: String get() = noImpl set(value) = noImpl - var readOnly: Boolean + open var readOnly: Boolean get() = noImpl set(value) = noImpl - var required: Boolean + open var required: Boolean get() = noImpl set(value) = noImpl - var rows: Int + open var rows: Int get() = noImpl set(value) = noImpl - var wrap: String + open var wrap: String get() = noImpl set(value) = noImpl - val type: String + open val type: String get() = noImpl - var defaultValue: String + open var defaultValue: String get() = noImpl set(value) = noImpl - var value: String + open var value: String get() = noImpl set(value) = noImpl - val textLength: Int + open val textLength: Int get() = noImpl - val willValidate: Boolean + open val willValidate: Boolean get() = noImpl - val validity: ValidityState + open val validity: ValidityState get() = noImpl - val validationMessage: String + open val validationMessage: String get() = noImpl - val labels: NodeList + open val labels: NodeList get() = noImpl - var selectionStart: Int + open var selectionStart: Int? get() = noImpl set(value) = noImpl - var selectionEnd: Int + open var selectionEnd: Int? get() = noImpl set(value) = noImpl - var selectionDirection: String + open var selectionDirection: String? get() = noImpl set(value) = noImpl fun checkValidity(): Boolean = noImpl @@ -2810,223 +1898,201 @@ public inline fun TrackEventInit(track: UnionAudioTrackOrTextTrackOrVideoTrack?, fun setSelectionRange(start: Int, end: Int, direction: String = noImpl): Unit = noImpl } -@native public interface HTMLKeygenElement : HTMLElement { - var autofocus: Boolean +@native public abstract class HTMLKeygenElement : HTMLElement() { + open var autofocus: Boolean get() = noImpl set(value) = noImpl - var challenge: String + open var challenge: String get() = noImpl set(value) = noImpl - var disabled: Boolean + open var disabled: Boolean get() = noImpl set(value) = noImpl - val form: HTMLFormElement? + open val form: HTMLFormElement? get() = noImpl - var keytype: String + open var keytype: String get() = noImpl set(value) = noImpl - var name: String + open var name: String get() = noImpl set(value) = noImpl - val type: String + open val type: String get() = noImpl - val willValidate: Boolean + open val willValidate: Boolean get() = noImpl - val validity: ValidityState + open val validity: ValidityState get() = noImpl - val validationMessage: String + open val validationMessage: String get() = noImpl - val labels: NodeList + open val labels: NodeList get() = noImpl fun checkValidity(): Boolean = noImpl fun reportValidity(): Boolean = noImpl fun setCustomValidity(error: String): Unit = noImpl } -@native public interface HTMLOutputElement : HTMLElement { - val htmlFor: DOMSettableTokenList +@native public abstract class HTMLOutputElement : HTMLElement() { + open val htmlFor: DOMTokenList get() = noImpl - val form: HTMLFormElement? + open val form: HTMLFormElement? get() = noImpl - var name: String + open var name: String get() = noImpl set(value) = noImpl - val type: String + open val type: String get() = noImpl - var defaultValue: String + open var defaultValue: String get() = noImpl set(value) = noImpl - var value: String + open var value: String get() = noImpl set(value) = noImpl - val willValidate: Boolean + open val willValidate: Boolean get() = noImpl - val validity: ValidityState + open val validity: ValidityState get() = noImpl - val validationMessage: String + open val validationMessage: String get() = noImpl - val labels: NodeList + open val labels: NodeList get() = noImpl fun checkValidity(): Boolean = noImpl fun reportValidity(): Boolean = noImpl fun setCustomValidity(error: String): Unit = noImpl } -@native public interface HTMLProgressElement : HTMLElement { - var value: Double +@native public abstract class HTMLProgressElement : HTMLElement() { + open var value: Double get() = noImpl set(value) = noImpl - var max: Double + open var max: Double get() = noImpl set(value) = noImpl - val position: Double + open val position: Double get() = noImpl - val labels: NodeList + open val labels: NodeList get() = noImpl } -@native public interface HTMLMeterElement : HTMLElement { - var value: Double +@native public abstract class HTMLMeterElement : HTMLElement() { + open var value: Double get() = noImpl set(value) = noImpl - var min: Double + open var min: Double get() = noImpl set(value) = noImpl - var max: Double + open var max: Double get() = noImpl set(value) = noImpl - var low: Double + open var low: Double get() = noImpl set(value) = noImpl - var high: Double + open var high: Double get() = noImpl set(value) = noImpl - var optimum: Double + open var optimum: Double get() = noImpl set(value) = noImpl - val labels: NodeList + open val labels: NodeList get() = noImpl } -@native public interface HTMLFieldSetElement : HTMLElement { - var disabled: Boolean +@native public abstract class HTMLFieldSetElement : HTMLElement() { + open var disabled: Boolean get() = noImpl set(value) = noImpl - val form: HTMLFormElement? + open val form: HTMLFormElement? get() = noImpl - var name: String + open var name: String get() = noImpl set(value) = noImpl - val type: String + open val type: String get() = noImpl - val elements: HTMLFormControlsCollection + open val elements: HTMLCollection get() = noImpl - val willValidate: Boolean + open val willValidate: Boolean get() = noImpl - val validity: ValidityState + open val validity: ValidityState get() = noImpl - val validationMessage: String + open val validationMessage: String get() = noImpl fun checkValidity(): Boolean = noImpl fun reportValidity(): Boolean = noImpl fun setCustomValidity(error: String): Unit = noImpl } -@native public interface HTMLLegendElement : HTMLElement { - val form: HTMLFormElement? +@native public abstract class HTMLLegendElement : HTMLElement() { + open val form: HTMLFormElement? get() = noImpl - var align: String + open var align: String get() = noImpl set(value) = noImpl } -@native public open class AutocompleteErrorEvent(type: String, eventInitDict: AutocompleteErrorEventInit = noImpl) : Event(type, eventInitDict) { - open val reason: String +@native public abstract class ValidityState { + open val valueMissing: Boolean + get() = noImpl + open val typeMismatch: Boolean + get() = noImpl + open val patternMismatch: Boolean + get() = noImpl + open val tooLong: Boolean + get() = noImpl + open val tooShort: Boolean + get() = noImpl + open val rangeUnderflow: Boolean + get() = noImpl + open val rangeOverflow: Boolean + get() = noImpl + open val stepMismatch: Boolean + get() = noImpl + open val badInput: Boolean + get() = noImpl + open val customError: Boolean + get() = noImpl + open val valid: Boolean get() = noImpl } -@native public interface AutocompleteErrorEventInit : EventInit { - var reason: String -} - -@Suppress("NOTHING_TO_INLINE") -public inline fun AutocompleteErrorEventInit(reason: String, bubbles: Boolean = false, cancelable: Boolean = false): AutocompleteErrorEventInit { - val o = js("({})") - - o["reason"] = reason - o["bubbles"] = bubbles - o["cancelable"] = cancelable - - return o -} - -@native public interface ValidityState { - val valueMissing: Boolean - get() = noImpl - val typeMismatch: Boolean - get() = noImpl - val patternMismatch: Boolean - get() = noImpl - val tooLong: Boolean - get() = noImpl - val tooShort: Boolean - get() = noImpl - val rangeUnderflow: Boolean - get() = noImpl - val rangeOverflow: Boolean - get() = noImpl - val stepMismatch: Boolean - get() = noImpl - val badInput: Boolean - get() = noImpl - val customError: Boolean - get() = noImpl - val valid: Boolean - get() = noImpl -} - -@native public interface HTMLDetailsElement : HTMLElement { - var open: Boolean +@native public abstract class HTMLDetailsElement : HTMLElement() { + open var open: Boolean get() = noImpl set(value) = noImpl } -@native public interface HTMLMenuElement : HTMLElement { - var type: String +@native public abstract class HTMLMenuElement : HTMLElement() { + open var type: String get() = noImpl set(value) = noImpl - var label: String + open var label: String get() = noImpl set(value) = noImpl - var compact: Boolean + open var compact: Boolean get() = noImpl set(value) = noImpl } -@native public interface HTMLMenuItemElement : HTMLElement { - var type: String +@native public abstract class HTMLMenuItemElement : HTMLElement() { + open var type: String get() = noImpl set(value) = noImpl - var label: String + open var label: String get() = noImpl set(value) = noImpl - var icon: String + open var icon: String get() = noImpl set(value) = noImpl - var disabled: Boolean + open var disabled: Boolean get() = noImpl set(value) = noImpl - var checked: Boolean + open var checked: Boolean get() = noImpl set(value) = noImpl - var radiogroup: String + open var radiogroup: String get() = noImpl set(value) = noImpl - var default: Boolean + open var default: Boolean get() = noImpl set(value) = noImpl - val command: HTMLElement? - get() = noImpl } @native public open class RelatedEvent(type: String, eventInitDict: RelatedEventInit = noImpl) : Event(type, eventInitDict) { @@ -3035,25 +2101,26 @@ public inline fun AutocompleteErrorEventInit(reason: String, bubbles: Boolean = } @native public interface RelatedEventInit : EventInit { - var relatedTarget: EventTarget? + var relatedTarget: EventTarget? /* = null */ } @Suppress("NOTHING_TO_INLINE") -public inline fun RelatedEventInit(relatedTarget: EventTarget?, bubbles: Boolean = false, cancelable: Boolean = false): RelatedEventInit { +public inline fun RelatedEventInit(relatedTarget: EventTarget? = null, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): RelatedEventInit { val o = js("({})") o["relatedTarget"] = relatedTarget o["bubbles"] = bubbles o["cancelable"] = cancelable + o["composed"] = composed return o } -@native public interface HTMLDialogElement : HTMLElement { - var open: Boolean +@native public abstract class HTMLDialogElement : HTMLElement() { + open var open: Boolean get() = noImpl set(value) = noImpl - var returnValue: String + open var returnValue: String get() = noImpl set(value) = noImpl fun show(anchor: UnionElementOrMouseEvent = noImpl): Unit = noImpl @@ -3061,66 +2128,82 @@ public inline fun RelatedEventInit(relatedTarget: EventTarget?, bubbles: Boolean fun close(returnValue: String = noImpl): Unit = noImpl } -@native public interface HTMLScriptElement : HTMLElement { - var src: String +@native public abstract class HTMLScriptElement : HTMLElement(), HTMLOrSVGScriptElement { + open var src: String get() = noImpl set(value) = noImpl - var type: String + open var type: String get() = noImpl set(value) = noImpl - var charset: String + open var charset: String get() = noImpl set(value) = noImpl - var async: Boolean + open var async: Boolean get() = noImpl set(value) = noImpl - var defer: Boolean + open var defer: Boolean get() = noImpl set(value) = noImpl - var crossOrigin: String? + open var crossOrigin: String? get() = noImpl set(value) = noImpl - var text: String + open var text: String get() = noImpl set(value) = noImpl - var event: String + open var nonce: String get() = noImpl set(value) = noImpl - var htmlFor: String + open var event: String + get() = noImpl + set(value) = noImpl + open var htmlFor: String get() = noImpl set(value) = noImpl } -@native public interface HTMLTemplateElement : HTMLElement { - val content: DocumentFragment +@native public abstract class HTMLTemplateElement : HTMLElement() { + open val content: DocumentFragment get() = noImpl } -@native public interface HTMLCanvasElement : HTMLElement, CanvasImageSource, ImageBitmapSource { - var width: Int +@native public abstract class HTMLSlotElement : HTMLElement() { + open var name: String get() = noImpl set(value) = noImpl - var height: Int - get() = noImpl - set(value) = noImpl - fun getContext(contextId: String, vararg arguments: Any?): RenderingContext? = noImpl - fun probablySupportsContext(contextId: String, vararg arguments: Any?): Boolean = noImpl - fun setContext(context: RenderingContext): Unit = noImpl - fun transferControlToProxy(): CanvasProxy = noImpl - fun toDataURL(type: String = noImpl, vararg arguments: Any?): String = noImpl - fun toBlob(_callback: ((File) -> Unit)?, type: String = noImpl, vararg arguments: Any?): Unit = noImpl + fun assignedNodes(options: AssignedNodesOptions = noImpl): Array = noImpl } -@native public interface CanvasProxy : Transferable { - fun setContext(context: RenderingContext): Unit = noImpl -} - -@native public interface CanvasRenderingContext2DSettings { - var alpha: Boolean +@native public interface AssignedNodesOptions { + var flatten: Boolean? /* = false */ } @Suppress("NOTHING_TO_INLINE") -public inline fun CanvasRenderingContext2DSettings(alpha: Boolean = true): CanvasRenderingContext2DSettings { +public inline fun AssignedNodesOptions(flatten: Boolean? = false): AssignedNodesOptions { + val o = js("({})") + + o["flatten"] = flatten + + return o +} + +@native public abstract class HTMLCanvasElement : HTMLElement(), TexImageSource { + open var width: Int + get() = noImpl + set(value) = noImpl + open var height: Int + get() = noImpl + set(value) = noImpl + fun getContext(contextId: String, vararg arguments: Any?): RenderingContext? = noImpl + fun toDataURL(type: String = noImpl, quality: Any? = noImpl): String = noImpl + fun toBlob(_callback: (Blob?) -> Unit, type: String = noImpl, quality: Any? = noImpl): Unit = noImpl +} + +@native public interface CanvasRenderingContext2DSettings { + var alpha: Boolean? /* = true */ +} + +@Suppress("NOTHING_TO_INLINE") +public inline fun CanvasRenderingContext2DSettings(alpha: Boolean? = true): CanvasRenderingContext2DSettings { val o = js("({})") o["alpha"] = alpha @@ -3128,34 +2211,58 @@ public inline fun CanvasRenderingContext2DSettings(alpha: Boolean = true): Canva return o } -@native public open class CanvasRenderingContext2D() : RenderingContext, CanvasImageSource, ImageBitmapSource { - constructor(width: Int, height: Int) : this() +@native public abstract class CanvasRenderingContext2D : CanvasState, CanvasTransform, CanvasCompositing, CanvasImageSmoothing, CanvasFillStrokeStyles, CanvasShadowStyles, CanvasFilters, CanvasRect, CanvasDrawPath, CanvasUserInterface, CanvasText, CanvasDrawImage, CanvasHitRegion, CanvasImageData, CanvasPathDrawingStyles, CanvasTextDrawingStyles, CanvasPath, RenderingContext { open val canvas: HTMLCanvasElement get() = noImpl - var width: Int - get() = noImpl - set(value) = noImpl - var height: Int - get() = noImpl - set(value) = noImpl - var currentTransform: SVGMatrix - get() = noImpl - set(value) = noImpl +} + +@native public interface CanvasState { + fun save(): Unit = noImpl + fun restore(): Unit = noImpl +} + +@native public interface CanvasTransform { + fun scale(x: Double, y: Double): Unit = noImpl + fun rotate(angle: Double): Unit = noImpl + fun translate(x: Double, y: Double): Unit = noImpl + fun transform(a: Double, b: Double, c: Double, d: Double, e: Double, f: Double): Unit = noImpl + fun getTransform(): DOMMatrix = noImpl + fun setTransform(a: Double, b: Double, c: Double, d: Double, e: Double, f: Double): Unit = noImpl + fun setTransform(transform: dynamic = noImpl): Unit = noImpl + fun resetTransform(): Unit = noImpl +} + +@native public interface CanvasCompositing { var globalAlpha: Double get() = noImpl set(value) = noImpl var globalCompositeOperation: String get() = noImpl set(value) = noImpl +} + +@native public interface CanvasImageSmoothing { var imageSmoothingEnabled: Boolean get() = noImpl set(value) = noImpl + var imageSmoothingQuality: String + get() = noImpl + set(value) = noImpl +} + +@native public interface CanvasFillStrokeStyles { var strokeStyle: dynamic get() = noImpl set(value) = noImpl var fillStyle: dynamic get() = noImpl set(value) = noImpl + fun createLinearGradient(x0: Double, y0: Double, x1: Double, y1: Double): CanvasGradient = noImpl + fun createRadialGradient(x0: Double, y0: Double, r0: Double, x1: Double, y1: Double, r1: Double): CanvasGradient = noImpl + fun createPattern(image: dynamic, repetition: String): CanvasPattern? = noImpl +} + +@native public interface CanvasShadowStyles { var shadowOffsetX: Double get() = noImpl set(value) = noImpl @@ -3168,6 +2275,69 @@ public inline fun CanvasRenderingContext2DSettings(alpha: Boolean = true): Canva var shadowColor: String get() = noImpl set(value) = noImpl +} + +@native public interface CanvasFilters { + var filter: String + get() = noImpl + set(value) = noImpl +} + +@native public interface CanvasRect { + fun clearRect(x: Double, y: Double, w: Double, h: Double): Unit = noImpl + fun fillRect(x: Double, y: Double, w: Double, h: Double): Unit = noImpl + fun strokeRect(x: Double, y: Double, w: Double, h: Double): Unit = noImpl +} + +@native public interface CanvasDrawPath { + fun beginPath(): Unit = noImpl + fun fill(fillRule: String = "nonzero"): Unit = noImpl + fun fill(path: Path2D, fillRule: String = "nonzero"): Unit = noImpl + fun stroke(): Unit = noImpl + fun stroke(path: Path2D): Unit = noImpl + fun clip(fillRule: String = "nonzero"): Unit = noImpl + fun clip(path: Path2D, fillRule: String = "nonzero"): Unit = noImpl + fun resetClip(): Unit = noImpl + fun isPointInPath(x: Double, y: Double, fillRule: String = "nonzero"): Boolean = noImpl + fun isPointInPath(path: Path2D, x: Double, y: Double, fillRule: String = "nonzero"): Boolean = noImpl + fun isPointInStroke(x: Double, y: Double): Boolean = noImpl + fun isPointInStroke(path: Path2D, x: Double, y: Double): Boolean = noImpl +} + +@native public interface CanvasUserInterface { + fun drawFocusIfNeeded(element: Element): Unit = noImpl + fun drawFocusIfNeeded(path: Path2D, element: Element): Unit = noImpl + fun scrollPathIntoView(): Unit = noImpl + fun scrollPathIntoView(path: Path2D): Unit = noImpl +} + +@native public interface CanvasText { + fun fillText(text: String, x: Double, y: Double, maxWidth: Double = noImpl): Unit = noImpl + fun strokeText(text: String, x: Double, y: Double, maxWidth: Double = noImpl): Unit = noImpl + fun measureText(text: String): TextMetrics = noImpl +} + +@native public interface CanvasDrawImage { + fun drawImage(image: dynamic, dx: Double, dy: Double): Unit = noImpl + fun drawImage(image: dynamic, dx: Double, dy: Double, dw: Double, dh: Double): Unit = noImpl + fun drawImage(image: dynamic, sx: Double, sy: Double, sw: Double, sh: Double, dx: Double, dy: Double, dw: Double, dh: Double): Unit = noImpl +} + +@native public interface CanvasHitRegion { + fun addHitRegion(options: HitRegionOptions = noImpl): Unit = noImpl + fun removeHitRegion(id: String): Unit = noImpl + fun clearHitRegions(): Unit = noImpl +} + +@native public interface CanvasImageData { + fun createImageData(sw: Double, sh: Double): ImageData = noImpl + fun createImageData(imagedata: ImageData): ImageData = noImpl + fun getImageData(sx: Double, sy: Double, sw: Double, sh: Double): ImageData = noImpl + fun putImageData(imagedata: ImageData, dx: Double, dy: Double): Unit = noImpl + fun putImageData(imagedata: ImageData, dx: Double, dy: Double, dirtyX: Double, dirtyY: Double, dirtyWidth: Double, dirtyHeight: Double): Unit = noImpl +} + +@native public interface CanvasPathDrawingStyles { var lineWidth: Double get() = noImpl set(value) = noImpl @@ -3183,6 +2353,11 @@ public inline fun CanvasRenderingContext2DSettings(alpha: Boolean = true): Canva var lineDashOffset: Double get() = noImpl set(value) = noImpl + fun setLineDash(segments: Array): Unit = noImpl + fun getLineDash(): Array = noImpl +} + +@native public interface CanvasTextDrawingStyles { var font: String get() = noImpl set(value) = noImpl @@ -3195,53 +2370,9 @@ public inline fun CanvasRenderingContext2DSettings(alpha: Boolean = true): Canva var direction: String get() = noImpl set(value) = noImpl - fun commit(): Unit = noImpl - fun save(): Unit = noImpl - fun restore(): Unit = noImpl - fun scale(x: Double, y: Double): Unit = noImpl - fun rotate(angle: Double): Unit = noImpl - fun translate(x: Double, y: Double): Unit = noImpl - fun transform(a: Double, b: Double, c: Double, d: Double, e: Double, f: Double): Unit = noImpl - fun setTransform(a: Double, b: Double, c: Double, d: Double, e: Double, f: Double): Unit = noImpl - fun resetTransform(): Unit = noImpl - fun createLinearGradient(x0: Double, y0: Double, x1: Double, y1: Double): CanvasGradient = noImpl - fun createRadialGradient(x0: Double, y0: Double, r0: Double, x1: Double, y1: Double, r1: Double): CanvasGradient = noImpl - fun createPattern(image: CanvasImageSource, repetition: String): CanvasPattern = noImpl - fun clearRect(x: Double, y: Double, w: Double, h: Double): Unit = noImpl - fun fillRect(x: Double, y: Double, w: Double, h: Double): Unit = noImpl - fun strokeRect(x: Double, y: Double, w: Double, h: Double): Unit = noImpl - fun beginPath(): Unit = noImpl - fun fill(fillRule: String = "nonzero"): Unit = noImpl - fun fill(path: Path2D, fillRule: String = "nonzero"): Unit = noImpl - fun stroke(): Unit = noImpl - fun stroke(path: Path2D): Unit = noImpl - fun drawFocusIfNeeded(element: Element): Unit = noImpl - fun drawFocusIfNeeded(path: Path2D, element: Element): Unit = noImpl - fun scrollPathIntoView(): Unit = noImpl - fun scrollPathIntoView(path: Path2D): Unit = noImpl - fun clip(fillRule: String = "nonzero"): Unit = noImpl - fun clip(path: Path2D, fillRule: String = "nonzero"): Unit = noImpl - fun resetClip(): Unit = noImpl - fun isPointInPath(x: Double, y: Double, fillRule: String = "nonzero"): Boolean = noImpl - fun isPointInPath(path: Path2D, x: Double, y: Double, fillRule: String = "nonzero"): Boolean = noImpl - fun isPointInStroke(x: Double, y: Double): Boolean = noImpl - fun isPointInStroke(path: Path2D, x: Double, y: Double): Boolean = noImpl - fun fillText(text: String, x: Double, y: Double, maxWidth: Double = noImpl): Unit = noImpl - fun strokeText(text: String, x: Double, y: Double, maxWidth: Double = noImpl): Unit = noImpl - fun measureText(text: String): TextMetrics = noImpl - fun drawImage(image: CanvasImageSource, dx: Double, dy: Double): Unit = noImpl - fun drawImage(image: CanvasImageSource, dx: Double, dy: Double, dw: Double, dh: Double): Unit = noImpl - fun drawImage(image: CanvasImageSource, sx: Double, sy: Double, sw: Double, sh: Double, dx: Double, dy: Double, dw: Double, dh: Double): Unit = noImpl - fun addHitRegion(options: HitRegionOptions = noImpl): Unit = noImpl - fun removeHitRegion(id: String): Unit = noImpl - fun clearHitRegions(): Unit = noImpl - fun createImageData(sw: Double, sh: Double): ImageData = noImpl - fun createImageData(imagedata: ImageData): ImageData = noImpl - fun getImageData(sx: Double, sy: Double, sw: Double, sh: Double): ImageData = noImpl - fun putImageData(imagedata: ImageData, dx: Double, dy: Double): Unit = noImpl - fun putImageData(imagedata: ImageData, dx: Double, dy: Double, dirtyX: Double, dirtyY: Double, dirtyWidth: Double, dirtyHeight: Double): Unit = noImpl - fun setLineDash(segments: Array): Unit = noImpl - fun getLineDash(): Array = noImpl +} + +@native public interface CanvasPath { fun closePath(): Unit = noImpl fun moveTo(x: Double, y: Double): Unit = noImpl fun lineTo(x: Double, y: Double): Unit = noImpl @@ -3254,54 +2385,54 @@ public inline fun CanvasRenderingContext2DSettings(alpha: Boolean = true): Canva fun ellipse(x: Double, y: Double, radiusX: Double, radiusY: Double, rotation: Double, startAngle: Double, endAngle: Double, anticlockwise: Boolean = false): Unit = noImpl } -@native public interface CanvasGradient { +@native public abstract class CanvasGradient { fun addColorStop(offset: Double, color: String): Unit = noImpl } -@native public interface CanvasPattern { - fun setTransform(transform: SVGMatrix): Unit = noImpl +@native public abstract class CanvasPattern { + fun setTransform(transform: dynamic = noImpl): Unit = noImpl } -@native public interface TextMetrics { - val width: Double +@native public abstract class TextMetrics { + open val width: Double get() = noImpl - val actualBoundingBoxLeft: Double + open val actualBoundingBoxLeft: Double get() = noImpl - val actualBoundingBoxRight: Double + open val actualBoundingBoxRight: Double get() = noImpl - val fontBoundingBoxAscent: Double + open val fontBoundingBoxAscent: Double get() = noImpl - val fontBoundingBoxDescent: Double + open val fontBoundingBoxDescent: Double get() = noImpl - val actualBoundingBoxAscent: Double + open val actualBoundingBoxAscent: Double get() = noImpl - val actualBoundingBoxDescent: Double + open val actualBoundingBoxDescent: Double get() = noImpl - val emHeightAscent: Double + open val emHeightAscent: Double get() = noImpl - val emHeightDescent: Double + open val emHeightDescent: Double get() = noImpl - val hangingBaseline: Double + open val hangingBaseline: Double get() = noImpl - val alphabeticBaseline: Double + open val alphabeticBaseline: Double get() = noImpl - val ideographicBaseline: Double + open val ideographicBaseline: Double get() = noImpl } @native public interface HitRegionOptions { - var path: Path2D? - var fillRule: String - var id: String - var parentID: String? - var cursor: String - var control: Element? - var label: String? - var role: String? + var path: Path2D? /* = null */ + var fillRule: String? /* = "nonzero" */ + var id: String? /* = "" */ + var parentID: String? /* = null */ + var cursor: String? /* = "inherit" */ + var control: Element? /* = null */ + var label: String? /* = null */ + var role: String? /* = null */ } @Suppress("NOTHING_TO_INLINE") -public inline fun HitRegionOptions(path: Path2D? = null, fillRule: String = "nonzero", id: String = "", parentID: String? = null, cursor: String = "inherit", control: Element? = null, label: String? = null, role: String? = null): HitRegionOptions { +public inline fun HitRegionOptions(path: Path2D? = null, fillRule: String? = "nonzero", id: String? = "", parentID: String? = null, cursor: String? = "inherit", control: Element? = null, label: String? = null, role: String? = null): HitRegionOptions { val o = js("({})") o["path"] = path @@ -3316,7 +2447,7 @@ public inline fun HitRegionOptions(path: Path2D? = null, fillRule: String = "non return o } -@native public open class ImageData : ImageBitmapSource { +@native public open class ImageData : TexImageSource { constructor(sw: Int, sh: Int) constructor(data: Uint8ClampedArray, sw: Int, sh: Int = noImpl) open val width: Int @@ -3327,77 +2458,76 @@ public inline fun HitRegionOptions(path: Path2D? = null, fillRule: String = "non get() = noImpl } -@native public open class DrawingStyle(scope: Element = noImpl) { - var lineWidth: Double - get() = noImpl - set(value) = noImpl - var lineCap: String - get() = noImpl - set(value) = noImpl - var lineJoin: String - get() = noImpl - set(value) = noImpl - var miterLimit: Double - get() = noImpl - set(value) = noImpl - var lineDashOffset: Double - get() = noImpl - set(value) = noImpl - var font: String - get() = noImpl - set(value) = noImpl - var textAlign: String - get() = noImpl - set(value) = noImpl - var textBaseline: String - get() = noImpl - set(value) = noImpl - var direction: String - get() = noImpl - set(value) = noImpl - fun setLineDash(segments: Array): Unit = noImpl - fun getLineDash(): Array = noImpl -} - -@native public open class Path2D() { +@native public open class Path2D() : CanvasPath { constructor(path: Path2D) : this() constructor(paths: Array, fillRule: String = "nonzero") : this() constructor(d: String) : this() - fun addPath(path: Path2D, transformation: SVGMatrix? = null): Unit = noImpl - fun addPathByStrokingPath(path: Path2D, styles: dynamic, transformation: SVGMatrix? = null): Unit = noImpl - fun addText(text: String, styles: dynamic, transformation: SVGMatrix?, x: Double, y: Double, maxWidth: Double = noImpl): Unit = noImpl - fun addPathByStrokingText(text: String, styles: dynamic, transformation: SVGMatrix?, x: Double, y: Double, maxWidth: Double = noImpl): Unit = noImpl - fun addText(text: String, styles: dynamic, transformation: SVGMatrix?, path: Path2D, maxWidth: Double = noImpl): Unit = noImpl - fun addPathByStrokingText(text: String, styles: dynamic, transformation: SVGMatrix?, path: Path2D, maxWidth: Double = noImpl): Unit = noImpl - fun closePath(): Unit = noImpl - fun moveTo(x: Double, y: Double): Unit = noImpl - fun lineTo(x: Double, y: Double): Unit = noImpl - fun quadraticCurveTo(cpx: Double, cpy: Double, x: Double, y: Double): Unit = noImpl - fun bezierCurveTo(cp1x: Double, cp1y: Double, cp2x: Double, cp2y: Double, x: Double, y: Double): Unit = noImpl - fun arcTo(x1: Double, y1: Double, x2: Double, y2: Double, radius: Double): Unit = noImpl - fun arcTo(x1: Double, y1: Double, x2: Double, y2: Double, radiusX: Double, radiusY: Double, rotation: Double): Unit = noImpl - fun rect(x: Double, y: Double, w: Double, h: Double): Unit = noImpl - fun arc(x: Double, y: Double, radius: Double, startAngle: Double, endAngle: Double, anticlockwise: Boolean = false): Unit = noImpl - fun ellipse(x: Double, y: Double, radiusX: Double, radiusY: Double, rotation: Double, startAngle: Double, endAngle: Double, anticlockwise: Boolean = false): Unit = noImpl + fun addPath(path: Path2D, transform: dynamic = noImpl): Unit = noImpl } -@native public interface Touch { - val region: String? +@native public abstract class Touch { + open val region: String? get() = noImpl } -@native public interface DataTransfer { - var dropEffect: String +@native public abstract class ImageBitmapRenderingContext { + open val canvas: HTMLCanvasElement + get() = noImpl + fun transferFromImageBitmap(bitmap: ImageBitmap?): Unit = noImpl +} + +@native public interface ImageBitmapRenderingContextSettings { + var alpha: Boolean? /* = true */ +} + +@Suppress("NOTHING_TO_INLINE") +public inline fun ImageBitmapRenderingContextSettings(alpha: Boolean? = true): ImageBitmapRenderingContextSettings { + val o = js("({})") + + o["alpha"] = alpha + + return o +} + +@native public abstract class CustomElementRegistry { + fun define(name: String, constructor: () -> dynamic, options: ElementDefinitionOptions = noImpl): Unit = noImpl + fun get(name: String): Any? = noImpl + fun whenDefined(name: String): dynamic = noImpl +} + +@native public interface ElementDefinitionOptions { + var extends: String? +} + +@Suppress("NOTHING_TO_INLINE") +public inline fun ElementDefinitionOptions(extends: String?): ElementDefinitionOptions { + val o = js("({})") + + o["extends"] = extends + + return o +} + +@native public interface ElementContentEditable { + var contentEditable: String get() = noImpl set(value) = noImpl - var effectAllowed: String + val isContentEditable: Boolean + get() = noImpl +} + +@native public abstract class DataTransfer { + open var dropEffect: String get() = noImpl set(value) = noImpl - val items: DataTransferItemList + open var effectAllowed: String get() = noImpl - val types: Array + set(value) = noImpl + open val items: DataTransferItemList get() = noImpl - val files: FileList + open val types: dynamic + get() = noImpl + open val files: FileList get() = noImpl fun setDragImage(image: Element, x: Int, y: Int): Unit = noImpl fun getData(format: String): String = noImpl @@ -3405,8 +2535,8 @@ public inline fun HitRegionOptions(path: Path2D? = null, fillRule: String = "non fun clearData(format: String = noImpl): Unit = noImpl } -@native public interface DataTransferItemList { - val length: Int +@native public abstract class DataTransferItemList { + open val length: Int get() = noImpl @nativeGetter operator fun get(index: Int): DataTransferItem? = noImpl @@ -3416,26 +2546,26 @@ public inline fun HitRegionOptions(path: Path2D? = null, fillRule: String = "non fun clear(): Unit = noImpl } -@native public interface DataTransferItem { - val kind: String +@native public abstract class DataTransferItem { + open val kind: String get() = noImpl - val type: String + open val type: String get() = noImpl fun getAsString(_callback: ((String) -> Unit)?): Unit = noImpl fun getAsFile(): File? = noImpl } -@native public open class DragEvent(type: String, eventInitDict: DragEventInit = noImpl) : MouseEvent(noImpl, noImpl) { +@native public open class DragEvent(type: String, eventInitDict: DragEventInit = noImpl) : MouseEvent(type, eventInitDict) { open val dataTransfer: DataTransfer? get() = noImpl } @native public interface DragEventInit : MouseEventInit { - var dataTransfer: DataTransfer? + var dataTransfer: DataTransfer? /* = null */ } @Suppress("NOTHING_TO_INLINE") -public inline fun DragEventInit(dataTransfer: DataTransfer?, screenX: Int = 0, screenY: Int = 0, clientX: Int = 0, clientY: Int = 0, button: Short = 0, buttons: Short = 0, relatedTarget: EventTarget? = null, ctrlKey: Boolean = false, shiftKey: Boolean = false, altKey: Boolean = false, metaKey: Boolean = false, modifierAltGraph: Boolean = false, modifierCapsLock: Boolean = false, modifierFn: Boolean = false, modifierFnLock: Boolean = false, modifierHyper: Boolean = false, modifierNumLock: Boolean = false, modifierOS: Boolean = false, modifierScrollLock: Boolean = false, modifierSuper: Boolean = false, modifierSymbol: Boolean = false, modifierSymbolLock: Boolean = false, view: Window? = null, detail: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): DragEventInit { +public inline fun DragEventInit(dataTransfer: DataTransfer? = null, screenX: Int? = 0, screenY: Int? = 0, clientX: Int? = 0, clientY: Int? = 0, button: Short? = 0, buttons: Short? = 0, relatedTarget: EventTarget? = null, ctrlKey: Boolean? = false, shiftKey: Boolean? = false, altKey: Boolean? = false, metaKey: Boolean? = false, modifierAltGraph: Boolean? = false, modifierCapsLock: Boolean? = false, modifierFn: Boolean? = false, modifierFnLock: Boolean? = false, modifierHyper: Boolean? = false, modifierNumLock: Boolean? = false, modifierScrollLock: Boolean? = false, modifierSuper: Boolean? = false, modifierSymbol: Boolean? = false, modifierSymbolLock: Boolean? = false, view: Window? = null, detail: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): DragEventInit { val o = js("({})") o["dataTransfer"] = dataTransfer @@ -3456,7 +2586,6 @@ public inline fun DragEventInit(dataTransfer: DataTransfer?, screenX: Int = 0, s o["modifierFnLock"] = modifierFnLock o["modifierHyper"] = modifierHyper o["modifierNumLock"] = modifierNumLock - o["modifierOS"] = modifierOS o["modifierScrollLock"] = modifierScrollLock o["modifierSuper"] = modifierSuper o["modifierSymbol"] = modifierSymbol @@ -3465,66 +2594,60 @@ public inline fun DragEventInit(dataTransfer: DataTransfer?, screenX: Int = 0, s o["detail"] = detail o["bubbles"] = bubbles o["cancelable"] = cancelable + o["composed"] = composed return o } -@native public interface BarProp { - var visible: Boolean +@native public abstract class BarProp { + open val visible: Boolean get() = noImpl - set(value) = noImpl } -@native public interface History { - val length: Int +@native public abstract class History { + open val length: Int get() = noImpl - val state: Any? + open var scrollRestoration: String get() = noImpl - fun go(delta: Int = noImpl): Unit = noImpl + set(value) = noImpl + open val state: Any? + get() = noImpl + fun go(delta: Int = 0): Unit = noImpl fun back(): Unit = noImpl fun forward(): Unit = noImpl fun pushState(data: Any?, title: String, url: String? = null): Unit = noImpl fun replaceState(data: Any?, title: String, url: String? = null): Unit = noImpl } -@native public interface Location { - val ancestorOrigins: Array - get() = noImpl - var href: String +@native public abstract class Location { + open var href: String get() = noImpl set(value) = noImpl - val origin: String + open val origin: String get() = noImpl - var protocol: String + open var protocol: String get() = noImpl set(value) = noImpl - var username: String + open var host: String get() = noImpl set(value) = noImpl - var password: String + open var hostname: String get() = noImpl set(value) = noImpl - var host: String + open var port: String get() = noImpl set(value) = noImpl - var hostname: String + open var pathname: String get() = noImpl set(value) = noImpl - var port: String + open var search: String get() = noImpl set(value) = noImpl - var pathname: String + open var hash: String get() = noImpl set(value) = noImpl - var search: String + open val ancestorOrigins: dynamic get() = noImpl - set(value) = noImpl - var searchParams: URLSearchParams - get() = noImpl - set(value) = noImpl - var hash: String - get() = noImpl - set(value) = noImpl fun assign(url: String): Unit = noImpl fun replace(url: String): Unit = noImpl fun reload(): Unit = noImpl @@ -3536,16 +2659,17 @@ public inline fun DragEventInit(dataTransfer: DataTransfer?, screenX: Int = 0, s } @native public interface PopStateEventInit : EventInit { - var state: Any? + var state: Any? /* = null */ } @Suppress("NOTHING_TO_INLINE") -public inline fun PopStateEventInit(state: Any?, bubbles: Boolean = false, cancelable: Boolean = false): PopStateEventInit { +public inline fun PopStateEventInit(state: Any? = null, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): PopStateEventInit { val o = js("({})") o["state"] = state o["bubbles"] = bubbles o["cancelable"] = cancelable + o["composed"] = composed return o } @@ -3558,18 +2682,19 @@ public inline fun PopStateEventInit(state: Any?, bubbles: Boolean = false, cance } @native public interface HashChangeEventInit : EventInit { - var oldURL: String - var newURL: String + var oldURL: String? /* = "" */ + var newURL: String? /* = "" */ } @Suppress("NOTHING_TO_INLINE") -public inline fun HashChangeEventInit(oldURL: String, newURL: String, bubbles: Boolean = false, cancelable: Boolean = false): HashChangeEventInit { +public inline fun HashChangeEventInit(oldURL: String? = "", newURL: String? = "", bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): HashChangeEventInit { val o = js("({})") o["oldURL"] = oldURL o["newURL"] = newURL o["bubbles"] = bubbles o["cancelable"] = cancelable + o["composed"] = composed return o } @@ -3580,16 +2705,17 @@ public inline fun HashChangeEventInit(oldURL: String, newURL: String, bubbles: B } @native public interface PageTransitionEventInit : EventInit { - var persisted: Boolean + var persisted: Boolean? /* = false */ } @Suppress("NOTHING_TO_INLINE") -public inline fun PageTransitionEventInit(persisted: Boolean, bubbles: Boolean = false, cancelable: Boolean = false): PageTransitionEventInit { +public inline fun PageTransitionEventInit(persisted: Boolean? = false, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): PageTransitionEventInit { val o = js("({})") o["persisted"] = persisted o["bubbles"] = bubbles o["cancelable"] = cancelable + o["composed"] = composed return o } @@ -3600,31 +2726,31 @@ public inline fun PageTransitionEventInit(persisted: Boolean, bubbles: Boolean = set(value) = noImpl } -@native public interface ApplicationCache : EventTarget { - val status: Short +@native public abstract class ApplicationCache : EventTarget() { + open val status: Short get() = noImpl - var onchecking: ((Event) -> dynamic)? + open var onchecking: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var onerror: ((Event) -> dynamic)? + open var onerror: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var onnoupdate: ((Event) -> dynamic)? + open var onnoupdate: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var ondownloading: ((Event) -> dynamic)? + open var ondownloading: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var onprogress: ((Event) -> dynamic)? + open var onprogress: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var onupdateready: ((Event) -> dynamic)? + open var onupdateready: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var oncached: ((Event) -> dynamic)? + open var oncached: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var onobsolete: ((Event) -> dynamic)? + open var onobsolete: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl fun update(): Unit = noImpl @@ -3641,6 +2767,11 @@ public inline fun PageTransitionEventInit(persisted: Boolean, bubbles: Boolean = } } +@native public interface NavigatorOnLine { + val onLine: Boolean + get() = noImpl +} + @native public open class ErrorEvent(type: String, eventInitDict: ErrorEventInit = noImpl) : Event(type, eventInitDict) { open val message: String get() = noImpl @@ -3655,15 +2786,15 @@ public inline fun PageTransitionEventInit(persisted: Boolean, bubbles: Boolean = } @native public interface ErrorEventInit : EventInit { - var message: String - var filename: String - var lineno: Int - var colno: Int - var error: Any? + var message: String? /* = "" */ + var filename: String? /* = "" */ + var lineno: Int? /* = 0 */ + var colno: Int? /* = 0 */ + var error: Any? /* = null */ } @Suppress("NOTHING_TO_INLINE") -public inline fun ErrorEventInit(message: String, filename: String, lineno: Int, colno: Int, error: Any?, bubbles: Boolean = false, cancelable: Boolean = false): ErrorEventInit { +public inline fun ErrorEventInit(message: String? = "", filename: String? = "", lineno: Int? = 0, colno: Int? = 0, error: Any? = null, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): ErrorEventInit { val o = js("({})") o["message"] = message @@ -3673,13 +2804,305 @@ public inline fun ErrorEventInit(message: String, filename: String, lineno: Int, o["error"] = error o["bubbles"] = bubbles o["cancelable"] = cancelable + o["composed"] = composed return o } -@native public interface Navigator { - val serviceWorker: ServiceWorkerContainer +@native public open class PromiseRejectionEvent(type: String, eventInitDict: PromiseRejectionEventInit) : Event(type, eventInitDict) { + open val promise: dynamic get() = noImpl + open val reason: Any? + get() = noImpl +} + +@native public interface PromiseRejectionEventInit : EventInit { + var promise: dynamic + var reason: Any? +} + +@Suppress("NOTHING_TO_INLINE") +public inline fun PromiseRejectionEventInit(promise: dynamic, reason: Any?, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): PromiseRejectionEventInit { + val o = js("({})") + + o["promise"] = promise + o["reason"] = reason + o["bubbles"] = bubbles + o["cancelable"] = cancelable + o["composed"] = composed + + return o +} + +@native public interface GlobalEventHandlers { + var onabort: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onblur: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var oncancel: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var oncanplay: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var oncanplaythrough: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onchange: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onclick: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onclose: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var oncontextmenu: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var oncuechange: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var ondblclick: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var ondrag: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var ondragend: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var ondragenter: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var ondragexit: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var ondragleave: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var ondragover: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var ondragstart: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var ondrop: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var ondurationchange: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onemptied: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onended: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onerror: ((dynamic, String, Int, Int, Any?) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onfocus: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var oninput: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var oninvalid: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onkeydown: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onkeypress: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onkeyup: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onload: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onloadeddata: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onloadedmetadata: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onloadend: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onloadstart: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onmousedown: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onmouseenter: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onmouseleave: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onmousemove: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onmouseout: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onmouseover: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onmouseup: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onwheel: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onpause: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onplay: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onplaying: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onprogress: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onratechange: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onreset: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onresize: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onscroll: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onseeked: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onseeking: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onselect: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onshow: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onstalled: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onsubmit: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onsuspend: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var ontimeupdate: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var ontoggle: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onvolumechange: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onwaiting: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl +} + +@native public interface WindowEventHandlers { + var onafterprint: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onbeforeprint: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onbeforeunload: ((Event) -> String?)? + get() = noImpl + set(value) = noImpl + var onhashchange: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onlanguagechange: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onmessage: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onoffline: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var ononline: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onpagehide: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onpageshow: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onpopstate: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onrejectionhandled: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onstorage: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onunhandledrejection: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onunload: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl +} + +@native public interface DocumentAndElementEventHandlers { + var oncopy: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var oncut: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + var onpaste: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl +} + +@native public interface WindowOrWorkerGlobalScope { + val caches: CacheStorage + get() = noImpl + val origin: String + get() = noImpl + fun fetch(input: dynamic, init: RequestInit = noImpl): dynamic = noImpl + fun btoa(data: String): String = noImpl + fun atob(data: String): String = noImpl + fun setTimeout(handler: dynamic, timeout: Int = 0, vararg arguments: Any?): Int = noImpl + fun clearTimeout(handle: Int = 0): Unit = noImpl + fun setInterval(handler: dynamic, timeout: Int = 0, vararg arguments: Any?): Int = noImpl + fun clearInterval(handle: Int = 0): Unit = noImpl + fun createImageBitmap(image: dynamic, options: ImageBitmapOptions = noImpl): dynamic = noImpl + fun createImageBitmap(image: dynamic, sx: Int, sy: Int, sw: Int, sh: Int, options: ImageBitmapOptions = noImpl): dynamic = noImpl +} + +@native public abstract class Navigator : NavigatorID, NavigatorLanguage, NavigatorOnLine, NavigatorContentUtils, NavigatorCookies, NavigatorPlugins, NavigatorConcurrentHardware { + open val serviceWorker: ServiceWorkerContainer + get() = noImpl + fun vibrate(pattern: dynamic): Boolean = noImpl +} + +@native public interface NavigatorID { val appCodeName: String get() = noImpl val appName: String @@ -3690,37 +3113,50 @@ public inline fun ErrorEventInit(message: String, filename: String, lineno: Int, get() = noImpl val product: String get() = noImpl + val productSub: String + get() = noImpl val userAgent: String get() = noImpl + val vendor: String + get() = noImpl val vendorSub: String get() = noImpl - val language: String? + val oscpu: String get() = noImpl - val languages: Array - get() = noImpl - val onLine: Boolean - get() = noImpl - val cookieEnabled: Boolean - get() = noImpl - val plugins: PluginArray - get() = noImpl - val mimeTypes: MimeTypeArray - get() = noImpl - val javaEnabled: Boolean - get() = noImpl - fun vibrate(pattern: dynamic): Boolean = noImpl fun taintEnabled(): Boolean = noImpl +} + +@native public interface NavigatorLanguage { + val language: String + get() = noImpl + val languages: dynamic + get() = noImpl +} + +@native public interface NavigatorContentUtils { fun registerProtocolHandler(scheme: String, url: String, title: String): Unit = noImpl fun registerContentHandler(mimeType: String, url: String, title: String): Unit = noImpl fun isProtocolHandlerRegistered(scheme: String, url: String): String = noImpl fun isContentHandlerRegistered(mimeType: String, url: String): String = noImpl fun unregisterProtocolHandler(scheme: String, url: String): Unit = noImpl fun unregisterContentHandler(mimeType: String, url: String): Unit = noImpl - fun yieldForStorageUpdates(): Unit = noImpl } -@native public interface PluginArray { - val length: Int +@native public interface NavigatorCookies { + val cookieEnabled: Boolean + get() = noImpl +} + +@native public interface NavigatorPlugins { + val plugins: PluginArray + get() = noImpl + val mimeTypes: MimeTypeArray + get() = noImpl + fun javaEnabled(): Boolean = noImpl +} + +@native public abstract class PluginArray { + open val length: Int get() = noImpl fun refresh(reload: Boolean = false): Unit = noImpl fun item(index: Int): Plugin? = noImpl @@ -3731,8 +3167,8 @@ public inline fun ErrorEventInit(message: String, filename: String, lineno: Int, operator fun get(name: String): Plugin? = noImpl } -@native public interface MimeTypeArray { - val length: Int +@native public abstract class MimeTypeArray { + open val length: Int get() = noImpl fun item(index: Int): MimeType? = noImpl @nativeGetter @@ -3742,14 +3178,14 @@ public inline fun ErrorEventInit(message: String, filename: String, lineno: Int, operator fun get(name: String): MimeType? = noImpl } -@native public interface Plugin { - val name: String +@native public abstract class Plugin { + open val name: String get() = noImpl - val description: String + open val description: String get() = noImpl - val filename: String + open val filename: String get() = noImpl - val length: Int + open val length: Int get() = noImpl fun item(index: Int): MimeType? = noImpl @nativeGetter @@ -3759,27 +3195,46 @@ public inline fun ErrorEventInit(message: String, filename: String, lineno: Int, operator fun get(name: String): MimeType? = noImpl } -@native public interface MimeType { - val type: String +@native public abstract class MimeType { + open val type: String get() = noImpl - val description: String + open val description: String get() = noImpl - val suffixes: String + open val suffixes: String get() = noImpl - val enabledPlugin: Plugin + open val enabledPlugin: Plugin get() = noImpl } -@native public interface External { - fun AddSearchProvider(engineURL: String): Unit = noImpl - fun IsSearchProviderInstalled(engineURL: String): Int = noImpl +@native public abstract class ImageBitmap : TexImageSource { + open val width: Int + get() = noImpl + open val height: Int + get() = noImpl + fun close(): Unit = noImpl } -@native public interface ImageBitmap : CanvasImageSource, ImageBitmapSource { - val width: Int - get() = noImpl - val height: Int - get() = noImpl +@native public interface ImageBitmapOptions { + var imageOrientation: String? /* = "none" */ + var premultiplyAlpha: String? /* = "default" */ + var colorSpaceConversion: String? /* = "default" */ + var resizeWidth: Int? + var resizeHeight: Int? + var resizeQuality: String? /* = "low" */ +} + +@Suppress("NOTHING_TO_INLINE") +public inline fun ImageBitmapOptions(imageOrientation: String? = "none", premultiplyAlpha: String? = "default", colorSpaceConversion: String? = "default", resizeWidth: Int?, resizeHeight: Int?, resizeQuality: String? = "low"): ImageBitmapOptions { + val o = js("({})") + + o["imageOrientation"] = imageOrientation + o["premultiplyAlpha"] = premultiplyAlpha + o["colorSpaceConversion"] = colorSpaceConversion + o["resizeWidth"] = resizeWidth + o["resizeHeight"] = resizeHeight + o["resizeQuality"] = resizeQuality + + return o } @native public open class MessageEvent(type: String, eventInitDict: MessageEventInit = noImpl) : Event(type, eventInitDict) { @@ -3791,21 +3246,21 @@ public inline fun ErrorEventInit(message: String, filename: String, lineno: Int, get() = noImpl open val source: UnionMessagePortOrWindow? get() = noImpl - open val ports: Array? + open val ports: dynamic get() = noImpl - fun initMessageEvent(typeArg: String, canBubbleArg: Boolean, cancelableArg: Boolean, dataArg: Any?, originArg: String, lastEventIdArg: String, sourceArg: UnionMessagePortOrWindow, portsArg: Array?): Unit = noImpl + fun initMessageEvent(type: String, bubbles: Boolean, cancelable: Boolean, data: Any?, origin: String, lastEventId: String, source: UnionMessagePortOrWindow?, ports: Array): Unit = noImpl } @native public interface MessageEventInit : EventInit { - var data: Any? - var origin: String - var lastEventId: String - var source: UnionMessagePortOrWindow? - var ports: Array + var data: Any? /* = null */ + var origin: String? /* = "" */ + var lastEventId: String? /* = "" */ + var source: UnionMessagePortOrWindow? /* = null */ + var ports: Array? /* = arrayOf() */ } @Suppress("NOTHING_TO_INLINE") -public inline fun MessageEventInit(data: Any?, origin: String, lastEventId: String, source: UnionMessagePortOrWindow?, ports: Array, bubbles: Boolean = false, cancelable: Boolean = false): MessageEventInit { +public inline fun MessageEventInit(data: Any? = null, origin: String? = "", lastEventId: String? = "", source: UnionMessagePortOrWindow? = null, ports: Array? = arrayOf(), bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): MessageEventInit { val o = js("({})") o["data"] = data @@ -3815,11 +3270,12 @@ public inline fun MessageEventInit(data: Any?, origin: String, lastEventId: Stri o["ports"] = ports o["bubbles"] = bubbles o["cancelable"] = cancelable + o["composed"] = composed return o } -@native public open class EventSource(url: String, eventSourceInitDict: EventSourceInit = noImpl) : EventTarget { +@native public open class EventSource(url: String, eventSourceInitDict: EventSourceInit = noImpl) : EventTarget() { open val url: String get() = noImpl open val withCredentials: Boolean @@ -3845,11 +3301,11 @@ public inline fun MessageEventInit(data: Any?, origin: String, lastEventId: Stri } @native public interface EventSourceInit { - var withCredentials: Boolean + var withCredentials: Boolean? /* = false */ } @Suppress("NOTHING_TO_INLINE") -public inline fun EventSourceInit(withCredentials: Boolean = false): EventSourceInit { +public inline fun EventSourceInit(withCredentials: Boolean? = false): EventSourceInit { val o = js("({})") o["withCredentials"] = withCredentials @@ -3857,7 +3313,7 @@ public inline fun EventSourceInit(withCredentials: Boolean = false): EventSource return o } -@native public open class WebSocket(url: String, protocols: dynamic = noImpl) : EventTarget { +@native public open class WebSocket(url: String, protocols: dynamic = arrayOf()) : EventTarget() { open val url: String get() = noImpl open val readyState: Short @@ -3907,13 +3363,13 @@ public inline fun EventSourceInit(withCredentials: Boolean = false): EventSource } @native public interface CloseEventInit : EventInit { - var wasClean: Boolean - var code: Short - var reason: String + var wasClean: Boolean? /* = false */ + var code: Short? /* = 0 */ + var reason: String? /* = "" */ } @Suppress("NOTHING_TO_INLINE") -public inline fun CloseEventInit(wasClean: Boolean, code: Short, reason: String, bubbles: Boolean = false, cancelable: Boolean = false): CloseEventInit { +public inline fun CloseEventInit(wasClean: Boolean? = false, code: Short? = 0, reason: String? = "", bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): CloseEventInit { val o = js("({})") o["wasClean"] = wasClean @@ -3921,6 +3377,7 @@ public inline fun CloseEventInit(wasClean: Boolean, code: Short, reason: String, o["reason"] = reason o["bubbles"] = bubbles o["cancelable"] = cancelable + o["composed"] = composed return o } @@ -3932,23 +3389,16 @@ public inline fun CloseEventInit(wasClean: Boolean, code: Short, reason: String, get() = noImpl } -@native public interface MessagePort : EventTarget, UnionMessagePortOrWindow, UnionMessagePortOrServiceWorker, UnionClientOrMessagePortOrServiceWorker, Transferable { - var onmessage: ((Event) -> dynamic)? +@native public abstract class MessagePort : EventTarget(), UnionMessagePortOrWindow, UnionMessagePortOrServiceWorker, UnionClientOrMessagePortOrServiceWorker { + open var onmessage: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - fun postMessage(message: Any?, transfer: Array = noImpl): Unit = noImpl + fun postMessage(message: Any?, transfer: Array = arrayOf()): Unit = noImpl fun start(): Unit = noImpl fun close(): Unit = noImpl } -@native public open class PortCollection { - fun add(port: MessagePort): Unit = noImpl - fun remove(port: MessagePort): Unit = noImpl - fun clear(): Unit = noImpl - fun iterate(callback: (MessagePort) -> Unit): Unit = noImpl -} - -@native public open class BroadcastChannel(channel: String) : EventTarget { +@native public open class BroadcastChannel(name: String) : EventTarget() { open val name: String get() = noImpl var onmessage: ((Event) -> dynamic)? @@ -3958,128 +3408,121 @@ public inline fun CloseEventInit(wasClean: Boolean, code: Short, reason: String, fun close(): Unit = noImpl } -@native public interface WorkerGlobalScope : EventTarget { - val caches: CacheStorage +@native public abstract class WorkerGlobalScope : EventTarget(), WindowOrWorkerGlobalScope, GlobalPerformance { + open val self: WorkerGlobalScope get() = noImpl - val self: WorkerGlobalScope + open val location: WorkerLocation get() = noImpl - val location: WorkerLocation + open val navigator: WorkerNavigator get() = noImpl - var onerror: ((dynamic, String, Int, Int, Any?) -> dynamic)? + open var onerror: ((dynamic, String, Int, Int, Any?) -> dynamic)? get() = noImpl set(value) = noImpl - var onlanguagechange: ((Event) -> dynamic)? + open var onlanguagechange: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var onoffline: ((Event) -> dynamic)? + open var onoffline: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var ononline: ((Event) -> dynamic)? + open var ononline: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - val navigator: WorkerNavigator + open var onrejectionhandled: ((Event) -> dynamic)? get() = noImpl - fun close(): Unit = noImpl + set(value) = noImpl + open var onunhandledrejection: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl fun importScripts(vararg urls: String): Unit = noImpl - fun createImageBitmap(image: ImageBitmapSource): dynamic = noImpl - fun createImageBitmap(image: ImageBitmapSource, sx: Int, sy: Int, sw: Int, sh: Int): dynamic = noImpl - fun setTimeout(handler: () -> dynamic, timeout: Int = 0, vararg arguments: Any?): Int = noImpl - fun setTimeout(handler: String, timeout: Int = 0, vararg arguments: Any?): Int = noImpl - fun clearTimeout(handle: Int = 0): Unit = noImpl - fun setInterval(handler: () -> dynamic, timeout: Int = 0, vararg arguments: Any?): Int = noImpl - fun setInterval(handler: String, timeout: Int = 0, vararg arguments: Any?): Int = noImpl - fun clearInterval(handle: Int = 0): Unit = noImpl - fun btoa(btoa: String): String = noImpl - fun atob(atob: String): String = noImpl - fun fetch(input: dynamic, init: RequestInit = noImpl): dynamic = noImpl } -@native public interface DedicatedWorkerGlobalScope : WorkerGlobalScope { - var onmessage: ((Event) -> dynamic)? +@native public abstract class DedicatedWorkerGlobalScope : WorkerGlobalScope() { + open var onmessage: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - fun postMessage(message: Any?, transfer: Array = noImpl): Unit = noImpl + fun postMessage(message: Any?, transfer: Array = arrayOf()): Unit = noImpl + fun close(): Unit = noImpl } -@native public interface SharedWorkerGlobalScope : WorkerGlobalScope { - val name: String +@native public abstract class SharedWorkerGlobalScope : WorkerGlobalScope() { + open val name: String get() = noImpl - val applicationCache: ApplicationCache + open val applicationCache: ApplicationCache get() = noImpl - var onconnect: ((Event) -> dynamic)? + open var onconnect: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl + fun close(): Unit = noImpl } -@native public open class Worker(scriptURL: String) : EventTarget { - var onmessage: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl +@native public interface AbstractWorker { var onerror: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl +} + +@native public open class Worker(scriptURL: String, options: WorkerOptions = noImpl) : EventTarget(), AbstractWorker { + var onmessage: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl fun terminate(): Unit = noImpl - fun postMessage(message: Any?, transfer: Array = noImpl): Unit = noImpl + fun postMessage(message: Any?, transfer: Array = arrayOf()): Unit = noImpl } -@native public open class SharedWorker(scriptURL: String, name: String = noImpl) : EventTarget { +@native public interface WorkerOptions { + var type: String? /* = "classic" */ + var credentials: String? /* = "omit" */ +} + +@Suppress("NOTHING_TO_INLINE") +public inline fun WorkerOptions(type: String? = "classic", credentials: String? = "omit"): WorkerOptions { + val o = js("({})") + + o["type"] = type + o["credentials"] = credentials + + return o +} + +@native public open class SharedWorker(scriptURL: String, name: String = "", options: WorkerOptions = noImpl) : EventTarget(), AbstractWorker { open val port: MessagePort get() = noImpl - var onerror: ((Event) -> dynamic)? +} + +@native public interface NavigatorConcurrentHardware { + val hardwareConcurrency: Int + get() = noImpl +} + +@native public abstract class WorkerNavigator : NavigatorID, NavigatorLanguage, NavigatorOnLine, NavigatorConcurrentHardware { + open val serviceWorker: ServiceWorkerContainer + get() = noImpl +} + +@native public abstract class WorkerLocation { + open var href: String get() = noImpl set(value) = noImpl -} - -@native public interface WorkerNavigator { - val serviceWorker: ServiceWorkerContainer + open val origin: String get() = noImpl - val appCodeName: String + open val protocol: String get() = noImpl - val appName: String + open val host: String get() = noImpl - val appVersion: String + open val hostname: String get() = noImpl - val platform: String + open val port: String get() = noImpl - val product: String + open val pathname: String get() = noImpl - val userAgent: String + open val search: String get() = noImpl - val vendorSub: String - get() = noImpl - val language: String? - get() = noImpl - val languages: Array - get() = noImpl - val onLine: Boolean - get() = noImpl - fun taintEnabled(): Boolean = noImpl -} - -@native public interface WorkerLocation { - var href: String - get() = noImpl - set(value) = noImpl - val origin: String - get() = noImpl - val protocol: String - get() = noImpl - val host: String - get() = noImpl - val hostname: String - get() = noImpl - val port: String - get() = noImpl - val pathname: String - get() = noImpl - val search: String - get() = noImpl - val hash: String + open val hash: String get() = noImpl } -@native public interface Storage { - val length: Int +@native public abstract class Storage { + open val length: Int get() = noImpl fun key(index: Int): String? = noImpl fun getItem(key: String): String? = noImpl @@ -4092,6 +3535,16 @@ public inline fun CloseEventInit(wasClean: Boolean, code: Short, reason: String, fun clear(): Unit = noImpl } +@native public interface WindowSessionStorage { + val sessionStorage: Storage + get() = noImpl +} + +@native public interface WindowLocalStorage { + val localStorage: Storage + get() = noImpl +} + @native public open class StorageEvent(type: String, eventInitDict: StorageEventInit = noImpl) : Event(type, eventInitDict) { open val key: String? get() = noImpl @@ -4106,15 +3559,15 @@ public inline fun CloseEventInit(wasClean: Boolean, code: Short, reason: String, } @native public interface StorageEventInit : EventInit { - var key: String? - var oldValue: String? - var newValue: String? - var url: String - var storageArea: Storage? + var key: String? /* = null */ + var oldValue: String? /* = null */ + var newValue: String? /* = null */ + var url: String? /* = "" */ + var storageArea: Storage? /* = null */ } @Suppress("NOTHING_TO_INLINE") -public inline fun StorageEventInit(key: String?, oldValue: String?, newValue: String?, url: String, storageArea: Storage?, bubbles: Boolean = false, cancelable: Boolean = false): StorageEventInit { +public inline fun StorageEventInit(key: String? = null, oldValue: String? = null, newValue: String? = null, url: String? = "", storageArea: Storage? = null, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): StorageEventInit { val o = js("({})") o["key"] = key @@ -4124,296 +3577,278 @@ public inline fun StorageEventInit(key: String?, oldValue: String?, newValue: St o["storageArea"] = storageArea o["bubbles"] = bubbles o["cancelable"] = cancelable + o["composed"] = composed return o } -@native public interface HTMLAppletElement : HTMLElement { - var align: String +@native public abstract class HTMLAppletElement : HTMLElement() { + open var align: String get() = noImpl set(value) = noImpl - var alt: String + open var alt: String get() = noImpl set(value) = noImpl - var archive: String + open var archive: String get() = noImpl set(value) = noImpl - var code: String + open var code: String get() = noImpl set(value) = noImpl - var codeBase: String + open var codeBase: String get() = noImpl set(value) = noImpl - var height: String + open var height: String get() = noImpl set(value) = noImpl - var hspace: Int + open var hspace: Int get() = noImpl set(value) = noImpl - var name: String + open var name: String get() = noImpl set(value) = noImpl - var _object: String + open var _object: String get() = noImpl set(value) = noImpl - var vspace: Int + open var vspace: Int get() = noImpl set(value) = noImpl - var width: String + open var width: String get() = noImpl set(value) = noImpl } -@native public interface HTMLMarqueeElement : HTMLElement { - var behavior: String +@native public abstract class HTMLMarqueeElement : HTMLElement() { + open var behavior: String get() = noImpl set(value) = noImpl - var bgColor: String + open var bgColor: String get() = noImpl set(value) = noImpl - var direction: String + open var direction: String get() = noImpl set(value) = noImpl - var height: String + open var height: String get() = noImpl set(value) = noImpl - var hspace: Int + open var hspace: Int get() = noImpl set(value) = noImpl - var loop: Int + open var loop: Int get() = noImpl set(value) = noImpl - var scrollAmount: Int + open var scrollAmount: Int get() = noImpl set(value) = noImpl - var scrollDelay: Int + open var scrollDelay: Int get() = noImpl set(value) = noImpl - var trueSpeed: Boolean + open var trueSpeed: Boolean get() = noImpl set(value) = noImpl - var vspace: Int + open var vspace: Int get() = noImpl set(value) = noImpl - var width: String + open var width: String get() = noImpl set(value) = noImpl - var onbounce: ((Event) -> dynamic)? + open var onbounce: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var onfinish: ((Event) -> dynamic)? + open var onfinish: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var onstart: ((Event) -> dynamic)? + open var onstart: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl fun start(): Unit = noImpl fun stop(): Unit = noImpl } -@native public interface HTMLFrameSetElement : HTMLElement { - var cols: String +@native public abstract class HTMLFrameSetElement : HTMLElement(), WindowEventHandlers { + open var cols: String get() = noImpl set(value) = noImpl - var rows: String - get() = noImpl - set(value) = noImpl - var onafterprint: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onbeforeprint: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onbeforeunload: ((Event) -> String?)? - get() = noImpl - set(value) = noImpl - var onhashchange: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onlanguagechange: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onmessage: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onoffline: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var ononline: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onpagehide: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onpageshow: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onpopstate: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onstorage: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onunload: ((Event) -> dynamic)? + open var rows: String get() = noImpl set(value) = noImpl } -@native public interface HTMLFrameElement : HTMLElement { - var name: String +@native public abstract class HTMLFrameElement : HTMLElement() { + open var name: String get() = noImpl set(value) = noImpl - var scrolling: String + open var scrolling: String get() = noImpl set(value) = noImpl - var src: String + open var src: String get() = noImpl set(value) = noImpl - var frameBorder: String + open var frameBorder: String get() = noImpl set(value) = noImpl - var longDesc: String + open var longDesc: String get() = noImpl set(value) = noImpl - var noResize: Boolean + open var noResize: Boolean get() = noImpl set(value) = noImpl - val contentDocument: Document? + open val contentDocument: Document? get() = noImpl - val contentWindow: Window? + open val contentWindow: Window? get() = noImpl - var marginHeight: String + open var marginHeight: String get() = noImpl set(value) = noImpl - var marginWidth: String + open var marginWidth: String get() = noImpl set(value) = noImpl } -@native public interface HTMLDirectoryElement : HTMLElement { - var compact: Boolean +@native public abstract class HTMLDirectoryElement : HTMLElement() { + open var compact: Boolean get() = noImpl set(value) = noImpl } -@native public interface HTMLFontElement : HTMLElement { - var color: String +@native public abstract class HTMLFontElement : HTMLElement() { + open var color: String get() = noImpl set(value) = noImpl - var face: String + open var face: String get() = noImpl set(value) = noImpl - var size: String + open var size: String get() = noImpl set(value) = noImpl } -@native public interface HTMLImageElement : HTMLElement, CanvasImageSource, ImageBitmapSource { - var name: String - get() = noImpl - set(value) = noImpl - var lowsrc: String - get() = noImpl - set(value) = noImpl - var align: String - get() = noImpl - set(value) = noImpl - var hspace: Int - get() = noImpl - set(value) = noImpl - var vspace: Int - get() = noImpl - set(value) = noImpl - var longDesc: String - get() = noImpl - set(value) = noImpl - var border: String - get() = noImpl - set(value) = noImpl - var alt: String - get() = noImpl - set(value) = noImpl - var src: String - get() = noImpl - set(value) = noImpl - var srcset: String - get() = noImpl - set(value) = noImpl - var sizes: String - get() = noImpl - set(value) = noImpl - var crossOrigin: String? - get() = noImpl - set(value) = noImpl - var useMap: String - get() = noImpl - set(value) = noImpl - var isMap: Boolean - get() = noImpl - set(value) = noImpl - var width: Int - get() = noImpl - set(value) = noImpl - var height: Int - get() = noImpl - set(value) = noImpl - val naturalWidth: Int - get() = noImpl - val naturalHeight: Int - get() = noImpl - val complete: Boolean - get() = noImpl - val currentSrc: String - get() = noImpl - val x: Double - get() = noImpl - val y: Double - get() = noImpl -} - -@native public interface HTMLPictureElement : HTMLElement { +@native public interface External { + fun AddSearchProvider(): Unit = noImpl + fun IsSearchProviderInstalled(): Unit = noImpl } @native public interface EventInit { - var bubbles: Boolean - var cancelable: Boolean + var bubbles: Boolean? /* = false */ + var cancelable: Boolean? /* = false */ + var composed: Boolean? /* = false */ } @Suppress("NOTHING_TO_INLINE") -public inline fun EventInit(bubbles: Boolean = false, cancelable: Boolean = false): EventInit { +public inline fun EventInit(bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): EventInit { val o = js("({})") o["bubbles"] = bubbles o["cancelable"] = cancelable + o["composed"] = composed return o } +@native public open class CustomEvent(type: String, eventInitDict: CustomEventInit = noImpl) : Event(type, eventInitDict) { + open val detail: Any? + get() = noImpl + fun initCustomEvent(type: String, bubbles: Boolean, cancelable: Boolean, detail: Any?): Unit = noImpl +} + @native public interface CustomEventInit : EventInit { - var detail: Any? + var detail: Any? /* = null */ } @Suppress("NOTHING_TO_INLINE") -public inline fun CustomEventInit(detail: Any? = null, bubbles: Boolean = false, cancelable: Boolean = false): CustomEventInit { +public inline fun CustomEventInit(detail: Any? = null, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): CustomEventInit { val o = js("({})") o["detail"] = detail o["bubbles"] = bubbles o["cancelable"] = cancelable + o["composed"] = composed return o } -@native public interface NodeList { - val length: Int +@native public interface EventListenerOptions { + var capture: Boolean? /* = false */ +} + +@Suppress("NOTHING_TO_INLINE") +public inline fun EventListenerOptions(capture: Boolean? = false): EventListenerOptions { + val o = js("({})") + + o["capture"] = capture + + return o +} + +@native public interface AddEventListenerOptions : EventListenerOptions { + var passive: Boolean? /* = false */ + var once: Boolean? /* = false */ +} + +@Suppress("NOTHING_TO_INLINE") +public inline fun AddEventListenerOptions(passive: Boolean? = false, once: Boolean? = false, capture: Boolean? = false): AddEventListenerOptions { + val o = js("({})") + + o["passive"] = passive + o["once"] = once + o["capture"] = capture + + return o +} + +@native public interface NonElementParentNode { + fun getElementById(elementId: String): Element? = noImpl +} + +@native public interface DocumentOrShadowRoot { + val fullscreenElement: Element? + get() = noImpl +} + +@native public interface ParentNode { + val children: HTMLCollection + get() = noImpl + val firstElementChild: Element? + get() = noImpl + val lastElementChild: Element? + get() = noImpl + val childElementCount: Int + get() = noImpl + fun prepend(vararg nodes: dynamic): Unit = noImpl + fun append(vararg nodes: dynamic): Unit = noImpl + fun querySelector(selectors: String): Element? = noImpl + fun querySelectorAll(selectors: String): NodeList = noImpl +} + +@native public interface NonDocumentTypeChildNode { + val previousElementSibling: Element? + get() = noImpl + val nextElementSibling: Element? + get() = noImpl +} + +@native public interface ChildNode { + fun before(vararg nodes: dynamic): Unit = noImpl + fun after(vararg nodes: dynamic): Unit = noImpl + fun replaceWith(vararg nodes: dynamic): Unit = noImpl + fun remove(): Unit = noImpl +} + +@native public interface Slotable { + val assignedSlot: HTMLSlotElement? + get() = noImpl +} + +@native public abstract class NodeList { + open val length: Int get() = noImpl fun item(index: Int): Node? = noImpl @nativeGetter operator fun get(index: Int): Node? = noImpl } -@native public interface HTMLCollection : UnionElementOrHTMLCollection { - val length: Int +@native public abstract class HTMLCollection : UnionElementOrHTMLCollection { + open val length: Int get() = noImpl fun item(index: Int): Element? = noImpl @nativeGetter @@ -4424,23 +3859,23 @@ public inline fun CustomEventInit(detail: Any? = null, bubbles: Boolean = false, } @native public open class MutationObserver(callback: (Array, MutationObserver) -> Unit) { - fun observe(target: Node, options: MutationObserverInit): Unit = noImpl + fun observe(target: Node, options: MutationObserverInit = noImpl): Unit = noImpl fun disconnect(): Unit = noImpl fun takeRecords(): Array = noImpl } @native public interface MutationObserverInit { - var childList: Boolean - var attributes: Boolean - var characterData: Boolean - var subtree: Boolean - var attributeOldValue: Boolean - var characterDataOldValue: Boolean - var attributeFilter: Array + var childList: Boolean? /* = false */ + var attributes: Boolean? + var characterData: Boolean? + var subtree: Boolean? /* = false */ + var attributeOldValue: Boolean? + var characterDataOldValue: Boolean? + var attributeFilter: Array? } @Suppress("NOTHING_TO_INLINE") -public inline fun MutationObserverInit(childList: Boolean = false, attributes: Boolean, characterData: Boolean, subtree: Boolean = false, attributeOldValue: Boolean, characterDataOldValue: Boolean, attributeFilter: Array): MutationObserverInit { +public inline fun MutationObserverInit(childList: Boolean? = false, attributes: Boolean?, characterData: Boolean?, subtree: Boolean? = false, attributeOldValue: Boolean?, characterDataOldValue: Boolean?, attributeFilter: Array?): MutationObserverInit { val o = js("({})") o["childList"] = childList @@ -4454,60 +3889,64 @@ public inline fun MutationObserverInit(childList: Boolean = false, attributes: B return o } -@native public interface MutationRecord { - val type: String +@native public abstract class MutationRecord { + open val type: String get() = noImpl - val target: Node + open val target: Node get() = noImpl - val addedNodes: NodeList + open val addedNodes: NodeList get() = noImpl - val removedNodes: NodeList + open val removedNodes: NodeList get() = noImpl - val previousSibling: Node? + open val previousSibling: Node? get() = noImpl - val nextSibling: Node? + open val nextSibling: Node? get() = noImpl - val attributeName: String? + open val attributeName: String? get() = noImpl - val attributeNamespace: String? + open val attributeNamespace: String? get() = noImpl - val oldValue: String? + open val oldValue: String? get() = noImpl } -@native public interface Node : EventTarget { - val nodeType: Short +@native public abstract class Node : EventTarget() { + open val nodeType: Short get() = noImpl - val nodeName: String + open val nodeName: String get() = noImpl - val baseURI: String? + open val baseURI: String get() = noImpl - val ownerDocument: Document? + open val isConnected: Boolean get() = noImpl - val parentNode: Node? + open val ownerDocument: Document? get() = noImpl - val parentElement: Element? + open val parentNode: Node? get() = noImpl - val childNodes: NodeList + open val parentElement: Element? get() = noImpl - val firstChild: Node? + open val childNodes: NodeList get() = noImpl - val lastChild: Node? + open val firstChild: Node? get() = noImpl - val previousSibling: Node? + open val lastChild: Node? get() = noImpl - val nextSibling: Node? + open val previousSibling: Node? get() = noImpl - var nodeValue: String? + open val nextSibling: Node? + get() = noImpl + open var nodeValue: String? get() = noImpl set(value) = noImpl - var textContent: String? + open var textContent: String? get() = noImpl set(value) = noImpl + fun getRootNode(options: GetRootNodeOptions = noImpl): Node = noImpl fun hasChildNodes(): Boolean = noImpl fun normalize(): Unit = noImpl fun cloneNode(deep: Boolean = false): Node = noImpl fun isEqualNode(otherNode: Node?): Boolean = noImpl + fun isSameNode(otherNode: Node?): Boolean = noImpl fun compareDocumentPosition(other: Node): Short = noImpl fun contains(other: Node?): Boolean = noImpl fun lookupPrefix(namespace: String?): String? = noImpl @@ -4540,123 +3979,222 @@ public inline fun MutationObserverInit(childList: Boolean = false, attributes: B } } -@native public interface DOMImplementation { +@native public interface GetRootNodeOptions { + var composed: Boolean? /* = false */ +} + +@Suppress("NOTHING_TO_INLINE") +public inline fun GetRootNodeOptions(composed: Boolean? = false): GetRootNodeOptions { + val o = js("({})") + + o["composed"] = composed + + return o +} + +@native public open class XMLDocument : Document() { +} + +@native public interface ElementCreationOptions { + @native("is") var is_: String? +} + +@Suppress("NOTHING_TO_INLINE") +public inline fun ElementCreationOptions(is_: String?): ElementCreationOptions { + val o = js("({})") + + o["is"] = is_ + + return o +} + +@native public abstract class DOMImplementation { fun createDocumentType(qualifiedName: String, publicId: String, systemId: String): DocumentType = noImpl fun createDocument(namespace: String?, qualifiedName: String, doctype: DocumentType? = null): XMLDocument = noImpl fun createHTMLDocument(title: String = noImpl): Document = noImpl fun hasFeature(): Boolean = noImpl } -@native public open class DocumentFragment : Node { - open val children: HTMLCollection +@native public abstract class DocumentType : Node(), ChildNode { + open val name: String get() = noImpl - open val firstElementChild: Element? + open val publicId: String get() = noImpl - open val lastElementChild: Element? + open val systemId: String get() = noImpl - open val childElementCount: Int - get() = noImpl - fun getElementById(elementId: String): Element? = noImpl - fun prepend(vararg nodes: dynamic): Unit = noImpl - fun append(vararg nodes: dynamic): Unit = noImpl - fun query(relativeSelectors: String): Element? = noImpl - fun queryAll(relativeSelectors: String): dynamic = noImpl - fun querySelector(selectors: String): Element? = noImpl - fun querySelectorAll(selectors: String): NodeList = noImpl } -@native public interface DocumentType : Node { - val name: String - get() = noImpl - val publicId: String - get() = noImpl - val systemId: String - get() = noImpl - fun before(vararg nodes: dynamic): Unit = noImpl - fun after(vararg nodes: dynamic): Unit = noImpl - fun replaceWith(vararg nodes: dynamic): Unit = noImpl - fun remove(): Unit = noImpl +@native public open class DocumentFragment : Node(), NonElementParentNode, ParentNode { } -@native public interface NamedNodeMap { - val length: Int +@native public open class ShadowRoot : DocumentFragment(), DocumentOrShadowRoot { + open val mode: String + get() = noImpl + open val host: Element + get() = noImpl +} + +@native public abstract class Element : Node(), ParentNode, NonDocumentTypeChildNode, ChildNode, Slotable, GeometryUtils, UnionElementOrProcessingInstruction, UnionElementOrHTMLCollection, UnionElementOrRadioNodeList, UnionElementOrMouseEvent { + open var innerHTML: String + get() = noImpl + set(value) = noImpl + open var outerHTML: String + get() = noImpl + set(value) = noImpl + open val namespaceURI: String? + get() = noImpl + open val prefix: String? + get() = noImpl + open val localName: String + get() = noImpl + open val tagName: String + get() = noImpl + open var id: String + get() = noImpl + set(value) = noImpl + open var className: String + get() = noImpl + set(value) = noImpl + open val classList: DOMTokenList + get() = noImpl + open var slot: String + get() = noImpl + set(value) = noImpl + open val attributes: NamedNodeMap + get() = noImpl + open val shadowRoot: ShadowRoot? + get() = noImpl + open var scrollTop: Double + get() = noImpl + set(value) = noImpl + open var scrollLeft: Double + get() = noImpl + set(value) = noImpl + open val scrollWidth: Int + get() = noImpl + open val scrollHeight: Int + get() = noImpl + open val clientTop: Int + get() = noImpl + open val clientLeft: Int + get() = noImpl + open val clientWidth: Int + get() = noImpl + open val clientHeight: Int + get() = noImpl + fun requestFullscreen(): dynamic = noImpl + fun insertAdjacentHTML(position: String, text: String): Unit = noImpl + fun hasAttributes(): Boolean = noImpl + fun getAttributeNames(): Array = noImpl + fun getAttribute(qualifiedName: String): String? = noImpl + fun getAttributeNS(namespace: String?, localName: String): String? = noImpl + fun setAttribute(qualifiedName: String, value: String): Unit = noImpl + fun setAttributeNS(namespace: String?, qualifiedName: String, value: String): Unit = noImpl + fun removeAttribute(qualifiedName: String): Unit = noImpl + fun removeAttributeNS(namespace: String?, localName: String): Unit = noImpl + fun hasAttribute(qualifiedName: String): Boolean = noImpl + fun hasAttributeNS(namespace: String?, localName: String): Boolean = noImpl + fun getAttributeNode(qualifiedName: String): Attr? = noImpl + fun getAttributeNodeNS(namespace: String?, localName: String): Attr? = noImpl + fun setAttributeNode(attr: Attr): Attr? = noImpl + fun setAttributeNodeNS(attr: Attr): Attr? = noImpl + fun removeAttributeNode(attr: Attr): Attr = noImpl + fun attachShadow(init: ShadowRootInit): ShadowRoot = noImpl + fun closest(selectors: String): Element? = noImpl + fun matches(selectors: String): Boolean = noImpl + fun webkitMatchesSelector(selectors: String): Boolean = noImpl + fun getElementsByTagName(qualifiedName: String): HTMLCollection = noImpl + fun getElementsByTagNameNS(namespace: String?, localName: String): HTMLCollection = noImpl + fun getElementsByClassName(classNames: String): HTMLCollection = noImpl + fun insertAdjacentElement(where: String, element: Element): Element? = noImpl + fun insertAdjacentText(where: String, data: String): Unit = noImpl + fun getClientRects(): Array = noImpl + fun getBoundingClientRect(): DOMRect = noImpl + fun scrollIntoView(): Unit = noImpl + fun scrollIntoView(arg: dynamic): Unit = noImpl + fun scroll(options: ScrollToOptions = noImpl): Unit = noImpl + fun scroll(x: Double, y: Double): Unit = noImpl + fun scrollTo(options: ScrollToOptions = noImpl): Unit = noImpl + fun scrollTo(x: Double, y: Double): Unit = noImpl + fun scrollBy(options: ScrollToOptions = noImpl): Unit = noImpl + fun scrollBy(x: Double, y: Double): Unit = noImpl +} + +@native public interface ShadowRootInit { + var mode: String? +} + +@Suppress("NOTHING_TO_INLINE") +public inline fun ShadowRootInit(mode: String?): ShadowRootInit { + val o = js("({})") + + o["mode"] = mode + + return o +} + +@native public abstract class NamedNodeMap { + open val length: Int get() = noImpl fun item(index: Int): Attr? = noImpl @nativeGetter operator fun get(index: Int): Attr? = noImpl - fun getNamedItem(name: String): Attr? = noImpl + fun getNamedItem(qualifiedName: String): Attr? = noImpl @nativeGetter - operator fun get(name: String): Attr? = noImpl + operator fun get(qualifiedName: String): Attr? = noImpl fun getNamedItemNS(namespace: String?, localName: String): Attr? = noImpl fun setNamedItem(attr: Attr): Attr? = noImpl fun setNamedItemNS(attr: Attr): Attr? = noImpl - fun removeNamedItem(name: String): Attr = noImpl + fun removeNamedItem(qualifiedName: String): Attr = noImpl fun removeNamedItemNS(namespace: String?, localName: String): Attr = noImpl } -@native public interface Attr { - val namespaceURI: String? +@native public abstract class Attr : Node() { + open val namespaceURI: String? get() = noImpl - val prefix: String? + open val prefix: String? get() = noImpl - val localName: String + open val localName: String get() = noImpl - val name: String + open val name: String get() = noImpl - var value: String + open var value: String get() = noImpl set(value) = noImpl - var nodeValue: String + open val ownerElement: Element? get() = noImpl - set(value) = noImpl - var textContent: String - get() = noImpl - set(value) = noImpl - val ownerElement: Element? - get() = noImpl - val specified: Boolean + open val specified: Boolean get() = noImpl } -@native public interface CharacterData : Node { - var data: String +@native public abstract class CharacterData : Node(), NonDocumentTypeChildNode, ChildNode { + open var data: String get() = noImpl set(value) = noImpl - val length: Int - get() = noImpl - val previousElementSibling: Element? - get() = noImpl - val nextElementSibling: Element? + open val length: Int get() = noImpl fun substringData(offset: Int, count: Int): String = noImpl fun appendData(data: String): Unit = noImpl fun insertData(offset: Int, data: String): Unit = noImpl fun deleteData(offset: Int, count: Int): Unit = noImpl fun replaceData(offset: Int, count: Int, data: String): Unit = noImpl - fun before(vararg nodes: dynamic): Unit = noImpl - fun after(vararg nodes: dynamic): Unit = noImpl - fun replaceWith(vararg nodes: dynamic): Unit = noImpl - fun remove(): Unit = noImpl } -@native public open class Text(data: String = "") : CharacterData, GeometryNode { +@native public open class Text(data: String = "") : CharacterData(), Slotable, GeometryUtils { open val wholeText: String get() = noImpl fun splitText(offset: Int): Text = noImpl - fun getBoxQuads(options: BoxQuadOptions = noImpl): Array = noImpl - fun convertQuadFromNode(quad: DOMQuad, from: GeometryNode, options: ConvertCoordinateOptions = noImpl): DOMQuad = noImpl - fun convertRectFromNode(rect: DOMRectReadOnly, from: GeometryNode, options: ConvertCoordinateOptions = noImpl): DOMQuad = noImpl - fun convertPointFromNode(point: DOMPointInit, from: GeometryNode, options: ConvertCoordinateOptions = noImpl): DOMPoint = noImpl } -@native public interface ProcessingInstruction : CharacterData, UnionElementOrProcessingInstruction { - val target: String - get() = noImpl - val sheet: StyleSheet? +@native public open class CDATASection : Text(noImpl) { +} + +@native public abstract class ProcessingInstruction : CharacterData(), LinkStyle, UnionElementOrProcessingInstruction { + open val target: String get() = noImpl } -@native public open class Comment(data: String = "") : CharacterData { +@native public open class Comment(data: String = "") : CharacterData() { } @native public open class Range { @@ -4693,7 +4231,7 @@ public inline fun MutationObserverInit(childList: Boolean = false, attributes: B fun isPointInRange(node: Node, offset: Int): Boolean = noImpl fun comparePoint(node: Node, offset: Int): Short = noImpl fun intersectsNode(node: Node): Boolean = noImpl - fun getClientRects(): dynamic = noImpl + fun getClientRects(): Array = noImpl fun getBoundingClientRect(): DOMRect = noImpl companion object { @@ -4704,30 +4242,30 @@ public inline fun MutationObserverInit(childList: Boolean = false, attributes: B } } -@native public interface NodeIterator { - val root: Node +@native public abstract class NodeIterator { + open val root: Node get() = noImpl - val referenceNode: Node + open val referenceNode: Node get() = noImpl - val pointerBeforeReferenceNode: Boolean + open val pointerBeforeReferenceNode: Boolean get() = noImpl - val whatToShow: Int + open val whatToShow: Int get() = noImpl - val filter: NodeFilter? + open val filter: NodeFilter? get() = noImpl fun nextNode(): Node? = noImpl fun previousNode(): Node? = noImpl fun detach(): Unit = noImpl } -@native public interface TreeWalker { - val root: Node +@native public abstract class TreeWalker { + open val root: Node get() = noImpl - val whatToShow: Int + open val whatToShow: Int get() = noImpl - val filter: NodeFilter? + open val filter: NodeFilter? get() = noImpl - var currentNode: Node + open var currentNode: Node get() = noImpl set(value) = noImpl fun parentNode(): Node? = noImpl @@ -4762,9 +4300,12 @@ public inline fun MutationObserverInit(childList: Boolean = false, attributes: B } } -@native public interface DOMTokenList { - val length: Int +@native public abstract class DOMTokenList { + open val length: Int get() = noImpl + open var value: String + get() = noImpl + set(value) = noImpl fun item(index: Int): String? = noImpl @nativeGetter operator fun get(index: Int): String? = noImpl @@ -4772,85 +4313,8 @@ public inline fun MutationObserverInit(childList: Boolean = false, attributes: B fun add(vararg tokens: String): Unit = noImpl fun remove(vararg tokens: String): Unit = noImpl fun toggle(token: String, force: Boolean = noImpl): Boolean = noImpl -} - -@native public interface DOMSettableTokenList : DOMTokenList { - var value: String - get() = noImpl - set(value) = noImpl -} - -@native public interface Selection { - val anchorNode: Node? - get() = noImpl - val anchorOffset: Int - get() = noImpl - val focusNode: Node? - get() = noImpl - val focusOffset: Int - get() = noImpl - val isCollapsed: Boolean - get() = noImpl - val rangeCount: Int - get() = noImpl - fun collapse(node: Node, offset: Int): Unit = noImpl - fun collapseToStart(): Unit = noImpl - fun collapseToEnd(): Unit = noImpl - fun extend(node: Node, offset: Int): Unit = noImpl - fun selectAllChildren(node: Node): Unit = noImpl - fun deleteFromDocument(): Unit = noImpl - fun getRangeAt(index: Int): Range = noImpl - fun addRange(range: Range): Unit = noImpl - fun removeRange(range: Range): Unit = noImpl - fun removeAllRanges(): Unit = noImpl -} - -@native public open class EditingBeforeInputEvent(type: String, eventInitDict: EditingBeforeInputEventInit = noImpl) : Event(type, eventInitDict) { - open val command: String - get() = noImpl - open val value: String - get() = noImpl -} - -@native public interface EditingBeforeInputEventInit : EventInit { - var command: String - var value: String -} - -@Suppress("NOTHING_TO_INLINE") -public inline fun EditingBeforeInputEventInit(command: String, value: String, bubbles: Boolean = false, cancelable: Boolean = false): EditingBeforeInputEventInit { - val o = js("({})") - - o["command"] = command - o["value"] = value - o["bubbles"] = bubbles - o["cancelable"] = cancelable - - return o -} - -@native public open class EditingInputEvent(type: String, eventInitDict: EditingInputEventInit = noImpl) : Event(type, eventInitDict) { - open val command: String - get() = noImpl - open val value: String - get() = noImpl -} - -@native public interface EditingInputEventInit : EventInit { - var command: String - var value: String -} - -@Suppress("NOTHING_TO_INLINE") -public inline fun EditingInputEventInit(command: String, value: String, bubbles: Boolean = false, cancelable: Boolean = false): EditingInputEventInit { - val o = js("({})") - - o["command"] = command - o["value"] = value - o["bubbles"] = bubbles - o["cancelable"] = cancelable - - return o + fun replace(token: String, newToken: String): Unit = noImpl + fun supports(token: String): Boolean = noImpl } @native public open class DOMPointReadOnly(x: Double, y: Double, z: Double, w: Double) { @@ -4883,14 +4347,14 @@ public inline fun EditingInputEventInit(command: String, value: String, bubbles: } @native public interface DOMPointInit { - var x: Double - var y: Double - var z: Double - var w: Double + var x: Double? /* = 0.0 */ + var y: Double? /* = 0.0 */ + var z: Double? /* = 0.0 */ + var w: Double? /* = 1.0 */ } @Suppress("NOTHING_TO_INLINE") -public inline fun DOMPointInit(x: Double = 0.0, y: Double = 0.0, z: Double = 0.0, w: Double = 1.0): DOMPointInit { +public inline fun DOMPointInit(x: Double? = 0.0, y: Double? = 0.0, z: Double? = 0.0, w: Double? = 1.0): DOMPointInit { val o = js("({})") o["x"] = x @@ -4936,14 +4400,14 @@ public inline fun DOMPointInit(x: Double = 0.0, y: Double = 0.0, z: Double = 0.0 } @native public interface DOMRectInit { - var x: Double - var y: Double - var width: Double - var height: Double + var x: Double? /* = 0.0 */ + var y: Double? /* = 0.0 */ + var width: Double? /* = 0.0 */ + var height: Double? /* = 0.0 */ } @Suppress("NOTHING_TO_INLINE") -public inline fun DOMRectInit(x: Double = 0.0, y: Double = 0.0, width: Double = 0.0, height: Double = 0.0): DOMRectInit { +public inline fun DOMRectInit(x: Double? = 0.0, y: Double? = 0.0, width: Double? = 0.0, height: Double? = 0.0): DOMRectInit { val o = js("({})") o["x"] = x @@ -4954,6 +4418,14 @@ public inline fun DOMRectInit(x: Double = 0.0, y: Double = 0.0, width: Double = return o } +@native public interface DOMRectList { + val length: Int + get() = noImpl + fun item(index: Int): DOMRect? = noImpl + @nativeGetter + operator fun get(index: Int): DOMRect? = noImpl +} + @native public open class DOMQuad { constructor(p1: DOMPointInit = noImpl, p2: DOMPointInit = noImpl, p3: DOMPointInit = noImpl, p4: DOMPointInit = noImpl) constructor(rect: DOMRectInit) @@ -5124,11 +4596,11 @@ public inline fun DOMRectInit(x: Double = 0.0, y: Double = 0.0, width: Double = } @native public interface ScrollOptions { - var behavior: String + var behavior: String? /* = "auto" */ } @Suppress("NOTHING_TO_INLINE") -public inline fun ScrollOptions(behavior: String = "auto"): ScrollOptions { +public inline fun ScrollOptions(behavior: String? = "auto"): ScrollOptions { val o = js("({})") o["behavior"] = behavior @@ -5136,73 +4608,107 @@ public inline fun ScrollOptions(behavior: String = "auto"): ScrollOptions { return o } -@native public interface MediaQueryList { - val media: String - get() = noImpl - val matches: Boolean - get() = noImpl - fun addListener(listener: (MediaQueryList) -> Unit): Unit = noImpl - fun removeListener(listener: (MediaQueryList) -> Unit): Unit = noImpl +@native public interface ScrollToOptions : ScrollOptions { + var left: Double? + var top: Double? } -@native public interface Screen { - val availWidth: Double +@Suppress("NOTHING_TO_INLINE") +public inline fun ScrollToOptions(left: Double?, top: Double?, behavior: String? = "auto"): ScrollToOptions { + val o = js("({})") + + o["left"] = left + o["top"] = top + o["behavior"] = behavior + + return o +} + +@native public abstract class MediaQueryList : EventTarget() { + open val media: String get() = noImpl - val availHeight: Double + open val matches: Boolean get() = noImpl - val width: Double + open var onchange: ((Event) -> dynamic)? get() = noImpl - val height: Double + set(value) = noImpl + fun addListener(listener: EventListener?): Unit = noImpl + fun addListener(listener: ((Event) -> Unit)?): Unit = noImpl + fun removeListener(listener: EventListener?): Unit = noImpl + fun removeListener(listener: ((Event) -> Unit)?): Unit = noImpl +} + +@native public open class MediaQueryListEvent(type: String, eventInitDict: MediaQueryListEventInit = noImpl) : Event(type, eventInitDict) { + open val media: String get() = noImpl - val colorDepth: Int - get() = noImpl - val pixelDepth: Int + open val matches: Boolean get() = noImpl } -@native public interface CaretPosition { - val offsetNode: Node +@native public interface MediaQueryListEventInit : EventInit { + var media: String? /* = "" */ + var matches: Boolean? /* = false */ +} + +@Suppress("NOTHING_TO_INLINE") +public inline fun MediaQueryListEventInit(media: String? = "", matches: Boolean? = false, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): MediaQueryListEventInit { + val o = js("({})") + + o["media"] = media + o["matches"] = matches + o["bubbles"] = bubbles + o["cancelable"] = cancelable + o["composed"] = composed + + return o +} + +@native public abstract class Screen { + open val availWidth: Int get() = noImpl - val offset: Int + open val availHeight: Int + get() = noImpl + open val width: Int + get() = noImpl + open val height: Int + get() = noImpl + open val colorDepth: Int + get() = noImpl + open val pixelDepth: Int + get() = noImpl +} + +@native public abstract class CaretPosition { + open val offsetNode: Node + get() = noImpl + open val offset: Int get() = noImpl fun getClientRect(): DOMRect? = noImpl } -@native public interface ScrollOptionsHorizontal : ScrollOptions { - var x: Double +@native public interface ScrollIntoViewOptions : ScrollOptions { + var block: String? /* = "center" */ + var inline: String? /* = "center" */ } @Suppress("NOTHING_TO_INLINE") -public inline fun ScrollOptionsHorizontal(x: Double, behavior: String = "auto"): ScrollOptionsHorizontal { +public inline fun ScrollIntoViewOptions(block: String? = "center", inline: String? = "center", behavior: String? = "auto"): ScrollIntoViewOptions { val o = js("({})") - o["x"] = x - o["behavior"] = behavior - - return o -} - -@native public interface ScrollOptionsVertical : ScrollOptions { - var y: Double -} - -@Suppress("NOTHING_TO_INLINE") -public inline fun ScrollOptionsVertical(y: Double, behavior: String = "auto"): ScrollOptionsVertical { - val o = js("({})") - - o["y"] = y + o["block"] = block + o["inline"] = inline o["behavior"] = behavior return o } @native public interface BoxQuadOptions { - var box: String - var relativeTo: GeometryNode + var box: String? /* = "border" */ + var relativeTo: dynamic } @Suppress("NOTHING_TO_INLINE") -public inline fun BoxQuadOptions(box: String = "border", relativeTo: GeometryNode): BoxQuadOptions { +public inline fun BoxQuadOptions(box: String? = "border", relativeTo: dynamic): BoxQuadOptions { val o = js("({})") o["box"] = box @@ -5212,12 +4718,12 @@ public inline fun BoxQuadOptions(box: String = "border", relativeTo: GeometryNod } @native public interface ConvertCoordinateOptions { - var fromBox: String - var toBox: String + var fromBox: String? /* = "border" */ + var toBox: String? /* = "border" */ } @Suppress("NOTHING_TO_INLINE") -public inline fun ConvertCoordinateOptions(fromBox: String = "border", toBox: String = "border"): ConvertCoordinateOptions { +public inline fun ConvertCoordinateOptions(fromBox: String? = "border", toBox: String? = "border"): ConvertCoordinateOptions { val o = js("({})") o["fromBox"] = fromBox @@ -5226,6 +4732,13 @@ public inline fun ConvertCoordinateOptions(fromBox: String = "border", toBox: St return o } +@native public interface GeometryUtils { + fun getBoxQuads(options: BoxQuadOptions = noImpl): Array = noImpl + fun convertQuadFromNode(quad: dynamic, from: dynamic, options: ConvertCoordinateOptions = noImpl): DOMQuad = noImpl + fun convertRectFromNode(rect: DOMRectReadOnly, from: dynamic, options: ConvertCoordinateOptions = noImpl): DOMQuad = noImpl + fun convertPointFromNode(point: DOMPointInit, from: dynamic, options: ConvertCoordinateOptions = noImpl): DOMPoint = noImpl +} + @native public @marker interface UnionElementOrProcessingInstruction { } @@ -5250,21 +4763,12 @@ public inline fun ConvertCoordinateOptions(fromBox: String = "border", toBox: St @native public @marker interface UnionMessagePortOrServiceWorker { } -@native public @marker interface ArrayBufferView { -} - -@native public @marker interface Transferable { +@native public @marker interface HTMLOrSVGScriptElement { } @native public @marker interface RenderingContext { } -@native public @marker interface CanvasImageSource { -} - -@native public @marker interface ImageBitmapSource { -} - -@native public @marker interface GeometryNode { +@native public @marker interface HTMLOrSVGImageElement { } diff --git a/js/js.libraries/src/generated/org.w3c.dom.svg.kt b/js/js.libraries/src/generated/org.w3c.dom.svg.kt index 283c10c1107..5c110fd9926 100644 --- a/js/js.libraries/src/generated/org.w3c.dom.svg.kt +++ b/js/js.libraries/src/generated/org.w3c.dom.svg.kt @@ -20,247 +20,72 @@ import org.w3c.performance.* import org.w3c.workers.* import org.w3c.xhr.* -@native public open class SVGDocument : Document() { - open val rootElement: SVGSVGElement +@native public abstract class SVGElement : Element(), ElementCSSInlineStyle, GlobalEventHandlers, SVGElementInstance { + open val dataset: DOMStringMap get() = noImpl -} - -@native public interface SVGSVGElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGLocatable, SVGFitToViewBox, SVGZoomAndPan { - val x: SVGAnimatedLength + open val ownerSVGElement: SVGSVGElement? get() = noImpl - val y: SVGAnimatedLength + open val viewportElement: SVGElement? get() = noImpl - val width: SVGAnimatedLength - get() = noImpl - val height: SVGAnimatedLength - get() = noImpl - var contentScriptType: dynamic + open var tabIndex: Int get() = noImpl set(value) = noImpl - var contentStyleType: dynamic - get() = noImpl - set(value) = noImpl - val viewport: SVGRect - get() = noImpl - val pixelUnitToMillimeterX: Float - get() = noImpl - val pixelUnitToMillimeterY: Float - get() = noImpl - val screenPixelToMillimeterX: Float - get() = noImpl - val screenPixelToMillimeterY: Float - get() = noImpl - val useCurrentView: Boolean - get() = noImpl - val currentView: SVGViewSpec - get() = noImpl - var currentScale: Float - get() = noImpl - set(value) = noImpl - val currentTranslate: SVGPoint - get() = noImpl - fun suspendRedraw(maxWaitMilliseconds: Int): Int = noImpl - fun unsuspendRedraw(suspendHandleID: Int): Unit = noImpl - fun unsuspendRedrawAll(): Unit = noImpl - fun forceRedraw(): Unit = noImpl - fun pauseAnimations(): Unit = noImpl - fun unpauseAnimations(): Unit = noImpl - fun animationsPaused(): Boolean = noImpl - fun getCurrentTime(): Float = noImpl - fun setCurrentTime(seconds: Float): Unit = noImpl - fun getIntersectionList(rect: SVGRect, referenceElement: SVGElement): NodeList = noImpl - fun getEnclosureList(rect: SVGRect, referenceElement: SVGElement): NodeList = noImpl - fun checkIntersection(element: SVGElement, rect: SVGRect): Boolean = noImpl - fun checkEnclosure(element: SVGElement, rect: SVGRect): Boolean = noImpl - fun deselectAll(): Unit = noImpl - fun createSVGNumber(): SVGNumber = noImpl - fun createSVGLength(): SVGLength = noImpl - fun createSVGAngle(): SVGAngle = noImpl - fun createSVGPoint(): SVGPoint = noImpl - fun createSVGMatrix(): SVGMatrix = noImpl - fun createSVGRect(): SVGRect = noImpl - fun createSVGTransform(): SVGTransform = noImpl - fun createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform = noImpl - fun getElementById(elementId: String): Element = noImpl + fun focus(): Unit = noImpl + fun blur(): Unit = noImpl } -@native public interface SVGGElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { +@native public interface SVGBoundingBoxOptions { + var fill: Boolean? /* = true */ + var stroke: Boolean? /* = false */ + var markers: Boolean? /* = false */ + var clipped: Boolean? /* = false */ } -@native public interface SVGDefsElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { +@Suppress("NOTHING_TO_INLINE") +public inline fun SVGBoundingBoxOptions(fill: Boolean? = true, stroke: Boolean? = false, markers: Boolean? = false, clipped: Boolean? = false): SVGBoundingBoxOptions { + val o = js("({})") + + o["fill"] = fill + o["stroke"] = stroke + o["markers"] = markers + o["clipped"] = clipped + + return o } -@native public interface SVGDescElement : SVGElement, SVGLangSpace, SVGStylable { +@native public abstract class SVGGraphicsElement : SVGElement(), SVGTests { + open val transform: SVGAnimatedTransformList + get() = noImpl + fun getBBox(options: SVGBoundingBoxOptions = noImpl): DOMRect = noImpl + fun getCTM(): DOMMatrix? = noImpl + fun getScreenCTM(): DOMMatrix? = noImpl } -@native public interface SVGTitleElement : SVGElement, SVGLangSpace, SVGStylable { +@native public abstract class SVGGeometryElement : SVGGraphicsElement() { + open val pathLength: SVGAnimatedNumber + get() = noImpl + fun isPointInFill(point: DOMPoint): Boolean = noImpl + fun isPointInStroke(point: DOMPoint): Boolean = noImpl + fun getTotalLength(): Float = noImpl + fun getPointAtLength(distance: Float): DOMPoint = noImpl } -@native public interface SVGSymbolElement : SVGElement, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGFitToViewBox { -} - -@native public interface SVGUseElement : SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { - val x: SVGAnimatedLength - get() = noImpl - val y: SVGAnimatedLength - get() = noImpl - val width: SVGAnimatedLength - get() = noImpl - val height: SVGAnimatedLength - get() = noImpl - val instanceRoot: SVGElementInstance - get() = noImpl - val animatedInstanceRoot: SVGElementInstance - get() = noImpl -} - -@native public interface SVGElementInstance : EventTarget { - val correspondingElement: SVGElement - get() = noImpl - val correspondingUseElement: SVGUseElement - get() = noImpl - val parentNode: SVGElementInstance - get() = noImpl - val childNodes: SVGElementInstanceList - get() = noImpl - val firstChild: SVGElementInstance - get() = noImpl - val lastChild: SVGElementInstance - get() = noImpl - val previousSibling: SVGElementInstance - get() = noImpl - val nextSibling: SVGElementInstance - get() = noImpl -} - -@native public interface SVGElementInstanceList { - val length: Int - get() = noImpl - fun item(index: Int): SVGElementInstance = noImpl -} - -@native public interface SVGImageElement : SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { - val x: SVGAnimatedLength - get() = noImpl - val y: SVGAnimatedLength - get() = noImpl - val width: SVGAnimatedLength - get() = noImpl - val height: SVGAnimatedLength - get() = noImpl - val preserveAspectRatio: SVGAnimatedPreserveAspectRatio - get() = noImpl -} - -@native public interface SVGSwitchElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { -} - -@native public interface GetSVGDocument { - fun getSVGDocument(): SVGDocument = noImpl -} - -@native public interface SVGElement : Element { -// var id: dynamic -// get() = noImpl -// set(value) = noImpl - var xmlbase: dynamic - get() = noImpl - set(value) = noImpl - val ownerSVGElement: SVGSVGElement - get() = noImpl - val viewportElement: SVGElement - get() = noImpl - val style: CSSStyleDeclaration - get() = noImpl -} - -@native public interface SVGAnimatedBoolean { - var baseVal: dynamic - get() = noImpl - set(value) = noImpl - val animVal: Boolean - get() = noImpl -} - -@native public interface SVGAnimatedString { - var baseVal: dynamic - get() = noImpl - set(value) = noImpl - val animVal: String - get() = noImpl -} - -@native public interface SVGStringList { - val numberOfItems: Int - get() = noImpl - fun clear(): Unit = noImpl - fun initialize(newItem: String): String = noImpl - fun getItem(index: Int): String = noImpl - fun insertItemBefore(newItem: String, index: Int): String = noImpl - fun replaceItem(newItem: String, index: Int): String = noImpl - fun removeItem(index: Int): String = noImpl - fun appendItem(newItem: String): String = noImpl -} - -@native public interface SVGAnimatedEnumeration { - var baseVal: dynamic - get() = noImpl - set(value) = noImpl - val animVal: Short - get() = noImpl -} - -@native public interface SVGAnimatedInteger { - var baseVal: dynamic - get() = noImpl - set(value) = noImpl - val animVal: Int - get() = noImpl -} - -@native public interface SVGNumber { - var value: dynamic +@native public abstract class SVGNumber { + open var value: Float get() = noImpl set(value) = noImpl } -@native public interface SVGAnimatedNumber { - var baseVal: dynamic +@native public abstract class SVGLength { + open val unitType: Short + get() = noImpl + open var value: Float get() = noImpl set(value) = noImpl - val animVal: Float - get() = noImpl -} - -@native public interface SVGNumberList { - val numberOfItems: Int - get() = noImpl - fun clear(): Unit = noImpl - fun initialize(newItem: SVGNumber): SVGNumber = noImpl - fun getItem(index: Int): SVGNumber = noImpl - fun insertItemBefore(newItem: SVGNumber, index: Int): SVGNumber = noImpl - fun replaceItem(newItem: SVGNumber, index: Int): SVGNumber = noImpl - fun removeItem(index: Int): SVGNumber = noImpl - fun appendItem(newItem: SVGNumber): SVGNumber = noImpl -} - -@native public interface SVGAnimatedNumberList { - val baseVal: SVGNumberList - get() = noImpl - val animVal: SVGNumberList - get() = noImpl -} - -@native public interface SVGLength { - val unitType: Short - get() = noImpl - var value: dynamic + open var valueInSpecifiedUnits: Float get() = noImpl set(value) = noImpl - var valueInSpecifiedUnits: dynamic - get() = noImpl - set(value) = noImpl - var valueAsString: dynamic + open var valueAsString: String get() = noImpl set(value) = noImpl fun newValueSpecifiedUnits(unitType: Short, valueInSpecifiedUnits: Float): Unit = noImpl @@ -281,42 +106,16 @@ import org.w3c.xhr.* } } -@native public interface SVGAnimatedLength { - val baseVal: SVGLength +@native public abstract class SVGAngle { + open val unitType: Short get() = noImpl - val animVal: SVGLength - get() = noImpl -} - -@native public interface SVGLengthList { - val numberOfItems: Int - get() = noImpl - fun clear(): Unit = noImpl - fun initialize(newItem: SVGLength): SVGLength = noImpl - fun getItem(index: Int): SVGLength = noImpl - fun insertItemBefore(newItem: SVGLength, index: Int): SVGLength = noImpl - fun replaceItem(newItem: SVGLength, index: Int): SVGLength = noImpl - fun removeItem(index: Int): SVGLength = noImpl - fun appendItem(newItem: SVGLength): SVGLength = noImpl -} - -@native public interface SVGAnimatedLengthList { - val baseVal: SVGLengthList - get() = noImpl - val animVal: SVGLengthList - get() = noImpl -} - -@native public interface SVGAngle { - val unitType: Short - get() = noImpl - var value: dynamic + open var value: Float get() = noImpl set(value) = noImpl - var valueInSpecifiedUnits: dynamic + open var valueInSpecifiedUnits: Float get() = noImpl set(value) = noImpl - var valueAsString: dynamic + open var valueAsString: String get() = noImpl set(value) = noImpl fun newValueSpecifiedUnits(unitType: Short, valueInSpecifiedUnits: Float): Unit = noImpl @@ -331,62 +130,153 @@ import org.w3c.xhr.* } } -@native public interface SVGAnimatedAngle { - val baseVal: SVGAngle +@native public abstract class SVGNameList { + open val length: Int get() = noImpl - val animVal: SVGAngle + open val numberOfItems: Int + get() = noImpl + fun clear(): Unit = noImpl + fun initialize(newItem: dynamic): dynamic = noImpl + fun getItem(index: Int): dynamic = noImpl + @nativeGetter + operator fun get(index: Int): dynamic = noImpl + fun insertItemBefore(newItem: dynamic, index: Int): dynamic = noImpl + fun replaceItem(newItem: dynamic, index: Int): dynamic = noImpl + fun removeItem(index: Int): dynamic = noImpl + fun appendItem(newItem: dynamic): dynamic = noImpl + @nativeSetter + operator fun set(index: Int, newItem: dynamic): Unit = noImpl +} + +@native public abstract class SVGNumberList { + open val length: Int + get() = noImpl + open val numberOfItems: Int + get() = noImpl + fun clear(): Unit = noImpl + fun initialize(newItem: SVGNumber): SVGNumber = noImpl + fun getItem(index: Int): SVGNumber = noImpl + @nativeGetter + operator fun get(index: Int): SVGNumber? = noImpl + fun insertItemBefore(newItem: SVGNumber, index: Int): SVGNumber = noImpl + fun replaceItem(newItem: SVGNumber, index: Int): SVGNumber = noImpl + fun removeItem(index: Int): SVGNumber = noImpl + fun appendItem(newItem: SVGNumber): SVGNumber = noImpl + @nativeSetter + operator fun set(index: Int, newItem: SVGNumber): Unit = noImpl +} + +@native public abstract class SVGLengthList { + open val length: Int + get() = noImpl + open val numberOfItems: Int + get() = noImpl + fun clear(): Unit = noImpl + fun initialize(newItem: SVGLength): SVGLength = noImpl + fun getItem(index: Int): SVGLength = noImpl + @nativeGetter + operator fun get(index: Int): SVGLength? = noImpl + fun insertItemBefore(newItem: SVGLength, index: Int): SVGLength = noImpl + fun replaceItem(newItem: SVGLength, index: Int): SVGLength = noImpl + fun removeItem(index: Int): SVGLength = noImpl + fun appendItem(newItem: SVGLength): SVGLength = noImpl + @nativeSetter + operator fun set(index: Int, newItem: SVGLength): Unit = noImpl +} + +@native public abstract class SVGAnimatedBoolean { + open var baseVal: Boolean + get() = noImpl + set(value) = noImpl + open val animVal: Boolean get() = noImpl } -@native public interface SVGColor { - val colorType: Short - get() = noImpl - val rgbColor: dynamic - get() = noImpl - val iccColor: SVGICCColor - get() = noImpl - fun setRGBColor(rgbColor: String): Unit = noImpl - fun setRGBColorICCColor(rgbColor: String, iccColor: String): Unit = noImpl - fun setColor(colorType: Short, rgbColor: String, iccColor: String): Unit = noImpl - - companion object { - val SVG_COLORTYPE_UNKNOWN: Short = 0 - val SVG_COLORTYPE_RGBCOLOR: Short = 1 - val SVG_COLORTYPE_RGBCOLOR_ICCCOLOR: Short = 2 - val SVG_COLORTYPE_CURRENTCOLOR: Short = 3 - } -} - -@native public interface SVGICCColor { - var colorProfile: dynamic +@native public abstract class SVGAnimatedEnumeration { + open var baseVal: Short get() = noImpl set(value) = noImpl - val colors: SVGNumberList + open val animVal: Short get() = noImpl } -@native public interface SVGRect { - var x: dynamic +@native public abstract class SVGAnimatedInteger { + open var baseVal: Int get() = noImpl set(value) = noImpl - var y: dynamic + open val animVal: Int get() = noImpl - set(value) = noImpl - var width: dynamic - get() = noImpl - set(value) = noImpl - var height: dynamic - get() = noImpl - set(value) = noImpl } -@native public interface SVGAnimatedRect { - val baseVal: SVGRect +@native public abstract class SVGAnimatedNumber { + open var baseVal: Float get() = noImpl - val animVal: SVGRect + set(value) = noImpl + open val animVal: Float get() = noImpl } +@native public abstract class SVGAnimatedLength { + open val baseVal: SVGLength + get() = noImpl + open val animVal: SVGLength + get() = noImpl +} + +@native public abstract class SVGAnimatedAngle { + open val baseVal: SVGAngle + get() = noImpl + open val animVal: SVGAngle + get() = noImpl +} + +@native public abstract class SVGAnimatedString { + open var baseVal: String + get() = noImpl + set(value) = noImpl + open val animVal: String + get() = noImpl +} + +@native public abstract class SVGAnimatedRect { + open val baseVal: DOMRect + get() = noImpl + open val animVal: DOMRectReadOnly + get() = noImpl +} + +@native public abstract class SVGAnimatedNumberList { + open val baseVal: SVGNumberList + get() = noImpl + open val animVal: SVGNumberList + get() = noImpl +} + +@native public abstract class SVGAnimatedLengthList { + open val baseVal: SVGLengthList + get() = noImpl + open val animVal: SVGLengthList + get() = noImpl +} + +@native public abstract class SVGStringList { + open val length: Int + get() = noImpl + open val numberOfItems: Int + get() = noImpl + fun clear(): Unit = noImpl + fun initialize(newItem: String): String = noImpl + fun getItem(index: Int): String = noImpl + @nativeGetter + operator fun get(index: Int): String? = noImpl + fun insertItemBefore(newItem: String, index: Int): String = noImpl + fun replaceItem(newItem: String, index: Int): String = noImpl + fun removeItem(index: Int): String = noImpl + fun appendItem(newItem: String): String = noImpl + @nativeSetter + operator fun set(index: Int, newItem: String): Unit = noImpl +} + @native public interface SVGUnitTypes { companion object { @@ -396,48 +286,11 @@ import org.w3c.xhr.* } } -@native public interface SVGStylable { - fun getPresentationAttribute(name: String): dynamic = noImpl -} - -@native public interface SVGLocatable { - val nearestViewportElement: SVGElement - get() = noImpl - val farthestViewportElement: SVGElement - get() = noImpl - fun getBBox(): SVGRect = noImpl - fun getCTM(): SVGMatrix = noImpl - fun getScreenCTM(): SVGMatrix = noImpl - fun getTransformToElement(element: SVGElement): SVGMatrix = noImpl -} - -@native public interface SVGTransformable : SVGLocatable { - val transform: SVGAnimatedTransformList - get() = noImpl -} - @native public interface SVGTests { - val requiredFeatures: SVGStringList - get() = noImpl val requiredExtensions: SVGStringList get() = noImpl val systemLanguage: SVGStringList get() = noImpl - fun hasExtension(extension: String): Boolean = noImpl -} - -@native public interface SVGLangSpace { - var xmllang: dynamic - get() = noImpl - set(value) = noImpl - var xmlspace: dynamic - get() = noImpl - set(value) = noImpl -} - -@native public interface SVGExternalResourcesRequired { - val externalResourcesRequired: SVGAnimatedBoolean - get() = noImpl } @native public interface SVGFitToViewBox { @@ -448,7 +301,7 @@ import org.w3c.xhr.* } @native public interface SVGZoomAndPan { - var zoomAndPan: dynamic + var zoomAndPan: Short get() = noImpl set(value) = noImpl @@ -459,119 +312,129 @@ import org.w3c.xhr.* } } -@native public interface SVGViewSpec : SVGZoomAndPan, SVGFitToViewBox { - val transform: SVGTransformList - get() = noImpl - val viewTarget: SVGElement - get() = noImpl - val viewBoxString: String - get() = noImpl - val preserveAspectRatioString: String - get() = noImpl - val transformString: String - get() = noImpl - val viewTargetString: String - get() = noImpl -} - @native public interface SVGURIReference { val href: SVGAnimatedString get() = noImpl } -@native public interface SVGCSSRule : CSSRule { +@native public abstract class SVGSVGElement : SVGGraphicsElement(), SVGFitToViewBox, SVGZoomAndPan, WindowEventHandlers { + open val x: SVGAnimatedLength + get() = noImpl + open val y: SVGAnimatedLength + get() = noImpl + open val width: SVGAnimatedLength + get() = noImpl + open val height: SVGAnimatedLength + get() = noImpl + open var currentScale: Float + get() = noImpl + set(value) = noImpl + open val currentTranslate: DOMPointReadOnly + get() = noImpl + fun getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement?): NodeList = noImpl + fun getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement?): NodeList = noImpl + fun checkIntersection(element: SVGElement, rect: DOMRectReadOnly): Boolean = noImpl + fun checkEnclosure(element: SVGElement, rect: DOMRectReadOnly): Boolean = noImpl + fun deselectAll(): Unit = noImpl + fun createSVGNumber(): SVGNumber = noImpl + fun createSVGLength(): SVGLength = noImpl + fun createSVGAngle(): SVGAngle = noImpl + fun createSVGPoint(): DOMPoint = noImpl + fun createSVGMatrix(): DOMMatrix = noImpl + fun createSVGRect(): DOMRect = noImpl + fun createSVGTransform(): SVGTransform = noImpl + fun createSVGTransformFromMatrix(matrix: DOMMatrixReadOnly): SVGTransform = noImpl + fun getElementById(elementId: String): Element = noImpl + fun suspendRedraw(maxWaitMilliseconds: Int): Int = noImpl + fun unsuspendRedraw(suspendHandleID: Int): Unit = noImpl + fun unsuspendRedrawAll(): Unit = noImpl + fun forceRedraw(): Unit = noImpl companion object { - val COLOR_PROFILE_RULE: Short = 7 + val SVG_ZOOMANDPAN_UNKNOWN: Short = 0 + val SVG_ZOOMANDPAN_DISABLE: Short = 1 + val SVG_ZOOMANDPAN_MAGNIFY: Short = 2 } } -@native public interface SVGRenderingIntent { - - companion object { - val RENDERING_INTENT_UNKNOWN: Short = 0 - val RENDERING_INTENT_AUTO: Short = 1 - val RENDERING_INTENT_PERCEPTUAL: Short = 2 - val RENDERING_INTENT_RELATIVE_COLORIMETRIC: Short = 3 - val RENDERING_INTENT_SATURATION: Short = 4 - val RENDERING_INTENT_ABSOLUTE_COLORIMETRIC: Short = 5 - } +@native public abstract class SVGGElement : SVGGraphicsElement() { } -@native public interface SVGStyleElement : SVGElement, SVGLangSpace { - var type: dynamic +@native public abstract class SVGUnknownElement : SVGGraphicsElement() { +} + +@native public abstract class SVGDefsElement : SVGGraphicsElement() { +} + +@native public abstract class SVGDescElement : SVGElement() { +} + +@native public abstract class SVGMetadataElement : SVGElement() { +} + +@native public abstract class SVGTitleElement : SVGElement() { +} + +@native public abstract class SVGSymbolElement : SVGGraphicsElement(), SVGFitToViewBox { +} + +@native public abstract class SVGUseElement : SVGGraphicsElement(), SVGURIReference { + open val x: SVGAnimatedLength + get() = noImpl + open val y: SVGAnimatedLength + get() = noImpl + open val width: SVGAnimatedLength + get() = noImpl + open val height: SVGAnimatedLength + get() = noImpl + open val instanceRoot: SVGElement? + get() = noImpl + open val animatedInstanceRoot: SVGElement? + get() = noImpl +} + +@native public open class SVGUseElementShadowRoot : ShadowRoot() { +} + +@native public interface SVGElementInstance { + val correspondingElement: SVGElement? + get() = noImpl + val correspondingUseElement: SVGUseElement? + get() = noImpl +} + +@native public open class ShadowAnimation(source: dynamic, newTarget: dynamic) { + open val sourceAnimation: dynamic + get() = noImpl +} + +@native public abstract class SVGSwitchElement : SVGGraphicsElement() { +} + +@native public interface GetSVGDocument { + fun getSVGDocument(): Document = noImpl +} + +@native public abstract class SVGStyleElement : SVGElement(), LinkStyle { + open var type: String get() = noImpl set(value) = noImpl - var media: dynamic + open var media: String get() = noImpl set(value) = noImpl - var title: dynamic + open var title: String get() = noImpl set(value) = noImpl } -@native public interface SVGPoint { - var x: dynamic +@native public abstract class SVGTransform { + open val type: Short get() = noImpl - set(value) = noImpl - var y: dynamic + open val matrix: DOMMatrix get() = noImpl - set(value) = noImpl - fun matrixTransform(matrix: SVGMatrix): SVGPoint = noImpl -} - -@native public interface SVGPointList { - val numberOfItems: Int + open val angle: Float get() = noImpl - fun clear(): Unit = noImpl - fun initialize(newItem: SVGPoint): SVGPoint = noImpl - fun getItem(index: Int): SVGPoint = noImpl - fun insertItemBefore(newItem: SVGPoint, index: Int): SVGPoint = noImpl - fun replaceItem(newItem: SVGPoint, index: Int): SVGPoint = noImpl - fun removeItem(index: Int): SVGPoint = noImpl - fun appendItem(newItem: SVGPoint): SVGPoint = noImpl -} - -@native public interface SVGMatrix { - var a: dynamic - get() = noImpl - set(value) = noImpl - var b: dynamic - get() = noImpl - set(value) = noImpl - var c: dynamic - get() = noImpl - set(value) = noImpl - var d: dynamic - get() = noImpl - set(value) = noImpl - var e: dynamic - get() = noImpl - set(value) = noImpl - var f: dynamic - get() = noImpl - set(value) = noImpl - fun multiply(secondMatrix: SVGMatrix): SVGMatrix = noImpl - fun inverse(): SVGMatrix = noImpl - fun translate(x: Float, y: Float): SVGMatrix = noImpl - fun scale(scaleFactor: Float): SVGMatrix = noImpl - fun scaleNonUniform(scaleFactorX: Float, scaleFactorY: Float): SVGMatrix = noImpl - fun rotate(angle: Float): SVGMatrix = noImpl - fun rotateFromVector(x: Float, y: Float): SVGMatrix = noImpl - fun flipX(): SVGMatrix = noImpl - fun flipY(): SVGMatrix = noImpl - fun skewX(angle: Float): SVGMatrix = noImpl - fun skewY(angle: Float): SVGMatrix = noImpl -} - -@native public interface SVGTransform { - val type: Short - get() = noImpl - val matrix: SVGMatrix - get() = noImpl - val angle: Float - get() = noImpl - fun setMatrix(matrix: SVGMatrix): Unit = noImpl + fun setMatrix(matrix: DOMMatrixReadOnly): Unit = noImpl fun setTranslate(tx: Float, ty: Float): Unit = noImpl fun setScale(sx: Float, sy: Float): Unit = noImpl fun setRotate(angle: Float, cx: Float, cy: Float): Unit = noImpl @@ -589,32 +452,38 @@ import org.w3c.xhr.* } } -@native public interface SVGTransformList { - val numberOfItems: Int +@native public abstract class SVGTransformList { + open val length: Int + get() = noImpl + open val numberOfItems: Int get() = noImpl fun clear(): Unit = noImpl fun initialize(newItem: SVGTransform): SVGTransform = noImpl fun getItem(index: Int): SVGTransform = noImpl + @nativeGetter + operator fun get(index: Int): SVGTransform? = noImpl fun insertItemBefore(newItem: SVGTransform, index: Int): SVGTransform = noImpl fun replaceItem(newItem: SVGTransform, index: Int): SVGTransform = noImpl fun removeItem(index: Int): SVGTransform = noImpl fun appendItem(newItem: SVGTransform): SVGTransform = noImpl - fun createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform = noImpl - fun consolidate(): SVGTransform = noImpl + @nativeSetter + operator fun set(index: Int, newItem: SVGTransform): Unit = noImpl + fun createSVGTransformFromMatrix(matrix: DOMMatrixReadOnly): SVGTransform = noImpl + fun consolidate(): SVGTransform? = noImpl } -@native public interface SVGAnimatedTransformList { - val baseVal: SVGTransformList +@native public abstract class SVGAnimatedTransformList { + open val baseVal: SVGTransformList get() = noImpl - val animVal: SVGTransformList + open val animVal: SVGTransformList get() = noImpl } -@native public interface SVGPreserveAspectRatio { - var align: dynamic +@native public abstract class SVGPreserveAspectRatio { + open var align: Short get() = noImpl set(value) = noImpl - var meetOrSlice: dynamic + open var meetOrSlice: Short get() = noImpl set(value) = noImpl @@ -636,368 +505,63 @@ import org.w3c.xhr.* } } -@native public interface SVGAnimatedPreserveAspectRatio { - val baseVal: SVGPreserveAspectRatio +@native public abstract class SVGAnimatedPreserveAspectRatio { + open val baseVal: SVGPreserveAspectRatio get() = noImpl - val animVal: SVGPreserveAspectRatio + open val animVal: SVGPreserveAspectRatio get() = noImpl } -@native public interface SVGPathSeg { - val pathSegType: Short - get() = noImpl - val pathSegTypeAsLetter: String - get() = noImpl - - companion object { - val PATHSEG_UNKNOWN: Short = 0 - val PATHSEG_CLOSEPATH: Short = 1 - val PATHSEG_MOVETO_ABS: Short = 2 - val PATHSEG_MOVETO_REL: Short = 3 - val PATHSEG_LINETO_ABS: Short = 4 - val PATHSEG_LINETO_REL: Short = 5 - val PATHSEG_CURVETO_CUBIC_ABS: Short = 6 - val PATHSEG_CURVETO_CUBIC_REL: Short = 7 - val PATHSEG_CURVETO_QUADRATIC_ABS: Short = 8 - val PATHSEG_CURVETO_QUADRATIC_REL: Short = 9 - val PATHSEG_ARC_ABS: Short = 10 - val PATHSEG_ARC_REL: Short = 11 - val PATHSEG_LINETO_HORIZONTAL_ABS: Short = 12 - val PATHSEG_LINETO_HORIZONTAL_REL: Short = 13 - val PATHSEG_LINETO_VERTICAL_ABS: Short = 14 - val PATHSEG_LINETO_VERTICAL_REL: Short = 15 - val PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: Short = 16 - val PATHSEG_CURVETO_CUBIC_SMOOTH_REL: Short = 17 - val PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: Short = 18 - val PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: Short = 19 - } +@native public abstract class SVGPathElement : SVGGeometryElement() { } -@native public interface SVGPathSegClosePath : SVGPathSeg { -} - -@native public interface SVGPathSegMovetoAbs : SVGPathSeg { - var x: dynamic +@native public abstract class SVGRectElement : SVGGeometryElement() { + open val x: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var y: dynamic + open val y: SVGAnimatedLength get() = noImpl - set(value) = noImpl -} - -@native public interface SVGPathSegMovetoRel : SVGPathSeg { - var x: dynamic + open val width: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var y: dynamic + open val height: SVGAnimatedLength get() = noImpl - set(value) = noImpl -} - -@native public interface SVGPathSegLinetoAbs : SVGPathSeg { - var x: dynamic + open val rx: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var y: dynamic - get() = noImpl - set(value) = noImpl -} - -@native public interface SVGPathSegLinetoRel : SVGPathSeg { - var x: dynamic - get() = noImpl - set(value) = noImpl - var y: dynamic - get() = noImpl - set(value) = noImpl -} - -@native public interface SVGPathSegCurvetoCubicAbs : SVGPathSeg { - var x: dynamic - get() = noImpl - set(value) = noImpl - var y: dynamic - get() = noImpl - set(value) = noImpl - var x1: dynamic - get() = noImpl - set(value) = noImpl - var y1: dynamic - get() = noImpl - set(value) = noImpl - var x2: dynamic - get() = noImpl - set(value) = noImpl - var y2: dynamic - get() = noImpl - set(value) = noImpl -} - -@native public interface SVGPathSegCurvetoCubicRel : SVGPathSeg { - var x: dynamic - get() = noImpl - set(value) = noImpl - var y: dynamic - get() = noImpl - set(value) = noImpl - var x1: dynamic - get() = noImpl - set(value) = noImpl - var y1: dynamic - get() = noImpl - set(value) = noImpl - var x2: dynamic - get() = noImpl - set(value) = noImpl - var y2: dynamic - get() = noImpl - set(value) = noImpl -} - -@native public interface SVGPathSegCurvetoQuadraticAbs : SVGPathSeg { - var x: dynamic - get() = noImpl - set(value) = noImpl - var y: dynamic - get() = noImpl - set(value) = noImpl - var x1: dynamic - get() = noImpl - set(value) = noImpl - var y1: dynamic - get() = noImpl - set(value) = noImpl -} - -@native public interface SVGPathSegCurvetoQuadraticRel : SVGPathSeg { - var x: dynamic - get() = noImpl - set(value) = noImpl - var y: dynamic - get() = noImpl - set(value) = noImpl - var x1: dynamic - get() = noImpl - set(value) = noImpl - var y1: dynamic - get() = noImpl - set(value) = noImpl -} - -@native public interface SVGPathSegArcAbs : SVGPathSeg { - var x: dynamic - get() = noImpl - set(value) = noImpl - var y: dynamic - get() = noImpl - set(value) = noImpl - var r1: dynamic - get() = noImpl - set(value) = noImpl - var r2: dynamic - get() = noImpl - set(value) = noImpl - var angle: dynamic - get() = noImpl - set(value) = noImpl - var largeArcFlag: dynamic - get() = noImpl - set(value) = noImpl - var sweepFlag: dynamic - get() = noImpl - set(value) = noImpl -} - -@native public interface SVGPathSegArcRel : SVGPathSeg { - var x: dynamic - get() = noImpl - set(value) = noImpl - var y: dynamic - get() = noImpl - set(value) = noImpl - var r1: dynamic - get() = noImpl - set(value) = noImpl - var r2: dynamic - get() = noImpl - set(value) = noImpl - var angle: dynamic - get() = noImpl - set(value) = noImpl - var largeArcFlag: dynamic - get() = noImpl - set(value) = noImpl - var sweepFlag: dynamic - get() = noImpl - set(value) = noImpl -} - -@native public interface SVGPathSegLinetoHorizontalAbs : SVGPathSeg { - var x: dynamic - get() = noImpl - set(value) = noImpl -} - -@native public interface SVGPathSegLinetoHorizontalRel : SVGPathSeg { - var x: dynamic - get() = noImpl - set(value) = noImpl -} - -@native public interface SVGPathSegLinetoVerticalAbs : SVGPathSeg { - var y: dynamic - get() = noImpl - set(value) = noImpl -} - -@native public interface SVGPathSegLinetoVerticalRel : SVGPathSeg { - var y: dynamic - get() = noImpl - set(value) = noImpl -} - -@native public interface SVGPathSegCurvetoCubicSmoothAbs : SVGPathSeg { - var x: dynamic - get() = noImpl - set(value) = noImpl - var y: dynamic - get() = noImpl - set(value) = noImpl - var x2: dynamic - get() = noImpl - set(value) = noImpl - var y2: dynamic - get() = noImpl - set(value) = noImpl -} - -@native public interface SVGPathSegCurvetoCubicSmoothRel : SVGPathSeg { - var x: dynamic - get() = noImpl - set(value) = noImpl - var y: dynamic - get() = noImpl - set(value) = noImpl - var x2: dynamic - get() = noImpl - set(value) = noImpl - var y2: dynamic - get() = noImpl - set(value) = noImpl -} - -@native public interface SVGPathSegCurvetoQuadraticSmoothAbs : SVGPathSeg { - var x: dynamic - get() = noImpl - set(value) = noImpl - var y: dynamic - get() = noImpl - set(value) = noImpl -} - -@native public interface SVGPathSegCurvetoQuadraticSmoothRel : SVGPathSeg { - var x: dynamic - get() = noImpl - set(value) = noImpl - var y: dynamic - get() = noImpl - set(value) = noImpl -} - -@native public interface SVGPathSegList { - val numberOfItems: Int - get() = noImpl - fun clear(): Unit = noImpl - fun initialize(newItem: SVGPathSeg): SVGPathSeg = noImpl - fun getItem(index: Int): SVGPathSeg = noImpl - fun insertItemBefore(newItem: SVGPathSeg, index: Int): SVGPathSeg = noImpl - fun replaceItem(newItem: SVGPathSeg, index: Int): SVGPathSeg = noImpl - fun removeItem(index: Int): SVGPathSeg = noImpl - fun appendItem(newItem: SVGPathSeg): SVGPathSeg = noImpl -} - -@native public interface SVGAnimatedPathData { - val pathSegList: SVGPathSegList - get() = noImpl - val normalizedPathSegList: SVGPathSegList - get() = noImpl - val animatedPathSegList: SVGPathSegList - get() = noImpl - val animatedNormalizedPathSegList: SVGPathSegList + open val ry: SVGAnimatedLength get() = noImpl } -@native public interface SVGPathElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable, SVGAnimatedPathData { - val pathLength: SVGAnimatedNumber +@native public abstract class SVGCircleElement : SVGGeometryElement() { + open val cx: SVGAnimatedLength get() = noImpl - fun getTotalLength(): Float = noImpl - fun getPointAtLength(distance: Float): SVGPoint = noImpl - fun getPathSegAtLength(distance: Float): Int = noImpl - fun createSVGPathSegClosePath(): SVGPathSegClosePath = noImpl - fun createSVGPathSegMovetoAbs(x: Float, y: Float): SVGPathSegMovetoAbs = noImpl - fun createSVGPathSegMovetoRel(x: Float, y: Float): SVGPathSegMovetoRel = noImpl - fun createSVGPathSegLinetoAbs(x: Float, y: Float): SVGPathSegLinetoAbs = noImpl - fun createSVGPathSegLinetoRel(x: Float, y: Float): SVGPathSegLinetoRel = noImpl - fun createSVGPathSegCurvetoCubicAbs(x: Float, y: Float, x1: Float, y1: Float, x2: Float, y2: Float): SVGPathSegCurvetoCubicAbs = noImpl - fun createSVGPathSegCurvetoCubicRel(x: Float, y: Float, x1: Float, y1: Float, x2: Float, y2: Float): SVGPathSegCurvetoCubicRel = noImpl - fun createSVGPathSegCurvetoQuadraticAbs(x: Float, y: Float, x1: Float, y1: Float): SVGPathSegCurvetoQuadraticAbs = noImpl - fun createSVGPathSegCurvetoQuadraticRel(x: Float, y: Float, x1: Float, y1: Float): SVGPathSegCurvetoQuadraticRel = noImpl - fun createSVGPathSegArcAbs(x: Float, y: Float, r1: Float, r2: Float, angle: Float, largeArcFlag: Boolean, sweepFlag: Boolean): SVGPathSegArcAbs = noImpl - fun createSVGPathSegArcRel(x: Float, y: Float, r1: Float, r2: Float, angle: Float, largeArcFlag: Boolean, sweepFlag: Boolean): SVGPathSegArcRel = noImpl - fun createSVGPathSegLinetoHorizontalAbs(x: Float): SVGPathSegLinetoHorizontalAbs = noImpl - fun createSVGPathSegLinetoHorizontalRel(x: Float): SVGPathSegLinetoHorizontalRel = noImpl - fun createSVGPathSegLinetoVerticalAbs(y: Float): SVGPathSegLinetoVerticalAbs = noImpl - fun createSVGPathSegLinetoVerticalRel(y: Float): SVGPathSegLinetoVerticalRel = noImpl - fun createSVGPathSegCurvetoCubicSmoothAbs(x: Float, y: Float, x2: Float, y2: Float): SVGPathSegCurvetoCubicSmoothAbs = noImpl - fun createSVGPathSegCurvetoCubicSmoothRel(x: Float, y: Float, x2: Float, y2: Float): SVGPathSegCurvetoCubicSmoothRel = noImpl - fun createSVGPathSegCurvetoQuadraticSmoothAbs(x: Float, y: Float): SVGPathSegCurvetoQuadraticSmoothAbs = noImpl - fun createSVGPathSegCurvetoQuadraticSmoothRel(x: Float, y: Float): SVGPathSegCurvetoQuadraticSmoothRel = noImpl -} - -@native public interface SVGRectElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { - val x: SVGAnimatedLength + open val cy: SVGAnimatedLength get() = noImpl - val y: SVGAnimatedLength - get() = noImpl - val width: SVGAnimatedLength - get() = noImpl - val height: SVGAnimatedLength - get() = noImpl - val rx: SVGAnimatedLength - get() = noImpl - val ry: SVGAnimatedLength + open val r: SVGAnimatedLength get() = noImpl } -@native public interface SVGCircleElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { - val cx: SVGAnimatedLength +@native public abstract class SVGEllipseElement : SVGGeometryElement() { + open val cx: SVGAnimatedLength get() = noImpl - val cy: SVGAnimatedLength + open val cy: SVGAnimatedLength get() = noImpl - val r: SVGAnimatedLength + open val rx: SVGAnimatedLength + get() = noImpl + open val ry: SVGAnimatedLength get() = noImpl } -@native public interface SVGEllipseElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { - val cx: SVGAnimatedLength +@native public abstract class SVGLineElement : SVGGeometryElement() { + open val x1: SVGAnimatedLength get() = noImpl - val cy: SVGAnimatedLength + open val y1: SVGAnimatedLength get() = noImpl - val rx: SVGAnimatedLength + open val x2: SVGAnimatedLength get() = noImpl - val ry: SVGAnimatedLength + open val y2: SVGAnimatedLength get() = noImpl } -@native public interface SVGLineElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { - val x1: SVGAnimatedLength - get() = noImpl - val y1: SVGAnimatedLength - get() = noImpl - val x2: SVGAnimatedLength - get() = noImpl - val y2: SVGAnimatedLength - get() = noImpl +@native public abstract class SVGMeshElement : SVGGeometryElement(), SVGURIReference { } @native public interface SVGAnimatedPoints { @@ -1007,25 +571,43 @@ import org.w3c.xhr.* get() = noImpl } -@native public interface SVGPolylineElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable, SVGAnimatedPoints { -} - -@native public interface SVGPolygonElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable, SVGAnimatedPoints { -} - -@native public interface SVGTextContentElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable { - val textLength: SVGAnimatedLength +@native public abstract class SVGPointList { + open val length: Int get() = noImpl - val lengthAdjust: SVGAnimatedEnumeration + open val numberOfItems: Int + get() = noImpl + fun clear(): Unit = noImpl + fun initialize(newItem: DOMPoint): DOMPoint = noImpl + fun getItem(index: Int): DOMPoint = noImpl + @nativeGetter + operator fun get(index: Int): DOMPoint? = noImpl + fun insertItemBefore(newItem: DOMPoint, index: Int): DOMPoint = noImpl + fun replaceItem(newItem: DOMPoint, index: Int): DOMPoint = noImpl + fun removeItem(index: Int): DOMPoint = noImpl + fun appendItem(newItem: DOMPoint): DOMPoint = noImpl + @nativeSetter + operator fun set(index: Int, newItem: DOMPoint): Unit = noImpl +} + +@native public abstract class SVGPolylineElement : SVGGeometryElement(), SVGAnimatedPoints { +} + +@native public abstract class SVGPolygonElement : SVGGeometryElement(), SVGAnimatedPoints { +} + +@native public abstract class SVGTextContentElement : SVGGraphicsElement() { + open val textLength: SVGAnimatedLength + get() = noImpl + open val lengthAdjust: SVGAnimatedEnumeration get() = noImpl fun getNumberOfChars(): Int = noImpl fun getComputedTextLength(): Float = noImpl fun getSubStringLength(charnum: Int, nchars: Int): Float = noImpl - fun getStartPositionOfChar(charnum: Int): SVGPoint = noImpl - fun getEndPositionOfChar(charnum: Int): SVGPoint = noImpl - fun getExtentOfChar(charnum: Int): SVGRect = noImpl + fun getStartPositionOfChar(charnum: Int): DOMPoint = noImpl + fun getEndPositionOfChar(charnum: Int): DOMPoint = noImpl + fun getExtentOfChar(charnum: Int): DOMRect = noImpl fun getRotationOfChar(charnum: Int): Float = noImpl - fun getCharNumAtPosition(point: SVGPoint): Int = noImpl + fun getCharNumAtPosition(point: DOMPoint): Int = noImpl fun selectSubString(charnum: Int, nchars: Int): Unit = noImpl companion object { @@ -1035,34 +617,31 @@ import org.w3c.xhr.* } } -@native public interface SVGTextPositioningElement : SVGTextContentElement { - val x: SVGAnimatedLengthList +@native public abstract class SVGTextPositioningElement : SVGTextContentElement() { + open val x: SVGAnimatedLengthList get() = noImpl - val y: SVGAnimatedLengthList + open val y: SVGAnimatedLengthList get() = noImpl - val dx: SVGAnimatedLengthList + open val dx: SVGAnimatedLengthList get() = noImpl - val dy: SVGAnimatedLengthList + open val dy: SVGAnimatedLengthList get() = noImpl - val rotate: SVGAnimatedNumberList + open val rotate: SVGAnimatedNumberList get() = noImpl } -@native public interface SVGTextElement : SVGTextPositioningElement, SVGTransformable { +@native public abstract class SVGTextElement : SVGTextPositioningElement() { } -@native public interface SVGTSpanElement : SVGTextPositioningElement { +@native public abstract class SVGTSpanElement : SVGTextPositioningElement() { } -@native public interface SVGTRefElement : SVGTextPositioningElement, SVGURIReference { -} - -@native public interface SVGTextPathElement : SVGTextContentElement, SVGURIReference { - val startOffset: SVGAnimatedLength +@native public abstract class SVGTextPathElement : SVGTextContentElement(), SVGURIReference { + open val startOffset: SVGAnimatedLength get() = noImpl - val method: SVGAnimatedEnumeration + open val method: SVGAnimatedEnumeration get() = noImpl - val spacing: SVGAnimatedEnumeration + open val spacing: SVGAnimatedEnumeration get() = noImpl companion object { @@ -1075,79 +654,51 @@ import org.w3c.xhr.* } } -@native public interface SVGAltGlyphElement : SVGTextPositioningElement, SVGURIReference { - var glyphRef: dynamic +@native public abstract class SVGImageElement : SVGGraphicsElement(), SVGURIReference, HTMLOrSVGImageElement { + open val x: SVGAnimatedLength get() = noImpl - set(value) = noImpl - var format: dynamic + open val y: SVGAnimatedLength + get() = noImpl + open val width: SVGAnimatedLength + get() = noImpl + open val height: SVGAnimatedLength + get() = noImpl + open val preserveAspectRatio: SVGAnimatedPreserveAspectRatio + get() = noImpl + open var crossOrigin: String? get() = noImpl set(value) = noImpl } -@native public interface SVGAltGlyphDefElement : SVGElement { +@native public abstract class SVGForeignObjectElement : SVGGraphicsElement() { + open val x: SVGAnimatedLength + get() = noImpl + open val y: SVGAnimatedLength + get() = noImpl + open val width: SVGAnimatedLength + get() = noImpl + open val height: SVGAnimatedLength + get() = noImpl } -@native public interface SVGAltGlyphItemElement : SVGElement { -} - -@native public interface SVGGlyphRefElement : SVGElement, SVGURIReference, SVGStylable { - var glyphRef: dynamic +@native public abstract class SVGMarkerElement : SVGElement(), SVGFitToViewBox { + open val refX: SVGAnimatedLength + get() = noImpl + open val refY: SVGAnimatedLength + get() = noImpl + open val markerUnits: SVGAnimatedEnumeration + get() = noImpl + open val markerWidth: SVGAnimatedLength + get() = noImpl + open val markerHeight: SVGAnimatedLength + get() = noImpl + open val orientType: SVGAnimatedEnumeration + get() = noImpl + open val orientAngle: SVGAnimatedAngle + get() = noImpl + open var orient: String get() = noImpl set(value) = noImpl - var format: dynamic - get() = noImpl - set(value) = noImpl - var x: dynamic - get() = noImpl - set(value) = noImpl - var y: dynamic - get() = noImpl - set(value) = noImpl - var dx: dynamic - get() = noImpl - set(value) = noImpl - var dy: dynamic - get() = noImpl - set(value) = noImpl -} - -@native public interface SVGPaint : SVGColor { - val paintType: Short - get() = noImpl - val uri: String - get() = noImpl - fun setUri(uri: String): Unit = noImpl - fun setPaint(paintType: Short, uri: String, rgbColor: String, iccColor: String): Unit = noImpl - - companion object { - val SVG_PAINTTYPE_UNKNOWN: Short = 0 - val SVG_PAINTTYPE_RGBCOLOR: Short = 1 - val SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR: Short = 2 - val SVG_PAINTTYPE_NONE: Short = 101 - val SVG_PAINTTYPE_CURRENTCOLOR: Short = 102 - val SVG_PAINTTYPE_URI_NONE: Short = 103 - val SVG_PAINTTYPE_URI_CURRENTCOLOR: Short = 104 - val SVG_PAINTTYPE_URI_RGBCOLOR: Short = 105 - val SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR: Short = 106 - val SVG_PAINTTYPE_URI: Short = 107 - } -} - -@native public interface SVGMarkerElement : SVGElement, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGFitToViewBox { - val refX: SVGAnimatedLength - get() = noImpl - val refY: SVGAnimatedLength - get() = noImpl - val markerUnits: SVGAnimatedEnumeration - get() = noImpl - val markerWidth: SVGAnimatedLength - get() = noImpl - val markerHeight: SVGAnimatedLength - get() = noImpl - val orientType: SVGAnimatedEnumeration - get() = noImpl - val orientAngle: SVGAnimatedAngle - get() = noImpl fun setOrientToAuto(): Unit = noImpl fun setOrientToAngle(angle: SVGAngle): Unit = noImpl @@ -1161,36 +712,15 @@ import org.w3c.xhr.* } } -@native public interface SVGColorProfileElement : SVGElement, SVGURIReference, SVGRenderingIntent { - var local: String - get() = noImpl - set(value) = noImpl - var name: String - get() = noImpl - set(value) = noImpl - var renderingIntent: Short - get() = noImpl - set(value) = noImpl +@native public abstract class SVGSolidcolorElement : SVGElement() { } -@native public interface SVGColorProfileRule : SVGCSSRule, SVGRenderingIntent { - var src: dynamic +@native public abstract class SVGGradientElement : SVGElement(), SVGURIReference, SVGUnitTypes { + open val gradientUnits: SVGAnimatedEnumeration get() = noImpl - set(value) = noImpl - var name: dynamic + open val gradientTransform: SVGAnimatedTransformList get() = noImpl - set(value) = noImpl - var renderingIntent: dynamic - get() = noImpl - set(value) = noImpl -} - -@native public interface SVGGradientElement : SVGElement, SVGURIReference, SVGExternalResourcesRequired, SVGStylable, SVGUnitTypes { - val gradientUnits: SVGAnimatedEnumeration - get() = noImpl - val gradientTransform: SVGAnimatedTransformList - get() = noImpl - val spreadMethod: SVGAnimatedEnumeration + open val spreadMethod: SVGAnimatedEnumeration get() = noImpl companion object { @@ -1198,530 +728,118 @@ import org.w3c.xhr.* val SVG_SPREADMETHOD_PAD: Short = 1 val SVG_SPREADMETHOD_REFLECT: Short = 2 val SVG_SPREADMETHOD_REPEAT: Short = 3 + val SVG_UNIT_TYPE_UNKNOWN: Short = 0 + val SVG_UNIT_TYPE_USERSPACEONUSE: Short = 1 + val SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: Short = 2 } } -@native public interface SVGLinearGradientElement : SVGGradientElement { - val x1: SVGAnimatedLength +@native public abstract class SVGLinearGradientElement : SVGGradientElement() { + open val x1: SVGAnimatedLength get() = noImpl - val y1: SVGAnimatedLength + open val y1: SVGAnimatedLength get() = noImpl - val x2: SVGAnimatedLength + open val x2: SVGAnimatedLength get() = noImpl - val y2: SVGAnimatedLength + open val y2: SVGAnimatedLength get() = noImpl } -@native public interface SVGRadialGradientElement : SVGGradientElement { - val cx: SVGAnimatedLength +@native public abstract class SVGRadialGradientElement : SVGGradientElement() { + open val cx: SVGAnimatedLength get() = noImpl - val cy: SVGAnimatedLength + open val cy: SVGAnimatedLength get() = noImpl - val r: SVGAnimatedLength + open val r: SVGAnimatedLength get() = noImpl - val fx: SVGAnimatedLength + open val fx: SVGAnimatedLength get() = noImpl - val fy: SVGAnimatedLength + open val fy: SVGAnimatedLength + get() = noImpl + open val fr: SVGAnimatedLength get() = noImpl } -@native public interface SVGStopElement : SVGElement, SVGStylable { - val offset: SVGAnimatedNumber +@native public abstract class SVGMeshGradientElement : SVGGradientElement() { +} + +@native public abstract class SVGMeshrowElement : SVGElement() { +} + +@native public abstract class SVGMeshpatchElement : SVGElement() { +} + +@native public abstract class SVGStopElement : SVGElement() { + open val offset: SVGAnimatedNumber get() = noImpl } -@native public interface SVGPatternElement : SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGFitToViewBox, SVGUnitTypes { - val patternUnits: SVGAnimatedEnumeration +@native public abstract class SVGPatternElement : SVGElement(), SVGFitToViewBox, SVGURIReference, SVGUnitTypes { + open val patternUnits: SVGAnimatedEnumeration get() = noImpl - val patternContentUnits: SVGAnimatedEnumeration + open val patternContentUnits: SVGAnimatedEnumeration get() = noImpl - val patternTransform: SVGAnimatedTransformList + open val patternTransform: SVGAnimatedTransformList get() = noImpl - val x: SVGAnimatedLength + open val x: SVGAnimatedLength get() = noImpl - val y: SVGAnimatedLength + open val y: SVGAnimatedLength get() = noImpl - val width: SVGAnimatedLength + open val width: SVGAnimatedLength get() = noImpl - val height: SVGAnimatedLength - get() = noImpl -} - -@native public interface SVGClipPathElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable, SVGUnitTypes { - val clipPathUnits: SVGAnimatedEnumeration - get() = noImpl -} - -@native public interface SVGMaskElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGUnitTypes { - val maskUnits: SVGAnimatedEnumeration - get() = noImpl - val maskContentUnits: SVGAnimatedEnumeration - get() = noImpl - val x: SVGAnimatedLength - get() = noImpl - val y: SVGAnimatedLength - get() = noImpl - val width: SVGAnimatedLength - get() = noImpl - val height: SVGAnimatedLength - get() = noImpl -} - -@native public interface SVGFilterElement : SVGElement, SVGURIReference, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGUnitTypes { - val filterUnits: SVGAnimatedEnumeration - get() = noImpl - val primitiveUnits: SVGAnimatedEnumeration - get() = noImpl - val x: SVGAnimatedLength - get() = noImpl - val y: SVGAnimatedLength - get() = noImpl - val width: SVGAnimatedLength - get() = noImpl - val height: SVGAnimatedLength - get() = noImpl - val filterResX: SVGAnimatedInteger - get() = noImpl - val filterResY: SVGAnimatedInteger - get() = noImpl - fun setFilterRes(filterResX: Int, filterResY: Int): Unit = noImpl -} - -@native public interface SVGFilterPrimitiveStandardAttributes : SVGStylable { - val x: SVGAnimatedLength - get() = noImpl - val y: SVGAnimatedLength - get() = noImpl - val width: SVGAnimatedLength - get() = noImpl - val height: SVGAnimatedLength - get() = noImpl - val result: SVGAnimatedString - get() = noImpl -} - -@native public interface SVGFEBlendElement : SVGElement, SVGFilterPrimitiveStandardAttributes { - val in1: SVGAnimatedString - get() = noImpl - val in2: SVGAnimatedString - get() = noImpl - val mode: SVGAnimatedEnumeration + open val height: SVGAnimatedLength get() = noImpl companion object { - val SVG_FEBLEND_MODE_UNKNOWN: Short = 0 - val SVG_FEBLEND_MODE_NORMAL: Short = 1 - val SVG_FEBLEND_MODE_MULTIPLY: Short = 2 - val SVG_FEBLEND_MODE_SCREEN: Short = 3 - val SVG_FEBLEND_MODE_DARKEN: Short = 4 - val SVG_FEBLEND_MODE_LIGHTEN: Short = 5 + val SVG_UNIT_TYPE_UNKNOWN: Short = 0 + val SVG_UNIT_TYPE_USERSPACEONUSE: Short = 1 + val SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: Short = 2 } } -@native public interface SVGFEColorMatrixElement : SVGElement, SVGFilterPrimitiveStandardAttributes { - val in1: SVGAnimatedString - get() = noImpl - val type: SVGAnimatedEnumeration - get() = noImpl - val values: SVGAnimatedNumberList - get() = noImpl - - companion object { - val SVG_FECOLORMATRIX_TYPE_UNKNOWN: Short = 0 - val SVG_FECOLORMATRIX_TYPE_MATRIX: Short = 1 - val SVG_FECOLORMATRIX_TYPE_SATURATE: Short = 2 - val SVG_FECOLORMATRIX_TYPE_HUEROTATE: Short = 3 - val SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: Short = 4 - } +@native public abstract class SVGHatchElement : SVGElement() { } -@native public interface SVGFEComponentTransferElement : SVGElement, SVGFilterPrimitiveStandardAttributes { - val in1: SVGAnimatedString +@native public abstract class SVGHatchpathElement : SVGElement() { +} + +@native public abstract class SVGCursorElement : SVGElement(), SVGURIReference { + open val x: SVGAnimatedLength + get() = noImpl + open val y: SVGAnimatedLength get() = noImpl } -@native public interface SVGComponentTransferFunctionElement : SVGElement { - val type: SVGAnimatedEnumeration +@native public abstract class SVGScriptElement : SVGElement(), SVGURIReference, HTMLOrSVGScriptElement { + open var type: String get() = noImpl - val tableValues: SVGAnimatedNumberList - get() = noImpl - val slope: SVGAnimatedNumber - get() = noImpl - val intercept: SVGAnimatedNumber - get() = noImpl - val amplitude: SVGAnimatedNumber - get() = noImpl - val exponent: SVGAnimatedNumber - get() = noImpl - val offset: SVGAnimatedNumber - get() = noImpl - - companion object { - val SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: Short = 0 - val SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: Short = 1 - val SVG_FECOMPONENTTRANSFER_TYPE_TABLE: Short = 2 - val SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: Short = 3 - val SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: Short = 4 - val SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: Short = 5 - } -} - -@native public interface SVGFEFuncRElement : SVGComponentTransferFunctionElement { -} - -@native public interface SVGFEFuncGElement : SVGComponentTransferFunctionElement { -} - -@native public interface SVGFEFuncBElement : SVGComponentTransferFunctionElement { -} - -@native public interface SVGFEFuncAElement : SVGComponentTransferFunctionElement { -} - -@native public interface SVGFECompositeElement : SVGElement, SVGFilterPrimitiveStandardAttributes { - val in1: SVGAnimatedString - get() = noImpl - val in2: SVGAnimatedString - get() = noImpl - val operator: SVGAnimatedEnumeration - get() = noImpl - val k1: SVGAnimatedNumber - get() = noImpl - val k2: SVGAnimatedNumber - get() = noImpl - val k3: SVGAnimatedNumber - get() = noImpl - val k4: SVGAnimatedNumber - get() = noImpl - - companion object { - val SVG_FECOMPOSITE_OPERATOR_UNKNOWN: Short = 0 - val SVG_FECOMPOSITE_OPERATOR_OVER: Short = 1 - val SVG_FECOMPOSITE_OPERATOR_IN: Short = 2 - val SVG_FECOMPOSITE_OPERATOR_OUT: Short = 3 - val SVG_FECOMPOSITE_OPERATOR_ATOP: Short = 4 - val SVG_FECOMPOSITE_OPERATOR_XOR: Short = 5 - val SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: Short = 6 - } -} - -@native public interface SVGFEConvolveMatrixElement : SVGElement, SVGFilterPrimitiveStandardAttributes { - val in1: SVGAnimatedString - get() = noImpl - val orderX: SVGAnimatedInteger - get() = noImpl - val orderY: SVGAnimatedInteger - get() = noImpl - val kernelMatrix: SVGAnimatedNumberList - get() = noImpl - val divisor: SVGAnimatedNumber - get() = noImpl - val bias: SVGAnimatedNumber - get() = noImpl - val targetX: SVGAnimatedInteger - get() = noImpl - val targetY: SVGAnimatedInteger - get() = noImpl - val edgeMode: SVGAnimatedEnumeration - get() = noImpl - val kernelUnitLengthX: SVGAnimatedNumber - get() = noImpl - val kernelUnitLengthY: SVGAnimatedNumber - get() = noImpl - val preserveAlpha: SVGAnimatedBoolean - get() = noImpl - - companion object { - val SVG_EDGEMODE_UNKNOWN: Short = 0 - val SVG_EDGEMODE_DUPLICATE: Short = 1 - val SVG_EDGEMODE_WRAP: Short = 2 - val SVG_EDGEMODE_NONE: Short = 3 - } -} - -@native public interface SVGFEDiffuseLightingElement : SVGElement, SVGFilterPrimitiveStandardAttributes { - val in1: SVGAnimatedString - get() = noImpl - val surfaceScale: SVGAnimatedNumber - get() = noImpl - val diffuseConstant: SVGAnimatedNumber - get() = noImpl - val kernelUnitLengthX: SVGAnimatedNumber - get() = noImpl - val kernelUnitLengthY: SVGAnimatedNumber - get() = noImpl -} - -@native public interface SVGFEDistantLightElement : SVGElement { - val azimuth: SVGAnimatedNumber - get() = noImpl - val elevation: SVGAnimatedNumber - get() = noImpl -} - -@native public interface SVGFEPointLightElement : SVGElement { - val x: SVGAnimatedNumber - get() = noImpl - val y: SVGAnimatedNumber - get() = noImpl - val z: SVGAnimatedNumber - get() = noImpl -} - -@native public interface SVGFESpotLightElement : SVGElement { - val x: SVGAnimatedNumber - get() = noImpl - val y: SVGAnimatedNumber - get() = noImpl - val z: SVGAnimatedNumber - get() = noImpl - val pointsAtX: SVGAnimatedNumber - get() = noImpl - val pointsAtY: SVGAnimatedNumber - get() = noImpl - val pointsAtZ: SVGAnimatedNumber - get() = noImpl - val specularExponent: SVGAnimatedNumber - get() = noImpl - val limitingConeAngle: SVGAnimatedNumber - get() = noImpl -} - -@native public interface SVGFEDisplacementMapElement : SVGElement, SVGFilterPrimitiveStandardAttributes { - val in1: SVGAnimatedString - get() = noImpl - val in2: SVGAnimatedString - get() = noImpl - val scale: SVGAnimatedNumber - get() = noImpl - val xChannelSelector: SVGAnimatedEnumeration - get() = noImpl - val yChannelSelector: SVGAnimatedEnumeration - get() = noImpl - - companion object { - val SVG_CHANNEL_UNKNOWN: Short = 0 - val SVG_CHANNEL_R: Short = 1 - val SVG_CHANNEL_G: Short = 2 - val SVG_CHANNEL_B: Short = 3 - val SVG_CHANNEL_A: Short = 4 - } -} - -@native public interface SVGFEFloodElement : SVGElement, SVGFilterPrimitiveStandardAttributes { -} - -@native public interface SVGFEGaussianBlurElement : SVGElement, SVGFilterPrimitiveStandardAttributes { - val in1: SVGAnimatedString - get() = noImpl - val stdDeviationX: SVGAnimatedNumber - get() = noImpl - val stdDeviationY: SVGAnimatedNumber - get() = noImpl - fun setStdDeviation(stdDeviationX: Float, stdDeviationY: Float): Unit = noImpl -} - -@native public interface SVGFEImageElement : SVGElement, SVGURIReference, SVGLangSpace, SVGExternalResourcesRequired, SVGFilterPrimitiveStandardAttributes { - val preserveAspectRatio: SVGAnimatedPreserveAspectRatio - get() = noImpl -} - -@native public interface SVGFEMergeElement : SVGElement, SVGFilterPrimitiveStandardAttributes { -} - -@native public interface SVGFEMergeNodeElement : SVGElement { - val in1: SVGAnimatedString - get() = noImpl -} - -@native public interface SVGFEMorphologyElement : SVGElement, SVGFilterPrimitiveStandardAttributes { - val in1: SVGAnimatedString - get() = noImpl - val operator: SVGAnimatedEnumeration - get() = noImpl - val radiusX: SVGAnimatedNumber - get() = noImpl - val radiusY: SVGAnimatedNumber - get() = noImpl - - companion object { - val SVG_MORPHOLOGY_OPERATOR_UNKNOWN: Short = 0 - val SVG_MORPHOLOGY_OPERATOR_ERODE: Short = 1 - val SVG_MORPHOLOGY_OPERATOR_DILATE: Short = 2 - } -} - -@native public interface SVGFEOffsetElement : SVGElement, SVGFilterPrimitiveStandardAttributes { - val in1: SVGAnimatedString - get() = noImpl - val dx: SVGAnimatedNumber - get() = noImpl - val dy: SVGAnimatedNumber - get() = noImpl -} - -@native public interface SVGFESpecularLightingElement : SVGElement, SVGFilterPrimitiveStandardAttributes { - val in1: SVGAnimatedString - get() = noImpl - val surfaceScale: SVGAnimatedNumber - get() = noImpl - val specularConstant: SVGAnimatedNumber - get() = noImpl - val specularExponent: SVGAnimatedNumber - get() = noImpl - val kernelUnitLengthX: SVGAnimatedNumber - get() = noImpl - val kernelUnitLengthY: SVGAnimatedNumber - get() = noImpl -} - -@native public interface SVGFETileElement : SVGElement, SVGFilterPrimitiveStandardAttributes { - val in1: SVGAnimatedString - get() = noImpl -} - -@native public interface SVGFETurbulenceElement : SVGElement, SVGFilterPrimitiveStandardAttributes { - val baseFrequencyX: SVGAnimatedNumber - get() = noImpl - val baseFrequencyY: SVGAnimatedNumber - get() = noImpl - val numOctaves: SVGAnimatedInteger - get() = noImpl - val seed: SVGAnimatedNumber - get() = noImpl - val stitchTiles: SVGAnimatedEnumeration - get() = noImpl - val type: SVGAnimatedEnumeration - get() = noImpl - - companion object { - val SVG_TURBULENCE_TYPE_UNKNOWN: Short = 0 - val SVG_TURBULENCE_TYPE_FRACTALNOISE: Short = 1 - val SVG_TURBULENCE_TYPE_TURBULENCE: Short = 2 - val SVG_STITCHTYPE_UNKNOWN: Short = 0 - val SVG_STITCHTYPE_STITCH: Short = 1 - val SVG_STITCHTYPE_NOSTITCH: Short = 2 - } -} - -@native public interface SVGCursorElement : SVGElement, SVGURIReference, SVGTests, SVGExternalResourcesRequired { - val x: SVGAnimatedLength - get() = noImpl - val y: SVGAnimatedLength - get() = noImpl -} - -@native public interface SVGAElement : SVGElement, SVGURIReference, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { - val target: SVGAnimatedString - get() = noImpl -} - -@native public interface SVGViewElement : SVGElement, SVGExternalResourcesRequired, SVGFitToViewBox, SVGZoomAndPan { - val viewTarget: SVGStringList - get() = noImpl -} - -@native public interface SVGScriptElement : SVGElement, SVGURIReference, SVGExternalResourcesRequired { - var type: dynamic + set(value) = noImpl + open var crossOrigin: String? get() = noImpl set(value) = noImpl } -@native public open class SVGZoomEvent : UIEvent(noImpl, noImpl) { - open val zoomRectScreen: SVGRect +@native public abstract class SVGAElement : SVGGraphicsElement(), SVGURIReference { + open val target: SVGAnimatedString get() = noImpl - open val previousScale: Float + open val download: SVGAnimatedString get() = noImpl - open val previousTranslate: SVGPoint + open val rel: SVGAnimatedString get() = noImpl - open val newScale: Float + open val relList: SVGAnimatedString get() = noImpl - open val newTranslate: SVGPoint + open val hreflang: SVGAnimatedString + get() = noImpl + open val type: SVGAnimatedString get() = noImpl } -@native public interface ElementTimeControl { - fun beginElement(): Unit = noImpl - fun beginElementAt(offset: Float): Unit = noImpl - fun endElement(): Unit = noImpl - fun endElementAt(offset: Float): Unit = noImpl -} - -@native public open class TimeEvent : Event(noImpl, noImpl) { - open val view: dynamic - get() = noImpl - open val detail: Int - get() = noImpl - fun initTimeEvent(typeArg: String, viewArg: dynamic, detailArg: Int): Unit = noImpl -} - -@native public interface SVGAnimationElement : SVGElement, SVGTests, SVGExternalResourcesRequired, ElementTimeControl { - val targetElement: SVGElement - get() = noImpl - fun getStartTime(): Float = noImpl - fun getCurrentTime(): Float = noImpl - fun getSimpleDuration(): Float = noImpl -} - -@native public interface SVGAnimateElement : SVGAnimationElement, SVGStylable { -} - -@native public interface SVGSetElement : SVGAnimationElement { -} - -@native public interface SVGAnimateMotionElement : SVGAnimationElement { -} - -@native public interface SVGMPathElement : SVGElement, SVGURIReference, SVGExternalResourcesRequired { -} - -@native public interface SVGAnimateColorElement : SVGAnimationElement, SVGStylable { -} - -@native public interface SVGAnimateTransformElement : SVGAnimationElement { -} - -@native public interface SVGFontElement : SVGElement, SVGExternalResourcesRequired, SVGStylable { -} - -@native public interface SVGGlyphElement : SVGElement, SVGStylable { -} - -@native public interface SVGMissingGlyphElement : SVGElement, SVGStylable { -} - -@native public interface SVGHKernElement : SVGElement { -} - -@native public interface SVGVKernElement : SVGElement { -} - -@native public interface SVGFontFaceElement : SVGElement { -} - -@native public interface SVGFontFaceSrcElement : SVGElement { -} - -@native public interface SVGFontFaceUriElement : SVGElement { -} - -@native public interface SVGFontFaceFormatElement : SVGElement { -} - -@native public interface SVGFontFaceNameElement : SVGElement { -} - -@native public interface SVGMetadataElement : SVGElement { -} - -@native public interface SVGForeignObjectElement : SVGElement, SVGTests, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { - val x: SVGAnimatedLength - get() = noImpl - val y: SVGAnimatedLength - get() = noImpl - val width: SVGAnimatedLength - get() = noImpl - val height: SVGAnimatedLength - get() = noImpl +@native public abstract class SVGViewElement : SVGElement(), SVGFitToViewBox, SVGZoomAndPan { + + companion object { + val SVG_ZOOMANDPAN_UNKNOWN: Short = 0 + val SVG_ZOOMANDPAN_DISABLE: Short = 1 + val SVG_ZOOMANDPAN_MAGNIFY: Short = 2 + } } diff --git a/js/js.libraries/src/generated/org.w3c.dom.url.kt b/js/js.libraries/src/generated/org.w3c.dom.url.kt index 20c28de9f0d..240e1e51b97 100644 --- a/js/js.libraries/src/generated/org.w3c.dom.url.kt +++ b/js/js.libraries/src/generated/org.w3c.dom.url.kt @@ -50,9 +50,8 @@ import org.w3c.xhr.* var search: String get() = noImpl set(value) = noImpl - var searchParams: URLSearchParams + open val searchParams: URLSearchParams get() = noImpl - set(value) = noImpl var hash: String get() = noImpl set(value) = noImpl diff --git a/js/js.libraries/src/generated/org.w3c.fetch.kt b/js/js.libraries/src/generated/org.w3c.fetch.kt index e766cb63538..548380673d6 100644 --- a/js/js.libraries/src/generated/org.w3c.fetch.kt +++ b/js/js.libraries/src/generated/org.w3c.fetch.kt @@ -24,22 +24,35 @@ import org.w3c.xhr.* fun append(name: String, value: String): Unit = noImpl fun delete(name: String): Unit = noImpl fun get(name: String): String? = noImpl - fun getAll(name: String): Array = noImpl fun has(name: String): Boolean = noImpl fun set(name: String, value: String): Unit = noImpl } -@native public open class Request(input: dynamic, init: RequestInit = noImpl) { +@native public interface Body { + val bodyUsed: Boolean + get() = noImpl + fun arrayBuffer(): dynamic = noImpl + fun blob(): dynamic = noImpl + fun formData(): dynamic = noImpl + fun json(): dynamic = noImpl + fun text(): dynamic = noImpl +} + +@native public open class Request(input: dynamic, init: RequestInit = noImpl) : Body { open val method: String get() = noImpl open val url: String get() = noImpl open val headers: Headers get() = noImpl - open val context: String + open val type: String + get() = noImpl + open val destination: String get() = noImpl open val referrer: String get() = noImpl + open val referrerPolicy: dynamic + get() = noImpl open val mode: String get() = noImpl open val credentials: String @@ -48,46 +61,55 @@ import org.w3c.xhr.* get() = noImpl open val redirect: String get() = noImpl - open val bodyUsed: Boolean + open val integrity: String + get() = noImpl + open val keepalive: Boolean get() = noImpl fun clone(): Request = noImpl - fun arrayBuffer(): dynamic = noImpl - fun blob(): dynamic = noImpl - fun formData(): dynamic = noImpl - fun json(): dynamic = noImpl - fun text(): dynamic = noImpl } @native public interface RequestInit { - var method: String + var method: String? var headers: dynamic var body: dynamic - var mode: String - var credentials: String - var cache: String - var redirect: String + var referrer: String? + var referrerPolicy: dynamic + var mode: String? + var credentials: String? + var cache: String? + var redirect: String? + var integrity: String? + var keepalive: Boolean? + var window: Any? } @Suppress("NOTHING_TO_INLINE") -public inline fun RequestInit(method: String, headers: dynamic, body: dynamic, mode: String, credentials: String, cache: String, redirect: String): RequestInit { +public inline fun RequestInit(method: String?, headers: dynamic, body: dynamic, referrer: String?, referrerPolicy: dynamic, mode: String?, credentials: String?, cache: String?, redirect: String?, integrity: String?, keepalive: Boolean?, window: Any?): RequestInit { val o = js("({})") o["method"] = method o["headers"] = headers o["body"] = body + o["referrer"] = referrer + o["referrerPolicy"] = referrerPolicy o["mode"] = mode o["credentials"] = credentials o["cache"] = cache o["redirect"] = redirect + o["integrity"] = integrity + o["keepalive"] = keepalive + o["window"] = window return o } -@native public open class Response(body: dynamic = noImpl, init: ResponseInit = noImpl) { +@native public open class Response(body: dynamic = null, init: ResponseInit = noImpl) : Body { open val type: String get() = noImpl open val url: String get() = noImpl + open val redirected: Boolean + get() = noImpl open val status: Short get() = noImpl open val ok: Boolean @@ -96,14 +118,11 @@ public inline fun RequestInit(method: String, headers: dynamic, body: dynamic, m get() = noImpl open val headers: Headers get() = noImpl - open val bodyUsed: Boolean + open val body: dynamic + get() = noImpl + open val trailer: dynamic get() = noImpl fun clone(): Response = noImpl - fun arrayBuffer(): dynamic = noImpl - fun blob(): dynamic = noImpl - fun formData(): dynamic = noImpl - fun json(): dynamic = noImpl - fun text(): dynamic = noImpl companion object { fun error(): Response = noImpl @@ -112,13 +131,13 @@ public inline fun RequestInit(method: String, headers: dynamic, body: dynamic, m } @native public interface ResponseInit { - var status: Short - var statusText: String + var status: Short? /* = 200 */ + var statusText: String? /* = "OK" */ var headers: dynamic } @Suppress("NOTHING_TO_INLINE") -public inline fun ResponseInit(status: Short = 200, statusText: String = "OK", headers: dynamic): ResponseInit { +public inline fun ResponseInit(status: Short? = 200, statusText: String? = "OK", headers: dynamic): ResponseInit { val o = js("({})") o["status"] = status diff --git a/js/js.libraries/src/generated/org.w3c.files.kt b/js/js.libraries/src/generated/org.w3c.files.kt index a12e0031f83..11f9493a91b 100644 --- a/js/js.libraries/src/generated/org.w3c.files.kt +++ b/js/js.libraries/src/generated/org.w3c.files.kt @@ -20,8 +20,7 @@ import org.w3c.performance.* import org.w3c.workers.* import org.w3c.xhr.* -@native public open class Blob() : ImageBitmapSource { - constructor(blobParts: Array, options: BlobPropertyBag = noImpl) : this() +@native public open class Blob(blobParts: Array = noImpl, options: BlobPropertyBag = noImpl) { open val size: Int get() = noImpl open val type: String @@ -33,11 +32,11 @@ import org.w3c.xhr.* } @native public interface BlobPropertyBag { - var type: String + var type: String? /* = "" */ } @Suppress("NOTHING_TO_INLINE") -public inline fun BlobPropertyBag(type: String = ""): BlobPropertyBag { +public inline fun BlobPropertyBag(type: String? = ""): BlobPropertyBag { val o = js("({})") o["type"] = type @@ -45,37 +44,36 @@ public inline fun BlobPropertyBag(type: String = ""): BlobPropertyBag { return o } -@native public open class File(fileBits: Array, fileName: String, options: FilePropertyBag = noImpl) : Blob() { +@native public open class File(fileBits: Array, fileName: String, options: FilePropertyBag = noImpl) : Blob(noImpl, options) { open val name: String get() = noImpl open val lastModified: Int get() = noImpl } -@native public interface FilePropertyBag { - var type: String - var lastModified: Int +@native public interface FilePropertyBag : BlobPropertyBag { + var lastModified: Int? } @Suppress("NOTHING_TO_INLINE") -public inline fun FilePropertyBag(type: String = "", lastModified: Int): FilePropertyBag { +public inline fun FilePropertyBag(lastModified: Int?, type: String? = ""): FilePropertyBag { val o = js("({})") - o["type"] = type o["lastModified"] = lastModified + o["type"] = type return o } -@native public interface FileList { - val length: Int +@native public abstract class FileList { + open val length: Int get() = noImpl fun item(index: Int): File? = noImpl @nativeGetter operator fun get(index: Int): File? = noImpl } -@native public open class FileReader : EventTarget { +@native public open class FileReader : EventTarget() { open val readyState: Short get() = noImpl open val result: dynamic @@ -101,6 +99,7 @@ public inline fun FilePropertyBag(type: String = "", lastModified: Int): FilePro get() = noImpl set(value) = noImpl fun readAsArrayBuffer(blob: Blob): Unit = noImpl + fun readAsBinaryString(blob: Blob): Unit = noImpl fun readAsText(blob: Blob, label: String = noImpl): Unit = noImpl fun readAsDataURL(blob: Blob): Unit = noImpl fun abort(): Unit = noImpl @@ -114,6 +113,7 @@ public inline fun FilePropertyBag(type: String = "", lastModified: Int): FilePro @native public open class FileReaderSync { fun readAsArrayBuffer(blob: Blob): ArrayBuffer = noImpl + fun readAsBinaryString(blob: Blob): String = noImpl fun readAsText(blob: Blob, label: String = noImpl): String = noImpl fun readAsDataURL(blob: Blob): String = noImpl } diff --git a/js/js.libraries/src/generated/org.w3c.notifications.kt b/js/js.libraries/src/generated/org.w3c.notifications.kt index 1a3f7b11574..95847ef5c50 100644 --- a/js/js.libraries/src/generated/org.w3c.notifications.kt +++ b/js/js.libraries/src/generated/org.w3c.notifications.kt @@ -20,7 +20,7 @@ import org.w3c.performance.* import org.w3c.workers.* import org.w3c.xhr.* -@native public open class Notification(title: String, options: NotificationOptions = noImpl) : EventTarget { +@native public open class Notification(title: String, options: NotificationOptions = noImpl) : EventTarget() { var onclick: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @@ -37,71 +37,113 @@ import org.w3c.xhr.* get() = noImpl open val tag: String get() = noImpl + open val image: String + get() = noImpl open val icon: String get() = noImpl + open val badge: String + get() = noImpl open val sound: String get() = noImpl + open val vibrate: dynamic + get() = noImpl + open val timestamp: Number + get() = noImpl open val renotify: Boolean get() = noImpl open val silent: Boolean get() = noImpl open val noscreen: Boolean get() = noImpl + open val requireInteraction: Boolean + get() = noImpl open val sticky: Boolean get() = noImpl open val data: Any? get() = noImpl + open val actions: dynamic + get() = noImpl fun close(): Unit = noImpl companion object { var permission: String get() = noImpl set(value) = noImpl - fun requestPermission(callback: (String) -> Unit = noImpl): Unit = noImpl + var maxActions: Int + get() = noImpl + set(value) = noImpl + fun requestPermission(deprecatedCallback: (String) -> Unit = noImpl): dynamic = noImpl } } @native public interface NotificationOptions { - var dir: String - var lang: String - var body: String - var tag: String - var icon: String - var sound: String + var dir: String? /* = "auto" */ + var lang: String? /* = "" */ + var body: String? /* = "" */ + var tag: String? /* = "" */ + var image: String? + var icon: String? + var badge: String? + var sound: String? var vibrate: dynamic - var renotify: Boolean - var silent: Boolean - var noscreen: Boolean - var sticky: Boolean - var data: Any? + var timestamp: Number? + var renotify: Boolean? /* = false */ + var silent: Boolean? /* = false */ + var noscreen: Boolean? /* = false */ + var requireInteraction: Boolean? /* = false */ + var sticky: Boolean? /* = false */ + var data: Any? /* = null */ + var actions: Array? /* = arrayOf() */ } @Suppress("NOTHING_TO_INLINE") -public inline fun NotificationOptions(dir: String = "auto", lang: String = "", body: String = "", tag: String = "", icon: String, sound: String, vibrate: dynamic, renotify: Boolean = false, silent: Boolean = false, noscreen: Boolean = false, sticky: Boolean = false, data: Any? = null): NotificationOptions { +public inline fun NotificationOptions(dir: String? = "auto", lang: String? = "", body: String? = "", tag: String? = "", image: String?, icon: String?, badge: String?, sound: String?, vibrate: dynamic, timestamp: Number?, renotify: Boolean? = false, silent: Boolean? = false, noscreen: Boolean? = false, requireInteraction: Boolean? = false, sticky: Boolean? = false, data: Any? = null, actions: Array? = arrayOf()): NotificationOptions { val o = js("({})") o["dir"] = dir o["lang"] = lang o["body"] = body o["tag"] = tag + o["image"] = image o["icon"] = icon + o["badge"] = badge o["sound"] = sound o["vibrate"] = vibrate + o["timestamp"] = timestamp o["renotify"] = renotify o["silent"] = silent o["noscreen"] = noscreen + o["requireInteraction"] = requireInteraction o["sticky"] = sticky o["data"] = data + o["actions"] = actions + + return o +} + +@native public interface NotificationAction { + var action: String? + var title: String? + var icon: String? +} + +@Suppress("NOTHING_TO_INLINE") +public inline fun NotificationAction(action: String?, title: String?, icon: String?): NotificationAction { + val o = js("({})") + + o["action"] = action + o["title"] = title + o["icon"] = icon return o } @native public interface GetNotificationOptions { - var tag: String + var tag: String? /* = "" */ } @Suppress("NOTHING_TO_INLINE") -public inline fun GetNotificationOptions(tag: String = ""): GetNotificationOptions { +public inline fun GetNotificationOptions(tag: String? = ""): GetNotificationOptions { val o = js("({})") o["tag"] = tag @@ -109,22 +151,27 @@ public inline fun GetNotificationOptions(tag: String = ""): GetNotificationOptio return o } -@native public open class NotificationEvent(type: String, eventInitDict: NotificationEventInit = noImpl) : ExtendableEvent(type, eventInitDict) { +@native public open class NotificationEvent(type: String, eventInitDict: NotificationEventInit) : ExtendableEvent(type, eventInitDict) { open val notification: Notification get() = noImpl + open val action: String + get() = noImpl } @native public interface NotificationEventInit : ExtendableEventInit { - var notification: Notification + var notification: Notification? + var action: String? /* = "" */ } @Suppress("NOTHING_TO_INLINE") -public inline fun NotificationEventInit(notification: Notification, bubbles: Boolean = false, cancelable: Boolean = false): NotificationEventInit { +public inline fun NotificationEventInit(notification: Notification?, action: String? = "", bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): NotificationEventInit { val o = js("({})") o["notification"] = notification + o["action"] = action o["bubbles"] = bubbles o["cancelable"] = cancelable + o["composed"] = composed return o } diff --git a/js/js.libraries/src/generated/org.w3c.performance.kt b/js/js.libraries/src/generated/org.w3c.performance.kt index f9028f0b699..5e558794252 100644 --- a/js/js.libraries/src/generated/org.w3c.performance.kt +++ b/js/js.libraries/src/generated/org.w3c.performance.kt @@ -20,63 +20,68 @@ import org.w3c.notifications.* import org.w3c.workers.* import org.w3c.xhr.* -@native public interface Performance { - val timing: PerformanceTiming +@native public abstract class Performance : EventTarget() { + open val timing: PerformanceTiming get() = noImpl - val navigation: PerformanceNavigation + open val navigation: PerformanceNavigation get() = noImpl fun now(): Double = noImpl } -@native public interface PerformanceTiming { - val navigationStart: Int - get() = noImpl - val unloadEventStart: Int - get() = noImpl - val unloadEventEnd: Int - get() = noImpl - val redirectStart: Int - get() = noImpl - val redirectEnd: Int - get() = noImpl - val fetchStart: Int - get() = noImpl - val domainLookupStart: Int - get() = noImpl - val domainLookupEnd: Int - get() = noImpl - val connectStart: Int - get() = noImpl - val connectEnd: Int - get() = noImpl - val secureConnectionStart: Int - get() = noImpl - val requestStart: Int - get() = noImpl - val responseStart: Int - get() = noImpl - val responseEnd: Int - get() = noImpl - val domLoading: Int - get() = noImpl - val domInteractive: Int - get() = noImpl - val domContentLoadedEventStart: Int - get() = noImpl - val domContentLoadedEventEnd: Int - get() = noImpl - val domComplete: Int - get() = noImpl - val loadEventStart: Int - get() = noImpl - val loadEventEnd: Int +@native public interface GlobalPerformance { + val performance: Performance get() = noImpl } -@native public interface PerformanceNavigation { - val type: Short +@native public abstract class PerformanceTiming { + open val navigationStart: Int get() = noImpl - val redirectCount: Short + open val unloadEventStart: Int + get() = noImpl + open val unloadEventEnd: Int + get() = noImpl + open val redirectStart: Int + get() = noImpl + open val redirectEnd: Int + get() = noImpl + open val fetchStart: Int + get() = noImpl + open val domainLookupStart: Int + get() = noImpl + open val domainLookupEnd: Int + get() = noImpl + open val connectStart: Int + get() = noImpl + open val connectEnd: Int + get() = noImpl + open val secureConnectionStart: Int + get() = noImpl + open val requestStart: Int + get() = noImpl + open val responseStart: Int + get() = noImpl + open val responseEnd: Int + get() = noImpl + open val domLoading: Int + get() = noImpl + open val domInteractive: Int + get() = noImpl + open val domContentLoadedEventStart: Int + get() = noImpl + open val domContentLoadedEventEnd: Int + get() = noImpl + open val domComplete: Int + get() = noImpl + open val loadEventStart: Int + get() = noImpl + open val loadEventEnd: Int + get() = noImpl +} + +@native public abstract class PerformanceNavigation { + open val type: Short + get() = noImpl + open val redirectCount: Short get() = noImpl companion object { diff --git a/js/js.libraries/src/generated/org.w3c.workers.kt b/js/js.libraries/src/generated/org.w3c.workers.kt index 1c972d65362..d0945ef1b3b 100644 --- a/js/js.libraries/src/generated/org.w3c.workers.kt +++ b/js/js.libraries/src/generated/org.w3c.workers.kt @@ -20,97 +20,98 @@ import org.w3c.notifications.* import org.w3c.performance.* import org.w3c.xhr.* -@native public interface ServiceWorkerRegistration : EventTarget { - val installing: ServiceWorker? +@native public abstract class ServiceWorkerRegistration : EventTarget() { + open val installing: ServiceWorker? get() = noImpl - val waiting: ServiceWorker? + open val waiting: ServiceWorker? get() = noImpl - val active: ServiceWorker? + open val active: ServiceWorker? get() = noImpl - val scope: String + open val scope: String get() = noImpl - var onupdatefound: ((Event) -> dynamic)? + open var onupdatefound: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - val APISpace: dynamic + open val APISpace: dynamic get() = noImpl - fun update(): Unit = noImpl + fun update(): dynamic = noImpl fun unregister(): dynamic = noImpl - fun methodName(of: dynamic): dynamic = noImpl + fun methodName(): dynamic = noImpl fun showNotification(title: String, options: NotificationOptions = noImpl): dynamic = noImpl fun getNotifications(filter: GetNotificationOptions = noImpl): dynamic = noImpl } -@native public interface ServiceWorkerGlobalScope : WorkerGlobalScope { - val clients: Clients +@native public abstract class ServiceWorkerGlobalScope : WorkerGlobalScope() { + open val clients: Clients get() = noImpl - val registration: ServiceWorkerRegistration + open val registration: ServiceWorkerRegistration get() = noImpl - var oninstall: ((Event) -> dynamic)? + open var oninstall: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var onactivate: ((Event) -> dynamic)? + open var onactivate: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var onfetch: ((Event) -> dynamic)? + open var onfetch: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var onmessage: ((Event) -> dynamic)? + open var onforeignfetch: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var onfunctionalevent: ((Event) -> dynamic)? + open var onmessage: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var onnotificationclick: ((Event) -> dynamic)? + open var onfunctionalevent: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + open var onnotificationclick: ((Event) -> dynamic)? + get() = noImpl + set(value) = noImpl + open var onnotificationclose: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl fun skipWaiting(): dynamic = noImpl } -@native public interface ServiceWorker : EventTarget, UnionMessagePortOrServiceWorker, UnionClientOrMessagePortOrServiceWorker { - val scriptURL: String +@native public abstract class ServiceWorker : EventTarget(), AbstractWorker, UnionMessagePortOrServiceWorker, UnionClientOrMessagePortOrServiceWorker { + open val scriptURL: String get() = noImpl - val state: String + open val state: String get() = noImpl - val id: String - get() = noImpl - var onstatechange: ((Event) -> dynamic)? + open var onstatechange: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var onerror: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - fun postMessage(message: Any?, transfer: Array = noImpl): Unit = noImpl + fun postMessage(message: Any?, transfer: Array = noImpl): Unit = noImpl } -@native public interface ServiceWorkerContainer : EventTarget { - val controller: ServiceWorker? +@native public abstract class ServiceWorkerContainer : EventTarget() { + open val controller: ServiceWorker? get() = noImpl - val ready: dynamic + open val ready: dynamic get() = noImpl - var oncontrollerchange: ((Event) -> dynamic)? + open var oncontrollerchange: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var onerror: ((Event) -> dynamic)? - get() = noImpl - set(value) = noImpl - var onmessage: ((Event) -> dynamic)? + open var onmessage: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl fun register(scriptURL: String, options: RegistrationOptions = noImpl): dynamic = noImpl fun getRegistration(clientURL: String = ""): dynamic = noImpl fun getRegistrations(): dynamic = noImpl + fun startMessages(): Unit = noImpl } @native public interface RegistrationOptions { - var scope: String + var scope: String? + var type: String? /* = "classic" */ } @Suppress("NOTHING_TO_INLINE") -public inline fun RegistrationOptions(scope: String): RegistrationOptions { +public inline fun RegistrationOptions(scope: String?, type: String? = "classic"): RegistrationOptions { val o = js("({})") o["scope"] = scope + o["type"] = type return o } @@ -124,21 +125,20 @@ public inline fun RegistrationOptions(scope: String): RegistrationOptions { get() = noImpl open val source: UnionMessagePortOrServiceWorker? get() = noImpl - open val ports: Array? + open val ports: dynamic get() = noImpl - fun initServiceWorkerMessageEvent(typeArg: String, canBubbleArg: Boolean, cancelableArg: Boolean, dataArg: Any?, originArg: String, lastEventIdArg: String, sourceArg: UnionMessagePortOrServiceWorker, portsArg: Array?): Unit = noImpl } @native public interface ServiceWorkerMessageEventInit : EventInit { var data: Any? - var origin: String - var lastEventId: String + var origin: String? + var lastEventId: String? var source: UnionMessagePortOrServiceWorker? - var ports: Array + var ports: Array? } @Suppress("NOTHING_TO_INLINE") -public inline fun ServiceWorkerMessageEventInit(data: Any?, origin: String, lastEventId: String, source: UnionMessagePortOrServiceWorker?, ports: Array, bubbles: Boolean = false, cancelable: Boolean = false): ServiceWorkerMessageEventInit { +public inline fun ServiceWorkerMessageEventInit(data: Any?, origin: String?, lastEventId: String?, source: UnionMessagePortOrServiceWorker?, ports: Array?, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): ServiceWorkerMessageEventInit { val o = js("({})") o["data"] = data @@ -148,41 +148,44 @@ public inline fun ServiceWorkerMessageEventInit(data: Any?, origin: String, last o["ports"] = ports o["bubbles"] = bubbles o["cancelable"] = cancelable + o["composed"] = composed return o } -@native public interface Client : UnionClientOrMessagePortOrServiceWorker { - val url: String +@native public abstract class Client : UnionClientOrMessagePortOrServiceWorker { + open val url: String get() = noImpl - val frameType: String + open val frameType: String get() = noImpl - val id: String + open val id: String get() = noImpl - fun postMessage(message: Any?, transfer: Array = noImpl): Unit = noImpl + fun postMessage(message: Any?, transfer: Array = noImpl): Unit = noImpl } -@native public interface WindowClient : Client { - val visibilityState: dynamic +@native public abstract class WindowClient : Client() { + open val visibilityState: dynamic get() = noImpl - val focused: Boolean + open val focused: Boolean get() = noImpl fun focus(): dynamic = noImpl + fun navigate(url: String): dynamic = noImpl } -@native public interface Clients { +@native public abstract class Clients { + fun get(id: String): dynamic = noImpl fun matchAll(options: ClientQueryOptions = noImpl): dynamic = noImpl fun openWindow(url: String): dynamic = noImpl fun claim(): dynamic = noImpl } @native public interface ClientQueryOptions { - var includeUncontrolled: Boolean - var type: String + var includeUncontrolled: Boolean? /* = false */ + var type: String? /* = "window" */ } @Suppress("NOTHING_TO_INLINE") -public inline fun ClientQueryOptions(includeUncontrolled: Boolean = false, type: String = "window"): ClientQueryOptions { +public inline fun ClientQueryOptions(includeUncontrolled: Boolean? = false, type: String? = "window"): ClientQueryOptions { val o = js("({})") o["includeUncontrolled"] = includeUncontrolled @@ -199,19 +202,39 @@ public inline fun ClientQueryOptions(includeUncontrolled: Boolean = false, type: } @Suppress("NOTHING_TO_INLINE") -public inline fun ExtendableEventInit(bubbles: Boolean = false, cancelable: Boolean = false): ExtendableEventInit { +public inline fun ExtendableEventInit(bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): ExtendableEventInit { val o = js("({})") o["bubbles"] = bubbles o["cancelable"] = cancelable + o["composed"] = composed return o } -@native public open class FetchEvent(type: String, eventInitDict: FetchEventInit = noImpl) : ExtendableEvent(type, eventInitDict) { +@native public open class InstallEvent(type: String, eventInitDict: ExtendableEventInit = noImpl) : ExtendableEvent(type, eventInitDict) { + fun registerForeignFetch(options: ForeignFetchOptions): Unit = noImpl +} + +@native public interface ForeignFetchOptions { + var scopes: Array? + var origins: Array? +} + +@Suppress("NOTHING_TO_INLINE") +public inline fun ForeignFetchOptions(scopes: Array?, origins: Array?): ForeignFetchOptions { + val o = js("({})") + + o["scopes"] = scopes + o["origins"] = origins + + return o +} + +@native public open class FetchEvent(type: String, eventInitDict: FetchEventInit) : ExtendableEvent(type, eventInitDict) { open val request: Request get() = noImpl - open val client: Client + open val clientId: String? get() = noImpl open val isReload: Boolean get() = noImpl @@ -219,20 +242,64 @@ public inline fun ExtendableEventInit(bubbles: Boolean = false, cancelable: Bool } @native public interface FetchEventInit : ExtendableEventInit { - var request: Request - var client: Client - var isReload: Boolean + var request: Request? + var clientId: String? /* = null */ + var isReload: Boolean? /* = false */ } @Suppress("NOTHING_TO_INLINE") -public inline fun FetchEventInit(request: Request, client: Client, isReload: Boolean = false, bubbles: Boolean = false, cancelable: Boolean = false): FetchEventInit { +public inline fun FetchEventInit(request: Request?, clientId: String? = null, isReload: Boolean? = false, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): FetchEventInit { val o = js("({})") o["request"] = request - o["client"] = client + o["clientId"] = clientId o["isReload"] = isReload o["bubbles"] = bubbles o["cancelable"] = cancelable + o["composed"] = composed + + return o +} + +@native public open class ForeignFetchEvent(type: String, eventInitDict: ForeignFetchEventInit) : ExtendableEvent(type, eventInitDict) { + open val request: Request + get() = noImpl + open val origin: String + get() = noImpl + fun respondWith(r: dynamic): Unit = noImpl +} + +@native public interface ForeignFetchEventInit : ExtendableEventInit { + var request: Request? + var origin: String? /* = "null" */ +} + +@Suppress("NOTHING_TO_INLINE") +public inline fun ForeignFetchEventInit(request: Request?, origin: String? = "null", bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): ForeignFetchEventInit { + val o = js("({})") + + o["request"] = request + o["origin"] = origin + o["bubbles"] = bubbles + o["cancelable"] = cancelable + o["composed"] = composed + + return o +} + +@native public interface ForeignFetchResponse { + var response: Response? + var origin: String? + var headers: Array? +} + +@Suppress("NOTHING_TO_INLINE") +public inline fun ForeignFetchResponse(response: Response?, origin: String?, headers: Array?): ForeignFetchResponse { + val o = js("({})") + + o["response"] = response + o["origin"] = origin + o["headers"] = headers return o } @@ -246,21 +313,20 @@ public inline fun FetchEventInit(request: Request, client: Client, isReload: Boo get() = noImpl open val source: UnionClientOrMessagePortOrServiceWorker? get() = noImpl - open val ports: Array? + open val ports: dynamic get() = noImpl - fun initExtendableMessageEvent(typeArg: String, canBubbleArg: Boolean, cancelableArg: Boolean, dataArg: Any?, originArg: String, lastEventIdArg: String, sourceArg: UnionClientOrMessagePortOrServiceWorker, portsArg: Array?): Unit = noImpl } @native public interface ExtendableMessageEventInit : ExtendableEventInit { var data: Any? - var origin: String - var lastEventId: String + var origin: String? + var lastEventId: String? var source: UnionClientOrMessagePortOrServiceWorker? - var ports: Array + var ports: Array? } @Suppress("NOTHING_TO_INLINE") -public inline fun ExtendableMessageEventInit(data: Any?, origin: String, lastEventId: String, source: UnionClientOrMessagePortOrServiceWorker?, ports: Array, bubbles: Boolean = false, cancelable: Boolean = false): ExtendableMessageEventInit { +public inline fun ExtendableMessageEventInit(data: Any?, origin: String?, lastEventId: String?, source: UnionClientOrMessagePortOrServiceWorker?, ports: Array?, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): ExtendableMessageEventInit { val o = js("({})") o["data"] = data @@ -270,11 +336,12 @@ public inline fun ExtendableMessageEventInit(data: Any?, origin: String, lastEve o["ports"] = ports o["bubbles"] = bubbles o["cancelable"] = cancelable + o["composed"] = composed return o } -@native public interface Cache { +@native public abstract class Cache { fun match(request: dynamic, options: CacheQueryOptions = noImpl): dynamic = noImpl fun matchAll(request: dynamic = noImpl, options: CacheQueryOptions = noImpl): dynamic = noImpl fun add(request: dynamic): dynamic = noImpl @@ -285,14 +352,14 @@ public inline fun ExtendableMessageEventInit(data: Any?, origin: String, lastEve } @native public interface CacheQueryOptions { - var ignoreSearch: Boolean - var ignoreMethod: Boolean - var ignoreVary: Boolean - var cacheName: String + var ignoreSearch: Boolean? /* = false */ + var ignoreMethod: Boolean? /* = false */ + var ignoreVary: Boolean? /* = false */ + var cacheName: String? } @Suppress("NOTHING_TO_INLINE") -public inline fun CacheQueryOptions(ignoreSearch: Boolean = false, ignoreMethod: Boolean = false, ignoreVary: Boolean = false, cacheName: String): CacheQueryOptions { +public inline fun CacheQueryOptions(ignoreSearch: Boolean? = false, ignoreMethod: Boolean? = false, ignoreVary: Boolean? = false, cacheName: String?): CacheQueryOptions { val o = js("({})") o["ignoreSearch"] = ignoreSearch @@ -304,14 +371,14 @@ public inline fun CacheQueryOptions(ignoreSearch: Boolean = false, ignoreMethod: } @native public interface CacheBatchOperation { - var type: String - var request: Request - var response: Response - var options: CacheQueryOptions + var type: String? + var request: Request? + var response: Response? + var options: CacheQueryOptions? } @Suppress("NOTHING_TO_INLINE") -public inline fun CacheBatchOperation(type: String, request: Request, response: Response, options: CacheQueryOptions): CacheBatchOperation { +public inline fun CacheBatchOperation(type: String?, request: Request?, response: Response?, options: CacheQueryOptions?): CacheBatchOperation { val o = js("({})") o["type"] = type @@ -322,7 +389,7 @@ public inline fun CacheBatchOperation(type: String, request: Request, response: return o } -@native public interface CacheStorage { +@native public abstract class CacheStorage { fun match(request: dynamic, options: CacheQueryOptions = noImpl): dynamic = noImpl fun has(cacheName: String): dynamic = noImpl fun open(cacheName: String): dynamic = noImpl diff --git a/js/js.libraries/src/generated/org.w3c.xhr.kt b/js/js.libraries/src/generated/org.w3c.xhr.kt index 83cd6a04bb5..31538c5600c 100644 --- a/js/js.libraries/src/generated/org.w3c.xhr.kt +++ b/js/js.libraries/src/generated/org.w3c.xhr.kt @@ -20,34 +20,34 @@ import org.w3c.notifications.* import org.w3c.performance.* import org.w3c.workers.* -@native public interface XMLHttpRequestEventTarget : EventTarget { - var onloadstart: ((Event) -> dynamic)? +@native public abstract class XMLHttpRequestEventTarget : EventTarget() { + open var onloadstart: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var onprogress: ((Event) -> dynamic)? + open var onprogress: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var onabort: ((Event) -> dynamic)? + open var onabort: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var onerror: ((Event) -> dynamic)? + open var onerror: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var onload: ((Event) -> dynamic)? + open var onload: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var ontimeout: ((Event) -> dynamic)? + open var ontimeout: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl - var onloadend: ((Event) -> dynamic)? + open var onloadend: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl } -@native public interface XMLHttpRequestUpload : XMLHttpRequestEventTarget { +@native public abstract class XMLHttpRequestUpload : XMLHttpRequestEventTarget() { } -@native public open class XMLHttpRequest : XMLHttpRequestEventTarget { +@native public open class XMLHttpRequest : XMLHttpRequestEventTarget() { var onreadystatechange: ((Event) -> dynamic)? get() = noImpl set(value) = noImpl @@ -95,12 +95,14 @@ import org.w3c.workers.* } @native public open class FormData(form: HTMLFormElement = noImpl) { - fun append(name: String, value: dynamic): Unit = noImpl + fun append(name: String, value: String): Unit = noImpl + fun append(name: String, value: Blob, filename: String = noImpl): Unit = noImpl fun delete(name: String): Unit = noImpl fun get(name: String): dynamic = noImpl fun getAll(name: String): Array = noImpl fun has(name: String): Boolean = noImpl - fun set(name: String, value: dynamic): Unit = noImpl + fun set(name: String, value: String): Unit = noImpl + fun set(name: String, value: Blob, filename: String = noImpl): Unit = noImpl } @native public open class ProgressEvent(type: String, eventInitDict: ProgressEventInit = noImpl) : Event(type, eventInitDict) { @@ -113,13 +115,13 @@ import org.w3c.workers.* } @native public interface ProgressEventInit : EventInit { - var lengthComputable: Boolean - var loaded: Int - var total: Int + var lengthComputable: Boolean? /* = false */ + var loaded: Int? /* = 0 */ + var total: Int? /* = 0 */ } @Suppress("NOTHING_TO_INLINE") -public inline fun ProgressEventInit(lengthComputable: Boolean = false, loaded: Int = 0, total: Int = 0, bubbles: Boolean = false, cancelable: Boolean = false): ProgressEventInit { +public inline fun ProgressEventInit(lengthComputable: Boolean? = false, loaded: Int? = 0, total: Int? = 0, bubbles: Boolean? = false, cancelable: Boolean? = false, composed: Boolean? = false): ProgressEventInit { val o = js("({})") o["lengthComputable"] = lengthComputable @@ -127,6 +129,7 @@ public inline fun ProgressEventInit(lengthComputable: Boolean = false, loaded: I o["total"] = total o["bubbles"] = bubbles o["cancelable"] = cancelable + o["composed"] = composed return o }