@eldrex/papyr-charts 3.0.1 β 3.0.3
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 +109 -111
- package/dist/papyr-charts.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,111 +1,109 @@
|
|
|
1
|
-
# π Papyr.js β Simple Inside, Beautiful Outside
|
|
2
|
-
|
|
3
|
-
> **Write modern, secure, and reactive web applications with zero dependencies and zero compile steps.**
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## β±οΈ Start in 60 Seconds
|
|
8
|
-
|
|
9
|
-
Create an HTML file and run this minimal working code:
|
|
10
|
-
|
|
11
|
-
```html
|
|
12
|
-
<!DOCTYPE html>
|
|
13
|
-
<html lang="en">
|
|
14
|
-
<head>
|
|
15
|
-
<meta charset="UTF-8">
|
|
16
|
-
<title>Hello Papyr.js</title>
|
|
17
|
-
<!-- Include CDN -->
|
|
18
|
-
<script src="https://papyrus-js.vercel.app/papyr-complete.js"></script>
|
|
19
|
-
</head>
|
|
20
|
-
<body>
|
|
21
|
-
<div id="app"></div>
|
|
22
|
-
<script>
|
|
23
|
-
// Create reactive state
|
|
24
|
-
let count = papyr.state(0);
|
|
25
|
-
|
|
26
|
-
// Render UI
|
|
27
|
-
let app = papyr.div({ style: { padding: '40px', fontFamily: 'sans-serif' } },
|
|
28
|
-
papyr.h1("Greetings from Papyr.js! π"),
|
|
29
|
-
papyr.button(
|
|
30
|
-
() => `Clicked ${count.value} times`,
|
|
31
|
-
{
|
|
32
|
-
onclick: () => count.value++,
|
|
33
|
-
style: { padding: '10px 20px', borderRadius: '6px', cursor: 'pointer' }
|
|
34
|
-
}
|
|
35
|
-
)
|
|
36
|
-
);
|
|
37
|
-
|
|
38
|
-
papyr.mount("#app", app);
|
|
39
|
-
</script>
|
|
40
|
-
</body>
|
|
41
|
-
</html>
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
---
|
|
45
|
-
|
|
46
|
-
## π‘ What is Papyr?
|
|
47
|
-
* **Direct DOM Rendering:** Updates only the targeted DOM nodes when state changesβbypassing Virtual DOM diff overhead.
|
|
48
|
-
* **Reactive State Engine:** Precise, dependency-tracking subscription-based reactivity (inspired by SolidJS and Vue).
|
|
49
|
-
* **Zero Dependencies:** A single unified file that packages layout grids, animations, local storage databases, and AI helpers.
|
|
50
|
-
|
|
51
|
-
---
|
|
52
|
-
|
|
53
|
-
## π οΈ What You Can Build
|
|
54
|
-
* **Aesthetic Portals & Dashboards:** Built-in HSL theme engines, collapsible persistent sidebars, and responsive viewport folding structures.
|
|
55
|
-
* **Offline-First CRUD Apps:** Synchronized SQLite, IndexedDB, and LocalStorage drivers.
|
|
56
|
-
* **Cinematic Micro-Interactions:** Touch gesture trackers, particle backgrounds, and hardware-accelerated Verlet physics integrations.
|
|
57
|
-
|
|
58
|
-
---
|
|
59
|
-
|
|
60
|
-
## π― Core Idea
|
|
61
|
-
|
|
62
|
-
$$ \text{State} \rightarrow \text{UI updates automatically} $$
|
|
63
|
-
|
|
64
|
-
When a state's `.value` mutations occur, the Papyr Runtime Engine executes targeted updates specifically on the elements that referenced that state.
|
|
65
|
-
|
|
66
|
-
---
|
|
67
|
-
|
|
68
|
-
## π Learn Next
|
|
69
|
-
|
|
70
|
-
Explore the official documentation:
|
|
71
|
-
|
|
72
|
-
* π [Getting Started](
|
|
73
|
-
* π§ [The Papyr Way](
|
|
74
|
-
* π¦ [Core Concepts](
|
|
75
|
-
* π [Master API Reference](
|
|
76
|
-
* π [Practical Recipes](
|
|
77
|
-
* π‘οΈ [Security & WATT](
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
## π License
|
|
111
|
-
Papyr.js is distributed under the [MIT License](file:///c:/Users/Eldrex/Downloads/Papyr.js-main/Papyr.js-main/LICENSE).
|
|
1
|
+
# π Papyr.js β Simple Inside, Beautiful Outside
|
|
2
|
+
|
|
3
|
+
> **Write modern, secure, and reactive web applications with zero dependencies and zero compile steps.**
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## β±οΈ Start in 60 Seconds
|
|
8
|
+
|
|
9
|
+
Create an HTML file and run this minimal working code:
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<!DOCTYPE html>
|
|
13
|
+
<html lang="en">
|
|
14
|
+
<head>
|
|
15
|
+
<meta charset="UTF-8">
|
|
16
|
+
<title>Hello Papyr.js</title>
|
|
17
|
+
<!-- Include CDN -->
|
|
18
|
+
<script src="https://papyrus-js.vercel.app/papyr-complete.js"></script>
|
|
19
|
+
</head>
|
|
20
|
+
<body>
|
|
21
|
+
<div id="app"></div>
|
|
22
|
+
<script>
|
|
23
|
+
// Create reactive state
|
|
24
|
+
let count = papyr.state(0);
|
|
25
|
+
|
|
26
|
+
// Render UI
|
|
27
|
+
let app = papyr.div({ style: { padding: '40px', fontFamily: 'sans-serif' } },
|
|
28
|
+
papyr.h1("Greetings from Papyr.js! π"),
|
|
29
|
+
papyr.button(
|
|
30
|
+
() => `Clicked ${count.value} times`,
|
|
31
|
+
{
|
|
32
|
+
onclick: () => count.value++,
|
|
33
|
+
style: { padding: '10px 20px', borderRadius: '6px', cursor: 'pointer' }
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
papyr.mount("#app", app);
|
|
39
|
+
</script>
|
|
40
|
+
</body>
|
|
41
|
+
</html>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## π‘ What is Papyr?
|
|
47
|
+
* **Direct DOM Rendering:** Updates only the targeted DOM nodes when state changesβbypassing Virtual DOM diff overhead.
|
|
48
|
+
* **Reactive State Engine:** Precise, dependency-tracking subscription-based reactivity (inspired by SolidJS and Vue).
|
|
49
|
+
* **Zero Dependencies:** A single unified file that packages layout grids, animations, local storage databases, and AI helpers.
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## π οΈ What You Can Build
|
|
54
|
+
* **Aesthetic Portals & Dashboards:** Built-in HSL theme engines, collapsible persistent sidebars, and responsive viewport folding structures.
|
|
55
|
+
* **Offline-First CRUD Apps:** Synchronized SQLite, IndexedDB, and LocalStorage drivers.
|
|
56
|
+
* **Cinematic Micro-Interactions:** Touch gesture trackers, particle backgrounds, and hardware-accelerated Verlet physics integrations.
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## π― Core Idea
|
|
61
|
+
|
|
62
|
+
$$ \text{State} \rightarrow \text{UI updates automatically} $$
|
|
63
|
+
|
|
64
|
+
When a state's `.value` mutations occur, the Papyr Runtime Engine executes targeted updates specifically on the elements that referenced that state.
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## π Learn Next
|
|
69
|
+
|
|
70
|
+
Explore the official documentation:
|
|
71
|
+
|
|
72
|
+
* π [Getting Started](https://github.com/EldrexDelosReyesBula/PapyrusJS/blob/main/docs/getting-started.md)
|
|
73
|
+
* π§ [The Papyr Way](https://github.com/EldrexDelosReyesBula/PapyrusJS/blob/main/docs/papyr-way.md)
|
|
74
|
+
* π¦ [Core Concepts](https://github.com/EldrexDelosReyesBula/PapyrusJS/blob/main/docs/core-concepts.md)
|
|
75
|
+
* π [Master API Reference](https://github.com/EldrexDelosReyesBula/PapyrusJS/blob/main/docs/api/)
|
|
76
|
+
* π [Practical Recipes](https://github.com/EldrexDelosReyesBula/PapyrusJS/blob/main/docs/recipes/)
|
|
77
|
+
* π‘οΈ [Security & WATT](https://github.com/EldrexDelosReyesBula/PapyrusJS/blob/main/docs/guides/security.md)
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## π§ͺ Interactive Demos
|
|
81
|
+
|
|
82
|
+
Run and inspect the interactive test suites inside the browser:
|
|
83
|
+
* π [Interactive Todo Checklist](https://github.com/EldrexDelosReyesBula/PapyrusJS/blob/main/tests/todo.html)
|
|
84
|
+
* πΎ [Multi-Engine CRUD Database Sandbox](https://github.com/EldrexDelosReyesBula/PapyrusJS/blob/main/tests/crud.html)
|
|
85
|
+
* π¬ [Touch Gestures & Spring Physics Sandbox](https://github.com/EldrexDelosReyesBula/PapyrusJS/blob/main/tests/animation.html)
|
|
86
|
+
* π [Canvas Formula Graphing Plotter](https://github.com/EldrexDelosReyesBula/PapyrusJS/blob/main/tests/charts.html)
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## βοΈ Installation
|
|
90
|
+
|
|
91
|
+
### CDN (Zero Build Setup)
|
|
92
|
+
Include the compiled single runtime module inside your HTML:
|
|
93
|
+
```html
|
|
94
|
+
<script src="https://papyrus-js.vercel.app/papyr-complete.js"></script>
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### Package Manager
|
|
98
|
+
```bash
|
|
99
|
+
npm install @eldrex/papyr
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
```javascript
|
|
103
|
+
import { papyr } from '@eldrex/papyr';
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## π License
|
|
109
|
+
Papyr.js is distributed under the [MIT License](https://github.com/EldrexDelosReyesBula/PapyrusJS/blob/main/LICENSE).
|
package/dist/papyr-charts.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* PAPYR STATIC SITE LIBRARY - UI & Layout Modular Bundle
|
|
3
|
-
* v3.0.
|
|
3
|
+
* v3.0.3 - Core Reactivity, SPA Routing, Layouts, Design Engine, and Premium UI Components
|
|
4
4
|
* Released under MIT License.
|
|
5
5
|
*/
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eldrex/papyr-charts",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "Reactive charts plugin for Papyr.js",
|
|
5
5
|
"main": "dist/papyr-charts.js",
|
|
6
6
|
"module": "dist/papyr-charts.esm.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"LICENSE"
|
|
12
12
|
],
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@eldrex/papyr": "^3.0.
|
|
14
|
+
"@eldrex/papyr": "^3.0.3"
|
|
15
15
|
},
|
|
16
16
|
"keywords": [
|
|
17
17
|
"charts",
|