@neptune3d/dom 0.0.14 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # neptune3d/dom
1
+ # @neptune3d/dom
2
2
 
3
3
  Helper classes and functions for fluent DOM manipulation, styling, and event handling.
4
4
 
@@ -9,13 +9,13 @@ Helper classes and functions for fluent DOM manipulation, styling, and event han
9
9
  Install the package:
10
10
 
11
11
  ```bash
12
- npm install neptune3d/dom
12
+ npm install @neptune3d/dom
13
13
  ```
14
14
 
15
15
  ## ✨ Create Elements
16
16
 
17
17
  ```ts
18
- import { $, $body } from "neptune3d/dom";
18
+ import { $, $body } from "@neptune3d/dom";
19
19
 
20
20
  const div = $("div")
21
21
  .text("Hello world")
@@ -44,7 +44,7 @@ $body().add(svg);
44
44
  ## 📋 Input Helpers
45
45
 
46
46
  ```ts
47
- import { $input } from "neptune3d/dom";
47
+ import { $input } from "@neptune3d/dom";
48
48
 
49
49
  const checkbox = $input("checkbox").on("change", (e) => {
50
50
  console.log("Checked:", checkbox.getChecked());
@@ -56,7 +56,7 @@ $body().add(checkbox);
56
56
  ## 🎨 CSS Stylesheet
57
57
 
58
58
  ```ts
59
- import { StyleSheet } from "neptune3d/dom";
59
+ import { StyleSheet } from "@neptune3d/dom";
60
60
 
61
61
  const sheet = StyleSheet.getSheet();
62
62
 
@@ -83,7 +83,7 @@ rule.focus().outline("1px dashed blue");
83
83
  ## 🌍 Global Event Wrappers
84
84
 
85
85
  ```ts
86
- import { $window, $document } from "neptune3d/dom";
86
+ import { $window, $document } from "@neptune3d/dom";
87
87
 
88
88
  $window().on("resize", (e) => console.log("Window resized"));
89
89
  $document().on("visibilitychange", () => console.log("Visibility changed"));