@feng3d/reactivity 1.0.7 → 1.0.9

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.
Files changed (70) hide show
  1. package/dist/index.js +87 -0
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.umd.cjs +89 -2
  4. package/dist/index.umd.cjs.map +1 -1
  5. package/lib/ReactiveObject.d.ts +101 -0
  6. package/lib/ReactiveObject.d.ts.map +1 -0
  7. package/lib/batch.d.ts.map +1 -1
  8. package/lib/effectScope.d.ts.map +1 -1
  9. package/lib/index.d.ts +1 -0
  10. package/lib/index.d.ts.map +1 -1
  11. package/package.json +28 -20
  12. package/src/ReactiveObject.ts +131 -0
  13. package/src/batch.ts +12 -0
  14. package/src/collectionHandlers.ts +4 -4
  15. package/src/effectScope.ts +2 -3
  16. package/src/index.ts +1 -0
  17. package/src/shared/general.ts +1 -1
  18. package/dist/assets/RobotoMono-Medium-DVgDz_OO.woff2 +0 -0
  19. package/dist/assets/RobotoMono-Regular-BPoF81uy.woff2 +0 -0
  20. package/dist/assets/index-a2qCSG5V.css +0 -629
  21. package/dist/assets/index.html-Dyp3udP2.js +0 -200
  22. package/dist/assets/modulepreload-polyfill-DaKOjhqt.js +0 -37
  23. package/dist/assets/package-DuJynByc.js +0 -2539
  24. package/dist/assets/src//345/244/215/346/235/202/346/203/205/345/206/265/345/217/226/345/200/274/index.html-C3hbV3IR.js +0 -59
  25. package/dist/assets/src//346/225/260/347/273/204/index.html-CHK6WEhd.js +0 -43
  26. package/dist/docs/.nojekyll +0 -1
  27. package/dist/docs/assets/hierarchy.js +0 -1
  28. package/dist/docs/assets/highlight.css +0 -92
  29. package/dist/docs/assets/icons.js +0 -18
  30. package/dist/docs/assets/icons.svg +0 -1
  31. package/dist/docs/assets/main.js +0 -60
  32. package/dist/docs/assets/navigation.js +0 -1
  33. package/dist/docs/assets/search.js +0 -1
  34. package/dist/docs/assets/style.css +0 -1640
  35. package/dist/docs/classes/EffectScope.html +0 -40
  36. package/dist/docs/functions/batchRun.html +0 -15
  37. package/dist/docs/functions/computed.html +0 -5
  38. package/dist/docs/functions/effect.html +0 -11
  39. package/dist/docs/functions/effectScope.html +0 -5
  40. package/dist/docs/functions/forceTrack.html +0 -6
  41. package/dist/docs/functions/getCurrentScope.html +0 -4
  42. package/dist/docs/functions/isProxy.html +0 -5
  43. package/dist/docs/functions/isReactive.html +0 -5
  44. package/dist/docs/functions/isRef.html +0 -5
  45. package/dist/docs/functions/noTrack.html +0 -6
  46. package/dist/docs/functions/onScopeDispose.html +0 -6
  47. package/dist/docs/functions/reactive.html +0 -19
  48. package/dist/docs/functions/ref.html +0 -13
  49. package/dist/docs/functions/toRaw.html +0 -4
  50. package/dist/docs/hierarchy.html +0 -1
  51. package/dist/docs/index.html +0 -129
  52. package/dist/docs/interfaces/Computed.html +0 -9
  53. package/dist/docs/interfaces/Effect.html +0 -8
  54. package/dist/docs/interfaces/Ref.html +0 -9
  55. package/dist/docs/modules.html +0 -1
  56. package/dist/docs/types/Reactive.html +0 -3
  57. package/dist/docs/types/UnReadonly.html +0 -3
  58. package/dist/files/RobotoMono-Medium.woff2 +0 -0
  59. package/dist/files/RobotoMono-Regular.woff2 +0 -0
  60. package/dist/files/ic_code_black_24dp.svg +0 -4
  61. package/dist/files/ic_search_black_24dp.svg +0 -4
  62. package/dist/files/main.css +0 -629
  63. package/dist/files/thumbnails.svg +0 -7
  64. package/dist/files.json +0 -7
  65. package/dist/index.html +0 -84
  66. package/dist/screenshots//345/244/215/346/235/202/346/203/205/345/206/265/345/217/226/345/200/274.jpg +0 -0
  67. package/dist/screenshots//346/225/260/347/273/204.jpg +0 -0
  68. package/dist/src//345/244/215/346/235/202/346/203/205/345/206/265/345/217/226/345/200/274/index.html +0 -70
  69. package/dist/src//346/225/260/347/273/204/index.html +0 -65
  70. package/dist/tags.json +0 -2
