chunk-KN7TOKVN.js 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import {
  2. l as l2
  3. } from "./chunk-3D3QEPRE.js";
  4. import {
  5. t
  6. } from "./chunk-BJHM4JNS.js";
  7. import {
  8. s
  9. } from "./chunk-PDKDCAAD.js";
  10. import {
  11. o
  12. } from "./chunk-ECW2QABR.js";
  13. import {
  14. r
  15. } from "./chunk-MRJEICT6.js";
  16. import {
  17. d,
  18. e,
  19. l3 as l,
  20. n2 as n
  21. } from "./chunk-Y3WMVFTW.js";
  22. // node_modules/@arcgis/core/layers/support/FeatureTemplate.js
  23. var l3 = new s({ esriFeatureEditToolAutoCompletePolygon: "auto-complete-polygon", esriFeatureEditToolCircle: "circle", esriFeatureEditToolEllipse: "ellipse", esriFeatureEditToolFreehand: "freehand", esriFeatureEditToolLine: "line", esriFeatureEditToolNone: "none", esriFeatureEditToolPoint: "point", esriFeatureEditToolPolygon: "polygon", esriFeatureEditToolRectangle: "rectangle", esriFeatureEditToolArrow: "arrow", esriFeatureEditToolTriangle: "triangle", esriFeatureEditToolLeftArrow: "left-arrow", esriFeatureEditToolRightArrow: "right-arrow", esriFeatureEditToolUpArrow: "up-arrow", esriFeatureEditToolDownArrow: "down-arrow" });
  24. var a = class extends l2(l) {
  25. constructor(o2) {
  26. super(o2), this.name = null, this.description = null, this.drawingTool = null, this.prototype = null, this.thumbnail = null;
  27. }
  28. };
  29. e([d({ json: { write: true } })], a.prototype, "name", void 0), e([d({ json: { write: true } })], a.prototype, "description", void 0), e([d({ json: { read: l3.read, write: l3.write } })], a.prototype, "drawingTool", void 0), e([d({ json: { write: true } })], a.prototype, "prototype", void 0), e([d({ json: { write: true } })], a.prototype, "thumbnail", void 0), a = e([n("esri.layers.support.FeatureTemplate")], a);
  30. var p = a;
  31. // node_modules/@arcgis/core/layers/support/FeatureType.js
  32. var c = class extends l2(l) {
  33. constructor(o2) {
  34. super(o2), this.id = null, this.name = null, this.domains = null, this.templates = null;
  35. }
  36. readDomains(o2) {
  37. const r2 = {};
  38. for (const s2 of Object.keys(o2))
  39. r2[s2] = t(o2[s2]);
  40. return r2;
  41. }
  42. writeDomains(o2, r2) {
  43. const s2 = {};
  44. for (const t2 of Object.keys(o2))
  45. o2[t2] && (s2[t2] = o2[t2]?.toJSON());
  46. r2.domains = s2;
  47. }
  48. };
  49. e([d({ json: { write: true } })], c.prototype, "id", void 0), e([d({ json: { write: true } })], c.prototype, "name", void 0), e([d({ json: { write: true } })], c.prototype, "domains", void 0), e([o("domains")], c.prototype, "readDomains", null), e([r("domains")], c.prototype, "writeDomains", null), e([d({ type: [p], json: { write: true } })], c.prototype, "templates", void 0), c = e([n("esri.layers.support.FeatureType")], c);
  50. var n2 = c;
  51. export {
  52. p,
  53. n2 as n
  54. };
  55. //# sourceMappingURL=chunk-KN7TOKVN.js.map