@zyzgroup/core-web 0.1.10 → 0.1.12

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 (147) hide show
  1. package/dist/better.css +0 -8
  2. package/dist/theme.css +32 -0
  3. package/dist/zyzgroup_core_web.iife.js +23 -25
  4. package/dist/zyzgroup_core_web.iife.js.map +1 -1
  5. package/dist/zyzgroup_core_web.js +10368 -8472
  6. package/dist/zyzgroup_core_web.js.map +1 -1
  7. package/dist/zyzgroup_core_web.umd.cjs +23 -25
  8. package/dist/zyzgroup_core_web.umd.cjs.map +1 -1
  9. package/package.json +1 -1
  10. package/types/animate/_YZAnimate.d.ts +0 -78
  11. package/types/animate/_YZAnimate.d.ts.map +1 -1
  12. package/types/canvas/YZCanvas.d.ts +4 -5
  13. package/types/canvas/YZCanvas.d.ts.map +1 -1
  14. package/types/color.d.ts +114 -0
  15. package/types/color.d.ts.map +1 -0
  16. package/types/dom/index.d.ts +0 -1
  17. package/types/dom/index.d.ts.map +1 -1
  18. package/types/env.d.ts +1 -0
  19. package/types/env.d.ts.map +1 -1
  20. package/types/hooks/index.d.ts +8 -3
  21. package/types/hooks/index.d.ts.map +1 -1
  22. package/types/hooks/onDocumentReady.d.ts +3 -0
  23. package/types/hooks/onDocumentReady.d.ts.map +1 -0
  24. package/types/hooks/useDragDrop.d.ts.map +1 -1
  25. package/types/hooks/useElement.d.ts +1 -1
  26. package/types/hooks/useElement.d.ts.map +1 -1
  27. package/types/hooks/useElementEventBus.d.ts +67 -0
  28. package/types/hooks/useElementEventBus.d.ts.map +1 -0
  29. package/types/hooks/useEventListener.d.ts +1 -1
  30. package/types/hooks/useEventListener.d.ts.map +1 -1
  31. package/types/hooks/useFeRouteChange.d.ts +9 -0
  32. package/types/hooks/useFeRouteChange.d.ts.map +1 -0
  33. package/types/hooks/useHotKey.d.ts +1 -1
  34. package/types/hooks/useHotKey.d.ts.map +1 -1
  35. package/types/hooks/useHotKeyFile.d.ts.map +1 -1
  36. package/types/hooks/useIntersection.d.ts +3 -0
  37. package/types/hooks/useIntersection.d.ts.map +1 -0
  38. package/types/hooks/useLoadImage.d.ts +1 -1
  39. package/types/hooks/useLoadImage.d.ts.map +1 -1
  40. package/types/hooks/useMedia.d.ts +1 -1
  41. package/types/hooks/useMouse.d.ts +32 -0
  42. package/types/hooks/useMouse.d.ts.map +1 -0
  43. package/types/hooks/useMutation.d.ts +1 -4
  44. package/types/hooks/useMutation.d.ts.map +1 -1
  45. package/types/hooks/usePressDownMove.d.ts +13 -0
  46. package/types/hooks/usePressDownMove.d.ts.map +1 -0
  47. package/types/hooks/usePull.d.ts +4 -0
  48. package/types/hooks/usePull.d.ts.map +1 -0
  49. package/types/hooks/useResize.d.ts +2 -4
  50. package/types/hooks/useResize.d.ts.map +1 -1
  51. package/types/hooks/useSafeArea.d.ts +5 -4
  52. package/types/hooks/useSafeArea.d.ts.map +1 -1
  53. package/types/hooks/useScroll.d.ts +1 -5
  54. package/types/hooks/useScroll.d.ts.map +1 -1
  55. package/types/hooks/useStyle.d.ts.map +1 -1
  56. package/types/hooks/useTheme.d.ts +2 -0
  57. package/types/hooks/useTheme.d.ts.map +1 -1
  58. package/types/hooks/useVisible.d.ts +12 -5
  59. package/types/hooks/useVisible.d.ts.map +1 -1
  60. package/types/hooks/useWindow.d.ts +0 -15
  61. package/types/hooks/useWindow.d.ts.map +1 -1
  62. package/types/index.d.ts +1 -1
  63. package/types/math/{core/BufferAttribute.d.ts → BufferAttribute.d.ts} +4 -11
  64. package/types/math/BufferAttribute.d.ts.map +1 -0
  65. package/types/math/{core/Cylindrical.d.ts → Cylindrical.d.ts} +1 -1
  66. package/types/math/Cylindrical.d.ts.map +1 -0
  67. package/types/math/{core/Euler.d.ts → Euler.d.ts} +5 -7
  68. package/types/math/Euler.d.ts.map +1 -0
  69. package/types/math/Matrix.d.ts +210 -93
  70. package/types/math/Matrix.d.ts.map +1 -1
  71. package/types/math/{core/Quaternion.d.ts → Quaternion.d.ts} +7 -7
  72. package/types/math/Quaternion.d.ts.map +1 -0
  73. package/types/math/{core/Spherical.d.ts → Spherical.d.ts} +1 -1
  74. package/types/math/Spherical.d.ts.map +1 -0
  75. package/types/math/{core/SphericalHarmonics3.d.ts → SphericalHarmonics3.d.ts} +1 -1
  76. package/types/math/SphericalHarmonics3.d.ts.map +1 -0
  77. package/types/math/Vector.d.ts +202 -0
  78. package/types/math/Vector.d.ts.map +1 -0
  79. package/types/math/_core/Frustum.d.ts +1 -0
  80. package/types/math/_core/Frustum.d.ts.map +1 -0
  81. package/types/math/{core → _core}/constants.d.ts +0 -5
  82. package/types/math/_core/constants.d.ts.map +1 -0
  83. package/types/math/core/Box2.d.ts +1 -1
  84. package/types/math/core/Box2.d.ts.map +1 -1
  85. package/types/math/core/Box3.d.ts +7 -7
  86. package/types/math/core/Box3.d.ts.map +1 -1
  87. package/types/math/core/Line3.d.ts +2 -2
  88. package/types/math/core/Line3.d.ts.map +1 -1
  89. package/types/math/core/Object3D.d.ts +8 -6
  90. package/types/math/core/Object3D.d.ts.map +1 -1
  91. package/types/math/core/Plane.d.ts +5 -6
  92. package/types/math/core/Plane.d.ts.map +1 -1
  93. package/types/math/core/Ray.d.ts +2 -2
  94. package/types/math/core/Ray.d.ts.map +1 -1
  95. package/types/math/core/Sphere.d.ts +4 -4
  96. package/types/math/core/Sphere.d.ts.map +1 -1
  97. package/types/math/core/Triangle.d.ts +4 -5
  98. package/types/math/core/Triangle.d.ts.map +1 -1
  99. package/types/math/index.d.ts +2 -0
  100. package/types/math/index.d.ts.map +1 -1
  101. package/types/math/line/PathD.d.ts +3 -3
  102. package/types/math/line/PathD.d.ts.map +1 -1
  103. package/types/math/shapes/Ring.d.ts.map +1 -1
  104. package/types/position.d.ts +0 -11
  105. package/types/position.d.ts.map +1 -1
  106. package/types/svg/YZSVG.d.ts +3 -5
  107. package/types/svg/YZSVG.d.ts.map +1 -1
  108. package/types/wxJSSDK.d.ts.map +1 -1
  109. package/types/dom/DOMEventBus.d.ts +0 -119
  110. package/types/dom/DOMEventBus.d.ts.map +0 -1
  111. package/types/hooks/useEmit.d.ts +0 -6
  112. package/types/hooks/useEmit.d.ts.map +0 -1
  113. package/types/hooks/useHistoryRouter.d.ts +0 -5
  114. package/types/hooks/useHistoryRouter.d.ts.map +0 -1
  115. package/types/math/core/BufferAttribute.d.ts.map +0 -1
  116. package/types/math/core/Color.d.ts +0 -59
  117. package/types/math/core/Color.d.ts.map +0 -1
  118. package/types/math/core/ColorManagement.d.ts +0 -20
  119. package/types/math/core/ColorManagement.d.ts.map +0 -1
  120. package/types/math/core/Cylindrical.d.ts.map +0 -1
  121. package/types/math/core/Euler.d.ts.map +0 -1
  122. package/types/math/core/Frustum.d.ts +0 -21
  123. package/types/math/core/Frustum.d.ts.map +0 -1
  124. package/types/math/core/Matrix.d.ts +0 -16
  125. package/types/math/core/Matrix.d.ts.map +0 -1
  126. package/types/math/core/Matrix2.d.ts +0 -19
  127. package/types/math/core/Matrix2.d.ts.map +0 -1
  128. package/types/math/core/Matrix3.d.ts +0 -46
  129. package/types/math/core/Matrix3.d.ts.map +0 -1
  130. package/types/math/core/Matrix4.d.ts +0 -66
  131. package/types/math/core/Matrix4.d.ts.map +0 -1
  132. package/types/math/core/Quaternion.d.ts.map +0 -1
  133. package/types/math/core/Spherical.d.ts.map +0 -1
  134. package/types/math/core/SphericalHarmonics3.d.ts.map +0 -1
  135. package/types/math/core/Vector.d.ts +0 -19
  136. package/types/math/core/Vector.d.ts.map +0 -1
  137. package/types/math/core/Vector2.d.ts +0 -66
  138. package/types/math/core/Vector2.d.ts.map +0 -1
  139. package/types/math/core/Vector3.d.ts +0 -80
  140. package/types/math/core/Vector3.d.ts.map +0 -1
  141. package/types/math/core/Vector4.d.ts +0 -64
  142. package/types/math/core/Vector4.d.ts.map +0 -1
  143. package/types/math/core/constants.d.ts.map +0 -1
  144. package/types/math/core/index.d.ts +0 -9
  145. package/types/math/core/index.d.ts.map +0 -1
  146. package/types/theme.d.ts +0 -57
  147. package/types/theme.d.ts.map +0 -1
