chunk-FNA5GLRW.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. import {
  2. l as l2
  3. } from "./chunk-X4SA4ELJ.js";
  4. import {
  5. r
  6. } from "./chunk-5N7JLUJJ.js";
  7. import {
  8. e,
  9. l3 as l,
  10. n5 as n,
  11. y3 as y2
  12. } from "./chunk-2Z2TG5CU.js";
  13. import {
  14. T
  15. } from "./chunk-SQOPWYIT.js";
  16. import {
  17. y
  18. } from "./chunk-SPWQ3AWG.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([y2({ 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 m;
  29. var c = m = 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 m({ fromColor: y(this.fromColor), toColor: y(this.toColor), algorithm: this.algorithm });
  35. }
  36. };
  37. e([r({ esriCIELabAlgorithm: "cie-lab", esriHSVAlgorithm: "hsv", esriLabLChAlgorithm: "lab-lch" })], c.prototype, "algorithm", void 0), e([y2({ type: l2, json: { type: [T], write: true } })], c.prototype, "fromColor", void 0), e([y2({ type: l2, json: { type: [T], write: true } })], c.prototype, "toColor", void 0), e([y2({ type: ["algorithmic"] })], c.prototype, "type", void 0), c = m = 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 m2 = c2 = class extends p {
  42. constructor(o) {
  43. super(o), this.colorRamps = null, this.type = "multipart";
  44. }
  45. clone() {
  46. return new c2({ colorRamps: y(this.colorRamps) });
  47. }
  48. };
  49. e([y2({ type: [a], json: { write: true } })], m2.prototype, "colorRamps", void 0), e([y2({ type: ["multipart"] })], m2.prototype, "type", void 0), m2 = c2 = e([n("esri.rest.support.MultipartColorRamp")], m2);
  50. var a2 = m2;
  51. // node_modules/@arcgis/core/rest/support/colorRamps.js
  52. var m3 = { key: "type", base: p, typeMap: { algorithmic: a, multipart: a2 } };
  53. function p2(o) {
  54. return o && o.type ? "algorithmic" === o.type ? a.fromJSON(o) : "multipart" === o.type ? a2.fromJSON(o) : null : null;
  55. }
  56. export {
  57. a2 as a,
  58. m3 as m,
  59. p2 as p
  60. };
  61. //# sourceMappingURL=chunk-FNA5GLRW.js.map