@antv/g-webgpu 2.0.29 → 2.0.30
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/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/index.umd.min.js +5 -5
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +6 -6
package/dist/index.esm.js
CHANGED
package/dist/index.js
CHANGED
package/dist/index.umd.min.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @antv/g-webgpu
|
|
3
3
|
* @description A renderer implemented by WebGPU
|
|
4
|
-
* @version 2.0.
|
|
5
|
-
* @date 11/
|
|
4
|
+
* @version 2.0.30
|
|
5
|
+
* @date 11/14/2024, 8:19:36 AM
|
|
6
6
|
* @author AntVis
|
|
7
7
|
* @docs https://g.antv.antgroup.com/
|
|
8
8
|
*/
|
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
* @antv/g-math
|
|
12
12
|
* @description Geometry util
|
|
13
13
|
* @version 3.0.0
|
|
14
|
-
* @date 11/
|
|
14
|
+
* @date 11/14/2024, 8:15:57 AM
|
|
15
15
|
* @author AntVis
|
|
16
16
|
* @docs https://g.antv.antgroup.com/
|
|
17
17
|
*/function $n(e,t,r,n){var i=e-r,a=t-n;return Math.sqrt(i*i+a*a)}function Jn(e,t,r,n,i){return{x:(1-i)*e+i*r,y:(1-i)*t+i*n}}function ei(e,t,r,n,i){var a=1-i;return a*a*a*e+3*t*i*a*a+3*r*i*i*a+n*i*i*i}function ti(e,t,r,n,i,a,o,s,u){if(0===u)return function(e,t){for(var r=0,n=e.length,i=0;n>i;i++)r+=$n(e[i],t[i],e[(i+1)%n],t[(i+1)%n]);return r/2}([e,r,i,o],[t,n,a,s]);var l=function(e,t,r,n,i,a,o,s,u){var l=ei(e,r,i,o,u),c=ei(t,n,a,s,u),f=Jn(e,t,r,n,u),d=Jn(r,n,i,a,u),h=Jn(i,a,o,s,u),_=Jn(f.x,f.y,d.x,d.y,u),p=Jn(d.x,d.y,h.x,h.y,u);return[[e,t,f.x,f.y,_.x,_.y,l,c],[l,c,p.x,p.y,h.x,h.y,o,s]]}(e,t,r,n,i,a,o,s,.5),c=[].concat(m(l[0]),[u-1]),f=[].concat(m(l[1]),[u-1]);return ti.apply(void 0,m(c))+ti.apply(void 0,m(f))}function ri(e,t,r,n){var i=1-n;return i*i*e+2*n*i*t+n*n*r}function ni(e,t,r,n,i,a,o){if(0===o)return($n(e,t,r,n)+$n(r,n,i,a)+$n(e,t,i,a))/2;var s=function(e,t,r,n,i,a,o){var s=ri(e,r,i,o),u=ri(t,n,a,o),l=Jn(e,t,r,n,o),c=Jn(r,n,i,a,o);return[[e,t,l.x,l.y,s,u],[s,u,c.x,c.y,i,a]]}(e,t,r,n,i,a,.5),u=s[0],l=s[1];return u.push(o-1),l.push(o-1),ni.apply(void 0,m(u))+ni.apply(void 0,m(l))}
|
|
18
18
|
/*!
|
|
19
19
|
* @antv/g-plugin-device-renderer
|
|
20
20
|
* @description A G plugin of renderer implementation with GPUDevice
|
|
21
|
-
* @version 2.2.
|
|
22
|
-
* @date 11/
|
|
21
|
+
* @version 2.2.5
|
|
22
|
+
* @date 11/14/2024, 8:18:35 AM
|
|
23
23
|
* @author AntVis
|
|
24
24
|
* @docs https://g.antv.antgroup.com/
|
|
25
25
|
*/
|