@antv/g2 5.1.6 → 5.1.8-beta.1

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 (265) hide show
  1. package/README.md +2 -2
  2. package/README.zh-CN.md +1 -1
  3. package/dist/g2.full.min.js +1 -1
  4. package/dist/g2.lite.min.js +1 -1
  5. package/dist/g2.min.js +1 -1
  6. package/esm/animation/growInX.js +0 -4
  7. package/esm/animation/growInX.js.map +1 -1
  8. package/esm/animation/growInY.js +0 -4
  9. package/esm/animation/growInY.js.map +1 -1
  10. package/esm/animation/scaleInX.js +5 -7
  11. package/esm/animation/scaleInX.js.map +1 -1
  12. package/esm/animation/scaleInY.js +5 -7
  13. package/esm/animation/scaleInY.js.map +1 -1
  14. package/esm/animation/scaleOutX.js +5 -7
  15. package/esm/animation/scaleOutX.js.map +1 -1
  16. package/esm/animation/scaleOutY.js +5 -7
  17. package/esm/animation/scaleOutY.js.map +1 -1
  18. package/esm/animation/zoomIn.js +4 -5
  19. package/esm/animation/zoomIn.js.map +1 -1
  20. package/esm/animation/zoomOut.js +4 -6
  21. package/esm/animation/zoomOut.js.map +1 -1
  22. package/esm/component/axis.js +1 -5
  23. package/esm/component/axis.js.map +1 -1
  24. package/esm/component/index.d.ts +0 -1
  25. package/esm/component/index.js +0 -1
  26. package/esm/component/index.js.map +1 -1
  27. package/esm/component/legendContinuous.js +1 -1
  28. package/esm/component/legendContinuous.js.map +1 -1
  29. package/esm/coordinate/index.d.ts +0 -2
  30. package/esm/coordinate/index.js +0 -1
  31. package/esm/coordinate/index.js.map +1 -1
  32. package/esm/exports.d.ts +6 -1
  33. package/esm/exports.js +4 -0
  34. package/esm/exports.js.map +1 -1
  35. package/esm/index.d.ts +114 -114
  36. package/esm/index.js +2 -2
  37. package/esm/index.js.map +1 -1
  38. package/esm/lib/builtinlib.d.ts +7 -7
  39. package/esm/lib/core.d.ts +32 -32
  40. package/esm/lib/index.d.ts +0 -2
  41. package/esm/lib/index.js +0 -2
  42. package/esm/lib/index.js.map +1 -1
  43. package/esm/lib/lite.d.ts +18 -18
  44. package/esm/lib/std.d.ts +56 -56
  45. package/esm/mark/index.d.ts +0 -4
  46. package/esm/mark/index.js +0 -4
  47. package/esm/mark/index.js.map +1 -1
  48. package/esm/mark/liquid.js +2 -1
  49. package/esm/mark/liquid.js.map +1 -1
  50. package/esm/runtime/component.js +1 -3
  51. package/esm/runtime/component.js.map +1 -1
  52. package/esm/runtime/types/component.d.ts +1 -6
  53. package/esm/shape/index.d.ts +0 -4
  54. package/esm/shape/index.js +0 -4
  55. package/esm/shape/index.js.map +1 -1
  56. package/esm/shape/interval/color.d.ts +4 -0
  57. package/esm/shape/interval/color.js +10 -7
  58. package/esm/shape/interval/color.js.map +1 -1
  59. package/esm/shape/interval/rect.d.ts +4 -0
  60. package/esm/shape/interval/rect.js.map +1 -1
  61. package/esm/shape/line/smooth.js +8 -4
  62. package/esm/shape/line/smooth.js.map +1 -1
  63. package/esm/spec/coordinate.d.ts +1 -4
  64. package/esm/spec/mark.d.ts +1 -3
  65. package/esm/theme/create.d.ts +1 -0
  66. package/esm/theme/create.js +1 -0
  67. package/esm/theme/create.js.map +1 -1
  68. package/esm/transform/filter.js +3 -1
  69. package/esm/transform/filter.js.map +1 -1
  70. package/esm/transform/maybeTitle.js +6 -1
  71. package/esm/transform/maybeTitle.js.map +1 -1
  72. package/esm/utils/dateFormat.d.ts +1 -0
  73. package/esm/utils/dateFormat.js +18 -0
  74. package/esm/utils/dateFormat.js.map +1 -0
  75. package/esm/utils/number.d.ts +4 -0
  76. package/esm/utils/number.js +8 -0
  77. package/esm/utils/number.js.map +1 -1
  78. package/lib/animation/growInX.js +0 -4
  79. package/lib/animation/growInX.js.map +1 -1
  80. package/lib/animation/growInY.js +0 -4
  81. package/lib/animation/growInY.js.map +1 -1
  82. package/lib/animation/scaleInX.js +5 -7
  83. package/lib/animation/scaleInX.js.map +1 -1
  84. package/lib/animation/scaleInY.js +5 -7
  85. package/lib/animation/scaleInY.js.map +1 -1
  86. package/lib/animation/scaleOutX.js +5 -7
  87. package/lib/animation/scaleOutX.js.map +1 -1
  88. package/lib/animation/scaleOutY.js +5 -7
  89. package/lib/animation/scaleOutY.js.map +1 -1
  90. package/lib/animation/zoomIn.js +4 -5
  91. package/lib/animation/zoomIn.js.map +1 -1
  92. package/lib/animation/zoomOut.js +4 -6
  93. package/lib/animation/zoomOut.js.map +1 -1
  94. package/lib/component/axis.js +3 -7
  95. package/lib/component/axis.js.map +1 -1
  96. package/lib/component/index.d.ts +0 -1
  97. package/lib/component/index.js +1 -3
  98. package/lib/component/index.js.map +1 -1
  99. package/lib/component/legendContinuous.js +1 -1
  100. package/lib/component/legendContinuous.js.map +1 -1
  101. package/lib/coordinate/index.d.ts +0 -2
  102. package/lib/coordinate/index.js +1 -3
  103. package/lib/coordinate/index.js.map +1 -1
  104. package/lib/exports.d.ts +6 -1
  105. package/lib/exports.js +13 -1
  106. package/lib/exports.js.map +1 -1
  107. package/lib/index.d.ts +114 -114
  108. package/lib/index.js +1 -2
  109. package/lib/index.js.map +1 -1
  110. package/lib/lib/builtinlib.d.ts +7 -7
  111. package/lib/lib/core.d.ts +32 -32
  112. package/lib/lib/index.d.ts +0 -2
  113. package/lib/lib/index.js +1 -5
  114. package/lib/lib/index.js.map +1 -1
  115. package/lib/lib/lite.d.ts +18 -18
  116. package/lib/lib/std.d.ts +56 -56
  117. package/lib/mark/index.d.ts +0 -4
  118. package/lib/mark/index.js +1 -9
  119. package/lib/mark/index.js.map +1 -1
  120. package/lib/mark/liquid.js +2 -1
  121. package/lib/mark/liquid.js.map +1 -1
  122. package/lib/runtime/component.js +2 -4
  123. package/lib/runtime/component.js.map +1 -1
  124. package/lib/runtime/types/component.d.ts +1 -6
  125. package/lib/shape/index.d.ts +0 -4
  126. package/lib/shape/index.js +6 -14
  127. package/lib/shape/index.js.map +1 -1
  128. package/lib/shape/interval/color.d.ts +4 -0
  129. package/lib/shape/interval/color.js +10 -7
  130. package/lib/shape/interval/color.js.map +1 -1
  131. package/lib/shape/interval/rect.d.ts +4 -0
  132. package/lib/shape/interval/rect.js.map +1 -1
  133. package/lib/shape/line/smooth.js +6 -2
  134. package/lib/shape/line/smooth.js.map +1 -1
  135. package/lib/spec/coordinate.d.ts +1 -4
  136. package/lib/spec/mark.d.ts +1 -3
  137. package/lib/theme/create.d.ts +1 -0
  138. package/lib/theme/create.js +1 -0
  139. package/lib/theme/create.js.map +1 -1
  140. package/lib/transform/filter.js +3 -1
  141. package/lib/transform/filter.js.map +1 -1
  142. package/lib/transform/maybeTitle.js +6 -1
  143. package/lib/transform/maybeTitle.js.map +1 -1
  144. package/lib/utils/dateFormat.d.ts +1 -0
  145. package/lib/utils/dateFormat.js +22 -0
  146. package/lib/utils/dateFormat.js.map +1 -0
  147. package/lib/utils/number.d.ts +4 -0
  148. package/lib/utils/number.js +10 -1
  149. package/lib/utils/number.js.map +1 -1
  150. package/package.json +10 -17
  151. package/src/animation/growInX.ts +1 -6
  152. package/src/animation/growInY.ts +1 -6
  153. package/src/animation/scaleInX.ts +8 -11
  154. package/src/animation/scaleInY.ts +8 -11
  155. package/src/animation/scaleOutX.ts +8 -11
  156. package/src/animation/scaleOutY.ts +8 -11
  157. package/src/animation/zoomIn.ts +4 -6
  158. package/src/animation/zoomOut.ts +4 -7
  159. package/src/component/axis.ts +1 -5
  160. package/src/component/index.ts +0 -1
  161. package/src/component/legendContinuous.ts +1 -1
  162. package/src/coordinate/index.ts +0 -2
  163. package/src/exports.ts +18 -2
  164. package/src/index.ts +2 -2
  165. package/src/lib/index.ts +0 -2
  166. package/src/mark/index.ts +0 -4
  167. package/src/mark/liquid.ts +2 -1
  168. package/src/runtime/component.ts +1 -4
  169. package/src/runtime/types/component.ts +2 -9
  170. package/src/shape/index.ts +0 -4
  171. package/src/shape/interval/color.ts +16 -4
  172. package/src/shape/interval/rect.ts +5 -0
  173. package/src/shape/line/smooth.ts +12 -4
  174. package/src/spec/coordinate.ts +0 -5
  175. package/src/spec/mark.ts +0 -3
  176. package/src/theme/create.ts +1 -0
  177. package/src/transform/filter.ts +3 -1
  178. package/src/transform/maybeTitle.ts +8 -1
  179. package/src/utils/dateFormat.ts +22 -0
  180. package/src/utils/number.ts +8 -0
  181. package/CHANGELOG.md +0 -417
  182. package/esm/component/axisZ.d.ts +0 -8
  183. package/esm/component/axisZ.js +0 -14
  184. package/esm/component/axisZ.js.map +0 -1
  185. package/esm/coordinate/cartesian3D.d.ts +0 -7
  186. package/esm/coordinate/cartesian3D.js +0 -6
  187. package/esm/coordinate/cartesian3D.js.map +0 -1
  188. package/esm/lib/auto.d.ts +0 -3
  189. package/esm/lib/auto.js +0 -7
  190. package/esm/lib/auto.js.map +0 -1
  191. package/esm/lib/threed.d.ts +0 -7
  192. package/esm/lib/threed.js +0 -13
  193. package/esm/lib/threed.js.map +0 -1
  194. package/esm/mark/auto.d.ts +0 -1
  195. package/esm/mark/auto.js +0 -26
  196. package/esm/mark/auto.js.map +0 -1
  197. package/esm/mark/interval3D.d.ts +0 -8
  198. package/esm/mark/interval3D.js +0 -65
  199. package/esm/mark/interval3D.js.map +0 -1
  200. package/esm/mark/line3D.d.ts +0 -7
  201. package/esm/mark/line3D.js +0 -65
  202. package/esm/mark/line3D.js.map +0 -1
  203. package/esm/mark/point3D.d.ts +0 -9
  204. package/esm/mark/point3D.js +0 -76
  205. package/esm/mark/point3D.js.map +0 -1
  206. package/esm/shape/interval3D/cube.d.ts +0 -6
  207. package/esm/shape/interval3D/cube.js +0 -71
  208. package/esm/shape/interval3D/cube.js.map +0 -1
  209. package/esm/shape/line3D/line.d.ts +0 -3
  210. package/esm/shape/line3D/line.js +0 -30
  211. package/esm/shape/line3D/line.js.map +0 -1
  212. package/esm/shape/point3D/cube.d.ts +0 -6
  213. package/esm/shape/point3D/cube.js +0 -70
  214. package/esm/shape/point3D/cube.js.map +0 -1
  215. package/esm/shape/point3D/sphere.d.ts +0 -6
  216. package/esm/shape/point3D/sphere.js +0 -70
  217. package/esm/shape/point3D/sphere.js.map +0 -1
  218. package/lib/component/axisZ.d.ts +0 -8
  219. package/lib/component/axisZ.js +0 -19
  220. package/lib/component/axisZ.js.map +0 -1
  221. package/lib/coordinate/cartesian3D.d.ts +0 -7
  222. package/lib/coordinate/cartesian3D.js +0 -10
  223. package/lib/coordinate/cartesian3D.js.map +0 -1
  224. package/lib/lib/auto.d.ts +0 -3
  225. package/lib/lib/auto.js +0 -11
  226. package/lib/lib/auto.js.map +0 -1
  227. package/lib/lib/threed.d.ts +0 -7
  228. package/lib/lib/threed.js +0 -17
  229. package/lib/lib/threed.js.map +0 -1
  230. package/lib/mark/auto.d.ts +0 -1
  231. package/lib/mark/auto.js +0 -30
  232. package/lib/mark/auto.js.map +0 -1
  233. package/lib/mark/interval3D.d.ts +0 -8
  234. package/lib/mark/interval3D.js +0 -69
  235. package/lib/mark/interval3D.js.map +0 -1
  236. package/lib/mark/line3D.d.ts +0 -7
  237. package/lib/mark/line3D.js +0 -69
  238. package/lib/mark/line3D.js.map +0 -1
  239. package/lib/mark/point3D.d.ts +0 -9
  240. package/lib/mark/point3D.js +0 -80
  241. package/lib/mark/point3D.js.map +0 -1
  242. package/lib/shape/interval3D/cube.d.ts +0 -6
  243. package/lib/shape/interval3D/cube.js +0 -75
  244. package/lib/shape/interval3D/cube.js.map +0 -1
  245. package/lib/shape/line3D/line.d.ts +0 -3
  246. package/lib/shape/line3D/line.js +0 -34
  247. package/lib/shape/line3D/line.js.map +0 -1
  248. package/lib/shape/point3D/cube.d.ts +0 -6
  249. package/lib/shape/point3D/cube.js +0 -74
  250. package/lib/shape/point3D/cube.js.map +0 -1
  251. package/lib/shape/point3D/sphere.d.ts +0 -6
  252. package/lib/shape/point3D/sphere.js +0 -74
  253. package/lib/shape/point3D/sphere.js.map +0 -1
  254. package/src/component/axisZ.ts +0 -25
  255. package/src/coordinate/cartesian3D.ts +0 -11
  256. package/src/lib/auto.ts +0 -7
  257. package/src/lib/threed.ts +0 -13
  258. package/src/mark/auto.ts +0 -22
  259. package/src/mark/interval3D.ts +0 -100
  260. package/src/mark/line3D.ts +0 -81
  261. package/src/mark/point3D.ts +0 -90
  262. package/src/shape/interval3D/cube.ts +0 -69
  263. package/src/shape/line3D/line.ts +0 -29
  264. package/src/shape/point3D/cube.ts +0 -68
  265. package/src/shape/point3D/sphere.ts +0 -68
