├── .github ├── dependabot.yml ├── pull_request_template.md └── workflows │ ├── ci.yml │ ├── ghpages.yml │ └── release.yml ├── .gitignore ├── .jvmopts ├── .scala-steward.conf ├── .scalafix.conf ├── .scalafmt.conf ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── RELEASING.md ├── api-reports ├── 2_12.txt ├── 2_13.txt └── validate ├── build.sbt ├── dom └── src │ └── main │ ├── scala-2 │ └── org │ │ └── scalajs │ │ └── dom │ │ ├── AppendMode.scala │ │ ├── CanvasFillRule.scala │ │ ├── ClientType.scala │ │ ├── CompressionFormat.scala │ │ ├── DataTransferDropEffectKind.scala │ │ ├── DataTransferEffectAllowedKind.scala │ │ ├── DocumentReadyState.scala │ │ ├── DragDataItemKind.scala │ │ ├── EndOfStreamError.scala │ │ ├── EndingType.scala │ │ ├── FrameType.scala │ │ ├── IDBCursorDirection.scala │ │ ├── IDBRequestReadyState.scala │ │ ├── IDBTransactionDurability.scala │ │ ├── IDBTransactionMode.scala │ │ ├── InputType.scala │ │ ├── KeyFormat.scala │ │ ├── KeyType.scala │ │ ├── KeyUsage.scala │ │ ├── LazyLoadingState.scala │ │ ├── LockMode.scala │ │ ├── MIMEType.scala │ │ ├── MediaDeviceKind.scala │ │ ├── MediaSourceReadyState.scala │ │ ├── MediaStreamTrackState.scala │ │ ├── PermissionName.scala │ │ ├── PermissionState.scala │ │ ├── PredefinedColorSpace.scala │ │ ├── PresentationStyle.scala │ │ ├── PushEncryptionKeyName.scala │ │ ├── PushPermissionState.scala │ │ ├── RTCBundlePolicy.scala │ │ ├── RTCDataChannelState.scala │ │ ├── RTCIceConnectionState.scala │ │ ├── RTCIceGatheringState.scala │ │ ├── RTCIceTransportPolicy.scala │ │ ├── RTCSdpType.scala │ │ ├── RTCSignalingState.scala │ │ ├── RTCStatsType.scala │ │ ├── ReadableStreamType.scala │ │ ├── ReferrerPolicy.scala │ │ ├── RequestCache.scala │ │ ├── RequestCredentials.scala │ │ ├── RequestDestination.scala │ │ ├── RequestDuplex.scala │ │ ├── RequestMode.scala │ │ ├── RequestRedirect.scala │ │ ├── RequestType.scala │ │ ├── ResizeObserverBoxOption.scala │ │ ├── ResponseType.scala │ │ ├── ScrollRestoration.scala │ │ ├── ServiceWorkerState.scala │ │ ├── ServiceWorkerUpdateViaCache.scala │ │ ├── ShadowRootMode.scala │ │ ├── TextTrackMode.scala │ │ ├── VisibilityState.scala │ │ ├── WorkerType.scala │ │ └── WriteableState.scala │ ├── scala-3 │ └── org │ │ └── scalajs │ │ └── dom │ │ ├── AppendMode.scala │ │ ├── CanvasFillRule.scala │ │ ├── ClientType.scala │ │ ├── CompressionFormat.scala │ │ ├── DataTransferDropEffectKind.scala │ │ ├── DataTransferEffectAllowedKind.scala │ │ ├── DocumentReadyState.scala │ │ ├── DragDataItemKind.scala │ │ ├── EndOfStreamError.scala │ │ ├── EndingType.scala │ │ ├── FrameType.scala │ │ ├── IDBCursorDirection.scala │ │ ├── IDBRequestReadyState.scala │ │ ├── IDBTransactionDurability.scala │ │ ├── IDBTransactionMode.scala │ │ ├── InputType.scala │ │ ├── KeyFormat.scala │ │ ├── KeyType.scala │ │ ├── KeyUsage.scala │ │ ├── LazyLoadingState.scala │ │ ├── LockMode.scala │ │ ├── MIMEType.scala │ │ ├── MediaDeviceKind.scala │ │ ├── MediaSourceReadyState.scala │ │ ├── MediaStreamTrackState.scala │ │ ├── PermissionName.scala │ │ ├── PermissionState.scala │ │ ├── PredefinedColorSpace.scala │ │ ├── PresentationStyle.scala │ │ ├── PushEncryptionKeyName.scala │ │ ├── PushPermissionState.scala │ │ ├── RTCBundlePolicy.scala │ │ ├── RTCDataChannelState.scala │ │ ├── RTCIceConnectionState.scala │ │ ├── RTCIceGatheringState.scala │ │ ├── RTCIceTransportPolicy.scala │ │ ├── RTCSdpType.scala │ │ ├── RTCSignalingState.scala │ │ ├── RTCStatsType.scala │ │ ├── ReadableStreamType.scala │ │ ├── ReferrerPolicy.scala │ │ ├── RequestCache.scala │ │ ├── RequestCredentials.scala │ │ ├── RequestDestination.scala │ │ ├── RequestDuplex.scala │ │ ├── RequestMode.scala │ │ ├── RequestRedirect.scala │ │ ├── RequestType.scala │ │ ├── ResizeObserverBoxOption.scala │ │ ├── ResponseType.scala │ │ ├── ScrollRestoration.scala │ │ ├── ServiceWorkerState.scala │ │ ├── ServiceWorkerUpdateViaCache.scala │ │ ├── ShadowRootMode.scala │ │ ├── TextTrackMode.scala │ │ ├── VisibilityState.scala │ │ ├── WorkerType.scala │ │ └── WriteableState.scala │ ├── scala-new-collections │ └── org │ │ └── scalajs │ │ └── dom │ │ └── NamedNodeMapMap.scala │ ├── scala-old-collections │ └── org │ │ └── scalajs │ │ └── dom │ │ └── NamedNodeMapMap.scala │ └── scala │ └── org │ └── scalajs │ └── dom │ ├── AbortController.scala │ ├── AbortSignal.scala │ ├── AbstractRange.scala │ ├── AbstractWorker.scala │ ├── AesCbcParams.scala │ ├── AesCfbParams.scala │ ├── AesCmacParams.scala │ ├── AesCtrParams.scala │ ├── AesDerivedKeyParams.scala │ ├── AesGcmParams.scala │ ├── AesKeyAlgorithm.scala │ ├── AesKeyGenParams.scala │ ├── Algorithm.scala │ ├── AnalyserNode.scala │ ├── AnimationEvent.scala │ ├── ApplicationCache.scala │ ├── Attr.scala │ ├── Audio.scala │ ├── AudioBuffer.scala │ ├── AudioBufferSourceNode.scala │ ├── AudioContext.scala │ ├── AudioDestinationNode.scala │ ├── AudioListener.scala │ ├── AudioNode.scala │ ├── AudioParam.scala │ ├── AudioTrack.scala │ ├── AudioTrackList.scala │ ├── BeforeUnloadEvent.scala │ ├── BiquadFilterNode.scala │ ├── Blob.scala │ ├── BlobPropertyBag.scala │ ├── Body.scala │ ├── BroadcastChannel.scala │ ├── CDATASection.scala │ ├── CSS.scala │ ├── CSSFontFaceRule.scala │ ├── CSSImportRule.scala │ ├── CSSKeyframeRule.scala │ ├── CSSKeyframesRule.scala │ ├── CSSMediaRule.scala │ ├── CSSNamespaceRule.scala │ ├── CSSPageRule.scala │ ├── CSSRule.scala │ ├── CSSRuleList.scala │ ├── CSSStyleDeclaration.scala │ ├── CSSStyleRule.scala │ ├── CSSStyleSheet.scala │ ├── Cache.scala │ ├── CacheQueryOptions.scala │ ├── CacheStorage.scala │ ├── CanvasGradient.scala │ ├── CanvasPattern.scala │ ├── CanvasProxy.scala │ ├── CanvasRenderingContext2D.scala │ ├── ChannelMergerNode.scala │ ├── ChannelSplitterNode.scala │ ├── CharacterData.scala │ ├── Chunk.scala │ ├── Client.scala │ ├── ClientQueryOptions.scala │ ├── Clients.scala │ ├── Clipboard.scala │ ├── ClipboardEvent.scala │ ├── ClipboardEventInit.scala │ ├── ClipboardItem.scala │ ├── ClipboardItemOptions.scala │ ├── CloseEvent.scala │ ├── Comment.scala │ ├── CompositionEvent.scala │ ├── CompositionEventInit.scala │ ├── CompressionStream.scala │ ├── ConcatParams.scala │ ├── Console.scala │ ├── ConvertToBlobOptions.scala │ ├── ConvolverNode.scala │ ├── Coordinates.scala │ ├── CreateImageBitmapOptions.scala │ ├── Crypto.scala │ ├── CryptoKey.scala │ ├── CryptoKeyPair.scala │ ├── CustomElementRegistry.scala │ ├── CustomEvent.scala │ ├── CustomEventInit.scala │ ├── DOMException.scala │ ├── DOMImplementation.scala │ ├── DOMList.scala │ ├── DOMParser.scala │ ├── DOMRect.scala │ ├── DOMRectInit.scala │ ├── DOMRectList.scala │ ├── DOMRectReadOnly.scala │ ├── DOMSettableTokenList.scala │ ├── DOMStringList.scala │ ├── DOMTokenList.scala │ ├── DataTransfer.scala │ ├── DataTransferItem.scala │ ├── DataTransferItemList.scala │ ├── DecompressionStream.scala │ ├── DedicatedWorkerGlobalScope.scala │ ├── DelayNode.scala │ ├── DeprecatedCSSAliases.scala │ ├── DeviceAcceleration.scala │ ├── DeviceMotionEvent.scala │ ├── DeviceMotionEventInit.scala │ ├── DeviceOrientationEvent.scala │ ├── DeviceOrientationEventInit.scala │ ├── DeviceRotationRate.scala │ ├── DhImportKeyParams.scala │ ├── DhKeyAlgorithm.scala │ ├── DhKeyDeriveParams.scala │ ├── DhKeyGenParams.scala │ ├── Document.scala │ ├── DocumentEvent.scala │ ├── DocumentFragment.scala │ ├── DocumentType.scala │ ├── DragEffect.scala │ ├── DragEvent.scala │ ├── DynamicsCompressorNode.scala │ ├── EcKeyAlgorithm.scala │ ├── EcKeyGenParams.scala │ ├── EcKeyImportParams.scala │ ├── EcdhKeyDeriveParams.scala │ ├── EcdsaParams.scala │ ├── Element.scala │ ├── ElementCreationOptions.scala │ ├── ElementDefinitionOptions.scala │ ├── ErrorEvent.scala │ ├── Event.scala │ ├── EventException.scala │ ├── EventInit.scala │ ├── EventListenerOptions.scala │ ├── EventSource.scala │ ├── EventSourceInit.scala │ ├── EventTarget.scala │ ├── ExtendableEvent.scala │ ├── ExtendableEventInit.scala │ ├── ExtendableMessageEvent.scala │ ├── ExtendableMessageEventInit.scala │ ├── External.scala │ ├── Fetch.scala │ ├── FetchEvent.scala │ ├── FetchEventInit.scala │ ├── File.scala │ ├── FileList.scala │ ├── FilePropertyBag.scala │ ├── FileReader.scala │ ├── FileReaderSync.scala │ ├── FocusEvent.scala │ ├── FocusEventInit.scala │ ├── FocusOptions.scala │ ├── FormData.scala │ ├── FrozenArray.scala │ ├── FullscreenOptions.scala │ ├── GainNode.scala │ ├── Gamepad.scala │ ├── GamepadButton.scala │ ├── GamepadEvent.scala │ ├── GamepadEventInit.scala │ ├── GamepadMappingType.scala │ ├── Geolocation.scala │ ├── GetNotificationOptions.scala │ ├── GetSVGDocument.scala │ ├── HTMLAnchorElement.scala │ ├── HTMLAreaElement.scala │ ├── HTMLAudioElement.scala │ ├── HTMLBRElement.scala │ ├── HTMLBaseElement.scala │ ├── HTMLBodyElement.scala │ ├── HTMLButtonElement.scala │ ├── HTMLCanvasElement.scala │ ├── HTMLCollection.scala │ ├── HTMLDListElement.scala │ ├── HTMLDataListElement.scala │ ├── HTMLDialogElement.scala │ ├── HTMLDivElement.scala │ ├── HTMLDocument.scala │ ├── HTMLElement.scala │ ├── HTMLEmbedElement.scala │ ├── HTMLFieldSetElement.scala │ ├── HTMLFormControlsCollection.scala │ ├── HTMLFormElement.scala │ ├── HTMLHRElement.scala │ ├── HTMLHeadElement.scala │ ├── HTMLHeadingElement.scala │ ├── HTMLHtmlElement.scala │ ├── HTMLIFrameElement.scala │ ├── HTMLImageElement.scala │ ├── HTMLInputElement.scala │ ├── HTMLLIElement.scala │ ├── HTMLLabelElement.scala │ ├── HTMLLegendElement.scala │ ├── HTMLLinkElement.scala │ ├── HTMLMapElement.scala │ ├── HTMLMediaElement.scala │ ├── HTMLMenuElement.scala │ ├── HTMLMetaElement.scala │ ├── HTMLModElement.scala │ ├── HTMLOListElement.scala │ ├── HTMLObjectElement.scala │ ├── HTMLOptGroupElement.scala │ ├── HTMLOptionElement.scala │ ├── HTMLOptionsCollection.scala │ ├── HTMLParagraphElement.scala │ ├── HTMLParamElement.scala │ ├── HTMLPreElement.scala │ ├── HTMLProgressElement.scala │ ├── HTMLQuoteElement.scala │ ├── HTMLScriptElement.scala │ ├── HTMLSelectElement.scala │ ├── HTMLSourceElement.scala │ ├── HTMLSpanElement.scala │ ├── HTMLStyleElement.scala │ ├── HTMLTableAlignment.scala │ ├── HTMLTableCaptionElement.scala │ ├── HTMLTableCellElement.scala │ ├── HTMLTableColElement.scala │ ├── HTMLTableElement.scala │ ├── HTMLTableRowElement.scala │ ├── HTMLTableSectionElement.scala │ ├── HTMLTemplateElement.scala │ ├── HTMLTextAreaElement.scala │ ├── HTMLTitleElement.scala │ ├── HTMLTrackElement.scala │ ├── HTMLUListElement.scala │ ├── HTMLUnknownElement.scala │ ├── HTMLVideoElement.scala │ ├── HashAlgorithm.scala │ ├── HashChangeEvent.scala │ ├── Headers.scala │ ├── History.scala │ ├── HkdfCtrParams.scala │ ├── HmacImportParams.scala │ ├── HmacKeyAlgorithm.scala │ ├── HmacKeyGenParams.scala │ ├── HttpMethod.scala │ ├── IDBCreateIndexOptions.scala │ ├── IDBCreateObjectStoreOptions.scala │ ├── IDBCursor.scala │ ├── IDBCursorReadOnly.scala │ ├── IDBCursorWithValue.scala │ ├── IDBDatabase.scala │ ├── IDBDatabaseInfo.scala │ ├── IDBEnvironment.scala │ ├── IDBEvent.scala │ ├── IDBEventTarget.scala │ ├── IDBFactory.scala │ ├── IDBIndex.scala │ ├── IDBKeyRange.scala │ ├── IDBObjectStore.scala │ ├── IDBOpenDBRequest.scala │ ├── IDBRequest.scala │ ├── IDBStoreLike.scala │ ├── IDBTransaction.scala │ ├── IDBTransactionOptions.scala │ ├── IDBVersionChangeEvent.scala │ ├── IDBVersionChangeEventInit.scala │ ├── Image.scala │ ├── ImageBitmap.scala │ ├── ImageCapture.scala │ ├── ImageData.scala │ ├── ImageDataSettings.scala │ ├── InputEvent.scala │ ├── InputEventInit.scala │ ├── IntersectionObserver.scala │ ├── IntersectionObserverEntry.scala │ ├── IntersectionObserverEntryInit.scala │ ├── IntersectionObserverInit.scala │ ├── JsonWebKey.scala │ ├── KeyAlgorithm.scala │ ├── KeyCode.scala │ ├── KeyLocation.scala │ ├── KeyValue.scala │ ├── KeyboardEvent.scala │ ├── KeyboardEventInit.scala │ ├── LinkStyle.scala │ ├── Location.scala │ ├── Lock.scala │ ├── LockInfo.scala │ ├── LockManager.scala │ ├── LockManagerSnapshot.scala │ ├── LockOptions.scala │ ├── MathMLElement.scala │ ├── MediaDeviceInfo.scala │ ├── MediaDevices.scala │ ├── MediaElementAudioSourceNode.scala │ ├── MediaError.scala │ ├── MediaList.scala │ ├── MediaQueryList.scala │ ├── MediaQueryListListener.scala │ ├── MediaSource.scala │ ├── MediaStream.scala │ ├── MediaStreamAudioDestinationNode.scala │ ├── MediaStreamAudioSourceNode.scala │ ├── MediaStreamConstraints.scala │ ├── MediaStreamEventInit.scala │ ├── MediaStreamTrack.scala │ ├── MediaStreamTrackEvent.scala │ ├── MediaStreamTrackEventInit.scala │ ├── MediaTrackConstraintSet.scala │ ├── MediaTrackConstraints.scala │ ├── MediaTrackSettings.scala │ ├── MediaTrackSupportedConstraints.scala │ ├── MessageChannel.scala │ ├── MessageEvent.scala │ ├── MessageEventInit.scala │ ├── MessagePort.scala │ ├── ModifierKeyEvent.scala │ ├── ModifierKeyEventInit.scala │ ├── MouseEvent.scala │ ├── MouseEventInit.scala │ ├── MutationObserver.scala │ ├── MutationObserverInit.scala │ ├── MutationRecord.scala │ ├── NDEFMessage.scala │ ├── NDEFReader.scala │ ├── NDEFReadingEvent.scala │ ├── NDEFReadingEventInit.scala │ ├── NDEFRecord.scala │ ├── NDEFRecordInit.scala │ ├── NDEFScanOptions.scala │ ├── NDEFWriteOptions.scala │ ├── NamedNodeMap.scala │ ├── Navigator.scala │ ├── NavigatorContentUtils.scala │ ├── NavigatorGeolocation.scala │ ├── NavigatorID.scala │ ├── NavigatorLanguage.scala │ ├── NavigatorLocks.scala │ ├── NavigatorOnLine.scala │ ├── NavigatorStorageUtils.scala │ ├── NavigatorVibration.scala │ ├── Node.scala │ ├── NodeFilter.scala │ ├── NodeIterator.scala │ ├── NodeList.scala │ ├── NodeSelector.scala │ ├── NonDocumentTypeChildNode.scala │ ├── Notification.scala │ ├── NotificationOptions.scala │ ├── OfflineAudioCompletionEvent.scala │ ├── OfflineAudioContext.scala │ ├── OffscreenCanvas.scala │ ├── OscillatorNode.scala │ ├── PageTransitionEvent.scala │ ├── PageVisibility.scala │ ├── PannerNode.scala │ ├── ParentNode.scala │ ├── Path2D.scala │ ├── Pbkdf2Params.scala │ ├── Performance.scala │ ├── PerformanceEntry.scala │ ├── PerformanceMark.scala │ ├── PerformanceMeasure.scala │ ├── PerformanceNavigation.scala │ ├── PerformanceResourceTiming.scala │ ├── PerformanceTiming.scala │ ├── PeriodicWave.scala │ ├── PermissionDescriptor.scala │ ├── PermissionStatus.scala │ ├── Permissions.scala │ ├── PointerEvent.scala │ ├── PointerEventInit.scala │ ├── PopStateEvent.scala │ ├── Position.scala │ ├── PositionError.scala │ ├── PositionOptions.scala │ ├── ProcessingInstruction.scala │ ├── ProgressEvent.scala │ ├── PushEvent.scala │ ├── PushManager.scala │ ├── PushMessageData.scala │ ├── PushPermissionDescriptor.scala │ ├── PushSubscription.scala │ ├── PushSubscriptionJSON.scala │ ├── PushSubscriptionOptions.scala │ ├── QueuingStrategy.scala │ ├── RTCConfiguration.scala │ ├── RTCDTMFSender.scala │ ├── RTCDataChannel.scala │ ├── RTCDataChannelEvent.scala │ ├── RTCDataChannelEventInit.scala │ ├── RTCDataChannelInit.scala │ ├── RTCIceCandidate.scala │ ├── RTCIceCandidateInit.scala │ ├── RTCIceServer.scala │ ├── RTCIdentityAssertion.scala │ ├── RTCOfferOptions.scala │ ├── RTCPeerConnection.scala │ ├── RTCPeerConnectionIceEvent.scala │ ├── RTCPeerConnectionIceEventInit.scala │ ├── RTCSessionDescription.scala │ ├── RTCSessionDescriptionInit.scala │ ├── RTCStats.scala │ ├── RTCStatsReport.scala │ ├── RadioNodeList.scala │ ├── Range.scala │ ├── ReadableStream.scala │ ├── ReadableStreamController.scala │ ├── ReadableStreamReader.scala │ ├── ReadableStreamUnderlyingSource.scala │ ├── Request.scala │ ├── RequestInit.scala │ ├── ResizeObserver.scala │ ├── ResizeObserverEntry.scala │ ├── ResizeObserverOptions.scala │ ├── ResizeObserverSize.scala │ ├── Response.scala │ ├── ResponseInit.scala │ ├── RsaHashedImportParams.scala │ ├── RsaHashedKeyAlgorithm.scala │ ├── RsaHashedKeyGenParams.scala │ ├── RsaKeyAlgorithm.scala │ ├── RsaKeyGenParams.scala │ ├── RsaOaepParams.scala │ ├── RsaOtherPrimesInfo.scala │ ├── RsaPssParams.scala │ ├── SVGAElement.scala │ ├── SVGAngle.scala │ ├── SVGAnimatedAngle.scala │ ├── SVGAnimatedBoolean.scala │ ├── SVGAnimatedEnumeration.scala │ ├── SVGAnimatedInteger.scala │ ├── SVGAnimatedLength.scala │ ├── SVGAnimatedLengthList.scala │ ├── SVGAnimatedNumber.scala │ ├── SVGAnimatedNumberList.scala │ ├── SVGAnimatedPathData.scala │ ├── SVGAnimatedPoints.scala │ ├── SVGAnimatedPreserveAspectRatio.scala │ ├── SVGAnimatedRect.scala │ ├── SVGAnimatedString.scala │ ├── SVGAnimatedTransformList.scala │ ├── SVGCircleElement.scala │ ├── SVGClipPathElement.scala │ ├── SVGComponentTransferFunctionElement.scala │ ├── SVGDefsElement.scala │ ├── SVGDescElement.scala │ ├── SVGElement.scala │ ├── SVGElementInstance.scala │ ├── SVGElementInstanceList.scala │ ├── SVGEllipseElement.scala │ ├── SVGException.scala │ ├── SVGExternalResourcesRequired.scala │ ├── SVGFEBlendElement.scala │ ├── SVGFEColorMatrixElement.scala │ ├── SVGFEComponentTransferElement.scala │ ├── SVGFECompositeElement.scala │ ├── SVGFEConvolveMatrixElement.scala │ ├── SVGFEDiffuseLightingElement.scala │ ├── SVGFEDisplacementMapElement.scala │ ├── SVGFEDistantLightElement.scala │ ├── SVGFEFloodElement.scala │ ├── SVGFEFuncAElement.scala │ ├── SVGFEFuncBElement.scala │ ├── SVGFEFuncGElement.scala │ ├── SVGFEFuncRElement.scala │ ├── SVGFEGaussianBlurElement.scala │ ├── SVGFEImageElement.scala │ ├── SVGFEMergeElement.scala │ ├── SVGFEMergeNodeElement.scala │ ├── SVGFEMorphologyElement.scala │ ├── SVGFEOffsetElement.scala │ ├── SVGFEPointLightElement.scala │ ├── SVGFESpecularLightingElement.scala │ ├── SVGFESpotLightElement.scala │ ├── SVGFETileElement.scala │ ├── SVGFETurbulenceElement.scala │ ├── SVGFilterElement.scala │ ├── SVGFilterPrimitiveStandardAttributes.scala │ ├── SVGFitToViewBox.scala │ ├── SVGGElement.scala │ ├── SVGGradientElement.scala │ ├── SVGImageElement.scala │ ├── SVGLangSpace.scala │ ├── SVGLength.scala │ ├── SVGLengthList.scala │ ├── SVGLineElement.scala │ ├── SVGLinearGradientElement.scala │ ├── SVGLocatable.scala │ ├── SVGMarkerElement.scala │ ├── SVGMaskElement.scala │ ├── SVGMatrix.scala │ ├── SVGMetadataElement.scala │ ├── SVGNumber.scala │ ├── SVGNumberList.scala │ ├── SVGPathElement.scala │ ├── SVGPathSeg.scala │ ├── SVGPathSegArcAbs.scala │ ├── SVGPathSegArcRel.scala │ ├── SVGPathSegClosePath.scala │ ├── SVGPathSegCurvetoCubicAbs.scala │ ├── SVGPathSegCurvetoCubicRel.scala │ ├── SVGPathSegCurvetoCubicSmoothAbs.scala │ ├── SVGPathSegCurvetoCubicSmoothRel.scala │ ├── SVGPathSegCurvetoQuadraticAbs.scala │ ├── SVGPathSegCurvetoQuadraticRel.scala │ ├── SVGPathSegCurvetoQuadraticSmoothAbs.scala │ ├── SVGPathSegCurvetoQuadraticSmoothRel.scala │ ├── SVGPathSegLinetoAbs.scala │ ├── SVGPathSegLinetoHorizontalAbs.scala │ ├── SVGPathSegLinetoHorizontalRel.scala │ ├── SVGPathSegLinetoRel.scala │ ├── SVGPathSegLinetoVerticalAbs.scala │ ├── SVGPathSegLinetoVerticalRel.scala │ ├── SVGPathSegList.scala │ ├── SVGPathSegMovetoAbs.scala │ ├── SVGPathSegMovetoRel.scala │ ├── SVGPatternElement.scala │ ├── SVGPoint.scala │ ├── SVGPointList.scala │ ├── SVGPolygonElement.scala │ ├── SVGPolylineElement.scala │ ├── SVGPreserveAspectRatio.scala │ ├── SVGRadialGradientElement.scala │ ├── SVGRect.scala │ ├── SVGRectElement.scala │ ├── SVGSVGElement.scala │ ├── SVGScriptElement.scala │ ├── SVGStopElement.scala │ ├── SVGStringList.scala │ ├── SVGStylable.scala │ ├── SVGStyleElement.scala │ ├── SVGSwitchElement.scala │ ├── SVGSymbolElement.scala │ ├── SVGTSpanElement.scala │ ├── SVGTests.scala │ ├── SVGTextContentElement.scala │ ├── SVGTextElement.scala │ ├── SVGTextPathElement.scala │ ├── SVGTextPositioningElement.scala │ ├── SVGTitleElement.scala │ ├── SVGTransform.scala │ ├── SVGTransformList.scala │ ├── SVGTransformable.scala │ ├── SVGURIReference.scala │ ├── SVGUnitTypes.scala │ ├── SVGUseElement.scala │ ├── SVGViewElement.scala │ ├── SVGZoomAndPan.scala │ ├── SVGZoomEventInit.scala │ ├── Screen.scala │ ├── Selection.scala │ ├── ServiceWorker.scala │ ├── ServiceWorkerContainer.scala │ ├── ServiceWorkerGlobalScope.scala │ ├── ServiceWorkerMessageEventInit.scala │ ├── ServiceWorkerRegistration.scala │ ├── ServiceWorkerRegistrationOptions.scala │ ├── ShadowRoot.scala │ ├── ShadowRootInit.scala │ ├── SharedWorker.scala │ ├── SharedWorkerGlobalScope.scala │ ├── SourceBuffer.scala │ ├── SourceBufferList.scala │ ├── StaticRange.scala │ ├── StaticRangeInit.scala │ ├── StereoPannerNode.scala │ ├── Storage.scala │ ├── StorageEstimate.scala │ ├── StorageEvent.scala │ ├── StorageEventInit.scala │ ├── StorageManager.scala │ ├── StyleMedia.scala │ ├── StyleSheet.scala │ ├── StyleSheetList.scala │ ├── SubtleCrypto.scala │ ├── Text.scala │ ├── TextEvent.scala │ ├── TextEventInit.scala │ ├── TextMetrics.scala │ ├── TextTrack.scala │ ├── TextTrackCue.scala │ ├── TextTrackCueList.scala │ ├── TextTrackList.scala │ ├── TimeRanges.scala │ ├── Touch.scala │ ├── TouchEvent.scala │ ├── TouchEventInit.scala │ ├── TouchList.scala │ ├── TrackEvent.scala │ ├── TransitionEvent.scala │ ├── TreeWalker.scala │ ├── TwoDContextAttributes.scala │ ├── UIEvent.scala │ ├── UIEventInit.scala │ ├── URL.scala │ ├── URLSearchParams.scala │ ├── ValidityState.scala │ ├── VideoTrack.scala │ ├── VideoTrackList.scala │ ├── WaveShaperNode.scala │ ├── WebGLActiveInfo.scala │ ├── WebGLBuffer.scala │ ├── WebGLContextAttributes.scala │ ├── WebGLFramebuffer.scala │ ├── WebGLProgram.scala │ ├── WebGLRenderbuffer.scala │ ├── WebGLRenderingContext.scala │ ├── WebGLShader.scala │ ├── WebGLShaderPrecisionFormat.scala │ ├── WebGLTexture.scala │ ├── WebGLUniformLocation.scala │ ├── WebSocket.scala │ ├── WheelEvent.scala │ ├── WheelEventInit.scala │ ├── Window.scala │ ├── WindowBase64.scala │ ├── WindowClient.scala │ ├── WindowConsole.scala │ ├── WindowLocalStorage.scala │ ├── WindowOrWorkerGlobalScope.scala │ ├── WindowSessionStorage.scala │ ├── WindowTimers.scala │ ├── Worker.scala │ ├── WorkerGlobalScope.scala │ ├── WorkerLocation.scala │ ├── WorkerNavigator.scala │ ├── WorkerOptions.scala │ ├── WriteableStream.scala │ ├── XMLDocument.scala │ ├── XMLHttpRequest.scala │ ├── XMLHttpRequestEventTarget.scala │ ├── XMLSerializer.scala │ ├── XPathNSResolver.scala │ ├── XPathResult.scala │ ├── crypto │ ├── GlobalCrypto.scala │ └── package.scala │ ├── experimental │ ├── Fullscreen.scala │ ├── PointerLock.scala │ ├── Vibration.scala │ ├── beacon │ │ └── package.scala │ ├── cachestorage │ │ └── package.scala │ ├── deviceorientation │ │ └── package.scala │ ├── domparser │ │ └── package.scala │ ├── gamepad │ │ └── package.scala │ ├── intl │ │ └── package.scala │ ├── mediastream │ │ └── package.scala │ ├── package.scala │ ├── permissions │ │ └── package.scala │ ├── push │ │ └── package.scala │ ├── serviceworkers │ │ └── package.scala │ ├── sharedworkers │ │ └── package.scala │ ├── storage │ │ └── package.scala │ ├── webgl │ │ ├── extensions │ │ │ └── package.scala │ │ └── package.scala │ └── webrtc │ │ └── package.scala │ ├── ext │ ├── Ajax.scala │ ├── AjaxException.scala │ └── package.scala │ ├── html.scala │ ├── idb.scala │ ├── intl │ ├── Collator.scala │ ├── CollatorOptions.scala │ ├── DateTimeFormat.scala │ ├── DateTimeFormatOptions.scala │ ├── NumberFormat.scala │ └── NumberFormatOptions.scala │ ├── package.scala │ ├── raw.scala │ ├── svg.scala │ ├── webgl │ ├── ANGLE_instanced_arrays.scala │ ├── EXT_blend_minmax.scala │ ├── EXT_color_buffer_half_float.scala │ ├── EXT_disjoint_timer_query.scala │ ├── EXT_frag_depth.scala │ ├── EXT_sRGB.scala │ ├── EXT_shader_texture_lod.scala │ ├── EXT_texture_filter_anisotropic.scala │ ├── OES_element_index_uint.scala │ ├── OES_standard_derivatives.scala │ ├── OES_texture_float.scala │ ├── OES_texture_float_linear.scala │ ├── OES_texture_half_float.scala │ ├── OES_texture_half_float_linear.scala │ ├── OES_vertex_array_object.scala │ ├── WEBGL_color_buffer_float.scala │ ├── WEBGL_compressed_texture_atc.scala │ ├── WEBGL_compressed_texture_etc1.scala │ ├── WEBGL_compressed_texture_pvrtc.scala │ ├── WEBGL_compressed_texture_s3tc.scala │ ├── WEBGL_debug_renderer_info.scala │ ├── WEBGL_debug_shaders.scala │ ├── WEBGL_depth_texture.scala │ ├── WEBGL_draw_buffers.scala │ ├── WEBGL_lose_context.scala │ ├── WebGLExtensionIdentifier.scala │ ├── extensions │ │ ├── ANGLEInstancedArrays.scala │ │ ├── EXTBlendMinmax.scala │ │ ├── EXTColorBufferHalfFloat.scala │ │ ├── EXTDisjointTimerQuery.scala │ │ ├── EXTFragDepth.scala │ │ ├── EXTShaderTextureLOD.scala │ │ ├── EXTTextureFilterAnisotropic.scala │ │ ├── EXTsRGB.scala │ │ ├── OESElementIndexUint.scala │ │ ├── OESStandardDerivatives.scala │ │ ├── OESTextureFloat.scala │ │ ├── OESTextureFloatLinear.scala │ │ ├── OESTextureHalfFloat.scala │ │ ├── OESTextureHalfFloatLinear.scala │ │ ├── OESVertexArrayObject.scala │ │ ├── WEBGLColorBufferFloat.scala │ │ ├── WEBGLCompressedTextureETC1.scala │ │ ├── WEBGLDrawBuffers.scala │ │ ├── WebGLCompressedTextureATC.scala │ │ ├── WebGLCompressedTexturePVRTC.scala │ │ ├── WebGLCompressedTextureS3TC.scala │ │ ├── WebGLDebugRendererInfo.scala │ │ ├── WebGLDebugShaders.scala │ │ ├── WebGLDepthTexture.scala │ │ ├── WebGLLoseContext.scala │ │ ├── WebGLTimerQueryEXT.scala │ │ └── WebGLVertexArrayObjectOES.scala │ └── package.scala │ └── webworkers.scala ├── example └── src │ └── main │ └── scala │ └── example │ └── Example.scala ├── prePR.sbt ├── project ├── Build.scala ├── Dependencies.scala ├── Lib.scala ├── build.properties └── plugins.sbt ├── readme └── Index.scalatex ├── scalafix.sbt ├── scalafix └── src │ └── main │ ├── resources │ └── META-INF │ │ └── services │ │ └── scalafix.v1.Rule │ └── scala │ └── org │ └── scalajs │ └── dom │ └── scalafix │ ├── DefaultFacadeArgs.scala │ ├── GenerateApiReport.scala │ ├── MutableState.scala │ └── Util.scala ├── tests-chrome └── src │ └── test │ └── scala │ └── org │ └── scalajs │ └── dom │ └── tests │ └── chrome │ └── ChromeTests.scala ├── tests-firefox └── src │ └── test │ └── scala │ └── org │ └── scalajs │ └── dom │ └── tests │ └── firefox │ └── FirefoxTests.scala ├── tests-node-jsdom └── src │ └── test │ └── scala │ └── org │ └── scalajs │ └── dom │ └── tests │ └── node │ └── jsdom │ └── NodeJsdomTests.scala ├── tests-shared └── src │ └── main │ └── scala │ └── org │ └── scalajs │ └── dom │ └── tests │ └── shared │ ├── AsyncTesting.scala │ ├── BrowserTests.scala │ ├── IdbTest.scala │ ├── SharedTests.scala │ └── WebCryptoApiTests.scala └── tests-webworker └── src └── main └── scala └── org └── scalajs └── dom └── tests └── webworker ├── Client.scala ├── Protocol.scala ├── Server.scala ├── ServerResponses.scala ├── WebWorkerCmd.scala └── WebWorkerTests.scala /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | 4 | - package-ecosystem: github-actions 5 | directory: "/" 6 | schedule: 7 | interval: daily 8 | open-pull-requests-limit: 10 9 | 10 | -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | Hi there! 2 | 3 | Before submitting a PR containing any Scala changes, please make sure you... 4 | 5 | * run `sbt prePR` 6 | * commit changes to `api-reports` 7 | 8 | Thanks for contributing! 9 | -------------------------------------------------------------------------------- /.github/workflows/ghpages.yml: -------------------------------------------------------------------------------- 1 | 2 | name: Build and Deploy GhPages docs 3 | 4 | on: 5 | push: 6 | branches: 7 | - main 8 | 9 | jobs: 10 | build-and-deploy: 11 | runs-on: ubuntu-latest 12 | steps: 13 | - uses: actions/checkout@v4 14 | 15 | - name: Setup Scala 16 | uses: japgolly/setup-everything-scala@v3.1 17 | 18 | - name: Build 19 | run: sbt readme/run 20 | 21 | - name: Deploy 22 | uses: JamesIves/github-pages-deploy-action@v4.5.0 23 | with: 24 | token: ${{ secrets.GITHUB_TOKEN }} 25 | branch: gh-pages 26 | folder: readme/target/scalatex 27 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Release 2 | on: 3 | push: 4 | branches: ["main"] 5 | tags: ["v*"] 6 | jobs: 7 | publish: 8 | runs-on: ubuntu-latest 9 | steps: 10 | 11 | - uses: actions/checkout@v4 12 | with: 13 | fetch-depth: 0 14 | 15 | - name: Setup Scala 16 | uses: japgolly/setup-everything-scala@v3.1 17 | 18 | - name: Release 19 | run: sbt ci-release 20 | env: 21 | PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} 22 | PGP_SECRET: ${{ secrets.PGP_SECRET }} 23 | SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} 24 | SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} 25 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .bloop 2 | .bsp 3 | .cache 4 | .classpath 5 | .idea 6 | .idea_modules 7 | .metals 8 | .project 9 | .sbtboot 10 | .settings/ 11 | .vscode 12 | metals.sbt 13 | target/ 14 | -------------------------------------------------------------------------------- /.jvmopts: -------------------------------------------------------------------------------- 1 | -Xms1G 2 | -Xmx4G 3 | -XX:+UseG1GC 4 | -------------------------------------------------------------------------------- /.scala-steward.conf: -------------------------------------------------------------------------------- 1 | updates.ignore = [ 2 | { groupId = "org.scala-lang" }, 3 | { groupId = "org.scala-js" } 4 | ] 5 | -------------------------------------------------------------------------------- /.scalafix.conf: -------------------------------------------------------------------------------- 1 | rules = [ 2 | DefaultFacadeArgs, 3 | ExplicitResultTypes, 4 | OrganizeImports, 5 | RemoveUnused, 6 | GenerateApiReport, 7 | ] 8 | 9 | RemoveUnused { 10 | imports = true 11 | privates = true 12 | locals = true 13 | } 14 | 15 | OrganizeImports { 16 | expandRelative = true 17 | groupedImports = Merge 18 | groupExplicitlyImportedImplicitsSeparately = false 19 | groups = ["*"] 20 | importSelectorsOrder = Ascii 21 | removeUnused = true 22 | } 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [Documentation](http://scala-js.github.io/scala-js-dom) / [Scaladoc](https://javadoc.io/doc/org.scala-js/scalajs-dom_sjs1_2.13) 2 | -------------------------------------------------------------------------------- /api-reports/validate: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -euo pipefail 3 | 4 | [ $# -ne 1 ] && echo "Usage: $0 " && exit 1 5 | 6 | cd "$(dirname "$0")/.." 7 | sbt -DCI=1 "++$1" dom/scalafix 8 | 9 | cd "$(dirname "$0")" 10 | series="${1%.*}" 11 | file="${series/./_}.txt" 12 | echo -n "Validating $file ... " 13 | 14 | help='Run `sbt prePR` and check in the differences to the '"$(basename "$0") directory" 15 | 16 | if [ ! -e "$file" ]; then 17 | echo "file not found. $help" 18 | exit 2 19 | elif [ -n "$(git status --porcelain -- "$file")" ]; then 20 | echo "out-of-date. $help" 21 | exit 3 22 | else 23 | echo "ok" 24 | fi 25 | -------------------------------------------------------------------------------- /build.sbt: -------------------------------------------------------------------------------- 1 | ThisBuild / homepage := Some(url("https://scala-js.org")) 2 | ThisBuild / licenses += ("MIT", url("https://opensource.org/licenses/mit-license.php")) 3 | ThisBuild / organization := "org.scala-js" 4 | ThisBuild / shellPrompt := ((s: State) => Project.extract(s).currentRef.project + "> ") 5 | ThisBuild / versionScheme := Some("early-semver") 6 | 7 | val root = Build.root 8 | val scalafixRules = Build.scalafixRules 9 | val dom = Build.dom 10 | val testsShared = Build.testsShared 11 | val testsWebworker = Build.testsWebworker 12 | val testsChrome = Build.testsChrome 13 | val testsFirefox = Build.testsFirefox 14 | val testsNodeJsdom = Build.testsNodeJsdom 15 | val example = Build.example 16 | val readme = Build.readme 17 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/AppendMode.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | @js.native 6 | sealed trait AppendMode extends js.Any 7 | 8 | object AppendMode { 9 | val segments: AppendMode = "segments".asInstanceOf[AppendMode] 10 | val sequence: AppendMode = "sequence".asInstanceOf[AppendMode] 11 | } 12 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/CanvasFillRule.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | @js.native 6 | sealed trait CanvasFillRule extends js.Any 7 | 8 | object CanvasFillRule { 9 | 10 | val nonzero: CanvasFillRule = "nonzero".asInstanceOf[CanvasFillRule] 11 | 12 | val evenodd: CanvasFillRule = "evenodd".asInstanceOf[CanvasFillRule] 13 | 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/ClientType.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | @js.native 6 | sealed trait ClientType extends js.Any 7 | 8 | object ClientType { 9 | val window: ClientType = "window".asInstanceOf[ClientType] 10 | 11 | val worker: ClientType = "worker".asInstanceOf[ClientType] 12 | 13 | val sharedworker: ClientType = "sharedworker".asInstanceOf[ClientType] 14 | 15 | val all: ClientType = "all".asInstanceOf[ClientType] 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/CompressionFormat.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | @js.native 6 | sealed trait CompressionFormat extends js.Any 7 | 8 | object CompressionFormat { 9 | val deflate: CompressionFormat = "deflate".asInstanceOf[CompressionFormat] 10 | 11 | val `deflate-raw`: CompressionFormat = "deflate-raw".asInstanceOf[CompressionFormat] 12 | 13 | val gzip: CompressionFormat = "gzip".asInstanceOf[CompressionFormat] 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/DataTransferDropEffectKind.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | @js.native 6 | sealed trait DataTransferDropEffectKind extends js.Any 7 | 8 | object DataTransferDropEffectKind { 9 | val none: DataTransferDropEffectKind = "none".asInstanceOf[DataTransferDropEffectKind] 10 | val copy: DataTransferDropEffectKind = "copy".asInstanceOf[DataTransferDropEffectKind] 11 | val link: DataTransferDropEffectKind = "link".asInstanceOf[DataTransferDropEffectKind] 12 | val move: DataTransferDropEffectKind = "move".asInstanceOf[DataTransferDropEffectKind] 13 | } 14 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/DocumentReadyState.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | @js.native 6 | sealed trait DocumentReadyState extends js.Any 7 | 8 | object DocumentReadyState { 9 | val complete: DocumentReadyState = "complete".asInstanceOf[DocumentReadyState] 10 | val interactive: DocumentReadyState = "interactive".asInstanceOf[DocumentReadyState] 11 | val loading: DocumentReadyState = "loading".asInstanceOf[DocumentReadyState] 12 | } 13 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/DragDataItemKind.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | @js.native 6 | sealed trait DragDataItemKind extends js.Any 7 | 8 | object DragDataItemKind { 9 | val string: DragDataItemKind = "string".asInstanceOf[DragDataItemKind] 10 | val file: DragDataItemKind = "file".asInstanceOf[DragDataItemKind] 11 | } 12 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/EndOfStreamError.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | @js.native 6 | sealed trait EndOfStreamError extends js.Any 7 | 8 | object EndOfStreamError { 9 | val decode: EndOfStreamError = "decode".asInstanceOf[EndOfStreamError] 10 | val network: EndOfStreamError = "network".asInstanceOf[EndOfStreamError] 11 | } 12 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/EndingType.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** 6 | * Endings enum for [[https://w3c.github.io/FileAPI/#enumdef-endingtype]] 7 | * If set to "native", line endings will be converted to native in any USVString elements in blobParts 8 | */ 9 | @js.native 10 | sealed trait EndingType extends js.Any 11 | 12 | object EndingType { 13 | val transparent: EndingType = "transparent".asInstanceOf[EndingType] 14 | val native: EndingType = "native".asInstanceOf[EndingType] 15 | 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/IDBRequestReadyState.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | @js.native 6 | sealed trait IDBRequestReadyState extends js.Any 7 | 8 | object IDBRequestReadyState { 9 | val done: IDBRequestReadyState = "done".asInstanceOf[IDBRequestReadyState] 10 | val pending: IDBRequestReadyState = "pending".asInstanceOf[IDBRequestReadyState] 11 | } 12 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/KeyType.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** see [[http://www.w3.org/TR/WebCryptoAPI/#cryptokey-interface ¶13 CryptoKey interface]] in W3C doc */ 6 | @js.native 7 | sealed trait KeyType extends js.Any 8 | 9 | object KeyType { 10 | val public: KeyType = "public".asInstanceOf[KeyType] 11 | val `private`: KeyType = "private".asInstanceOf[KeyType] 12 | val secret: KeyType = "secret".asInstanceOf[KeyType] 13 | } 14 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/LazyLoadingState.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** 6 | * Possible values for an HTMLImageElement loading attribute 7 | * [[https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-loading]] 8 | */ 9 | @js.native 10 | sealed trait LazyLoadingState extends js.Any 11 | 12 | object LazyLoadingState { 13 | val eager: LazyLoadingState = "eager".asInstanceOf[LazyLoadingState] 14 | val `lazy`: LazyLoadingState = "lazy".asInstanceOf[LazyLoadingState] 15 | } 16 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/LockMode.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | @js.native 6 | sealed trait LockMode extends js.Any 7 | 8 | object LockMode { 9 | val exclusive: LockMode = "exclusive".asInstanceOf[LockMode] 10 | 11 | val shared: LockMode = "shared".asInstanceOf[LockMode] 12 | } 13 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/MIMEType.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | @js.native 6 | sealed trait MIMEType extends js.Any 7 | 8 | object MIMEType { 9 | val `text/html` = "text/html".asInstanceOf[MIMEType] 10 | val `text/xml` = "text/xml".asInstanceOf[MIMEType] 11 | val `application/xml` = "application/xml".asInstanceOf[MIMEType] 12 | 13 | val `application/xhtml+xml` = 14 | "application/xhtml+xml".asInstanceOf[MIMEType] 15 | val `image/svg+xml` = "image/svg+xml".asInstanceOf[MIMEType] 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/MediaSourceReadyState.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | @js.native 6 | sealed trait MediaSourceReadyState extends js.Any 7 | 8 | object MediaSourceReadyState { 9 | val closed: MediaSourceReadyState = "closed".asInstanceOf[MediaSourceReadyState] 10 | val ended: MediaSourceReadyState = "ended".asInstanceOf[MediaSourceReadyState] 11 | val open: MediaSourceReadyState = "open".asInstanceOf[MediaSourceReadyState] 12 | } 13 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/PermissionName.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | @js.native 6 | sealed trait PermissionName extends js.Any 7 | 8 | object PermissionName { 9 | val geolocation: PermissionName = "geolocation".asInstanceOf[PermissionName] 10 | val midi: PermissionName = "midi".asInstanceOf[PermissionName] 11 | val notifications: PermissionName = "notifications".asInstanceOf[PermissionName] 12 | val push: PermissionName = "push".asInstanceOf[PermissionName] 13 | 14 | val `persistent-storage` = 15 | "persistent-storage".asInstanceOf[PermissionName] 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/PermissionState.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | @js.native 6 | sealed trait PermissionState extends js.Any 7 | 8 | object PermissionState { 9 | val granted: PermissionState = "granted".asInstanceOf[PermissionState] 10 | val denied: PermissionState = "denied".asInstanceOf[PermissionState] 11 | val prompt: PermissionState = "prompt".asInstanceOf[PermissionState] 12 | } 13 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/PredefinedColorSpace.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | @js.native 6 | sealed trait PredefinedColorSpace extends js.Any 7 | 8 | object PredefinedColorSpace { 9 | val srgb: PredefinedColorSpace = "srgb".asInstanceOf[PredefinedColorSpace] 10 | 11 | val `display-p3`: PredefinedColorSpace = "display-p3".asInstanceOf[PredefinedColorSpace] 12 | } 13 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/RTCStatsType.scala: -------------------------------------------------------------------------------- 1 | /** http://www.w3.org/TR/2015/WD-webrtc-20150210/ */ 2 | package org.scalajs.dom 3 | 4 | import scala.scalajs.js 5 | 6 | /** see [[https://www.w3.org/TR/2015/WD-webrtc-20150210/#idl-def-RTCStatsType]] in W3C spec */ 7 | sealed trait RTCStatsType extends js.Any 8 | 9 | object RTCStatsType { 10 | 11 | /** Inbound RTP. */ 12 | val `inbound-rtp` = "inbound-rtp".asInstanceOf[RTCStatsType] 13 | 14 | /** Outbound RTP. */ 15 | val `outbound-rtp` = "outbound-rtp".asInstanceOf[RTCStatsType] 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/ReadableStreamType.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** [[https://streams.spec.whatwg.org/#enumdef-readablestreamtype ReadableStreamType enum]] */ 6 | @js.native 7 | sealed trait ReadableStreamType extends js.Any 8 | 9 | object ReadableStreamType { 10 | val bytes: ReadableStreamType = "bytes".asInstanceOf[ReadableStreamType] 11 | } -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/ReferrerPolicy.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | @js.native 6 | sealed trait ReferrerPolicy extends js.Any 7 | 8 | object ReferrerPolicy { 9 | val empty: ReferrerPolicy = "".asInstanceOf[ReferrerPolicy] 10 | val `no-referrer` = "no-referrer".asInstanceOf[ReferrerPolicy] 11 | 12 | val `no-referrer-when-downgrade` = 13 | "no-referrer-when-downgrade".asInstanceOf[ReferrerPolicy] 14 | val `origin-only` = "origin-only".asInstanceOf[ReferrerPolicy] 15 | 16 | val `origin-when-cross-origin` = 17 | "origin-when-cross-origin".asInstanceOf[ReferrerPolicy] 18 | val `unsafe-url` = "unsafe-url".asInstanceOf[ReferrerPolicy] 19 | } 20 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/RequestCache.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** Fetch APIs [[https://fetch.spec.whatwg.org/#requestcache RequestCache enum]] */ 6 | @js.native 7 | sealed trait RequestCache extends js.Any 8 | 9 | object RequestCache { 10 | val default: RequestCache = "default".asInstanceOf[RequestCache] 11 | val `no-store` = "no-store".asInstanceOf[RequestCache] 12 | val reload: RequestCache = "reload".asInstanceOf[RequestCache] 13 | val `no-cache` = "no-cache".asInstanceOf[RequestCache] 14 | val `force-cache` = "force-cache".asInstanceOf[RequestCache] 15 | val `only-if-cached` = "only-if-cached".asInstanceOf[RequestCache] 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/RequestCredentials.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** Fetch APIs [[https://fetch.spec.whatwg.org/#requestcredentials RequestCredentials enum]] */ 6 | @js.native 7 | sealed trait RequestCredentials extends js.Any 8 | 9 | object RequestCredentials { 10 | val omit: RequestCredentials = "omit".asInstanceOf[RequestCredentials] 11 | val `same-origin` = "same-origin".asInstanceOf[RequestCredentials] 12 | val include: RequestCredentials = "include".asInstanceOf[RequestCredentials] 13 | } 14 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/RequestDuplex.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** 6 | * Fetch APIs [[https://fetch.spec.whatwg.org/#dom-requestinit-duplex RequestDuplex enum]] 7 | */ 8 | @js.native 9 | sealed trait RequestDuplex extends js.Any 10 | 11 | object RequestDuplex { 12 | val half: RequestDuplex = "half".asInstanceOf[RequestDuplex] 13 | } 14 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/RequestMode.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** Fetch API's [[https://fetch.spec.whatwg.org/#requestmode RequestMode enum]] */ 6 | @js.native 7 | sealed trait RequestMode extends js.Any 8 | 9 | object RequestMode { 10 | val navigate: RequestMode = "navigate".asInstanceOf[RequestMode] 11 | val `same-origin` = "same-origin".asInstanceOf[RequestMode] 12 | val `no-cors` = "no-cors".asInstanceOf[RequestMode] 13 | val cors: RequestMode = "cors".asInstanceOf[RequestMode] 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/RequestRedirect.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** Fetch API's [[https://fetch.spec.whatwg.org/#requestredirect RequestRedirect enum]] */ 6 | @js.native 7 | sealed trait RequestRedirect extends js.Any 8 | 9 | object RequestRedirect { 10 | val follow: RequestRedirect = "follow".asInstanceOf[RequestRedirect] 11 | val error: RequestRedirect = "error".asInstanceOf[RequestRedirect] 12 | val manual: RequestRedirect = "manual".asInstanceOf[RequestRedirect] 13 | } 14 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/ResizeObserverBoxOption.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** ResizeObserverOptions [[https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/observe]] */ 6 | @js.native 7 | sealed trait ResizeObserverBoxOption extends js.Any 8 | 9 | object ResizeObserverBoxOption { 10 | val `content-box`: ResizeObserverBoxOption = "content-box".asInstanceOf[ResizeObserverBoxOption] 11 | val `border-box`: ResizeObserverBoxOption = "border-box".asInstanceOf[ResizeObserverBoxOption] 12 | val `device-pixel-content-box`: ResizeObserverBoxOption = "device-pixel-content-box".asInstanceOf[ResizeObserverBoxOption] 13 | } 14 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/ResponseType.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | @js.native 6 | sealed trait ResponseType extends js.Any 7 | 8 | /** see [[https://fetch.spec.whatwg.org/#responsetype]] of whatwg Fetch spec */ 9 | object ResponseType { 10 | val basic: ResponseType = "basic".asInstanceOf[ResponseType] 11 | val cors: ResponseType = "cors".asInstanceOf[ResponseType] 12 | val default: ResponseType = "default".asInstanceOf[ResponseType] 13 | val error: ResponseType = "error".asInstanceOf[ResponseType] 14 | val opaque: ResponseType = "opaque".asInstanceOf[ResponseType] 15 | val opaqueredirect: ResponseType = "opaqueredirect".asInstanceOf[ResponseType] 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/ScrollRestoration.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | @js.native 6 | sealed trait ScrollRestoration extends js.Any 7 | 8 | /** 9 | * see [[https://html.spec.whatwg.org/multipage/history.html#the-history-interface]] 10 | * which contains the spec for ScrollRestoration 11 | */ 12 | object ScrollRestoration { 13 | /** The location on the page to which the user has scrolled will be restored. */ 14 | val auto: ScrollRestoration = "auto".asInstanceOf[ScrollRestoration] 15 | /** The location on the page is not restored. The user will have to scroll to the location manually. */ 16 | val manual: ScrollRestoration = "manual".asInstanceOf[ScrollRestoration] 17 | } 18 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/ShadowRootMode.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | @js.native 6 | sealed trait ShadowRootMode extends js.Any 7 | 8 | object ShadowRootMode { 9 | val open: ShadowRootMode = "open".asInstanceOf[ShadowRootMode] 10 | val closed: ShadowRootMode = "closed".asInstanceOf[ShadowRootMode] 11 | } 12 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/TextTrackMode.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | @js.native 6 | sealed trait TextTrackMode extends js.Any 7 | 8 | object TextTrackMode { 9 | val disabled: TextTrackMode = "disabled".asInstanceOf[TextTrackMode] 10 | val hidden: TextTrackMode = "hidden".asInstanceOf[TextTrackMode] 11 | val showing: TextTrackMode = "showing".asInstanceOf[TextTrackMode] 12 | } 13 | -------------------------------------------------------------------------------- /dom/src/main/scala-2/org/scalajs/dom/WorkerType.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | @js.native 6 | sealed trait WorkerType extends js.Any 7 | 8 | object WorkerType { 9 | val classic: WorkerType = "classic".asInstanceOf[WorkerType] 10 | val module: WorkerType = "module".asInstanceOf[WorkerType] 11 | } 12 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/AppendMode.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | opaque type AppendMode <: String = String 4 | 5 | object AppendMode { 6 | val segments: AppendMode = "segments" 7 | val sequence: AppendMode = "sequence" 8 | } 9 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/CanvasFillRule.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | opaque type CanvasFillRule <: String = String 6 | 7 | object CanvasFillRule { 8 | 9 | val nonzero: CanvasFillRule = "nonzero" 10 | 11 | val evenodd: CanvasFillRule = "evenodd" 12 | 13 | } 14 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/ClientType.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | opaque type ClientType <: String = String 6 | 7 | object ClientType { 8 | val window: ClientType = "window" 9 | 10 | val worker: ClientType = "worker" 11 | 12 | val sharedworker: ClientType = "sharedworker" 13 | 14 | val all: ClientType = "all" 15 | } 16 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/CompressionFormat.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | opaque type CompressionFormat <: String = String 6 | 7 | object CompressionFormat { 8 | val deflate: CompressionFormat = "deflate" 9 | 10 | val `deflate-raw`: CompressionFormat = "deflate-raw" 11 | 12 | val gzip: CompressionFormat = "gzip" 13 | } 14 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/DataTransferDropEffectKind.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | opaque type DataTransferDropEffectKind <: String = String 6 | 7 | object DataTransferDropEffectKind { 8 | val none: DataTransferDropEffectKind = "none" 9 | val copy: DataTransferDropEffectKind = "copy" 10 | val link: DataTransferDropEffectKind = "link" 11 | val move: DataTransferDropEffectKind = "move" 12 | } 13 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/DataTransferEffectAllowedKind.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | opaque type DataTransferEffectAllowedKind <: String = String 6 | 7 | object DataTransferEffectAllowedKind { 8 | val none: DataTransferEffectAllowedKind = "none" 9 | val copy: DataTransferEffectAllowedKind = "copy" 10 | val copyLink: DataTransferEffectAllowedKind = "copyLink" 11 | val copyMove: DataTransferEffectAllowedKind = "copyMove" 12 | val link: DataTransferEffectAllowedKind = "link" 13 | val linkMove: DataTransferEffectAllowedKind = "linkMove" 14 | val move: DataTransferEffectAllowedKind = "move" 15 | val all: DataTransferEffectAllowedKind = "all" 16 | val uninitialized: DataTransferEffectAllowedKind = "uninitialized" 17 | } 18 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/DocumentReadyState.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | opaque type DocumentReadyState <: String = String 4 | 5 | object DocumentReadyState { 6 | val complete: DocumentReadyState = "complete" 7 | val interactive: DocumentReadyState = "interactive" 8 | val loading: DocumentReadyState = "loading" 9 | } 10 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/DragDataItemKind.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | opaque type DragDataItemKind <: String = String 6 | 7 | object DragDataItemKind { 8 | val string: DragDataItemKind = "string" 9 | val file: DragDataItemKind = "file" 10 | } 11 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/EndOfStreamError.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | opaque type EndOfStreamError <: String = String 4 | 5 | object EndOfStreamError { 6 | val decode: EndOfStreamError = "decode" 7 | val network: EndOfStreamError = "network" 8 | } 9 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/EndingType.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** 6 | * Endings enum for [[https://w3c.github.io/FileAPI/#enumdef-endingtype]] 7 | * If set to "native", line endings will be converted to native in any USVString elements in blobParts 8 | */ 9 | opaque type EndingType <: String = String 10 | 11 | object EndingType { 12 | val transparent: EndingType = "transparent" 13 | val native: EndingType = "native" 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/IDBRequestReadyState.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | opaque type IDBRequestReadyState <: String = String 4 | 5 | object IDBRequestReadyState { 6 | val done: IDBRequestReadyState = "done" 7 | val pending: IDBRequestReadyState = "pending" 8 | } 9 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/IDBTransactionDurability.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | opaque type IDBTransactionDurability <: String = String 12 | 13 | object IDBTransactionDurability { 14 | val default: IDBTransactionDurability = "default" 15 | val strict: IDBTransactionDurability = "strict" 16 | val relaxed: IDBTransactionDurability = "relaxed" 17 | } 18 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/KeyFormat.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** see [[http://www.w3.org/TR/WebCryptoAPI/#dfn-KeyFormat ¶14.2 Data Types]] in W3C spec */ 6 | opaque type KeyFormat <: String = String 7 | 8 | object KeyFormat { 9 | 10 | /** An unformatted sequence of bytes. Intended for secret keys. */ 11 | val raw: KeyFormat = "raw" 12 | 13 | /** The DER encoding of the PrivateKeyInfo structure from RFC 5208. */ 14 | val pkcs8: KeyFormat = "pkcs8" 15 | 16 | /** The DER encoding of the SubjectPublicKeyInfo structure from RFC 5280. */ 17 | val spki: KeyFormat = "spki" 18 | 19 | /** The key is a JsonWebKey dictionary encoded as a JavaScript object */ 20 | val jwk: KeyFormat = "jwk" 21 | } 22 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/KeyType.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** see [[http://www.w3.org/TR/WebCryptoAPI/#cryptokey-interface ¶13 CryptoKey interface]] in W3C doc */ 6 | opaque type KeyType <: String = String 7 | 8 | object KeyType { 9 | val public: KeyType = "public" 10 | val `private`: KeyType = "private" 11 | val secret: KeyType = "secret" 12 | } 13 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/KeyUsage.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** See [[http://www.w3.org/TR/WebCryptoAPI/#cryptokey-interface ¶ 13. CryptoKey Interface]] of w3c spec */ 6 | opaque type KeyUsage <: String = String 7 | 8 | object KeyUsage { 9 | val encrypt: KeyUsage = "encrypt" 10 | val decrypt: KeyUsage = "decrypt" 11 | val sign: KeyUsage = "sign" 12 | val verify: KeyUsage = "verify" 13 | val deriveKey: KeyUsage = "deriveKey" 14 | val deriveBits: KeyUsage = "deriveBits" 15 | val wrapKey: KeyUsage = "wrapKey" 16 | val unwrapKey: KeyUsage = "unwrapKey" 17 | } 18 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/LazyLoadingState.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** 6 | * Possible values for an HTMLImageElement loading attribute 7 | * [[https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-loading]] 8 | */ 9 | opaque type LazyLoadingState <: String = String 10 | 11 | object LazyLoadingState { 12 | val eager: LazyLoadingState = "eager" 13 | val `lazy`: LazyLoadingState = "lazy" 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/LockMode.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | opaque type LockMode <: String = String 6 | 7 | object LockMode { 8 | val exclusive: LockMode = "exclusive" 9 | 10 | val shared: LockMode = "shared" 11 | } 12 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/MIMEType.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | opaque type MIMEType <: String = String 6 | 7 | object MIMEType { 8 | val `text/html`: MIMEType = "text/html" 9 | val `text/xml`: MIMEType = "text/xml" 10 | val `application/xml`: MIMEType = "application/xml" 11 | 12 | val `application/xhtml+xml`: MIMEType = 13 | "application/xhtml+xml" 14 | val `image/svg+xml`: MIMEType = "image/svg+xml" 15 | } 16 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/MediaSourceReadyState.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | opaque type MediaSourceReadyState <: String = String 4 | 5 | object MediaSourceReadyState { 6 | val closed: MediaSourceReadyState = "closed" 7 | val ended: MediaSourceReadyState = "ended" 8 | val open: MediaSourceReadyState = "open" 9 | } 10 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/PermissionName.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | opaque type PermissionName <: String = String 6 | 7 | object PermissionName { 8 | val geolocation: PermissionName = "geolocation" 9 | val midi: PermissionName = "midi" 10 | val notifications: PermissionName = "notifications" 11 | val push: PermissionName = "push" 12 | 13 | val `persistent-storage`: PermissionName = 14 | "persistent-storage" 15 | } 16 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/PermissionState.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | opaque type PermissionState <: String = String 6 | 7 | object PermissionState { 8 | val granted: PermissionState = "granted" 9 | val denied: PermissionState = "denied" 10 | val prompt: PermissionState = "prompt" 11 | } 12 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/PredefinedColorSpace.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | opaque type PredefinedColorSpace <: String = String 6 | 7 | object PredefinedColorSpace { 8 | val srgb: PredefinedColorSpace = "srgb" 9 | 10 | val `display-p3`: PredefinedColorSpace = "display-p3" 11 | } -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/PresentationStyle.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** 6 | * Helps distinguish whether apps "pasting" a clipboard item should insert the contents of an appropriate representation inline at the point of paste or if it should be treated as an attachment. 7 | * See [[https://w3c.github.io/clipboard-apis/#enumdef-presentationstyle PresentationStyle enum]] 8 | */ 9 | opaque type PresentationStyle <: String = String 10 | 11 | object PresentationStyle { 12 | val unspecified: PresentationStyle = "unspecified" 13 | val inline: PresentationStyle = "inline" 14 | val attachment: PresentationStyle = "attachment" 15 | } -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/RTCStatsType.scala: -------------------------------------------------------------------------------- 1 | /** http://www.w3.org/TR/2015/WD-webrtc-20150210/ */ 2 | package org.scalajs.dom 3 | 4 | import scala.scalajs.js 5 | 6 | /** see [[https://www.w3.org/TR/2015/WD-webrtc-20150210/#idl-def-RTCStatsType]] in W3C spec */ 7 | opaque type RTCStatsType <: String = String 8 | 9 | object RTCStatsType { 10 | 11 | /** Inbound RTP. */ 12 | val `inbound-rtp`: RTCStatsType = "inbound-rtp" 13 | 14 | /** Outbound RTP. */ 15 | val `outbound-rtp`: RTCStatsType = "outbound-rtp" 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/ReadableStreamType.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | opaque type ReadableStreamType <: String = String 4 | 5 | object ReadableStreamType { 6 | val bytes: ReadableStreamType = "bytes" 7 | } 8 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/ReferrerPolicy.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | opaque type ReferrerPolicy <: String = String 6 | 7 | object ReferrerPolicy { 8 | val empty: ReferrerPolicy = "" 9 | val `no-referrer`: ReferrerPolicy = "no-referrer" 10 | 11 | val `no-referrer-when-downgrade`: ReferrerPolicy = 12 | "no-referrer-when-downgrade" 13 | val `origin-only`: ReferrerPolicy = "origin-only" 14 | 15 | val `origin-when-cross-origin`: ReferrerPolicy = 16 | "origin-when-cross-origin" 17 | val `unsafe-url`: ReferrerPolicy = "unsafe-url" 18 | } 19 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/RequestCache.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** Fetch APIs [[https://fetch.spec.whatwg.org/#requestcache RequestCache enum]] */ 6 | opaque type RequestCache <: String = String 7 | 8 | object RequestCache { 9 | val default: RequestCache = "default" 10 | val `no-store`: RequestCache = "no-store" 11 | val reload: RequestCache = "reload" 12 | val `no-cache`: RequestCache = "no-cache" 13 | val `force-cache`: RequestCache = "force-cache" 14 | val `only-if-cached`: RequestCache = "only-if-cached" 15 | } 16 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/RequestCredentials.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** Fetch APIs [[https://fetch.spec.whatwg.org/#requestcredentials RequestCredentials enum]] */ 6 | opaque type RequestCredentials <: String = String 7 | 8 | object RequestCredentials { 9 | val omit: RequestCredentials = "omit" 10 | val `same-origin`: RequestCredentials = "same-origin" 11 | val include: RequestCredentials = "include" 12 | } 13 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/RequestDestination.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** Fetch APIs [[https://fetch.spec.whatwg.org/#requestdestination RequestDestination enum]] */ 6 | opaque type RequestDestination <: String = String 7 | 8 | object RequestDestination { 9 | val empty: RequestDestination = "" 10 | val document: RequestDestination = "document" 11 | val sharedworker: RequestDestination = "sharedworker" 12 | val subresource: RequestDestination = "subresource" 13 | val unknown: RequestDestination = "unknown" 14 | val worker: RequestDestination = "worker" 15 | } 16 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/RequestDuplex.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** 6 | * Fetch APIs [[https://fetch.spec.whatwg.org/#dom-requestinit-duplex RequestDuplex enum]] 7 | */ 8 | opaque type RequestDuplex <: String = String 9 | 10 | object RequestDuplex { 11 | val half: RequestDuplex = "half" 12 | } 13 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/RequestMode.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** Fetch API's [[https://fetch.spec.whatwg.org/#requestmode RequestMode enum]] */ 6 | opaque type RequestMode <: String = String 7 | 8 | object RequestMode { 9 | val navigate: RequestMode = "navigate" 10 | val `same-origin`: RequestMode = "same-origin" 11 | val `no-cors`: RequestMode = "no-cors" 12 | val cors: RequestMode = "cors" 13 | } 14 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/RequestRedirect.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** Fetch API's [[https://fetch.spec.whatwg.org/#requestredirect RequestRedirect enum]] */ 6 | opaque type RequestRedirect <: String = String 7 | 8 | object RequestRedirect { 9 | val follow: RequestRedirect = "follow" 10 | val error: RequestRedirect = "error" 11 | val manual: RequestRedirect = "manual" 12 | } 13 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/RequestType.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** Fetch APIs [[https://fetch.spec.whatwg.org/#requesttype RequestType enum]] */ 6 | opaque type RequestType <: String = String 7 | 8 | object RequestType { 9 | val empty: RequestType = "" 10 | val audio: RequestType = "audio" 11 | val font: RequestType = "font" 12 | val image: RequestType = "image" 13 | val script: RequestType = "script" 14 | val style: RequestType = "style" 15 | val track: RequestType = "track" 16 | val video: RequestType = "video" 17 | } 18 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/ResizeObserverBoxOption.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** ResizeObserverOptions [[https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/observe]] */ 6 | opaque type ResizeObserverBoxOption <: String = String 7 | 8 | object ResizeObserverBoxOption { 9 | val `content-box`: ResizeObserverBoxOption = "content-box" 10 | val `border-box`: ResizeObserverBoxOption = "border-box" 11 | val `device-pixel-content-box`: ResizeObserverBoxOption = "device-pixel-content-box" 12 | } 13 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/ResponseType.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | opaque type ResponseType <: String = String 6 | 7 | /** see [[https://fetch.spec.whatwg.org/#responsetype]] of whatwg Fetch spec */ 8 | object ResponseType { 9 | val basic: ResponseType = "basic" 10 | val cors: ResponseType = "cors" 11 | val default: ResponseType = "default" 12 | val error: ResponseType = "error" 13 | val opaque: ResponseType = "opaque" 14 | val opaqueredirect: ResponseType = "opaqueredirect" 15 | } 16 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/ScrollRestoration.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | opaque type ScrollRestoration <: String = String 6 | 7 | /** 8 | * see [[https://html.spec.whatwg.org/multipage/history.html#the-history-interface]] 9 | * which contains the spec for ScrollRestoration 10 | */ 11 | object ScrollRestoration { 12 | /** The location on the page to which the user has scrolled will be restored. */ 13 | val auto: ScrollRestoration = "auto" 14 | /** The location on the page is not restored. The user will have to scroll to the location manually. */ 15 | val manual: ScrollRestoration = "manual" 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/ServiceWorkerUpdateViaCache.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | opaque type ServiceWorkerUpdateViaCache <: String = String 6 | 7 | object ServiceWorkerUpdateViaCache { 8 | /** The service worker script and all of its imports will be updated. */ 9 | val all: ServiceWorkerUpdateViaCache = "all" 10 | 11 | /** Only imports referenced by the service worker script will be updated. This is the default. */ 12 | val imports: ServiceWorkerUpdateViaCache = "imports" 13 | 14 | /** Neither the service worker, nor its imports will be updated. */ 15 | val none: ServiceWorkerUpdateViaCache = "none" 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/ShadowRootMode.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | opaque type ShadowRootMode <: String = String 4 | 5 | object ShadowRootMode { 6 | val open: ShadowRootMode = "open" 7 | val closed: ShadowRootMode = "closed" 8 | } 9 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/TextTrackMode.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | opaque type TextTrackMode <: String = String 4 | 5 | object TextTrackMode { 6 | val disabled: TextTrackMode = "disabled" 7 | val hidden: TextTrackMode = "hidden" 8 | val showing: TextTrackMode = "showing" 9 | } 10 | -------------------------------------------------------------------------------- /dom/src/main/scala-3/org/scalajs/dom/WorkerType.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | opaque type WorkerType <: String = String 6 | 7 | object WorkerType { 8 | val classic: WorkerType = "classic" 9 | val module: WorkerType = "module" 10 | } 11 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/AbortController.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | import scala.scalajs.js.annotation.JSGlobal 5 | 6 | /** The AbortController interface represents a controller object that allows you to abort one or more DOM requests as 7 | * and when desired. 8 | */ 9 | @js.native 10 | @JSGlobal 11 | class AbortController() extends js.Object { 12 | 13 | /** Returns a AbortSignal object instance, which can be used to communicate with/abort a DOM request */ 14 | val signal: AbortSignal = js.native 15 | 16 | /** Aborts a DOM request before it has completed. This is able to abort fetch requests, consumption of any response 17 | * Body, and streams. 18 | */ 19 | def abort(): Unit = js.native 20 | } 21 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/AbortSignal.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** The AbortSignal interface represents a signal object that allows you to communicate with a DOM request (such as a 6 | * Fetch) and abort it if required via an AbortController object. 7 | */ 8 | @js.native 9 | trait AbortSignal extends EventTarget { 10 | 11 | /** A Boolean that indicates whether the request(s) the signal is communicating with is/are aborted (true) or not 12 | * (false). 13 | */ 14 | def aborted: Boolean = js.native 15 | 16 | /** Invoked when an abort event fires, i.e. when the DOM request(s) the signal is communicating with is/are aborted. 17 | */ 18 | var onabort: js.Function0[Any] = js.native 19 | } 20 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/AbstractWorker.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** The AbstractWorker interface abstracts properties and methods common to all kind of workers, being Worker or 6 | * SharedWorker. 7 | */ 8 | @js.native 9 | trait AbstractWorker extends EventTarget { 10 | 11 | /** The AbstractWorker.onerror property represents an EventHandler, that is a function to be called when the error 12 | * event occurs and bubbles through the Worker. 13 | */ 14 | var onerror: js.Function1[ErrorEvent, _] = js.native 15 | } 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/AesCbcParams.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | // AES-CBC 4 | 5 | trait AesCbcParams extends Algorithm { 6 | val iv: BufferSource 7 | } 8 | 9 | object AesCbcParams { 10 | 11 | @deprecated("use `new AesCbcParams { ... } instead", "2.0.0") 12 | @inline 13 | def apply(name: String, iv: BufferSource): AesCbcParams = { 14 | val name0 = name 15 | val iv0 = iv 16 | new AesCbcParams { 17 | val name = name0 18 | val iv = iv0 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/AesCfbParams.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | // AES-CFB 4 | 5 | trait AesCfbParams extends Algorithm { 6 | val iv: BufferSource 7 | } 8 | 9 | object AesCfbParams { 10 | 11 | @deprecated("use `new AesCfbParams { ... } instead", "2.0.0") 12 | @inline 13 | def apply(name: String, iv: BufferSource): AesCfbParams = { 14 | val name0 = name 15 | val iv0 = iv 16 | new AesCfbParams { 17 | val name = name0 18 | val iv = iv0 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/AesCmacParams.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | // AES-CMAC 4 | 5 | trait AesCmacParams extends Algorithm { 6 | val length: Int 7 | } 8 | 9 | object AesCmacParams { 10 | 11 | @deprecated("use `new AesCmacParams { ... } instead", "2.0.0") 12 | @inline 13 | def apply(name: String, length: Int): AesCmacParams = { 14 | val name0 = name 15 | val length0 = length 16 | new AesCmacParams { 17 | val name = name0 18 | val length = length0 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/AesCtrParams.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | // AES-CTR 4 | 5 | trait AesCtrParams extends Algorithm { 6 | val counter: BufferSource 7 | 8 | val length: Int 9 | } 10 | 11 | object AesCtrParams { 12 | 13 | @deprecated("use `new AesCtrParams { ... } instead", "2.0.0") 14 | @inline 15 | def apply(name: String, counter: BufferSource, length: Short): AesCtrParams = { 16 | val name0 = name 17 | val counter0 = counter 18 | val length0 = length 19 | new AesCtrParams { 20 | val name = name0 21 | val counter = counter0 22 | val length = length0.toInt 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/AesDerivedKeyParams.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | trait AesDerivedKeyParams extends KeyAlgorithm { 4 | val length: Int 5 | } 6 | 7 | object AesDerivedKeyParams { 8 | 9 | @deprecated("use `new AesDerivedKeyParams { ... } instead", "2.0.0") 10 | @inline 11 | def apply(name: String, length: Short): AesDerivedKeyParams = { 12 | val name0 = name 13 | val length0 = length 14 | new AesDerivedKeyParams { 15 | val name = name0 16 | val length = length0.toInt 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/AesKeyAlgorithm.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | trait AesKeyAlgorithm extends KeyAlgorithm { 4 | val length: Int 5 | } 6 | 7 | object AesKeyAlgorithm { 8 | 9 | @deprecated("use `new AesKeyAlgorithm { ... } instead", "2.0.0") 10 | @inline 11 | def apply(name: String, length: Short): AesKeyAlgorithm = { 12 | val name0 = name 13 | val length0 = length 14 | new AesKeyAlgorithm { 15 | val name = name0 16 | val length = length0.toInt 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/AesKeyGenParams.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | trait AesKeyGenParams extends KeyAlgorithm { 4 | val length: Int 5 | } 6 | 7 | object AesKeyGenParams { 8 | 9 | @deprecated("use `new AesKeyGenParams { ... } instead", "2.0.0") 10 | @inline 11 | def apply(name: String, length: Short): AesKeyGenParams = { 12 | val name0 = name 13 | val length0 = length 14 | new AesKeyGenParams { 15 | val name = name0 16 | val length = length0.toInt 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/Algorithm.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | trait Algorithm extends js.Object { 6 | val name: String 7 | } 8 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/AudioTrack.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | @js.native 12 | trait AudioTrack extends js.Object { 13 | val id: String = js.native 14 | val kind: String = js.native 15 | val label: String = js.native 16 | val language: String = js.native 17 | var enabled: Boolean = js.native 18 | } 19 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/BeforeUnloadEvent.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | class BeforeUnloadEvent extends Event(js.native) { 15 | var returnValue: String = js.native 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/CSSFontFaceRule.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | class CSSFontFaceRule extends CSSRule { 15 | var style: CSSStyleDeclaration = js.native 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/CSSImportRule.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | class CSSImportRule extends CSSRule { 15 | var styleSheet: CSSStyleSheet = js.native 16 | var href: String = js.native 17 | var media: MediaList = js.native 18 | } 19 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/CSSRuleList.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | /** A CSSRuleList is an array-like object containing an ordered collection of CSSRule objects. */ 13 | @js.native 14 | @JSGlobal 15 | class CSSRuleList private[this] () extends DOMList[CSSRule] { 16 | def item(index: Int): CSSRule = js.native 17 | } 18 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/CacheQueryOptions.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** See [[https://slightlyoff.github.io/ServiceWorker/spec/service_worker_1/#cache ¶5.4 cache]] of ServiceWorker whatwg 6 | * spec. 7 | */ 8 | @js.native 9 | trait CacheQueryOptions extends js.Object { 10 | var ignoreSearch: Boolean = js.native // false 11 | 12 | var ignoreMethod: Boolean = js.native // false 13 | 14 | var ignoreVary: Boolean = js.native // false 15 | 16 | var cacheName: String = js.native 17 | } 18 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/CacheStorage.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** See [[https://slightlyoff.github.io/ServiceWorker/spec/service_worker_1/#cache-storage ¶5.5 cache]] of ServiceWorker 6 | * whatwg spec. 7 | */ 8 | @js.native 9 | trait CacheStorage extends js.Object { 10 | def `match`(request: RequestInfo, options: CacheQueryOptions = js.native): js.Promise[js.Any] = js.native 11 | 12 | def has(cacheName: String): js.Promise[Boolean] = js.native 13 | 14 | def open(cacheName: String): js.Promise[Cache] = js.native 15 | 16 | def delete(cacheName: String): js.Promise[Boolean] = js.native 17 | 18 | def keys(): js.Promise[js.Array[String]] = js.native 19 | } 20 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/CanvasProxy.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import org.scalajs.dom.webgl.RenderingContext 4 | import scala.scalajs.js 5 | 6 | /** see [[https://html.spec.whatwg.org/multipage/scripting.html#canvasproxy ¶4.12.4.1 Proxying canvases to workers]] in 7 | * whatwg html spec. 8 | */ 9 | @js.native 10 | trait CanvasProxy extends js.Any { 11 | def setContext(context: RenderingContext): Unit = js.native 12 | } 13 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/Chunk.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** See [[https://streams.spec.whatwg.org/#chunk ¶2 Model]] but mostly the examples in the whatwg streams spec */ 6 | @js.native 7 | trait Chunk[+T] extends js.Object { 8 | 9 | /** The value of the chunk. */ 10 | def value: T = js.native 11 | 12 | def done: Boolean = js.native 13 | } 14 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/ClientQueryOptions.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** [[https://slightlyoff.github.io/ServiceWorker/spec/service_worker_1/#client ¶4.2 Client]] of Service Workers 1 spec. 6 | */ 7 | @js.native 8 | trait ClientQueryOptions extends js.Object { 9 | var includeUncontrolled: Boolean = js.native 10 | 11 | var `type`: ClientType = js.native 12 | } 13 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/Clients.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** See [[https://slightlyoff.github.io/ServiceWorker/spec/service_worker_1/#clients ¶4.3 clients]] of ServiceWorker 6 | * whatwg spec. 7 | */ 8 | @js.native 9 | trait Clients extends js.Object { 10 | def get(id: String): js.Promise[js.UndefOr[Client]] = js.native 11 | 12 | def matchAll(options: js.UndefOr[ClientQueryOptions] = js.native): js.Promise[js.Array[Client]] = js.native 13 | 14 | def openWindow(url: String): js.Promise[WindowClient] = js.native 15 | 16 | def claim(): js.Promise[Unit] = js.native 17 | } 18 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/ClipboardEventInit.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | trait ClipboardEventInit extends EventInit { 12 | 13 | /** The data for this clipboard event. */ 14 | var data: js.UndefOr[String] = js.undefined 15 | 16 | /** The MIME type of the data. */ 17 | var dataType: js.UndefOr[String] = js.undefined 18 | } 19 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/ClipboardItemOptions.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | trait ClipboardItemOptions extends js.Object { 12 | def presentationStyle: js.UndefOr[PresentationStyle] = js.undefined 13 | } 14 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/CompositionEventInit.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | trait CompositionEventInit extends UIEventInit { 12 | var data: js.UndefOr[String] = js.undefined 13 | var locale: js.UndefOr[String] = js.undefined 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/ConvertToBlobOptions.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | trait ConvertToBlobOptions extends js.Object { 6 | var `type`: js.UndefOr[String] = js.undefined 7 | 8 | var quality: js.UndefOr[Double] = js.undefined 9 | } 10 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/CreateImageBitmapOptions.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | trait CreateImageBitmapOptions extends js.Object { 6 | var imageOrientation: js.UndefOr[String] = js.undefined 7 | var premultiplyAlpha: js.UndefOr[String] = js.undefined 8 | var colorSpaceConversion: js.UndefOr[String] = js.undefined 9 | var resizeWidth: js.UndefOr[Double] = js.undefined 10 | var resizeHeight: js.UndefOr[Double] = js.undefined 11 | var resizeQuality: js.UndefOr[String] = js.undefined 12 | } 13 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/CryptoKey.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | import scala.scalajs.js.annotation._ 5 | 6 | /** The CryptoKey object represents an opaque reference to keying material that is managed by the user agent. 7 | * 8 | * defined at [[http://www.w3.org/TR/WebCryptoAPI/#cryptokey-interface ¶13 The CryptoKey Interface]] 9 | */ 10 | @js.native 11 | @JSGlobal 12 | final class CryptoKey private[this] () extends js.Object { 13 | val `type`: String = js.native 14 | 15 | val extractable: Boolean = js.native 16 | 17 | val algorithm: KeyAlgorithm = js.native 18 | 19 | val usages: js.Array[KeyUsage] = js.native 20 | } 21 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/CryptoKeyPair.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** The CryptoKeyPair dictionary represents an asymmetric key pair that is comprised of both public and private keys. 6 | * defined at [[http://www.w3.org/TR/WebCryptoAPI/#keypair ¶17 CryptoKeyPair dictionary]] of spec 7 | */ 8 | @js.native 9 | trait CryptoKeyPair extends js.Object { 10 | val publicKey: CryptoKey = js.native 11 | val privateKey: CryptoKey = js.native 12 | } 13 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/CustomEventInit.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | trait CustomEventInit extends EventInit { 12 | var detail: js.UndefOr[Any] = js.undefined 13 | } 14 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/DOMRectInit.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | trait DOMRectInit extends js.Object { 6 | var x: js.UndefOr[Double] = js.undefined 7 | 8 | var y: js.UndefOr[Double] = js.undefined 9 | 10 | var width: js.UndefOr[Double] = js.undefined 11 | 12 | var height: js.UndefOr[Double] = js.undefined 13 | } 14 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/DOMRectList.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | class DOMRectList extends DOMList[DOMRect] 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/DOMSettableTokenList.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | @js.native 12 | trait DOMSettableTokenList extends DOMTokenList { 13 | def value: String = js.native 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/DeviceAcceleration.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | trait DeviceAcceleration extends js.Any { 6 | 7 | /** The acceleration in x. In m/s2. */ 8 | val x: Double 9 | 10 | /** The acceleration in y. In m/s2. */ 11 | val y: Double 12 | 13 | /** The acceleration in z. In m/s2. */ 14 | val z: Double 15 | } 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/DeviceMotionEventInit.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | trait DeviceMotionEventInit extends EventInit { 6 | 7 | /** Device acceleration with gravity removed. */ 8 | var acceleration: js.UndefOr[DeviceAcceleration] = js.undefined 9 | 10 | /** Device acceleration including the force of gravity. */ 11 | var accelerationIncludingGravity: js.UndefOr[DeviceAcceleration] = 12 | js.undefined 13 | 14 | /** The rate of rotation. */ 15 | var rotationRate: js.UndefOr[DeviceRotationRate] = js.undefined 16 | 17 | /** The sampling rate in seconds that data is received from the hardware. */ 18 | var interval: js.UndefOr[Double] = js.undefined 19 | } 20 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/DeviceOrientationEventInit.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | trait DeviceOrientationEventInit extends EventInit { 6 | 7 | /** Z-Axis rotation in degrees. */ 8 | var alpha: js.UndefOr[Double] = js.undefined 9 | 10 | /** X-Axis rotation in degrees. */ 11 | var beta: js.UndefOr[Double] = js.undefined 12 | 13 | /** Y-Axis rotation in degrees. */ 14 | var gamma: js.UndefOr[Double] = js.undefined 15 | 16 | /** If true, this event data is has been produced using sensor fusion from the magnometer and other sensors. When 17 | * false- only the gyroscope has been used. 18 | */ 19 | var absolute: js.UndefOr[Boolean] = js.undefined 20 | } 21 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/DeviceRotationRate.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | trait DeviceRotationRate extends js.Any { 6 | 7 | /** The z axis rotation in degrees per second. */ 8 | val alpha: Double 9 | 10 | /** The x axis rotation in degrees per second. */ 11 | val beta: Double 12 | 13 | /** The y axis rotation in degrees per second. */ 14 | val gamma: Double 15 | } 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/DhImportKeyParams.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | trait DhImportKeyParams extends Algorithm { 4 | val prime: BigInteger 5 | 6 | val generator: BigInteger 7 | } 8 | 9 | object DhImportKeyParams { 10 | 11 | @deprecated("use `new DhImportKeyParams { ... } instead", "2.0.0") 12 | @inline 13 | def apply(name: String, prime: BigInteger, generator: BigInteger): DhImportKeyParams = { 14 | val name0 = name 15 | val prime0 = prime 16 | val generator0 = generator 17 | new DhImportKeyParams { 18 | val name = name0 19 | val prime = prime0 20 | val generator = generator0 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/DhKeyAlgorithm.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | trait DhKeyAlgorithm extends KeyAlgorithm { 4 | val prime: BigInteger 5 | 6 | val generator: BigInteger 7 | } 8 | 9 | object DhKeyAlgorithm { 10 | 11 | @deprecated("use `new DhKeyAlgorithm { ... } instead", "2.0.0") 12 | @inline 13 | def apply(name: String, prime: BigInteger, generator: BigInteger): DhKeyAlgorithm = { 14 | val name0 = name 15 | val prime0 = prime 16 | val generator0 = generator 17 | new DhKeyAlgorithm { 18 | val name = name0 19 | val prime = prime0 20 | val generator = generator0 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/DhKeyDeriveParams.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | trait DhKeyDeriveParams extends Algorithm { 4 | val public: CryptoKey 5 | } 6 | 7 | object DhKeyDeriveParams { 8 | 9 | @deprecated("use `new DhKeyDeriveParams { ... } instead", "2.0.0") 10 | @inline 11 | def apply(name: String, public: CryptoKey): DhKeyDeriveParams = { 12 | val name0 = name 13 | val public0 = public 14 | new DhKeyDeriveParams { 15 | val name = name0 16 | val public = public0 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/DhKeyGenParams.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | // Diffie-Hellman 4 | 5 | trait DhKeyGenParams extends Algorithm { 6 | val prime: BigInteger 7 | 8 | val generator: BigInteger 9 | } 10 | 11 | object DhKeyGenParams { 12 | 13 | @deprecated("use `new DhKeyGenParams { ... } instead", "2.0.0") 14 | @inline 15 | def apply(name: String, prime: BigInteger, generator: BigInteger): DhKeyGenParams = { 16 | val name0 = name 17 | val prime0 = prime 18 | val generator0 = generator 19 | new DhKeyGenParams { 20 | val name = name0 21 | val prime = prime0 22 | val generator = generator0 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/DocumentEvent.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | @js.native 12 | trait DocumentEvent extends js.Object { 13 | def createEvent(eventInterface: String): Event = js.native 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/DragEvent.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | @js.native 12 | trait DragEvent extends MouseEvent { 13 | def dataTransfer: DataTransfer = js.native 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/EcKeyAlgorithm.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | trait EcKeyAlgorithm extends KeyAlgorithm { 4 | val namedCurve: String 5 | } 6 | 7 | object EcKeyAlgorithm { 8 | 9 | @deprecated("use `new EcKeyAlgorithm { ... } instead", "2.0.0") 10 | @inline 11 | def apply(name: String, namedCurve: String): EcKeyAlgorithm = { 12 | val name0 = name 13 | val namedCurve0 = namedCurve 14 | new EcKeyAlgorithm { 15 | val name = name0 16 | val namedCurve = namedCurve0 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/EcKeyGenParams.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | trait EcKeyGenParams extends Algorithm { 4 | val namedCurve: String 5 | } 6 | 7 | object EcKeyGenParams { 8 | 9 | @deprecated("use `new EcKeyGenParams { ... } instead", "2.0.0") 10 | @inline 11 | def apply(name: String, namedCurve: String): EcKeyGenParams = { 12 | val name0 = name 13 | val namedCurve0 = namedCurve 14 | new EcKeyGenParams { 15 | val name = name0 16 | val namedCurve = namedCurve0 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/EcKeyImportParams.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | trait EcKeyImportParams extends KeyAlgorithm { 4 | val namedCurve: String 5 | } 6 | 7 | object EcKeyImportParams { 8 | 9 | @deprecated("use `new EcKeyImportParams { ... } instead", "2.0.0") 10 | @inline 11 | def apply(name: String, namedCurve: String): EcKeyImportParams = { 12 | val name0 = name 13 | val namedCurve0 = namedCurve 14 | new EcKeyImportParams { 15 | val name = name0 16 | val namedCurve = namedCurve0 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/EcdhKeyDeriveParams.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | // ECDH 4 | 5 | trait EcdhKeyDeriveParams extends KeyAlgorithm { 6 | val public: CryptoKey 7 | } 8 | 9 | object EcdhKeyDeriveParams { 10 | 11 | @deprecated("use `new EcdhKeyDeriveParams { ... } instead", "2.0.0") 12 | @inline 13 | def apply(name: String, public: CryptoKey): EcdhKeyDeriveParams = { 14 | val name0 = name 15 | val public0 = public 16 | new EcdhKeyDeriveParams { 17 | val name = name0 18 | val public = public0 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/EcdsaParams.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | // ECDSA 4 | 5 | trait EcdsaParams extends Algorithm { 6 | val hash: HashAlgorithmIdentifier 7 | } 8 | 9 | object EcdsaParams { 10 | 11 | @deprecated("use `new EcdsaParams { ... } instead", "2.0.0") 12 | @inline 13 | def apply(name: String, hash: HashAlgorithmIdentifier): EcdsaParams = { 14 | val name0 = name 15 | val hash0 = hash 16 | new EcdsaParams { 17 | val name = name0 18 | val hash = hash0 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/ElementCreationOptions.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | trait ElementCreationOptions extends js.Object { 6 | var is: js.UndefOr[String] = js.undefined 7 | } 8 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/ElementDefinitionOptions.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** An ElementDefinitionOptions object represents additional options associated with CustomElementRegsitry.define. */ 6 | trait ElementDefinitionOptions extends js.Object { 7 | 8 | /** String specifying the name of a built-in element to extend. Used to create a customized built-in element. */ 9 | var `extends`: js.UndefOr[String] = js.undefined 10 | } 11 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/EventInit.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | trait EventInit extends js.Object { 12 | var bubbles: js.UndefOr[Boolean] = js.undefined 13 | var cancelable: js.UndefOr[Boolean] = js.undefined 14 | var scoped: js.UndefOr[Boolean] = js.undefined 15 | var composed: js.UndefOr[Boolean] = js.undefined 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/EventSourceInit.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | /** Provides options to configure the new connection. */ 12 | trait EventSourceInit extends js.Object { 13 | 14 | /** defaulting to false, indicating if CORS should be set to include credentials */ 15 | var withCredentials: js.UndefOr[Boolean] = js.undefined 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/ExtendableEvent.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | import scala.scalajs.js.annotation._ 5 | 6 | /** See 7 | * [[https://slightlyoff.github.io/ServiceWorker/spec/service_worker_1/#extendable-event-interface ¶4.4 ExtendableEvent]] 8 | * of whatwg ServiceWorker spec. 9 | * 10 | * An ExtendableEvent object has an associated extend lifetime promises (an array of promises). It is initially set to 11 | * null. 12 | */ 13 | @js.native 14 | @JSGlobal 15 | class ExtendableEvent(typeArg: String, init: js.UndefOr[ExtendableEventInit]) extends Event(typeArg, init) { 16 | def waitUntil(promise: js.Promise[Any]): Unit = js.native 17 | } 18 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/ExtendableEventInit.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | trait ExtendableEventInit extends EventInit {} 4 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/ExtendableMessageEventInit.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | import scala.scalajs.js.| 5 | 6 | trait ExtendableMessageEventInit extends ExtendableEventInit { 7 | var data: js.UndefOr[Any] = js.undefined 8 | 9 | var origin: js.UndefOr[String] = js.undefined 10 | 11 | var lastEventId: js.UndefOr[String] = js.undefined 12 | 13 | var source: js.UndefOr[Client | ServiceWorker | MessagePort] = js.undefined 14 | 15 | var ports: js.UndefOr[js.Array[MessagePort]] = js.undefined 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/External.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | @js.native 12 | trait External extends js.Object 13 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/Fetch.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | import scala.scalajs.js.annotation._ 5 | 6 | @js.native 7 | @JSGlobalScope 8 | object Fetch extends js.Object { 9 | 10 | /** [[https://fetch.spec.whatwg.org/#fetch-method ¶6.0 Fetch method]] defined in WhatWG spec 11 | * 12 | * @param info 13 | * @param init 14 | * @return 15 | */ 16 | def fetch(info: RequestInfo, init: RequestInit = js.native): js.Promise[Response] = js.native 17 | } 18 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/FetchEventInit.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | trait FetchEventInit extends ExtendableEventInit { 6 | var isReload: js.UndefOr[Boolean] = js.undefined 7 | var request: js.UndefOr[Request] = js.undefined 8 | var clientId: js.UndefOr[String] = js.undefined 9 | } 10 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/FilePropertyBag.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** An options object containing optional attributes for the file. */ 6 | trait FilePropertyBag extends BlobPropertyBag { 7 | var lastModified: js.UndefOr[Double] = js.undefined 8 | } 9 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/FocusEventInit.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | trait FocusEventInit extends UIEventInit { 12 | var relatedTarget: js.UndefOr[EventTarget] = js.undefined 13 | } 14 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/FocusOptions.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | trait FocusOptions extends js.Object { 6 | var preventScroll: js.UndefOr[Boolean] = js.undefined 7 | var focusVisible: js.UndefOr[Boolean] = js.undefined 8 | } 9 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/FullscreenOptions.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | trait FullscreenOptions extends js.Object { 12 | var navigationUI: js.UndefOr[String] = js.undefined 13 | } 14 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/GamepadButton.scala: -------------------------------------------------------------------------------- 1 | /* 2 | * Implements the Gamepad API. 3 | * 4 | * [[https://www.w3.org/TR/2015/WD-gamepad-20151217/ W3C Working Draft]] 5 | */ 6 | 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | /** Represents the state of a button. */ 12 | trait GamepadButton extends js.Any { 13 | 14 | /** True if the button is pressed, false otherwise. */ 15 | val pressed: Boolean 16 | 17 | /** The value of this gamepad button, 0 is fully unpressed, 1 is fully pressed. */ 18 | val value: Double 19 | } 20 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/GamepadEvent.scala: -------------------------------------------------------------------------------- 1 | /* 2 | * Implements the Gamepad API. 3 | * 4 | * [[https://www.w3.org/TR/2015/WD-gamepad-20151217/ W3C Working Draft]] 5 | */ 6 | 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @JSGlobal("GamepadEvent") 13 | @js.native 14 | class GamepadEvent(typeArg: String, init: js.UndefOr[GamepadEventInit] = js.undefined) extends Event(typeArg, init) { 15 | val gamepad: Gamepad = js.native 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/GamepadEventInit.scala: -------------------------------------------------------------------------------- 1 | /* 2 | * Implements the Gamepad API. 3 | * 4 | * [[https://www.w3.org/TR/2015/WD-gamepad-20151217/ W3C Working Draft]] 5 | */ 6 | 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | trait GamepadEventInit extends EventInit { 12 | var gamepad: js.UndefOr[Gamepad] = js.undefined 13 | } 14 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/GamepadMappingType.scala: -------------------------------------------------------------------------------- 1 | /* 2 | * Implements the Gamepad API. 3 | * 4 | * [[https://www.w3.org/TR/2015/WD-gamepad-20151217/ W3C Working Draft]] 5 | */ 6 | 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | @js.native 12 | trait GamepadMappingType extends js.Any 13 | 14 | object GamepadMappingType { 15 | final val `unknown`: GamepadMappingType = "".asInstanceOf[GamepadMappingType] 16 | 17 | final val `standard`: GamepadMappingType = "standard".asInstanceOf[GamepadMappingType] 18 | } 19 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/GetNotificationOptions.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** An object containing options to filter the notifications returned. */ 6 | trait GetNotificationOptions extends js.Object { 7 | 8 | /** A DOMString representing a notification tag. If specified, only notifications that have this tag will be returned. 9 | */ 10 | var tag: js.UndefOr[String] = js.undefined 11 | } 12 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/GetSVGDocument.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | @js.native 12 | trait GetSVGDocument extends js.Object { 13 | def getSVGDocument(): Document = js.native 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/HTMLBRElement.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | /** The HTMLBRElement interface represents a HTML line break element (<br>). It inherits from HTMLElement. */ 13 | @js.native 14 | @JSGlobal 15 | abstract class HTMLBRElement extends HTMLElement 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/HTMLHeadingElement.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | /** The HTMLHeadingElement interface represents the different heading elements. It inherits methods and properties from 13 | * the HTMLElement interface. 14 | */ 15 | @js.native 16 | @JSGlobal 17 | abstract class HTMLHeadingElement extends HTMLElement 18 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/HTMLMenuElement.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | abstract class HTMLMenuElement extends HTMLElement { 15 | var `type`: String = js.native 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/HTMLTableAlignment.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | @js.native 12 | trait HTMLTableAlignment extends js.Object 13 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/HmacImportParams.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | // AES-KW 4 | 5 | // HMAC 6 | 7 | trait HmacImportParams extends Algorithm { 8 | val hash: HashAlgorithmIdentifier 9 | 10 | val length: Double 11 | } 12 | 13 | object HmacImportParams { 14 | 15 | @deprecated("use `new HmacImportParams { ... } instead", "2.0.0") 16 | @inline 17 | def apply(name: String, hash: HashAlgorithmIdentifier, length: Long): HmacImportParams = { 18 | val name0 = name 19 | val hash0 = hash 20 | val length0 = length 21 | new HmacImportParams { 22 | val name = name0 23 | val hash = hash0 24 | val length = length0.toDouble 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/HmacKeyAlgorithm.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | trait HmacKeyAlgorithm extends KeyAlgorithm { 4 | val hash: HashAlgorithmIdentifier 5 | 6 | val length: Double 7 | } 8 | 9 | object HmacKeyAlgorithm { 10 | 11 | @deprecated("use `new HmacKeyAlgorithm { ... } instead", "2.0.0") 12 | @inline 13 | def apply(name: String, hash: HashAlgorithmIdentifier, length: Long): HmacKeyAlgorithm = { 14 | val name0 = name 15 | val hash0 = hash 16 | val length0 = length 17 | new HmacKeyAlgorithm { 18 | val name = name0 19 | val hash = hash0 20 | val length = length0.toDouble 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/HmacKeyGenParams.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | trait HmacKeyGenParams extends KeyAlgorithm { 4 | val hash: HashAlgorithmIdentifier 5 | 6 | val length: Double 7 | } 8 | 9 | object HmacKeyGenParams { 10 | 11 | @deprecated("use `new HmacKeyGenParams { ... } instead", "2.0.0") 12 | @inline 13 | def apply(name: String, hash: HashAlgorithmIdentifier, length: Long): HmacKeyGenParams = { 14 | val name0 = name 15 | val hash0 = hash 16 | val length0 = length 17 | new HmacKeyGenParams { 18 | val name = name0 19 | val hash = hash0 20 | val length = length0.toDouble 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/IDBCreateIndexOptions.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | trait IDBCreateIndexOptions extends js.Object { 12 | val unique: js.UndefOr[Boolean] = js.undefined 13 | val multiEntry: js.UndefOr[Boolean] = js.undefined 14 | val locale: js.UndefOr[String] = js.undefined 15 | } 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/IDBCreateObjectStoreOptions.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | trait IDBCreateObjectStoreOptions extends js.Object { 12 | val keyPath: IDBKeyPath = js.undefined 13 | val autoIncrement: js.UndefOr[Boolean] = js.undefined 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/IDBCursorWithValue.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | /** Same as [[IDBCursor]] with the `value` property. 13 | * 14 | * @tparam S 15 | * The type of `.source` 16 | */ 17 | @js.native 18 | @JSGlobal 19 | class IDBCursorWithValue[+S] extends IDBCursor[S] { 20 | def value: IDBValue = js.native 21 | } 22 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/IDBDatabaseInfo.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | @js.native 12 | trait IDBDatabaseInfo extends js.Object { 13 | val name: String = js.native 14 | val version: Double = js.native 15 | } 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/IDBEvent.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | /** @tparam A Type of `.target.result` */ 13 | @js.native 14 | @JSGlobal("Event") 15 | class IDBEvent[+A](typeArg: String, init: js.UndefOr[EventInit] = js.undefined) extends Event(typeArg, init) { 16 | override def target: IDBEventTarget[A] = js.native 17 | } 18 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/IDBEventTarget.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal("EventTarget") 14 | class IDBEventTarget[+A] extends EventTarget { 15 | def result: A = js.native 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/IDBTransactionOptions.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | trait IDBTransactionOptions extends js.Object { 12 | val durability: js.UndefOr[IDBTransactionDurability] = js.undefined 13 | } 14 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/IDBVersionChangeEventInit.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | trait IDBVersionChangeEventInit extends EventInit { 12 | var newVersion: js.UndefOr[java.lang.Double] = js.undefined 13 | var oldVersion: js.UndefOr[Double] = js.undefined 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/Image.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | import scala.scalajs.js.annotation._ 5 | 6 | /** Image creates a new HTMLImageElement instance. It is functionally equivalent to document.createElement('img'). 7 | * 8 | * @param width 9 | * The width of the image (i.e., the value for the width attribute). 10 | * @param height 11 | * The height of the image (i.e., the value for the height attribute). 12 | */ 13 | @JSGlobal 14 | @js.native 15 | class Image(width: Int, height: Int) extends HTMLImageElement { 16 | def this(width: Int) = this(width, 0) 17 | def this() = this(0, 0) 18 | } 19 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/ImageDataSettings.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | trait ImageDataSettings extends js.Object { 6 | var colorSpace: js.UndefOr[PredefinedColorSpace] = js.undefined 7 | } 8 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/InputEventInit.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | trait InputEventInit extends UIEventInit { 12 | var inputType: js.UndefOr[InputType] = js.undefined 13 | var data: js.UndefOr[String] = js.undefined 14 | var isComposing: js.UndefOr[Boolean] = js.undefined 15 | } 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/IntersectionObserverEntryInit.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | trait IntersectionObserverEntryInit extends js.Object { 6 | 7 | var boundingClientRect: DOMRectInit 8 | 9 | var intersectionRatio: Double 10 | 11 | var intersectionRect: DOMRectInit 12 | 13 | var isIntersecting: Boolean 14 | 15 | var rootBounds: DOMRectInit 16 | 17 | var target: Element 18 | 19 | var time: Double 20 | } 21 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/KeyAlgorithm.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | /** The KeyAlgorithm dictionary represents information about the contents of a given CryptoKey object. 4 | * 5 | * See [[http://www.w3.org/TR/WebCryptoAPI/#key-algorithm-dictionary ¶12 KeyAlgorithm dictionary]] in w3c spec. 6 | */ 7 | trait KeyAlgorithm extends Algorithm 8 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/KeyLocation.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | /** Aliases for DOM_KEY_LOCATION_* constants from [[KeyboardEvent]] */ 4 | object KeyLocation { 5 | final val Standard = KeyboardEvent.DOM_KEY_LOCATION_STANDARD 6 | final val Left = KeyboardEvent.DOM_KEY_LOCATION_LEFT 7 | final val Right = KeyboardEvent.DOM_KEY_LOCATION_RIGHT 8 | final val NumPad = KeyboardEvent.DOM_KEY_LOCATION_NUMPAD 9 | } 10 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/LinkStyle.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | /** The LinkStyle interface allows to access the associated CSS style sheet of a node. */ 12 | @js.native 13 | trait LinkStyle extends js.Object { 14 | 15 | /** Returns the StyleSheet object associated with the given element, or null if there is none. */ 16 | def sheet: StyleSheet = js.native 17 | } 18 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/LockInfo.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | @js.native 6 | trait LockInfo extends js.Object { 7 | 8 | def name: String = js.native 9 | 10 | def mode: LockMode = js.native 11 | 12 | def clientId: String = js.native 13 | 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/LockManagerSnapshot.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** an object containing a snapshot of the [[LockManager]] state */ 6 | @js.native 7 | trait LockManagerSnapshot extends js.Object { 8 | 9 | /** An array of [[Lock]] objects for held locks. */ 10 | def held: js.Array[LockInfo] = js.native 11 | 12 | /** An array of [[Lock]] objects for pending lock requests. */ 13 | def pending: js.Array[LockInfo] = js.native 14 | 15 | } 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/MediaQueryListListener.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | @js.native 12 | @deprecated("See MediaQueryList for more info", "2.4.0") 13 | trait MediaQueryListListener extends js.Object { 14 | def apply(mql: MediaQueryList): Unit = js.native 15 | } 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/MediaStreamEventInit.scala: -------------------------------------------------------------------------------- 1 | /** http://www.w3.org/TR/2015/WD-webrtc-20150210/ */ 2 | package org.scalajs.dom 3 | 4 | import scala.scalajs.js 5 | 6 | trait MediaStreamEventInit extends EventInit { 7 | var stream: js.UndefOr[MediaStream] = js.undefined 8 | } 9 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/MediaStreamTrackEvent.scala: -------------------------------------------------------------------------------- 1 | /** https://www.w3.org/TR/2016/CR-mediacapture-streams-20160519/ */ 2 | package org.scalajs.dom 3 | 4 | import scala.scalajs.js 5 | import scala.scalajs.js.annotation._ 6 | 7 | @js.native 8 | @JSGlobal 9 | class MediaStreamTrackEvent(typeArg: String, init: js.UndefOr[MediaStreamTrackEventInit]) extends Event(typeArg, init) { 10 | val track: MediaStreamTrack = js.native 11 | } 12 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/MediaStreamTrackEventInit.scala: -------------------------------------------------------------------------------- 1 | /** https://www.w3.org/TR/2016/CR-mediacapture-streams-20160519/ */ 2 | package org.scalajs.dom 3 | 4 | import scala.scalajs.js 5 | 6 | trait MediaStreamTrackEventInit extends EventInit { 7 | var track: js.UndefOr[MediaStreamTrack] = js.undefined 8 | } 9 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/MessageChannel.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | class MessageChannel extends js.Object { 15 | def port2: MessagePort = js.native 16 | 17 | def port1: MessagePort = js.native 18 | } 19 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/MessageEventInit.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | trait MessageEventInit extends EventInit { 12 | var source: js.UndefOr[Window] = js.undefined 13 | var origin: js.UndefOr[String] = js.undefined 14 | var data: js.UndefOr[Any] = js.undefined 15 | } 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/ModifierKeyEventInit.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | trait ModifierKeyEventInit extends js.Object { 12 | var metaKey: js.UndefOr[Boolean] = js.undefined 13 | var altKey: js.UndefOr[Boolean] = js.undefined 14 | var ctrlKey: js.UndefOr[Boolean] = js.undefined 15 | var shiftKey: js.UndefOr[Boolean] = js.undefined 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/NDEFScanOptions.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** @see https://w3c.github.io/web-nfc/#the-ndefscanoptions-dictionary */ 6 | trait NDEFScanOptions extends js.Object { 7 | 8 | /** An AbortSignal that allows the current write operation to be canceled. */ 9 | var `signal`: js.UndefOr[AbortSignal] = js.undefined 10 | } 11 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/NDEFWriteOptions.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** @see 6 | * https://w3c.github.io/web-nfc/#the-ndefwriteoptions-dictionary 7 | * @see 8 | * https://developer.mozilla.org/en-US/docs/Web/API/NDEFReader/write 9 | */ 10 | trait NDEFWriteOptions extends js.Object { 11 | 12 | /** A boolean value specifying whether or not existing records should be overwritten, if such exists. Default is true 13 | */ 14 | var `overwrite`: js.UndefOr[Boolean] = js.undefined 15 | 16 | /** An AbortSignal that allows the current write operation to be canceled. */ 17 | var `signal`: js.UndefOr[AbortSignal] = js.undefined 18 | 19 | } 20 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/NavigatorLocks.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | @js.native 6 | trait NavigatorLocks extends js.Object { 7 | 8 | /** A [[LockManager]] object which provides methods for requesting a new [[Lock]] object and querying for an existing 9 | * [[Lock]] object. 10 | */ 11 | def locks: LockManager = js.native 12 | } 13 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/NavigatorStorageUtils.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | @js.native 12 | trait NavigatorStorageUtils extends js.Object 13 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/NodeList.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | /** NodeList objects are collections of nodes such as those returned by Node.childNodes and the querySelectorAll method. 13 | */ 14 | @js.native 15 | @JSGlobal 16 | class NodeList[+T <: Node]() extends DOMList[T] { 17 | def item(index: Int): T = js.native 18 | } 19 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/PerformanceMark.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | class PerformanceMark extends PerformanceEntry 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/PerformanceMeasure.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | class PerformanceMeasure extends PerformanceEntry 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/PermissionDescriptor.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | trait PermissionDescriptor extends js.Object { 6 | val name: PermissionName 7 | } 8 | 9 | @deprecated("all the members of PermissionDescriptor are deprecated", "2.0.0") 10 | object PermissionDescriptor { 11 | 12 | @deprecated("use `new PermissionDescriptor { ... }` instead", "2.0.0") 13 | @inline 14 | def apply(permissionName: PermissionName): PermissionDescriptor = { 15 | new PermissionDescriptor { 16 | val name = permissionName 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/PermissionStatus.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | trait PermissionStatus extends EventTarget { 6 | val state: PermissionState 7 | var onchange: js.Function1[Event, _] 8 | } 9 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/Permissions.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | trait Permissions extends js.Object { 6 | def query(permissionDescriptor: PermissionDescriptor): js.Promise[PermissionStatus] 7 | } 8 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/PopStateEvent.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | @js.native 12 | trait PopStateEvent extends Event { 13 | def state: js.Any = js.native 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/PushEvent.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** The PushEvent interface of the Push API represents a push message that has been received. This event is sent to the 6 | * global scope of a ServiceWorker. It contains the information sent from an application server to a PushSubscription. 7 | */ 8 | @js.native 9 | trait PushEvent extends ExtendableEvent { 10 | 11 | /** Returns a reference to a PushMessageData object containing data sent to the PushSubscription. Read-only. */ 12 | val data: PushMessageData = js.native 13 | } 14 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/PushPermissionDescriptor.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | trait PushPermissionDescriptor extends PermissionDescriptor { 4 | val userVisibleOnly: Boolean 5 | } 6 | 7 | @deprecated("all the members of PushPermissionDescriptor are deprecated", "2.0.0") 8 | object PushPermissionDescriptor { 9 | 10 | @deprecated("use `new PushPermissionDescriptor { ... }` instead", "2.0.0") 11 | @inline 12 | def apply(permissionUserVisibleOnly: Boolean): PushPermissionDescriptor = { 13 | new PushPermissionDescriptor { 14 | val name = PermissionName.push 15 | val userVisibleOnly = permissionUserVisibleOnly 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/RTCDataChannelEventInit.scala: -------------------------------------------------------------------------------- 1 | /** http://www.w3.org/TR/2015/WD-webrtc-20150210/ */ 2 | package org.scalajs.dom 3 | 4 | import scala.scalajs.js 5 | 6 | trait RTCDataChannelEventInit extends EventInit { 7 | var channel: js.UndefOr[RTCDataChannel] = js.undefined 8 | } 9 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/RTCPeerConnectionIceEvent.scala: -------------------------------------------------------------------------------- 1 | /** http://www.w3.org/TR/2015/WD-webrtc-20150210/ */ 2 | package org.scalajs.dom 3 | 4 | import scala.scalajs.js 5 | import scala.scalajs.js.annotation._ 6 | 7 | /** The RTCPeerConnectionIceEvent interface represents events that occurs in relation to ICE candidates with the target, 8 | * usually an RTCPeerConnection. Only one event is of this type: icecandidate. 9 | */ 10 | @js.native 11 | @JSGlobal 12 | class RTCPeerConnectionIceEvent(typeArg: String, init: js.UndefOr[RTCPeerConnectionIceEventInit]) 13 | extends Event(typeArg, init) { 14 | 15 | /** Contains the RTCIceCandidate containing the candidate associated with the event. */ 16 | var candidate: RTCIceCandidate = js.native 17 | } 18 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/RTCPeerConnectionIceEventInit.scala: -------------------------------------------------------------------------------- 1 | /** http://www.w3.org/TR/2015/WD-webrtc-20150210/ */ 2 | package org.scalajs.dom 3 | 4 | import scala.scalajs.js 5 | 6 | trait RTCPeerConnectionIceEventInit extends EventInit { 7 | var candidate: js.UndefOr[RTCIceCandidate] = js.undefined 8 | } 9 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/RTCSessionDescription.scala: -------------------------------------------------------------------------------- 1 | /** http://www.w3.org/TR/2015/WD-webrtc-20150210/ */ 2 | package org.scalajs.dom 3 | 4 | import scala.scalajs.js 5 | import scala.scalajs.js.annotation._ 6 | 7 | @js.native 8 | @JSGlobal 9 | class RTCSessionDescription(descriptionInitDict: js.UndefOr[RTCSessionDescriptionInit] = js.undefined) 10 | extends js.Object { 11 | 12 | /** An enum of type RTCSdpType describing the session description's type. */ 13 | var `type`: RTCSdpType = js.native 14 | 15 | /** A DOMString containing the SDP format describing the session. */ 16 | var sdp: String = js.native 17 | } 18 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/RTCStats.scala: -------------------------------------------------------------------------------- 1 | /** http://www.w3.org/TR/2015/WD-webrtc-20150210/ */ 2 | package org.scalajs.dom 3 | 4 | import scala.scalajs.js 5 | 6 | trait RTCStats extends js.Object { 7 | val timestamp: Double 8 | val `type`: RTCStatsType 9 | val id: String 10 | } 11 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/RTCStatsReport.scala: -------------------------------------------------------------------------------- 1 | /** http://www.w3.org/TR/2015/WD-webrtc-20150210/ */ 2 | package org.scalajs.dom 3 | 4 | import scala.scalajs.js 5 | 6 | //https://www.w3.org/TR/2015/WD-webrtc-20150210/#idl-def-RTCStatsReport 7 | @js.native 8 | trait RTCStatsReport extends js.Object { 9 | def apply(id: String): RTCStats = js.native 10 | } 11 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/ResizeObserverOptions.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | trait ResizeObserverOptions extends js.Object { 6 | var box: js.UndefOr[ResizeObserverBoxOption] = js.undefined 7 | } 8 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/ResponseInit.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** See [[https://fetch.spec.whatwg.org/#response-class ¶6.4 Response class]] definition in whatwg Fetch spec. */ 6 | trait ResponseInit extends js.Object { 7 | var status: js.UndefOr[Int] = js.undefined 8 | var statusText: js.UndefOr[ByteString] = js.undefined 9 | var headers: js.UndefOr[HeadersInit] = js.undefined 10 | } 11 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/RsaHashedImportParams.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | trait RsaHashedImportParams extends KeyAlgorithm { 4 | val hash: HashAlgorithmIdentifier 5 | } 6 | 7 | object RsaHashedImportParams { 8 | 9 | @deprecated("use `new RsaHashedImportParams { ... } instead", "2.0.0") 10 | @inline 11 | def apply(name: String, hash: HashAlgorithmIdentifier): RsaHashedImportParams = { 12 | val name0 = name 13 | val hash0 = hash 14 | new RsaHashedImportParams { 15 | val name = name0 16 | val hash = hash0 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/RsaKeyAlgorithm.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | trait RsaKeyAlgorithm extends KeyAlgorithm { 4 | val modulusLength: Double 5 | 6 | val publicExponent: BigInteger 7 | } 8 | 9 | object RsaKeyAlgorithm { 10 | 11 | @deprecated("use `new RsaKeyAlgorithm { ... } instead", "2.0.0") 12 | @inline 13 | def apply(name: String, modulusLength: Long, publicExponent: BigInteger): RsaKeyAlgorithm = { 14 | val name0 = name 15 | val modulusLength0 = modulusLength 16 | val publicExponent0 = publicExponent 17 | new RsaKeyAlgorithm { 18 | val name = name0 19 | val modulusLength = modulusLength0.toDouble 20 | val publicExponent = publicExponent0 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/RsaKeyGenParams.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | // RSASSA-PKCS1-v1_5 4 | 5 | trait RsaKeyGenParams extends KeyAlgorithm { 6 | val modulusLength: Double 7 | 8 | val publicExponent: BigInteger 9 | } 10 | 11 | object RsaKeyGenParams { 12 | 13 | @deprecated("use `new RsaKeyGenParams { ... } instead", "2.0.0") 14 | @inline 15 | def apply(name: String, modulusLength: Long, publicExponent: BigInteger): RsaKeyGenParams = { 16 | val name0 = name 17 | val modulusLength0 = modulusLength 18 | val publicExponent0 = publicExponent 19 | new RsaKeyGenParams { 20 | val name = name0 21 | val modulusLength = modulusLength0.toDouble 22 | val publicExponent = publicExponent0 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/RsaOaepParams.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | // RSA-OAEP 4 | 5 | trait RsaOaepParams extends Algorithm { 6 | val label: BufferSource 7 | } 8 | 9 | object RsaOaepParams { 10 | 11 | @deprecated("use `new RsaOaepParams { ... } instead", "2.0.0") 12 | @inline 13 | def apply(name: String, label: BufferSource): RsaOaepParams = { 14 | val name0 = name 15 | val label0 = label 16 | new RsaOaepParams { 17 | val name = name0 18 | val label = label0 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/RsaOtherPrimesInfo.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | @js.native 6 | trait RsaOtherPrimesInfo extends js.Object { 7 | var r: String = js.native 8 | 9 | var d: String = js.native 10 | 11 | var t: String = js.native 12 | } 13 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/RsaPssParams.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | // RSA-PSS 4 | 5 | trait RsaPssParams extends Algorithm { 6 | val saltLength: Double 7 | } 8 | 9 | object RsaPssParams { 10 | 11 | @deprecated("use `new RsaPssParams { ... } instead", "2.0.0") 12 | @inline 13 | def apply(name: String, saltLength: Long): RsaPssParams = { 14 | val name0 = name 15 | val saltLength0 = saltLength 16 | new RsaPssParams { 17 | val name = name0 18 | val saltLength = saltLength0.toDouble 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGAnimatedPathData.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | @js.native 12 | trait SVGAnimatedPathData extends js.Object { 13 | var pathSegList: SVGPathSegList = js.native 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGDescElement.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | /** The SVGDescElement interface corresponds to the <desc> element. */ 13 | @js.native 14 | @JSGlobal 15 | abstract class SVGDescElement extends SVGElement with SVGStylable with SVGLangSpace 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGElementInstanceList.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | class SVGElementInstanceList extends js.Object { 15 | def length: Int = js.native 16 | 17 | def item(index: Int): SVGElementInstance = js.native 18 | } 19 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGExternalResourcesRequired.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | @js.native 12 | trait SVGExternalResourcesRequired extends js.Object { 13 | var externalResourcesRequired: SVGAnimatedBoolean = js.native 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGFEComponentTransferElement.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | abstract class SVGFEComponentTransferElement extends SVGElement with SVGFilterPrimitiveStandardAttributes { 15 | def in1: SVGAnimatedString = js.native 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGFEDistantLightElement.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | abstract class SVGFEDistantLightElement extends SVGElement { 15 | def azimuth: SVGAnimatedNumber = js.native 16 | 17 | def elevation: SVGAnimatedNumber = js.native 18 | } 19 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGFEFloodElement.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | abstract class SVGFEFloodElement extends SVGElement with SVGFilterPrimitiveStandardAttributes 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGFEFuncAElement.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | abstract class SVGFEFuncAElement extends SVGComponentTransferFunctionElement 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGFEFuncBElement.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | abstract class SVGFEFuncBElement extends SVGComponentTransferFunctionElement 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGFEFuncGElement.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | abstract class SVGFEFuncGElement extends SVGComponentTransferFunctionElement 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGFEFuncRElement.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | abstract class SVGFEFuncRElement extends SVGComponentTransferFunctionElement 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGFEMergeElement.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | abstract class SVGFEMergeElement extends SVGElement with SVGFilterPrimitiveStandardAttributes 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGFEMergeNodeElement.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | abstract class SVGFEMergeNodeElement extends SVGElement { 15 | def in1: SVGAnimatedString = js.native 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGFEPointLightElement.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | abstract class SVGFEPointLightElement extends SVGElement { 15 | def y: SVGAnimatedNumber = js.native 16 | 17 | def x: SVGAnimatedNumber = js.native 18 | 19 | def z: SVGAnimatedNumber = js.native 20 | } 21 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGFETileElement.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | abstract class SVGFETileElement extends SVGElement with SVGFilterPrimitiveStandardAttributes { 15 | def in1: SVGAnimatedString = js.native 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGFitToViewBox.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | @js.native 12 | trait SVGFitToViewBox extends js.Object { 13 | var viewBox: SVGAnimatedRect = js.native 14 | var preserveAspectRatio: SVGAnimatedPreserveAspectRatio = js.native 15 | } 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGLangSpace.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | @js.native 12 | trait SVGLangSpace extends js.Object { 13 | var xmllang: String = js.native 14 | var xmlspace: String = js.native 15 | } 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGMetadataElement.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | abstract class SVGMetadataElement extends SVGElement 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGPathSegClosePath.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | class SVGPathSegClosePath extends SVGPathSeg 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGPathSegCurvetoCubicSmoothAbs.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | class SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg { 15 | var y: Double = js.native 16 | var x2: Double = js.native 17 | var x: Double = js.native 18 | var y2: Double = js.native 19 | } 20 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGPathSegCurvetoCubicSmoothRel.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | class SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg { 15 | var y: Double = js.native 16 | var x2: Double = js.native 17 | var x: Double = js.native 18 | var y2: Double = js.native 19 | } 20 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGPathSegCurvetoQuadraticAbs.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | class SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg { 15 | var y: Double = js.native 16 | var y1: Double = js.native 17 | var x: Double = js.native 18 | var x1: Double = js.native 19 | } 20 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGPathSegCurvetoQuadraticRel.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | class SVGPathSegCurvetoQuadraticRel extends SVGPathSeg { 15 | var y: Double = js.native 16 | var y1: Double = js.native 17 | var x: Double = js.native 18 | var x1: Double = js.native 19 | } 20 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGPathSegCurvetoQuadraticSmoothAbs.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | class SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg { 15 | var y: Double = js.native 16 | var x: Double = js.native 17 | } 18 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGPathSegCurvetoQuadraticSmoothRel.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | class SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg { 15 | var y: Double = js.native 16 | var x: Double = js.native 17 | } 18 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGPathSegLinetoAbs.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | class SVGPathSegLinetoAbs extends SVGPathSeg { 15 | var y: Double = js.native 16 | var x: Double = js.native 17 | } 18 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGPathSegLinetoHorizontalAbs.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | class SVGPathSegLinetoHorizontalAbs extends SVGPathSeg { 15 | var x: Double = js.native 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGPathSegLinetoHorizontalRel.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | class SVGPathSegLinetoHorizontalRel extends SVGPathSeg { 15 | var x: Double = js.native 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGPathSegLinetoRel.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | class SVGPathSegLinetoRel extends SVGPathSeg { 15 | var y: Double = js.native 16 | var x: Double = js.native 17 | } 18 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGPathSegLinetoVerticalAbs.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | class SVGPathSegLinetoVerticalAbs extends SVGPathSeg { 15 | var y: Double = js.native 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGPathSegLinetoVerticalRel.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | class SVGPathSegLinetoVerticalRel extends SVGPathSeg { 15 | var y: Double = js.native 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGPathSegMovetoAbs.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | class SVGPathSegMovetoAbs extends SVGPathSeg { 15 | var y: Double = js.native 16 | var x: Double = js.native 17 | } 18 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGPathSegMovetoRel.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | class SVGPathSegMovetoRel extends SVGPathSeg { 15 | var y: Double = js.native 16 | var x: Double = js.native 17 | } 18 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGPoint.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | class SVGPoint extends js.Object { 15 | var y: Double = js.native 16 | var x: Double = js.native 17 | 18 | def matrixTransform(matrix: SVGMatrix): SVGPoint = js.native 19 | } 20 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGTSpanElement.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | /** The SVGTSpanElement interface provides access to the properties of <tspan> elements, as well as methods to 13 | * manipulate them. 14 | */ 15 | @js.native 16 | @JSGlobal 17 | abstract class SVGTSpanElement extends SVGTextPositioningElement 18 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGTextElement.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | /** The SVGTextElement interface corresponds to the <text> elements. */ 13 | @js.native 14 | @JSGlobal 15 | abstract class SVGTextElement extends SVGTextPositioningElement with SVGTransformable 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGTitleElement.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | /** The SVGTitleElement interface corresponds to the <title> element. */ 13 | @js.native 14 | @JSGlobal 15 | abstract class SVGTitleElement extends SVGElement with SVGStylable with SVGLangSpace 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SVGURIReference.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | @js.native 12 | trait SVGURIReference extends js.Object { 13 | var href: SVGAnimatedString = js.native 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/ServiceWorkerMessageEventInit.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | import scala.scalajs.js.| 5 | 6 | trait ServiceWorkerMessageEventInit extends EventInit { 7 | var data: js.UndefOr[Any] = js.undefined 8 | var origin: js.UndefOr[String] = js.undefined 9 | var lastEventId: js.UndefOr[String] = js.undefined 10 | var source: js.UndefOr[ServiceWorker | MessagePort] = js.undefined 11 | var ports: js.UndefOr[js.Array[MessagePort]] = js.undefined 12 | } 13 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/SourceBufferList.scala: -------------------------------------------------------------------------------- 1 | /** https://www.w3.org/TR/2016/CR-mediacapture-streams-20160519/ */ 2 | package org.scalajs.dom 3 | 4 | import scala.scalajs.js 5 | import scala.scalajs.js.annotation._ 6 | 7 | @js.native 8 | trait SourceBufferList extends EventTarget { 9 | def length: Double = js.native 10 | 11 | @JSBracketAccess 12 | def apply(index: Double): SourceBuffer = js.native 13 | 14 | var onaddsourcebuffer: js.Function1[Event, Any] = js.native 15 | var onremovesourcebuffer: js.Function1[Event, Any] = js.native 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/StaticRange.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | import scala.scalajs.js.annotation._ 5 | 6 | /** The DOM StaticRange interface extends AbstractRange to provide a method to specify a range of content in the DOM 7 | * whose contents don't update to reflect changes which occur within the DOM tree. 8 | * 9 | * This interface offers the same set of properties and methods as AbstractRange. 10 | * 11 | * AbstractRange and StaticRange are not available from web workers. 12 | */ 13 | @js.native 14 | @JSGlobal 15 | class StaticRange(init: StaticRangeInit) extends AbstractRange 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/StaticRangeInit.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | trait StaticRangeInit extends js.Object { 6 | 7 | /** The offset into the starting node at which the first character of the range is found. */ 8 | val startOffset: Int 9 | 10 | /** The offset into the node indicated by endOffset at which the last character in the range is located. */ 11 | val endOffset: Int 12 | 13 | /** The Node in which the starting point of the range is located. */ 14 | val startContainer: Node 15 | 16 | /** The Node in which the end point of the range is located. */ 17 | val endContainer: Node 18 | } 19 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/StorageEstimate.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | @js.native 6 | trait StorageEstimate extends js.Object { 7 | val usage: Double = js.native 8 | val quota: Double = js.native 9 | } 10 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/StorageManager.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | @js.native 6 | trait StorageManager extends js.Object { 7 | def persisted(): js.Promise[Boolean] = js.native 8 | def persist(): js.Promise[Boolean] = js.native 9 | def estimate(): js.Promise[StorageEstimate] = js.native 10 | } 11 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/StyleMedia.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | @js.native 12 | trait StyleMedia extends js.Object { 13 | def `type`: String = js.native 14 | 15 | def matchMedium(mediaquery: String): Boolean = js.native 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/TextEventInit.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | trait TextEventInit extends UIEventInit { 12 | var inputMethod: js.UndefOr[Int] = js.undefined 13 | var data: js.UndefOr[String] = js.undefined 14 | var locale: js.UndefOr[String] = js.undefined 15 | } 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/TextTrackCueList.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | class TextTrackCueList private[this] () extends DOMList[TextTrackCue] { 15 | def getCueById(id: String): TextTrackCue = js.native 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/TouchEventInit.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | trait TouchEventInit extends UIEventInit with ModifierKeyEventInit { 12 | var changedTouches: js.UndefOr[TouchList] = js.undefined 13 | var targetTouches: js.UndefOr[TouchList] = js.undefined 14 | var touches: js.UndefOr[TouchList] = js.undefined 15 | } 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/TrackEvent.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | @js.native 12 | trait TrackEvent extends Event { 13 | var track: js.Any = js.native 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/TwoDContextAttributes.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | trait TwoDContextAttributes extends js.Object { 6 | var alpha: js.UndefOr[Boolean] = js.undefined 7 | 8 | var willReadFrequently: js.UndefOr[Boolean] = js.undefined 9 | 10 | var storage: js.UndefOr[String] = js.undefined 11 | } 12 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/UIEventInit.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | trait UIEventInit extends EventInit { 12 | var detail: js.UndefOr[Int] = js.undefined 13 | var view: js.UndefOr[Window] = js.undefined 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/VideoTrack.scala: -------------------------------------------------------------------------------- 1 | /** https://www.w3.org/TR/2016/CR-mediacapture-streams-20160519/ */ 2 | package org.scalajs.dom 3 | 4 | import scala.scalajs.js 5 | 6 | @js.native 7 | trait VideoTrack extends js.Object { 8 | val id: String = js.native 9 | val kind: String = js.native 10 | val label: String = js.native 11 | val language: String = js.native 12 | var selected: Boolean = js.native 13 | } 14 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/VideoTrackList.scala: -------------------------------------------------------------------------------- 1 | /** https://www.w3.org/TR/2016/CR-mediacapture-streams-20160519/ */ 2 | package org.scalajs.dom 3 | 4 | import scala.scalajs.js 5 | import scala.scalajs.js.annotation._ 6 | 7 | @js.native 8 | trait VideoTrackList extends EventTarget { 9 | def length: Double = js.native 10 | 11 | @JSBracketAccess 12 | def apply(index: Double): VideoTrack = js.native 13 | 14 | def getTrackById(id: String): VideoTrack = js.native 15 | 16 | def selectedIndex: Double = js.native 17 | 18 | var onchange: js.Function1[Event, Any] = js.native 19 | var onaddtrack: js.Function1[Event, Any] = js.native 20 | var onremovetrack: js.Function1[Event, Any] = js.native 21 | } 22 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/WebGLBuffer.scala: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2014 Matt Seddon. This source is donated in full to the scala-js-dom project. 3 | * 4 | * Based on https://www.khronos.org/registry/webgl/specs/1.0/ 5 | */ 6 | 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | /** An opaque type representing a WebGL buffer. */ 13 | @js.native 14 | @JSGlobal 15 | class WebGLBuffer private[this] () extends js.Object 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/WebGLFramebuffer.scala: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2014 Matt Seddon. This source is donated in full to the scala-js-dom project. 3 | * 4 | * Based on https://www.khronos.org/registry/webgl/specs/1.0/ 5 | */ 6 | 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | /** An opaque type representing a WebGL framebuffer. */ 13 | @js.native 14 | @JSGlobal 15 | class WebGLFramebuffer private[this] () extends js.Object 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/WebGLProgram.scala: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2014 Matt Seddon. This source is donated in full to the scala-js-dom project. 3 | * 4 | * Based on https://www.khronos.org/registry/webgl/specs/1.0/ 5 | */ 6 | 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | /** An opaque type representing a WebGL program. */ 13 | @js.native 14 | @JSGlobal 15 | class WebGLProgram private[this] () extends js.Object 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/WebGLRenderbuffer.scala: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2014 Matt Seddon. This source is donated in full to the scala-js-dom project. 3 | * 4 | * Based on https://www.khronos.org/registry/webgl/specs/1.0/ 5 | */ 6 | 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | /** An opaque type representing a WebGL renderbuffer. */ 13 | @js.native 14 | @JSGlobal 15 | class WebGLRenderbuffer private[this] () extends js.Object 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/WebGLShader.scala: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2014 Matt Seddon. This source is donated in full to the scala-js-dom project. 3 | * 4 | * Based on https://www.khronos.org/registry/webgl/specs/1.0/ 5 | */ 6 | 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | /** An opaque type representing a WebGL shader. */ 13 | @js.native 14 | @JSGlobal 15 | class WebGLShader private[this] () extends js.Object 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/WebGLTexture.scala: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2014 Matt Seddon. This source is donated in full to the scala-js-dom project. 3 | * 4 | * Based on https://www.khronos.org/registry/webgl/specs/1.0/ 5 | */ 6 | 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | /** An opaque type representing a WebGL texture. */ 13 | @js.native 14 | @JSGlobal 15 | class WebGLTexture private[this] () extends js.Object 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/WebGLUniformLocation.scala: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2014 Matt Seddon. This source is donated in full to the scala-js-dom project. 3 | * 4 | * Based on https://www.khronos.org/registry/webgl/specs/1.0/ 5 | */ 6 | 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | /** An opaque type representing a WebGL uniform location. */ 13 | @js.native 14 | @JSGlobal 15 | class WebGLUniformLocation private[this] () extends js.Object 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/WheelEventInit.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | trait WheelEventInit extends MouseEventInit { 12 | var deltaZ: js.UndefOr[Double] = js.undefined 13 | var deltaX: js.UndefOr[Double] = js.undefined 14 | var deltaY: js.UndefOr[Double] = js.undefined 15 | var deltaMode: js.UndefOr[Int] = js.undefined 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/WindowConsole.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | @js.native 12 | trait WindowConsole extends js.Object { 13 | var console: Console = js.native 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/WindowLocalStorage.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | 11 | @js.native 12 | trait WindowLocalStorage extends js.Object { 13 | def localStorage: Storage = js.native 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/WorkerNavigator.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | /** The WorkerNavigator interface represents a subset of the [[Navigator]] interface allowed to be accessed from a 6 | * Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property 7 | * obtained by calling window.self.navigator 8 | */ 9 | @js.native 10 | trait WorkerNavigator extends NavigatorID with NavigatorOnLine with NavigatorLanguage { 11 | 12 | @deprecated("sendBeacon is not supported in web workers", "2.0.0") 13 | def sendBeacon(url: String, data: BodyInit = js.native): Boolean = js.native 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/WorkerOptions.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import scala.scalajs.js 4 | 5 | trait WorkerOptions extends js.Object { 6 | var credentials: js.UndefOr[RequestCredentials] = js.undefined 7 | var name: js.UndefOr[String] = js.undefined 8 | var `type`: js.UndefOr[WorkerType] = js.undefined 9 | } 10 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/XMLSerializer.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | class XMLSerializer extends js.Object { 15 | def serializeToString(target: Node): String = js.native 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/XPathNSResolver.scala: -------------------------------------------------------------------------------- 1 | /** All documentation for facades is thanks to Mozilla Contributors at https://developer.mozilla.org/en-US/docs/Web/API 2 | * and available under the Creative Commons Attribution-ShareAlike v2.5 or later. 3 | * http://creativecommons.org/licenses/by-sa/2.5/ 4 | * 5 | * Everything else is under the MIT License http://opensource.org/licenses/MIT 6 | */ 7 | package org.scalajs.dom 8 | 9 | import scala.scalajs.js 10 | import scala.scalajs.js.annotation._ 11 | 12 | @js.native 13 | @JSGlobal 14 | class XPathNSResolver extends js.Object { 15 | def lookupNamespaceURI(prefix: String): String = js.native 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/crypto/GlobalCrypto.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.crypto 2 | 3 | import scala.scalajs.js 4 | import scala.scalajs.js.annotation._ 5 | 6 | @deprecated("use dom.crypto instead", "2.0.0") 7 | @js.native 8 | @JSGlobalScope 9 | object GlobalCrypto extends js.Object { 10 | val crypto: Crypto = js.native 11 | } 12 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/experimental/Fullscreen.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.experimental 2 | 3 | @deprecated("the extensions provided by Fullscreen are now available by default", "2.0.0") 4 | object Fullscreen 5 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/experimental/Vibration.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.experimental 2 | 3 | @deprecated("the extensions of Vibration are now available by default", "2.0.0") 4 | object Vibration 5 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/experimental/beacon/package.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs 2 | package dom 3 | package experimental 4 | 5 | package object beacon { 6 | 7 | @deprecated("use dom.Navigator instead", "2.0.0") 8 | type BeaconNavigator = dom.Navigator 9 | 10 | @deprecated("use dom.WorkerNavigator instead", "2.0.0") 11 | type BeaconWorkerNavigator = dom.WorkerNavigator 12 | 13 | @deprecated("use dom.Navigator directly instead", "2.0.0") 14 | def toBeaconNavigator(n: Navigator): BeaconNavigator = 15 | n 16 | 17 | @deprecated("use dom.WorkerNavigator directly instead", "2.0.0") 18 | def toBeaconWorkerNavigator(n: WorkerNavigator): BeaconWorkerNavigator = 19 | n 20 | 21 | } 22 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/experimental/cachestorage/package.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs 2 | package dom.experimental 3 | 4 | package object cachestorage { 5 | 6 | @deprecated("use dom.CacheQueryOptions instead", "2.0.0") 7 | type CacheQueryOptions = dom.CacheQueryOptions 8 | 9 | @deprecated("use dom.CacheStorage instead", "2.0.0") 10 | type CacheStorage = dom.CacheStorage 11 | 12 | @deprecated("use dom.Cache instead", "2.0.0") 13 | type Cache = dom.Cache 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/experimental/domparser/package.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs 2 | package dom.experimental 3 | 4 | package object domparser { 5 | 6 | @deprecated("use dom.DOMParser instead", "2.0.0") 7 | type DOMParser = dom.DOMParser 8 | 9 | @deprecated("use dom.MIMEType instead", "2.0.0") 10 | type SupportedType = dom.MIMEType 11 | 12 | @deprecated("use dom.MIMEType instead", "2.0.0") 13 | val SupportedType = dom.MIMEType 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/experimental/sharedworkers/package.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.experimental 2 | 3 | import org.scalajs.dom 4 | 5 | package object sharedworkers { 6 | 7 | @deprecated("use dom.SharedWorker instead", "2.0.0") 8 | type SharedWorker = dom.SharedWorker 9 | 10 | @deprecated("use dom.SharedWorker instead", "2.0.0") 11 | val SharedWorker = dom.SharedWorker 12 | 13 | @deprecated("use dom.SharedWorkerGlobalScope instead", "2.0.0") 14 | type SharedWorkerGlobalScope = dom.SharedWorkerGlobalScope 15 | 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/experimental/storage/package.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs 2 | package dom.experimental 3 | 4 | /** https://storage.spec.whatwg.org/ */ 5 | package object storage { 6 | 7 | @deprecated("use dom.Navigator directly instead", "2.0.0") 8 | def toNavigatorStorage(navigator: dom.Navigator): dom.Navigator = 9 | navigator 10 | 11 | @deprecated("use dom.Navigator directly instead", "2.0.0") 12 | type NavigatorStorage = dom.Navigator 13 | 14 | @deprecated("use dom.StorageManager instead", "2.0.0") 15 | type StorageManager = dom.StorageManager 16 | 17 | @deprecated("use dom.StorageEstimate instead", "2.0.0") 18 | type StorageEstimate = dom.StorageEstimate 19 | 20 | } 21 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/ext/package.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | import org.scalajs.dom 4 | 5 | package object ext { 6 | 7 | @deprecated("use dom.KeyValue instead", "2.0.0") 8 | val KeyValue: dom.KeyValue.type = dom.KeyValue 9 | 10 | @deprecated("use dom.KeyCode instead", "2.0.0") 11 | val KeyCode: dom.KeyCode.type = dom.KeyCode 12 | 13 | @deprecated("use dom.KeyLocation instead", "2.0.0") 14 | val KeyLocation: dom.KeyLocation.type = dom.KeyLocation 15 | } 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/ANGLE_instanced_arrays.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl 2 | 3 | /** Enables array instancing (Khronos Extension) 4 | * 5 | * @see 6 | * https://www.khronos.org/registry/webgl/extensions/ANGLE_instanced_arrays/ 7 | */ 8 | object ANGLE_instanced_arrays 9 | extends WebGLExtensionIdentifier[extensions.ANGLEInstancedArrays]("ANGLE_instanced_arrays") 10 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/EXT_blend_minmax.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl 2 | 3 | /** Extends `blendEquation` to support `MIN_EXT` and `MAX_EXT`. (Khronos Extension) 4 | * 5 | * @see 6 | * https://www.khronos.org/registry/webgl/extensions/EXT_blend_minmax/ 7 | */ 8 | object EXT_blend_minmax extends WebGLExtensionIdentifier[extensions.EXTBlendMinmax]("EXT_blend_minmax") 9 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/EXT_color_buffer_half_float.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl 2 | 3 | /** Enables 16-bit float colour buffer support. (Community Extension) 4 | * 5 | * @see 6 | * https://www.khronos.org/registry/webgl/extensions/EXT_color_buffer_half_float/ 7 | */ 8 | object EXT_color_buffer_half_float 9 | extends WebGLExtensionIdentifier[extensions.EXTColorBufferHalfFloat]("EXT_color_buffer_half_float") 10 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/EXT_disjoint_timer_query.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl 2 | 3 | /** Provides timing support to enable profiling of GL calls. (Community Extension) 4 | * 5 | * @see 6 | * https://www.khronos.org/registry/gles/extensions/EXT/EXT_disjoint_timer_query.txt 7 | */ 8 | object EXT_disjoint_timer_query 9 | extends WebGLExtensionIdentifier[extensions.EXTDisjointTimerQuery]("EXT_disjoint_timer_query") 10 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/EXT_frag_depth.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl 2 | 3 | /** Extends GLSL to support assigning the fragments depth via `gl_FragDepthEXT`. (Khronos Extension) 4 | * 5 | * @see 6 | * https://www.khronos.org/registry/webgl/extensions/EXT_frag_depth/ 7 | */ 8 | object EXT_frag_depth extends WebGLExtensionIdentifier[extensions.EXTFragDepth]("EXT_frag_depth") 9 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/EXT_sRGB.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl 2 | 3 | /** Enables nonlinear sRGB blending over framebuffers. (Community Extension) 4 | * 5 | * @see 6 | * https://www.khronos.org/registry/webgl/extensions/EXT_sRGB/ 7 | */ 8 | object EXT_sRGB extends WebGLExtensionIdentifier[extensions.EXTsRGB]("EXT_sRGB") 9 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/EXT_shader_texture_lod.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl 2 | 3 | /** Provides fragment shaders with explicit LOD control for texture reads. (Khronos Extension) 4 | * 5 | * @see 6 | * https://www.khronos.org/registry/webgl/extensions/EXT_shader_texture_lod/ 7 | */ 8 | object EXT_shader_texture_lod extends WebGLExtensionIdentifier[extensions.EXTShaderTextureLOD]("EXT_shader_texture_lod") 9 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/EXT_texture_filter_anisotropic.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl 2 | 3 | /** Adds anisotropic texture filtering support. (Khronos Extension) 4 | * 5 | * @see 6 | * https://www.khronos.org/registry/webgl/extensions/EXT_texture_filter_anisotropic/ 7 | */ 8 | object EXT_texture_filter_anisotropic 9 | extends WebGLExtensionIdentifier[extensions.EXTTextureFilterAnisotropic]("EXT_texture_filter_anisotropic") 10 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/OES_element_index_uint.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl 2 | 3 | /** Extends `drawElements` to support the type `UNSIGNED_INT`. (Khronos Extension) 4 | * 5 | * @see 6 | * https://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/ 7 | */ 8 | object OES_element_index_uint extends WebGLExtensionIdentifier[extensions.OESElementIndexUint]("OES_element_index_uint") 9 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/OES_standard_derivatives.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl 2 | 3 | /** Provides additional first derivative information in fragment shaders. (Khronos Extension) 4 | * 5 | * @see 6 | * https://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/ 7 | */ 8 | object OES_standard_derivatives 9 | extends WebGLExtensionIdentifier[extensions.OESStandardDerivatives]("OES_standard_derivatives") 10 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/OES_texture_float.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl 2 | 3 | /** Provides 32-bit floating point texture support. (Khronos Extension) 4 | * 5 | * @see 6 | * https://www.khronos.org/registry/webgl/extensions/OES_texture_float/ 7 | */ 8 | object OES_texture_float extends WebGLExtensionIdentifier[extensions.OESTextureFloat]("OES_texture_float") 9 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/OES_texture_float_linear.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl 2 | 3 | /** Extends OES_texture_float to support linear and mipmap minification filters. (Khronos Extension) 4 | * 5 | * @see 6 | * https://www.khronos.org/registry/gles/extensions/OES/OES_texture_float_linear.txt 7 | */ 8 | object OES_texture_float_linear 9 | extends WebGLExtensionIdentifier[extensions.OESTextureFloatLinear]("OES_texture_float_linear") 10 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/OES_texture_half_float.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl 2 | 3 | /** Provides 16-bit floating point texture support. (Khronos Extension) 4 | * 5 | * @see 6 | * https://www.khronos.org/registry/webgl/extensions/OES_texture_half_float/ 7 | */ 8 | object OES_texture_half_float extends WebGLExtensionIdentifier[extensions.OESTextureHalfFloat]("OES_texture_half_float") 9 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/OES_texture_half_float_linear.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl 2 | 3 | /** Extends OES_texture_half_float to support linear and mipmap minification filters. (Khronos Extension) 4 | * 5 | * @see 6 | * https://www.khronos.org/registry/gles/extensions/OES/OES_texture_float_linear.txt 7 | */ 8 | object OES_texture_half_float_linear 9 | extends WebGLExtensionIdentifier[extensions.OESTextureHalfFloatLinear]("OES_texture_half_float_linear") 10 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/OES_vertex_array_object.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl 2 | 3 | /** Provides Vertex Array Objects (VAOs). (Khronos Extension) 4 | * 5 | * @see 6 | * https://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ 7 | */ 8 | object OES_vertex_array_object 9 | extends WebGLExtensionIdentifier[extensions.OESVertexArrayObject]("OES_vertex_array_object") 10 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/WEBGL_color_buffer_float.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl 2 | 3 | /** Enables 32-bit float colour buffer support. (Community Extension) 4 | * 5 | * @see 6 | * https://www.khronos.org/registry/webgl/extensions/EXT_color_buffer_float/ 7 | */ 8 | object WEBGL_color_buffer_float 9 | extends WebGLExtensionIdentifier[extensions.WEBGLColorBufferFloat]("WEBGL_color_buffer_float") 10 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/WEBGL_compressed_texture_atc.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl 2 | 3 | /** Provides ATC texture compression support. (Community Extension) 4 | * 5 | * @see 6 | * https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_atc/ 7 | */ 8 | object WEBGL_compressed_texture_atc 9 | extends WebGLExtensionIdentifier[extensions.WebGLCompressedTextureATC]("WEBGL_compressed_texture_atc") 10 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/WEBGL_compressed_texture_etc1.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl 2 | 3 | /** Provides ETC1 texture compression support. (Community Extension) 4 | * 5 | * @see 6 | * https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_pvrtc/ 7 | */ 8 | object WEBGL_compressed_texture_etc1 9 | extends WebGLExtensionIdentifier[extensions.WEBGLCompressedTextureETC1]("WEBGL_compressed_texture_etc1") 10 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/WEBGL_compressed_texture_pvrtc.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl 2 | 3 | /** Provides PVRTC texture compression support. (Community Extension) 4 | * 5 | * @see 6 | * https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_pvrtc/ 7 | */ 8 | object WEBGL_compressed_texture_pvrtc 9 | extends WebGLExtensionIdentifier[extensions.WebGLCompressedTexturePVRTC]("WEBGL_compressed_texture_pvrtc") 10 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/WEBGL_compressed_texture_s3tc.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl 2 | 3 | /** Provides S3TC texture compression support. (Khronos Extension) 4 | * 5 | * @see 6 | * https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3tc/ 7 | */ 8 | object WEBGL_compressed_texture_s3tc 9 | extends WebGLExtensionIdentifier[extensions.WebGLCompressedTextureS3TC]("WEBGL_compressed_texture_s3tc") 10 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/WEBGL_debug_renderer_info.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl 2 | 3 | /** Provides additional driver and renderer information. (Khronos Extension) 4 | * 5 | * @see 6 | * https://www.khronos.org/registry/webgl/extensions/WEBGL_debug_renderer_info/ 7 | */ 8 | object WEBGL_debug_renderer_info 9 | extends WebGLExtensionIdentifier[extensions.WebGLDebugRendererInfo]("WEBGL_debug_renderer_info") 10 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/WEBGL_debug_shaders.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl 2 | 3 | /** Inspect the transpilation output of GLSL onto the underlying shader language. (Khronos Extension) 4 | * 5 | * @see 6 | * https://www.khronos.org/registry/webgl/extensions/WEBGL_debug_shaders/ 7 | */ 8 | object WEBGL_debug_shaders extends WebGLExtensionIdentifier[extensions.WebGLDebugShaders]("WEBGL_debug_shaders") 9 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/WEBGL_depth_texture.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl 2 | 3 | /** Provides depth and stencil texture support. (Khronos Extension) 4 | * 5 | * @see 6 | * https://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/ 7 | */ 8 | object WEBGL_depth_texture extends WebGLExtensionIdentifier[extensions.WebGLDepthTexture]("WEBGL_depth_texture") 9 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/WEBGL_draw_buffers.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl 2 | 3 | /** Enables multiple draw buffer support. (Khronos Extension) 4 | * 5 | * @see 6 | * https://www.khronos.org/registry/webgl/extensions/WEBGL_draw_buffers/ 7 | */ 8 | object WEBGL_draw_buffers extends WebGLExtensionIdentifier[extensions.WEBGLDrawBuffers]("WEBGL_draw_buffers") 9 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/WEBGL_lose_context.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl 2 | 3 | /** Allows simulation of losing the WebGL context to aid debugging. (Khronos Extension) 4 | * 5 | * @see 6 | * https://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/ 7 | */ 8 | object WEBGL_lose_context extends WebGLExtensionIdentifier[extensions.WebGLLoseContext]("WEBGL_lose_context") 9 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/WebGLExtensionIdentifier.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl 2 | 3 | /** Abstract class that maps a string enum onto a WebGL extension type 4 | * 5 | * @param value 6 | * the string enum to pass the underlying `getExtension` 7 | * @tparam T 8 | * the type that will be returned by the `getExtension` 9 | */ 10 | abstract class WebGLExtensionIdentifier[T](val value: String) 11 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/extensions/ANGLEInstancedArrays.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl.extensions 2 | 3 | import scala.scalajs.js 4 | 5 | /** Enables array instancing (Khronos Extension) 6 | * 7 | * @see 8 | * https://www.khronos.org/registry/webgl/extensions/ANGLE_instanced_arrays/ 9 | */ 10 | @js.native 11 | trait ANGLEInstancedArrays extends js.Object { 12 | val VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: Int = js.native 13 | 14 | def drawArraysInstancedANGLE(mode: Int, first: Int, count: Int, primcount: Int): Unit = js.native 15 | 16 | def drawElementsInstancedANGLE(mode: Int, count: Int, `type`: Int, offset: Int, primcount: Int): Unit = js.native 17 | 18 | def vertexAttribDivisorANGLE(index: Int, divisor: Int): Unit = js.native 19 | } 20 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/extensions/EXTBlendMinmax.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl.extensions 2 | 3 | import scala.scalajs.js 4 | 5 | /** Extends `blendEquation` to support `MIN_EXT` and `MAX_EXT`. (Khronos Extension) 6 | * 7 | * @see 8 | * https://www.khronos.org/registry/webgl/extensions/EXT_blend_minmax/ 9 | */ 10 | @js.native 11 | trait EXTBlendMinmax extends js.Object { 12 | val MIN_EXT: Int = js.native 13 | val MAX_EXT: Int = js.native 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/extensions/EXTColorBufferHalfFloat.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl.extensions 2 | 3 | import scala.scalajs.js 4 | 5 | /** Enables 16-bit float colour buffer support. (Community Extension) 6 | * 7 | * @see 8 | * https://www.khronos.org/registry/webgl/extensions/EXT_color_buffer_half_float/ 9 | */ 10 | @js.native 11 | trait EXTColorBufferHalfFloat extends js.Object { 12 | val RGBA16F_EXT: Int = js.native 13 | val RGB16F_EXT: Int = js.native 14 | val FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: Int = js.native 15 | val UNSIGNED_NORMALIZED_EXT: Int = js.native 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/extensions/EXTFragDepth.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl.extensions 2 | 3 | import scala.scalajs.js 4 | 5 | /** Extends GLSL to support assigning the fragments depth via `gl_FragDepthEXT`. (Khronos Extension) 6 | * 7 | * @see 8 | * https://www.khronos.org/registry/webgl/extensions/EXT_frag_depth/ 9 | */ 10 | @js.native 11 | trait EXTFragDepth extends js.Object 12 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/extensions/EXTShaderTextureLOD.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl.extensions 2 | 3 | import scala.scalajs.js 4 | 5 | /** Provides fragment shaders with explicit LOD control for texture reads. (Khronos Extension) 6 | * 7 | * @see 8 | * https://www.khronos.org/registry/webgl/extensions/EXT_shader_texture_lod/ 9 | */ 10 | @js.native 11 | trait EXTShaderTextureLOD extends js.Object 12 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/extensions/EXTTextureFilterAnisotropic.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl.extensions 2 | 3 | import scala.scalajs.js 4 | 5 | /** Adds anisotropic texture filtering support. (Khronos Extension) 6 | * 7 | * @see 8 | * https://www.khronos.org/registry/webgl/extensions/EXT_texture_filter_anisotropic/ 9 | */ 10 | @js.native 11 | trait EXTTextureFilterAnisotropic extends js.Object { 12 | val TEXTURE_MAX_ANISOTROPY_EXT: Int = js.native 13 | val MAX_TEXTURE_MAX_ANISOTROPY_EXT: Int = js.native 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/extensions/EXTsRGB.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl.extensions 2 | 3 | import scala.scalajs.js 4 | 5 | /** Enables nonlinear sRGB blending over framebuffers. (Community Extension) 6 | * 7 | * @see 8 | * https://www.khronos.org/registry/webgl/extensions/EXT_sRGB/ 9 | */ 10 | @js.native 11 | trait EXTsRGB extends js.Object { 12 | val SRGB_EXT: Int = js.native 13 | val SRGB_ALPHA_EXT: Int = js.native 14 | val SRGB8_ALPHA8_EXT: Int = js.native 15 | val FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: Int = js.native 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/extensions/OESElementIndexUint.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl.extensions 2 | 3 | import scala.scalajs.js 4 | 5 | /** Extends `drawElements` to support the type `UNSIGNED_INT`. (Khronos Extension) 6 | * 7 | * @see 8 | * https://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/ 9 | */ 10 | @js.native 11 | trait OESElementIndexUint extends js.Object 12 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/extensions/OESStandardDerivatives.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl.extensions 2 | 3 | import scala.scalajs.js 4 | 5 | /** Provides additional first derivative information in fragment shaders. (Khronos Extension) 6 | * 7 | * @see 8 | * https://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/ 9 | */ 10 | @js.native 11 | trait OESStandardDerivatives extends js.Object { 12 | val FRAGMENT_SHADER_DERIVATIVE_HINT_OES: Int = js.native 13 | } 14 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/extensions/OESTextureFloat.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl.extensions 2 | 3 | import scala.scalajs.js 4 | 5 | /** Provides 32-bit floating point texture support. (Khronos Extension) 6 | * 7 | * @see 8 | * https://www.khronos.org/registry/webgl/extensions/OES_texture_float/ 9 | */ 10 | @js.native 11 | trait OESTextureFloat extends js.Object 12 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/extensions/OESTextureFloatLinear.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl.extensions 2 | 3 | import scala.scalajs.js 4 | 5 | /** Extends OES_texture_float to support linear and mipmap minification filters. (Khronos Extension) 6 | * 7 | * @see 8 | * https://www.khronos.org/registry/gles/extensions/OES/OES_texture_float_linear.txt 9 | */ 10 | @js.native 11 | trait OESTextureFloatLinear extends js.Object 12 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/extensions/OESTextureHalfFloat.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl.extensions 2 | 3 | import scala.scalajs.js 4 | 5 | /** Provides 32-bit floating point texture support. (Khronos Extension) 6 | * 7 | * @see 8 | * https://www.khronos.org/registry/webgl/extensions/OES_texture_float/ 9 | */ 10 | @js.native 11 | trait OESTextureHalfFloat extends js.Object { 12 | val HALF_FLOAT_OES: Int = js.native 13 | } 14 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/extensions/OESTextureHalfFloatLinear.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl.extensions 2 | 3 | import scala.scalajs.js 4 | 5 | /** Extends OES_texture_half_float to support linear and mipmap minification filters. (Khronos Extension) 6 | * 7 | * @see 8 | * https://www.khronos.org/registry/gles/extensions/OES/OES_texture_float_linear.txt 9 | */ 10 | @js.native 11 | trait OESTextureHalfFloatLinear extends js.Object 12 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/extensions/WEBGLColorBufferFloat.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl.extensions 2 | 3 | import scala.scalajs.js 4 | 5 | /** Enables 32-bit float colour buffer support. (Community Extension) 6 | * 7 | * @see 8 | * https://www.khronos.org/registry/webgl/extensions/EXT_color_buffer_float/ 9 | */ 10 | @js.native 11 | trait WEBGLColorBufferFloat extends js.Object { 12 | val RGBA32F_EXT: Int = js.native 13 | val FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: Int = js.native 14 | val UNSIGNED_NORMALIZED_EXT: Int = js.native 15 | } 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/extensions/WEBGLCompressedTextureETC1.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl.extensions 2 | 3 | import scala.scalajs.js 4 | 5 | /** Provides ETC1 texture compression support. (Community Extension) 6 | * 7 | * @see 8 | * https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_pvrtc/ 9 | */ 10 | @js.native 11 | trait WEBGLCompressedTextureETC1 extends js.Object { 12 | val COMPRESSED_RGB_ETC1_WEBGL: Int = js.native 13 | } 14 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/extensions/WebGLCompressedTextureATC.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl.extensions 2 | 3 | import scala.scalajs.js 4 | 5 | /** Provides ATC texture compression support. (Community Extension) 6 | * 7 | * @see 8 | * https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_atc/ 9 | */ 10 | @js.native 11 | trait WebGLCompressedTextureATC extends js.Object { 12 | val COMPRESSED_RGB_ATC_WEBGL: Int = js.native 13 | val COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL: Int = js.native 14 | val COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL: Int = js.native 15 | } 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/extensions/WebGLCompressedTexturePVRTC.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl.extensions 2 | 3 | import scala.scalajs.js 4 | 5 | /** Provides PVRTC texture compression support. (Community Extension) 6 | * 7 | * @see 8 | * https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_pvrtc/ 9 | */ 10 | @js.native 11 | trait WebGLCompressedTexturePVRTC extends js.Object { 12 | val COMPRESSED_RGB_PVRTC_4BPPV1_IMG: Int = js.native 13 | val COMPRESSED_RGB_PVRTC_2BPPV1_IMG: Int = js.native 14 | val COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: Int = js.native 15 | val COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: Int = js.native 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/extensions/WebGLCompressedTextureS3TC.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl.extensions 2 | 3 | import scala.scalajs.js 4 | 5 | /** Provides S3TC texture compression support. (Khronos Extension) 6 | * 7 | * @see 8 | * https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3tc/ 9 | */ 10 | @js.native 11 | trait WebGLCompressedTextureS3TC extends js.Object { 12 | val COMPRESSED_RGB_S3TC_DXT1_EXT: Int = js.native 13 | val COMPRESSED_RGBA_S3TC_DXT1_EXT: Int = js.native 14 | val COMPRESSED_RGBA_S3TC_DXT3_EXT: Int = js.native 15 | val COMPRESSED_RGBA_S3TC_DXT5_EXT: Int = js.native 16 | } 17 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/extensions/WebGLDebugRendererInfo.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl.extensions 2 | 3 | import scala.scalajs.js 4 | 5 | /** Provides additional driver and renderer information. (Khronos Extension) 6 | * 7 | * @see 8 | * https://www.khronos.org/registry/webgl/extensions/WEBGL_debug_renderer_info/ 9 | */ 10 | @js.native 11 | trait WebGLDebugRendererInfo extends js.Object { 12 | val UNMASKED_VENDOR_WEBGL: Int = js.native 13 | val UNMASKED_RENDERER_WEBGL: Int = js.native 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/extensions/WebGLDebugShaders.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl.extensions 2 | 3 | import org.scalajs.dom.WebGLShader 4 | import scala.scalajs.js 5 | 6 | /** Inspect the transpilation output of GLSL onto the underlying shader language. (Khronos Extension) 7 | * 8 | * @see 9 | * https://www.khronos.org/registry/webgl/extensions/WEBGL_debug_shaders/ 10 | */ 11 | @js.native 12 | trait WebGLDebugShaders extends js.Object { 13 | def getTranslatedShaderSource(shader: WebGLShader): String = js.native 14 | } 15 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/extensions/WebGLDepthTexture.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl.extensions 2 | 3 | import scala.scalajs.js 4 | 5 | /** Provides depth and stencil texture support. (Khronos Extension) 6 | * 7 | * @see 8 | * https://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/ 9 | */ 10 | @js.native 11 | trait WebGLDepthTexture extends js.Object { 12 | val UNSIGNED_INT_24_8_WEBGL: Int = js.native 13 | } 14 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/extensions/WebGLLoseContext.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl.extensions 2 | 3 | import scala.scalajs.js 4 | 5 | /** Allows simulation of losing the WebGL context to aid debugging. (Khronos Extension) 6 | * 7 | * @see 8 | * https://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/ 9 | */ 10 | @js.native 11 | trait WebGLLoseContext extends js.Object { 12 | def loseContext(): Unit = js.native 13 | 14 | def restoreContext(): Unit = js.native 15 | } 16 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/extensions/WebGLTimerQueryEXT.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl.extensions 2 | 3 | import scala.scalajs.js 4 | 5 | /** A WebGL timer query. As used by `EXT_disjoint_timer_query` */ 6 | @js.native 7 | trait WebGLTimerQueryEXT extends js.Object 8 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/extensions/WebGLVertexArrayObjectOES.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.webgl.extensions 2 | 3 | import scala.scalajs.js 4 | 5 | /** A vertex array object, as used by `OES_vertex_array_object`. */ 6 | @js.native 7 | trait WebGLVertexArrayObjectOES extends js.Object 8 | -------------------------------------------------------------------------------- /dom/src/main/scala/org/scalajs/dom/webgl/package.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom 2 | 3 | /** Short aliases of all the dom.WebGLThing classes */ 4 | package object webgl { 5 | type ActiveInfo = WebGLActiveInfo 6 | type Buffer = WebGLBuffer 7 | type ContextAttributes = WebGLContextAttributes 8 | type Framebuffer = WebGLFramebuffer 9 | type Program = WebGLProgram 10 | type Renderbuffer = WebGLRenderbuffer 11 | type RenderingContext = WebGLRenderingContext 12 | type Shader = WebGLShader 13 | type ShaderPrecisionFormat = WebGLShaderPrecisionFormat 14 | type Texture = WebGLTexture 15 | type UniformLocation = WebGLUniformLocation 16 | @inline def RenderingContext = WebGLRenderingContext 17 | } 18 | -------------------------------------------------------------------------------- /project/Dependencies.scala: -------------------------------------------------------------------------------- 1 | import sbt._ 2 | import sbt.Keys._ 3 | import scalafix.sbt.BuildInfo.scalafixVersion 4 | 5 | object Dependencies { 6 | 7 | object Ver { 8 | val scala211 = "2.11.12" 9 | val scala212 = "2.12.15" 10 | val scala213 = "2.13.6" 11 | val scala3 = "3.1.3" 12 | } 13 | 14 | object Dep { 15 | val scalafixCore = Def.setting("ch.epfl.scala" %% "scalafix-core" % scalafixVersion cross CrossVersion.for3Use2_13) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /project/build.properties: -------------------------------------------------------------------------------- 1 | sbt.version=1.9.9 2 | -------------------------------------------------------------------------------- /project/plugins.sbt: -------------------------------------------------------------------------------- 1 | libraryDependencies += "org.scala-js" %% "scalajs-env-jsdom-nodejs" % "1.1.0" 2 | libraryDependencies += "org.scala-js" %% "scalajs-env-selenium" % "1.1.1" 3 | 4 | addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.10.4") 5 | addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.13.0") 6 | addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12") 7 | addSbtPlugin("com.lihaoyi" % "scalatex-sbt-plugin" % "0.3.11") 8 | addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.7.1") 9 | addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2") 10 | -------------------------------------------------------------------------------- /scalafix.sbt: -------------------------------------------------------------------------------- 1 | ThisBuild / semanticdbEnabled := true 2 | ThisBuild / semanticdbVersion := scalafixSemanticdb.revision 3 | ThisBuild / scalafixScalaBinaryVersion := CrossVersion.binaryScalaVersion(scalaVersion.value) 4 | 5 | ThisBuild / scalacOptions ++= { 6 | if (scalaVersion.value startsWith "2") 7 | "-Yrangepos" :: Nil 8 | else 9 | Nil 10 | } 11 | 12 | ThisBuild / scalafixDependencies ++= Seq( 13 | "com.github.liancheng" %% "organize-imports" % "0.5.0" 14 | ) 15 | -------------------------------------------------------------------------------- /scalafix/src/main/resources/META-INF/services/scalafix.v1.Rule: -------------------------------------------------------------------------------- 1 | org.scalajs.dom.scalafix.DefaultFacadeArgs 2 | org.scalajs.dom.scalafix.GenerateApiReport 3 | -------------------------------------------------------------------------------- /tests-chrome/src/test/scala/org/scalajs/dom/tests/chrome/ChromeTests.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.tests.chrome 2 | 3 | import org.scalajs.dom.tests.shared._ 4 | import org.scalajs.dom.tests.webworker._ 5 | 6 | class ChromeTests extends SharedTests with WebWorkerTests with BrowserTests -------------------------------------------------------------------------------- /tests-firefox/src/test/scala/org/scalajs/dom/tests/firefox/FirefoxTests.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.tests.firefox 2 | 3 | import org.scalajs.dom.tests.shared._ 4 | import org.scalajs.dom.tests.webworker._ 5 | 6 | class FirefoxTests extends SharedTests with WebWorkerTests with BrowserTests -------------------------------------------------------------------------------- /tests-node-jsdom/src/test/scala/org/scalajs/dom/tests/node/jsdom/NodeJsdomTests.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.tests.node.jsdom 2 | 3 | import org.scalajs.dom.tests.shared._ 4 | 5 | class NodeJsdomTests extends SharedTests 6 | -------------------------------------------------------------------------------- /tests-webworker/src/main/scala/org/scalajs/dom/tests/webworker/Protocol.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.tests.webworker 2 | 3 | import scala.scalajs.js 4 | 5 | object Protocol { 6 | 7 | type MsgId = Int 8 | type Message = js.Tuple2[MsgId, String] 9 | 10 | def Message(id: MsgId, data: String): Message = 11 | js.Tuple2(id, data) 12 | 13 | final val ServerStarted: MsgId = -1 14 | } 15 | -------------------------------------------------------------------------------- /tests-webworker/src/main/scala/org/scalajs/dom/tests/webworker/WebWorkerCmd.scala: -------------------------------------------------------------------------------- 1 | package org.scalajs.dom.tests.webworker 2 | 3 | // ===================================================================================================================== 4 | sealed abstract class WebWorkerCmd { 5 | def id = toString 6 | } 7 | 8 | object WebWorkerCmd { 9 | 10 | case object SayHello extends WebWorkerCmd 11 | case object TestConsole extends WebWorkerCmd 12 | case object TestIdb extends WebWorkerCmd 13 | 14 | def byId(id: String): WebWorkerCmd = 15 | id match { 16 | case "SayHello" => SayHello 17 | case "TestConsole" => TestConsole 18 | case "TestIdb" => TestIdb 19 | } 20 | } 21 | --------------------------------------------------------------------------------