package/dist/better.css CHANGED
@@ -382,14 +382,6 @@ https://developer.mozilla.org/en-US/docs/Web/CSS/@media/hover
382
382
  /* .a:hover {} */
383
383
  }
384
384
 
385
- @media (prefers-color-scheme: dark) {
386
- :root {
387
- }
388
- }
389
- @media (prefers-color-scheme: light) {
390
- :root {
391
- }
392
- }
393
385
  @media (orientation: landscape) {
394
386
  :root {
395
387
  }
package/dist/theme.css ADDED
@@ -0,0 +1,32 @@
1
+ :root {
2
+ --border-radius: 4px;
3
+ --button-height: 44px;
4
+ --xg-blue: "#5a82f0";
5
+ --xg-red: "#fa503c";
6
+ --xg-green: "#328a8c";
7
+ --xg-orange: "#fa8c00";
8
+ }
9
+
10
+ /* 浅色模式 */
11
+ html[data-theme="light"]:root {
12
+ --background: #f5f5f5;
13
+ }
14
+ /* 浅色模式 */
15
+ @media (prefers-color-scheme: light) {
16
+ :root {
17
+ }
18
+ }
19
+
20
+ /* 深色模式 */
21
+ html[data-theme="dark"]:root {
22
+ --background: #333333;
23
+ }
24
+ /* 深色模式 */
25
+ @media (prefers-color-scheme: dark) {
26
+ :root {
27
+ }
28
+ }
29
+
30
+ body {
31
+ background: var(--background);
32
+ }