File tree 2 files changed +39
-0
lines changed
dom/src/main/scala/org/scalajs/dom
2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
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 DOM StaticRange interface extends AbstractRange to provide a method to specify a range of content in the DOM
13
+ * whose contents don't update to reflect changes which occur within the DOM tree.
14
+ *
15
+ * This interface offers the same set of properties and methods as AbstractRange.
16
+ *
17
+ * AbstractRange and StaticRange are not available from web workers.
18
+ */
19
+ @ js.native
20
+ @ JSGlobal
21
+ class StaticRange (init : StaticRangeInit ) extends AbstractRange
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments