@arcgis/map-components 5.0.0-next.125 → 5.0.0-next.127
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/cdn/{KO25OCUR.js → 23CK5VLQ.js} +2 -2
- package/dist/cdn/{L4JJMMP7.js → 25A4OQAF.js} +2 -2
- package/dist/cdn/{O3R7KON4.js → 2BOVR3WJ.js} +2 -2
- package/dist/cdn/{52NRQIIG.js → 2CDEN77I.js} +2 -2
- package/dist/cdn/{FJXSIIN6.js → 2OOAP2JE.js} +1 -1
- package/dist/cdn/{HKXHNMKL.js → 2UI5ZJ6L.js} +2 -2
- package/dist/cdn/{MVL7FV7C.js → 2UO6CZ6U.js} +2 -2
- package/dist/cdn/{HGUNMXIR.js → 2UUIDWJS.js} +2 -2
- package/dist/cdn/{PCENGFYW.js → 32DZJYGA.js} +2 -2
- package/dist/cdn/{DALYLO6E.js → 35HSDWN7.js} +2 -2
- package/dist/cdn/{2BM75YFE.js → 3A5IGCYY.js} +2 -2
- package/dist/cdn/{KOTPYBIQ.js → 3CMNJP5B.js} +2 -2
- package/dist/cdn/{XFYHDUCW.js → 3GY6HYME.js} +2 -2
- package/dist/cdn/{C42PUNKN.js → 3IJHOPLR.js} +2 -2
- package/dist/cdn/3LZHCGG7.js +4 -0
- package/dist/cdn/{PWNWSRDE.js → 3M5HFNTE.js} +2 -2
- package/dist/cdn/{IN6NFNVJ.js → 3NQHVEL5.js} +2 -2
- package/dist/cdn/{DE6X5IV6.js → 3V3DLAPY.js} +2 -2
- package/dist/cdn/{RKWG6EN2.js → 3WHGLYFV.js} +2 -2
- package/dist/cdn/{3FLIFGZ4.js → 436UY5QF.js} +2 -2
- package/dist/cdn/{MGOKYCK7.js → 46PBHCAF.js} +2 -2
- package/dist/cdn/{M7IMGQBH.js → 4BEWWV6R.js} +2 -2
- package/dist/cdn/{RENOLECX.js → 4RWMNYDV.js} +2 -2
- package/dist/cdn/{NU2I26HZ.js → 52DTFDVD.js} +2 -2
- package/dist/cdn/{77LEIMT3.js → 55DHTBRA.js} +2 -2
- package/dist/cdn/{ABXI5TYA.js → 5AIGBIJF.js} +2 -2
- package/dist/cdn/{4U2EDMSR.js → 5DPU55YL.js} +2 -2
- package/dist/cdn/{SJ46Q2FR.js → 5E6KJ5SP.js} +2 -2
- package/dist/cdn/{M6J6PLWI.js → 5FIM5NK5.js} +2 -2
- package/dist/cdn/{RKVVJVRB.js → 5FKRM3ZA.js} +2 -2
- package/dist/cdn/{LYBPW2EA.js → 5I7SHGXL.js} +2 -2
- package/dist/cdn/{CCZWIBB7.js → 5VJHL7M2.js} +2 -2
- package/dist/cdn/{RVW65OEV.js → 5VW5OGY7.js} +2 -2
- package/dist/cdn/{PWGG35OH.js → 5WL4ZVQB.js} +2 -2
- package/dist/cdn/{WWXKKB3T.js → 5X6PJHNX.js} +2 -2
- package/dist/cdn/5YIM5WAX.js +4 -0
- package/dist/cdn/{4J72QRFT.js → 6AQDOG4B.js} +2 -2
- package/dist/cdn/{7MAGDSGW.js → 6M6JSHEJ.js} +2 -2
- package/dist/cdn/{QTJWSHUL.js → 6NNQA6B2.js} +2 -2
- package/dist/cdn/{LSRAQHLF.js → 6PRRKNJR.js} +2 -2
- package/dist/cdn/{YTKY2WPX.js → 76FKZZM5.js} +2 -2
- package/dist/cdn/{XGAHAOE3.js → 7CZC6NWI.js} +1 -1
- package/dist/cdn/{65G6ABZ5.js → 7ENQZZAR.js} +2 -2
- package/dist/cdn/{6O7OOKKF.js → 7FPP254I.js} +2 -2
- package/dist/cdn/{5GDV4KN7.js → 7ITQZ366.js} +2 -2
- package/dist/cdn/{ZIIOYSVL.js → 7QZHRXZM.js} +2 -2
- package/dist/cdn/{VEZTWXSI.js → 7VC3ZQBJ.js} +1 -1
- package/dist/cdn/A5DVTMCY.js +4 -0
- package/dist/cdn/{VEEC7UGN.js → ATGRMKTK.js} +2 -2
- package/dist/cdn/{USOPHZXC.js → AVIULQKK.js} +2 -2
- package/dist/cdn/{Q3LUT7EQ.js → AZYXN6Y4.js} +2 -2
- package/dist/cdn/B2L42D5D.js +4 -0
- package/dist/cdn/{MYNHQRHT.js → BBZSUV2M.js} +2 -2
- package/dist/cdn/{GIFVARRH.js → BFHPSEGS.js} +2 -2
- package/dist/cdn/{NFMOQDJ6.js → BGCEGBWR.js} +2 -2
- package/dist/cdn/{WGG7VXZ4.js → BGZEHT3V.js} +2 -2
- package/dist/cdn/{2YEYSC2T.js → BRTDUZGO.js} +2 -2
- package/dist/cdn/{4URN2WYU.js → BU3VQYEU.js} +2 -2
- package/dist/cdn/{FW5OV27G.js → BUBMOCKJ.js} +2 -2
- package/dist/cdn/{7P7I4YZR.js → BW5XORW7.js} +2 -2
- package/dist/cdn/{HIJIGBMC.js → C27O33FQ.js} +2 -2
- package/dist/cdn/{JAYKEJIK.js → C3HAKIAZ.js} +2 -2
- package/dist/cdn/{V6YUGO4F.js → C63ZXBTC.js} +2 -2
- package/dist/cdn/{J4Y3RJFF.js → CACI727E.js} +2 -2
- package/dist/cdn/{76HRR7ZY.js → CBXAPFVH.js} +2 -2
- package/dist/cdn/{WQPSWIY7.js → CEF2S7LK.js} +2 -2
- package/dist/cdn/{YL7E3O4I.js → CEGYWLMZ.js} +2 -2
- package/dist/cdn/{QQQCTYQ4.js → CEMJC7UZ.js} +2 -2
- package/dist/cdn/{OIHETT66.js → CFNKRBQN.js} +2 -2
- package/dist/cdn/{UMBF6BZP.js → CJZAOUVB.js} +2 -2
- package/dist/cdn/{OFZOI3SV.js → COWKSLCY.js} +2 -2
- package/dist/cdn/{55EPQRBT.js → CPOSMF3U.js} +2 -2
- package/dist/cdn/{GU5FYEG3.js → CQFS262U.js} +2 -2
- package/dist/cdn/{JO23EO3W.js → CRF5NDGG.js} +2 -2
- package/dist/cdn/{CTEJ2RKF.js → D2EU4YBS.js} +2 -2
- package/dist/cdn/{OIRDH454.js → D7FGL36B.js} +2 -2
- package/dist/cdn/{PTR2GSP5.js → DBLEO4IU.js} +2 -2
- package/dist/cdn/{7DKNOV5S.js → DKPWJJTX.js} +3 -3
- package/dist/cdn/{LJWCCQZC.js → DLFQNTTF.js} +2 -2
- package/dist/cdn/{BFAS35SE.js → DN7B4OWD.js} +2 -2
- package/dist/cdn/{FCTSU4XG.js → DOIUEIGU.js} +1 -1
- package/dist/cdn/{RX555GJP.js → DUA3ZTT2.js} +2 -2
- package/dist/cdn/{KON2ENZX.js → DWW3IMDF.js} +2 -2
- package/dist/cdn/{7MR5XA4D.js → DXUF6IJS.js} +2 -2
- package/dist/cdn/{MDOSJEFU.js → DY55LMK5.js} +2 -2
- package/dist/cdn/{HAFZJAN2.js → E6BBLMCV.js} +2 -2
- package/dist/cdn/{SDQAOZBP.js → EODLHP2M.js} +2 -2
- package/dist/cdn/{5CCUJDHP.js → EOJ664BT.js} +2 -2
- package/dist/cdn/{P7ELL466.js → ERPWZLG7.js} +1 -1
- package/dist/cdn/{XE5EGC6Q.js → EUHEZLB3.js} +2 -2
- package/dist/cdn/{OU36KP2X.js → EYYFXXH4.js} +2 -2
- package/dist/cdn/{GRHKD2CE.js → EZDUPL2I.js} +2 -2
- package/dist/cdn/F3EJZ37A.js +6 -0
- package/dist/cdn/{5WXKFB6D.js → F45IP6ZT.js} +2 -2
- package/dist/cdn/{GIH77KVV.js → FAWEJND4.js} +2 -2
- package/dist/cdn/FCSTFIDN.js +4 -0
- package/dist/cdn/{W7OMVLKR.js → FIKEM3WQ.js} +2 -2
- package/dist/cdn/{J5D5IMYB.js → FIR5EEBK.js} +2 -2
- package/dist/cdn/FMJ4WB2W.js +4 -0
- package/dist/cdn/{GBL6E6BD.js → FRYHLBFG.js} +2 -2
- package/dist/cdn/{UBHCLWKX.js → FTVHFAV3.js} +2 -2
- package/dist/cdn/{66TNSK37.js → FXHFAXGS.js} +2 -2
- package/dist/cdn/{MMXUCBCR.js → GMXVKSLG.js} +2 -2
- package/dist/cdn/{MPTNGONZ.js → GNWMXFXK.js} +2 -2
- package/dist/cdn/GUMCWO2V.js +4 -0
- package/dist/cdn/{R6WXN75Y.js → H6XGYKQX.js} +2 -2
- package/dist/cdn/{LMKMECLK.js → HKLOXKAV.js} +2 -2
- package/dist/cdn/{OCFGETZI.js → HMAIUYBP.js} +2 -2
- package/dist/cdn/{6Z366STQ.js → HR4IOPSB.js} +2 -2
- package/dist/cdn/{IFMGNQ5N.js → I4ZRSYJF.js} +2 -2
- package/dist/cdn/{Z4SXPUGY.js → I6YUL6I4.js} +2 -2
- package/dist/cdn/{O6S56WKN.js → IGJ44UJB.js} +2 -2
- package/dist/cdn/{4QOTPDK3.js → IJJAONBN.js} +2 -2
- package/dist/cdn/{KZDIRMGU.js → ILSGWVNR.js} +2 -2
- package/dist/cdn/{QKS7LMYI.js → IS75R2IH.js} +2 -2
- package/dist/cdn/{K366K2KW.js → ITNAOOJK.js} +2 -2
- package/dist/cdn/{X4YUJGYH.js → IYVOFZDC.js} +2 -2
- package/dist/cdn/{HTENOPQ3.js → J5VT7KRH.js} +2 -2
- package/dist/cdn/{YODYVB6D.js → J6XCTRGU.js} +2 -2
- package/dist/cdn/{7FTAJ5TH.js → JF5YM3RR.js} +2 -2
- package/dist/cdn/{TD7ST4RV.js → JGDGYEKE.js} +2 -2
- package/dist/cdn/{KACMEBEW.js → JOKXDRTW.js} +2 -2
- package/dist/cdn/{IG2NIJLQ.js → JOTJJPE3.js} +2 -2
- package/dist/cdn/{L5NHIHSA.js → JVBTVFXS.js} +2 -2
- package/dist/cdn/{MOYEFKHS.js → JYLCAJEC.js} +2 -2
- package/dist/cdn/{JXRY7JAO.js → KEUXUENL.js} +2 -2
- package/dist/cdn/{3N4FQCWK.js → KGQFHXIC.js} +2 -2
- package/dist/cdn/{KJDRRE5K.js → KNG54ORL.js} +2 -2
- package/dist/cdn/KNKD2ZFJ.js +4 -0
- package/dist/cdn/{75QLYIFN.js → KTY3YQ25.js} +2 -2
- package/dist/cdn/{SDAPKVKL.js → KYHLI7ME.js} +2 -2
- package/dist/cdn/{AHPF2CRW.js → KZ4CM7MR.js} +2 -2
- package/dist/cdn/{TUWTH3LI.js → L32CHO2D.js} +2 -2
- package/dist/cdn/{6I2GOQEU.js → LA6PVFNO.js} +2 -2
- package/dist/cdn/{RBXQHIEV.js → LHM75YK3.js} +2 -2
- package/dist/cdn/{BG5T7AGQ.js → LIT2SNL4.js} +2 -2
- package/dist/cdn/{R2KWG3SI.js → LJ5BLABA.js} +1 -1
- package/dist/cdn/{HARFC6ID.js → LLN5W73X.js} +2 -2
- package/dist/cdn/{BL5HLM3S.js → LMFQ4CHE.js} +1 -1
- package/dist/cdn/{OZATSVY2.js → LOQVX4BN.js} +2 -2
- package/dist/cdn/{GBKR3WLZ.js → LR4HXZRE.js} +2 -2
- package/dist/cdn/{DSRDZBJN.js → LVGKBCHV.js} +2 -2
- package/dist/cdn/{EIJSCBW6.js → LX6H6WED.js} +2 -2
- package/dist/cdn/{6MMUI3TX.js → LY5ILJBV.js} +2 -2
- package/dist/cdn/{OPUOGOKN.js → M2DXFV63.js} +2 -2
- package/dist/cdn/{NLZKVGGK.js → M2KYB5G7.js} +2 -2
- package/dist/cdn/M4CDVV2M.js +4 -0
- package/dist/cdn/{MACG2HUH.js → MAHKWFJV.js} +2 -2
- package/dist/cdn/{HEZGZ7GR.js → MCN5HFGJ.js} +2 -2
- package/dist/cdn/{PXLJCLDT.js → MCNXX6R7.js} +1 -1
- package/dist/cdn/{JPUM53CO.js → MDQVBSU5.js} +2 -2
- package/dist/cdn/MJEZETB6.js +4 -0
- package/dist/cdn/{Q5GY7IVO.js → MMZEDWMY.js} +2 -2
- package/dist/cdn/MPKJ4M6A.js +4 -0
- package/dist/cdn/{UH5IYKKL.js → MRE3B64S.js} +2 -2
- package/dist/cdn/{6IPHCOHN.js → MTNYEVHQ.js} +2 -2
- package/dist/cdn/{JH5L57BE.js → MZ5XJTL4.js} +2 -2
- package/dist/cdn/{JE3FUDM2.js → NC6FWZ5L.js} +2 -2
- package/dist/cdn/{BNHMODYZ.js → NOUI2W6S.js} +2 -2
- package/dist/cdn/{ALWQC7LL.js → NRVMNGXT.js} +2 -2
- package/dist/cdn/{XQYJ2JZR.js → NXXU7HMI.js} +2 -2
- package/dist/cdn/{CKTQZUJP.js → O4A6Q32R.js} +2 -2
- package/dist/cdn/{CCC23TO6.js → OA4VFRJC.js} +2 -2
- package/dist/cdn/{3W732VKD.js → OSJAP2PI.js} +2 -2
- package/dist/cdn/OY7MXL2Z.js +4 -0
- package/dist/cdn/{R55GFEQT.js → P4UFC6X3.js} +2 -2
- package/dist/cdn/{7P3T6EAP.js → P5OHTG2S.js} +1 -1
- package/dist/cdn/{SG7R2VYV.js → PAMVJKTH.js} +2 -2
- package/dist/cdn/PEAXBN66.js +4 -0
- package/dist/cdn/{SBDHOU2W.js → PLM4MUST.js} +1 -1
- package/dist/cdn/{F53HF64J.js → QHC7KWCT.js} +2 -2
- package/dist/cdn/{WLJJECTB.js → QL5K267J.js} +1 -1
- package/dist/cdn/{3KETFLTP.js → QOSZ3YNH.js} +2 -2
- package/dist/cdn/QVPSEWGB.js +4 -0
- package/dist/cdn/{GPDTSCHH.js → QX7IQO4Q.js} +2 -2
- package/dist/cdn/{DP3XIF6L.js → R2M3BU4K.js} +2 -2
- package/dist/cdn/{AMHNBBTL.js → R4QX6HUQ.js} +2 -2
- package/dist/cdn/{7QXUSBON.js → RACVG6AT.js} +2 -2
- package/dist/cdn/{CKAZLQJF.js → RBAULIVQ.js} +2 -2
- package/dist/cdn/{4PJKV3CL.js → RLTSIUF2.js} +2 -2
- package/dist/cdn/{CUVSKFGO.js → RODS2IGV.js} +2 -2
- package/dist/cdn/{CBSSS6PW.js → RTWPM6M3.js} +2 -2
- package/dist/cdn/{NGCAUFIS.js → RWQQCWBD.js} +2 -2
- package/dist/cdn/{N4RACC3R.js → RWUUKH7H.js} +2 -2
- package/dist/cdn/{VNGE3JFY.js → S4AV7FBB.js} +2 -2
- package/dist/cdn/{CHF3KCWS.js → S5GPPKQF.js} +2 -2
- package/dist/cdn/{4LOUD4ZG.js → SCUNQXMH.js} +2 -2
- package/dist/cdn/{Y5722SFD.js → SGPWHLTJ.js} +2 -2
- package/dist/cdn/{AHSXSFZ6.js → SKSG32GZ.js} +2 -2
- package/dist/cdn/{6Z3BZYCE.js → SRQ2IH3F.js} +2 -2
- package/dist/cdn/{YCVDZJZY.js → SSHQWUTC.js} +2 -2
- package/dist/cdn/{PDUEJGTR.js → STJVIAIO.js} +2 -2
- package/dist/cdn/{ACPAQHOO.js → STKSBWA6.js} +2 -2
- package/dist/cdn/{RVKZ4FQK.js → SVX7O643.js} +1 -1
- package/dist/cdn/{DLT53DC2.js → T6ROHBGS.js} +2 -2
- package/dist/cdn/{7ZZXMSC4.js → TB2JNTIG.js} +2 -2
- package/dist/cdn/{RZ4QOQMR.js → TCEF35EH.js} +2 -2
- package/dist/cdn/{OBOXTKSG.js → TDMH22ST.js} +2 -2
- package/dist/cdn/{7RCEE5EY.js → TPTICNQM.js} +2 -2
- package/dist/cdn/{4E5VXEGH.js → TQFPV7KF.js} +2 -2
- package/dist/cdn/{HC33U25T.js → TR5M4LWP.js} +2 -2
- package/dist/cdn/{TQIGLXV4.js → TTMKSQBX.js} +2 -2
- package/dist/cdn/TXI3I72T.js +4 -0
- package/dist/cdn/{PR3QN37M.js → TYCD6ZD3.js} +2 -2
- package/dist/cdn/{XL74PZLX.js → U5KITLL2.js} +2 -2
- package/dist/cdn/{DJMUBM3O.js → U5XNL7LO.js} +2 -2
- package/dist/cdn/{V66KG4QY.js → UAVSRKT5.js} +2 -2
- package/dist/cdn/{AHLS47JR.js → UI4VNFUR.js} +2 -2
- package/dist/cdn/{VZHPCMBB.js → UNMWHMRZ.js} +2 -2
- package/dist/cdn/{WL5XIGDV.js → UOSCU2O6.js} +2 -2
- package/dist/cdn/{OLR6OWW4.js → UXJRTODP.js} +2 -2
- package/dist/cdn/{DHBTCTD4.js → UXWFEEXQ.js} +2 -2
- package/dist/cdn/{APDKUFAY.js → V3HORBBQ.js} +2 -2
- package/dist/cdn/{J5TPK7CH.js → VBZVMJZ5.js} +2 -2
- package/dist/cdn/{ZKKPOWDI.js → VC5YWNBO.js} +2 -2
- package/dist/cdn/{6WDZTMAX.js → VEM763B5.js} +1 -1
- package/dist/cdn/{6NVPPPGW.js → VHR2ZCC2.js} +2 -2
- package/dist/cdn/{T75WRNJ6.js → VIIZ5B6W.js} +2 -2
- package/dist/cdn/{MRUSCWYK.js → VJZ4KQNL.js} +2 -2
- package/dist/cdn/VMHMCEWX.js +4 -0
- package/dist/cdn/{EINQGF5X.js → VMLZGD42.js} +2 -2
- package/dist/cdn/{LOIU3QZ5.js → VS3EU5ZZ.js} +1 -1
- package/dist/cdn/{DRKOKDE6.js → VTF47U3X.js} +2 -2
- package/dist/cdn/{AXNXIMUU.js → VY3LRZ67.js} +2 -2
- package/dist/cdn/{IK4QKY5S.js → WBF7RIHL.js} +2 -2
- package/dist/cdn/{UHYUDT7C.js → WPG37TFI.js} +1 -1
- package/dist/cdn/{CWY7TORB.js → WSRKTXQJ.js} +2 -2
- package/dist/cdn/{7P52BVQQ.js → WVLTOGGS.js} +2 -2
- package/dist/cdn/{Q3NZOH23.js → XC57VMCW.js} +1 -1
- package/dist/cdn/{HBRZ6GEZ.js → XGHGWNMX.js} +2 -2
- package/dist/cdn/{XYLEKS6X.js → XJA7WIKJ.js} +1 -1
- package/dist/cdn/{UVQA5C2N.js → XJJ4E3FJ.js} +2 -2
- package/dist/cdn/{MMTYAKZH.js → XJW34G2X.js} +2 -2
- package/dist/cdn/Y67YU6AO.js +4 -0
- package/dist/cdn/{7G74PPWM.js → YC6KGDZ5.js} +2 -2
- package/dist/cdn/{UGLZSGVQ.js → YKFHHNDP.js} +2 -2
- package/dist/cdn/{YVA6OQBE.js → YNLGLT7P.js} +2 -2
- package/dist/cdn/YQX55DFC.js +4 -0
- package/dist/cdn/{IL5SVE66.js → YV77RJA4.js} +2 -2
- package/dist/cdn/YV7ZGYMZ.js +4 -0
- package/dist/cdn/{5QJIYJXV.js → YVPHGJ3R.js} +2 -2
- package/dist/cdn/{M2ZGKJLP.js → YWVOZEOY.js} +2 -2
- package/dist/cdn/{EYFK7X2Q.js → ZMAEVVP5.js} +2 -2
- package/dist/cdn/{4TGIFRL4.js → ZOQRHJGF.js} +2 -2
- package/dist/cdn/{5KV6QW2E.js → ZORFDD4E.js} +2 -2
- package/dist/cdn/{Z7AUQAZO.js → ZPTIUEUQ.js} +2 -2
- package/dist/cdn/{WWJOCVCI.js → ZYDS3VIY.js} +2 -2
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/utility-network-trace-results/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/AnalysisViewModel.js +1 -1
- package/dist/chunks/action-utils.js +1 -1
- package/dist/chunks/async-utils.js +1 -1
- package/dist/chunks/basemap-gallery-resources.js +1 -1
- package/dist/chunks/building-layer-utils.js +1 -1
- package/dist/chunks/chart-utils.js +1 -1
- package/dist/chunks/chartCommon.js +1 -1
- package/dist/chunks/component-utils.js +1 -1
- package/dist/chunks/component-wrapper.js +1 -1
- package/dist/chunks/constants.js +1 -1
- package/dist/chunks/esri-main.js +1 -1
- package/dist/chunks/feature-utils.js +6 -6
- package/dist/chunks/globalCss.js +1 -1
- package/dist/chunks/goTo.js +1 -1
- package/dist/chunks/handle.js +1 -1
- package/dist/chunks/heading.js +1 -1
- package/dist/chunks/layer-list.js +1 -1
- package/dist/chunks/legacyIcon.js +1 -1
- package/dist/chunks/maybe.js +1 -1
- package/dist/chunks/measurementUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/screenLocation.js +1 -1
- package/dist/chunks/slots.js +4 -4
- package/dist/chunks/svgUtils.js +1 -1
- package/dist/chunks/time-utils.js +1 -1
- package/dist/chunks/univariateUtils.js +1 -1
- package/dist/chunks/useArcgisViewReadyError.js +18 -15
- package/dist/chunks/useCloseEvent.js +1 -1
- package/dist/chunks/useHandles.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/useView.js +1 -1
- package/dist/chunks/useViewModel.js +1 -1
- package/dist/chunks/useWidget.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/visible-element.js +1 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-attachments/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery/customElement.d.ts +1 -1
- package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-basemap-toggle/customElement.d.ts +1 -1
- package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
- package/dist/components/arcgis-bookmarks/BookmarksViewModel.d.ts +8 -8
- package/dist/components/arcgis-bookmarks/customElement.js +2 -2
- package/dist/components/arcgis-building-discipline-tree/customElement.js +1 -1
- package/dist/components/arcgis-building-explorer/customElement.js +1 -1
- package/dist/components/arcgis-building-level-item/customElement.js +1 -1
- package/dist/components/arcgis-building-level-picker/customElement.js +1 -1
- package/dist/components/arcgis-building-phase-picker/customElement.js +1 -1
- package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-color-select/customElement.js +1 -1
- package/dist/components/arcgis-compass/customElement.d.ts +1 -1
- package/dist/components/arcgis-compass/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +1 -1
- package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
- package/dist/components/arcgis-daylight/customElement.js +1 -1
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-directional-pad/customElement.d.ts +1 -1
- package/dist/components/arcgis-directional-pad/customElement.js +1 -1
- package/dist/components/arcgis-directions/customElement.js +1 -1
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-editor/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-legend/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-legend-item/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-settings/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-statistics/customElement.js +1 -1
- package/dist/components/arcgis-expand/customElement.js +2 -2
- package/dist/components/arcgis-feature/customElement.js +3 -3
- package/dist/components/arcgis-feature-attachments/customElement.d.ts +11 -5
- package/dist/components/arcgis-feature-attachments/customElement.js +105 -19
- package/dist/components/arcgis-feature-attachments/index.d.ts +6 -1
- package/dist/components/arcgis-feature-attachments/index.js +6 -1
- package/dist/components/arcgis-feature-content/customElement.js +2 -2
- package/dist/components/arcgis-feature-element-info/customElement.js +1 -1
- package/dist/components/arcgis-feature-expression/customElement.js +185 -69
- package/dist/components/arcgis-feature-fields/customElement.js +1 -1
- package/dist/components/arcgis-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-feature-media/chartCommon.d.ts +1 -1
- package/dist/components/arcgis-feature-media/customElement.js +2 -2
- package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
- package/dist/components/arcgis-feature-table/customElement.d.ts +1 -1
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates/customElement.js +1 -1
- package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +1 -1
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-features/customElement.js +2 -2
- package/dist/components/arcgis-floor-filter/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.js +1 -1
- package/dist/components/arcgis-grid-controls/customElement.js +1 -1
- package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-home/customElement.js +1 -1
- package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
- package/dist/components/arcgis-layer-list/customElement.d.ts +1 -1
- package/dist/components/arcgis-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
- package/dist/components/arcgis-legend/customElement.d.ts +1 -1
- package/dist/components/arcgis-legend/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-color-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-view/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-view/customElement.js +7 -7
- package/dist/components/arcgis-legend-relationship-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-spike-ramp/customElement.js +1 -1
- package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
- package/dist/components/arcgis-link-chart/customElement.js +1 -1
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.d.ts +1 -1
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
- package/dist/components/arcgis-locate/customElement.js +1 -1
- package/dist/components/arcgis-map/customElement.d.ts +1 -1
- package/dist/components/arcgis-map/customElement.js +1 -1
- package/dist/components/arcgis-measurement/customElement.d.ts +100 -50
- package/dist/components/arcgis-measurement/customElement.js +1 -1
- package/dist/components/arcgis-measurement-content/customElement.js +1 -1
- package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
- package/dist/components/arcgis-popup/customElement.js +2 -2
- package/dist/components/arcgis-presentation/customElement.js +1 -1
- package/dist/components/arcgis-print/customElement.d.ts +2 -2
- package/dist/components/arcgis-print/customElement.js +1 -1
- package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
- package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
- package/dist/components/arcgis-print-export-button/customElement.js +1 -1
- package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-format-select/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
- package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
- package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
- package/dist/components/arcgis-print-template-select/customElement.js +1 -1
- package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
- package/dist/components/arcgis-scale-bar/customElement.js +1 -1
- package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-scene/customElement.js +1 -1
- package/dist/components/arcgis-search/customElement.d.ts +2 -2
- package/dist/components/arcgis-search/customElement.js +1 -1
- package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast-discrete-config/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast-min-duration-config/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast-total-duration-config/customElement.js +1 -1
- package/dist/components/arcgis-sketch/customElement.js +1 -1
- package/dist/components/arcgis-slice/customElement.js +1 -1
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.d.ts +232 -0
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.js +35 -0
- package/dist/components/arcgis-slider-binary-color-size-legacy/index.d.ts +1 -0
- package/dist/components/arcgis-slider-binary-color-size-legacy/index.js +1 -0
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.d.ts +270 -0
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.js +35 -0
- package/dist/components/arcgis-slider-classed-color-legacy/index.d.ts +1 -0
- package/dist/components/arcgis-slider-classed-color-legacy/index.js +1 -0
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.d.ts +252 -0
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.js +35 -0
- package/dist/components/arcgis-slider-classed-size-legacy/index.d.ts +1 -0
- package/dist/components/arcgis-slider-classed-size-legacy/index.js +1 -0
- package/dist/components/arcgis-slider-color-legacy/customElement.d.ts +241 -0
- package/dist/components/arcgis-slider-color-legacy/customElement.js +32 -0
- package/dist/components/arcgis-slider-color-legacy/index.d.ts +1 -0
- package/dist/components/arcgis-slider-color-legacy/index.js +1 -0
- package/dist/components/arcgis-slider-color-size-legacy/customElement.d.ts +260 -0
- package/dist/components/arcgis-slider-color-size-legacy/customElement.js +35 -0
- package/dist/components/arcgis-slider-color-size-legacy/index.d.ts +1 -0
- package/dist/components/arcgis-slider-color-size-legacy/index.js +1 -0
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.d.ts +188 -0
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.js +29 -0
- package/dist/components/arcgis-slider-heatmap-legacy/index.d.ts +1 -0
- package/dist/components/arcgis-slider-heatmap-legacy/index.js +1 -0
- package/dist/components/arcgis-slider-opacity-legacy/customElement.d.ts +262 -0
- package/dist/components/arcgis-slider-opacity-legacy/customElement.js +32 -0
- package/dist/components/arcgis-slider-opacity-legacy/index.d.ts +1 -0
- package/dist/components/arcgis-slider-opacity-legacy/index.js +1 -0
- package/dist/components/arcgis-slider-size-legacy/customElement.d.ts +271 -0
- package/dist/components/arcgis-slider-size-legacy/customElement.js +35 -0
- package/dist/components/arcgis-slider-size-legacy/index.d.ts +1 -0
- package/dist/components/arcgis-slider-size-legacy/index.js +1 -0
- package/dist/components/arcgis-spinner/customElement.js +1 -1
- package/dist/components/arcgis-swipe/customElement.js +1 -1
- package/dist/components/arcgis-table-list/customElement.d.ts +1 -1
- package/dist/components/arcgis-table-list/customElement.js +1 -1
- package/dist/components/arcgis-time-slider/customElement.d.ts +2 -2
- package/dist/components/arcgis-time-slider/customElement.js +1 -1
- package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
- package/dist/components/arcgis-track/customElement.d.ts +3 -3
- package/dist/components/arcgis-track/customElement.js +1 -1
- package/dist/components/arcgis-unit-select/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-association-list/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-subnetwork-info/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace/customElement.d.ts +1 -1
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-location-list/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +1 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
- package/dist/components/arcgis-value-picker/customElement.d.ts +1 -1
- package/dist/components/arcgis-value-picker/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.d.ts +1 -1
- package/dist/components/arcgis-version-management/customElement.js +1 -1
- package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
- package/dist/components/arcgis-video/customElement.js +1 -1
- package/dist/components/arcgis-video-player/customElement.js +1 -1
- package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
- package/dist/components/arcgis-video-player-settings/customElement.js +24 -24
- package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
- package/dist/components/arcgis-volume-measurement/customElement.js +1 -1
- package/dist/components/arcgis-weather/customElement.js +1 -1
- package/dist/components/arcgis-webgl-error/customElement.js +1 -1
- package/dist/components/arcgis-zoom/customElement.js +1 -1
- package/dist/docs/api.json +4262 -30
- package/dist/docs/docs.json +3811 -32
- package/dist/docs/vscode.html-custom-data.json +410 -4
- package/dist/docs/web-types.json +1090 -8
- package/dist/index.d.ts +88 -0
- package/dist/index.js +1 -1
- package/dist/loader.js +10 -2
- package/dist/types/lumina.d.ts +72 -0
- package/dist/types/preact.d.ts +80 -0
- package/dist/types/react.d.ts +88 -0
- package/dist/types/stencil.d.ts +72 -0
- package/dist/utils/attachment-utils.d.ts +2 -0
- package/package.json +5 -5
- package/dist/cdn/6NBEWLIS.js +0 -4
- package/dist/cdn/7SMY665F.js +0 -4
- package/dist/cdn/ADDLXT6X.js +0 -4
- package/dist/cdn/BETUR5XF.js +0 -4
- package/dist/cdn/BVIYB3XH.js +0 -6
- package/dist/cdn/IEDEB26D.js +0 -4
- package/dist/cdn/LNX25BVS.js +0 -6
- package/dist/cdn/MI2LKFYG.js +0 -4
- package/dist/cdn/NKQJ45V3.js +0 -4
- package/dist/cdn/VPO6FT74.js +0 -4
- package/dist/cdn/WCQZTE6S.js +0 -4
- package/dist/cdn/WTEWM5GX.js +0 -4
package/dist/docs/api.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-01-
|
|
2
|
+
"timestamp": "2026-01-16T04:41:22",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@arcgis/lumina-compiler",
|
|
5
|
-
"version": "5.0.0-next.
|
|
5
|
+
"version": "5.0.0-next.127",
|
|
6
6
|
"typescriptVersion": "5.9.3"
|
|
7
7
|
},
|
|
8
8
|
"schemaVersion": "2.1.0",
|
|
@@ -39065,15 +39065,32 @@
|
|
|
39065
39065
|
"name": "ArcgisMeasurement",
|
|
39066
39066
|
"tagName": "arcgis-measurement",
|
|
39067
39067
|
"pascalCaseName": "ArcgisMeasurement",
|
|
39068
|
+
"description": "The Measurement component groups and manages multiple measurement tools and allows you to easily switch between them using\nthe [activeTool](#activeTool) property. The tools correspond to the measurement components for area and distance in 2D\n[arcgis-area-measurement-2d](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-area-measurement-2d/), [arcgis-distance-measurement-2d](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-distance-measurement-2d/) and in 3D\n[arcgis-area-measurement-3d](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-area-measurement-3d/), [arcgis-direct-line-measurement-3d](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-direct-line-measurement-3d/).\n\nThis component follows a composite pattern that allows developers to configure the UI to best match their specific requirements.\nThe measurement tools, placements, and icons can all be configured, which offers great flexibility to use with tabbed\ninterfaces or other customized UI.\n\nHow distances, areas, and perimeters are computed depends on the view type and its spatial reference.\n\nIn 2D Maps:\n- In geographic coordinate systems (GCS) and in Web Mercator, they are computed geodetically.\n- In projected coordinate systems (PCS), apart from Web Mercator, they are computed\n in a Euclidean manner (in their respective PCS).\n\nIn 3D Scenes:\n- In geographic coordinate systems (GCS) and in Web Mercator:\n - horizontal distance is computed geodetically;\n - vertical distance is computed as a difference in z-values;\n - direct distance is computed in a Euclidean manner;\n - area and perimeter are computed:\n - in a Euclidean manner if the perimeter is below 100km;\n - geodetically if the perimeter is above 100km.\n- In projected coordinate systems (PCS), apart from Web Mercator:\n - all three distances (direct, horizontal, and vertical), areas, and perimeters are computed in a Euclidean manner (in their respective PCS).",
|
|
39068
39069
|
"docsTags": [
|
|
39069
39070
|
{
|
|
39070
39071
|
"name": "internal"
|
|
39072
|
+
},
|
|
39073
|
+
{
|
|
39074
|
+
"name": "esriCompatibilityName",
|
|
39075
|
+
"text": "Measurement"
|
|
39076
|
+
},
|
|
39077
|
+
{
|
|
39078
|
+
"name": "since",
|
|
39079
|
+
"text": "5.0"
|
|
39080
|
+
},
|
|
39081
|
+
{
|
|
39082
|
+
"name": "example",
|
|
39083
|
+
"text": "```html\n<arcgis-map basemap=\"hybrid\" center=\"-71.69,43.76\" zoom=\"15\">\n <arcgis-measurement slot=\"top-right\" active-tool=\"distance\"></arcgis-measurement>\n</arcgis-map>\n<script type=\"module\">\n // Add the measurement component to the upper right hand corner\n // with the distance tool active\n const mapElement = document.querySelector(\"arcgis-map\");\n const measurementElement = document.querySelector(\"arcgis-measurement\");\n\n // Switch between area and distance measurement\n function switchTool() {\n const tool = measurementElement.activeTool === \"distance\" ? \"area\" : \"distance\";\n measurementElement.activeTool = tool;\n }\n</script>\n```"
|
|
39071
39084
|
}
|
|
39072
39085
|
],
|
|
39073
39086
|
"demos": [
|
|
39074
39087
|
{
|
|
39075
39088
|
"description": "Docs",
|
|
39076
39089
|
"url": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-measurement/"
|
|
39090
|
+
},
|
|
39091
|
+
{
|
|
39092
|
+
"description": "Measurement",
|
|
39093
|
+
"url": "https://developers.arcgis.com/javascript/latest/storybook/map-components/?path=/story/arcgis-measurement--demo&singleStory=true"
|
|
39077
39094
|
}
|
|
39078
39095
|
],
|
|
39079
39096
|
"superclass": {
|
|
@@ -39085,11 +39102,11 @@
|
|
|
39085
39102
|
{
|
|
39086
39103
|
"kind": "field",
|
|
39087
39104
|
"name": "activeTool",
|
|
39088
|
-
"description": "Specifies the current measurement tool to display. Setting its value to `area` activates\nthe area measurement tool and it works
|
|
39105
|
+
"description": "Specifies the current measurement tool to display. Setting its value to `area` activates\nthe area measurement tool and it works in both [arcgis-map](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-map/) and [arcgis-scene](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-scene/). To measure distance in a [arcgis-map](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-map/),\nset the property to `distance` and in a [arcgis-scene](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-scene/) set it to `direct-line`.\nIf this property is not set, the component will not be displayed.",
|
|
39089
39106
|
"docsTags": [
|
|
39090
39107
|
{
|
|
39091
39108
|
"name": "example",
|
|
39092
|
-
"text": "// To
|
|
39109
|
+
"text": "```js\n// To use the Measurement component with SceneView's direct-line tool active.\nconst measurementElement = document.querySelector(\"arcgis-measurement\");\nmeasurementElement.activeTool = \"direct-line\";\n\n// To switch between direct line and area measurement tools\nfunction switchTool() {\n const tool = measurementElement.activeTool === \"direct-line\" ? \"area\" : \"direct-line\";\n measurementElement.activeTool = tool;\n}\n```"
|
|
39093
39110
|
}
|
|
39094
39111
|
],
|
|
39095
39112
|
"type": {
|
|
@@ -39118,7 +39135,7 @@
|
|
|
39118
39135
|
"docsTags": [
|
|
39119
39136
|
{
|
|
39120
39137
|
"name": "example",
|
|
39121
|
-
"text": "// Print the active widget to the console.\nconst
|
|
39138
|
+
"text": "```js\n// Print the active widget to the console.\nconst measurementElement = document.querySelector(\"arcgis-measurement\");\nmeasurementElement.activeTool = \"distance\";\nconsole.log(\"Active Widget: \", measurementElement.activeWidget);\n```"
|
|
39122
39139
|
}
|
|
39123
39140
|
],
|
|
39124
39141
|
"type": {
|
|
@@ -39177,11 +39194,11 @@
|
|
|
39177
39194
|
{
|
|
39178
39195
|
"kind": "field",
|
|
39179
39196
|
"name": "areaUnit",
|
|
39180
|
-
"description": "Unit system (imperial, metric) or specific unit used for displaying the area values
|
|
39197
|
+
"description": "Unit system (imperial, metric) or specific unit used for displaying the area values.",
|
|
39181
39198
|
"docsTags": [
|
|
39182
39199
|
{
|
|
39183
39200
|
"name": "example",
|
|
39184
|
-
"text": "// To
|
|
39201
|
+
"text": "```js\n// To use the Measurement component to display area in square US feet\nconst measurementElement = document.querySelector(\"arcgis-measurement\");\nmeasurementElement.activeTool = \"area\";\nmeasurementElement.areaUnit = \"square-us-feet\";\n\n// To display the current area measurement unit\nconsole.log(\"Current unit: \", measurement.areaUnit);\n```"
|
|
39185
39202
|
}
|
|
39186
39203
|
],
|
|
39187
39204
|
"type": {
|
|
@@ -39275,10 +39292,6 @@
|
|
|
39275
39292
|
"name": "icon",
|
|
39276
39293
|
"description": "Icon which represents the widget. It is typically used when the widget is controlled by another\none (e.g. in the Expand widget).",
|
|
39277
39294
|
"docsTags": [
|
|
39278
|
-
{
|
|
39279
|
-
"name": "since",
|
|
39280
|
-
"text": "4.27"
|
|
39281
|
-
},
|
|
39282
39295
|
{
|
|
39283
39296
|
"name": "see",
|
|
39284
39297
|
"text": "[Calcite Icons](https://developers.arcgis.com/calcite-design-system/icons/)"
|
|
@@ -39305,12 +39318,6 @@
|
|
|
39305
39318
|
"kind": "field",
|
|
39306
39319
|
"name": "label",
|
|
39307
39320
|
"description": "The widget's default label. This property is useful whenever the widget is controlled by another one\n(e.g. [Expand](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html)).",
|
|
39308
|
-
"docsTags": [
|
|
39309
|
-
{
|
|
39310
|
-
"name": "since",
|
|
39311
|
-
"text": "4.11"
|
|
39312
|
-
}
|
|
39313
|
-
],
|
|
39314
39321
|
"type": {
|
|
39315
39322
|
"text": "string",
|
|
39316
39323
|
"values": [
|
|
@@ -39324,11 +39331,11 @@
|
|
|
39324
39331
|
{
|
|
39325
39332
|
"kind": "field",
|
|
39326
39333
|
"name": "linearUnit",
|
|
39327
|
-
"description": "Unit system (imperial, metric) or specific unit used for displaying the distance values
|
|
39334
|
+
"description": "Unit system (imperial, metric) or specific unit used for displaying the distance values.",
|
|
39328
39335
|
"docsTags": [
|
|
39329
39336
|
{
|
|
39330
39337
|
"name": "example",
|
|
39331
|
-
"text": "// To
|
|
39338
|
+
"text": "```js\n// To use the Measurement component to display distance in yards\nconst measurementElement = document.querySelector(\"arcgis-measurement\");\nmeasurementElement.activeTool = \"distance\";\nmeasurementElement.linearUnit = \"yards\";\n\n// To display the current linear measurement unit\nconsole.log(\"Current linear unit: \", measurementElement.linearUnit);\n```"
|
|
39332
39339
|
}
|
|
39333
39340
|
],
|
|
39334
39341
|
"type": {
|
|
@@ -39449,7 +39456,7 @@
|
|
|
39449
39456
|
"docsTags": [
|
|
39450
39457
|
{
|
|
39451
39458
|
"name": "example",
|
|
39452
|
-
"text": "// To display the state of the AreaMeasurement2D
|
|
39459
|
+
"text": "```js\n// To display the state of the AreaMeasurement2D component\nconst measurementElement = document.querySelector(\"arcgis-measurement\");\nmeasurementElement.activeTool = \"area\";\n\nmeasurementElement.addEventListener(\"arcgisPropertyChange\", () => {\n console.log(\"Current state: \", measurementElement.viewModel.state);\n});\n```"
|
|
39453
39460
|
}
|
|
39454
39461
|
],
|
|
39455
39462
|
"type": {
|
|
@@ -39480,12 +39487,6 @@
|
|
|
39480
39487
|
"kind": "field",
|
|
39481
39488
|
"name": "view",
|
|
39482
39489
|
"description": "The view associated with the component. \n > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the Measurement component will be associated with a map or scene component rather than using the `view` property.",
|
|
39483
|
-
"docsTags": [
|
|
39484
|
-
{
|
|
39485
|
-
"name": "example",
|
|
39486
|
-
"text": "// To create the Measurement widget for SceneView with the direct-line tool active.\nconst measurement = new Measurement({\n view: sceneView,\n activeTool: \"direct-line\"\n});"
|
|
39487
|
-
}
|
|
39488
|
-
],
|
|
39489
39490
|
"type": {
|
|
39490
39491
|
"text": "MapView | SceneView",
|
|
39491
39492
|
"references": [
|
|
@@ -39519,6 +39520,7 @@
|
|
|
39519
39520
|
{
|
|
39520
39521
|
"kind": "method",
|
|
39521
39522
|
"name": "clear",
|
|
39523
|
+
"description": "Removes all measurement widgets and associated graphics.",
|
|
39522
39524
|
"return": {
|
|
39523
39525
|
"type": {
|
|
39524
39526
|
"text": "Promise<void>",
|
|
@@ -39589,6 +39591,16 @@
|
|
|
39589
39591
|
{
|
|
39590
39592
|
"kind": "method",
|
|
39591
39593
|
"name": "startMeasurement",
|
|
39594
|
+
"description": "Starts a new measurement for the active measurement widget.",
|
|
39595
|
+
"docsTags": [
|
|
39596
|
+
{
|
|
39597
|
+
"name": "public"
|
|
39598
|
+
},
|
|
39599
|
+
{
|
|
39600
|
+
"name": "example",
|
|
39601
|
+
"text": "```js\nconst measurementElement = document.querySelector(\"arcgis-measurement\");\nmeasurementElement.activeTool = \"distance\";\n\nfunction measure() {\n measurementElement.startMeasurement();\n}\n\nmeasure();\n```"
|
|
39602
|
+
}
|
|
39603
|
+
],
|
|
39592
39604
|
"return": {
|
|
39593
39605
|
"type": {
|
|
39594
39606
|
"text": "Promise<void>",
|
|
@@ -39609,7 +39621,7 @@
|
|
|
39609
39621
|
"attributes": [
|
|
39610
39622
|
{
|
|
39611
39623
|
"name": "active-tool",
|
|
39612
|
-
"description": "Specifies the current measurement tool to display. Setting its value to `area` activates\nthe area measurement tool and it works
|
|
39624
|
+
"description": "Specifies the current measurement tool to display. Setting its value to `area` activates\nthe area measurement tool and it works in both [arcgis-map](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-map/) and [arcgis-scene](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-scene/). To measure distance in a [arcgis-map](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-map/),\nset the property to `distance` and in a [arcgis-scene](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-scene/) set it to `direct-line`.\nIf this property is not set, the component will not be displayed.",
|
|
39613
39625
|
"type": {
|
|
39614
39626
|
"text": "\"area\" | \"direct-line\" | \"distance\"",
|
|
39615
39627
|
"values": [
|
|
@@ -39631,7 +39643,7 @@
|
|
|
39631
39643
|
},
|
|
39632
39644
|
{
|
|
39633
39645
|
"name": "area-unit",
|
|
39634
|
-
"description": "Unit system (imperial, metric) or specific unit used for displaying the area values
|
|
39646
|
+
"description": "Unit system (imperial, metric) or specific unit used for displaying the area values.",
|
|
39635
39647
|
"type": {
|
|
39636
39648
|
"text": "\"acres\" | \"ares\" | \"hectares\" | \"imperial\" | \"metric\" | \"square-centimeters\" | \"square-decimeters\" | \"square-feet\" | \"square-inches\" | \"square-kilometers\" | \"square-meters\" | \"square-miles\" | \"square-millimeters\" | \"square-nautical-miles\" | \"square-us-feet\" | \"square-yards\"",
|
|
39637
39649
|
"values": [
|
|
@@ -39732,7 +39744,7 @@
|
|
|
39732
39744
|
},
|
|
39733
39745
|
{
|
|
39734
39746
|
"name": "linear-unit",
|
|
39735
|
-
"description": "Unit system (imperial, metric) or specific unit used for displaying the distance values
|
|
39747
|
+
"description": "Unit system (imperial, metric) or specific unit used for displaying the distance values.",
|
|
39736
39748
|
"type": {
|
|
39737
39749
|
"text": "\"centimeters\" | \"decimeters\" | \"feet\" | \"imperial\" | \"inches\" | \"kilometers\" | \"meters\" | \"metric\" | \"miles\" | \"millimeters\" | \"nautical-miles\" | \"us-feet\" | \"yards\"",
|
|
39738
39750
|
"values": [
|
|
@@ -54660,6 +54672,4226 @@
|
|
|
54660
54672
|
}
|
|
54661
54673
|
]
|
|
54662
54674
|
},
|
|
54675
|
+
{
|
|
54676
|
+
"kind": "javascript-module",
|
|
54677
|
+
"path": "components/arcgis-slider-binary-color-size-legacy",
|
|
54678
|
+
"sourcePath": "src/components/slider-binary-color-size-legacy/slider-binary-color-size-legacy.tsx",
|
|
54679
|
+
"declarations": [
|
|
54680
|
+
{
|
|
54681
|
+
"kind": "class",
|
|
54682
|
+
"customElement": true,
|
|
54683
|
+
"name": "ArcgisSliderBinaryColorSizeLegacy",
|
|
54684
|
+
"tagName": "arcgis-slider-binary-color-size-legacy",
|
|
54685
|
+
"pascalCaseName": "ArcgisSliderBinaryColorSizeLegacy",
|
|
54686
|
+
"description": "The Binary Color Size Slider (Legacy) component is intended for authoring and exploring diverging data-driven visualizations in any\nlayer that can be rendered with an above and below theme for a [SizeVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html).\n\nThe [updateFromRendererResult()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-BinaryColorSizeSlider.html#fromRendererResult)\nmethod can be used to intelligently populate slider properties including [max](#max), [min](#min), [size visual variable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html)\nconfiguration, and the slider's histogram after the renderer has been created from the result of the\n[createContinuousRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer) method.\n\n```js\nconst univariateColorSizeRendererCreator = await import(\n \"@arcgis/core/smartMapping/renderers/univariateColorSize.js\"\n);\nconst viewElement = document.querySelector(\"arcgis-map\")!;\nconst binaryColorSizeSlider = document.querySelector(\"arcgis-slider-binary-color-size\")!;\n\nconst featureLayer = new FeatureLayer({\n url: \"https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/ACS_Poverty_by_Age_Boundaries/FeatureServer/1\",\n});\n\nawait viewElement.viewOnReady();\nviewElement.map?.add(featureLayer);\n\nconst params = {\n layer: featureLayer,\n field: \"B17020_calc_pctPovE\",\n view: viewElement.view,\n theme: \"above-and-below\" as UnivariateTheme,\n};\n\nconst rendererResult = await univariateColorSizeRendererCreator.createContinuousRenderer(params);\n\nfeatureLayer.renderer = rendererResult.renderer;\n\nconst histogramResult = await histogram({\n ...params,\n numBins: 30,\n});\n\nawait binaryColorSizeSlider?.updateFromRendererResult(rendererResult, histogramResult);\n```\n\nThis slider should be used to update an above and below (diverging) visualization in a layer's renderer.\nIt is the responsibility of the app developer to set up event listeners on that update the size variable of the appropriate renderer.\n\n```js\nconst updateRendererFromSlider = async () => {\n const result = await binaryColorSizeSlider.updateRenderer(featureLayer.renderer as ClassBreaksRenderer);\n featureLayer.renderer = result;\n};\n\nbinaryColorSizeSlider.addEventListener(\"arcgisThumbChange\", updateRendererFromSlider);\nbinaryColorSizeSlider.addEventListener(\"arcgisThumbDrag\", updateRendererFromSlider);\n```",
|
|
54687
|
+
"docsTags": [
|
|
54688
|
+
{
|
|
54689
|
+
"name": "since",
|
|
54690
|
+
"text": "5.0.0"
|
|
54691
|
+
},
|
|
54692
|
+
{
|
|
54693
|
+
"name": "see",
|
|
54694
|
+
"text": "[BinaryColorSizeSliderViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-BinaryColorSizeSlider-BinaryColorSizeSliderViewModel.html)"
|
|
54695
|
+
},
|
|
54696
|
+
{
|
|
54697
|
+
"name": "see",
|
|
54698
|
+
"text": "[univariateColorSizeRendererCreator](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html)"
|
|
54699
|
+
}
|
|
54700
|
+
],
|
|
54701
|
+
"demos": [
|
|
54702
|
+
{
|
|
54703
|
+
"description": "Docs",
|
|
54704
|
+
"url": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-slider-binary-color-size-legacy/"
|
|
54705
|
+
},
|
|
54706
|
+
{
|
|
54707
|
+
"description": "Slider Binary Color Size (Legacy)",
|
|
54708
|
+
"url": "https://developers.arcgis.com/javascript/latest/storybook/map-components/?path=/story/arcgis-slider-binary-color-size-legacy--demo&singleStory=true"
|
|
54709
|
+
}
|
|
54710
|
+
],
|
|
54711
|
+
"superclass": {
|
|
54712
|
+
"name": "PublicLitElement",
|
|
54713
|
+
"module": "PublicLitElement",
|
|
54714
|
+
"package": "@arcgis/lumina"
|
|
54715
|
+
},
|
|
54716
|
+
"members": [
|
|
54717
|
+
{
|
|
54718
|
+
"kind": "field",
|
|
54719
|
+
"name": "autoDestroyDisabled",
|
|
54720
|
+
"description": "If true, the component will not be destroyed automatically when it is\ndisconnected from the document. This is useful when you want to move the\ncomponent to a different place on the page, or temporarily hide it. If this\nis set, make sure to call the [destroy](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-slider-binary-color-size-legacy/#destroy) method when you are done to\nprevent memory leaks.",
|
|
54721
|
+
"type": {
|
|
54722
|
+
"text": "boolean",
|
|
54723
|
+
"values": [
|
|
54724
|
+
{
|
|
54725
|
+
"type": "boolean"
|
|
54726
|
+
}
|
|
54727
|
+
]
|
|
54728
|
+
},
|
|
54729
|
+
"default": "false",
|
|
54730
|
+
"attribute": "auto-destroy-disabled"
|
|
54731
|
+
},
|
|
54732
|
+
{
|
|
54733
|
+
"kind": "field",
|
|
54734
|
+
"name": "icon",
|
|
54735
|
+
"description": "Icon which represents the widget. It is typically used when the widget is controlled by another\none (e.g. in the Expand widget).",
|
|
54736
|
+
"docsTags": [
|
|
54737
|
+
{
|
|
54738
|
+
"name": "see",
|
|
54739
|
+
"text": "[Calcite Icons](https://developers.arcgis.com/calcite-design-system/icons/)"
|
|
54740
|
+
}
|
|
54741
|
+
],
|
|
54742
|
+
"type": {
|
|
54743
|
+
"text": "IconName",
|
|
54744
|
+
"references": [
|
|
54745
|
+
{
|
|
54746
|
+
"name": "IconName",
|
|
54747
|
+
"package": "@esri/calcite-components",
|
|
54748
|
+
"module": "dist/components/calcite-icon/interfaces.d.ts",
|
|
54749
|
+
"start": 0,
|
|
54750
|
+
"end": 8
|
|
54751
|
+
}
|
|
54752
|
+
]
|
|
54753
|
+
}
|
|
54754
|
+
},
|
|
54755
|
+
{
|
|
54756
|
+
"kind": "field",
|
|
54757
|
+
"name": "max",
|
|
54758
|
+
"description": "The maximum value or upper bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](#updateFromRendererResult) method,\nthe user may change this property by selecting the label containing the max value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the size variable of the appropriate renderer.",
|
|
54759
|
+
"docsTags": [
|
|
54760
|
+
{
|
|
54761
|
+
"name": "example",
|
|
54762
|
+
"text": "```js\nconst updateRendererFromSlider = async () => {\n const updatedRenderer = await binaryColorSizeSlider.updateRenderer(\n featureLayer.renderer as ClassBreaksRenderer,\n );\n featureLayer.renderer = updatedRenderer;\n};\n\nbinaryColorSizeSlider.addEventListener(\"arcgisPropertyChange\", updateRendererFromSlider);\n```"
|
|
54763
|
+
}
|
|
54764
|
+
],
|
|
54765
|
+
"type": {
|
|
54766
|
+
"text": "number",
|
|
54767
|
+
"values": [
|
|
54768
|
+
{
|
|
54769
|
+
"type": "number"
|
|
54770
|
+
}
|
|
54771
|
+
]
|
|
54772
|
+
},
|
|
54773
|
+
"attribute": "max"
|
|
54774
|
+
},
|
|
54775
|
+
{
|
|
54776
|
+
"kind": "field",
|
|
54777
|
+
"name": "min",
|
|
54778
|
+
"description": "The minimum value or lower bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](#updateFromRendererResult) method,\nthe user may change this property by selecting the label containing the min value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the size variable of the appropriate renderer.",
|
|
54779
|
+
"docsTags": [
|
|
54780
|
+
{
|
|
54781
|
+
"name": "example",
|
|
54782
|
+
"text": "```js\nconst updateRendererFromSlider = async () => {\n const updatedRenderer = await binaryColorSizeSlider.updateRenderer(\n featureLayer.renderer as ClassBreaksRenderer,\n );\n featureLayer.renderer = updatedRenderer;\n};\n\nbinaryColorSizeSlider.addEventListener(\"arcgisPropertyChange\", updateRendererFromSlider);\n```"
|
|
54783
|
+
}
|
|
54784
|
+
],
|
|
54785
|
+
"type": {
|
|
54786
|
+
"text": "number",
|
|
54787
|
+
"values": [
|
|
54788
|
+
{
|
|
54789
|
+
"type": "number"
|
|
54790
|
+
}
|
|
54791
|
+
]
|
|
54792
|
+
},
|
|
54793
|
+
"attribute": "min"
|
|
54794
|
+
},
|
|
54795
|
+
{
|
|
54796
|
+
"kind": "field",
|
|
54797
|
+
"name": "precision",
|
|
54798
|
+
"description": "Defines how slider thumb values should be rounded. This number indicates the number\nof decimal places slider thumb _values_ should round to when they have been moved.\n\nKeep in mind this property rounds thumb [values](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderViewModel.html#values) and shouldn't be used exclusively\nfor formatting purposes.",
|
|
54799
|
+
"docsTags": [
|
|
54800
|
+
{
|
|
54801
|
+
"name": "example",
|
|
54802
|
+
"text": "```js\nslider.precision = 7;\n```"
|
|
54803
|
+
}
|
|
54804
|
+
],
|
|
54805
|
+
"type": {
|
|
54806
|
+
"text": "number",
|
|
54807
|
+
"values": [
|
|
54808
|
+
{
|
|
54809
|
+
"type": "number"
|
|
54810
|
+
}
|
|
54811
|
+
]
|
|
54812
|
+
},
|
|
54813
|
+
"default": "4",
|
|
54814
|
+
"attribute": "precision"
|
|
54815
|
+
},
|
|
54816
|
+
{
|
|
54817
|
+
"kind": "field",
|
|
54818
|
+
"name": "referenceElement",
|
|
54819
|
+
"description": "By assigning the `id` attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.",
|
|
54820
|
+
"docsTags": [
|
|
54821
|
+
{
|
|
54822
|
+
"name": "see",
|
|
54823
|
+
"text": "[Associate components with a Map or Scene component](https://developers.arcgis.com/javascript/latest/programming-patterns/#associate-components-with-a-map-or-scene-component)"
|
|
54824
|
+
}
|
|
54825
|
+
],
|
|
54826
|
+
"type": {
|
|
54827
|
+
"text": "HTMLArcgisLinkChartElement | HTMLArcgisMapElement | HTMLArcgisSceneElement | string",
|
|
54828
|
+
"references": [
|
|
54829
|
+
{
|
|
54830
|
+
"name": "HTMLArcgisLinkChartElement",
|
|
54831
|
+
"module": "index.js",
|
|
54832
|
+
"start": 0,
|
|
54833
|
+
"end": 26,
|
|
54834
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-link-chart/"
|
|
54835
|
+
},
|
|
54836
|
+
{
|
|
54837
|
+
"name": "HTMLArcgisMapElement",
|
|
54838
|
+
"module": "index.js",
|
|
54839
|
+
"start": 29,
|
|
54840
|
+
"end": 49,
|
|
54841
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-map/"
|
|
54842
|
+
},
|
|
54843
|
+
{
|
|
54844
|
+
"name": "HTMLArcgisSceneElement",
|
|
54845
|
+
"module": "index.js",
|
|
54846
|
+
"start": 52,
|
|
54847
|
+
"end": 74,
|
|
54848
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-scene/"
|
|
54849
|
+
}
|
|
54850
|
+
],
|
|
54851
|
+
"values": [
|
|
54852
|
+
{
|
|
54853
|
+
"type": "HTMLArcgisLinkChartElement"
|
|
54854
|
+
},
|
|
54855
|
+
{
|
|
54856
|
+
"type": "HTMLArcgisMapElement"
|
|
54857
|
+
},
|
|
54858
|
+
{
|
|
54859
|
+
"type": "HTMLArcgisSceneElement"
|
|
54860
|
+
},
|
|
54861
|
+
{
|
|
54862
|
+
"type": "string"
|
|
54863
|
+
}
|
|
54864
|
+
]
|
|
54865
|
+
},
|
|
54866
|
+
"attribute": "reference-element"
|
|
54867
|
+
},
|
|
54868
|
+
{
|
|
54869
|
+
"kind": "field",
|
|
54870
|
+
"name": "state",
|
|
54871
|
+
"description": "The current state of the component.",
|
|
54872
|
+
"type": {
|
|
54873
|
+
"text": "\"disabled\" | \"ready\"",
|
|
54874
|
+
"values": [
|
|
54875
|
+
{
|
|
54876
|
+
"type": "string",
|
|
54877
|
+
"value": "disabled"
|
|
54878
|
+
},
|
|
54879
|
+
{
|
|
54880
|
+
"type": "string",
|
|
54881
|
+
"value": "ready"
|
|
54882
|
+
}
|
|
54883
|
+
]
|
|
54884
|
+
},
|
|
54885
|
+
"attribute": "state"
|
|
54886
|
+
},
|
|
54887
|
+
{
|
|
54888
|
+
"kind": "method",
|
|
54889
|
+
"name": "componentOnReady",
|
|
54890
|
+
"description": "Create a promise that resolves once component is fully loaded.",
|
|
54891
|
+
"docsTags": [
|
|
54892
|
+
{
|
|
54893
|
+
"name": "example",
|
|
54894
|
+
"text": "```js\nconst arcgisSliderBinaryColorSizeLegacy = document.querySelector(\"arcgis-slider-binary-color-size-legacy\");\ndocument.body.append(arcgisSliderBinaryColorSizeLegacy);\nawait arcgisSliderBinaryColorSizeLegacy.componentOnReady();\nconsole.log(\"arcgis-slider-binary-color-size-legacy is ready to go!\");\n```"
|
|
54895
|
+
}
|
|
54896
|
+
],
|
|
54897
|
+
"return": {
|
|
54898
|
+
"type": {
|
|
54899
|
+
"text": "Promise<this>",
|
|
54900
|
+
"references": [
|
|
54901
|
+
{
|
|
54902
|
+
"module": "lib/lib.es5.d.ts",
|
|
54903
|
+
"name": "Promise",
|
|
54904
|
+
"package": "typescript",
|
|
54905
|
+
"start": 0,
|
|
54906
|
+
"end": 7
|
|
54907
|
+
}
|
|
54908
|
+
]
|
|
54909
|
+
}
|
|
54910
|
+
},
|
|
54911
|
+
"inheritedFrom": {
|
|
54912
|
+
"name": "PublicLitElement",
|
|
54913
|
+
"module": "PublicLitElement",
|
|
54914
|
+
"package": "@arcgis/lumina"
|
|
54915
|
+
},
|
|
54916
|
+
"signature": "(): Promise<this>"
|
|
54917
|
+
},
|
|
54918
|
+
{
|
|
54919
|
+
"kind": "method",
|
|
54920
|
+
"name": "destroy",
|
|
54921
|
+
"description": "Permanently destroy the component.",
|
|
54922
|
+
"return": {
|
|
54923
|
+
"type": {
|
|
54924
|
+
"text": "Promise<void>",
|
|
54925
|
+
"references": [
|
|
54926
|
+
{
|
|
54927
|
+
"name": "Promise",
|
|
54928
|
+
"package": "typescript",
|
|
54929
|
+
"module": "lib/lib.es5.d.ts",
|
|
54930
|
+
"start": 0,
|
|
54931
|
+
"end": 7
|
|
54932
|
+
}
|
|
54933
|
+
]
|
|
54934
|
+
}
|
|
54935
|
+
},
|
|
54936
|
+
"signature": "(): Promise<void>"
|
|
54937
|
+
},
|
|
54938
|
+
{
|
|
54939
|
+
"kind": "method",
|
|
54940
|
+
"name": "updateFromRendererResult",
|
|
54941
|
+
"description": "A convenience function used to update the properties of a BinaryColorSizeSlider component instance from the\n[result](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#RendererResult) of\nthe [createContinuousRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)\nmethod. This method is useful for cases when the app allows the end user to switch data variables used to render the data.\nNote that this method always expects `rendererResult` to be defined for the slider to function, but `histogramResult` is optional.",
|
|
54942
|
+
"docsTags": [
|
|
54943
|
+
{
|
|
54944
|
+
"name": "param",
|
|
54945
|
+
"text": "rendererResult - The result object from the [createContinuousRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)\nmethod."
|
|
54946
|
+
},
|
|
54947
|
+
{
|
|
54948
|
+
"name": "param",
|
|
54949
|
+
"text": "histogramResult - The result histogram object from the [histogram()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram)\nmethod."
|
|
54950
|
+
},
|
|
54951
|
+
{
|
|
54952
|
+
"name": "example",
|
|
54953
|
+
"text": "```js\nconst rendererResult = await univariateColorSizeRendererCreator.createContinuousRenderer(params);\n\nfeatureLayer.renderer = rendererResult.renderer;\n\nconst histogramResult = await histogram({\n ...params,\n numBins: 30,\n});\n\nawait binaryColorSizeSlider?.updateFromRendererResult(rendererResult, histogramResult)\n```"
|
|
54954
|
+
}
|
|
54955
|
+
],
|
|
54956
|
+
"parameters": [
|
|
54957
|
+
{
|
|
54958
|
+
"name": "rendererResult",
|
|
54959
|
+
"type": {
|
|
54960
|
+
"text": "RendererResult",
|
|
54961
|
+
"references": [
|
|
54962
|
+
{
|
|
54963
|
+
"name": "RendererResult",
|
|
54964
|
+
"package": "@arcgis/core",
|
|
54965
|
+
"module": "smartMapping/renderers/univariateColorSize.d.ts",
|
|
54966
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#RendererResult",
|
|
54967
|
+
"start": 0,
|
|
54968
|
+
"end": 14
|
|
54969
|
+
}
|
|
54970
|
+
]
|
|
54971
|
+
}
|
|
54972
|
+
},
|
|
54973
|
+
{
|
|
54974
|
+
"name": "histogramResult",
|
|
54975
|
+
"optional": true,
|
|
54976
|
+
"type": {
|
|
54977
|
+
"text": "HistogramResult | undefined",
|
|
54978
|
+
"references": [
|
|
54979
|
+
{
|
|
54980
|
+
"name": "HistogramResult",
|
|
54981
|
+
"package": "@arcgis/core",
|
|
54982
|
+
"module": "smartMapping/statistics/types.d.ts",
|
|
54983
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-types.html#HistogramResult",
|
|
54984
|
+
"start": 0,
|
|
54985
|
+
"end": 15
|
|
54986
|
+
}
|
|
54987
|
+
],
|
|
54988
|
+
"values": [
|
|
54989
|
+
{
|
|
54990
|
+
"type": "HistogramResult"
|
|
54991
|
+
},
|
|
54992
|
+
{
|
|
54993
|
+
"type": "undefined"
|
|
54994
|
+
}
|
|
54995
|
+
]
|
|
54996
|
+
}
|
|
54997
|
+
}
|
|
54998
|
+
],
|
|
54999
|
+
"return": {
|
|
55000
|
+
"type": {
|
|
55001
|
+
"text": "Promise<void>",
|
|
55002
|
+
"references": [
|
|
55003
|
+
{
|
|
55004
|
+
"name": "Promise",
|
|
55005
|
+
"package": "typescript",
|
|
55006
|
+
"module": "lib/lib.es5.d.ts",
|
|
55007
|
+
"start": 0,
|
|
55008
|
+
"end": 7
|
|
55009
|
+
}
|
|
55010
|
+
]
|
|
55011
|
+
}
|
|
55012
|
+
},
|
|
55013
|
+
"signature": "(rendererResult: RendererResult, histogramResult?: HistogramResult): Promise<void>"
|
|
55014
|
+
},
|
|
55015
|
+
{
|
|
55016
|
+
"kind": "method",
|
|
55017
|
+
"name": "updateRenderer",
|
|
55018
|
+
"description": "A convenience function used to update the input renderer based on\nthe values of the slider [stops](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-BinaryColorSizeSlider.html#stops).",
|
|
55019
|
+
"docsTags": [
|
|
55020
|
+
{
|
|
55021
|
+
"name": "param",
|
|
55022
|
+
"text": "renderer - The renderer\nto update from the slider values."
|
|
55023
|
+
},
|
|
55024
|
+
{
|
|
55025
|
+
"name": "returns",
|
|
55026
|
+
"text": "Returns the updated renderer."
|
|
55027
|
+
},
|
|
55028
|
+
{
|
|
55029
|
+
"name": "example",
|
|
55030
|
+
"text": "```js\nconst updatedRenderer = await binaryColorSizeSlider.updateRenderer(featureLayer.renderer as ClassBreaksRenderer);\nfeatureLayer.renderer = updatedRenderer;\n```"
|
|
55031
|
+
}
|
|
55032
|
+
],
|
|
55033
|
+
"parameters": [
|
|
55034
|
+
{
|
|
55035
|
+
"name": "renderer",
|
|
55036
|
+
"type": {
|
|
55037
|
+
"text": "ClassBreaksRenderer",
|
|
55038
|
+
"references": [
|
|
55039
|
+
{
|
|
55040
|
+
"name": "ClassBreaksRenderer",
|
|
55041
|
+
"package": "@arcgis/core",
|
|
55042
|
+
"module": "renderers/ClassBreaksRenderer.d.ts",
|
|
55043
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html",
|
|
55044
|
+
"start": 0,
|
|
55045
|
+
"end": 19
|
|
55046
|
+
}
|
|
55047
|
+
]
|
|
55048
|
+
}
|
|
55049
|
+
}
|
|
55050
|
+
],
|
|
55051
|
+
"return": {
|
|
55052
|
+
"type": {
|
|
55053
|
+
"text": "Promise<ClassBreaksRenderer | null | undefined>",
|
|
55054
|
+
"references": [
|
|
55055
|
+
{
|
|
55056
|
+
"name": "Promise",
|
|
55057
|
+
"package": "typescript",
|
|
55058
|
+
"module": "lib/lib.es5.d.ts",
|
|
55059
|
+
"start": 0,
|
|
55060
|
+
"end": 7
|
|
55061
|
+
},
|
|
55062
|
+
{
|
|
55063
|
+
"name": "ClassBreaksRenderer",
|
|
55064
|
+
"package": "@arcgis/core",
|
|
55065
|
+
"module": "renderers/ClassBreaksRenderer.d.ts",
|
|
55066
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html",
|
|
55067
|
+
"start": 8,
|
|
55068
|
+
"end": 27
|
|
55069
|
+
}
|
|
55070
|
+
]
|
|
55071
|
+
}
|
|
55072
|
+
},
|
|
55073
|
+
"signature": "(renderer: ClassBreaksRenderer): Promise<ClassBreaksRenderer | nil>"
|
|
55074
|
+
}
|
|
55075
|
+
],
|
|
55076
|
+
"attributes": [
|
|
55077
|
+
{
|
|
55078
|
+
"name": "auto-destroy-disabled",
|
|
55079
|
+
"description": "If true, the component will not be destroyed automatically when it is\ndisconnected from the document. This is useful when you want to move the\ncomponent to a different place on the page, or temporarily hide it. If this\nis set, make sure to call the [destroy](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-slider-binary-color-size-legacy/#destroy) method when you are done to\nprevent memory leaks.",
|
|
55080
|
+
"type": {
|
|
55081
|
+
"text": "boolean",
|
|
55082
|
+
"values": [
|
|
55083
|
+
{
|
|
55084
|
+
"type": "boolean"
|
|
55085
|
+
}
|
|
55086
|
+
]
|
|
55087
|
+
},
|
|
55088
|
+
"default": "false",
|
|
55089
|
+
"fieldName": "autoDestroyDisabled"
|
|
55090
|
+
},
|
|
55091
|
+
{
|
|
55092
|
+
"name": "max",
|
|
55093
|
+
"description": "The maximum value or upper bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](#updateFromRendererResult) method,\nthe user may change this property by selecting the label containing the max value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the size variable of the appropriate renderer.",
|
|
55094
|
+
"type": {
|
|
55095
|
+
"text": "number",
|
|
55096
|
+
"values": [
|
|
55097
|
+
{
|
|
55098
|
+
"type": "number"
|
|
55099
|
+
}
|
|
55100
|
+
]
|
|
55101
|
+
},
|
|
55102
|
+
"fieldName": "max"
|
|
55103
|
+
},
|
|
55104
|
+
{
|
|
55105
|
+
"name": "min",
|
|
55106
|
+
"description": "The minimum value or lower bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](#updateFromRendererResult) method,\nthe user may change this property by selecting the label containing the min value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the size variable of the appropriate renderer.",
|
|
55107
|
+
"type": {
|
|
55108
|
+
"text": "number",
|
|
55109
|
+
"values": [
|
|
55110
|
+
{
|
|
55111
|
+
"type": "number"
|
|
55112
|
+
}
|
|
55113
|
+
]
|
|
55114
|
+
},
|
|
55115
|
+
"fieldName": "min"
|
|
55116
|
+
},
|
|
55117
|
+
{
|
|
55118
|
+
"name": "precision",
|
|
55119
|
+
"description": "Defines how slider thumb values should be rounded. This number indicates the number\nof decimal places slider thumb _values_ should round to when they have been moved.\n\nKeep in mind this property rounds thumb [values](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderViewModel.html#values) and shouldn't be used exclusively\nfor formatting purposes.",
|
|
55120
|
+
"type": {
|
|
55121
|
+
"text": "number",
|
|
55122
|
+
"values": [
|
|
55123
|
+
{
|
|
55124
|
+
"type": "number"
|
|
55125
|
+
}
|
|
55126
|
+
]
|
|
55127
|
+
},
|
|
55128
|
+
"default": "4",
|
|
55129
|
+
"fieldName": "precision"
|
|
55130
|
+
},
|
|
55131
|
+
{
|
|
55132
|
+
"name": "reference-element",
|
|
55133
|
+
"description": "By assigning the `id` attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.",
|
|
55134
|
+
"type": {
|
|
55135
|
+
"text": "string",
|
|
55136
|
+
"values": [
|
|
55137
|
+
{
|
|
55138
|
+
"type": "string"
|
|
55139
|
+
}
|
|
55140
|
+
]
|
|
55141
|
+
},
|
|
55142
|
+
"fieldName": "referenceElement"
|
|
55143
|
+
},
|
|
55144
|
+
{
|
|
55145
|
+
"name": "state",
|
|
55146
|
+
"description": "The current state of the component.",
|
|
55147
|
+
"type": {
|
|
55148
|
+
"text": "\"disabled\" | \"ready\"",
|
|
55149
|
+
"values": [
|
|
55150
|
+
{
|
|
55151
|
+
"type": "string",
|
|
55152
|
+
"value": "disabled"
|
|
55153
|
+
},
|
|
55154
|
+
{
|
|
55155
|
+
"type": "string",
|
|
55156
|
+
"value": "ready"
|
|
55157
|
+
}
|
|
55158
|
+
]
|
|
55159
|
+
},
|
|
55160
|
+
"fieldName": "state"
|
|
55161
|
+
}
|
|
55162
|
+
],
|
|
55163
|
+
"events": [
|
|
55164
|
+
{
|
|
55165
|
+
"name": "arcgisPropertyChange",
|
|
55166
|
+
"description": "Emitted when the value of a property is changed. Use this to listen to changes to properties.",
|
|
55167
|
+
"type": {
|
|
55168
|
+
"text": "{ name: \"state\" | \"max\" | \"min\" | \"precision\"; }"
|
|
55169
|
+
}
|
|
55170
|
+
},
|
|
55171
|
+
{
|
|
55172
|
+
"name": "arcgisReady",
|
|
55173
|
+
"description": "Emitted when the component associated with a map or scene view is ready to be interacted with.",
|
|
55174
|
+
"type": {
|
|
55175
|
+
"text": "void"
|
|
55176
|
+
}
|
|
55177
|
+
},
|
|
55178
|
+
{
|
|
55179
|
+
"name": "arcgisThumbChange",
|
|
55180
|
+
"description": "Fires when a user changes the value of a thumb via the arrow keys or by keyboard editing of the label on the slider.",
|
|
55181
|
+
"type": {
|
|
55182
|
+
"text": "ThumbChangeEvent",
|
|
55183
|
+
"references": [
|
|
55184
|
+
{
|
|
55185
|
+
"name": "ThumbChangeEvent",
|
|
55186
|
+
"package": "@arcgis/core",
|
|
55187
|
+
"module": "widgets/Slider/types.d.ts",
|
|
55188
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-types.html#ThumbChangeEvent",
|
|
55189
|
+
"start": 0,
|
|
55190
|
+
"end": 16
|
|
55191
|
+
}
|
|
55192
|
+
]
|
|
55193
|
+
}
|
|
55194
|
+
},
|
|
55195
|
+
{
|
|
55196
|
+
"name": "arcgisThumbDrag",
|
|
55197
|
+
"description": "Fires when a user drags a thumb on the component.",
|
|
55198
|
+
"type": {
|
|
55199
|
+
"text": "ThumbDragEvent",
|
|
55200
|
+
"references": [
|
|
55201
|
+
{
|
|
55202
|
+
"name": "ThumbDragEvent",
|
|
55203
|
+
"package": "@arcgis/core",
|
|
55204
|
+
"module": "widgets/Slider/types.d.ts",
|
|
55205
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-types.html#ThumbDragEvent",
|
|
55206
|
+
"start": 0,
|
|
55207
|
+
"end": 14
|
|
55208
|
+
}
|
|
55209
|
+
]
|
|
55210
|
+
}
|
|
55211
|
+
}
|
|
55212
|
+
],
|
|
55213
|
+
"importPath": "components/arcgis-slider-binary-color-size-legacy"
|
|
55214
|
+
}
|
|
55215
|
+
],
|
|
55216
|
+
"exports": [
|
|
55217
|
+
{
|
|
55218
|
+
"kind": "custom-element-definition",
|
|
55219
|
+
"name": "arcgis-slider-binary-color-size-legacy",
|
|
55220
|
+
"declaration": {
|
|
55221
|
+
"name": "ArcgisSliderBinaryColorSizeLegacy"
|
|
55222
|
+
}
|
|
55223
|
+
}
|
|
55224
|
+
]
|
|
55225
|
+
},
|
|
55226
|
+
{
|
|
55227
|
+
"kind": "javascript-module",
|
|
55228
|
+
"path": "components/arcgis-slider-classed-color-legacy",
|
|
55229
|
+
"sourcePath": "src/components/slider-classed-color-legacy/slider-classed-color-legacy.tsx",
|
|
55230
|
+
"declarations": [
|
|
55231
|
+
{
|
|
55232
|
+
"kind": "class",
|
|
55233
|
+
"customElement": true,
|
|
55234
|
+
"name": "ArcgisSliderClassedColorLegacy",
|
|
55235
|
+
"tagName": "arcgis-slider-classed-color-legacy",
|
|
55236
|
+
"pascalCaseName": "ArcgisSliderClassedColorLegacy",
|
|
55237
|
+
"description": "The Classed Color Slider (Legacy) component is designed for authoring and exploring data-driven visualizations in any\nlayer that can be rendered with color in a [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html).\n\n<span id=\"image-annotations\"></span>\nSee the image below for a summary of the configurable options available on this slider.\n\n\n\nThe [updateFromRendererResult()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedColorSlider.html#fromRendererResult) method can be used to intelligently populate slider properties including\n[max](#max), [min](#min), the [classBreakInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#classBreakInfos) configuration,\nand the slider's histogram after the renderer has been created from the result of the\n[createClassBreaksRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer) method.\n\n```js\nconst colorRendererCreator = await import(\"@arcgis/core/smartMapping/renderers/color.js\");\nconst viewElement = document.querySelector(\"arcgis-map\")!;\nconst classedColorSlider = document.querySelector(\"arcgis-slider-classed-color\")!;\n\nconst featureLayer = new FeatureLayer({\n url: \"https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/ACS_Poverty_by_Age_Boundaries/FeatureServer/1\",\n});\n\nawait viewElement.viewOnReady();\nviewElement.map?.add(featureLayer);\n\nconst params = {\n layer: featureLayer,\n field: \"B17020_calc_pctPovE\",\n view: viewElement.view,\n numClasses: 4\n};\n\nconst rendererResult = await colorRendererCreator.createClassBreaksRenderer(params);\n\nfeatureLayer.renderer = rendererResult.renderer;\n\nconst histogramResult = await histogram({\n ...params,\n numBins: 30,\n});\n\nawait classedColorSlider?.updateFromRendererResult(rendererResult, histogramResult);\n```\n\nThis slider should be used to update the [classBreakInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#classBreakInfos)\nin a ClassBreaksRenderer. It is the responsibility of the app developer\nto set up event listeners on this slider that update the breaks of the appropriate renderer.\n\n```js\nconst updateRendererFromSlider = async () => {\n const renderer = featureLayer?.renderer?.clone();\n if (!renderer || !(\"classBreakInfos\" in renderer) || !renderer.classBreakInfos?.[0]) {\n return;\n }\n\n const updatedClassBreakInfos = await classedColorSlider.updateClassBreakInfos(renderer.classBreakInfos);\n if (!updatedClassBreakInfos) {\n return;\n }\n\n renderer.classBreakInfos = updatedClassBreakInfos;\n featureLayer.renderer = renderer;\n};\n\nclassedColorSlider.addEventListener(\"arcgisThumbChange\", updateRendererFromSlider);\nclassedColorSlider.addEventListener(\"arcgisThumbDrag\", updateRendererFromSlider);\n```",
|
|
55238
|
+
"docsTags": [
|
|
55239
|
+
{
|
|
55240
|
+
"name": "since",
|
|
55241
|
+
"text": "5.0.0"
|
|
55242
|
+
},
|
|
55243
|
+
{
|
|
55244
|
+
"name": "see",
|
|
55245
|
+
"text": "[ClassedColorSliderViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedColorSlider-ClassedColorSliderViewModel.html)"
|
|
55246
|
+
},
|
|
55247
|
+
{
|
|
55248
|
+
"name": "see",
|
|
55249
|
+
"text": "[colorRendererCreator](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html)"
|
|
55250
|
+
},
|
|
55251
|
+
{
|
|
55252
|
+
"name": "see",
|
|
55253
|
+
"text": "[ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html)"
|
|
55254
|
+
}
|
|
55255
|
+
],
|
|
55256
|
+
"demos": [
|
|
55257
|
+
{
|
|
55258
|
+
"description": "Docs",
|
|
55259
|
+
"url": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-slider-classed-color-legacy/"
|
|
55260
|
+
},
|
|
55261
|
+
{
|
|
55262
|
+
"description": "Slider Classed Color (Legacy)",
|
|
55263
|
+
"url": "https://developers.arcgis.com/javascript/latest/storybook/map-components/?path=/story/arcgis-slider-classed-color-legacy--demo&singleStory=true"
|
|
55264
|
+
}
|
|
55265
|
+
],
|
|
55266
|
+
"superclass": {
|
|
55267
|
+
"name": "PublicLitElement",
|
|
55268
|
+
"module": "PublicLitElement",
|
|
55269
|
+
"package": "@arcgis/lumina"
|
|
55270
|
+
},
|
|
55271
|
+
"members": [
|
|
55272
|
+
{
|
|
55273
|
+
"kind": "field",
|
|
55274
|
+
"name": "autoDestroyDisabled",
|
|
55275
|
+
"description": "If true, the component will not be destroyed automatically when it is\ndisconnected from the document. This is useful when you want to move the\ncomponent to a different place on the page, or temporarily hide it. If this\nis set, make sure to call the [destroy](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-slider-classed-color-legacy/#destroy) method when you are done to\nprevent memory leaks.",
|
|
55276
|
+
"type": {
|
|
55277
|
+
"text": "boolean",
|
|
55278
|
+
"values": [
|
|
55279
|
+
{
|
|
55280
|
+
"type": "boolean"
|
|
55281
|
+
}
|
|
55282
|
+
]
|
|
55283
|
+
},
|
|
55284
|
+
"default": "false",
|
|
55285
|
+
"attribute": "auto-destroy-disabled"
|
|
55286
|
+
},
|
|
55287
|
+
{
|
|
55288
|
+
"kind": "field",
|
|
55289
|
+
"name": "icon",
|
|
55290
|
+
"description": "Icon which represents the widget. It is typically used when the widget is controlled by another\none (e.g. in the Expand widget).",
|
|
55291
|
+
"docsTags": [
|
|
55292
|
+
{
|
|
55293
|
+
"name": "see",
|
|
55294
|
+
"text": "[Calcite Icons](https://developers.arcgis.com/calcite-design-system/icons/)"
|
|
55295
|
+
}
|
|
55296
|
+
],
|
|
55297
|
+
"type": {
|
|
55298
|
+
"text": "IconName",
|
|
55299
|
+
"references": [
|
|
55300
|
+
{
|
|
55301
|
+
"name": "IconName",
|
|
55302
|
+
"package": "@esri/calcite-components",
|
|
55303
|
+
"module": "dist/components/calcite-icon/interfaces.d.ts",
|
|
55304
|
+
"start": 0,
|
|
55305
|
+
"end": 8
|
|
55306
|
+
}
|
|
55307
|
+
]
|
|
55308
|
+
}
|
|
55309
|
+
},
|
|
55310
|
+
{
|
|
55311
|
+
"kind": "field",
|
|
55312
|
+
"name": "max",
|
|
55313
|
+
"description": "The maximum value or upper bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](#updateFromRendererResult) method,\nthe user may change this property by selecting the label containing the max value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the breaks of the appropriate renderer.",
|
|
55314
|
+
"docsTags": [
|
|
55315
|
+
{
|
|
55316
|
+
"name": "example",
|
|
55317
|
+
"text": "```js\nconst updateRendererFromSlider = async () => {\n const renderer = featureLayer?.renderer?.clone();\n if (!renderer || !(\"classBreakInfos\" in renderer) || !renderer.classBreakInfos?.[0]) {\n return;\n }\n\n const updatedClassBreakInfos = await classedColorSlider.updateClassBreakInfos(renderer.classBreakInfos);\n if (!updatedClassBreakInfos) {\n return;\n }\n\n renderer.classBreakInfos = updatedClassBreakInfos;\n featureLayer.renderer = renderer;\n};\n\nclassedColorSlider.addEventListener(\"arcgisPropertyChange\", updateRendererFromSlider);\n```"
|
|
55318
|
+
}
|
|
55319
|
+
],
|
|
55320
|
+
"type": {
|
|
55321
|
+
"text": "number",
|
|
55322
|
+
"values": [
|
|
55323
|
+
{
|
|
55324
|
+
"type": "number"
|
|
55325
|
+
}
|
|
55326
|
+
]
|
|
55327
|
+
},
|
|
55328
|
+
"attribute": "max"
|
|
55329
|
+
},
|
|
55330
|
+
{
|
|
55331
|
+
"kind": "field",
|
|
55332
|
+
"name": "min",
|
|
55333
|
+
"description": "The minimum value or lower bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](#updateFromRendererResult) method,\nthe user may change this property by selecting the label containing the min value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the breaks of the appropriate renderer.",
|
|
55334
|
+
"docsTags": [
|
|
55335
|
+
{
|
|
55336
|
+
"name": "example",
|
|
55337
|
+
"text": "```js\nconst updateRendererFromSlider = async () => {\n const renderer = featureLayer?.renderer?.clone();\n if (!renderer || !(\"classBreakInfos\" in renderer) || !renderer.classBreakInfos?.[0]) {\n return;\n }\n\n const updatedClassBreakInfos = await classedColorSlider.updateClassBreakInfos(renderer.classBreakInfos);\n if (!updatedClassBreakInfos) {\n return;\n }\n\n renderer.classBreakInfos = updatedClassBreakInfos;\n featureLayer.renderer = renderer;\n};\n\nclassedColorSlider.addEventListener(\"arcgisPropertyChange\", updateRendererFromSlider);\n```"
|
|
55338
|
+
}
|
|
55339
|
+
],
|
|
55340
|
+
"type": {
|
|
55341
|
+
"text": "number",
|
|
55342
|
+
"values": [
|
|
55343
|
+
{
|
|
55344
|
+
"type": "number"
|
|
55345
|
+
}
|
|
55346
|
+
]
|
|
55347
|
+
},
|
|
55348
|
+
"attribute": "min"
|
|
55349
|
+
},
|
|
55350
|
+
{
|
|
55351
|
+
"kind": "field",
|
|
55352
|
+
"name": "precision",
|
|
55353
|
+
"description": "Defines how slider thumb values should be rounded. This number indicates the number\nof decimal places slider thumb _values_ should round to when they have been moved.\n\nKeep in mind this property rounds thumb [values](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderViewModel.html#values) and shouldn't be used exclusively\nfor formatting purposes.",
|
|
55354
|
+
"docsTags": [
|
|
55355
|
+
{
|
|
55356
|
+
"name": "example",
|
|
55357
|
+
"text": "```js\nslider.precision = 7;\n```"
|
|
55358
|
+
}
|
|
55359
|
+
],
|
|
55360
|
+
"type": {
|
|
55361
|
+
"text": "number",
|
|
55362
|
+
"values": [
|
|
55363
|
+
{
|
|
55364
|
+
"type": "number"
|
|
55365
|
+
}
|
|
55366
|
+
]
|
|
55367
|
+
},
|
|
55368
|
+
"default": "4",
|
|
55369
|
+
"attribute": "precision"
|
|
55370
|
+
},
|
|
55371
|
+
{
|
|
55372
|
+
"kind": "field",
|
|
55373
|
+
"name": "referenceElement",
|
|
55374
|
+
"description": "By assigning the `id` attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.",
|
|
55375
|
+
"docsTags": [
|
|
55376
|
+
{
|
|
55377
|
+
"name": "see",
|
|
55378
|
+
"text": "[Associate components with a Map or Scene component](https://developers.arcgis.com/javascript/latest/programming-patterns/#associate-components-with-a-map-or-scene-component)"
|
|
55379
|
+
}
|
|
55380
|
+
],
|
|
55381
|
+
"type": {
|
|
55382
|
+
"text": "HTMLArcgisLinkChartElement | HTMLArcgisMapElement | HTMLArcgisSceneElement | string",
|
|
55383
|
+
"references": [
|
|
55384
|
+
{
|
|
55385
|
+
"name": "HTMLArcgisLinkChartElement",
|
|
55386
|
+
"module": "index.js",
|
|
55387
|
+
"start": 0,
|
|
55388
|
+
"end": 26,
|
|
55389
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-link-chart/"
|
|
55390
|
+
},
|
|
55391
|
+
{
|
|
55392
|
+
"name": "HTMLArcgisMapElement",
|
|
55393
|
+
"module": "index.js",
|
|
55394
|
+
"start": 29,
|
|
55395
|
+
"end": 49,
|
|
55396
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-map/"
|
|
55397
|
+
},
|
|
55398
|
+
{
|
|
55399
|
+
"name": "HTMLArcgisSceneElement",
|
|
55400
|
+
"module": "index.js",
|
|
55401
|
+
"start": 52,
|
|
55402
|
+
"end": 74,
|
|
55403
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-scene/"
|
|
55404
|
+
}
|
|
55405
|
+
],
|
|
55406
|
+
"values": [
|
|
55407
|
+
{
|
|
55408
|
+
"type": "HTMLArcgisLinkChartElement"
|
|
55409
|
+
},
|
|
55410
|
+
{
|
|
55411
|
+
"type": "HTMLArcgisMapElement"
|
|
55412
|
+
},
|
|
55413
|
+
{
|
|
55414
|
+
"type": "HTMLArcgisSceneElement"
|
|
55415
|
+
},
|
|
55416
|
+
{
|
|
55417
|
+
"type": "string"
|
|
55418
|
+
}
|
|
55419
|
+
]
|
|
55420
|
+
},
|
|
55421
|
+
"attribute": "reference-element"
|
|
55422
|
+
},
|
|
55423
|
+
{
|
|
55424
|
+
"kind": "field",
|
|
55425
|
+
"name": "state",
|
|
55426
|
+
"description": "The current state of the component.",
|
|
55427
|
+
"type": {
|
|
55428
|
+
"text": "\"disabled\" | \"ready\"",
|
|
55429
|
+
"values": [
|
|
55430
|
+
{
|
|
55431
|
+
"type": "string",
|
|
55432
|
+
"value": "disabled"
|
|
55433
|
+
},
|
|
55434
|
+
{
|
|
55435
|
+
"type": "string",
|
|
55436
|
+
"value": "ready"
|
|
55437
|
+
}
|
|
55438
|
+
]
|
|
55439
|
+
},
|
|
55440
|
+
"attribute": "state"
|
|
55441
|
+
},
|
|
55442
|
+
{
|
|
55443
|
+
"kind": "method",
|
|
55444
|
+
"name": "componentOnReady",
|
|
55445
|
+
"description": "Create a promise that resolves once component is fully loaded.",
|
|
55446
|
+
"docsTags": [
|
|
55447
|
+
{
|
|
55448
|
+
"name": "example",
|
|
55449
|
+
"text": "```js\nconst arcgisSliderClassedColorLegacy = document.querySelector(\"arcgis-slider-classed-color-legacy\");\ndocument.body.append(arcgisSliderClassedColorLegacy);\nawait arcgisSliderClassedColorLegacy.componentOnReady();\nconsole.log(\"arcgis-slider-classed-color-legacy is ready to go!\");\n```"
|
|
55450
|
+
}
|
|
55451
|
+
],
|
|
55452
|
+
"return": {
|
|
55453
|
+
"type": {
|
|
55454
|
+
"text": "Promise<this>",
|
|
55455
|
+
"references": [
|
|
55456
|
+
{
|
|
55457
|
+
"module": "lib/lib.es5.d.ts",
|
|
55458
|
+
"name": "Promise",
|
|
55459
|
+
"package": "typescript",
|
|
55460
|
+
"start": 0,
|
|
55461
|
+
"end": 7
|
|
55462
|
+
}
|
|
55463
|
+
]
|
|
55464
|
+
}
|
|
55465
|
+
},
|
|
55466
|
+
"inheritedFrom": {
|
|
55467
|
+
"name": "PublicLitElement",
|
|
55468
|
+
"module": "PublicLitElement",
|
|
55469
|
+
"package": "@arcgis/lumina"
|
|
55470
|
+
},
|
|
55471
|
+
"signature": "(): Promise<this>"
|
|
55472
|
+
},
|
|
55473
|
+
{
|
|
55474
|
+
"kind": "method",
|
|
55475
|
+
"name": "destroy",
|
|
55476
|
+
"description": "Permanently destroy the component.",
|
|
55477
|
+
"return": {
|
|
55478
|
+
"type": {
|
|
55479
|
+
"text": "Promise<void>",
|
|
55480
|
+
"references": [
|
|
55481
|
+
{
|
|
55482
|
+
"name": "Promise",
|
|
55483
|
+
"package": "typescript",
|
|
55484
|
+
"module": "lib/lib.es5.d.ts",
|
|
55485
|
+
"start": 0,
|
|
55486
|
+
"end": 7
|
|
55487
|
+
}
|
|
55488
|
+
]
|
|
55489
|
+
}
|
|
55490
|
+
},
|
|
55491
|
+
"signature": "(): Promise<void>"
|
|
55492
|
+
},
|
|
55493
|
+
{
|
|
55494
|
+
"kind": "method",
|
|
55495
|
+
"name": "updateClassBreakInfos",
|
|
55496
|
+
"description": "A convenience function used to update the\n[classBreakInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#classBreakInfos)\nof a [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html) associated with this slider.\n\nThe number of breaks from the renderer must match the number of breaks in the slider.\nGenerally, the input breaks for this method should come from the same renderer as one\nused to create the slider with the [fromRendererResult()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedColorSlider.html#fromRendererResult) method.",
|
|
55497
|
+
"docsTags": [
|
|
55498
|
+
{
|
|
55499
|
+
"name": "param",
|
|
55500
|
+
"text": "breakInfos - The classBreakInfos\nfrom a [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html) instance to update based on\nthe properties of the slider."
|
|
55501
|
+
},
|
|
55502
|
+
{
|
|
55503
|
+
"name": "returns",
|
|
55504
|
+
"text": "The updated classBreakInfos to set\non a ClassBreaksRenderer object."
|
|
55505
|
+
},
|
|
55506
|
+
{
|
|
55507
|
+
"name": "example",
|
|
55508
|
+
"text": "```js\nconst renderer = featureLayer?.renderer?.clone();\nconst updatedClassBreakInfos = await classedColorSlider.updateClassBreakInfos(renderer.classBreakInfos);\nrenderer.classBreakInfos = updatedClassBreakInfos;\nfeatureLayer.renderer = renderer;\n```"
|
|
55509
|
+
}
|
|
55510
|
+
],
|
|
55511
|
+
"parameters": [
|
|
55512
|
+
{
|
|
55513
|
+
"name": "breakInfos",
|
|
55514
|
+
"type": {
|
|
55515
|
+
"text": "Array<ClassBreakInfo>",
|
|
55516
|
+
"references": [
|
|
55517
|
+
{
|
|
55518
|
+
"name": "Array",
|
|
55519
|
+
"package": "typescript",
|
|
55520
|
+
"module": "lib/lib.es5.d.ts",
|
|
55521
|
+
"start": 0,
|
|
55522
|
+
"end": 5
|
|
55523
|
+
},
|
|
55524
|
+
{
|
|
55525
|
+
"name": "ClassBreakInfo",
|
|
55526
|
+
"package": "@arcgis/core",
|
|
55527
|
+
"module": "renderers/support/ClassBreakInfo.d.ts",
|
|
55528
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-ClassBreakInfo.html",
|
|
55529
|
+
"start": 6,
|
|
55530
|
+
"end": 20
|
|
55531
|
+
}
|
|
55532
|
+
]
|
|
55533
|
+
}
|
|
55534
|
+
}
|
|
55535
|
+
],
|
|
55536
|
+
"return": {
|
|
55537
|
+
"type": {
|
|
55538
|
+
"text": "Promise<Array<ClassBreakInfo> | null | undefined>",
|
|
55539
|
+
"references": [
|
|
55540
|
+
{
|
|
55541
|
+
"name": "Promise",
|
|
55542
|
+
"package": "typescript",
|
|
55543
|
+
"module": "lib/lib.es5.d.ts",
|
|
55544
|
+
"start": 0,
|
|
55545
|
+
"end": 7
|
|
55546
|
+
},
|
|
55547
|
+
{
|
|
55548
|
+
"name": "Array",
|
|
55549
|
+
"package": "typescript",
|
|
55550
|
+
"module": "lib/lib.es5.d.ts",
|
|
55551
|
+
"start": 8,
|
|
55552
|
+
"end": 13
|
|
55553
|
+
},
|
|
55554
|
+
{
|
|
55555
|
+
"name": "ClassBreakInfo",
|
|
55556
|
+
"package": "@arcgis/core",
|
|
55557
|
+
"module": "renderers/support/ClassBreakInfo.d.ts",
|
|
55558
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-ClassBreakInfo.html",
|
|
55559
|
+
"start": 14,
|
|
55560
|
+
"end": 28
|
|
55561
|
+
}
|
|
55562
|
+
]
|
|
55563
|
+
}
|
|
55564
|
+
},
|
|
55565
|
+
"signature": "(breakInfos: ClassBreakInfo[]): Promise<ClassBreakInfo[] | nil>"
|
|
55566
|
+
},
|
|
55567
|
+
{
|
|
55568
|
+
"kind": "method",
|
|
55569
|
+
"name": "updateFromRendererResult",
|
|
55570
|
+
"description": "A convenience function used to update the properties a ClassedColorSlider from the result\nof the [createClassBreaksRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer) method.\nNote that this method always expects `rendererResult` to be defined for the slider to function, but `histogramResult` is optional.",
|
|
55571
|
+
"docsTags": [
|
|
55572
|
+
{
|
|
55573
|
+
"name": "param",
|
|
55574
|
+
"text": "rendererResult - The result object from the [createClassBreaksRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer)\nmethod."
|
|
55575
|
+
},
|
|
55576
|
+
{
|
|
55577
|
+
"name": "param",
|
|
55578
|
+
"text": "histogramResult - The result histogram object from the [histogram()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram)\nmethod."
|
|
55579
|
+
},
|
|
55580
|
+
{
|
|
55581
|
+
"name": "example",
|
|
55582
|
+
"text": "```js\nconst rendererResult = await colorRendererCreator.createClassBreaksRenderer(params);\n\nfeatureLayer.renderer = rendererResult.renderer;\n\nconst histogramResult = await histogram({\n ...params,\n numBins: 30,\n});\n\nawait classedColorSlider?.updateFromRendererResult(rendererResult, histogramResult);\n```"
|
|
55583
|
+
}
|
|
55584
|
+
],
|
|
55585
|
+
"parameters": [
|
|
55586
|
+
{
|
|
55587
|
+
"name": "rendererResult",
|
|
55588
|
+
"type": {
|
|
55589
|
+
"text": "ClassBreaksRendererResult",
|
|
55590
|
+
"references": [
|
|
55591
|
+
{
|
|
55592
|
+
"name": "ClassBreaksRendererResult",
|
|
55593
|
+
"package": "@arcgis/core",
|
|
55594
|
+
"module": "smartMapping/renderers/color.d.ts",
|
|
55595
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#ClassBreaksRendererResult",
|
|
55596
|
+
"start": 0,
|
|
55597
|
+
"end": 25
|
|
55598
|
+
}
|
|
55599
|
+
]
|
|
55600
|
+
}
|
|
55601
|
+
},
|
|
55602
|
+
{
|
|
55603
|
+
"name": "histogramResult",
|
|
55604
|
+
"optional": true,
|
|
55605
|
+
"type": {
|
|
55606
|
+
"text": "HistogramResult | undefined",
|
|
55607
|
+
"references": [
|
|
55608
|
+
{
|
|
55609
|
+
"name": "HistogramResult",
|
|
55610
|
+
"package": "@arcgis/core",
|
|
55611
|
+
"module": "smartMapping/statistics/types.d.ts",
|
|
55612
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-types.html#HistogramResult",
|
|
55613
|
+
"start": 0,
|
|
55614
|
+
"end": 15
|
|
55615
|
+
}
|
|
55616
|
+
],
|
|
55617
|
+
"values": [
|
|
55618
|
+
{
|
|
55619
|
+
"type": "HistogramResult"
|
|
55620
|
+
},
|
|
55621
|
+
{
|
|
55622
|
+
"type": "undefined"
|
|
55623
|
+
}
|
|
55624
|
+
]
|
|
55625
|
+
}
|
|
55626
|
+
}
|
|
55627
|
+
],
|
|
55628
|
+
"return": {
|
|
55629
|
+
"type": {
|
|
55630
|
+
"text": "Promise<void>",
|
|
55631
|
+
"references": [
|
|
55632
|
+
{
|
|
55633
|
+
"name": "Promise",
|
|
55634
|
+
"package": "typescript",
|
|
55635
|
+
"module": "lib/lib.es5.d.ts",
|
|
55636
|
+
"start": 0,
|
|
55637
|
+
"end": 7
|
|
55638
|
+
}
|
|
55639
|
+
]
|
|
55640
|
+
}
|
|
55641
|
+
},
|
|
55642
|
+
"signature": "(rendererResult: ClassBreaksRendererResult, histogramResult?: HistogramResult): Promise<void>"
|
|
55643
|
+
}
|
|
55644
|
+
],
|
|
55645
|
+
"attributes": [
|
|
55646
|
+
{
|
|
55647
|
+
"name": "auto-destroy-disabled",
|
|
55648
|
+
"description": "If true, the component will not be destroyed automatically when it is\ndisconnected from the document. This is useful when you want to move the\ncomponent to a different place on the page, or temporarily hide it. If this\nis set, make sure to call the [destroy](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-slider-classed-color-legacy/#destroy) method when you are done to\nprevent memory leaks.",
|
|
55649
|
+
"type": {
|
|
55650
|
+
"text": "boolean",
|
|
55651
|
+
"values": [
|
|
55652
|
+
{
|
|
55653
|
+
"type": "boolean"
|
|
55654
|
+
}
|
|
55655
|
+
]
|
|
55656
|
+
},
|
|
55657
|
+
"default": "false",
|
|
55658
|
+
"fieldName": "autoDestroyDisabled"
|
|
55659
|
+
},
|
|
55660
|
+
{
|
|
55661
|
+
"name": "max",
|
|
55662
|
+
"description": "The maximum value or upper bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](#updateFromRendererResult) method,\nthe user may change this property by selecting the label containing the max value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the breaks of the appropriate renderer.",
|
|
55663
|
+
"type": {
|
|
55664
|
+
"text": "number",
|
|
55665
|
+
"values": [
|
|
55666
|
+
{
|
|
55667
|
+
"type": "number"
|
|
55668
|
+
}
|
|
55669
|
+
]
|
|
55670
|
+
},
|
|
55671
|
+
"fieldName": "max"
|
|
55672
|
+
},
|
|
55673
|
+
{
|
|
55674
|
+
"name": "min",
|
|
55675
|
+
"description": "The minimum value or lower bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](#updateFromRendererResult) method,\nthe user may change this property by selecting the label containing the min value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the breaks of the appropriate renderer.",
|
|
55676
|
+
"type": {
|
|
55677
|
+
"text": "number",
|
|
55678
|
+
"values": [
|
|
55679
|
+
{
|
|
55680
|
+
"type": "number"
|
|
55681
|
+
}
|
|
55682
|
+
]
|
|
55683
|
+
},
|
|
55684
|
+
"fieldName": "min"
|
|
55685
|
+
},
|
|
55686
|
+
{
|
|
55687
|
+
"name": "precision",
|
|
55688
|
+
"description": "Defines how slider thumb values should be rounded. This number indicates the number\nof decimal places slider thumb _values_ should round to when they have been moved.\n\nKeep in mind this property rounds thumb [values](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderViewModel.html#values) and shouldn't be used exclusively\nfor formatting purposes.",
|
|
55689
|
+
"type": {
|
|
55690
|
+
"text": "number",
|
|
55691
|
+
"values": [
|
|
55692
|
+
{
|
|
55693
|
+
"type": "number"
|
|
55694
|
+
}
|
|
55695
|
+
]
|
|
55696
|
+
},
|
|
55697
|
+
"default": "4",
|
|
55698
|
+
"fieldName": "precision"
|
|
55699
|
+
},
|
|
55700
|
+
{
|
|
55701
|
+
"name": "reference-element",
|
|
55702
|
+
"description": "By assigning the `id` attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.",
|
|
55703
|
+
"type": {
|
|
55704
|
+
"text": "string",
|
|
55705
|
+
"values": [
|
|
55706
|
+
{
|
|
55707
|
+
"type": "string"
|
|
55708
|
+
}
|
|
55709
|
+
]
|
|
55710
|
+
},
|
|
55711
|
+
"fieldName": "referenceElement"
|
|
55712
|
+
},
|
|
55713
|
+
{
|
|
55714
|
+
"name": "state",
|
|
55715
|
+
"description": "The current state of the component.",
|
|
55716
|
+
"type": {
|
|
55717
|
+
"text": "\"disabled\" | \"ready\"",
|
|
55718
|
+
"values": [
|
|
55719
|
+
{
|
|
55720
|
+
"type": "string",
|
|
55721
|
+
"value": "disabled"
|
|
55722
|
+
},
|
|
55723
|
+
{
|
|
55724
|
+
"type": "string",
|
|
55725
|
+
"value": "ready"
|
|
55726
|
+
}
|
|
55727
|
+
]
|
|
55728
|
+
},
|
|
55729
|
+
"fieldName": "state"
|
|
55730
|
+
}
|
|
55731
|
+
],
|
|
55732
|
+
"events": [
|
|
55733
|
+
{
|
|
55734
|
+
"name": "arcgisPropertyChange",
|
|
55735
|
+
"description": "Emitted when the value of a property is changed. Use this to listen to changes to properties.",
|
|
55736
|
+
"type": {
|
|
55737
|
+
"text": "{ name: \"state\" | \"max\" | \"min\" | \"precision\"; }"
|
|
55738
|
+
}
|
|
55739
|
+
},
|
|
55740
|
+
{
|
|
55741
|
+
"name": "arcgisReady",
|
|
55742
|
+
"description": "Emitted when the component associated with a map or scene view is ready to be interacted with.",
|
|
55743
|
+
"type": {
|
|
55744
|
+
"text": "void"
|
|
55745
|
+
}
|
|
55746
|
+
},
|
|
55747
|
+
{
|
|
55748
|
+
"name": "arcgisThumbChange",
|
|
55749
|
+
"description": "Fires when a user changes the value of a thumb via the arrow keys or by keyboard editing of the label on the slider.",
|
|
55750
|
+
"type": {
|
|
55751
|
+
"text": "ThumbChangeEvent",
|
|
55752
|
+
"references": [
|
|
55753
|
+
{
|
|
55754
|
+
"name": "ThumbChangeEvent",
|
|
55755
|
+
"package": "@arcgis/core",
|
|
55756
|
+
"module": "widgets/Slider/types.d.ts",
|
|
55757
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-types.html#ThumbChangeEvent",
|
|
55758
|
+
"start": 0,
|
|
55759
|
+
"end": 16
|
|
55760
|
+
}
|
|
55761
|
+
]
|
|
55762
|
+
}
|
|
55763
|
+
},
|
|
55764
|
+
{
|
|
55765
|
+
"name": "arcgisThumbDrag",
|
|
55766
|
+
"description": "Fires when a user drags a thumb on the component.",
|
|
55767
|
+
"type": {
|
|
55768
|
+
"text": "ThumbDragEvent",
|
|
55769
|
+
"references": [
|
|
55770
|
+
{
|
|
55771
|
+
"name": "ThumbDragEvent",
|
|
55772
|
+
"package": "@arcgis/core",
|
|
55773
|
+
"module": "widgets/Slider/types.d.ts",
|
|
55774
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-types.html#ThumbDragEvent",
|
|
55775
|
+
"start": 0,
|
|
55776
|
+
"end": 14
|
|
55777
|
+
}
|
|
55778
|
+
]
|
|
55779
|
+
}
|
|
55780
|
+
}
|
|
55781
|
+
],
|
|
55782
|
+
"importPath": "components/arcgis-slider-classed-color-legacy"
|
|
55783
|
+
}
|
|
55784
|
+
],
|
|
55785
|
+
"exports": [
|
|
55786
|
+
{
|
|
55787
|
+
"kind": "custom-element-definition",
|
|
55788
|
+
"name": "arcgis-slider-classed-color-legacy",
|
|
55789
|
+
"declaration": {
|
|
55790
|
+
"name": "ArcgisSliderClassedColorLegacy"
|
|
55791
|
+
}
|
|
55792
|
+
}
|
|
55793
|
+
]
|
|
55794
|
+
},
|
|
55795
|
+
{
|
|
55796
|
+
"kind": "javascript-module",
|
|
55797
|
+
"path": "components/arcgis-slider-classed-size-legacy",
|
|
55798
|
+
"sourcePath": "src/components/slider-classed-size-legacy/slider-classed-size-legacy.tsx",
|
|
55799
|
+
"declarations": [
|
|
55800
|
+
{
|
|
55801
|
+
"kind": "class",
|
|
55802
|
+
"customElement": true,
|
|
55803
|
+
"name": "ArcgisSliderClassedSizeLegacy",
|
|
55804
|
+
"tagName": "arcgis-slider-classed-size-legacy",
|
|
55805
|
+
"pascalCaseName": "ArcgisSliderClassedSizeLegacy",
|
|
55806
|
+
"description": "The Classed Size Slider (Legacy) component is designed for authoring and exploring data-driven visualizations in any\nlayer that can be rendered with size in a [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html).\n\n<span id=\"image-annotations\"></span>\nSee the image below for a summary of the configurable options available on this slider.\n\n\n\nThe [updateFromRendererResult()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider.html#fromRendererResult) method can be used to intelligently populate slider properties including\n[max](#max), [min](#min), the [classBreakInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#classBreakInfos) configuration,\nand the slider's histogram after the renderer has been created from the result of the [createClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer)\nmethod.\n\n```js\nconst sizeRendererCreator = await import(\"@arcgis/core/smartMapping/renderers/size.js\");\nconst viewElement = document.querySelector(\"arcgis-map\")!;\nconst classedSizeSlider = document.querySelector(\"arcgis-slider-classed-size\")!;\n\nconst featureLayer = new FeatureLayer({\n url: \"https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/ACS_Median_Income_by_Race_and_Age_Selp_Emp_Boundaries/FeatureServer/1\",\n});\n\nawait viewElement.viewOnReady();\nviewElement.map?.add(featureLayer);\n\nconst params = {\n layer: featureLayer,\n field: \"B19049_001E\",\n view: viewElement.view,\n numClasses: 4,\n};\n\nconst rendererResult = await sizeRendererCreator.createClassBreaksRenderer(params);\n\nfeatureLayer.renderer = rendererResult.renderer;\n\nconst histogramResult = await histogram({\n ...params,\n numBins: 30,\n});\n\nawait classedSizeSlider?.updateFromRendererResult(rendererResult, histogramResult);\n```\n\nThis slider should be used to update the [classBreakInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#classBreakInfos)\nin a ClassBreaksRenderer. It is the responsibility of the app developer\nto set up event listeners on this slider that update the breaks of the appropriate renderer.\n\n```js\nconst updateRendererFromSlider = async () => {\n const renderer = featureLayer?.renderer?.clone();\n if (!renderer || !(\"classBreakInfos\" in renderer) || !renderer.classBreakInfos?.[0]) {\n return;\n }\n renderer.classBreakInfos = (await classedSizeSlider.updateClassBreakInfos(renderer.classBreakInfos)) as any;\n featureLayer.renderer = renderer;\n};\n\nclassedSizeSlider.addEventListener(\"arcgisThumbChange\", updateRendererFromSlider);\nclassedSizeSlider.addEventListener(\"arcgisThumbDrag\", updateRendererFromSlider);\n```",
|
|
55807
|
+
"docsTags": [
|
|
55808
|
+
{
|
|
55809
|
+
"name": "since",
|
|
55810
|
+
"text": "5.0.0"
|
|
55811
|
+
},
|
|
55812
|
+
{
|
|
55813
|
+
"name": "see",
|
|
55814
|
+
"text": "[ClassedSizeSliderViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider-ClassedSizeSliderViewModel.html)"
|
|
55815
|
+
},
|
|
55816
|
+
{
|
|
55817
|
+
"name": "see",
|
|
55818
|
+
"text": "[sizeRendererCreator](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html)"
|
|
55819
|
+
},
|
|
55820
|
+
{
|
|
55821
|
+
"name": "see",
|
|
55822
|
+
"text": "[ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html)"
|
|
55823
|
+
}
|
|
55824
|
+
],
|
|
55825
|
+
"demos": [
|
|
55826
|
+
{
|
|
55827
|
+
"description": "Docs",
|
|
55828
|
+
"url": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-slider-classed-size-legacy/"
|
|
55829
|
+
},
|
|
55830
|
+
{
|
|
55831
|
+
"description": "Slider Classed Size (Legacy)",
|
|
55832
|
+
"url": "https://developers.arcgis.com/javascript/latest/storybook/map-components/?path=/story/arcgis-slider-classed-size-legacy--demo&singleStory=true"
|
|
55833
|
+
}
|
|
55834
|
+
],
|
|
55835
|
+
"superclass": {
|
|
55836
|
+
"name": "PublicLitElement",
|
|
55837
|
+
"module": "PublicLitElement",
|
|
55838
|
+
"package": "@arcgis/lumina"
|
|
55839
|
+
},
|
|
55840
|
+
"members": [
|
|
55841
|
+
{
|
|
55842
|
+
"kind": "field",
|
|
55843
|
+
"name": "autoDestroyDisabled",
|
|
55844
|
+
"description": "If true, the component will not be destroyed automatically when it is\ndisconnected from the document. This is useful when you want to move the\ncomponent to a different place on the page, or temporarily hide it. If this\nis set, make sure to call the [destroy](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-slider-classed-size-legacy/#destroy) method when you are done to\nprevent memory leaks.",
|
|
55845
|
+
"type": {
|
|
55846
|
+
"text": "boolean",
|
|
55847
|
+
"values": [
|
|
55848
|
+
{
|
|
55849
|
+
"type": "boolean"
|
|
55850
|
+
}
|
|
55851
|
+
]
|
|
55852
|
+
},
|
|
55853
|
+
"default": "false",
|
|
55854
|
+
"attribute": "auto-destroy-disabled"
|
|
55855
|
+
},
|
|
55856
|
+
{
|
|
55857
|
+
"kind": "field",
|
|
55858
|
+
"name": "icon",
|
|
55859
|
+
"description": "Icon which represents the widget. It is typically used when the widget is controlled by another\none (e.g. in the Expand widget).",
|
|
55860
|
+
"docsTags": [
|
|
55861
|
+
{
|
|
55862
|
+
"name": "see",
|
|
55863
|
+
"text": "[Calcite Icons](https://developers.arcgis.com/calcite-design-system/icons/)"
|
|
55864
|
+
}
|
|
55865
|
+
],
|
|
55866
|
+
"type": {
|
|
55867
|
+
"text": "IconName",
|
|
55868
|
+
"references": [
|
|
55869
|
+
{
|
|
55870
|
+
"name": "IconName",
|
|
55871
|
+
"package": "@esri/calcite-components",
|
|
55872
|
+
"module": "dist/components/calcite-icon/interfaces.d.ts",
|
|
55873
|
+
"start": 0,
|
|
55874
|
+
"end": 8
|
|
55875
|
+
}
|
|
55876
|
+
]
|
|
55877
|
+
}
|
|
55878
|
+
},
|
|
55879
|
+
{
|
|
55880
|
+
"kind": "field",
|
|
55881
|
+
"name": "max",
|
|
55882
|
+
"description": "The maximum value or upper bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](#updateFromRendererResult) method,\nthe user may change this property by selecting the label containing the max value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the breaks of the appropriate renderer.",
|
|
55883
|
+
"docsTags": [
|
|
55884
|
+
{
|
|
55885
|
+
"name": "example",
|
|
55886
|
+
"text": "```js\nconst updateRendererFromSlider = async () => {\n const renderer = featureLayer?.renderer?.clone();\n if (!renderer || !(\"classBreakInfos\" in renderer) || !renderer.classBreakInfos?.[0]) {\n return;\n }\n renderer.classBreakInfos = (await classedSizeSlider.updateClassBreakInfos(renderer.classBreakInfos)) as any;\n featureLayer.renderer = renderer;\n};\n\nclassedSizeSlider.addEventListener(\"arcgisPropertyChange\", updateRendererFromSlider);\n```"
|
|
55887
|
+
}
|
|
55888
|
+
],
|
|
55889
|
+
"type": {
|
|
55890
|
+
"text": "number",
|
|
55891
|
+
"values": [
|
|
55892
|
+
{
|
|
55893
|
+
"type": "number"
|
|
55894
|
+
}
|
|
55895
|
+
]
|
|
55896
|
+
},
|
|
55897
|
+
"attribute": "max"
|
|
55898
|
+
},
|
|
55899
|
+
{
|
|
55900
|
+
"kind": "field",
|
|
55901
|
+
"name": "min",
|
|
55902
|
+
"description": "The minimum value or lower bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](#updateFromRendererResult) method,\nthe user may change this property by selecting the label containing the min value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the breaks of the appropriate renderer.",
|
|
55903
|
+
"docsTags": [
|
|
55904
|
+
{
|
|
55905
|
+
"name": "example",
|
|
55906
|
+
"text": "```js\nconst updateRendererFromSlider = async () => {\n const renderer = featureLayer?.renderer?.clone();\n if (!renderer || !(\"classBreakInfos\" in renderer) || !renderer.classBreakInfos?.[0]) {\n return;\n }\n renderer.classBreakInfos = (await classedSizeSlider.updateClassBreakInfos(renderer.classBreakInfos)) as any;\n featureLayer.renderer = renderer;\n};\n\nclassedSizeSlider.addEventListener(\"arcgisPropertyChange\", updateRendererFromSlider);\n```"
|
|
55907
|
+
}
|
|
55908
|
+
],
|
|
55909
|
+
"type": {
|
|
55910
|
+
"text": "number",
|
|
55911
|
+
"values": [
|
|
55912
|
+
{
|
|
55913
|
+
"type": "number"
|
|
55914
|
+
}
|
|
55915
|
+
]
|
|
55916
|
+
},
|
|
55917
|
+
"attribute": "min"
|
|
55918
|
+
},
|
|
55919
|
+
{
|
|
55920
|
+
"kind": "field",
|
|
55921
|
+
"name": "precision",
|
|
55922
|
+
"description": "Defines how slider thumb values should be rounded. This number indicates the number\nof decimal places slider thumb _values_ should round to when they have been moved.\n\nKeep in mind this property rounds thumb [values](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderViewModel.html#values) and shouldn't be used exclusively\nfor formatting purposes.",
|
|
55923
|
+
"docsTags": [
|
|
55924
|
+
{
|
|
55925
|
+
"name": "example",
|
|
55926
|
+
"text": "```js\nslider.precision = 7;\n```"
|
|
55927
|
+
}
|
|
55928
|
+
],
|
|
55929
|
+
"type": {
|
|
55930
|
+
"text": "number",
|
|
55931
|
+
"values": [
|
|
55932
|
+
{
|
|
55933
|
+
"type": "number"
|
|
55934
|
+
}
|
|
55935
|
+
]
|
|
55936
|
+
},
|
|
55937
|
+
"default": "4",
|
|
55938
|
+
"attribute": "precision"
|
|
55939
|
+
},
|
|
55940
|
+
{
|
|
55941
|
+
"kind": "field",
|
|
55942
|
+
"name": "referenceElement",
|
|
55943
|
+
"description": "By assigning the `id` attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.",
|
|
55944
|
+
"docsTags": [
|
|
55945
|
+
{
|
|
55946
|
+
"name": "see",
|
|
55947
|
+
"text": "[Associate components with a Map or Scene component](https://developers.arcgis.com/javascript/latest/programming-patterns/#associate-components-with-a-map-or-scene-component)"
|
|
55948
|
+
}
|
|
55949
|
+
],
|
|
55950
|
+
"type": {
|
|
55951
|
+
"text": "HTMLArcgisLinkChartElement | HTMLArcgisMapElement | HTMLArcgisSceneElement | string",
|
|
55952
|
+
"references": [
|
|
55953
|
+
{
|
|
55954
|
+
"name": "HTMLArcgisLinkChartElement",
|
|
55955
|
+
"module": "index.js",
|
|
55956
|
+
"start": 0,
|
|
55957
|
+
"end": 26,
|
|
55958
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-link-chart/"
|
|
55959
|
+
},
|
|
55960
|
+
{
|
|
55961
|
+
"name": "HTMLArcgisMapElement",
|
|
55962
|
+
"module": "index.js",
|
|
55963
|
+
"start": 29,
|
|
55964
|
+
"end": 49,
|
|
55965
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-map/"
|
|
55966
|
+
},
|
|
55967
|
+
{
|
|
55968
|
+
"name": "HTMLArcgisSceneElement",
|
|
55969
|
+
"module": "index.js",
|
|
55970
|
+
"start": 52,
|
|
55971
|
+
"end": 74,
|
|
55972
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-scene/"
|
|
55973
|
+
}
|
|
55974
|
+
],
|
|
55975
|
+
"values": [
|
|
55976
|
+
{
|
|
55977
|
+
"type": "HTMLArcgisLinkChartElement"
|
|
55978
|
+
},
|
|
55979
|
+
{
|
|
55980
|
+
"type": "HTMLArcgisMapElement"
|
|
55981
|
+
},
|
|
55982
|
+
{
|
|
55983
|
+
"type": "HTMLArcgisSceneElement"
|
|
55984
|
+
},
|
|
55985
|
+
{
|
|
55986
|
+
"type": "string"
|
|
55987
|
+
}
|
|
55988
|
+
]
|
|
55989
|
+
},
|
|
55990
|
+
"attribute": "reference-element"
|
|
55991
|
+
},
|
|
55992
|
+
{
|
|
55993
|
+
"kind": "field",
|
|
55994
|
+
"name": "state",
|
|
55995
|
+
"description": "The current state of the component.",
|
|
55996
|
+
"type": {
|
|
55997
|
+
"text": "\"disabled\" | \"ready\"",
|
|
55998
|
+
"values": [
|
|
55999
|
+
{
|
|
56000
|
+
"type": "string",
|
|
56001
|
+
"value": "disabled"
|
|
56002
|
+
},
|
|
56003
|
+
{
|
|
56004
|
+
"type": "string",
|
|
56005
|
+
"value": "ready"
|
|
56006
|
+
}
|
|
56007
|
+
]
|
|
56008
|
+
},
|
|
56009
|
+
"attribute": "state"
|
|
56010
|
+
},
|
|
56011
|
+
{
|
|
56012
|
+
"kind": "method",
|
|
56013
|
+
"name": "componentOnReady",
|
|
56014
|
+
"description": "Create a promise that resolves once component is fully loaded.",
|
|
56015
|
+
"docsTags": [
|
|
56016
|
+
{
|
|
56017
|
+
"name": "example",
|
|
56018
|
+
"text": "```js\nconst arcgisSliderClassedSizeLegacy = document.querySelector(\"arcgis-slider-classed-size-legacy\");\ndocument.body.append(arcgisSliderClassedSizeLegacy);\nawait arcgisSliderClassedSizeLegacy.componentOnReady();\nconsole.log(\"arcgis-slider-classed-size-legacy is ready to go!\");\n```"
|
|
56019
|
+
}
|
|
56020
|
+
],
|
|
56021
|
+
"return": {
|
|
56022
|
+
"type": {
|
|
56023
|
+
"text": "Promise<this>",
|
|
56024
|
+
"references": [
|
|
56025
|
+
{
|
|
56026
|
+
"module": "lib/lib.es5.d.ts",
|
|
56027
|
+
"name": "Promise",
|
|
56028
|
+
"package": "typescript",
|
|
56029
|
+
"start": 0,
|
|
56030
|
+
"end": 7
|
|
56031
|
+
}
|
|
56032
|
+
]
|
|
56033
|
+
}
|
|
56034
|
+
},
|
|
56035
|
+
"inheritedFrom": {
|
|
56036
|
+
"name": "PublicLitElement",
|
|
56037
|
+
"module": "PublicLitElement",
|
|
56038
|
+
"package": "@arcgis/lumina"
|
|
56039
|
+
},
|
|
56040
|
+
"signature": "(): Promise<this>"
|
|
56041
|
+
},
|
|
56042
|
+
{
|
|
56043
|
+
"kind": "method",
|
|
56044
|
+
"name": "destroy",
|
|
56045
|
+
"description": "Permanently destroy the component.",
|
|
56046
|
+
"return": {
|
|
56047
|
+
"type": {
|
|
56048
|
+
"text": "Promise<void>",
|
|
56049
|
+
"references": [
|
|
56050
|
+
{
|
|
56051
|
+
"name": "Promise",
|
|
56052
|
+
"package": "typescript",
|
|
56053
|
+
"module": "lib/lib.es5.d.ts",
|
|
56054
|
+
"start": 0,
|
|
56055
|
+
"end": 7
|
|
56056
|
+
}
|
|
56057
|
+
]
|
|
56058
|
+
}
|
|
56059
|
+
},
|
|
56060
|
+
"signature": "(): Promise<void>"
|
|
56061
|
+
},
|
|
56062
|
+
{
|
|
56063
|
+
"kind": "method",
|
|
56064
|
+
"name": "updateClassBreakInfos",
|
|
56065
|
+
"description": "A convenience function used to update the\n[classBreakInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#classBreakInfos)\nof a [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html) associated with this slider.\n\nThe number of breaks from the renderer must match the number of breaks in the slider.\nGenerally, the input breaks for this method should come from the same renderer as one\nused to create the slider with the [fromRendererResult()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider.html#fromRendererResult) method.",
|
|
56066
|
+
"docsTags": [
|
|
56067
|
+
{
|
|
56068
|
+
"name": "param",
|
|
56069
|
+
"text": "breakInfos - The classBreakInfos\nfrom a [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html) instance to update based on\nthe properties of the slider."
|
|
56070
|
+
},
|
|
56071
|
+
{
|
|
56072
|
+
"name": "returns",
|
|
56073
|
+
"text": "The updated classBreakInfos to set\non a ClassBreaksRenderer object."
|
|
56074
|
+
},
|
|
56075
|
+
{
|
|
56076
|
+
"name": "example",
|
|
56077
|
+
"text": "```js\nconst renderer = featureLayer?.renderer?.clone();\nrenderer.classBreakInfos = (await classedSizeSlider.updateClassBreakInfos(renderer.classBreakInfos));\nfeatureLayer.renderer = renderer;\n```"
|
|
56078
|
+
}
|
|
56079
|
+
],
|
|
56080
|
+
"parameters": [
|
|
56081
|
+
{
|
|
56082
|
+
"name": "breakInfos",
|
|
56083
|
+
"type": {
|
|
56084
|
+
"text": "Array<ClassBreakInfo>",
|
|
56085
|
+
"references": [
|
|
56086
|
+
{
|
|
56087
|
+
"name": "Array",
|
|
56088
|
+
"package": "typescript",
|
|
56089
|
+
"module": "lib/lib.es5.d.ts",
|
|
56090
|
+
"start": 0,
|
|
56091
|
+
"end": 5
|
|
56092
|
+
},
|
|
56093
|
+
{
|
|
56094
|
+
"name": "ClassBreakInfo",
|
|
56095
|
+
"package": "@arcgis/core",
|
|
56096
|
+
"module": "renderers/support/ClassBreakInfo.d.ts",
|
|
56097
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-ClassBreakInfo.html",
|
|
56098
|
+
"start": 6,
|
|
56099
|
+
"end": 20
|
|
56100
|
+
}
|
|
56101
|
+
]
|
|
56102
|
+
}
|
|
56103
|
+
}
|
|
56104
|
+
],
|
|
56105
|
+
"return": {
|
|
56106
|
+
"type": {
|
|
56107
|
+
"text": "Promise<Array<ClassBreakInfo> | null | undefined>",
|
|
56108
|
+
"references": [
|
|
56109
|
+
{
|
|
56110
|
+
"name": "Promise",
|
|
56111
|
+
"package": "typescript",
|
|
56112
|
+
"module": "lib/lib.es5.d.ts",
|
|
56113
|
+
"start": 0,
|
|
56114
|
+
"end": 7
|
|
56115
|
+
},
|
|
56116
|
+
{
|
|
56117
|
+
"name": "Array",
|
|
56118
|
+
"package": "typescript",
|
|
56119
|
+
"module": "lib/lib.es5.d.ts",
|
|
56120
|
+
"start": 8,
|
|
56121
|
+
"end": 13
|
|
56122
|
+
},
|
|
56123
|
+
{
|
|
56124
|
+
"name": "ClassBreakInfo",
|
|
56125
|
+
"package": "@arcgis/core",
|
|
56126
|
+
"module": "renderers/support/ClassBreakInfo.d.ts",
|
|
56127
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-ClassBreakInfo.html",
|
|
56128
|
+
"start": 14,
|
|
56129
|
+
"end": 28
|
|
56130
|
+
}
|
|
56131
|
+
]
|
|
56132
|
+
}
|
|
56133
|
+
},
|
|
56134
|
+
"signature": "(breakInfos: ClassBreakInfo[]): Promise<ClassBreakInfo[] | nil>"
|
|
56135
|
+
},
|
|
56136
|
+
{
|
|
56137
|
+
"kind": "method",
|
|
56138
|
+
"name": "updateFromRendererResult",
|
|
56139
|
+
"description": "A convenience function used to update the properties a ClassedSizeSlider from the result\nof the [createClassBreaksRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer) method.\nThis method is used to configure an empty ClassedSizeSlider to be used with the layer data, and is useful for cases when the app allows the end user to switch data variables.\nNote that this method always expects `rendererResult` to be defined for the slider to function, but `histogramResult` is optional.",
|
|
56140
|
+
"docsTags": [
|
|
56141
|
+
{
|
|
56142
|
+
"name": "param",
|
|
56143
|
+
"text": "rendererResult - The result object from the [createClassBreaksRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer)\nmethod."
|
|
56144
|
+
},
|
|
56145
|
+
{
|
|
56146
|
+
"name": "param",
|
|
56147
|
+
"text": "histogramResult - The result histogram object from the [histogram()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram)\nmethod."
|
|
56148
|
+
},
|
|
56149
|
+
{
|
|
56150
|
+
"name": "example",
|
|
56151
|
+
"text": "```js\nconst rendererResult = await sizeRendererCreator.createClassBreaksRenderer(params);\n\nfeatureLayer.renderer = rendererResult.renderer;\n\nconst histogramResult = await histogram({\n ...params,\n numBins: 30,\n});\n\nawait classedSizeSlider?.updateFromRendererResult(rendererResult, histogramResult);\n```"
|
|
56152
|
+
}
|
|
56153
|
+
],
|
|
56154
|
+
"parameters": [
|
|
56155
|
+
{
|
|
56156
|
+
"name": "rendererResult",
|
|
56157
|
+
"type": {
|
|
56158
|
+
"text": "ClassBreaksRendererResult",
|
|
56159
|
+
"references": [
|
|
56160
|
+
{
|
|
56161
|
+
"name": "ClassBreaksRendererResult",
|
|
56162
|
+
"package": "@arcgis/core",
|
|
56163
|
+
"module": "smartMapping/renderers/size.d.ts",
|
|
56164
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#ClassBreaksRendererResult",
|
|
56165
|
+
"start": 0,
|
|
56166
|
+
"end": 25
|
|
56167
|
+
}
|
|
56168
|
+
]
|
|
56169
|
+
}
|
|
56170
|
+
},
|
|
56171
|
+
{
|
|
56172
|
+
"name": "histogramResult",
|
|
56173
|
+
"optional": true,
|
|
56174
|
+
"type": {
|
|
56175
|
+
"text": "HistogramResult | undefined",
|
|
56176
|
+
"references": [
|
|
56177
|
+
{
|
|
56178
|
+
"name": "HistogramResult",
|
|
56179
|
+
"package": "@arcgis/core",
|
|
56180
|
+
"module": "smartMapping/statistics/types.d.ts",
|
|
56181
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-types.html#HistogramResult",
|
|
56182
|
+
"start": 0,
|
|
56183
|
+
"end": 15
|
|
56184
|
+
}
|
|
56185
|
+
],
|
|
56186
|
+
"values": [
|
|
56187
|
+
{
|
|
56188
|
+
"type": "HistogramResult"
|
|
56189
|
+
},
|
|
56190
|
+
{
|
|
56191
|
+
"type": "undefined"
|
|
56192
|
+
}
|
|
56193
|
+
]
|
|
56194
|
+
}
|
|
56195
|
+
}
|
|
56196
|
+
],
|
|
56197
|
+
"return": {
|
|
56198
|
+
"type": {
|
|
56199
|
+
"text": "Promise<void>",
|
|
56200
|
+
"references": [
|
|
56201
|
+
{
|
|
56202
|
+
"name": "Promise",
|
|
56203
|
+
"package": "typescript",
|
|
56204
|
+
"module": "lib/lib.es5.d.ts",
|
|
56205
|
+
"start": 0,
|
|
56206
|
+
"end": 7
|
|
56207
|
+
}
|
|
56208
|
+
]
|
|
56209
|
+
}
|
|
56210
|
+
},
|
|
56211
|
+
"signature": "(rendererResult: ClassBreaksRendererResult, histogramResult?: HistogramResult): Promise<void>"
|
|
56212
|
+
}
|
|
56213
|
+
],
|
|
56214
|
+
"attributes": [
|
|
56215
|
+
{
|
|
56216
|
+
"name": "auto-destroy-disabled",
|
|
56217
|
+
"description": "If true, the component will not be destroyed automatically when it is\ndisconnected from the document. This is useful when you want to move the\ncomponent to a different place on the page, or temporarily hide it. If this\nis set, make sure to call the [destroy](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-slider-classed-size-legacy/#destroy) method when you are done to\nprevent memory leaks.",
|
|
56218
|
+
"type": {
|
|
56219
|
+
"text": "boolean",
|
|
56220
|
+
"values": [
|
|
56221
|
+
{
|
|
56222
|
+
"type": "boolean"
|
|
56223
|
+
}
|
|
56224
|
+
]
|
|
56225
|
+
},
|
|
56226
|
+
"default": "false",
|
|
56227
|
+
"fieldName": "autoDestroyDisabled"
|
|
56228
|
+
},
|
|
56229
|
+
{
|
|
56230
|
+
"name": "max",
|
|
56231
|
+
"description": "The maximum value or upper bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](#updateFromRendererResult) method,\nthe user may change this property by selecting the label containing the max value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the breaks of the appropriate renderer.",
|
|
56232
|
+
"type": {
|
|
56233
|
+
"text": "number",
|
|
56234
|
+
"values": [
|
|
56235
|
+
{
|
|
56236
|
+
"type": "number"
|
|
56237
|
+
}
|
|
56238
|
+
]
|
|
56239
|
+
},
|
|
56240
|
+
"fieldName": "max"
|
|
56241
|
+
},
|
|
56242
|
+
{
|
|
56243
|
+
"name": "min",
|
|
56244
|
+
"description": "The minimum value or lower bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](#updateFromRendererResult) method,\nthe user may change this property by selecting the label containing the min value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the breaks of the appropriate renderer.",
|
|
56245
|
+
"type": {
|
|
56246
|
+
"text": "number",
|
|
56247
|
+
"values": [
|
|
56248
|
+
{
|
|
56249
|
+
"type": "number"
|
|
56250
|
+
}
|
|
56251
|
+
]
|
|
56252
|
+
},
|
|
56253
|
+
"fieldName": "min"
|
|
56254
|
+
},
|
|
56255
|
+
{
|
|
56256
|
+
"name": "precision",
|
|
56257
|
+
"description": "Defines how slider thumb values should be rounded. This number indicates the number\nof decimal places slider thumb _values_ should round to when they have been moved.\n\nKeep in mind this property rounds thumb [values](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderViewModel.html#values) and shouldn't be used exclusively\nfor formatting purposes.",
|
|
56258
|
+
"type": {
|
|
56259
|
+
"text": "number",
|
|
56260
|
+
"values": [
|
|
56261
|
+
{
|
|
56262
|
+
"type": "number"
|
|
56263
|
+
}
|
|
56264
|
+
]
|
|
56265
|
+
},
|
|
56266
|
+
"default": "4",
|
|
56267
|
+
"fieldName": "precision"
|
|
56268
|
+
},
|
|
56269
|
+
{
|
|
56270
|
+
"name": "reference-element",
|
|
56271
|
+
"description": "By assigning the `id` attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.",
|
|
56272
|
+
"type": {
|
|
56273
|
+
"text": "string",
|
|
56274
|
+
"values": [
|
|
56275
|
+
{
|
|
56276
|
+
"type": "string"
|
|
56277
|
+
}
|
|
56278
|
+
]
|
|
56279
|
+
},
|
|
56280
|
+
"fieldName": "referenceElement"
|
|
56281
|
+
},
|
|
56282
|
+
{
|
|
56283
|
+
"name": "state",
|
|
56284
|
+
"description": "The current state of the component.",
|
|
56285
|
+
"type": {
|
|
56286
|
+
"text": "\"disabled\" | \"ready\"",
|
|
56287
|
+
"values": [
|
|
56288
|
+
{
|
|
56289
|
+
"type": "string",
|
|
56290
|
+
"value": "disabled"
|
|
56291
|
+
},
|
|
56292
|
+
{
|
|
56293
|
+
"type": "string",
|
|
56294
|
+
"value": "ready"
|
|
56295
|
+
}
|
|
56296
|
+
]
|
|
56297
|
+
},
|
|
56298
|
+
"fieldName": "state"
|
|
56299
|
+
}
|
|
56300
|
+
],
|
|
56301
|
+
"events": [
|
|
56302
|
+
{
|
|
56303
|
+
"name": "arcgisPropertyChange",
|
|
56304
|
+
"description": "Emitted when the value of a property is changed. Use this to listen to changes to properties.",
|
|
56305
|
+
"type": {
|
|
56306
|
+
"text": "{ name: \"state\" | \"max\" | \"min\" | \"precision\"; }"
|
|
56307
|
+
}
|
|
56308
|
+
},
|
|
56309
|
+
{
|
|
56310
|
+
"name": "arcgisReady",
|
|
56311
|
+
"description": "Emitted when the component associated with a map or scene view is ready to be interacted with.",
|
|
56312
|
+
"type": {
|
|
56313
|
+
"text": "void"
|
|
56314
|
+
}
|
|
56315
|
+
},
|
|
56316
|
+
{
|
|
56317
|
+
"name": "arcgisThumbChange",
|
|
56318
|
+
"description": "Fires when a user changes the value of a thumb via the arrow keys or by keyboard editing of the label on the slider.",
|
|
56319
|
+
"type": {
|
|
56320
|
+
"text": "ThumbChangeEvent",
|
|
56321
|
+
"references": [
|
|
56322
|
+
{
|
|
56323
|
+
"name": "ThumbChangeEvent",
|
|
56324
|
+
"package": "@arcgis/core",
|
|
56325
|
+
"module": "widgets/Slider/types.d.ts",
|
|
56326
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-types.html#ThumbChangeEvent",
|
|
56327
|
+
"start": 0,
|
|
56328
|
+
"end": 16
|
|
56329
|
+
}
|
|
56330
|
+
]
|
|
56331
|
+
}
|
|
56332
|
+
},
|
|
56333
|
+
{
|
|
56334
|
+
"name": "arcgisThumbDrag",
|
|
56335
|
+
"description": "Fires when a user drags a thumb on the component.",
|
|
56336
|
+
"type": {
|
|
56337
|
+
"text": "ThumbDragEvent",
|
|
56338
|
+
"references": [
|
|
56339
|
+
{
|
|
56340
|
+
"name": "ThumbDragEvent",
|
|
56341
|
+
"package": "@arcgis/core",
|
|
56342
|
+
"module": "widgets/Slider/types.d.ts",
|
|
56343
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-types.html#ThumbDragEvent",
|
|
56344
|
+
"start": 0,
|
|
56345
|
+
"end": 14
|
|
56346
|
+
}
|
|
56347
|
+
]
|
|
56348
|
+
}
|
|
56349
|
+
}
|
|
56350
|
+
],
|
|
56351
|
+
"importPath": "components/arcgis-slider-classed-size-legacy"
|
|
56352
|
+
}
|
|
56353
|
+
],
|
|
56354
|
+
"exports": [
|
|
56355
|
+
{
|
|
56356
|
+
"kind": "custom-element-definition",
|
|
56357
|
+
"name": "arcgis-slider-classed-size-legacy",
|
|
56358
|
+
"declaration": {
|
|
56359
|
+
"name": "ArcgisSliderClassedSizeLegacy"
|
|
56360
|
+
}
|
|
56361
|
+
}
|
|
56362
|
+
]
|
|
56363
|
+
},
|
|
56364
|
+
{
|
|
56365
|
+
"kind": "javascript-module",
|
|
56366
|
+
"path": "components/arcgis-slider-color-legacy",
|
|
56367
|
+
"sourcePath": "src/components/slider-color-legacy/slider-color-legacy.tsx",
|
|
56368
|
+
"declarations": [
|
|
56369
|
+
{
|
|
56370
|
+
"kind": "class",
|
|
56371
|
+
"customElement": true,
|
|
56372
|
+
"name": "ArcgisSliderColorLegacy",
|
|
56373
|
+
"tagName": "arcgis-slider-color-legacy",
|
|
56374
|
+
"pascalCaseName": "ArcgisSliderColorLegacy",
|
|
56375
|
+
"description": "The Color Slider (Legacy) component is intended for authoring and exploring data-driven visualizations in any\nlayer that can be rendered with a [ColorVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html).\n\n<span id=\"image-annotations\"></span>\nSee the image below for a summary of the configurable options available on this slider.\n\n\n\nThe [updateFromRendererResult()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSlider.html#fromRendererResult) method can be used to intelligently populate slider properties including\n[max](#max), [min](#min), the [color visual variable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html) configuration,\nand the slider's histogram after the renderer has been created from the result of the [createContinuousRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer) method.\n\n```js\nconst colorRendererCreator = await import(\"@arcgis/core/smartMapping/renderers/color.js\");\nconst viewElement = document.querySelector(\"arcgis-map\")!;\nconst colorSlider = document.querySelector(\"arcgis-slider-color\")!;\n\nconst featureLayer = new FeatureLayer({\n url: \"https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/ACS_Poverty_by_Age_Boundaries/FeatureServer/1\",\n});\n\nawait viewElement.viewOnReady();\nviewElement.map?.add(featureLayer);\n\nconst params: ContinuousRendererParameters = {\n layer: featureLayer,\n field: \"B17020_calc_pctPovE\",\n view: viewElement.view,\n theme: \"above-and-below\",\n};\n\nconst rendererResult = await colorRendererCreator.createContinuousRenderer(params);\n\nfeatureLayer.renderer = rendererResult.renderer;\n\nconst histogramResult = await histogram({\n ...params,\n numBins: 30,\n});\n\ncolorSlider.updateFromRendererResult(rendererResult, histogramResult);\n```\n\nThis slider should be used to update a [color visual variable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html)\nin a layer's renderer. It is the responsibility of the app developer\nto set up event listeners on this slider that update the color variable of the appropriate renderer.\n\n```js\ncolorSlider.updateFromRendererResult(rendererResult, histogramResult);\n\nconst updateRendererFromSlider = () => {\n const renderer = featureLayer.renderer?.clone();\n if (!renderer || !(\"visualVariables\" in renderer) || !renderer.visualVariables?.[0]) {\n return;\n }\n\n const colorVariable = renderer.visualVariables[0].clone() as __esri.ColorVariable;\n colorVariable.stops = colorSlider.stops;\n\n renderer.visualVariables = [colorVariable];\n featureLayer.renderer = renderer;\n};\n\ncolorSlider.addEventListener(\"arcgisThumbChange\", updateRendererFromSlider);\ncolorSlider.addEventListener(\"arcgisThumbDrag\", updateRendererFromSlider);\n```",
|
|
56376
|
+
"docsTags": [
|
|
56377
|
+
{
|
|
56378
|
+
"name": "since",
|
|
56379
|
+
"text": "5.0.0"
|
|
56380
|
+
},
|
|
56381
|
+
{
|
|
56382
|
+
"name": "see",
|
|
56383
|
+
"text": "[ColorSliderViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSlider-ColorSliderViewModel.html)"
|
|
56384
|
+
},
|
|
56385
|
+
{
|
|
56386
|
+
"name": "see",
|
|
56387
|
+
"text": "[colorRendererCreator](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html)"
|
|
56388
|
+
}
|
|
56389
|
+
],
|
|
56390
|
+
"demos": [
|
|
56391
|
+
{
|
|
56392
|
+
"description": "Docs",
|
|
56393
|
+
"url": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-slider-color-legacy/"
|
|
56394
|
+
},
|
|
56395
|
+
{
|
|
56396
|
+
"description": "Slider Color (Legacy)",
|
|
56397
|
+
"url": "https://developers.arcgis.com/javascript/latest/storybook/map-components/?path=/story/arcgis-slider-color-legacy--demo&singleStory=true"
|
|
56398
|
+
}
|
|
56399
|
+
],
|
|
56400
|
+
"superclass": {
|
|
56401
|
+
"name": "PublicLitElement",
|
|
56402
|
+
"module": "PublicLitElement",
|
|
56403
|
+
"package": "@arcgis/lumina"
|
|
56404
|
+
},
|
|
56405
|
+
"members": [
|
|
56406
|
+
{
|
|
56407
|
+
"kind": "field",
|
|
56408
|
+
"name": "autoDestroyDisabled",
|
|
56409
|
+
"description": "If true, the component will not be destroyed automatically when it is\ndisconnected from the document. This is useful when you want to move the\ncomponent to a different place on the page, or temporarily hide it. If this\nis set, make sure to call the [destroy](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-slider-color-legacy/#destroy) method when you are done to\nprevent memory leaks.",
|
|
56410
|
+
"type": {
|
|
56411
|
+
"text": "boolean",
|
|
56412
|
+
"values": [
|
|
56413
|
+
{
|
|
56414
|
+
"type": "boolean"
|
|
56415
|
+
}
|
|
56416
|
+
]
|
|
56417
|
+
},
|
|
56418
|
+
"default": "false",
|
|
56419
|
+
"attribute": "auto-destroy-disabled"
|
|
56420
|
+
},
|
|
56421
|
+
{
|
|
56422
|
+
"kind": "field",
|
|
56423
|
+
"name": "icon",
|
|
56424
|
+
"description": "Icon which represents the component.\nTypically used when the component is controlled by another component (e.g. by the Expand component).",
|
|
56425
|
+
"docsTags": [
|
|
56426
|
+
{
|
|
56427
|
+
"name": "see",
|
|
56428
|
+
"text": "[Calcite Icons](https://developers.arcgis.com/calcite-design-system/icons/)"
|
|
56429
|
+
}
|
|
56430
|
+
],
|
|
56431
|
+
"type": {
|
|
56432
|
+
"text": "IconName",
|
|
56433
|
+
"references": [
|
|
56434
|
+
{
|
|
56435
|
+
"name": "IconName",
|
|
56436
|
+
"package": "@esri/calcite-components",
|
|
56437
|
+
"module": "dist/components/calcite-icon/interfaces.d.ts",
|
|
56438
|
+
"start": 0,
|
|
56439
|
+
"end": 8
|
|
56440
|
+
}
|
|
56441
|
+
]
|
|
56442
|
+
}
|
|
56443
|
+
},
|
|
56444
|
+
{
|
|
56445
|
+
"kind": "field",
|
|
56446
|
+
"name": "max",
|
|
56447
|
+
"description": "The maximum value or upper bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](#updateFromRendererResult) method,\nthe user may change this property by selecting the label containing the max value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the color variable of the appropriate renderer.",
|
|
56448
|
+
"docsTags": [
|
|
56449
|
+
{
|
|
56450
|
+
"name": "example",
|
|
56451
|
+
"text": "const updateRendererFromSlider = () => {\n const renderer = featureLayer.renderer?.clone();\n if (!renderer || !(\"visualVariables\" in renderer) || !renderer.visualVariables?.[0]) {\n return;\n }\n\n const colorVariable = renderer.visualVariables[0].clone() as __esri.ColorVariable;\n colorVariable.stops = colorSlider.stops;\n\n renderer.visualVariables = [colorVariable];\n featureLayer.renderer = renderer;\n};\n\ncolorSlider.addEventListener(\"arcgisPropertyChange\", updateRendererFromSlider);"
|
|
56452
|
+
}
|
|
56453
|
+
],
|
|
56454
|
+
"type": {
|
|
56455
|
+
"text": "number",
|
|
56456
|
+
"values": [
|
|
56457
|
+
{
|
|
56458
|
+
"type": "number"
|
|
56459
|
+
}
|
|
56460
|
+
]
|
|
56461
|
+
},
|
|
56462
|
+
"attribute": "max"
|
|
56463
|
+
},
|
|
56464
|
+
{
|
|
56465
|
+
"kind": "field",
|
|
56466
|
+
"name": "min",
|
|
56467
|
+
"description": "The minimum value or lower bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](#updateFromRendererResult) method,\nthe user may change this property by selecting the label containing the min value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the color variable of the appropriate renderer.",
|
|
56468
|
+
"docsTags": [
|
|
56469
|
+
{
|
|
56470
|
+
"name": "example",
|
|
56471
|
+
"text": "const updateRendererFromSlider = () => {\n const renderer = featureLayer.renderer?.clone();\n if (!renderer || !(\"visualVariables\" in renderer) || !renderer.visualVariables?.[0]) {\n return;\n }\n\n const colorVariable = renderer.visualVariables[0].clone() as __esri.ColorVariable;\n colorVariable.stops = colorSlider.stops;\n\n renderer.visualVariables = [colorVariable];\n featureLayer.renderer = renderer;\n};\n\ncolorSlider.addEventListener(\"arcgisPropertyChange\", updateRendererFromSlider);"
|
|
56472
|
+
}
|
|
56473
|
+
],
|
|
56474
|
+
"type": {
|
|
56475
|
+
"text": "number",
|
|
56476
|
+
"values": [
|
|
56477
|
+
{
|
|
56478
|
+
"type": "number"
|
|
56479
|
+
}
|
|
56480
|
+
]
|
|
56481
|
+
},
|
|
56482
|
+
"attribute": "min"
|
|
56483
|
+
},
|
|
56484
|
+
{
|
|
56485
|
+
"kind": "field",
|
|
56486
|
+
"name": "precision",
|
|
56487
|
+
"description": "Defines how slider thumb values should be rounded. This number indicates the number\nof decimal places slider thumb _values_ should round to when they have been moved.\n\nKeep in mind this property rounds thumb [values](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderViewModel.html#values) and shouldn't be used exclusively\nfor formatting purposes.",
|
|
56488
|
+
"docsTags": [
|
|
56489
|
+
{
|
|
56490
|
+
"name": "example",
|
|
56491
|
+
"text": "```js\nslider.precision = 7;\n```"
|
|
56492
|
+
}
|
|
56493
|
+
],
|
|
56494
|
+
"type": {
|
|
56495
|
+
"text": "number",
|
|
56496
|
+
"values": [
|
|
56497
|
+
{
|
|
56498
|
+
"type": "number"
|
|
56499
|
+
}
|
|
56500
|
+
]
|
|
56501
|
+
},
|
|
56502
|
+
"default": "4",
|
|
56503
|
+
"attribute": "precision"
|
|
56504
|
+
},
|
|
56505
|
+
{
|
|
56506
|
+
"kind": "field",
|
|
56507
|
+
"name": "referenceElement",
|
|
56508
|
+
"description": "By assigning the `id` attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.",
|
|
56509
|
+
"docsTags": [
|
|
56510
|
+
{
|
|
56511
|
+
"name": "see",
|
|
56512
|
+
"text": "[Associate components with a Map or Scene component](https://developers.arcgis.com/javascript/latest/programming-patterns/#associate-components-with-a-map-or-scene-component)"
|
|
56513
|
+
}
|
|
56514
|
+
],
|
|
56515
|
+
"type": {
|
|
56516
|
+
"text": "HTMLArcgisLinkChartElement | HTMLArcgisMapElement | HTMLArcgisSceneElement | string",
|
|
56517
|
+
"references": [
|
|
56518
|
+
{
|
|
56519
|
+
"name": "HTMLArcgisLinkChartElement",
|
|
56520
|
+
"module": "index.js",
|
|
56521
|
+
"start": 0,
|
|
56522
|
+
"end": 26,
|
|
56523
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-link-chart/"
|
|
56524
|
+
},
|
|
56525
|
+
{
|
|
56526
|
+
"name": "HTMLArcgisMapElement",
|
|
56527
|
+
"module": "index.js",
|
|
56528
|
+
"start": 29,
|
|
56529
|
+
"end": 49,
|
|
56530
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-map/"
|
|
56531
|
+
},
|
|
56532
|
+
{
|
|
56533
|
+
"name": "HTMLArcgisSceneElement",
|
|
56534
|
+
"module": "index.js",
|
|
56535
|
+
"start": 52,
|
|
56536
|
+
"end": 74,
|
|
56537
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-scene/"
|
|
56538
|
+
}
|
|
56539
|
+
],
|
|
56540
|
+
"values": [
|
|
56541
|
+
{
|
|
56542
|
+
"type": "HTMLArcgisLinkChartElement"
|
|
56543
|
+
},
|
|
56544
|
+
{
|
|
56545
|
+
"type": "HTMLArcgisMapElement"
|
|
56546
|
+
},
|
|
56547
|
+
{
|
|
56548
|
+
"type": "HTMLArcgisSceneElement"
|
|
56549
|
+
},
|
|
56550
|
+
{
|
|
56551
|
+
"type": "string"
|
|
56552
|
+
}
|
|
56553
|
+
]
|
|
56554
|
+
},
|
|
56555
|
+
"attribute": "reference-element"
|
|
56556
|
+
},
|
|
56557
|
+
{
|
|
56558
|
+
"kind": "field",
|
|
56559
|
+
"name": "stops",
|
|
56560
|
+
"description": "The color stops from the [ColorVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html)\nto link to the slider. The colors in these stops will be used\nto render the color gradient on the slider's track. They should match the colors\nrendered in the associated layer's renderer.",
|
|
56561
|
+
"type": {
|
|
56562
|
+
"text": "Array<ColorStop>",
|
|
56563
|
+
"references": [
|
|
56564
|
+
{
|
|
56565
|
+
"name": "Array",
|
|
56566
|
+
"package": "typescript",
|
|
56567
|
+
"module": "lib/lib.es5.d.ts",
|
|
56568
|
+
"start": 0,
|
|
56569
|
+
"end": 5
|
|
56570
|
+
},
|
|
56571
|
+
{
|
|
56572
|
+
"name": "ColorStop",
|
|
56573
|
+
"package": "@arcgis/core",
|
|
56574
|
+
"module": "renderers/visualVariables/support/ColorStop.d.ts",
|
|
56575
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorStop.html",
|
|
56576
|
+
"start": 6,
|
|
56577
|
+
"end": 15
|
|
56578
|
+
}
|
|
56579
|
+
]
|
|
56580
|
+
},
|
|
56581
|
+
"readonly": true
|
|
56582
|
+
},
|
|
56583
|
+
{
|
|
56584
|
+
"kind": "method",
|
|
56585
|
+
"name": "componentOnReady",
|
|
56586
|
+
"description": "Create a promise that resolves once component is fully loaded.",
|
|
56587
|
+
"docsTags": [
|
|
56588
|
+
{
|
|
56589
|
+
"name": "example",
|
|
56590
|
+
"text": "```js\nconst arcgisSliderColorLegacy = document.querySelector(\"arcgis-slider-color-legacy\");\ndocument.body.append(arcgisSliderColorLegacy);\nawait arcgisSliderColorLegacy.componentOnReady();\nconsole.log(\"arcgis-slider-color-legacy is ready to go!\");\n```"
|
|
56591
|
+
}
|
|
56592
|
+
],
|
|
56593
|
+
"return": {
|
|
56594
|
+
"type": {
|
|
56595
|
+
"text": "Promise<this>",
|
|
56596
|
+
"references": [
|
|
56597
|
+
{
|
|
56598
|
+
"module": "lib/lib.es5.d.ts",
|
|
56599
|
+
"name": "Promise",
|
|
56600
|
+
"package": "typescript",
|
|
56601
|
+
"start": 0,
|
|
56602
|
+
"end": 7
|
|
56603
|
+
}
|
|
56604
|
+
]
|
|
56605
|
+
}
|
|
56606
|
+
},
|
|
56607
|
+
"inheritedFrom": {
|
|
56608
|
+
"name": "PublicLitElement",
|
|
56609
|
+
"module": "PublicLitElement",
|
|
56610
|
+
"package": "@arcgis/lumina"
|
|
56611
|
+
},
|
|
56612
|
+
"signature": "(): Promise<this>"
|
|
56613
|
+
},
|
|
56614
|
+
{
|
|
56615
|
+
"kind": "method",
|
|
56616
|
+
"name": "destroy",
|
|
56617
|
+
"description": "Permanently destroy the component.",
|
|
56618
|
+
"return": {
|
|
56619
|
+
"type": {
|
|
56620
|
+
"text": "Promise<void>",
|
|
56621
|
+
"references": [
|
|
56622
|
+
{
|
|
56623
|
+
"name": "Promise",
|
|
56624
|
+
"package": "typescript",
|
|
56625
|
+
"module": "lib/lib.es5.d.ts",
|
|
56626
|
+
"start": 0,
|
|
56627
|
+
"end": 7
|
|
56628
|
+
}
|
|
56629
|
+
]
|
|
56630
|
+
}
|
|
56631
|
+
},
|
|
56632
|
+
"signature": "(): Promise<void>"
|
|
56633
|
+
},
|
|
56634
|
+
{
|
|
56635
|
+
"kind": "method",
|
|
56636
|
+
"name": "updateFromRendererResult",
|
|
56637
|
+
"description": "A convenience function used to update the properties of a ColorSlider component instance from the\n[result](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#ContinuousRendererResult) of\nthe [createContinuousRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer)\nmethod. This method is used to configure an empty ColorSlider to be used with the layer data, and is useful for cases when the app allows the end user to switch data variables.\nNote that this method always expects `rendererResult` to be defined for the slider to function, but `histogramResult` is optional.",
|
|
56638
|
+
"docsTags": [
|
|
56639
|
+
{
|
|
56640
|
+
"name": "param",
|
|
56641
|
+
"text": "rendererResult - The result object from the [createContinuousRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer)\nmethod."
|
|
56642
|
+
},
|
|
56643
|
+
{
|
|
56644
|
+
"name": "param",
|
|
56645
|
+
"text": "histogramResult - The result histogram object from the [histogram](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html)\nmethod."
|
|
56646
|
+
},
|
|
56647
|
+
{
|
|
56648
|
+
"name": "example",
|
|
56649
|
+
"text": "```js\nconst rendererResult = await colorRendererCreator.createContinuousRenderer(params);\n\nfeatureLayer.renderer = rendererResult.renderer;\n\nconst histogramResult = await histogram({\n ...params,\n numBins: 30,\n});\n\ncolorSlider.updateFromRendererResult(rendererResult, histogramResult);\n```"
|
|
56650
|
+
}
|
|
56651
|
+
],
|
|
56652
|
+
"parameters": [
|
|
56653
|
+
{
|
|
56654
|
+
"name": "rendererResult",
|
|
56655
|
+
"type": {
|
|
56656
|
+
"text": "ContinuousRendererResult",
|
|
56657
|
+
"references": [
|
|
56658
|
+
{
|
|
56659
|
+
"name": "ContinuousRendererResult",
|
|
56660
|
+
"package": "@arcgis/core",
|
|
56661
|
+
"module": "smartMapping/renderers/color.d.ts",
|
|
56662
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#ContinuousRendererResult",
|
|
56663
|
+
"start": 0,
|
|
56664
|
+
"end": 24
|
|
56665
|
+
}
|
|
56666
|
+
]
|
|
56667
|
+
}
|
|
56668
|
+
},
|
|
56669
|
+
{
|
|
56670
|
+
"name": "histogramResult",
|
|
56671
|
+
"optional": true,
|
|
56672
|
+
"type": {
|
|
56673
|
+
"text": "HistogramResult | undefined",
|
|
56674
|
+
"references": [
|
|
56675
|
+
{
|
|
56676
|
+
"name": "HistogramResult",
|
|
56677
|
+
"package": "@arcgis/core",
|
|
56678
|
+
"module": "smartMapping/statistics/types.d.ts",
|
|
56679
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-types.html#HistogramResult",
|
|
56680
|
+
"start": 0,
|
|
56681
|
+
"end": 15
|
|
56682
|
+
}
|
|
56683
|
+
],
|
|
56684
|
+
"values": [
|
|
56685
|
+
{
|
|
56686
|
+
"type": "HistogramResult"
|
|
56687
|
+
},
|
|
56688
|
+
{
|
|
56689
|
+
"type": "undefined"
|
|
56690
|
+
}
|
|
56691
|
+
]
|
|
56692
|
+
}
|
|
56693
|
+
}
|
|
56694
|
+
],
|
|
56695
|
+
"return": {
|
|
56696
|
+
"type": {
|
|
56697
|
+
"text": "void"
|
|
56698
|
+
}
|
|
56699
|
+
},
|
|
56700
|
+
"signature": "(rendererResult: ContinuousRendererResult, histogramResult?: HistogramResult): void"
|
|
56701
|
+
}
|
|
56702
|
+
],
|
|
56703
|
+
"attributes": [
|
|
56704
|
+
{
|
|
56705
|
+
"name": "auto-destroy-disabled",
|
|
56706
|
+
"description": "If true, the component will not be destroyed automatically when it is\ndisconnected from the document. This is useful when you want to move the\ncomponent to a different place on the page, or temporarily hide it. If this\nis set, make sure to call the [destroy](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-slider-color-legacy/#destroy) method when you are done to\nprevent memory leaks.",
|
|
56707
|
+
"type": {
|
|
56708
|
+
"text": "boolean",
|
|
56709
|
+
"values": [
|
|
56710
|
+
{
|
|
56711
|
+
"type": "boolean"
|
|
56712
|
+
}
|
|
56713
|
+
]
|
|
56714
|
+
},
|
|
56715
|
+
"default": "false",
|
|
56716
|
+
"fieldName": "autoDestroyDisabled"
|
|
56717
|
+
},
|
|
56718
|
+
{
|
|
56719
|
+
"name": "max",
|
|
56720
|
+
"description": "The maximum value or upper bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](#updateFromRendererResult) method,\nthe user may change this property by selecting the label containing the max value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the color variable of the appropriate renderer.",
|
|
56721
|
+
"type": {
|
|
56722
|
+
"text": "number",
|
|
56723
|
+
"values": [
|
|
56724
|
+
{
|
|
56725
|
+
"type": "number"
|
|
56726
|
+
}
|
|
56727
|
+
]
|
|
56728
|
+
},
|
|
56729
|
+
"fieldName": "max"
|
|
56730
|
+
},
|
|
56731
|
+
{
|
|
56732
|
+
"name": "min",
|
|
56733
|
+
"description": "The minimum value or lower bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](#updateFromRendererResult) method,\nthe user may change this property by selecting the label containing the min value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the color variable of the appropriate renderer.",
|
|
56734
|
+
"type": {
|
|
56735
|
+
"text": "number",
|
|
56736
|
+
"values": [
|
|
56737
|
+
{
|
|
56738
|
+
"type": "number"
|
|
56739
|
+
}
|
|
56740
|
+
]
|
|
56741
|
+
},
|
|
56742
|
+
"fieldName": "min"
|
|
56743
|
+
},
|
|
56744
|
+
{
|
|
56745
|
+
"name": "precision",
|
|
56746
|
+
"description": "Defines how slider thumb values should be rounded. This number indicates the number\nof decimal places slider thumb _values_ should round to when they have been moved.\n\nKeep in mind this property rounds thumb [values](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderViewModel.html#values) and shouldn't be used exclusively\nfor formatting purposes.",
|
|
56747
|
+
"type": {
|
|
56748
|
+
"text": "number",
|
|
56749
|
+
"values": [
|
|
56750
|
+
{
|
|
56751
|
+
"type": "number"
|
|
56752
|
+
}
|
|
56753
|
+
]
|
|
56754
|
+
},
|
|
56755
|
+
"default": "4",
|
|
56756
|
+
"fieldName": "precision"
|
|
56757
|
+
},
|
|
56758
|
+
{
|
|
56759
|
+
"name": "reference-element",
|
|
56760
|
+
"description": "By assigning the `id` attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.",
|
|
56761
|
+
"type": {
|
|
56762
|
+
"text": "string",
|
|
56763
|
+
"values": [
|
|
56764
|
+
{
|
|
56765
|
+
"type": "string"
|
|
56766
|
+
}
|
|
56767
|
+
]
|
|
56768
|
+
},
|
|
56769
|
+
"fieldName": "referenceElement"
|
|
56770
|
+
}
|
|
56771
|
+
],
|
|
56772
|
+
"events": [
|
|
56773
|
+
{
|
|
56774
|
+
"name": "arcgisPropertyChange",
|
|
56775
|
+
"description": "Emitted when the value of a property is changed. Use this to listen to changes to properties.",
|
|
56776
|
+
"type": {
|
|
56777
|
+
"text": "{ name: \"max\" | \"min\" | \"precision\"; }"
|
|
56778
|
+
}
|
|
56779
|
+
},
|
|
56780
|
+
{
|
|
56781
|
+
"name": "arcgisReady",
|
|
56782
|
+
"description": "Emitted when the component associated with a map or scene view is ready to be interacted with.",
|
|
56783
|
+
"type": {
|
|
56784
|
+
"text": "void"
|
|
56785
|
+
}
|
|
56786
|
+
},
|
|
56787
|
+
{
|
|
56788
|
+
"name": "arcgisThumbChange",
|
|
56789
|
+
"description": "Fires when a user changes the value of a thumb via the arrow keys or by keyboard editing of the label on the slider.",
|
|
56790
|
+
"type": {
|
|
56791
|
+
"text": "ThumbChangeEvent",
|
|
56792
|
+
"references": [
|
|
56793
|
+
{
|
|
56794
|
+
"name": "ThumbChangeEvent",
|
|
56795
|
+
"package": "@arcgis/core",
|
|
56796
|
+
"module": "widgets/Slider/types.d.ts",
|
|
56797
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-types.html#ThumbChangeEvent",
|
|
56798
|
+
"start": 0,
|
|
56799
|
+
"end": 16
|
|
56800
|
+
}
|
|
56801
|
+
]
|
|
56802
|
+
}
|
|
56803
|
+
},
|
|
56804
|
+
{
|
|
56805
|
+
"name": "arcgisThumbDrag",
|
|
56806
|
+
"description": "Fires when a user drags a thumb on the component.",
|
|
56807
|
+
"type": {
|
|
56808
|
+
"text": "ThumbDragEvent",
|
|
56809
|
+
"references": [
|
|
56810
|
+
{
|
|
56811
|
+
"name": "ThumbDragEvent",
|
|
56812
|
+
"package": "@arcgis/core",
|
|
56813
|
+
"module": "widgets/Slider/types.d.ts",
|
|
56814
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-types.html#ThumbDragEvent",
|
|
56815
|
+
"start": 0,
|
|
56816
|
+
"end": 14
|
|
56817
|
+
}
|
|
56818
|
+
]
|
|
56819
|
+
}
|
|
56820
|
+
}
|
|
56821
|
+
],
|
|
56822
|
+
"importPath": "components/arcgis-slider-color-legacy"
|
|
56823
|
+
}
|
|
56824
|
+
],
|
|
56825
|
+
"exports": [
|
|
56826
|
+
{
|
|
56827
|
+
"kind": "custom-element-definition",
|
|
56828
|
+
"name": "arcgis-slider-color-legacy",
|
|
56829
|
+
"declaration": {
|
|
56830
|
+
"name": "ArcgisSliderColorLegacy"
|
|
56831
|
+
}
|
|
56832
|
+
}
|
|
56833
|
+
]
|
|
56834
|
+
},
|
|
56835
|
+
{
|
|
56836
|
+
"kind": "javascript-module",
|
|
56837
|
+
"path": "components/arcgis-slider-color-size-legacy",
|
|
56838
|
+
"sourcePath": "src/components/slider-color-size-legacy/slider-color-size-legacy.tsx",
|
|
56839
|
+
"declarations": [
|
|
56840
|
+
{
|
|
56841
|
+
"kind": "class",
|
|
56842
|
+
"customElement": true,
|
|
56843
|
+
"name": "ArcgisSliderColorSizeLegacy",
|
|
56844
|
+
"tagName": "arcgis-slider-color-size-legacy",
|
|
56845
|
+
"pascalCaseName": "ArcgisSliderColorSizeLegacy",
|
|
56846
|
+
"description": "The Color Size Slider (Legacy) component is intended for authoring and exploring data-driven visualizations in any\nlayer that can be rendered with a [ColorVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html) and\na [SizeVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html). Both visual variables should be used\nto visualize the same data variable.\n\nThis slider and visualization style is designed specifically for\n3D thematic visualizations where both size and color are used to visualize the same data variable in order\nto minimize confusion because of distortion in perception. For example, a visualization of extruded points\nmay be difficult to understand if two features of similar sizes (and therefore data values) are located\nfar apart from one another; the feature furthest from the [Camera](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html) will appear smaller than\nthe feature closer to the camera. The color variable can help the user understand that both features have similar values.\n\n\n\n<span id=\"image-annotations\"></span>\nSee the image below for a summary of the configurable options available on this slider.\n\n\n\nThe [updateFromRendererResult()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSizeSlider.html#fromRendererResult) method can be used to intelligently populate slider properties including\n[max](#max), [min](#min), [size visual variable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html) configuration,\n[color visual variable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html) configuration, and the slider's histogram after the\nrenderer has been created from the result of the [createContinuousRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer) method.\n\n```js\nconst colorAndSizeRendererCreator = await import(\"@arcgis/core/smartMapping/renderers/univariateColorSize.js\");\nconst viewElement = document.querySelector(\"arcgis-map\")!;\nconst colorSizeSlider = document.querySelector(\"arcgis-slider-color-size\")!;\n\nconst featureLayer = new FeatureLayer({\n url: \"https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/ACS_Poverty_by_Age_Boundaries/FeatureServer/1\",\n});\n\nawait viewElement.viewOnReady();\nviewElement.map?.add(featureLayer);\n\nconst params = {\n layer: featureLayer,\n field: \"B17020_calc_pctPovE\",\n view: viewElement.view,\n};\n\nconst rendererResult = await colorAndSizeRendererCreator.createContinuousRenderer(params);\n\nfeatureLayer.renderer = rendererResult.renderer;\n\nconst histogramResult = await histogram({\n ...params,\n numBins: 30,\n});\n\nawait colorSizeSlider?.updateFromRendererResult(rendererResult, histogramResult);\n```\n\nThis slider should be used to update the matching [color](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html)\nand [size](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html) visual variables in a layer's renderer. It is the responsibility of the app developer\nto set up event listeners on this slider that update these variables in the appropriate renderer.\n\n```js\nconst updateRendererFromSlider = () => {\n const renderer = featureLayer?.renderer?.clone();\n if (!renderer || !(\"visualVariables\" in renderer) || !renderer.visualVariables?.[0]) {\n return;\n }\n renderer.visualVariables = colorSizeSlider.updateVisualVariables(\n renderer.visualVariables as VisualVariable[],\n );\n featureLayer.renderer = renderer;\n};\n\ncolorSizeSlider.addEventListener(\"arcgisThumbChange\", updateRendererFromSlider);\ncolorSizeSlider.addEventListener(\"arcgisThumbDrag\", updateRendererFromSlider);\n```",
|
|
56847
|
+
"docsTags": [
|
|
56848
|
+
{
|
|
56849
|
+
"name": "since",
|
|
56850
|
+
"text": "5.0.0"
|
|
56851
|
+
},
|
|
56852
|
+
{
|
|
56853
|
+
"name": "see",
|
|
56854
|
+
"text": "[ColorSizeSliderViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSizeSlider-ColorSizeSliderViewModel.html)"
|
|
56855
|
+
},
|
|
56856
|
+
{
|
|
56857
|
+
"name": "see",
|
|
56858
|
+
"text": "[univariateColorSizeRendererCreator](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html)"
|
|
56859
|
+
}
|
|
56860
|
+
],
|
|
56861
|
+
"demos": [
|
|
56862
|
+
{
|
|
56863
|
+
"description": "Docs",
|
|
56864
|
+
"url": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-slider-color-size-legacy/"
|
|
56865
|
+
},
|
|
56866
|
+
{
|
|
56867
|
+
"description": "Slider Color Size (Legacy)",
|
|
56868
|
+
"url": "https://developers.arcgis.com/javascript/latest/storybook/map-components/?path=/story/arcgis-slider-color-size-legacy--demo&singleStory=true"
|
|
56869
|
+
}
|
|
56870
|
+
],
|
|
56871
|
+
"superclass": {
|
|
56872
|
+
"name": "PublicLitElement",
|
|
56873
|
+
"module": "PublicLitElement",
|
|
56874
|
+
"package": "@arcgis/lumina"
|
|
56875
|
+
},
|
|
56876
|
+
"members": [
|
|
56877
|
+
{
|
|
56878
|
+
"kind": "field",
|
|
56879
|
+
"name": "autoDestroyDisabled",
|
|
56880
|
+
"description": "If true, the component will not be destroyed automatically when it is\ndisconnected from the document. This is useful when you want to move the\ncomponent to a different place on the page, or temporarily hide it. If this\nis set, make sure to call the [destroy](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-slider-color-size-legacy/#destroy) method when you are done to\nprevent memory leaks.",
|
|
56881
|
+
"type": {
|
|
56882
|
+
"text": "boolean",
|
|
56883
|
+
"values": [
|
|
56884
|
+
{
|
|
56885
|
+
"type": "boolean"
|
|
56886
|
+
}
|
|
56887
|
+
]
|
|
56888
|
+
},
|
|
56889
|
+
"default": "false",
|
|
56890
|
+
"attribute": "auto-destroy-disabled"
|
|
56891
|
+
},
|
|
56892
|
+
{
|
|
56893
|
+
"kind": "field",
|
|
56894
|
+
"name": "icon",
|
|
56895
|
+
"description": "Icon which represents the widget. It is typically used when the widget is controlled by another\none (e.g. in the Expand widget).",
|
|
56896
|
+
"docsTags": [
|
|
56897
|
+
{
|
|
56898
|
+
"name": "see",
|
|
56899
|
+
"text": "[Calcite Icons](https://developers.arcgis.com/calcite-design-system/icons/)"
|
|
56900
|
+
}
|
|
56901
|
+
],
|
|
56902
|
+
"type": {
|
|
56903
|
+
"text": "IconName",
|
|
56904
|
+
"references": [
|
|
56905
|
+
{
|
|
56906
|
+
"name": "IconName",
|
|
56907
|
+
"package": "@esri/calcite-components",
|
|
56908
|
+
"module": "dist/components/calcite-icon/interfaces.d.ts",
|
|
56909
|
+
"start": 0,
|
|
56910
|
+
"end": 8
|
|
56911
|
+
}
|
|
56912
|
+
]
|
|
56913
|
+
}
|
|
56914
|
+
},
|
|
56915
|
+
{
|
|
56916
|
+
"kind": "field",
|
|
56917
|
+
"name": "max",
|
|
56918
|
+
"description": "The maximum value or upper bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](#updateFromRendererResult) method,\nthe user may change this property by selecting the label containing the max value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the color and size variables of the appropriate renderer.",
|
|
56919
|
+
"docsTags": [
|
|
56920
|
+
{
|
|
56921
|
+
"name": "example",
|
|
56922
|
+
"text": "```js\nconst updateRendererFromSlider = () => {\n const renderer = featureLayer?.renderer?.clone();\n if (!renderer || !(\"visualVariables\" in renderer) || !renderer.visualVariables?.[0]) {\n return;\n }\n renderer.visualVariables = colorSizeSlider.updateVisualVariables(\n renderer.visualVariables as VisualVariable[],\n );\n featureLayer.renderer = renderer;\n};\n\ncolorSizeSlider.addEventListener(\"arcgisPropertyChange\", updateRendererFromSlider);\n```"
|
|
56923
|
+
}
|
|
56924
|
+
],
|
|
56925
|
+
"type": {
|
|
56926
|
+
"text": "number",
|
|
56927
|
+
"values": [
|
|
56928
|
+
{
|
|
56929
|
+
"type": "number"
|
|
56930
|
+
}
|
|
56931
|
+
]
|
|
56932
|
+
},
|
|
56933
|
+
"attribute": "max"
|
|
56934
|
+
},
|
|
56935
|
+
{
|
|
56936
|
+
"kind": "field",
|
|
56937
|
+
"name": "min",
|
|
56938
|
+
"description": "The minimum value or lower bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](#updateFromRendererResult) method,\nthe user may change this property by selecting the label containing the max value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the color and size variables of the appropriate renderer.",
|
|
56939
|
+
"docsTags": [
|
|
56940
|
+
{
|
|
56941
|
+
"name": "example",
|
|
56942
|
+
"text": "```js\nconst updateRendererFromSlider = () => {\n const renderer = featureLayer?.renderer?.clone();\n if (!renderer || !(\"visualVariables\" in renderer) || !renderer.visualVariables?.[0]) {\n return;\n }\n renderer.visualVariables = colorSizeSlider.updateVisualVariables(\n renderer.visualVariables as VisualVariable[],\n );\n featureLayer.renderer = renderer;\n};\n\ncolorSizeSlider.addEventListener(\"arcgisPropertyChange\", updateRendererFromSlider);"
|
|
56943
|
+
}
|
|
56944
|
+
],
|
|
56945
|
+
"type": {
|
|
56946
|
+
"text": "number",
|
|
56947
|
+
"values": [
|
|
56948
|
+
{
|
|
56949
|
+
"type": "number"
|
|
56950
|
+
}
|
|
56951
|
+
]
|
|
56952
|
+
},
|
|
56953
|
+
"attribute": "min"
|
|
56954
|
+
},
|
|
56955
|
+
{
|
|
56956
|
+
"kind": "field",
|
|
56957
|
+
"name": "precision",
|
|
56958
|
+
"description": "Defines how slider thumb values should be rounded. This number indicates the number\nof decimal places slider thumb _values_ should round to when they have been moved.\n\nKeep in mind this property rounds thumb [values](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderViewModel.html#values) and shouldn't be used exclusively\nfor formatting purposes.",
|
|
56959
|
+
"docsTags": [
|
|
56960
|
+
{
|
|
56961
|
+
"name": "example",
|
|
56962
|
+
"text": "```js\nslider.precision = 7;\n```"
|
|
56963
|
+
}
|
|
56964
|
+
],
|
|
56965
|
+
"type": {
|
|
56966
|
+
"text": "number",
|
|
56967
|
+
"values": [
|
|
56968
|
+
{
|
|
56969
|
+
"type": "number"
|
|
56970
|
+
}
|
|
56971
|
+
]
|
|
56972
|
+
},
|
|
56973
|
+
"default": "4",
|
|
56974
|
+
"attribute": "precision"
|
|
56975
|
+
},
|
|
56976
|
+
{
|
|
56977
|
+
"kind": "field",
|
|
56978
|
+
"name": "referenceElement",
|
|
56979
|
+
"description": "By assigning the `id` attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.",
|
|
56980
|
+
"docsTags": [
|
|
56981
|
+
{
|
|
56982
|
+
"name": "see",
|
|
56983
|
+
"text": "[Associate components with a Map or Scene component](https://developers.arcgis.com/javascript/latest/programming-patterns/#associate-components-with-a-map-or-scene-component)"
|
|
56984
|
+
}
|
|
56985
|
+
],
|
|
56986
|
+
"type": {
|
|
56987
|
+
"text": "HTMLArcgisLinkChartElement | HTMLArcgisMapElement | HTMLArcgisSceneElement | string",
|
|
56988
|
+
"references": [
|
|
56989
|
+
{
|
|
56990
|
+
"name": "HTMLArcgisLinkChartElement",
|
|
56991
|
+
"module": "index.js",
|
|
56992
|
+
"start": 0,
|
|
56993
|
+
"end": 26,
|
|
56994
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-link-chart/"
|
|
56995
|
+
},
|
|
56996
|
+
{
|
|
56997
|
+
"name": "HTMLArcgisMapElement",
|
|
56998
|
+
"module": "index.js",
|
|
56999
|
+
"start": 29,
|
|
57000
|
+
"end": 49,
|
|
57001
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-map/"
|
|
57002
|
+
},
|
|
57003
|
+
{
|
|
57004
|
+
"name": "HTMLArcgisSceneElement",
|
|
57005
|
+
"module": "index.js",
|
|
57006
|
+
"start": 52,
|
|
57007
|
+
"end": 74,
|
|
57008
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-scene/"
|
|
57009
|
+
}
|
|
57010
|
+
],
|
|
57011
|
+
"values": [
|
|
57012
|
+
{
|
|
57013
|
+
"type": "HTMLArcgisLinkChartElement"
|
|
57014
|
+
},
|
|
57015
|
+
{
|
|
57016
|
+
"type": "HTMLArcgisMapElement"
|
|
57017
|
+
},
|
|
57018
|
+
{
|
|
57019
|
+
"type": "HTMLArcgisSceneElement"
|
|
57020
|
+
},
|
|
57021
|
+
{
|
|
57022
|
+
"type": "string"
|
|
57023
|
+
}
|
|
57024
|
+
]
|
|
57025
|
+
},
|
|
57026
|
+
"attribute": "reference-element"
|
|
57027
|
+
},
|
|
57028
|
+
{
|
|
57029
|
+
"kind": "field",
|
|
57030
|
+
"name": "state",
|
|
57031
|
+
"description": "The current state of the component.",
|
|
57032
|
+
"type": {
|
|
57033
|
+
"text": "\"disabled\" | \"ready\"",
|
|
57034
|
+
"values": [
|
|
57035
|
+
{
|
|
57036
|
+
"type": "string",
|
|
57037
|
+
"value": "disabled"
|
|
57038
|
+
},
|
|
57039
|
+
{
|
|
57040
|
+
"type": "string",
|
|
57041
|
+
"value": "ready"
|
|
57042
|
+
}
|
|
57043
|
+
]
|
|
57044
|
+
},
|
|
57045
|
+
"attribute": "state"
|
|
57046
|
+
},
|
|
57047
|
+
{
|
|
57048
|
+
"kind": "method",
|
|
57049
|
+
"name": "componentOnReady",
|
|
57050
|
+
"description": "Create a promise that resolves once component is fully loaded.",
|
|
57051
|
+
"docsTags": [
|
|
57052
|
+
{
|
|
57053
|
+
"name": "example",
|
|
57054
|
+
"text": "```js\nconst arcgisSliderColorSizeLegacy = document.querySelector(\"arcgis-slider-color-size-legacy\");\ndocument.body.append(arcgisSliderColorSizeLegacy);\nawait arcgisSliderColorSizeLegacy.componentOnReady();\nconsole.log(\"arcgis-slider-color-size-legacy is ready to go!\");\n```"
|
|
57055
|
+
}
|
|
57056
|
+
],
|
|
57057
|
+
"return": {
|
|
57058
|
+
"type": {
|
|
57059
|
+
"text": "Promise<this>",
|
|
57060
|
+
"references": [
|
|
57061
|
+
{
|
|
57062
|
+
"module": "lib/lib.es5.d.ts",
|
|
57063
|
+
"name": "Promise",
|
|
57064
|
+
"package": "typescript",
|
|
57065
|
+
"start": 0,
|
|
57066
|
+
"end": 7
|
|
57067
|
+
}
|
|
57068
|
+
]
|
|
57069
|
+
}
|
|
57070
|
+
},
|
|
57071
|
+
"inheritedFrom": {
|
|
57072
|
+
"name": "PublicLitElement",
|
|
57073
|
+
"module": "PublicLitElement",
|
|
57074
|
+
"package": "@arcgis/lumina"
|
|
57075
|
+
},
|
|
57076
|
+
"signature": "(): Promise<this>"
|
|
57077
|
+
},
|
|
57078
|
+
{
|
|
57079
|
+
"kind": "method",
|
|
57080
|
+
"name": "destroy",
|
|
57081
|
+
"description": "Permanently destroy the component.",
|
|
57082
|
+
"return": {
|
|
57083
|
+
"type": {
|
|
57084
|
+
"text": "Promise<void>",
|
|
57085
|
+
"references": [
|
|
57086
|
+
{
|
|
57087
|
+
"name": "Promise",
|
|
57088
|
+
"package": "typescript",
|
|
57089
|
+
"module": "lib/lib.es5.d.ts",
|
|
57090
|
+
"start": 0,
|
|
57091
|
+
"end": 7
|
|
57092
|
+
}
|
|
57093
|
+
]
|
|
57094
|
+
}
|
|
57095
|
+
},
|
|
57096
|
+
"signature": "(): Promise<void>"
|
|
57097
|
+
},
|
|
57098
|
+
{
|
|
57099
|
+
"kind": "method",
|
|
57100
|
+
"name": "updateFromRendererResult",
|
|
57101
|
+
"description": "A convenience function used to update the properties of a Slider Color Size component instance from the\n[result](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#RendererResult) of\nthe [createContinuousRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)\nmethod. Note that this method always expects `rendererResult` to be defined for the slider to function, but `histogramResult` is optional.",
|
|
57102
|
+
"docsTags": [
|
|
57103
|
+
{
|
|
57104
|
+
"name": "param",
|
|
57105
|
+
"text": "rendererResult - The result object from the [createContinuousRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)\nmethod."
|
|
57106
|
+
},
|
|
57107
|
+
{
|
|
57108
|
+
"name": "param",
|
|
57109
|
+
"text": "histogramResult - The result histogram object from the [histogram()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram)\nmethod."
|
|
57110
|
+
},
|
|
57111
|
+
{
|
|
57112
|
+
"name": "example",
|
|
57113
|
+
"text": "```js\nconst rendererResult = await colorAndSizeRendererCreator.createContinuousRenderer(params);\n\nfeatureLayer.renderer = rendererResult.renderer;\n\nconst histogramResult = await histogram({\n ...params,\n numBins: 30,\n});\n\nawait colorSizeSlider?.updateFromRendererResult(rendererResult, histogramResult);\n```"
|
|
57114
|
+
}
|
|
57115
|
+
],
|
|
57116
|
+
"parameters": [
|
|
57117
|
+
{
|
|
57118
|
+
"name": "rendererResult",
|
|
57119
|
+
"type": {
|
|
57120
|
+
"text": "RendererResult",
|
|
57121
|
+
"references": [
|
|
57122
|
+
{
|
|
57123
|
+
"name": "RendererResult",
|
|
57124
|
+
"package": "@arcgis/core",
|
|
57125
|
+
"module": "smartMapping/renderers/univariateColorSize.d.ts",
|
|
57126
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#RendererResult",
|
|
57127
|
+
"start": 0,
|
|
57128
|
+
"end": 14
|
|
57129
|
+
}
|
|
57130
|
+
]
|
|
57131
|
+
}
|
|
57132
|
+
},
|
|
57133
|
+
{
|
|
57134
|
+
"name": "histogramResult",
|
|
57135
|
+
"optional": true,
|
|
57136
|
+
"type": {
|
|
57137
|
+
"text": "HistogramResult | undefined",
|
|
57138
|
+
"references": [
|
|
57139
|
+
{
|
|
57140
|
+
"name": "HistogramResult",
|
|
57141
|
+
"package": "@arcgis/core",
|
|
57142
|
+
"module": "smartMapping/statistics/types.d.ts",
|
|
57143
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-types.html#HistogramResult",
|
|
57144
|
+
"start": 0,
|
|
57145
|
+
"end": 15
|
|
57146
|
+
}
|
|
57147
|
+
],
|
|
57148
|
+
"values": [
|
|
57149
|
+
{
|
|
57150
|
+
"type": "HistogramResult"
|
|
57151
|
+
},
|
|
57152
|
+
{
|
|
57153
|
+
"type": "undefined"
|
|
57154
|
+
}
|
|
57155
|
+
]
|
|
57156
|
+
}
|
|
57157
|
+
}
|
|
57158
|
+
],
|
|
57159
|
+
"return": {
|
|
57160
|
+
"type": {
|
|
57161
|
+
"text": "Promise<void>",
|
|
57162
|
+
"references": [
|
|
57163
|
+
{
|
|
57164
|
+
"name": "Promise",
|
|
57165
|
+
"package": "typescript",
|
|
57166
|
+
"module": "lib/lib.es5.d.ts",
|
|
57167
|
+
"start": 0,
|
|
57168
|
+
"end": 7
|
|
57169
|
+
}
|
|
57170
|
+
]
|
|
57171
|
+
}
|
|
57172
|
+
},
|
|
57173
|
+
"signature": "(rendererResult: RendererResult, histogramResult?: HistogramResult): Promise<void>"
|
|
57174
|
+
},
|
|
57175
|
+
{
|
|
57176
|
+
"kind": "method",
|
|
57177
|
+
"name": "updateVisualVariables",
|
|
57178
|
+
"description": "A convenience function used to update the visual variables of a renderer generated with the\n[createContinuousRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)\nmethod with the values obtained from the slider. This method is useful for cases when the app allows the end user to switch data variables\nused to render the data.",
|
|
57179
|
+
"docsTags": [
|
|
57180
|
+
{
|
|
57181
|
+
"name": "param",
|
|
57182
|
+
"text": "variables - The visual variables to update from the renderer associated with the slider. The properties of the\ncolor and size variables will update based on the slider thumb values."
|
|
57183
|
+
},
|
|
57184
|
+
{
|
|
57185
|
+
"name": "returns",
|
|
57186
|
+
"text": "Returns the input visual variables updated to match the current slider values. These should be set directly\nback to the renderer where they came from."
|
|
57187
|
+
},
|
|
57188
|
+
{
|
|
57189
|
+
"name": "example",
|
|
57190
|
+
"text": "```js\nconst renderer = featureLayer?.renderer?.clone();\nrenderer.visualVariables = colorSizeSlider.updateVisualVariables(renderer.visualVariables as VisualVariable[]);\nfeatureLayer.renderer = renderer;\n```"
|
|
57191
|
+
}
|
|
57192
|
+
],
|
|
57193
|
+
"parameters": [
|
|
57194
|
+
{
|
|
57195
|
+
"name": "variables",
|
|
57196
|
+
"type": {
|
|
57197
|
+
"text": "Array<SizeVariable | ColorVariable>",
|
|
57198
|
+
"references": [
|
|
57199
|
+
{
|
|
57200
|
+
"name": "Array",
|
|
57201
|
+
"package": "typescript",
|
|
57202
|
+
"module": "lib/lib.es5.d.ts",
|
|
57203
|
+
"start": 0,
|
|
57204
|
+
"end": 5
|
|
57205
|
+
},
|
|
57206
|
+
{
|
|
57207
|
+
"name": "SizeVariable",
|
|
57208
|
+
"package": "@arcgis/core",
|
|
57209
|
+
"module": "renderers/visualVariables/SizeVariable.d.ts",
|
|
57210
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html",
|
|
57211
|
+
"start": 6,
|
|
57212
|
+
"end": 18
|
|
57213
|
+
},
|
|
57214
|
+
{
|
|
57215
|
+
"name": "ColorVariable",
|
|
57216
|
+
"package": "@arcgis/core",
|
|
57217
|
+
"module": "renderers/visualVariables/ColorVariable.d.ts",
|
|
57218
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html",
|
|
57219
|
+
"start": 21,
|
|
57220
|
+
"end": 34
|
|
57221
|
+
}
|
|
57222
|
+
]
|
|
57223
|
+
}
|
|
57224
|
+
}
|
|
57225
|
+
],
|
|
57226
|
+
"return": {
|
|
57227
|
+
"type": {
|
|
57228
|
+
"text": "Array<SizeVariable | ColorVariable>",
|
|
57229
|
+
"references": [
|
|
57230
|
+
{
|
|
57231
|
+
"name": "Array",
|
|
57232
|
+
"package": "typescript",
|
|
57233
|
+
"module": "lib/lib.es5.d.ts",
|
|
57234
|
+
"start": 0,
|
|
57235
|
+
"end": 5
|
|
57236
|
+
},
|
|
57237
|
+
{
|
|
57238
|
+
"name": "SizeVariable",
|
|
57239
|
+
"package": "@arcgis/core",
|
|
57240
|
+
"module": "renderers/visualVariables/SizeVariable.d.ts",
|
|
57241
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html",
|
|
57242
|
+
"start": 6,
|
|
57243
|
+
"end": 18
|
|
57244
|
+
},
|
|
57245
|
+
{
|
|
57246
|
+
"name": "ColorVariable",
|
|
57247
|
+
"package": "@arcgis/core",
|
|
57248
|
+
"module": "renderers/visualVariables/ColorVariable.d.ts",
|
|
57249
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html",
|
|
57250
|
+
"start": 21,
|
|
57251
|
+
"end": 34
|
|
57252
|
+
}
|
|
57253
|
+
]
|
|
57254
|
+
}
|
|
57255
|
+
},
|
|
57256
|
+
"signature": "(variables: VisualVariable[]): VisualVariable[]"
|
|
57257
|
+
}
|
|
57258
|
+
],
|
|
57259
|
+
"attributes": [
|
|
57260
|
+
{
|
|
57261
|
+
"name": "auto-destroy-disabled",
|
|
57262
|
+
"description": "If true, the component will not be destroyed automatically when it is\ndisconnected from the document. This is useful when you want to move the\ncomponent to a different place on the page, or temporarily hide it. If this\nis set, make sure to call the [destroy](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-slider-color-size-legacy/#destroy) method when you are done to\nprevent memory leaks.",
|
|
57263
|
+
"type": {
|
|
57264
|
+
"text": "boolean",
|
|
57265
|
+
"values": [
|
|
57266
|
+
{
|
|
57267
|
+
"type": "boolean"
|
|
57268
|
+
}
|
|
57269
|
+
]
|
|
57270
|
+
},
|
|
57271
|
+
"default": "false",
|
|
57272
|
+
"fieldName": "autoDestroyDisabled"
|
|
57273
|
+
},
|
|
57274
|
+
{
|
|
57275
|
+
"name": "max",
|
|
57276
|
+
"description": "The maximum value or upper bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](#updateFromRendererResult) method,\nthe user may change this property by selecting the label containing the max value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the color and size variables of the appropriate renderer.",
|
|
57277
|
+
"type": {
|
|
57278
|
+
"text": "number",
|
|
57279
|
+
"values": [
|
|
57280
|
+
{
|
|
57281
|
+
"type": "number"
|
|
57282
|
+
}
|
|
57283
|
+
]
|
|
57284
|
+
},
|
|
57285
|
+
"fieldName": "max"
|
|
57286
|
+
},
|
|
57287
|
+
{
|
|
57288
|
+
"name": "min",
|
|
57289
|
+
"description": "The minimum value or lower bound of the slider. Once the slider has rendered with the [updateFromRendererResult()](#updateFromRendererResult) method,\nthe user may change this property by selecting the label containing the max value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the color and size variables of the appropriate renderer.",
|
|
57290
|
+
"type": {
|
|
57291
|
+
"text": "number",
|
|
57292
|
+
"values": [
|
|
57293
|
+
{
|
|
57294
|
+
"type": "number"
|
|
57295
|
+
}
|
|
57296
|
+
]
|
|
57297
|
+
},
|
|
57298
|
+
"fieldName": "min"
|
|
57299
|
+
},
|
|
57300
|
+
{
|
|
57301
|
+
"name": "precision",
|
|
57302
|
+
"description": "Defines how slider thumb values should be rounded. This number indicates the number\nof decimal places slider thumb _values_ should round to when they have been moved.\n\nKeep in mind this property rounds thumb [values](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderViewModel.html#values) and shouldn't be used exclusively\nfor formatting purposes.",
|
|
57303
|
+
"type": {
|
|
57304
|
+
"text": "number",
|
|
57305
|
+
"values": [
|
|
57306
|
+
{
|
|
57307
|
+
"type": "number"
|
|
57308
|
+
}
|
|
57309
|
+
]
|
|
57310
|
+
},
|
|
57311
|
+
"default": "4",
|
|
57312
|
+
"fieldName": "precision"
|
|
57313
|
+
},
|
|
57314
|
+
{
|
|
57315
|
+
"name": "reference-element",
|
|
57316
|
+
"description": "By assigning the `id` attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.",
|
|
57317
|
+
"type": {
|
|
57318
|
+
"text": "string",
|
|
57319
|
+
"values": [
|
|
57320
|
+
{
|
|
57321
|
+
"type": "string"
|
|
57322
|
+
}
|
|
57323
|
+
]
|
|
57324
|
+
},
|
|
57325
|
+
"fieldName": "referenceElement"
|
|
57326
|
+
},
|
|
57327
|
+
{
|
|
57328
|
+
"name": "state",
|
|
57329
|
+
"description": "The current state of the component.",
|
|
57330
|
+
"type": {
|
|
57331
|
+
"text": "\"disabled\" | \"ready\"",
|
|
57332
|
+
"values": [
|
|
57333
|
+
{
|
|
57334
|
+
"type": "string",
|
|
57335
|
+
"value": "disabled"
|
|
57336
|
+
},
|
|
57337
|
+
{
|
|
57338
|
+
"type": "string",
|
|
57339
|
+
"value": "ready"
|
|
57340
|
+
}
|
|
57341
|
+
]
|
|
57342
|
+
},
|
|
57343
|
+
"fieldName": "state"
|
|
57344
|
+
}
|
|
57345
|
+
],
|
|
57346
|
+
"events": [
|
|
57347
|
+
{
|
|
57348
|
+
"name": "arcgisPropertyChange",
|
|
57349
|
+
"description": "Emitted when the value of a property is changed. Use this to listen to changes to properties.",
|
|
57350
|
+
"type": {
|
|
57351
|
+
"text": "{ name: \"state\" | \"max\" | \"min\" | \"precision\"; }"
|
|
57352
|
+
}
|
|
57353
|
+
},
|
|
57354
|
+
{
|
|
57355
|
+
"name": "arcgisReady",
|
|
57356
|
+
"description": "Emitted when the component associated with a map or scene view is ready to be interacted with.",
|
|
57357
|
+
"type": {
|
|
57358
|
+
"text": "void"
|
|
57359
|
+
}
|
|
57360
|
+
},
|
|
57361
|
+
{
|
|
57362
|
+
"name": "arcgisThumbChange",
|
|
57363
|
+
"description": "Fires when a user changes the value of a thumb via the arrow keys or by keyboard editing of the label on the slider.",
|
|
57364
|
+
"type": {
|
|
57365
|
+
"text": "ThumbChangeEvent",
|
|
57366
|
+
"references": [
|
|
57367
|
+
{
|
|
57368
|
+
"name": "ThumbChangeEvent",
|
|
57369
|
+
"package": "@arcgis/core",
|
|
57370
|
+
"module": "widgets/Slider/types.d.ts",
|
|
57371
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-types.html#ThumbChangeEvent",
|
|
57372
|
+
"start": 0,
|
|
57373
|
+
"end": 16
|
|
57374
|
+
}
|
|
57375
|
+
]
|
|
57376
|
+
}
|
|
57377
|
+
},
|
|
57378
|
+
{
|
|
57379
|
+
"name": "arcgisThumbDrag",
|
|
57380
|
+
"description": "Fires when a user drags a thumb on the component.",
|
|
57381
|
+
"type": {
|
|
57382
|
+
"text": "ThumbDragEvent",
|
|
57383
|
+
"references": [
|
|
57384
|
+
{
|
|
57385
|
+
"name": "ThumbDragEvent",
|
|
57386
|
+
"package": "@arcgis/core",
|
|
57387
|
+
"module": "widgets/Slider/types.d.ts",
|
|
57388
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-types.html#ThumbDragEvent",
|
|
57389
|
+
"start": 0,
|
|
57390
|
+
"end": 14
|
|
57391
|
+
}
|
|
57392
|
+
]
|
|
57393
|
+
}
|
|
57394
|
+
}
|
|
57395
|
+
],
|
|
57396
|
+
"importPath": "components/arcgis-slider-color-size-legacy"
|
|
57397
|
+
}
|
|
57398
|
+
],
|
|
57399
|
+
"exports": [
|
|
57400
|
+
{
|
|
57401
|
+
"kind": "custom-element-definition",
|
|
57402
|
+
"name": "arcgis-slider-color-size-legacy",
|
|
57403
|
+
"declaration": {
|
|
57404
|
+
"name": "ArcgisSliderColorSizeLegacy"
|
|
57405
|
+
}
|
|
57406
|
+
}
|
|
57407
|
+
]
|
|
57408
|
+
},
|
|
57409
|
+
{
|
|
57410
|
+
"kind": "javascript-module",
|
|
57411
|
+
"path": "components/arcgis-slider-heatmap-legacy",
|
|
57412
|
+
"sourcePath": "src/components/slider-heatmap-legacy/slider-heatmap-legacy.tsx",
|
|
57413
|
+
"declarations": [
|
|
57414
|
+
{
|
|
57415
|
+
"kind": "class",
|
|
57416
|
+
"customElement": true,
|
|
57417
|
+
"name": "ArcgisSliderHeatmapLegacy",
|
|
57418
|
+
"tagName": "arcgis-slider-heatmap-legacy",
|
|
57419
|
+
"pascalCaseName": "ArcgisSliderHeatmapLegacy",
|
|
57420
|
+
"description": "The Heatmap Slider (Legacy) component is intended for authoring and exploring data-driven visualizations in any\nlayer that can be rendered with a [HeatmapRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html).\n\n<span id=\"image-annotations\"></span>\nSee the image below for a summary of the configurable options available on this slider.\n\n\n\n```js\nconst viewElement = document.querySelector(\"arcgis-map\")!;\nconst heatmapSlider = document.querySelector(\"arcgis-slider-heatmap-legacy\")!;\n\nconst layer = new CSVLayer({\n url: \"https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_week.csv\",\n});\n\nawait viewElement.viewOnReady();\nviewElement.map?.add(layer);\n\nconst params = {\n layer,\n valueExpression: \"($feature.mag)\",\n view: viewElement.view,\n};\n\nconst rendererResult = await heatmapRendererCreator.createRenderer(params);\n\nlayer.renderer = rendererResult.renderer;\n\nheatmapSlider.stops = rendererResult.renderer.colorStops;\n```\n\nThis slider should be used to update the [colorStops](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#colorStops)\nproperty in a HeatmapRenderer. It is the responsibility of the app developer\nto set up event listeners on this slider to update the renderer's colorStops based on how the [stops](#stops) property was recalculated.\n\n```js\nconst updateRendererFromSlider = () => {\n const renderer = layer.renderer?.clone();\n if (!renderer || !(\"colorStops\" in renderer)) {\n return;\n }\n renderer.colorStops = heatmapSlider.stops;\n layer.renderer = renderer;\n};\n\nheatmapSlider.addEventListener(\"arcgisThumbChange\", updateRendererFromSlider);\nheatmapSlider.addEventListener(\"arcgisThumbDrag\", updateRendererFromSlider);\n```",
|
|
57421
|
+
"docsTags": [
|
|
57422
|
+
{
|
|
57423
|
+
"name": "since",
|
|
57424
|
+
"text": "5.0.0"
|
|
57425
|
+
},
|
|
57426
|
+
{
|
|
57427
|
+
"name": "see",
|
|
57428
|
+
"text": "[HeatmapSliderViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-HeatmapSlider-HeatmapSliderViewModel.html)"
|
|
57429
|
+
},
|
|
57430
|
+
{
|
|
57431
|
+
"name": "see",
|
|
57432
|
+
"text": "[heatmapRendererCreator](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html)"
|
|
57433
|
+
}
|
|
57434
|
+
],
|
|
57435
|
+
"demos": [
|
|
57436
|
+
{
|
|
57437
|
+
"description": "Docs",
|
|
57438
|
+
"url": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-slider-heatmap-legacy/"
|
|
57439
|
+
},
|
|
57440
|
+
{
|
|
57441
|
+
"description": "Slider Heatmap (Legacy)",
|
|
57442
|
+
"url": "https://developers.arcgis.com/javascript/latest/storybook/map-components/?path=/story/arcgis-slider-heatmap-legacy--demo&singleStory=true"
|
|
57443
|
+
}
|
|
57444
|
+
],
|
|
57445
|
+
"superclass": {
|
|
57446
|
+
"name": "PublicLitElement",
|
|
57447
|
+
"module": "PublicLitElement",
|
|
57448
|
+
"package": "@arcgis/lumina"
|
|
57449
|
+
},
|
|
57450
|
+
"members": [
|
|
57451
|
+
{
|
|
57452
|
+
"kind": "field",
|
|
57453
|
+
"name": "autoDestroyDisabled",
|
|
57454
|
+
"description": "If true, the component will not be destroyed automatically when it is\ndisconnected from the document. This is useful when you want to move the\ncomponent to a different place on the page, or temporarily hide it. If this\nis set, make sure to call the [destroy](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-slider-heatmap-legacy/#destroy) method when you are done to\nprevent memory leaks.",
|
|
57455
|
+
"type": {
|
|
57456
|
+
"text": "boolean",
|
|
57457
|
+
"values": [
|
|
57458
|
+
{
|
|
57459
|
+
"type": "boolean"
|
|
57460
|
+
}
|
|
57461
|
+
]
|
|
57462
|
+
},
|
|
57463
|
+
"default": "false",
|
|
57464
|
+
"attribute": "auto-destroy-disabled"
|
|
57465
|
+
},
|
|
57466
|
+
{
|
|
57467
|
+
"kind": "field",
|
|
57468
|
+
"name": "icon",
|
|
57469
|
+
"description": "Icon which represents the widget. It is typically used when the widget is controlled by another\none (e.g. in the Expand widget).",
|
|
57470
|
+
"docsTags": [
|
|
57471
|
+
{
|
|
57472
|
+
"name": "see",
|
|
57473
|
+
"text": "[Calcite Icons](https://developers.arcgis.com/calcite-design-system/icons/)"
|
|
57474
|
+
}
|
|
57475
|
+
],
|
|
57476
|
+
"type": {
|
|
57477
|
+
"text": "IconName",
|
|
57478
|
+
"references": [
|
|
57479
|
+
{
|
|
57480
|
+
"name": "IconName",
|
|
57481
|
+
"package": "@esri/calcite-components",
|
|
57482
|
+
"module": "dist/components/calcite-icon/interfaces.d.ts",
|
|
57483
|
+
"start": 0,
|
|
57484
|
+
"end": 8
|
|
57485
|
+
}
|
|
57486
|
+
]
|
|
57487
|
+
}
|
|
57488
|
+
},
|
|
57489
|
+
{
|
|
57490
|
+
"kind": "field",
|
|
57491
|
+
"name": "max",
|
|
57492
|
+
"description": "The maximum value or upper bound of the slider.",
|
|
57493
|
+
"docsTags": [
|
|
57494
|
+
{
|
|
57495
|
+
"name": "example",
|
|
57496
|
+
"text": "```js\nslider.max = 150;\n```"
|
|
57497
|
+
}
|
|
57498
|
+
],
|
|
57499
|
+
"type": {
|
|
57500
|
+
"text": "number",
|
|
57501
|
+
"values": [
|
|
57502
|
+
{
|
|
57503
|
+
"type": "number"
|
|
57504
|
+
}
|
|
57505
|
+
]
|
|
57506
|
+
},
|
|
57507
|
+
"readonly": true
|
|
57508
|
+
},
|
|
57509
|
+
{
|
|
57510
|
+
"kind": "field",
|
|
57511
|
+
"name": "min",
|
|
57512
|
+
"description": "The minimum value or lower bound of the slider.",
|
|
57513
|
+
"docsTags": [
|
|
57514
|
+
{
|
|
57515
|
+
"name": "example",
|
|
57516
|
+
"text": "```js\nslider.min = -150;\n```"
|
|
57517
|
+
}
|
|
57518
|
+
],
|
|
57519
|
+
"type": {
|
|
57520
|
+
"text": "number",
|
|
57521
|
+
"values": [
|
|
57522
|
+
{
|
|
57523
|
+
"type": "number"
|
|
57524
|
+
}
|
|
57525
|
+
]
|
|
57526
|
+
},
|
|
57527
|
+
"readonly": true
|
|
57528
|
+
},
|
|
57529
|
+
{
|
|
57530
|
+
"kind": "field",
|
|
57531
|
+
"name": "precision",
|
|
57532
|
+
"description": "Defines how slider thumb values should be rounded. This number indicates the number\nof decimal places slider thumb _values_ should round to when they have been moved.\n\nKeep in mind this property rounds thumb [values](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderViewModel.html#values) and shouldn't be used exclusively\nfor formatting purposes.",
|
|
57533
|
+
"docsTags": [
|
|
57534
|
+
{
|
|
57535
|
+
"name": "example",
|
|
57536
|
+
"text": "```js\nslider.precision = 7;\n```"
|
|
57537
|
+
}
|
|
57538
|
+
],
|
|
57539
|
+
"type": {
|
|
57540
|
+
"text": "number",
|
|
57541
|
+
"values": [
|
|
57542
|
+
{
|
|
57543
|
+
"type": "number"
|
|
57544
|
+
}
|
|
57545
|
+
]
|
|
57546
|
+
},
|
|
57547
|
+
"default": "4",
|
|
57548
|
+
"attribute": "precision"
|
|
57549
|
+
},
|
|
57550
|
+
{
|
|
57551
|
+
"kind": "field",
|
|
57552
|
+
"name": "referenceElement",
|
|
57553
|
+
"description": "By assigning the `id` attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.",
|
|
57554
|
+
"docsTags": [
|
|
57555
|
+
{
|
|
57556
|
+
"name": "see",
|
|
57557
|
+
"text": "[Associate components with a Map or Scene component](https://developers.arcgis.com/javascript/latest/programming-patterns/#associate-components-with-a-map-or-scene-component)"
|
|
57558
|
+
}
|
|
57559
|
+
],
|
|
57560
|
+
"type": {
|
|
57561
|
+
"text": "HTMLArcgisLinkChartElement | HTMLArcgisMapElement | HTMLArcgisSceneElement | string",
|
|
57562
|
+
"references": [
|
|
57563
|
+
{
|
|
57564
|
+
"name": "HTMLArcgisLinkChartElement",
|
|
57565
|
+
"module": "index.js",
|
|
57566
|
+
"start": 0,
|
|
57567
|
+
"end": 26,
|
|
57568
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-link-chart/"
|
|
57569
|
+
},
|
|
57570
|
+
{
|
|
57571
|
+
"name": "HTMLArcgisMapElement",
|
|
57572
|
+
"module": "index.js",
|
|
57573
|
+
"start": 29,
|
|
57574
|
+
"end": 49,
|
|
57575
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-map/"
|
|
57576
|
+
},
|
|
57577
|
+
{
|
|
57578
|
+
"name": "HTMLArcgisSceneElement",
|
|
57579
|
+
"module": "index.js",
|
|
57580
|
+
"start": 52,
|
|
57581
|
+
"end": 74,
|
|
57582
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-scene/"
|
|
57583
|
+
}
|
|
57584
|
+
],
|
|
57585
|
+
"values": [
|
|
57586
|
+
{
|
|
57587
|
+
"type": "HTMLArcgisLinkChartElement"
|
|
57588
|
+
},
|
|
57589
|
+
{
|
|
57590
|
+
"type": "HTMLArcgisMapElement"
|
|
57591
|
+
},
|
|
57592
|
+
{
|
|
57593
|
+
"type": "HTMLArcgisSceneElement"
|
|
57594
|
+
},
|
|
57595
|
+
{
|
|
57596
|
+
"type": "string"
|
|
57597
|
+
}
|
|
57598
|
+
]
|
|
57599
|
+
},
|
|
57600
|
+
"attribute": "reference-element"
|
|
57601
|
+
},
|
|
57602
|
+
{
|
|
57603
|
+
"kind": "field",
|
|
57604
|
+
"name": "state",
|
|
57605
|
+
"description": "The current state of the component.",
|
|
57606
|
+
"type": {
|
|
57607
|
+
"text": "\"disabled\" | \"ready\"",
|
|
57608
|
+
"values": [
|
|
57609
|
+
{
|
|
57610
|
+
"type": "string",
|
|
57611
|
+
"value": "disabled"
|
|
57612
|
+
},
|
|
57613
|
+
{
|
|
57614
|
+
"type": "string",
|
|
57615
|
+
"value": "ready"
|
|
57616
|
+
}
|
|
57617
|
+
]
|
|
57618
|
+
},
|
|
57619
|
+
"attribute": "state"
|
|
57620
|
+
},
|
|
57621
|
+
{
|
|
57622
|
+
"kind": "field",
|
|
57623
|
+
"name": "stops",
|
|
57624
|
+
"description": "The color stops of the [HeatmapRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html) to associate with the slider.",
|
|
57625
|
+
"docsTags": [
|
|
57626
|
+
{
|
|
57627
|
+
"name": "example",
|
|
57628
|
+
"text": "```js\nslider.stops = [\n { color: \"rgba(63, 40, 102, 0)\", ratio: 0 },\n { color: \"#472b77\", ratio: 0.083 },\n { color: \"#4e2d87\", ratio: 0.166 },\n { color: \"#563098\", ratio: 0.249 },\n { color: \"#5d32a8\", ratio: 0.332 },\n { color: \"#6735be\", ratio: 0.415 },\n { color: \"#7139d4\", ratio: 0.498 },\n { color: \"#7b3ce9\", ratio: 0.581 },\n { color: \"#853fff\", ratio: 0.664 },\n { color: \"#a46fbf\", ratio: 0.747 },\n { color: \"#c29f80\", ratio: 0.83 },\n { color: \"#e0cf40\", ratio: 0.913 },\n { color: \"#ffff00\", ratio: 1 }\n];"
|
|
57629
|
+
},
|
|
57630
|
+
{
|
|
57631
|
+
"name": "example",
|
|
57632
|
+
"text": "slider.stops = rendererResult.renderer.colorStops;\n```"
|
|
57633
|
+
}
|
|
57634
|
+
],
|
|
57635
|
+
"type": {
|
|
57636
|
+
"text": "Array<HeatmapColorStop>",
|
|
57637
|
+
"references": [
|
|
57638
|
+
{
|
|
57639
|
+
"name": "Array",
|
|
57640
|
+
"package": "typescript",
|
|
57641
|
+
"module": "lib/lib.es5.d.ts",
|
|
57642
|
+
"start": 0,
|
|
57643
|
+
"end": 5
|
|
57644
|
+
},
|
|
57645
|
+
{
|
|
57646
|
+
"name": "HeatmapColorStop",
|
|
57647
|
+
"package": "@arcgis/core",
|
|
57648
|
+
"module": "renderers/support/HeatmapColorStop.d.ts",
|
|
57649
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-HeatmapColorStop.html",
|
|
57650
|
+
"start": 6,
|
|
57651
|
+
"end": 22
|
|
57652
|
+
}
|
|
57653
|
+
]
|
|
57654
|
+
}
|
|
57655
|
+
},
|
|
57656
|
+
{
|
|
57657
|
+
"kind": "method",
|
|
57658
|
+
"name": "componentOnReady",
|
|
57659
|
+
"description": "Create a promise that resolves once component is fully loaded.",
|
|
57660
|
+
"docsTags": [
|
|
57661
|
+
{
|
|
57662
|
+
"name": "example",
|
|
57663
|
+
"text": "```js\nconst arcgisSliderHeatmapLegacy = document.querySelector(\"arcgis-slider-heatmap-legacy\");\ndocument.body.append(arcgisSliderHeatmapLegacy);\nawait arcgisSliderHeatmapLegacy.componentOnReady();\nconsole.log(\"arcgis-slider-heatmap-legacy is ready to go!\");\n```"
|
|
57664
|
+
}
|
|
57665
|
+
],
|
|
57666
|
+
"return": {
|
|
57667
|
+
"type": {
|
|
57668
|
+
"text": "Promise<this>",
|
|
57669
|
+
"references": [
|
|
57670
|
+
{
|
|
57671
|
+
"module": "lib/lib.es5.d.ts",
|
|
57672
|
+
"name": "Promise",
|
|
57673
|
+
"package": "typescript",
|
|
57674
|
+
"start": 0,
|
|
57675
|
+
"end": 7
|
|
57676
|
+
}
|
|
57677
|
+
]
|
|
57678
|
+
}
|
|
57679
|
+
},
|
|
57680
|
+
"inheritedFrom": {
|
|
57681
|
+
"name": "PublicLitElement",
|
|
57682
|
+
"module": "PublicLitElement",
|
|
57683
|
+
"package": "@arcgis/lumina"
|
|
57684
|
+
},
|
|
57685
|
+
"signature": "(): Promise<this>"
|
|
57686
|
+
},
|
|
57687
|
+
{
|
|
57688
|
+
"kind": "method",
|
|
57689
|
+
"name": "destroy",
|
|
57690
|
+
"description": "Permanently destroy the component.",
|
|
57691
|
+
"return": {
|
|
57692
|
+
"type": {
|
|
57693
|
+
"text": "Promise<void>",
|
|
57694
|
+
"references": [
|
|
57695
|
+
{
|
|
57696
|
+
"name": "Promise",
|
|
57697
|
+
"package": "typescript",
|
|
57698
|
+
"module": "lib/lib.es5.d.ts",
|
|
57699
|
+
"start": 0,
|
|
57700
|
+
"end": 7
|
|
57701
|
+
}
|
|
57702
|
+
]
|
|
57703
|
+
}
|
|
57704
|
+
},
|
|
57705
|
+
"signature": "(): Promise<void>"
|
|
57706
|
+
}
|
|
57707
|
+
],
|
|
57708
|
+
"attributes": [
|
|
57709
|
+
{
|
|
57710
|
+
"name": "auto-destroy-disabled",
|
|
57711
|
+
"description": "If true, the component will not be destroyed automatically when it is\ndisconnected from the document. This is useful when you want to move the\ncomponent to a different place on the page, or temporarily hide it. If this\nis set, make sure to call the [destroy](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-slider-heatmap-legacy/#destroy) method when you are done to\nprevent memory leaks.",
|
|
57712
|
+
"type": {
|
|
57713
|
+
"text": "boolean",
|
|
57714
|
+
"values": [
|
|
57715
|
+
{
|
|
57716
|
+
"type": "boolean"
|
|
57717
|
+
}
|
|
57718
|
+
]
|
|
57719
|
+
},
|
|
57720
|
+
"default": "false",
|
|
57721
|
+
"fieldName": "autoDestroyDisabled"
|
|
57722
|
+
},
|
|
57723
|
+
{
|
|
57724
|
+
"name": "precision",
|
|
57725
|
+
"description": "Defines how slider thumb values should be rounded. This number indicates the number\nof decimal places slider thumb _values_ should round to when they have been moved.\n\nKeep in mind this property rounds thumb [values](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderViewModel.html#values) and shouldn't be used exclusively\nfor formatting purposes.",
|
|
57726
|
+
"type": {
|
|
57727
|
+
"text": "number",
|
|
57728
|
+
"values": [
|
|
57729
|
+
{
|
|
57730
|
+
"type": "number"
|
|
57731
|
+
}
|
|
57732
|
+
]
|
|
57733
|
+
},
|
|
57734
|
+
"default": "4",
|
|
57735
|
+
"fieldName": "precision"
|
|
57736
|
+
},
|
|
57737
|
+
{
|
|
57738
|
+
"name": "reference-element",
|
|
57739
|
+
"description": "By assigning the `id` attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.",
|
|
57740
|
+
"type": {
|
|
57741
|
+
"text": "string",
|
|
57742
|
+
"values": [
|
|
57743
|
+
{
|
|
57744
|
+
"type": "string"
|
|
57745
|
+
}
|
|
57746
|
+
]
|
|
57747
|
+
},
|
|
57748
|
+
"fieldName": "referenceElement"
|
|
57749
|
+
},
|
|
57750
|
+
{
|
|
57751
|
+
"name": "state",
|
|
57752
|
+
"description": "The current state of the component.",
|
|
57753
|
+
"type": {
|
|
57754
|
+
"text": "\"disabled\" | \"ready\"",
|
|
57755
|
+
"values": [
|
|
57756
|
+
{
|
|
57757
|
+
"type": "string",
|
|
57758
|
+
"value": "disabled"
|
|
57759
|
+
},
|
|
57760
|
+
{
|
|
57761
|
+
"type": "string",
|
|
57762
|
+
"value": "ready"
|
|
57763
|
+
}
|
|
57764
|
+
]
|
|
57765
|
+
},
|
|
57766
|
+
"fieldName": "state"
|
|
57767
|
+
}
|
|
57768
|
+
],
|
|
57769
|
+
"events": [
|
|
57770
|
+
{
|
|
57771
|
+
"name": "arcgisPropertyChange",
|
|
57772
|
+
"description": "Emitted when the value of a property is changed. Use this to listen to changes to properties.",
|
|
57773
|
+
"type": {
|
|
57774
|
+
"text": "{ name: \"state\" | \"precision\"; }"
|
|
57775
|
+
}
|
|
57776
|
+
},
|
|
57777
|
+
{
|
|
57778
|
+
"name": "arcgisReady",
|
|
57779
|
+
"description": "Emitted when the component associated with a map or scene view is ready to be interacted with.",
|
|
57780
|
+
"type": {
|
|
57781
|
+
"text": "void"
|
|
57782
|
+
}
|
|
57783
|
+
},
|
|
57784
|
+
{
|
|
57785
|
+
"name": "arcgisThumbChange",
|
|
57786
|
+
"description": "Fires when a user changes the value of a thumb via the arrow keys or by keyboard editing of the label on the slider.",
|
|
57787
|
+
"type": {
|
|
57788
|
+
"text": "ThumbChangeEvent",
|
|
57789
|
+
"references": [
|
|
57790
|
+
{
|
|
57791
|
+
"name": "ThumbChangeEvent",
|
|
57792
|
+
"package": "@arcgis/core",
|
|
57793
|
+
"module": "widgets/Slider/types.d.ts",
|
|
57794
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-types.html#ThumbChangeEvent",
|
|
57795
|
+
"start": 0,
|
|
57796
|
+
"end": 16
|
|
57797
|
+
}
|
|
57798
|
+
]
|
|
57799
|
+
}
|
|
57800
|
+
},
|
|
57801
|
+
{
|
|
57802
|
+
"name": "arcgisThumbDrag",
|
|
57803
|
+
"description": "Fires when a user drags a thumb on the component.",
|
|
57804
|
+
"type": {
|
|
57805
|
+
"text": "ThumbDragEvent",
|
|
57806
|
+
"references": [
|
|
57807
|
+
{
|
|
57808
|
+
"name": "ThumbDragEvent",
|
|
57809
|
+
"package": "@arcgis/core",
|
|
57810
|
+
"module": "widgets/Slider/types.d.ts",
|
|
57811
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-types.html#ThumbDragEvent",
|
|
57812
|
+
"start": 0,
|
|
57813
|
+
"end": 14
|
|
57814
|
+
}
|
|
57815
|
+
]
|
|
57816
|
+
}
|
|
57817
|
+
}
|
|
57818
|
+
],
|
|
57819
|
+
"importPath": "components/arcgis-slider-heatmap-legacy"
|
|
57820
|
+
}
|
|
57821
|
+
],
|
|
57822
|
+
"exports": [
|
|
57823
|
+
{
|
|
57824
|
+
"kind": "custom-element-definition",
|
|
57825
|
+
"name": "arcgis-slider-heatmap-legacy",
|
|
57826
|
+
"declaration": {
|
|
57827
|
+
"name": "ArcgisSliderHeatmapLegacy"
|
|
57828
|
+
}
|
|
57829
|
+
}
|
|
57830
|
+
]
|
|
57831
|
+
},
|
|
57832
|
+
{
|
|
57833
|
+
"kind": "javascript-module",
|
|
57834
|
+
"path": "components/arcgis-slider-opacity-legacy",
|
|
57835
|
+
"sourcePath": "src/components/slider-opacity-legacy/slider-opacity-legacy.tsx",
|
|
57836
|
+
"declarations": [
|
|
57837
|
+
{
|
|
57838
|
+
"kind": "class",
|
|
57839
|
+
"customElement": true,
|
|
57840
|
+
"name": "ArcgisSliderOpacityLegacy",
|
|
57841
|
+
"tagName": "arcgis-slider-opacity-legacy",
|
|
57842
|
+
"pascalCaseName": "ArcgisSliderOpacityLegacy",
|
|
57843
|
+
"description": "The Opacity Slider (Legacy) component is intended for authoring and exploring data-driven visualizations in any\nlayer that can be rendered with an [OpacityVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-OpacityVariable.html).\n\n<span id=\"image-annotations\"></span>\nSee the image below for a summary of the configurable options available on this slider.\n\n\n\nThe [updateFromVisualVariableResult()](#updateFromVisualVariableResult()) method can be used to intelligently populate slider properties including [max](#max), [min](#min),\nthe [opacity visual variable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-OpacityVariable.html) configuration,\nand the slider's histogram after the renderer has been created from the result of the\n[createVisualVariable()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#createVisualVariable) method.\n\n```js\nconst opacityVariableCreator = await import(\"@arcgis/core/smartMapping/renderers/opacity.js\");\nconst viewElement = document.querySelector(\"arcgis-map\")!;\nconst opacitySlider = document.querySelector(\"arcgis-slider-opacity\")!;\n\nconst featureLayer = new FeatureLayer({\n url: \"https://services.arcgis.com/P3ePLMYs2RVChkJx/ArcGIS/rest/services/USA_Census_2020_DHC_Total_Population/FeatureServer/2\",\n});\n\nawait viewElement.viewOnReady();\nviewElement.map?.add(featureLayer);\n\nconst params = {\n layer: featureLayer,\n view: viewElement.view,\n field: \"P002_calc_pct0002\",\n};\n\nconst variableResult = await opacityVariableCreator.createVisualVariable(params);\n\nif (featureLayer.renderer && \"visualVariables\" in featureLayer.renderer) {\n featureLayer.renderer.visualVariables = [variableResult.visualVariable];\n}\n\nconst histogramResult = await histogram({\n ...params,\n numBins: 30,\n});\n\nawait opacitySlider.updateFromVisualVariableResult(variableResult, histogramResult);\n```\n\nThis slider should be used to update an [opacity visual variable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-OpacityVariable.html)\nin a layer's renderer. It is the responsibility of the app developer\nto set up event listeners on this slider to update the opacity variable of the appropriate renderer.\n\n```js\nconst updateRendererFromSlider = () => {\n const renderer = featureLayer.renderer?.clone();\n if (!renderer || !(\"visualVariables\" in renderer) || !renderer.visualVariables?.[0]) {\n return;\n }\n\n const visualVariable = renderer.visualVariables[0];\n if (visualVariable.type !== \"opacity\") {\n return;\n }\n\n const opacityVariable = visualVariable.clone();\n opacityVariable.stops = opacitySlider.stops;\n renderer.visualVariables = [opacityVariable];\n featureLayer.renderer = renderer;\n};\n\nopacitySlider.addEventListener(\"arcgisThumbChange\", updateRendererFromSlider);\nopacitySlider.addEventListener(\"arcgisThumbDrag\", updateRendererFromSlider);\n```",
|
|
57844
|
+
"docsTags": [
|
|
57845
|
+
{
|
|
57846
|
+
"name": "since",
|
|
57847
|
+
"text": "5.0.0"
|
|
57848
|
+
},
|
|
57849
|
+
{
|
|
57850
|
+
"name": "see",
|
|
57851
|
+
"text": "[OpacitySliderViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-OpacitySlider-OpacitySliderViewModel.html)"
|
|
57852
|
+
},
|
|
57853
|
+
{
|
|
57854
|
+
"name": "see",
|
|
57855
|
+
"text": "[opacityVariableCreator](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html)"
|
|
57856
|
+
}
|
|
57857
|
+
],
|
|
57858
|
+
"demos": [
|
|
57859
|
+
{
|
|
57860
|
+
"description": "Docs",
|
|
57861
|
+
"url": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-slider-opacity-legacy/"
|
|
57862
|
+
},
|
|
57863
|
+
{
|
|
57864
|
+
"description": "Slider Opacity (Legacy)",
|
|
57865
|
+
"url": "https://developers.arcgis.com/javascript/latest/storybook/map-components/?path=/story/arcgis-slider-opacity-legacy--demo&singleStory=true"
|
|
57866
|
+
}
|
|
57867
|
+
],
|
|
57868
|
+
"superclass": {
|
|
57869
|
+
"name": "PublicLitElement",
|
|
57870
|
+
"module": "PublicLitElement",
|
|
57871
|
+
"package": "@arcgis/lumina"
|
|
57872
|
+
},
|
|
57873
|
+
"members": [
|
|
57874
|
+
{
|
|
57875
|
+
"kind": "field",
|
|
57876
|
+
"name": "autoDestroyDisabled",
|
|
57877
|
+
"description": "If true, the component will not be destroyed automatically when it is\ndisconnected from the document. This is useful when you want to move the\ncomponent to a different place on the page, or temporarily hide it. If this\nis set, make sure to call the [destroy](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-slider-opacity-legacy/#destroy) method when you are done to\nprevent memory leaks.",
|
|
57878
|
+
"type": {
|
|
57879
|
+
"text": "boolean",
|
|
57880
|
+
"values": [
|
|
57881
|
+
{
|
|
57882
|
+
"type": "boolean"
|
|
57883
|
+
}
|
|
57884
|
+
]
|
|
57885
|
+
},
|
|
57886
|
+
"default": "false",
|
|
57887
|
+
"attribute": "auto-destroy-disabled"
|
|
57888
|
+
},
|
|
57889
|
+
{
|
|
57890
|
+
"kind": "field",
|
|
57891
|
+
"name": "icon",
|
|
57892
|
+
"description": "Icon which represents the widget. It is typically used when the widget is controlled by another\none (e.g. in the Expand widget).",
|
|
57893
|
+
"docsTags": [
|
|
57894
|
+
{
|
|
57895
|
+
"name": "see",
|
|
57896
|
+
"text": "[Calcite Icons](https://developers.arcgis.com/calcite-design-system/icons/)"
|
|
57897
|
+
}
|
|
57898
|
+
],
|
|
57899
|
+
"type": {
|
|
57900
|
+
"text": "IconName",
|
|
57901
|
+
"references": [
|
|
57902
|
+
{
|
|
57903
|
+
"name": "IconName",
|
|
57904
|
+
"package": "@esri/calcite-components",
|
|
57905
|
+
"module": "dist/components/calcite-icon/interfaces.d.ts",
|
|
57906
|
+
"start": 0,
|
|
57907
|
+
"end": 8
|
|
57908
|
+
}
|
|
57909
|
+
]
|
|
57910
|
+
}
|
|
57911
|
+
},
|
|
57912
|
+
{
|
|
57913
|
+
"kind": "field",
|
|
57914
|
+
"name": "max",
|
|
57915
|
+
"description": "The maximum value or upper bound of the slider. Once the slider has rendered with the [updateFromVisualVariableResult()](#updateFromVisualVariableResult) method,\nthe user may change this property by selecting the label containing the max value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the opacity variable of the appropriate renderer.",
|
|
57916
|
+
"docsTags": [
|
|
57917
|
+
{
|
|
57918
|
+
"name": "example",
|
|
57919
|
+
"text": "```js\nconst updateRendererFromSlider = () => {\n const renderer = featureLayer.renderer?.clone();\n if (!renderer || !(\"visualVariables\" in renderer) || !renderer.visualVariables?.[0]) {\n return;\n }\n\n const visualVariable = renderer.visualVariables[0];\n if (visualVariable.type !== \"opacity\") {\n return;\n }\n\n const opacityVariable = visualVariable.clone();\n opacityVariable.stops = opacitySlider.stops;\n renderer.visualVariables = [opacityVariable];\n featureLayer.renderer = renderer;\n};\n\nopacitySlider.addEventListener(\"arcgisPropertyChange\", updateRendererFromSlider);\n```"
|
|
57920
|
+
}
|
|
57921
|
+
],
|
|
57922
|
+
"type": {
|
|
57923
|
+
"text": "number",
|
|
57924
|
+
"values": [
|
|
57925
|
+
{
|
|
57926
|
+
"type": "number"
|
|
57927
|
+
}
|
|
57928
|
+
]
|
|
57929
|
+
},
|
|
57930
|
+
"attribute": "max"
|
|
57931
|
+
},
|
|
57932
|
+
{
|
|
57933
|
+
"kind": "field",
|
|
57934
|
+
"name": "min",
|
|
57935
|
+
"description": "The minimum value or lower bound of the slider. Once the slider has rendered with the [updateFromVisualVariableResult()](#updateFromVisualVariableResult) method,\nthe user may change this property by selecting the label containing the min value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the opacity variable of the appropriate renderer.",
|
|
57936
|
+
"docsTags": [
|
|
57937
|
+
{
|
|
57938
|
+
"name": "example",
|
|
57939
|
+
"text": "```js\nconst updateRendererFromSlider = () => {\n const renderer = featureLayer.renderer?.clone();\n if (!renderer || !(\"visualVariables\" in renderer) || !renderer.visualVariables?.[0]) {\n return;\n }\n\n const visualVariable = renderer.visualVariables[0];\n if (visualVariable.type !== \"opacity\") {\n return;\n }\n\n const opacityVariable = visualVariable.clone();\n opacityVariable.stops = opacitySlider.stops;\n renderer.visualVariables = [opacityVariable];\n featureLayer.renderer = renderer;\n};\n\nopacitySlider.addEventListener(\"arcgisPropertyChange\", updateRendererFromSlider);\n```"
|
|
57940
|
+
}
|
|
57941
|
+
],
|
|
57942
|
+
"type": {
|
|
57943
|
+
"text": "number",
|
|
57944
|
+
"values": [
|
|
57945
|
+
{
|
|
57946
|
+
"type": "number"
|
|
57947
|
+
}
|
|
57948
|
+
]
|
|
57949
|
+
},
|
|
57950
|
+
"attribute": "min"
|
|
57951
|
+
},
|
|
57952
|
+
{
|
|
57953
|
+
"kind": "field",
|
|
57954
|
+
"name": "precision",
|
|
57955
|
+
"description": "Defines how slider thumb values should be rounded. This number indicates the number\nof decimal places slider thumb _values_ should round to when they have been moved.\n\nKeep in mind this property rounds thumb [values](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderViewModel.html#values) and shouldn't be used exclusively\nfor formatting purposes.",
|
|
57956
|
+
"docsTags": [
|
|
57957
|
+
{
|
|
57958
|
+
"name": "example",
|
|
57959
|
+
"text": "```js\nslider.precision = 7;\n```"
|
|
57960
|
+
}
|
|
57961
|
+
],
|
|
57962
|
+
"type": {
|
|
57963
|
+
"text": "number",
|
|
57964
|
+
"values": [
|
|
57965
|
+
{
|
|
57966
|
+
"type": "number"
|
|
57967
|
+
}
|
|
57968
|
+
]
|
|
57969
|
+
},
|
|
57970
|
+
"default": "4",
|
|
57971
|
+
"attribute": "precision"
|
|
57972
|
+
},
|
|
57973
|
+
{
|
|
57974
|
+
"kind": "field",
|
|
57975
|
+
"name": "referenceElement",
|
|
57976
|
+
"description": "By assigning the `id` attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.",
|
|
57977
|
+
"docsTags": [
|
|
57978
|
+
{
|
|
57979
|
+
"name": "see",
|
|
57980
|
+
"text": "[Associate components with a Map or Scene component](https://developers.arcgis.com/javascript/latest/programming-patterns/#associate-components-with-a-map-or-scene-component)"
|
|
57981
|
+
}
|
|
57982
|
+
],
|
|
57983
|
+
"type": {
|
|
57984
|
+
"text": "HTMLArcgisLinkChartElement | HTMLArcgisMapElement | HTMLArcgisSceneElement | string",
|
|
57985
|
+
"references": [
|
|
57986
|
+
{
|
|
57987
|
+
"name": "HTMLArcgisLinkChartElement",
|
|
57988
|
+
"module": "index.js",
|
|
57989
|
+
"start": 0,
|
|
57990
|
+
"end": 26,
|
|
57991
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-link-chart/"
|
|
57992
|
+
},
|
|
57993
|
+
{
|
|
57994
|
+
"name": "HTMLArcgisMapElement",
|
|
57995
|
+
"module": "index.js",
|
|
57996
|
+
"start": 29,
|
|
57997
|
+
"end": 49,
|
|
57998
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-map/"
|
|
57999
|
+
},
|
|
58000
|
+
{
|
|
58001
|
+
"name": "HTMLArcgisSceneElement",
|
|
58002
|
+
"module": "index.js",
|
|
58003
|
+
"start": 52,
|
|
58004
|
+
"end": 74,
|
|
58005
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-scene/"
|
|
58006
|
+
}
|
|
58007
|
+
],
|
|
58008
|
+
"values": [
|
|
58009
|
+
{
|
|
58010
|
+
"type": "HTMLArcgisLinkChartElement"
|
|
58011
|
+
},
|
|
58012
|
+
{
|
|
58013
|
+
"type": "HTMLArcgisMapElement"
|
|
58014
|
+
},
|
|
58015
|
+
{
|
|
58016
|
+
"type": "HTMLArcgisSceneElement"
|
|
58017
|
+
},
|
|
58018
|
+
{
|
|
58019
|
+
"type": "string"
|
|
58020
|
+
}
|
|
58021
|
+
]
|
|
58022
|
+
},
|
|
58023
|
+
"attribute": "reference-element"
|
|
58024
|
+
},
|
|
58025
|
+
{
|
|
58026
|
+
"kind": "field",
|
|
58027
|
+
"name": "state",
|
|
58028
|
+
"description": "The current state of the component.",
|
|
58029
|
+
"type": {
|
|
58030
|
+
"text": "\"disabled\" | \"ready\"",
|
|
58031
|
+
"values": [
|
|
58032
|
+
{
|
|
58033
|
+
"type": "string",
|
|
58034
|
+
"value": "disabled"
|
|
58035
|
+
},
|
|
58036
|
+
{
|
|
58037
|
+
"type": "string",
|
|
58038
|
+
"value": "ready"
|
|
58039
|
+
}
|
|
58040
|
+
]
|
|
58041
|
+
},
|
|
58042
|
+
"attribute": "state"
|
|
58043
|
+
},
|
|
58044
|
+
{
|
|
58045
|
+
"kind": "field",
|
|
58046
|
+
"name": "stops",
|
|
58047
|
+
"description": "The opacity stops from the [OpacityVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-OpacityVariable.html)\nto link to the slider. The opacity values in these stops will be used\nto render the gradient on the slider. They should match the opacity\nrendered in the associated layer's opacity visual variable.",
|
|
58048
|
+
"type": {
|
|
58049
|
+
"text": "Array<OpacityStop>",
|
|
58050
|
+
"references": [
|
|
58051
|
+
{
|
|
58052
|
+
"name": "Array",
|
|
58053
|
+
"package": "typescript",
|
|
58054
|
+
"module": "lib/lib.es5.d.ts",
|
|
58055
|
+
"start": 0,
|
|
58056
|
+
"end": 5
|
|
58057
|
+
},
|
|
58058
|
+
{
|
|
58059
|
+
"name": "OpacityStop",
|
|
58060
|
+
"package": "@arcgis/core",
|
|
58061
|
+
"module": "renderers/visualVariables/support/OpacityStop.d.ts",
|
|
58062
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-OpacityStop.html",
|
|
58063
|
+
"start": 6,
|
|
58064
|
+
"end": 17
|
|
58065
|
+
}
|
|
58066
|
+
]
|
|
58067
|
+
},
|
|
58068
|
+
"readonly": true
|
|
58069
|
+
},
|
|
58070
|
+
{
|
|
58071
|
+
"kind": "method",
|
|
58072
|
+
"name": "componentOnReady",
|
|
58073
|
+
"description": "Create a promise that resolves once component is fully loaded.",
|
|
58074
|
+
"docsTags": [
|
|
58075
|
+
{
|
|
58076
|
+
"name": "example",
|
|
58077
|
+
"text": "```js\nconst arcgisSliderOpacityLegacy = document.querySelector(\"arcgis-slider-opacity-legacy\");\ndocument.body.append(arcgisSliderOpacityLegacy);\nawait arcgisSliderOpacityLegacy.componentOnReady();\nconsole.log(\"arcgis-slider-opacity-legacy is ready to go!\");\n```"
|
|
58078
|
+
}
|
|
58079
|
+
],
|
|
58080
|
+
"return": {
|
|
58081
|
+
"type": {
|
|
58082
|
+
"text": "Promise<this>",
|
|
58083
|
+
"references": [
|
|
58084
|
+
{
|
|
58085
|
+
"module": "lib/lib.es5.d.ts",
|
|
58086
|
+
"name": "Promise",
|
|
58087
|
+
"package": "typescript",
|
|
58088
|
+
"start": 0,
|
|
58089
|
+
"end": 7
|
|
58090
|
+
}
|
|
58091
|
+
]
|
|
58092
|
+
}
|
|
58093
|
+
},
|
|
58094
|
+
"inheritedFrom": {
|
|
58095
|
+
"name": "PublicLitElement",
|
|
58096
|
+
"module": "PublicLitElement",
|
|
58097
|
+
"package": "@arcgis/lumina"
|
|
58098
|
+
},
|
|
58099
|
+
"signature": "(): Promise<this>"
|
|
58100
|
+
},
|
|
58101
|
+
{
|
|
58102
|
+
"kind": "method",
|
|
58103
|
+
"name": "destroy",
|
|
58104
|
+
"description": "Permanently destroy the component.",
|
|
58105
|
+
"return": {
|
|
58106
|
+
"type": {
|
|
58107
|
+
"text": "Promise<void>",
|
|
58108
|
+
"references": [
|
|
58109
|
+
{
|
|
58110
|
+
"name": "Promise",
|
|
58111
|
+
"package": "typescript",
|
|
58112
|
+
"module": "lib/lib.es5.d.ts",
|
|
58113
|
+
"start": 0,
|
|
58114
|
+
"end": 7
|
|
58115
|
+
}
|
|
58116
|
+
]
|
|
58117
|
+
}
|
|
58118
|
+
},
|
|
58119
|
+
"signature": "(): Promise<void>"
|
|
58120
|
+
},
|
|
58121
|
+
{
|
|
58122
|
+
"kind": "method",
|
|
58123
|
+
"name": "updateFromVisualVariableResult",
|
|
58124
|
+
"description": "A convenience function used to update the properties of an OpacitySlider component instance from the\n[result](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#VisualVariableResult) of\nthe [createVisualVariable()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#createVisualVariable)\nmethod. This method is used to configure an empty OpacitySlider to be used with the layer data, and is useful for cases when the app allows the end user to switch data variables.\nNote that this method always expects `rendererResult` to be defined for the slider to function, but `histogramResult` is optional.",
|
|
58125
|
+
"docsTags": [
|
|
58126
|
+
{
|
|
58127
|
+
"name": "param",
|
|
58128
|
+
"text": "visualVariableResult - The result object from the [createVisualVariable()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#createVisualVariable)\nmethod."
|
|
58129
|
+
},
|
|
58130
|
+
{
|
|
58131
|
+
"name": "param",
|
|
58132
|
+
"text": "histogramResult - The result histogram object from the [histogram()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram)\nmethod."
|
|
58133
|
+
},
|
|
58134
|
+
{
|
|
58135
|
+
"name": "example",
|
|
58136
|
+
"text": "```js\nconst opacityVariableCreator = await import(\"@arcgis/core/smartMapping/renderers/opacity.js\");\nconst variableResult = await opacityVariableCreator.createVisualVariable(params);\n\nif (featureLayer.renderer && \"visualVariables\" in featureLayer.renderer) {\n featureLayer.renderer.visualVariables = [variableResult.visualVariable];\n}\n\nconst histogramResult = await histogram({\n ...params,\n numBins: 30,\n});\n\nawait opacitySlider.updateFromVisualVariableResult(variableResult, histogramResult);\n```"
|
|
58137
|
+
}
|
|
58138
|
+
],
|
|
58139
|
+
"parameters": [
|
|
58140
|
+
{
|
|
58141
|
+
"name": "visualVariable",
|
|
58142
|
+
"type": {
|
|
58143
|
+
"text": "VisualVariableResult",
|
|
58144
|
+
"references": [
|
|
58145
|
+
{
|
|
58146
|
+
"name": "VisualVariableResult",
|
|
58147
|
+
"package": "@arcgis/core",
|
|
58148
|
+
"module": "smartMapping/renderers/opacity.d.ts",
|
|
58149
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#VisualVariableResult",
|
|
58150
|
+
"start": 0,
|
|
58151
|
+
"end": 20
|
|
58152
|
+
}
|
|
58153
|
+
]
|
|
58154
|
+
}
|
|
58155
|
+
},
|
|
58156
|
+
{
|
|
58157
|
+
"name": "histogramResult",
|
|
58158
|
+
"optional": true,
|
|
58159
|
+
"type": {
|
|
58160
|
+
"text": "HistogramResult | undefined",
|
|
58161
|
+
"references": [
|
|
58162
|
+
{
|
|
58163
|
+
"name": "HistogramResult",
|
|
58164
|
+
"package": "@arcgis/core",
|
|
58165
|
+
"module": "smartMapping/statistics/types.d.ts",
|
|
58166
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-types.html#HistogramResult",
|
|
58167
|
+
"start": 0,
|
|
58168
|
+
"end": 15
|
|
58169
|
+
}
|
|
58170
|
+
],
|
|
58171
|
+
"values": [
|
|
58172
|
+
{
|
|
58173
|
+
"type": "HistogramResult"
|
|
58174
|
+
},
|
|
58175
|
+
{
|
|
58176
|
+
"type": "undefined"
|
|
58177
|
+
}
|
|
58178
|
+
]
|
|
58179
|
+
}
|
|
58180
|
+
}
|
|
58181
|
+
],
|
|
58182
|
+
"return": {
|
|
58183
|
+
"type": {
|
|
58184
|
+
"text": "Promise<void>",
|
|
58185
|
+
"references": [
|
|
58186
|
+
{
|
|
58187
|
+
"name": "Promise",
|
|
58188
|
+
"package": "typescript",
|
|
58189
|
+
"module": "lib/lib.es5.d.ts",
|
|
58190
|
+
"start": 0,
|
|
58191
|
+
"end": 7
|
|
58192
|
+
}
|
|
58193
|
+
]
|
|
58194
|
+
}
|
|
58195
|
+
},
|
|
58196
|
+
"signature": "(visualVariable: VisualVariableResult, histogramResult?: HistogramResult): Promise<void>"
|
|
58197
|
+
}
|
|
58198
|
+
],
|
|
58199
|
+
"attributes": [
|
|
58200
|
+
{
|
|
58201
|
+
"name": "auto-destroy-disabled",
|
|
58202
|
+
"description": "If true, the component will not be destroyed automatically when it is\ndisconnected from the document. This is useful when you want to move the\ncomponent to a different place on the page, or temporarily hide it. If this\nis set, make sure to call the [destroy](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-slider-opacity-legacy/#destroy) method when you are done to\nprevent memory leaks.",
|
|
58203
|
+
"type": {
|
|
58204
|
+
"text": "boolean",
|
|
58205
|
+
"values": [
|
|
58206
|
+
{
|
|
58207
|
+
"type": "boolean"
|
|
58208
|
+
}
|
|
58209
|
+
]
|
|
58210
|
+
},
|
|
58211
|
+
"default": "false",
|
|
58212
|
+
"fieldName": "autoDestroyDisabled"
|
|
58213
|
+
},
|
|
58214
|
+
{
|
|
58215
|
+
"name": "max",
|
|
58216
|
+
"description": "The maximum value or upper bound of the slider. Once the slider has rendered with the [updateFromVisualVariableResult()](#updateFromVisualVariableResult) method,\nthe user may change this property by selecting the label containing the max value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the opacity variable of the appropriate renderer.",
|
|
58217
|
+
"type": {
|
|
58218
|
+
"text": "number",
|
|
58219
|
+
"values": [
|
|
58220
|
+
{
|
|
58221
|
+
"type": "number"
|
|
58222
|
+
}
|
|
58223
|
+
]
|
|
58224
|
+
},
|
|
58225
|
+
"fieldName": "max"
|
|
58226
|
+
},
|
|
58227
|
+
{
|
|
58228
|
+
"name": "min",
|
|
58229
|
+
"description": "The minimum value or lower bound of the slider. Once the slider has rendered with the [updateFromVisualVariableResult()](#updateFromVisualVariableResult) method,\nthe user may change this property by selecting the label containing the min value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the opacity variable of the appropriate renderer.",
|
|
58230
|
+
"type": {
|
|
58231
|
+
"text": "number",
|
|
58232
|
+
"values": [
|
|
58233
|
+
{
|
|
58234
|
+
"type": "number"
|
|
58235
|
+
}
|
|
58236
|
+
]
|
|
58237
|
+
},
|
|
58238
|
+
"fieldName": "min"
|
|
58239
|
+
},
|
|
58240
|
+
{
|
|
58241
|
+
"name": "precision",
|
|
58242
|
+
"description": "Defines how slider thumb values should be rounded. This number indicates the number\nof decimal places slider thumb _values_ should round to when they have been moved.\n\nKeep in mind this property rounds thumb [values](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderViewModel.html#values) and shouldn't be used exclusively\nfor formatting purposes.",
|
|
58243
|
+
"type": {
|
|
58244
|
+
"text": "number",
|
|
58245
|
+
"values": [
|
|
58246
|
+
{
|
|
58247
|
+
"type": "number"
|
|
58248
|
+
}
|
|
58249
|
+
]
|
|
58250
|
+
},
|
|
58251
|
+
"default": "4",
|
|
58252
|
+
"fieldName": "precision"
|
|
58253
|
+
},
|
|
58254
|
+
{
|
|
58255
|
+
"name": "reference-element",
|
|
58256
|
+
"description": "By assigning the `id` attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.",
|
|
58257
|
+
"type": {
|
|
58258
|
+
"text": "string",
|
|
58259
|
+
"values": [
|
|
58260
|
+
{
|
|
58261
|
+
"type": "string"
|
|
58262
|
+
}
|
|
58263
|
+
]
|
|
58264
|
+
},
|
|
58265
|
+
"fieldName": "referenceElement"
|
|
58266
|
+
},
|
|
58267
|
+
{
|
|
58268
|
+
"name": "state",
|
|
58269
|
+
"description": "The current state of the component.",
|
|
58270
|
+
"type": {
|
|
58271
|
+
"text": "\"disabled\" | \"ready\"",
|
|
58272
|
+
"values": [
|
|
58273
|
+
{
|
|
58274
|
+
"type": "string",
|
|
58275
|
+
"value": "disabled"
|
|
58276
|
+
},
|
|
58277
|
+
{
|
|
58278
|
+
"type": "string",
|
|
58279
|
+
"value": "ready"
|
|
58280
|
+
}
|
|
58281
|
+
]
|
|
58282
|
+
},
|
|
58283
|
+
"fieldName": "state"
|
|
58284
|
+
}
|
|
58285
|
+
],
|
|
58286
|
+
"events": [
|
|
58287
|
+
{
|
|
58288
|
+
"name": "arcgisPropertyChange",
|
|
58289
|
+
"description": "Emitted when the value of a property is changed. Use this to listen to changes to properties.",
|
|
58290
|
+
"type": {
|
|
58291
|
+
"text": "{ name: \"state\" | \"max\" | \"min\" | \"precision\"; }"
|
|
58292
|
+
}
|
|
58293
|
+
},
|
|
58294
|
+
{
|
|
58295
|
+
"name": "arcgisReady",
|
|
58296
|
+
"description": "Emitted when the component associated with a map or scene view is ready to be interacted with.",
|
|
58297
|
+
"type": {
|
|
58298
|
+
"text": "void"
|
|
58299
|
+
}
|
|
58300
|
+
},
|
|
58301
|
+
{
|
|
58302
|
+
"name": "arcgisThumbChange",
|
|
58303
|
+
"description": "Fires when a user changes the value of a thumb via the arrow keys or by keyboard editing of the label on the slider.",
|
|
58304
|
+
"type": {
|
|
58305
|
+
"text": "ThumbChangeEvent",
|
|
58306
|
+
"references": [
|
|
58307
|
+
{
|
|
58308
|
+
"name": "ThumbChangeEvent",
|
|
58309
|
+
"package": "@arcgis/core",
|
|
58310
|
+
"module": "widgets/Slider/types.d.ts",
|
|
58311
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-types.html#ThumbChangeEvent",
|
|
58312
|
+
"start": 0,
|
|
58313
|
+
"end": 16
|
|
58314
|
+
}
|
|
58315
|
+
]
|
|
58316
|
+
}
|
|
58317
|
+
},
|
|
58318
|
+
{
|
|
58319
|
+
"name": "arcgisThumbDrag",
|
|
58320
|
+
"description": "Fires when a user drags a thumb on the component.",
|
|
58321
|
+
"type": {
|
|
58322
|
+
"text": "ThumbDragEvent",
|
|
58323
|
+
"references": [
|
|
58324
|
+
{
|
|
58325
|
+
"name": "ThumbDragEvent",
|
|
58326
|
+
"package": "@arcgis/core",
|
|
58327
|
+
"module": "widgets/Slider/types.d.ts",
|
|
58328
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-types.html#ThumbDragEvent",
|
|
58329
|
+
"start": 0,
|
|
58330
|
+
"end": 14
|
|
58331
|
+
}
|
|
58332
|
+
]
|
|
58333
|
+
}
|
|
58334
|
+
}
|
|
58335
|
+
],
|
|
58336
|
+
"importPath": "components/arcgis-slider-opacity-legacy"
|
|
58337
|
+
}
|
|
58338
|
+
],
|
|
58339
|
+
"exports": [
|
|
58340
|
+
{
|
|
58341
|
+
"kind": "custom-element-definition",
|
|
58342
|
+
"name": "arcgis-slider-opacity-legacy",
|
|
58343
|
+
"declaration": {
|
|
58344
|
+
"name": "ArcgisSliderOpacityLegacy"
|
|
58345
|
+
}
|
|
58346
|
+
}
|
|
58347
|
+
]
|
|
58348
|
+
},
|
|
58349
|
+
{
|
|
58350
|
+
"kind": "javascript-module",
|
|
58351
|
+
"path": "components/arcgis-slider-size-legacy",
|
|
58352
|
+
"sourcePath": "src/components/slider-size-legacy/slider-size-legacy.tsx",
|
|
58353
|
+
"declarations": [
|
|
58354
|
+
{
|
|
58355
|
+
"kind": "class",
|
|
58356
|
+
"customElement": true,
|
|
58357
|
+
"name": "ArcgisSliderSizeLegacy",
|
|
58358
|
+
"tagName": "arcgis-slider-size-legacy",
|
|
58359
|
+
"pascalCaseName": "ArcgisSliderSizeLegacy",
|
|
58360
|
+
"description": "The Size Slider (Legacy) component is intended for authoring and exploring data-driven visualizations in any\nlayer that can be rendered with a [SizeVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html).\n\n<span id=\"image-annotations\"></span>\nSee the image below for a summary of the configurable options available on this slider.\n\n\n\nThe [updateFromRendererResult()](#updateFromRendererResult) method can be used to intelligently populate slider properties including\n[max](#max), [min](#min), [size visual variable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html)\nintervals, and the slider's histogram after the renderer has been created from the result of the\n[createContinuousRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer) method.\n\n```js\nconst sizeRendererCreator = await import(\"@arcgis/core/smartMapping/renderers/size.js\");\nconst viewElement = document.querySelector(\"arcgis-map\")!;\nconst sizeSlider = document.querySelector(\"arcgis-slider-size\")!;\n\nconst featureLayer = new FeatureLayer({\n url: \"https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/USA_Major_Cities_/FeatureServer/0\",\n});\n\nawait viewElement.viewOnReady();\nviewElement.map?.add(featureLayer);\n\nconst params = {\n layer: featureLayer,\n view: viewElement.view,\n field: \"POPULATION\",\n};\n\nconst rendererResult = await sizeRendererCreator.createContinuousRenderer(params);\n\nfeatureLayer.renderer = rendererResult.renderer;\n\nconst histogramResult = await histogram({\n ...params,\n numBins: 30,\n});\n\nsizeSlider.updateFromRendererResult(rendererResult, histogramResult);\n```\n\nThis slider should be used to update a [size visual variable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html)\nin a layer's renderer. It is the responsibility of the app developer\nto set up event listeners that update the size variable of the appropriate renderer.\n\n```js\nconst updateRendererFromSlider = () => {\n const renderer = featureLayer.renderer?.clone();\n if (!renderer || !(\"visualVariables\" in renderer) || !renderer.visualVariables?.[0]) {\n return;\n }\n\n const sizeVariable = renderer.visualVariables[0] as __esri.SizeVariable;\n const updatedSizeVariable = sizeSlider.updateVisualVariable(sizeVariable);\n if (!updatedSizeVariable) {\n return;\n }\n\n renderer.visualVariables = [updatedSizeVariable];\n featureLayer.renderer = renderer;\n};\n\nsizeSlider.addEventListener(\"arcgisThumbChange\", updateRendererFromSlider);\nsizeSlider.addEventListener(\"arcgisThumbDrag\", updateRendererFromSlider);\n```",
|
|
58361
|
+
"docsTags": [
|
|
58362
|
+
{
|
|
58363
|
+
"name": "since",
|
|
58364
|
+
"text": "5.0.0"
|
|
58365
|
+
},
|
|
58366
|
+
{
|
|
58367
|
+
"name": "see",
|
|
58368
|
+
"text": "[SizeSliderViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider-SizeSliderViewModel.html)"
|
|
58369
|
+
},
|
|
58370
|
+
{
|
|
58371
|
+
"name": "see",
|
|
58372
|
+
"text": "[sizeRendererCreator](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html)"
|
|
58373
|
+
}
|
|
58374
|
+
],
|
|
58375
|
+
"demos": [
|
|
58376
|
+
{
|
|
58377
|
+
"description": "Docs",
|
|
58378
|
+
"url": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-slider-size-legacy/"
|
|
58379
|
+
},
|
|
58380
|
+
{
|
|
58381
|
+
"description": "Slider Size (Legacy)",
|
|
58382
|
+
"url": "https://developers.arcgis.com/javascript/latest/storybook/map-components/?path=/story/arcgis-slider-size-legacy--demo&singleStory=true"
|
|
58383
|
+
}
|
|
58384
|
+
],
|
|
58385
|
+
"superclass": {
|
|
58386
|
+
"name": "PublicLitElement",
|
|
58387
|
+
"module": "PublicLitElement",
|
|
58388
|
+
"package": "@arcgis/lumina"
|
|
58389
|
+
},
|
|
58390
|
+
"members": [
|
|
58391
|
+
{
|
|
58392
|
+
"kind": "field",
|
|
58393
|
+
"name": "autoDestroyDisabled",
|
|
58394
|
+
"description": "If true, the component will not be destroyed automatically when it is\ndisconnected from the document. This is useful when you want to move the\ncomponent to a different place on the page, or temporarily hide it. If this\nis set, make sure to call the [destroy](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-slider-size-legacy/#destroy) method when you are done to\nprevent memory leaks.",
|
|
58395
|
+
"type": {
|
|
58396
|
+
"text": "boolean",
|
|
58397
|
+
"values": [
|
|
58398
|
+
{
|
|
58399
|
+
"type": "boolean"
|
|
58400
|
+
}
|
|
58401
|
+
]
|
|
58402
|
+
},
|
|
58403
|
+
"default": "false",
|
|
58404
|
+
"attribute": "auto-destroy-disabled"
|
|
58405
|
+
},
|
|
58406
|
+
{
|
|
58407
|
+
"kind": "field",
|
|
58408
|
+
"name": "icon",
|
|
58409
|
+
"description": "Icon which represents the widget. It is typically used when the widget is controlled by another\none (e.g. in the Expand widget).",
|
|
58410
|
+
"docsTags": [
|
|
58411
|
+
{
|
|
58412
|
+
"name": "see",
|
|
58413
|
+
"text": "[Calcite Icons](https://developers.arcgis.com/calcite-design-system/icons/)"
|
|
58414
|
+
}
|
|
58415
|
+
],
|
|
58416
|
+
"type": {
|
|
58417
|
+
"text": "IconName",
|
|
58418
|
+
"references": [
|
|
58419
|
+
{
|
|
58420
|
+
"name": "IconName",
|
|
58421
|
+
"package": "@esri/calcite-components",
|
|
58422
|
+
"module": "dist/components/calcite-icon/interfaces.d.ts",
|
|
58423
|
+
"start": 0,
|
|
58424
|
+
"end": 8
|
|
58425
|
+
}
|
|
58426
|
+
]
|
|
58427
|
+
}
|
|
58428
|
+
},
|
|
58429
|
+
{
|
|
58430
|
+
"kind": "field",
|
|
58431
|
+
"name": "max",
|
|
58432
|
+
"description": "The maximum value or upper bound of the slider. Once the slider has rendered with the [updateFromRendererResult](#updateFromRendererResult) method,\nthe user may change this property by selecting the label containing the max value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the size variable of the appropriate renderer.",
|
|
58433
|
+
"docsTags": [
|
|
58434
|
+
{
|
|
58435
|
+
"name": "example",
|
|
58436
|
+
"text": "```js\nconst updateRendererFromSlider = () => {\n const renderer = featureLayer.renderer?.clone();\n if (!renderer || !(\"visualVariables\" in renderer) || !renderer.visualVariables?.[0]) {\n return;\n }\n\n const sizeVariable = renderer.visualVariables[0] as __esri.SizeVariable;\n const updatedSizeVariable = sizeSlider.updateVisualVariable(sizeVariable);\n if (!updatedSizeVariable) {\n return;\n }\n\n renderer.visualVariables = [updatedSizeVariable];\n featureLayer.renderer = renderer;\n};\n\nsizeSlider.addEventListener(\"arcgisPropertyChange\", updateRendererFromSlider);\n```"
|
|
58437
|
+
}
|
|
58438
|
+
],
|
|
58439
|
+
"type": {
|
|
58440
|
+
"text": "number",
|
|
58441
|
+
"values": [
|
|
58442
|
+
{
|
|
58443
|
+
"type": "number"
|
|
58444
|
+
}
|
|
58445
|
+
]
|
|
58446
|
+
},
|
|
58447
|
+
"attribute": "max"
|
|
58448
|
+
},
|
|
58449
|
+
{
|
|
58450
|
+
"kind": "field",
|
|
58451
|
+
"name": "min",
|
|
58452
|
+
"description": "The minimum value or lower bound of the slider. Once the slider has rendered with the [updateFromRendererResult](#updateFromRendererResult) method,\nthe user may change this property by selecting the label containing the min value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the size variable of the appropriate renderer.",
|
|
58453
|
+
"docsTags": [
|
|
58454
|
+
{
|
|
58455
|
+
"name": "example",
|
|
58456
|
+
"text": "```js\nconst updateRendererFromSlider = () => {\n const renderer = featureLayer.renderer?.clone();\n if (!renderer || !(\"visualVariables\" in renderer) || !renderer.visualVariables?.[0]) {\n return;\n }\n\n const sizeVariable = renderer.visualVariables[0] as __esri.SizeVariable;\n const updatedSizeVariable = sizeSlider.updateVisualVariable(sizeVariable);\n if (!updatedSizeVariable) {\n return;\n }\n\n renderer.visualVariables = [updatedSizeVariable];\n featureLayer.renderer = renderer;\n};\n\nsizeSlider.addEventListener(\"arcgisPropertyChange\", updateRendererFromSlider);\n```"
|
|
58457
|
+
}
|
|
58458
|
+
],
|
|
58459
|
+
"type": {
|
|
58460
|
+
"text": "number",
|
|
58461
|
+
"values": [
|
|
58462
|
+
{
|
|
58463
|
+
"type": "number"
|
|
58464
|
+
}
|
|
58465
|
+
]
|
|
58466
|
+
},
|
|
58467
|
+
"attribute": "min"
|
|
58468
|
+
},
|
|
58469
|
+
{
|
|
58470
|
+
"kind": "field",
|
|
58471
|
+
"name": "precision",
|
|
58472
|
+
"description": "Defines how slider thumb values should be rounded. This number indicates the number\nof decimal places slider thumb _values_ should round to when they have been moved.\n\nKeep in mind this property rounds thumb [values](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderViewModel.html#values) and shouldn't be used exclusively\nfor formatting purposes.",
|
|
58473
|
+
"docsTags": [
|
|
58474
|
+
{
|
|
58475
|
+
"name": "example",
|
|
58476
|
+
"text": "```js\nslider.precision = 7;\n```"
|
|
58477
|
+
}
|
|
58478
|
+
],
|
|
58479
|
+
"type": {
|
|
58480
|
+
"text": "number",
|
|
58481
|
+
"values": [
|
|
58482
|
+
{
|
|
58483
|
+
"type": "number"
|
|
58484
|
+
}
|
|
58485
|
+
]
|
|
58486
|
+
},
|
|
58487
|
+
"default": "4",
|
|
58488
|
+
"attribute": "precision"
|
|
58489
|
+
},
|
|
58490
|
+
{
|
|
58491
|
+
"kind": "field",
|
|
58492
|
+
"name": "referenceElement",
|
|
58493
|
+
"description": "By assigning the `id` attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.",
|
|
58494
|
+
"docsTags": [
|
|
58495
|
+
{
|
|
58496
|
+
"name": "see",
|
|
58497
|
+
"text": "[Associate components with a Map or Scene component](https://developers.arcgis.com/javascript/latest/programming-patterns/#associate-components-with-a-map-or-scene-component)"
|
|
58498
|
+
}
|
|
58499
|
+
],
|
|
58500
|
+
"type": {
|
|
58501
|
+
"text": "HTMLArcgisLinkChartElement | HTMLArcgisMapElement | HTMLArcgisSceneElement | string",
|
|
58502
|
+
"references": [
|
|
58503
|
+
{
|
|
58504
|
+
"name": "HTMLArcgisLinkChartElement",
|
|
58505
|
+
"module": "index.js",
|
|
58506
|
+
"start": 0,
|
|
58507
|
+
"end": 26,
|
|
58508
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-link-chart/"
|
|
58509
|
+
},
|
|
58510
|
+
{
|
|
58511
|
+
"name": "HTMLArcgisMapElement",
|
|
58512
|
+
"module": "index.js",
|
|
58513
|
+
"start": 29,
|
|
58514
|
+
"end": 49,
|
|
58515
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-map/"
|
|
58516
|
+
},
|
|
58517
|
+
{
|
|
58518
|
+
"name": "HTMLArcgisSceneElement",
|
|
58519
|
+
"module": "index.js",
|
|
58520
|
+
"start": 52,
|
|
58521
|
+
"end": 74,
|
|
58522
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-scene/"
|
|
58523
|
+
}
|
|
58524
|
+
],
|
|
58525
|
+
"values": [
|
|
58526
|
+
{
|
|
58527
|
+
"type": "HTMLArcgisLinkChartElement"
|
|
58528
|
+
},
|
|
58529
|
+
{
|
|
58530
|
+
"type": "HTMLArcgisMapElement"
|
|
58531
|
+
},
|
|
58532
|
+
{
|
|
58533
|
+
"type": "HTMLArcgisSceneElement"
|
|
58534
|
+
},
|
|
58535
|
+
{
|
|
58536
|
+
"type": "string"
|
|
58537
|
+
}
|
|
58538
|
+
]
|
|
58539
|
+
},
|
|
58540
|
+
"attribute": "reference-element"
|
|
58541
|
+
},
|
|
58542
|
+
{
|
|
58543
|
+
"kind": "field",
|
|
58544
|
+
"name": "state",
|
|
58545
|
+
"description": "The current state of the component.",
|
|
58546
|
+
"type": {
|
|
58547
|
+
"text": "\"disabled\" | \"ready\"",
|
|
58548
|
+
"values": [
|
|
58549
|
+
{
|
|
58550
|
+
"type": "string",
|
|
58551
|
+
"value": "disabled"
|
|
58552
|
+
},
|
|
58553
|
+
{
|
|
58554
|
+
"type": "string",
|
|
58555
|
+
"value": "ready"
|
|
58556
|
+
}
|
|
58557
|
+
]
|
|
58558
|
+
},
|
|
58559
|
+
"attribute": "state"
|
|
58560
|
+
},
|
|
58561
|
+
{
|
|
58562
|
+
"kind": "method",
|
|
58563
|
+
"name": "componentOnReady",
|
|
58564
|
+
"description": "Create a promise that resolves once component is fully loaded.",
|
|
58565
|
+
"docsTags": [
|
|
58566
|
+
{
|
|
58567
|
+
"name": "example",
|
|
58568
|
+
"text": "```js\nconst arcgisSliderSizeLegacy = document.querySelector(\"arcgis-slider-size-legacy\");\ndocument.body.append(arcgisSliderSizeLegacy);\nawait arcgisSliderSizeLegacy.componentOnReady();\nconsole.log(\"arcgis-slider-size-legacy is ready to go!\");\n```"
|
|
58569
|
+
}
|
|
58570
|
+
],
|
|
58571
|
+
"return": {
|
|
58572
|
+
"type": {
|
|
58573
|
+
"text": "Promise<this>",
|
|
58574
|
+
"references": [
|
|
58575
|
+
{
|
|
58576
|
+
"module": "lib/lib.es5.d.ts",
|
|
58577
|
+
"name": "Promise",
|
|
58578
|
+
"package": "typescript",
|
|
58579
|
+
"start": 0,
|
|
58580
|
+
"end": 7
|
|
58581
|
+
}
|
|
58582
|
+
]
|
|
58583
|
+
}
|
|
58584
|
+
},
|
|
58585
|
+
"inheritedFrom": {
|
|
58586
|
+
"name": "PublicLitElement",
|
|
58587
|
+
"module": "PublicLitElement",
|
|
58588
|
+
"package": "@arcgis/lumina"
|
|
58589
|
+
},
|
|
58590
|
+
"signature": "(): Promise<this>"
|
|
58591
|
+
},
|
|
58592
|
+
{
|
|
58593
|
+
"kind": "method",
|
|
58594
|
+
"name": "destroy",
|
|
58595
|
+
"description": "Permanently destroy the component.",
|
|
58596
|
+
"return": {
|
|
58597
|
+
"type": {
|
|
58598
|
+
"text": "Promise<void>",
|
|
58599
|
+
"references": [
|
|
58600
|
+
{
|
|
58601
|
+
"name": "Promise",
|
|
58602
|
+
"package": "typescript",
|
|
58603
|
+
"module": "lib/lib.es5.d.ts",
|
|
58604
|
+
"start": 0,
|
|
58605
|
+
"end": 7
|
|
58606
|
+
}
|
|
58607
|
+
]
|
|
58608
|
+
}
|
|
58609
|
+
},
|
|
58610
|
+
"signature": "(): Promise<void>"
|
|
58611
|
+
},
|
|
58612
|
+
{
|
|
58613
|
+
"kind": "method",
|
|
58614
|
+
"name": "updateFromRendererResult",
|
|
58615
|
+
"description": "A convenience function used to update the properties of a SizeSlider component instance from the\n[result](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#ContinuousRendererResult) of\nthe [createContinuousRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer)\nmethod. This method is used to configure an empty SizeSlider to be used with the layer data, and is useful for cases when the app allows the end user to switch data variables.\nNote that this method always expects `rendererResult` to be defined for the slider to function, but `histogramResult` is optional.",
|
|
58616
|
+
"docsTags": [
|
|
58617
|
+
{
|
|
58618
|
+
"name": "param",
|
|
58619
|
+
"text": "rendererResult - The result object from the [createContinuousRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer)\nmethod."
|
|
58620
|
+
},
|
|
58621
|
+
{
|
|
58622
|
+
"name": "param",
|
|
58623
|
+
"text": "histogramResult - The result histogram object from the [histogram()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram)\nmethod."
|
|
58624
|
+
},
|
|
58625
|
+
{
|
|
58626
|
+
"name": "example",
|
|
58627
|
+
"text": "```js\nconst rendererResult = await sizeRendererCreator.createContinuousRenderer(params);\n\nfeatureLayer.renderer = rendererResult.renderer;\n\nconst histogramResult = await histogram({\n ...params,\n numBins: 30,\n});\n\nsizeSlider.updateFromRendererResult(rendererResult, histogramResult);\n```"
|
|
58628
|
+
}
|
|
58629
|
+
],
|
|
58630
|
+
"parameters": [
|
|
58631
|
+
{
|
|
58632
|
+
"name": "rendererResult",
|
|
58633
|
+
"type": {
|
|
58634
|
+
"text": "ContinuousRendererResult",
|
|
58635
|
+
"references": [
|
|
58636
|
+
{
|
|
58637
|
+
"name": "ContinuousRendererResult",
|
|
58638
|
+
"package": "@arcgis/core",
|
|
58639
|
+
"module": "smartMapping/renderers/size.d.ts",
|
|
58640
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#ContinuousRendererResult",
|
|
58641
|
+
"start": 0,
|
|
58642
|
+
"end": 24
|
|
58643
|
+
}
|
|
58644
|
+
]
|
|
58645
|
+
}
|
|
58646
|
+
},
|
|
58647
|
+
{
|
|
58648
|
+
"name": "histogramResult",
|
|
58649
|
+
"optional": true,
|
|
58650
|
+
"type": {
|
|
58651
|
+
"text": "HistogramResult | undefined",
|
|
58652
|
+
"references": [
|
|
58653
|
+
{
|
|
58654
|
+
"name": "HistogramResult",
|
|
58655
|
+
"package": "@arcgis/core",
|
|
58656
|
+
"module": "smartMapping/statistics/types.d.ts",
|
|
58657
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-types.html#HistogramResult",
|
|
58658
|
+
"start": 0,
|
|
58659
|
+
"end": 15
|
|
58660
|
+
}
|
|
58661
|
+
],
|
|
58662
|
+
"values": [
|
|
58663
|
+
{
|
|
58664
|
+
"type": "HistogramResult"
|
|
58665
|
+
},
|
|
58666
|
+
{
|
|
58667
|
+
"type": "undefined"
|
|
58668
|
+
}
|
|
58669
|
+
]
|
|
58670
|
+
}
|
|
58671
|
+
}
|
|
58672
|
+
],
|
|
58673
|
+
"return": {
|
|
58674
|
+
"type": {
|
|
58675
|
+
"text": "void"
|
|
58676
|
+
}
|
|
58677
|
+
},
|
|
58678
|
+
"signature": "(rendererResult: ContinuousRendererResult, histogramResult?: HistogramResult): void"
|
|
58679
|
+
},
|
|
58680
|
+
{
|
|
58681
|
+
"kind": "method",
|
|
58682
|
+
"name": "updateVisualVariable",
|
|
58683
|
+
"description": "A convenience function used to update the [SizeVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html)\nto match the values of the [stops](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider.html#stops) on the slider.\nThe slider stops are automatically updated internally when the user drags a thumb slider.\n\nThis is particularly useful for Size visual variables that have a set\n[minDataValue](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#minDataValue) and\n[maxDataValue](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#minDataValue).\nThis method will properly reconstruct the variable to set on the renderer so it matches the stops on the slider.",
|
|
58684
|
+
"docsTags": [
|
|
58685
|
+
{
|
|
58686
|
+
"name": "param",
|
|
58687
|
+
"text": "sizeVariable - The size visual variable\nfrom the renderer to update to the set [stops](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider.html#stops) on the slider."
|
|
58688
|
+
},
|
|
58689
|
+
{
|
|
58690
|
+
"name": "returns",
|
|
58691
|
+
"text": "Returns the updated visual variable\nto set back on the renderer."
|
|
58692
|
+
},
|
|
58693
|
+
{
|
|
58694
|
+
"name": "example",
|
|
58695
|
+
"text": "```js\nconst renderer = featureLayer.renderer?.clone();\nconst sizeVariable = renderer.visualVariables[0] as __esri.SizeVariable;\nconst updatedSizeVariable = sizeSlider.updateVisualVariable(sizeVariable);\n```"
|
|
58696
|
+
}
|
|
58697
|
+
],
|
|
58698
|
+
"parameters": [
|
|
58699
|
+
{
|
|
58700
|
+
"name": "sizeVariable",
|
|
58701
|
+
"type": {
|
|
58702
|
+
"text": "SizeVariable",
|
|
58703
|
+
"references": [
|
|
58704
|
+
{
|
|
58705
|
+
"name": "SizeVariable",
|
|
58706
|
+
"package": "@arcgis/core",
|
|
58707
|
+
"module": "renderers/visualVariables/SizeVariable.d.ts",
|
|
58708
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html",
|
|
58709
|
+
"start": 0,
|
|
58710
|
+
"end": 12
|
|
58711
|
+
}
|
|
58712
|
+
]
|
|
58713
|
+
}
|
|
58714
|
+
}
|
|
58715
|
+
],
|
|
58716
|
+
"return": {
|
|
58717
|
+
"type": {
|
|
58718
|
+
"text": "SizeVariable | null | undefined",
|
|
58719
|
+
"references": [
|
|
58720
|
+
{
|
|
58721
|
+
"name": "SizeVariable",
|
|
58722
|
+
"package": "@arcgis/core",
|
|
58723
|
+
"module": "renderers/visualVariables/SizeVariable.d.ts",
|
|
58724
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html",
|
|
58725
|
+
"start": 0,
|
|
58726
|
+
"end": 12
|
|
58727
|
+
}
|
|
58728
|
+
],
|
|
58729
|
+
"values": [
|
|
58730
|
+
{
|
|
58731
|
+
"type": "SizeVariable"
|
|
58732
|
+
},
|
|
58733
|
+
{
|
|
58734
|
+
"type": "null"
|
|
58735
|
+
},
|
|
58736
|
+
{
|
|
58737
|
+
"type": "undefined"
|
|
58738
|
+
}
|
|
58739
|
+
]
|
|
58740
|
+
}
|
|
58741
|
+
},
|
|
58742
|
+
"signature": "(sizeVariable: __esri.SizeVariable): __esri.SizeVariable | nil"
|
|
58743
|
+
}
|
|
58744
|
+
],
|
|
58745
|
+
"attributes": [
|
|
58746
|
+
{
|
|
58747
|
+
"name": "auto-destroy-disabled",
|
|
58748
|
+
"description": "If true, the component will not be destroyed automatically when it is\ndisconnected from the document. This is useful when you want to move the\ncomponent to a different place on the page, or temporarily hide it. If this\nis set, make sure to call the [destroy](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-slider-size-legacy/#destroy) method when you are done to\nprevent memory leaks.",
|
|
58749
|
+
"type": {
|
|
58750
|
+
"text": "boolean",
|
|
58751
|
+
"values": [
|
|
58752
|
+
{
|
|
58753
|
+
"type": "boolean"
|
|
58754
|
+
}
|
|
58755
|
+
]
|
|
58756
|
+
},
|
|
58757
|
+
"default": "false",
|
|
58758
|
+
"fieldName": "autoDestroyDisabled"
|
|
58759
|
+
},
|
|
58760
|
+
{
|
|
58761
|
+
"name": "max",
|
|
58762
|
+
"description": "The maximum value or upper bound of the slider. Once the slider has rendered with the [updateFromRendererResult](#updateFromRendererResult) method,\nthe user may change this property by selecting the label containing the max value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the size variable of the appropriate renderer.",
|
|
58763
|
+
"type": {
|
|
58764
|
+
"text": "number",
|
|
58765
|
+
"values": [
|
|
58766
|
+
{
|
|
58767
|
+
"type": "number"
|
|
58768
|
+
}
|
|
58769
|
+
]
|
|
58770
|
+
},
|
|
58771
|
+
"fieldName": "max"
|
|
58772
|
+
},
|
|
58773
|
+
{
|
|
58774
|
+
"name": "min",
|
|
58775
|
+
"description": "The minimum value or lower bound of the slider. Once the slider has rendered with the [updateFromRendererResult](#updateFromRendererResult) method,\nthe user may change this property by selecting the label containing the min value on the slider UI. It is the responsibility of the app developer\nto set up event listeners that update the size variable of the appropriate renderer.",
|
|
58776
|
+
"type": {
|
|
58777
|
+
"text": "number",
|
|
58778
|
+
"values": [
|
|
58779
|
+
{
|
|
58780
|
+
"type": "number"
|
|
58781
|
+
}
|
|
58782
|
+
]
|
|
58783
|
+
},
|
|
58784
|
+
"fieldName": "min"
|
|
58785
|
+
},
|
|
58786
|
+
{
|
|
58787
|
+
"name": "precision",
|
|
58788
|
+
"description": "Defines how slider thumb values should be rounded. This number indicates the number\nof decimal places slider thumb _values_ should round to when they have been moved.\n\nKeep in mind this property rounds thumb [values](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderViewModel.html#values) and shouldn't be used exclusively\nfor formatting purposes.",
|
|
58789
|
+
"type": {
|
|
58790
|
+
"text": "number",
|
|
58791
|
+
"values": [
|
|
58792
|
+
{
|
|
58793
|
+
"type": "number"
|
|
58794
|
+
}
|
|
58795
|
+
]
|
|
58796
|
+
},
|
|
58797
|
+
"default": "4",
|
|
58798
|
+
"fieldName": "precision"
|
|
58799
|
+
},
|
|
58800
|
+
{
|
|
58801
|
+
"name": "reference-element",
|
|
58802
|
+
"description": "By assigning the `id` attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.",
|
|
58803
|
+
"type": {
|
|
58804
|
+
"text": "string",
|
|
58805
|
+
"values": [
|
|
58806
|
+
{
|
|
58807
|
+
"type": "string"
|
|
58808
|
+
}
|
|
58809
|
+
]
|
|
58810
|
+
},
|
|
58811
|
+
"fieldName": "referenceElement"
|
|
58812
|
+
},
|
|
58813
|
+
{
|
|
58814
|
+
"name": "state",
|
|
58815
|
+
"description": "The current state of the component.",
|
|
58816
|
+
"type": {
|
|
58817
|
+
"text": "\"disabled\" | \"ready\"",
|
|
58818
|
+
"values": [
|
|
58819
|
+
{
|
|
58820
|
+
"type": "string",
|
|
58821
|
+
"value": "disabled"
|
|
58822
|
+
},
|
|
58823
|
+
{
|
|
58824
|
+
"type": "string",
|
|
58825
|
+
"value": "ready"
|
|
58826
|
+
}
|
|
58827
|
+
]
|
|
58828
|
+
},
|
|
58829
|
+
"fieldName": "state"
|
|
58830
|
+
}
|
|
58831
|
+
],
|
|
58832
|
+
"events": [
|
|
58833
|
+
{
|
|
58834
|
+
"name": "arcgisPropertyChange",
|
|
58835
|
+
"description": "Emitted when the value of a property is changed. Use this to listen to changes to properties.",
|
|
58836
|
+
"type": {
|
|
58837
|
+
"text": "{ name: \"state\" | \"max\" | \"min\" | \"precision\"; }"
|
|
58838
|
+
}
|
|
58839
|
+
},
|
|
58840
|
+
{
|
|
58841
|
+
"name": "arcgisReady",
|
|
58842
|
+
"description": "Emitted when the component associated with a map or scene view is ready to be interacted with.",
|
|
58843
|
+
"type": {
|
|
58844
|
+
"text": "void"
|
|
58845
|
+
}
|
|
58846
|
+
},
|
|
58847
|
+
{
|
|
58848
|
+
"name": "arcgisThumbChange",
|
|
58849
|
+
"description": "Fires when a user changes the value of a thumb via the arrow keys or by keyboard editing of the label on the slider.",
|
|
58850
|
+
"type": {
|
|
58851
|
+
"text": "ThumbChangeEvent",
|
|
58852
|
+
"references": [
|
|
58853
|
+
{
|
|
58854
|
+
"name": "ThumbChangeEvent",
|
|
58855
|
+
"package": "@arcgis/core",
|
|
58856
|
+
"module": "widgets/Slider/types.d.ts",
|
|
58857
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-types.html#ThumbChangeEvent",
|
|
58858
|
+
"start": 0,
|
|
58859
|
+
"end": 16
|
|
58860
|
+
}
|
|
58861
|
+
]
|
|
58862
|
+
}
|
|
58863
|
+
},
|
|
58864
|
+
{
|
|
58865
|
+
"name": "arcgisThumbDrag",
|
|
58866
|
+
"description": "Fires when a user drags a thumb on the component.",
|
|
58867
|
+
"type": {
|
|
58868
|
+
"text": "ThumbDragEvent",
|
|
58869
|
+
"references": [
|
|
58870
|
+
{
|
|
58871
|
+
"name": "ThumbDragEvent",
|
|
58872
|
+
"package": "@arcgis/core",
|
|
58873
|
+
"module": "widgets/Slider/types.d.ts",
|
|
58874
|
+
"viewUrl": "https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-types.html#ThumbDragEvent",
|
|
58875
|
+
"start": 0,
|
|
58876
|
+
"end": 14
|
|
58877
|
+
}
|
|
58878
|
+
]
|
|
58879
|
+
}
|
|
58880
|
+
}
|
|
58881
|
+
],
|
|
58882
|
+
"importPath": "components/arcgis-slider-size-legacy"
|
|
58883
|
+
}
|
|
58884
|
+
],
|
|
58885
|
+
"exports": [
|
|
58886
|
+
{
|
|
58887
|
+
"kind": "custom-element-definition",
|
|
58888
|
+
"name": "arcgis-slider-size-legacy",
|
|
58889
|
+
"declaration": {
|
|
58890
|
+
"name": "ArcgisSliderSizeLegacy"
|
|
58891
|
+
}
|
|
58892
|
+
}
|
|
58893
|
+
]
|
|
58894
|
+
},
|
|
54663
58895
|
{
|
|
54664
58896
|
"kind": "javascript-module",
|
|
54665
58897
|
"path": "components/arcgis-color-select",
|
|
@@ -57409,7 +61641,7 @@
|
|
|
57409
61641
|
{
|
|
57410
61642
|
"name": "settings",
|
|
57411
61643
|
"type": {
|
|
57412
|
-
"text": "{\n
|
|
61644
|
+
"text": "{\n stops?: Array<string | number | Date> | null | undefined;\n fullTimeExtent?: TimeExtentProperties | null | undefined;\n loop?: boolean | undefined;\n}"
|
|
57413
61645
|
}
|
|
57414
61646
|
}
|
|
57415
61647
|
],
|