Implement RFC-413 (#18749)
* Implement RFC 413 * Implement RFC 413 * Implement RFC 413 * Implement RFC 413 * https://github.com/nim-lang/Nim/pull/18749#discussion_r696320995 * Update lib/js/dom_extensions.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * Update lib/js/dom_extensions.nim * https://github.com/nim-lang/Nim/pull/18749#discussion_r696913310 Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
This commit is contained in:
parent
98f7254fb2
commit
041edaa1df
4 changed files with 8 additions and 5 deletions
|
|
@ -371,6 +371,9 @@
|
||||||
|
|
||||||
- Added `dom.setInterval`, `dom.clearInterval` overloads.
|
- Added `dom.setInterval`, `dom.clearInterval` overloads.
|
||||||
|
|
||||||
|
- Merged `dom_extensions` module into `dom` module,
|
||||||
|
it was a module with a single line, see https://github.com/nim-lang/RFCs/issues/413
|
||||||
|
|
||||||
- Allow reading parameters when compiling for Nintendo Switch.
|
- Allow reading parameters when compiling for Nintendo Switch.
|
||||||
|
|
||||||
- Deprecated `sequtils.delete` and added an overload taking a `Slice` that raises a defect
|
- Deprecated `sequtils.delete` and added an overload taking a `Slice` that raises a defect
|
||||||
|
|
|
||||||
|
|
@ -1771,3 +1771,6 @@ since (1, 3):
|
||||||
## https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL
|
## https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL
|
||||||
proc readAsText*(f: FileReader, b: Blob|File, encoding = cstring"UTF-8") {.importcpp: "#.readAsText(#, #)".}
|
proc readAsText*(f: FileReader, b: Blob|File, encoding = cstring"UTF-8") {.importcpp: "#.readAsText(#, #)".}
|
||||||
## https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsText
|
## https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsText
|
||||||
|
|
||||||
|
since (1, 5):
|
||||||
|
proc elementsFromPoint*(n: DocumentOrShadowRoot; x, y: float): seq[Element] {.importcpp.}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
import std/dom
|
import std/dom
|
||||||
|
export elementsFromPoint
|
||||||
{.push importcpp.}
|
{.deprecated: "use `std/dom` instead".}
|
||||||
proc elementsFromPoint*(n: DocumentOrShadowRoot; x, y: float): seq[Element]
|
|
||||||
{.pop.}
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ discard """
|
||||||
import
|
import
|
||||||
asyncjs,
|
asyncjs,
|
||||||
dom,
|
dom,
|
||||||
dom_extensions,
|
|
||||||
jsconsole,
|
jsconsole,
|
||||||
jsffi,
|
jsffi,
|
||||||
jsre
|
jsre
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue