chunk-EOSZHC5H.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. import {
  2. l as l2
  3. } from "./chunk-7XXXCK2A.js";
  4. import {
  5. r
  6. } from "./chunk-7ZIDBK7B.js";
  7. import {
  8. d,
  9. e,
  10. l3 as l,
  11. n2 as n
  12. } from "./chunk-Y3WMVFTW.js";
  13. import {
  14. S
  15. } from "./chunk-IHXECKQQ.js";
  16. import {
  17. m
  18. } from "./chunk-IKP3YN53.js";
  19. // node_modules/@arcgis/core/rest/support/ColorRamp.js
  20. var e2 = class extends l {
  21. constructor(r2) {
  22. super(r2), this.type = null;
  23. }
  24. };
  25. e([d({ readOnly: true, json: { read: false, write: true } })], e2.prototype, "type", void 0), e2 = e([n("esri.rest.support.ColorRamp")], e2);
  26. var p = e2;
  27. // node_modules/@arcgis/core/rest/support/AlgorithmicColorRamp.js
  28. var m2;
  29. var c = m2 = class extends p {
  30. constructor(o) {
  31. super(o), this.algorithm = null, this.fromColor = null, this.toColor = null, this.type = "algorithmic";
  32. }
  33. clone() {
  34. return new m2({ fromColor: m(this.fromColor), toColor: m(this.toColor), algorithm: this.algorithm });
  35. }
  36. };
  37. e([r({ esriCIELabAlgorithm: "cie-lab", esriHSVAlgorithm: "hsv", esriLabLChAlgorithm: "lab-lch" })], c.prototype, "algorithm", void 0), e([d({ type: l2, json: { type: [S], write: true } })], c.prototype, "fromColor", void 0), e([d({ type: l2, json: { type: [S], write: true } })], c.prototype, "toColor", void 0), e([d({ type: ["algorithmic"] })], c.prototype, "type", void 0), c = m2 = e([n("esri.rest.support.AlgorithmicColorRamp")], c);
  38. var a = c;
  39. // node_modules/@arcgis/core/rest/support/MultipartColorRamp.js
  40. var c2;
  41. var m3 = c2 = class extends p {
  42. constructor(o) {
  43. super(o), this.colorRamps = null, this.type = "multipart";
  44. }
  45. clone() {
  46. return new c2({ colorRamps: m(this.colorRamps) });
  47. }
  48. };
  49. e([d({ type: [a], json: { write: true } })], m3.prototype, "colorRamps", void 0), e([d({ type: ["multipart"] })], m3.prototype, "type", void 0), m3 = c2 = e([n("esri.rest.support.MultipartColorRamp")], m3);
  50. var a2 = m3;
  51. // node_modules/@arcgis/core/rest/support/colorRamps.js
  52. var m4 = { key: "type", base: p, typeMap: { algorithmic: a, multipart: a2 } };
  53. function p2(o) {
  54. return o && o.type ? o.type === "algorithmic" ? a.fromJSON(o) : o.type === "multipart" ? a2.fromJSON(o) : null : null;
  55. }
  56. export {
  57. a2 as a,
  58. m4 as m,
  59. p2 as p
  60. };
  61. //# sourceMappingURL=chunk-EOSZHC5H.js.map