package/dist/index.html DELETED
@@ -1,84 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="utf-8">
6
- <title>reactivity examples</title>
7
- <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
8
- <link rel="shortcut icon" href="./resources/files/favicon_white.ico" media="(prefers-color-scheme: dark)" />
9
- <link rel="shortcut icon" href="./resources/files/favicon.ico" media="(prefers-color-scheme: light)" />
10
- <script type="module" crossorigin src="./assets/index.html-Dyp3udP2.js"></script>
11
- <link rel="modulepreload" crossorigin href="./assets/modulepreload-polyfill-DaKOjhqt.js">
12
- <link rel="stylesheet" crossorigin href="./assets/index-a2qCSG5V.css">
13
- </head>
14
-
15
- <body>
16
-
17
- <div id="panel">
18
-
19
- <div id="header">
20
- <h1><a href="http://www.feng3d.com">feng3d</a>/<a href="https://feng3d.com/reactivity">reactivity</a> </h1>
21
-
22
- <div id="sections">
23
- <a href="https://feng3d.com/reactivity/docs">docs</a>
24
- <a href="https://gitee.com/feng3d/reactivity">source</a>
25
- </div>
26
-
27
- <div id="expandButton"></div>
28
- </div>
29
-
30
- <div id="panelScrim"></div>
31
-
32
- <div id="contentWrapper">
33
-
34
- <div id="inputWrapper">
35
- <input placeholder="" type="text" id="filterInput" autocorrect="off" autocapitalize="off"
36
- spellcheck="false" />
37
- <div id="clearSearchButton"></div>
38
- </div>
39
-
40
- <div id="content">
41
- <img id="previewsToggler" src="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20version='1.1'%20viewBox='0%200%20512%20512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20fill='none'%20stroke='%23000'%20stroke-linecap='round'%20stroke-width='35'%3e%3cpath%20d='m308.67%20108.63h-194.68c-27.7%200-50%2022.3-50%2050v194.68m142.66%2055.332h194.59c27.7%200%2050-22.3%2050-50v-194.59'/%3e%3cpath%20d='m66.583%20449.71%20379.6-379.6'/%3e%3c/g%3e%3c/svg%3e" width="20" height="20" />
42
- </div>
43
- </div>
44
-
45
- </div>
46
-
47
- <iframe id="viewer" name="viewer" allow="fullscreen; xr-spatial-tracking;"></iframe>
48
-
49
- <a id="button" target="_blank"><img src="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20fill='%23000000'%3e%3cpath%20fill='none'%20d='M0%200h24v24H0V0z'/%3e%3cpath%20d='M9.4%2016.6L4.8%2012l4.6-4.6L8%206l-6%206%206%206%201.4-1.4zm5.2%200l4.6-4.6-4.6-4.6L16%206l6%206-6%206-1.4-1.4z'/%3e%3c/svg%3e"></a>
50
-
51
- <template id="PlaceholderHTML">
52
- <!DOCTYPE html>
53
- <html lang="en">
54
-
55
- <head>
56
- <meta charset="utf-8">
57
- <title>reactivity examples</title>
58
- <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
59
- <style>
60
- html,
61
- body {
62
- height: 100%;
63
- }
64
-
65
- body {
66
- height: 100%;
67
- display: flex;
68
- align-items: center;
69
- justify-content: center;
70
- user-select: none;
71
- }
72
- </style>
73
- </head>
74
-
75
- <body>
76
- Select an example from the sidebar
77
- </body>
78
-
79
- </html>
80
- </template>
81
-
82
- </body>
83
-
84
- </html>
@@ -1,70 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="UTF-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
- <title>测试代码与结果对比</title>
8
- <style>
9
- body {
10
- font-family: Arial, sans-serif;
11
- padding: 20px;
12
- }
13
-
14
- pre {
15
- background-color: #f4f4f4;
16
- padding: 10px;
17
- border: 1px solid #ccc;
18
- overflow-x: auto;
19
- }
20
-
21
- .result-container {
22
- border: 1px solid #ccc;
23
- padding: 10px;
24
- margin-top: 10px;
25
- margin-bottom: 10px;
26
- }
27
-
28
- .result-title {
29
- font-weight: bold;
30
- margin-bottom: 5px;
31
- }
32
-
33
- .result-time {
34
- margin-bottom: 5px;
35
- }
36
-
37
- .result-values {
38
- margin-bottom: 5px;
39
- }
40
- </style>
41
- <script type="module" crossorigin src="../../assets/src/复杂情况取值/index.html-C3hbV3IR.js"></script>
42
- <link rel="modulepreload" crossorigin href="../../assets/modulepreload-polyfill-DaKOjhqt.js">
43
- <link rel="modulepreload" crossorigin href="../../assets/package-DuJynByc.js">
44
- </head>
45
-
46
- <body>
47
- <h1>复杂情况取值</h1>
48
- <h2>结果对比</h2>
49
- <div class="result-container">
50
- <div class="result-title">@feng3d/reactivity<span id="feng3d-version"></span></div>
51
- <div class="result-time">时间: <span id="feng3d-time">未提供</span> 毫秒</div>
52
- <div class="result-values">值: <span id="feng3d-values">未提供</span></div>
53
- </div>
54
- <div class="result-container">
55
- <div class="result-title">@vue/reactivity<span id="vue-version"></span></div>
56
- <div class="result-time">时间: <span id="vue-time">未提供</span> 毫秒</div>
57
- <div class="result-values">值: <span id="vue-values">未提供</span></div>
58
- </div>
59
- <h2>分析</h2>
60
- <div class="result-container">
61
- <div class="result-time"><span id="feng3d-分析">未提供</span></div>
62
- <div class="result-time"><span id="vue-分析">未提供</span></div>
63
- </div>
64
- <h2>测试代码</h2>
65
- <pre id="test-code">
66
- <!-- 测试代码将显示在这里 -->
67
- </pre>
68
- </body>
69
-
70
- </html>
@@ -1,65 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="UTF-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
- <title>测试代码与结果对比</title>
8
- <style>
9
- body {
10
- font-family: Arial, sans-serif;
11
- padding: 20px;
12
- }
13
-
14
- pre {
15
- background-color: #f4f4f4;
16
- padding: 10px;
17
- border: 1px solid #ccc;
18
- overflow-x: auto;
19
- }
20
-
21
- .result-container {
22
- border: 1px solid #ccc;
23
- padding: 10px;
24
- margin-top: 10px;
25
- margin-bottom: 10px;
26
- }
27
-
28
- .result-title {
29
- font-weight: bold;
30
- margin-bottom: 5px;
31
- }
32
-
33
- .result-time {
34
- margin-bottom: 5px;
35
- }
36
-
37
- .result-values {
38
- margin-bottom: 5px;
39
- }
40
- </style>
41
- <script type="module" crossorigin src="../../assets/src/数组/index.html-CHK6WEhd.js"></script>
42
- <link rel="modulepreload" crossorigin href="../../assets/modulepreload-polyfill-DaKOjhqt.js">
43
- <link rel="modulepreload" crossorigin href="../../assets/package-DuJynByc.js">
44
- </head>
45
-
46
- <body>
47
- <h1>数组</h1>
48
- <h2>结果对比</h2>
49
- <div class="result-container">
50
- <div class="result-title">@feng3d/reactivity<span id="feng3d-version"></span></div>
51
- <div class="result-time">时间: <span id="feng3d-time">未提供</span> 毫秒</div>
52
- <div class="result-values">值: <span id="feng3d-values">未提供</span></div>
53
- </div>
54
- <div class="result-container">
55
- <div class="result-title">@vue/reactivity<span id="vue-version"></span></div>
56
- <div class="result-time">时间: <span id="vue-time">未提供</span> 毫秒</div>
57
- <div class="result-values">值: <span id="vue-values">未提供</span></div>
58
- </div>
59
- <h2>测试代码</h2>
60
- <pre id="test-code">
61
- <!-- 测试代码将显示在这里 -->
62
- </pre>
63
- </body>
64
-
65
- </html>
package/dist/tags.json DELETED
@@ -1,2 +0,0 @@
1
- {
2
- }