package/lib/lib/threed.js DELETED
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.threedlib = void 0;
4
- const coordinate_1 = require("../coordinate");
5
- const component_1 = require("../component");
6
- const mark_1 = require("../mark");
7
- function threedlib() {
8
- return {
9
- 'coordinate.cartesian3D': coordinate_1.Cartesian3D,
10
- 'component.axisZ': component_1.AxisZ,
11
- 'mark.point3D': mark_1.Point3D,
12
- 'mark.line3D': mark_1.Line3D,
13
- 'mark.interval3D': mark_1.Interval3D,
14
- };
15
- }
16
- exports.threedlib = threedlib;
17
- //# sourceMappingURL=threed.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"threed.js","sourceRoot":"src/","sources":["lib/threed.ts"],"names":[],"mappings":";;;AAAA,8CAA4C;AAC5C,4CAAqC;AACrC,kCAAsD;AAEtD,SAAgB,SAAS;IACvB,OAAO;QACL,wBAAwB,EAAE,wBAAW;QACrC,iBAAiB,EAAE,iBAAK;QACxB,cAAc,EAAE,cAAO;QACvB,aAAa,EAAE,aAAM;QACrB,iBAAiB,EAAE,iBAAU;KACrB,CAAC;AACb,CAAC;AARD,8BAQC"}
@@ -1 +0,0 @@
1
- export declare const Auto: (options: any) => any;
package/lib/mark/auto.js DELETED
@@ -1,30 +0,0 @@
1
- "use strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.Auto = void 0;
15
- const ava_1 = require("@antv/ava");
16
- const util_1 = require("@antv/util");
17
- const Auto = (options) => {
18
- const chartAdvisor = new ava_1.Advisor();
19
- const { data, dataProps, fields, options: o, colorOptions } = options, rest = __rest(options, ["data", "dataProps", "fields", "options", "colorOptions"]);
20
- const results = chartAdvisor.advise({
21
- data,
22
- dataProps,
23
- fields,
24
- options: o,
25
- colorOptions,
26
- });
27
- return (0, util_1.deepMix)({}, rest, results === null || results === void 0 ? void 0 : results[0].spec);
28
- };
29
- exports.Auto = Auto;
30
- //# sourceMappingURL=auto.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auto.js","sourceRoot":"src/","sources":["mark/auto.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,mCAAoC;AACpC,qCAAqC;AAE9B,MAAM,IAAI,GAAG,CAAC,OAAO,EAAE,EAAE;IAC9B,MAAM,YAAY,GAAG,IAAI,aAAO,EAAE,CAAC;IACnC,MAAM,EACJ,IAAI,EACJ,SAAS,EACT,MAAM,EACN,OAAO,EAAE,CAAC,EACV,YAAY,KAEV,OAAO,EADN,IAAI,UACL,OAAO,EAPL,0DAOL,CAAU,CAAC;IACZ,MAAM,OAAO,GAAG,YAAY,CAAC,MAAM,CAAC;QAClC,IAAI;QACJ,SAAS;QACT,MAAM;QACN,OAAO,EAAE,CAAC;QACV,YAAY;KACb,CAAC,CAAC;IACH,OAAO,IAAA,cAAO,EAAC,EAAE,EAAE,IAAI,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,CAAC,EAAE,IAAI,CAAC,CAAC;AAC9C,CAAC,CAAC;AAlBW,QAAA,IAAI,QAkBf"}
@@ -1,8 +0,0 @@
1
- import { MarkComponent as MC } from '../runtime';
2
- import { PointMark } from '../spec';
3
- export type PointOptions = Omit<PointMark, 'type'>;
4
- /**
5
- * Convert value for each channel to rect shapes.
6
- * return two 3D points, which represents the bounding box of a rect.
7
- */
8
- export declare const Interval3D: MC<PointOptions>;
@@ -1,69 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Interval3D = void 0;
4
- const transform_1 = require("../transform");
5
- const shape_1 = require("../shape");
6
- const utils_1 = require("./utils");
7
- /**
8
- * Convert value for each channel to rect shapes.
9
- * return two 3D points, which represents the bounding box of a rect.
10
- */
11
- const Interval3D = (options) => {
12
- return (index, scale, value, coordinate) => {
13
- const { x: X, y: Y, y1: Y1, z: Z, size: SZ, dx: DX, dy: DY, dz: DZ, } = value;
14
- // The scales for x and series channels must be band scale.
15
- const x = scale.x;
16
- const z = scale.x;
17
- const [width, height, depth] = coordinate.getSize();
18
- const x1x2 = (x, w, i) => [x, x + w];
19
- // Calc the points of bounding box for the interval.
20
- // They are start from left-top corner in clock wise order.
21
- // TODO: series support
22
- const P = Array.from(index, (i) => {
23
- const groupWidthX = bandWidth(x, X[i]);
24
- const groupWidthZ = bandWidth(z, Z[i]);
25
- const x0 = +X[i];
26
- const z0 = +Z[i];
27
- const [x1, x2] = x1x2(x0, groupWidthX, i);
28
- const [z1, z2] = x1x2(z0, groupWidthZ, i);
29
- const y1 = +Y[i];
30
- const y2 = +Y1[i];
31
- const p1 = [x1, y1, z1];
32
- const p2 = [x2, y2, z2];
33
- return [
34
- coordinate.map([...p1]),
35
- coordinate.map([...p2]),
36
- ];
37
- });
38
- return [index, P];
39
- };
40
- };
41
- exports.Interval3D = Interval3D;
42
- function bandWidth(scale, xz) {
43
- return scale.getBandWidth(scale.invert(xz));
44
- }
45
- const shape = {
46
- cube: shape_1.IntervalCube,
47
- };
48
- exports.Interval3D.props = {
49
- defaultShape: 'cube',
50
- defaultLabelShape: 'label',
51
- composite: false,
52
- shape,
53
- channels: [
54
- ...(0, utils_1.baseGeometryChannels)({ shapes: Object.keys(shape) }),
55
- { name: 'x', scale: 'band', required: true },
56
- { name: 'z', scale: 'band', required: true },
57
- { name: 'y', required: true },
58
- { name: 'series', scale: 'band' },
59
- { name: 'size' },
60
- ],
61
- preInference: [
62
- ...(0, utils_1.basePreInference)(),
63
- { type: transform_1.MaybeZeroX },
64
- { type: transform_1.MaybeZeroY1 },
65
- { type: transform_1.MaybeZeroZ },
66
- ],
67
- postInference: [...(0, utils_1.basePostInference)(), { type: transform_1.MaybeSize }, ...(0, utils_1.tooltip3d)()],
68
- };
69
- //# sourceMappingURL=interval3D.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interval3D.js","sourceRoot":"src/","sources":["mark/interval3D.ts"],"names":[],"mappings":";;;AAIA,4CAMsB;AACtB,oCAAgD;AAChD,mCAKiB;AAIjB;;;GAGG;AACI,MAAM,UAAU,GAAqB,CAAC,OAAO,EAAE,EAAE;IACtD,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE;QACzC,MAAM,EACJ,CAAC,EAAE,CAAC,EACJ,CAAC,EAAE,CAAC,EACJ,EAAE,EAAE,EAAE,EACN,CAAC,EAAE,CAAC,EACJ,IAAI,EAAE,EAAE,EACR,EAAE,EAAE,EAAE,EACN,EAAE,EAAE,EAAE,EACN,EAAE,EAAE,EAAE,GACP,GAAG,KAAK,CAAC;QAEV,2DAA2D;QAC3D,MAAM,CAAC,GAAG,KAAK,CAAC,CAAS,CAAC;QAC1B,MAAM,CAAC,GAAG,KAAK,CAAC,CAAS,CAAC;QAC1B,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAC1B,UACD,CAAC,OAAO,EAAE,CAAC;QACZ,MAAM,IAAI,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QAE7D,oDAAoD;QACpD,2DAA2D;QAC3D,uB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AAC,EAAE,CAAC,CAAC,CAAC;AAC9C,CAAC;AAED,MAAM,KAAK,GAAG;IACZ,IAAI,EAAE,oBAAY;CACnB,CAAC;AAEF,kBAAU,CAAC,KAAK,GAAG;IACjB,YAAY,EAAE,MAAM;IACpB,iBAAiB,EAAE,OAAO;IAC1B,SAAS,EAAE,KAAK;IAChB,KAAK;IACL,QAAQ,EAAE;QACR,GAAG,IAAA,4BAAoB,EAAC,EAAE,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QACvD,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC5C,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC5C,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC7B,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE;QACjC,EAAE,IAAI,EAAE,MAAM,EAAE;KACjB;IACD,YAAY,EAAE;QACZ,GAAG,IAAA,wBAAgB,GAAE;QACrB,EAAE,IAAI,EAAE,sBAAU,EAAE;QACpB,EAAE,IAAI,EAAE,uBAAW,EAAE;QACrB,EAAE,IAAI,EAAE,sBAAU,EAAE;KACrB;IACD,aAAa,EAAE,CAAC,GAAG,IAAA,yBAAiB,GAAE,EAAE,EAAE,IAAI,EAAE,qBAAS,EAAE,EAAE,GAAG,IAAA,iBAAS,GAAE,CAAC;CAC7E,CAAC"}
@@ -1,7 +0,0 @@
1
- import { MarkComponent as MC } from '../runtime';
2
- import { LineMark } from '../spec';
3
- export type LineOptions = Omit<LineMark, 'type'>;
4
- /**
5
- * Convert value for each channel to line shapes.
6
- */
7
- export declare const Line3D: MC<LineOptions>;
@@ -1,69 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Line3D = void 0;
4
- const d3_array_1 = require("d3-array");
5
- const shape_1 = require("../shape");
6
- const transform_1 = require("../transform");
7
- const utils_1 = require("./utils");
8
- const shape = {
9
- line: shape_1.Line3DShape,
10
- };
11
- const line = (index, scale, value, coordinate) => {
12
- var _a, _b, _c;
13
- const { series: S, x: X, y: Y, z: Z } = value;
14
- const { x, y, z } = scale;
15
- // Because x and y channel is not strictly required in Line.props,
16
- // it should throw error with empty x, y or z channels.
17
- if (X === undefined || Y === undefined || Z === undefined) {
18
- throw new Error('Missing encode for x, y or z channel.');
19
- }
20
- // Group data into series.
21
- // There is only one series without specified series encode.
22
- const series = S ? Array.from((0, d3_array_1.group)(index, (i) => S[i]).values()) : [index];
23
- const I = series.map((group) => group[0]).filter((i) => i !== undefined);
24
- // A group of data corresponds to one line.
25
- const xoffset = (((_a = x === null || x === void 0 ? void 0 : x.getBandWidth) === null || _a === void 0 ? void 0 : _a.call(x)) || 0) / 2;
26
- const yoffset = (((_b = y === null || y === void 0 ? void 0 : y.getBandWidth) === null || _b === void 0 ? void 0 : _b.call(y)) || 0) / 2;
27
- const zoffset = (((_c = z === null || z === void 0 ? void 0 : z.getBandWidth) === null || _c === void 0 ? void 0 : _c.call(z)) || 0) / 2;
28
- const P = Array.from(series, (I) => {
29
- return I.map((i) => coordinate.map([
30
- (+X[i] || 0) + xoffset,
31
- (+Y[i] || 0) + yoffset,
32
- (+Z[i] || 0) + zoffset,
33
- ]));
34
- });
35
- return [I, P, series];
36
- };
37
- /**
38
- * Convert value for each channel to line shapes.
39
- */
40
- const Line3D = () => {
41
- return (index, scale, value, coordinate) => {
42
- const mark = line;
43
- return mark(index, scale, value, coordinate);
44
- };
45
- };
46
- exports.Line3D = Line3D;
47
- exports.Line3D.props = {
48
- defaultShape: 'line',
49
- defaultLabelShape: 'label',
50
- composite: false,
51
- shape,
52
- channels: [
53
- ...(0, utils_1.baseGeometryChannels)({ shapes: Object.keys(shape) }),
54
- { name: 'x' },
55
- { name: 'y' },
56
- { name: 'z' },
57
- { name: 'position', independent: true },
58
- { name: 'size' },
59
- { name: 'series', scale: 'identity' },
60
- ],
61
- preInference: [...(0, utils_1.basePreInference)(), { type: transform_1.MaybeSeries }],
62
- postInference: [...(0, utils_1.basePostInference)(), ...(0, utils_1.tooltip3d)()],
63
- interaction: {
64
- shareTooltip: false,
65
- seriesTooltip: false,
66
- crosshairs: false,
67
- },
68
- };
69
- //# sourceMappingURL=line3D.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"line3D.js","sourceRoot":"src/","sources":["mark/line3D.ts"],"names":[],"mappings":";;;AAAA,uCAAiC;AAGjC,oCAAuC;AACvC,4CAA2C;AAC3C,mCAKiB;AAEjB,MAAM,KAAK,GAAG;IACZ,IAAI,EAAE,mBAAW;CAClB,CAAC;AAIF,MAAM,IAAI,GAAS,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE;;IACrD,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,KAAK,CAAC;IAC9C,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,KAAK,CAAC;IAE1B,kEAAkE;IAClE,uDAAuD;IACvD,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,SAAS,EAAE;QACzD,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;KAC1D;IAED,0BAA0B;IAC1B,4DAA4D;IAC5D,MAAM,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAA,gBAAK,EAAC,KAAK,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAC5E,MAAM,CAAC,GAAG,MAAM,CAAC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AClB,OAAQ,IAAmB,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC;IAC/D,CAAC,CAAC;AACJ,CAAC,CAAC;AALW,QAAA,MAAM,UAKjB;AAEF,cAAM,CAAC,KAAK,GAAG;IACb,YAAY,EAAE,MAAM;IACpB,iBAAiB,EAAE,OAAO;IAC1B,SAAS,EAAE,KAAK;IAChB,KAAK;IACL,QAAQ,EAAE;QACR,GAAG,IAAA,4BAAoB,EAAC,EAAE,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QACvD,EAAE,IAAI,EAAE,GAAG,EAAE;QACb,EAAE,IAAI,EAAE,GAAG,EAAE;QACb,EAAE,IAAI,EAAE,GAAG,EAAE;QACb,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,EAAE;QACvC,EAAE,IAAI,EAAE,MAAM,EAAE;QAChB,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE;KACtC;IACD,YAAY,EAAE,CAAC,GAAG,IAAA,wBAAgB,GAAE,EAAE,EAAE,IAAI,EAAE,uBAAW,EAAE,CAAC;IAC5D,aAAa,EAAE,CAAC,GAAG,IAAA,yBAAiB,GAAE,EAAE,GAAG,IAAA,iBAAS,GAAE,CAAC;IACvD,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,KAAK;KAClB;CACF,CAAC"}
@@ -1,9 +0,0 @@
1
- import { MarkComponent as MC } from '../runtime';
2
- import { PointMark } from '../spec';
3
- export type PointOptions = Omit<PointMark, 'type'>;
4
- /**
5
- * Convert value for each channel to point shapes.
6
- * Calc the bbox of each point based on x, y and r.
7
- * This is for allowing their radius can be affected by coordinate(e.g. fisheye).
8
- */
9
- export declare const Point3D: MC<PointOptions>;
@@ -1,80 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Point3D = void 0;
4
- const transform_1 = require("../transform");
5
- const shape_1 = require("../shape");
6
- const utils_1 = require("./utils");
7
- /**
8
- * Convert value for each channel to point shapes.
9
- * Calc the bbox of each point based on x, y and r.
10
- * This is for allowing their radius can be affected by coordinate(e.g. fisheye).
11
- */
12
- const Point3D = (options) => {
13
- return (index, _, value, coordinate) => {
14
- const { x: X, y: Y, z: Z, size: S, dx: DX, dy: DY, dz: DZ } = value;
15
- const [width, height, depth] = coordinate.getSize();
16
- const xyz = (i) => {
17
- const dx = +((DX === null || DX === void 0 ? void 0 : DX[i]) || 0);
18
- const dy = +((DY === null || DY === void 0 ? void 0 : DY[i]) || 0);
19
- const dz = +((DZ === null || DZ === void 0 ? void 0 : DZ[i]) || 0);
20
- const x = +X[i];
21
- const y = +Y[i];
22
- const z = +Z[i];
23
- const cx = x + dx;
24
- const cy = y + dy;
25
- const cz = z + dz;
26
- return [cx, cy, cz];
27
- };
28
- const P = S
29
- ? Array.from(index, (i) => {
30
- const [cx, cy, cz] = xyz(i);
31
- const r = +S[i];
32
- const a = r / width;
33
- const b = r / height;
34
- const c = r / depth;
35
- const p1 = [cx - a, cy - b, cz - c];
36
- const p2 = [cx + a, cy + b, cz + c];
37
- return [
38
- coordinate.map([...p1, cz]),
39
- coordinate.map([...p2, cz]),
40
- ];
41
- })
42
- : Array.from(index, (i) => {
43
- const [cx, cy, cz] = xyz(i);
44
- return [
45
- coordinate.map([cx, cy, cz]),
46
- ];
47
- });
48
- return [index, P];
49
- };
50
- };
51
- exports.Point3D = Point3D;
52
- const shape = {
53
- sphere: shape_1.Sphere,
54
- cube: shape_1.Cube,
55
- };
56
- exports.Point3D.props = {
57
- defaultShape: 'cube',
58
- defaultLabelShape: 'label',
59
- composite: false,
60
- shape,
61
- channels: [
62
- ...(0, utils_1.baseGeometryChannels)({ shapes: Object.keys(shape) }),
63
- { name: 'x', required: true },
64
- { name: 'y', required: true },
65
- { name: 'z', required: true },
66
- { name: 'series', scale: 'band' },
67
- { name: 'size', quantitative: 'sqrt' },
68
- { name: 'dx', scale: 'identity' },
69
- { name: 'dy', scale: 'identity' },
70
- { name: 'dz', scale: 'identity' },
71
- ],
72
- preInference: [
73
- ...(0, utils_1.basePreInference)(),
74
- { type: transform_1.MaybeZeroX },
75
- { type: transform_1.MaybeZeroY },
76
- { type: transform_1.MaybeZeroZ },
77
- ],
78
- postInference: [...(0, utils_1.basePostInference)(), { type: transform_1.MaybeSize }, ...(0, utils_1.tooltip3d)()],
79
- };
80
- //# sourceMappingURL=point3D.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"point3D.js","sourceRoot":"src/","sources":["mark/point3D.ts"],"names":[],"mappings":";;;AAGA,4CAA6E;AAC7E,oCAAwC;AACxC,mCAKiB;AAIjB;;;;GAIG;AACI,MAAM,OAAO,GAAqB,CAAC,OAAO,EAAE,EAAE;IACnD,OAAO,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE;QACrC,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;QACpE,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAC1B,UACD,CAAC,OAAO,EAAE,CAAC;QACZ,MAAM,GAAG,GAA2B,CAAC,CAAC,EAAE,EAAE;YACxC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAA,EAAE,aAAF,EAAE,uBAAF,EAAE,CAAG,CAAC,CAAC,KAAI,CAAC,CAAC,CAAC;YAC3B,MAAM,EAAE,GAAG,CAAC,CAAC,CAAA,EAAE,aAAF,EAAE,uBAAF,EAAE,CAAG,CAAC,CAAC,KAAI,CAAC,CAAC,CAAC;YAC3B,MAAM,EAAE,GAAG,CAAC,CAAC,CAAA,EAAE,aAAF,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EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE;KAClC;IACD,YAAY,EAAE;QACZ,GAAG,IAAA,wBAAgB,GAAE;QACrB,EAAE,IAAI,EAAE,sBAAU,EAAE;QACpB,EAAE,IAAI,EAAE,sBAAU,EAAE;QACpB,EAAE,IAAI,EAAE,sBAAU,EAAE;KACrB;IACD,aAAa,EAAE,CAAC,GAAG,IAAA,yBAAiB,GAAE,EAAE,EAAE,IAAI,EAAE,qBAAS,EAAE,EAAE,GAAG,IAAA,iBAAS,GAAE,CAAC;CAC7E,CAAC"}
@@ -1,6 +0,0 @@
1
- import { ShapeComponent as SC } from '../../runtime';
2
- export type CubeOptions = Record<string, any>;
3
- /**
4
- * @see https://g.antv.antgroup.com/api/3d/geometry#cubegeometry
5
- */
6
- export declare const Cube: SC<CubeOptions>;
@@ -1,75 +0,0 @@
1
- "use strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.Cube = void 0;
15
- const g_plugin_3d_1 = require("@antv/g-plugin-3d");
16
- const utils_1 = require("../utils");
17
- const selection_1 = require("../../utils/selection");
18
- /**
19
- * @see https://g.antv.antgroup.com/api/3d/geometry#cubegeometry
20
- */
21
- const Cube = (options, context) => {
22
- // Render border only when colorAttribute is stroke.
23
- const style = __rest(options, []);
24
- // @ts-ignore
25
- if (!context.cubeGeometry) {
26
- const renderer = context.canvas.getConfig().renderer;
27
- const plugin = renderer.getPlugin('device-renderer');
28
- const device = plugin.getDevice();
29
- // create a cube geometry
30
- // @ts-ignore
31
- context.cubeGeometry = new g_plugin_3d_1.CubeGeometry(device, {
32
- width: 1,
33
- height: 1,
34
- depth: 1,
35
- });
36
- // create a material with Lambert lighting model
37
- // @ts-ignore
38
- context.cubeMaterial = new g_plugin_3d_1.MeshLambertMaterial(device);
39
- }
40
- return (_points, value, defaults) => {
41
- const points = _points;
42
- const { color: defaultColor } = defaults;
43
- const { color = defaultColor, transform, opacity } = value;
44
- const [cx, cy, cz] = (0, utils_1.getOrigin)(points);
45
- const width = Math.abs(points[1][0] - points[0][0]);
46
- const height = Math.abs(points[1][1] - points[0][1]);
47
- const depth = Math.abs(points[1][2] - points[0][2]);
48
- const cube = new g_plugin_3d_1.Mesh({
49
- style: {
50
- x: cx,
51
- y: cy,
52
- z: cz,
53
- // @ts-ignore
54
- geometry: context.cubeGeometry,
55
- // @ts-ignore
56
- material: context.cubeMaterial,
57
- },
58
- });
59
- cube.setOrigin(0, 0, 0);
60
- cube.scale([width, height, depth]);
61
- const selection = (0, selection_1.select)(cube)
62
- .call(utils_1.applyStyle, defaults)
63
- .style('fill', color)
64
- .style('transform', transform)
65
- .style((0, utils_1.toOpacityKey)(options), opacity)
66
- .call(utils_1.applyStyle, style)
67
- .node();
68
- return selection;
69
- };
70
- };
71
- exports.Cube = Cube;
72
- exports.Cube.props = {
73
- defaultMarker: 'cube',
74
- };
75
- //# sourceMappingURL=cube.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cube.js","sourceRoot":"src/","sources":["shape/interval3D/cube.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,mDAA4E;AAC5E,oCAA+D;AAE/D,qDAA+C;AAI/C;;GAEG;AACI,MAAM,IAAI,GAAoB,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE;IACxD,oDAAoD;IACpD,MAAW,KAAK,UAAK,OAAO,EAAtB,EAAY,CAAU,CAAC;IAE7B,aAAa;IACb,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE;QACzB,MAAM,QAAQ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CAAC,CAAC,CAAC,CAAC;QAEpD,MAAM,IAAI,GAAG,IAAI,kBAAI,CAAC;YACpB,KAAK,EAAE;gBACL,CAAC,EAAE,EAAE;gBACL,CAAC,EAAE,EAAE;gBACL,CAAC,EAAE,EAAE;gBACL,aAAa;gBACb,QAAQ,EAAE,OAAO,CAAC,YAAY;gBAC9B,aAAa;gBACb,QAAQ,EAAE,OAAO,CAAC,YAAY;aAC/B;SACF,CAAC,CAAC;QACH,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QACxB,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;QAEnC,MAAM,SAAS,GAAG,IAAA,kBAAM,EAAC,IAAI,CAAC;aAC3B,IAAI,CAAC,kBAAU,EAAE,QAAQ,CAAC;aAC1B,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC;aACpB,KAAK,CAAC,WAAW,EAAE,SAAS,CAAC;aAC7B,KAAK,CAAC,IAAA,oBAAY,EAAC,OAAO,CAAC,EAAE,OAAO,CAAC;aACrC,IAAI,CAAC,kBAAU,EAAE,KAAK,CAAC;aACvB,IAAI,EAAE,CAAC;QACV,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC;AACJ,CAAC,CAAC;AAtDW,QAAA,IAAI,QAsDf;AAEF,YAAI,CAAC,KAAK,GAAG;IACX,aAAa,EAAE,MAAM;CACtB,CAAC"}
@@ -1,3 +0,0 @@
1
- import { ShapeComponent as SC } from '../../runtime';
2
- export type LineOptions = Record<string, any>;
3
- export declare const Line: SC<LineOptions>;
@@ -1,34 +0,0 @@
1
- "use strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.Line = void 0;
15
- const g_1 = require("@antv/g");
16
- const utils_1 = require("../utils");
17
- const selection_1 = require("../../utils/selection");
18
- const Line = (options, context) => {
19
- return (P, value, defaults) => {
20
- const { color: defaultColor, lineWidth: defaultSize } = defaults, rest = __rest(defaults, ["color", "lineWidth"]);
21
- const { color = defaultColor, size = defaultSize } = value;
22
- const stroke = color;
23
- const finalStyle = Object.assign(Object.assign(Object.assign({ isBillboard: true }, rest), (stroke && { stroke })), (size && { lineWidth: size }));
24
- return (0, selection_1.select)(new g_1.Polyline())
25
- .style('points', P)
26
- .call(utils_1.applyStyle, finalStyle)
27
- .node();
28
- };
29
- };
30
- exports.Line = Line;
31
- exports.Line.props = {
32
- defaultMarker: 'line',
33
- };
34
- //# sourceMappingURL=line.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"line.js","sourceRoot":"src/","sources":["shape/line3D/line.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+BAAmC;AACnC,oCAAsC;AAEtC,qDAA+C;AAIxC,MAAM,IAAI,GAAoB,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE;IACxD,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE;QAC5B,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,KAAc,QAAQ,EAAjB,IAAI,UAAK,QAAQ,EAAnE,sBAAwD,CAAW,CAAC;QAC1E,MAAM,EAAE,KAAK,GAAG,YAAY,EAAE,IAAI,GAAG,WAAW,EAAE,GAAG,KAAK,CAAC;QAC3D,MAAM,MAAM,GAAG,KAAK,CAAC;QACrB,MAAM,UAAU,+CACd,WAAW,EAAE,IAAI,IACd,IAAI,GACJ,CAAC,MAAM,IAAI,EAAE,MAAM,EAAE,CAAC,GACtB,CAAC,IAAI,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CACjC,CAAC;QAEF,OAAO,IAAA,kBAAM,EAAC,IAAI,YAAQ,EAAE,CAAC;aAC1B,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;aAClB,IAAI,CAAC,kBAAU,EAAE,UAAU,CAAC;aAC5B,IAAI,EAAE,CAAC;IACZ,CAAC,CAAC;AACJ,CAAC,CAAC;AAjBW,QAAA,IAAI,QAiBf;AAEF,YAAI,CAAC,KAAK,GAAG;IACX,aAAa,EAAE,MAAM;CACtB,CAAC"}
@@ -1,6 +0,0 @@
1
- import { ShapeComponent as SC } from '../../runtime';
2
- export type CubeOptions = Record<string, any>;
3
- /**
4
- * @see https://g.antv.antgroup.com/api/3d/geometry#cubegeometry
5
- */
6
- export declare const Cube: SC<CubeOptions>;
@@ -1,74 +0,0 @@
1
- "use strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.Cube = void 0;
15
- const g_plugin_3d_1 = require("@antv/g-plugin-3d");
16
- const utils_1 = require("../utils");
17
- const selection_1 = require("../../utils/selection");
18
- const GEOMETRY_SIZE = 5;
19
- /**
20
- * @see https://g.antv.antgroup.com/api/3d/geometry#cubegeometry
21
- */
22
- const Cube = (options, context) => {
23
- // Render border only when colorAttribute is stroke.
24
- const style = __rest(options, []);
25
- // @ts-ignore
26
- if (!context.cubeGeometry) {
27
- const renderer = context.canvas.getConfig().renderer;
28
- const plugin = renderer.getPlugin('device-renderer');
29
- const device = plugin.getDevice();
30
- // create a sphere geometry
31
- // @ts-ignore
32
- context.cubeGeometry = new g_plugin_3d_1.CubeGeometry(device, {
33
- width: GEOMETRY_SIZE * 2,
34
- height: GEOMETRY_SIZE * 2,
35
- depth: GEOMETRY_SIZE * 2,
36
- });
37
- // create a material with Phong lighting model
38
- // @ts-ignore
39
- context.cubeMaterial = new g_plugin_3d_1.MeshLambertMaterial(device);
40
- }
41
- return (points, value, defaults) => {
42
- const { color: defaultColor } = defaults;
43
- const { color = defaultColor, transform, opacity } = value;
44
- const [cx, cy, cz] = (0, utils_1.getOrigin)(points);
45
- const r = value.size;
46
- const finalRadius = r || style.r || defaults.r;
47
- const cube = new g_plugin_3d_1.Mesh({
48
- style: {
49
- x: cx,
50
- y: cy,
51
- z: cz,
52
- // @ts-ignore
53
- geometry: context.cubeGeometry,
54
- // @ts-ignore
55
- material: context.cubeMaterial,
56
- },
57
- });
58
- cube.setOrigin(0, 0, 0);
59
- const scaling = finalRadius / GEOMETRY_SIZE;
60
- cube.scale(scaling);
61
- return (0, selection_1.select)(cube)
62
- .call(utils_1.applyStyle, defaults)
63
- .style('fill', color)
64
- .style('transform', transform)
65
- .style((0, utils_1.toOpacityKey)(options), opacity)
66
- .call(utils_1.applyStyle, style)
67
- .node();
68
- };
69
- };
70
- exports.Cube = Cube;
71
- exports.Cube.props = {
72
- defaultMarker: 'cube',
73
- };
74
- //# sourceMappingURL=cube.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cube.js","sourceRoot":"src/","sources":["shape/point3D/cube.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,mDAA4E;AAC5E,oCAA+D;AAE/D,qDAA+C;AAE/C,MAAM,aAAa,GAAG,CAAC,CAAC;AAIxB;;GAEG;AACI,MAAM,IAAI,GAAoB,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE;IACxD,oDAAoD;IACpD,MAAW,KAAK,UAAK,OAAO,EA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;gBACb,QAAQ,EAAE,OAAO,CAAC,YAAY;aAC/B;SACF,CAAC,CAAC;QACH,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QACxB,MAAM,OAAO,GAAG,WAAW,GAAG,aAAa,CAAC;QAC5C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAEpB,OAAO,IAAA,kBAAM,EAAC,IAAI,CAAC;aAChB,IAAI,CAAC,kBAAU,EAAE,QAAQ,CAAC;aAC1B,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC;aACpB,KAAK,CAAC,WAAW,EAAE,SAAS,CAAC;aAC7B,KAAK,CAAC,IAAA,oBAAY,EAAC,OAAO,CAAC,EAAE,OAAO,CAAC;aACrC,IAAI,CAAC,kBAAU,EAAE,KAAK,CAAC;aACvB,IAAI,EAAE,CAAC;IACZ,CAAC,CAAC;AACJ,CAAC,CAAC;AAnDW,QAAA,IAAI,QAmDf;AAEF,YAAI,CAAC,KAAK,GAAG;IACX,aAAa,EAAE,MAAM;CACtB,CAAC"}
@@ -1,6 +0,0 @@
1
- import { ShapeComponent as SC } from '../../runtime';
2
- export type SphereOptions = Record<string, any>;
3
- /**
4
- * @see https://g.antv.antgroup.com/api/3d/geometry#spheregeometry
5
- */
6
- export declare const Sphere: SC<SphereOptions>;
@@ -1,74 +0,0 @@
1
- "use strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.Sphere = void 0;
15
- const g_plugin_3d_1 = require("@antv/g-plugin-3d");
16
- const utils_1 = require("../utils");
17
- const selection_1 = require("../../utils/selection");
18
- const GEOMETRY_SIZE = 5;
19
- /**
20
- * @see https://g.antv.antgroup.com/api/3d/geometry#spheregeometry
21
- */
22
- const Sphere = (options, context) => {
23
- // Render border only when colorAttribute is stroke.
24
- const style = __rest(options, []);
25
- // @ts-ignore
26
- if (!context.sphereGeometry) {
27
- const renderer = context.canvas.getConfig().renderer;
28
- const plugin = renderer.getPlugin('device-renderer');
29
- const device = plugin.getDevice();
30
- // create a sphere geometry
31
- // @ts-ignore
32
- context.sphereGeometry = new g_plugin_3d_1.SphereGeometry(device, {
33
- radius: GEOMETRY_SIZE,
34
- latitudeBands: 32,
35
- longitudeBands: 32,
36
- });
37
- // create a material with Phong lighting model
38
- // @ts-ignore
39
- context.sphereMaterial = new g_plugin_3d_1.MeshLambertMaterial(device);
40
- }
41
- return (points, value, defaults) => {
42
- const { color: defaultColor } = defaults;
43
- const { color = defaultColor, transform, opacity } = value;
44
- const [cx, cy, cz] = (0, utils_1.getOrigin)(points);
45
- const r = value.size;
46
- const finalRadius = r || style.r || defaults.r;
47
- const sphere = new g_plugin_3d_1.Mesh({
48
- style: {
49
- x: cx,
50
- y: cy,
51
- z: cz,
52
- // @ts-ignore
53
- geometry: context.sphereGeometry,
54
- // @ts-ignore
55
- material: context.sphereMaterial,
56
- },
57
- });
58
- sphere.setOrigin(0, 0, 0);
59
- const scaling = finalRadius / GEOMETRY_SIZE;
60
- sphere.scale(scaling);
61
- return (0, selection_1.select)(sphere)
62
- .call(utils_1.applyStyle, defaults)
63
- .style('fill', color)
64
- .style('transform', transform)
65
- .style((0, utils_1.toOpacityKey)(options), opacity)
66
- .call(utils_1.applyStyle, style)
67
- .node();
68
- };
69
- };
70
- exports.Sphere = Sphere;
71
- exports.Sphere.props = {
72
- defaultMarker: 'sphere',
73
- };
74
- //# sourceMappingURL=sphere.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sphere.js","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