interfaces.d.ts 4.6 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315723167231772318723197232072321723227232372324723257232672327723287232972330723317233272333723347233572336723377233872339723407234172342723437234472345723467234772348723497235072351723527235372354723557235672357723587235972360723617236272363723647236572366723677236872369723707237172372723737237472375723767237772378723797238072381723827238372384723857238672387723887238972390723917239272393723947239572396723977239872399724007240172402724037240472405724067240772408724097241072411724127241372414724157241672417724187241972420724217242272423724247242572426724277242872429724307243172432724337243472435724367243772438724397244072441724427244372444724457244672447724487244972450724517245272453724547245572456724577245872459724607246172462724637246472465724667246772468724697247072471724727247372474724757247672477724787247972480724817248272483724847248572486724877248872489724907249172492724937249472495724967249772498724997250072501725027250372504725057250672507725087250972510725117251272513725147251572516725177251872519725207252172522725237252472525725267252772528725297253072531725327253372534725357253672537725387253972540725417254272543725447254572546725477254872549725507255172552725537255472555725567255772558725597256072561725627256372564725657256672567725687256972570725717257272573725747257572576725777257872579725807258172582725837258472585725867258772588725897259072591725927259372594725957259672597725987259972600726017260272603726047260572606726077260872609726107261172612726137261472615726167261772618726197262072621726227262372624726257262672627726287262972630726317263272633726347263572636726377263872639726407264172642726437264472645726467264772648726497265072651726527265372654726557265672657726587265972660726617266272663726647266572666726677266872669726707267172672726737267472675726767267772678726797268072681726827268372684726857268672687726887268972690726917269272693726947269572696726977269872699727007270172702727037270472705727067270772708727097271072711727127271372714727157271672717727187271972720727217272272723727247272572726727277272872729727307273172732727337273472735727367273772738727397274072741727427274372744727457274672747727487274972750727517275272753727547275572756727577275872759727607276172762727637276472765727667276772768727697277072771727727277372774727757277672777727787277972780727817278272783727847278572786727877278872789727907279172792727937279472795727967279772798727997280072801728027280372804728057280672807728087280972810728117281272813728147281572816728177281872819728207282172822728237282472825728267282772828728297283072831728327283372834728357283672837728387283972840728417284272843728447284572846728477284872849728507285172852728537285472855728567285772858728597286072861728627286372864728657286672867728687286972870728717287272873728747287572876728777287872879728807288172882728837288472885728867288772888728897289072891728927289372894728957289672897728987289972900729017290272903729047290572906729077290872909729107291172912729137291472915729167291772918729197292072921729227292372924729257292672927729287292972930729317293272933729347293572936729377293872939729407294172942729437294472945729467294772948729497295072951729527295372954729557295672957729587295972960729617296272963729647296572966729677296872969729707297172972729737297472975729767297772978729797298072981729827298372984729857298672987729887298972990729917299272993729947299572996729977299872999730007300173002730037300473005730067300773008730097301073011730127301373014730157301673017730187301973020730217302273023730247302573026730277302873029730307303173032730337303473035730367303773038730397304073041730427304373044730457304673047730487304973050730517305273053730547305573056730577305873059730607306173062730637306473065730667306773068730697307073071730727307373074730757307673077730787307973080730817308273083730847308573086730877308873089730907309173092730937309473095730967309773098730997310073101731027310373104731057310673107731087310973110731117311273113731147311573116731177311873119731207312173122731237312473125731267312773128731297313073131731327313373134731357313673137731387313973140731417314273143731447314573146731477314873149731507315173152731537315473155731567315773158731597316073161731627316373164731657316673167731687316973170731717317273173731747317573176731777317873179731807318173182731837318473185731867318773188731897319073191731927319373194731957319673197731987319973200732017320273203732047320573206732077320873209732107321173212732137321473215732167321773218732197322073221732227322373224732257322673227732287322973230732317323273233732347323573236732377323873239732407324173242732437324473245732467324773248732497325073251732527325373254732557325673257732587325973260732617326273263732647326573266732677326873269732707327173272732737327473275732767327773278732797328073281732827328373284732857328673287732887328973290732917329273293732947329573296732977329873299733007330173302733037330473305733067330773308733097331073311733127331373314733157331673317733187331973320733217332273323733247332573326733277332873329733307333173332733337333473335733367333773338733397334073341733427334373344733457334673347733487334973350733517335273353733547335573356733577335873359733607336173362733637336473365733667336773368733697337073371733727337373374733757337673377733787337973380733817338273383733847338573386733877338873389733907339173392733937339473395733967339773398733997340073401734027340373404734057340673407734087340973410734117341273413734147341573416734177341873419734207342173422734237342473425734267342773428734297343073431734327343373434734357343673437734387343973440734417344273443734447344573446734477344873449734507345173452734537345473455734567345773458734597346073461734627346373464734657346673467734687346973470734717347273473734747347573476734777347873479734807348173482734837348473485734867348773488734897349073491734927349373494734957349673497734987349973500735017350273503735047350573506735077350873509735107351173512735137351473515735167351773518735197352073521735227352373524735257352673527735287352973530735317353273533735347353573536735377353873539735407354173542735437354473545735467354773548735497355073551735527355373554735557355673557735587355973560735617356273563735647356573566735677356873569735707357173572735737357473575735767357773578735797358073581735827358373584735857358673587735887358973590735917359273593735947359573596735977359873599736007360173602736037360473605736067360773608736097361073611736127361373614736157361673617736187361973620736217362273623736247362573626736277362873629736307363173632736337363473635736367363773638736397364073641736427364373644736457364673647736487364973650736517365273653736547365573656736577365873659736607366173662736637366473665736667366773668736697367073671736727367373674736757367673677736787367973680736817368273683736847368573686736877368873689736907369173692736937369473695736967369773698736997370073701737027370373704737057370673707737087370973710737117371273713737147371573716737177371873719737207372173722737237372473725737267372773728737297373073731737327373373734737357373673737737387373973740737417374273743737447374573746737477374873749737507375173752737537375473755737567375773758737597376073761737627376373764737657376673767737687376973770737717377273773737747377573776737777377873779737807378173782737837378473785737867378773788737897379073791737927379373794737957379673797737987379973800738017380273803738047380573806738077380873809738107381173812738137381473815738167381773818738197382073821738227382373824738257382673827738287382973830738317383273833738347383573836738377383873839738407384173842738437384473845738467384773848738497385073851738527385373854738557385673857738587385973860738617386273863738647386573866738677386873869738707387173872738737387473875738767387773878738797388073881738827388373884738857388673887738887388973890738917389273893738947389573896738977389873899739007390173902739037390473905739067390773908739097391073911739127391373914739157391673917739187391973920739217392273923739247392573926739277392873929739307393173932739337393473935739367393773938739397394073941739427394373944739457394673947739487394973950739517395273953739547395573956739577395873959739607396173962739637396473965739667396773968739697397073971739727397373974739757397673977739787397973980739817398273983739847398573986739877398873989739907399173992739937399473995739967399773998739997400074001740027400374004740057400674007740087400974010740117401274013740147401574016740177401874019740207402174022740237402474025740267402774028740297403074031740327403374034740357403674037740387403974040740417404274043740447404574046740477404874049740507405174052740537405474055740567405774058740597406074061740627406374064740657406674067740687406974070740717407274073740747407574076740777407874079740807408174082740837408474085740867408774088740897409074091740927409374094740957409674097740987409974100741017410274103741047410574106741077410874109741107411174112741137411474115741167411774118741197412074121741227412374124741257412674127741287412974130741317413274133741347413574136741377413874139741407414174142741437414474145741467414774148741497415074151741527415374154741557415674157741587415974160741617416274163741647416574166741677416874169741707417174172741737417474175741767417774178741797418074181741827418374184741857418674187741887418974190741917419274193741947419574196741977419874199742007420174202742037420474205742067420774208742097421074211742127421374214742157421674217742187421974220742217422274223742247422574226742277422874229742307423174232742337423474235742367423774238742397424074241742427424374244742457424674247742487424974250742517425274253742547425574256742577425874259742607426174262742637426474265742667426774268742697427074271742727427374274742757427674277742787427974280742817428274283742847428574286742877428874289742907429174292742937429474295742967429774298742997430074301743027430374304743057430674307743087430974310743117431274313743147431574316743177431874319743207432174322743237432474325743267432774328743297433074331743327433374334743357433674337743387433974340743417434274343743447434574346743477434874349743507435174352743537435474355743567435774358743597436074361743627436374364743657436674367743687436974370743717437274373743747437574376743777437874379743807438174382743837438474385743867438774388743897439074391743927439374394743957439674397743987439974400744017440274403744047440574406744077440874409744107441174412744137441474415744167441774418744197442074421744227442374424744257442674427744287442974430744317443274433744347443574436744377443874439744407444174442744437444474445744467444774448744497445074451744527445374454744557445674457744587445974460744617446274463744647446574466744677446874469744707447174472744737447474475744767447774478744797448074481744827448374484744857448674487744887448974490744917449274493744947449574496744977449874499745007450174502745037450474505745067450774508745097451074511745127451374514745157451674517745187451974520745217452274523745247452574526745277452874529745307453174532745337453474535745367453774538745397454074541745427454374544745457454674547745487454974550745517455274553745547455574556745577455874559745607456174562745637456474565745667456774568745697457074571745727457374574745757457674577745787457974580745817458274583745847458574586745877458874589745907459174592745937459474595745967459774598745997460074601746027460374604746057460674607746087460974610746117461274613746147461574616746177461874619746207462174622746237462474625746267462774628746297463074631746327463374634746357463674637746387463974640746417464274643746447464574646746477464874649746507465174652746537465474655746567465774658746597466074661746627466374664746657466674667746687466974670746717467274673746747467574676746777467874679746807468174682746837468474685746867468774688746897469074691746927469374694746957469674697746987469974700747017470274703747047470574706747077470874709747107471174712747137471474715747167471774718747197472074721747227472374724747257472674727747287472974730747317473274733747347473574736747377473874739747407474174742747437474474745747467474774748747497475074751747527475374754747557475674757747587475974760747617476274763747647476574766747677476874769747707477174772747737477474775747767477774778747797478074781747827478374784747857478674787747887478974790747917479274793747947479574796747977479874799748007480174802748037480474805748067480774808748097481074811748127481374814748157481674817748187481974820748217482274823748247482574826748277482874829748307483174832748337483474835748367483774838748397484074841748427484374844748457484674847748487484974850748517485274853748547485574856748577485874859748607486174862748637486474865748667486774868748697487074871748727487374874748757487674877748787487974880748817488274883748847488574886748877488874889748907489174892748937489474895748967489774898748997490074901749027490374904749057490674907749087490974910749117491274913749147491574916749177491874919749207492174922749237492474925749267492774928749297493074931749327493374934749357493674937749387493974940749417494274943749447494574946749477494874949749507495174952749537495474955749567495774958749597496074961749627496374964749657496674967749687496974970749717497274973749747497574976749777497874979749807498174982749837498474985749867498774988749897499074991749927499374994749957499674997749987499975000750017500275003750047500575006750077500875009750107501175012750137501475015750167501775018750197502075021750227502375024750257502675027750287502975030750317503275033750347503575036750377503875039750407504175042750437504475045750467504775048750497505075051750527505375054750557505675057750587505975060750617506275063750647506575066750677506875069750707507175072750737507475075750767507775078750797508075081750827508375084750857508675087750887508975090750917509275093750947509575096750977509875099751007510175102751037510475105751067510775108751097511075111751127511375114751157511675117751187511975120751217512275123751247512575126751277512875129751307513175132751337513475135751367513775138751397514075141751427514375144751457514675147751487514975150751517515275153751547515575156751577515875159751607516175162751637516475165751667516775168751697517075171751727517375174751757517675177751787517975180751817518275183751847518575186751877518875189751907519175192751937519475195751967519775198751997520075201752027520375204752057520675207752087520975210752117521275213752147521575216752177521875219752207522175222752237522475225752267522775228752297523075231752327523375234752357523675237752387523975240752417524275243752447524575246752477524875249752507525175252752537525475255752567525775258752597526075261752627526375264752657526675267752687526975270752717527275273752747527575276752777527875279752807528175282752837528475285752867528775288752897529075291752927529375294752957529675297752987529975300753017530275303753047530575306753077530875309753107531175312753137531475315753167531775318753197532075321753227532375324753257532675327753287532975330753317533275333753347533575336753377533875339753407534175342753437534475345753467534775348753497535075351753527535375354753557535675357753587535975360753617536275363753647536575366753677536875369753707537175372753737537475375753767537775378753797538075381753827538375384753857538675387753887538975390753917539275393753947539575396753977539875399754007540175402754037540475405754067540775408754097541075411754127541375414754157541675417754187541975420754217542275423754247542575426754277542875429754307543175432754337543475435754367543775438754397544075441754427544375444754457544675447754487544975450754517545275453754547545575456754577545875459754607546175462754637546475465754667546775468754697547075471754727547375474754757547675477754787547975480754817548275483754847548575486754877548875489754907549175492754937549475495754967549775498754997550075501755027550375504755057550675507755087550975510755117551275513755147551575516755177551875519755207552175522755237552475525755267552775528755297553075531755327553375534755357553675537755387553975540755417554275543755447554575546755477554875549755507555175552755537555475555755567555775558755597556075561755627556375564755657556675567755687556975570755717557275573755747557575576755777557875579755807558175582755837558475585755867558775588755897559075591755927559375594755957559675597755987559975600756017560275603756047560575606756077560875609756107561175612756137561475615756167561775618756197562075621756227562375624756257562675627756287562975630756317563275633756347563575636756377563875639756407564175642756437564475645756467564775648756497565075651756527565375654756557565675657756587565975660756617566275663756647566575666756677566875669756707567175672756737567475675756767567775678756797568075681756827568375684756857568675687756887568975690756917569275693756947569575696756977569875699757007570175702757037570475705757067570775708757097571075711757127571375714757157571675717757187571975720757217572275723757247572575726757277572875729757307573175732757337573475735757367573775738757397574075741757427574375744757457574675747757487574975750757517575275753757547575575756757577575875759757607576175762757637576475765757667576775768757697577075771757727577375774757757577675777757787577975780757817578275783757847578575786757877578875789757907579175792757937579475795757967579775798757997580075801758027580375804758057580675807758087580975810758117581275813758147581575816758177581875819758207582175822758237582475825758267582775828758297583075831758327583375834758357583675837758387583975840758417584275843758447584575846758477584875849758507585175852758537585475855758567585775858758597586075861758627586375864758657586675867758687586975870758717587275873758747587575876758777587875879758807588175882758837588475885758867588775888758897589075891758927589375894758957589675897758987589975900759017590275903759047590575906759077590875909759107591175912759137591475915759167591775918759197592075921759227592375924759257592675927759287592975930759317593275933759347593575936759377593875939759407594175942759437594475945759467594775948759497595075951759527595375954759557595675957759587595975960759617596275963759647596575966759677596875969759707597175972759737597475975759767597775978759797598075981759827598375984759857598675987759887598975990759917599275993759947599575996759977599875999760007600176002760037600476005760067600776008760097601076011760127601376014760157601676017760187601976020760217602276023760247602576026760277602876029760307603176032760337603476035760367603776038760397604076041760427604376044760457604676047760487604976050760517605276053760547605576056760577605876059760607606176062760637606476065760667606776068760697607076071760727607376074760757607676077760787607976080760817608276083760847608576086760877608876089760907609176092760937609476095760967609776098760997610076101761027610376104761057610676107761087610976110761117611276113761147611576116761177611876119761207612176122761237612476125761267612776128761297613076131761327613376134761357613676137761387613976140761417614276143761447614576146761477614876149761507615176152761537615476155761567615776158761597616076161761627616376164761657616676167761687616976170761717617276173761747617576176761777617876179761807618176182761837618476185761867618776188761897619076191761927619376194761957619676197761987619976200762017620276203762047620576206762077620876209762107621176212762137621476215762167621776218762197622076221762227622376224762257622676227762287622976230762317623276233762347623576236762377623876239762407624176242762437624476245762467624776248762497625076251762527625376254762557625676257762587625976260762617626276263762647626576266762677626876269762707627176272762737627476275762767627776278762797628076281762827628376284762857628676287762887628976290762917629276293762947629576296762977629876299763007630176302763037630476305763067630776308763097631076311763127631376314763157631676317763187631976320763217632276323763247632576326763277632876329763307633176332763337633476335763367633776338763397634076341763427634376344763457634676347763487634976350763517635276353763547635576356763577635876359763607636176362763637636476365763667636776368763697637076371763727637376374763757637676377763787637976380763817638276383763847638576386763877638876389763907639176392763937639476395763967639776398763997640076401764027640376404764057640676407764087640976410764117641276413764147641576416764177641876419764207642176422764237642476425764267642776428764297643076431764327643376434764357643676437764387643976440764417644276443764447644576446764477644876449764507645176452764537645476455764567645776458764597646076461764627646376464764657646676467764687646976470764717647276473764747647576476764777647876479764807648176482764837648476485764867648776488764897649076491764927649376494764957649676497764987649976500765017650276503765047650576506765077650876509765107651176512765137651476515765167651776518765197652076521765227652376524765257652676527765287652976530765317653276533765347653576536765377653876539765407654176542765437654476545765467654776548765497655076551765527655376554765557655676557765587655976560765617656276563765647656576566765677656876569765707657176572765737657476575765767657776578765797658076581765827658376584765857658676587765887658976590765917659276593765947659576596765977659876599766007660176602766037660476605766067660776608766097661076611766127661376614766157661676617766187661976620766217662276623766247662576626766277662876629766307663176632766337663476635766367663776638766397664076641766427664376644766457664676647766487664976650766517665276653766547665576656766577665876659766607666176662766637666476665766667666776668766697667076671766727667376674766757667676677766787667976680766817668276683766847668576686766877668876689766907669176692766937669476695766967669776698766997670076701767027670376704767057670676707767087670976710767117671276713767147671576716767177671876719767207672176722767237672476725767267672776728767297673076731767327673376734767357673676737767387673976740767417674276743767447674576746767477674876749767507675176752767537675476755767567675776758767597676076761767627676376764767657676676767767687676976770767717677276773767747677576776767777677876779767807678176782767837678476785767867678776788767897679076791767927679376794767957679676797767987679976800768017680276803768047680576806768077680876809768107681176812768137681476815768167681776818768197682076821768227682376824768257682676827768287682976830768317683276833768347683576836768377683876839768407684176842768437684476845768467684776848768497685076851768527685376854768557685676857768587685976860768617686276863768647686576866768677686876869768707687176872768737687476875768767687776878768797688076881768827688376884768857688676887768887688976890768917689276893768947689576896768977689876899769007690176902769037690476905769067690776908769097691076911769127691376914769157691676917769187691976920769217692276923769247692576926769277692876929769307693176932769337693476935769367693776938769397694076941769427694376944769457694676947769487694976950769517695276953769547695576956769577695876959769607696176962769637696476965769667696776968769697697076971769727697376974769757697676977769787697976980769817698276983769847698576986769877698876989769907699176992769937699476995769967699776998769997700077001770027700377004770057700677007770087700977010770117701277013770147701577016770177701877019770207702177022770237702477025770267702777028770297703077031770327703377034770357703677037770387703977040770417704277043770447704577046770477704877049770507705177052770537705477055770567705777058770597706077061770627706377064770657706677067770687706977070770717707277073770747707577076770777707877079770807708177082770837708477085770867708777088770897709077091770927709377094770957709677097770987709977100771017710277103771047710577106771077710877109771107711177112771137711477115771167711777118771197712077121771227712377124771257712677127771287712977130771317713277133771347713577136771377713877139771407714177142771437714477145771467714777148771497715077151771527715377154771557715677157771587715977160771617716277163771647716577166771677716877169771707717177172771737717477175771767717777178771797718077181771827718377184771857718677187771887718977190771917719277193771947719577196771977719877199772007720177202772037720477205772067720777208772097721077211772127721377214772157721677217772187721977220772217722277223772247722577226772277722877229772307723177232772337723477235772367723777238772397724077241772427724377244772457724677247772487724977250772517725277253772547725577256772577725877259772607726177262772637726477265772667726777268772697727077271772727727377274772757727677277772787727977280772817728277283772847728577286772877728877289772907729177292772937729477295772967729777298772997730077301773027730377304773057730677307773087730977310773117731277313773147731577316773177731877319773207732177322773237732477325773267732777328773297733077331773327733377334773357733677337773387733977340773417734277343773447734577346773477734877349773507735177352773537735477355773567735777358773597736077361773627736377364773657736677367773687736977370773717737277373773747737577376773777737877379773807738177382773837738477385773867738777388773897739077391773927739377394773957739677397773987739977400774017740277403774047740577406774077740877409774107741177412774137741477415774167741777418774197742077421774227742377424774257742677427774287742977430774317743277433774347743577436774377743877439774407744177442774437744477445774467744777448774497745077451774527745377454774557745677457774587745977460774617746277463774647746577466774677746877469774707747177472774737747477475774767747777478774797748077481774827748377484774857748677487774887748977490774917749277493774947749577496774977749877499775007750177502775037750477505775067750777508775097751077511775127751377514775157751677517775187751977520775217752277523775247752577526775277752877529775307753177532775337753477535775367753777538775397754077541775427754377544775457754677547775487754977550775517755277553775547755577556775577755877559775607756177562775637756477565775667756777568775697757077571775727757377574775757757677577775787757977580775817758277583775847758577586775877758877589775907759177592775937759477595775967759777598775997760077601776027760377604776057760677607776087760977610776117761277613776147761577616776177761877619776207762177622776237762477625776267762777628776297763077631776327763377634776357763677637776387763977640776417764277643776447764577646776477764877649776507765177652776537765477655776567765777658776597766077661776627766377664776657766677667776687766977670776717767277673776747767577676776777767877679776807768177682776837768477685776867768777688776897769077691776927769377694776957769677697776987769977700777017770277703777047770577706777077770877709777107771177712777137771477715777167771777718777197772077721777227772377724777257772677727777287772977730777317773277733777347773577736777377773877739777407774177742777437774477745777467774777748777497775077751777527775377754777557775677757777587775977760777617776277763777647776577766777677776877769777707777177772777737777477775777767777777778777797778077781777827778377784777857778677787777887778977790777917779277793777947779577796777977779877799778007780177802778037780477805778067780777808778097781077811778127781377814778157781677817778187781977820778217782277823778247782577826778277782877829778307783177832778337783477835778367783777838778397784077841778427784377844778457784677847778487784977850778517785277853778547785577856778577785877859778607786177862778637786477865778667786777868778697787077871778727787377874778757787677877778787787977880778817788277883778847788577886778877788877889778907789177892778937789477895778967789777898778997790077901779027790377904779057790677907779087790977910779117791277913779147791577916779177791877919779207792177922779237792477925779267792777928779297793077931779327793377934779357793677937779387793977940779417794277943779447794577946779477794877949779507795177952779537795477955779567795777958779597796077961779627796377964779657796677967779687796977970779717797277973779747797577976779777797877979779807798177982779837798477985779867798777988779897799077991779927799377994779957799677997779987799978000780017800278003780047800578006780077800878009780107801178012780137801478015780167801778018780197802078021780227802378024780257802678027780287802978030780317803278033780347803578036780377803878039780407804178042780437804478045780467804778048780497805078051780527805378054780557805678057780587805978060780617806278063780647806578066780677806878069780707807178072780737807478075780767807778078780797808078081780827808378084780857808678087780887808978090780917809278093780947809578096780977809878099781007810178102781037810478105781067810778108781097811078111781127811378114781157811678117781187811978120781217812278123781247812578126781277812878129781307813178132781337813478135781367813778138781397814078141781427814378144781457814678147781487814978150781517815278153781547815578156781577815878159781607816178162781637816478165781667816778168781697817078171781727817378174781757817678177781787817978180781817818278183781847818578186781877818878189781907819178192781937819478195781967819778198781997820078201782027820378204782057820678207782087820978210782117821278213782147821578216782177821878219782207822178222782237822478225782267822778228782297823078231782327823378234782357823678237782387823978240782417824278243782447824578246782477824878249782507825178252782537825478255782567825778258782597826078261782627826378264782657826678267782687826978270782717827278273782747827578276782777827878279782807828178282782837828478285782867828778288782897829078291782927829378294782957829678297782987829978300783017830278303783047830578306783077830878309783107831178312783137831478315783167831778318783197832078321783227832378324783257832678327783287832978330783317833278333783347833578336783377833878339783407834178342783437834478345783467834778348783497835078351783527835378354783557835678357783587835978360783617836278363783647836578366783677836878369783707837178372783737837478375783767837778378783797838078381783827838378384783857838678387783887838978390783917839278393783947839578396783977839878399784007840178402784037840478405784067840778408784097841078411784127841378414784157841678417784187841978420784217842278423784247842578426784277842878429784307843178432784337843478435784367843778438784397844078441784427844378444784457844678447784487844978450784517845278453784547845578456784577845878459784607846178462784637846478465784667846778468784697847078471784727847378474784757847678477784787847978480784817848278483784847848578486784877848878489784907849178492784937849478495784967849778498784997850078501785027850378504785057850678507785087850978510785117851278513785147851578516785177851878519785207852178522785237852478525785267852778528785297853078531785327853378534785357853678537785387853978540785417854278543785447854578546785477854878549785507855178552785537855478555785567855778558785597856078561785627856378564785657856678567785687856978570785717857278573785747857578576785777857878579785807858178582785837858478585785867858778588785897859078591785927859378594785957859678597785987859978600786017860278603786047860578606786077860878609786107861178612786137861478615786167861778618786197862078621786227862378624786257862678627786287862978630786317863278633786347863578636786377863878639786407864178642786437864478645786467864778648786497865078651786527865378654786557865678657786587865978660786617866278663786647866578666786677866878669786707867178672786737867478675786767867778678786797868078681786827868378684786857868678687786887868978690786917869278693786947869578696786977869878699787007870178702787037870478705787067870778708787097871078711787127871378714787157871678717787187871978720787217872278723787247872578726787277872878729787307873178732787337873478735787367873778738787397874078741787427874378744787457874678747787487874978750787517875278753787547875578756787577875878759787607876178762787637876478765787667876778768787697877078771787727877378774787757877678777787787877978780787817878278783787847878578786787877878878789787907879178792787937879478795787967879778798787997880078801788027880378804788057880678807788087880978810788117881278813788147881578816788177881878819788207882178822788237882478825788267882778828788297883078831788327883378834788357883678837788387883978840788417884278843788447884578846788477884878849788507885178852788537885478855788567885778858788597886078861788627886378864788657886678867788687886978870788717887278873788747887578876788777887878879788807888178882788837888478885788867888778888788897889078891788927889378894788957889678897788987889978900789017890278903789047890578906789077890878909789107891178912789137891478915789167891778918789197892078921789227892378924789257892678927789287892978930789317893278933789347893578936789377893878939789407894178942789437894478945789467894778948789497895078951789527895378954789557895678957789587895978960789617896278963789647896578966789677896878969789707897178972789737897478975789767897778978789797898078981789827898378984789857898678987789887898978990789917899278993789947899578996789977899878999790007900179002790037900479005790067900779008790097901079011790127901379014790157901679017790187901979020790217902279023790247902579026790277902879029790307903179032790337903479035790367903779038790397904079041790427904379044790457904679047790487904979050790517905279053790547905579056790577905879059790607906179062790637906479065790667906779068790697907079071790727907379074790757907679077790787907979080790817908279083790847908579086790877908879089790907909179092790937909479095790967909779098790997910079101791027910379104791057910679107791087910979110791117911279113791147911579116791177911879119791207912179122791237912479125791267912779128791297913079131791327913379134791357913679137791387913979140791417914279143791447914579146791477914879149791507915179152791537915479155791567915779158791597916079161791627916379164791657916679167791687916979170791717917279173791747917579176791777917879179791807918179182791837918479185791867918779188791897919079191791927919379194791957919679197791987919979200792017920279203792047920579206792077920879209792107921179212792137921479215792167921779218792197922079221792227922379224792257922679227792287922979230792317923279233792347923579236792377923879239792407924179242792437924479245792467924779248792497925079251792527925379254792557925679257792587925979260792617926279263792647926579266792677926879269792707927179272792737927479275792767927779278792797928079281792827928379284792857928679287792887928979290792917929279293792947929579296792977929879299793007930179302793037930479305793067930779308793097931079311793127931379314793157931679317793187931979320793217932279323793247932579326793277932879329793307933179332793337933479335793367933779338793397934079341793427934379344793457934679347793487934979350793517935279353793547935579356793577935879359793607936179362793637936479365793667936779368793697937079371793727937379374793757937679377793787937979380793817938279383793847938579386793877938879389793907939179392793937939479395793967939779398793997940079401794027940379404794057940679407794087940979410794117941279413794147941579416794177941879419794207942179422794237942479425794267942779428794297943079431794327943379434794357943679437794387943979440794417944279443794447944579446794477944879449794507945179452794537945479455794567945779458794597946079461794627946379464794657946679467794687946979470794717947279473794747947579476794777947879479794807948179482794837948479485794867948779488794897949079491794927949379494794957949679497794987949979500795017950279503795047950579506795077950879509795107951179512795137951479515795167951779518795197952079521795227952379524795257952679527795287952979530795317953279533795347953579536795377953879539795407954179542795437954479545795467954779548795497955079551795527955379554795557955679557795587955979560795617956279563795647956579566795677956879569795707957179572795737957479575795767957779578795797958079581795827958379584795857958679587795887958979590795917959279593795947959579596795977959879599796007960179602796037960479605796067960779608796097961079611796127961379614796157961679617796187961979620796217962279623796247962579626796277962879629796307963179632796337963479635796367963779638796397964079641796427964379644796457964679647796487964979650796517965279653796547965579656796577965879659796607966179662796637966479665796667966779668796697967079671796727967379674796757967679677796787967979680796817968279683796847968579686796877968879689796907969179692796937969479695796967969779698796997970079701797027970379704797057970679707797087970979710797117971279713797147971579716797177971879719797207972179722797237972479725797267972779728797297973079731797327973379734797357973679737797387973979740797417974279743797447974579746797477974879749797507975179752797537975479755797567975779758797597976079761797627976379764797657976679767797687976979770797717977279773797747977579776797777977879779797807978179782797837978479785797867978779788797897979079791797927979379794797957979679797797987979979800798017980279803798047980579806798077980879809798107981179812798137981479815798167981779818798197982079821798227982379824798257982679827798287982979830798317983279833798347983579836798377983879839798407984179842798437984479845798467984779848798497985079851798527985379854798557985679857798587985979860798617986279863798647986579866798677986879869798707987179872798737987479875798767987779878798797988079881798827988379884798857988679887798887988979890798917989279893798947989579896798977989879899799007990179902799037990479905799067990779908799097991079911799127991379914799157991679917799187991979920799217992279923799247992579926799277992879929799307993179932799337993479935799367993779938799397994079941799427994379944799457994679947799487994979950799517995279953799547995579956799577995879959799607996179962799637996479965799667996779968799697997079971799727997379974799757997679977799787997979980799817998279983799847998579986799877998879989799907999179992799937999479995799967999779998799998000080001800028000380004800058000680007800088000980010800118001280013800148001580016800178001880019800208002180022800238002480025800268002780028800298003080031800328003380034800358003680037800388003980040800418004280043800448004580046800478004880049800508005180052800538005480055800568005780058800598006080061800628006380064800658006680067800688006980070800718007280073800748007580076800778007880079800808008180082800838008480085800868008780088800898009080091800928009380094800958009680097800988009980100801018010280103801048010580106801078010880109801108011180112801138011480115801168011780118801198012080121801228012380124801258012680127801288012980130801318013280133801348013580136801378013880139801408014180142801438014480145801468014780148801498015080151801528015380154801558015680157801588015980160801618016280163801648016580166801678016880169801708017180172801738017480175801768017780178801798018080181801828018380184801858018680187801888018980190801918019280193801948019580196801978019880199802008020180202802038020480205802068020780208802098021080211802128021380214802158021680217802188021980220802218022280223802248022580226802278022880229802308023180232802338023480235802368023780238802398024080241802428024380244802458024680247802488024980250802518025280253802548025580256802578025880259802608026180262802638026480265802668026780268802698027080271802728027380274802758027680277802788027980280802818028280283802848028580286802878028880289802908029180292802938029480295802968029780298802998030080301803028030380304803058030680307803088030980310803118031280313803148031580316803178031880319803208032180322803238032480325803268032780328803298033080331803328033380334803358033680337803388033980340803418034280343803448034580346803478034880349803508035180352803538035480355803568035780358803598036080361803628036380364803658036680367803688036980370803718037280373803748037580376803778037880379803808038180382803838038480385803868038780388803898039080391803928039380394803958039680397803988039980400804018040280403804048040580406804078040880409804108041180412804138041480415804168041780418804198042080421804228042380424804258042680427804288042980430804318043280433804348043580436804378043880439804408044180442804438044480445804468044780448804498045080451804528045380454804558045680457804588045980460804618046280463804648046580466804678046880469804708047180472804738047480475804768047780478804798048080481804828048380484804858048680487804888048980490804918049280493804948049580496804978049880499805008050180502805038050480505805068050780508805098051080511805128051380514805158051680517805188051980520805218052280523805248052580526805278052880529805308053180532805338053480535805368053780538805398054080541805428054380544805458054680547805488054980550805518055280553805548055580556805578055880559805608056180562805638056480565805668056780568805698057080571805728057380574805758057680577805788057980580805818058280583805848058580586805878058880589805908059180592805938059480595805968059780598805998060080601806028060380604806058060680607806088060980610806118061280613806148061580616806178061880619806208062180622806238062480625806268062780628806298063080631806328063380634806358063680637806388063980640806418064280643806448064580646806478064880649806508065180652806538065480655806568065780658806598066080661806628066380664806658066680667806688066980670806718067280673806748067580676806778067880679806808068180682806838068480685806868068780688806898069080691806928069380694806958069680697806988069980700807018070280703807048070580706807078070880709807108071180712807138071480715807168071780718807198072080721807228072380724807258072680727807288072980730807318073280733807348073580736807378073880739807408074180742807438074480745807468074780748807498075080751807528075380754807558075680757807588075980760807618076280763807648076580766807678076880769807708077180772807738077480775807768077780778807798078080781807828078380784807858078680787807888078980790807918079280793807948079580796807978079880799808008080180802808038080480805808068080780808808098081080811808128081380814808158081680817808188081980820808218082280823808248082580826808278082880829808308083180832808338083480835808368083780838808398084080841808428084380844808458084680847808488084980850808518085280853808548085580856808578085880859808608086180862808638086480865808668086780868808698087080871808728087380874808758087680877808788087980880808818088280883808848088580886808878088880889808908089180892808938089480895808968089780898808998090080901809028090380904809058090680907809088090980910809118091280913809148091580916809178091880919809208092180922809238092480925809268092780928809298093080931809328093380934809358093680937809388093980940809418094280943809448094580946809478094880949809508095180952809538095480955809568095780958809598096080961809628096380964809658096680967809688096980970809718097280973809748097580976809778097880979809808098180982809838098480985809868098780988809898099080991809928099380994809958099680997809988099981000810018100281003810048100581006810078100881009810108101181012810138101481015810168101781018810198102081021810228102381024810258102681027810288102981030810318103281033810348103581036810378103881039810408104181042810438104481045810468104781048810498105081051810528105381054810558105681057810588105981060810618106281063810648106581066810678106881069810708107181072810738107481075810768107781078810798108081081810828108381084810858108681087810888108981090810918109281093810948109581096810978109881099811008110181102811038110481105811068110781108811098111081111811128111381114811158111681117811188111981120811218112281123811248112581126811278112881129811308113181132811338113481135811368113781138811398114081141811428114381144811458114681147811488114981150811518115281153811548115581156811578115881159811608116181162811638116481165811668116781168811698117081171811728117381174811758117681177811788117981180811818118281183811848118581186811878118881189811908119181192811938119481195811968119781198811998120081201812028120381204812058120681207812088120981210812118121281213812148121581216812178121881219812208122181222812238122481225812268122781228812298123081231812328123381234812358123681237812388123981240812418124281243812448124581246812478124881249812508125181252812538125481255812568125781258812598126081261812628126381264812658126681267812688126981270812718127281273812748127581276812778127881279812808128181282812838128481285812868128781288812898129081291812928129381294812958129681297812988129981300813018130281303813048130581306813078130881309813108131181312813138131481315813168131781318813198132081321813228132381324813258132681327813288132981330813318133281333813348133581336813378133881339813408134181342813438134481345813468134781348813498135081351813528135381354813558135681357813588135981360813618136281363813648136581366813678136881369813708137181372813738137481375813768137781378813798138081381813828138381384813858138681387813888138981390813918139281393813948139581396813978139881399814008140181402814038140481405814068140781408814098141081411814128141381414814158141681417814188141981420814218142281423814248142581426814278142881429814308143181432814338143481435814368143781438814398144081441814428144381444814458144681447814488144981450814518145281453814548145581456814578145881459814608146181462814638146481465814668146781468814698147081471814728147381474814758147681477814788147981480814818148281483814848148581486814878148881489814908149181492814938149481495814968149781498814998150081501815028150381504815058150681507815088150981510815118151281513815148151581516815178151881519815208152181522815238152481525815268152781528815298153081531815328153381534815358153681537815388153981540815418154281543815448154581546815478154881549815508155181552815538155481555815568155781558815598156081561815628156381564815658156681567815688156981570815718157281573815748157581576815778157881579815808158181582815838158481585815868158781588815898159081591815928159381594815958159681597815988159981600816018160281603816048160581606816078160881609816108161181612816138161481615816168161781618816198162081621816228162381624816258162681627816288162981630816318163281633816348163581636816378163881639816408164181642816438164481645816468164781648816498165081651816528165381654816558165681657816588165981660816618166281663816648166581666816678166881669816708167181672816738167481675816768167781678816798168081681816828168381684816858168681687816888168981690816918169281693816948169581696816978169881699817008170181702817038170481705817068170781708817098171081711817128171381714817158171681717817188171981720817218172281723817248172581726817278172881729817308173181732817338173481735817368173781738817398174081741817428174381744817458174681747817488174981750817518175281753817548175581756817578175881759817608176181762817638176481765817668176781768817698177081771817728177381774817758177681777817788177981780817818178281783817848178581786817878178881789817908179181792817938179481795817968179781798817998180081801818028180381804818058180681807818088180981810818118181281813818148181581816818178181881819818208182181822818238182481825818268182781828818298183081831818328183381834818358183681837818388183981840818418184281843818448184581846818478184881849818508185181852818538185481855818568185781858818598186081861818628186381864818658186681867818688186981870818718187281873818748187581876818778187881879818808188181882818838188481885818868188781888818898189081891818928189381894818958189681897818988189981900819018190281903819048190581906819078190881909819108191181912819138191481915819168191781918819198192081921819228192381924819258192681927819288192981930819318193281933819348193581936819378193881939819408194181942819438194481945819468194781948819498195081951819528195381954819558195681957819588195981960819618196281963819648196581966819678196881969819708197181972819738197481975819768197781978819798198081981819828198381984819858198681987819888198981990819918199281993819948199581996819978199881999820008200182002820038200482005820068200782008820098201082011820128201382014820158201682017820188201982020820218202282023820248202582026820278202882029820308203182032820338203482035820368203782038820398204082041820428204382044820458204682047820488204982050820518205282053820548205582056820578205882059820608206182062820638206482065820668206782068820698207082071820728207382074820758207682077820788207982080820818208282083820848208582086820878208882089820908209182092820938209482095820968209782098820998210082101821028210382104821058210682107821088210982110821118211282113821148211582116821178211882119821208212182122821238212482125821268212782128821298213082131821328213382134821358213682137821388213982140821418214282143821448214582146821478214882149821508215182152821538215482155821568215782158821598216082161821628216382164821658216682167821688216982170821718217282173821748217582176821778217882179821808218182182821838218482185821868218782188821898219082191821928219382194821958219682197821988219982200822018220282203822048220582206822078220882209822108221182212822138221482215822168221782218822198222082221822228222382224822258222682227822288222982230822318223282233822348223582236822378223882239822408224182242822438224482245822468224782248822498225082251822528225382254822558225682257822588225982260822618226282263822648226582266822678226882269822708227182272822738227482275822768227782278822798228082281822828228382284822858228682287822888228982290822918229282293822948229582296822978229882299823008230182302823038230482305823068230782308823098231082311823128231382314823158231682317823188231982320823218232282323823248232582326823278232882329823308233182332823338233482335823368233782338823398234082341823428234382344823458234682347823488234982350823518235282353823548235582356823578235882359823608236182362823638236482365823668236782368823698237082371823728237382374823758237682377823788237982380823818238282383823848238582386823878238882389823908239182392823938239482395823968239782398823998240082401824028240382404824058240682407824088240982410824118241282413824148241582416824178241882419824208242182422824238242482425824268242782428824298243082431824328243382434824358243682437824388243982440824418244282443824448244582446824478244882449824508245182452824538245482455824568245782458824598246082461824628246382464824658246682467824688246982470824718247282473824748247582476824778247882479824808248182482824838248482485824868248782488824898249082491824928249382494824958249682497824988249982500825018250282503825048250582506825078250882509825108251182512825138251482515825168251782518825198252082521825228252382524825258252682527825288252982530825318253282533825348253582536825378253882539825408254182542825438254482545825468254782548825498255082551825528255382554825558255682557825588255982560825618256282563825648256582566825678256882569825708257182572825738257482575825768257782578825798258082581825828258382584825858258682587825888258982590825918259282593825948259582596825978259882599826008260182602826038260482605826068260782608826098261082611826128261382614826158261682617826188261982620826218262282623826248262582626826278262882629826308263182632826338263482635826368263782638826398264082641826428264382644826458264682647826488264982650826518265282653826548265582656826578265882659826608266182662826638266482665826668266782668826698267082671826728267382674826758267682677826788267982680826818268282683826848268582686826878268882689826908269182692826938269482695826968269782698826998270082701827028270382704827058270682707827088270982710827118271282713827148271582716827178271882719827208272182722827238272482725827268272782728827298273082731827328273382734827358273682737827388273982740827418274282743827448274582746827478274882749827508275182752827538275482755827568275782758827598276082761827628276382764827658276682767827688276982770827718277282773827748277582776827778277882779827808278182782827838278482785827868278782788827898279082791827928279382794827958279682797827988279982800828018280282803828048280582806828078280882809828108281182812828138281482815828168281782818828198282082821828228282382824828258282682827828288282982830828318283282833828348283582836828378283882839828408284182842828438284482845828468284782848828498285082851828528285382854828558285682857828588285982860828618286282863828648286582866828678286882869828708287182872828738287482875828768287782878828798288082881828828288382884828858288682887828888288982890828918289282893828948289582896828978289882899829008290182902829038290482905829068290782908829098291082911829128291382914829158291682917829188291982920829218292282923829248292582926829278292882929829308293182932829338293482935829368293782938829398294082941829428294382944829458294682947829488294982950829518295282953829548295582956829578295882959829608296182962829638296482965829668296782968829698297082971829728297382974829758297682977829788297982980829818298282983829848298582986829878298882989829908299182992829938299482995829968299782998829998300083001830028300383004830058300683007830088300983010830118301283013830148301583016830178301883019830208302183022830238302483025830268302783028830298303083031830328303383034830358303683037830388303983040830418304283043830448304583046830478304883049830508305183052830538305483055830568305783058830598306083061830628306383064830658306683067830688306983070830718307283073830748307583076830778307883079830808308183082830838308483085830868308783088830898309083091830928309383094830958309683097830988309983100831018310283103831048310583106831078310883109831108311183112831138311483115831168311783118831198312083121831228312383124831258312683127831288312983130831318313283133831348313583136831378313883139831408314183142831438314483145831468314783148831498315083151831528315383154831558315683157831588315983160831618316283163831648316583166831678316883169831708317183172831738317483175831768317783178831798318083181831828318383184831858318683187831888318983190831918319283193831948319583196831978319883199832008320183202832038320483205832068320783208832098321083211832128321383214832158321683217832188321983220832218322283223832248322583226832278322883229832308323183232832338323483235832368323783238832398324083241832428324383244832458324683247832488324983250832518325283253832548325583256832578325883259832608326183262832638326483265832668326783268832698327083271832728327383274832758327683277832788327983280832818328283283832848328583286832878328883289832908329183292832938329483295832968329783298832998330083301833028330383304833058330683307833088330983310833118331283313833148331583316833178331883319833208332183322833238332483325833268332783328833298333083331833328333383334833358333683337833388333983340833418334283343833448334583346833478334883349833508335183352833538335483355833568335783358833598336083361833628336383364833658336683367833688336983370833718337283373833748337583376833778337883379833808338183382833838338483385833868338783388833898339083391833928339383394833958339683397833988339983400834018340283403834048340583406834078340883409834108341183412834138341483415834168341783418834198342083421834228342383424834258342683427834288342983430834318343283433834348343583436834378343883439834408344183442834438344483445834468344783448834498345083451834528345383454834558345683457834588345983460834618346283463834648346583466834678346883469834708347183472834738347483475834768347783478834798348083481834828348383484834858348683487834888348983490834918349283493834948349583496834978349883499835008350183502835038350483505835068350783508835098351083511835128351383514835158351683517835188351983520835218352283523835248352583526835278352883529835308353183532835338353483535835368353783538835398354083541835428354383544835458354683547835488354983550835518355283553835548355583556835578355883559835608356183562835638356483565835668356783568835698357083571835728357383574835758357683577835788357983580835818358283583835848358583586835878358883589835908359183592835938359483595835968359783598835998360083601836028360383604836058360683607836088360983610836118361283613836148361583616836178361883619836208362183622836238362483625836268362783628836298363083631836328363383634836358363683637836388363983640836418364283643836448364583646836478364883649836508365183652836538365483655836568365783658836598366083661836628366383664836658366683667836688366983670836718367283673836748367583676836778367883679836808368183682836838368483685836868368783688836898369083691836928369383694836958369683697836988369983700837018370283703837048370583706837078370883709837108371183712837138371483715837168371783718837198372083721837228372383724837258372683727837288372983730837318373283733837348373583736837378373883739837408374183742837438374483745837468374783748837498375083751837528375383754837558375683757837588375983760837618376283763837648376583766837678376883769837708377183772837738377483775837768377783778837798378083781837828378383784837858378683787837888378983790837918379283793837948379583796837978379883799838008380183802838038380483805838068380783808838098381083811838128381383814838158381683817838188381983820838218382283823838248382583826838278382883829838308383183832838338383483835838368383783838838398384083841838428384383844838458384683847838488384983850838518385283853838548385583856838578385883859838608386183862838638386483865838668386783868838698387083871838728387383874838758387683877838788387983880838818388283883838848388583886838878388883889838908389183892838938389483895838968389783898838998390083901839028390383904839058390683907839088390983910839118391283913839148391583916839178391883919839208392183922839238392483925839268392783928839298393083931839328393383934839358393683937839388393983940839418394283943839448394583946839478394883949839508395183952839538395483955839568395783958839598396083961839628396383964839658396683967839688396983970839718397283973839748397583976839778397883979839808398183982839838398483985839868398783988839898399083991839928399383994839958399683997839988399984000840018400284003840048400584006840078400884009840108401184012840138401484015840168401784018840198402084021840228402384024840258402684027840288402984030840318403284033840348403584036840378403884039840408404184042840438404484045840468404784048840498405084051840528405384054840558405684057840588405984060840618406284063840648406584066840678406884069840708407184072840738407484075840768407784078840798408084081840828408384084840858408684087840888408984090840918409284093840948409584096840978409884099841008410184102841038410484105841068410784108841098411084111841128411384114841158411684117841188411984120841218412284123841248412584126841278412884129841308413184132841338413484135841368413784138841398414084141841428414384144841458414684147841488414984150841518415284153841548415584156841578415884159841608416184162841638416484165841668416784168841698417084171841728417384174841758417684177841788417984180841818418284183841848418584186841878418884189841908419184192841938419484195841968419784198841998420084201842028420384204842058420684207842088420984210842118421284213842148421584216842178421884219842208422184222842238422484225842268422784228842298423084231842328423384234842358423684237842388423984240842418424284243842448424584246842478424884249842508425184252842538425484255842568425784258842598426084261842628426384264842658426684267842688426984270842718427284273842748427584276842778427884279842808428184282842838428484285842868428784288842898429084291842928429384294842958429684297842988429984300843018430284303843048430584306843078430884309843108431184312843138431484315843168431784318843198432084321843228432384324843258432684327843288432984330843318433284333843348433584336843378433884339843408434184342843438434484345843468434784348843498435084351843528435384354843558435684357843588435984360843618436284363843648436584366843678436884369843708437184372843738437484375843768437784378843798438084381843828438384384843858438684387843888438984390843918439284393843948439584396843978439884399844008440184402844038440484405844068440784408844098441084411844128441384414844158441684417844188441984420844218442284423844248442584426844278442884429844308443184432844338443484435844368443784438844398444084441844428444384444844458444684447844488444984450844518445284453844548445584456844578445884459844608446184462844638446484465844668446784468844698447084471844728447384474844758447684477844788447984480844818448284483844848448584486844878448884489844908449184492844938449484495844968449784498844998450084501845028450384504845058450684507845088450984510845118451284513845148451584516845178451884519845208452184522845238452484525845268452784528845298453084531845328453384534845358453684537845388453984540845418454284543845448454584546845478454884549845508455184552845538455484555845568455784558845598456084561845628456384564845658456684567845688456984570845718457284573845748457584576845778457884579845808458184582845838458484585845868458784588845898459084591845928459384594845958459684597845988459984600846018460284603846048460584606846078460884609846108461184612846138461484615846168461784618846198462084621846228462384624846258462684627846288462984630846318463284633846348463584636846378463884639846408464184642846438464484645846468464784648846498465084651846528465384654846558465684657846588465984660846618466284663846648466584666846678466884669846708467184672846738467484675846768467784678846798468084681846828468384684846858468684687846888468984690846918469284693846948469584696846978469884699847008470184702847038470484705847068470784708847098471084711847128471384714847158471684717847188471984720847218472284723847248472584726847278472884729847308473184732847338473484735847368473784738847398474084741847428474384744847458474684747847488474984750847518475284753847548475584756847578475884759847608476184762847638476484765847668476784768847698477084771847728477384774847758477684777847788477984780847818478284783847848478584786847878478884789847908479184792847938479484795847968479784798847998480084801848028480384804848058480684807848088480984810848118481284813848148481584816848178481884819848208482184822848238482484825848268482784828848298483084831848328483384834848358483684837848388483984840848418484284843848448484584846848478484884849848508485184852848538485484855848568485784858848598486084861848628486384864848658486684867848688486984870848718487284873848748487584876848778487884879848808488184882848838488484885848868488784888848898489084891848928489384894848958489684897848988489984900849018490284903849048490584906849078490884909849108491184912849138491484915849168491784918849198492084921849228492384924849258492684927849288492984930849318493284933849348493584936849378493884939849408494184942849438494484945849468494784948849498495084951849528495384954849558495684957849588495984960849618496284963849648496584966849678496884969849708497184972849738497484975849768497784978849798498084981849828498384984849858498684987849888498984990849918499284993849948499584996849978499884999850008500185002850038500485005850068500785008850098501085011850128501385014850158501685017850188501985020850218502285023850248502585026850278502885029850308503185032850338503485035850368503785038850398504085041850428504385044850458504685047850488504985050850518505285053850548505585056850578505885059850608506185062850638506485065850668506785068850698507085071850728507385074850758507685077850788507985080850818508285083850848508585086850878508885089850908509185092850938509485095850968509785098850998510085101851028510385104851058510685107851088510985110851118511285113851148511585116851178511885119851208512185122851238512485125851268512785128851298513085131851328513385134851358513685137851388513985140851418514285143851448514585146851478514885149851508515185152851538515485155851568515785158851598516085161851628516385164851658516685167851688516985170851718517285173851748517585176851778517885179851808518185182851838518485185851868518785188851898519085191851928519385194851958519685197851988519985200852018520285203852048520585206852078520885209852108521185212852138521485215852168521785218852198522085221852228522385224852258522685227852288522985230852318523285233852348523585236852378523885239852408524185242852438524485245852468524785248852498525085251852528525385254852558525685257852588525985260852618526285263852648526585266852678526885269852708527185272852738527485275852768527785278852798528085281852828528385284852858528685287852888528985290852918529285293852948529585296852978529885299853008530185302853038530485305853068530785308853098531085311853128531385314853158531685317853188531985320853218532285323853248532585326853278532885329853308533185332853338533485335853368533785338853398534085341853428534385344853458534685347853488534985350853518535285353853548535585356853578535885359853608536185362853638536485365853668536785368853698537085371853728537385374853758537685377853788537985380853818538285383853848538585386853878538885389853908539185392853938539485395853968539785398853998540085401854028540385404854058540685407854088540985410854118541285413854148541585416854178541885419854208542185422854238542485425854268542785428854298543085431854328543385434854358543685437854388543985440854418544285443854448544585446854478544885449854508545185452854538545485455854568545785458854598546085461854628546385464854658546685467854688546985470854718547285473854748547585476854778547885479854808548185482854838548485485854868548785488854898549085491854928549385494854958549685497854988549985500855018550285503855048550585506855078550885509855108551185512855138551485515855168551785518855198552085521855228552385524855258552685527855288552985530855318553285533855348553585536855378553885539855408554185542855438554485545855468554785548855498555085551855528555385554855558555685557855588555985560855618556285563855648556585566855678556885569855708557185572855738557485575855768557785578855798558085581855828558385584855858558685587855888558985590855918559285593855948559585596855978559885599856008560185602856038560485605856068560785608856098561085611856128561385614856158561685617856188561985620856218562285623856248562585626856278562885629856308563185632856338563485635856368563785638856398564085641856428564385644856458564685647856488564985650856518565285653856548565585656856578565885659856608566185662856638566485665856668566785668856698567085671856728567385674856758567685677856788567985680856818568285683856848568585686856878568885689856908569185692856938569485695856968569785698856998570085701857028570385704857058570685707857088570985710857118571285713857148571585716857178571885719857208572185722857238572485725857268572785728857298573085731857328573385734857358573685737857388573985740857418574285743857448574585746857478574885749857508575185752857538575485755857568575785758857598576085761857628576385764857658576685767857688576985770857718577285773857748577585776857778577885779857808578185782857838578485785857868578785788857898579085791857928579385794857958579685797857988579985800858018580285803858048580585806858078580885809858108581185812858138581485815858168581785818858198582085821858228582385824858258582685827858288582985830858318583285833858348583585836858378583885839858408584185842858438584485845858468584785848858498585085851858528585385854858558585685857858588585985860858618586285863858648586585866858678586885869858708587185872858738587485875858768587785878858798588085881858828588385884858858588685887858888588985890858918589285893858948589585896858978589885899859008590185902859038590485905859068590785908859098591085911859128591385914859158591685917859188591985920859218592285923859248592585926859278592885929859308593185932859338593485935859368593785938859398594085941859428594385944859458594685947859488594985950859518595285953859548595585956859578595885959859608596185962859638596485965859668596785968859698597085971859728597385974859758597685977859788597985980859818598285983859848598585986859878598885989859908599185992859938599485995859968599785998859998600086001860028600386004860058600686007860088600986010860118601286013860148601586016860178601886019860208602186022860238602486025860268602786028860298603086031860328603386034860358603686037860388603986040860418604286043860448604586046860478604886049860508605186052860538605486055860568605786058860598606086061860628606386064860658606686067860688606986070860718607286073860748607586076860778607886079860808608186082860838608486085860868608786088860898609086091860928609386094860958609686097860988609986100861018610286103861048610586106861078610886109861108611186112861138611486115861168611786118861198612086121861228612386124861258612686127861288612986130861318613286133861348613586136861378613886139861408614186142861438614486145861468614786148861498615086151861528615386154861558615686157861588615986160861618616286163861648616586166861678616886169861708617186172861738617486175861768617786178861798618086181861828618386184861858618686187861888618986190861918619286193861948619586196861978619886199862008620186202862038620486205862068620786208862098621086211862128621386214862158621686217862188621986220862218622286223862248622586226862278622886229862308623186232862338623486235862368623786238862398624086241862428624386244862458624686247862488624986250862518625286253862548625586256862578625886259862608626186262862638626486265862668626786268862698627086271862728627386274862758627686277862788627986280862818628286283862848628586286862878628886289862908629186292862938629486295862968629786298862998630086301863028630386304863058630686307863088630986310863118631286313863148631586316863178631886319863208632186322863238632486325863268632786328863298633086331863328633386334863358633686337863388633986340863418634286343863448634586346863478634886349863508635186352863538635486355863568635786358863598636086361863628636386364863658636686367863688636986370863718637286373863748637586376863778637886379863808638186382863838638486385863868638786388863898639086391863928639386394863958639686397863988639986400864018640286403864048640586406864078640886409864108641186412864138641486415864168641786418864198642086421864228642386424864258642686427864288642986430864318643286433864348643586436864378643886439864408644186442864438644486445864468644786448864498645086451864528645386454864558645686457864588645986460864618646286463864648646586466864678646886469864708647186472864738647486475864768647786478864798648086481864828648386484864858648686487864888648986490864918649286493864948649586496864978649886499865008650186502865038650486505865068650786508865098651086511865128651386514865158651686517865188651986520865218652286523865248652586526865278652886529865308653186532865338653486535865368653786538865398654086541865428654386544865458654686547865488654986550865518655286553865548655586556865578655886559865608656186562865638656486565865668656786568865698657086571865728657386574865758657686577865788657986580865818658286583865848658586586865878658886589865908659186592865938659486595865968659786598865998660086601866028660386604866058660686607866088660986610866118661286613866148661586616866178661886619866208662186622866238662486625866268662786628866298663086631866328663386634866358663686637866388663986640866418664286643866448664586646866478664886649866508665186652866538665486655866568665786658866598666086661866628666386664866658666686667866688666986670866718667286673866748667586676866778667886679866808668186682866838668486685866868668786688866898669086691866928669386694866958669686697866988669986700867018670286703867048670586706867078670886709867108671186712867138671486715867168671786718867198672086721867228672386724867258672686727867288672986730867318673286733867348673586736867378673886739867408674186742867438674486745867468674786748867498675086751867528675386754867558675686757867588675986760867618676286763867648676586766867678676886769867708677186772867738677486775867768677786778867798678086781867828678386784867858678686787867888678986790867918679286793867948679586796867978679886799868008680186802868038680486805868068680786808868098681086811868128681386814868158681686817868188681986820868218682286823868248682586826868278682886829868308683186832868338683486835868368683786838868398684086841868428684386844868458684686847868488684986850868518685286853868548685586856868578685886859868608686186862868638686486865868668686786868868698687086871868728687386874868758687686877868788687986880868818688286883868848688586886868878688886889868908689186892868938689486895868968689786898868998690086901869028690386904869058690686907869088690986910869118691286913869148691586916869178691886919869208692186922869238692486925869268692786928869298693086931869328693386934869358693686937869388693986940869418694286943869448694586946869478694886949869508695186952869538695486955869568695786958869598696086961869628696386964869658696686967869688696986970869718697286973869748697586976869778697886979869808698186982869838698486985869868698786988869898699086991869928699386994869958699686997869988699987000870018700287003870048700587006870078700887009870108701187012870138701487015870168701787018870198702087021870228702387024870258702687027870288702987030870318703287033870348703587036870378703887039870408704187042870438704487045870468704787048870498705087051870528705387054870558705687057870588705987060870618706287063870648706587066870678706887069870708707187072870738707487075870768707787078870798708087081870828708387084870858708687087870888708987090870918709287093870948709587096870978709887099871008710187102871038710487105871068710787108871098711087111871128711387114871158711687117871188711987120871218712287123871248712587126871278712887129871308713187132871338713487135871368713787138871398714087141871428714387144871458714687147871488714987150871518715287153871548715587156871578715887159871608716187162871638716487165871668716787168871698717087171871728717387174871758717687177871788717987180871818718287183871848718587186871878718887189871908719187192871938719487195871968719787198871998720087201872028720387204872058720687207872088720987210872118721287213872148721587216872178721887219872208722187222872238722487225872268722787228872298723087231872328723387234872358723687237872388723987240872418724287243872448724587246872478724887249872508725187252872538725487255872568725787258872598726087261872628726387264872658726687267872688726987270872718727287273872748727587276872778727887279872808728187282872838728487285872868728787288872898729087291872928729387294872958729687297872988729987300873018730287303873048730587306873078730887309873108731187312873138731487315873168731787318873198732087321873228732387324873258732687327873288732987330873318733287333873348733587336873378733887339873408734187342873438734487345873468734787348873498735087351873528735387354873558735687357873588735987360873618736287363873648736587366873678736887369873708737187372873738737487375873768737787378873798738087381873828738387384873858738687387873888738987390873918739287393873948739587396873978739887399874008740187402874038740487405874068740787408874098741087411874128741387414874158741687417874188741987420874218742287423874248742587426874278742887429874308743187432874338743487435874368743787438874398744087441874428744387444874458744687447874488744987450874518745287453874548745587456874578745887459874608746187462874638746487465874668746787468874698747087471874728747387474874758747687477874788747987480874818748287483874848748587486874878748887489874908749187492874938749487495874968749787498874998750087501875028750387504875058750687507875088750987510875118751287513875148751587516875178751887519875208752187522875238752487525875268752787528875298753087531875328753387534875358753687537875388753987540875418754287543875448754587546875478754887549875508755187552875538755487555875568755787558875598756087561875628756387564875658756687567875688756987570875718757287573875748757587576875778757887579875808758187582875838758487585875868758787588875898759087591875928759387594875958759687597875988759987600876018760287603876048760587606876078760887609876108761187612876138761487615876168761787618876198762087621876228762387624876258762687627876288762987630876318763287633876348763587636876378763887639876408764187642876438764487645876468764787648876498765087651876528765387654876558765687657876588765987660876618766287663876648766587666876678766887669876708767187672876738767487675876768767787678876798768087681876828768387684876858768687687876888768987690876918769287693876948769587696876978769887699877008770187702877038770487705877068770787708877098771087711877128771387714877158771687717877188771987720877218772287723877248772587726877278772887729877308773187732877338773487735877368773787738877398774087741877428774387744877458774687747877488774987750877518775287753877548775587756877578775887759877608776187762877638776487765877668776787768877698777087771877728777387774877758777687777877788777987780877818778287783877848778587786877878778887789877908779187792877938779487795877968779787798877998780087801878028780387804878058780687807878088780987810878118781287813878148781587816878178781887819878208782187822878238782487825878268782787828878298783087831878328783387834878358783687837878388783987840878418784287843878448784587846878478784887849878508785187852878538785487855878568785787858878598786087861878628786387864878658786687867878688786987870878718787287873878748787587876878778787887879878808788187882878838788487885878868788787888878898789087891878928789387894878958789687897878988789987900879018790287903879048790587906879078790887909879108791187912879138791487915879168791787918879198792087921879228792387924879258792687927879288792987930879318793287933879348793587936879378793887939879408794187942879438794487945879468794787948879498795087951879528795387954879558795687957879588795987960879618796287963879648796587966879678796887969879708797187972879738797487975879768797787978879798798087981879828798387984879858798687987879888798987990879918799287993879948799587996879978799887999880008800188002880038800488005880068800788008880098801088011880128801388014880158801688017880188801988020880218802288023880248802588026880278802888029880308803188032880338803488035880368803788038880398804088041880428804388044880458804688047880488804988050880518805288053880548805588056880578805888059880608806188062880638806488065880668806788068880698807088071880728807388074880758807688077880788807988080880818808288083880848808588086880878808888089880908809188092880938809488095880968809788098880998810088101881028810388104881058810688107881088810988110881118811288113881148811588116881178811888119881208812188122881238812488125881268812788128881298813088131881328813388134881358813688137881388813988140881418814288143881448814588146881478814888149881508815188152881538815488155881568815788158881598816088161881628816388164881658816688167881688816988170881718817288173881748817588176881778817888179881808818188182881838818488185881868818788188881898819088191881928819388194881958819688197881988819988200882018820288203882048820588206882078820888209882108821188212882138821488215882168821788218882198822088221882228822388224882258822688227882288822988230882318823288233882348823588236882378823888239882408824188242882438824488245882468824788248882498825088251882528825388254882558825688257882588825988260882618826288263882648826588266882678826888269882708827188272882738827488275882768827788278882798828088281882828828388284882858828688287882888828988290882918829288293882948829588296882978829888299883008830188302883038830488305883068830788308883098831088311883128831388314883158831688317883188831988320883218832288323883248832588326883278832888329883308833188332883338833488335883368833788338883398834088341883428834388344883458834688347883488834988350883518835288353883548835588356883578835888359883608836188362883638836488365883668836788368883698837088371883728837388374883758837688377883788837988380883818838288383883848838588386883878838888389883908839188392883938839488395883968839788398883998840088401884028840388404884058840688407884088840988410884118841288413884148841588416884178841888419884208842188422884238842488425884268842788428884298843088431884328843388434884358843688437884388843988440884418844288443884448844588446884478844888449884508845188452884538845488455884568845788458884598846088461884628846388464884658846688467884688846988470884718847288473884748847588476884778847888479884808848188482884838848488485884868848788488884898849088491884928849388494884958849688497884988849988500885018850288503885048850588506885078850888509885108851188512885138851488515885168851788518885198852088521885228852388524885258852688527885288852988530885318853288533885348853588536885378853888539885408854188542885438854488545885468854788548885498855088551885528855388554885558855688557885588855988560885618856288563885648856588566885678856888569885708857188572885738857488575885768857788578885798858088581885828858388584885858858688587885888858988590885918859288593885948859588596885978859888599886008860188602886038860488605886068860788608886098861088611886128861388614886158861688617886188861988620886218862288623886248862588626886278862888629886308863188632886338863488635886368863788638886398864088641886428864388644886458864688647886488864988650886518865288653886548865588656886578865888659886608866188662886638866488665886668866788668886698867088671886728867388674886758867688677886788867988680886818868288683886848868588686886878868888689886908869188692886938869488695886968869788698886998870088701887028870388704887058870688707887088870988710887118871288713887148871588716887178871888719887208872188722887238872488725887268872788728887298873088731887328873388734887358873688737887388873988740887418874288743887448874588746887478874888749887508875188752887538875488755887568875788758887598876088761887628876388764887658876688767887688876988770887718877288773887748877588776887778877888779887808878188782887838878488785887868878788788887898879088791887928879388794887958879688797887988879988800888018880288803888048880588806888078880888809888108881188812888138881488815888168881788818888198882088821888228882388824888258882688827888288882988830888318883288833888348883588836888378883888839888408884188842888438884488845888468884788848888498885088851888528885388854888558885688857888588885988860888618886288863888648886588866888678886888869888708887188872888738887488875888768887788878888798888088881888828888388884888858888688887888888888988890888918889288893888948889588896888978889888899889008890188902889038890488905889068890788908889098891088911889128891388914889158891688917889188891988920889218892288923889248892588926889278892888929889308893188932889338893488935889368893788938889398894088941889428894388944889458894688947889488894988950889518895288953889548895588956889578895888959889608896188962889638896488965889668896788968889698897088971889728897388974889758897688977889788897988980889818898288983889848898588986889878898888989889908899188992889938899488995889968899788998889998900089001890028900389004890058900689007890088900989010890118901289013890148901589016890178901889019890208902189022890238902489025890268902789028890298903089031890328903389034890358903689037890388903989040890418904289043890448904589046890478904889049890508905189052890538905489055890568905789058890598906089061890628906389064890658906689067890688906989070890718907289073890748907589076890778907889079890808908189082890838908489085890868908789088890898909089091890928909389094890958909689097890988909989100891018910289103891048910589106891078910889109891108911189112891138911489115891168911789118891198912089121891228912389124891258912689127891288912989130891318913289133891348913589136891378913889139891408914189142891438914489145891468914789148891498915089151891528915389154891558915689157891588915989160891618916289163891648916589166891678916889169891708917189172891738917489175891768917789178891798918089181891828918389184891858918689187891888918989190891918919289193891948919589196891978919889199892008920189202892038920489205892068920789208892098921089211892128921389214892158921689217892188921989220892218922289223892248922589226892278922889229892308923189232892338923489235892368923789238892398924089241892428924389244892458924689247892488924989250892518925289253892548925589256892578925889259892608926189262892638926489265892668926789268892698927089271892728927389274892758927689277892788927989280892818928289283892848928589286892878928889289892908929189292892938929489295892968929789298892998930089301893028930389304893058930689307893088930989310893118931289313893148931589316893178931889319893208932189322893238932489325893268932789328893298933089331893328933389334893358933689337893388933989340893418934289343893448934589346893478934889349893508935189352893538935489355893568935789358893598936089361893628936389364893658936689367893688936989370893718937289373893748937589376893778937889379893808938189382893838938489385893868938789388893898939089391893928939389394893958939689397893988939989400894018940289403894048940589406894078940889409894108941189412894138941489415894168941789418894198942089421894228942389424894258942689427894288942989430894318943289433894348943589436894378943889439894408944189442894438944489445894468944789448894498945089451894528945389454894558945689457894588945989460894618946289463894648946589466894678946889469894708947189472894738947489475894768947789478894798948089481894828948389484894858948689487894888948989490894918949289493894948949589496894978949889499895008950189502895038950489505895068950789508895098951089511895128951389514895158951689517895188951989520895218952289523895248952589526895278952889529895308953189532895338953489535895368953789538895398954089541895428954389544895458954689547895488954989550895518955289553895548955589556895578955889559895608956189562895638956489565895668956789568895698957089571895728957389574895758957689577895788957989580895818958289583895848958589586895878958889589895908959189592895938959489595895968959789598895998960089601896028960389604896058960689607896088960989610896118961289613896148961589616896178961889619896208962189622896238962489625896268962789628896298963089631896328963389634896358963689637896388963989640896418964289643896448964589646896478964889649896508965189652896538965489655896568965789658896598966089661896628966389664896658966689667896688966989670896718967289673896748967589676896778967889679896808968189682896838968489685896868968789688896898969089691896928969389694896958969689697896988969989700897018970289703897048970589706897078970889709897108971189712897138971489715897168971789718897198972089721897228972389724897258972689727897288972989730897318973289733897348973589736897378973889739897408974189742897438974489745897468974789748897498975089751897528975389754897558975689757897588975989760897618976289763897648976589766897678976889769897708977189772897738977489775897768977789778897798978089781897828978389784897858978689787897888978989790897918979289793897948979589796897978979889799898008980189802898038980489805898068980789808898098981089811898128981389814898158981689817898188981989820898218982289823898248982589826898278982889829898308983189832898338983489835898368983789838898398984089841898428984389844898458984689847898488984989850898518985289853898548985589856898578985889859898608986189862898638986489865898668986789868898698987089871898728987389874898758987689877898788987989880898818988289883898848988589886898878988889889898908989189892898938989489895898968989789898898998990089901899028990389904899058990689907899088990989910899118991289913899148991589916899178991889919899208992189922899238992489925899268992789928899298993089931899328993389934899358993689937899388993989940899418994289943899448994589946899478994889949899508995189952899538995489955899568995789958899598996089961899628996389964899658996689967899688996989970899718997289973899748997589976899778997889979899808998189982899838998489985899868998789988899898999089991899928999389994899958999689997899988999990000900019000290003900049000590006900079000890009900109001190012900139001490015900169001790018900199002090021900229002390024900259002690027900289002990030900319003290033900349003590036900379003890039900409004190042900439004490045900469004790048900499005090051900529005390054900559005690057900589005990060900619006290063900649006590066900679006890069900709007190072900739007490075900769007790078900799008090081900829008390084900859008690087900889008990090900919009290093900949009590096900979009890099901009010190102901039010490105901069010790108901099011090111901129011390114901159011690117901189011990120901219012290123901249012590126901279012890129901309013190132901339013490135901369013790138901399014090141901429014390144901459014690147901489014990150901519015290153901549015590156901579015890159901609016190162901639016490165901669016790168901699017090171901729017390174901759017690177901789017990180901819018290183901849018590186901879018890189901909019190192901939019490195901969019790198901999020090201902029020390204902059020690207902089020990210902119021290213902149021590216902179021890219902209022190222902239022490225902269022790228902299023090231902329023390234902359023690237902389023990240902419024290243902449024590246902479024890249902509025190252902539025490255902569025790258902599026090261902629026390264902659026690267902689026990270902719027290273902749027590276902779027890279902809028190282902839028490285902869028790288902899029090291902929029390294902959029690297902989029990300903019030290303903049030590306903079030890309903109031190312903139031490315903169031790318903199032090321903229032390324903259032690327903289032990330903319033290333903349033590336903379033890339903409034190342903439034490345903469034790348903499035090351903529035390354903559035690357903589035990360903619036290363903649036590366903679036890369903709037190372903739037490375903769037790378903799038090381903829038390384903859038690387903889038990390903919039290393903949039590396903979039890399904009040190402904039040490405904069040790408904099041090411904129041390414904159041690417904189041990420904219042290423904249042590426904279042890429904309043190432904339043490435904369043790438904399044090441904429044390444904459044690447904489044990450904519045290453904549045590456904579045890459904609046190462904639046490465904669046790468904699047090471904729047390474904759047690477904789047990480904819048290483904849048590486904879048890489904909049190492904939049490495904969049790498904999050090501905029050390504905059050690507905089050990510905119051290513905149051590516905179051890519905209052190522905239052490525905269052790528905299053090531905329053390534905359053690537905389053990540905419054290543905449054590546905479054890549905509055190552905539055490555905569055790558905599056090561905629056390564905659056690567905689056990570905719057290573905749057590576905779057890579905809058190582905839058490585905869058790588905899059090591905929059390594905959059690597905989059990600906019060290603906049060590606906079060890609906109061190612906139061490615906169061790618906199062090621906229062390624906259062690627906289062990630906319063290633906349063590636906379063890639906409064190642906439064490645906469064790648906499065090651906529065390654906559065690657906589065990660906619066290663906649066590666906679066890669906709067190672906739067490675906769067790678906799068090681906829068390684906859068690687906889068990690906919069290693906949069590696906979069890699907009070190702907039070490705907069070790708907099071090711907129071390714907159071690717907189071990720907219072290723907249072590726907279072890729907309073190732907339073490735907369073790738907399074090741907429074390744907459074690747907489074990750907519075290753907549075590756907579075890759907609076190762907639076490765907669076790768907699077090771907729077390774907759077690777907789077990780907819078290783907849078590786907879078890789907909079190792907939079490795907969079790798907999080090801908029080390804908059080690807908089080990810908119081290813908149081590816908179081890819908209082190822908239082490825908269082790828908299083090831908329083390834908359083690837908389083990840908419084290843908449084590846908479084890849908509085190852908539085490855908569085790858908599086090861908629086390864908659086690867908689086990870908719087290873908749087590876908779087890879908809088190882908839088490885908869088790888908899089090891908929089390894908959089690897908989089990900909019090290903909049090590906909079090890909909109091190912909139091490915909169091790918909199092090921909229092390924909259092690927909289092990930909319093290933909349093590936909379093890939909409094190942909439094490945909469094790948909499095090951909529095390954909559095690957909589095990960909619096290963909649096590966909679096890969909709097190972909739097490975909769097790978909799098090981909829098390984909859098690987909889098990990909919099290993909949099590996909979099890999910009100191002910039100491005910069100791008910099101091011910129101391014910159101691017910189101991020910219102291023910249102591026910279102891029910309103191032910339103491035910369103791038910399104091041910429104391044910459104691047910489104991050910519105291053910549105591056910579105891059910609106191062910639106491065910669106791068910699107091071910729107391074910759107691077910789107991080910819108291083910849108591086910879108891089910909109191092910939109491095910969109791098910999110091101911029110391104911059110691107911089110991110911119111291113911149111591116911179111891119911209112191122911239112491125911269112791128911299113091131911329113391134911359113691137911389113991140911419114291143911449114591146911479114891149911509115191152911539115491155911569115791158911599116091161911629116391164911659116691167911689116991170911719117291173911749117591176911779117891179911809118191182911839118491185911869118791188911899119091191911929119391194911959119691197911989119991200912019120291203912049120591206912079120891209912109121191212912139121491215912169121791218912199122091221912229122391224912259122691227912289122991230912319123291233912349123591236912379123891239912409124191242912439124491245912469124791248912499125091251912529125391254912559125691257912589125991260912619126291263912649126591266912679126891269912709127191272912739127491275912769127791278912799128091281912829128391284912859128691287912889128991290912919129291293912949129591296912979129891299913009130191302913039130491305913069130791308913099131091311913129131391314913159131691317913189131991320913219132291323913249132591326913279132891329913309133191332913339133491335913369133791338913399134091341913429134391344913459134691347913489134991350913519135291353913549135591356913579135891359913609136191362913639136491365913669136791368913699137091371913729137391374913759137691377913789137991380913819138291383913849138591386913879138891389913909139191392913939139491395913969139791398913999140091401914029140391404914059140691407914089140991410914119141291413914149141591416914179141891419914209142191422914239142491425914269142791428914299143091431914329143391434914359143691437914389143991440914419144291443914449144591446914479144891449914509145191452914539145491455914569145791458914599146091461914629146391464914659146691467914689146991470914719147291473914749147591476914779147891479914809148191482914839148491485914869148791488914899149091491914929149391494914959149691497914989149991500915019150291503915049150591506915079150891509915109151191512915139151491515915169151791518915199152091521915229152391524915259152691527915289152991530915319153291533915349153591536915379153891539915409154191542915439154491545915469154791548915499155091551915529155391554915559155691557915589155991560915619156291563915649156591566915679156891569915709157191572915739157491575915769157791578915799158091581915829158391584915859158691587915889158991590915919159291593915949159591596915979159891599916009160191602916039160491605916069160791608916099161091611916129161391614916159161691617916189161991620916219162291623916249162591626916279162891629916309163191632916339163491635916369163791638916399164091641916429164391644916459164691647916489164991650916519165291653916549165591656916579165891659916609166191662916639166491665916669166791668916699167091671916729167391674916759167691677916789167991680916819168291683916849168591686916879168891689916909169191692916939169491695916969169791698916999170091701917029170391704917059170691707917089170991710917119171291713917149171591716917179171891719917209172191722917239172491725917269172791728917299173091731917329173391734917359173691737917389173991740917419174291743917449174591746917479174891749917509175191752917539175491755917569175791758917599176091761917629176391764917659176691767917689176991770917719177291773917749177591776917779177891779917809178191782917839178491785917869178791788917899179091791917929179391794917959179691797917989179991800918019180291803918049180591806918079180891809918109181191812918139181491815918169181791818918199182091821918229182391824918259182691827918289182991830918319183291833918349183591836918379183891839918409184191842918439184491845918469184791848918499185091851918529185391854918559185691857918589185991860918619186291863918649186591866918679186891869918709187191872918739187491875918769187791878918799188091881918829188391884918859188691887918889188991890918919189291893918949189591896918979189891899919009190191902919039190491905919069190791908919099191091911919129191391914919159191691917919189191991920919219192291923919249192591926919279192891929919309193191932919339193491935919369193791938919399194091941919429194391944919459194691947919489194991950919519195291953919549195591956919579195891959919609196191962919639196491965919669196791968919699197091971919729197391974919759197691977919789197991980919819198291983919849198591986919879198891989919909199191992919939199491995919969199791998919999200092001920029200392004920059200692007920089200992010920119201292013920149201592016920179201892019920209202192022920239202492025920269202792028920299203092031920329203392034920359203692037920389203992040920419204292043920449204592046920479204892049920509205192052920539205492055920569205792058920599206092061920629206392064920659206692067920689206992070920719207292073920749207592076920779207892079920809208192082920839208492085920869208792088920899209092091920929209392094920959209692097920989209992100921019210292103921049210592106921079210892109921109211192112921139211492115921169211792118921199212092121921229212392124921259212692127921289212992130921319213292133921349213592136921379213892139921409214192142921439214492145921469214792148921499215092151921529215392154921559215692157921589215992160921619216292163921649216592166921679216892169921709217192172921739217492175921769217792178921799218092181921829218392184921859218692187921889218992190921919219292193921949219592196921979219892199922009220192202922039220492205922069220792208922099221092211922129221392214922159221692217922189221992220922219222292223922249222592226922279222892229922309223192232922339223492235922369223792238922399224092241922429224392244922459224692247922489224992250922519225292253922549225592256922579225892259922609226192262922639226492265922669226792268922699227092271922729227392274922759227692277922789227992280922819228292283922849228592286922879228892289922909229192292922939229492295922969229792298922999230092301923029230392304923059230692307923089230992310923119231292313923149231592316923179231892319923209232192322923239232492325923269232792328923299233092331923329233392334923359233692337923389233992340923419234292343923449234592346923479234892349923509235192352923539235492355923569235792358923599236092361923629236392364923659236692367923689236992370923719237292373923749237592376923779237892379923809238192382923839238492385923869238792388923899239092391923929239392394923959239692397923989239992400924019240292403924049240592406924079240892409924109241192412924139241492415924169241792418924199242092421924229242392424924259242692427924289242992430924319243292433924349243592436924379243892439924409244192442924439244492445924469244792448924499245092451924529245392454924559245692457924589245992460924619246292463924649246592466924679246892469924709247192472924739247492475924769247792478924799248092481924829248392484924859248692487924889248992490924919249292493924949249592496924979249892499925009250192502925039250492505925069250792508925099251092511925129251392514925159251692517925189251992520925219252292523925249252592526925279252892529925309253192532925339253492535925369253792538925399254092541925429254392544925459254692547925489254992550925519255292553925549255592556925579255892559925609256192562925639256492565925669256792568925699257092571925729257392574925759257692577925789257992580925819258292583925849258592586925879258892589925909259192592925939259492595925969259792598925999260092601926029260392604926059260692607926089260992610926119261292613926149261592616926179261892619926209262192622926239262492625926269262792628926299263092631926329263392634926359263692637926389263992640926419264292643926449264592646926479264892649926509265192652926539265492655926569265792658926599266092661926629266392664926659266692667926689266992670926719267292673926749267592676926779267892679926809268192682926839268492685926869268792688926899269092691926929269392694926959269692697926989269992700927019270292703927049270592706927079270892709927109271192712927139271492715927169271792718927199272092721927229272392724927259272692727927289272992730927319273292733927349273592736927379273892739927409274192742927439274492745927469274792748927499275092751927529275392754927559275692757927589275992760927619276292763927649276592766927679276892769927709277192772927739277492775927769277792778927799278092781927829278392784927859278692787927889278992790927919279292793927949279592796927979279892799928009280192802928039280492805928069280792808928099281092811928129281392814928159281692817928189281992820928219282292823928249282592826928279282892829928309283192832928339283492835928369283792838928399284092841928429284392844928459284692847928489284992850928519285292853928549285592856928579285892859928609286192862928639286492865928669286792868928699287092871928729287392874928759287692877928789287992880928819288292883928849288592886928879288892889928909289192892928939289492895928969289792898928999290092901929029290392904929059290692907929089290992910929119291292913929149291592916929179291892919929209292192922929239292492925929269292792928929299293092931929329293392934929359293692937929389293992940929419294292943929449294592946929479294892949929509295192952929539295492955929569295792958929599296092961929629296392964929659296692967929689296992970929719297292973929749297592976929779297892979929809298192982929839298492985929869298792988929899299092991929929299392994929959299692997929989299993000930019300293003930049300593006930079300893009930109301193012930139301493015930169301793018930199302093021930229302393024930259302693027930289302993030930319303293033930349303593036930379303893039930409304193042930439304493045930469304793048930499305093051930529305393054930559305693057930589305993060930619306293063930649306593066930679306893069930709307193072930739307493075930769307793078930799308093081930829308393084930859308693087930889308993090930919309293093930949309593096930979309893099931009310193102931039310493105931069310793108931099311093111931129311393114931159311693117931189311993120931219312293123931249312593126931279312893129931309313193132931339313493135931369313793138931399314093141931429314393144931459314693147931489314993150931519315293153931549315593156931579315893159931609316193162931639316493165931669316793168931699317093171931729317393174931759317693177931789317993180931819318293183931849318593186931879318893189931909319193192931939319493195931969319793198931999320093201932029320393204932059320693207932089320993210932119321293213932149321593216932179321893219932209322193222932239322493225932269322793228932299323093231932329323393234932359323693237932389323993240932419324293243932449324593246932479324893249932509325193252932539325493255932569325793258932599326093261932629326393264932659326693267932689326993270932719327293273932749327593276932779327893279932809328193282932839328493285932869328793288932899329093291932929329393294932959329693297932989329993300933019330293303933049330593306933079330893309933109331193312933139331493315933169331793318933199332093321933229332393324933259332693327933289332993330933319333293333933349333593336933379333893339933409334193342933439334493345933469334793348933499335093351933529335393354933559335693357933589335993360933619336293363933649336593366933679336893369933709337193372933739337493375933769337793378933799338093381933829338393384933859338693387933889338993390933919339293393933949339593396933979339893399934009340193402934039340493405934069340793408934099341093411934129341393414934159341693417934189341993420934219342293423934249342593426934279342893429934309343193432934339343493435934369343793438934399344093441934429344393444934459344693447934489344993450934519345293453934549345593456934579345893459934609346193462934639346493465934669346793468934699347093471934729347393474934759347693477934789347993480934819348293483934849348593486934879348893489934909349193492934939349493495934969349793498934999350093501935029350393504935059350693507935089350993510935119351293513935149351593516935179351893519935209352193522935239352493525935269352793528935299353093531935329353393534935359353693537935389353993540935419354293543935449354593546935479354893549935509355193552935539355493555935569355793558935599356093561935629356393564935659356693567935689356993570935719357293573935749357593576935779357893579935809358193582935839358493585935869358793588935899359093591935929359393594935959359693597935989359993600936019360293603936049360593606936079360893609936109361193612936139361493615936169361793618936199362093621936229362393624936259362693627936289362993630936319363293633936349363593636936379363893639936409364193642936439364493645936469364793648936499365093651936529365393654936559365693657936589365993660936619366293663936649366593666936679366893669936709367193672936739367493675936769367793678936799368093681936829368393684936859368693687936889368993690936919369293693936949369593696936979369893699937009370193702937039370493705937069370793708937099371093711937129371393714937159371693717937189371993720937219372293723937249372593726937279372893729937309373193732937339373493735937369373793738937399374093741937429374393744937459374693747937489374993750937519375293753937549375593756937579375893759937609376193762937639376493765937669376793768937699377093771937729377393774937759377693777937789377993780937819378293783937849378593786937879378893789937909379193792937939379493795937969379793798937999380093801938029380393804938059380693807938089380993810938119381293813938149381593816938179381893819938209382193822938239382493825938269382793828938299383093831938329383393834938359383693837938389383993840938419384293843938449384593846938479384893849938509385193852938539385493855938569385793858938599386093861938629386393864938659386693867938689386993870938719387293873938749387593876938779387893879938809388193882938839388493885938869388793888938899389093891938929389393894938959389693897938989389993900939019390293903939049390593906939079390893909939109391193912939139391493915939169391793918939199392093921939229392393924939259392693927939289392993930939319393293933939349393593936939379393893939939409394193942939439394493945939469394793948939499395093951939529395393954939559395693957939589395993960939619396293963939649396593966939679396893969939709397193972939739397493975939769397793978939799398093981939829398393984939859398693987939889398993990939919399293993939949399593996939979399893999940009400194002940039400494005940069400794008940099401094011940129401394014940159401694017940189401994020940219402294023940249402594026940279402894029940309403194032940339403494035940369403794038940399404094041940429404394044940459404694047940489404994050940519405294053940549405594056940579405894059940609406194062940639406494065940669406794068940699407094071940729407394074940759407694077940789407994080940819408294083940849408594086940879408894089940909409194092940939409494095940969409794098940999410094101941029410394104941059410694107941089410994110941119411294113941149411594116941179411894119941209412194122941239412494125941269412794128941299413094131941329413394134941359413694137941389413994140941419414294143941449414594146941479414894149941509415194152941539415494155941569415794158941599416094161941629416394164941659416694167941689416994170941719417294173941749417594176941779417894179941809418194182941839418494185941869418794188941899419094191941929419394194941959419694197941989419994200942019420294203942049420594206942079420894209942109421194212942139421494215942169421794218942199422094221942229422394224942259422694227942289422994230942319423294233942349423594236942379423894239942409424194242942439424494245942469424794248942499425094251942529425394254942559425694257942589425994260942619426294263942649426594266942679426894269942709427194272942739427494275942769427794278942799428094281942829428394284942859428694287942889428994290942919429294293942949429594296942979429894299943009430194302943039430494305943069430794308943099431094311943129431394314943159431694317943189431994320943219432294323943249432594326943279432894329943309433194332943339433494335943369433794338943399434094341943429434394344943459434694347943489434994350943519435294353943549435594356943579435894359943609436194362943639436494365943669436794368943699437094371943729437394374943759437694377943789437994380943819438294383943849438594386943879438894389943909439194392943939439494395943969439794398943999440094401944029440394404944059440694407944089440994410944119441294413944149441594416944179441894419944209442194422944239442494425944269442794428944299443094431944329443394434944359443694437944389443994440944419444294443944449444594446944479444894449944509445194452944539445494455944569445794458944599446094461944629446394464944659446694467944689446994470944719447294473944749447594476944779447894479944809448194482944839448494485944869448794488944899449094491944929449394494944959449694497944989449994500945019450294503945049450594506945079450894509945109451194512945139451494515945169451794518945199452094521945229452394524945259452694527945289452994530945319453294533945349453594536945379453894539945409454194542945439454494545945469454794548945499455094551945529455394554945559455694557945589455994560945619456294563945649456594566945679456894569945709457194572945739457494575945769457794578945799458094581945829458394584945859458694587945889458994590945919459294593945949459594596945979459894599946009460194602946039460494605946069460794608946099461094611946129461394614946159461694617946189461994620946219462294623946249462594626946279462894629946309463194632946339463494635946369463794638946399464094641946429464394644946459464694647946489464994650946519465294653946549465594656946579465894659946609466194662946639466494665946669466794668946699467094671946729467394674946759467694677946789467994680946819468294683946849468594686946879468894689946909469194692946939469494695946969469794698946999470094701947029470394704947059470694707947089470994710947119471294713947149471594716947179471894719947209472194722947239472494725947269472794728947299473094731947329473394734947359473694737947389473994740947419474294743947449474594746947479474894749947509475194752947539475494755947569475794758947599476094761947629476394764947659476694767947689476994770947719477294773947749477594776947779477894779947809478194782947839478494785947869478794788947899479094791947929479394794947959479694797947989479994800948019480294803948049480594806948079480894809948109481194812948139481494815948169481794818948199482094821948229482394824948259482694827948289482994830948319483294833948349483594836948379483894839948409484194842948439484494845948469484794848948499485094851948529485394854948559485694857948589485994860948619486294863948649486594866948679486894869948709487194872948739487494875948769487794878948799488094881948829488394884948859488694887948889488994890948919489294893948949489594896948979489894899949009490194902949039490494905949069490794908949099491094911949129491394914949159491694917949189491994920949219492294923949249492594926949279492894929949309493194932949339493494935949369493794938949399494094941949429494394944949459494694947949489494994950949519495294953949549495594956949579495894959949609496194962949639496494965949669496794968949699497094971949729497394974949759497694977949789497994980949819498294983949849498594986949879498894989949909499194992949939499494995949969499794998949999500095001950029500395004950059500695007950089500995010950119501295013950149501595016950179501895019950209502195022950239502495025950269502795028950299503095031950329503395034950359503695037950389503995040950419504295043950449504595046950479504895049950509505195052950539505495055950569505795058950599506095061950629506395064950659506695067950689506995070950719507295073950749507595076950779507895079950809508195082950839508495085950869508795088950899509095091950929509395094950959509695097950989509995100951019510295103951049510595106951079510895109951109511195112951139511495115951169511795118951199512095121951229512395124951259512695127951289512995130951319513295133951349513595136951379513895139951409514195142951439514495145951469514795148951499515095151951529515395154951559515695157951589515995160951619516295163951649516595166951679516895169951709517195172951739517495175951769517795178951799518095181951829518395184951859518695187951889518995190951919519295193951949519595196951979519895199952009520195202952039520495205952069520795208952099521095211952129521395214952159521695217952189521995220952219522295223952249522595226952279522895229952309523195232952339523495235952369523795238952399524095241952429524395244952459524695247952489524995250952519525295253952549525595256952579525895259952609526195262952639526495265952669526795268952699527095271952729527395274952759527695277952789527995280952819528295283952849528595286952879528895289952909529195292952939529495295952969529795298952999530095301953029530395304953059530695307953089530995310953119531295313953149531595316953179531895319953209532195322953239532495325953269532795328953299533095331953329533395334953359533695337953389533995340953419534295343953449534595346953479534895349953509535195352953539535495355953569535795358953599536095361953629536395364953659536695367953689536995370953719537295373953749537595376953779537895379953809538195382953839538495385953869538795388953899539095391953929539395394953959539695397953989539995400954019540295403954049540595406954079540895409954109541195412954139541495415954169541795418954199542095421954229542395424954259542695427954289542995430954319543295433954349543595436954379543895439954409544195442954439544495445954469544795448954499545095451954529545395454954559545695457954589545995460954619546295463954649546595466954679546895469954709547195472954739547495475954769547795478954799548095481954829548395484954859548695487954889548995490954919549295493954949549595496954979549895499955009550195502955039550495505955069550795508955099551095511955129551395514955159551695517955189551995520955219552295523955249552595526955279552895529955309553195532955339553495535955369553795538955399554095541955429554395544955459554695547955489554995550955519555295553955549555595556955579555895559955609556195562955639556495565955669556795568955699557095571955729557395574955759557695577955789557995580955819558295583955849558595586955879558895589955909559195592955939559495595955969559795598955999560095601956029560395604956059560695607956089560995610956119561295613956149561595616956179561895619956209562195622956239562495625956269562795628956299563095631956329563395634956359563695637956389563995640956419564295643956449564595646956479564895649956509565195652956539565495655956569565795658956599566095661956629566395664956659566695667956689566995670956719567295673956749567595676956779567895679956809568195682956839568495685956869568795688956899569095691956929569395694956959569695697956989569995700957019570295703957049570595706957079570895709957109571195712957139571495715957169571795718957199572095721957229572395724957259572695727957289572995730957319573295733957349573595736957379573895739957409574195742957439574495745957469574795748957499575095751957529575395754957559575695757957589575995760957619576295763957649576595766957679576895769957709577195772957739577495775957769577795778957799578095781957829578395784957859578695787957889578995790957919579295793957949579595796957979579895799958009580195802958039580495805958069580795808958099581095811958129581395814958159581695817958189581995820958219582295823958249582595826958279582895829958309583195832958339583495835958369583795838958399584095841958429584395844958459584695847958489584995850958519585295853958549585595856958579585895859958609586195862958639586495865958669586795868958699587095871958729587395874958759587695877958789587995880958819588295883958849588595886958879588895889958909589195892958939589495895958969589795898958999590095901959029590395904959059590695907959089590995910959119591295913959149591595916959179591895919959209592195922959239592495925959269592795928959299593095931959329593395934959359593695937959389593995940959419594295943959449594595946959479594895949959509595195952959539595495955959569595795958959599596095961959629596395964959659596695967959689596995970959719597295973959749597595976959779597895979959809598195982959839598495985959869598795988959899599095991959929599395994959959599695997959989599996000960019600296003960049600596006960079600896009960109601196012960139601496015960169601796018960199602096021960229602396024960259602696027960289602996030960319603296033960349603596036960379603896039960409604196042960439604496045960469604796048960499605096051960529605396054960559605696057960589605996060960619606296063960649606596066960679606896069960709607196072960739607496075960769607796078960799608096081960829608396084960859608696087960889608996090960919609296093960949609596096960979609896099961009610196102961039610496105961069610796108961099611096111961129611396114961159611696117961189611996120961219612296123961249612596126961279612896129961309613196132961339613496135961369613796138961399614096141961429614396144961459614696147961489614996150961519615296153961549615596156961579615896159961609616196162961639616496165961669616796168961699617096171961729617396174961759617696177961789617996180961819618296183961849618596186961879618896189961909619196192961939619496195961969619796198961999620096201962029620396204962059620696207962089620996210962119621296213962149621596216962179621896219962209622196222962239622496225962269622796228962299623096231962329623396234962359623696237962389623996240962419624296243962449624596246962479624896249962509625196252962539625496255962569625796258962599626096261962629626396264962659626696267962689626996270962719627296273962749627596276962779627896279962809628196282962839628496285962869628796288962899629096291962929629396294962959629696297962989629996300963019630296303963049630596306963079630896309963109631196312963139631496315963169631796318963199632096321963229632396324963259632696327963289632996330963319633296333963349633596336963379633896339963409634196342963439634496345963469634796348963499635096351963529635396354963559635696357963589635996360963619636296363963649636596366963679636896369963709637196372963739637496375963769637796378963799638096381963829638396384963859638696387963889638996390963919639296393963949639596396963979639896399964009640196402964039640496405964069640796408964099641096411964129641396414964159641696417964189641996420964219642296423964249642596426964279642896429964309643196432964339643496435964369643796438964399644096441964429644396444964459644696447964489644996450964519645296453964549645596456964579645896459964609646196462964639646496465964669646796468964699647096471964729647396474964759647696477964789647996480964819648296483964849648596486964879648896489964909649196492964939649496495964969649796498964999650096501965029650396504965059650696507965089650996510965119651296513965149651596516965179651896519965209652196522965239652496525965269652796528965299653096531965329653396534965359653696537965389653996540965419654296543965449654596546965479654896549965509655196552965539655496555965569655796558965599656096561965629656396564965659656696567965689656996570965719657296573965749657596576965779657896579965809658196582965839658496585965869658796588965899659096591965929659396594965959659696597965989659996600966019660296603966049660596606966079660896609966109661196612966139661496615966169661796618966199662096621966229662396624966259662696627966289662996630966319663296633966349663596636966379663896639966409664196642966439664496645966469664796648966499665096651966529665396654966559665696657966589665996660966619666296663966649666596666966679666896669966709667196672966739667496675966769667796678966799668096681966829668396684966859668696687966889668996690966919669296693966949669596696966979669896699967009670196702967039670496705967069670796708967099671096711967129671396714967159671696717967189671996720967219672296723967249672596726967279672896729967309673196732967339673496735967369673796738967399674096741967429674396744967459674696747967489674996750967519675296753967549675596756967579675896759967609676196762967639676496765967669676796768967699677096771967729677396774967759677696777967789677996780967819678296783967849678596786967879678896789967909679196792967939679496795967969679796798967999680096801968029680396804968059680696807968089680996810968119681296813968149681596816968179681896819968209682196822968239682496825968269682796828968299683096831968329683396834968359683696837968389683996840968419684296843968449684596846968479684896849968509685196852968539685496855968569685796858968599686096861968629686396864968659686696867968689686996870968719687296873968749687596876968779687896879968809688196882968839688496885968869688796888968899689096891968929689396894968959689696897968989689996900969019690296903969049690596906969079690896909969109691196912969139691496915969169691796918969199692096921969229692396924969259692696927969289692996930969319693296933969349693596936969379693896939969409694196942969439694496945969469694796948969499695096951969529695396954969559695696957969589695996960969619696296963969649696596966969679696896969969709697196972969739697496975969769697796978969799698096981969829698396984969859698696987969889698996990969919699296993969949699596996969979699896999970009700197002970039700497005970069700797008970099701097011970129701397014970159701697017970189701997020970219702297023970249702597026970279702897029970309703197032970339703497035970369703797038970399704097041970429704397044970459704697047970489704997050970519705297053970549705597056970579705897059970609706197062970639706497065970669706797068970699707097071970729707397074970759707697077970789707997080970819708297083970849708597086970879708897089970909709197092970939709497095970969709797098970999710097101971029710397104971059710697107971089710997110971119711297113971149711597116971179711897119971209712197122971239712497125971269712797128971299713097131971329713397134971359713697137971389713997140971419714297143971449714597146971479714897149971509715197152971539715497155971569715797158971599716097161971629716397164971659716697167971689716997170971719717297173971749717597176971779717897179971809718197182971839718497185971869718797188971899719097191971929719397194971959719697197971989719997200972019720297203972049720597206972079720897209972109721197212972139721497215972169721797218972199722097221972229722397224972259722697227972289722997230972319723297233972349723597236972379723897239972409724197242972439724497245972469724797248972499725097251972529725397254972559725697257972589725997260972619726297263972649726597266972679726897269972709727197272972739727497275972769727797278972799728097281972829728397284972859728697287972889728997290972919729297293972949729597296972979729897299973009730197302973039730497305973069730797308973099731097311973129731397314973159731697317973189731997320973219732297323973249732597326973279732897329973309733197332973339733497335973369733797338973399734097341973429734397344973459734697347973489734997350973519735297353973549735597356973579735897359973609736197362973639736497365973669736797368973699737097371973729737397374973759737697377973789737997380973819738297383973849738597386973879738897389973909739197392973939739497395973969739797398973999740097401974029740397404974059740697407974089740997410974119741297413974149741597416974179741897419974209742197422974239742497425974269742797428974299743097431974329743397434974359743697437974389743997440974419744297443974449744597446974479744897449974509745197452974539745497455974569745797458974599746097461974629746397464974659746697467974689746997470974719747297473974749747597476974779747897479974809748197482974839748497485974869748797488974899749097491974929749397494974959749697497974989749997500975019750297503975049750597506975079750897509975109751197512975139751497515975169751797518975199752097521975229752397524975259752697527975289752997530975319753297533975349753597536975379753897539975409754197542975439754497545975469754797548975499755097551975529755397554975559755697557975589755997560975619756297563975649756597566975679756897569975709757197572975739757497575975769757797578975799758097581975829758397584975859758697587975889758997590975919759297593975949759597596975979759897599976009760197602976039760497605976069760797608976099761097611976129761397614976159761697617976189761997620976219762297623976249762597626976279762897629976309763197632976339763497635976369763797638976399764097641976429764397644976459764697647976489764997650976519765297653976549765597656976579765897659976609766197662976639766497665976669766797668976699767097671976729767397674976759767697677976789767997680976819768297683976849768597686976879768897689976909769197692976939769497695976969769797698976999770097701977029770397704977059770697707977089770997710977119771297713977149771597716977179771897719977209772197722977239772497725977269772797728977299773097731977329773397734977359773697737977389773997740977419774297743977449774597746977479774897749977509775197752977539775497755977569775797758977599776097761977629776397764977659776697767977689776997770977719777297773977749777597776977779777897779977809778197782977839778497785977869778797788977899779097791977929779397794977959779697797977989779997800978019780297803978049780597806978079780897809978109781197812978139781497815978169781797818978199782097821978229782397824978259782697827978289782997830978319783297833978349783597836978379783897839978409784197842978439784497845978469784797848978499785097851978529785397854978559785697857978589785997860978619786297863978649786597866978679786897869978709787197872978739787497875978769787797878978799788097881978829788397884978859788697887978889788997890978919789297893978949789597896978979789897899979009790197902979039790497905979069790797908979099791097911979129791397914979159791697917979189791997920979219792297923979249792597926979279792897929979309793197932979339793497935979369793797938979399794097941979429794397944979459794697947979489794997950979519795297953979549795597956979579795897959979609796197962979639796497965979669796797968979699797097971979729797397974979759797697977979789797997980979819798297983979849798597986979879798897989979909799197992979939799497995979969799797998979999800098001980029800398004980059800698007980089800998010980119801298013980149801598016980179801898019980209802198022980239802498025980269802798028980299803098031980329803398034980359803698037980389803998040980419804298043980449804598046980479804898049980509805198052980539805498055980569805798058980599806098061980629806398064980659806698067980689806998070980719807298073980749807598076980779807898079980809808198082980839808498085980869808798088980899809098091980929809398094980959809698097980989809998100981019810298103981049810598106981079810898109981109811198112981139811498115981169811798118981199812098121981229812398124981259812698127981289812998130981319813298133981349813598136981379813898139981409814198142981439814498145981469814798148981499815098151981529815398154981559815698157981589815998160981619816298163981649816598166981679816898169981709817198172981739817498175981769817798178981799818098181981829818398184981859818698187981889818998190981919819298193981949819598196981979819898199982009820198202982039820498205982069820798208982099821098211982129821398214982159821698217982189821998220982219822298223982249822598226982279822898229982309823198232982339823498235982369823798238982399824098241982429824398244982459824698247982489824998250982519825298253982549825598256982579825898259982609826198262982639826498265982669826798268982699827098271982729827398274982759827698277982789827998280982819828298283982849828598286982879828898289982909829198292982939829498295982969829798298982999830098301983029830398304983059830698307983089830998310983119831298313983149831598316983179831898319983209832198322983239832498325983269832798328983299833098331983329833398334983359833698337983389833998340983419834298343983449834598346983479834898349983509835198352983539835498355983569835798358983599836098361983629836398364983659836698367983689836998370983719837298373983749837598376983779837898379983809838198382983839838498385983869838798388983899839098391983929839398394983959839698397983989839998400984019840298403984049840598406984079840898409984109841198412984139841498415984169841798418984199842098421984229842398424984259842698427984289842998430984319843298433984349843598436984379843898439984409844198442984439844498445984469844798448984499845098451984529845398454984559845698457984589845998460984619846298463984649846598466984679846898469984709847198472984739847498475984769847798478984799848098481984829848398484984859848698487984889848998490984919849298493984949849598496984979849898499985009850198502985039850498505985069850798508985099851098511985129851398514985159851698517985189851998520985219852298523985249852598526985279852898529985309853198532985339853498535985369853798538985399854098541985429854398544985459854698547985489854998550985519855298553985549855598556985579855898559985609856198562985639856498565985669856798568985699857098571985729857398574985759857698577985789857998580985819858298583985849858598586985879858898589985909859198592985939859498595985969859798598985999860098601986029860398604986059860698607986089860998610986119861298613986149861598616986179861898619986209862198622986239862498625986269862798628986299863098631986329863398634986359863698637986389863998640986419864298643986449864598646986479864898649986509865198652986539865498655986569865798658986599866098661986629866398664986659866698667986689866998670986719867298673986749867598676986779867898679986809868198682986839868498685986869868798688986899869098691986929869398694986959869698697986989869998700987019870298703987049870598706987079870898709987109871198712987139871498715987169871798718987199872098721987229872398724987259872698727987289872998730987319873298733987349873598736987379873898739987409874198742987439874498745987469874798748987499875098751987529875398754987559875698757987589875998760987619876298763987649876598766987679876898769987709877198772987739877498775987769877798778987799878098781987829878398784987859878698787987889878998790987919879298793987949879598796987979879898799988009880198802988039880498805988069880798808988099881098811988129881398814988159881698817988189881998820988219882298823988249882598826988279882898829988309883198832988339883498835988369883798838988399884098841988429884398844988459884698847988489884998850988519885298853988549885598856988579885898859988609886198862988639886498865988669886798868988699887098871988729887398874988759887698877988789887998880988819888298883988849888598886988879888898889988909889198892988939889498895988969889798898988999890098901989029890398904989059890698907989089890998910989119891298913989149891598916989179891898919989209892198922989239892498925989269892798928989299893098931989329893398934989359893698937989389893998940989419894298943989449894598946989479894898949989509895198952989539895498955989569895798958989599896098961989629896398964989659896698967989689896998970989719897298973989749897598976989779897898979989809898198982989839898498985989869898798988989899899098991989929899398994989959899698997989989899999000990019900299003990049900599006990079900899009990109901199012990139901499015990169901799018990199902099021990229902399024990259902699027990289902999030990319903299033990349903599036990379903899039990409904199042990439904499045990469904799048990499905099051990529905399054990559905699057990589905999060990619906299063990649906599066990679906899069990709907199072990739907499075990769907799078990799908099081990829908399084990859908699087990889908999090990919909299093990949909599096990979909899099991009910199102991039910499105991069910799108991099911099111991129911399114991159911699117991189911999120991219912299123991249912599126991279912899129991309913199132991339913499135991369913799138991399914099141991429914399144991459914699147991489914999150991519915299153991549915599156991579915899159991609916199162991639916499165991669916799168991699917099171991729917399174991759917699177991789917999180991819918299183991849918599186991879918899189991909919199192991939919499195991969919799198991999920099201992029920399204992059920699207992089920999210992119921299213992149921599216992179921899219992209922199222992239922499225992269922799228992299923099231992329923399234992359923699237992389923999240992419924299243992449924599246992479924899249992509925199252992539925499255992569925799258992599926099261992629926399264992659926699267992689926999270992719927299273992749927599276992779927899279992809928199282992839928499285992869928799288992899929099291992929929399294992959929699297992989929999300993019930299303993049930599306993079930899309993109931199312993139931499315993169931799318993199932099321993229932399324993259932699327993289932999330993319933299333993349933599336993379933899339993409934199342993439934499345993469934799348993499935099351993529935399354993559935699357993589935999360993619936299363993649936599366993679936899369993709937199372993739937499375993769937799378993799938099381993829938399384993859938699387993889938999390993919939299393993949939599396993979939899399994009940199402994039940499405994069940799408994099941099411994129941399414994159941699417994189941999420994219942299423994249942599426994279942899429994309943199432994339943499435994369943799438994399944099441994429944399444994459944699447994489944999450994519945299453994549945599456994579945899459994609946199462994639946499465994669946799468994699947099471994729947399474994759947699477994789947999480994819948299483994849948599486994879948899489994909949199492994939949499495994969949799498994999950099501995029950399504995059950699507995089950999510995119951299513995149951599516995179951899519995209952199522995239952499525995269952799528995299953099531995329953399534995359953699537995389953999540995419954299543995449954599546995479954899549995509955199552995539955499555995569955799558995599956099561995629956399564995659956699567995689956999570995719957299573995749957599576995779957899579995809958199582995839958499585995869958799588995899959099591995929959399594995959959699597995989959999600996019960299603996049960599606996079960899609996109961199612996139961499615996169961799618996199962099621996229962399624996259962699627996289962999630996319963299633996349963599636996379963899639996409964199642996439964499645996469964799648996499965099651996529965399654996559965699657996589965999660996619966299663996649966599666996679966899669996709967199672996739967499675996769967799678996799968099681996829968399684996859968699687996889968999690996919969299693996949969599696996979969899699997009970199702997039970499705997069970799708997099971099711997129971399714997159971699717997189971999720997219972299723997249972599726997279972899729997309973199732997339973499735997369973799738997399974099741997429974399744997459974699747997489974999750997519975299753997549975599756997579975899759997609976199762997639976499765997669976799768997699977099771997729977399774997759977699777997789977999780997819978299783997849978599786997879978899789997909979199792997939979499795997969979799798997999980099801998029980399804998059980699807998089980999810998119981299813998149981599816998179981899819998209982199822998239982499825998269982799828998299983099831998329983399834998359983699837998389983999840998419984299843998449984599846998479984899849998509985199852998539985499855998569985799858998599986099861998629986399864998659986699867998689986999870998719987299873998749987599876998779987899879998809988199882998839988499885998869988799888998899989099891998929989399894998959989699897998989989999900999019990299903999049990599906999079990899909999109991199912999139991499915999169991799918999199992099921999229992399924999259992699927999289992999930999319993299933999349993599936999379993899939999409994199942999439994499945999469994799948999499995099951999529995399954999559995699957999589995999960999619996299963999649996599966999679996899969999709997199972999739997499975999769997799978999799998099981999829998399984999859998699987999889998999990999919999299993999949999599996999979999899999100000100001100002100003100004100005100006100007100008100009100010100011100012100013100014100015100016100017100018100019100020100021100022100023100024100025100026100027100028100029100030100031100032100033100034100035100036100037100038100039100040100041100042100043100044100045100046100047100048100049100050100051100052100053100054100055100056100057100058100059100060100061100062100063100064100065100066100067100068100069100070100071100072100073100074100075100076100077100078100079100080100081100082100083100084100085100086100087100088100089100090100091100092100093100094100095100096100097100098100099100100100101100102100103100104100105100106100107100108100109100110100111100112100113100114100115100116100117100118100119100120100121100122100123100124100125100126100127100128100129100130100131100132100133100134100135100136100137100138100139100140100141100142100143100144100145100146100147100148100149100150100151100152100153100154100155100156100157100158100159100160100161100162100163100164100165100166100167100168100169100170100171100172100173100174100175100176100177100178100179100180100181100182100183100184100185100186100187100188100189100190100191100192100193100194100195100196100197100198100199100200100201100202100203100204100205100206100207100208100209100210100211100212100213100214100215100216100217100218100219100220100221100222100223100224100225100226100227100228100229100230100231100232100233100234100235100236100237100238100239100240100241100242100243100244100245100246100247100248100249100250100251100252100253100254100255100256100257100258100259100260100261100262100263100264100265100266100267100268100269100270100271100272100273100274100275100276100277100278100279100280100281100282100283100284100285100286100287100288100289100290100291100292100293100294100295100296100297100298100299100300100301100302100303100304100305100306100307100308100309100310100311100312100313100314100315100316100317100318100319100320100321100322100323100324100325100326100327100328100329100330100331100332100333100334100335100336100337100338100339100340100341100342100343100344100345100346100347100348100349100350100351100352100353100354100355100356100357100358100359100360100361100362100363100364100365100366100367100368100369100370100371100372100373100374100375100376100377100378100379100380100381100382100383100384100385100386100387100388100389100390100391100392100393100394100395100396100397100398100399100400100401100402100403100404100405100406100407100408100409100410100411100412100413100414100415100416100417100418100419100420100421100422100423100424100425100426100427100428100429100430100431100432100433100434100435100436100437100438100439100440100441100442100443100444100445100446100447100448100449100450100451100452100453100454100455100456100457100458100459100460100461100462100463100464100465100466100467100468100469100470100471100472100473100474100475100476100477100478100479100480100481100482100483100484100485100486100487100488100489100490100491100492100493100494100495100496100497100498100499100500100501100502100503100504100505100506100507100508100509100510100511100512100513100514100515100516100517100518100519100520100521100522100523100524100525100526100527100528100529100530100531100532100533100534100535100536100537100538100539100540100541100542100543100544100545100546100547100548100549100550100551100552100553100554100555100556100557100558100559100560100561100562100563100564100565100566100567100568100569100570100571100572100573100574100575100576100577100578100579100580100581100582100583100584100585100586100587100588100589100590100591100592100593100594100595100596100597100598100599100600100601100602100603100604100605100606100607100608100609100610100611100612100613100614100615100616100617100618100619100620100621100622100623100624100625100626100627100628100629100630100631100632100633100634100635100636100637100638100639100640100641100642100643100644100645100646100647100648100649100650100651100652100653100654100655100656100657100658100659100660100661100662100663100664100665100666100667100668100669100670100671100672100673100674100675100676100677100678100679100680100681100682100683100684100685100686100687100688100689100690100691100692100693100694100695100696100697100698100699100700100701100702100703100704100705100706100707100708100709100710100711100712100713100714100715100716100717100718100719100720100721100722100723100724100725100726100727100728100729100730100731100732100733100734100735100736100737100738100739100740100741100742100743100744100745100746100747100748100749100750100751100752100753100754100755100756100757100758100759100760100761100762100763100764100765100766100767100768100769100770100771100772100773100774100775100776100777100778100779100780100781100782100783100784100785100786100787100788100789100790100791100792100793100794100795100796100797100798100799100800100801100802100803100804100805100806100807100808100809100810100811100812100813100814100815100816100817100818100819100820100821100822100823100824100825100826100827100828100829100830100831100832100833100834100835100836100837100838100839100840100841100842100843100844100845100846100847100848100849100850100851100852100853100854100855100856100857100858100859100860100861100862100863100864100865100866100867100868100869100870100871100872100873100874100875100876100877100878100879100880100881100882100883100884100885100886100887100888100889100890100891100892100893100894100895100896100897100898100899100900100901100902100903100904100905100906100907100908100909100910100911100912100913100914100915100916100917100918100919100920100921100922100923100924100925100926100927100928100929100930100931100932100933100934100935100936100937100938100939100940100941100942100943100944100945100946100947100948100949100950100951100952100953100954100955100956100957100958100959100960100961100962100963100964100965100966100967100968100969100970100971100972100973100974100975100976100977100978100979100980100981100982100983100984100985100986100987100988100989100990100991100992100993100994100995100996100997100998100999101000101001101002101003101004101005101006101007101008101009101010101011101012101013101014101015101016101017101018101019101020101021101022101023101024101025101026101027101028101029101030101031101032101033101034101035101036101037101038101039101040101041101042101043101044101045101046101047101048101049101050101051101052101053101054101055101056101057101058101059101060101061101062101063101064101065101066101067101068101069101070101071101072101073101074101075101076101077101078101079101080101081101082101083101084101085101086101087101088101089101090101091101092101093101094101095101096101097101098101099101100101101101102101103101104101105101106101107101108101109101110101111101112101113101114101115101116101117101118101119101120101121101122101123101124101125101126101127101128101129101130101131101132101133101134101135101136101137101138101139101140101141101142101143101144101145101146101147101148101149101150101151101152101153101154101155101156101157101158101159101160101161101162101163101164101165101166101167101168101169101170101171101172101173101174101175101176101177101178101179101180101181101182101183101184101185101186101187101188101189101190101191101192101193101194101195101196101197101198101199101200101201101202101203101204101205101206101207101208101209101210101211101212101213101214101215101216101217101218101219101220101221101222101223101224101225101226101227101228101229101230101231101232101233101234101235101236101237101238101239101240101241101242101243101244101245101246101247101248101249101250101251101252101253101254101255101256101257101258101259101260101261101262101263101264101265101266101267101268101269101270101271101272101273101274101275101276101277101278101279101280101281101282101283101284101285101286101287101288101289101290101291101292101293101294101295101296101297101298101299101300101301101302101303101304101305101306101307101308101309101310101311101312101313101314101315101316101317101318101319101320101321101322101323101324101325101326101327101328101329101330101331101332101333101334101335101336101337101338101339101340101341101342101343101344101345101346101347101348101349101350101351101352101353101354101355101356101357101358101359101360101361101362101363101364101365101366101367101368101369101370101371101372101373101374101375101376101377101378101379101380101381101382101383101384101385101386101387101388101389101390101391101392101393101394101395101396101397101398101399101400101401101402101403101404101405101406101407101408101409101410101411101412101413101414101415101416101417101418101419101420101421101422101423101424101425101426101427101428101429101430101431101432101433101434101435101436101437101438101439101440101441101442101443101444101445101446101447101448101449101450101451101452101453101454101455101456101457101458101459101460101461101462101463101464101465101466101467101468101469101470101471101472101473101474101475101476101477101478101479101480101481101482101483101484101485101486101487101488101489101490101491101492101493101494101495101496101497101498101499101500101501101502101503101504101505101506101507101508101509101510101511101512101513101514101515101516101517101518101519101520101521101522101523101524101525101526101527101528101529101530101531101532101533101534101535101536101537101538101539101540101541101542101543101544101545101546101547101548101549101550101551101552101553101554101555101556101557101558101559101560101561101562101563101564101565101566101567101568101569101570101571101572101573101574101575101576101577101578101579101580101581101582101583101584101585101586101587101588101589101590101591101592101593101594101595101596101597101598101599101600101601101602101603101604101605101606101607101608101609101610101611101612101613101614101615101616101617101618101619101620101621101622101623101624101625101626101627101628101629101630101631101632101633101634101635101636101637101638101639101640101641101642101643101644101645101646101647101648101649101650101651101652101653101654101655101656101657101658101659101660101661101662101663101664101665101666101667101668101669101670101671101672101673101674101675101676101677101678101679101680101681101682101683101684101685101686101687101688101689101690101691101692101693101694101695101696101697101698101699101700101701101702101703101704101705101706101707101708101709101710101711101712101713101714101715101716101717101718101719101720101721101722101723101724101725101726101727101728101729101730101731101732101733101734101735101736101737101738101739101740101741101742101743101744101745101746101747101748101749101750101751101752101753101754101755101756101757101758101759101760101761101762101763101764101765101766101767101768101769101770101771101772101773101774101775101776101777101778101779101780101781101782101783101784101785101786101787101788101789101790101791101792101793101794101795101796101797101798101799101800101801101802101803101804101805101806101807101808101809101810101811101812101813101814101815101816101817101818101819101820101821101822101823101824101825101826101827101828101829101830101831101832101833101834101835101836101837101838101839101840101841101842101843101844101845101846101847101848101849101850101851101852101853101854101855101856101857101858101859101860101861101862101863101864101865101866101867101868101869101870101871101872101873101874101875101876101877101878101879101880101881101882101883101884101885101886101887101888101889101890101891101892101893101894101895101896101897101898101899101900101901101902101903101904101905101906101907101908101909101910101911101912101913101914101915101916101917101918101919101920101921101922101923101924101925101926101927101928101929101930101931101932101933101934101935101936101937101938101939101940101941101942101943101944101945101946101947101948101949101950101951101952101953101954101955101956101957101958101959101960101961101962101963101964101965101966101967101968101969101970101971101972101973101974101975101976101977101978101979101980101981101982101983101984101985101986101987101988101989101990101991101992101993101994101995101996101997101998101999102000102001102002102003102004102005102006102007102008102009102010102011102012102013102014102015102016102017102018102019102020102021102022102023102024102025102026102027102028102029102030102031102032102033102034102035102036102037102038102039102040102041102042102043102044102045102046102047102048102049102050102051102052102053102054102055102056102057102058102059102060102061102062102063102064102065102066102067102068102069102070102071102072102073102074102075102076102077102078102079102080102081102082102083102084102085102086102087102088102089102090102091102092102093102094102095102096102097102098102099102100102101102102102103102104102105102106102107102108102109102110102111102112102113102114102115102116102117102118102119102120102121102122102123102124102125102126102127102128102129102130102131102132102133102134102135102136102137102138102139102140102141102142102143102144102145102146102147102148102149102150102151102152102153102154102155102156102157102158102159102160102161102162102163102164102165102166102167102168102169102170102171102172102173102174102175102176102177102178102179102180102181102182102183102184102185102186102187102188102189102190102191102192102193102194102195102196102197102198102199102200102201102202102203102204102205102206102207102208102209102210102211102212102213102214102215102216102217102218102219102220102221102222102223102224102225102226102227102228102229102230102231102232102233102234102235102236102237102238102239102240102241102242102243102244102245102246102247102248102249102250102251102252102253102254102255102256102257102258102259102260102261102262102263102264102265102266102267102268102269102270102271102272102273102274102275102276102277102278102279102280102281102282102283102284102285102286102287102288102289102290102291102292102293102294102295102296102297102298102299102300102301102302102303102304102305102306102307102308102309102310102311102312102313102314102315102316102317102318102319102320102321102322102323102324102325102326102327102328102329102330102331102332102333102334102335102336102337102338102339102340102341102342102343102344102345102346102347102348102349102350102351102352102353102354102355102356102357102358102359102360102361102362102363102364102365102366102367102368102369102370102371102372102373102374102375102376102377102378102379102380102381102382102383102384102385102386102387102388102389102390102391102392102393102394102395102396102397102398102399102400102401102402102403102404102405102406102407102408102409102410102411102412102413102414102415102416102417102418102419102420102421102422102423102424102425102426102427102428102429102430102431102432102433102434102435102436102437102438102439102440102441102442102443102444102445102446102447102448102449102450102451102452102453102454102455102456102457102458102459102460102461102462102463102464102465102466102467102468102469102470102471102472102473102474102475102476102477102478102479102480102481102482102483102484102485102486102487102488102489102490102491102492102493102494102495102496102497102498102499102500102501102502102503102504102505102506102507102508102509102510102511102512102513102514102515102516102517102518102519102520102521102522102523102524102525102526102527102528102529102530102531102532102533102534102535102536102537102538102539102540102541102542102543102544102545102546102547102548102549102550102551102552102553102554102555102556102557102558102559102560102561102562102563102564102565102566102567102568102569102570102571102572102573102574102575102576102577102578102579102580102581102582102583102584102585102586102587102588102589102590102591102592102593102594102595102596102597102598102599102600102601102602102603102604102605102606102607102608102609102610102611102612102613102614102615102616102617102618102619102620102621102622102623102624102625102626102627102628102629102630102631102632102633102634102635102636102637102638102639102640102641102642102643102644102645102646102647102648102649102650102651102652102653102654102655102656102657102658102659102660102661102662102663102664102665102666102667102668102669102670102671102672102673102674102675102676102677102678102679102680102681102682102683102684102685102686102687102688102689102690102691102692102693102694102695102696102697102698102699102700102701102702102703102704102705102706102707102708102709102710102711102712102713102714102715102716102717102718102719102720102721102722102723102724102725102726102727102728102729102730102731102732102733102734102735102736102737102738102739102740102741102742102743102744102745102746102747102748102749102750102751102752102753102754102755102756102757102758102759102760102761102762102763102764102765102766102767102768102769102770102771102772102773102774102775102776102777102778102779102780102781102782102783102784102785102786102787102788102789102790102791102792102793102794102795102796102797102798102799102800102801102802102803102804102805102806102807102808102809102810102811102812102813102814102815102816102817102818102819102820102821102822102823102824102825102826102827102828102829102830102831102832102833102834102835102836102837102838102839102840102841102842102843102844102845102846102847102848102849102850102851102852102853102854102855102856102857102858102859102860102861102862102863102864102865102866102867102868102869102870102871102872102873102874102875102876102877102878102879102880102881102882102883102884102885102886102887102888102889102890102891102892102893102894102895102896102897102898102899102900102901102902102903102904102905102906102907102908102909102910102911102912102913102914102915102916102917102918102919102920102921102922102923102924102925102926102927102928102929102930102931102932102933102934102935102936102937102938102939102940102941102942102943102944102945102946102947102948102949102950102951102952102953102954102955102956102957102958102959102960102961102962102963102964102965102966102967102968102969102970102971102972102973102974102975102976102977102978102979102980102981102982102983102984102985102986102987102988102989102990102991102992102993102994102995102996102997102998102999103000103001103002103003103004103005103006103007103008103009103010103011103012103013103014103015103016103017103018103019103020103021103022103023103024103025103026103027103028103029103030103031103032103033103034103035103036103037103038103039103040103041103042103043103044103045103046103047103048103049103050103051103052103053103054103055103056103057103058103059103060103061103062103063103064103065103066103067103068103069103070103071103072103073103074103075103076103077103078103079103080103081103082103083103084103085103086103087103088103089103090103091103092103093103094103095103096103097103098103099103100103101103102103103103104103105103106103107103108103109103110103111103112103113103114103115103116103117103118103119103120103121103122103123103124103125103126103127103128103129103130103131103132103133103134103135103136103137103138103139103140103141103142103143103144103145103146103147103148103149103150103151103152103153103154103155103156103157103158103159103160103161103162103163103164103165103166103167103168103169103170103171103172103173103174103175103176103177103178103179103180103181103182103183103184103185103186103187103188103189103190103191103192103193103194103195103196103197103198103199103200103201103202103203103204103205103206103207103208103209103210103211103212103213103214103215103216103217103218103219103220103221103222103223103224103225103226103227103228103229103230103231103232103233103234103235103236103237103238103239103240103241103242103243103244103245103246103247103248103249103250103251103252103253103254103255103256103257103258103259103260103261103262103263103264103265103266103267103268103269103270103271103272103273103274103275103276103277103278103279103280103281103282103283103284103285103286103287103288103289103290103291103292103293103294103295103296103297103298103299103300103301103302103303103304103305103306103307103308103309103310103311103312103313103314103315103316103317103318103319103320103321103322103323103324103325103326103327103328103329103330103331103332103333103334103335103336103337103338103339103340103341103342103343103344103345103346103347103348103349103350103351103352103353103354103355103356103357103358103359103360103361103362103363103364103365103366103367103368103369103370103371103372103373103374103375103376103377103378103379103380103381103382103383103384103385103386103387103388103389103390103391103392103393103394103395103396103397103398103399103400103401103402103403103404103405103406103407103408103409103410103411103412103413103414103415103416103417103418103419103420103421103422103423103424103425103426103427103428103429103430103431103432103433103434103435103436103437103438103439103440103441103442103443103444103445103446103447103448103449103450103451103452103453103454103455103456103457103458103459103460103461103462103463103464103465103466103467103468103469103470103471103472103473103474103475103476103477103478103479103480103481103482103483103484103485103486103487103488103489103490103491103492103493103494103495103496103497103498103499103500103501103502103503103504103505103506103507103508103509103510103511103512103513103514103515103516103517103518103519103520103521103522103523103524103525103526103527103528103529103530103531103532103533103534103535103536103537103538103539103540103541103542103543103544103545103546103547103548103549103550103551103552103553103554103555103556103557103558103559103560103561103562103563103564103565103566103567103568103569103570103571103572103573103574103575103576103577103578103579103580103581103582103583103584103585103586103587103588103589103590103591103592103593103594103595103596103597103598103599103600103601103602103603103604103605103606103607103608103609103610103611103612103613103614103615103616103617103618103619103620103621103622103623103624103625103626103627103628103629103630103631103632103633103634103635103636103637103638103639103640103641103642103643103644103645103646103647103648103649103650103651103652103653103654103655103656103657103658103659103660103661103662103663103664103665103666103667103668103669103670103671103672103673103674103675103676103677103678103679103680103681103682103683103684103685103686103687103688103689103690103691103692103693103694103695103696103697103698103699103700103701103702103703103704103705103706103707103708103709103710103711103712103713103714103715103716103717103718103719103720103721103722103723103724103725103726103727103728103729103730103731103732103733103734103735103736103737103738103739103740103741103742103743103744103745103746103747103748103749103750103751103752103753103754103755103756103757103758103759103760103761103762103763103764103765103766103767103768103769103770103771103772103773103774103775103776103777103778103779103780103781103782103783103784103785103786103787103788103789103790103791103792103793103794103795103796103797103798103799103800103801103802103803103804103805103806103807103808103809103810103811103812103813103814103815103816103817103818103819103820103821103822103823103824103825103826103827103828103829103830103831103832103833103834103835103836103837103838103839103840103841103842103843103844103845103846103847103848103849103850103851103852103853103854103855103856103857103858103859103860103861103862103863103864103865103866103867103868103869103870103871103872103873103874103875103876103877103878103879103880103881103882103883103884103885103886103887103888103889103890103891103892103893103894103895103896103897103898103899103900103901103902103903103904103905103906103907103908103909103910103911103912103913103914103915103916103917103918103919103920103921103922103923103924103925103926103927103928103929103930103931103932103933103934103935103936103937103938103939103940103941103942103943103944103945103946103947103948103949103950103951103952103953103954103955103956103957103958103959103960103961103962103963103964103965103966103967103968103969103970103971103972103973103974103975103976103977103978103979103980103981103982103983103984103985103986103987103988103989103990103991103992103993103994103995103996103997103998103999104000104001104002104003104004104005104006104007104008104009104010104011104012104013104014104015104016104017104018104019104020104021104022104023104024104025104026104027104028104029104030104031104032104033104034104035104036104037104038104039104040104041104042104043104044104045104046104047104048104049104050104051104052104053104054104055104056104057104058104059104060104061104062104063104064104065104066104067104068104069104070104071104072104073104074104075104076104077104078104079104080104081104082104083104084104085104086104087104088104089104090104091104092104093104094104095104096104097104098104099104100104101104102104103104104104105104106104107104108104109104110104111104112104113104114104115104116104117104118104119104120104121104122104123104124104125104126104127104128104129104130104131104132104133104134104135104136104137104138104139104140104141104142104143104144104145104146104147104148104149104150104151104152104153104154104155104156104157104158104159104160104161104162104163104164104165104166104167104168104169104170104171104172104173104174104175104176104177104178104179104180104181104182104183104184104185104186104187104188104189104190104191104192104193104194104195104196104197104198104199104200104201104202104203104204104205104206104207104208104209104210104211104212104213104214104215104216104217104218104219104220104221104222104223104224104225104226104227104228104229104230104231104232104233104234104235104236104237104238104239104240104241104242104243104244104245104246104247104248104249104250104251104252104253104254104255104256104257104258104259104260104261104262104263104264104265104266104267104268104269104270104271104272104273104274104275104276104277104278104279104280104281104282104283104284104285104286104287104288104289104290104291104292104293104294104295104296104297104298104299104300104301104302104303104304104305104306104307104308104309104310104311104312104313104314104315104316104317104318104319104320104321104322104323104324104325104326104327104328104329104330104331104332104333104334104335104336104337104338104339104340104341104342104343104344104345104346104347104348104349104350104351104352104353104354104355104356104357104358104359104360104361104362104363104364104365104366104367104368104369104370104371104372104373104374104375104376104377104378104379104380104381104382104383104384104385104386104387104388104389104390104391104392104393104394104395104396104397104398104399104400104401104402104403104404104405104406104407104408104409104410104411104412104413104414104415104416104417104418104419104420104421104422104423104424104425104426104427104428104429104430104431104432104433104434104435104436104437104438104439104440104441104442104443104444104445104446104447104448104449104450104451104452104453104454104455104456104457104458104459104460104461104462104463104464104465104466104467104468104469104470104471104472104473104474104475104476104477104478104479104480104481104482104483104484104485104486104487104488104489104490104491104492104493104494104495104496104497104498104499104500104501104502104503104504104505104506104507104508104509104510104511104512104513104514104515104516104517104518104519104520104521104522104523104524104525104526104527104528104529104530104531104532104533104534104535104536104537104538104539104540104541104542104543104544104545104546104547104548104549104550104551104552104553104554104555104556104557104558104559104560104561104562104563104564104565104566104567104568104569104570104571104572104573104574104575104576104577104578104579104580104581104582104583104584104585104586104587104588104589104590104591104592104593104594104595104596104597104598104599104600104601104602104603104604104605104606104607104608104609104610104611104612104613104614104615104616104617104618104619104620104621104622104623104624104625104626104627104628104629104630104631104632104633104634104635104636104637104638104639104640104641104642104643104644104645104646104647104648104649104650104651104652104653104654104655104656104657104658104659104660104661104662104663104664104665104666104667104668104669104670104671104672104673104674104675104676104677104678104679104680104681104682104683104684104685104686104687104688104689104690104691104692104693104694104695104696104697104698104699104700104701104702104703104704104705104706104707104708104709104710104711104712104713104714104715104716104717104718104719104720104721104722104723104724104725104726104727104728104729104730104731104732104733104734104735104736104737104738104739104740104741104742104743104744104745104746104747104748104749104750104751104752104753104754104755104756104757104758104759104760104761104762104763104764104765104766104767104768104769104770104771104772104773104774104775104776104777104778104779104780104781104782104783104784104785104786104787104788104789104790104791104792104793104794104795104796104797104798104799104800104801104802104803104804104805104806104807104808104809104810104811104812104813104814104815104816104817104818104819104820104821104822104823104824104825104826104827104828104829104830104831104832104833104834104835104836104837104838104839104840104841104842104843104844104845104846104847104848104849104850104851104852104853104854104855104856104857104858104859104860104861104862104863104864104865104866104867104868104869104870104871104872104873104874104875104876104877104878104879104880104881104882104883104884104885104886104887104888104889104890104891104892104893104894104895104896104897104898104899104900104901104902104903104904104905104906104907104908104909104910104911104912104913104914104915104916104917104918104919104920104921104922104923104924104925104926104927104928104929104930104931104932104933104934104935104936104937104938104939104940104941104942104943104944104945104946104947104948104949104950104951104952104953104954104955104956104957104958104959104960104961104962104963104964104965104966104967104968104969104970104971104972104973104974104975104976104977104978104979104980104981104982104983104984104985104986104987104988104989104990104991104992104993104994104995104996104997104998104999105000105001105002105003105004105005105006105007105008105009105010105011105012105013105014105015105016105017105018105019105020105021105022105023105024105025105026105027105028105029105030105031105032105033105034105035105036105037105038105039105040105041105042105043105044105045105046105047105048105049105050105051105052105053105054105055105056105057105058105059105060105061105062105063105064105065105066105067105068105069105070105071105072105073105074105075105076105077105078105079105080105081105082105083105084105085105086105087105088105089105090105091105092105093105094105095105096105097105098105099105100105101105102105103105104105105105106105107105108105109105110105111105112105113105114105115105116105117105118105119105120105121105122105123105124105125105126105127105128105129105130105131105132105133105134105135105136105137105138105139105140105141105142105143105144105145105146105147105148105149105150105151105152105153105154105155105156105157105158105159105160105161105162105163105164105165105166105167105168105169105170105171105172105173105174105175105176105177105178105179105180105181105182105183105184105185105186105187105188105189105190105191105192105193105194105195105196105197105198105199105200105201105202105203105204105205105206105207105208105209105210105211105212105213105214105215105216105217105218105219105220105221105222105223105224105225105226105227105228105229105230105231105232105233105234105235105236105237105238105239105240105241105242105243105244105245105246105247105248105249105250105251105252105253105254105255105256105257105258105259105260105261105262105263105264105265105266105267105268105269105270105271105272105273105274105275105276105277105278105279105280105281105282105283105284105285105286105287105288105289105290105291105292105293105294105295105296105297105298105299105300105301105302105303105304105305105306105307105308105309105310105311105312105313105314105315105316105317105318105319105320105321105322105323105324105325105326105327105328105329105330105331105332105333105334105335105336105337105338105339105340105341105342105343105344105345105346105347105348105349105350105351105352105353105354105355105356105357105358105359105360105361105362105363105364105365105366105367105368105369105370105371105372105373105374105375105376105377105378105379105380105381105382105383105384105385105386105387105388105389105390105391105392105393105394105395105396105397105398105399105400105401105402105403105404105405105406105407105408105409105410105411105412105413105414105415105416105417105418105419105420105421105422105423105424105425105426105427105428105429105430105431105432105433105434105435105436105437105438105439105440105441105442105443105444105445105446105447105448105449105450105451105452105453105454105455105456105457105458105459105460105461105462105463105464105465105466105467105468105469105470105471105472105473105474105475105476105477105478105479105480105481105482105483105484105485105486105487105488105489105490105491105492105493105494105495105496105497105498105499105500105501105502105503105504105505105506105507105508105509105510105511105512105513105514105515105516105517105518105519105520105521105522105523105524105525105526105527105528105529105530105531105532105533105534105535105536105537105538105539105540105541105542105543105544105545105546105547105548105549105550105551105552105553105554105555105556105557105558105559105560105561105562105563105564105565105566105567105568105569105570105571105572105573105574105575105576105577105578105579105580105581105582105583105584105585105586105587105588105589105590105591105592105593105594105595105596105597105598105599105600105601105602105603105604105605105606105607105608105609105610105611105612105613105614105615105616105617105618105619105620105621105622105623105624105625105626105627105628105629105630105631105632105633105634105635105636105637105638105639105640105641105642105643105644105645105646105647105648105649105650105651105652105653105654105655105656105657105658105659105660105661105662105663105664105665105666105667105668105669105670105671105672105673105674105675105676105677105678105679105680105681105682105683105684105685105686105687105688105689105690105691105692105693105694105695105696105697105698105699105700105701105702105703105704105705105706105707105708105709105710105711105712105713105714105715105716105717105718105719105720105721105722105723105724105725105726105727105728105729105730105731105732105733105734105735105736105737105738105739105740105741105742105743105744105745105746105747105748105749105750105751105752105753105754105755105756105757105758105759105760105761105762105763105764105765105766105767105768105769105770105771105772105773105774105775105776105777105778105779105780105781105782105783105784105785105786105787105788105789105790105791105792105793105794105795105796105797105798105799105800105801105802105803105804105805105806105807105808105809105810105811105812105813105814105815105816105817105818105819105820105821105822105823105824105825105826105827105828105829105830105831105832105833105834105835105836105837105838105839105840105841105842105843105844105845105846105847105848105849105850105851105852105853105854105855105856105857105858105859105860105861105862105863105864105865105866105867105868105869105870105871105872105873105874105875105876105877105878105879105880105881105882105883105884105885105886105887105888105889105890105891105892105893105894105895105896105897105898105899105900105901105902105903105904105905105906105907105908105909105910105911105912105913105914105915105916105917105918105919105920105921105922105923105924105925105926105927105928105929105930105931105932105933105934105935105936105937105938105939105940105941105942105943105944105945105946105947105948105949105950105951105952105953105954105955105956105957105958105959105960105961105962105963105964105965105966105967105968105969105970105971105972105973105974105975105976105977105978105979105980105981105982105983105984105985105986105987105988105989105990105991105992105993105994105995105996105997105998105999106000106001106002106003106004106005106006106007106008106009106010106011106012106013106014106015106016106017106018106019106020106021106022106023106024106025106026106027106028106029106030106031106032106033106034106035106036106037106038106039106040106041106042106043106044106045106046106047106048106049106050106051106052106053106054106055106056106057106058106059106060106061106062106063106064106065106066106067106068106069106070106071106072106073106074106075106076106077106078106079106080106081106082106083106084106085106086106087106088106089106090106091106092106093106094106095106096106097106098106099106100106101106102106103106104106105106106106107106108106109106110106111106112106113106114106115106116106117106118106119106120106121106122106123106124106125106126106127106128106129106130106131106132106133106134106135106136106137106138106139106140106141106142106143106144106145106146106147106148106149106150106151106152106153106154106155106156106157106158106159106160106161106162106163106164106165106166106167106168106169106170106171106172106173106174106175106176106177106178106179106180106181106182106183106184106185106186106187106188106189106190106191106192106193106194106195106196106197106198106199106200106201106202106203106204106205106206106207106208106209106210106211106212106213106214106215106216106217106218106219106220106221106222106223106224106225106226106227106228106229106230106231106232106233106234106235106236106237106238106239106240106241106242106243106244106245106246106247106248106249106250106251106252106253106254106255106256106257106258106259106260106261106262106263106264106265106266106267106268106269106270106271106272106273106274106275106276106277106278106279106280106281106282106283106284106285106286106287106288106289106290106291106292106293106294106295106296106297106298106299106300106301106302106303106304106305106306106307106308106309106310106311106312106313106314106315106316106317106318106319106320106321106322106323106324106325106326106327106328106329106330106331106332106333106334106335106336106337106338106339106340106341106342106343106344106345106346106347106348106349106350106351106352106353106354106355106356106357106358106359106360106361106362106363106364106365106366106367106368106369106370106371106372106373106374106375106376106377106378106379106380106381106382106383106384106385106386106387106388106389106390106391106392106393106394106395106396106397106398106399106400106401106402106403106404106405106406106407106408106409106410106411106412106413106414106415106416106417106418106419106420106421106422106423106424106425106426106427106428106429106430106431106432106433106434106435106436106437106438106439106440106441106442106443106444106445106446106447106448106449106450106451106452106453106454106455106456106457106458106459106460106461106462106463106464106465106466106467106468106469106470106471106472106473106474106475106476106477106478106479106480106481106482106483106484106485106486106487106488106489106490106491106492106493106494106495106496106497106498106499106500106501106502106503106504106505106506106507106508106509106510106511106512106513106514106515106516106517106518106519106520106521106522106523106524106525106526106527106528106529106530106531106532106533106534106535106536106537106538106539106540106541106542106543106544106545106546106547106548106549106550106551106552106553106554106555106556106557106558106559106560106561106562106563106564106565106566106567106568106569106570106571106572106573106574106575106576106577106578106579106580106581106582106583106584106585106586106587106588106589106590106591106592106593106594106595106596106597106598106599106600106601106602106603106604106605106606106607106608106609106610106611106612106613106614106615106616106617106618106619106620106621106622106623106624106625106626106627106628106629106630106631106632106633106634106635106636106637106638106639106640106641106642106643106644106645106646106647106648106649106650106651106652106653106654106655106656106657106658106659106660106661106662106663106664106665106666106667106668106669106670106671106672106673106674106675106676106677106678106679106680106681106682106683106684106685106686106687106688106689106690106691106692106693106694106695106696106697106698106699106700106701106702106703106704106705106706106707106708106709106710106711106712106713106714106715106716106717106718106719106720106721106722106723106724106725106726106727106728106729106730106731106732106733106734106735106736106737106738106739106740106741106742106743106744106745106746106747106748106749106750106751106752106753106754106755106756106757106758106759106760106761106762106763106764106765106766106767106768106769106770106771106772106773106774106775106776106777106778106779106780106781106782106783106784106785106786106787106788106789106790106791106792106793106794106795106796106797106798106799106800106801106802106803106804106805106806106807106808106809106810106811106812106813106814106815106816106817106818106819106820106821106822106823106824106825106826106827106828106829106830106831106832106833106834106835106836106837106838106839106840106841106842106843106844106845106846106847106848106849106850106851106852106853106854106855106856106857106858106859106860106861106862106863106864106865106866106867106868106869106870106871106872106873106874106875106876106877106878106879106880106881106882106883106884106885106886106887106888106889106890106891106892106893106894106895106896106897106898106899106900106901106902106903106904106905106906106907106908106909106910106911106912106913106914106915106916106917106918106919106920106921106922106923106924106925106926106927106928106929106930106931106932106933106934106935106936106937106938106939106940106941106942106943106944106945106946106947106948106949106950106951106952106953106954106955106956106957106958106959106960106961106962106963106964106965106966106967106968106969106970106971106972106973106974106975106976106977106978106979106980106981106982106983106984106985106986106987106988106989106990106991106992106993106994106995106996106997106998106999107000107001107002107003107004107005107006107007107008107009107010107011107012107013107014107015107016107017107018107019107020107021107022107023107024107025107026107027107028107029107030107031107032107033107034107035107036107037107038107039107040107041107042107043107044107045107046107047107048107049107050107051107052107053107054107055107056107057107058107059107060107061107062107063107064107065107066107067107068107069107070107071107072107073107074107075107076107077107078107079107080107081107082107083107084107085107086107087107088107089107090107091107092107093107094107095107096107097107098107099107100107101107102107103107104107105107106107107107108107109107110107111107112107113107114107115107116107117107118107119107120107121107122107123107124107125107126107127107128107129107130107131107132107133107134107135107136107137107138107139107140107141107142107143107144107145107146107147107148107149107150107151107152107153107154107155107156107157107158107159107160107161107162107163107164107165107166107167107168107169107170107171107172107173107174107175107176107177107178107179107180107181107182107183107184107185107186107187107188107189107190107191107192107193107194107195107196107197107198107199107200107201107202107203107204107205107206107207107208107209107210107211107212107213107214107215107216107217107218107219107220107221107222107223107224107225107226107227107228107229107230107231107232107233107234107235107236107237107238107239107240107241107242107243107244107245107246107247107248107249107250107251107252107253107254107255107256107257107258107259107260107261107262107263107264107265107266107267107268107269107270107271107272107273107274107275107276107277107278107279107280107281107282107283107284107285107286107287107288107289107290107291107292107293107294107295107296107297107298107299107300107301107302107303107304107305107306107307107308107309107310107311107312107313107314107315107316107317107318107319107320107321107322107323107324107325107326107327107328107329107330107331107332107333107334107335107336107337107338107339107340107341107342107343107344107345107346107347107348107349107350107351107352107353107354107355107356107357107358107359107360107361107362107363107364107365107366107367107368107369107370107371107372107373107374107375107376107377107378107379107380107381107382107383107384107385107386107387107388107389107390107391107392107393107394107395107396107397107398107399107400107401107402107403107404107405107406107407107408107409107410107411107412107413107414107415107416107417107418107419107420107421107422107423107424107425107426107427107428107429107430107431107432107433107434107435107436107437107438107439107440107441107442107443107444107445107446107447107448107449107450107451107452107453107454107455107456107457107458107459107460107461107462107463107464107465107466107467107468107469107470107471107472107473107474107475107476107477107478107479107480107481107482107483107484107485107486107487107488107489107490107491107492107493107494107495107496107497107498107499107500107501107502107503107504107505107506107507107508107509107510107511107512107513107514107515107516107517107518107519107520107521107522107523107524107525107526107527107528107529107530107531107532107533107534107535107536107537107538107539107540107541107542107543107544107545107546107547107548107549107550107551107552107553107554107555107556107557107558107559107560107561107562107563107564107565107566107567107568107569107570107571107572107573107574107575107576107577107578107579107580107581107582107583107584107585107586107587107588107589107590107591107592107593107594107595107596107597107598107599107600107601107602107603107604107605107606107607107608107609107610107611107612107613107614107615107616107617107618107619107620107621107622107623107624107625107626107627107628107629107630107631107632107633107634107635107636107637107638107639107640107641107642107643107644107645107646107647107648107649107650107651107652107653107654107655107656107657107658107659107660107661107662107663107664107665107666107667107668107669107670107671107672107673107674107675107676107677107678107679107680107681107682107683107684107685107686107687107688107689107690107691107692107693107694107695107696107697107698107699107700107701107702107703107704107705107706107707107708107709107710107711107712107713107714107715107716107717107718107719107720107721107722107723107724107725107726107727107728107729107730107731107732107733107734107735107736107737107738107739107740107741107742107743107744107745107746107747107748107749107750107751107752107753107754107755107756107757107758107759107760107761107762107763107764107765107766107767107768107769107770107771107772107773107774107775107776107777107778107779107780107781107782107783107784107785107786107787107788107789107790107791107792107793107794107795107796107797107798107799107800107801107802107803107804107805107806107807107808107809107810107811107812107813107814107815107816107817107818107819107820107821107822107823107824107825107826107827107828107829107830107831107832107833107834107835107836107837107838107839107840107841107842107843107844107845107846107847107848107849107850107851107852107853107854107855107856107857107858107859107860107861107862107863107864107865107866107867107868107869107870107871107872107873107874107875107876107877107878107879107880107881107882107883107884107885107886107887107888107889107890107891107892107893107894107895107896107897107898107899107900107901107902107903107904107905107906107907107908107909107910107911107912107913107914107915107916107917107918107919107920107921107922107923107924107925107926107927107928107929107930107931107932107933107934107935107936107937107938107939107940107941107942107943107944107945107946107947107948107949107950107951107952107953107954107955107956107957107958107959107960107961107962107963107964107965107966107967107968107969107970107971107972107973107974107975107976107977107978107979107980107981107982107983107984107985107986107987107988107989107990107991107992107993107994107995107996107997107998107999108000108001108002108003108004108005108006108007108008108009108010108011108012108013108014108015108016108017108018108019108020108021108022108023108024108025108026108027108028108029108030108031108032108033108034108035108036108037108038108039108040108041108042108043108044108045108046108047108048108049108050108051108052108053108054108055108056108057108058108059108060108061108062108063108064108065108066108067108068108069108070108071108072108073108074108075108076108077108078108079108080108081108082108083108084108085108086108087108088108089108090108091108092108093108094108095108096108097108098108099108100
  1. type HashMap<T> = Record<string, T>;
  2. /** @deprecated Use native Promise instead. */
  3. type IPromise<T> = Promise<T>;
  4. interface IHandle {
  5. remove(): void;
  6. }
  7. interface __esriImplementsIteration<T> {
  8. [Symbol.iterator](): IterableIterator<T>;
  9. }
  10. declare namespace __esri {
  11. export class Accessor {
  12. destroyed: boolean;
  13. initialized: boolean;
  14. declaredClass: string;
  15. constructor(obj?: any);
  16. destroy(): void;
  17. get<T>(propertyName: string): T;
  18. get(propertyName: string): any;
  19. set<T>(propertyName: string, value: T): this;
  20. set(props: HashMap<any>): this;
  21. watch(path: string | string[], callback: WatchCallback, sync?: boolean): WatchHandle;
  22. own(handles: IHandle | IHandle[]): void;
  23. protected notifyChange(propertyName: string): void;
  24. protected _get(propertyName: string): any;
  25. protected _get<T>(propertyName: string): T;
  26. protected _set<T>(propertyName: string, value: T): this;
  27. }
  28. export interface AnonymousAccessor {
  29. get?<T>(propertyName: string): T;
  30. get?(propertyName: string): any;
  31. set?<T>(propertyName: string, value: T): this;
  32. set?(props: HashMap<any>): this;
  33. watch?(path: string | string[], callback: WatchCallback, sync?: boolean): WatchHandle;
  34. }
  35. export type ItemCallback<T> = (item: T, index: number) => void;
  36. export type ItemCompareCallback<T> = (firstItem: T, secondItem: T) => number;
  37. export type ItemMapCallback<T, R> = (item: T, index: number) => R;
  38. export type ItemReduceCallback<T, R> = (previousValue: R, currentValue: T, index: number) => R;
  39. export type ItemTestCallback<T> = (item: T, index: number) => boolean;
  40. export type CollectionAfterAddEventHandler<T> = (event: CollectionAfterEvent<T>) => void;
  41. export type CollectionAfterChangesEventHandler<T> = (event: CollectionAfterChangesEvent<T>) => void;
  42. export type CollectionAfterRemoveEventHandler<T> = (event: CollectionAfterEvent<T>) => void;
  43. export type CollectionChangeEventHandler<T> = (event: CollectionChangeEvent<T>) => void;
  44. export type CollectionBeforeAddEventHandler<T> = (event: CollectionBeforeEvent<T>) => void;
  45. export type CollectionBeforeChangesEventHandler<T> = (event: CollectionBeforeEvent<T>) => void;
  46. export type CollectionBeforeRemoveEventHandler<T> = (event: CollectionBeforeEvent<T>) => void;
  47. export interface CollectionAfterEvent<T = any> {
  48. item: T;
  49. }
  50. export interface CollectionAfterChangesEvent<T = any> {
  51. }
  52. export interface CollectionBeforeEvent<T = any> {
  53. item: T;
  54. preventDefault(): void;
  55. }
  56. export interface CollectionChangeEvent<T = any> {
  57. added: T[];
  58. removed: T[];
  59. moved: T[];
  60. }
  61. interface Collection<T = any> extends Evented, __esriImplementsIteration<T> {
  62. on(type: "after-add", listener: CollectionAfterAddEventHandler<T>): IHandle;
  63. on(type: "after-changes", listener: CollectionAfterChangesEventHandler<T>): IHandle;
  64. on(type: "after-remove", listener: CollectionAfterRemoveEventHandler<T>): IHandle;
  65. on(type: "before-add", listener: CollectionBeforeAddEventHandler<T>): IHandle;
  66. on(type: "before-changes", listener: CollectionBeforeChangesEventHandler<T>): IHandle;
  67. on(type: "before-remove", listener: CollectionBeforeRemoveEventHandler<T>): IHandle;
  68. on(type: "change", listener: CollectionChangeEventHandler<T>): IHandle;
  69. on(type: string, listener: (event: any) => void): IHandle;
  70. }
  71. type Constructor<T> = new (...params: any[]) => T;
  72. interface Types<T extends Base, Base = T> {
  73. key: string | ((obj: any) => string);
  74. base: Constructor<Base> | Function;
  75. typeMap: HashMap<Constructor<T>>;
  76. }
  77. export class Collection<T = any> extends Accessor {
  78. readonly length: number;
  79. constructor(values?: any[] | Collection<any> | CollectionPropertiesBase<any>);
  80. at(index: number): T;
  81. add(item: T, index?: number): this;
  82. addMany(items: T[] | Collection<T>, index?: number): this;
  83. clone(): Collection<T>;
  84. concat(value: T[] | Collection<T>): Collection<T>;
  85. every(callback: ItemTestCallback<T>): boolean;
  86. filter(callback: ItemTestCallback<T>): Collection<T>;
  87. filter<S extends T>(callback: (item: T, index: number) => item is S): Collection<S>;
  88. find(callback: ItemTestCallback<T>): T;
  89. findIndex(callback: ItemTestCallback<T>): number;
  90. flatten(callback: (item: T, index: number) => T[] | Collection<T>): Collection<T>;
  91. flatten<U>(callback: (item: U, index: number) => U[] | Collection<U>): Collection<U>;
  92. forEach(callback: ItemCallback<T>): void;
  93. getItemAt(index: number): T;
  94. includes(searchElement: T): boolean;
  95. indexOf(searchElement: T, fromIndex?: number): number;
  96. join(separator?: string): string;
  97. lastIndexOf(searchElement: T, fromIndex?: number): number;
  98. map<R = T>(callback: ItemMapCallback<T, R>): Collection<R>;
  99. pop(): T;
  100. push(item: T): number;
  101. reduce<R = T>(callback: ItemReduceCallback<T, R>, initialValue?: R): R;
  102. reduceRight<R = T>(callback: ItemReduceCallback<T, R>, initialValue?: R): R;
  103. remove(item: T): void;
  104. removeAll(): void;
  105. removeAt(index: number): any;
  106. removeMany(items: T[] | Collection<T>): T[];
  107. reorder(item: T, index: number): T;
  108. reverse(): this;
  109. shift(): T;
  110. slice(begin?: number, end?: number): Collection<T>;
  111. some(callback: ItemCallback<T>): boolean;
  112. sort(compareFunction?: ItemCompareCallback<T>): this;
  113. splice(start: number, deleteCount: number, ...items: T[]): T[];
  114. toArray(): T[];
  115. unshift(...items: T[]): number;
  116. static isCollection<T = any>(value: any | Collection<T>): value is Collection<T>;
  117. static ofType<T extends Base, Base = T>(type: Constructor<T> | Types<T, Base>): new (items?: (T[] | Collection<T>) | { items?: T[] | Collection<T> }) => Collection<T>;
  118. }
  119. type CollectionProperties<T = any> = T[] | Collection<T>;
  120. interface CollectionPropertiesBase<T = any> {
  121. items?: T[];
  122. }
  123. type DateProperties = number | string | Date;
  124. interface ReactiveWatchOptions {
  125. readonly initial?: boolean;
  126. readonly sync?: boolean;
  127. readonly once?: boolean;
  128. readonly equals?: (newValue: any, oldValue: any) => boolean;
  129. }
  130. interface ReactiveListenerOptions<Target> {
  131. sync?: boolean;
  132. once?: boolean;
  133. onListenerAdd?: (target: Target) => void;
  134. onListenerRemove?: (target: Target) => void;
  135. }
  136. interface reactiveUtils {
  137. watch<T>(getValue: () => T, callback: (newValue?: T, oldValue?: T) => void, options?: ReactiveWatchOptions): IHandle;
  138. when<T>(getValue: () => T | null | undefined, callback: (newValue?: T, oldValue?: T | null) => void, options?: ReactiveWatchOptions): IHandle;
  139. on<T extends Evented | EventTarget>(getTarget: () => T | null | undefined, eventName: string, callback: (value: any) => void, options?: ReactiveListenerOptions<T>): IHandle;
  140. once<T>(getValue: () => T, signal?: AbortSignal | { signal?: AbortSignal } | null): Promise<T>;
  141. whenOnce<T>(getValue: () => T | null | undefined, signal?: AbortSignal | { signal?: AbortSignal } | null): Promise<T>;
  142. }
  143. export const reactiveUtils: reactiveUtils;
  144. export type BaseDynamicLayerLayerviewCreateErrorEventHandler = (
  145. event: BaseDynamicLayerLayerviewCreateErrorEvent
  146. ) => void;
  147. export type BaseDynamicLayerLayerviewCreateEventHandler = (event: BaseDynamicLayerLayerviewCreateEvent) => void;
  148. export type BaseDynamicLayerLayerviewDestroyEventHandler = (event: BaseDynamicLayerLayerviewDestroyEvent) => void;
  149. export type BaseDynamicLayerRefreshEventHandler = (event: BaseDynamicLayerRefreshEvent) => void;
  150. export type BasemapLayerListTriggerActionEventHandler = (event: BasemapLayerListTriggerActionEvent) => void;
  151. export type BaseTileLayerLayerviewCreateErrorEventHandler = (event: BaseTileLayerLayerviewCreateErrorEvent) => void;
  152. export type BaseTileLayerLayerviewCreateEventHandler = (event: BaseTileLayerLayerviewCreateEvent) => void;
  153. export type BaseTileLayerLayerviewDestroyEventHandler = (event: BaseTileLayerLayerviewDestroyEvent) => void;
  154. export type BaseTileLayerRefreshEventHandler = (event: BaseTileLayerRefreshEvent) => void;
  155. export type BingMapsLayerLayerviewCreateErrorEventHandler = (event: BingMapsLayerLayerviewCreateErrorEvent) => void;
  156. export type BingMapsLayerLayerviewCreateEventHandler = (event: BingMapsLayerLayerviewCreateEvent) => void;
  157. export type BingMapsLayerLayerviewDestroyEventHandler = (event: BingMapsLayerLayerviewDestroyEvent) => void;
  158. export type BingMapsLayerRefreshEventHandler = (event: BingMapsLayerRefreshEvent) => void;
  159. export type BookmarksBookmarkEditEventHandler = (event: BookmarksBookmarkEditEvent) => void;
  160. export type BookmarksBookmarkSelectEventHandler = (event: BookmarksBookmarkSelectEvent) => void;
  161. export type CredentialDestroyEventHandler = (event: CredentialDestroyEvent) => void;
  162. export type CredentialTokenChangeEventHandler = (event: CredentialTokenChangeEvent) => void;
  163. export type CSVLayerLayerviewCreateErrorEventHandler = (event: CSVLayerLayerviewCreateErrorEvent) => void;
  164. export type CSVLayerLayerviewCreateEventHandler = (event: CSVLayerLayerviewCreateEvent) => void;
  165. export type CSVLayerLayerviewDestroyEventHandler = (event: CSVLayerLayerviewDestroyEvent) => void;
  166. export type CSVLayerRefreshEventHandler = (event: CSVLayerRefreshEvent) => void;
  167. export type ElevationSamplerChangedEventHandler = (event: ElevationSamplerChangedEvent) => void;
  168. export type FeatureFormSubmitEventHandler = (event: FeatureFormSubmitEvent) => void;
  169. export type FeatureFormValueChangeEventHandler = (event: FeatureFormValueChangeEvent) => void;
  170. export type FeatureFormViewModelSubmitEventHandler = (event: FeatureFormViewModelSubmitEvent) => void;
  171. export type FeatureFormViewModelValueChangeEventHandler = (event: FeatureFormViewModelValueChangeEvent) => void;
  172. export type FeatureLayerEditsEventHandler = (event: FeatureLayerEditsEvent) => void;
  173. export type FeatureLayerLayerviewCreateErrorEventHandler = (event: FeatureLayerLayerviewCreateErrorEvent) => void;
  174. export type FeatureLayerLayerviewCreateEventHandler = (event: FeatureLayerLayerviewCreateEvent) => void;
  175. export type FeatureLayerLayerviewDestroyEventHandler = (event: FeatureLayerLayerviewDestroyEvent) => void;
  176. export type FeatureLayerRefreshEventHandler = (event: FeatureLayerRefreshEvent) => void;
  177. export type FeatureTableSelectionChangeEventHandler = (event: FeatureTableSelectionChangeEvent) => void;
  178. export type FeatureTemplatesSelectEventHandler = (event: FeatureTemplatesSelectEvent) => void;
  179. export type FeatureTemplatesViewModelSelectEventHandler = (event: FeatureTemplatesViewModelSelectEvent) => void;
  180. export type GeoJSONLayerEditsEventHandler = (event: GeoJSONLayerEditsEvent) => void;
  181. export type GeoJSONLayerLayerviewCreateErrorEventHandler = (event: GeoJSONLayerLayerviewCreateErrorEvent) => void;
  182. export type GeoJSONLayerLayerviewCreateEventHandler = (event: GeoJSONLayerLayerviewCreateEvent) => void;
  183. export type GeoJSONLayerLayerviewDestroyEventHandler = (event: GeoJSONLayerLayerviewDestroyEvent) => void;
  184. export type GeoJSONLayerRefreshEventHandler = (event: GeoJSONLayerRefreshEvent) => void;
  185. export type GeoRSSLayerLayerviewCreateErrorEventHandler = (event: GeoRSSLayerLayerviewCreateErrorEvent) => void;
  186. export type GeoRSSLayerLayerviewCreateEventHandler = (event: GeoRSSLayerLayerviewCreateEvent) => void;
  187. export type GeoRSSLayerLayerviewDestroyEventHandler = (event: GeoRSSLayerLayerviewDestroyEvent) => void;
  188. export type GeoRSSLayerRefreshEventHandler = (event: GeoRSSLayerRefreshEvent) => void;
  189. export type HeatmapSliderThumbChangeEventHandler = (event: HeatmapSliderThumbChangeEvent) => void;
  190. export type HeatmapSliderThumbDragEventHandler = (event: HeatmapSliderThumbDragEvent) => void;
  191. export type HistogramRangeSliderMaxChangeEventHandler = (event: HistogramRangeSliderMaxChangeEvent) => void;
  192. export type HistogramRangeSliderMinChangeEventHandler = (event: HistogramRangeSliderMinChangeEvent) => void;
  193. export type HistogramRangeSliderSegmentDragEventHandler = (event: HistogramRangeSliderSegmentDragEvent) => void;
  194. export type HistogramRangeSliderThumbChangeEventHandler = (event: HistogramRangeSliderThumbChangeEvent) => void;
  195. export type HistogramRangeSliderThumbDragEventHandler = (event: HistogramRangeSliderThumbDragEvent) => void;
  196. export type HomeGoEventHandler = (event: HomeGoEvent) => void;
  197. export type HomeViewModelGoEventHandler = (event: HomeViewModelGoEvent) => void;
  198. export type IdentityManagerCredentialCreateEventHandler = (event: IdentityManagerCredentialCreateEvent) => void;
  199. export type IdentityManagerDialogCreateEventHandler = (event: IdentityManagerDialogCreateEvent) => void;
  200. export type ImageryLayerLayerviewCreateErrorEventHandler = (event: ImageryLayerLayerviewCreateErrorEvent) => void;
  201. export type ImageryLayerLayerviewCreateEventHandler = (event: ImageryLayerLayerviewCreateEvent) => void;
  202. export type ImageryLayerLayerviewDestroyEventHandler = (event: ImageryLayerLayerviewDestroyEvent) => void;
  203. export type ImageryLayerRefreshEventHandler = (event: ImageryLayerRefreshEvent) => void;
  204. export type LayerLayerviewCreateErrorEventHandler = (event: LayerLayerviewCreateErrorEvent) => void;
  205. export type LayerLayerviewCreateEventHandler = (event: LayerLayerviewCreateEvent) => void;
  206. export type LayerLayerviewDestroyEventHandler = (event: LayerLayerviewDestroyEvent) => void;
  207. export type LayerListTriggerActionEventHandler = (event: LayerListTriggerActionEvent) => void;
  208. export type LayerListViewModelTriggerActionEventHandler = (event: LayerListViewModelTriggerActionEvent) => void;
  209. export type LocateLocateErrorEventHandler = (event: LocateLocateErrorEvent) => void;
  210. export type LocateLocateEventHandler = (event: LocateLocateEvent) => void;
  211. export type LocateViewModelLocateErrorEventHandler = (event: LocateViewModelLocateErrorEvent) => void;
  212. export type MapImageLayerLayerviewCreateErrorEventHandler = (event: MapImageLayerLayerviewCreateErrorEvent) => void;
  213. export type MapImageLayerLayerviewCreateEventHandler = (event: MapImageLayerLayerviewCreateEvent) => void;
  214. export type MapImageLayerLayerviewDestroyEventHandler = (event: MapImageLayerLayerviewDestroyEvent) => void;
  215. export type MapImageLayerRefreshEventHandler = (event: MapImageLayerRefreshEvent) => void;
  216. export class AreaMeasurementAnalysis extends Accessor {
  217. /**
  218. * Polygon whose area is to be computed and displayed in the view.
  219. *
  220. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-AreaMeasurementAnalysis.html#geometry)
  221. */
  222. geometry: Polygon;
  223. /**
  224. * Unit system (imperial, metric) or specific unit used for displaying the computed area in the view.
  225. *
  226. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-AreaMeasurementAnalysis.html#unit)
  227. */
  228. unit: SystemOrAreaUnit;
  229. /**
  230. * AreaMeasurementAnalysis computes the area of a polygonal region and displays the measurement in a 3D [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  231. *
  232. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-AreaMeasurementAnalysis.html)
  233. */
  234. constructor(properties?: AreaMeasurementAnalysisProperties);
  235. /**
  236. * Creates a deep clone of this object.
  237. *
  238. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-AreaMeasurementAnalysis.html#clone)
  239. */
  240. clone(): this;
  241. }
  242. /** @deprecated Import the AreaMeasurementAnalysis class instead. */
  243. export type AreaMeasurementAnalysisConstructor = typeof AreaMeasurementAnalysis;
  244. interface AreaMeasurementAnalysisProperties {
  245. /**
  246. * Polygon whose area is to be computed and displayed in the view.
  247. *
  248. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-AreaMeasurementAnalysis.html#geometry)
  249. */
  250. geometry?: PolygonProperties;
  251. /**
  252. * Unit system (imperial, metric) or specific unit used for displaying the computed area in the view.
  253. *
  254. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-AreaMeasurementAnalysis.html#unit)
  255. */
  256. unit?: | "imperial"
  257. | "metric"
  258. | "square-millimeters"
  259. | "square-centimeters"
  260. | "square-decimeters"
  261. | "square-meters"
  262. | "square-kilometers"
  263. | "square-inches"
  264. | "square-feet"
  265. | "square-yards"
  266. | "square-miles"
  267. | "square-us-feet"
  268. | "acres"
  269. | "ares"
  270. | "hectares";
  271. }
  272. export class DimensionAnalysis extends Accessor {
  273. /**
  274. * A list of dimensions.
  275. *
  276. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DimensionAnalysis.html#dimensions)
  277. */
  278. dimensions: Collection<LengthDimension>;
  279. /**
  280. * The style defines how the dimension objects of this analysis are displayed.
  281. *
  282. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DimensionAnalysis.html#style)
  283. */
  284. style: DimensionSimpleStyle;
  285. /**
  286. * DimensionAnalysis enables the creation and display of measurement annotations for lengths and distances in a 3D [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  287. *
  288. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DimensionAnalysis.html)
  289. */
  290. constructor(properties?: DimensionAnalysisProperties);
  291. /**
  292. * Creates a deep clone of this object.
  293. *
  294. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DimensionAnalysis.html#clone)
  295. */
  296. clone(): this;
  297. }
  298. /** @deprecated Import the DimensionAnalysis class instead. */
  299. export type DimensionAnalysisConstructor = typeof DimensionAnalysis;
  300. interface DimensionAnalysisProperties {
  301. /**
  302. * A list of dimensions.
  303. *
  304. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DimensionAnalysis.html#dimensions)
  305. */
  306. dimensions?: CollectionProperties<LengthDimensionProperties>;
  307. /**
  308. * The style defines how the dimension objects of this analysis are displayed.
  309. *
  310. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DimensionAnalysis.html#style)
  311. */
  312. style?: DimensionSimpleStyleProperties;
  313. }
  314. export class DimensionSimpleStyle extends Accessor {
  315. /**
  316. * Color of dimension lines.
  317. *
  318. * @default black
  319. *
  320. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DimensionSimpleStyle.html#color)
  321. */
  322. color: Color;
  323. /**
  324. * Size of text in dimension labels in points.
  325. *
  326. * @default 10
  327. *
  328. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DimensionSimpleStyle.html#fontSize)
  329. */
  330. fontSize: number;
  331. /**
  332. * Width of dimension lines in points.
  333. *
  334. * @default 2
  335. *
  336. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DimensionSimpleStyle.html#lineSize)
  337. */
  338. lineSize: number;
  339. /**
  340. * Background color of dimension labels.
  341. *
  342. * @default [255, 255, 255, 0.6]
  343. *
  344. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DimensionSimpleStyle.html#textBackgroundColor)
  345. */
  346. textBackgroundColor: Color;
  347. /**
  348. * Color of text in dimension labels.
  349. *
  350. * @default black
  351. *
  352. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DimensionSimpleStyle.html#textColor)
  353. */
  354. textColor: Color;
  355. readonly type: "simple";
  356. /**
  357. * Style that specifies how dimensions and their labels are displayed.
  358. *
  359. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DimensionSimpleStyle.html)
  360. */
  361. constructor(properties?: DimensionSimpleStyleProperties);
  362. /**
  363. * Creates a deep clone of this object.
  364. *
  365. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DimensionSimpleStyle.html#clone)
  366. */
  367. clone(): this;
  368. }
  369. /** @deprecated Import the DimensionSimpleStyle class instead. */
  370. export type DimensionSimpleStyleConstructor = typeof DimensionSimpleStyle;
  371. interface DimensionSimpleStyleProperties {
  372. /**
  373. * Color of dimension lines.
  374. *
  375. * @default black
  376. *
  377. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DimensionSimpleStyle.html#color)
  378. */
  379. color?: Color | number[] | string;
  380. /**
  381. * Size of text in dimension labels in points.
  382. *
  383. * @default 10
  384. *
  385. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DimensionSimpleStyle.html#fontSize)
  386. */
  387. fontSize?: number | string;
  388. /**
  389. * Width of dimension lines in points.
  390. *
  391. * @default 2
  392. *
  393. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DimensionSimpleStyle.html#lineSize)
  394. */
  395. lineSize?: number | string;
  396. /**
  397. * Background color of dimension labels.
  398. *
  399. * @default [255, 255, 255, 0.6]
  400. *
  401. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DimensionSimpleStyle.html#textBackgroundColor)
  402. */
  403. textBackgroundColor?: Color | number[] | string;
  404. /**
  405. * Color of text in dimension labels.
  406. *
  407. * @default black
  408. *
  409. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DimensionSimpleStyle.html#textColor)
  410. */
  411. textColor?: Color | number[] | string;
  412. }
  413. export class DirectLineMeasurementAnalysis extends Accessor {
  414. /**
  415. * Ending point for the measurement.
  416. *
  417. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DirectLineMeasurementAnalysis.html#endPoint)
  418. */
  419. endPoint: Point;
  420. /**
  421. * Starting point for the measurement.
  422. *
  423. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DirectLineMeasurementAnalysis.html#startPoint)
  424. */
  425. startPoint: Point;
  426. /**
  427. * Unit system (imperial, metric) or specific unit used for computing the distance.
  428. *
  429. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DirectLineMeasurementAnalysis.html#unit)
  430. */
  431. unit: SystemOrLengthUnit;
  432. /**
  433. * DirectLineMeasurementAnalysis computes the distance between two points and displays the measurement in a 3D [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  434. *
  435. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DirectLineMeasurementAnalysis.html)
  436. */
  437. constructor(properties?: DirectLineMeasurementAnalysisProperties);
  438. /**
  439. * Creates a deep clone of this object.
  440. *
  441. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DirectLineMeasurementAnalysis.html#clone)
  442. */
  443. clone(): this;
  444. }
  445. /** @deprecated Import the DirectLineMeasurementAnalysis class instead. */
  446. export type DirectLineMeasurementAnalysisConstructor = typeof DirectLineMeasurementAnalysis;
  447. interface DirectLineMeasurementAnalysisProperties {
  448. /**
  449. * Ending point for the measurement.
  450. *
  451. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DirectLineMeasurementAnalysis.html#endPoint)
  452. */
  453. endPoint?: PointProperties;
  454. /**
  455. * Starting point for the measurement.
  456. *
  457. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DirectLineMeasurementAnalysis.html#startPoint)
  458. */
  459. startPoint?: PointProperties;
  460. /**
  461. * Unit system (imperial, metric) or specific unit used for computing the distance.
  462. *
  463. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DirectLineMeasurementAnalysis.html#unit)
  464. */
  465. unit?: | "imperial"
  466. | "metric"
  467. | "millimeters"
  468. | "centimeters"
  469. | "decimeters"
  470. | "meters"
  471. | "kilometers"
  472. | "inches"
  473. | "feet"
  474. | "yards"
  475. | "miles"
  476. | "nautical-miles"
  477. | "us-feet";
  478. }
  479. export class LengthDimension extends Accessor {
  480. /**
  481. * Ending point for the dimension.
  482. *
  483. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LengthDimension.html#endPoint)
  484. */
  485. endPoint: Point;
  486. /**
  487. * The type of length that should be measured between the [startPoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LengthDimension.html#startPoint) and [endPoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LengthDimension.html#endPoint).
  488. *
  489. * @default "direct"
  490. *
  491. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LengthDimension.html#measureType)
  492. */
  493. measureType: "direct" | "horizontal" | "vertical";
  494. /**
  495. * Styling option that controls the shortest distance from the [startPoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LengthDimension.html#startPoint) or [endPoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LengthDimension.html#endPoint) to the dimension line in meters.
  496. *
  497. * @default 0
  498. *
  499. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LengthDimension.html#offset)
  500. */
  501. offset: number;
  502. /**
  503. * The orientation determines the relative direction the dimension line is extended to.
  504. *
  505. * @default 0
  506. *
  507. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LengthDimension.html#orientation)
  508. */
  509. orientation: number;
  510. /**
  511. * Starting point for the dimension.
  512. *
  513. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LengthDimension.html#startPoint)
  514. */
  515. startPoint: Point;
  516. /**
  517. * Length dimension enables the measurement of linear distances between the specified start and ending points.
  518. *
  519. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LengthDimension.html)
  520. */
  521. constructor(properties?: LengthDimensionProperties);
  522. /**
  523. * Creates a deep clone of this object.
  524. *
  525. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LengthDimension.html#clone)
  526. */
  527. clone(): this;
  528. }
  529. /** @deprecated Import the LengthDimension class instead. */
  530. export type LengthDimensionConstructor = typeof LengthDimension;
  531. interface LengthDimensionProperties {
  532. /**
  533. * Ending point for the dimension.
  534. *
  535. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LengthDimension.html#endPoint)
  536. */
  537. endPoint?: PointProperties;
  538. /**
  539. * The type of length that should be measured between the [startPoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LengthDimension.html#startPoint) and [endPoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LengthDimension.html#endPoint).
  540. *
  541. * @default "direct"
  542. *
  543. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LengthDimension.html#measureType)
  544. */
  545. measureType?: "direct" | "horizontal" | "vertical";
  546. /**
  547. * Styling option that controls the shortest distance from the [startPoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LengthDimension.html#startPoint) or [endPoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LengthDimension.html#endPoint) to the dimension line in meters.
  548. *
  549. * @default 0
  550. *
  551. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LengthDimension.html#offset)
  552. */
  553. offset?: number;
  554. /**
  555. * The orientation determines the relative direction the dimension line is extended to.
  556. *
  557. * @default 0
  558. *
  559. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LengthDimension.html#orientation)
  560. */
  561. orientation?: number;
  562. /**
  563. * Starting point for the dimension.
  564. *
  565. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LengthDimension.html#startPoint)
  566. */
  567. startPoint?: PointProperties;
  568. }
  569. export class LineOfSightAnalysis extends Accessor {
  570. /**
  571. * Observer location.
  572. *
  573. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysis.html#observer)
  574. */
  575. observer: LineOfSightAnalysisObserver;
  576. /**
  577. * Target locations.
  578. *
  579. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysis.html#targets)
  580. */
  581. targets: Collection<LineOfSightAnalysisTarget>;
  582. /**
  583. * LineOfSightAnalysis computes the line of sight from a single observer position towards a set of targets.
  584. *
  585. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysis.html)
  586. */
  587. constructor(properties?: LineOfSightAnalysisProperties);
  588. /**
  589. * Creates a deep clone of this object.
  590. *
  591. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysis.html#clone)
  592. */
  593. clone(): this;
  594. }
  595. /** @deprecated Import the LineOfSightAnalysis class instead. */
  596. export type LineOfSightAnalysisConstructor = typeof LineOfSightAnalysis;
  597. interface LineOfSightAnalysisProperties {
  598. /**
  599. * Observer location.
  600. *
  601. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysis.html#observer)
  602. */
  603. observer?: LineOfSightAnalysisObserverProperties;
  604. /**
  605. * Target locations.
  606. *
  607. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysis.html#targets)
  608. */
  609. targets?: CollectionProperties<LineOfSightAnalysisTargetProperties>;
  610. }
  611. export class LineOfSightAnalysisObserver extends Accessor {
  612. /**
  613. * Specifies how the observer is placed on the vertical axis (z).
  614. *
  615. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysisObserver.html#elevationInfo)
  616. */
  617. elevationInfo: LineOfSightAnalysisObserverElevationInfo;
  618. /**
  619. * Specifies a feature which shall be excluded from intersection testing.
  620. *
  621. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysisObserver.html#feature)
  622. */
  623. feature: Graphic;
  624. /**
  625. * A [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) representing the position of the observer.
  626. *
  627. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysisObserver.html#position)
  628. */
  629. position: Point;
  630. /**
  631. * The LineOfSightAnalysisObserver represents an observer of a [LineOfSightAnalysis](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysis.html).
  632. *
  633. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysisObserver.html)
  634. */
  635. constructor(properties?: LineOfSightAnalysisObserverProperties);
  636. /**
  637. * Creates a deep clone of this object.
  638. *
  639. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysisObserver.html#clone)
  640. */
  641. clone(): this;
  642. }
  643. /** @deprecated Import the LineOfSightAnalysisObserver class instead. */
  644. export type LineOfSightAnalysisObserverConstructor = typeof LineOfSightAnalysisObserver;
  645. interface LineOfSightAnalysisObserverProperties {
  646. /**
  647. * Specifies how the observer is placed on the vertical axis (z).
  648. *
  649. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysisObserver.html#elevationInfo)
  650. */
  651. elevationInfo?: LineOfSightAnalysisObserverElevationInfo;
  652. /**
  653. * Specifies a feature which shall be excluded from intersection testing.
  654. *
  655. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysisObserver.html#feature)
  656. */
  657. feature?: GraphicProperties;
  658. /**
  659. * A [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) representing the position of the observer.
  660. *
  661. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysisObserver.html#position)
  662. */
  663. position?: PointProperties;
  664. }
  665. export interface LineOfSightAnalysisObserverElevationInfo {
  666. /**
  667. * Defines how the observer is placed with respect to the terrain surface or 3D objects in the scene.
  668. *
  669. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysisObserver.html#elevationInfo)
  670. */
  671. mode: "on-the-ground" | "relative-to-ground" | "absolute-height" | "relative-to-scene";
  672. /**
  673. * An elevation offset, which is added to the vertical position of the observer.
  674. *
  675. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysisObserver.html#elevationInfo)
  676. */
  677. offset?: number;
  678. }
  679. export class LineOfSightAnalysisTarget extends Accessor {
  680. /**
  681. * Specifies how the target is placed on the vertical axis (z).
  682. *
  683. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysisTarget.html#elevationInfo)
  684. */
  685. elevationInfo: LineOfSightAnalysisTargetElevationInfo;
  686. /**
  687. * Specifies a feature which shall be excluded from intersection testing.
  688. *
  689. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysisTarget.html#feature)
  690. */
  691. feature: Graphic;
  692. /**
  693. * A [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) representing the position of the target.
  694. *
  695. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysisTarget.html#position)
  696. */
  697. position: Point;
  698. /**
  699. * The LineOfSightAnalysisTarget represents a target of a [LineOfSightAnalysis](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysis.html).
  700. *
  701. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysisTarget.html)
  702. */
  703. constructor(properties?: LineOfSightAnalysisTargetProperties);
  704. /**
  705. * Creates a deep clone of this object.
  706. *
  707. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysisTarget.html#clone)
  708. */
  709. clone(): this;
  710. }
  711. /** @deprecated Import the LineOfSightAnalysisTarget class instead. */
  712. export type LineOfSightAnalysisTargetConstructor = typeof LineOfSightAnalysisTarget;
  713. interface LineOfSightAnalysisTargetProperties {
  714. /**
  715. * Specifies how the target is placed on the vertical axis (z).
  716. *
  717. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysisTarget.html#elevationInfo)
  718. */
  719. elevationInfo?: LineOfSightAnalysisTargetElevationInfo;
  720. /**
  721. * Specifies a feature which shall be excluded from intersection testing.
  722. *
  723. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysisTarget.html#feature)
  724. */
  725. feature?: GraphicProperties;
  726. /**
  727. * A [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) representing the position of the target.
  728. *
  729. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysisTarget.html#position)
  730. */
  731. position?: PointProperties;
  732. }
  733. export interface LineOfSightAnalysisTargetElevationInfo {
  734. /**
  735. * Defines how the target is placed with respect to the terrain surface or 3D objects in the scene.
  736. *
  737. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysisTarget.html#elevationInfo)
  738. */
  739. mode: "on-the-ground" | "relative-to-ground" | "absolute-height" | "relative-to-scene";
  740. /**
  741. * An elevation offset, which is added to the vertical position of the target.
  742. *
  743. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysisTarget.html#elevationInfo)
  744. */
  745. offset?: number;
  746. }
  747. export class SliceAnalysis extends Accessor {
  748. /**
  749. * The shape used to slice elements in a 3D scene.
  750. *
  751. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-SliceAnalysis.html#shape)
  752. */
  753. shape: SlicePlane;
  754. readonly type: "slice";
  755. /**
  756. * SliceAnalysis can be used to programmatically create a plane that slices through 3D features in a 3D [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  757. *
  758. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-SliceAnalysis.html)
  759. */
  760. constructor(properties?: SliceAnalysisProperties);
  761. /**
  762. * Creates a deep clone of this object.
  763. *
  764. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-SliceAnalysis.html#clone)
  765. */
  766. clone(): this;
  767. }
  768. /** @deprecated Import the SliceAnalysis class instead. */
  769. export type SliceAnalysisConstructor = typeof SliceAnalysis;
  770. interface SliceAnalysisProperties {
  771. /**
  772. * The shape used to slice elements in a 3D scene.
  773. *
  774. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-SliceAnalysis.html#shape)
  775. */
  776. shape?: SlicePlaneProperties;
  777. }
  778. export interface SlicePlane extends Accessor, JSONSupport {
  779. }
  780. export class SlicePlane {
  781. /**
  782. * The heading angle (in degrees) of the slice plane.
  783. *
  784. * @default 0
  785. *
  786. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-SlicePlane.html#heading)
  787. */
  788. heading: number;
  789. /**
  790. * The height of the slice plane.
  791. *
  792. * @default 10
  793. *
  794. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-SlicePlane.html#height)
  795. */
  796. height: number;
  797. /**
  798. * A point specifying the position of the center of the plane.
  799. *
  800. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-SlicePlane.html#position)
  801. */
  802. position: Point;
  803. /**
  804. * The tilt angle (in degrees) of the slice plane.
  805. *
  806. * @default 0
  807. *
  808. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-SlicePlane.html#tilt)
  809. */
  810. tilt: number;
  811. /**
  812. * The string value representing the type of the slice shape.
  813. *
  814. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-SlicePlane.html#type)
  815. */
  816. readonly type: "plane";
  817. /**
  818. * The width of the slice plane.
  819. *
  820. * @default 10
  821. *
  822. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-SlicePlane.html#width)
  823. */
  824. width: number;
  825. /**
  826. * Provides the shape definition of a slice plane for a [Slice](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice.html) widget or [SliceAnalysis](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-SliceAnalysis.html).
  827. *
  828. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-SlicePlane.html)
  829. */
  830. constructor(properties?: SlicePlaneProperties);
  831. /**
  832. * Creates a deep clone of this object.
  833. *
  834. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-SlicePlane.html#clone)
  835. */
  836. clone(): this;
  837. static fromJSON(json: any): SlicePlane;
  838. }
  839. /** @deprecated Import the SlicePlane class instead. */
  840. export type SlicePlaneConstructor = typeof SlicePlane;
  841. interface SlicePlaneProperties {
  842. /**
  843. * The heading angle (in degrees) of the slice plane.
  844. *
  845. * @default 0
  846. *
  847. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-SlicePlane.html#heading)
  848. */
  849. heading?: number;
  850. /**
  851. * The height of the slice plane.
  852. *
  853. * @default 10
  854. *
  855. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-SlicePlane.html#height)
  856. */
  857. height?: number;
  858. /**
  859. * A point specifying the position of the center of the plane.
  860. *
  861. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-SlicePlane.html#position)
  862. */
  863. position?: PointProperties;
  864. /**
  865. * The tilt angle (in degrees) of the slice plane.
  866. *
  867. * @default 0
  868. *
  869. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-SlicePlane.html#tilt)
  870. */
  871. tilt?: number;
  872. /**
  873. * The width of the slice plane.
  874. *
  875. * @default 10
  876. *
  877. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-SlicePlane.html#width)
  878. */
  879. width?: number;
  880. }
  881. /**
  882. * Note: reserved for internal use only, this is not part of the stable public API.
  883. *
  884. * Color utilities for the Scene Viewer application.
  885. */
  886. interface SceneViewerColorUtils {
  887. /**
  888. * Note: reserved for internal use only, this is not part of the stable public API.
  889. *
  890. * Return true if a color is bright.
  891. */
  892. isBright(color: Color): boolean;
  893. }
  894. export const SceneViewerColorUtils: SceneViewerColorUtils;
  895. /**
  896. * Note: reserved for internal use only, this is not part of the stable public API.
  897. *
  898. * Various utilities for the Scene Viewer application.
  899. */
  900. interface sceneViewerUtils {
  901. /**
  902. * Note: reserved for internal use only, this is not part of the stable public API.
  903. *
  904. * Checks for relative urls and returns whether or not this webscene allows the `saveAs()` operation.
  905. */
  906. canSaveAs(webscene: WebScene): boolean;
  907. /**
  908. * Note: reserved for internal use only, this is not part of the stable public API.
  909. *
  910. * Returns the number of pending features of an active [CreateFeaturesWorkflow](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateFeaturesWorkflow.html).
  911. */
  912. createFeaturesWorkflowGetNumPendingFeatures(viewModel: EditorViewModel): number;
  913. /**
  914. * Note: reserved for internal use only, this is not part of the stable public API.
  915. *
  916. * Create a new TilingScheme based on the tileInfo
  917. */
  918. createTilingScheme(TileInfo: TileInfo): any;
  919. /**
  920. * Note: reserved for internal use only, this is not part of the stable public API.
  921. *
  922. * Get the active workflow state.
  923. */
  924. getActiveWorkflowState(viewModel: EditorViewModel): | "adding-attachment"
  925. | "awaiting-feature-creation-info"
  926. | "awaiting-feature-to-create"
  927. | "awaiting-feature-to-update"
  928. | "awaiting-update-feature-candidate"
  929. | "creating-features"
  930. | "disabled"
  931. | "editing-attachment"
  932. | "editing-existing-feature"
  933. | "editing-new-feature"
  934. | "ready";
  935. /**
  936. * Note: reserved for internal use only, this is not part of the stable public API.
  937. *
  938. * Get the active workflow type.
  939. */
  940. getActiveWorkflowType(viewModel: EditorViewModel): "create" | "create-features" | "update";
  941. /**
  942. * Note: reserved for internal use only, this is not part of the stable public API.
  943. *
  944. * Generates if necessary an equivalent tileinfo but with a different pixel size (256 or 512).
  945. */
  946. getOrCreateCompatibleTileInfo(TileInfo: TileInfo, expectedTileSize: number, resolutionModifier: number): any;
  947. isHostedAgolServiceUrl(url: string): boolean;
  948. /**
  949. * Note: reserved for internal use only, this is not part of the stable public API.
  950. *
  951. * Check if the error is a schema validation error.
  952. */
  953. isSchemaValidationError(saveError: void): boolean;
  954. /**
  955. * Note: reserved for internal use only, this is not part of the stable public API.
  956. *
  957. * Checks whether the provided spatial reference is supported in the provided viewing mode.
  958. */
  959. isSpatialReferenceSupported(spatialReference: SpatialReference, viewingMode: "global" | "local"): boolean;
  960. /**
  961. * Note: reserved for internal use only, this is not part of the stable public API.
  962. *
  963. * Check if a given TileInfo is supported.
  964. */
  965. isSupportedTileInfo(TileInfo: TileInfo): boolean;
  966. /**
  967. * Note: reserved for internal use only, this is not part of the stable public API.
  968. *
  969. * Get number of feature templates available in a FeatureTemplatesViewModel (before filtering).
  970. */
  971. numberOfFeatureTemplates(viewModel: FeatureTemplatesViewModel): number;
  972. /**
  973. * Note: reserved for internal use only, this is not part of the stable public API.
  974. *
  975. * Render svg vnode for elements provided in the descriptor
  976. */
  977. renderSVG(swatch: any[][], width: number, height: number, options?: any): any;
  978. /**
  979. * Note: reserved for internal use only, this is not part of the stable public API.
  980. *
  981. * Warn about problem when trying to display message about the save state.
  982. */
  983. saveStateWarning(warningMessage: string, error: any): void;
  984. /**
  985. * Note: reserved for internal use only, this is not part of the stable public API.
  986. *
  987. * Starts a create features workflow on the given editor view model
  988. */
  989. startCreateFeaturesWorkflow(editorVM: EditorViewModel, creationInfo: CreationInfo, startAt: string): Promise<void>;
  990. /**
  991. * Note: reserved for internal use only, this is not part of the stable public API.
  992. *
  993. * Returns the start position of the cross hair while dragging to zoom.
  994. */
  995. zoomDragBeginPoint(view: SceneView): number[] | null;
  996. }
  997. export const sceneViewerUtils: sceneViewerUtils;
  998. /**
  999. * This module allows you to evaluate [Arcade expressions](https://developers.arcgis.com/javascript/latest/arcade/) outside traditional ArcGIS Arcade [profiles](https://developers.arcgis.com/javascript/latest/arcade/#where-can-i-use-arcade).
  1000. *
  1001. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html)
  1002. */
  1003. interface arcade {
  1004. /**
  1005. * Compiles an Arcade expression and its profile into an executor.
  1006. *
  1007. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#createArcadeExecutor)
  1008. */
  1009. createArcadeExecutor(script: string, profile: Profile): Promise<ArcadeExecutor>;
  1010. /**
  1011. * Creates a [Profile](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#Profile) definition for an Arcade profile implemented in the ArcGIS API for JavaScript.
  1012. *
  1013. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#createArcadeProfile)
  1014. */
  1015. createArcadeProfile(profileName: | "constraint"
  1016. | "feature-z"
  1017. | "field-calculation"
  1018. | "form-calculation"
  1019. | "labeling"
  1020. | "popup"
  1021. | "popup-element"
  1022. | "feature-reduction-popup"
  1023. | "feature-reduction-popup-element"
  1024. | "visualization"): Profile;
  1025. }
  1026. export const arcade: arcade;
  1027. /**
  1028. * An executor provides a synchronous (if applicable) and asynchronous function used to evaluate the compiled Arcade expression with the inputs of the declared profile variables.
  1029. *
  1030. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#ArcadeExecutor)
  1031. */
  1032. export interface ArcadeExecutor {
  1033. /**
  1034. * A function that can be invoked to evaluate the compiled expression for a set of profile variables.
  1035. *
  1036. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#ArcadeExecutor)
  1037. */
  1038. execute: ExecuteFunction;
  1039. /**
  1040. * Asynchronous function that evaluates the compiled expression.
  1041. *
  1042. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#ArcadeExecutor)
  1043. */
  1044. executeAsync: ExecuteFunctionAsync;
  1045. /**
  1046. * References the names of fields used in the compiled expression when working with the `$feature` profile variable or functions that expect field names, such as `Expects`.
  1047. *
  1048. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#ArcadeExecutor)
  1049. */
  1050. fieldsUsed: string[];
  1051. /**
  1052. * Indicates whether the expression accesses or uses a feature's geometry.
  1053. *
  1054. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#ArcadeExecutor)
  1055. */
  1056. geometryUsed: boolean;
  1057. /**
  1058. * Indicates whether the compiled expression accesses data using a FeatureSet function and therefore must be executed using the `executeAsync` function.
  1059. *
  1060. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#ArcadeExecutor)
  1061. */
  1062. isAsync: boolean;
  1063. }
  1064. /**
  1065. * The type definition of a profile variable of type `array`.
  1066. *
  1067. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#ArrayElementType)
  1068. */
  1069. export interface ArrayElementType {
  1070. /**
  1071. * The Arcade data type of the variable.
  1072. *
  1073. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#ArrayElementType)
  1074. */
  1075. type: | "array"
  1076. | "dictionary"
  1077. | "feature"
  1078. | "featureSet"
  1079. | "featureSetCollection"
  1080. | "geometry"
  1081. | "number"
  1082. | "text"
  1083. | "date"
  1084. | "boolean";
  1085. /**
  1086. * Only applicable when `type` is `dictionary`.
  1087. *
  1088. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#ArrayElementType)
  1089. */
  1090. properties?: ProfileVariable[];
  1091. /**
  1092. * Only applicable when `type` is `array`.
  1093. *
  1094. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#ArrayElementType)
  1095. */
  1096. elementType?: ArrayElementType;
  1097. }
  1098. /**
  1099. * The type definition for an Arcade array profile variable.
  1100. *
  1101. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#ArrayVariable)
  1102. */
  1103. export interface ArrayVariable {
  1104. /**
  1105. * The name of the profile variable.
  1106. *
  1107. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#ArrayVariable)
  1108. */
  1109. name: string;
  1110. /**
  1111. * The Arcade data type of the variable.
  1112. *
  1113. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#ArrayVariable)
  1114. */
  1115. type: "array";
  1116. /**
  1117. * The type definition of the Array's items.
  1118. *
  1119. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#ArrayVariable)
  1120. */
  1121. elementType?: ArrayElementType;
  1122. }
  1123. /**
  1124. * The type definition for an Arcade dictionary profile variable.
  1125. *
  1126. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#DictionaryVariable)
  1127. */
  1128. export interface DictionaryVariable {
  1129. /**
  1130. * The name of the profile variable.
  1131. *
  1132. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#DictionaryVariable)
  1133. */
  1134. name: string;
  1135. /**
  1136. * The Arcade data type of the variable.
  1137. *
  1138. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#DictionaryVariable)
  1139. */
  1140. type: "dictionary";
  1141. /**
  1142. * The type definitions of the dictionary's properties.
  1143. *
  1144. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#DictionaryVariable)
  1145. */
  1146. properties?: ProfileVariable[];
  1147. }
  1148. /**
  1149. * The execution context of the Arcade expression.
  1150. *
  1151. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#ExecuteContext)
  1152. */
  1153. export interface ExecuteContext {
  1154. /**
  1155. * The spatial reference used by geometries in geometry functions.
  1156. *
  1157. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#ExecuteContext)
  1158. */
  1159. spatialReference?: SpatialReference;
  1160. }
  1161. export type ExecuteFunction = (profileVariableInstances: any, context?: ExecuteContext) => ResultType;
  1162. export type ExecuteFunctionAsync = (profileVariableInstances: any, context?: ExecuteContext) => Promise<ResultType>;
  1163. /**
  1164. * Defines the definitions of a profile's input variables.
  1165. *
  1166. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#Profile)
  1167. */
  1168. export interface Profile {
  1169. /**
  1170. * The Arcade type definitions for profile variables used as input to the compiled expression.
  1171. *
  1172. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#Profile)
  1173. */
  1174. variables: ProfileVariable[];
  1175. }
  1176. /**
  1177. * The type definition of a profile variable.
  1178. *
  1179. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#ProfileVariable)
  1180. */
  1181. export type ProfileVariable = SimpleVariable | DictionaryVariable | ArrayVariable;
  1182. /**
  1183. * The JavaScript types that may be used as inputs to profile variables when evaluating compiled expressions with [ExecuteFunction](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#ExecuteFunction) or [ExecuteFunctionAsync](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#ExecuteFunctionAsync).
  1184. *
  1185. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#ProfileVariableInstanceType)
  1186. */
  1187. export type ProfileVariableInstanceType = | Graphic
  1188. | Geometry
  1189. | FeatureSet
  1190. | FeatureLayer
  1191. | Map
  1192. | Geometry
  1193. | string
  1194. | number
  1195. | boolean
  1196. | Date
  1197. | any
  1198. | any[];
  1199. /**
  1200. * The JavaScript type of the result returned from the Arcade expression.
  1201. *
  1202. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#ResultType)
  1203. */
  1204. export type ResultType = number | string | Date | boolean | Graphic | Geometry | any | ResultType[];
  1205. /**
  1206. * The type definition for a simple Arcade profile variable.
  1207. *
  1208. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#SimpleVariable)
  1209. */
  1210. export interface SimpleVariable {
  1211. /**
  1212. * The name of the profile variable.
  1213. *
  1214. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#SimpleVariable)
  1215. */
  1216. name: string;
  1217. /**
  1218. * The Arcade data type of the variable.
  1219. *
  1220. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#SimpleVariable)
  1221. */
  1222. type: "feature" | "featureSet" | "featureSetCollection" | "geometry" | "number" | "text" | "date" | "boolean";
  1223. }
  1224. export interface Basemap extends Accessor, Loadable, JSONSupport {
  1225. }
  1226. export class Basemap {
  1227. /**
  1228. * A collection of tile layers that make up the basemap's features.
  1229. *
  1230. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#baseLayers)
  1231. */
  1232. baseLayers: Collection<Layer>;
  1233. /**
  1234. * An identifier used to refer to the basemap when referencing it elsewhere.
  1235. *
  1236. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#id)
  1237. */
  1238. id: string;
  1239. /**
  1240. * Indicates whether the basemap instance has loaded.
  1241. *
  1242. * @default false
  1243. *
  1244. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#loaded)
  1245. */
  1246. readonly loaded: boolean;
  1247. /**
  1248. * The portal item.
  1249. *
  1250. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#portalItem)
  1251. */
  1252. portalItem: PortalItem;
  1253. /**
  1254. * A collection of tiled reference layers for displaying labels.
  1255. *
  1256. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#referenceLayers)
  1257. */
  1258. referenceLayers: Collection<Layer>;
  1259. /**
  1260. * The spatial reference of the Basemap.
  1261. *
  1262. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#spatialReference)
  1263. */
  1264. spatialReference: SpatialReference;
  1265. /**
  1266. * The URL pointing to an image that represents the basemap.
  1267. *
  1268. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#thumbnailUrl)
  1269. */
  1270. thumbnailUrl: string;
  1271. /**
  1272. * The title of the basemap.
  1273. *
  1274. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#title)
  1275. */
  1276. title: string;
  1277. /**
  1278. * Creates a new basemap object.
  1279. *
  1280. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html)
  1281. */
  1282. constructor(properties?: BasemapProperties);
  1283. /**
  1284. * Creates a deep clone of this object.
  1285. *
  1286. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#clone)
  1287. */
  1288. clone(): Basemap;
  1289. /**
  1290. * Destroys the basemap, and any associated resources, including its [layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#layers) and [portalItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#portalItem).
  1291. *
  1292. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#destroy)
  1293. */
  1294. destroy(): void;
  1295. /**
  1296. * Loads all the externally loadable resources associated with the basemap.
  1297. *
  1298. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#loadAll)
  1299. */
  1300. loadAll(): Promise<Basemap>;
  1301. /**
  1302. * Creates a new basemap instance from a [well known basemap ID](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#basemap).
  1303. *
  1304. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#fromId)
  1305. */
  1306. static fromId(id: string): Basemap;
  1307. static fromJSON(json: any): Basemap;
  1308. }
  1309. /** @deprecated Import the Basemap class instead. */
  1310. export type BasemapConstructor = typeof Basemap;
  1311. interface BasemapProperties extends LoadableProperties {
  1312. /**
  1313. * A collection of tile layers that make up the basemap's features.
  1314. *
  1315. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#baseLayers)
  1316. */
  1317. baseLayers?: CollectionProperties<LayerProperties>;
  1318. /**
  1319. * An identifier used to refer to the basemap when referencing it elsewhere.
  1320. *
  1321. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#id)
  1322. */
  1323. id?: string;
  1324. /**
  1325. * The portal item.
  1326. *
  1327. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#portalItem)
  1328. */
  1329. portalItem?: PortalItemProperties;
  1330. /**
  1331. * A collection of tiled reference layers for displaying labels.
  1332. *
  1333. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#referenceLayers)
  1334. */
  1335. referenceLayers?: CollectionProperties<LayerProperties>;
  1336. /**
  1337. * The spatial reference of the Basemap.
  1338. *
  1339. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#spatialReference)
  1340. */
  1341. spatialReference?: SpatialReferenceProperties;
  1342. /**
  1343. * The URL pointing to an image that represents the basemap.
  1344. *
  1345. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#thumbnailUrl)
  1346. */
  1347. thumbnailUrl?: string;
  1348. /**
  1349. * The title of the basemap.
  1350. *
  1351. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#title)
  1352. */
  1353. title?: string;
  1354. }
  1355. export interface Camera extends Accessor, JSONSupport {
  1356. }
  1357. export class Camera {
  1358. /**
  1359. * The diagonal field of view (fov) angle for the camera.
  1360. *
  1361. * @default 55
  1362. *
  1363. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html#fov)
  1364. */
  1365. fov: number;
  1366. /**
  1367. * The compass heading of the camera in degrees.
  1368. *
  1369. * @default 0
  1370. *
  1371. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html#heading)
  1372. */
  1373. heading: number;
  1374. /**
  1375. * The position of the camera defined by a map point.
  1376. *
  1377. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html#position)
  1378. */
  1379. position: Point;
  1380. /**
  1381. * The tilt of the camera in degrees with respect to the surface as projected down from the camera position.
  1382. *
  1383. * @default 0
  1384. *
  1385. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html#tilt)
  1386. */
  1387. tilt: number;
  1388. /**
  1389. * The camera defines the [position](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html#position), [tilt](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html#tilt), and [heading](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html#heading) of the point from which the [SceneView's](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) visible extent is observed.
  1390. *
  1391. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html)
  1392. */
  1393. constructor(properties?: CameraProperties);
  1394. /**
  1395. * Creates a deep clone of this object.
  1396. *
  1397. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html#clone)
  1398. */
  1399. clone(): this;
  1400. static fromJSON(json: any): Camera;
  1401. }
  1402. /** @deprecated Import the Camera class instead. */
  1403. export type CameraConstructor = typeof Camera;
  1404. interface CameraProperties {
  1405. /**
  1406. * The diagonal field of view (fov) angle for the camera.
  1407. *
  1408. * @default 55
  1409. *
  1410. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html#fov)
  1411. */
  1412. fov?: number;
  1413. /**
  1414. * The compass heading of the camera in degrees.
  1415. *
  1416. * @default 0
  1417. *
  1418. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html#heading)
  1419. */
  1420. heading?: number;
  1421. /**
  1422. * The position of the camera defined by a map point.
  1423. *
  1424. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html#position)
  1425. */
  1426. position?: PointProperties;
  1427. /**
  1428. * The tilt of the camera in degrees with respect to the surface as projected down from the camera position.
  1429. *
  1430. * @default 0
  1431. *
  1432. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html#tilt)
  1433. */
  1434. tilt?: number;
  1435. }
  1436. export class Color {
  1437. /**
  1438. * The alpha value.
  1439. *
  1440. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html#a)
  1441. */
  1442. a: number;
  1443. /**
  1444. * The blue value.
  1445. *
  1446. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html#b)
  1447. */
  1448. b: number;
  1449. /**
  1450. * The green value.
  1451. *
  1452. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html#g)
  1453. */
  1454. g: number;
  1455. /**
  1456. * The red value.
  1457. *
  1458. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html#r)
  1459. */
  1460. r: number;
  1461. constructor(color: string | number[] | any);
  1462. /**
  1463. * Creates a deep clone of the Color instance.
  1464. *
  1465. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html#clone)
  1466. */
  1467. clone(): Color;
  1468. /**
  1469. * Takes an array of rgb(a) values, named string, hex string or an hsl(a) string, an object with `r`, `g`, `b`, and `a` properties, or a [Color](https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html) object and sets this color instance to the input value.
  1470. *
  1471. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html#setColor)
  1472. */
  1473. setColor(color: string | number[] | any): Color;
  1474. /**
  1475. * Returns a CSS color string in rgba form representing the Color instance.
  1476. *
  1477. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html#toCss)
  1478. */
  1479. toCss(includeAlpha?: boolean): string;
  1480. /**
  1481. * Returns a CSS color string in hexadecimal form that represents the Color instance.
  1482. *
  1483. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html#toHex)
  1484. */
  1485. toHex(): string;
  1486. /**
  1487. * Returns a JSON object with all the values from a Color instance.
  1488. *
  1489. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html#toJSON)
  1490. */
  1491. toJSON(): any;
  1492. /**
  1493. * Returns a 3-component array of rgb values that represent the Color instance.
  1494. *
  1495. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html#toRgb)
  1496. */
  1497. toRgb(): number[];
  1498. /**
  1499. * Returns a 4-component array of rgba values that represent the Color instance.
  1500. *
  1501. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html#toRgba)
  1502. */
  1503. toRgba(): number[];
  1504. /**
  1505. * Creates a Color instance by blending two colors using a weight factor.
  1506. *
  1507. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html#blendColors)
  1508. */
  1509. static blendColors(start: Color, end: Color, weight: number, out?: Color): Color;
  1510. /**
  1511. * Creates a Color instance using a 3 or 4 element array, mapping each element in sequence to the rgb(a) values of the color.
  1512. *
  1513. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html#fromArray)
  1514. */
  1515. static fromArray(a: number[], t?: Color): Color;
  1516. /**
  1517. * Creates a Color instance from a hex string with a '#' prefix.
  1518. *
  1519. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html#fromHex)
  1520. */
  1521. static fromHex(colorStr: string, t?: Color): Color;
  1522. /**
  1523. * Creates a new Color instance, and initializes it with values from a JSON object.
  1524. *
  1525. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html#fromJSON)
  1526. */
  1527. static fromJSON(json: any): Color;
  1528. /**
  1529. * Creates a Color instance from a string of the form "rgb()" or "rgba()".
  1530. *
  1531. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html#fromRgb)
  1532. */
  1533. static fromRgb(color: string, out?: Color): Color;
  1534. /**
  1535. * Creates a Color instance by parsing a generic string.
  1536. *
  1537. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html#fromString)
  1538. */
  1539. static fromString(str: string, obj?: Color): Color;
  1540. }
  1541. /** @deprecated Import the Color class instead. */
  1542. export type ColorConstructor = typeof Color;
  1543. /**
  1544. * Configure global properties of the library.
  1545. *
  1546. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html)
  1547. */
  1548. interface config {
  1549. /**
  1550. * An authorization string used to access a resource or service.
  1551. *
  1552. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#apiKey)
  1553. */
  1554. apiKey: string;
  1555. /**
  1556. * Overrides the URL for loading the API assets when using local builds of the `@arcgis/core` and `arcgis-js-api` NPM packages.
  1557. *
  1558. * @default "https://js.arcgis.com/[4.x]/@arcgis/core/assets"
  1559. *
  1560. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#assetsPath)
  1561. */
  1562. assetsPath: string;
  1563. /**
  1564. * The URL for font resources used by the [Font](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Font.html#family) class in [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) and [CSVLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html) labels.
  1565. *
  1566. * @default "https://static.arcgis.com/fonts"
  1567. *
  1568. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#fontsUrl)
  1569. */
  1570. fontsUrl: string;
  1571. /**
  1572. * The default [geometryService](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html) used by widgets and other operations, such as on-the-fly projections.
  1573. *
  1574. * @default "https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer"
  1575. *
  1576. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#geometryServiceUrl)
  1577. */
  1578. geometryServiceUrl: string;
  1579. /**
  1580. * The URL for the utility service used by [GeoRSSLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoRSSLayer.html) to convert GeoRSS documents.
  1581. *
  1582. * @default "https://utility.arcgis.com/sharing/rss"
  1583. *
  1584. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#geoRSSServiceUrl)
  1585. */
  1586. geoRSSServiceUrl: string;
  1587. /**
  1588. * The URL for the utility service used by [KMLLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-KMLLayer.html) to convert KML documents.
  1589. *
  1590. * @default "https://utility.arcgis.com/sharing/kml"
  1591. *
  1592. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#kmlServiceUrl)
  1593. */
  1594. kmlServiceUrl: string;
  1595. /**
  1596. * An object with properties that control various aspects of log messages.
  1597. *
  1598. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#log)
  1599. */
  1600. log: configLog;
  1601. /**
  1602. * The default URL of new portal instances.
  1603. *
  1604. * @default "https://www.arcgis.com"
  1605. *
  1606. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#portalUrl)
  1607. */
  1608. portalUrl: string;
  1609. /**
  1610. * An object with properties that control various aspects of communication between the library and web servers.
  1611. *
  1612. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request)
  1613. */
  1614. request: configRequest;
  1615. /**
  1616. * The default routing service used by the [RouteLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html) and the [Directions](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html) widget.
  1617. *
  1618. * @default "https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World"
  1619. *
  1620. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#routeServiceUrl)
  1621. */
  1622. routeServiceUrl: string;
  1623. /**
  1624. * An object with properties that control various aspects of [the workers framework](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-workers.html).
  1625. *
  1626. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#workers)
  1627. */
  1628. workers: configWorkers;
  1629. }
  1630. export const config: config;
  1631. export type AfterInterceptorCallback = (response: RequestResponse) => void;
  1632. export type BeforeInterceptorCallback = (params: any) => any;
  1633. export interface configLog {
  1634. /**
  1635. * An array of custom interceptor functions that can be used to intercept log messages.
  1636. *
  1637. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#log)
  1638. */
  1639. interceptors: LogInterceptor[];
  1640. /**
  1641. * The level of messages to log.
  1642. *
  1643. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#log)
  1644. */
  1645. level: "none" | "error" | "warn" | "info";
  1646. }
  1647. export interface configRequest {
  1648. /**
  1649. * List of domain suffixes known to support https.
  1650. *
  1651. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request)
  1652. */
  1653. httpsDomains?: string[];
  1654. /**
  1655. * **Since:** 4.8 Allows developers to modify requests before or after they are sent.
  1656. *
  1657. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request)
  1658. */
  1659. interceptors?: RequestInterceptor[];
  1660. /**
  1661. * Maximum number of characters allowed in the URL for HTTP GET requests made by [request](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html).
  1662. *
  1663. * @default 2000
  1664. *
  1665. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request)
  1666. */
  1667. maxUrlLength?: number;
  1668. /**
  1669. * **Since:** 4.24 The fetch and image network request priority.
  1670. *
  1671. * @default high
  1672. *
  1673. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request)
  1674. */
  1675. priority?: "auto" | "high" | "low";
  1676. /**
  1677. * A proxy rule defines a proxy for a set of resources with an identical URL prefix.
  1678. *
  1679. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request)
  1680. */
  1681. proxyRules?: configRequestProxyRules[];
  1682. /**
  1683. * Resource proxy for your application.
  1684. *
  1685. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request)
  1686. */
  1687. proxyUrl?: string;
  1688. /**
  1689. * Number of milliseconds [request](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html) will wait for response from a server.
  1690. *
  1691. * @default 60000
  1692. *
  1693. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request)
  1694. */
  1695. timeout?: number;
  1696. /**
  1697. * **Since:** 4.9 Indicates whether cross origin requests made to the associated server should include credentials such as cookies and authorization headers.
  1698. *
  1699. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request)
  1700. */
  1701. trustedServers?: string[];
  1702. /**
  1703. * **Since:** 4.5 Indicates whether `esri/request` will request a credential from `IdentityManager`.
  1704. *
  1705. * @default true
  1706. *
  1707. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request)
  1708. */
  1709. useIdentity?: boolean;
  1710. }
  1711. export interface configRequestProxyRules {
  1712. /**
  1713. * The URL of the proxy.
  1714. *
  1715. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request)
  1716. */
  1717. proxyUrl?: string;
  1718. /**
  1719. * URL prefix for resources that need to be accessed through a specific proxy.
  1720. *
  1721. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request)
  1722. */
  1723. urlPrefix?: string;
  1724. }
  1725. export interface configWorkers {
  1726. /**
  1727. * The absolute url to the AMD or SystemJS loader used in the worker.
  1728. *
  1729. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#workers)
  1730. */
  1731. loaderUrl?: any;
  1732. /**
  1733. * This is used by the `@arcgis/core` and `arcgis-js-api` NPM packages to control where to load a custom build of the `RemoteClient` from.
  1734. *
  1735. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#workers)
  1736. */
  1737. workerPath?: string;
  1738. /**
  1739. * The AMD configuration object that is set in each worker.
  1740. *
  1741. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#workers)
  1742. */
  1743. loaderConfig?: configWorkersLoaderConfig;
  1744. }
  1745. export interface configWorkersLoaderConfig {
  1746. /**
  1747. * The AMD loader loads all code relative to the baseUrl.
  1748. *
  1749. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#workers)
  1750. */
  1751. baseUrl?: string;
  1752. /**
  1753. * Determines if the specified feature capabilities are supported.
  1754. *
  1755. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#workers)
  1756. */
  1757. has?: any;
  1758. /**
  1759. * Map of module id fragments to file paths.
  1760. *
  1761. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#workers)
  1762. */
  1763. paths?: any;
  1764. /**
  1765. * Map paths in module identifiers to different paths.
  1766. *
  1767. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#workers)
  1768. */
  1769. map?: any;
  1770. /**
  1771. * An array of objects which provide the package name and its location.
  1772. *
  1773. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#workers)
  1774. */
  1775. packages?: any[];
  1776. }
  1777. export type ErrorCallback = (error: Error) => void;
  1778. export type LogInterceptor = (level: "error" | "warn" | "info", module: string, ...args: any[]) => boolean;
  1779. /**
  1780. * Specifies the object used for intercepting and modifying requests made via [esriRequest](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html).
  1781. *
  1782. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#RequestInterceptor)
  1783. */
  1784. export interface RequestInterceptor {
  1785. /**
  1786. * Makes changes to the response after the request is sent, but before it's returned to the caller.
  1787. *
  1788. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#RequestInterceptor)
  1789. */
  1790. after?: AfterInterceptorCallback;
  1791. /**
  1792. * Make changes to the request URL or options before the request is sent.
  1793. *
  1794. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#RequestInterceptor)
  1795. */
  1796. before?: BeforeInterceptorCallback;
  1797. /**
  1798. * When an error occurs during the request processing, this function is called with an [Error](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Error.html) object giving the details about what happened.
  1799. *
  1800. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#RequestInterceptor)
  1801. */
  1802. error?: ErrorCallback;
  1803. /**
  1804. * Sets or adds headers into `requestOptions.headers`.
  1805. *
  1806. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#RequestInterceptor)
  1807. */
  1808. headers?: any;
  1809. /**
  1810. * Sets or adds query parameters into `requestOptions.query`.
  1811. *
  1812. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#RequestInterceptor)
  1813. */
  1814. query?: any;
  1815. /**
  1816. * Hardcodes the [response](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestResponse).
  1817. *
  1818. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#RequestInterceptor)
  1819. */
  1820. responseData?: any;
  1821. /**
  1822. * Specifies the URL(s) to apply to the interceptors.
  1823. *
  1824. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#RequestInterceptor)
  1825. */
  1826. urls?: string | RegExp | (string | RegExp)[];
  1827. }
  1828. export type WatchCallback = (newValue: any, oldValue: any, propertyName: string, target: Accessor) => void;
  1829. /**
  1830. * Represents a watch or event handler which can be removed.
  1831. *
  1832. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Accessor.html#WatchHandle)
  1833. */
  1834. export interface WatchHandle {
  1835. /**
  1836. * Removes the watch handle.
  1837. *
  1838. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Accessor.html#WatchHandle)
  1839. */
  1840. remove(): void;
  1841. }
  1842. /**
  1843. * This module contains Accessor [TypeScript](https://www.typescriptlang.org/docs/handbook/decorators.html) decorators.
  1844. *
  1845. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-accessorSupport-decorators.html)
  1846. */
  1847. interface decorators {
  1848. /**
  1849. * A property decorator that creates a two-way binding between the property it decorates and an inner property of one of its members.
  1850. *
  1851. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-accessorSupport-decorators.html#aliasOf)
  1852. */
  1853. aliasOf(propertyName: string): Function;
  1854. /**
  1855. * This method decorator is used to define the method that will cast a property from a class.
  1856. *
  1857. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-accessorSupport-decorators.html#cast)
  1858. */
  1859. cast(propertyName: string): Function;
  1860. /**
  1861. * This property decorator is used to define the function or class for a property.
  1862. *
  1863. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-accessorSupport-decorators.html#cast)
  1864. */
  1865. cast(functionOrClass: Function): Function;
  1866. /**
  1867. * This convenience decorator is used to define an [Accessor](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Accessor.html) property.
  1868. *
  1869. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-accessorSupport-decorators.html#property)
  1870. */
  1871. property(propertyMetadata?: decoratorsPropertyPropertyMetadata): Function;
  1872. subclass(declaredClass?: string): Function;
  1873. }
  1874. export const decorators: decorators;
  1875. export interface decoratorsPropertyPropertyMetadata {
  1876. /**
  1877. * Property names of dependencies.
  1878. *
  1879. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-accessorSupport-decorators.html#property)
  1880. */
  1881. dependsOn?: string[];
  1882. /**
  1883. * The constructor used to [autocast](https://developers.arcgis.com/javascript/latest/programming-patterns/#autocasting) the property.
  1884. *
  1885. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-accessorSupport-decorators.html#property)
  1886. */
  1887. type?: Function;
  1888. /**
  1889. * The function to use to [autocast](https://developers.arcgis.com/javascript/latest/programming-patterns/#autocasting) the property.
  1890. *
  1891. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-accessorSupport-decorators.html#property)
  1892. */
  1893. cast?: Function;
  1894. /**
  1895. * Indicates whether the property is read-only.
  1896. *
  1897. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-accessorSupport-decorators.html#property)
  1898. */
  1899. readOnly?: boolean;
  1900. /**
  1901. * Indicates whether the property can be set during construction but is otherwise read-only.
  1902. *
  1903. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-accessorSupport-decorators.html#property)
  1904. */
  1905. constructOnly?: boolean;
  1906. /**
  1907. * The property decorator that creates a two-way binding between the property it decorates and an inner property of one of its members.
  1908. *
  1909. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-accessorSupport-decorators.html#property)
  1910. */
  1911. aliasOf?: string;
  1912. /**
  1913. * The default value for the property.
  1914. *
  1915. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-accessorSupport-decorators.html#property)
  1916. */
  1917. value?: any;
  1918. }
  1919. export interface CollectionAfterAddEvent {
  1920. item: any;
  1921. }
  1922. export interface CollectionAfterChangesEvent {
  1923. }
  1924. export interface CollectionAfterRemoveEvent {
  1925. item: any;
  1926. }
  1927. export interface CollectionBeforeAddEvent {
  1928. cancellable: boolean;
  1929. defaultPrevented: boolean;
  1930. item: any;
  1931. preventDefault: Function;
  1932. }
  1933. export interface CollectionBeforeChangesEvent {
  1934. cancellable: boolean;
  1935. defaultPrevented: boolean;
  1936. item: any;
  1937. preventDefault: Function;
  1938. }
  1939. export interface CollectionBeforeRemoveEvent {
  1940. cancellable: boolean;
  1941. defaultPrevented: boolean;
  1942. item: any;
  1943. preventDefault: Function;
  1944. }
  1945. export class Error {
  1946. /**
  1947. * The details object provides additional details specific to the error, giving more information about why the error was raised.
  1948. *
  1949. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Error.html#details)
  1950. */
  1951. details: any;
  1952. /**
  1953. * A message describing the details of the error.
  1954. *
  1955. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Error.html#message)
  1956. */
  1957. message: string;
  1958. /**
  1959. * A unique error name.
  1960. *
  1961. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Error.html#name)
  1962. */
  1963. name: string;
  1964. constructor(name: string, message?: string, details?: any);
  1965. }
  1966. /** @deprecated Import the Error class instead. */
  1967. export type ErrorConstructor = typeof Error;
  1968. export class Evented {
  1969. /**
  1970. * Emits an event on the instance.
  1971. *
  1972. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Evented.html#emit)
  1973. */
  1974. emit(type: string, event?: any): boolean;
  1975. /**
  1976. * Indicates whether there is an event listener on the instance that matches the provided event name.
  1977. *
  1978. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Evented.html#hasEventListener)
  1979. */
  1980. hasEventListener(type: string): boolean;
  1981. /**
  1982. * Registers an event handler on the instance.
  1983. *
  1984. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Evented.html#on)
  1985. */
  1986. on(type: string | string[], listener: EventHandler): IHandle;
  1987. }
  1988. export type EventHandler = (event: any) => void;
  1989. export class HandleOwner extends Accessor {
  1990. /**
  1991. * Handle registry to help manage `handles`.
  1992. *
  1993. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-HandleOwner.html#handles)
  1994. */
  1995. handles: Handles;
  1996. /**
  1997. * Provides a single [handles](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-HandleOwner.html#handles) property to be shared with all subclasses.
  1998. *
  1999. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-HandleOwner.html)
  2000. */
  2001. constructor(properties?: HandleOwnerProperties);
  2002. }
  2003. /** @deprecated Import the HandleOwner class instead. */
  2004. export type HandleOwnerConstructor = typeof HandleOwner;
  2005. interface HandleOwnerProperties {
  2006. /**
  2007. * Handle registry to help manage `handles`.
  2008. *
  2009. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-HandleOwner.html#handles)
  2010. */
  2011. handles?: Handles;
  2012. }
  2013. export class Handles {
  2014. constructor();
  2015. /**
  2016. * Adds a group of handles.
  2017. *
  2018. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Handles.html#add)
  2019. */
  2020. add(handles: WatchHandle | WatchHandle[] | Collection<WatchHandle>, groupKey?: any): void;
  2021. /**
  2022. * Destroys the object, removing all the handles.
  2023. *
  2024. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Handles.html#destroy)
  2025. */
  2026. destroy(): void;
  2027. /**
  2028. * Returns true if a group exists for the provided group key, false otherwise.
  2029. *
  2030. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Handles.html#has)
  2031. */
  2032. has(groupKey: any): boolean;
  2033. /**
  2034. * Removes a group of handles.
  2035. *
  2036. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Handles.html#remove)
  2037. */
  2038. remove(groupKey?: any): void;
  2039. /**
  2040. * Removes all handles.
  2041. *
  2042. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Handles.html#removeAll)
  2043. */
  2044. removeAll(): void;
  2045. }
  2046. /** @deprecated Import the Handles class instead. */
  2047. export type HandlesConstructor = typeof Handles;
  2048. /**
  2049. * A handle to a [highlight](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#highlight) call result.
  2050. *
  2051. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Handles.html#Handle)
  2052. */
  2053. export interface Handle {
  2054. /**
  2055. * Removes the handle.
  2056. *
  2057. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Handles.html#Handle)
  2058. */
  2059. remove(): void;
  2060. }
  2061. export class Identifiable {
  2062. }
  2063. export class JSONSupport {
  2064. /**
  2065. * Converts an instance of this class to its [ArcGIS portal JSON](https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm) representation.
  2066. *
  2067. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-JSONSupport.html#toJSON)
  2068. */
  2069. toJSON(): any;
  2070. /**
  2071. * Creates a new instance of this class and initializes it with values from a JSON object generated from an ArcGIS product.
  2072. *
  2073. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-JSONSupport.html#fromJSON)
  2074. */
  2075. static fromJSON(json: any): any;
  2076. }
  2077. /**
  2078. * Provides a utility method for deeply cloning objects with properties that are computed or have their own `clone()` method, such as [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html).
  2079. *
  2080. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-lang.html)
  2081. */
  2082. interface lang {
  2083. /**
  2084. * Use this method to deeply clone objects with properties that are computed or have their own `clone()` method.
  2085. *
  2086. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-lang.html#clone)
  2087. */
  2088. clone(elem: any): any;
  2089. }
  2090. export const lang: lang;
  2091. export class Loadable {
  2092. /**
  2093. * The Error object returned if an error occurred while loading.
  2094. *
  2095. * @default null
  2096. *
  2097. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Loadable.html#loadError)
  2098. */
  2099. readonly loadError: Error;
  2100. /**
  2101. * Represents the status of a [load](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Loadable.html#load) operation.
  2102. *
  2103. * @default not-loaded
  2104. *
  2105. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Loadable.html#loadStatus)
  2106. */
  2107. readonly loadStatus: "not-loaded" | "loading" | "failed" | "loaded";
  2108. /**
  2109. * A list of warnings which occurred while loading.
  2110. *
  2111. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Loadable.html#loadWarnings)
  2112. */
  2113. readonly loadWarnings: any[];
  2114. /**
  2115. * Cancels a [load()](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Loadable.html#load) operation if it is already in progress.
  2116. *
  2117. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Loadable.html#cancelLoad)
  2118. */
  2119. cancelLoad(): void;
  2120. /**
  2121. * `isFulfilled()` may be used to verify if creating an instance of the class is fulfilled (either resolved or rejected).
  2122. *
  2123. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Loadable.html#isFulfilled)
  2124. */
  2125. isFulfilled(): boolean;
  2126. /**
  2127. * `isRejected()` may be used to verify if creating an instance of the class is rejected.
  2128. *
  2129. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Loadable.html#isRejected)
  2130. */
  2131. isRejected(): boolean;
  2132. /**
  2133. * `isResolved()` may be used to verify if creating an instance of the class is resolved.
  2134. *
  2135. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Loadable.html#isResolved)
  2136. */
  2137. isResolved(): boolean;
  2138. /**
  2139. * Loads the resources referenced by this class.
  2140. *
  2141. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Loadable.html#load)
  2142. */
  2143. load(signal?: AbortSignal): Promise<any>;
  2144. /**
  2145. * `when()` may be leveraged once an instance of the class is created.
  2146. *
  2147. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Loadable.html#when)
  2148. */
  2149. when(callback?: Function, errback?: Function): Promise<any>;
  2150. }
  2151. interface LoadableProperties {
  2152. }
  2153. export class corePromise {
  2154. /**
  2155. * `isFulfilled()` may be used to verify if creating an instance of the class is fulfilled (either resolved or rejected).
  2156. *
  2157. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Promise.html#isFulfilled)
  2158. */
  2159. isFulfilled(): boolean;
  2160. /**
  2161. * `isRejected()` may be used to verify if creating an instance of the class is rejected.
  2162. *
  2163. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Promise.html#isRejected)
  2164. */
  2165. isRejected(): boolean;
  2166. /**
  2167. * `isResolved()` may be used to verify if creating an instance of the class is resolved.
  2168. *
  2169. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Promise.html#isResolved)
  2170. */
  2171. isResolved(): boolean;
  2172. /**
  2173. * `when()` may be leveraged once an instance of the class is created.
  2174. *
  2175. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Promise.html#when)
  2176. */
  2177. when(callback?: Function, errback?: Function): Promise<any>;
  2178. }
  2179. /**
  2180. * Various utilities and convenience functions for working with promises.
  2181. *
  2182. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-promiseUtils.html)
  2183. */
  2184. interface promiseUtils {
  2185. /**
  2186. * Convenience utility method for creating and resolving a promise.
  2187. *
  2188. * @deprecated since version 4.24. Use [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/Promise) instead.
  2189. *
  2190. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-promiseUtils.html#create)
  2191. */
  2192. create(executor: Executor): Promise<any>;
  2193. /**
  2194. * Creates a special error object which is used to signal aborted requests in promise chains.
  2195. *
  2196. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-promiseUtils.html#createAbortError)
  2197. */
  2198. createAbortError(): Error;
  2199. /**
  2200. * A utility for ensuring an input function is not simultaneously invoked more than once at a time.
  2201. *
  2202. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-promiseUtils.html#debounce)
  2203. */
  2204. debounce<T>(callback: T): T;
  2205. /**
  2206. * Convenience utility method to wait for a number of promises to either resolve or reject.
  2207. *
  2208. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-promiseUtils.html#eachAlways)
  2209. */
  2210. eachAlways(promises: Promise<any>[] | any): Promise<EachAlwaysResult[]> | any;
  2211. /**
  2212. * A convenience utility method for filtering an array of values using an asynchronous predicate function.
  2213. *
  2214. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-promiseUtils.html#filter)
  2215. */
  2216. filter<T>(input: T[], predicate: FilterPredicateCallback): Promise<T[]>;
  2217. /**
  2218. * Check if the provided error object is the special kind of error with which promises are rejected when they are aborted.
  2219. *
  2220. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-promiseUtils.html#isAbortError)
  2221. */
  2222. isAbortError(error: Error): boolean;
  2223. }
  2224. export const promiseUtils: promiseUtils;
  2225. /**
  2226. * The result object for a promise passed to [promiseUtils.eachAlways](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-promiseUtils.html#eachAlways).
  2227. *
  2228. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-promiseUtils.html#EachAlwaysResult)
  2229. */
  2230. export interface EachAlwaysResult {
  2231. /**
  2232. * The promise that has been fulfilled.
  2233. *
  2234. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-promiseUtils.html#EachAlwaysResult)
  2235. */
  2236. promise: Promise<any>;
  2237. /**
  2238. * The value with which the promise resolved.
  2239. *
  2240. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-promiseUtils.html#EachAlwaysResult)
  2241. */
  2242. value?: any;
  2243. /**
  2244. * The error with which the promise rejected.
  2245. *
  2246. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-promiseUtils.html#EachAlwaysResult)
  2247. */
  2248. error?: any;
  2249. }
  2250. export type Executor = (resolve: ResolveCallback, reject: RejectCallback) => void;
  2251. export type FilterPredicateCallback = (value: any, index: number) => Promise<any>;
  2252. export type RejectCallback = (error?: any) => void;
  2253. export type ResolveCallback = (value?: any | Promise<any>) => void;
  2254. /**
  2255. * Quantity type used to represent measurements across the JS API.
  2256. *
  2257. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-quantity.html)
  2258. */
  2259. interface quantity {
  2260. }
  2261. export const quantity: quantity;
  2262. export interface Angle {
  2263. /**
  2264. * Scalar value representing a angle.
  2265. *
  2266. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-quantity.html#Angle)
  2267. */
  2268. value: number;
  2269. /**
  2270. * Any unit which represents an angle.
  2271. *
  2272. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-quantity.html#Angle)
  2273. */
  2274. unit: AngleUnit;
  2275. /**
  2276. * Unit type.
  2277. *
  2278. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-quantity.html#Angle)
  2279. */
  2280. type: "angle";
  2281. }
  2282. export interface Area {
  2283. /**
  2284. * Scalar value representing a area.
  2285. *
  2286. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-quantity.html#Area)
  2287. */
  2288. value: number;
  2289. /**
  2290. * Any unit which represents area.
  2291. *
  2292. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-quantity.html#Area)
  2293. */
  2294. unit: AreaUnit;
  2295. /**
  2296. * Unit type.
  2297. *
  2298. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-quantity.html#Area)
  2299. */
  2300. type: "area";
  2301. }
  2302. export interface Length {
  2303. /**
  2304. * Scalar value representing a length.
  2305. *
  2306. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-quantity.html#Length)
  2307. */
  2308. value: number;
  2309. /**
  2310. * Any unit which represents length.
  2311. *
  2312. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-quantity.html#Length)
  2313. */
  2314. unit: LengthUnit;
  2315. /**
  2316. * Unit type.
  2317. *
  2318. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-quantity.html#Length)
  2319. */
  2320. type: "length";
  2321. }
  2322. /**
  2323. * Various utilities and convenience functions for executing code at various phases of browser frames.
  2324. *
  2325. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-scheduling.html)
  2326. */
  2327. interface scheduling {
  2328. /**
  2329. * Registers a frame task.
  2330. *
  2331. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-scheduling.html#addFrameTask)
  2332. */
  2333. addFrameTask(phases: PhaseCallbacks): FrameTaskHandle;
  2334. /**
  2335. * Schedules the execution of a `callback` function at the next web browser tick.
  2336. *
  2337. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-scheduling.html#schedule)
  2338. */
  2339. schedule(callback: Function): any;
  2340. }
  2341. export const scheduling: scheduling;
  2342. /**
  2343. * An object to remove or pause a frame task registered with [addFrameTask()](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-scheduling.html#addFrameTask).
  2344. *
  2345. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-scheduling.html#FrameTaskHandle)
  2346. */
  2347. export interface FrameTaskHandle {
  2348. /**
  2349. * Pause the execution the frame task at every frame.
  2350. *
  2351. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-scheduling.html#FrameTaskHandle)
  2352. */
  2353. pause(): void;
  2354. /**
  2355. * Resumes the execution the frame task.
  2356. *
  2357. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-scheduling.html#FrameTaskHandle)
  2358. */
  2359. resume(): void;
  2360. /**
  2361. * Removes the frame task.
  2362. *
  2363. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-scheduling.html#FrameTaskHandle)
  2364. */
  2365. remove(): void;
  2366. }
  2367. export type PhaseCallback = (event?: PhaseEvent) => void;
  2368. /**
  2369. * A set of [callbacks](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-scheduling.html#PhaseCallback) that will be called at specific phases of the animation frame.
  2370. *
  2371. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-scheduling.html#PhaseCallbacks)
  2372. */
  2373. export interface PhaseCallbacks {
  2374. /**
  2375. * A callback called before rendering.
  2376. *
  2377. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-scheduling.html#PhaseCallbacks)
  2378. */
  2379. prepare?: PhaseCallback;
  2380. /**
  2381. * A callback to execute rendering logic.
  2382. *
  2383. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-scheduling.html#PhaseCallbacks)
  2384. */
  2385. render?: PhaseCallback;
  2386. /**
  2387. * A callback to execute state update logic.
  2388. *
  2389. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-scheduling.html#PhaseCallbacks)
  2390. */
  2391. update?: PhaseCallback;
  2392. }
  2393. /**
  2394. * An object with timing information.
  2395. *
  2396. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-scheduling.html#PhaseEvent)
  2397. */
  2398. export interface PhaseEvent {
  2399. /**
  2400. * The absolute time at the start of the current animation frame.
  2401. *
  2402. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-scheduling.html#PhaseEvent)
  2403. */
  2404. time: number;
  2405. /**
  2406. * The elapsed time since the last animation frame.
  2407. *
  2408. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-scheduling.html#PhaseEvent)
  2409. */
  2410. deltaTime: number;
  2411. /**
  2412. * The amount of time spent within the current animation frame.
  2413. *
  2414. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-scheduling.html#PhaseEvent)
  2415. */
  2416. elapsedFrameTime: number;
  2417. }
  2418. /**
  2419. * Creates a [WhereClause](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html) expression that adheres to standardized SQL expressions.
  2420. *
  2421. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql.html)
  2422. */
  2423. interface sql {
  2424. /**
  2425. * Parses the given where clause string and returns an instance of [WhereClause](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html) when resolved.
  2426. *
  2427. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql.html#parseWhereClause)
  2428. */
  2429. parseWhereClause(clause: string, fieldsIndex: FieldsIndex): Promise<WhereClause>;
  2430. }
  2431. export const sql: sql;
  2432. /**
  2433. * The WhereClause is used to extract the features that meet a specified condition by parsing the provided results in to a value.
  2434. *
  2435. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html)
  2436. */
  2437. interface WhereClause {
  2438. /**
  2439. * An array of the field names used in the where clause.
  2440. *
  2441. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#fieldNames)
  2442. */
  2443. fieldNames: string[];
  2444. /**
  2445. * Returns `true` if the parsed where clause meets the requirements of standardized sql.
  2446. *
  2447. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#isStandardized)
  2448. */
  2449. readonly isStandardized: boolean;
  2450. /**
  2451. * A parse tree is a data structure for representing a parsed sql statement.
  2452. *
  2453. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#parseTree)
  2454. */
  2455. parseTree: SQLNode;
  2456. /**
  2457. * Executes the where clause against a feature to generate a value.
  2458. *
  2459. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#calculateValue)
  2460. */
  2461. calculateValue(feature: any): any;
  2462. /**
  2463. * Tests the attributes of a feature against the `whereClause`, and returns `true` if the test passes, `false` otherwise.
  2464. *
  2465. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#testFeature)
  2466. */
  2467. testFeature(feature: any): boolean;
  2468. }
  2469. export const WhereClause: WhereClause;
  2470. /**
  2471. * A binary expression node.
  2472. *
  2473. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#BinaryNode)
  2474. */
  2475. export interface BinaryNode {
  2476. type: "binary-expression";
  2477. /**
  2478. * Defines the way two expressions are combined to yield a single result.
  2479. *
  2480. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#BinaryNode)
  2481. */
  2482. operator: | "AND"
  2483. | "OR"
  2484. | "IS"
  2485. | "ISNOT"
  2486. | "IN"
  2487. | "NOT IN"
  2488. | "BETWEEN"
  2489. | "NOTBETWEEN"
  2490. | "LIKE"
  2491. | "NOT LIKE"
  2492. | "<>"
  2493. | "<"
  2494. | ">"
  2495. | ">="
  2496. | "<="
  2497. | "="
  2498. | "*"
  2499. | "-"
  2500. | "+"
  2501. | "/";
  2502. /**
  2503. * SQL node to the left of the binary node.
  2504. *
  2505. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#BinaryNode)
  2506. */
  2507. left: SQLNode;
  2508. /**
  2509. * SQL node to the right of the binary node.
  2510. *
  2511. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#BinaryNode)
  2512. */
  2513. right: SQLNode;
  2514. /**
  2515. * Escape string.
  2516. *
  2517. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#BinaryNode)
  2518. */
  2519. escape?: string;
  2520. }
  2521. /**
  2522. * A node that contains a boolean expression.
  2523. *
  2524. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#BoolNode)
  2525. */
  2526. export interface BoolNode {
  2527. type: "boolean";
  2528. /**
  2529. * Values are `true` or `false`.
  2530. *
  2531. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#BoolNode)
  2532. */
  2533. value: boolean;
  2534. }
  2535. /**
  2536. * A node that contains column name of a layer or table.
  2537. *
  2538. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#ColumnNode)
  2539. */
  2540. export interface ColumnNode {
  2541. type: "column-reference";
  2542. /**
  2543. * Column or field name.
  2544. *
  2545. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#ColumnNode)
  2546. */
  2547. column: "string";
  2548. }
  2549. /**
  2550. * A node that contains `CURRENT_TIME` or `CURRENT_DATE` functions.
  2551. *
  2552. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#CurrentTimeNode)
  2553. */
  2554. export interface CurrentTimeNode {
  2555. type: "current-time";
  2556. /**
  2557. * The current time node mode.
  2558. *
  2559. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#CurrentTimeNode)
  2560. */
  2561. mode: "timestamp" | "date";
  2562. }
  2563. /**
  2564. * A node that contains date.
  2565. *
  2566. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#DateNode)
  2567. */
  2568. export interface DateNode {
  2569. type: "date";
  2570. /**
  2571. * The date value.
  2572. *
  2573. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#DateNode)
  2574. */
  2575. value: string;
  2576. }
  2577. /**
  2578. * A nodes that contains SQL function.
  2579. *
  2580. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#FunctionNode)
  2581. */
  2582. export interface FunctionNode {
  2583. type: "function";
  2584. /**
  2585. * Name of the SQL function.
  2586. *
  2587. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#FunctionNode)
  2588. */
  2589. name: string;
  2590. /**
  2591. * Function arguments.
  2592. *
  2593. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#FunctionNode)
  2594. */
  2595. args: ListNode;
  2596. }
  2597. /**
  2598. * Interval node indicates that the character literal is an interval.
  2599. *
  2600. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#IntervalNode)
  2601. */
  2602. export interface IntervalNode {
  2603. type: "interval";
  2604. /**
  2605. * Interval node value.
  2606. *
  2607. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#IntervalNode)
  2608. */
  2609. value: StringNode;
  2610. /**
  2611. * Interval node sign.
  2612. *
  2613. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#IntervalNode)
  2614. */
  2615. op: "+" | "-" | "";
  2616. /**
  2617. * The interval qualifier can either be a single datetime field or be composed of two datetime fields, in the form: <leading field> TO <trailing field>.
  2618. *
  2619. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#IntervalNode)
  2620. */
  2621. qualifier: IntervalQualifierNode | IntervalPeriodNode;
  2622. }
  2623. /**
  2624. * Interval period node.
  2625. *
  2626. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#IntervalPeriodNode)
  2627. */
  2628. export interface IntervalPeriodNode {
  2629. type: "interval-period";
  2630. /**
  2631. * Interval node periods.
  2632. *
  2633. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#IntervalPeriodNode)
  2634. */
  2635. period: "day" | "month" | "hour" | "second" | "year" | "minute";
  2636. precision: number;
  2637. secondary: "number";
  2638. }
  2639. /**
  2640. * Node that contains interval qualifier.
  2641. *
  2642. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#IntervalQualifierNode)
  2643. */
  2644. export interface IntervalQualifierNode {
  2645. type: "interval-qualifier";
  2646. /**
  2647. * Interval node periods.
  2648. *
  2649. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#IntervalQualifierNode)
  2650. */
  2651. period: "day" | "month" | "hour" | "second" | "year" | "minute";
  2652. /**
  2653. * Precision for an interval data type includes interval leading precision, interval precision, and seconds precision.
  2654. *
  2655. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#IntervalQualifierNode)
  2656. */
  2657. precision: number;
  2658. /**
  2659. * Seconds precision.
  2660. *
  2661. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#IntervalQualifierNode)
  2662. */
  2663. secondary: "number";
  2664. }
  2665. /**
  2666. * A node that contains a list.
  2667. *
  2668. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#ListNode)
  2669. */
  2670. export interface ListNode {
  2671. type: "expression-list";
  2672. /**
  2673. * SQL expression for the list.
  2674. *
  2675. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#ListNode)
  2676. */
  2677. expr: SQLNode;
  2678. }
  2679. /**
  2680. * A node that contains `NULL` value.
  2681. *
  2682. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#NullNode)
  2683. */
  2684. export interface NullNode {
  2685. type: "null";
  2686. /**
  2687. * Null value.
  2688. *
  2689. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#NullNode)
  2690. */
  2691. value: null;
  2692. }
  2693. /**
  2694. * A node that contains number.
  2695. *
  2696. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#NumberNode)
  2697. */
  2698. export interface NumberNode {
  2699. type: "number";
  2700. /**
  2701. * Numeric value.
  2702. *
  2703. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#NumberNode)
  2704. */
  2705. value: number;
  2706. }
  2707. /**
  2708. * Node that contains case expression.
  2709. *
  2710. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#SearchedCaseNode)
  2711. */
  2712. export interface SearchedCaseNode {
  2713. type: "case-expression";
  2714. /**
  2715. * Case expression format.
  2716. *
  2717. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#SearchedCaseNode)
  2718. */
  2719. format: "searched";
  2720. /**
  2721. * When clauses.
  2722. *
  2723. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#SearchedCaseNode)
  2724. */
  2725. clauses: WhenNode[];
  2726. /**
  2727. * Else SQL node.
  2728. *
  2729. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#SearchedCaseNode)
  2730. */
  2731. else: SQLNode;
  2732. }
  2733. /**
  2734. * Simple case expression node.
  2735. *
  2736. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#SimpleCaseNode)
  2737. */
  2738. export interface SimpleCaseNode {
  2739. type: "case_expression";
  2740. format: "simple";
  2741. /**
  2742. * When nodes.
  2743. *
  2744. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#SimpleCaseNode)
  2745. */
  2746. clauses: WhenNode[];
  2747. /**
  2748. * SQL node.
  2749. *
  2750. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#SimpleCaseNode)
  2751. */
  2752. operand: SQLNode;
  2753. /**
  2754. * else sql node.
  2755. *
  2756. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#SimpleCaseNode)
  2757. */
  2758. else: SQLNode;
  2759. }
  2760. /**
  2761. * SQL parse tree is composed of SqlNodes.
  2762. *
  2763. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#SQLNode)
  2764. */
  2765. export type SQLNode = | BinaryNode
  2766. | BoolNode
  2767. | ColumnNode
  2768. | CurrentTimeNode
  2769. | DateNode
  2770. | FunctionNode
  2771. | IntervalNode
  2772. | IntervalPeriodNode
  2773. | IntervalQualifierNode
  2774. | NullNode
  2775. | StringNode
  2776. | ListNode
  2777. | NumberNode
  2778. | SimpleCaseNode
  2779. | SearchedCaseNode
  2780. | TimeStampNode
  2781. | UnaryNode
  2782. | WhenNode;
  2783. /**
  2784. * A node that contains string.
  2785. *
  2786. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#StringNode)
  2787. */
  2788. export interface StringNode {
  2789. type: "string";
  2790. /**
  2791. * The string value.
  2792. *
  2793. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#StringNode)
  2794. */
  2795. value: string;
  2796. }
  2797. /**
  2798. * A node that contains date.
  2799. *
  2800. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#TimeStampNode)
  2801. */
  2802. export interface TimeStampNode {
  2803. type: "timestamp";
  2804. /**
  2805. * String date value.
  2806. *
  2807. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#TimeStampNode)
  2808. */
  2809. value: string;
  2810. }
  2811. /**
  2812. * A node that contains unary operator.
  2813. *
  2814. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#UnaryNode)
  2815. */
  2816. export interface UnaryNode {
  2817. type: "unary-expression";
  2818. /**
  2819. * The sql node.
  2820. *
  2821. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#UnaryNode)
  2822. */
  2823. expr: SQLNode;
  2824. }
  2825. /**
  2826. * Node that contains when clause.
  2827. *
  2828. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#WhenNode)
  2829. */
  2830. export interface WhenNode {
  2831. type: "when-clause";
  2832. /**
  2833. * operand.
  2834. *
  2835. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#WhenNode)
  2836. */
  2837. operand: SQLNode;
  2838. /**
  2839. * value.
  2840. *
  2841. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-sql-WhereClause.html#WhenNode)
  2842. */
  2843. value: SQLNode;
  2844. }
  2845. /**
  2846. * Types of units used across the JS API.
  2847. *
  2848. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-units.html)
  2849. */
  2850. namespace units {
  2851. /**
  2852. * Units for lengths.
  2853. *
  2854. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-units.html#LengthUnit)
  2855. */
  2856. export type LengthUnit = | "millimeters"
  2857. | "centimeters"
  2858. | "decimeters"
  2859. | "meters"
  2860. | "kilometers"
  2861. | "inches"
  2862. | "feet"
  2863. | "yards"
  2864. | "miles"
  2865. | "nautical-miles"
  2866. | "us-feet";
  2867. /**
  2868. * Units for areas.
  2869. *
  2870. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-units.html#AreaUnit)
  2871. */
  2872. export type AreaUnit = | "square-millimeters"
  2873. | "square-centimeters"
  2874. | "square-decimeters"
  2875. | "square-meters"
  2876. | "square-kilometers"
  2877. | "square-inches"
  2878. | "square-feet"
  2879. | "square-yards"
  2880. | "square-miles"
  2881. | "square-us-feet"
  2882. | "acres"
  2883. | "ares"
  2884. | "hectares";
  2885. /**
  2886. * Units for volumes.
  2887. *
  2888. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-units.html#VolumeUnit)
  2889. */
  2890. export type VolumeUnit = | "liters"
  2891. | "cubic-millimeters"
  2892. | "cubic-centimeters"
  2893. | "cubic-decimeters"
  2894. | "cubic-meters"
  2895. | "cubic-kilometers"
  2896. | "cubic-inches"
  2897. | "cubic-feet"
  2898. | "cubic-yards"
  2899. | "cubic-miles";
  2900. /**
  2901. * Units for angles.
  2902. *
  2903. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-units.html#AngleUnit)
  2904. */
  2905. export type AngleUnit = "degrees" | "radians";
  2906. /**
  2907. * Units for angles.
  2908. *
  2909. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-units.html#Unit)
  2910. */
  2911. export type Unit = __esri.LengthUnit | __esri.AreaUnit | __esri.VolumeUnit | __esri.AngleUnit;
  2912. /**
  2913. * Measurement systems.
  2914. *
  2915. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-units.html#MeasurementSystem)
  2916. */
  2917. export type MeasurementSystem = "imperial" | "metric";
  2918. /**
  2919. * Measurement systems or an area units.
  2920. *
  2921. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-units.html#SystemOrAreaUnit)
  2922. */
  2923. export type SystemOrAreaUnit = __esri.MeasurementSystem | __esri.AreaUnit;
  2924. /**
  2925. * Measurement system or an length unit.
  2926. *
  2927. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-units.html#SystemOrLengthUnit)
  2928. */
  2929. export type SystemOrLengthUnit = __esri.MeasurementSystem | __esri.LengthUnit;
  2930. }
  2931. /**
  2932. * Units for angles.
  2933. *
  2934. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-units.html#AngleUnit)
  2935. */
  2936. export type AngleUnit = "degrees" | "radians";
  2937. /**
  2938. * Units for areas.
  2939. *
  2940. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-units.html#AreaUnit)
  2941. */
  2942. export type AreaUnit = | "square-millimeters"
  2943. | "square-centimeters"
  2944. | "square-decimeters"
  2945. | "square-meters"
  2946. | "square-kilometers"
  2947. | "square-inches"
  2948. | "square-feet"
  2949. | "square-yards"
  2950. | "square-miles"
  2951. | "square-us-feet"
  2952. | "acres"
  2953. | "ares"
  2954. | "hectares";
  2955. /**
  2956. * Units for lengths.
  2957. *
  2958. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-units.html#LengthUnit)
  2959. */
  2960. export type LengthUnit = | "millimeters"
  2961. | "centimeters"
  2962. | "decimeters"
  2963. | "meters"
  2964. | "kilometers"
  2965. | "inches"
  2966. | "feet"
  2967. | "yards"
  2968. | "miles"
  2969. | "nautical-miles"
  2970. | "us-feet";
  2971. /**
  2972. * Measurement systems.
  2973. *
  2974. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-units.html#MeasurementSystem)
  2975. */
  2976. export type MeasurementSystem = "imperial" | "metric";
  2977. /**
  2978. * Measurement systems or an area units.
  2979. *
  2980. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-units.html#SystemOrAreaUnit)
  2981. */
  2982. export type SystemOrAreaUnit = MeasurementSystem | AreaUnit;
  2983. /**
  2984. * Measurement system or an length unit.
  2985. *
  2986. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-units.html#SystemOrLengthUnit)
  2987. */
  2988. export type SystemOrLengthUnit = MeasurementSystem | LengthUnit;
  2989. /**
  2990. * Units for angles.
  2991. *
  2992. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-units.html#Unit)
  2993. */
  2994. export type Unit = LengthUnit | AreaUnit | VolumeUnit | AngleUnit;
  2995. /**
  2996. * Units for volumes.
  2997. *
  2998. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-units.html#VolumeUnit)
  2999. */
  3000. export type VolumeUnit = | "liters"
  3001. | "cubic-millimeters"
  3002. | "cubic-centimeters"
  3003. | "cubic-decimeters"
  3004. | "cubic-meters"
  3005. | "cubic-kilometers"
  3006. | "cubic-inches"
  3007. | "cubic-feet"
  3008. | "cubic-yards"
  3009. | "cubic-miles";
  3010. /**
  3011. * Utility methods for working with URLs.
  3012. *
  3013. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-urlUtils.html)
  3014. */
  3015. interface urlUtils {
  3016. /**
  3017. * Adds the given proxy rule to the proxy rules list: `esriConfig.request.proxyRules`.
  3018. *
  3019. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-urlUtils.html#addProxyRule)
  3020. */
  3021. addProxyRule(rule: urlUtilsAddProxyRuleRule): number;
  3022. /**
  3023. * Returns the proxy rule that matches the given URL.
  3024. *
  3025. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-urlUtils.html#getProxyRule)
  3026. */
  3027. getProxyRule(url: string): any;
  3028. /**
  3029. * Converts the URL arguments to an object representation.
  3030. *
  3031. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-urlUtils.html#urlToObject)
  3032. */
  3033. urlToObject(url: string): any;
  3034. }
  3035. export const urlUtils: urlUtils;
  3036. export interface urlUtilsAddProxyRuleRule {
  3037. /**
  3038. * The URL of the proxy.
  3039. *
  3040. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-urlUtils.html#addProxyRule)
  3041. */
  3042. proxyUrl: string;
  3043. /**
  3044. * The URL prefix of the resources that should be accessed through the given proxy.
  3045. *
  3046. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-urlUtils.html#addProxyRule)
  3047. */
  3048. urlPrefix: string;
  3049. }
  3050. /**
  3051. * Various utilities and convenience functions for watching [Accessor](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Accessor.html) properties.
  3052. *
  3053. * @deprecated since version 4.24. Use {@link module:esri/core/reactiveUtils} instead.
  3054. *
  3055. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html)
  3056. */
  3057. interface watchUtils {
  3058. /**
  3059. * Watches a property for changes and calls the callback with the initial value of the property.
  3060. *
  3061. * @deprecated since 4.24. Use {@link module:esri/core/reactiveUtils#watch reactiveUtils.watch()} instead.
  3062. *
  3063. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#init)
  3064. */
  3065. init(obj: Accessor, propertyName: string | string[], callback: WatchCallback): WatchHandle;
  3066. /**
  3067. * Watches a property for changes and automatically attaches and detaches an event handler for a given event to the property value as needed.
  3068. *
  3069. * @deprecated since 4.24. Use {@link module:esri/core/reactiveUtils#on reactiveUtils.on()} instead.
  3070. *
  3071. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#on)
  3072. */
  3073. on(obj: Accessor, propertyName: string | string[], eventName: string, eventHandler: Function, attachedHandler?: EventAttachedCallback, detachedHandler?: EventAttachedCallback): WatchHandle;
  3074. /**
  3075. * Watches a property for changes once.
  3076. *
  3077. * @deprecated since 4.24. Use {@link module:esri/core/reactiveUtils#once reactiveUtils.once()} instead.
  3078. *
  3079. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#once)
  3080. */
  3081. once(obj: Accessor, propertyName: string | string[], callback?: WatchCallback): PromisedWatchHandle;
  3082. /**
  3083. * Watches a property for changes.
  3084. *
  3085. * @deprecated Since 4.24.
  3086. *
  3087. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#pausable)
  3088. */
  3089. pausable(obj: Accessor, propertyName: string | string[], callback?: WatchCallback): PausableWatchHandle;
  3090. /**
  3091. * Watches a property for changes.
  3092. *
  3093. * @deprecated since 4.24. Use {@link module:esri/core/reactiveUtils#watch reactiveUtils.watch()} instead.
  3094. *
  3095. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#watch)
  3096. */
  3097. watch(obj: Accessor, propertyName: string | string[], callback: WatchCallback): WatchHandle;
  3098. /**
  3099. * Watches a property for becoming truthy.
  3100. *
  3101. * @deprecated since 4.24. Use {@link module:esri/core/reactiveUtils#when reactiveUtils.when()} instead.
  3102. *
  3103. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#when)
  3104. */
  3105. when(obj: Accessor, propertyName: string | string[], callback: WatchCallback): WatchHandle;
  3106. /**
  3107. * Watches a property for becoming `defined`.
  3108. *
  3109. * @deprecated since 4.24. Use {@link module:esri/core/reactiveUtils#when reactiveUtils.when()} instead.
  3110. *
  3111. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#whenDefined)
  3112. */
  3113. whenDefined(obj: Accessor, propertyName: string | string[], callback: WatchCallback): WatchHandle;
  3114. /**
  3115. * Watches a property for becoming `defined` once.
  3116. *
  3117. * @deprecated since 4.24. Use {@link module:esri/core/reactiveUtils#whenOnce reactiveUtils.whenOnce()} instead.
  3118. *
  3119. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#whenDefinedOnce)
  3120. */
  3121. whenDefinedOnce(obj: Accessor, propertyName: string | string[], callback?: WatchCallback): PromisedWatchHandle;
  3122. /**
  3123. * Watches a property for becoming equal with a given `value`.
  3124. *
  3125. * @deprecated since 4.24. Use {@link module:esri/core/reactiveUtils#when reactiveUtils.when()} instead
  3126. *
  3127. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#whenEqual)
  3128. */
  3129. whenEqual(obj: Accessor, propertyName: string, value: any, callback: WatchCallback): WatchHandle;
  3130. /**
  3131. * Watches a property for becoming equal with a given `value`.
  3132. *
  3133. * @deprecated since 4.24. Use {@link module:esri/core/reactiveUtils#whenOnce reactiveUtils.whenOnce()} instead.
  3134. *
  3135. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#whenEqualOnce)
  3136. */
  3137. whenEqualOnce(obj: Accessor, propertyName: string, value: any, callback?: WatchCallback): PromisedWatchHandle;
  3138. /**
  3139. * Watches a property for becoming `false`.
  3140. *
  3141. * @deprecated since 4.24. Use {@link module:esri/core/reactiveUtils#when reactiveUtils.when()} instead.
  3142. *
  3143. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#whenFalse)
  3144. */
  3145. whenFalse(obj: Accessor, propertyName: string | string[], callback: WatchCallback): WatchHandle;
  3146. /**
  3147. * Watches a property for becoming `false` once.
  3148. *
  3149. * @deprecated since 4.24. Use {@link module:esri/core/reactiveUtils#whenOnce reactiveUtils.whenOnce()} instead.
  3150. *
  3151. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#whenFalseOnce)
  3152. */
  3153. whenFalseOnce(obj: Accessor, propertyName: string | string[], callback?: WatchCallback): PromisedWatchHandle;
  3154. /**
  3155. * Watches a property for becoming falsy.
  3156. *
  3157. * @deprecated since 4.24. Use {@link module:esri/core/reactiveUtils#when reactiveUtils.when()} instead.
  3158. *
  3159. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#whenNot)
  3160. */
  3161. whenNot(obj: Accessor, propertyName: string | string[], callback: WatchCallback): WatchHandle;
  3162. /**
  3163. * Watches a property for becoming falsy once.
  3164. *
  3165. * @deprecated since 4.24. Use {@link module:esri/core/reactiveUtils#whenOnce reactiveUtils.whenOnce()} instead.
  3166. *
  3167. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#whenNotOnce)
  3168. */
  3169. whenNotOnce(obj: Accessor, propertyName: string | string[], callback?: WatchCallback): PromisedWatchHandle;
  3170. /**
  3171. * Watches a property for becoming truthy once.
  3172. *
  3173. * @deprecated since 4.24. Use {@link module:esri/core/reactiveUtils#whenOnce reactiveUtils.whenOnce()} instead.
  3174. *
  3175. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#whenOnce)
  3176. */
  3177. whenOnce(obj: Accessor, propertyName: string | string[], callback?: WatchCallback): PromisedWatchHandle;
  3178. /**
  3179. * Watches a property for becoming `true`.
  3180. *
  3181. * @deprecated since 4.24. Use {@link module:esri/core/reactiveUtils#when reactiveUtils.when()} instead.
  3182. *
  3183. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#whenTrue)
  3184. */
  3185. whenTrue(obj: Accessor, propertyName: string | string[], callback: WatchCallback): WatchHandle;
  3186. /**
  3187. * Watches a property for becoming `true` once.
  3188. *
  3189. * @deprecated since 4.24. Use {@link module:esri/core/reactiveUtils#whenOnce reactiveUtils.whenOnce()} instead.
  3190. *
  3191. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#whenTrueOnce)
  3192. */
  3193. whenTrueOnce(obj: Accessor, propertyName: string | string[], callback?: WatchCallback): PromisedWatchHandle;
  3194. /**
  3195. * Watches a property for becoming `undefined`.
  3196. *
  3197. * @deprecated since 4.24. Use {@link module:esri/core/reactiveUtils#when reactiveUtils.when()} instead.
  3198. *
  3199. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#whenUndefined)
  3200. */
  3201. whenUndefined(obj: Accessor, propertyName: string | string[], callback: WatchCallback): WatchHandle;
  3202. /**
  3203. * Watches a property for becoming `undefined` once.
  3204. *
  3205. * @deprecated since 4.24. Use {@link module:esri/core/reactiveUtils#whenOnce reactiveUtils.whenOnce()} instead.
  3206. *
  3207. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#whenUndefinedOnce)
  3208. */
  3209. whenUndefinedOnce(obj: Accessor, propertyName: string | string[], callback?: WatchCallback): PromisedWatchHandle;
  3210. }
  3211. export const watchUtils: watchUtils;
  3212. export type EventAttachedCallback = (target?: any, propName?: string, obj?: Accessor, eventName?: string) => void;
  3213. /**
  3214. * Represents a watch created when an object invokes [watch()](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Accessor.html#watch).
  3215. *
  3216. * @deprecated since version 4.24.
  3217. *
  3218. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#PausableWatchHandle)
  3219. */
  3220. export interface PausableWatchHandle {
  3221. /**
  3222. * Removes the watch handle.
  3223. *
  3224. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#PausableWatchHandle)
  3225. */
  3226. remove(): void;
  3227. /**
  3228. * Pauses the handle preventing changes to invoke the associated callback.
  3229. *
  3230. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#PausableWatchHandle)
  3231. */
  3232. pause(): void;
  3233. /**
  3234. * Resumes a paused the handle.
  3235. *
  3236. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#PausableWatchHandle)
  3237. */
  3238. resume(): void;
  3239. }
  3240. export interface PromisedWatchHandle extends Promise<any> {
  3241. remove(): void;
  3242. }
  3243. /**
  3244. * This module is a utility framework that simplifies the use of [Web Workers](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) in the ArcGIS API for JavaScript.
  3245. *
  3246. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-workers.html)
  3247. */
  3248. interface workers {
  3249. /**
  3250. * Opens a connection to workers and loads a script with the workers framework.
  3251. *
  3252. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-workers.html#open)
  3253. */
  3254. open(modulePath: string, options?: workersOpenOptions): Promise<Connection>;
  3255. }
  3256. export const workers: workers;
  3257. export class Connection {
  3258. constructor();
  3259. /**
  3260. * A convenient method that invokes a method on each worker.
  3261. *
  3262. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-workers-Connection.html#broadcast)
  3263. */
  3264. broadcast(methodName: string, data?: any, options?: ConnectionBroadcastOptions): Promise<any>[];
  3265. /**
  3266. * Closes the existing connection instance to workers.
  3267. *
  3268. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-workers-Connection.html#close)
  3269. */
  3270. close(): void;
  3271. /**
  3272. * Invokes a [method](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-workers-Connection.html#basic-invocation) on the remote module loaded with the worker.
  3273. *
  3274. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-workers-Connection.html#invoke)
  3275. */
  3276. invoke(methodName: string, data?: any, options?: ConnectionInvokeOptions): Promise<any>;
  3277. }
  3278. /** @deprecated Import the Connection class instead. */
  3279. export type ConnectionConstructor = typeof Connection;
  3280. export interface ConnectionBroadcastOptions {
  3281. /**
  3282. * An [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) to abort the executions of the remote method.
  3283. *
  3284. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-workers-Connection.html#broadcast)
  3285. */
  3286. signal?: AbortSignal;
  3287. }
  3288. export interface ConnectionInvokeOptions {
  3289. /**
  3290. * An array of Transferable objects.
  3291. *
  3292. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-workers-Connection.html#invoke)
  3293. */
  3294. transferList?: any[];
  3295. /**
  3296. * An [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) to abort the execution of the remote method.
  3297. *
  3298. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-workers-Connection.html#invoke)
  3299. */
  3300. signal?: AbortSignal;
  3301. }
  3302. export interface workersOpenOptions {
  3303. /**
  3304. * The objects defining the API accessible from the module.
  3305. *
  3306. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-workers.html#open)
  3307. */
  3308. client?: any;
  3309. /**
  3310. * Indicates how to load the module.
  3311. *
  3312. * @default distributed
  3313. *
  3314. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-workers.html#open)
  3315. */
  3316. strategy?: "distributed" | "dedicated" | "local";
  3317. /**
  3318. * [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) allows for cancelable asynchronous job.
  3319. *
  3320. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-workers.html#open)
  3321. */
  3322. signal?: AbortSignal;
  3323. }
  3324. export interface Element extends Accessor, JSONSupport {
  3325. }
  3326. export class Element {
  3327. /**
  3328. * The element's description providing the purpose behind it.
  3329. *
  3330. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-Element.html#description)
  3331. */
  3332. description: string;
  3333. /**
  3334. * A string value containing the field alias.
  3335. *
  3336. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-Element.html#label)
  3337. */
  3338. label: string;
  3339. /**
  3340. * The type of form element displayed.
  3341. *
  3342. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-Element.html#type)
  3343. */
  3344. readonly type: "field" | "group";
  3345. /**
  3346. * A reference to the [name](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-ExpressionInfo.html#name) of an [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression defined in the [expressionInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#expressionInfos) of the [FormTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html).
  3347. *
  3348. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-Element.html#visibilityExpression)
  3349. */
  3350. visibilityExpression: string;
  3351. /**
  3352. * Form elements define what should display within the [FormTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html) elements.
  3353. *
  3354. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-Element.html)
  3355. */
  3356. constructor(properties?: ElementProperties);
  3357. static fromJSON(json: any): Element;
  3358. }
  3359. /** @deprecated Import the Element class instead. */
  3360. export type ElementConstructor = typeof Element;
  3361. interface ElementProperties {
  3362. /**
  3363. * The element's description providing the purpose behind it.
  3364. *
  3365. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-Element.html#description)
  3366. */
  3367. description?: string;
  3368. /**
  3369. * A string value containing the field alias.
  3370. *
  3371. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-Element.html#label)
  3372. */
  3373. label?: string;
  3374. /**
  3375. * A reference to the [name](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-ExpressionInfo.html#name) of an [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression defined in the [expressionInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#expressionInfos) of the [FormTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html).
  3376. *
  3377. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-Element.html#visibilityExpression)
  3378. */
  3379. visibilityExpression?: string;
  3380. }
  3381. export class FieldElement extends Element {
  3382. /**
  3383. * The [coded value domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-CodedValueDomain.html) or [range domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RangeDomain.html) of the field.
  3384. *
  3385. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html#domain)
  3386. */
  3387. domain: CodedValueDomain | RangeDomain;
  3388. /**
  3389. * A Boolean determining whether users can edit this form element.
  3390. *
  3391. * @default true
  3392. *
  3393. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html#editable)
  3394. */
  3395. editable: boolean;
  3396. /**
  3397. * A reference to the [name](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-ExpressionInfo.html#name) of an [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression defined in the [expressionInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#expressionInfos) of the FormTemplate.
  3398. *
  3399. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html#editableExpression)
  3400. */
  3401. editableExpression: string;
  3402. /**
  3403. * The field name as defined by the feature layer.
  3404. *
  3405. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html#fieldName)
  3406. */
  3407. fieldName: string;
  3408. /**
  3409. * Contains a hint used to help editors while editing fields.
  3410. *
  3411. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html#hint)
  3412. */
  3413. hint: string;
  3414. /**
  3415. * The input to use for the element.
  3416. *
  3417. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html#input)
  3418. */
  3419. input: | TextBoxInput
  3420. | TextAreaInput
  3421. | DateTimePickerInput
  3422. | BarcodeScannerInput
  3423. | ComboBoxInput
  3424. | RadioButtonsInput
  3425. | SwitchInput;
  3426. /**
  3427. * A reference to the [name](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-ExpressionInfo.html#name) of an [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression defined in the [expressionInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#expressionInfos) of the [FormTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html).
  3428. *
  3429. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html#requiredExpression)
  3430. */
  3431. requiredExpression: string;
  3432. /**
  3433. * Indicates the type of form [element](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-Element.html).
  3434. *
  3435. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html#type)
  3436. */
  3437. readonly type: "field";
  3438. /**
  3439. * A reference to the [name](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-ExpressionInfo.html#name) of an [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression defined in the [expressionInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#expressionInfos) of the [FormTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html).
  3440. *
  3441. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html#valueExpression)
  3442. */
  3443. valueExpression: string;
  3444. /**
  3445. * A `FieldElement` form element defines how a feature layer's [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html) participates in the [FeatureForm](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html).
  3446. *
  3447. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html)
  3448. */
  3449. constructor(properties?: FieldElementProperties);
  3450. /**
  3451. * Creates a deep clone of the FieldElement class.
  3452. *
  3453. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html#clone)
  3454. */
  3455. clone(): FieldElement;
  3456. static fromJSON(json: any): FieldElement;
  3457. }
  3458. /** @deprecated Import the FieldElement class instead. */
  3459. export type FieldElementConstructor = typeof FieldElement;
  3460. interface FieldElementProperties extends ElementProperties {
  3461. /**
  3462. * The [coded value domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-CodedValueDomain.html) or [range domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RangeDomain.html) of the field.
  3463. *
  3464. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html#domain)
  3465. */
  3466. domain?: (CodedValueDomainProperties & { type: "coded-value" }) | (RangeDomainProperties & { type: "range" });
  3467. /**
  3468. * A Boolean determining whether users can edit this form element.
  3469. *
  3470. * @default true
  3471. *
  3472. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html#editable)
  3473. */
  3474. editable?: boolean;
  3475. /**
  3476. * A reference to the [name](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-ExpressionInfo.html#name) of an [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression defined in the [expressionInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#expressionInfos) of the FormTemplate.
  3477. *
  3478. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html#editableExpression)
  3479. */
  3480. editableExpression?: string;
  3481. /**
  3482. * The field name as defined by the feature layer.
  3483. *
  3484. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html#fieldName)
  3485. */
  3486. fieldName?: string;
  3487. /**
  3488. * Contains a hint used to help editors while editing fields.
  3489. *
  3490. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html#hint)
  3491. */
  3492. hint?: string;
  3493. /**
  3494. * The input to use for the element.
  3495. *
  3496. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html#input)
  3497. */
  3498. input?: | (TextBoxInputProperties & { type: "text-box" })
  3499. | (TextAreaInputProperties & { type: "text-area" })
  3500. | (DateTimePickerInputProperties & { type: "datetime-picker" })
  3501. | (BarcodeScannerInputProperties & { type: "barcode-scanner" })
  3502. | (ComboBoxInputProperties & { type: "combo-box" })
  3503. | (RadioButtonsInputProperties & { type: "radio-buttons" })
  3504. | (SwitchInputProperties & { type: "switch" });
  3505. /**
  3506. * A reference to the [name](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-ExpressionInfo.html#name) of an [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression defined in the [expressionInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#expressionInfos) of the [FormTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html).
  3507. *
  3508. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html#requiredExpression)
  3509. */
  3510. requiredExpression?: string;
  3511. /**
  3512. * A reference to the [name](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-ExpressionInfo.html#name) of an [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression defined in the [expressionInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#expressionInfos) of the [FormTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html).
  3513. *
  3514. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html#valueExpression)
  3515. */
  3516. valueExpression?: string;
  3517. }
  3518. export class GroupElement extends Element {
  3519. /**
  3520. * An array of [field elements](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html) to display as grouped.
  3521. *
  3522. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-GroupElement.html#elements)
  3523. */
  3524. elements: FieldElement[];
  3525. /**
  3526. * Defines if the group should be expanded or collapsed when the form is initially displayed.
  3527. *
  3528. * @default expanded
  3529. *
  3530. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-GroupElement.html#initialState)
  3531. */
  3532. initialState: "collapsed" | "expanded";
  3533. /**
  3534. * The type of the [element](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-Element.html).
  3535. *
  3536. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-GroupElement.html#type)
  3537. */
  3538. type: "group";
  3539. /**
  3540. * A `GroupElement` form element defines a container that holds a set of [form elements](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#elements) that can be expanded, collapsed, or displayed together.
  3541. *
  3542. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-GroupElement.html)
  3543. */
  3544. constructor(properties?: GroupElementProperties);
  3545. /**
  3546. * Creates a deep clone of the GroupElement class.
  3547. *
  3548. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-GroupElement.html#clone)
  3549. */
  3550. clone(): GroupElement;
  3551. static fromJSON(json: any): GroupElement;
  3552. }
  3553. /** @deprecated Import the GroupElement class instead. */
  3554. export type GroupElementConstructor = typeof GroupElement;
  3555. interface GroupElementProperties extends ElementProperties {
  3556. /**
  3557. * An array of [field elements](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html) to display as grouped.
  3558. *
  3559. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-GroupElement.html#elements)
  3560. */
  3561. elements?: FieldElementProperties[];
  3562. /**
  3563. * Defines if the group should be expanded or collapsed when the form is initially displayed.
  3564. *
  3565. * @default expanded
  3566. *
  3567. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-GroupElement.html#initialState)
  3568. */
  3569. initialState?: "collapsed" | "expanded";
  3570. /**
  3571. * The type of the [element](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-Element.html).
  3572. *
  3573. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-GroupElement.html#type)
  3574. */
  3575. type?: "group";
  3576. }
  3577. export interface BarcodeScannerInput extends Accessor, TextInput, JSONSupport {
  3578. }
  3579. export class BarcodeScannerInput {
  3580. /**
  3581. * The type of form element input.
  3582. *
  3583. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-BarcodeScannerInput.html#type)
  3584. */
  3585. readonly type: "barcode-scanner";
  3586. /**
  3587. * The `BarcodeScannerInput` class defines the desired user interface for a barcode or QR code scanner.
  3588. *
  3589. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-BarcodeScannerInput.html)
  3590. */
  3591. constructor(properties?: BarcodeScannerInputProperties);
  3592. static fromJSON(json: any): BarcodeScannerInput;
  3593. }
  3594. /** @deprecated Import the BarcodeScannerInput class instead. */
  3595. export type BarcodeScannerInputConstructor = typeof BarcodeScannerInput;
  3596. interface BarcodeScannerInputProperties extends TextInputProperties {
  3597. }
  3598. export interface ComboBoxInput extends Accessor, JSONSupport {
  3599. }
  3600. export class ComboBoxInput {
  3601. /**
  3602. * The text used to represent a null value.
  3603. *
  3604. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-ComboBoxInput.html#noValueOptionLabel)
  3605. */
  3606. noValueOptionLabel: string;
  3607. /**
  3608. * Determines whether a null value option is displayed.
  3609. *
  3610. * @default true
  3611. *
  3612. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-ComboBoxInput.html#showNoValueOption)
  3613. */
  3614. showNoValueOption: boolean;
  3615. /**
  3616. * The type of form element input.
  3617. *
  3618. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-ComboBoxInput.html#type)
  3619. */
  3620. readonly type: "combo-box";
  3621. /**
  3622. * The `ComboBoxInput` class defines the desired user interface for a combo box group.
  3623. *
  3624. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-ComboBoxInput.html)
  3625. */
  3626. constructor(properties?: ComboBoxInputProperties);
  3627. static fromJSON(json: any): ComboBoxInput;
  3628. }
  3629. /** @deprecated Import the ComboBoxInput class instead. */
  3630. export type ComboBoxInputConstructor = typeof ComboBoxInput;
  3631. interface ComboBoxInputProperties {
  3632. /**
  3633. * The text used to represent a null value.
  3634. *
  3635. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-ComboBoxInput.html#noValueOptionLabel)
  3636. */
  3637. noValueOptionLabel?: string;
  3638. /**
  3639. * Determines whether a null value option is displayed.
  3640. *
  3641. * @default true
  3642. *
  3643. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-ComboBoxInput.html#showNoValueOption)
  3644. */
  3645. showNoValueOption?: boolean;
  3646. }
  3647. export interface DateTimePickerInput extends Accessor, JSONSupport {
  3648. }
  3649. export class DateTimePickerInput {
  3650. /**
  3651. * Indicates if the input should provide an option to select the time.
  3652. *
  3653. * @default false
  3654. *
  3655. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-DateTimePickerInput.html#includeTime)
  3656. */
  3657. includeTime: boolean;
  3658. /**
  3659. * The maximum date to allow.
  3660. *
  3661. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-DateTimePickerInput.html#max)
  3662. */
  3663. max: number;
  3664. /**
  3665. * The minimum date to allow.
  3666. *
  3667. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-DateTimePickerInput.html#min)
  3668. */
  3669. min: number;
  3670. /**
  3671. * The type of form element input.
  3672. *
  3673. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-DateTimePickerInput.html#type)
  3674. */
  3675. readonly type: "datetime-picker";
  3676. /**
  3677. * The `DateTimePickerInput` class defines the desired user interface for editing date fields in a form.
  3678. *
  3679. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-DateTimePickerInput.html)
  3680. */
  3681. constructor(properties?: DateTimePickerInputProperties);
  3682. /**
  3683. * Creates a deep clone of the `DateTimePicker` class.
  3684. *
  3685. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-DateTimePickerInput.html#clone)
  3686. */
  3687. clone(): DateTimePickerInput;
  3688. static fromJSON(json: any): DateTimePickerInput;
  3689. }
  3690. /** @deprecated Import the DateTimePickerInput class instead. */
  3691. export type DateTimePickerInputConstructor = typeof DateTimePickerInput;
  3692. interface DateTimePickerInputProperties {
  3693. /**
  3694. * Indicates if the input should provide an option to select the time.
  3695. *
  3696. * @default false
  3697. *
  3698. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-DateTimePickerInput.html#includeTime)
  3699. */
  3700. includeTime?: boolean;
  3701. /**
  3702. * The maximum date to allow.
  3703. *
  3704. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-DateTimePickerInput.html#max)
  3705. */
  3706. max?: number;
  3707. /**
  3708. * The minimum date to allow.
  3709. *
  3710. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-DateTimePickerInput.html#min)
  3711. */
  3712. min?: number;
  3713. }
  3714. export interface RadioButtonsInput extends Accessor, JSONSupport {
  3715. }
  3716. export class RadioButtonsInput {
  3717. /**
  3718. * The text used to represent a null value.
  3719. *
  3720. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-RadioButtonsInput.html#noValueOptionLabel)
  3721. */
  3722. noValueOptionLabel: string;
  3723. /**
  3724. * Determines whether a null value option is displayed.
  3725. *
  3726. * @default true
  3727. *
  3728. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-RadioButtonsInput.html#showNoValueOption)
  3729. */
  3730. showNoValueOption: boolean;
  3731. /**
  3732. * The type of form element input.
  3733. *
  3734. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-RadioButtonsInput.html#type)
  3735. */
  3736. readonly type: "radio-buttons";
  3737. /**
  3738. * The `RadioButtonsInput` class defines the desired user interface for a radio button group.
  3739. *
  3740. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-RadioButtonsInput.html)
  3741. */
  3742. constructor(properties?: RadioButtonsInputProperties);
  3743. static fromJSON(json: any): RadioButtonsInput;
  3744. }
  3745. /** @deprecated Import the RadioButtonsInput class instead. */
  3746. export type RadioButtonsInputConstructor = typeof RadioButtonsInput;
  3747. interface RadioButtonsInputProperties {
  3748. /**
  3749. * The text used to represent a null value.
  3750. *
  3751. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-RadioButtonsInput.html#noValueOptionLabel)
  3752. */
  3753. noValueOptionLabel?: string;
  3754. /**
  3755. * Determines whether a null value option is displayed.
  3756. *
  3757. * @default true
  3758. *
  3759. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-RadioButtonsInput.html#showNoValueOption)
  3760. */
  3761. showNoValueOption?: boolean;
  3762. }
  3763. export interface SwitchInput extends Accessor, JSONSupport {
  3764. }
  3765. export class SwitchInput {
  3766. /**
  3767. * Coded value used when the switch state is turned off.
  3768. *
  3769. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-SwitchInput.html#offValue)
  3770. */
  3771. offValue: string | number;
  3772. /**
  3773. * Coded value used when the switch state is turned on.
  3774. *
  3775. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-SwitchInput.html#onValue)
  3776. */
  3777. onValue: string | number;
  3778. /**
  3779. * The type of form element input.
  3780. *
  3781. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-SwitchInput.html#type)
  3782. */
  3783. readonly type: "switch";
  3784. /**
  3785. * The `SwitchInput` class defines the desired user interface for a binary switch or toggle.
  3786. *
  3787. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-SwitchInput.html)
  3788. */
  3789. constructor(properties?: SwitchInputProperties);
  3790. static fromJSON(json: any): SwitchInput;
  3791. }
  3792. /** @deprecated Import the SwitchInput class instead. */
  3793. export type SwitchInputConstructor = typeof SwitchInput;
  3794. interface SwitchInputProperties {
  3795. /**
  3796. * Coded value used when the switch state is turned off.
  3797. *
  3798. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-SwitchInput.html#offValue)
  3799. */
  3800. offValue?: string | number;
  3801. /**
  3802. * Coded value used when the switch state is turned on.
  3803. *
  3804. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-SwitchInput.html#onValue)
  3805. */
  3806. onValue?: string | number;
  3807. }
  3808. export interface TextAreaInput extends TextInput, JSONSupport {
  3809. }
  3810. export class TextAreaInput {
  3811. /**
  3812. * The type of form element input.
  3813. *
  3814. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-TextAreaInput.html#type)
  3815. */
  3816. readonly type: "text-area";
  3817. /**
  3818. * The `TextAreaInput` class defines the desired user interface as a multi-line text area.
  3819. *
  3820. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-TextAreaInput.html)
  3821. */
  3822. constructor(properties?: TextAreaInputProperties);
  3823. /**
  3824. * Creates a deep clone of the `TextAreaInput` class.
  3825. *
  3826. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-TextAreaInput.html#clone)
  3827. */
  3828. clone(): TextAreaInput;
  3829. static fromJSON(json: any): TextAreaInput;
  3830. }
  3831. /** @deprecated Import the TextAreaInput class instead. */
  3832. export type TextAreaInputConstructor = typeof TextAreaInput;
  3833. interface TextAreaInputProperties extends TextInputProperties {
  3834. }
  3835. export interface TextBoxInput extends Accessor, TextInput, JSONSupport {
  3836. }
  3837. export class TextBoxInput {
  3838. /**
  3839. * The type of form element input.
  3840. *
  3841. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-TextBoxInput.html#type)
  3842. */
  3843. readonly type: "text-box";
  3844. /**
  3845. * The `TextBoxInput` class defines the desired user interface as a single-line text box.
  3846. *
  3847. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-TextBoxInput.html)
  3848. */
  3849. constructor(properties?: TextBoxInputProperties);
  3850. /**
  3851. * Creates a deep clone of the `TextBoxInput` class.
  3852. *
  3853. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-TextBoxInput.html#clone)
  3854. */
  3855. clone(): TextBoxInput;
  3856. static fromJSON(json: any): TextBoxInput;
  3857. }
  3858. /** @deprecated Import the TextBoxInput class instead. */
  3859. export type TextBoxInputConstructor = typeof TextBoxInput;
  3860. interface TextBoxInputProperties extends TextInputProperties {
  3861. }
  3862. export class TextInput {
  3863. /**
  3864. * When set, defines the text input's maximum length.
  3865. *
  3866. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-TextInput.html#maxLength)
  3867. */
  3868. maxLength: number;
  3869. /**
  3870. * When set, defines the text input's minimum length.
  3871. *
  3872. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-TextInput.html#minLength)
  3873. */
  3874. minLength: number;
  3875. }
  3876. interface TextInputProperties {
  3877. /**
  3878. * When set, defines the text input's maximum length.
  3879. *
  3880. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-TextInput.html#maxLength)
  3881. */
  3882. maxLength?: number;
  3883. /**
  3884. * When set, defines the text input's minimum length.
  3885. *
  3886. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs-TextInput.html#minLength)
  3887. */
  3888. minLength?: number;
  3889. }
  3890. /**
  3891. * The `BarcodeScannerInput` class defines the desired user interface is a barcode or QR code scanner.
  3892. *
  3893. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs.html#BarcodeScannerInput)
  3894. */
  3895. export type inputsBarcodeScannerInput = BarcodeScannerInput;
  3896. /**
  3897. * The `DateTimePickerInput` class defines the desired user interface for editing date fields in a form.
  3898. *
  3899. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs.html#DateTimePickerInput)
  3900. */
  3901. export type inputsDateTimePickerInput = DateTimePickerInput;
  3902. /**
  3903. * Form element input types.
  3904. *
  3905. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs.html#Input)
  3906. */
  3907. export type inputsInput = | DateTimePickerInput
  3908. | TextAreaInput
  3909. | TextBoxInput
  3910. | BarcodeScannerInput
  3911. | ComboBoxInput
  3912. | RadioButtonsInput;
  3913. /**
  3914. * `TextAreaInput` defines the desired user interface is a multi-line text area.
  3915. *
  3916. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs.html#TextAreaInput)
  3917. */
  3918. export type inputsTextAreaInput = TextAreaInput;
  3919. /**
  3920. * `TextBoxInput` defines the desired user interface is a single-line text box.
  3921. *
  3922. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-inputs.html#TextBoxInput)
  3923. */
  3924. export type inputsTextBoxInput = TextBoxInput;
  3925. /**
  3926. * A convenience module for importing [Input](module-esri-form-elements-inputs-Input.html) classes when developing with [TypeScript](https://developers.arcgis.com/javascript/latest/typescript-setup/).
  3927. *
  3928. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-support-inputs.html)
  3929. */
  3930. interface inputs {
  3931. }
  3932. export const inputs: inputs;
  3933. export interface ExpressionInfo extends Accessor, JSONSupport {
  3934. }
  3935. export class ExpressionInfo {
  3936. /**
  3937. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Constraint](https://developers.arcgis.com/javascript/latest/arcade/#forms) or [Form Calculation](https://developers.arcgis.com/javascript/latest/arcade/#form-calculation) profiles.
  3938. *
  3939. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-ExpressionInfo.html#expression)
  3940. */
  3941. expression: string;
  3942. /**
  3943. * The name of the expression.
  3944. *
  3945. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-ExpressionInfo.html#name)
  3946. */
  3947. name: string;
  3948. /**
  3949. * Indicates the return type of the Arcade expression.
  3950. *
  3951. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-ExpressionInfo.html#returnType)
  3952. */
  3953. returnType: "boolean" | "date" | "number" | "string";
  3954. /**
  3955. * The title used to describe the value returned by the expression.
  3956. *
  3957. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-ExpressionInfo.html#title)
  3958. */
  3959. title: string;
  3960. /**
  3961. * The `ExpressionInfo` class defines the makeup of [visibility expressions](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html#visibilityExpression), [required expressions](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html#requiredExpression), [editable expressions](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html#editableExpression), and [value expressions](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html#valueExpression).
  3962. *
  3963. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-ExpressionInfo.html)
  3964. */
  3965. constructor(properties?: ExpressionInfoProperties);
  3966. /**
  3967. * Creates a deep clone of the ExpressionInfo class.
  3968. *
  3969. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-ExpressionInfo.html#clone)
  3970. */
  3971. clone(): ExpressionInfo;
  3972. static fromJSON(json: any): ExpressionInfo;
  3973. }
  3974. /** @deprecated Import the ExpressionInfo class instead. */
  3975. export type ExpressionInfoConstructor = typeof ExpressionInfo;
  3976. interface ExpressionInfoProperties {
  3977. /**
  3978. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Constraint](https://developers.arcgis.com/javascript/latest/arcade/#forms) or [Form Calculation](https://developers.arcgis.com/javascript/latest/arcade/#form-calculation) profiles.
  3979. *
  3980. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-ExpressionInfo.html#expression)
  3981. */
  3982. expression?: string;
  3983. /**
  3984. * The name of the expression.
  3985. *
  3986. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-ExpressionInfo.html#name)
  3987. */
  3988. name?: string;
  3989. /**
  3990. * Indicates the return type of the Arcade expression.
  3991. *
  3992. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-ExpressionInfo.html#returnType)
  3993. */
  3994. returnType?: "boolean" | "date" | "number" | "string";
  3995. /**
  3996. * The title used to describe the value returned by the expression.
  3997. *
  3998. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-ExpressionInfo.html#title)
  3999. */
  4000. title?: string;
  4001. }
  4002. export interface FormTemplate extends Accessor, JSONSupport {
  4003. }
  4004. export class FormTemplate {
  4005. /**
  4006. * The description of the form.
  4007. *
  4008. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#description)
  4009. */
  4010. description: string;
  4011. /**
  4012. * An array of [form element](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-Element.html) objects that represent an ordered list of form elements.
  4013. *
  4014. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#elements)
  4015. */
  4016. elements: Element[];
  4017. /**
  4018. * An array of objects or [ExpressionInfo[]](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-ExpressionInfo.html) that reference [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expressions following the specification defined by the [Constraint Profile](https://developers.arcgis.com/javascript/latest/arcade/#constraint) or the [Form Calculation Profile](https://developers.arcgis.com/javascript/latest/arcade/#form-calculation).
  4019. *
  4020. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#expressionInfos)
  4021. */
  4022. expressionInfos: ExpressionInfo[];
  4023. /**
  4024. * Indicates whether to retain or clear a [form's](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html) [field element](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html) values.
  4025. *
  4026. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#preserveFieldValuesWhenHidden)
  4027. */
  4028. preserveFieldValuesWhenHidden: boolean;
  4029. /**
  4030. * The string template for defining how to format the title displayed at the top of a form.
  4031. *
  4032. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#title)
  4033. */
  4034. title: string;
  4035. /**
  4036. * A FormTemplate formats and defines the content of a [FeatureForm](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html) for a specific [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html) or [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html).
  4037. *
  4038. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html)
  4039. */
  4040. constructor(properties?: FormTemplateProperties);
  4041. /**
  4042. * Creates a deep clone of the FormTemplate class.
  4043. *
  4044. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#clone)
  4045. */
  4046. clone(): FormTemplate;
  4047. static fromJSON(json: any): FormTemplate;
  4048. }
  4049. /** @deprecated Import the FormTemplate class instead. */
  4050. export type FormTemplateConstructor = typeof FormTemplate;
  4051. interface FormTemplateProperties {
  4052. /**
  4053. * The description of the form.
  4054. *
  4055. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#description)
  4056. */
  4057. description?: string;
  4058. /**
  4059. * An array of [form element](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-Element.html) objects that represent an ordered list of form elements.
  4060. *
  4061. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#elements)
  4062. */
  4063. elements?: ElementProperties[];
  4064. /**
  4065. * An array of objects or [ExpressionInfo[]](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-ExpressionInfo.html) that reference [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expressions following the specification defined by the [Constraint Profile](https://developers.arcgis.com/javascript/latest/arcade/#constraint) or the [Form Calculation Profile](https://developers.arcgis.com/javascript/latest/arcade/#form-calculation).
  4066. *
  4067. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#expressionInfos)
  4068. */
  4069. expressionInfos?: ExpressionInfoProperties[];
  4070. /**
  4071. * Indicates whether to retain or clear a [form's](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html) [field element](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html) values.
  4072. *
  4073. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#preserveFieldValuesWhenHidden)
  4074. */
  4075. preserveFieldValuesWhenHidden?: boolean;
  4076. /**
  4077. * The string template for defining how to format the title displayed at the top of a form.
  4078. *
  4079. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#title)
  4080. */
  4081. title?: string;
  4082. }
  4083. /**
  4084. * A convenience module for importing [Element](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-Element.html) classes when developing with [TypeScript](https://developers.arcgis.com/javascript/latest/typescript-setup/).
  4085. *
  4086. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-support-elements.html)
  4087. */
  4088. interface elements {
  4089. }
  4090. export const elements: elements;
  4091. /**
  4092. * A convenience module for importing [Geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html) classes when developing with [TypeScript](https://developers.arcgis.com/javascript/latest/typescript-setup/).
  4093. *
  4094. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry.html)
  4095. */
  4096. namespace geometry {
  4097. /**
  4098. * Spatial Reference.
  4099. *
  4100. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry.html#SpatialReference)
  4101. */
  4102. export type SpatialReference = __esri.SpatialReference;
  4103. export const SpatialReference: typeof __esri.SpatialReference;
  4104. /**
  4105. * Geometry types.
  4106. *
  4107. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry.html#Geometry)
  4108. */
  4109. export type Geometry = | __esri.Extent
  4110. | __esri.Multipoint
  4111. | __esri.Point
  4112. | __esri.Polygon
  4113. | __esri.Polyline
  4114. | __esri.Mesh;
  4115. /**
  4116. * Extent.
  4117. *
  4118. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry.html#Extent)
  4119. */
  4120. export type Extent = __esri.Extent;
  4121. export const Extent: typeof __esri.Extent;
  4122. /**
  4123. * Multipoint.
  4124. *
  4125. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry.html#Multipoint)
  4126. */
  4127. export type Multipoint = __esri.Multipoint;
  4128. export const Multipoint: typeof __esri.Multipoint;
  4129. /**
  4130. * Point.
  4131. *
  4132. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry.html#Point)
  4133. */
  4134. export type Point = __esri.Point;
  4135. export const Point: typeof __esri.Point;
  4136. /**
  4137. * Polygon.
  4138. *
  4139. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry.html#Polygon)
  4140. */
  4141. export type Polygon = __esri.Polygon;
  4142. export const Polygon: typeof __esri.Polygon;
  4143. /**
  4144. * Polyline.
  4145. *
  4146. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry.html#Polyline)
  4147. */
  4148. export type Polyline = __esri.Polyline;
  4149. export const Polyline: typeof __esri.Polyline;
  4150. /**
  4151. * Mesh.
  4152. *
  4153. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry.html#Mesh)
  4154. */
  4155. export type Mesh = __esri.Mesh;
  4156. export const Mesh: typeof __esri.Mesh;
  4157. }
  4158. export class Circle extends Polygon {
  4159. /**
  4160. * The center point of the circle.
  4161. *
  4162. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Circle.html#center)
  4163. */
  4164. center: Point;
  4165. /**
  4166. * Applicable when the spatial reference of the center point is either set to Web Mercator (wkid: 3857) or geographic/geodesic (wkid: 4326).
  4167. *
  4168. * @default false
  4169. *
  4170. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Circle.html#geodesic)
  4171. */
  4172. geodesic: boolean;
  4173. /**
  4174. * This value defines the number of points along the curve of the circle.
  4175. *
  4176. * @default 60
  4177. *
  4178. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Circle.html#numberOfPoints)
  4179. */
  4180. numberOfPoints: number;
  4181. /**
  4182. * The radius of the circle.
  4183. *
  4184. * @default 1000
  4185. *
  4186. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Circle.html#radius)
  4187. */
  4188. radius: number;
  4189. /**
  4190. * Unit of the radius.
  4191. *
  4192. * @default meters
  4193. *
  4194. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Circle.html#radiusUnit)
  4195. */
  4196. radiusUnit: "feet" | "kilometers" | "meters" | "miles" | "nautical-miles" | "yards";
  4197. /**
  4198. * A circle is a [Polygon](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html) created by specifying a [center point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Circle.html#center) and a [radius](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Circle.html#radius).
  4199. *
  4200. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Circle.html)
  4201. */
  4202. constructor(properties?: CircleProperties);
  4203. /**
  4204. * Creates a deep clone of Circle.
  4205. *
  4206. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Circle.html#clone)
  4207. */
  4208. clone(): Circle;
  4209. static fromJSON(json: any): Circle;
  4210. }
  4211. /** @deprecated Import the Circle class instead. */
  4212. export type CircleConstructor = typeof Circle;
  4213. interface CircleProperties extends PolygonProperties {
  4214. /**
  4215. * The center point of the circle.
  4216. *
  4217. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Circle.html#center)
  4218. */
  4219. center?: PointProperties;
  4220. /**
  4221. * Applicable when the spatial reference of the center point is either set to Web Mercator (wkid: 3857) or geographic/geodesic (wkid: 4326).
  4222. *
  4223. * @default false
  4224. *
  4225. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Circle.html#geodesic)
  4226. */
  4227. geodesic?: boolean;
  4228. /**
  4229. * This value defines the number of points along the curve of the circle.
  4230. *
  4231. * @default 60
  4232. *
  4233. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Circle.html#numberOfPoints)
  4234. */
  4235. numberOfPoints?: number;
  4236. /**
  4237. * The radius of the circle.
  4238. *
  4239. * @default 1000
  4240. *
  4241. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Circle.html#radius)
  4242. */
  4243. radius?: number;
  4244. /**
  4245. * Unit of the radius.
  4246. *
  4247. * @default meters
  4248. *
  4249. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Circle.html#radiusUnit)
  4250. */
  4251. radiusUnit?: "feet" | "kilometers" | "meters" | "miles" | "nautical-miles" | "yards";
  4252. }
  4253. /**
  4254. * Converts between [points](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) and formatted coordinates notation strings such as:
  4255. *
  4256. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-coordinateFormatter.html)
  4257. */
  4258. interface coordinateFormatter {
  4259. /**
  4260. * Parses coordinates in latitude/longitude notation, and returns a [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) representing that location.
  4261. *
  4262. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-coordinateFormatter.html#fromLatitudeLongitude)
  4263. */
  4264. fromLatitudeLongitude(coordinates: string, spatialReference?: SpatialReference): Point;
  4265. /**
  4266. * Parses coordinates in Military Grid Reference System (MGRS) notation, and returns a [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) representing that location.
  4267. *
  4268. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-coordinateFormatter.html#fromMgrs)
  4269. */
  4270. fromMgrs(coordinates: string, spatialReference: SpatialReference, conversionMode: | "automatic"
  4271. | "new-180-in-zone-01"
  4272. | "new-180-in-zone-60"
  4273. | "old-180-in-zone-01"
  4274. | "old-180-in-zone-60"): Point;
  4275. /**
  4276. * Parses coordinates in United States National Grid (USNG) notation, and returns a [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) representing that location.
  4277. *
  4278. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-coordinateFormatter.html#fromUsng)
  4279. */
  4280. fromUsng(coordinates: string, spatialReference?: SpatialReference): Point;
  4281. /**
  4282. * Parses coordinates in Universal Transverse Mercator (UTM) notation, and returns a [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) representing that location.
  4283. *
  4284. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-coordinateFormatter.html#fromUtm)
  4285. */
  4286. fromUtm(coordinates: string, spatialReference: SpatialReference, conversionMode: "latitude-band-indicators" | "north-south-indicators"): Point;
  4287. /**
  4288. * Indicates if all dependencies of this module have been loaded.
  4289. *
  4290. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-coordinateFormatter.html#isLoaded)
  4291. */
  4292. isLoaded(): boolean;
  4293. /**
  4294. * Indicates if this module is supported in the current browser.
  4295. *
  4296. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-coordinateFormatter.html#isSupported)
  4297. */
  4298. isSupported(): boolean;
  4299. /**
  4300. * Load this module's dependencies.
  4301. *
  4302. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-coordinateFormatter.html#load)
  4303. */
  4304. load(): Promise<any>;
  4305. /**
  4306. * Returns formatted coordinates in latitude/longitude notation representing the given point's location.
  4307. *
  4308. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-coordinateFormatter.html#toLatitudeLongitude)
  4309. */
  4310. toLatitudeLongitude(point: Point, format: "dd" | "ddm" | "dms", decimalPlaces?: number): string;
  4311. /**
  4312. * Returns formatted coordinates in Military Grid Reference System (MGRS) notation representing the given point's location.
  4313. *
  4314. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-coordinateFormatter.html#toMgrs)
  4315. */
  4316. toMgrs(point: Point, conversionMode: | "automatic"
  4317. | "new-180-in-zone-01"
  4318. | "new-180-in-zone-60"
  4319. | "old-180-in-zone-01"
  4320. | "old-180-in-zone-60", precision?: number, addSpaces?: boolean): string;
  4321. /**
  4322. * Returns formatted coordinates in United States National Grid (USNG) notation representing the given point's location.
  4323. *
  4324. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-coordinateFormatter.html#toUsng)
  4325. */
  4326. toUsng(point: Point, precision?: number, addSpaces?: boolean): string;
  4327. /**
  4328. * Returns formatted coordinates in Universal Transverse Mercator (UTM) notation representing the given point's location.
  4329. *
  4330. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-coordinateFormatter.html#toUtm)
  4331. */
  4332. toUtm(point: Point, conversionMode: "latitude-band-indicators" | "north-south-indicators", addSpaces?: boolean): string;
  4333. }
  4334. export const coordinateFormatter: coordinateFormatter;
  4335. export class Extent extends Geometry {
  4336. /**
  4337. * The center point of the extent in map units.
  4338. *
  4339. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#center)
  4340. */
  4341. readonly center: Point;
  4342. /**
  4343. * The height of the extent in map units (the distance between [ymin](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#ymin) and [ymax](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#ymax)).
  4344. *
  4345. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#height)
  4346. */
  4347. readonly height: number;
  4348. /**
  4349. * The maximum possible `m` value in an extent envelope.
  4350. *
  4351. * @default undefined
  4352. *
  4353. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#mmax)
  4354. */
  4355. mmax: number;
  4356. /**
  4357. * The minimum possible `m` value of an extent envelope.
  4358. *
  4359. * @default undefined
  4360. *
  4361. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#mmin)
  4362. */
  4363. mmin: number;
  4364. readonly type: "extent";
  4365. /**
  4366. * The width of the extent in map units (the distance between [xmin](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#xmin) and [xmax](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#xmax)).
  4367. *
  4368. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#width)
  4369. */
  4370. readonly width: number;
  4371. /**
  4372. * The maximum X-coordinate of an extent envelope.
  4373. *
  4374. * @default 0
  4375. *
  4376. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#xmax)
  4377. */
  4378. xmax: number;
  4379. /**
  4380. * The minimum X-coordinate of an extent envelope.
  4381. *
  4382. * @default 0
  4383. *
  4384. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#xmin)
  4385. */
  4386. xmin: number;
  4387. /**
  4388. * The maximum Y-coordinate of an extent envelope.
  4389. *
  4390. * @default 0
  4391. *
  4392. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#ymax)
  4393. */
  4394. ymax: number;
  4395. /**
  4396. * The minimum Y-coordinate of an extent envelope.
  4397. *
  4398. * @default 0
  4399. *
  4400. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#ymin)
  4401. */
  4402. ymin: number;
  4403. /**
  4404. * The maximum possible `z`, or elevation, value in an extent envelope.
  4405. *
  4406. * @default undefined
  4407. *
  4408. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#zmax)
  4409. */
  4410. zmax: number;
  4411. /**
  4412. * The minimum possible `z`, or elevation, value of an extent envelope.
  4413. *
  4414. * @default undefined
  4415. *
  4416. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#zmin)
  4417. */
  4418. zmin: number;
  4419. /**
  4420. * The minimum and maximum X and Y coordinates of a bounding box.
  4421. *
  4422. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html)
  4423. */
  4424. constructor(properties?: ExtentProperties);
  4425. /**
  4426. * Centers the extent to the specified [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html).
  4427. *
  4428. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#centerAt)
  4429. */
  4430. centerAt(point: Point): Extent;
  4431. /**
  4432. * Creates a deep clone of Extent object.
  4433. *
  4434. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#clone)
  4435. */
  4436. clone(): Extent;
  4437. /**
  4438. * Checks if the input geometry is contained within the extent.
  4439. *
  4440. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#contains)
  4441. */
  4442. contains(geometry: Point | Extent): boolean;
  4443. /**
  4444. * Indicates if the input extent is equal to the testing extent.
  4445. *
  4446. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#equals)
  4447. */
  4448. equals(extent: Extent): boolean;
  4449. /**
  4450. * Expands the extent by the given factor.
  4451. *
  4452. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#expand)
  4453. */
  4454. expand(factor: number): Extent;
  4455. /**
  4456. * Shrinks the original extent to the intersection with the input extent.
  4457. *
  4458. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#intersection)
  4459. */
  4460. intersection(extent: Extent): Extent;
  4461. /**
  4462. * Tests to validate if the input geometry intersects the extent and returns a Boolean value.
  4463. *
  4464. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#intersects)
  4465. */
  4466. intersects(geometry: Geometry): boolean;
  4467. /**
  4468. * Returns an array with either one Extent that's been shifted to within +/- 180 or two Extents if the original extent intersects the International Dateline.
  4469. *
  4470. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#normalize)
  4471. */
  4472. normalize(): Extent[];
  4473. /**
  4474. * Modifies the extent geometry in-place with X and Y offsets in map units.
  4475. *
  4476. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#offset)
  4477. */
  4478. offset(dx: number, dy: number, dz: number): Extent;
  4479. /**
  4480. * Expands the original extent to include the extent of the input Extent.
  4481. *
  4482. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#union)
  4483. */
  4484. union(extent: Extent): Extent;
  4485. static fromJSON(json: any): Extent;
  4486. }
  4487. /** @deprecated Import the Extent class instead. */
  4488. export type ExtentConstructor = typeof Extent;
  4489. interface ExtentProperties extends GeometryProperties {
  4490. /**
  4491. * The maximum possible `m` value in an extent envelope.
  4492. *
  4493. * @default undefined
  4494. *
  4495. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#mmax)
  4496. */
  4497. mmax?: number;
  4498. /**
  4499. * The minimum possible `m` value of an extent envelope.
  4500. *
  4501. * @default undefined
  4502. *
  4503. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#mmin)
  4504. */
  4505. mmin?: number;
  4506. /**
  4507. * The maximum X-coordinate of an extent envelope.
  4508. *
  4509. * @default 0
  4510. *
  4511. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#xmax)
  4512. */
  4513. xmax?: number;
  4514. /**
  4515. * The minimum X-coordinate of an extent envelope.
  4516. *
  4517. * @default 0
  4518. *
  4519. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#xmin)
  4520. */
  4521. xmin?: number;
  4522. /**
  4523. * The maximum Y-coordinate of an extent envelope.
  4524. *
  4525. * @default 0
  4526. *
  4527. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#ymax)
  4528. */
  4529. ymax?: number;
  4530. /**
  4531. * The minimum Y-coordinate of an extent envelope.
  4532. *
  4533. * @default 0
  4534. *
  4535. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#ymin)
  4536. */
  4537. ymin?: number;
  4538. /**
  4539. * The maximum possible `z`, or elevation, value in an extent envelope.
  4540. *
  4541. * @default undefined
  4542. *
  4543. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#zmax)
  4544. */
  4545. zmax?: number;
  4546. /**
  4547. * The minimum possible `z`, or elevation, value of an extent envelope.
  4548. *
  4549. * @default undefined
  4550. *
  4551. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html#zmin)
  4552. */
  4553. zmin?: number;
  4554. }
  4555. export interface Geometry extends Accessor, JSONSupport {
  4556. }
  4557. export class Geometry {
  4558. /**
  4559. * The cache is used to store values computed from geometries that need to be cleared or recomputed upon mutation.
  4560. *
  4561. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html#cache)
  4562. */
  4563. readonly cache: any;
  4564. /**
  4565. * The extent of the geometry.
  4566. *
  4567. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html#extent)
  4568. */
  4569. readonly extent: Extent;
  4570. /**
  4571. * Indicates if the geometry has M values.
  4572. *
  4573. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html#hasM)
  4574. */
  4575. hasM: boolean;
  4576. /**
  4577. * Indicates if the geometry has z-values (elevation).
  4578. *
  4579. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html#hasZ)
  4580. */
  4581. hasZ: boolean;
  4582. /**
  4583. * The spatial reference of the geometry.
  4584. *
  4585. * @default WGS84 (wkid: 4326)
  4586. *
  4587. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html#spatialReference)
  4588. */
  4589. spatialReference: SpatialReference;
  4590. /**
  4591. * The geometry type.
  4592. *
  4593. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html#type)
  4594. */
  4595. readonly type: "point" | "multipoint" | "polyline" | "polygon" | "extent" | "mesh";
  4596. /**
  4597. * The base class for geometry objects.
  4598. *
  4599. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html)
  4600. */
  4601. constructor(properties?: GeometryProperties);
  4602. /**
  4603. * Creates a deep clone of the geometry.
  4604. *
  4605. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html#clone)
  4606. */
  4607. clone(): Geometry;
  4608. static fromJSON(json: any): Geometry;
  4609. }
  4610. /** @deprecated Import the Geometry class instead. */
  4611. export type GeometryConstructor = typeof Geometry;
  4612. interface GeometryProperties {
  4613. /**
  4614. * Indicates if the geometry has M values.
  4615. *
  4616. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html#hasM)
  4617. */
  4618. hasM?: boolean;
  4619. /**
  4620. * Indicates if the geometry has z-values (elevation).
  4621. *
  4622. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html#hasZ)
  4623. */
  4624. hasZ?: boolean;
  4625. /**
  4626. * The spatial reference of the geometry.
  4627. *
  4628. * @default WGS84 (wkid: 4326)
  4629. *
  4630. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html#spatialReference)
  4631. */
  4632. spatialReference?: SpatialReferenceProperties;
  4633. }
  4634. /**
  4635. * A client-side geometry engine for testing, measuring, and analyzing the spatial relationship between two or more 2D geometries.
  4636. *
  4637. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html)
  4638. */
  4639. interface geometryEngine {
  4640. /**
  4641. * Creates planar (or Euclidean) buffer polygons at a specified distance around the input geometries.
  4642. *
  4643. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#buffer)
  4644. */
  4645. buffer(geometry: Geometry | Geometry[], distance: number | number[], unit?: LinearUnits, unionResults?: boolean): Polygon | Polygon[];
  4646. /**
  4647. * Calculates the clipped geometry from a target geometry by an envelope.
  4648. *
  4649. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#clip)
  4650. */
  4651. clip(geometry: Geometry, envelope: Extent): Geometry;
  4652. /**
  4653. * Indicates if one geometry contains another geometry.
  4654. *
  4655. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#contains)
  4656. */
  4657. contains(containerGeometry: Geometry, insideGeometry: Geometry): boolean;
  4658. /**
  4659. * Calculates the convex hull of one or more geometries.
  4660. *
  4661. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#convexHull)
  4662. */
  4663. convexHull(geometry: Geometry | Geometry[], merge?: boolean): Geometry | Geometry[];
  4664. /**
  4665. * Indicates if one geometry crosses another geometry.
  4666. *
  4667. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#crosses)
  4668. */
  4669. crosses(geometry1: Geometry, geometry2: Geometry): boolean;
  4670. /**
  4671. * Splits the input Polyline or Polygon where it crosses a cutting Polyline.
  4672. *
  4673. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#cut)
  4674. */
  4675. cut(geometry: Geometry, cutter: Polyline): Geometry[];
  4676. /**
  4677. * Densify geometries by plotting points between existing vertices.
  4678. *
  4679. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#densify)
  4680. */
  4681. densify(geometry: Geometry, maxSegmentLength: number, maxSegmentLengthUnit?: LinearUnits): Geometry;
  4682. /**
  4683. * Creates the difference of two geometries.
  4684. *
  4685. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#difference)
  4686. */
  4687. difference(inputGeometry: Geometry | Geometry[], subtractor: Geometry): Geometry | Geometry[];
  4688. /**
  4689. * Indicates if one geometry is disjoint (doesn't intersect in any way) with another geometry.
  4690. *
  4691. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#disjoint)
  4692. */
  4693. disjoint(geometry1: Geometry, geometry2: Geometry): boolean;
  4694. /**
  4695. * Calculates the shortest planar distance between two geometries.
  4696. *
  4697. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#distance)
  4698. */
  4699. distance(geometry1: Geometry, geometry2: Geometry, distanceUnit?: LinearUnits): number;
  4700. /**
  4701. * Indicates if two geometries are equal.
  4702. *
  4703. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#equals)
  4704. */
  4705. equals(geometry1: Geometry, geometry2: Geometry): boolean;
  4706. /**
  4707. * Returns an object containing additional information about the input spatial reference.
  4708. *
  4709. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#extendedSpatialReferenceInfo)
  4710. */
  4711. extendedSpatialReferenceInfo(spatialReference: SpatialReference): SpatialReferenceInfo;
  4712. /**
  4713. * Flips a geometry on the horizontal axis.
  4714. *
  4715. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#flipHorizontal)
  4716. */
  4717. flipHorizontal(geometry: Geometry, flipOrigin?: Point): Geometry;
  4718. /**
  4719. * Flips a geometry on the vertical axis.
  4720. *
  4721. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#flipVertical)
  4722. */
  4723. flipVertical(geometry: Geometry, flipOrigin?: Point): Geometry;
  4724. /**
  4725. * Performs the generalize operation on the geometries in the cursor.
  4726. *
  4727. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#generalize)
  4728. */
  4729. generalize(geometry: Geometry, maxDeviation: number, removeDegenerateParts?: boolean, maxDeviationUnit?: LinearUnits): Geometry;
  4730. /**
  4731. * Calculates the area of the input geometry.
  4732. *
  4733. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#geodesicArea)
  4734. */
  4735. geodesicArea(geometry: Polygon, unit?: AreaUnits): number;
  4736. /**
  4737. * Creates geodesic buffer polygons at a specified distance around the input geometries.
  4738. *
  4739. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#geodesicBuffer)
  4740. */
  4741. geodesicBuffer(geometry: Geometry | Geometry[], distance: number | number[], unit?: LinearUnits, unionResults?: boolean): Polygon | Polygon[];
  4742. /**
  4743. * Returns a geodesically densified version of the input geometry.
  4744. *
  4745. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#geodesicDensify)
  4746. */
  4747. geodesicDensify(geometry: Polyline | Polygon, maxSegmentLength: number, maxSegmentLengthUnit?: LinearUnits): Geometry;
  4748. /**
  4749. * Calculates the length of the input geometry.
  4750. *
  4751. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#geodesicLength)
  4752. */
  4753. geodesicLength(geometry: Geometry, unit?: LinearUnits): number;
  4754. /**
  4755. * Creates new geometries from the intersections between two geometries.
  4756. *
  4757. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#intersect)
  4758. */
  4759. intersect(geometry1: Geometry | Geometry[], geometry2: Geometry): Geometry | Geometry[];
  4760. /**
  4761. * Returns an array of points at the intersecting locations of two input polylines.
  4762. *
  4763. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#intersectLinesToPoints)
  4764. */
  4765. intersectLinesToPoints(line1: Polyline, line2: Polyline): Point[];
  4766. /**
  4767. * Indicates if one geometry intersects another geometry.
  4768. *
  4769. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#intersects)
  4770. */
  4771. intersects(geometry1: Geometry, geometry2: Geometry): boolean;
  4772. /**
  4773. * Indicates if the given geometry is topologically simple.
  4774. *
  4775. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#isSimple)
  4776. */
  4777. isSimple(geometry: Geometry): boolean;
  4778. /**
  4779. * Finds the coordinate of the geometry that is closest to the specified point.
  4780. *
  4781. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#nearestCoordinate)
  4782. */
  4783. nearestCoordinate(geometry: Geometry, inputPoint: Point): NearestPointResult;
  4784. /**
  4785. * Finds the vertex on the geometry nearest to the specified point.
  4786. *
  4787. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#nearestVertex)
  4788. */
  4789. nearestVertex(geometry: Geometry, inputPoint: Point): NearestPointResult;
  4790. /**
  4791. * Finds all vertices in the given distance from the specified point, sorted from the closest to the furthest and returns them as an array of Objects.
  4792. *
  4793. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#nearestVertices)
  4794. */
  4795. nearestVertices(geometry: Geometry, inputPoint: Point, searchRadius: number, maxVertexCountToReturn: number): NearestPointResult[];
  4796. /**
  4797. * The offset operation creates a geometry that is a constant planar distance from an input polyline or polygon.
  4798. *
  4799. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#offset)
  4800. */
  4801. offset(geometry: Geometry | Geometry[], offsetDistance: number, offsetUnit?: LinearUnits, joinType?: "round" | "bevel" | "miter" | "square", bevelRatio?: number, flattenError?: number): Geometry | Geometry[];
  4802. /**
  4803. * Indicates if one geometry overlaps another geometry.
  4804. *
  4805. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#overlaps)
  4806. */
  4807. overlaps(geometry1: Geometry, geometry2: Geometry): boolean;
  4808. /**
  4809. * Calculates the area of the input geometry.
  4810. *
  4811. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#planarArea)
  4812. */
  4813. planarArea(geometry: Polygon, unit?: AreaUnits): number;
  4814. /**
  4815. * Calculates the length of the input geometry.
  4816. *
  4817. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#planarLength)
  4818. */
  4819. planarLength(geometry: Geometry, unit?: LinearUnits): number;
  4820. /**
  4821. * Indicates if the given DE-9IM relation is true for the two geometries.
  4822. *
  4823. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#relate)
  4824. */
  4825. relate(geometry1: Geometry, geometry2: Geometry, relation: string): boolean;
  4826. /**
  4827. * Rotates a geometry counterclockwise by the specified number of degrees.
  4828. *
  4829. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#rotate)
  4830. */
  4831. rotate(geometry: Geometry, angle: number, rotationOrigin?: Point): Geometry;
  4832. /**
  4833. * Performs the simplify operation on the geometry, which alters the given geometries to make their definitions topologically legal with respect to their geometry type.
  4834. *
  4835. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#simplify)
  4836. */
  4837. simplify(geometry: Geometry): Geometry;
  4838. /**
  4839. * Creates the symmetric difference of two geometries.
  4840. *
  4841. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#symmetricDifference)
  4842. */
  4843. symmetricDifference(leftGeometry: Geometry | Geometry[], rightGeometry: Geometry): Geometry | Geometry[];
  4844. /**
  4845. * Indicates if one geometry touches another geometry.
  4846. *
  4847. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#touches)
  4848. */
  4849. touches(geometry1: Geometry, geometry2: Geometry): boolean;
  4850. /**
  4851. * All inputs must be of the same type of geometries and share one spatial reference.
  4852. *
  4853. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#union)
  4854. */
  4855. union(geometries: Geometry[]): Geometry;
  4856. /**
  4857. * Indicates if one geometry is within another geometry.
  4858. *
  4859. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#within)
  4860. */
  4861. within(innerGeometry: Geometry, outerGeometry: Geometry): boolean;
  4862. }
  4863. export const geometryEngine: geometryEngine;
  4864. /**
  4865. * Units for area measurements.
  4866. *
  4867. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#AreaUnits)
  4868. */
  4869. export type AreaUnits = | "acres"
  4870. | "ares"
  4871. | "hectares"
  4872. | "square-feet"
  4873. | "square-meters"
  4874. | "square-yards"
  4875. | "square-kilometers"
  4876. | "square-miles"
  4877. | number;
  4878. /**
  4879. * Units for linear measurements.
  4880. *
  4881. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#LinearUnits)
  4882. */
  4883. export type LinearUnits = "meters" | "feet" | "kilometers" | "miles" | "nautical-miles" | "yards" | number;
  4884. /**
  4885. * Object returned from the [nearestCoordinate()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#nearestCoordinate), [nearestVertex()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#nearestVertex), and [nearestVertices()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#nearestVertices) methods.
  4886. *
  4887. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#NearestPointResult)
  4888. */
  4889. export interface NearestPointResult {
  4890. /**
  4891. * A vertex within the specified distance of the search.
  4892. *
  4893. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#NearestPointResult)
  4894. */
  4895. coordinate: Point;
  4896. /**
  4897. * The distance from the `inputPoint` in the units of the view's spatial reference.
  4898. *
  4899. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#NearestPointResult)
  4900. */
  4901. distance: number;
  4902. /**
  4903. * The index of the vertex within the geometry's rings or paths.
  4904. *
  4905. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#NearestPointResult)
  4906. */
  4907. vertexIndex: number;
  4908. /**
  4909. * Indicates if it is an empty geometry.
  4910. *
  4911. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#NearestPointResult)
  4912. */
  4913. isEmpty: boolean;
  4914. }
  4915. /**
  4916. * The return object of the [extendedSpatialReferenceInfo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#extendedSpatialReferenceInfo) method.
  4917. *
  4918. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#SpatialReferenceInfo)
  4919. */
  4920. export interface SpatialReferenceInfo {
  4921. /**
  4922. * The XY tolerance of the spatial reference.
  4923. *
  4924. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#SpatialReferenceInfo)
  4925. */
  4926. tolerance: number;
  4927. /**
  4928. * Base factor.
  4929. *
  4930. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#SpatialReferenceInfo)
  4931. */
  4932. unitBaseFactor: number;
  4933. /**
  4934. * Unit ID.
  4935. *
  4936. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#SpatialReferenceInfo)
  4937. */
  4938. unitID: number;
  4939. /**
  4940. * Square derivative.
  4941. *
  4942. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#SpatialReferenceInfo)
  4943. */
  4944. unitSquareDerivative: number;
  4945. /**
  4946. * Unit type.
  4947. *
  4948. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#SpatialReferenceInfo)
  4949. */
  4950. unitType: number;
  4951. }
  4952. /**
  4953. * An asynchronous client-side geometry engine for testing, measuring, and analyzing the spatial relationship between two or more 2D geometries.
  4954. *
  4955. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html)
  4956. */
  4957. interface geometryEngineAsync {
  4958. /**
  4959. * Creates planar (or Euclidean) buffer polygons at a specified distance around the input geometries.
  4960. *
  4961. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#buffer)
  4962. */
  4963. buffer(geometry: Geometry | Geometry[], distance: number | number[], unit?: LinearUnits, unionResults?: boolean): Promise<Polygon | Polygon[]>;
  4964. /**
  4965. * Calculates the clipped geometry from a target geometry by an envelope.
  4966. *
  4967. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#clip)
  4968. */
  4969. clip(geometry: Geometry, envelope: Extent): Promise<Geometry>;
  4970. /**
  4971. * Indicates if one geometry contains another geometry.
  4972. *
  4973. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#contains)
  4974. */
  4975. contains(containerGeometry: Geometry, insideGeometry: Geometry): Promise<boolean>;
  4976. /**
  4977. * Calculates the convex hull of one or more geometries.
  4978. *
  4979. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#convexHull)
  4980. */
  4981. convexHull(geometry: Geometry | Geometry[], merge?: boolean): Promise<Geometry | Geometry[]>;
  4982. /**
  4983. * Indicates if one geometry crosses another geometry.
  4984. *
  4985. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#crosses)
  4986. */
  4987. crosses(geometry1: Geometry, geometry2: Geometry): Promise<boolean>;
  4988. /**
  4989. * Split the input Polyline or Polygon where it crosses a cutting Polyline.
  4990. *
  4991. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#cut)
  4992. */
  4993. cut(geometry: Geometry, cutter: Polyline): Promise<Geometry[]>;
  4994. /**
  4995. * Densify geometries by plotting points between existing vertices.
  4996. *
  4997. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#densify)
  4998. */
  4999. densify(geometry: Geometry, maxSegmentLength: number, maxSegmentLengthUnit?: LinearUnits): Promise<Geometry>;
  5000. /**
  5001. * Creates the difference of two geometries.
  5002. *
  5003. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#difference)
  5004. */
  5005. difference(inputGeometry: Geometry | Geometry[], subtractor: Geometry): Promise<Geometry>;
  5006. /**
  5007. * Indicates if one geometry is disjoint (doesn't intersect in any way) with another geometry.
  5008. *
  5009. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#disjoint)
  5010. */
  5011. disjoint(geometry1: Geometry, geometry2: Geometry): Promise<boolean>;
  5012. /**
  5013. * Calculates the shortest planar distance between two geometries.
  5014. *
  5015. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#distance)
  5016. */
  5017. distance(geometry1: Geometry, geometry2: Geometry, distanceUnit?: LinearUnits): Promise<number>;
  5018. /**
  5019. * Indicates if two geometries are equal.
  5020. *
  5021. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#equals)
  5022. */
  5023. equals(geometry1: Geometry, geometry2: Geometry): Promise<boolean>;
  5024. /**
  5025. * Returns an object containing additional information about the input spatial reference.
  5026. *
  5027. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#extendedSpatialReferenceInfo)
  5028. */
  5029. extendedSpatialReferenceInfo(spatialReference: SpatialReference): Promise<geometryEngineAsyncSpatialReferenceInfo>;
  5030. /**
  5031. * Flips a geometry on the horizontal axis.
  5032. *
  5033. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#flipHorizontal)
  5034. */
  5035. flipHorizontal(geometry: Geometry, flipOrigin?: Point): Promise<Geometry>;
  5036. /**
  5037. * Flips a geometry on the vertical axis.
  5038. *
  5039. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#flipVertical)
  5040. */
  5041. flipVertical(geometry: Geometry, flipOrigin?: Point): Promise<Geometry>;
  5042. /**
  5043. * Performs the generalize operation on the geometries in the cursor.
  5044. *
  5045. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#generalize)
  5046. */
  5047. generalize(geometry: Geometry, maxDeviation: number, removeDegenerateParts?: boolean, maxDeviationUnit?: LinearUnits): Promise<Geometry>;
  5048. /**
  5049. * Calculates the area of the input geometry.
  5050. *
  5051. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#geodesicArea)
  5052. */
  5053. geodesicArea(geometry: Polygon, unit?: AreaUnits): Promise<number>;
  5054. /**
  5055. * Creates geodesic buffer polygons at a specified distance around the input geometries.
  5056. *
  5057. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#geodesicBuffer)
  5058. */
  5059. geodesicBuffer(geometry: Geometry | Geometry[], distance: number | number[], unit?: LinearUnits, unionResults?: boolean): Promise<Polygon | Polygon[]>;
  5060. /**
  5061. * Returns a geodesically densified version of the input geometry.
  5062. *
  5063. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#geodesicDensify)
  5064. */
  5065. geodesicDensify(geometry: Polyline | Polygon, maxSegmentLength: number, maxSegmentLengthUnit?: LinearUnits): Promise<Geometry>;
  5066. /**
  5067. * Calculates the length of the input geometry.
  5068. *
  5069. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#geodesicLength)
  5070. */
  5071. geodesicLength(geometry: Geometry, unit?: LinearUnits): Promise<number>;
  5072. /**
  5073. * Creates new geometries from the intersections between two geometries.
  5074. *
  5075. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#intersect)
  5076. */
  5077. intersect(geometry1: Geometry | Geometry[], geometry2: Geometry): Promise<Geometry>;
  5078. /**
  5079. * Resolves to an array of points at the intersecting locations of two input polylines.
  5080. *
  5081. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#intersectLinesToPoints)
  5082. */
  5083. intersectLinesToPoints(line1: Polyline, line2: Polyline): Promise<Point[]>;
  5084. /**
  5085. * Indicates if one geometry intersects another geometry.
  5086. *
  5087. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#intersects)
  5088. */
  5089. intersects(geometry1: Geometry, geometry2: Geometry): Promise<boolean>;
  5090. /**
  5091. * Indicates if the given geometry is topologically simple.
  5092. *
  5093. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#isSimple)
  5094. */
  5095. isSimple(geometry: Geometry): Promise<boolean>;
  5096. /**
  5097. * Finds the coordinate of the geometry that is closest to the specified point.
  5098. *
  5099. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#nearestCoordinate)
  5100. */
  5101. nearestCoordinate(geometry: Geometry, inputPoint: Point): Promise<NearestPointResult>;
  5102. /**
  5103. * Finds vertex on the geometry nearest to the specified point.
  5104. *
  5105. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#nearestVertex)
  5106. */
  5107. nearestVertex(geometry: Geometry, inputPoint: Point): Promise<NearestPointResult>;
  5108. /**
  5109. * Finds all vertices in the given distance from the specified point, sorted from the closest to the furthest and returns them as an array of Objects.
  5110. *
  5111. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#nearestVertices)
  5112. */
  5113. nearestVertices(geometry: Geometry, inputPoint: Point, searchRadius: number, maxVertexCountToReturn: number): Promise<NearestPointResult>;
  5114. /**
  5115. * The offset operation creates a geometry that is a constant planar distance from an input polyline or polygon.
  5116. *
  5117. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#offset)
  5118. */
  5119. offset(geometry: Geometry | Geometry[], offsetDistance: number, offsetUnit?: LinearUnits, joinType?: "round" | "bevel" | "miter" | "square", bevelRatio?: number, flattenError?: number): Promise<Geometry | Geometry[]>;
  5120. /**
  5121. * Indicates if one geometry overlaps another geometry.
  5122. *
  5123. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#overlaps)
  5124. */
  5125. overlaps(geometry1: Geometry, geometry2: Geometry): Promise<boolean>;
  5126. /**
  5127. * Calculates the area of the input geometry.
  5128. *
  5129. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#planarArea)
  5130. */
  5131. planarArea(geometry: Polygon, unit?: AreaUnits): Promise<number>;
  5132. /**
  5133. * Calculates the length of the input geometry.
  5134. *
  5135. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#planarLength)
  5136. */
  5137. planarLength(geometry: Geometry, unit?: LinearUnits): Promise<number>;
  5138. /**
  5139. * Indicates if the given DE-9IM relation holds for the two geometries.
  5140. *
  5141. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#relate)
  5142. */
  5143. relate(geometry1: Geometry, geometry2: Geometry, relation: string): Promise<boolean>;
  5144. /**
  5145. * Rotates a geometry counterclockwise by the specified number of degrees.
  5146. *
  5147. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#rotate)
  5148. */
  5149. rotate(geometry: Geometry, angle: number, rotationOrigin?: Point): Promise<Geometry>;
  5150. /**
  5151. * Performs the simplify operation on the geometry, which alters the given geometries to make their definitions topologically legal with respect to their geometry type.
  5152. *
  5153. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#simplify)
  5154. */
  5155. simplify(geometry: Geometry): Promise<Geometry>;
  5156. /**
  5157. * Creates the symmetric difference of two geometries.
  5158. *
  5159. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#symmetricDifference)
  5160. */
  5161. symmetricDifference(leftGeometry: Geometry | Geometry[], rightGeometry: Geometry): Promise<Geometry | Geometry[]>;
  5162. /**
  5163. * Indicates if one geometry touches another geometry.
  5164. *
  5165. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#touches)
  5166. */
  5167. touches(geometry1: Geometry, geometry2: Geometry): Promise<boolean>;
  5168. /**
  5169. * All inputs must be of the same type of geometries and share one spatial reference.
  5170. *
  5171. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#union)
  5172. */
  5173. union(geometries: Geometry[]): Promise<Geometry>;
  5174. /**
  5175. * Indicates if one geometry is within another geometry.
  5176. *
  5177. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#within)
  5178. */
  5179. within(innerGeometry: Geometry, outerGeometry: Geometry): Promise<boolean>;
  5180. }
  5181. export const geometryEngineAsync: geometryEngineAsync;
  5182. /**
  5183. * The return object of the [extendedSpatialReferenceInfo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#extendedSpatialReferenceInfo) method.
  5184. *
  5185. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#SpatialReferenceInfo)
  5186. */
  5187. export interface geometryEngineAsyncSpatialReferenceInfo {
  5188. /**
  5189. * The XY tolerance of the spatial reference.
  5190. *
  5191. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#SpatialReferenceInfo)
  5192. */
  5193. tolerance: number;
  5194. /**
  5195. * Base factor.
  5196. *
  5197. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#SpatialReferenceInfo)
  5198. */
  5199. unitBaseFactor: number;
  5200. /**
  5201. * Unit ID.
  5202. *
  5203. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#SpatialReferenceInfo)
  5204. */
  5205. unitID: number;
  5206. /**
  5207. * Square derivative.
  5208. *
  5209. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#SpatialReferenceInfo)
  5210. */
  5211. unitSquareDerivative: number;
  5212. /**
  5213. * Unit type.
  5214. *
  5215. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngineAsync.html#SpatialReferenceInfo)
  5216. */
  5217. unitType: number;
  5218. }
  5219. export interface HeightModelInfo extends Accessor, JSONSupport {
  5220. }
  5221. export class HeightModelInfo {
  5222. /**
  5223. * The surface type or height model of the vertical coordinate system (VCS).
  5224. *
  5225. * @default "gravity-related-height"
  5226. *
  5227. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-HeightModelInfo.html#heightModel)
  5228. */
  5229. readonly heightModel: "gravity-related-height" | "ellipsoidal";
  5230. /**
  5231. * The unit of the vertical coordinate system.
  5232. *
  5233. * @default "meters"
  5234. *
  5235. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-HeightModelInfo.html#heightUnit)
  5236. */
  5237. readonly heightUnit: | "meters"
  5238. | "feet"
  5239. | "us-feet"
  5240. | "clarke-feet"
  5241. | "clarke-yards"
  5242. | "clarke-links"
  5243. | "sears-yards"
  5244. | "sears-feet"
  5245. | "sears-chains"
  5246. | "benoit-1895-b-chains"
  5247. | "indian-yards"
  5248. | "indian-1937-yards"
  5249. | "gold-coast-feet"
  5250. | "sears-1922-truncated-chains"
  5251. | "50-kilometers"
  5252. | "150-kilometers";
  5253. /**
  5254. * The datum realization of the vertical coordinate system.
  5255. *
  5256. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-HeightModelInfo.html#vertCRS)
  5257. */
  5258. readonly vertCRS: string;
  5259. /**
  5260. * The height model info defines the characteristics of a vertical coordinate system.
  5261. *
  5262. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-HeightModelInfo.html)
  5263. */
  5264. constructor(properties?: HeightModelInfoProperties);
  5265. static fromJSON(json: any): HeightModelInfo;
  5266. }
  5267. /** @deprecated Import the HeightModelInfo class instead. */
  5268. export type HeightModelInfoConstructor = typeof HeightModelInfo;
  5269. interface HeightModelInfoProperties {
  5270. /**
  5271. * The surface type or height model of the vertical coordinate system (VCS).
  5272. *
  5273. * @default "gravity-related-height"
  5274. *
  5275. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-HeightModelInfo.html#heightModel)
  5276. */
  5277. heightModel?: "gravity-related-height" | "ellipsoidal";
  5278. /**
  5279. * The unit of the vertical coordinate system.
  5280. *
  5281. * @default "meters"
  5282. *
  5283. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-HeightModelInfo.html#heightUnit)
  5284. */
  5285. heightUnit?: | "meters"
  5286. | "feet"
  5287. | "us-feet"
  5288. | "clarke-feet"
  5289. | "clarke-yards"
  5290. | "clarke-links"
  5291. | "sears-yards"
  5292. | "sears-feet"
  5293. | "sears-chains"
  5294. | "benoit-1895-b-chains"
  5295. | "indian-yards"
  5296. | "indian-1937-yards"
  5297. | "gold-coast-feet"
  5298. | "sears-1922-truncated-chains"
  5299. | "50-kilometers"
  5300. | "150-kilometers";
  5301. /**
  5302. * The datum realization of the vertical coordinate system.
  5303. *
  5304. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-HeightModelInfo.html#vertCRS)
  5305. */
  5306. vertCRS?: string;
  5307. }
  5308. export class Mesh extends Geometry {
  5309. /**
  5310. * An array of mesh components that can be used to apply materials to different regions of the same mesh.
  5311. *
  5312. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#components)
  5313. */
  5314. components: MeshComponent[];
  5315. /**
  5316. * The string value representing the type of geometry.
  5317. *
  5318. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#type)
  5319. */
  5320. readonly type: "mesh";
  5321. /**
  5322. * Object describing the attributes of each vertex of the mesh.
  5323. *
  5324. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#vertexAttributes)
  5325. */
  5326. vertexAttributes: MeshVertexAttributes;
  5327. /**
  5328. * A mesh is a general, client-side 3D [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html) type composed of [vertices with attributes](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#vertexAttributes).
  5329. *
  5330. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html)
  5331. */
  5332. constructor(properties?: MeshProperties);
  5333. /**
  5334. * Adds a component to the mesh.
  5335. *
  5336. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#addComponent)
  5337. */
  5338. addComponent(component: MeshComponent | MeshComponentProperties): void;
  5339. /**
  5340. * Centers the mesh at the specified location without changing its scale.
  5341. *
  5342. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#centerAt)
  5343. */
  5344. centerAt(location: Point, params?: MeshCenterAtParams): Mesh;
  5345. /**
  5346. * Creates a deep clone of the Mesh object.
  5347. *
  5348. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#clone)
  5349. */
  5350. clone(): Mesh;
  5351. /**
  5352. * Offsets the mesh geometry by the specified distance in x, y, and z.
  5353. *
  5354. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#offset)
  5355. */
  5356. offset(dx: number, dy: number, dz: number, params?: MeshOffsetParams): Mesh;
  5357. /**
  5358. * Removes a component from the mesh.
  5359. *
  5360. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#removeComponent)
  5361. */
  5362. removeComponent(component: MeshComponent): void;
  5363. /**
  5364. * Rotates the mesh geometry around its x, y and z axis (in that order).
  5365. *
  5366. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#rotate)
  5367. */
  5368. rotate(angleX: number, angleY: number, angleZ: number, params?: MeshRotateParams): Mesh;
  5369. /**
  5370. * Scales the mesh geometry by the specified factor.
  5371. *
  5372. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#scale)
  5373. */
  5374. scale(factor: number, params?: MeshScaleParams): Mesh;
  5375. /**
  5376. * Notifies that any cached values that depend on vertex attributes need to be recalculated.
  5377. *
  5378. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#vertexAttributesChanged)
  5379. */
  5380. vertexAttributesChanged(): void;
  5381. /**
  5382. * Creates a mesh representing a box.
  5383. *
  5384. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createBox)
  5385. */
  5386. static createBox(location: Point, params?: MeshCreateBoxParams): Mesh;
  5387. /**
  5388. * Creates a mesh representing a cylinder.
  5389. *
  5390. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createCylinder)
  5391. */
  5392. static createCylinder(location: Point, params?: MeshCreateCylinderParams): Mesh;
  5393. /**
  5394. * Creates a new mesh geometry from a glTF model referenced by the `url` parameter.
  5395. *
  5396. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createFromGLTF)
  5397. */
  5398. static createFromGLTF(location: Point, url: string, params?: MeshCreateFromGLTFParams): Promise<Mesh>;
  5399. /**
  5400. * Creates a new mesh geometry from a polygon geometry.
  5401. *
  5402. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createFromPolygon)
  5403. */
  5404. static createFromPolygon(polygon: Polygon, params?: MeshCreateFromPolygonParams): Mesh;
  5405. /**
  5406. * Creates a mesh representing a plane.
  5407. *
  5408. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createPlane)
  5409. */
  5410. static createPlane(location: Point, params?: MeshCreatePlaneParams): Mesh;
  5411. /**
  5412. * Creates a mesh representing a sphere.
  5413. *
  5414. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createSphere)
  5415. */
  5416. static createSphere(location: Point, params?: MeshCreateSphereParams): Mesh;
  5417. static fromJSON(json: any): Mesh;
  5418. }
  5419. /** @deprecated Import the Mesh class instead. */
  5420. export type MeshConstructor = typeof Mesh;
  5421. interface MeshProperties extends GeometryProperties {
  5422. /**
  5423. * An array of mesh components that can be used to apply materials to different regions of the same mesh.
  5424. *
  5425. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#components)
  5426. */
  5427. components?: MeshComponentProperties[];
  5428. /**
  5429. * Object describing the attributes of each vertex of the mesh.
  5430. *
  5431. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#vertexAttributes)
  5432. */
  5433. vertexAttributes?: MeshVertexAttributesProperties;
  5434. }
  5435. export interface MeshCenterAtParams {
  5436. /**
  5437. * Whether to georeference relative to the globe or the projected coordinate system (PCS).
  5438. *
  5439. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#centerAt)
  5440. */
  5441. geographic?: boolean;
  5442. /**
  5443. * The origin at which to center.
  5444. *
  5445. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#centerAt)
  5446. */
  5447. origin?: Point;
  5448. }
  5449. export interface MeshCreateBoxParams {
  5450. /**
  5451. * A uniform size value or an object containing individual values width, height and depth.
  5452. *
  5453. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createBox)
  5454. */
  5455. size?: number | MeshCreateBoxParamsSize;
  5456. /**
  5457. * Whether to georeference relative to the globe or the projected coordinate system (PCS).
  5458. *
  5459. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createBox)
  5460. */
  5461. geographic?: boolean;
  5462. /**
  5463. * The unit of the size (defaults to the unit of the location's spatial reference).
  5464. *
  5465. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createBox)
  5466. */
  5467. unit?: | "millimeters"
  5468. | "centimeters"
  5469. | "decimeters"
  5470. | "meters"
  5471. | "kilometers"
  5472. | "inches"
  5473. | "feet"
  5474. | "yards"
  5475. | "miles"
  5476. | "nautical-miles"
  5477. | "us-feet";
  5478. /**
  5479. * The material to be used for the mesh.
  5480. *
  5481. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createBox)
  5482. */
  5483. material?: MeshMaterial;
  5484. /**
  5485. * The face for generating image uv coordinates.
  5486. *
  5487. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createBox)
  5488. */
  5489. imageFace?: string;
  5490. }
  5491. export interface MeshCreateBoxParamsSize {
  5492. /**
  5493. * The width of the created mesh.
  5494. *
  5495. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createBox)
  5496. */
  5497. width?: number;
  5498. /**
  5499. * The depth of the created mesh.
  5500. *
  5501. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createBox)
  5502. */
  5503. depth?: number;
  5504. /**
  5505. * The height of the created mesh.
  5506. *
  5507. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createBox)
  5508. */
  5509. height?: number;
  5510. }
  5511. export interface MeshCreateCylinderParams {
  5512. /**
  5513. * A uniform size value or an object containing individual values width, height and depth.
  5514. *
  5515. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createCylinder)
  5516. */
  5517. size?: number | MeshCreateCylinderParamsSize;
  5518. /**
  5519. * Whether to georeference relative to the globe or the projected coordinate system (PCS).
  5520. *
  5521. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createCylinder)
  5522. */
  5523. geographic?: boolean;
  5524. /**
  5525. * The unit of the size (defaults to the unit of the location's spatial reference).
  5526. *
  5527. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createCylinder)
  5528. */
  5529. unit?: | "millimeters"
  5530. | "centimeters"
  5531. | "decimeters"
  5532. | "meters"
  5533. | "kilometers"
  5534. | "inches"
  5535. | "feet"
  5536. | "yards"
  5537. | "miles"
  5538. | "nautical-miles"
  5539. | "us-feet";
  5540. /**
  5541. * The additional number of subdivisions for generating the mesh representing a cylinder.
  5542. *
  5543. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createCylinder)
  5544. */
  5545. densificationFactor?: number;
  5546. /**
  5547. * The material to be used for the mesh.
  5548. *
  5549. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createCylinder)
  5550. */
  5551. material?: MeshMaterial;
  5552. }
  5553. export interface MeshCreateCylinderParamsSize {
  5554. /**
  5555. * The width of the created mesh.
  5556. *
  5557. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createCylinder)
  5558. */
  5559. width?: number;
  5560. /**
  5561. * The depth of the created mesh.
  5562. *
  5563. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createCylinder)
  5564. */
  5565. depth?: number;
  5566. /**
  5567. * The height of the created mesh.
  5568. *
  5569. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createCylinder)
  5570. */
  5571. height?: number;
  5572. }
  5573. export interface MeshCreateFromGLTFParams {
  5574. /**
  5575. * Whether to georeference relative to the globe or the projected coordinate system (PCS).
  5576. *
  5577. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createFromGLTF)
  5578. */
  5579. geographic?: boolean;
  5580. /**
  5581. * An [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) to abort the loading process.
  5582. *
  5583. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createFromGLTF)
  5584. */
  5585. signal?: AbortSignal;
  5586. }
  5587. export interface MeshCreateFromPolygonParams {
  5588. /**
  5589. * The material to be used for the mesh.
  5590. *
  5591. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createFromPolygon)
  5592. */
  5593. material?: MeshMaterial;
  5594. }
  5595. export interface MeshCreatePlaneParams {
  5596. /**
  5597. * A uniform size value or an object containing individual values width and height.
  5598. *
  5599. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createPlane)
  5600. */
  5601. size?: number | MeshCreatePlaneParamsSize;
  5602. /**
  5603. * Direction the plane is facing.
  5604. *
  5605. * @default "up"
  5606. *
  5607. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createPlane)
  5608. */
  5609. facing?: "east" | "west" | "north" | "south" | "up" | "down";
  5610. /**
  5611. * Whether to georeference relative to the globe or the projected coordinate system (PCS).
  5612. *
  5613. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createPlane)
  5614. */
  5615. geographic?: boolean;
  5616. /**
  5617. * The unit of the size (defaults to the unit of the location's spatial reference).
  5618. *
  5619. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createPlane)
  5620. */
  5621. unit?: | "millimeters"
  5622. | "centimeters"
  5623. | "decimeters"
  5624. | "meters"
  5625. | "kilometers"
  5626. | "inches"
  5627. | "feet"
  5628. | "yards"
  5629. | "miles"
  5630. | "nautical-miles"
  5631. | "us-feet";
  5632. /**
  5633. * The material to be used for the mesh.
  5634. *
  5635. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createPlane)
  5636. */
  5637. material?: MeshMaterial;
  5638. }
  5639. export interface MeshCreatePlaneParamsSize {
  5640. /**
  5641. * The width of the created mesh.
  5642. *
  5643. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createPlane)
  5644. */
  5645. width?: number;
  5646. /**
  5647. * The height of the created mesh.
  5648. *
  5649. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createPlane)
  5650. */
  5651. height?: number;
  5652. }
  5653. export interface MeshCreateSphereParams {
  5654. /**
  5655. * A uniform size value or an object containing individual values width, height and depth.
  5656. *
  5657. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createSphere)
  5658. */
  5659. size?: number | MeshCreateSphereParamsSize;
  5660. /**
  5661. * Whether to georeference relative to the globe or the projected coordinate system (PCS).
  5662. *
  5663. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createSphere)
  5664. */
  5665. geographic?: boolean;
  5666. /**
  5667. * The unit of the size (defaults to the unit of the location's spatial reference).
  5668. *
  5669. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createSphere)
  5670. */
  5671. unit?: | "millimeters"
  5672. | "centimeters"
  5673. | "decimeters"
  5674. | "meters"
  5675. | "kilometers"
  5676. | "inches"
  5677. | "feet"
  5678. | "yards"
  5679. | "miles"
  5680. | "nautical-miles"
  5681. | "us-feet";
  5682. /**
  5683. * The additional number of subdivisions for generating the mesh representing a sphere.
  5684. *
  5685. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createSphere)
  5686. */
  5687. densificationFactor?: number;
  5688. /**
  5689. * The material to be used for the mesh.
  5690. *
  5691. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createSphere)
  5692. */
  5693. material?: MeshMaterial;
  5694. }
  5695. export interface MeshCreateSphereParamsSize {
  5696. /**
  5697. * The width of the created mesh.
  5698. *
  5699. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createSphere)
  5700. */
  5701. width?: number;
  5702. /**
  5703. * The depth of the created mesh.
  5704. *
  5705. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createSphere)
  5706. */
  5707. depth?: number;
  5708. /**
  5709. * The height of the created mesh.
  5710. *
  5711. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#createSphere)
  5712. */
  5713. height?: number;
  5714. }
  5715. export interface MeshOffsetParams {
  5716. /**
  5717. * Whether to georeference relative to the globe or the projected coordinate system (PCS).
  5718. *
  5719. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#offset)
  5720. */
  5721. geographic?: boolean;
  5722. /**
  5723. * The origin at which to apply the offset.
  5724. *
  5725. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#offset)
  5726. */
  5727. origin?: Point;
  5728. }
  5729. export interface MeshRotateParams {
  5730. /**
  5731. * Whether to georeference relative to the globe or the projected coordinate system (PCS).
  5732. *
  5733. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#rotate)
  5734. */
  5735. geographic?: boolean;
  5736. /**
  5737. * The origin around which to rotate.
  5738. *
  5739. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#rotate)
  5740. */
  5741. origin?: Point;
  5742. }
  5743. export interface MeshScaleParams {
  5744. /**
  5745. * Whether to georeference relative to the globe or the projected coordinate system (PCS).
  5746. *
  5747. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#scale)
  5748. */
  5749. geographic?: boolean;
  5750. /**
  5751. * The origin point for scaling.
  5752. *
  5753. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#scale)
  5754. */
  5755. origin?: Point;
  5756. }
  5757. export interface MeshVertexAttributesProperties {
  5758. /**
  5759. * A flat array of vertex positions.
  5760. *
  5761. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#vertexAttributes)
  5762. */
  5763. position?: Float64Array | number[] | Float32Array;
  5764. /**
  5765. * A flat array of vertex uv coordinates (2 elements per vertex).
  5766. *
  5767. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#vertexAttributes)
  5768. */
  5769. uv?: Float32Array | number[] | Float64Array;
  5770. /**
  5771. * A flat array of the vertex normals (3 elements per vertex ranging from -1 to 1).
  5772. *
  5773. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#vertexAttributes)
  5774. */
  5775. normal?: Float32Array | number[] | Float64Array;
  5776. /**
  5777. * **Since: 4.9** A flat array of the vertex colors (4 elements per vertex ranging from 0 to 255).
  5778. *
  5779. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#vertexAttributes)
  5780. */
  5781. color?: Uint8Array | number[] | Uint8ClampedArray;
  5782. /**
  5783. * **Since: 4.11** A flat array of the vertex tangents (4 elements per vertex ranging from -1 to 1.
  5784. *
  5785. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#vertexAttributes)
  5786. */
  5787. tangent?: Float32Array | number[] | Float64Array;
  5788. }
  5789. export interface MeshVertexAttributes extends AnonymousAccessor {
  5790. /**
  5791. * A flat array of vertex positions.
  5792. *
  5793. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#vertexAttributes)
  5794. */
  5795. position: Float64Array;
  5796. /**
  5797. * A flat array of vertex uv coordinates (2 elements per vertex).
  5798. *
  5799. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#vertexAttributes)
  5800. */
  5801. uv?: Float32Array;
  5802. /**
  5803. * A flat array of the vertex normals (3 elements per vertex ranging from -1 to 1).
  5804. *
  5805. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#vertexAttributes)
  5806. */
  5807. normal?: Float32Array;
  5808. /**
  5809. * **Since: 4.9** A flat array of the vertex colors (4 elements per vertex ranging from 0 to 255).
  5810. *
  5811. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#vertexAttributes)
  5812. */
  5813. color?: Uint8Array;
  5814. /**
  5815. * **Since: 4.11** A flat array of the vertex tangents (4 elements per vertex ranging from -1 to 1.
  5816. *
  5817. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#vertexAttributes)
  5818. */
  5819. tangent?: Float32Array;
  5820. }
  5821. export class Multipoint extends Geometry {
  5822. /**
  5823. * An array of points.
  5824. *
  5825. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Multipoint.html#points)
  5826. */
  5827. points: number[][];
  5828. /**
  5829. * The string value representing the type of geometry.
  5830. *
  5831. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Multipoint.html#type)
  5832. */
  5833. readonly type: "multipoint";
  5834. /**
  5835. * An ordered collection of points.
  5836. *
  5837. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Multipoint.html)
  5838. */
  5839. constructor(properties?: MultipointProperties);
  5840. /**
  5841. * Adds a point to the Multipoint.
  5842. *
  5843. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Multipoint.html#addPoint)
  5844. */
  5845. addPoint(point: Point | number[]): Multipoint;
  5846. /**
  5847. * Creates a deep clone of Multipoint object.
  5848. *
  5849. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Multipoint.html#clone)
  5850. */
  5851. clone(): Multipoint;
  5852. /**
  5853. * Returns the point at the specified index.
  5854. *
  5855. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Multipoint.html#getPoint)
  5856. */
  5857. getPoint(index: number): Point;
  5858. /**
  5859. * Removes a point from the Multipoint.
  5860. *
  5861. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Multipoint.html#removePoint)
  5862. */
  5863. removePoint(index: number): Point;
  5864. /**
  5865. * Updates the point at the specified index.
  5866. *
  5867. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Multipoint.html#setPoint)
  5868. */
  5869. setPoint(index: number, point: Point | number[]): Multipoint;
  5870. static fromJSON(json: any): Multipoint;
  5871. }
  5872. /** @deprecated Import the Multipoint class instead. */
  5873. export type MultipointConstructor = typeof Multipoint;
  5874. interface MultipointProperties extends GeometryProperties {
  5875. /**
  5876. * An array of points.
  5877. *
  5878. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Multipoint.html#points)
  5879. */
  5880. points?: number[][];
  5881. }
  5882. export class Point extends Geometry {
  5883. /**
  5884. * The latitude of the point.
  5885. *
  5886. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#latitude)
  5887. */
  5888. latitude: number;
  5889. /**
  5890. * The longitude of the point.
  5891. *
  5892. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#longitude)
  5893. */
  5894. longitude: number;
  5895. /**
  5896. * The m-coordinate of the point in map units.
  5897. *
  5898. * @default undefined
  5899. *
  5900. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#m)
  5901. */
  5902. m: number;
  5903. /**
  5904. * The string value representing the type of geometry.
  5905. *
  5906. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#type)
  5907. */
  5908. readonly type: "point";
  5909. /**
  5910. * The x-coordinate (easting) of the point in map units.
  5911. *
  5912. * @default 0
  5913. *
  5914. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#x)
  5915. */
  5916. x: number;
  5917. /**
  5918. * The y-coordinate (northing) of the point in map units.
  5919. *
  5920. * @default 0
  5921. *
  5922. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#y)
  5923. */
  5924. y: number;
  5925. /**
  5926. * The z-coordinate (or elevation) of the point in map units.
  5927. *
  5928. * @default undefined
  5929. *
  5930. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#z)
  5931. */
  5932. z: number;
  5933. /**
  5934. * A location defined by X, Y, and Z coordinates.
  5935. *
  5936. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html)
  5937. */
  5938. constructor(properties?: PointProperties);
  5939. /**
  5940. * Creates a deep clone of Point object.
  5941. *
  5942. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#clone)
  5943. */
  5944. clone(): Point;
  5945. /**
  5946. * Copies all values from another Point instance.
  5947. *
  5948. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#copy)
  5949. */
  5950. copy(other: Point): void;
  5951. /**
  5952. * Computes the Euclidean distance between this Point and a given Point.
  5953. *
  5954. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#distance)
  5955. */
  5956. distance(other: Point): number;
  5957. /**
  5958. * Determines if the input point is equal to the point calling the function.
  5959. *
  5960. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#equals)
  5961. */
  5962. equals(point: Point): boolean;
  5963. /**
  5964. * Modifies the point geometry in-place by shifting the X-coordinate to within +/- 180 span in map units.
  5965. *
  5966. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#normalize)
  5967. */
  5968. normalize(): Point;
  5969. static fromJSON(json: any): Point;
  5970. }
  5971. /** @deprecated Import the Point class instead. */
  5972. export type PointConstructor = typeof Point;
  5973. interface PointProperties extends GeometryProperties {
  5974. /**
  5975. * The latitude of the point.
  5976. *
  5977. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#latitude)
  5978. */
  5979. latitude?: number;
  5980. /**
  5981. * The longitude of the point.
  5982. *
  5983. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#longitude)
  5984. */
  5985. longitude?: number;
  5986. /**
  5987. * The m-coordinate of the point in map units.
  5988. *
  5989. * @default undefined
  5990. *
  5991. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#m)
  5992. */
  5993. m?: number;
  5994. /**
  5995. * The x-coordinate (easting) of the point in map units.
  5996. *
  5997. * @default 0
  5998. *
  5999. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#x)
  6000. */
  6001. x?: number;
  6002. /**
  6003. * The y-coordinate (northing) of the point in map units.
  6004. *
  6005. * @default 0
  6006. *
  6007. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#y)
  6008. */
  6009. y?: number;
  6010. /**
  6011. * The z-coordinate (or elevation) of the point in map units.
  6012. *
  6013. * @default undefined
  6014. *
  6015. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html#z)
  6016. */
  6017. z?: number;
  6018. }
  6019. export class Polygon extends Geometry {
  6020. /**
  6021. * The centroid of the polygon.
  6022. *
  6023. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html#centroid)
  6024. */
  6025. centroid: Point;
  6026. /**
  6027. * Checks to see if polygon rings cross each other and indicates if the polygon is self-intersecting, which means the ring of the polygon crosses itself.
  6028. *
  6029. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html#isSelfIntersecting)
  6030. */
  6031. isSelfIntersecting: boolean;
  6032. /**
  6033. * An array of rings.
  6034. *
  6035. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html#rings)
  6036. */
  6037. rings: number[][][];
  6038. /**
  6039. * The string value representing the type of geometry.
  6040. *
  6041. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html#type)
  6042. */
  6043. readonly type: "polygon";
  6044. /**
  6045. * A polygon contains an array of [rings](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html#rings) and a [spatialReference](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html#spatialReference).
  6046. *
  6047. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html)
  6048. */
  6049. constructor(properties?: PolygonProperties);
  6050. /**
  6051. * Adds a ring to the Polygon.
  6052. *
  6053. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html#addRing)
  6054. */
  6055. addRing(points: Point[] | number[][]): Polygon;
  6056. /**
  6057. * Creates a deep clone of Polygon object.
  6058. *
  6059. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html#clone)
  6060. */
  6061. clone(): Polygon;
  6062. /**
  6063. * Checks on the client if the input point is inside the polygon.
  6064. *
  6065. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html#contains)
  6066. */
  6067. contains(point: Point): boolean;
  6068. /**
  6069. * Returns a point specified by a ring and point in the path.
  6070. *
  6071. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html#getPoint)
  6072. */
  6073. getPoint(ringIndex: number, pointIndex: number): Point;
  6074. /**
  6075. * Inserts a new point into the polygon.
  6076. *
  6077. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html#insertPoint)
  6078. */
  6079. insertPoint(ringIndex: number, pointIndex: number, point: Point | number[]): Polygon;
  6080. /**
  6081. * Checks if a Polygon ring is clockwise.
  6082. *
  6083. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html#isClockwise)
  6084. */
  6085. isClockwise(ring: Point[] | number[][]): boolean;
  6086. /**
  6087. * Removes a point from the polygon at the given `pointIndex` within the ring identified by `ringIndex`.
  6088. *
  6089. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html#removePoint)
  6090. */
  6091. removePoint(ringIndex: number, pointIndex: number): Point[];
  6092. /**
  6093. * Removes a ring from the Polygon.
  6094. *
  6095. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html#removeRing)
  6096. */
  6097. removeRing(index: number): Point[];
  6098. /**
  6099. * Updates a point in the polygon.
  6100. *
  6101. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html#setPoint)
  6102. */
  6103. setPoint(ringIndex: number, pointIndex: number, point: Point | number[]): Polygon;
  6104. /**
  6105. * Converts the given Extent to a Polygon instance.
  6106. *
  6107. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html#fromExtent)
  6108. */
  6109. static fromExtent(extent: Extent): Polygon;
  6110. static fromJSON(json: any): Polygon;
  6111. }
  6112. /** @deprecated Import the Polygon class instead. */
  6113. export type PolygonConstructor = typeof Polygon;
  6114. interface PolygonProperties extends GeometryProperties {
  6115. /**
  6116. * The centroid of the polygon.
  6117. *
  6118. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html#centroid)
  6119. */
  6120. centroid?: PointProperties;
  6121. /**
  6122. * Checks to see if polygon rings cross each other and indicates if the polygon is self-intersecting, which means the ring of the polygon crosses itself.
  6123. *
  6124. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html#isSelfIntersecting)
  6125. */
  6126. isSelfIntersecting?: boolean;
  6127. /**
  6128. * An array of rings.
  6129. *
  6130. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html#rings)
  6131. */
  6132. rings?: number[][][];
  6133. }
  6134. export class Polyline extends Geometry {
  6135. /**
  6136. * An array of paths, or line segments, that make up the polyline.
  6137. *
  6138. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html#paths)
  6139. */
  6140. paths: number[][][];
  6141. readonly type: "polyline";
  6142. /**
  6143. * A polyline contains an array of [paths](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html#paths) and [spatialReference](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html#spatialReference).
  6144. *
  6145. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html)
  6146. */
  6147. constructor(properties?: PolylineProperties);
  6148. /**
  6149. * Adds a path, or line segment, to the polyline.
  6150. *
  6151. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html#addPath)
  6152. */
  6153. addPath(points: Point[] | number[][]): Polyline;
  6154. /**
  6155. * Creates a deep clone of Polyline object.
  6156. *
  6157. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html#clone)
  6158. */
  6159. clone(): Polyline;
  6160. /**
  6161. * Returns a point specified by a path and point in the path.
  6162. *
  6163. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html#getPoint)
  6164. */
  6165. getPoint(pathIndex: number, pointIndex: number): Point;
  6166. /**
  6167. * Inserts a new point into a polyline.
  6168. *
  6169. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html#insertPoint)
  6170. */
  6171. insertPoint(pathIndex: number, pointIndex: number, point: Point | number[]): Polyline;
  6172. /**
  6173. * Removes a path from the Polyline.
  6174. *
  6175. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html#removePath)
  6176. */
  6177. removePath(index: number): Point[];
  6178. /**
  6179. * Removes a point from the polyline at the given `pointIndex` within the path identified by the given `pathIndex`.
  6180. *
  6181. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html#removePoint)
  6182. */
  6183. removePoint(pathIndex: number, pointIndex: number): Point;
  6184. /**
  6185. * Updates a point in a polyline.
  6186. *
  6187. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html#setPoint)
  6188. */
  6189. setPoint(pathIndex: number, pointIndex: number, point: Point | number[]): Polyline;
  6190. static fromJSON(json: any): Polyline;
  6191. }
  6192. /** @deprecated Import the Polyline class instead. */
  6193. export type PolylineConstructor = typeof Polyline;
  6194. interface PolylineProperties extends GeometryProperties {
  6195. /**
  6196. * An array of paths, or line segments, that make up the polyline.
  6197. *
  6198. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html#paths)
  6199. */
  6200. paths?: number[][][];
  6201. }
  6202. /**
  6203. * A client-side projection engine for converting geometries from one [SpatialReference](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html) to another.
  6204. *
  6205. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-projection.html)
  6206. */
  6207. interface projection {
  6208. /**
  6209. * Returns the default geographic transformation used to convert the geometry from the input spatial reference to the output spatial reference.
  6210. *
  6211. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-projection.html#getTransformation)
  6212. */
  6213. getTransformation(inSpatialReference: SpatialReference | SpatialReferenceProperties, outSpatialReference: SpatialReference | SpatialReferenceProperties, extent?: Extent): GeographicTransformation;
  6214. /**
  6215. * Returns a list of all geographic transformations suitable to convert geometries from the input spatial reference to the specified output spatial reference.
  6216. *
  6217. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-projection.html#getTransformations)
  6218. */
  6219. getTransformations(inSpatialReference: SpatialReference | SpatialReferenceProperties, outSpatialReference: SpatialReference | SpatialReferenceProperties, extent?: Extent): GeographicTransformation[];
  6220. /**
  6221. * Indicates if all dependencies of this module have been loaded.
  6222. *
  6223. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-projection.html#isLoaded)
  6224. */
  6225. isLoaded(): boolean;
  6226. /**
  6227. * Loads this module's dependencies.
  6228. *
  6229. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-projection.html#load)
  6230. */
  6231. load(): Promise<any>;
  6232. /**
  6233. * Projects a geometry or an array of geometries to the specified output spatial reference.
  6234. *
  6235. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-projection.html#project)
  6236. */
  6237. project(geometry: Geometry | Geometry[], outSpatialReference: SpatialReference | SpatialReferenceProperties, geographicTransformation?: GeographicTransformation): Geometry | Geometry[];
  6238. }
  6239. export const projection: projection;
  6240. export interface SpatialReference extends Accessor, JSONSupport {
  6241. }
  6242. export class SpatialReference {
  6243. /**
  6244. * An [image coordinate system](https://developers.arcgis.com/rest/services-reference/raster-ics.htm) defines the spatial reference used to display the image in its original coordinates without distortion, map transformations or ortho-rectification.
  6245. *
  6246. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html#imageCoordinateSystem)
  6247. */
  6248. imageCoordinateSystem: any;
  6249. /**
  6250. * Indicates if the spatial reference refers to a geographic coordinate system.
  6251. *
  6252. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html#isGeographic)
  6253. */
  6254. readonly isGeographic: boolean;
  6255. /**
  6256. * Indicates if the [wkid](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html#wkid) of the spatial reference object is one of the following values: `102113`, `102100`, `3857`.
  6257. *
  6258. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html#isWebMercator)
  6259. */
  6260. readonly isWebMercator: boolean;
  6261. /**
  6262. * Indicates if the [wkid](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html#wkid) of the spatial reference object is `4326`.
  6263. *
  6264. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html#isWGS84)
  6265. */
  6266. readonly isWGS84: boolean;
  6267. /**
  6268. * Indicates if the spatial reference of the map supports wrapping around the International Date Line.
  6269. *
  6270. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html#isWrappable)
  6271. */
  6272. readonly isWrappable: boolean;
  6273. /**
  6274. * The well-known ID of a spatial reference.
  6275. *
  6276. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html#wkid)
  6277. */
  6278. wkid: number;
  6279. /**
  6280. * The well-known text that defines a spatial reference.
  6281. *
  6282. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html#wkt)
  6283. */
  6284. wkt: string;
  6285. /**
  6286. * A convenience spatial reference instance for Web Mercator.
  6287. *
  6288. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html#WebMercator)
  6289. */
  6290. static WebMercator: SpatialReference;
  6291. /**
  6292. * A convenience spatial reference instance for WGS84.
  6293. *
  6294. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html#WGS84)
  6295. */
  6296. static WGS84: SpatialReference;
  6297. /**
  6298. * Defines the spatial reference of a view, layer, or method parameters.
  6299. *
  6300. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html)
  6301. */
  6302. constructor(properties?: SpatialReferenceProperties);
  6303. /**
  6304. * Returns a deep clone of the spatial reference object.
  6305. *
  6306. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html#clone)
  6307. */
  6308. clone(): SpatialReference;
  6309. /**
  6310. * Checks if the specified spatial reference object has the same [wkid](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html#wkid) or [wkt](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html#wkt) as this spatial reference object.
  6311. *
  6312. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html#equals)
  6313. */
  6314. equals(spatialReference: SpatialReference): boolean;
  6315. static fromJSON(json: any): SpatialReference;
  6316. }
  6317. /** @deprecated Import the SpatialReference class instead. */
  6318. export type SpatialReferenceConstructor = typeof SpatialReference;
  6319. interface SpatialReferenceProperties {
  6320. /**
  6321. * An [image coordinate system](https://developers.arcgis.com/rest/services-reference/raster-ics.htm) defines the spatial reference used to display the image in its original coordinates without distortion, map transformations or ortho-rectification.
  6322. *
  6323. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html#imageCoordinateSystem)
  6324. */
  6325. imageCoordinateSystem?: any;
  6326. /**
  6327. * The well-known ID of a spatial reference.
  6328. *
  6329. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html#wkid)
  6330. */
  6331. wkid?: number;
  6332. /**
  6333. * The well-known text that defines a spatial reference.
  6334. *
  6335. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html#wkt)
  6336. */
  6337. wkt?: string;
  6338. }
  6339. /**
  6340. * This class performs geodetic computations for Earth and 70+ non-Earth spheroids.
  6341. *
  6342. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-geodesicUtils.html)
  6343. */
  6344. interface geodesicUtils {
  6345. /**
  6346. * Geodetically computes the area for one or more polygons.
  6347. *
  6348. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-geodesicUtils.html#geodesicAreas)
  6349. */
  6350. geodesicAreas(polygons: Polygon[], unit?: | "square-millimeters"
  6351. | "square-centimeters"
  6352. | "square-decimeters"
  6353. | "square-meters"
  6354. | "square-kilometers"
  6355. | "square-inches"
  6356. | "square-feet"
  6357. | "square-yards"
  6358. | "square-miles"
  6359. | "square-us-feet"
  6360. | "acres"
  6361. | "ares"
  6362. | "hectares"): number[];
  6363. /**
  6364. * Computes and returns a densified polyline or polygon.
  6365. *
  6366. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-geodesicUtils.html#geodesicDensify)
  6367. */
  6368. geodesicDensify(geometry: Polyline | Polygon, maxSegmentLength: number): Polyline | Polygon;
  6369. /**
  6370. * Geodetically computes the direction and distance between two known locations.
  6371. *
  6372. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-geodesicUtils.html#geodesicDistance)
  6373. */
  6374. geodesicDistance(from: Point, to: Point, unit?: | "millimeters"
  6375. | "centimeters"
  6376. | "decimeters"
  6377. | "meters"
  6378. | "kilometers"
  6379. | "inches"
  6380. | "feet"
  6381. | "yards"
  6382. | "miles"
  6383. | "nautical-miles"
  6384. | "us-feet"): GeodesicDistanceResult;
  6385. /**
  6386. * Geodetically computes polygon perimeter or polyline length for one or more geometries.
  6387. *
  6388. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-geodesicUtils.html#geodesicLengths)
  6389. */
  6390. geodesicLengths(geometries: Polyline[] | Polygon[], unit?: | "millimeters"
  6391. | "centimeters"
  6392. | "decimeters"
  6393. | "meters"
  6394. | "kilometers"
  6395. | "inches"
  6396. | "feet"
  6397. | "yards"
  6398. | "miles"
  6399. | "nautical-miles"
  6400. | "us-feet"): number[];
  6401. /**
  6402. * Geodetically computes the location at a defined distance and direction from a known location.
  6403. *
  6404. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-geodesicUtils.html#pointFromDistance)
  6405. */
  6406. pointFromDistance(point: Point, distance: number, azimuth: number): Point;
  6407. }
  6408. export const geodesicUtils: geodesicUtils;
  6409. /**
  6410. * Computed distance and direction between two known locations.
  6411. *
  6412. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-geodesicUtils.html#GeodesicDistanceResult)
  6413. */
  6414. export interface GeodesicDistanceResult {
  6415. /**
  6416. * The distance between the two locations.
  6417. *
  6418. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-geodesicUtils.html#GeodesicDistanceResult)
  6419. */
  6420. distance?: number;
  6421. /**
  6422. * The azimuth (or "bearing") in degrees.
  6423. *
  6424. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-geodesicUtils.html#GeodesicDistanceResult)
  6425. */
  6426. azimuth?: number;
  6427. /**
  6428. * The azimuth in degrees in the reverse direction.
  6429. *
  6430. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-geodesicUtils.html#GeodesicDistanceResult)
  6431. */
  6432. reverseAzimuth?: number;
  6433. }
  6434. export class GeographicTransformation {
  6435. /**
  6436. * Geographic transformation steps.
  6437. *
  6438. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-GeographicTransformation.html#steps)
  6439. */
  6440. steps: GeographicTransformationStep[];
  6441. constructor(properties?: any);
  6442. /**
  6443. * Returns the inverse of the geographic transformation calling this method or `null` if the transformation is not invertible.
  6444. *
  6445. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-GeographicTransformation.html#getInverse)
  6446. */
  6447. getInverse(): GeographicTransformation;
  6448. }
  6449. /** @deprecated Import the GeographicTransformation class instead. */
  6450. export type GeographicTransformationConstructor = typeof GeographicTransformation;
  6451. export class GeographicTransformationStep {
  6452. /**
  6453. * Indicates with the geographic transformation is inverted.
  6454. *
  6455. * @default false
  6456. *
  6457. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-GeographicTransformationStep.html#isInverse)
  6458. */
  6459. isInverse: boolean;
  6460. /**
  6461. * The well-known id (wkid) hat represents a known geographic transformation.
  6462. *
  6463. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-GeographicTransformationStep.html#wkid)
  6464. */
  6465. wkid: number;
  6466. /**
  6467. * The well-known text (wkt) that represents a known geographic transformation.
  6468. *
  6469. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-GeographicTransformationStep.html#wkt)
  6470. */
  6471. wkt: string;
  6472. constructor(properties?: any);
  6473. /**
  6474. * Gets the inverse of the geographic transformation step used to call this method or `null` if the transformation step is not invertible.
  6475. *
  6476. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-GeographicTransformationStep.html#getInverse)
  6477. */
  6478. getInverse(): GeographicTransformationStep;
  6479. }
  6480. /** @deprecated Import the GeographicTransformationStep class instead. */
  6481. export type GeographicTransformationStepConstructor = typeof GeographicTransformationStep;
  6482. /**
  6483. * Provides utility methods for working with ArcGIS JSON geometry objects.
  6484. *
  6485. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-jsonUtils.html)
  6486. */
  6487. interface jsonUtils {
  6488. /**
  6489. * Creates a new instance of an appropriate [Geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html) class and initializes it with values from a JSON object generated from an ArcGIS product.
  6490. *
  6491. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-jsonUtils.html#fromJSON)
  6492. */
  6493. fromJSON(json: any): Geometry;
  6494. /**
  6495. * Returns the type for a given geometry in the JSON format used by ArcGIS.
  6496. *
  6497. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-jsonUtils.html#getJsonType)
  6498. */
  6499. getJsonType(geometry: Geometry): string;
  6500. }
  6501. export const jsonUtils: jsonUtils;
  6502. export class MeshComponent extends Accessor {
  6503. /**
  6504. * A flat array of indices that refer to vertices in the [vertexAttributes](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#vertexAttributes) of the mesh to which the component belongs.
  6505. *
  6506. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshComponent.html#faces)
  6507. */
  6508. faces: Uint32Array;
  6509. /**
  6510. * The material determines how the component is visualized.
  6511. *
  6512. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshComponent.html#material)
  6513. */
  6514. material: MeshMaterial | MeshMaterialMetallicRoughness;
  6515. /**
  6516. * Specifies the type of normals used for lighting.
  6517. *
  6518. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshComponent.html#shading)
  6519. */
  6520. shading: "source" | "flat" | "smooth";
  6521. /**
  6522. * The MeshComponent class is used to apply one or more materials to a single [Mesh](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html).
  6523. *
  6524. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshComponent.html)
  6525. */
  6526. constructor(properties?: MeshComponentProperties);
  6527. /**
  6528. * Creates a deep clone.
  6529. *
  6530. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshComponent.html#clone)
  6531. */
  6532. clone(): MeshComponent;
  6533. }
  6534. /** @deprecated Import the MeshComponent class instead. */
  6535. export type MeshComponentConstructor = typeof MeshComponent;
  6536. interface MeshComponentProperties {
  6537. /**
  6538. * A flat array of indices that refer to vertices in the [vertexAttributes](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html#vertexAttributes) of the mesh to which the component belongs.
  6539. *
  6540. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshComponent.html#faces)
  6541. */
  6542. faces?: Uint32Array | number[] | Uint16Array;
  6543. /**
  6544. * The material determines how the component is visualized.
  6545. *
  6546. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshComponent.html#material)
  6547. */
  6548. material?: MeshMaterialProperties | MeshMaterialMetallicRoughnessProperties;
  6549. /**
  6550. * Specifies the type of normals used for lighting.
  6551. *
  6552. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshComponent.html#shading)
  6553. */
  6554. shading?: "source" | "flat" | "smooth";
  6555. }
  6556. export class MeshMaterial extends Accessor {
  6557. /**
  6558. * Specifies how transparency on the object is handled.
  6559. *
  6560. * @default 0.5
  6561. *
  6562. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterial.html#alphaCutoff)
  6563. */
  6564. alphaCutoff: number;
  6565. /**
  6566. * Specifies how transparency on the object is handled.
  6567. *
  6568. * @default "auto"
  6569. *
  6570. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterial.html#alphaMode)
  6571. */
  6572. alphaMode: "auto" | "blend" | "opaque" | "mask";
  6573. /**
  6574. * Specifies a single, uniform color for the mesh component.
  6575. *
  6576. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterial.html#color)
  6577. */
  6578. color: Color;
  6579. /**
  6580. * Specifies a texture from which to get color information.
  6581. *
  6582. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterial.html#colorTexture)
  6583. */
  6584. colorTexture: MeshTexture;
  6585. /**
  6586. * Specifies whether both sides of each triangle are displayed, or only the front sides.
  6587. *
  6588. * @default true
  6589. *
  6590. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterial.html#doubleSided)
  6591. */
  6592. doubleSided: boolean;
  6593. /**
  6594. * Specifies a texture from which to get normal information.
  6595. *
  6596. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterial.html#normalTexture)
  6597. */
  6598. normalTexture: MeshTexture;
  6599. /**
  6600. * The material determines how a [MeshComponent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshComponent.html) is visualized.
  6601. *
  6602. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterial.html)
  6603. */
  6604. constructor(properties?: MeshMaterialProperties);
  6605. }
  6606. /** @deprecated Import the MeshMaterial class instead. */
  6607. export type MeshMaterialConstructor = typeof MeshMaterial;
  6608. interface MeshMaterialProperties {
  6609. /**
  6610. * Specifies how transparency on the object is handled.
  6611. *
  6612. * @default 0.5
  6613. *
  6614. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterial.html#alphaCutoff)
  6615. */
  6616. alphaCutoff?: number;
  6617. /**
  6618. * Specifies how transparency on the object is handled.
  6619. *
  6620. * @default "auto"
  6621. *
  6622. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterial.html#alphaMode)
  6623. */
  6624. alphaMode?: "auto" | "blend" | "opaque" | "mask";
  6625. /**
  6626. * Specifies a single, uniform color for the mesh component.
  6627. *
  6628. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterial.html#color)
  6629. */
  6630. color?: Color | number[] | string;
  6631. /**
  6632. * Specifies a texture from which to get color information.
  6633. *
  6634. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterial.html#colorTexture)
  6635. */
  6636. colorTexture?: MeshTextureProperties | HTMLImageElement | HTMLCanvasElement | ImageData | string;
  6637. /**
  6638. * Specifies whether both sides of each triangle are displayed, or only the front sides.
  6639. *
  6640. * @default true
  6641. *
  6642. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterial.html#doubleSided)
  6643. */
  6644. doubleSided?: boolean;
  6645. /**
  6646. * Specifies a texture from which to get normal information.
  6647. *
  6648. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterial.html#normalTexture)
  6649. */
  6650. normalTexture?: MeshTextureProperties | HTMLImageElement | HTMLCanvasElement | ImageData | string;
  6651. }
  6652. export class MeshMaterialMetallicRoughness extends MeshMaterial {
  6653. /**
  6654. * Specifies a single, uniform emissive color for the [MeshComponent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshComponent.html).
  6655. *
  6656. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterialMetallicRoughness.html#emissiveColor)
  6657. */
  6658. emissiveColor: Color;
  6659. /**
  6660. * Specifies a texture from which to get emissive color information.
  6661. *
  6662. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterialMetallicRoughness.html#emissiveTexture)
  6663. */
  6664. emissiveTexture: MeshTexture;
  6665. /**
  6666. * Specifies how much the material behaves like a metal.
  6667. *
  6668. * @default 1
  6669. *
  6670. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterialMetallicRoughness.html#metallic)
  6671. */
  6672. metallic: number;
  6673. /**
  6674. * Specifies a texture from which to get the combined metallic/roughness information.
  6675. *
  6676. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterialMetallicRoughness.html#metallicRoughnessTexture)
  6677. */
  6678. metallicRoughnessTexture: MeshTexture;
  6679. /**
  6680. * Allows to specify a texture to get the occlusion information from.
  6681. *
  6682. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterialMetallicRoughness.html#occlusionTexture)
  6683. */
  6684. occlusionTexture: MeshTexture;
  6685. /**
  6686. * Indicates how rough the surface of the material is.
  6687. *
  6688. * @default 1
  6689. *
  6690. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterialMetallicRoughness.html#roughness)
  6691. */
  6692. roughness: number;
  6693. /**
  6694. * A material determines how a [MeshComponent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshComponent.html) is visualized.
  6695. *
  6696. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterialMetallicRoughness.html)
  6697. */
  6698. constructor(properties?: MeshMaterialMetallicRoughnessProperties);
  6699. }
  6700. /** @deprecated Import the MeshMaterialMetallicRoughness class instead. */
  6701. export type MeshMaterialMetallicRoughnessConstructor = typeof MeshMaterialMetallicRoughness;
  6702. interface MeshMaterialMetallicRoughnessProperties extends MeshMaterialProperties {
  6703. /**
  6704. * Specifies a single, uniform emissive color for the [MeshComponent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshComponent.html).
  6705. *
  6706. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterialMetallicRoughness.html#emissiveColor)
  6707. */
  6708. emissiveColor?: Color | number[] | string;
  6709. /**
  6710. * Specifies a texture from which to get emissive color information.
  6711. *
  6712. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterialMetallicRoughness.html#emissiveTexture)
  6713. */
  6714. emissiveTexture?: MeshTextureProperties | HTMLImageElement | HTMLCanvasElement | ImageData | string;
  6715. /**
  6716. * Specifies how much the material behaves like a metal.
  6717. *
  6718. * @default 1
  6719. *
  6720. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterialMetallicRoughness.html#metallic)
  6721. */
  6722. metallic?: number;
  6723. /**
  6724. * Specifies a texture from which to get the combined metallic/roughness information.
  6725. *
  6726. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterialMetallicRoughness.html#metallicRoughnessTexture)
  6727. */
  6728. metallicRoughnessTexture?: MeshTextureProperties | HTMLImageElement | HTMLCanvasElement | ImageData | string;
  6729. /**
  6730. * Allows to specify a texture to get the occlusion information from.
  6731. *
  6732. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterialMetallicRoughness.html#occlusionTexture)
  6733. */
  6734. occlusionTexture?: MeshTextureProperties | HTMLImageElement | HTMLCanvasElement | ImageData | string;
  6735. /**
  6736. * Indicates how rough the surface of the material is.
  6737. *
  6738. * @default 1
  6739. *
  6740. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterialMetallicRoughness.html#roughness)
  6741. */
  6742. roughness?: number;
  6743. }
  6744. export class MeshTexture extends Accessor {
  6745. /**
  6746. * A direct reference to the image or video data.
  6747. *
  6748. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshTexture.html#data)
  6749. */
  6750. data: HTMLImageElement | HTMLCanvasElement | any | ImageData;
  6751. /**
  6752. * Indicates whether the image data should be interpreted as being semi-transparent.
  6753. *
  6754. * @default undefined
  6755. *
  6756. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshTexture.html#transparent)
  6757. */
  6758. transparent: boolean;
  6759. /**
  6760. * The url to the image resource.
  6761. *
  6762. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshTexture.html#url)
  6763. */
  6764. url: string;
  6765. /**
  6766. * Specifies how uv coordinates outside the [0, 1] range are handled.
  6767. *
  6768. * @default "repeat"
  6769. *
  6770. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshTexture.html#wrap)
  6771. */
  6772. wrap: "clamp" | "repeat" | "mirror" | SeparableWrapModes;
  6773. /**
  6774. * MeshTexture represents image data to be used for [MeshMaterial](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterial.html) or [MeshMaterialMetallicRoughness](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshMaterialMetallicRoughness.html).
  6775. *
  6776. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshTexture.html)
  6777. */
  6778. constructor(properties?: MeshTextureProperties);
  6779. /**
  6780. * Creates a deep clone.
  6781. *
  6782. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshTexture.html#clone)
  6783. */
  6784. clone(): MeshTexture;
  6785. }
  6786. /** @deprecated Import the MeshTexture class instead. */
  6787. export type MeshTextureConstructor = typeof MeshTexture;
  6788. interface MeshTextureProperties {
  6789. /**
  6790. * A direct reference to the image or video data.
  6791. *
  6792. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshTexture.html#data)
  6793. */
  6794. data?: HTMLImageElement | HTMLCanvasElement | any | ImageData;
  6795. /**
  6796. * Indicates whether the image data should be interpreted as being semi-transparent.
  6797. *
  6798. * @default undefined
  6799. *
  6800. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshTexture.html#transparent)
  6801. */
  6802. transparent?: boolean;
  6803. /**
  6804. * The url to the image resource.
  6805. *
  6806. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshTexture.html#url)
  6807. */
  6808. url?: string;
  6809. /**
  6810. * Specifies how uv coordinates outside the [0, 1] range are handled.
  6811. *
  6812. * @default "repeat"
  6813. *
  6814. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshTexture.html#wrap)
  6815. */
  6816. wrap?: "clamp" | "repeat" | "mirror" | SeparableWrapModes;
  6817. }
  6818. /**
  6819. * A separable wrap configuration for horizontal and vertical wrapping modes.
  6820. *
  6821. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshTexture.html#SeparableWrapModes)
  6822. */
  6823. export interface SeparableWrapModes {
  6824. /**
  6825. * Horizontal wrapping mode.
  6826. *
  6827. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshTexture.html#SeparableWrapModes)
  6828. */
  6829. horizontal: "clamp" | "repeat" | "mirror";
  6830. /**
  6831. * Vertical wrapping mode.
  6832. *
  6833. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-MeshTexture.html#SeparableWrapModes)
  6834. */
  6835. vertical: "clamp" | "repeat" | "mirror";
  6836. }
  6837. /**
  6838. * Various utilities and convenience functions for working with [Mesh](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Mesh.html) objects.
  6839. *
  6840. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-meshUtils.html)
  6841. */
  6842. interface meshUtils {
  6843. /**
  6844. * Creates an elevation sampler from a mesh.
  6845. *
  6846. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-meshUtils.html#createElevationSampler)
  6847. */
  6848. createElevationSampler(mesh: Mesh, options?: meshUtilsCreateElevationSamplerOptions): Promise<ElevationSampler>;
  6849. /**
  6850. * Creates a mesh geometry by sampling elevation data from an elevation service on a regular grid.
  6851. *
  6852. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-meshUtils.html#createFromElevation)
  6853. */
  6854. createFromElevation(source: ElevationLayer | Ground | ElevationSampler, extent: Extent, options?: meshUtilsCreateFromElevationOptions): Promise<Mesh>;
  6855. /**
  6856. * Georeferences vertices specified in a Cartesian coordinate system.
  6857. *
  6858. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-meshUtils.html#georeference)
  6859. */
  6860. georeference(vertexAttributes: VertexAttributes, location: Point, options?: meshUtilsGeoreferenceOptions): VertexAttributes;
  6861. /**
  6862. * Merges multiple meshes into a single mesh.
  6863. *
  6864. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-meshUtils.html#merge)
  6865. */
  6866. merge(geometries: Mesh[]): Mesh;
  6867. /**
  6868. * Projects georeferenced vertices to a Cartesian coordinate system.
  6869. *
  6870. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-meshUtils.html#ungeoreference)
  6871. */
  6872. ungeoreference(vertexAttributes: VertexAttributes, location: Point, options?: meshUtilsUngeoreferenceOptions): VertexAttributes;
  6873. }
  6874. export const meshUtils: meshUtils;
  6875. export interface meshUtilsCreateElevationSamplerOptions {
  6876. /**
  6877. * The value to use when there is no data available.
  6878. *
  6879. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-meshUtils.html#createElevationSampler)
  6880. */
  6881. noDataValue?: number;
  6882. }
  6883. export interface meshUtilsCreateFromElevationOptions {
  6884. /**
  6885. * Controls the horizontal resolution (cell size) in meters from which elevation data is sampled (defaults to `auto`).
  6886. *
  6887. * @default auto
  6888. *
  6889. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-meshUtils.html#createFromElevation)
  6890. */
  6891. demResolution?: number | string;
  6892. /**
  6893. * Signal object that can be used to abort the asynchronous task.
  6894. *
  6895. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-meshUtils.html#createFromElevation)
  6896. */
  6897. signal?: AbortSignal;
  6898. }
  6899. export interface meshUtilsGeoreferenceOptions {
  6900. /**
  6901. * Indicates whether to georeference relative to the globe or the projected coordinate system.
  6902. *
  6903. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-meshUtils.html#georeference)
  6904. */
  6905. geographic?: boolean;
  6906. /**
  6907. * Indicates the unit of the source data.
  6908. *
  6909. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-meshUtils.html#georeference)
  6910. */
  6911. unit?: | "millimeters"
  6912. | "centimeters"
  6913. | "decimeters"
  6914. | "meters"
  6915. | "kilometers"
  6916. | "inches"
  6917. | "feet"
  6918. | "yards"
  6919. | "miles"
  6920. | "nautical-miles"
  6921. | "us-feet";
  6922. }
  6923. export interface meshUtilsUngeoreferenceOptions {
  6924. /**
  6925. * Indicates whether the coordinates are georeferenced relative to the globe or the projected coordinate system.
  6926. *
  6927. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-meshUtils.html#ungeoreference)
  6928. */
  6929. geographic?: boolean;
  6930. /**
  6931. * Indicates the unit of the resulting data.
  6932. *
  6933. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-meshUtils.html#ungeoreference)
  6934. */
  6935. unit?: | "millimeters"
  6936. | "centimeters"
  6937. | "decimeters"
  6938. | "meters"
  6939. | "kilometers"
  6940. | "inches"
  6941. | "feet"
  6942. | "yards"
  6943. | "miles"
  6944. | "nautical-miles"
  6945. | "us-feet";
  6946. }
  6947. /**
  6948. * Represents the position and normal vertex attribute buffers of a mesh.
  6949. *
  6950. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-meshUtils.html#VertexAttributes)
  6951. */
  6952. export interface VertexAttributes {
  6953. /**
  6954. * The position buffer.
  6955. *
  6956. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-meshUtils.html#VertexAttributes)
  6957. */
  6958. position: Float64Array;
  6959. /**
  6960. * The normal buffer.
  6961. *
  6962. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-meshUtils.html#VertexAttributes)
  6963. */
  6964. normal?: Float32Array;
  6965. /**
  6966. * The tangent buffer.
  6967. *
  6968. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-meshUtils.html#VertexAttributes)
  6969. */
  6970. tangent?: Float32Array;
  6971. }
  6972. /**
  6973. * Provides a utility method that normalizes geometries that intersect the central meridian or fall outside the world extent so they stay within the coordinate system of the view.
  6974. *
  6975. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-normalizeUtils.html)
  6976. */
  6977. interface normalizeUtils {
  6978. /**
  6979. * Returns an [extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) over the dateline that is smaller than the normalized width if it visually contains the geometry.
  6980. *
  6981. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-normalizeUtils.html#getDenormalizedExtent)
  6982. */
  6983. getDenormalizedExtent(geometry: Geometry): Extent;
  6984. /**
  6985. * Normalizes geometries that intersect the central meridian or fall outside the world extent so they stay within the coordinate system of the view.
  6986. *
  6987. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-normalizeUtils.html#normalizeCentralMeridian)
  6988. */
  6989. normalizeCentralMeridian(geometries: Geometry[], url?: string, requestOptions?: any): Promise<Geometry[]>;
  6990. }
  6991. export const normalizeUtils: normalizeUtils;
  6992. /**
  6993. * Converts Web Mercator coordinates to geographic coordinates and vice versa.
  6994. *
  6995. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-webMercatorUtils.html)
  6996. */
  6997. interface webMercatorUtils {
  6998. /**
  6999. * Returns `true` if the `source` spatial reference can be projected to the `target` spatial reference with the [project()](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-webMercatorUtils.html#project) function, or if the `source` and `target` are the same [SpatialReference](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html).
  7000. *
  7001. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-webMercatorUtils.html#canProject)
  7002. */
  7003. canProject(source: SpatialReference | any, target: SpatialReference | any): boolean;
  7004. /**
  7005. * Converts a geometry from geographic units (wkid: 4326) to Web Mercator units (wkid: 3857).
  7006. *
  7007. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-webMercatorUtils.html#geographicToWebMercator)
  7008. */
  7009. geographicToWebMercator(geometry: Geometry): Geometry;
  7010. /**
  7011. * Translates the given latitude and longitude (decimal degree) values to Web Mercator XY values.
  7012. *
  7013. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-webMercatorUtils.html#lngLatToXY)
  7014. */
  7015. lngLatToXY(long: number, lat: number): number[];
  7016. /**
  7017. * Projects the geometry clientside (if possible).
  7018. *
  7019. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-webMercatorUtils.html#project)
  7020. */
  7021. project(geometry: Geometry, spatialReference: SpatialReference | any): Geometry;
  7022. /**
  7023. * Converts a geometry from Web Mercator units (wkid: 3857) to geographic units (wkid: 4326).
  7024. *
  7025. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-webMercatorUtils.html#webMercatorToGeographic)
  7026. */
  7027. webMercatorToGeographic(geometry: Geometry, isLinear?: boolean): Geometry;
  7028. /**
  7029. * Translates the given Web Mercator coordinates to Longitude and Latitude values (decimal degrees).
  7030. *
  7031. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-webMercatorUtils.html#xyToLngLat)
  7032. */
  7033. xyToLngLat(x: number, y: number): number[];
  7034. }
  7035. export const webMercatorUtils: webMercatorUtils;
  7036. /**
  7037. * Extent.
  7038. *
  7039. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry.html#Extent)
  7040. */
  7041. export type geometryExtent = Extent;
  7042. /**
  7043. * Geometry types.
  7044. *
  7045. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry.html#Geometry)
  7046. */
  7047. export type geometryGeometry = Extent | Multipoint | Point | Polygon | Polyline | Mesh;
  7048. /**
  7049. * Mesh.
  7050. *
  7051. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry.html#Mesh)
  7052. */
  7053. export type geometryMesh = Mesh;
  7054. /**
  7055. * Multipoint.
  7056. *
  7057. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry.html#Multipoint)
  7058. */
  7059. export type geometryMultipoint = Multipoint;
  7060. /**
  7061. * Point.
  7062. *
  7063. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry.html#Point)
  7064. */
  7065. export type geometryPoint = Point;
  7066. /**
  7067. * Polygon.
  7068. *
  7069. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry.html#Polygon)
  7070. */
  7071. export type geometryPolygon = Polygon;
  7072. /**
  7073. * Polyline.
  7074. *
  7075. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry.html#Polyline)
  7076. */
  7077. export type geometryPolyline = Polyline;
  7078. /**
  7079. * Spatial Reference.
  7080. *
  7081. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry.html#SpatialReference)
  7082. */
  7083. export type geometrySpatialReference = SpatialReference;
  7084. export interface Graphic extends Accessor, JSONSupport {
  7085. }
  7086. export class Graphic {
  7087. /**
  7088. * The aggregateGeometries contains spatial aggregation geometries when [statistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-StatisticDefinition.html#statisticType) query is executed with `envelope-aggregate`, `centroid-aggregate` and/or `convex-hull-aggregate` statistics type.
  7089. *
  7090. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#aggregateGeometries)
  7091. */
  7092. aggregateGeometries: any;
  7093. /**
  7094. * Name-value pairs of fields and field values associated with the graphic.
  7095. *
  7096. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#attributes)
  7097. */
  7098. attributes: any;
  7099. /**
  7100. * The geometry that defines the graphic's location.
  7101. *
  7102. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#geometry)
  7103. */
  7104. geometry: Geometry;
  7105. /**
  7106. * Indicates whether the graphic refers to an aggregate, or [cluster](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html) graphic.
  7107. *
  7108. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#isAggregate)
  7109. */
  7110. readonly isAggregate: boolean;
  7111. /**
  7112. * If applicable, references the layer in which the graphic is stored.
  7113. *
  7114. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#layer)
  7115. */
  7116. layer: Layer;
  7117. /**
  7118. * The template for displaying content in a [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html) when the graphic is selected.
  7119. *
  7120. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#popupTemplate)
  7121. */
  7122. popupTemplate: PopupTemplate;
  7123. /**
  7124. * The [Symbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol.html) for the graphic.
  7125. *
  7126. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#symbol)
  7127. */
  7128. symbol: Symbol;
  7129. /**
  7130. * Indicates the visibility of the graphic.
  7131. *
  7132. * @default true
  7133. *
  7134. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#visible)
  7135. */
  7136. visible: boolean;
  7137. /**
  7138. * A Graphic is a vector representation of real world geographic phenomena.
  7139. *
  7140. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html)
  7141. */
  7142. constructor(properties?: GraphicProperties);
  7143. /**
  7144. * Creates a deep clone of this object.
  7145. *
  7146. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#clone)
  7147. */
  7148. clone(): this;
  7149. /**
  7150. * Returns the value of the specified attribute.
  7151. *
  7152. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#getAttribute)
  7153. */
  7154. getAttribute(name: string): any;
  7155. /**
  7156. * Returns the popup template applicable for the graphic.
  7157. *
  7158. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#getEffectivePopupTemplate)
  7159. */
  7160. getEffectivePopupTemplate(defaultPopupTemplateEnabled?: boolean): PopupTemplate;
  7161. /**
  7162. * Returns the Object ID of the feature associated with the graphic, if it exists.
  7163. *
  7164. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#getObjectId)
  7165. */
  7166. getObjectId(): number;
  7167. /**
  7168. * Sets a new value to the specified attribute.
  7169. *
  7170. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#setAttribute)
  7171. */
  7172. setAttribute(name: string, newValue: any): void;
  7173. static fromJSON(json: any): Graphic;
  7174. }
  7175. /** @deprecated Import the Graphic class instead. */
  7176. export type GraphicConstructor = typeof Graphic;
  7177. interface GraphicProperties {
  7178. /**
  7179. * The aggregateGeometries contains spatial aggregation geometries when [statistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-StatisticDefinition.html#statisticType) query is executed with `envelope-aggregate`, `centroid-aggregate` and/or `convex-hull-aggregate` statistics type.
  7180. *
  7181. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#aggregateGeometries)
  7182. */
  7183. aggregateGeometries?: any;
  7184. /**
  7185. * Name-value pairs of fields and field values associated with the graphic.
  7186. *
  7187. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#attributes)
  7188. */
  7189. attributes?: any;
  7190. /**
  7191. * The geometry that defines the graphic's location.
  7192. *
  7193. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#geometry)
  7194. */
  7195. geometry?: GeometryProperties;
  7196. /**
  7197. * If applicable, references the layer in which the graphic is stored.
  7198. *
  7199. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#layer)
  7200. */
  7201. layer?: LayerProperties;
  7202. /**
  7203. * The template for displaying content in a [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html) when the graphic is selected.
  7204. *
  7205. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#popupTemplate)
  7206. */
  7207. popupTemplate?: PopupTemplateProperties;
  7208. /**
  7209. * The [Symbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol.html) for the graphic.
  7210. *
  7211. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#symbol)
  7212. */
  7213. symbol?: SymbolProperties;
  7214. /**
  7215. * Indicates the visibility of the graphic.
  7216. *
  7217. * @default true
  7218. *
  7219. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#visible)
  7220. */
  7221. visible?: boolean;
  7222. }
  7223. export interface Ground extends Accessor, Loadable, JSONSupport {
  7224. }
  7225. export class Ground {
  7226. /**
  7227. * A collection of [ElevationLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html) that define the elevation or terrain that makes up the ground surface.
  7228. *
  7229. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#layers)
  7230. */
  7231. layers: Collection<ElevationLayer>;
  7232. /**
  7233. * Indicates whether the instance has loaded.
  7234. *
  7235. * @default false
  7236. *
  7237. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#loaded)
  7238. */
  7239. readonly loaded: boolean;
  7240. /**
  7241. * Specifies the user navigation constraints relative to the ground surface.
  7242. *
  7243. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#navigationConstraint)
  7244. */
  7245. navigationConstraint: GroundNavigationConstraint;
  7246. /**
  7247. * Opacity of the ground, including surface default color and the basemap (without reference layers).
  7248. *
  7249. * @default 1
  7250. *
  7251. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#opacity)
  7252. */
  7253. opacity: number;
  7254. /**
  7255. * The color of the ground surface, displayed underneath the basemap.
  7256. *
  7257. * @default null
  7258. *
  7259. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#surfaceColor)
  7260. */
  7261. surfaceColor: Color;
  7262. /**
  7263. * The Ground class contains properties that specify how the ground surface is displayed in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  7264. *
  7265. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html)
  7266. */
  7267. constructor(properties?: GroundProperties);
  7268. /**
  7269. * Creates a deep clone of this object.
  7270. *
  7271. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#clone)
  7272. */
  7273. clone(): Ground;
  7274. /**
  7275. * Creates an elevation sampler for the given extent by querying the ground layers for elevation data and caching it so values may be sampled quickly afterwards.
  7276. *
  7277. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#createElevationSampler)
  7278. */
  7279. createElevationSampler(extent: Extent, options?: GroundCreateElevationSamplerOptions): Promise<ElevationSampler>;
  7280. /**
  7281. * Destroys the ground and its [layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#layers).
  7282. *
  7283. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#destroy)
  7284. */
  7285. destroy(): void;
  7286. /**
  7287. * Loads all the externally loadable resources associated with the ground.
  7288. *
  7289. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#loadAll)
  7290. */
  7291. loadAll(): Promise<Ground>;
  7292. /**
  7293. * Query the ground layer services for elevation values for the given geometry.
  7294. *
  7295. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#queryElevation)
  7296. */
  7297. queryElevation(geometry: Point | Multipoint | Polyline, options?: GroundQueryElevationOptions): Promise<ElevationQueryResult>;
  7298. static fromJSON(json: any): Ground;
  7299. }
  7300. /** @deprecated Import the Ground class instead. */
  7301. export type GroundConstructor = typeof Ground;
  7302. interface GroundProperties extends LoadableProperties {
  7303. /**
  7304. * A collection of [ElevationLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html) that define the elevation or terrain that makes up the ground surface.
  7305. *
  7306. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#layers)
  7307. */
  7308. layers?: CollectionProperties<ElevationLayerProperties>;
  7309. /**
  7310. * Specifies the user navigation constraints relative to the ground surface.
  7311. *
  7312. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#navigationConstraint)
  7313. */
  7314. navigationConstraint?: GroundNavigationConstraintProperties;
  7315. /**
  7316. * Opacity of the ground, including surface default color and the basemap (without reference layers).
  7317. *
  7318. * @default 1
  7319. *
  7320. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#opacity)
  7321. */
  7322. opacity?: number;
  7323. /**
  7324. * The color of the ground surface, displayed underneath the basemap.
  7325. *
  7326. * @default null
  7327. *
  7328. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#surfaceColor)
  7329. */
  7330. surfaceColor?: Color | number[] | string;
  7331. }
  7332. /**
  7333. * Object returned when [queryElevation()](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#queryElevation) promise resolves:
  7334. *
  7335. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#ElevationQueryResult)
  7336. */
  7337. export interface ElevationQueryResult {
  7338. /**
  7339. * The geometry with sampled z-values.
  7340. *
  7341. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#ElevationQueryResult)
  7342. */
  7343. geometry: Point | Multipoint | Polyline;
  7344. /**
  7345. * Contains additional information about how the geometry was sampled.
  7346. *
  7347. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#ElevationQueryResult)
  7348. */
  7349. sampleInfo?: ElevationQueryResultSampleInfo[];
  7350. /**
  7351. * The value used when there is no data available.
  7352. *
  7353. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#ElevationQueryResult)
  7354. */
  7355. noDataValue: number;
  7356. }
  7357. export interface GroundCreateElevationSamplerOptions {
  7358. /**
  7359. * Controls the horizontal resolution (cell size) in meters from which elevation data is sampled (defaults to `auto`).
  7360. *
  7361. * @default auto
  7362. *
  7363. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#createElevationSampler)
  7364. */
  7365. demResolution?: number | string;
  7366. /**
  7367. * The value to use when there is no data available.
  7368. *
  7369. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#createElevationSampler)
  7370. */
  7371. noDataValue?: number;
  7372. /**
  7373. * An [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) to abort the request.
  7374. *
  7375. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#createElevationSampler)
  7376. */
  7377. signal?: AbortSignal;
  7378. }
  7379. export interface GroundNavigationConstraintProperties {
  7380. /**
  7381. * The type of the constraint.
  7382. *
  7383. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#navigationConstraint)
  7384. */
  7385. type?: "stay-above" | "none";
  7386. }
  7387. export interface GroundNavigationConstraint extends AnonymousAccessor {
  7388. /**
  7389. * The type of the constraint.
  7390. *
  7391. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#navigationConstraint)
  7392. */
  7393. type: "stay-above" | "none";
  7394. }
  7395. export interface GroundQueryElevationOptions {
  7396. /**
  7397. * Controls the horizontal resolution (cell size) in meters from which elevation data is sampled (defaults to `auto`).
  7398. *
  7399. * @default auto
  7400. *
  7401. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#queryElevation)
  7402. */
  7403. demResolution?: number | string;
  7404. /**
  7405. * Indicates whether to return additional sample information for each sampled coordinate.
  7406. *
  7407. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#queryElevation)
  7408. */
  7409. returnSampleInfo?: boolean;
  7410. /**
  7411. * The value that appears in the resulting geometry when there is no data available.
  7412. *
  7413. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#queryElevation)
  7414. */
  7415. noDataValue?: number;
  7416. /**
  7417. * An [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) to abort the request.
  7418. *
  7419. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#queryElevation)
  7420. */
  7421. signal?: AbortSignal;
  7422. }
  7423. export interface ElevationQueryResultSampleInfo {
  7424. /**
  7425. * The resolution at which the z-value was sampled.
  7426. *
  7427. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#ElevationQueryResult)
  7428. */
  7429. demResolution: number;
  7430. /**
  7431. * The elevation source from which the data for the corresponding coordinate was sampled.
  7432. *
  7433. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#ElevationQueryResult)
  7434. */
  7435. source: ElevationLayer;
  7436. }
  7437. export interface Credential extends Accessor, Evented {
  7438. }
  7439. export class Credential {
  7440. /**
  7441. * Token expiration time specified as number of milliseconds since 1 January 1970 00:00:00 UTC.
  7442. *
  7443. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-Credential.html#expires)
  7444. */
  7445. expires: number;
  7446. /**
  7447. * Indicates that this credential was created to access the [ArcGIS REST Admin service](https://developers.arcgis.com/rest/services-reference/enterprise/rest-api-admin.htm).
  7448. *
  7449. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-Credential.html#isAdmin)
  7450. */
  7451. isAdmin: boolean;
  7452. /**
  7453. * The Identity Manager's [setOAuthRedirectionHandler](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#setOAuthRedirectionHandler) returns an object that contains a `state` property.
  7454. *
  7455. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-Credential.html#oAuthState)
  7456. */
  7457. oAuthState: any;
  7458. /**
  7459. * The server url.
  7460. *
  7461. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-Credential.html#server)
  7462. */
  7463. server: string;
  7464. /**
  7465. * Indicates whether the resources accessed using this credential should be fetched over HTTPS protocol.
  7466. *
  7467. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-Credential.html#ssl)
  7468. */
  7469. ssl: boolean;
  7470. /**
  7471. * Token generated by the token service using the specified userId and password.
  7472. *
  7473. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-Credential.html#token)
  7474. */
  7475. token: string;
  7476. /**
  7477. * User associated with the Credential object.
  7478. *
  7479. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-Credential.html#userId)
  7480. */
  7481. userId: string;
  7482. constructor(properties?: CredentialProperties);
  7483. /**
  7484. * Destroys the credential.
  7485. *
  7486. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-Credential.html#destroy)
  7487. */
  7488. destroy(): void;
  7489. /**
  7490. * Generates a new token and updates the Credential's [token](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-Credential.html#token) property with the newly acquired token.
  7491. *
  7492. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-Credential.html#refreshToken)
  7493. */
  7494. refreshToken(): void;
  7495. on(name: "token-change", eventHandler: CredentialTokenChangeEventHandler): IHandle;
  7496. on(name: "destroy", eventHandler: CredentialDestroyEventHandler): IHandle;
  7497. }
  7498. /** @deprecated Import the Credential class instead. */
  7499. export type CredentialConstructor = typeof Credential;
  7500. interface CredentialProperties {
  7501. /**
  7502. * Token expiration time specified as number of milliseconds since 1 January 1970 00:00:00 UTC.
  7503. *
  7504. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-Credential.html#expires)
  7505. */
  7506. expires?: number;
  7507. /**
  7508. * Indicates that this credential was created to access the [ArcGIS REST Admin service](https://developers.arcgis.com/rest/services-reference/enterprise/rest-api-admin.htm).
  7509. *
  7510. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-Credential.html#isAdmin)
  7511. */
  7512. isAdmin?: boolean;
  7513. /**
  7514. * The Identity Manager's [setOAuthRedirectionHandler](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#setOAuthRedirectionHandler) returns an object that contains a `state` property.
  7515. *
  7516. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-Credential.html#oAuthState)
  7517. */
  7518. oAuthState?: any;
  7519. /**
  7520. * The server url.
  7521. *
  7522. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-Credential.html#server)
  7523. */
  7524. server?: string;
  7525. /**
  7526. * Indicates whether the resources accessed using this credential should be fetched over HTTPS protocol.
  7527. *
  7528. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-Credential.html#ssl)
  7529. */
  7530. ssl?: boolean;
  7531. /**
  7532. * Token generated by the token service using the specified userId and password.
  7533. *
  7534. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-Credential.html#token)
  7535. */
  7536. token?: string;
  7537. /**
  7538. * User associated with the Credential object.
  7539. *
  7540. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-Credential.html#userId)
  7541. */
  7542. userId?: string;
  7543. }
  7544. export interface CredentialDestroyEvent {
  7545. }
  7546. export interface CredentialTokenChangeEvent {
  7547. }
  7548. export class IdentityManager extends Evented {
  7549. /**
  7550. * Dialog box widget used to challenge the user for their credentials when the application attempts to access a secure resource.
  7551. *
  7552. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#dialog)
  7553. */
  7554. dialog: Widget;
  7555. /**
  7556. * The suggested lifetime of the token in minutes.
  7557. *
  7558. * @default 60
  7559. *
  7560. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#tokenValidity)
  7561. */
  7562. tokenValidity: number;
  7563. /**
  7564. * Returns a [credential](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-Credential.html) if the user has already signed in to access the given resource and is allowed to do so when using the given application id.
  7565. *
  7566. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#checkAppAccess)
  7567. */
  7568. checkAppAccess(resUrl: string, appId: string): Promise<any>;
  7569. /**
  7570. * Returns the [Credential](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-Credential.html) if the user has already signed in to access the given resource.
  7571. *
  7572. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#checkSignInStatus)
  7573. */
  7574. checkSignInStatus(resUrl: string): Promise<Credential>;
  7575. /**
  7576. * Destroys all credentials.
  7577. *
  7578. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#destroyCredentials)
  7579. */
  7580. destroyCredentials(): void;
  7581. /**
  7582. * Disables the use of `window.postMessage` to serve authentication requests that were enabled by [enablePostMessageAuth](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#enablePostMessageAuth).
  7583. *
  7584. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#disablePostMessageAuth)
  7585. */
  7586. disablePostMessageAuth(): void;
  7587. /**
  7588. * Enables the IdentityManager to serve authentication requests for the given resource from apps running in child iframes.
  7589. *
  7590. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#enablePostMessageAuth)
  7591. */
  7592. enablePostMessageAuth(resUrl?: string): void;
  7593. /**
  7594. * Returns the [Credential](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-Credential.html) for the resource identified by the specified url.
  7595. *
  7596. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#findCredential)
  7597. */
  7598. findCredential(url: string, userId?: string): Credential;
  7599. /**
  7600. * Returns the [OAuthInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html) configuration for the passed in Portal server URL.
  7601. *
  7602. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#findOAuthInfo)
  7603. */
  7604. findOAuthInfo(url: string): OAuthInfo;
  7605. /**
  7606. * Returns information about the server that is hosting the specified URL.
  7607. *
  7608. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#findServerInfo)
  7609. */
  7610. findServerInfo(url: string): ServerInfo;
  7611. /**
  7612. * Returns an object containing a token and its expiration time.
  7613. *
  7614. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#generateToken)
  7615. */
  7616. generateToken(serverInfo: ServerInfo, userInfo: any, options?: IdentityManagerGenerateTokenOptions): Promise<any>;
  7617. /**
  7618. * Returns a [Credential](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-Credential.html) object that can be used to access the secured resource identified by the input URL.
  7619. *
  7620. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#getCredential)
  7621. */
  7622. getCredential(url: string, options?: IdentityManagerGetCredentialOptions): Promise<Credential>;
  7623. /**
  7624. * Call this method during application initialization with the JSON previously obtained from the [toJSON()](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#toJSON) method used to re-hydrate the state of IdentityManager.
  7625. *
  7626. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#initialize)
  7627. */
  7628. initialize(json: any): void;
  7629. /**
  7630. * Indicates if the IdentityManager is busy accepting user input.
  7631. *
  7632. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#isBusy)
  7633. */
  7634. isBusy(): boolean;
  7635. /**
  7636. * Registers OAuth 2.0 configurations.
  7637. *
  7638. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#registerOAuthInfos)
  7639. */
  7640. registerOAuthInfos(oAuthInfos: OAuthInfo[]): void;
  7641. /**
  7642. * Register secure servers and the token endpoints.
  7643. *
  7644. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#registerServers)
  7645. */
  7646. registerServers(serverInfos: ServerInfo[]): void;
  7647. /**
  7648. * Registers the given OAuth 2.0 access token or ArcGIS Server token with the IdentityManager.
  7649. *
  7650. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#registerToken)
  7651. */
  7652. registerToken(properties: IdentityManagerRegisterTokenProperties): void;
  7653. /**
  7654. * Once a user successfully logs in, they are redirected back to the application.
  7655. *
  7656. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#setOAuthRedirectionHandler)
  7657. */
  7658. setOAuthRedirectionHandler(handlerFunction: HandlerCallback): void;
  7659. /**
  7660. * Use this method in the popup callback page to pass the token and other values back to the IdentityManager.
  7661. *
  7662. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#setOAuthResponseHash)
  7663. */
  7664. setOAuthResponseHash(hash: string): void;
  7665. /**
  7666. * When accessing secured resources, the IdentityManager may prompt for username and password and send them to the server using a secure connection.
  7667. *
  7668. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#setProtocolErrorHandler)
  7669. */
  7670. setProtocolErrorHandler(handlerFunction: IdentityManagerSetProtocolErrorHandlerHandlerFunction): void;
  7671. /**
  7672. * Return properties of this object in JSON format.
  7673. *
  7674. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#toJSON)
  7675. */
  7676. toJSON(): any;
  7677. on(name: "dialog-create", eventHandler: IdentityManagerDialogCreateEventHandler): IHandle;
  7678. on(name: "credential-create", eventHandler: IdentityManagerCredentialCreateEventHandler): IHandle;
  7679. }
  7680. /** @deprecated Import the IdentityManager class instead. */
  7681. export type IdentityManagerConstructor = typeof IdentityManager;
  7682. export interface IdentityManagerCredentialCreateEvent {
  7683. credential: Credential;
  7684. }
  7685. export interface IdentityManagerDialogCreateEvent {
  7686. }
  7687. export type HandlerCallback = (
  7688. authorizeParams: any,
  7689. authorizeUrl: string,
  7690. oAuthInfo: OAuthInfo,
  7691. resourceUrl: string,
  7692. serverInfo: ServerInfo
  7693. ) => void;
  7694. export interface IdentityManagerGenerateTokenOptions {
  7695. /**
  7696. * The server URL.
  7697. *
  7698. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#generateToken)
  7699. */
  7700. serverUrl: string;
  7701. /**
  7702. * The server token.
  7703. *
  7704. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#generateToken)
  7705. */
  7706. token: string;
  7707. /**
  7708. * Indicates if the server requires SSL.
  7709. *
  7710. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#generateToken)
  7711. */
  7712. ssl: boolean;
  7713. }
  7714. export interface IdentityManagerGetCredentialOptions {
  7715. /**
  7716. * Error object returned by the server from a previous attempt to fetch the given URL.
  7717. *
  7718. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#getCredential)
  7719. */
  7720. error?: Error;
  7721. /**
  7722. * If set to *false*, the user will not be shown a dialog before the OAuth popup window is opened.
  7723. *
  7724. * @default true
  7725. *
  7726. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#getCredential)
  7727. */
  7728. oAuthPopupConfirmation?: boolean;
  7729. /**
  7730. * Token used for a previous unsuccessful attempt to fetch the given URL.
  7731. *
  7732. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#getCredential)
  7733. */
  7734. token?: string;
  7735. }
  7736. export interface IdentityManagerRegisterTokenProperties {
  7737. /**
  7738. * Token expiration time specified as number of milliseconds since 1 January 1970 00:00:00 UTC.
  7739. *
  7740. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#registerToken)
  7741. */
  7742. expires?: number;
  7743. /**
  7744. * For ArcGIS Online or Portal, this is https://www.arcgis.com/sharing/rest or similar to https://www.example.com/portal/sharing/rest.
  7745. *
  7746. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#registerToken)
  7747. */
  7748. server: string;
  7749. /**
  7750. * Set this to `true` if the user has an ArcGIS Online organizational account and the organization is configured to allow access to resources only through SSL.
  7751. *
  7752. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#registerToken)
  7753. */
  7754. ssl?: boolean;
  7755. /**
  7756. * The access token.
  7757. *
  7758. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#registerToken)
  7759. */
  7760. token: string;
  7761. /**
  7762. * The id of the user who owns the access token.
  7763. *
  7764. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#registerToken)
  7765. */
  7766. userId?: string;
  7767. }
  7768. export interface IdentityManagerSetProtocolErrorHandlerHandlerFunction {
  7769. /**
  7770. * The secure resource URL.
  7771. *
  7772. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#setProtocolErrorHandler)
  7773. */
  7774. resourceUrl: string;
  7775. /**
  7776. * ServerInfo object describing the server where the secure resource is hosted.
  7777. *
  7778. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#setProtocolErrorHandler)
  7779. */
  7780. serverInfo: ServerInfo;
  7781. }
  7782. export interface OAuthInfo extends Accessor, JSONSupport {
  7783. }
  7784. export class OAuthInfo {
  7785. /**
  7786. * The registered application id.
  7787. *
  7788. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#appId)
  7789. */
  7790. appId: string;
  7791. /**
  7792. * Applications with the same value will share the stored token on the same host.
  7793. *
  7794. * @default / (forward slash)
  7795. *
  7796. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#authNamespace)
  7797. */
  7798. authNamespace: string;
  7799. /**
  7800. * The number of minutes that the token is valid.
  7801. *
  7802. * @default 20160 (two weeks)
  7803. *
  7804. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#expiration)
  7805. */
  7806. expiration: number;
  7807. /**
  7808. * Set this property to specify the type of authentication to use.
  7809. *
  7810. * @default auto
  7811. *
  7812. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#flowType)
  7813. */
  7814. flowType: "auto" | "authorization-code" | "implicit";
  7815. /**
  7816. * Set this property to `true` to force the user to sign in with the id in [userId](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#userId).
  7817. *
  7818. * @default false
  7819. *
  7820. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#forceUserId)
  7821. */
  7822. forceUserId: boolean;
  7823. /**
  7824. * The locale for the OAuth sign-in page.
  7825. *
  7826. * @default Based on your browser/OS and the organization locale.
  7827. *
  7828. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#locale)
  7829. */
  7830. locale: string;
  7831. /**
  7832. * The minimum time in minutes before a saved token is due to expire that should still be considered valid for use.
  7833. *
  7834. * @default 30
  7835. *
  7836. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#minTimeUntilExpiration)
  7837. */
  7838. minTimeUntilExpiration: number;
  7839. /**
  7840. * Set to `true` to show the OAuth sign-in page in a popup window.
  7841. *
  7842. * @default false
  7843. *
  7844. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#popup)
  7845. */
  7846. popup: boolean;
  7847. /**
  7848. * Applicable if working with the popup user-login workflow.
  7849. *
  7850. * @default "oauth-callback.html"
  7851. *
  7852. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#popupCallbackUrl)
  7853. */
  7854. popupCallbackUrl: string;
  7855. /**
  7856. * The window features passed to [window.open()](https://developer.mozilla.org/en-US/docs/Web/API/Window/open).
  7857. *
  7858. * @default height=490,width=800,resizable,scrollbars,status
  7859. *
  7860. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#popupWindowFeatures)
  7861. */
  7862. popupWindowFeatures: string;
  7863. /**
  7864. * The ArcGIS Enterprise portal URL.
  7865. *
  7866. * @default "https://www.arcgis.com"
  7867. *
  7868. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#portalUrl)
  7869. */
  7870. portalUrl: string;
  7871. /**
  7872. * Set this property to `true` when [popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#popup) is `false` in order to have the window's location hash value restored after signing in.
  7873. *
  7874. * @default false
  7875. *
  7876. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#preserveUrlHash)
  7877. */
  7878. preserveUrlHash: boolean;
  7879. /**
  7880. * The user id used when `forceUserId` is `true`.
  7881. *
  7882. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#userId)
  7883. */
  7884. userId: string;
  7885. /**
  7886. * This class contains information about an OAuth 2.0 configuration.
  7887. *
  7888. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html)
  7889. */
  7890. constructor(properties?: OAuthInfoProperties);
  7891. /**
  7892. * Creates a copy of the OAuthInfo object.
  7893. *
  7894. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#clone)
  7895. */
  7896. clone(): OAuthInfo;
  7897. static fromJSON(json: any): OAuthInfo;
  7898. }
  7899. /** @deprecated Import the OAuthInfo class instead. */
  7900. export type OAuthInfoConstructor = typeof OAuthInfo;
  7901. interface OAuthInfoProperties {
  7902. /**
  7903. * The registered application id.
  7904. *
  7905. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#appId)
  7906. */
  7907. appId?: string;
  7908. /**
  7909. * Applications with the same value will share the stored token on the same host.
  7910. *
  7911. * @default / (forward slash)
  7912. *
  7913. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#authNamespace)
  7914. */
  7915. authNamespace?: string;
  7916. /**
  7917. * The number of minutes that the token is valid.
  7918. *
  7919. * @default 20160 (two weeks)
  7920. *
  7921. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#expiration)
  7922. */
  7923. expiration?: number;
  7924. /**
  7925. * Set this property to specify the type of authentication to use.
  7926. *
  7927. * @default auto
  7928. *
  7929. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#flowType)
  7930. */
  7931. flowType?: "auto" | "authorization-code" | "implicit";
  7932. /**
  7933. * Set this property to `true` to force the user to sign in with the id in [userId](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#userId).
  7934. *
  7935. * @default false
  7936. *
  7937. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#forceUserId)
  7938. */
  7939. forceUserId?: boolean;
  7940. /**
  7941. * The locale for the OAuth sign-in page.
  7942. *
  7943. * @default Based on your browser/OS and the organization locale.
  7944. *
  7945. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#locale)
  7946. */
  7947. locale?: string;
  7948. /**
  7949. * The minimum time in minutes before a saved token is due to expire that should still be considered valid for use.
  7950. *
  7951. * @default 30
  7952. *
  7953. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#minTimeUntilExpiration)
  7954. */
  7955. minTimeUntilExpiration?: number;
  7956. /**
  7957. * Set to `true` to show the OAuth sign-in page in a popup window.
  7958. *
  7959. * @default false
  7960. *
  7961. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#popup)
  7962. */
  7963. popup?: boolean;
  7964. /**
  7965. * Applicable if working with the popup user-login workflow.
  7966. *
  7967. * @default "oauth-callback.html"
  7968. *
  7969. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#popupCallbackUrl)
  7970. */
  7971. popupCallbackUrl?: string;
  7972. /**
  7973. * The window features passed to [window.open()](https://developer.mozilla.org/en-US/docs/Web/API/Window/open).
  7974. *
  7975. * @default height=490,width=800,resizable,scrollbars,status
  7976. *
  7977. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#popupWindowFeatures)
  7978. */
  7979. popupWindowFeatures?: string;
  7980. /**
  7981. * The ArcGIS Enterprise portal URL.
  7982. *
  7983. * @default "https://www.arcgis.com"
  7984. *
  7985. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#portalUrl)
  7986. */
  7987. portalUrl?: string;
  7988. /**
  7989. * Set this property to `true` when [popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#popup) is `false` in order to have the window's location hash value restored after signing in.
  7990. *
  7991. * @default false
  7992. *
  7993. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#preserveUrlHash)
  7994. */
  7995. preserveUrlHash?: boolean;
  7996. /**
  7997. * The user id used when `forceUserId` is `true`.
  7998. *
  7999. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-OAuthInfo.html#userId)
  8000. */
  8001. userId?: string;
  8002. }
  8003. export interface ServerInfo extends Accessor, JSONSupport {
  8004. }
  8005. export class ServerInfo {
  8006. /**
  8007. * The token service URL used to generate tokens for ArcGIS Server Admin resources.
  8008. *
  8009. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-ServerInfo.html#adminTokenServiceUrl)
  8010. */
  8011. adminTokenServiceUrl: string;
  8012. /**
  8013. * Version of the ArcGIS Server or Portal deployed on the server.
  8014. *
  8015. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-ServerInfo.html#currentVersion)
  8016. */
  8017. currentVersion: number;
  8018. /**
  8019. * Indicates whether the [server](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-ServerInfo.html#server) is a [Portal](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html) instance.
  8020. *
  8021. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-ServerInfo.html#hasPortal)
  8022. */
  8023. hasPortal: boolean;
  8024. /**
  8025. * Indicates whether the [server](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-ServerInfo.html#server) is an [ArcGIS Server](https://enterprise.arcgis.com/en/server/latest/get-started/windows/what-is-arcgis-for-server-.htm) instance.
  8026. *
  8027. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-ServerInfo.html#hasServer)
  8028. */
  8029. hasServer: boolean;
  8030. /**
  8031. * The server URL.
  8032. *
  8033. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-ServerInfo.html#server)
  8034. */
  8035. server: string;
  8036. /**
  8037. * Validity of short-lived token in minutes.
  8038. *
  8039. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-ServerInfo.html#shortLivedTokenValidity)
  8040. */
  8041. shortLivedTokenValidity: number;
  8042. /**
  8043. * The token service URL used to generate tokens for the secured resources on the server.
  8044. *
  8045. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-ServerInfo.html#tokenServiceUrl)
  8046. */
  8047. tokenServiceUrl: string;
  8048. /**
  8049. * Indicates whether the server is configured to work with web tier authentication.
  8050. *
  8051. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-ServerInfo.html#webTierAuth)
  8052. */
  8053. webTierAuth: boolean;
  8054. /**
  8055. * This class contains information about an ArcGIS Server and its token endpoint.
  8056. *
  8057. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-ServerInfo.html)
  8058. */
  8059. constructor(properties?: ServerInfoProperties);
  8060. static fromJSON(json: any): ServerInfo;
  8061. }
  8062. /** @deprecated Import the ServerInfo class instead. */
  8063. export type ServerInfoConstructor = typeof ServerInfo;
  8064. interface ServerInfoProperties {
  8065. /**
  8066. * The token service URL used to generate tokens for ArcGIS Server Admin resources.
  8067. *
  8068. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-ServerInfo.html#adminTokenServiceUrl)
  8069. */
  8070. adminTokenServiceUrl?: string;
  8071. /**
  8072. * Version of the ArcGIS Server or Portal deployed on the server.
  8073. *
  8074. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-ServerInfo.html#currentVersion)
  8075. */
  8076. currentVersion?: number;
  8077. /**
  8078. * Indicates whether the [server](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-ServerInfo.html#server) is a [Portal](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html) instance.
  8079. *
  8080. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-ServerInfo.html#hasPortal)
  8081. */
  8082. hasPortal?: boolean;
  8083. /**
  8084. * Indicates whether the [server](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-ServerInfo.html#server) is an [ArcGIS Server](https://enterprise.arcgis.com/en/server/latest/get-started/windows/what-is-arcgis-for-server-.htm) instance.
  8085. *
  8086. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-ServerInfo.html#hasServer)
  8087. */
  8088. hasServer?: boolean;
  8089. /**
  8090. * The server URL.
  8091. *
  8092. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-ServerInfo.html#server)
  8093. */
  8094. server?: string;
  8095. /**
  8096. * Validity of short-lived token in minutes.
  8097. *
  8098. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-ServerInfo.html#shortLivedTokenValidity)
  8099. */
  8100. shortLivedTokenValidity?: number;
  8101. /**
  8102. * The token service URL used to generate tokens for the secured resources on the server.
  8103. *
  8104. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-ServerInfo.html#tokenServiceUrl)
  8105. */
  8106. tokenServiceUrl?: string;
  8107. /**
  8108. * Indicates whether the server is configured to work with web tier authentication.
  8109. *
  8110. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-ServerInfo.html#webTierAuth)
  8111. */
  8112. webTierAuth?: boolean;
  8113. }
  8114. /**
  8115. * This module provides date and number formatting methods and supporting utilities.
  8116. *
  8117. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html)
  8118. */
  8119. interface intl {
  8120. /**
  8121. * Converts a [web map date format string](https://developers.arcgis.com/web-map-specification/objects/format/) to an [Intl.DateTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat#Parameters) options object.
  8122. *
  8123. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#convertDateFormatToIntlOptions)
  8124. */
  8125. convertDateFormatToIntlOptions(format?: | "short-date"
  8126. | "short-date-short-time"
  8127. | "short-date-short-time-24"
  8128. | "short-date-long-time"
  8129. | "short-date-long-time-24"
  8130. | "long-month-day-year"
  8131. | "long-month-day-year-short-time"
  8132. | "long-month-day-year-short-time-24"
  8133. | "long-month-day-year-long-time"
  8134. | "long-month-day-year-long-time-24"
  8135. | "day-short-month-year"
  8136. | "day-short-month-year-short-time"
  8137. | "day-short-month-year-short-time-24"
  8138. | "day-short-month-year-long-time"
  8139. | "day-short-month-year-long-time-24"
  8140. | "long-date"
  8141. | "long-date-short-time"
  8142. | "long-date-short-time-24"
  8143. | "long-date-long-time"
  8144. | "long-date-long-time-24"
  8145. | "long-month-year"
  8146. | "short-month-year"
  8147. | "year"
  8148. | "short-time"
  8149. | "long-time"): Intl.DateTimeFormatOptions;
  8150. /**
  8151. * Converts a [NumberFormat](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#NumberFormat) to an [Intl.NumberFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat#Parameters) object.
  8152. *
  8153. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#convertNumberFormatToIntlOptions)
  8154. */
  8155. convertNumberFormatToIntlOptions(format?: NumberFormat): Intl.NumberFormatOptions;
  8156. /**
  8157. * Creates a message bundle loader specialized in loading translation files as JSON files.
  8158. *
  8159. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#createJSONLoader)
  8160. */
  8161. createJSONLoader(params: intlCreateJSONLoaderParams): MessageBundleLoader;
  8162. /**
  8163. * Loads a localized message bundle used with the current API locale.
  8164. *
  8165. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#fetchMessageBundle)
  8166. */
  8167. fetchMessageBundle(bundleId: string): Promise<any>;
  8168. /**
  8169. * Formats a `Date` or `Number` value to a string in the current locale.
  8170. *
  8171. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#formatDate)
  8172. */
  8173. formatDate(value: Date | number, formatOptions?: Intl.DateTimeFormatOptions): string;
  8174. /**
  8175. * Formats a `Number` value to a string in the current locale.
  8176. *
  8177. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#formatNumber)
  8178. */
  8179. formatNumber(value: number, formatOptions?: Intl.NumberFormatOptions): string;
  8180. /**
  8181. * Returns the current locale used by the API.
  8182. *
  8183. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#getLocale)
  8184. */
  8185. getLocale(): string;
  8186. /**
  8187. * Returns one of the known message bundle locale for an input locale.
  8188. *
  8189. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#normalizeMessageBundleLocale)
  8190. */
  8191. normalizeMessageBundleLocale(locale: string): string | null;
  8192. /**
  8193. * Registers a [callback](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#LocaleChangeCallback) that gets notified when the locale changes.
  8194. *
  8195. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#onLocaleChange)
  8196. */
  8197. onLocaleChange(callback: LocaleChangeCallback): Handle;
  8198. /**
  8199. * Provides right-to-left preference for input locale.
  8200. *
  8201. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#prefersRTL)
  8202. */
  8203. prefersRTL(locale?: string): boolean;
  8204. /**
  8205. * Registers a message loader to load specified message bundles needed for translating strings.
  8206. *
  8207. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#registerMessageBundleLoader)
  8208. */
  8209. registerMessageBundleLoader(loader: MessageBundleLoader): any;
  8210. /**
  8211. * Sets the locale used by the API.
  8212. *
  8213. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#setLocale)
  8214. */
  8215. setLocale(locale: string): void;
  8216. /**
  8217. * Use this to substitute keys in a `template` string with values from the argument `data`.
  8218. *
  8219. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#substitute)
  8220. */
  8221. substitute(template: string, data: any, options?: SubstituteOptions): string;
  8222. }
  8223. export const intl: intl;
  8224. export type FetchMessageBundle = (bundleId: string, locale: string) => Promise<any>;
  8225. export interface intlCreateJSONLoaderParams {
  8226. /**
  8227. * Used to check if the loader should be used to load a candidate's message bundle.
  8228. *
  8229. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#createJSONLoader)
  8230. */
  8231. pattern: string | RegExp;
  8232. /**
  8233. * Used to calculate the relative path of the file to load.
  8234. *
  8235. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#createJSONLoader)
  8236. */
  8237. base: string;
  8238. /**
  8239. * The location of the translation files.
  8240. *
  8241. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#createJSONLoader)
  8242. */
  8243. location: string | any | Function;
  8244. }
  8245. export type LocaleChangeCallback = (newLocale: string) => void;
  8246. /**
  8247. * A message bundle loader is an object used to load translation strings in the user's locale.
  8248. *
  8249. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#MessageBundleLoader)
  8250. */
  8251. export interface MessageBundleLoader {
  8252. /**
  8253. * Used to check if the loader should be used to load a candidate message bundle.
  8254. *
  8255. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#MessageBundleLoader)
  8256. */
  8257. pattern: string | RegExp;
  8258. /**
  8259. * Called to load the message bundle if the `pattern` matches the bundle identifier.
  8260. *
  8261. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#MessageBundleLoader)
  8262. */
  8263. fetchMessageBundle: FetchMessageBundle;
  8264. }
  8265. /**
  8266. * The Web map definition for formatting numbers.
  8267. *
  8268. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#NumberFormat)
  8269. */
  8270. export interface NumberFormat {
  8271. /**
  8272. * Indicates if the number should be formatted with a thousands separator.
  8273. *
  8274. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#NumberFormat)
  8275. */
  8276. digitSeparator?: boolean;
  8277. /**
  8278. * Specifies the number of decimal places that should appear in the formatted number.
  8279. *
  8280. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#NumberFormat)
  8281. */
  8282. places?: number;
  8283. }
  8284. /**
  8285. * The formatting options for date values.
  8286. *
  8287. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#SubstituteDateTimeFormatOptions)
  8288. */
  8289. export interface SubstituteDateTimeFormatOptions {
  8290. /**
  8291. * The type of this format.
  8292. *
  8293. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#SubstituteDateTimeFormatOptions)
  8294. */
  8295. type: "date";
  8296. /**
  8297. * The date format options for the [Intl.DateTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat) object.
  8298. *
  8299. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#SubstituteDateTimeFormatOptions)
  8300. */
  8301. intlOptions: Intl.DateTimeFormatOptions;
  8302. }
  8303. /**
  8304. * The formatting options for numeric values.
  8305. *
  8306. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#SubstituteNumberFormatOptions)
  8307. */
  8308. export interface SubstituteNumberFormatOptions {
  8309. /**
  8310. * The type of this format.
  8311. *
  8312. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#SubstituteNumberFormatOptions)
  8313. */
  8314. type: "number";
  8315. /**
  8316. * The Intl number format options for the [Intl.NumberFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat) object.
  8317. *
  8318. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#SubstituteNumberFormatOptions)
  8319. */
  8320. intlOptions: Intl.NumberFormatOptions;
  8321. }
  8322. /**
  8323. * An object to specify substitution options.
  8324. *
  8325. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#SubstituteOptions)
  8326. */
  8327. export interface SubstituteOptions {
  8328. /**
  8329. * A hashmap of string keys to formatting options.
  8330. *
  8331. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-intl.html#SubstituteOptions)
  8332. */
  8333. format: HashMap<SubstituteDateTimeFormatOptions | SubstituteNumberFormatOptions>;
  8334. }
  8335. /**
  8336. * Utility for retrieving the current version of the API.
  8337. *
  8338. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-kernel.html)
  8339. */
  8340. interface kernel {
  8341. /**
  8342. * Current version of the ArcGIS API for JavaScript.
  8343. *
  8344. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-kernel.html#version)
  8345. */
  8346. readonly version: string;
  8347. }
  8348. export const kernel: kernel;
  8349. export interface BaseDynamicLayer extends Layer, ScaleRangeLayer, RefreshableLayer, BlendLayer {
  8350. }
  8351. export class BaseDynamicLayer {
  8352. readonly type: "base-dynamic";
  8353. /**
  8354. * This class may be extended to create dynamic map layers.
  8355. *
  8356. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseDynamicLayer.html)
  8357. */
  8358. constructor(properties?: BaseDynamicLayerProperties);
  8359. /**
  8360. * Adds a promise to the layer's [loadable](https://developers.arcgis.com/javascript/latest/programming-patterns/#loadable) chain.
  8361. *
  8362. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseDynamicLayer.html#addResolvingPromise)
  8363. */
  8364. addResolvingPromise(promiseToLoad: Promise<any>): Promise<any>;
  8365. /**
  8366. * This method fetches the image for the specified extent and size.
  8367. *
  8368. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseDynamicLayer.html#fetchImage)
  8369. */
  8370. fetchImage(extent: Extent, width: number, height: number, options?: BaseDynamicLayerFetchImageOptions): Promise<HTMLImageElement | HTMLCanvasElement>;
  8371. /**
  8372. * This method returns a URL to an image for a given extent, width, and height.
  8373. *
  8374. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseDynamicLayer.html#getImageUrl)
  8375. */
  8376. getImageUrl(extent: Extent, width: number, height: number): Promise<string> | string;
  8377. on(name: "refresh", eventHandler: BaseDynamicLayerRefreshEventHandler): IHandle;
  8378. on(name: "layerview-create", eventHandler: BaseDynamicLayerLayerviewCreateEventHandler): IHandle;
  8379. on(name: "layerview-create-error", eventHandler: BaseDynamicLayerLayerviewCreateErrorEventHandler): IHandle;
  8380. on(name: "layerview-destroy", eventHandler: BaseDynamicLayerLayerviewDestroyEventHandler): IHandle;
  8381. }
  8382. /** @deprecated Import the BaseDynamicLayer class instead. */
  8383. export type BaseDynamicLayerConstructor = typeof BaseDynamicLayer;
  8384. interface BaseDynamicLayerProperties extends LayerProperties, ScaleRangeLayerProperties, RefreshableLayerProperties, BlendLayerProperties {
  8385. }
  8386. export interface BaseDynamicLayerFetchImageOptions {
  8387. /**
  8388. * An [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) to abort the request.
  8389. *
  8390. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseDynamicLayer.html#fetchImage)
  8391. */
  8392. signal?: AbortSignal;
  8393. }
  8394. export interface BaseDynamicLayerLayerviewCreateErrorEvent {
  8395. error: Error;
  8396. view: View;
  8397. }
  8398. export interface BaseDynamicLayerLayerviewCreateEvent {
  8399. layerView: LayerView;
  8400. view: View;
  8401. }
  8402. export interface BaseDynamicLayerLayerviewDestroyEvent {
  8403. layerView: LayerView;
  8404. view: View;
  8405. }
  8406. export interface BaseDynamicLayerRefreshEvent {
  8407. dataChanged: boolean;
  8408. }
  8409. export class BaseElevationLayer extends Layer {
  8410. /**
  8411. * The spatial reference of the layer.
  8412. *
  8413. * @default {@link module:esri/geometry/SpatialReference#WebMercator SpatialReference.WebMercator}
  8414. *
  8415. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseElevationLayer.html#spatialReference)
  8416. */
  8417. spatialReference: SpatialReference;
  8418. /**
  8419. * The tiling scheme information for the layer.
  8420. *
  8421. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseElevationLayer.html#tileInfo)
  8422. */
  8423. tileInfo: TileInfo;
  8424. readonly type: "base-elevation";
  8425. /**
  8426. * BaseElevationLayer is intended to be extended for creating custom elevation layers.
  8427. *
  8428. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseElevationLayer.html)
  8429. */
  8430. constructor(properties?: BaseElevationLayerProperties);
  8431. /**
  8432. * Adds a promise to the layer's [loadable](https://developers.arcgis.com/javascript/latest/programming-patterns/#loadable) chain.
  8433. *
  8434. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseElevationLayer.html#addResolvingPromise)
  8435. */
  8436. addResolvingPromise(promiseToLoad: Promise<any>): Promise<any>;
  8437. /**
  8438. * Creates an elevation sampler for the given [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) by querying the service layer for elevation data and caching it so values may be sampled quickly afterwards.
  8439. *
  8440. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseElevationLayer.html#createElevationSampler)
  8441. */
  8442. createElevationSampler(extent: Extent, options?: BaseElevationLayerCreateElevationSamplerOptions): Promise<ElevationSampler>;
  8443. /**
  8444. * Fetches a tile at the given level, row, and column present in the view.
  8445. *
  8446. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseElevationLayer.html#fetchTile)
  8447. */
  8448. fetchTile(level: number, row: number, column: number, options?: BaseElevationLayerFetchTileOptions): Promise<ElevationTileData>;
  8449. /**
  8450. * Returns the bounds of the tile as an array of four numbers that can be readily converted to an [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) object.
  8451. *
  8452. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseElevationLayer.html#getTileBounds)
  8453. */
  8454. getTileBounds(level: number, row: number, column: number, out?: number[]): number[];
  8455. /**
  8456. * Queries the service layer for elevation values for the given geometry.
  8457. *
  8458. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseElevationLayer.html#queryElevation)
  8459. */
  8460. queryElevation(geometry: Point | Multipoint | Polyline, options?: BaseElevationLayerQueryElevationOptions): Promise<ElevationLayerElevationQueryResult>;
  8461. }
  8462. /** @deprecated Import the BaseElevationLayer class instead. */
  8463. export type BaseElevationLayerConstructor = typeof BaseElevationLayer;
  8464. interface BaseElevationLayerProperties extends LayerProperties {
  8465. /**
  8466. * The spatial reference of the layer.
  8467. *
  8468. * @default {@link module:esri/geometry/SpatialReference#WebMercator SpatialReference.WebMercator}
  8469. *
  8470. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseElevationLayer.html#spatialReference)
  8471. */
  8472. spatialReference?: SpatialReferenceProperties;
  8473. /**
  8474. * The tiling scheme information for the layer.
  8475. *
  8476. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseElevationLayer.html#tileInfo)
  8477. */
  8478. tileInfo?: TileInfoProperties;
  8479. }
  8480. export interface BaseElevationLayerCreateElevationSamplerOptions {
  8481. /**
  8482. * Controls the horizontal resolution (cell size) in meters from which elevation data is sampled (defaults to `auto`).
  8483. *
  8484. * @default auto
  8485. *
  8486. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseElevationLayer.html#createElevationSampler)
  8487. */
  8488. demResolution?: number | string;
  8489. /**
  8490. * The value to use when there is no data available.
  8491. *
  8492. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseElevationLayer.html#createElevationSampler)
  8493. */
  8494. noDataValue?: number;
  8495. }
  8496. export interface BaseElevationLayerFetchTileOptions {
  8497. /**
  8498. * The value representing pixels in the tile that don't contain an elevation value.
  8499. *
  8500. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseElevationLayer.html#fetchTile)
  8501. */
  8502. noDataValue?: number;
  8503. /**
  8504. * An [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) to abort the request.
  8505. *
  8506. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseElevationLayer.html#fetchTile)
  8507. */
  8508. signal?: AbortSignal;
  8509. }
  8510. export interface BaseElevationLayerQueryElevationOptions {
  8511. /**
  8512. * Controls the horizontal resolution (cell size) in meters from which elevation data is sampled (defaults to `auto`).
  8513. *
  8514. * @default auto
  8515. *
  8516. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseElevationLayer.html#queryElevation)
  8517. */
  8518. demResolution?: number | string;
  8519. /**
  8520. * Indicates whether to return additional sample information for each coordinate.
  8521. *
  8522. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseElevationLayer.html#queryElevation)
  8523. */
  8524. returnSampleInfo?: boolean;
  8525. /**
  8526. * The value to use when there is no data available.
  8527. *
  8528. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseElevationLayer.html#queryElevation)
  8529. */
  8530. noDataValue?: number;
  8531. }
  8532. /**
  8533. * Describes elevation contained in the pixels that comprise an elevation tile.
  8534. *
  8535. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseElevationLayer.html#ElevationTileData)
  8536. */
  8537. export interface ElevationTileData {
  8538. /**
  8539. * The elevation values of each pixel in the tile.
  8540. *
  8541. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseElevationLayer.html#ElevationTileData)
  8542. */
  8543. values: number[];
  8544. /**
  8545. * The width of the tile in pixels.
  8546. *
  8547. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseElevationLayer.html#ElevationTileData)
  8548. */
  8549. width: number;
  8550. /**
  8551. * The height of the tile in pixels.
  8552. *
  8553. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseElevationLayer.html#ElevationTileData)
  8554. */
  8555. height: number;
  8556. /**
  8557. * The maximum allowed error of the Z-value for each value in meters.
  8558. *
  8559. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseElevationLayer.html#ElevationTileData)
  8560. */
  8561. maxZError: number;
  8562. /**
  8563. * Indicating the pixel values where no elevation data is present.
  8564. *
  8565. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseElevationLayer.html#ElevationTileData)
  8566. */
  8567. noDataValue: number;
  8568. }
  8569. export interface BaseTileLayer extends Layer, ScaleRangeLayer, RefreshableLayer, BlendLayer {
  8570. }
  8571. export class BaseTileLayer {
  8572. /**
  8573. * The spatial reference of the layer.
  8574. *
  8575. * @default {@link module:esri/geometry/SpatialReference#WebMercator SpatialReference.WebMercator}
  8576. *
  8577. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseTileLayer.html#spatialReference)
  8578. */
  8579. spatialReference: SpatialReference;
  8580. /**
  8581. * The tiling scheme information for the layer.
  8582. *
  8583. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseTileLayer.html#tileInfo)
  8584. */
  8585. tileInfo: TileInfo;
  8586. /**
  8587. * For [BaseTileLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseTileLayer.html) the type is `base-tile`.
  8588. *
  8589. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseTileLayer.html#type)
  8590. */
  8591. readonly type: "base-tile" | "bing-maps";
  8592. /**
  8593. * This class may be extended to create a custom [TileLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html).
  8594. *
  8595. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseTileLayer.html)
  8596. */
  8597. constructor(properties?: BaseTileLayerProperties);
  8598. /**
  8599. * Adds a promise to the layer's [loadable](https://developers.arcgis.com/javascript/latest/programming-patterns/#loadable) chain.
  8600. *
  8601. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseTileLayer.html#addResolvingPromise)
  8602. */
  8603. addResolvingPromise(promiseToLoad: Promise<any>): Promise<any>;
  8604. /**
  8605. * This method fetches a tile for the given level, row and column present in the view.
  8606. *
  8607. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseTileLayer.html#fetchTile)
  8608. */
  8609. fetchTile(level: number, row: number, col: number, options?: BaseTileLayerFetchTileOptions): Promise<HTMLImageElement | HTMLCanvasElement>;
  8610. /**
  8611. * Returns the bounds of the tile as an array of four numbers that be readily converted to an [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) object.
  8612. *
  8613. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseTileLayer.html#getTileBounds)
  8614. */
  8615. getTileBounds(level: number, row: number, column: number, out?: number[]): number[];
  8616. /**
  8617. * This method returns a URL to an image for a given level, row and column.
  8618. *
  8619. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseTileLayer.html#getTileUrl)
  8620. */
  8621. getTileUrl(level: number, row: number, col: number): string;
  8622. on(name: "refresh", eventHandler: BaseTileLayerRefreshEventHandler): IHandle;
  8623. on(name: "layerview-create", eventHandler: BaseTileLayerLayerviewCreateEventHandler): IHandle;
  8624. on(name: "layerview-create-error", eventHandler: BaseTileLayerLayerviewCreateErrorEventHandler): IHandle;
  8625. on(name: "layerview-destroy", eventHandler: BaseTileLayerLayerviewDestroyEventHandler): IHandle;
  8626. }
  8627. /** @deprecated Import the BaseTileLayer class instead. */
  8628. export type BaseTileLayerConstructor = typeof BaseTileLayer;
  8629. interface BaseTileLayerProperties extends LayerProperties, ScaleRangeLayerProperties, RefreshableLayerProperties, BlendLayerProperties {
  8630. /**
  8631. * The spatial reference of the layer.
  8632. *
  8633. * @default {@link module:esri/geometry/SpatialReference#WebMercator SpatialReference.WebMercator}
  8634. *
  8635. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseTileLayer.html#spatialReference)
  8636. */
  8637. spatialReference?: SpatialReferenceProperties;
  8638. /**
  8639. * The tiling scheme information for the layer.
  8640. *
  8641. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseTileLayer.html#tileInfo)
  8642. */
  8643. tileInfo?: TileInfoProperties;
  8644. }
  8645. export interface BaseTileLayerFetchTileOptions {
  8646. /**
  8647. * An [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) to abort the request.
  8648. *
  8649. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseTileLayer.html#fetchTile)
  8650. */
  8651. signal?: AbortSignal;
  8652. }
  8653. export interface BaseTileLayerLayerviewCreateErrorEvent {
  8654. error: Error;
  8655. view: View;
  8656. }
  8657. export interface BaseTileLayerLayerviewCreateEvent {
  8658. layerView: LayerView;
  8659. view: View;
  8660. }
  8661. export interface BaseTileLayerLayerviewDestroyEvent {
  8662. layerView: LayerView;
  8663. view: View;
  8664. }
  8665. export interface BaseTileLayerRefreshEvent {
  8666. dataChanged: boolean;
  8667. }
  8668. export interface BingMapsLayer extends BaseTileLayer, BlendLayer {
  8669. }
  8670. export class BingMapsLayer {
  8671. /**
  8672. * Expose Bing logo url.
  8673. *
  8674. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BingMapsLayer.html#bingLogo)
  8675. */
  8676. readonly bingLogo: string;
  8677. /**
  8678. * Copyright information.
  8679. *
  8680. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BingMapsLayer.html#copyright)
  8681. */
  8682. readonly copyright: string;
  8683. /**
  8684. * Provides culture specific map labels.
  8685. *
  8686. * @default "en-US"
  8687. *
  8688. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BingMapsLayer.html#culture)
  8689. */
  8690. culture: string;
  8691. /**
  8692. * Indicates if the layer has attribution data.
  8693. *
  8694. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BingMapsLayer.html#hasAttributionData)
  8695. */
  8696. readonly hasAttributionData: boolean;
  8697. /**
  8698. * Bing Maps Key.
  8699. *
  8700. * @default null
  8701. *
  8702. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BingMapsLayer.html#key)
  8703. */
  8704. key: string;
  8705. /**
  8706. * This will alter Geopolitical disputed borders and labels to align with the specified user region.
  8707. *
  8708. * @default null
  8709. *
  8710. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BingMapsLayer.html#region)
  8711. */
  8712. region: string;
  8713. /**
  8714. * For more information on Bing map styles please visit: https://learn.microsoft.com/en-us/bingmaps/rest-services/imagery/get-imagery-metadata
  8715. *
  8716. * @default "road"
  8717. *
  8718. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BingMapsLayer.html#style)
  8719. */
  8720. style: "road" | "aerial" | "hybrid";
  8721. readonly type: "bing-maps";
  8722. /**
  8723. * This layer supports Microsoft's Bing tiled map content.
  8724. *
  8725. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BingMapsLayer.html)
  8726. */
  8727. constructor(properties?: BingMapsLayerProperties);
  8728. on(name: "refresh", eventHandler: BingMapsLayerRefreshEventHandler): IHandle;
  8729. on(name: "layerview-create", eventHandler: BingMapsLayerLayerviewCreateEventHandler): IHandle;
  8730. on(name: "layerview-create-error", eventHandler: BingMapsLayerLayerviewCreateErrorEventHandler): IHandle;
  8731. on(name: "layerview-destroy", eventHandler: BingMapsLayerLayerviewDestroyEventHandler): IHandle;
  8732. }
  8733. /** @deprecated Import the BingMapsLayer class instead. */
  8734. export type BingMapsLayerConstructor = typeof BingMapsLayer;
  8735. interface BingMapsLayerProperties extends BaseTileLayerProperties, BlendLayerProperties {
  8736. /**
  8737. * Provides culture specific map labels.
  8738. *
  8739. * @default "en-US"
  8740. *
  8741. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BingMapsLayer.html#culture)
  8742. */
  8743. culture?: string;
  8744. /**
  8745. * Bing Maps Key.
  8746. *
  8747. * @default null
  8748. *
  8749. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BingMapsLayer.html#key)
  8750. */
  8751. key?: string;
  8752. /**
  8753. * This will alter Geopolitical disputed borders and labels to align with the specified user region.
  8754. *
  8755. * @default null
  8756. *
  8757. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BingMapsLayer.html#region)
  8758. */
  8759. region?: string;
  8760. /**
  8761. * For more information on Bing map styles please visit: https://learn.microsoft.com/en-us/bingmaps/rest-services/imagery/get-imagery-metadata
  8762. *
  8763. * @default "road"
  8764. *
  8765. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BingMapsLayer.html#style)
  8766. */
  8767. style?: "road" | "aerial" | "hybrid";
  8768. }
  8769. export interface BingMapsLayerLayerviewCreateErrorEvent {
  8770. error: Error;
  8771. view: View;
  8772. }
  8773. export interface BingMapsLayerLayerviewCreateEvent {
  8774. layerView: LayerView;
  8775. view: View;
  8776. }
  8777. export interface BingMapsLayerLayerviewDestroyEvent {
  8778. layerView: LayerView;
  8779. view: View;
  8780. }
  8781. export interface BingMapsLayerRefreshEvent {
  8782. dataChanged: boolean;
  8783. }
  8784. export interface BuildingSceneLayer extends Layer, SceneService, PortalLayer, ScaleRangeLayer, APIKeyMixin {
  8785. }
  8786. export class BuildingSceneLayer {
  8787. /**
  8788. * The id of the currently active filter.
  8789. *
  8790. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html#activeFilterId)
  8791. */
  8792. activeFilterId: string;
  8793. /**
  8794. * A flat [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of all the [sublayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html#sublayers) in the BuildingSublayer.
  8795. *
  8796. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html#allSublayers)
  8797. */
  8798. readonly allSublayers: Collection<BuildingGroupSublayer | BuildingComponentSublayer>;
  8799. /**
  8800. * Specifies how features are placed on the vertical axis (z).
  8801. *
  8802. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html#elevationInfo)
  8803. */
  8804. elevationInfo: BuildingSceneLayerElevationInfo;
  8805. /**
  8806. * Collection of filters that can be used to show or hide specific features in the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  8807. *
  8808. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html#filters)
  8809. */
  8810. filters: Collection<BuildingFilter>;
  8811. /**
  8812. * An array of field names from the service to include with each feature in all sublayers.
  8813. *
  8814. * @default null
  8815. *
  8816. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html#outFields)
  8817. */
  8818. outFields: string[];
  8819. /**
  8820. * Hierarchical structure of sublayers in a BuildingSceneLayer.
  8821. *
  8822. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html#sublayers)
  8823. */
  8824. readonly sublayers: Collection<BuildingGroupSublayer | BuildingComponentSublayer>;
  8825. /**
  8826. * Summary statistics for all component layers in the building scene layer.
  8827. *
  8828. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html#summaryStatistics)
  8829. */
  8830. readonly summaryStatistics: BuildingSummaryStatistics;
  8831. readonly type: "building-scene";
  8832. /**
  8833. * The BuildingSceneLayer is designed for visualizing buildings with detailed interiors in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  8834. *
  8835. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html)
  8836. */
  8837. constructor(properties?: BuildingSceneLayerProperties);
  8838. /**
  8839. * Loads the layer and all of its sublayers.
  8840. *
  8841. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html#loadAll)
  8842. */
  8843. loadAll(): Promise<BuildingSceneLayer>;
  8844. static fromJSON(json: any): BuildingSceneLayer;
  8845. }
  8846. /** @deprecated Import the BuildingSceneLayer class instead. */
  8847. export type BuildingSceneLayerConstructor = typeof BuildingSceneLayer;
  8848. interface BuildingSceneLayerProperties extends LayerProperties, SceneServiceProperties, PortalLayerProperties, ScaleRangeLayerProperties, APIKeyMixinProperties {
  8849. /**
  8850. * The id of the currently active filter.
  8851. *
  8852. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html#activeFilterId)
  8853. */
  8854. activeFilterId?: string;
  8855. /**
  8856. * Specifies how features are placed on the vertical axis (z).
  8857. *
  8858. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html#elevationInfo)
  8859. */
  8860. elevationInfo?: BuildingSceneLayerElevationInfo;
  8861. /**
  8862. * Collection of filters that can be used to show or hide specific features in the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  8863. *
  8864. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html#filters)
  8865. */
  8866. filters?: CollectionProperties<BuildingFilterProperties>;
  8867. /**
  8868. * An array of field names from the service to include with each feature in all sublayers.
  8869. *
  8870. * @default null
  8871. *
  8872. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html#outFields)
  8873. */
  8874. outFields?: string[];
  8875. }
  8876. export interface BuildingSceneLayerElevationInfo {
  8877. /**
  8878. * Defines how features are placed on the vertical axis (z).
  8879. *
  8880. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html#elevationInfo)
  8881. */
  8882. mode: "absolute-height";
  8883. /**
  8884. * An elevation offset, which is added to the vertical position of each feature.
  8885. *
  8886. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html#elevationInfo)
  8887. */
  8888. offset?: number;
  8889. /**
  8890. * The unit for `offset` values.
  8891. *
  8892. * @default meters
  8893. *
  8894. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html#elevationInfo)
  8895. */
  8896. unit?: "feet" | "meters" | "kilometers" | "miles" | "us-feet" | "yards";
  8897. }
  8898. export interface BuildingComponentSublayer extends BuildingSublayer, Loadable {
  8899. }
  8900. export class BuildingComponentSublayer {
  8901. /**
  8902. * The SQL where clause used to filter features on the client.
  8903. *
  8904. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#definitionExpression)
  8905. */
  8906. definitionExpression: string;
  8907. /**
  8908. * Indicates how the layer should display in the [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html) widget.
  8909. *
  8910. * @default show
  8911. *
  8912. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#listMode)
  8913. */
  8914. listMode: "show" | "hide";
  8915. /**
  8916. * An array of field names from the service to include with each feature.
  8917. *
  8918. * @default null
  8919. *
  8920. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#outFields)
  8921. */
  8922. outFields: string[];
  8923. /**
  8924. * Indicates whether to display popups when features in the layer are clicked.
  8925. *
  8926. * @default true
  8927. *
  8928. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#popupEnabled)
  8929. */
  8930. popupEnabled: boolean;
  8931. /**
  8932. * The popup template for the sublayer.
  8933. *
  8934. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#popupTemplate)
  8935. */
  8936. popupTemplate: PopupTemplate;
  8937. /**
  8938. * The renderer assigned to the sublayer.
  8939. *
  8940. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#renderer)
  8941. */
  8942. renderer: Renderer;
  8943. readonly type: "building-component";
  8944. /**
  8945. * BuildingComponentSublayers contain 3D Object features representing building components like doors, pipes or AC units.
  8946. *
  8947. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html)
  8948. */
  8949. constructor(properties?: BuildingComponentSublayerProperties);
  8950. /**
  8951. * Creates a default popup template for the layer, populated with all the fields of the layer.
  8952. *
  8953. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#createPopupTemplate)
  8954. */
  8955. createPopupTemplate(options?: CreatePopupTemplateOptions): PopupTemplate;
  8956. /**
  8957. * Creates a query object that can be used to fetch features that satisfy the component sublayer's current [definition expression](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#definitionExpression).
  8958. *
  8959. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#createQuery)
  8960. */
  8961. createQuery(): Query;
  8962. /**
  8963. * Returns the [Field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html) instance for a field name (case-insensitive).
  8964. *
  8965. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#getField)
  8966. */
  8967. getField(fieldName: string): Field;
  8968. /**
  8969. * Returns the [Domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Domain.html) associated with the given field name.
  8970. *
  8971. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#getFieldDomain)
  8972. */
  8973. getFieldDomain(fieldName: string, options?: BuildingComponentSublayerGetFieldDomainOptions): Domain;
  8974. /**
  8975. * Gets field usage information.
  8976. *
  8977. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#getFieldUsageInfo)
  8978. */
  8979. getFieldUsageInfo(fieldName: string): any;
  8980. /**
  8981. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the associated feature service and returns the 2D [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) of features that satisfy the query.
  8982. *
  8983. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the associated feature service and returns the 2D [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) of features that satisfy the query. At the moment the 3D Extent can be returned by using [BuildingComponentSublayerView.queryExtent()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-BuildingComponentSublayerView.html#queryExtent), but this will return the 3D extent only for features currently in the view. The query succeeds only if the BuildingSceneLayer has an associated feature layer. If an associated feature layer is not available, then an error with the name `buildingscenelayer:query-not-available` is thrown. Read more about queries in the Querying section of the BuildingSceneLayer class description. [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#queryExtent)
  8984. */
  8985. queryExtent(query?: Query | QueryProperties, options?: BuildingComponentSublayerQueryExtentOptions): Promise<any>;
  8986. /**
  8987. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the associated feature service and returns the number of features that satisfy the query.
  8988. *
  8989. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the associated feature service and returns the number of features that satisfy the query. The query succeeds only if the layer's `supportsLayerQuery` capability is enabled. Use the [getFieldUsageInfo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#getFieldUsageInfo) method to check if the layer supports queries. If querying is not enabled, then an error with the name `buildingscenelayer:query-not-available` is thrown. Read more about queries in the Querying section of the BuildingSceneLayer class description. [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#queryFeatureCount)
  8990. */
  8991. queryFeatureCount(query?: Query | QueryProperties, options?: BuildingComponentSublayerQueryFeatureCountOptions): Promise<number>;
  8992. /**
  8993. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the associated feature service and returns a [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html).
  8994. *
  8995. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the associated feature service and returns a [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html). The query succeeds only if the layer's `supportsLayerQuery` capability is enabled. Use the [getFieldUsageInfo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#getFieldUsageInfo) method to check if the layer supports queries. If querying is not enabled, then an error with the name `buildingscenelayer:query-not-available` is thrown. Read more about queries in the Querying section of the BuildingSceneLayer class description. [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#queryFeatures)
  8996. */
  8997. queryFeatures(query?: Query | QueryProperties, options?: BuildingComponentSublayerQueryFeaturesOptions): Promise<FeatureSet>;
  8998. /**
  8999. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the associated feature service and returns an array of ObjectIDs of the features that satisfy the input query.
  9000. *
  9001. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the associated feature service and returns an array of ObjectIDs of the features that satisfy the input query. The query succeeds only if the layer's `supportsLayerQuery` capability is enabled. Use the [getFieldUsageInfo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#getFieldUsageInfo) method to check if the layer supports queries. If querying is not enabled, then an error with the name `buildingscenelayer:query-not-available` is thrown. Read more about queries in the Querying section of the SceneLayer class description. [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#queryObjectIds)
  9002. */
  9003. queryObjectIds(query?: Query | QueryProperties, options?: BuildingComponentSublayerQueryObjectIdsOptions): Promise<number[]>;
  9004. static fromJSON(json: any): BuildingComponentSublayer;
  9005. }
  9006. /** @deprecated Import the BuildingComponentSublayer class instead. */
  9007. export type BuildingComponentSublayerConstructor = typeof BuildingComponentSublayer;
  9008. interface BuildingComponentSublayerProperties extends BuildingSublayerProperties, LoadableProperties {
  9009. /**
  9010. * The SQL where clause used to filter features on the client.
  9011. *
  9012. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#definitionExpression)
  9013. */
  9014. definitionExpression?: string;
  9015. /**
  9016. * Indicates how the layer should display in the [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html) widget.
  9017. *
  9018. * @default show
  9019. *
  9020. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#listMode)
  9021. */
  9022. listMode?: "show" | "hide";
  9023. /**
  9024. * An array of field names from the service to include with each feature.
  9025. *
  9026. * @default null
  9027. *
  9028. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#outFields)
  9029. */
  9030. outFields?: string[];
  9031. /**
  9032. * Indicates whether to display popups when features in the layer are clicked.
  9033. *
  9034. * @default true
  9035. *
  9036. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#popupEnabled)
  9037. */
  9038. popupEnabled?: boolean;
  9039. /**
  9040. * The popup template for the sublayer.
  9041. *
  9042. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#popupTemplate)
  9043. */
  9044. popupTemplate?: PopupTemplateProperties;
  9045. /**
  9046. * The renderer assigned to the sublayer.
  9047. *
  9048. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#renderer)
  9049. */
  9050. renderer?: RendererProperties;
  9051. }
  9052. export interface BuildingComponentSublayerGetFieldDomainOptions {
  9053. /**
  9054. * The feature to which the [Domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Domain.html) is assigned.
  9055. *
  9056. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#getFieldDomain)
  9057. */
  9058. feature: Graphic;
  9059. }
  9060. export interface BuildingComponentSublayerQueryExtentOptions {
  9061. /**
  9062. * Signal object that can be used to abort the asynchronous task.
  9063. *
  9064. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#queryExtent)
  9065. */
  9066. signal?: AbortSignal;
  9067. }
  9068. export interface BuildingComponentSublayerQueryFeatureCountOptions {
  9069. /**
  9070. * Signal object that can be used to abort the asynchronous task.
  9071. *
  9072. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#queryFeatureCount)
  9073. */
  9074. signal?: AbortSignal;
  9075. }
  9076. export interface BuildingComponentSublayerQueryFeaturesOptions {
  9077. /**
  9078. * Signal object that can be used to abort the asynchronous task.
  9079. *
  9080. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#queryFeatures)
  9081. */
  9082. signal?: AbortSignal;
  9083. }
  9084. export interface BuildingComponentSublayerQueryObjectIdsOptions {
  9085. /**
  9086. * Signal object that can be used to abort the asynchronous task.
  9087. *
  9088. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#queryObjectIds)
  9089. */
  9090. signal?: AbortSignal;
  9091. }
  9092. export class BuildingGroupSublayer extends BuildingSublayer {
  9093. /**
  9094. * Indicates how the sublayer should display in the [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html) widget.
  9095. *
  9096. * @default show
  9097. *
  9098. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingGroupSublayer.html#listMode)
  9099. */
  9100. listMode: "show" | "hide" | "hide-children";
  9101. /**
  9102. * A [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of sublayers.
  9103. *
  9104. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingGroupSublayer.html#sublayers)
  9105. */
  9106. readonly sublayers: Collection<BuildingGroupSublayer | BuildingComponentSublayer>;
  9107. readonly type: "building-group";
  9108. /**
  9109. * Hierarchical group of [BuildingSceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html) sublayers.
  9110. *
  9111. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingGroupSublayer.html)
  9112. */
  9113. constructor(properties?: BuildingGroupSublayerProperties);
  9114. /**
  9115. * Loads all contained sublayers.
  9116. *
  9117. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingGroupSublayer.html#loadAll)
  9118. */
  9119. loadAll(): Promise<BuildingSceneLayer>;
  9120. static fromJSON(json: any): BuildingGroupSublayer;
  9121. }
  9122. /** @deprecated Import the BuildingGroupSublayer class instead. */
  9123. export type BuildingGroupSublayerConstructor = typeof BuildingGroupSublayer;
  9124. interface BuildingGroupSublayerProperties extends BuildingSublayerProperties {
  9125. /**
  9126. * Indicates how the sublayer should display in the [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html) widget.
  9127. *
  9128. * @default show
  9129. *
  9130. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingGroupSublayer.html#listMode)
  9131. */
  9132. listMode?: "show" | "hide" | "hide-children";
  9133. }
  9134. export interface BuildingSublayer extends Accessor, Identifiable {
  9135. }
  9136. export class BuildingSublayer {
  9137. /**
  9138. * The sublayer's layer id as defined by the Scene Service.
  9139. *
  9140. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingSublayer.html#id)
  9141. */
  9142. readonly id: number;
  9143. /**
  9144. * Indicates if this sublayer is empty.
  9145. *
  9146. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingSublayer.html#isEmpty)
  9147. */
  9148. readonly isEmpty: boolean;
  9149. /**
  9150. * The modelName is a standard name for each sublayer.
  9151. *
  9152. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingSublayer.html#modelName)
  9153. */
  9154. readonly modelName: string;
  9155. /**
  9156. * Opacity of the sublayer.
  9157. *
  9158. * @default 1
  9159. *
  9160. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingSublayer.html#opacity)
  9161. */
  9162. opacity: number;
  9163. /**
  9164. * The title of the sublayer used to identify it in places such as the [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html) and [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) widgets.
  9165. *
  9166. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingSublayer.html#title)
  9167. */
  9168. title: string;
  9169. /**
  9170. * Indicates if the sublayer is visible in the view.
  9171. *
  9172. * @default true
  9173. *
  9174. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingSublayer.html#visible)
  9175. */
  9176. visible: boolean;
  9177. /**
  9178. * BuildingSublayer is the base class for sublayers of a BuildingSceneLayer.
  9179. *
  9180. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingSublayer.html)
  9181. */
  9182. constructor(properties?: BuildingSublayerProperties);
  9183. static fromJSON(json: any): BuildingSublayer;
  9184. }
  9185. /** @deprecated Import the BuildingSublayer class instead. */
  9186. export type BuildingSublayerConstructor = typeof BuildingSublayer;
  9187. interface BuildingSublayerProperties {
  9188. /**
  9189. * Opacity of the sublayer.
  9190. *
  9191. * @default 1
  9192. *
  9193. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingSublayer.html#opacity)
  9194. */
  9195. opacity?: number;
  9196. /**
  9197. * The title of the sublayer used to identify it in places such as the [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html) and [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) widgets.
  9198. *
  9199. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingSublayer.html#title)
  9200. */
  9201. title?: string;
  9202. /**
  9203. * Indicates if the sublayer is visible in the view.
  9204. *
  9205. * @default true
  9206. *
  9207. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingSublayer.html#visible)
  9208. */
  9209. visible?: boolean;
  9210. }
  9211. export interface CSVLayer extends Layer, OrderedLayer, ScaleRangeLayer, TemporalLayer, BlendLayer, FeatureEffectLayer, FeatureReductionLayer, PortalLayer {
  9212. }
  9213. export class CSVLayer {
  9214. /**
  9215. * Describes the layer's supported capabilities.
  9216. *
  9217. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9218. */
  9219. readonly capabilities: CSVLayerCapabilities;
  9220. /**
  9221. * Copyright information for the layer.
  9222. *
  9223. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#copyright)
  9224. */
  9225. copyright: string;
  9226. /**
  9227. * A list of custom parameters appended to the URL of all resources fetched by the layer.
  9228. *
  9229. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#customParameters)
  9230. */
  9231. customParameters: any;
  9232. /**
  9233. * The SQL where clause used to filter features on the client.
  9234. *
  9235. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#definitionExpression)
  9236. */
  9237. definitionExpression: string;
  9238. /**
  9239. * The column delimiter.
  9240. *
  9241. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#delimiter)
  9242. */
  9243. delimiter: string;
  9244. /**
  9245. * The name of the layer's primary display field.
  9246. *
  9247. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#displayField)
  9248. */
  9249. displayField: string;
  9250. /**
  9251. * Specifies how features are placed on the vertical axis (z).
  9252. *
  9253. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#elevationInfo)
  9254. */
  9255. elevationInfo: CSVLayerElevationInfo;
  9256. /**
  9257. * An array of fields in the layer.
  9258. *
  9259. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#fields)
  9260. */
  9261. fields: Field[];
  9262. /**
  9263. * A convenient property that can be used to make case-insensitive lookups for a field by name.
  9264. *
  9265. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#fieldsIndex)
  9266. */
  9267. readonly fieldsIndex: FieldsIndex;
  9268. /**
  9269. * The geometry type of features in the CSVLayer.
  9270. *
  9271. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#geometryType)
  9272. */
  9273. geometryType: "point";
  9274. /**
  9275. * Returns `true` if the layer is loaded from a non-spatial table in a service.
  9276. *
  9277. * @default false
  9278. *
  9279. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#isTable)
  9280. */
  9281. readonly isTable: boolean;
  9282. /**
  9283. * The label definition for this layer, specified as an array of [LabelClass](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html).
  9284. *
  9285. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#labelingInfo)
  9286. */
  9287. labelingInfo: LabelClass[];
  9288. /**
  9289. * Indicates whether to display labels for this layer.
  9290. *
  9291. * @default true
  9292. *
  9293. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#labelsVisible)
  9294. */
  9295. labelsVisible: boolean;
  9296. /**
  9297. * The latitude field name.
  9298. *
  9299. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#latitudeField)
  9300. */
  9301. latitudeField: string;
  9302. /**
  9303. * Indicates whether the layer will be included in the legend.
  9304. *
  9305. * @default true
  9306. *
  9307. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#legendEnabled)
  9308. */
  9309. legendEnabled: boolean;
  9310. /**
  9311. * The longitude field name.
  9312. *
  9313. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#longitudeField)
  9314. */
  9315. longitudeField: string;
  9316. /**
  9317. * The name of an `oid` [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#fields) containing a unique value or identifier for each feature in the layer.
  9318. *
  9319. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#objectIdField)
  9320. */
  9321. objectIdField: string;
  9322. /**
  9323. * An array of field names to include in the CSVLayer.
  9324. *
  9325. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#outFields)
  9326. */
  9327. outFields: string[];
  9328. /**
  9329. * Indicates whether to display popups when features in the layer are clicked.
  9330. *
  9331. * @default true
  9332. *
  9333. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#popupEnabled)
  9334. */
  9335. popupEnabled: boolean;
  9336. /**
  9337. * The popup template for the layer.
  9338. *
  9339. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#popupTemplate)
  9340. */
  9341. popupTemplate: PopupTemplate;
  9342. /**
  9343. * Refresh interval of the layer in minutes.
  9344. *
  9345. * @default 0
  9346. *
  9347. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#refreshInterval)
  9348. */
  9349. refreshInterval: number;
  9350. /**
  9351. * The renderer assigned to the layer.
  9352. *
  9353. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#renderer)
  9354. */
  9355. renderer: Renderer;
  9356. /**
  9357. * Apply perspective scaling to screen-size point symbols in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  9358. *
  9359. * @default true
  9360. *
  9361. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#screenSizePerspectiveEnabled)
  9362. */
  9363. screenSizePerspectiveEnabled: boolean;
  9364. /**
  9365. * The spatial reference of the layer.
  9366. *
  9367. * @default SpatialReference.WGS84
  9368. *
  9369. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#spatialReference)
  9370. */
  9371. spatialReference: SpatialReference;
  9372. readonly type: "csv";
  9373. /**
  9374. * The URL of the CSV file.
  9375. *
  9376. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#url)
  9377. */
  9378. url: string;
  9379. /**
  9380. * The CSVLayer is a point layer based on a CSV file (.csv, .txt).
  9381. *
  9382. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html)
  9383. */
  9384. constructor(properties?: CSVLayerProperties);
  9385. /**
  9386. * Creates a popup template for the layer, populated with all the fields of the layer.
  9387. *
  9388. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#createPopupTemplate)
  9389. */
  9390. createPopupTemplate(options?: CreatePopupTemplateOptions): PopupTemplate;
  9391. /**
  9392. * Creates query parameters that can be used to fetch features that satisfy the layer's current filters, and definitions.
  9393. *
  9394. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#createQuery)
  9395. */
  9396. createQuery(): Query;
  9397. /**
  9398. * Returns the [Field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html) instance for a field name (case-insensitive).
  9399. *
  9400. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#getField)
  9401. */
  9402. getField(fieldName: string): Field;
  9403. /**
  9404. * Returns the [Domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Domain.html) associated with the given field name.
  9405. *
  9406. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#getFieldDomain)
  9407. */
  9408. getFieldDomain(fieldName: string, options?: CSVLayerGetFieldDomainOptions): Domain;
  9409. /**
  9410. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the CSV data and returns the [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) of features that satisfy the query.
  9411. *
  9412. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#queryExtent)
  9413. */
  9414. queryExtent(query?: Query | QueryProperties, options?: CSVLayerQueryExtentOptions): Promise<any>;
  9415. /**
  9416. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the CSV data and returns the number of features that satisfy the query.
  9417. *
  9418. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#queryFeatureCount)
  9419. */
  9420. queryFeatureCount(query?: Query | QueryProperties, options?: CSVLayerQueryFeatureCountOptions): Promise<number>;
  9421. /**
  9422. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the CSV data and returns a [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html), which can be accessed using the `.then()` method once the promise resolves.
  9423. *
  9424. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#queryFeatures)
  9425. */
  9426. queryFeatures(query?: Query | QueryProperties, options?: CSVLayerQueryFeaturesOptions): Promise<FeatureSet>;
  9427. /**
  9428. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the CSV data and returns an array of Object IDs for features that satisfy the input query.
  9429. *
  9430. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#queryObjectIds)
  9431. */
  9432. queryObjectIds(query?: Query | QueryProperties, options?: CSVLayerQueryObjectIdsOptions): Promise<number[]>;
  9433. /**
  9434. * Fetches all the data for the layer.
  9435. *
  9436. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#refresh)
  9437. */
  9438. refresh(): void;
  9439. on(name: "refresh", eventHandler: CSVLayerRefreshEventHandler): IHandle;
  9440. on(name: "layerview-create", eventHandler: CSVLayerLayerviewCreateEventHandler): IHandle;
  9441. on(name: "layerview-create-error", eventHandler: CSVLayerLayerviewCreateErrorEventHandler): IHandle;
  9442. on(name: "layerview-destroy", eventHandler: CSVLayerLayerviewDestroyEventHandler): IHandle;
  9443. static fromJSON(json: any): CSVLayer;
  9444. }
  9445. /** @deprecated Import the CSVLayer class instead. */
  9446. export type CSVLayerConstructor = typeof CSVLayer;
  9447. interface CSVLayerProperties extends LayerProperties, OrderedLayerProperties, ScaleRangeLayerProperties, TemporalLayerProperties, BlendLayerProperties, FeatureEffectLayerProperties, FeatureReductionLayerProperties, PortalLayerProperties {
  9448. /**
  9449. * Copyright information for the layer.
  9450. *
  9451. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#copyright)
  9452. */
  9453. copyright?: string;
  9454. /**
  9455. * A list of custom parameters appended to the URL of all resources fetched by the layer.
  9456. *
  9457. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#customParameters)
  9458. */
  9459. customParameters?: any;
  9460. /**
  9461. * The SQL where clause used to filter features on the client.
  9462. *
  9463. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#definitionExpression)
  9464. */
  9465. definitionExpression?: string;
  9466. /**
  9467. * The column delimiter.
  9468. *
  9469. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#delimiter)
  9470. */
  9471. delimiter?: string;
  9472. /**
  9473. * The name of the layer's primary display field.
  9474. *
  9475. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#displayField)
  9476. */
  9477. displayField?: string;
  9478. /**
  9479. * Specifies how features are placed on the vertical axis (z).
  9480. *
  9481. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#elevationInfo)
  9482. */
  9483. elevationInfo?: CSVLayerElevationInfo;
  9484. /**
  9485. * An array of fields in the layer.
  9486. *
  9487. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#fields)
  9488. */
  9489. fields?: FieldProperties[];
  9490. /**
  9491. * The geometry type of features in the CSVLayer.
  9492. *
  9493. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#geometryType)
  9494. */
  9495. geometryType?: "point";
  9496. /**
  9497. * The label definition for this layer, specified as an array of [LabelClass](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html).
  9498. *
  9499. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#labelingInfo)
  9500. */
  9501. labelingInfo?: LabelClassProperties[];
  9502. /**
  9503. * Indicates whether to display labels for this layer.
  9504. *
  9505. * @default true
  9506. *
  9507. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#labelsVisible)
  9508. */
  9509. labelsVisible?: boolean;
  9510. /**
  9511. * The latitude field name.
  9512. *
  9513. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#latitudeField)
  9514. */
  9515. latitudeField?: string;
  9516. /**
  9517. * Indicates whether the layer will be included in the legend.
  9518. *
  9519. * @default true
  9520. *
  9521. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#legendEnabled)
  9522. */
  9523. legendEnabled?: boolean;
  9524. /**
  9525. * The longitude field name.
  9526. *
  9527. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#longitudeField)
  9528. */
  9529. longitudeField?: string;
  9530. /**
  9531. * The name of an `oid` [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#fields) containing a unique value or identifier for each feature in the layer.
  9532. *
  9533. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#objectIdField)
  9534. */
  9535. objectIdField?: string;
  9536. /**
  9537. * An array of field names to include in the CSVLayer.
  9538. *
  9539. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#outFields)
  9540. */
  9541. outFields?: string[];
  9542. /**
  9543. * Indicates whether to display popups when features in the layer are clicked.
  9544. *
  9545. * @default true
  9546. *
  9547. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#popupEnabled)
  9548. */
  9549. popupEnabled?: boolean;
  9550. /**
  9551. * The popup template for the layer.
  9552. *
  9553. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#popupTemplate)
  9554. */
  9555. popupTemplate?: PopupTemplateProperties;
  9556. /**
  9557. * Refresh interval of the layer in minutes.
  9558. *
  9559. * @default 0
  9560. *
  9561. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#refreshInterval)
  9562. */
  9563. refreshInterval?: number;
  9564. /**
  9565. * The renderer assigned to the layer.
  9566. *
  9567. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#renderer)
  9568. */
  9569. renderer?: RendererProperties;
  9570. /**
  9571. * Apply perspective scaling to screen-size point symbols in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  9572. *
  9573. * @default true
  9574. *
  9575. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#screenSizePerspectiveEnabled)
  9576. */
  9577. screenSizePerspectiveEnabled?: boolean;
  9578. /**
  9579. * The spatial reference of the layer.
  9580. *
  9581. * @default SpatialReference.WGS84
  9582. *
  9583. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#spatialReference)
  9584. */
  9585. spatialReference?: SpatialReferenceProperties;
  9586. /**
  9587. * The URL of the CSV file.
  9588. *
  9589. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#url)
  9590. */
  9591. url?: string;
  9592. }
  9593. export interface CSVLayerCapabilities {
  9594. /**
  9595. * Describes characteristics of the data in the layer.
  9596. *
  9597. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9598. */
  9599. data: CSVLayerCapabilitiesData;
  9600. /**
  9601. * Describes editing capabilities that can be performed on the features in the layer.
  9602. *
  9603. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9604. */
  9605. editing: CSVLayerCapabilitiesEditing;
  9606. /**
  9607. * Describes operations that can be performed on features in the layer.
  9608. *
  9609. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9610. */
  9611. operations: CSVLayerCapabilitiesOperations;
  9612. /**
  9613. * Describes [query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) operations that can be performed on features in the layer.
  9614. *
  9615. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9616. */
  9617. query: CSVLayerCapabilitiesQuery;
  9618. /**
  9619. * Indicates if the layer's query operation supports querying features or records related to features in the layer.
  9620. *
  9621. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9622. */
  9623. queryRelated: CSVLayerCapabilitiesQueryRelated;
  9624. }
  9625. export interface CSVLayerCapabilitiesData {
  9626. /**
  9627. * Indicates if the attachment is enabled on the layer.
  9628. *
  9629. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9630. */
  9631. supportsAttachment: boolean;
  9632. /**
  9633. * Indicates if the features in the layer support m-values.
  9634. *
  9635. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9636. */
  9637. supportsM: boolean;
  9638. /**
  9639. * Indicates if the features in the layer support z-values.
  9640. *
  9641. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9642. */
  9643. supportsZ: boolean;
  9644. }
  9645. export interface CSVLayerCapabilitiesEditing {
  9646. /**
  9647. * Indicates if anonymous users can delete features created by others.
  9648. *
  9649. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9650. */
  9651. supportsDeleteByAnonymous: boolean;
  9652. /**
  9653. * Indicates if logged in users can delete features created by others.
  9654. *
  9655. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9656. */
  9657. supportsDeleteByOthers: boolean;
  9658. /**
  9659. * Indicates if the geometry of the features in the layer can be edited.
  9660. *
  9661. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9662. */
  9663. supportsGeometryUpdate: boolean;
  9664. /**
  9665. * Indicates if the `globalid` values provided by the client are used in [applyEdits](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#applyEdits).
  9666. *
  9667. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9668. */
  9669. supportsGlobalId: boolean;
  9670. /**
  9671. * Indicates if the `rollbackOnFailure` parameter can be set to `true` or `false` when running the synchronizeReplica operation.
  9672. *
  9673. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9674. */
  9675. supportsRollbackOnFailure: boolean;
  9676. /**
  9677. * Indicates if anonymous users can update features created by others.
  9678. *
  9679. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9680. */
  9681. supportsUpdateByAnonymous: boolean;
  9682. /**
  9683. * Indicates if logged in users can update features created by others.
  9684. *
  9685. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9686. */
  9687. supportsUpdateByOthers: boolean;
  9688. /**
  9689. * Indicates if `m-values` must be provided when updating features.
  9690. *
  9691. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9692. */
  9693. supportsUpdateWithoutM: boolean;
  9694. /**
  9695. * Indicates if the layer supports uploading attachments by [UploadId](https://developers.arcgis.com/rest/services-reference/item.htm).
  9696. *
  9697. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9698. */
  9699. supportsUploadWithItemId: boolean;
  9700. }
  9701. export interface CSVLayerCapabilitiesOperations {
  9702. /**
  9703. * Indicates if new features can be [added](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#applyEdits) to the layer.
  9704. *
  9705. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9706. */
  9707. supportsAdd: boolean;
  9708. /**
  9709. * Indicates if features can be [deleted](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#applyEdits) from the layer.
  9710. *
  9711. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9712. */
  9713. supportsDelete: boolean;
  9714. /**
  9715. * Indicates if features in the layer can be [updated](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#applyEdits).
  9716. *
  9717. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9718. */
  9719. supportsUpdate: boolean;
  9720. /**
  9721. * Indicates if features in the layer can be [edited](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#applyEdits).
  9722. *
  9723. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9724. */
  9725. supportsEditing: boolean;
  9726. /**
  9727. * Indicates if values of one or more field values in the layer can be updated.
  9728. *
  9729. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9730. */
  9731. supportsCalculate: boolean;
  9732. /**
  9733. * Indicates if features in the layer can be [queried](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#queryFeatures).
  9734. *
  9735. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9736. */
  9737. supportsQuery: boolean;
  9738. /**
  9739. * Indicates if the layer supports [REST API queryAttachments](https://developers.arcgis.com/rest/services-reference/query-attachments-feature-service-layer-.htm) operation.
  9740. *
  9741. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9742. */
  9743. supportsQueryAttachments: boolean;
  9744. /**
  9745. * Indicates if the layer supports a SQL-92 expression or where clause.
  9746. *
  9747. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9748. */
  9749. supportsValidateSql: boolean;
  9750. /**
  9751. * Indicates if resized attachments are supported in the layer.
  9752. *
  9753. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9754. */
  9755. supportsResizeAttachments: boolean;
  9756. }
  9757. export interface CSVLayerCapabilitiesQuery {
  9758. /**
  9759. * Indicates if the geometry centroid associated with each polygon feature can be returned.
  9760. *
  9761. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9762. */
  9763. supportsCentroid: boolean;
  9764. /**
  9765. * Indicates if the layer's query operation supports a buffer distance for input geometries.
  9766. *
  9767. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9768. */
  9769. supportsDistance: boolean;
  9770. /**
  9771. * Indicates if the layer supports queries for distinct values based on fields specified in the [outFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#outFields).
  9772. *
  9773. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9774. */
  9775. supportsDistinct: boolean;
  9776. /**
  9777. * Indicates if the query operation supports `disjoint` [spatial relationship](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#spatialRelationship).
  9778. *
  9779. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9780. */
  9781. supportsDisjointSpatialRelationship: boolean;
  9782. /**
  9783. * Indicates if the layer's query response includes the extent of features.
  9784. *
  9785. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9786. */
  9787. supportsExtent: boolean;
  9788. /**
  9789. * Indicates if the layer's query response contains geometry attributes, including shape area and length attributes.
  9790. *
  9791. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9792. */
  9793. supportsGeometryProperties: boolean;
  9794. /**
  9795. * Indicates if the layer supports the [having](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#having) clause on the service.
  9796. *
  9797. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9798. */
  9799. supportsHavingClause: boolean;
  9800. /**
  9801. * Indicates if features returned in the query response can be ordered by one or more fields.
  9802. *
  9803. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9804. */
  9805. supportsOrderBy: boolean;
  9806. /**
  9807. * Indicates if the query response supports pagination.
  9808. *
  9809. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9810. */
  9811. supportsPagination: boolean;
  9812. /**
  9813. * Indicates if the layer supports [percentile statisticType](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-StatisticDefinition.html#statisticType).
  9814. *
  9815. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9816. */
  9817. supportsPercentileStatistics: boolean;
  9818. /**
  9819. * Indicates if the query response includes the [query geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html#queryGeometry).
  9820. *
  9821. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9822. */
  9823. supportsQueryGeometry: boolean;
  9824. /**
  9825. * Indicates if the query operation supports the projection of geometries onto a virtual grid.
  9826. *
  9827. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9828. */
  9829. supportsQuantization: boolean;
  9830. /**
  9831. * Indicates if the query operation supports quantization designed to be used in edit mode (highest resolution at the given spatial reference).
  9832. *
  9833. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9834. */
  9835. supportsQuantizationEditMode: boolean;
  9836. /**
  9837. * Indicates if the number of features returned by the query operation can be controlled.
  9838. *
  9839. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9840. */
  9841. supportsResultType: boolean;
  9842. /**
  9843. * Indicates if the query operation supports SQL expressions.
  9844. *
  9845. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9846. */
  9847. supportsSqlExpression: boolean;
  9848. /**
  9849. * Indicates if the query operation supports using standardized queries.
  9850. *
  9851. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9852. */
  9853. supportsStandardizedQueriesOnly: boolean;
  9854. /**
  9855. * Indicates if the layer supports field-based statistical functions.
  9856. *
  9857. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9858. */
  9859. supportsStatistics: boolean;
  9860. /**
  9861. * Indicates if the layer supports historic moment query.
  9862. *
  9863. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9864. */
  9865. supportsHistoricMoment: boolean;
  9866. }
  9867. export interface CSVLayerCapabilitiesQueryRelated {
  9868. /**
  9869. * Indicates if the layer's query response includes the number of features or records related to features in the layer.
  9870. *
  9871. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9872. */
  9873. supportsCount: boolean;
  9874. /**
  9875. * Indicates if the related features or records returned in the query response can be ordered by one or more fields.
  9876. *
  9877. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9878. */
  9879. supportsOrderBy: boolean;
  9880. /**
  9881. * Indicates if the query response supports pagination for related features or records.
  9882. *
  9883. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#capabilities)
  9884. */
  9885. supportsPagination: boolean;
  9886. }
  9887. export interface CSVLayerElevationInfo {
  9888. /**
  9889. * Defines how the feature is placed with respect to the terrain surface or 3D objects in the scene.
  9890. *
  9891. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#elevationInfo)
  9892. */
  9893. mode: "on-the-ground" | "relative-to-ground" | "absolute-height" | "relative-to-scene";
  9894. /**
  9895. * An elevation offset, which is added to the vertical position of the feature.
  9896. *
  9897. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#elevationInfo)
  9898. */
  9899. offset?: number;
  9900. /**
  9901. * Defines how to override a feature's Z-value based on its attributes.
  9902. *
  9903. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#elevationInfo)
  9904. */
  9905. featureExpressionInfo?: CSVLayerElevationInfoFeatureExpressionInfo;
  9906. /**
  9907. * The unit for `featureExpressionInfo` and `offset` values.
  9908. *
  9909. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#elevationInfo)
  9910. */
  9911. unit?: "feet" | "meters" | "kilometers" | "miles" | "us-feet" | "yards";
  9912. }
  9913. export interface CSVLayerElevationInfoFeatureExpressionInfo {
  9914. /**
  9915. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Feature Z Profile](https://developers.arcgis.com/javascript/latest/arcade/#z-values).
  9916. *
  9917. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#elevationInfo)
  9918. */
  9919. expression?: string;
  9920. }
  9921. export interface CSVLayerGetFieldDomainOptions {
  9922. /**
  9923. * The feature to which the [Domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Domain.html) is assigned.
  9924. *
  9925. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#getFieldDomain)
  9926. */
  9927. feature: Graphic;
  9928. }
  9929. export interface CSVLayerQueryExtentOptions {
  9930. /**
  9931. * Signal object that can be used to abort the asynchronous task.
  9932. *
  9933. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#queryExtent)
  9934. */
  9935. signal?: AbortSignal;
  9936. }
  9937. export interface CSVLayerQueryFeatureCountOptions {
  9938. /**
  9939. * Signal object that can be used to abort the asynchronous task.
  9940. *
  9941. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#queryFeatureCount)
  9942. */
  9943. signal?: AbortSignal;
  9944. }
  9945. export interface CSVLayerQueryFeaturesOptions {
  9946. /**
  9947. * Signal object that can be used to abort the asynchronous task.
  9948. *
  9949. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#queryFeatures)
  9950. */
  9951. signal?: AbortSignal;
  9952. }
  9953. export interface CSVLayerQueryObjectIdsOptions {
  9954. /**
  9955. * Signal object that can be used to abort the asynchronous task.
  9956. *
  9957. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#queryObjectIds)
  9958. */
  9959. signal?: AbortSignal;
  9960. }
  9961. export interface CSVLayerLayerviewCreateErrorEvent {
  9962. error: Error;
  9963. view: View;
  9964. }
  9965. export interface CSVLayerLayerviewCreateEvent {
  9966. layerView: LayerView;
  9967. view: View;
  9968. }
  9969. export interface CSVLayerLayerviewDestroyEvent {
  9970. layerView: LayerView;
  9971. view: View;
  9972. }
  9973. export interface CSVLayerRefreshEvent {
  9974. dataChanged: boolean;
  9975. }
  9976. export class DimensionLayer extends Layer {
  9977. /**
  9978. * The analysis object that stores the dimension shapes.
  9979. *
  9980. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-DimensionLayer.html#source)
  9981. */
  9982. source: DimensionAnalysis;
  9983. /**
  9984. * The spatial reference of the layer.
  9985. *
  9986. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-DimensionLayer.html#spatialReference)
  9987. */
  9988. readonly spatialReference: SpatialReference;
  9989. /**
  9990. * The style defines how the dimension objects of this layer are displayed.
  9991. *
  9992. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-DimensionLayer.html#style)
  9993. */
  9994. style: DimensionSimpleStyle;
  9995. readonly type: "dimension";
  9996. /**
  9997. * The dimension layer displays measurement annotations of lengths and distances in a 3D [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  9998. *
  9999. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-DimensionLayer.html)
  10000. */
  10001. constructor(properties?: DimensionLayerProperties);
  10002. }
  10003. /** @deprecated Import the DimensionLayer class instead. */
  10004. export type DimensionLayerConstructor = typeof DimensionLayer;
  10005. interface DimensionLayerProperties extends LayerProperties {
  10006. /**
  10007. * The analysis object that stores the dimension shapes.
  10008. *
  10009. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-DimensionLayer.html#source)
  10010. */
  10011. source?: DimensionAnalysisProperties;
  10012. /**
  10013. * The style defines how the dimension objects of this layer are displayed.
  10014. *
  10015. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-DimensionLayer.html#style)
  10016. */
  10017. style?: DimensionSimpleStyleProperties;
  10018. }
  10019. export interface ElevationLayer extends Layer, ArcGISCachedService, PortalLayer {
  10020. }
  10021. export class ElevationLayer {
  10022. /**
  10023. * The [image service's metadata JSON](https://developers.arcgis.com/rest/services-reference/image-service.htm) exposed by the ArcGIS REST API.
  10024. *
  10025. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html#sourceJSON)
  10026. */
  10027. sourceJSON: any;
  10028. readonly type: "elevation";
  10029. /**
  10030. * URL pointing to the Elevation layer resource on an ArcGIS Image Server.
  10031. *
  10032. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html#url)
  10033. */
  10034. url: string;
  10035. /**
  10036. * ElevationLayer is a tile layer used for rendering elevations in [SceneViews](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  10037. *
  10038. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html)
  10039. */
  10040. constructor(properties?: ElevationLayerProperties);
  10041. /**
  10042. * Creates an elevation sampler for the given [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) by querying the service layer for elevation data and caching it so values may be sampled quickly afterwards.
  10043. *
  10044. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html#createElevationSampler)
  10045. */
  10046. createElevationSampler(extent: Extent, options?: ElevationLayerCreateElevationSamplerOptions): Promise<ElevationSampler>;
  10047. /**
  10048. * Requests a tile from the service and decodes the data into a linear array of elevation values.
  10049. *
  10050. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html#fetchTile)
  10051. */
  10052. fetchTile(level: number, row: number, column: number, options?: ElevationLayerFetchTileOptions): Promise<ElevationTileData>;
  10053. /**
  10054. * This method returns a URL to a tile for a given level, row and column.
  10055. *
  10056. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html#getTileUrl)
  10057. */
  10058. getTileUrl(level: number, row: number, col: number): string;
  10059. /**
  10060. * Queries the service layer for elevation values for the given geometry.
  10061. *
  10062. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html#queryElevation)
  10063. */
  10064. queryElevation(geometry: Point | Multipoint | Polyline, options?: ElevationLayerQueryElevationOptions): Promise<ElevationLayerElevationQueryResult>;
  10065. static fromJSON(json: any): ElevationLayer;
  10066. }
  10067. /** @deprecated Import the ElevationLayer class instead. */
  10068. export type ElevationLayerConstructor = typeof ElevationLayer;
  10069. interface ElevationLayerProperties extends LayerProperties, ArcGISCachedServiceProperties, PortalLayerProperties {
  10070. /**
  10071. * The [image service's metadata JSON](https://developers.arcgis.com/rest/services-reference/image-service.htm) exposed by the ArcGIS REST API.
  10072. *
  10073. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html#sourceJSON)
  10074. */
  10075. sourceJSON?: any;
  10076. /**
  10077. * URL pointing to the Elevation layer resource on an ArcGIS Image Server.
  10078. *
  10079. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html#url)
  10080. */
  10081. url?: string;
  10082. }
  10083. export interface ElevationLayerCreateElevationSamplerOptions {
  10084. /**
  10085. * Controls the horizontal resolution (cell size) in meters from which elevation data is sampled (defaults to `auto`).
  10086. *
  10087. * @default auto
  10088. *
  10089. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html#createElevationSampler)
  10090. */
  10091. demResolution?: number | string;
  10092. /**
  10093. * The value to use when there is no data available.
  10094. *
  10095. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html#createElevationSampler)
  10096. */
  10097. noDataValue?: number;
  10098. /**
  10099. * An [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) to abort the request.
  10100. *
  10101. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html#createElevationSampler)
  10102. */
  10103. signal?: AbortSignal;
  10104. }
  10105. export interface ElevationLayerFetchTileOptions {
  10106. /**
  10107. * The value representing pixels in the tile that don't contain an elevation value.
  10108. *
  10109. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html#fetchTile)
  10110. */
  10111. noDataValue?: number;
  10112. /**
  10113. * An [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) to abort the request.
  10114. *
  10115. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html#fetchTile)
  10116. */
  10117. signal?: AbortSignal;
  10118. }
  10119. export interface ElevationLayerQueryElevationOptions {
  10120. /**
  10121. * Controls the horizontal resolution (cell size) in meters from which elevation data is sampled (defaults to `auto`).
  10122. *
  10123. * @default auto
  10124. *
  10125. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html#queryElevation)
  10126. */
  10127. demResolution?: number | string;
  10128. /**
  10129. * Indicates whether to return additional sample information for each coordinate.
  10130. *
  10131. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html#queryElevation)
  10132. */
  10133. returnSampleInfo?: boolean;
  10134. /**
  10135. * The value to use when there is no data available.
  10136. *
  10137. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html#queryElevation)
  10138. */
  10139. noDataValue?: number;
  10140. /**
  10141. * An [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) to abort the request.
  10142. *
  10143. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html#queryElevation)
  10144. */
  10145. signal?: AbortSignal;
  10146. }
  10147. /**
  10148. * Object returned when [queryElevation()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html#queryElevation) promise resolves:
  10149. *
  10150. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html#ElevationQueryResult)
  10151. */
  10152. export interface ElevationLayerElevationQueryResult {
  10153. /**
  10154. * The geometry with sampled z-values.
  10155. *
  10156. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html#ElevationQueryResult)
  10157. */
  10158. geometry: Point | Multipoint | Polyline;
  10159. /**
  10160. * Contains additional information about how the geometry was sampled.
  10161. *
  10162. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html#ElevationQueryResult)
  10163. */
  10164. sampleInfo?: ElevationLayerElevationQueryResultSampleInfo[];
  10165. /**
  10166. * The value used when there is no data available.
  10167. *
  10168. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html#ElevationQueryResult)
  10169. */
  10170. noDataValue: number;
  10171. }
  10172. export interface ElevationLayerElevationQueryResultSampleInfo {
  10173. /**
  10174. * The resolution at which the z-value was sampled.
  10175. *
  10176. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html#ElevationQueryResult)
  10177. */
  10178. demResolution: number;
  10179. }
  10180. export interface FeatureLayer extends Layer, OrderedLayer, PortalLayer, ScaleRangeLayer, TemporalLayer, BlendLayer, CustomParametersMixin, APIKeyMixin, FeatureEffectLayer, FeatureReductionLayer, PublishableLayer, FeatureLayerBase {
  10181. }
  10182. export class FeatureLayer {
  10183. /**
  10184. * Describes the layer's supported capabilities.
  10185. *
  10186. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  10187. */
  10188. readonly capabilities: FeatureLayerCapabilities;
  10189. /**
  10190. * This property is set by the service publisher and indicates that dates should be considered without the local timezone.
  10191. *
  10192. * @default false
  10193. *
  10194. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#datesInUnknownTimezone)
  10195. */
  10196. readonly datesInUnknownTimezone: boolean;
  10197. /**
  10198. * An object that allows you to create a dynamic layer with data either from map service sublayers or data from a registered workspace.
  10199. *
  10200. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#dynamicDataSource)
  10201. */
  10202. dynamicDataSource: DynamicMapLayer | DynamicDataLayer;
  10203. /**
  10204. * Determines if the layer is editable.
  10205. *
  10206. * @default true
  10207. *
  10208. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#editingEnabled)
  10209. */
  10210. editingEnabled: boolean;
  10211. /**
  10212. * An array of fields in the layer.
  10213. *
  10214. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#fields)
  10215. */
  10216. fields: Field[];
  10217. /**
  10218. * A convenient property that can be used to make case-insensitive lookups for a field by name.
  10219. *
  10220. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#fieldsIndex)
  10221. */
  10222. readonly fieldsIndex: FieldsIndex;
  10223. /**
  10224. * The [template](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html) used in an associated layer's [FeatureForm](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html).
  10225. *
  10226. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#formTemplate)
  10227. */
  10228. formTemplate: FormTemplate;
  10229. /**
  10230. * The label definition for this layer, specified as an array of [LabelClass](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html).
  10231. *
  10232. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#labelingInfo)
  10233. */
  10234. labelingInfo: LabelClass[];
  10235. /**
  10236. * Indicates whether to display labels for this layer.
  10237. *
  10238. * @default true
  10239. *
  10240. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#labelsVisible)
  10241. */
  10242. labelsVisible: boolean;
  10243. /**
  10244. * Indicates whether the layer will be included in the legend.
  10245. *
  10246. * @default true
  10247. *
  10248. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#legendEnabled)
  10249. */
  10250. legendEnabled: boolean;
  10251. /**
  10252. * An array of field names from the service to include with each feature.
  10253. *
  10254. * @default null
  10255. *
  10256. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#outFields)
  10257. */
  10258. outFields: string[];
  10259. /**
  10260. * Indicates whether to display popups when features in the layer are clicked.
  10261. *
  10262. * @default true
  10263. *
  10264. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#popupEnabled)
  10265. */
  10266. popupEnabled: boolean;
  10267. /**
  10268. * The popup template for the layer.
  10269. *
  10270. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#popupTemplate)
  10271. */
  10272. popupTemplate: PopupTemplate;
  10273. /**
  10274. * Refresh interval of the layer in minutes.
  10275. *
  10276. * @default 0
  10277. *
  10278. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#refreshInterval)
  10279. */
  10280. refreshInterval: number;
  10281. /**
  10282. * Array of [relationships](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html) set up for the layer.
  10283. *
  10284. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#relationships)
  10285. */
  10286. readonly relationships: Relationship[];
  10287. /**
  10288. * The renderer assigned to the layer.
  10289. *
  10290. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#renderer)
  10291. */
  10292. renderer: Renderer;
  10293. /**
  10294. * Apply perspective scaling to screen-size point symbols in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  10295. *
  10296. * @default true
  10297. *
  10298. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#screenSizePerspectiveEnabled)
  10299. */
  10300. screenSizePerspectiveEnabled: boolean;
  10301. /**
  10302. * A collection of [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) objects used to create a FeatureLayer.
  10303. *
  10304. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#source)
  10305. */
  10306. source: Collection<Graphic>;
  10307. /**
  10308. * An array of feature templates defined in the feature layer.
  10309. *
  10310. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#templates)
  10311. */
  10312. templates: FeatureTemplate[];
  10313. readonly type: "feature";
  10314. /**
  10315. * The name of the field holding the type ID or subtypes for the features.
  10316. *
  10317. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#typeIdField)
  10318. */
  10319. typeIdField: string;
  10320. /**
  10321. * An array of subtypes defined in the feature service exposed by ArcGIS REST API.
  10322. *
  10323. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#types)
  10324. */
  10325. types: FeatureType[];
  10326. /**
  10327. * A FeatureLayer is a single layer that can be created from a [Map Service](https://enterprise.arcgis.com/en/server/latest/publish-services/windows/what-is-a-map-service.htm) or [Feature Service](https://enterprise.arcgis.com/en/server/latest/publish-services/windows/what-is-a-feature-service-.htm); ArcGIS Online or ArcGIS Enterprise portal items; or from an array of client-side features.
  10328. *
  10329. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html)
  10330. */
  10331. constructor(properties?: FeatureLayerProperties);
  10332. /**
  10333. * Adds an attachment to a feature.
  10334. *
  10335. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#addAttachment)
  10336. */
  10337. addAttachment(feature: Graphic, attachment: HTMLFormElement | FormData): Promise<FeatureEditResult>;
  10338. /**
  10339. * Applies edits to features in a layer.
  10340. *
  10341. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits)
  10342. */
  10343. applyEdits(edits: FeatureLayerApplyEditsEdits, options?: FeatureLayerApplyEditsOptions): Promise<EditsResult>;
  10344. /**
  10345. * Creates a deep clone of this object.
  10346. *
  10347. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#clone)
  10348. */
  10349. clone(): this;
  10350. /**
  10351. * Creates a popup template for the layer, populated with all the fields of the layer.
  10352. *
  10353. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#createPopupTemplate)
  10354. */
  10355. createPopupTemplate(options?: CreatePopupTemplateOptions): PopupTemplate;
  10356. /**
  10357. * Creates query parameter object that can be used to fetch features that satisfy the layer's configurations such as [definitionExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#definitionExpression), [gdbVersion](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#gdbVersion), and [historicMoment](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#historicMoment).
  10358. *
  10359. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#createQuery)
  10360. */
  10361. createQuery(): Query;
  10362. /**
  10363. * Deletes attachments from a feature.
  10364. *
  10365. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#deleteAttachments)
  10366. */
  10367. deleteAttachments(feature: Graphic, attachmentIds: number[]): Promise<FeatureEditResult[]>;
  10368. /**
  10369. * Returns a [FeatureType](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureType.html) describing the feature's type.
  10370. *
  10371. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#getFeatureType)
  10372. */
  10373. getFeatureType(feature: Graphic): FeatureType;
  10374. /**
  10375. * Returns the [Field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html) instance for a field name (case-insensitive).
  10376. *
  10377. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#getField)
  10378. */
  10379. getField(fieldName: string): Field;
  10380. /**
  10381. * Returns the [Domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Domain.html) associated with the given field name.
  10382. *
  10383. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#getFieldDomain)
  10384. */
  10385. getFieldDomain(fieldName: string, options?: FeatureLayerGetFieldDomainOptions): Domain;
  10386. /**
  10387. * Query information about attachments associated with features.
  10388. *
  10389. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryAttachments)
  10390. */
  10391. queryAttachments(attachmentQuery: AttachmentQuery | AttachmentQueryProperties, options?: FeatureLayerQueryAttachmentsOptions): Promise<any>;
  10392. /**
  10393. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the feature service and returns the [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) of features that satisfy the query.
  10394. *
  10395. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryExtent)
  10396. */
  10397. queryExtent(query?: Query | QueryProperties, options?: FeatureLayerQueryExtentOptions): Promise<any>;
  10398. /**
  10399. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the feature service and returns the number of features that satisfy the query.
  10400. *
  10401. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryFeatureCount)
  10402. */
  10403. queryFeatureCount(query?: Query | QueryProperties, options?: FeatureLayerQueryFeatureCountOptions): Promise<number>;
  10404. /**
  10405. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the feature service and returns a [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html), which can be accessed using the `.then()` method once the promise resolves.
  10406. *
  10407. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryFeatures)
  10408. */
  10409. queryFeatures(query?: Query | QueryProperties, options?: FeatureLayerQueryFeaturesOptions): Promise<FeatureSet>;
  10410. /**
  10411. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the feature service and returns an array of Object IDs for features that satisfy the input query.
  10412. *
  10413. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryObjectIds)
  10414. */
  10415. queryObjectIds(query?: Query | QueryProperties, options?: FeatureLayerQueryObjectIdsOptions): Promise<number[]>;
  10416. /**
  10417. * Executes a [RelationshipQuery](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html) against the feature service and returns [FeatureSets](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html) grouped by source layer or table objectIds.
  10418. *
  10419. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryRelatedFeatures)
  10420. */
  10421. queryRelatedFeatures(relationshipQuery: RelationshipQuery | RelationshipQueryProperties, options?: FeatureLayerQueryRelatedFeaturesOptions): Promise<any>;
  10422. /**
  10423. * Executes a [RelationshipQuery](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html) against the feature service and when resolved, it returns an `object` containing key value pairs.
  10424. *
  10425. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryRelatedFeaturesCount)
  10426. */
  10427. queryRelatedFeaturesCount(relationshipQuery: RelationshipQuery | RelationshipQueryProperties, options?: FeatureLayerQueryRelatedFeaturesCountOptions): Promise<any>;
  10428. /**
  10429. * Executes a [TopFeaturesQuery](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html) against a feature service and returns the count of features or records that satisfy the query.
  10430. *
  10431. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryTopFeatureCount)
  10432. */
  10433. queryTopFeatureCount(topFeaturesQuery: TopFeaturesQuery | TopFeaturesQueryProperties, options?: FeatureLayerQueryTopFeatureCountOptions): Promise<number>;
  10434. /**
  10435. * Executes a [TopFeaturesQuery](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html) against a feature service and returns a [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html) once the promise resolves.
  10436. *
  10437. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryTopFeatures)
  10438. */
  10439. queryTopFeatures(topFeaturesQuery: TopFeaturesQuery | TopFeaturesQueryProperties, options?: FeatureLayerQueryTopFeaturesOptions): Promise<FeatureSet>;
  10440. /**
  10441. * Executes a [TopFeaturesQuery](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html) against a feature service and returns the [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) of features that satisfy the query.
  10442. *
  10443. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryTopFeaturesExtent)
  10444. */
  10445. queryTopFeaturesExtent(topFeaturesQuery: TopFeaturesQuery | TopFeaturesQueryProperties, options?: FeatureLayerQueryTopFeaturesExtentOptions): Promise<any>;
  10446. /**
  10447. * Executes a [TopFeaturesQuery](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html) against a feature service and returns an array of Object IDs of features that satisfy the query.
  10448. *
  10449. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryTopObjectIds)
  10450. */
  10451. queryTopObjectIds(topFeaturesQuery: TopFeaturesQuery | TopFeaturesQueryProperties, options?: FeatureLayerQueryTopObjectIdsOptions): Promise<number[]>;
  10452. /**
  10453. * Fetches all the data for the layer.
  10454. *
  10455. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#refresh)
  10456. */
  10457. refresh(): void;
  10458. /**
  10459. * Saves the layer to its existing portal item in the [Portal](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html) authenticated within the user's current session.
  10460. *
  10461. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#save)
  10462. */
  10463. save(options?: FeatureLayerSaveOptions): Promise<PortalItem>;
  10464. /**
  10465. * Saves the layer to a new portal item in the [Portal](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html) authenticated within the user's current session.
  10466. *
  10467. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#saveAs)
  10468. */
  10469. saveAs(portalItem: PortalItem | PortalItemProperties, options?: FeatureLayerSaveAsOptions): Promise<PortalItem>;
  10470. /**
  10471. * Updates an existing attachment for a feature.
  10472. *
  10473. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#updateAttachment)
  10474. */
  10475. updateAttachment(feature: Graphic, attachmentId: number, attachment: HTMLFormElement | FormData): Promise<FeatureEditResult>;
  10476. on(name: "refresh", eventHandler: FeatureLayerRefreshEventHandler): IHandle;
  10477. on(name: "edits", eventHandler: FeatureLayerEditsEventHandler): IHandle;
  10478. on(name: "layerview-create", eventHandler: FeatureLayerLayerviewCreateEventHandler): IHandle;
  10479. on(name: "layerview-create-error", eventHandler: FeatureLayerLayerviewCreateErrorEventHandler): IHandle;
  10480. on(name: "layerview-destroy", eventHandler: FeatureLayerLayerviewDestroyEventHandler): IHandle;
  10481. static fromJSON(json: any): FeatureLayer;
  10482. }
  10483. /** @deprecated Import the FeatureLayer class instead. */
  10484. export type FeatureLayerConstructor = typeof FeatureLayer;
  10485. interface FeatureLayerProperties extends LayerProperties, OrderedLayerProperties, PortalLayerProperties, ScaleRangeLayerProperties, TemporalLayerProperties, BlendLayerProperties, CustomParametersMixinProperties, APIKeyMixinProperties, FeatureEffectLayerProperties, FeatureReductionLayerProperties, PublishableLayerProperties, FeatureLayerBaseProperties {
  10486. /**
  10487. * An object that allows you to create a dynamic layer with data either from map service sublayers or data from a registered workspace.
  10488. *
  10489. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#dynamicDataSource)
  10490. */
  10491. dynamicDataSource?: (DynamicMapLayer & { type: "map-layer" }) | (DynamicDataLayer & { type: "data-layer" });
  10492. /**
  10493. * Determines if the layer is editable.
  10494. *
  10495. * @default true
  10496. *
  10497. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#editingEnabled)
  10498. */
  10499. editingEnabled?: boolean;
  10500. /**
  10501. * An array of fields in the layer.
  10502. *
  10503. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#fields)
  10504. */
  10505. fields?: FieldProperties[];
  10506. /**
  10507. * The [template](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html) used in an associated layer's [FeatureForm](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html).
  10508. *
  10509. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#formTemplate)
  10510. */
  10511. formTemplate?: FormTemplateProperties;
  10512. /**
  10513. * The label definition for this layer, specified as an array of [LabelClass](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html).
  10514. *
  10515. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#labelingInfo)
  10516. */
  10517. labelingInfo?: LabelClassProperties[];
  10518. /**
  10519. * Indicates whether to display labels for this layer.
  10520. *
  10521. * @default true
  10522. *
  10523. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#labelsVisible)
  10524. */
  10525. labelsVisible?: boolean;
  10526. /**
  10527. * Indicates whether the layer will be included in the legend.
  10528. *
  10529. * @default true
  10530. *
  10531. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#legendEnabled)
  10532. */
  10533. legendEnabled?: boolean;
  10534. /**
  10535. * An array of field names from the service to include with each feature.
  10536. *
  10537. * @default null
  10538. *
  10539. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#outFields)
  10540. */
  10541. outFields?: string[];
  10542. /**
  10543. * Indicates whether to display popups when features in the layer are clicked.
  10544. *
  10545. * @default true
  10546. *
  10547. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#popupEnabled)
  10548. */
  10549. popupEnabled?: boolean;
  10550. /**
  10551. * The popup template for the layer.
  10552. *
  10553. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#popupTemplate)
  10554. */
  10555. popupTemplate?: PopupTemplateProperties;
  10556. /**
  10557. * Refresh interval of the layer in minutes.
  10558. *
  10559. * @default 0
  10560. *
  10561. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#refreshInterval)
  10562. */
  10563. refreshInterval?: number;
  10564. /**
  10565. * The renderer assigned to the layer.
  10566. *
  10567. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#renderer)
  10568. */
  10569. renderer?: RendererProperties;
  10570. /**
  10571. * Apply perspective scaling to screen-size point symbols in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  10572. *
  10573. * @default true
  10574. *
  10575. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#screenSizePerspectiveEnabled)
  10576. */
  10577. screenSizePerspectiveEnabled?: boolean;
  10578. /**
  10579. * A collection of [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) objects used to create a FeatureLayer.
  10580. *
  10581. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#source)
  10582. */
  10583. source?: CollectionProperties<GraphicProperties>;
  10584. /**
  10585. * An array of feature templates defined in the feature layer.
  10586. *
  10587. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#templates)
  10588. */
  10589. templates?: FeatureTemplateProperties[];
  10590. /**
  10591. * The name of the field holding the type ID or subtypes for the features.
  10592. *
  10593. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#typeIdField)
  10594. */
  10595. typeIdField?: string;
  10596. /**
  10597. * An array of subtypes defined in the feature service exposed by ArcGIS REST API.
  10598. *
  10599. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#types)
  10600. */
  10601. types?: FeatureTypeProperties[];
  10602. }
  10603. /**
  10604. * AttachmentEdit represents an attachment that can be added, updated or deleted via [applyEdits](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits).
  10605. *
  10606. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#AttachmentEdit)
  10607. */
  10608. export interface AttachmentEdit {
  10609. /**
  10610. * The feature, `objectId` or `globalId` of feature associated with the attachment.
  10611. *
  10612. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#AttachmentEdit)
  10613. */
  10614. feature: Graphic | number | string;
  10615. /**
  10616. * The attachment to be added, updated or deleted.
  10617. *
  10618. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#AttachmentEdit)
  10619. */
  10620. attachment: AttachmentEditAttachment;
  10621. }
  10622. /**
  10623. * Results returned from the [applyEdits](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits) method if the `returnServiceEditsOption` parameter is set to `original-and-current-features`.
  10624. *
  10625. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#EditedFeatureResult)
  10626. */
  10627. export interface EditedFeatureResult {
  10628. /**
  10629. * The layerId of the feature layer where features were edited.
  10630. *
  10631. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#EditedFeatureResult)
  10632. */
  10633. layerId: number;
  10634. /**
  10635. * Object containing all edited features belonging to the specified layer.
  10636. *
  10637. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#EditedFeatureResult)
  10638. */
  10639. editedFeatures: EditedFeatureResultEditedFeatures;
  10640. }
  10641. /**
  10642. * The fields that record who adds or edits data in the feature service and when the edit is made.
  10643. *
  10644. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#EditFieldsInfo)
  10645. */
  10646. export interface EditFieldsInfo {
  10647. /**
  10648. * The name of the field that stores the name of the user who created the feature.
  10649. *
  10650. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#EditFieldsInfo)
  10651. */
  10652. creatorField: string;
  10653. /**
  10654. * The name of the field that stores the date and time the feature was created.
  10655. *
  10656. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#EditFieldsInfo)
  10657. */
  10658. creationDateField: string;
  10659. /**
  10660. * The name of the field that stores the name of the user who last edited the feature.
  10661. *
  10662. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#EditFieldsInfo)
  10663. */
  10664. editorField: string;
  10665. /**
  10666. * The name of the field that stores the date and time the feature was last edited.
  10667. *
  10668. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#EditFieldsInfo)
  10669. */
  10670. editDateField: string;
  10671. }
  10672. /**
  10673. * Specifies information about editing.
  10674. *
  10675. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#EditingInfo)
  10676. */
  10677. export interface EditingInfo {
  10678. /**
  10679. * Indicates the last time the layer was edited.
  10680. *
  10681. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#EditingInfo)
  10682. */
  10683. lastEditDate: Date;
  10684. }
  10685. export interface FeatureLayerEditsEvent {
  10686. addedAttachments: FeatureEditResult[];
  10687. addedFeatures: FeatureEditResult[];
  10688. deletedAttachments: FeatureEditResult[];
  10689. deletedFeatures: FeatureEditResult[];
  10690. editedFeatures: EditedFeatureResult;
  10691. updatedAttachments: FeatureEditResult[];
  10692. updatedFeatures: FeatureEditResult[];
  10693. }
  10694. /**
  10695. * Results returned from the [applyEdits](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits) method.
  10696. *
  10697. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#EditsResult)
  10698. */
  10699. export interface EditsResult {
  10700. /**
  10701. * Result of adding features.
  10702. *
  10703. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#EditsResult)
  10704. */
  10705. addFeatureResults: FeatureEditResult[];
  10706. /**
  10707. * Result of updating features.
  10708. *
  10709. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#EditsResult)
  10710. */
  10711. updateFeatureResults: FeatureEditResult[];
  10712. /**
  10713. * Result of deleting features.
  10714. *
  10715. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#EditsResult)
  10716. */
  10717. deleteFeatureResults: FeatureEditResult[];
  10718. /**
  10719. * Result of adding attachments.
  10720. *
  10721. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#EditsResult)
  10722. */
  10723. addAttachmentResults: FeatureEditResult[];
  10724. /**
  10725. * Result of updating attachments.
  10726. *
  10727. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#EditsResult)
  10728. */
  10729. updateAttachmentResults: FeatureEditResult[];
  10730. /**
  10731. * Result of deleting attachments.
  10732. *
  10733. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#EditsResult)
  10734. */
  10735. deleteAttachmentResults: FeatureEditResult[];
  10736. /**
  10737. * Edited features as result of editing a feature that participates in composite relationships in a database.
  10738. *
  10739. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#EditsResult)
  10740. */
  10741. editedFeatureResults?: EditedFeatureResult[];
  10742. /**
  10743. * The time edits were applied to the feature service.
  10744. *
  10745. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#EditsResult)
  10746. */
  10747. editMoment?: number;
  10748. }
  10749. /**
  10750. * FeatureEditResult represents the result of adding, updating or deleting a feature or an attachment.
  10751. *
  10752. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#FeatureEditResult)
  10753. */
  10754. export interface FeatureEditResult {
  10755. /**
  10756. * The objectId of the feature or the attachmentId of the attachment that was edited.
  10757. *
  10758. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#FeatureEditResult)
  10759. */
  10760. objectId: number;
  10761. /**
  10762. * The globalId of the feature or the attachment that was edited.
  10763. *
  10764. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#FeatureEditResult)
  10765. */
  10766. globalId: string;
  10767. /**
  10768. * If the edit failed, the edit result includes an error.
  10769. *
  10770. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#FeatureEditResult)
  10771. */
  10772. error: FeatureEditResultError;
  10773. }
  10774. export interface FeatureLayerApplyEditsEdits {
  10775. /**
  10776. * An array or a [collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of features to be added.
  10777. *
  10778. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits)
  10779. */
  10780. addFeatures?: Graphic[] | Collection<Graphic>;
  10781. /**
  10782. * An array or a [collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of features to be updated.
  10783. *
  10784. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits)
  10785. */
  10786. updateFeatures?: Graphic[] | Collection<Graphic>;
  10787. /**
  10788. * An array or a [collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of features, or an array of objects with `objectId` or `globalId` of each feature to be deleted.
  10789. *
  10790. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits)
  10791. */
  10792. deleteFeatures?: Graphic[] | Collection<Graphic> | any[];
  10793. /**
  10794. * An array of attachments to be added.
  10795. *
  10796. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits)
  10797. */
  10798. addAttachments?: AttachmentEdit[];
  10799. /**
  10800. * An array of attachments to be updated.
  10801. *
  10802. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits)
  10803. */
  10804. updateAttachments?: AttachmentEdit[];
  10805. /**
  10806. * An array of [globalId](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#AttachmentEdit)s for attachments to be deleted.
  10807. *
  10808. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits)
  10809. */
  10810. deleteAttachments?: string[];
  10811. }
  10812. export interface FeatureLayerApplyEditsOptions {
  10813. /**
  10814. * The geodatabase version to apply the edits.
  10815. *
  10816. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits)
  10817. */
  10818. gdbVersion?: string;
  10819. /**
  10820. * Indicates whether the edit results should return the time edits were applied.
  10821. *
  10822. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits)
  10823. */
  10824. returnEditMoment?: boolean;
  10825. /**
  10826. * If set to `original-and-current-features`, the [EditedFeatureResult](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#EditedFeatureResult) parameter will be included in the `applyEdits` response.
  10827. *
  10828. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits)
  10829. */
  10830. returnServiceEditsOption?: "none" | "original-and-current-features";
  10831. /**
  10832. * Indicates whether the edits should be applied only if all submitted edits succeed.
  10833. *
  10834. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits)
  10835. */
  10836. rollbackOnFailureEnabled?: boolean;
  10837. /**
  10838. * Indicates whether the edits can be applied using globalIds of features or attachments.
  10839. *
  10840. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits)
  10841. */
  10842. globalIdUsed?: boolean;
  10843. }
  10844. export interface FeatureLayerCapabilities {
  10845. /**
  10846. * Describes what attachment capabilities are enabled on the layer.
  10847. *
  10848. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  10849. */
  10850. attachment: FeatureLayerCapabilitiesAttachment;
  10851. /**
  10852. * Describes characteristics of the data in the layer.
  10853. *
  10854. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  10855. */
  10856. data: FeatureLayerCapabilitiesData;
  10857. /**
  10858. * Describes editing capabilities that can be performed on the features in the layer via [applyEdits()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits).
  10859. *
  10860. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  10861. */
  10862. editing: FeatureLayerCapabilitiesEditing;
  10863. /**
  10864. * Describes the metadata contained on features in the layer.
  10865. *
  10866. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  10867. */
  10868. metadata: FeatureLayerCapabilitiesMetadata;
  10869. /**
  10870. * Describes operations that can be performed on features in the layer.
  10871. *
  10872. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  10873. */
  10874. operations: FeatureLayerCapabilitiesOperations;
  10875. /**
  10876. * Describes [query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) operations that can be performed on features in the layer.
  10877. *
  10878. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  10879. */
  10880. query: FeatureLayerCapabilitiesQuery;
  10881. /**
  10882. * Indicates if the layer's query operation supports querying features or records related to features in the layer.
  10883. *
  10884. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  10885. */
  10886. queryRelated: FeatureLayerCapabilitiesQueryRelated;
  10887. /**
  10888. * Describes [top features query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html) operations that can be performed on features in the layer.
  10889. *
  10890. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  10891. */
  10892. queryTopFeatures: FeatureLayerCapabilitiesQueryTopFeatures;
  10893. }
  10894. export interface FeatureLayerCapabilitiesAttachment {
  10895. /**
  10896. * Indicates if the [attachment operations](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html) support a cache hint.
  10897. *
  10898. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  10899. */
  10900. supportsCacheHint: boolean;
  10901. /**
  10902. * Indicates if the attachments can be [queried](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html) by their content types.
  10903. *
  10904. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  10905. */
  10906. supportsContentType: boolean;
  10907. /**
  10908. * Indicates if the attachment [queries](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html) support `exifInfo`.
  10909. *
  10910. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  10911. */
  10912. supportsExifInfo: boolean;
  10913. /**
  10914. * Indicates if the attachments can be [queried](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html) by their keywords.
  10915. *
  10916. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  10917. */
  10918. supportsKeywords: boolean;
  10919. /**
  10920. * Indicates if the attachments can be [queried](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html) by their names.
  10921. *
  10922. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  10923. */
  10924. supportsName: boolean;
  10925. /**
  10926. * Indicates if the attachments can be [queried](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html) by their sizes.
  10927. *
  10928. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  10929. */
  10930. supportsSize: boolean;
  10931. /**
  10932. * Indicates if resized attachments are supported in the feature layer.
  10933. *
  10934. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  10935. */
  10936. supportsResize: boolean;
  10937. }
  10938. export interface FeatureLayerCapabilitiesData {
  10939. /**
  10940. * Indicates if the feature service is versioned.
  10941. *
  10942. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  10943. */
  10944. isVersioned: boolean;
  10945. /**
  10946. * Indicates if the attachment is enabled on the layer.
  10947. *
  10948. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  10949. */
  10950. supportsAttachment: boolean;
  10951. /**
  10952. * Indicates if the features in the layer support m-values.
  10953. *
  10954. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  10955. */
  10956. supportsM: boolean;
  10957. /**
  10958. * Indicates if the features in the layer support z-values.
  10959. *
  10960. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  10961. */
  10962. supportsZ: boolean;
  10963. }
  10964. export interface FeatureLayerCapabilitiesEditing {
  10965. /**
  10966. * Indicates if anonymous users can delete features created by others.
  10967. *
  10968. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  10969. */
  10970. supportsDeleteByAnonymous: boolean;
  10971. /**
  10972. * Indicates if logged in users can delete features created by others.
  10973. *
  10974. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  10975. */
  10976. supportsDeleteByOthers: boolean;
  10977. /**
  10978. * Indicates if the geometry of the features in the layer can be edited.
  10979. *
  10980. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  10981. */
  10982. supportsGeometryUpdate: boolean;
  10983. /**
  10984. * Indicates if the `globalId` values provided by the client are used in [applyEdits](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits).
  10985. *
  10986. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  10987. */
  10988. supportsGlobalId: boolean;
  10989. /**
  10990. * Indicates if the `rollbackOnFailureEnabled` parameter can be set to `true` or `false` when editing features.
  10991. *
  10992. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  10993. */
  10994. supportsRollbackOnFailure: boolean;
  10995. /**
  10996. * Indicates if anonymous users can update features created by others.
  10997. *
  10998. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  10999. */
  11000. supportsUpdateByAnonymous: boolean;
  11001. /**
  11002. * Indicates if logged in users can update features created by others.
  11003. *
  11004. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11005. */
  11006. supportsUpdateByOthers: boolean;
  11007. /**
  11008. * Indicates if the layer supports uploading attachments by [UploadId](https://developers.arcgis.com/rest/services-reference/item.htm).
  11009. *
  11010. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11011. */
  11012. supportsUploadWithItemId: boolean;
  11013. /**
  11014. * Indicates if `m-values` must be provided when updating features.
  11015. *
  11016. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11017. */
  11018. supportsUpdateWithoutM: boolean;
  11019. }
  11020. export interface FeatureLayerCapabilitiesMetadata {
  11021. /**
  11022. * Indicates whether to provide a user-defined field description.
  11023. *
  11024. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11025. */
  11026. supportsAdvancedFieldProperties: boolean;
  11027. }
  11028. export interface FeatureLayerCapabilitiesOperations {
  11029. /**
  11030. * Indicates if new features can be [added](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits) to the layer.
  11031. *
  11032. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11033. */
  11034. supportsAdd: boolean;
  11035. /**
  11036. * Indicates if values of one or more field values in the layer can be updated.
  11037. *
  11038. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11039. */
  11040. supportsCalculate: boolean;
  11041. /**
  11042. * Indicates if features can be [deleted](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits) from the layer.
  11043. *
  11044. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11045. */
  11046. supportsDelete: boolean;
  11047. /**
  11048. * Indicates if features in the layer can be [edited](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits).
  11049. *
  11050. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11051. */
  11052. supportsEditing: boolean;
  11053. /**
  11054. * Indicates if features in the layer can be [queried](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryFeatures).
  11055. *
  11056. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11057. */
  11058. supportsQuery: boolean;
  11059. /**
  11060. * Indicates if the layer supports [REST API queryAttachments](https://developers.arcgis.com/rest/services-reference/query-attachments-feature-service-layer-.htm) operation.
  11061. *
  11062. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11063. */
  11064. supportsQueryAttachments: boolean;
  11065. /**
  11066. * Deprecated since 4.24.
  11067. *
  11068. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11069. */
  11070. supportsResizeAttachments: boolean;
  11071. /**
  11072. * Indicates if the layer supports [REST API queryTopFeatures](https://developers.arcgis.com/rest/services-reference/enterprise/query-top-features-feature-service-layer-.htm) operation.
  11073. *
  11074. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11075. */
  11076. supportsQueryTopFeatures: boolean;
  11077. /**
  11078. * Indicates if features in the layer can be [updated](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#applyEdits).
  11079. *
  11080. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11081. */
  11082. supportsUpdate: boolean;
  11083. /**
  11084. * Indicates if the layer supports a SQL-92 expression or where clause.
  11085. *
  11086. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11087. */
  11088. supportsValidateSql: boolean;
  11089. }
  11090. export interface FeatureLayerCapabilitiesQuery {
  11091. /**
  11092. * The maximum number of records that will be returned for a given query.
  11093. *
  11094. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11095. */
  11096. maxRecordCount: number;
  11097. /**
  11098. * Indicates if the query operation supports a [cache hint](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#cacheHint).
  11099. *
  11100. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11101. */
  11102. supportsCacheHint: boolean;
  11103. /**
  11104. * Indicates if the geometry centroid associated with each polygon feature can be returned.
  11105. *
  11106. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11107. */
  11108. supportsCentroid: boolean;
  11109. /**
  11110. * Indicates if the query operation supports `disjoint` [spatial relationship](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#spatialRelationship).
  11111. *
  11112. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11113. */
  11114. supportsDisjointSpatialRelationship: boolean;
  11115. /**
  11116. * Indicates if the layer's query operation supports a buffer distance for input geometries.
  11117. *
  11118. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11119. */
  11120. supportsDistance: boolean;
  11121. /**
  11122. * Indicates if the layer supports queries for distinct values based on fields specified in the [outFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#outFields).
  11123. *
  11124. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11125. */
  11126. supportsDistinct: boolean;
  11127. /**
  11128. * Indicates if the layer's query response includes the extent of features.
  11129. *
  11130. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11131. */
  11132. supportsExtent: boolean;
  11133. /**
  11134. * Indicates if the layer's query response contains geometry attributes, including shape area and length attributes.
  11135. *
  11136. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11137. */
  11138. supportsGeometryProperties: boolean;
  11139. /**
  11140. * Indicates if the layer supports the [having](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#having) clause on the service.
  11141. *
  11142. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11143. */
  11144. supportsHavingClause: boolean;
  11145. /**
  11146. * Indicates if the layer supports historic moment query.
  11147. *
  11148. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11149. */
  11150. supportsHistoricMoment: boolean;
  11151. /**
  11152. * Indicates if features returned in the query response can be ordered by one or more fields.
  11153. *
  11154. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11155. */
  11156. supportsOrderBy: boolean;
  11157. /**
  11158. * Indicates if the query response supports pagination.
  11159. *
  11160. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11161. */
  11162. supportsPagination: boolean;
  11163. /**
  11164. * Indicates if the layer supports [percentile statisticType](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-StatisticDefinition.html#statisticType).
  11165. *
  11166. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11167. */
  11168. supportsPercentileStatistics: boolean;
  11169. /**
  11170. * Indicates if the query operation supports the projection of geometries onto a virtual grid.
  11171. *
  11172. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11173. */
  11174. supportsQuantization: boolean;
  11175. /**
  11176. * Indicates if the query operation supports quantization designed to be used in edit mode (highest resolution at the given spatial reference).
  11177. *
  11178. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11179. */
  11180. supportsQuantizationEditMode: boolean;
  11181. /**
  11182. * Indicates if the query response includes the [query geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html#queryGeometry).
  11183. *
  11184. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11185. */
  11186. supportsQueryGeometry: boolean;
  11187. /**
  11188. * Indicates if the number of features returned by the query operation can be controlled.
  11189. *
  11190. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11191. */
  11192. supportsResultType: boolean;
  11193. /**
  11194. * Indicates if the layer supports using standardized queries.
  11195. *
  11196. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11197. */
  11198. supportsStandardizedQueriesOnly: boolean;
  11199. /**
  11200. * Indicates if the layer supports field-based statistical functions.
  11201. *
  11202. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11203. */
  11204. supportsStatistics: boolean;
  11205. /**
  11206. * Indicates if the layer supports SQL expressions.
  11207. *
  11208. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11209. */
  11210. supportsSqlExpression: boolean;
  11211. /**
  11212. * Indicates if the layer supports spatial extent, center or convex hull to be returned for each distinct group when [groupByFieldsForStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#groupByFieldsForStatistics) is used.
  11213. *
  11214. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11215. */
  11216. supportsSpatialAggregationStatistics: boolean;
  11217. /**
  11218. * List of supported aggregated geometries returned for each distinct group when [groupByFieldsForStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#groupByFieldsForStatistics) is used.
  11219. *
  11220. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11221. */
  11222. supportedSpatialStatisticAggregations: FeatureLayerCapabilitiesQuerySupportedSpatialStatisticAggregations;
  11223. }
  11224. export interface FeatureLayerCapabilitiesQueryRelated {
  11225. /**
  11226. * Indicates if the [relationship query operation](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html) supports a cache hint.
  11227. *
  11228. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11229. */
  11230. supportsCacheHint: boolean;
  11231. /**
  11232. * Indicates if the layer's query response includes the number of features or records related to features in the layer.
  11233. *
  11234. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11235. */
  11236. supportsCount: boolean;
  11237. /**
  11238. * Indicates if the related features or records returned in the query response can be ordered by one or more fields.
  11239. *
  11240. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11241. */
  11242. supportsOrderBy: boolean;
  11243. /**
  11244. * Indicates if the query response supports pagination for related features or records.
  11245. *
  11246. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11247. */
  11248. supportsPagination: boolean;
  11249. }
  11250. export interface FeatureLayerCapabilitiesQuerySupportedSpatialStatisticAggregations {
  11251. /**
  11252. * Indicates if the layer can return centroid for each distinct group for [groupByFieldsForStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#groupByFieldsForStatistics).
  11253. *
  11254. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11255. */
  11256. centroid: boolean;
  11257. /**
  11258. * Indicates if the layer can return extent for each distinct group for [groupByFieldsForStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#groupByFieldsForStatistics).
  11259. *
  11260. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11261. */
  11262. envelope: boolean;
  11263. /**
  11264. * Indicates if the layer can return convex hull for each distinct group for [groupByFieldsForStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#groupByFieldsForStatistics).
  11265. *
  11266. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11267. */
  11268. convexHull: boolean;
  11269. }
  11270. export interface FeatureLayerCapabilitiesQueryTopFeatures {
  11271. /**
  11272. * Indicates if the [top query operation](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html) supports a cache hint.
  11273. *
  11274. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#capabilities)
  11275. */
  11276. supportsCacheHint: boolean;
  11277. }
  11278. export interface FeatureLayerGetFieldDomainOptions {
  11279. /**
  11280. * The feature to which the [Domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Domain.html) is assigned.
  11281. *
  11282. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#getFieldDomain)
  11283. */
  11284. feature: Graphic;
  11285. }
  11286. export interface FeatureLayerQueryAttachmentsOptions {
  11287. /**
  11288. * Signal object that can be used to abort the asynchronous task.
  11289. *
  11290. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryAttachments)
  11291. */
  11292. signal?: AbortSignal;
  11293. }
  11294. export interface FeatureLayerQueryExtentOptions {
  11295. /**
  11296. * Signal object that can be used to abort the asynchronous task.
  11297. *
  11298. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryExtent)
  11299. */
  11300. signal?: AbortSignal;
  11301. }
  11302. export interface FeatureLayerQueryFeatureCountOptions {
  11303. /**
  11304. * Signal object that can be used to abort the asynchronous task.
  11305. *
  11306. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryFeatureCount)
  11307. */
  11308. signal?: AbortSignal;
  11309. }
  11310. export interface FeatureLayerQueryFeaturesOptions {
  11311. /**
  11312. * Signal object that can be used to abort the asynchronous task.
  11313. *
  11314. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryFeatures)
  11315. */
  11316. signal?: AbortSignal;
  11317. }
  11318. export interface FeatureLayerQueryObjectIdsOptions {
  11319. /**
  11320. * Signal object that can be used to abort the asynchronous task.
  11321. *
  11322. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryObjectIds)
  11323. */
  11324. signal?: AbortSignal;
  11325. }
  11326. export interface FeatureLayerQueryRelatedFeaturesCountOptions {
  11327. /**
  11328. * Signal object that can be used to abort the asynchronous task.
  11329. *
  11330. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryRelatedFeaturesCount)
  11331. */
  11332. signal?: AbortSignal;
  11333. }
  11334. export interface FeatureLayerQueryRelatedFeaturesOptions {
  11335. /**
  11336. * Signal object that can be used to abort the asynchronous task.
  11337. *
  11338. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryRelatedFeatures)
  11339. */
  11340. signal?: AbortSignal;
  11341. }
  11342. export interface FeatureLayerQueryTopFeatureCountOptions {
  11343. /**
  11344. * Signal object that can be used to abort the asynchronous task.
  11345. *
  11346. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryTopFeatureCount)
  11347. */
  11348. signal?: AbortSignal;
  11349. }
  11350. export interface FeatureLayerQueryTopFeaturesExtentOptions {
  11351. /**
  11352. * Signal object that can be used to abort the asynchronous task.
  11353. *
  11354. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryTopFeaturesExtent)
  11355. */
  11356. signal?: AbortSignal;
  11357. }
  11358. export interface FeatureLayerQueryTopFeaturesOptions {
  11359. /**
  11360. * Signal object that can be used to abort the asynchronous task.
  11361. *
  11362. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryTopFeatures)
  11363. */
  11364. signal?: AbortSignal;
  11365. }
  11366. export interface FeatureLayerQueryTopObjectIdsOptions {
  11367. /**
  11368. * Signal object that can be used to abort the asynchronous task.
  11369. *
  11370. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryTopObjectIds)
  11371. */
  11372. signal?: AbortSignal;
  11373. }
  11374. export interface FeatureLayerSaveAsOptions {
  11375. /**
  11376. * The portal folder where the layer's portal item will be saved.
  11377. *
  11378. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#saveAs)
  11379. */
  11380. folder?: PortalFolder;
  11381. /**
  11382. * Options for validating the save operation.
  11383. *
  11384. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#saveAs)
  11385. */
  11386. validationOptions?: FeatureLayerSaveAsOptionsValidationOptions;
  11387. }
  11388. export interface FeatureLayerSaveAsOptionsValidationOptions {
  11389. /**
  11390. * Indicates whether to ignore saving unsupported layers or layers with unsupported content, such as unsupported symbology.
  11391. *
  11392. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#saveAs)
  11393. */
  11394. ignoreUnsupported?: boolean;
  11395. }
  11396. export interface FeatureLayerSaveOptions {
  11397. /**
  11398. * Options for validating the save operation.
  11399. *
  11400. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#save)
  11401. */
  11402. validationOptions?: FeatureLayerSaveOptionsValidationOptions;
  11403. }
  11404. export interface FeatureLayerSaveOptionsValidationOptions {
  11405. /**
  11406. * Indicates whether to ignore saving unsupported layers or layers with unsupported content, such as unsupported symbology.
  11407. *
  11408. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#save)
  11409. */
  11410. ignoreUnsupported?: boolean;
  11411. }
  11412. export interface FeatureLayerLayerviewCreateErrorEvent {
  11413. error: Error;
  11414. view: View;
  11415. }
  11416. export interface FeatureLayerLayerviewCreateEvent {
  11417. layerView: LayerView;
  11418. view: View;
  11419. }
  11420. export interface FeatureLayerLayerviewDestroyEvent {
  11421. layerView: LayerView;
  11422. view: View;
  11423. }
  11424. export interface FeatureLayerRefreshEvent {
  11425. dataChanged: boolean;
  11426. }
  11427. export interface AttachmentEditAttachment {
  11428. /**
  11429. * The globalId of the attachment to be added or updated.
  11430. *
  11431. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#AttachmentEdit)
  11432. */
  11433. globalId: string;
  11434. /**
  11435. * The name of the attachment.
  11436. *
  11437. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#AttachmentEdit)
  11438. */
  11439. name?: string;
  11440. /**
  11441. * The content type of the attachment.
  11442. *
  11443. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#AttachmentEdit)
  11444. */
  11445. contentType?: string;
  11446. /**
  11447. * The id of pre-loaded attachment.
  11448. *
  11449. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#AttachmentEdit)
  11450. */
  11451. uploadId?: string;
  11452. /**
  11453. * The attachment data.
  11454. *
  11455. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#AttachmentEdit)
  11456. */
  11457. data?: Blob | any | string;
  11458. }
  11459. export interface EditedFeatureResultEditedFeatures {
  11460. /**
  11461. * Newly added features as a result of editing a feature that participates in a composite relationship.
  11462. *
  11463. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#EditedFeatureResult)
  11464. */
  11465. adds?: Graphic[];
  11466. /**
  11467. * Object containing original and updated features as a result of editing a feature that participates in a composite relationship.
  11468. *
  11469. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#EditedFeatureResult)
  11470. */
  11471. updates?: EditedFeatureResultEditedFeaturesUpdates[];
  11472. /**
  11473. * Deleted features as a result of editing a feature that participates in a composite relationship.
  11474. *
  11475. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#EditedFeatureResult)
  11476. */
  11477. deletes?: Graphic[];
  11478. /**
  11479. * Edited features are returned in the spatial reference of the feature service.
  11480. *
  11481. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#EditedFeatureResult)
  11482. */
  11483. spatialReference?: SpatialReference;
  11484. }
  11485. export interface EditedFeatureResultEditedFeaturesUpdates {
  11486. /**
  11487. * Original feature before the update took place.
  11488. *
  11489. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#EditedFeatureResult)
  11490. */
  11491. original?: Graphic[];
  11492. /**
  11493. * Updated feature as a result of editing a feature that participates in a composite relationship.
  11494. *
  11495. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#EditedFeatureResult)
  11496. */
  11497. current?: Graphic[];
  11498. }
  11499. export interface FeatureEditResultError {
  11500. /**
  11501. * Error name.
  11502. *
  11503. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#FeatureEditResult)
  11504. */
  11505. name: string;
  11506. /**
  11507. * Message describing the error.
  11508. *
  11509. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#FeatureEditResult)
  11510. */
  11511. message: string;
  11512. }
  11513. export interface GeoJSONLayer extends Layer, BlendLayer, OrderedLayer, ScaleRangeLayer, FeatureEffectLayer, FeatureReductionLayer {
  11514. }
  11515. export class GeoJSONLayer {
  11516. /**
  11517. * Describes the layer's supported capabilities.
  11518. *
  11519. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  11520. */
  11521. readonly capabilities: GeoJSONLayerCapabilities;
  11522. /**
  11523. * Copyright information for the layer.
  11524. *
  11525. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#copyright)
  11526. */
  11527. copyright: string;
  11528. /**
  11529. * A list of custom parameters appended to the URL of all resources fetched by the layer.
  11530. *
  11531. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#customParameters)
  11532. */
  11533. customParameters: any;
  11534. /**
  11535. * The SQL where clause used to filter features on the client.
  11536. *
  11537. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#definitionExpression)
  11538. */
  11539. definitionExpression: string;
  11540. /**
  11541. * The name of the layer's primary display field.
  11542. *
  11543. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#displayField)
  11544. */
  11545. displayField: string;
  11546. /**
  11547. * Indicates if the layer is editable.
  11548. *
  11549. * @default false
  11550. *
  11551. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#editingEnabled)
  11552. */
  11553. editingEnabled: boolean;
  11554. /**
  11555. * Specifies how features are placed on the vertical axis (z).
  11556. *
  11557. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#elevationInfo)
  11558. */
  11559. elevationInfo: GeoJSONLayerElevationInfo;
  11560. /**
  11561. * An array of fields in the layer.
  11562. *
  11563. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#fields)
  11564. */
  11565. fields: Field[];
  11566. /**
  11567. * A convenient property that can be used to make case-insensitive lookups for a field by name.
  11568. *
  11569. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#fieldsIndex)
  11570. */
  11571. readonly fieldsIndex: FieldsIndex;
  11572. /**
  11573. * The geometry type of features in the layer.
  11574. *
  11575. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#geometryType)
  11576. */
  11577. geometryType: "point" | "polygon" | "polyline" | "multipoint";
  11578. /**
  11579. * Indicates whether the client-side features in the layer have `Z` (elevation) values.
  11580. *
  11581. * @default undefined
  11582. *
  11583. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#hasZ)
  11584. */
  11585. readonly hasZ: boolean;
  11586. /**
  11587. * Returns `true` if the layer is loaded from a non-spatial table in a service.
  11588. *
  11589. * @default false
  11590. *
  11591. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#isTable)
  11592. */
  11593. readonly isTable: boolean;
  11594. /**
  11595. * The label definition for this layer, specified as an array of [LabelClass](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html).
  11596. *
  11597. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#labelingInfo)
  11598. */
  11599. labelingInfo: LabelClass[];
  11600. /**
  11601. * Indicates whether to display labels for this layer.
  11602. *
  11603. * @default true
  11604. *
  11605. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#labelsVisible)
  11606. */
  11607. labelsVisible: boolean;
  11608. /**
  11609. * Indicates whether the layer will be included in the legend.
  11610. *
  11611. * @default true
  11612. *
  11613. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#legendEnabled)
  11614. */
  11615. legendEnabled: boolean;
  11616. /**
  11617. * The name of a [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#fields) containing a unique value or identifier for each feature in the layer.
  11618. *
  11619. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#objectIdField)
  11620. */
  11621. objectIdField: string;
  11622. /**
  11623. * An array of field names from the geoJSON file to include with each feature.
  11624. *
  11625. * @default null
  11626. *
  11627. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#outFields)
  11628. */
  11629. outFields: string[];
  11630. /**
  11631. * Indicates whether to display popups when features in the layer are clicked.
  11632. *
  11633. * @default true
  11634. *
  11635. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#popupEnabled)
  11636. */
  11637. popupEnabled: boolean;
  11638. /**
  11639. * The popup template for the layer.
  11640. *
  11641. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#popupTemplate)
  11642. */
  11643. popupTemplate: PopupTemplate;
  11644. /**
  11645. * The portal item referencing the geojson file from which the GeoJSONLayer is loaded.
  11646. *
  11647. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#portalItem)
  11648. */
  11649. portalItem: PortalItem;
  11650. /**
  11651. * Refresh interval of the layer in minutes.
  11652. *
  11653. * @default 0
  11654. *
  11655. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#refreshInterval)
  11656. */
  11657. refreshInterval: number;
  11658. /**
  11659. * The renderer assigned to the layer.
  11660. *
  11661. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#renderer)
  11662. */
  11663. renderer: Renderer;
  11664. /**
  11665. * Apply perspective scaling to screen-size point symbols in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  11666. *
  11667. * @default true
  11668. *
  11669. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#screenSizePerspectiveEnabled)
  11670. */
  11671. screenSizePerspectiveEnabled: boolean;
  11672. /**
  11673. * The spatial reference of the layer.
  11674. *
  11675. * @default SpatialReference.WGS84
  11676. *
  11677. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#spatialReference)
  11678. */
  11679. spatialReference: SpatialReference;
  11680. /**
  11681. * An array of feature templates defined in the layer.
  11682. *
  11683. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#templates)
  11684. */
  11685. templates: FeatureTemplate[];
  11686. /**
  11687. * The layer's time extent.
  11688. *
  11689. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#timeExtent)
  11690. */
  11691. timeExtent: TimeExtent;
  11692. /**
  11693. * TimeInfo provides information such as date fields that store [start](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#startField) and [end](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#endField) time for each feature and the [fullTimeExtent](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#fullTimeExtent) for the layer.
  11694. *
  11695. * @default null
  11696. *
  11697. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#timeInfo)
  11698. */
  11699. timeInfo: TimeInfo;
  11700. /**
  11701. * A temporary offset of the time data based on a certain [TimeInterval](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeInterval.html).
  11702. *
  11703. * @default null
  11704. *
  11705. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#timeOffset)
  11706. */
  11707. timeOffset: TimeInterval;
  11708. readonly type: "geojson";
  11709. /**
  11710. * The URL of the GeoJSON file.
  11711. *
  11712. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#url)
  11713. */
  11714. url: string;
  11715. /**
  11716. * Determines if the layer will update its temporal data based on the view's [timeExtent](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#timeExtent).
  11717. *
  11718. * @default true
  11719. *
  11720. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#useViewTime)
  11721. */
  11722. useViewTime: boolean;
  11723. /**
  11724. * The GeoJSONLayer class is used to create a layer based on [GeoJSON](http://geojson.org/).
  11725. *
  11726. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html)
  11727. */
  11728. constructor(properties?: GeoJSONLayerProperties);
  11729. /**
  11730. * Applies edits to features in a layer.
  11731. *
  11732. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#applyEdits)
  11733. */
  11734. applyEdits(edits: GeoJSONLayerApplyEditsEdits): Promise<any>;
  11735. /**
  11736. * Creates a popup template for the layer, populated with all the fields of the layer.
  11737. *
  11738. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#createPopupTemplate)
  11739. */
  11740. createPopupTemplate(options?: CreatePopupTemplateOptions): PopupTemplate;
  11741. /**
  11742. * Creates query parameter object that can be used to fetch features that satisfy the layer's configurations such as [definitionExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#definitionExpression).
  11743. *
  11744. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#createQuery)
  11745. */
  11746. createQuery(): Query;
  11747. /**
  11748. * Returns the [Field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html) instance for a field name (case-insensitive).
  11749. *
  11750. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#getField)
  11751. */
  11752. getField(fieldName: string): Field;
  11753. /**
  11754. * Returns the Domain associated with the given field name.
  11755. *
  11756. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#getFieldDomain)
  11757. */
  11758. getFieldDomain(fieldName: string, options?: GeoJSONLayerGetFieldDomainOptions): Domain;
  11759. /**
  11760. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the layer and returns the [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) of features that satisfy the query.
  11761. *
  11762. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#queryExtent)
  11763. */
  11764. queryExtent(query?: Query | QueryProperties, options?: GeoJSONLayerQueryExtentOptions): Promise<any>;
  11765. /**
  11766. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the layer and returns the number of features that satisfy the query.
  11767. *
  11768. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#queryFeatureCount)
  11769. */
  11770. queryFeatureCount(query?: Query | QueryProperties, options?: GeoJSONLayerQueryFeatureCountOptions): Promise<number>;
  11771. /**
  11772. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the layer and returns a [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html), which can be accessed using the `.then()` method once the promise resolves.
  11773. *
  11774. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#queryFeatures)
  11775. */
  11776. queryFeatures(query?: Query | QueryProperties, options?: GeoJSONLayerQueryFeaturesOptions): Promise<FeatureSet>;
  11777. /**
  11778. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the layer and returns an array of Object IDs for features that satisfy the input query.
  11779. *
  11780. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#queryObjectIds)
  11781. */
  11782. queryObjectIds(query?: Query | QueryProperties, options?: GeoJSONLayerQueryObjectIdsOptions): Promise<number[]>;
  11783. /**
  11784. * Fetches all the data for the layer.
  11785. *
  11786. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#refresh)
  11787. */
  11788. refresh(): void;
  11789. on(name: "refresh", eventHandler: GeoJSONLayerRefreshEventHandler): IHandle;
  11790. on(name: "edits", eventHandler: GeoJSONLayerEditsEventHandler): IHandle;
  11791. on(name: "layerview-create", eventHandler: GeoJSONLayerLayerviewCreateEventHandler): IHandle;
  11792. on(name: "layerview-create-error", eventHandler: GeoJSONLayerLayerviewCreateErrorEventHandler): IHandle;
  11793. on(name: "layerview-destroy", eventHandler: GeoJSONLayerLayerviewDestroyEventHandler): IHandle;
  11794. }
  11795. /** @deprecated Import the GeoJSONLayer class instead. */
  11796. export type GeoJSONLayerConstructor = typeof GeoJSONLayer;
  11797. interface GeoJSONLayerProperties extends LayerProperties, BlendLayerProperties, OrderedLayerProperties, ScaleRangeLayerProperties, FeatureEffectLayerProperties, FeatureReductionLayerProperties {
  11798. /**
  11799. * Copyright information for the layer.
  11800. *
  11801. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#copyright)
  11802. */
  11803. copyright?: string;
  11804. /**
  11805. * A list of custom parameters appended to the URL of all resources fetched by the layer.
  11806. *
  11807. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#customParameters)
  11808. */
  11809. customParameters?: any;
  11810. /**
  11811. * The SQL where clause used to filter features on the client.
  11812. *
  11813. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#definitionExpression)
  11814. */
  11815. definitionExpression?: string;
  11816. /**
  11817. * The name of the layer's primary display field.
  11818. *
  11819. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#displayField)
  11820. */
  11821. displayField?: string;
  11822. /**
  11823. * Indicates if the layer is editable.
  11824. *
  11825. * @default false
  11826. *
  11827. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#editingEnabled)
  11828. */
  11829. editingEnabled?: boolean;
  11830. /**
  11831. * Specifies how features are placed on the vertical axis (z).
  11832. *
  11833. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#elevationInfo)
  11834. */
  11835. elevationInfo?: GeoJSONLayerElevationInfo;
  11836. /**
  11837. * An array of fields in the layer.
  11838. *
  11839. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#fields)
  11840. */
  11841. fields?: FieldProperties[];
  11842. /**
  11843. * The geometry type of features in the layer.
  11844. *
  11845. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#geometryType)
  11846. */
  11847. geometryType?: "point" | "polygon" | "polyline" | "multipoint";
  11848. /**
  11849. * The label definition for this layer, specified as an array of [LabelClass](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html).
  11850. *
  11851. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#labelingInfo)
  11852. */
  11853. labelingInfo?: LabelClassProperties[];
  11854. /**
  11855. * Indicates whether to display labels for this layer.
  11856. *
  11857. * @default true
  11858. *
  11859. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#labelsVisible)
  11860. */
  11861. labelsVisible?: boolean;
  11862. /**
  11863. * Indicates whether the layer will be included in the legend.
  11864. *
  11865. * @default true
  11866. *
  11867. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#legendEnabled)
  11868. */
  11869. legendEnabled?: boolean;
  11870. /**
  11871. * The name of a [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#fields) containing a unique value or identifier for each feature in the layer.
  11872. *
  11873. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#objectIdField)
  11874. */
  11875. objectIdField?: string;
  11876. /**
  11877. * An array of field names from the geoJSON file to include with each feature.
  11878. *
  11879. * @default null
  11880. *
  11881. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#outFields)
  11882. */
  11883. outFields?: string[];
  11884. /**
  11885. * Indicates whether to display popups when features in the layer are clicked.
  11886. *
  11887. * @default true
  11888. *
  11889. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#popupEnabled)
  11890. */
  11891. popupEnabled?: boolean;
  11892. /**
  11893. * The popup template for the layer.
  11894. *
  11895. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#popupTemplate)
  11896. */
  11897. popupTemplate?: PopupTemplateProperties;
  11898. /**
  11899. * The portal item referencing the geojson file from which the GeoJSONLayer is loaded.
  11900. *
  11901. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#portalItem)
  11902. */
  11903. portalItem?: PortalItemProperties;
  11904. /**
  11905. * Refresh interval of the layer in minutes.
  11906. *
  11907. * @default 0
  11908. *
  11909. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#refreshInterval)
  11910. */
  11911. refreshInterval?: number;
  11912. /**
  11913. * The renderer assigned to the layer.
  11914. *
  11915. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#renderer)
  11916. */
  11917. renderer?: RendererProperties;
  11918. /**
  11919. * Apply perspective scaling to screen-size point symbols in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  11920. *
  11921. * @default true
  11922. *
  11923. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#screenSizePerspectiveEnabled)
  11924. */
  11925. screenSizePerspectiveEnabled?: boolean;
  11926. /**
  11927. * The spatial reference of the layer.
  11928. *
  11929. * @default SpatialReference.WGS84
  11930. *
  11931. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#spatialReference)
  11932. */
  11933. spatialReference?: SpatialReferenceProperties;
  11934. /**
  11935. * An array of feature templates defined in the layer.
  11936. *
  11937. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#templates)
  11938. */
  11939. templates?: FeatureTemplateProperties[];
  11940. /**
  11941. * The layer's time extent.
  11942. *
  11943. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#timeExtent)
  11944. */
  11945. timeExtent?: TimeExtentProperties;
  11946. /**
  11947. * TimeInfo provides information such as date fields that store [start](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#startField) and [end](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#endField) time for each feature and the [fullTimeExtent](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#fullTimeExtent) for the layer.
  11948. *
  11949. * @default null
  11950. *
  11951. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#timeInfo)
  11952. */
  11953. timeInfo?: TimeInfoProperties;
  11954. /**
  11955. * A temporary offset of the time data based on a certain [TimeInterval](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeInterval.html).
  11956. *
  11957. * @default null
  11958. *
  11959. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#timeOffset)
  11960. */
  11961. timeOffset?: TimeIntervalProperties;
  11962. /**
  11963. * The URL of the GeoJSON file.
  11964. *
  11965. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#url)
  11966. */
  11967. url?: string;
  11968. /**
  11969. * Determines if the layer will update its temporal data based on the view's [timeExtent](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#timeExtent).
  11970. *
  11971. * @default true
  11972. *
  11973. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#useViewTime)
  11974. */
  11975. useViewTime?: boolean;
  11976. }
  11977. export interface GeoJSONLayerEditsEvent {
  11978. addedFeatures: GeoJSONLayerEditsEventAddedFeatures[];
  11979. deletedFeatures: GeoJSONLayerEditsEventDeletedFeatures[];
  11980. updatedFeatures: GeoJSONLayerEditsEventUpdatedFeatures[];
  11981. }
  11982. export interface GeoJSONLayerApplyEditsEdits {
  11983. /**
  11984. * An array or a [collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of features to be added.
  11985. *
  11986. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#applyEdits)
  11987. */
  11988. addFeatures?: Graphic[] | Collection<Graphic>;
  11989. /**
  11990. * An array or a [collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of features to be updated.
  11991. *
  11992. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#applyEdits)
  11993. */
  11994. updateFeatures?: Graphic[] | Collection<Graphic>;
  11995. /**
  11996. * An array or a [collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of features, or objects to be deleted.
  11997. *
  11998. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#applyEdits)
  11999. */
  12000. deleteFeatures?: Graphic[] | any[] | Collection<Graphic>;
  12001. }
  12002. export interface GeoJSONLayerCapabilities {
  12003. /**
  12004. * Describes characteristics of the data in the layer.
  12005. *
  12006. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12007. */
  12008. data: GeoJSONLayerCapabilitiesData;
  12009. /**
  12010. * Describes editing capabilities that can be performed on the features in the layer.
  12011. *
  12012. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12013. */
  12014. editing: GeoJSONLayerCapabilitiesEditing;
  12015. /**
  12016. * Describes operations that can be performed on features in the layer.
  12017. *
  12018. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12019. */
  12020. operations: GeoJSONLayerCapabilitiesOperations;
  12021. /**
  12022. * Describes [query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) operations that can be performed on features in the layer.
  12023. *
  12024. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12025. */
  12026. query: GeoJSONLayerCapabilitiesQuery;
  12027. /**
  12028. * Indicates if the layer's query operation supports querying features or records related to features in the layer.
  12029. *
  12030. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12031. */
  12032. queryRelated: GeoJSONLayerCapabilitiesQueryRelated;
  12033. }
  12034. export interface GeoJSONLayerCapabilitiesData {
  12035. /**
  12036. * Indicates if the attachment is enabled on the layer.
  12037. *
  12038. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12039. */
  12040. supportsAttachment: boolean;
  12041. /**
  12042. * Indicates if the features in the layer support m-values.
  12043. *
  12044. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12045. */
  12046. supportsM: boolean;
  12047. /**
  12048. * Indicates if the features in the layer support z-values.
  12049. *
  12050. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12051. */
  12052. supportsZ: boolean;
  12053. }
  12054. export interface GeoJSONLayerCapabilitiesEditing {
  12055. /**
  12056. * Indicates if anonymous users can delete features created by others.
  12057. *
  12058. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12059. */
  12060. supportsDeleteByAnonymous: boolean;
  12061. /**
  12062. * Indicates if logged in users can delete features created by others.
  12063. *
  12064. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12065. */
  12066. supportsDeleteByOthers: boolean;
  12067. /**
  12068. * Indicates if the geometry of the features in the layer can be edited.
  12069. *
  12070. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12071. */
  12072. supportsGeometryUpdate: boolean;
  12073. /**
  12074. * Indicates if the `globalid` values provided by the client are used in [applyEdits](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#applyEdits).
  12075. *
  12076. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12077. */
  12078. supportsGlobalId: boolean;
  12079. /**
  12080. * Indicates if the `rollbackOnFailure` parameter can be set to `true` or `false` when running the synchronizeReplica operation.
  12081. *
  12082. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12083. */
  12084. supportsRollbackOnFailure: boolean;
  12085. /**
  12086. * Indicates if anonymous users can update features created by others.
  12087. *
  12088. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12089. */
  12090. supportsUpdateByAnonymous: boolean;
  12091. /**
  12092. * Indicates if logged in users can update features created by others.
  12093. *
  12094. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12095. */
  12096. supportsUpdateByOthers: boolean;
  12097. /**
  12098. * Indicates if `m-values` must be provided when updating features.
  12099. *
  12100. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12101. */
  12102. supportsUpdateWithoutM: boolean;
  12103. /**
  12104. * Indicates if the layer supports uploading attachments by [UploadId](https://developers.arcgis.com/rest/services-reference/item.htm).
  12105. *
  12106. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12107. */
  12108. supportsUploadWithItemId: boolean;
  12109. }
  12110. export interface GeoJSONLayerCapabilitiesOperations {
  12111. /**
  12112. * Indicates if new features can be [added](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#applyEdits) to the layer.
  12113. *
  12114. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12115. */
  12116. supportsAdd: boolean;
  12117. /**
  12118. * Indicates if features can be [deleted](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#applyEdits) from the layer.
  12119. *
  12120. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12121. */
  12122. supportsDelete: boolean;
  12123. /**
  12124. * Indicates if features in the layer can be [updated](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#applyEdits).
  12125. *
  12126. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12127. */
  12128. supportsUpdate: boolean;
  12129. /**
  12130. * Indicates if features in the layer can be [edited](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#applyEdits).
  12131. *
  12132. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12133. */
  12134. supportsEditing: boolean;
  12135. /**
  12136. * Indicates if values of one or more field values in the layer can be updated.
  12137. *
  12138. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12139. */
  12140. supportsCalculate: boolean;
  12141. /**
  12142. * Indicates if features in the layer can be [queried](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#queryFeatures).
  12143. *
  12144. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12145. */
  12146. supportsQuery: boolean;
  12147. /**
  12148. * Indicates if the layer supports [REST API queryAttachments](https://developers.arcgis.com/rest/services-reference/query-attachments-feature-service-layer-.htm) operation.
  12149. *
  12150. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12151. */
  12152. supportsQueryAttachments: boolean;
  12153. /**
  12154. * Indicates if the layer supports a SQL-92 expression or where clause.
  12155. *
  12156. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12157. */
  12158. supportsValidateSql: boolean;
  12159. /**
  12160. * Indicates if resized attachments are supported in the layer.
  12161. *
  12162. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12163. */
  12164. supportsResizeAttachments: boolean;
  12165. }
  12166. export interface GeoJSONLayerCapabilitiesQuery {
  12167. /**
  12168. * Indicates if the geometry centroid associated with each polygon feature can be returned.
  12169. *
  12170. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12171. */
  12172. supportsCentroid: boolean;
  12173. /**
  12174. * Indicates if the layer's query operation supports a buffer distance for input geometries.
  12175. *
  12176. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12177. */
  12178. supportsDistance: boolean;
  12179. /**
  12180. * Indicates if the layer supports queries for distinct values based on fields specified in the [outFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#outFields).
  12181. *
  12182. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12183. */
  12184. supportsDistinct: boolean;
  12185. /**
  12186. * Indicates if the query operation supports `disjoint` [spatial relationship](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#spatialRelationship).
  12187. *
  12188. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12189. */
  12190. supportsDisjointSpatialRelationship: boolean;
  12191. /**
  12192. * Indicates if the layer's query response includes the extent of features.
  12193. *
  12194. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12195. */
  12196. supportsExtent: boolean;
  12197. /**
  12198. * Indicates if the layer's query response contains geometry attributes, including shape area and length attributes.
  12199. *
  12200. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12201. */
  12202. supportsGeometryProperties: boolean;
  12203. /**
  12204. * Indicates if the layer supports the [having](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#having) clause on the service.
  12205. *
  12206. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12207. */
  12208. supportsHavingClause: boolean;
  12209. /**
  12210. * Indicates if features returned in the query response can be ordered by one or more fields.
  12211. *
  12212. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12213. */
  12214. supportsOrderBy: boolean;
  12215. /**
  12216. * Indicates if the query response supports pagination.
  12217. *
  12218. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12219. */
  12220. supportsPagination: boolean;
  12221. /**
  12222. * Indicates if the layer supports [percentile statisticType](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-StatisticDefinition.html#statisticType).
  12223. *
  12224. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12225. */
  12226. supportsPercentileStatistics: boolean;
  12227. /**
  12228. * Indicates if the query response includes the [query geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html#queryGeometry).
  12229. *
  12230. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12231. */
  12232. supportsQueryGeometry: boolean;
  12233. /**
  12234. * Indicates if the query operation supports the projection of geometries onto a virtual grid.
  12235. *
  12236. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12237. */
  12238. supportsQuantization: boolean;
  12239. /**
  12240. * Indicates if the query operation supports quantization designed to be used in edit mode (highest resolution at the given spatial reference).
  12241. *
  12242. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12243. */
  12244. supportsQuantizationEditMode: boolean;
  12245. /**
  12246. * Indicates if the number of features returned by the query operation can be controlled.
  12247. *
  12248. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12249. */
  12250. supportsResultType: boolean;
  12251. /**
  12252. * Indicates if the query operation supports SQL expressions.
  12253. *
  12254. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12255. */
  12256. supportsSqlExpression: boolean;
  12257. /**
  12258. * Indicates if the query operation supports using standardized queries.
  12259. *
  12260. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12261. */
  12262. supportsStandardizedQueriesOnly: boolean;
  12263. /**
  12264. * Indicates if the layer supports field-based statistical functions.
  12265. *
  12266. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12267. */
  12268. supportsStatistics: boolean;
  12269. /**
  12270. * Indicates if the layer supports historic moment query.
  12271. *
  12272. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12273. */
  12274. supportsHistoricMoment: boolean;
  12275. }
  12276. export interface GeoJSONLayerCapabilitiesQueryRelated {
  12277. /**
  12278. * Indicates if the layer's query response includes the number of features or records related to features in the layer.
  12279. *
  12280. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12281. */
  12282. supportsCount: boolean;
  12283. /**
  12284. * Indicates if the related features or records returned in the query response can be ordered by one or more fields.
  12285. *
  12286. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12287. */
  12288. supportsOrderBy: boolean;
  12289. /**
  12290. * Indicates if the query response supports pagination for related features or records.
  12291. *
  12292. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#capabilities)
  12293. */
  12294. supportsPagination: boolean;
  12295. }
  12296. export interface GeoJSONLayerElevationInfo {
  12297. /**
  12298. * Defines how the feature is placed with respect to the terrain surface or 3D objects in the scene.
  12299. *
  12300. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#elevationInfo)
  12301. */
  12302. mode: "on-the-ground" | "relative-to-ground" | "absolute-height" | "relative-to-scene";
  12303. /**
  12304. * An elevation offset, which is added to the vertical position of the feature.
  12305. *
  12306. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#elevationInfo)
  12307. */
  12308. offset?: number;
  12309. /**
  12310. * Defines how to override a feature's Z-value based on its attributes.
  12311. *
  12312. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#elevationInfo)
  12313. */
  12314. featureExpressionInfo?: GeoJSONLayerElevationInfoFeatureExpressionInfo;
  12315. /**
  12316. * The unit for `featureExpressionInfo` and `offset` values.
  12317. *
  12318. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#elevationInfo)
  12319. */
  12320. unit?: "feet" | "meters" | "kilometers" | "miles" | "us-feet" | "yards";
  12321. }
  12322. export interface GeoJSONLayerElevationInfoFeatureExpressionInfo {
  12323. /**
  12324. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Feature Z Profile](https://developers.arcgis.com/javascript/latest/arcade/#z-values).
  12325. *
  12326. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#elevationInfo)
  12327. */
  12328. expression?: string;
  12329. }
  12330. export interface GeoJSONLayerGetFieldDomainOptions {
  12331. /**
  12332. * The feature to which the [Domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Domain.html) is assigned.
  12333. *
  12334. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#getFieldDomain)
  12335. */
  12336. feature: Graphic;
  12337. }
  12338. export interface GeoJSONLayerQueryExtentOptions {
  12339. /**
  12340. * Signal object that can be used to abort the asynchronous task.
  12341. *
  12342. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#queryExtent)
  12343. */
  12344. signal?: AbortSignal;
  12345. }
  12346. export interface GeoJSONLayerQueryFeatureCountOptions {
  12347. /**
  12348. * Signal object that can be used to abort the asynchronous task.
  12349. *
  12350. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#queryFeatureCount)
  12351. */
  12352. signal?: AbortSignal;
  12353. }
  12354. export interface GeoJSONLayerQueryFeaturesOptions {
  12355. /**
  12356. * Signal object that can be used to abort the asynchronous task.
  12357. *
  12358. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#queryFeatures)
  12359. */
  12360. signal?: AbortSignal;
  12361. }
  12362. export interface GeoJSONLayerQueryObjectIdsOptions {
  12363. /**
  12364. * Signal object that can be used to abort the asynchronous task.
  12365. *
  12366. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#queryObjectIds)
  12367. */
  12368. signal?: AbortSignal;
  12369. }
  12370. export interface GeoJSONLayerLayerviewCreateErrorEvent {
  12371. error: Error;
  12372. view: View;
  12373. }
  12374. export interface GeoJSONLayerLayerviewCreateEvent {
  12375. layerView: LayerView;
  12376. view: View;
  12377. }
  12378. export interface GeoJSONLayerLayerviewDestroyEvent {
  12379. layerView: LayerView;
  12380. view: View;
  12381. }
  12382. export interface GeoJSONLayerRefreshEvent {
  12383. dataChanged: boolean;
  12384. }
  12385. export interface GeoJSONLayerEditsEventAddedFeatures {
  12386. objectId: number;
  12387. }
  12388. export interface GeoJSONLayerEditsEventDeletedFeatures {
  12389. objectId: number;
  12390. }
  12391. export interface GeoJSONLayerEditsEventUpdatedFeatures {
  12392. objectId: number;
  12393. }
  12394. export interface GeoRSSLayer extends Layer, ScaleRangeLayer, BlendLayer {
  12395. }
  12396. export class GeoRSSLayer {
  12397. /**
  12398. * Indicates whether the layer will be included in the legend.
  12399. *
  12400. * @default true
  12401. *
  12402. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoRSSLayer.html#legendEnabled)
  12403. */
  12404. legendEnabled: boolean;
  12405. /**
  12406. * Symbol used to represent line features from the GeoRSS feed.
  12407. *
  12408. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoRSSLayer.html#lineSymbol)
  12409. */
  12410. lineSymbol: SimpleLineSymbol;
  12411. /**
  12412. * Symbol used to represent point features from the GeoRSS feed.
  12413. *
  12414. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoRSSLayer.html#pointSymbol)
  12415. */
  12416. pointSymbol: PictureMarkerSymbol | SimpleMarkerSymbol;
  12417. /**
  12418. * Symbol used to represent polygon features from the GeoRSS feed.
  12419. *
  12420. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoRSSLayer.html#polygonSymbol)
  12421. */
  12422. polygonSymbol: SimpleFillSymbol;
  12423. /**
  12424. * Refresh interval of the layer in minutes.
  12425. *
  12426. * @default 0
  12427. *
  12428. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoRSSLayer.html#refreshInterval)
  12429. */
  12430. refreshInterval: number;
  12431. readonly type: "geo-rss";
  12432. /**
  12433. * The URL pointing to a GeoRSS file.
  12434. *
  12435. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoRSSLayer.html#url)
  12436. */
  12437. url: string;
  12438. /**
  12439. * The GeoRSSLayer class is used to create a layer based on [GeoRSS](https://www.ogc.org/standards/georss).
  12440. *
  12441. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoRSSLayer.html)
  12442. */
  12443. constructor(properties?: GeoRSSLayerProperties);
  12444. /**
  12445. * Fetches all the data for the layer.
  12446. *
  12447. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoRSSLayer.html#refresh)
  12448. */
  12449. refresh(): void;
  12450. on(name: "refresh", eventHandler: GeoRSSLayerRefreshEventHandler): IHandle;
  12451. on(name: "layerview-create", eventHandler: GeoRSSLayerLayerviewCreateEventHandler): IHandle;
  12452. on(name: "layerview-create-error", eventHandler: GeoRSSLayerLayerviewCreateErrorEventHandler): IHandle;
  12453. on(name: "layerview-destroy", eventHandler: GeoRSSLayerLayerviewDestroyEventHandler): IHandle;
  12454. }
  12455. /** @deprecated Import the GeoRSSLayer class instead. */
  12456. export type GeoRSSLayerConstructor = typeof GeoRSSLayer;
  12457. interface GeoRSSLayerProperties extends LayerProperties, ScaleRangeLayerProperties, BlendLayerProperties {
  12458. /**
  12459. * Indicates whether the layer will be included in the legend.
  12460. *
  12461. * @default true
  12462. *
  12463. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoRSSLayer.html#legendEnabled)
  12464. */
  12465. legendEnabled?: boolean;
  12466. /**
  12467. * Symbol used to represent line features from the GeoRSS feed.
  12468. *
  12469. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoRSSLayer.html#lineSymbol)
  12470. */
  12471. lineSymbol?: SimpleLineSymbolProperties;
  12472. /**
  12473. * Symbol used to represent point features from the GeoRSS feed.
  12474. *
  12475. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoRSSLayer.html#pointSymbol)
  12476. */
  12477. pointSymbol?: | (PictureMarkerSymbolProperties & { type: "picture-marker" })
  12478. | (SimpleMarkerSymbolProperties & { type: "simple-marker" });
  12479. /**
  12480. * Symbol used to represent polygon features from the GeoRSS feed.
  12481. *
  12482. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoRSSLayer.html#polygonSymbol)
  12483. */
  12484. polygonSymbol?: SimpleFillSymbolProperties;
  12485. /**
  12486. * Refresh interval of the layer in minutes.
  12487. *
  12488. * @default 0
  12489. *
  12490. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoRSSLayer.html#refreshInterval)
  12491. */
  12492. refreshInterval?: number;
  12493. /**
  12494. * The URL pointing to a GeoRSS file.
  12495. *
  12496. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoRSSLayer.html#url)
  12497. */
  12498. url?: string;
  12499. }
  12500. export interface GeoRSSLayerLayerviewCreateErrorEvent {
  12501. error: Error;
  12502. view: View;
  12503. }
  12504. export interface GeoRSSLayerLayerviewCreateEvent {
  12505. layerView: LayerView;
  12506. view: View;
  12507. }
  12508. export interface GeoRSSLayerLayerviewDestroyEvent {
  12509. layerView: LayerView;
  12510. view: View;
  12511. }
  12512. export interface GeoRSSLayerRefreshEvent {
  12513. dataChanged: boolean;
  12514. }
  12515. export interface GraphicsLayer extends Layer, ScaleRangeLayer, BlendLayer {
  12516. }
  12517. export class GraphicsLayer {
  12518. /**
  12519. * Specifies how graphics are placed on the vertical axis (z).
  12520. *
  12521. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html#elevationInfo)
  12522. */
  12523. elevationInfo: GraphicsLayerElevationInfo;
  12524. /**
  12525. * A collection of [graphics](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) in the layer.
  12526. *
  12527. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html#graphics)
  12528. */
  12529. graphics: Collection<Graphic>;
  12530. /**
  12531. * Apply perspective scaling to screen-size point symbols in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  12532. *
  12533. * @default true
  12534. *
  12535. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html#screenSizePerspectiveEnabled)
  12536. */
  12537. screenSizePerspectiveEnabled: boolean;
  12538. readonly type: "graphics";
  12539. /**
  12540. * A GraphicsLayer contains one or more client-side [Graphics](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html).
  12541. *
  12542. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html)
  12543. */
  12544. constructor(properties?: GraphicsLayerProperties);
  12545. /**
  12546. * Adds a graphic to the layer's graphic collection.
  12547. *
  12548. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html#add)
  12549. */
  12550. add(graphic: Graphic): void;
  12551. /**
  12552. * Adds an array of graphics to the layer.
  12553. *
  12554. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html#addMany)
  12555. */
  12556. addMany(graphics: Graphic[]): void;
  12557. /**
  12558. * Removes a graphic from the layer.
  12559. *
  12560. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html#remove)
  12561. */
  12562. remove(graphic: Graphic): void;
  12563. /**
  12564. * Clears all the graphics from the layer.
  12565. *
  12566. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html#removeAll)
  12567. */
  12568. removeAll(): void;
  12569. /**
  12570. * Removes an array of graphics from the layer.
  12571. *
  12572. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html#removeMany)
  12573. */
  12574. removeMany(graphics: Graphic[]): void;
  12575. }
  12576. /** @deprecated Import the GraphicsLayer class instead. */
  12577. export type GraphicsLayerConstructor = typeof GraphicsLayer;
  12578. interface GraphicsLayerProperties extends LayerProperties, ScaleRangeLayerProperties, BlendLayerProperties {
  12579. /**
  12580. * Specifies how graphics are placed on the vertical axis (z).
  12581. *
  12582. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html#elevationInfo)
  12583. */
  12584. elevationInfo?: GraphicsLayerElevationInfo;
  12585. /**
  12586. * A collection of [graphics](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) in the layer.
  12587. *
  12588. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html#graphics)
  12589. */
  12590. graphics?: CollectionProperties<GraphicProperties>;
  12591. /**
  12592. * Apply perspective scaling to screen-size point symbols in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  12593. *
  12594. * @default true
  12595. *
  12596. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html#screenSizePerspectiveEnabled)
  12597. */
  12598. screenSizePerspectiveEnabled?: boolean;
  12599. }
  12600. export interface GraphicsLayerElevationInfo {
  12601. /**
  12602. * Defines how the feature is placed with respect to the terrain surface or 3D objects in the scene.
  12603. *
  12604. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html#elevationInfo)
  12605. */
  12606. mode: "on-the-ground" | "relative-to-ground" | "absolute-height" | "relative-to-scene";
  12607. /**
  12608. * An elevation offset, which is added to the vertical position of the graphic.
  12609. *
  12610. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html#elevationInfo)
  12611. */
  12612. offset?: number;
  12613. /**
  12614. * Defines how to override a feature's Z-value based on its attributes.
  12615. *
  12616. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html#elevationInfo)
  12617. */
  12618. featureExpressionInfo?: GraphicsLayerElevationInfoFeatureExpressionInfo;
  12619. /**
  12620. * The unit for `featureExpressionInfo` and `offset` values.
  12621. *
  12622. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html#elevationInfo)
  12623. */
  12624. unit?: "feet" | "meters" | "kilometers" | "miles" | "us-feet" | "yards";
  12625. }
  12626. export interface GraphicsLayerElevationInfoFeatureExpressionInfo {
  12627. /**
  12628. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Feature Z Profile](https://developers.arcgis.com/javascript/latest/arcade/#z-values).
  12629. *
  12630. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html#elevationInfo)
  12631. */
  12632. expression?: string;
  12633. }
  12634. export interface GroupLayer extends Layer, LayersMixin, TablesMixin, PortalLayer, BlendLayer {
  12635. }
  12636. export class GroupLayer {
  12637. /**
  12638. * A flattened collection of all [layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html) in the group layer.
  12639. *
  12640. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GroupLayer.html#allLayers)
  12641. */
  12642. readonly allLayers: Collection<Layer>;
  12643. /**
  12644. * A flattened collection of tables anywhere in the group layer's hierarchy.
  12645. *
  12646. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GroupLayer.html#allTables)
  12647. */
  12648. readonly allTables: Collection<Layer>;
  12649. /**
  12650. * The maximum scale (most zoomed in) at which the layer is visible in the view.
  12651. *
  12652. * @default 0
  12653. *
  12654. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GroupLayer.html#maxScale)
  12655. */
  12656. maxScale: number;
  12657. /**
  12658. * The minimum scale (most zoomed out) at which the layer is visible in the view.
  12659. *
  12660. * @default 0
  12661. *
  12662. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GroupLayer.html#minScale)
  12663. */
  12664. minScale: number;
  12665. readonly type: "group";
  12666. /**
  12667. * Indicates how to manage the visibility of the children layers.
  12668. *
  12669. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GroupLayer.html#visibilityMode)
  12670. */
  12671. visibilityMode: "independent" | "inherited" | "exclusive";
  12672. /**
  12673. * GroupLayer provides the ability to organize several sublayers into one common layer.
  12674. *
  12675. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GroupLayer.html)
  12676. */
  12677. constructor(properties?: GroupLayerProperties);
  12678. /**
  12679. * Loads all the externally loadable resources associated with the group layer.
  12680. *
  12681. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GroupLayer.html#loadAll)
  12682. */
  12683. loadAll(): Promise<GroupLayer>;
  12684. static fromJSON(json: any): GroupLayer;
  12685. }
  12686. /** @deprecated Import the GroupLayer class instead. */
  12687. export type GroupLayerConstructor = typeof GroupLayer;
  12688. interface GroupLayerProperties extends LayerProperties, LayersMixinProperties, TablesMixinProperties, PortalLayerProperties, BlendLayerProperties {
  12689. /**
  12690. * The maximum scale (most zoomed in) at which the layer is visible in the view.
  12691. *
  12692. * @default 0
  12693. *
  12694. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GroupLayer.html#maxScale)
  12695. */
  12696. maxScale?: number;
  12697. /**
  12698. * The minimum scale (most zoomed out) at which the layer is visible in the view.
  12699. *
  12700. * @default 0
  12701. *
  12702. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GroupLayer.html#minScale)
  12703. */
  12704. minScale?: number;
  12705. /**
  12706. * Indicates how to manage the visibility of the children layers.
  12707. *
  12708. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GroupLayer.html#visibilityMode)
  12709. */
  12710. visibilityMode?: "independent" | "inherited" | "exclusive";
  12711. }
  12712. export interface ImageryLayer extends Layer, ArcGISImageService, PortalLayer, RefreshableLayer, ScaleRangeLayer, TemporalLayer, BlendLayer {
  12713. }
  12714. export class ImageryLayer {
  12715. /**
  12716. * A list of custom parameters appended to the URL of all resources fetched by the layer.
  12717. *
  12718. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#customParameters)
  12719. */
  12720. customParameters: any;
  12721. /**
  12722. * Indicates whether the layer will be included in the legend.
  12723. *
  12724. * @default true
  12725. *
  12726. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#legendEnabled)
  12727. */
  12728. legendEnabled: boolean;
  12729. /**
  12730. * Indicates whether to display popups when features in the layer are clicked.
  12731. *
  12732. * @default true
  12733. *
  12734. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#popupEnabled)
  12735. */
  12736. popupEnabled: boolean;
  12737. /**
  12738. * The popup template for the layer.
  12739. *
  12740. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#popupTemplate)
  12741. */
  12742. popupTemplate: PopupTemplate;
  12743. readonly type: "imagery";
  12744. /**
  12745. * Represents a dynamic [image service resource](https://developers.arcgis.com/rest/services-reference/image-service.htm) as a layer.
  12746. *
  12747. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html)
  12748. */
  12749. constructor(properties?: ImageryLayerProperties);
  12750. /**
  12751. * Creates a default popup template for the layer, populated with all the fields of the layer.
  12752. *
  12753. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#createPopupTemplate)
  12754. */
  12755. createPopupTemplate(options?: CreatePopupTemplateOptions): PopupTemplate;
  12756. /**
  12757. * Executes the [pixelFilter](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#pixelFilter) function and redraws the layer.
  12758. *
  12759. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#redraw)
  12760. */
  12761. redraw(): void;
  12762. on(name: "refresh", eventHandler: ImageryLayerRefreshEventHandler): IHandle;
  12763. on(name: "layerview-create", eventHandler: ImageryLayerLayerviewCreateEventHandler): IHandle;
  12764. on(name: "layerview-create-error", eventHandler: ImageryLayerLayerviewCreateErrorEventHandler): IHandle;
  12765. on(name: "layerview-destroy", eventHandler: ImageryLayerLayerviewDestroyEventHandler): IHandle;
  12766. static fromJSON(json: any): ImageryLayer;
  12767. }
  12768. /** @deprecated Import the ImageryLayer class instead. */
  12769. export type ImageryLayerConstructor = typeof ImageryLayer;
  12770. interface ImageryLayerProperties extends LayerProperties, ArcGISImageServiceProperties, PortalLayerProperties, RefreshableLayerProperties, ScaleRangeLayerProperties, TemporalLayerProperties, BlendLayerProperties {
  12771. /**
  12772. * A list of custom parameters appended to the URL of all resources fetched by the layer.
  12773. *
  12774. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#customParameters)
  12775. */
  12776. customParameters?: any;
  12777. /**
  12778. * Indicates whether the layer will be included in the legend.
  12779. *
  12780. * @default true
  12781. *
  12782. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#legendEnabled)
  12783. */
  12784. legendEnabled?: boolean;
  12785. /**
  12786. * Indicates whether to display popups when features in the layer are clicked.
  12787. *
  12788. * @default true
  12789. *
  12790. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#popupEnabled)
  12791. */
  12792. popupEnabled?: boolean;
  12793. /**
  12794. * The popup template for the layer.
  12795. *
  12796. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#popupTemplate)
  12797. */
  12798. popupTemplate?: PopupTemplateProperties;
  12799. }
  12800. export interface ImageryLayerLayerviewCreateErrorEvent {
  12801. error: Error;
  12802. view: View;
  12803. }
  12804. export interface ImageryLayerLayerviewCreateEvent {
  12805. layerView: LayerView;
  12806. view: View;
  12807. }
  12808. export interface ImageryLayerLayerviewDestroyEvent {
  12809. layerView: LayerView;
  12810. view: View;
  12811. }
  12812. /**
  12813. * An object that provides the user access to [pixels](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#pixels) and their values in the layer.
  12814. *
  12815. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#PixelData)
  12816. */
  12817. export interface PixelData {
  12818. /**
  12819. * The extent of the `pixelBlock`.
  12820. *
  12821. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#PixelData)
  12822. */
  12823. extent: Extent;
  12824. /**
  12825. * An object representing the pixels in the view.
  12826. *
  12827. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#PixelData)
  12828. */
  12829. pixelBlock: PixelBlock;
  12830. }
  12831. export type PixelFilterFunction = (pixelData: PixelData) => void;
  12832. /**
  12833. * Raster statistics information returned that meets the specified [ImageHistogramParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageHistogramParameters.html) from the [computeStatisticsHistograms()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#computeStatisticsHistograms) method.
  12834. *
  12835. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#RasterBandStatistics)
  12836. */
  12837. export interface RasterBandStatistics {
  12838. /**
  12839. * Minimum value of the statistics.
  12840. *
  12841. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#RasterBandStatistics)
  12842. */
  12843. min: number;
  12844. /**
  12845. * Maximum value of the statistics.
  12846. *
  12847. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#RasterBandStatistics)
  12848. */
  12849. max: number;
  12850. /**
  12851. * Average of the statistics.
  12852. *
  12853. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#RasterBandStatistics)
  12854. */
  12855. avg: number;
  12856. /**
  12857. * Standard deviation of the statistics.
  12858. *
  12859. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#RasterBandStatistics)
  12860. */
  12861. stddev: number;
  12862. }
  12863. /**
  12864. * The raster function published with the image service.
  12865. *
  12866. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#RasterFunctionInfo)
  12867. */
  12868. export interface RasterFunctionInfo {
  12869. /**
  12870. * Name of the raster function.
  12871. *
  12872. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#RasterFunctionInfo)
  12873. */
  12874. name: string;
  12875. /**
  12876. * Description of the raster function.
  12877. *
  12878. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#RasterFunctionInfo)
  12879. */
  12880. description: string;
  12881. /**
  12882. * Additional info describing what the raster function does.
  12883. *
  12884. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#RasterFunctionInfo)
  12885. */
  12886. help: string;
  12887. /**
  12888. * The function type.
  12889. *
  12890. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#RasterFunctionInfo)
  12891. */
  12892. functionType: number;
  12893. /**
  12894. * Inline base64 encoded thumbnail of the raster function.
  12895. *
  12896. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#RasterFunctionInfo)
  12897. */
  12898. thumbnail: string;
  12899. }
  12900. /**
  12901. * Raster histogram information returned that meets the specified [ImageHistogramParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageHistogramParameters.html) from the [computeHistograms()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#computeHistograms) or [computeStatisticsHistograms()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#computeStatisticsHistograms) method.
  12902. *
  12903. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#RasterHistogram)
  12904. */
  12905. export interface RasterHistogram {
  12906. /**
  12907. * Number of bins.
  12908. *
  12909. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#RasterHistogram)
  12910. */
  12911. size: number;
  12912. /**
  12913. * The minimum pixel value of the histogram.
  12914. *
  12915. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#RasterHistogram)
  12916. */
  12917. min: number;
  12918. /**
  12919. * The maximum pixel value of the histogram.
  12920. *
  12921. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#RasterHistogram)
  12922. */
  12923. max: number;
  12924. /**
  12925. * Count of pixels that fall into each bin.
  12926. *
  12927. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#RasterHistogram)
  12928. */
  12929. counts: number[] | Uint32Array;
  12930. }
  12931. export interface ImageryLayerRefreshEvent {
  12932. dataChanged: boolean;
  12933. }
  12934. export interface ImageryTileLayer extends Layer, ImageryTileMixin, PortalLayer, ScaleRangeLayer, BlendLayer {
  12935. }
  12936. export class ImageryTileLayer {
  12937. /**
  12938. * A list of custom parameters appended to the URL of all resources fetched by the layer.
  12939. *
  12940. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#customParameters)
  12941. */
  12942. customParameters: any;
  12943. /**
  12944. * Defines how to interpolate pixel values.
  12945. *
  12946. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#interpolation)
  12947. */
  12948. interpolation: "nearest" | "bilinear" | "cubic" | "majority";
  12949. /**
  12950. * Indicates whether the layer will be included in the legend.
  12951. *
  12952. * @default true
  12953. *
  12954. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#legendEnabled)
  12955. */
  12956. legendEnabled: boolean;
  12957. /**
  12958. * Represents a multidimensional subset of raster data.
  12959. *
  12960. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#multidimensionalSubset)
  12961. */
  12962. multidimensionalSubset: MultidimensionalSubset;
  12963. /**
  12964. * Indicates whether to display popups when features in the layer are clicked.
  12965. *
  12966. * @default true
  12967. *
  12968. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#popupEnabled)
  12969. */
  12970. popupEnabled: boolean;
  12971. /**
  12972. * The popup template for the layer.
  12973. *
  12974. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#popupTemplate)
  12975. */
  12976. popupTemplate: PopupTemplate;
  12977. /**
  12978. * A complete list of fields that consists of service pixel value and vector fields.
  12979. *
  12980. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#rasterFields)
  12981. */
  12982. readonly rasterFields: Field[];
  12983. /**
  12984. * The [tiled image service's metadata JSON](https://developers.arcgis.com/rest/services-reference/image-service.htm) exposed by the ArcGIS REST API.
  12985. *
  12986. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#sourceJSON)
  12987. */
  12988. sourceJSON: any;
  12989. /**
  12990. * The tiling scheme information for the layer.
  12991. *
  12992. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#tileInfo)
  12993. */
  12994. tileInfo: TileInfo;
  12995. /**
  12996. * The layer's time extent.
  12997. *
  12998. * @default null
  12999. *
  13000. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#timeExtent)
  13001. */
  13002. timeExtent: TimeExtent;
  13003. /**
  13004. * TimeInfo provides information such as date fields that store [start](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#startField) and [end](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#endField) time for each feature and the [fullTimeExtent](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#fullTimeExtent) for the layer.
  13005. *
  13006. * @default null
  13007. *
  13008. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#timeInfo)
  13009. */
  13010. timeInfo: TimeInfo;
  13011. /**
  13012. * A temporary offset of the time data based on a certain [TimeInterval](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeInterval.html).
  13013. *
  13014. * @default null
  13015. *
  13016. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#timeOffset)
  13017. */
  13018. timeOffset: TimeInterval;
  13019. readonly type: "imagery-tile";
  13020. /**
  13021. * The URL of the REST endpoint of the layer.
  13022. *
  13023. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#url)
  13024. */
  13025. url: string;
  13026. /**
  13027. * Determines if the layer will update its temporal data based on the view's [timeExtent](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#timeExtent).
  13028. *
  13029. * @default true
  13030. *
  13031. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#useViewTime)
  13032. */
  13033. useViewTime: boolean;
  13034. /**
  13035. * The version of ArcGIS Server in which the image service is published.
  13036. *
  13037. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#version)
  13038. */
  13039. readonly version: number;
  13040. /**
  13041. * ImageryTileLayer presents raster data from a tiled image service.
  13042. *
  13043. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html)
  13044. */
  13045. constructor(properties?: ImageryTileLayerProperties);
  13046. /**
  13047. * Creates a default popup template for the layer, populated with all the fields of the layer.
  13048. *
  13049. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#createPopupTemplate)
  13050. */
  13051. createPopupTemplate(options?: CreatePopupTemplateOptions): PopupTemplate;
  13052. /**
  13053. * This method fetches a tile for the given level, row and column present in the view.
  13054. *
  13055. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#fetchTile)
  13056. */
  13057. fetchTile(level: number, row: number, col: number, options?: ImageryTileLayerFetchTileOptions): Promise<any>;
  13058. static fromJSON(json: any): ImageryTileLayer;
  13059. }
  13060. /** @deprecated Import the ImageryTileLayer class instead. */
  13061. export type ImageryTileLayerConstructor = typeof ImageryTileLayer;
  13062. interface ImageryTileLayerProperties extends LayerProperties, ImageryTileMixinProperties, PortalLayerProperties, ScaleRangeLayerProperties, BlendLayerProperties {
  13063. /**
  13064. * A list of custom parameters appended to the URL of all resources fetched by the layer.
  13065. *
  13066. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#customParameters)
  13067. */
  13068. customParameters?: any;
  13069. /**
  13070. * Defines how to interpolate pixel values.
  13071. *
  13072. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#interpolation)
  13073. */
  13074. interpolation?: "nearest" | "bilinear" | "cubic" | "majority";
  13075. /**
  13076. * Indicates whether the layer will be included in the legend.
  13077. *
  13078. * @default true
  13079. *
  13080. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#legendEnabled)
  13081. */
  13082. legendEnabled?: boolean;
  13083. /**
  13084. * Represents a multidimensional subset of raster data.
  13085. *
  13086. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#multidimensionalSubset)
  13087. */
  13088. multidimensionalSubset?: MultidimensionalSubsetProperties;
  13089. /**
  13090. * Indicates whether to display popups when features in the layer are clicked.
  13091. *
  13092. * @default true
  13093. *
  13094. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#popupEnabled)
  13095. */
  13096. popupEnabled?: boolean;
  13097. /**
  13098. * The popup template for the layer.
  13099. *
  13100. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#popupTemplate)
  13101. */
  13102. popupTemplate?: PopupTemplateProperties;
  13103. /**
  13104. * The [tiled image service's metadata JSON](https://developers.arcgis.com/rest/services-reference/image-service.htm) exposed by the ArcGIS REST API.
  13105. *
  13106. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#sourceJSON)
  13107. */
  13108. sourceJSON?: any;
  13109. /**
  13110. * The tiling scheme information for the layer.
  13111. *
  13112. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#tileInfo)
  13113. */
  13114. tileInfo?: TileInfoProperties;
  13115. /**
  13116. * The layer's time extent.
  13117. *
  13118. * @default null
  13119. *
  13120. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#timeExtent)
  13121. */
  13122. timeExtent?: TimeExtentProperties;
  13123. /**
  13124. * TimeInfo provides information such as date fields that store [start](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#startField) and [end](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#endField) time for each feature and the [fullTimeExtent](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#fullTimeExtent) for the layer.
  13125. *
  13126. * @default null
  13127. *
  13128. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#timeInfo)
  13129. */
  13130. timeInfo?: TimeInfoProperties;
  13131. /**
  13132. * A temporary offset of the time data based on a certain [TimeInterval](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeInterval.html).
  13133. *
  13134. * @default null
  13135. *
  13136. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#timeOffset)
  13137. */
  13138. timeOffset?: TimeIntervalProperties;
  13139. /**
  13140. * The URL of the REST endpoint of the layer.
  13141. *
  13142. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#url)
  13143. */
  13144. url?: string;
  13145. /**
  13146. * Determines if the layer will update its temporal data based on the view's [timeExtent](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#timeExtent).
  13147. *
  13148. * @default true
  13149. *
  13150. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#useViewTime)
  13151. */
  13152. useViewTime?: boolean;
  13153. }
  13154. export interface ImageryTileLayerFetchTileOptions {
  13155. /**
  13156. * Signal object that can be used to abort the asynchronous task.
  13157. *
  13158. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#fetchTile)
  13159. */
  13160. signal?: AbortSignal;
  13161. }
  13162. /**
  13163. * Additional options to set for `identify()` method on [ImageryTileLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#identify) and [WCSLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html#identify).
  13164. *
  13165. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#RasterIdentifyOptions)
  13166. */
  13167. export interface RasterIdentifyOptions {
  13168. /**
  13169. * A dimensional definition used for the `identify` operation.
  13170. *
  13171. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#RasterIdentifyOptions)
  13172. */
  13173. multidimensionalDefinition?: DimensionalDefinition[];
  13174. /**
  13175. * Name of the transposed variable.
  13176. *
  13177. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#RasterIdentifyOptions)
  13178. */
  13179. transposedVariableName?: string;
  13180. /**
  13181. * [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) allows for cancelable requests.
  13182. *
  13183. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#RasterIdentifyOptions)
  13184. */
  13185. signal?: AbortSignal;
  13186. }
  13187. /**
  13188. * The result of `identify` operation on [ImageryTileLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#identify) and [WCSLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html#identify).
  13189. *
  13190. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#RasterIdentifyResult)
  13191. */
  13192. export interface RasterIdentifyResult {
  13193. /**
  13194. * The identified location.
  13195. *
  13196. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#RasterIdentifyResult)
  13197. */
  13198. location: Point;
  13199. /**
  13200. * Image service pixel values.
  13201. *
  13202. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#RasterIdentifyResult)
  13203. */
  13204. value: number[];
  13205. /**
  13206. * Transposed multidimensional data for the requested location and variable returned from a transposed multidimensional [ImageryTileLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#identify).
  13207. *
  13208. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#RasterIdentifyResult)
  13209. */
  13210. dataSeries?: RasterSliceValue[];
  13211. }
  13212. /**
  13213. * Data series returned in [RasterIdentifyResult](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#RasterIdentifyResult) when [identify()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#identify) is called on a transposed multidimensional ImageryTileLayer.
  13214. *
  13215. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#RasterSliceValue)
  13216. */
  13217. export interface RasterSliceValue {
  13218. /**
  13219. * Image service pixel values for a given slice.
  13220. *
  13221. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#RasterSliceValue)
  13222. */
  13223. value: number[];
  13224. /**
  13225. * A dimensional definition associated with a given slice.
  13226. *
  13227. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#RasterSliceValue)
  13228. */
  13229. multidimensionalDefinition: DimensionalDefinition[];
  13230. /**
  13231. * The magnitude and direction values for services containing vector data.
  13232. *
  13233. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#RasterSliceValue)
  13234. */
  13235. magdirValue?: number[];
  13236. }
  13237. export interface IntegratedMeshLayer extends Layer, SceneService, PortalLayer, ScaleRangeLayer, APIKeyMixin {
  13238. }
  13239. export class IntegratedMeshLayer {
  13240. /**
  13241. * Specifies how the mesh is placed on the vertical axis (z).
  13242. *
  13243. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-IntegratedMeshLayer.html#elevationInfo)
  13244. */
  13245. elevationInfo: IntegratedMeshLayerElevationInfo;
  13246. /**
  13247. * A collection of [SceneModification](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SceneModification.html) with polygons and types to apply client-side modifications.
  13248. *
  13249. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-IntegratedMeshLayer.html#modifications)
  13250. */
  13251. modifications: SceneModifications;
  13252. readonly type: "integrated-mesh";
  13253. /**
  13254. * The IntegratedMeshLayer is designed for visualizing accurate representations in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) of infrastructure and natural landscapes that are difficult to access.
  13255. *
  13256. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-IntegratedMeshLayer.html)
  13257. */
  13258. constructor(properties?: IntegratedMeshLayerProperties);
  13259. static fromJSON(json: any): IntegratedMeshLayer;
  13260. }
  13261. /** @deprecated Import the IntegratedMeshLayer class instead. */
  13262. export type IntegratedMeshLayerConstructor = typeof IntegratedMeshLayer;
  13263. interface IntegratedMeshLayerProperties extends LayerProperties, SceneServiceProperties, PortalLayerProperties, ScaleRangeLayerProperties, APIKeyMixinProperties {
  13264. /**
  13265. * Specifies how the mesh is placed on the vertical axis (z).
  13266. *
  13267. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-IntegratedMeshLayer.html#elevationInfo)
  13268. */
  13269. elevationInfo?: IntegratedMeshLayerElevationInfo;
  13270. /**
  13271. * A collection of [SceneModification](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SceneModification.html) with polygons and types to apply client-side modifications.
  13272. *
  13273. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-IntegratedMeshLayer.html#modifications)
  13274. */
  13275. modifications?: SceneModificationsProperties;
  13276. }
  13277. export interface IntegratedMeshLayerElevationInfo {
  13278. /**
  13279. * Defines how the mesh is placed on the vertical axis (z).
  13280. *
  13281. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-IntegratedMeshLayer.html#elevationInfo)
  13282. */
  13283. mode: string;
  13284. /**
  13285. * An elevation offset, which is added to the vertical position of the mesh.
  13286. *
  13287. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-IntegratedMeshLayer.html#elevationInfo)
  13288. */
  13289. offset?: number;
  13290. /**
  13291. * The unit for `offset` values.
  13292. *
  13293. * @default meters
  13294. *
  13295. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-IntegratedMeshLayer.html#elevationInfo)
  13296. */
  13297. unit?: "feet" | "meters" | "kilometers" | "miles" | "us-feet" | "yards";
  13298. }
  13299. export interface KMLLayer extends Layer, PortalLayer, ScaleRangeLayer, BlendLayer {
  13300. }
  13301. export class KMLLayer {
  13302. /**
  13303. * A collection of [KMLSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-KMLSublayer.html)s.
  13304. *
  13305. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-KMLLayer.html#sublayers)
  13306. */
  13307. sublayers: Collection<KMLSublayer>;
  13308. readonly type: "kml";
  13309. /**
  13310. * The publicly accessible URL for a .kml or .kmz file.
  13311. *
  13312. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-KMLLayer.html#url)
  13313. */
  13314. url: string;
  13315. /**
  13316. * The KMLLayer class is used to create a layer based on a KML file (.kml, .kmz).
  13317. *
  13318. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-KMLLayer.html)
  13319. */
  13320. constructor(properties?: KMLLayerProperties);
  13321. static fromJSON(json: any): KMLLayer;
  13322. }
  13323. /** @deprecated Import the KMLLayer class instead. */
  13324. export type KMLLayerConstructor = typeof KMLLayer;
  13325. interface KMLLayerProperties extends LayerProperties, PortalLayerProperties, ScaleRangeLayerProperties, BlendLayerProperties {
  13326. /**
  13327. * A collection of [KMLSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-KMLSublayer.html)s.
  13328. *
  13329. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-KMLLayer.html#sublayers)
  13330. */
  13331. sublayers?: CollectionProperties<KMLSublayerProperties>;
  13332. /**
  13333. * The publicly accessible URL for a .kml or .kmz file.
  13334. *
  13335. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-KMLLayer.html#url)
  13336. */
  13337. url?: string;
  13338. }
  13339. export interface Layer extends Accessor, Loadable, Evented, Identifiable {
  13340. }
  13341. export class Layer {
  13342. /**
  13343. * The full extent of the layer.
  13344. *
  13345. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#fullExtent)
  13346. */
  13347. fullExtent: Extent;
  13348. /**
  13349. * The unique ID assigned to the layer.
  13350. *
  13351. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#id)
  13352. */
  13353. id: string;
  13354. /**
  13355. * Indicates how the layer should display in the [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html) widget.
  13356. *
  13357. * @default "show"
  13358. *
  13359. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#listMode)
  13360. */
  13361. listMode: "show" | "hide" | "hide-children";
  13362. /**
  13363. * Indicates whether the layer's resources have loaded.
  13364. *
  13365. * @default false
  13366. *
  13367. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#loaded)
  13368. */
  13369. readonly loaded: boolean;
  13370. /**
  13371. * The opacity of the layer.
  13372. *
  13373. * @default 1
  13374. *
  13375. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#opacity)
  13376. */
  13377. opacity: number;
  13378. /**
  13379. * The title of the layer used to identify it in places such as the [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html) widget.
  13380. *
  13381. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#title)
  13382. */
  13383. title: string;
  13384. /**
  13385. * The layer type provides a convenient way to check the type of the layer without the need to import specific layer modules.
  13386. *
  13387. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#type)
  13388. */
  13389. readonly type: | "base-dynamic"
  13390. | "base-elevation"
  13391. | "base-tile"
  13392. | "bing-maps"
  13393. | "building-scene"
  13394. | "csv"
  13395. | "dimension"
  13396. | "elevation"
  13397. | "feature"
  13398. | "geojson"
  13399. | "geo-rss"
  13400. | "graphics"
  13401. | "group"
  13402. | "imagery"
  13403. | "imagery-tile"
  13404. | "integrated-mesh"
  13405. | "kml"
  13406. | "line-of-sight"
  13407. | "map-image"
  13408. | "map-notes"
  13409. | "media"
  13410. | "ogc-feature"
  13411. | "open-street-map"
  13412. | "point-cloud"
  13413. | "route"
  13414. | "scene"
  13415. | "georeferenced-image"
  13416. | "stream"
  13417. | "tile"
  13418. | "unknown"
  13419. | "unsupported"
  13420. | "vector-tile"
  13421. | "wcs"
  13422. | "web-tile"
  13423. | "wfs"
  13424. | "wms"
  13425. | "wmts"
  13426. | "voxel"
  13427. | "subtype-group";
  13428. /**
  13429. * Indicates if the layer is visible in the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html).
  13430. *
  13431. * @default true
  13432. *
  13433. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#visible)
  13434. */
  13435. visible: boolean;
  13436. /**
  13437. * The layer is the most fundamental component of a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html).
  13438. *
  13439. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html)
  13440. */
  13441. constructor(properties?: LayerProperties);
  13442. /**
  13443. * Called by the views, such as [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) and [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html), when the layer is added to the [Map.layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#layers) collection and a layer view must be created for it.
  13444. *
  13445. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#createLayerView)
  13446. */
  13447. createLayerView(view: any, options?: LayerCreateLayerViewOptions): Promise<LayerView>;
  13448. /**
  13449. * Destroys the layer and any associated resources (including its [portalItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#portalItem), if it is a property on the layer).
  13450. *
  13451. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#destroy)
  13452. */
  13453. destroy(): void;
  13454. /**
  13455. * Fetches custom attribution data for the layer when it becomes available.
  13456. *
  13457. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#fetchAttributionData)
  13458. */
  13459. fetchAttributionData(): Promise<any>;
  13460. on(name: "layerview-create", eventHandler: LayerLayerviewCreateEventHandler): IHandle;
  13461. on(name: "layerview-create-error", eventHandler: LayerLayerviewCreateErrorEventHandler): IHandle;
  13462. on(name: "layerview-destroy", eventHandler: LayerLayerviewDestroyEventHandler): IHandle;
  13463. /**
  13464. * Creates a new layer instance from an ArcGIS Server URL.
  13465. *
  13466. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#fromArcGISServerUrl)
  13467. */
  13468. static fromArcGISServerUrl(params: LayerFromArcGISServerUrlParams): Promise<Layer>;
  13469. /**
  13470. * Creates a new layer instance of the appropriate layer class from an ArcGIS Online or ArcGIS Enterprise [portal item](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html).
  13471. *
  13472. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#fromPortalItem)
  13473. */
  13474. static fromPortalItem(params: LayerFromPortalItemParams): Promise<Layer>;
  13475. }
  13476. /** @deprecated Import the Layer class instead. */
  13477. export type LayerConstructor = typeof Layer;
  13478. interface LayerProperties extends LoadableProperties {
  13479. /**
  13480. * The full extent of the layer.
  13481. *
  13482. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#fullExtent)
  13483. */
  13484. fullExtent?: ExtentProperties;
  13485. /**
  13486. * The unique ID assigned to the layer.
  13487. *
  13488. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#id)
  13489. */
  13490. id?: string;
  13491. /**
  13492. * Indicates how the layer should display in the [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html) widget.
  13493. *
  13494. * @default "show"
  13495. *
  13496. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#listMode)
  13497. */
  13498. listMode?: "show" | "hide" | "hide-children";
  13499. /**
  13500. * The opacity of the layer.
  13501. *
  13502. * @default 1
  13503. *
  13504. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#opacity)
  13505. */
  13506. opacity?: number;
  13507. /**
  13508. * The title of the layer used to identify it in places such as the [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html) widget.
  13509. *
  13510. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#title)
  13511. */
  13512. title?: string;
  13513. /**
  13514. * Indicates if the layer is visible in the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html).
  13515. *
  13516. * @default true
  13517. *
  13518. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#visible)
  13519. */
  13520. visible?: boolean;
  13521. }
  13522. export interface LayerCreateLayerViewOptions {
  13523. /**
  13524. * A signal to abort the creation of the layerview.
  13525. *
  13526. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#createLayerView)
  13527. */
  13528. signal?: AbortSignal;
  13529. }
  13530. export interface LayerFromArcGISServerUrlParams {
  13531. /**
  13532. * The ArcGIS Server URL used to create the layer.
  13533. *
  13534. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#fromArcGISServerUrl)
  13535. */
  13536. url: string;
  13537. /**
  13538. * Set any of the layer's properties here for constructing the layer instance (e.g.
  13539. *
  13540. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#fromArcGISServerUrl)
  13541. */
  13542. properties?: any;
  13543. }
  13544. export interface LayerFromPortalItemParams {
  13545. /**
  13546. * The object representing an ArcGIS Online or ArcGIS Enterprise portal item from which to load the layer.
  13547. *
  13548. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#fromPortalItem)
  13549. */
  13550. portalItem: PortalItem;
  13551. }
  13552. export interface LayerLayerviewCreateErrorEvent {
  13553. error: Error;
  13554. view: View;
  13555. }
  13556. export interface LayerLayerviewCreateEvent {
  13557. layerView: LayerView;
  13558. view: View;
  13559. }
  13560. export interface LayerLayerviewDestroyEvent {
  13561. layerView: LayerView;
  13562. view: View;
  13563. }
  13564. export class LineOfSightLayer extends Layer {
  13565. /**
  13566. * The [LineOfSightAnalysis](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysis.html) associated with the layer.
  13567. *
  13568. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-LineOfSightLayer.html#analysis)
  13569. */
  13570. analysis: LineOfSightAnalysis;
  13571. /**
  13572. * Observer location.
  13573. *
  13574. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-LineOfSightLayer.html#observer)
  13575. */
  13576. observer: LineOfSightAnalysisObserver;
  13577. /**
  13578. * The spatial reference of the layer.
  13579. *
  13580. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-LineOfSightLayer.html#spatialReference)
  13581. */
  13582. readonly spatialReference: SpatialReference;
  13583. /**
  13584. * Target locations.
  13585. *
  13586. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-LineOfSightLayer.html#targets)
  13587. */
  13588. targets: Collection<LineOfSightAnalysisTarget>;
  13589. readonly type: "line-of-sight";
  13590. /**
  13591. * LineOfSightLayer computes the line of sight from a single observer position towards a set of targets.
  13592. *
  13593. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-LineOfSightLayer.html)
  13594. */
  13595. constructor(properties?: LineOfSightLayerProperties);
  13596. }
  13597. /** @deprecated Import the LineOfSightLayer class instead. */
  13598. export type LineOfSightLayerConstructor = typeof LineOfSightLayer;
  13599. interface LineOfSightLayerProperties extends LayerProperties {
  13600. /**
  13601. * The [LineOfSightAnalysis](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysis.html) associated with the layer.
  13602. *
  13603. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-LineOfSightLayer.html#analysis)
  13604. */
  13605. analysis?: LineOfSightAnalysisProperties;
  13606. /**
  13607. * Observer location.
  13608. *
  13609. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-LineOfSightLayer.html#observer)
  13610. */
  13611. observer?: LineOfSightAnalysisObserverProperties;
  13612. /**
  13613. * Target locations.
  13614. *
  13615. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-LineOfSightLayer.html#targets)
  13616. */
  13617. targets?: CollectionProperties<LineOfSightAnalysisTargetProperties>;
  13618. }
  13619. export interface MapImageLayer extends Layer, SublayersOwner, ArcGISMapService, ScaleRangeLayer, RefreshableLayer, TemporalLayer, BlendLayer, CustomParametersMixin {
  13620. }
  13621. export class MapImageLayer {
  13622. /**
  13623. * A flat [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of all the [sublayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#sublayers) in the MapImageLayer including the sublayers of its sublayers.
  13624. *
  13625. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#allSublayers)
  13626. */
  13627. readonly allSublayers: Collection<Sublayer>;
  13628. /**
  13629. * This property is set by the service publisher and indicates that dates should be considered without the local timezone.
  13630. *
  13631. * @default false
  13632. *
  13633. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#datesInUnknownTimezone)
  13634. */
  13635. readonly datesInUnknownTimezone: boolean;
  13636. /**
  13637. * The output dots per inch (DPI) of the MapImageLayer.
  13638. *
  13639. * @default 96
  13640. *
  13641. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#dpi)
  13642. */
  13643. dpi: number;
  13644. /**
  13645. * The version of the geodatabase of the map service data.
  13646. *
  13647. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#gdbVersion)
  13648. */
  13649. gdbVersion: string;
  13650. /**
  13651. * The output image type.
  13652. *
  13653. * @default png24
  13654. *
  13655. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#imageFormat)
  13656. */
  13657. imageFormat: "png" | "png8" | "png24" | "png32" | "jpg" | "pdf" | "bmp" | "gif" | "svg" | "pngjpg";
  13658. /**
  13659. * Indicates the maximum height of the image exported by the service.
  13660. *
  13661. * @default 2048
  13662. *
  13663. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#imageMaxHeight)
  13664. */
  13665. imageMaxHeight: number;
  13666. /**
  13667. * Indicates the maximum width of the image exported by the service.
  13668. *
  13669. * @default 2048
  13670. *
  13671. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#imageMaxWidth)
  13672. */
  13673. imageMaxWidth: number;
  13674. /**
  13675. * Indicates whether the background of the image exported by the service is transparent.
  13676. *
  13677. * @default true
  13678. *
  13679. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#imageTransparency)
  13680. */
  13681. imageTransparency: boolean;
  13682. /**
  13683. * The portal item from which the layer is loaded.
  13684. *
  13685. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#portalItem)
  13686. */
  13687. portalItem: PortalItem;
  13688. /**
  13689. * The [map service's metadata JSON](https://developers.arcgis.com/rest/services-reference/map-service.htm) exposed by the ArcGIS REST API.
  13690. *
  13691. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#sourceJSON)
  13692. */
  13693. sourceJSON: any;
  13694. /**
  13695. * A [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of [Sublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html) objects that allow you to alter the properties of one or more sublayers of the MapImageLayer.
  13696. *
  13697. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#sublayers)
  13698. */
  13699. sublayers: Collection<Sublayer>;
  13700. readonly type: "map-image";
  13701. /**
  13702. * The URL to the REST endpoint of the map service.
  13703. *
  13704. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#url)
  13705. */
  13706. url: string;
  13707. /**
  13708. * MapImageLayer allows you to display and analyze data from [sublayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#sublayers) defined in a [map service](https://enterprise.arcgis.com/en/server/latest/publish-services/windows/what-is-a-map-service.htm), exporting images instead of features.
  13709. *
  13710. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html)
  13711. */
  13712. constructor(properties?: MapImageLayerProperties);
  13713. /**
  13714. * Gets the parameters of the exported image to use when calling the [export REST operation](https://developers.arcgis.com/rest/services-reference/export-map.htm).
  13715. *
  13716. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#createExportImageParameters)
  13717. */
  13718. createExportImageParameters(extent: Extent, width: number, height: number, options?: MapImageLayerCreateExportImageParametersOptions): any;
  13719. /**
  13720. * This method fetches the image for the specified extent and size.
  13721. *
  13722. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#fetchImage)
  13723. */
  13724. fetchImage(extent: Extent, width: number, height: number, options?: MapImageLayerFetchImageOptions): Promise<HTMLImageElement>;
  13725. /**
  13726. * Loads all of the sublayers.
  13727. *
  13728. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#loadAll)
  13729. */
  13730. loadAll(): Promise<Sublayer>;
  13731. on(name: "refresh", eventHandler: MapImageLayerRefreshEventHandler): IHandle;
  13732. on(name: "layerview-create", eventHandler: MapImageLayerLayerviewCreateEventHandler): IHandle;
  13733. on(name: "layerview-create-error", eventHandler: MapImageLayerLayerviewCreateErrorEventHandler): IHandle;
  13734. on(name: "layerview-destroy", eventHandler: MapImageLayerLayerviewDestroyEventHandler): IHandle;
  13735. static fromJSON(json: any): MapImageLayer;
  13736. }
  13737. /** @deprecated Import the MapImageLayer class instead. */
  13738. export type MapImageLayerConstructor = typeof MapImageLayer;
  13739. interface MapImageLayerProperties extends LayerProperties, ArcGISMapServiceProperties, ScaleRangeLayerProperties, RefreshableLayerProperties, TemporalLayerProperties, BlendLayerProperties, CustomParametersMixinProperties {
  13740. /**
  13741. * The output dots per inch (DPI) of the MapImageLayer.
  13742. *
  13743. * @default 96
  13744. *
  13745. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#dpi)
  13746. */
  13747. dpi?: number;
  13748. /**
  13749. * The version of the geodatabase of the map service data.
  13750. *
  13751. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#gdbVersion)
  13752. */
  13753. gdbVersion?: string;
  13754. /**
  13755. * The output image type.
  13756. *
  13757. * @default png24
  13758. *
  13759. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#imageFormat)
  13760. */
  13761. imageFormat?: "png" | "png8" | "png24" | "png32" | "jpg" | "pdf" | "bmp" | "gif" | "svg" | "pngjpg";
  13762. /**
  13763. * Indicates the maximum height of the image exported by the service.
  13764. *
  13765. * @default 2048
  13766. *
  13767. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#imageMaxHeight)
  13768. */
  13769. imageMaxHeight?: number;
  13770. /**
  13771. * Indicates the maximum width of the image exported by the service.
  13772. *
  13773. * @default 2048
  13774. *
  13775. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#imageMaxWidth)
  13776. */
  13777. imageMaxWidth?: number;
  13778. /**
  13779. * Indicates whether the background of the image exported by the service is transparent.
  13780. *
  13781. * @default true
  13782. *
  13783. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#imageTransparency)
  13784. */
  13785. imageTransparency?: boolean;
  13786. /**
  13787. * The portal item from which the layer is loaded.
  13788. *
  13789. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#portalItem)
  13790. */
  13791. portalItem?: PortalItemProperties;
  13792. /**
  13793. * The [map service's metadata JSON](https://developers.arcgis.com/rest/services-reference/map-service.htm) exposed by the ArcGIS REST API.
  13794. *
  13795. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#sourceJSON)
  13796. */
  13797. sourceJSON?: any;
  13798. /**
  13799. * A [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of [Sublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html) objects that allow you to alter the properties of one or more sublayers of the MapImageLayer.
  13800. *
  13801. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#sublayers)
  13802. */
  13803. sublayers?: CollectionProperties<SublayerProperties>;
  13804. /**
  13805. * The URL to the REST endpoint of the map service.
  13806. *
  13807. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#url)
  13808. */
  13809. url?: string;
  13810. }
  13811. export interface MapImageLayerLayerviewCreateErrorEvent {
  13812. error: Error;
  13813. view: View;
  13814. }
  13815. export interface MapImageLayerLayerviewCreateEvent {
  13816. layerView: LayerView;
  13817. view: View;
  13818. }
  13819. export interface MapImageLayerLayerviewDestroyEvent {
  13820. layerView: LayerView;
  13821. view: View;
  13822. }
  13823. export interface MapImageLayerCreateExportImageParametersOptions {
  13824. /**
  13825. * The rotation in degrees of the exported image.
  13826. *
  13827. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#createExportImageParameters)
  13828. */
  13829. rotation?: number;
  13830. /**
  13831. * The pixel ratio to apply to the dpi of the exported image.
  13832. *
  13833. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#createExportImageParameters)
  13834. */
  13835. pixelRatio?: number;
  13836. /**
  13837. * The time instant or time extent of content to render.
  13838. *
  13839. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#createExportImageParameters)
  13840. */
  13841. timeExtent?: any;
  13842. }
  13843. export interface MapImageLayerFetchImageOptions {
  13844. /**
  13845. * The rotation in degrees of the exported image.
  13846. *
  13847. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#fetchImage)
  13848. */
  13849. rotation?: number;
  13850. /**
  13851. * The ratio of the resolution in physical pixels of the image to the resolution it will be displayed at.
  13852. *
  13853. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#fetchImage)
  13854. */
  13855. pixelRatio?: number;
  13856. /**
  13857. * The time instant or time extent of content to render.
  13858. *
  13859. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#fetchImage)
  13860. */
  13861. timeExtent?: any;
  13862. /**
  13863. * An [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) to abort the request.
  13864. *
  13865. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#fetchImage)
  13866. */
  13867. signal?: AbortSignal;
  13868. }
  13869. export interface MapImageLayerRefreshEvent {
  13870. dataChanged: boolean;
  13871. }
  13872. export interface MapNotesLayer extends Layer, PortalLayer, ScaleRangeLayer, BlendLayer {
  13873. }
  13874. export class MapNotesLayer {
  13875. /**
  13876. * Describes the layer's supported capabilities.
  13877. *
  13878. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapNotesLayer.html#capabilities)
  13879. */
  13880. readonly capabilities: MapNotesLayerCapabilities;
  13881. /**
  13882. * A layer containing a collection of graphics with multipoint geometry.
  13883. *
  13884. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapNotesLayer.html#multipointLayer)
  13885. */
  13886. readonly multipointLayer: GraphicsLayer;
  13887. /**
  13888. * A layer containing a collection of graphics with point geometry.
  13889. *
  13890. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapNotesLayer.html#pointLayer)
  13891. */
  13892. readonly pointLayer: GraphicsLayer;
  13893. /**
  13894. * A layer containing a collection of graphics with polygon geometry.
  13895. *
  13896. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapNotesLayer.html#polygonLayer)
  13897. */
  13898. readonly polygonLayer: GraphicsLayer;
  13899. /**
  13900. * A layer containing a collection of graphics with polyline geometry.
  13901. *
  13902. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapNotesLayer.html#polylineLayer)
  13903. */
  13904. readonly polylineLayer: GraphicsLayer;
  13905. /**
  13906. * A layer containing a collection of text graphics with point geometry.
  13907. *
  13908. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapNotesLayer.html#textLayer)
  13909. */
  13910. readonly textLayer: GraphicsLayer;
  13911. readonly type: "map-notes";
  13912. /**
  13913. * The MapNotesLayer lets you display and modify map notes (features sketched on a web map) from the [Map Viewer](https://www.arcgis.com/apps/mapviewer/index.html).
  13914. *
  13915. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapNotesLayer.html)
  13916. */
  13917. constructor(properties?: MapNotesLayerProperties);
  13918. static fromJSON(json: any): MapNotesLayer;
  13919. }
  13920. /** @deprecated Import the MapNotesLayer class instead. */
  13921. export type MapNotesLayerConstructor = typeof MapNotesLayer;
  13922. interface MapNotesLayerProperties extends LayerProperties, PortalLayerProperties, ScaleRangeLayerProperties, BlendLayerProperties {
  13923. }
  13924. export interface MapNotesLayerCapabilities {
  13925. /**
  13926. * Describes operations that can be performed on map notes in the layer.
  13927. *
  13928. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapNotesLayer.html#capabilities)
  13929. */
  13930. operations: MapNotesLayerCapabilitiesOperations;
  13931. }
  13932. export interface MapNotesLayerCapabilitiesOperations {
  13933. /**
  13934. * Indicates if map notes in the layer can be edited.
  13935. *
  13936. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapNotesLayer.html#capabilities)
  13937. */
  13938. supportsMapNotesEditing: boolean;
  13939. }
  13940. export interface MediaLayer extends Layer, ScaleRangeLayer, BlendLayer {
  13941. }
  13942. export class MediaLayer {
  13943. /**
  13944. * Copyright information for the layer.
  13945. *
  13946. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html#copyright)
  13947. */
  13948. copyright: string;
  13949. /**
  13950. * The source for the MediaLayer that will be displayed on the map.
  13951. *
  13952. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html#source)
  13953. */
  13954. source: LocalMediaElementSource;
  13955. /**
  13956. * The spatial reference of the layer and defines the spatial reference of the layer's [fullExtent](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html#fullExtent).
  13957. *
  13958. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html#spatialReference)
  13959. */
  13960. spatialReference: SpatialReference;
  13961. readonly type: "media";
  13962. /**
  13963. * The MediaLayer class is used to add [image](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageElement.html) and [video](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VideoElement.html) elements to the map at a specified geographic [location](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageElement.html#georeference).
  13964. *
  13965. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html)
  13966. */
  13967. constructor(properties?: MediaLayerProperties);
  13968. }
  13969. /** @deprecated Import the MediaLayer class instead. */
  13970. export type MediaLayerConstructor = typeof MediaLayer;
  13971. interface MediaLayerProperties extends LayerProperties, ScaleRangeLayerProperties, BlendLayerProperties {
  13972. /**
  13973. * Copyright information for the layer.
  13974. *
  13975. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html#copyright)
  13976. */
  13977. copyright?: string;
  13978. /**
  13979. * The source for the MediaLayer that will be displayed on the map.
  13980. *
  13981. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html#source)
  13982. */
  13983. source?: | LocalMediaElementSourceProperties
  13984. | CollectionProperties<
  13985. (ImageElementProperties & { type: "image" }) | (VideoElementProperties & { type: "video" })
  13986. >
  13987. | ((ImageElementProperties & { type: "image" }) | (VideoElementProperties & { type: "video" }))[];
  13988. /**
  13989. * The spatial reference of the layer and defines the spatial reference of the layer's [fullExtent](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html#fullExtent).
  13990. *
  13991. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html#spatialReference)
  13992. */
  13993. spatialReference?: SpatialReferenceProperties;
  13994. }
  13995. export class APIKeyMixin {
  13996. /**
  13997. * An authorization string used to access a resource or service.
  13998. *
  13999. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-APIKeyMixin.html#apiKey)
  14000. */
  14001. apiKey: string;
  14002. }
  14003. interface APIKeyMixinProperties {
  14004. /**
  14005. * An authorization string used to access a resource or service.
  14006. *
  14007. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-APIKeyMixin.html#apiKey)
  14008. */
  14009. apiKey?: string;
  14010. }
  14011. export class ArcGISCachedService {
  14012. /**
  14013. * The copyright text as defined by the service.
  14014. *
  14015. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISCachedService.html#copyright)
  14016. */
  14017. copyright: string;
  14018. /**
  14019. * The spatial reference of the layer as defined by the service.
  14020. *
  14021. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISCachedService.html#spatialReference)
  14022. */
  14023. readonly spatialReference: SpatialReference;
  14024. /**
  14025. * Contains information about the tiling scheme for the layer.
  14026. *
  14027. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISCachedService.html#tileInfo)
  14028. */
  14029. tileInfo: TileInfo;
  14030. constructor(properties?: ArcGISCachedServiceProperties);
  14031. static fromJSON(json: any): ArcGISCachedService;
  14032. }
  14033. interface ArcGISCachedServiceProperties {
  14034. /**
  14035. * The copyright text as defined by the service.
  14036. *
  14037. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISCachedService.html#copyright)
  14038. */
  14039. copyright?: string;
  14040. /**
  14041. * Contains information about the tiling scheme for the layer.
  14042. *
  14043. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISCachedService.html#tileInfo)
  14044. */
  14045. tileInfo?: TileInfoProperties;
  14046. }
  14047. export class ArcGISImageService {
  14048. /**
  14049. * Defines a band combination using 0-based band indexes.
  14050. *
  14051. * @default null
  14052. *
  14053. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#bandIds)
  14054. */
  14055. bandIds: number[];
  14056. /**
  14057. * Describes the layer's supported capabilities.
  14058. *
  14059. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#capabilities)
  14060. */
  14061. capabilities: ArcGISImageServiceCapabilities;
  14062. /**
  14063. * The compression quality value.
  14064. *
  14065. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#compressionQuality)
  14066. */
  14067. compressionQuality: number;
  14068. /**
  14069. * Controls the tolerance of the lerc compression algorithm.
  14070. *
  14071. * @default 0.01
  14072. *
  14073. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#compressionTolerance)
  14074. */
  14075. compressionTolerance: number;
  14076. /**
  14077. * The copyright text as defined by the service.
  14078. *
  14079. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#copyright)
  14080. */
  14081. copyright: string;
  14082. /**
  14083. * The SQL where clause used to filter rasters.
  14084. *
  14085. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#definitionExpression)
  14086. */
  14087. definitionExpression: string;
  14088. /**
  14089. * An array of fields in the layer.
  14090. *
  14091. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#fields)
  14092. */
  14093. fields: Field[];
  14094. /**
  14095. * A convenient property that can be used to make case-insensitive lookups for a [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#fields) by name.
  14096. *
  14097. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#fieldsIndex)
  14098. */
  14099. readonly fieldsIndex: FieldsIndex;
  14100. /**
  14101. * The format of the exported image.
  14102. *
  14103. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#format)
  14104. */
  14105. format: "png" | "png8" | "png24" | "png32" | "jpg" | "bmp" | "gif" | "jpgpng" | "lerc" | "tiff";
  14106. /**
  14107. * Indicates if the layer has [multidimensionalInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#multidimensionalInfo).
  14108. *
  14109. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#hasMultidimensions)
  14110. */
  14111. hasMultidimensions: boolean;
  14112. /**
  14113. * Indicates the maximum height of the image exported by the service.
  14114. *
  14115. * @default 4100
  14116. *
  14117. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#imageMaxHeight)
  14118. */
  14119. imageMaxHeight: number;
  14120. /**
  14121. * Indicates the maximum width of the image exported by the service.
  14122. *
  14123. * @default 15000
  14124. *
  14125. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#imageMaxWidth)
  14126. */
  14127. imageMaxWidth: number;
  14128. /**
  14129. * Defines how to interpolate pixel values.
  14130. *
  14131. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#interpolation)
  14132. */
  14133. interpolation: "nearest" | "bilinear" | "cubic" | "majority";
  14134. /**
  14135. * Defines how overlapping images should be mosaicked.
  14136. *
  14137. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#mosaicRule)
  14138. */
  14139. mosaicRule: MosaicRule;
  14140. /**
  14141. * The multidimensional information associated with the layer if the layer's [hasMultidimensions](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#hasMultidimensions) property is `true`.
  14142. *
  14143. * @default null
  14144. *
  14145. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#multidimensionalInfo)
  14146. */
  14147. readonly multidimensionalInfo: RasterMultidimensionalInfo;
  14148. /**
  14149. * Represents a multidimensional subset of raster data.
  14150. *
  14151. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#multidimensionalSubset)
  14152. */
  14153. multidimensionalSubset: MultidimensionalSubset;
  14154. /**
  14155. * The pixel value representing no available information.
  14156. *
  14157. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#noData)
  14158. */
  14159. noData: number | number[];
  14160. /**
  14161. * Interpretation of the [noData](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#noData) setting.
  14162. *
  14163. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#noDataInterpretation)
  14164. */
  14165. noDataInterpretation: "any" | "all";
  14166. /**
  14167. * The name of an `oid` [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#fields) containing a unique value or identifier for each raster in the layer.
  14168. *
  14169. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#objectIdField)
  14170. */
  14171. objectIdField: string;
  14172. /**
  14173. * A function that processes [pixelData](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-ImageryLayerView.html#pixelData).
  14174. *
  14175. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#pixelFilter)
  14176. */
  14177. pixelFilter: PixelFilterFunction;
  14178. /**
  14179. * Raster source pixel type.
  14180. *
  14181. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#pixelType)
  14182. */
  14183. pixelType: "unknown" | "s8" | "s16" | "s32" | "u8" | "u16" | "u32" | "f32" | "f64";
  14184. /**
  14185. * A complete list of fields that consists of raster attribute table fields, item pixel value, service pixel value, service pixel value with various server defined function templates, and raster attribute table fields.
  14186. *
  14187. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#rasterFields)
  14188. */
  14189. readonly rasterFields: Field[];
  14190. /**
  14191. * Returns raster function information for the image services, including the name, description, help, function type, and a thumbnail of pre-configured raster function templates.
  14192. *
  14193. * @default null
  14194. *
  14195. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#rasterFunctionInfos)
  14196. */
  14197. readonly rasterFunctionInfos: RasterFunctionInfo[];
  14198. /**
  14199. * The renderer assigned to the layer.
  14200. *
  14201. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#renderer)
  14202. */
  14203. renderer: | ClassBreaksRenderer
  14204. | UniqueValueRenderer
  14205. | RasterStretchRenderer
  14206. | RasterShadedReliefRenderer
  14207. | RasterColormapRenderer
  14208. | VectorFieldRenderer
  14209. | FlowRenderer;
  14210. /**
  14211. * Specifies the rule for how the requested image should be rendered.
  14212. *
  14213. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#renderingRule)
  14214. */
  14215. renderingRule: RasterFunction;
  14216. /**
  14217. * Source raster information of the image service.
  14218. *
  14219. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#serviceRasterInfo)
  14220. */
  14221. readonly serviceRasterInfo: RasterInfo;
  14222. /**
  14223. * The [image service's metadata JSON](https://developers.arcgis.com/rest/services-reference/image-service.htm) exposed by the ArcGIS REST API.
  14224. *
  14225. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#sourceJSON)
  14226. */
  14227. sourceJSON: any;
  14228. /**
  14229. * The spatial reference of the image service.
  14230. *
  14231. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#spatialReference)
  14232. */
  14233. readonly spatialReference: SpatialReference;
  14234. /**
  14235. * The URL to the REST endpoint of the layer.
  14236. *
  14237. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#url)
  14238. */
  14239. url: string;
  14240. /**
  14241. * The version of ArcGIS Server in which the image service is published.
  14242. *
  14243. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#version)
  14244. */
  14245. readonly version: number;
  14246. constructor(properties?: ArcGISImageServiceProperties);
  14247. /**
  14248. * Computes the rotation angle of a ImageryLayer at a given location.
  14249. *
  14250. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#computeAngles)
  14251. */
  14252. computeAngles(parameters: ImageAngleParameters | ImageAngleParametersProperties, requestOptions?: any): Promise<ImageAngleResult>;
  14253. /**
  14254. * Computes histograms based on the provided [ImageHistogramParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageHistogramParameters.html).
  14255. *
  14256. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#computeHistograms)
  14257. */
  14258. computeHistograms(parameters: ImageHistogramParameters | ImageHistogramParametersProperties, requestOptions?: any): Promise<any>;
  14259. /**
  14260. * Computes the corresponding pixel location in columns and rows for an image based on input geometry.
  14261. *
  14262. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#computePixelSpaceLocations)
  14263. */
  14264. computePixelSpaceLocations(parameters: ImagePixelLocationParameters, requestOptions?: any): Promise<ImagePixelLocationResult>;
  14265. /**
  14266. * Computes [statistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#RasterBandStatistics) and [histograms](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#RasterHistogram) for the provided [ImageHistogramParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageHistogramParameters.html).
  14267. *
  14268. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#computeStatisticsHistograms)
  14269. */
  14270. computeStatisticsHistograms(parameters: ImageHistogramParameters | ImageHistogramParametersProperties, requestOptions?: any): Promise<any>;
  14271. /**
  14272. * Returns an image using the [export REST operation](https://developers.arcgis.com/rest/services-reference/export-image.htm) that displays data from an [ImageryLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html).
  14273. *
  14274. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#fetchImage)
  14275. */
  14276. fetchImage(extent: Extent, width: number, height: number, options?: ArcGISImageServiceFetchImageOptions): Promise<any>;
  14277. /**
  14278. * Generates raster info for the specified rendering rule.
  14279. *
  14280. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#generateRasterInfo)
  14281. */
  14282. generateRasterInfo(renderingRule: RasterFunction | RasterFunctionProperties, options?: ArcGISImageServiceGenerateRasterInfoOptions): Promise<RasterInfo>;
  14283. /**
  14284. * Gets the [image coordinate system](https://developers.arcgis.com/rest/services-reference/raster-ics.htm) information of a catalog item in an image service.
  14285. *
  14286. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#getCatalogItemICSInfo)
  14287. */
  14288. getCatalogItemICSInfo(rasterId: number, options?: ArcGISImageServiceGetCatalogItemICSInfoOptions): Promise<any>;
  14289. /**
  14290. * Get the [raster info](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html) of a [catalog item](https://developers.arcgis.com/rest/services-reference/raster-catalog-item.htm) in an image service.
  14291. *
  14292. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#getCatalogItemRasterInfo)
  14293. */
  14294. getCatalogItemRasterInfo(rasterId: number, options?: ArcGISImageServiceGetCatalogItemRasterInfoOptions): Promise<RasterInfo>;
  14295. /**
  14296. * Returns sample point locations, pixel values and corresponding resolutions of the source data for a given geometry.
  14297. *
  14298. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#getSamples)
  14299. */
  14300. getSamples(parameters: ImageSampleParameters | ImageSampleParametersProperties, requestOptions?: any): Promise<ImageSampleResult>;
  14301. /**
  14302. * Sends a request to the ArcGIS REST image service to identify content based on the specified [ImageIdentifyParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html).
  14303. *
  14304. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#identify)
  14305. */
  14306. identify(parameters: ImageIdentifyParameters | ImageIdentifyParametersProperties, requestOptions?: any): Promise<ImageIdentifyResult>;
  14307. /**
  14308. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the image service and returns an array of Object IDs for the rasters.
  14309. *
  14310. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#queryObjectIds)
  14311. */
  14312. queryObjectIds(query?: Query | QueryProperties, requestOptions?: any): Promise<number[]>;
  14313. /**
  14314. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the image service and returns the number of rasters that satisfy the query.
  14315. *
  14316. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#queryRasterCount)
  14317. */
  14318. queryRasterCount(query?: Query | QueryProperties, requestOptions?: any): Promise<number>;
  14319. /**
  14320. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against an image service and returns a [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html), which can be accessed using the `.then()` method once the promise resolves.
  14321. *
  14322. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#queryRasters)
  14323. */
  14324. queryRasters(query: Query | QueryProperties, requestOptions?: any): Promise<FeatureSet>;
  14325. static fromJSON(json: any): ArcGISImageService;
  14326. }
  14327. interface ArcGISImageServiceProperties {
  14328. /**
  14329. * Defines a band combination using 0-based band indexes.
  14330. *
  14331. * @default null
  14332. *
  14333. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#bandIds)
  14334. */
  14335. bandIds?: number[];
  14336. /**
  14337. * Describes the layer's supported capabilities.
  14338. *
  14339. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#capabilities)
  14340. */
  14341. capabilities?: ArcGISImageServiceCapabilities;
  14342. /**
  14343. * The compression quality value.
  14344. *
  14345. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#compressionQuality)
  14346. */
  14347. compressionQuality?: number;
  14348. /**
  14349. * Controls the tolerance of the lerc compression algorithm.
  14350. *
  14351. * @default 0.01
  14352. *
  14353. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#compressionTolerance)
  14354. */
  14355. compressionTolerance?: number;
  14356. /**
  14357. * The copyright text as defined by the service.
  14358. *
  14359. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#copyright)
  14360. */
  14361. copyright?: string;
  14362. /**
  14363. * The SQL where clause used to filter rasters.
  14364. *
  14365. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#definitionExpression)
  14366. */
  14367. definitionExpression?: string;
  14368. /**
  14369. * An array of fields in the layer.
  14370. *
  14371. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#fields)
  14372. */
  14373. fields?: FieldProperties[];
  14374. /**
  14375. * The format of the exported image.
  14376. *
  14377. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#format)
  14378. */
  14379. format?: "png" | "png8" | "png24" | "png32" | "jpg" | "bmp" | "gif" | "jpgpng" | "lerc" | "tiff";
  14380. /**
  14381. * Indicates if the layer has [multidimensionalInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#multidimensionalInfo).
  14382. *
  14383. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#hasMultidimensions)
  14384. */
  14385. hasMultidimensions?: boolean;
  14386. /**
  14387. * Indicates the maximum height of the image exported by the service.
  14388. *
  14389. * @default 4100
  14390. *
  14391. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#imageMaxHeight)
  14392. */
  14393. imageMaxHeight?: number;
  14394. /**
  14395. * Indicates the maximum width of the image exported by the service.
  14396. *
  14397. * @default 15000
  14398. *
  14399. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#imageMaxWidth)
  14400. */
  14401. imageMaxWidth?: number;
  14402. /**
  14403. * Defines how to interpolate pixel values.
  14404. *
  14405. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#interpolation)
  14406. */
  14407. interpolation?: "nearest" | "bilinear" | "cubic" | "majority";
  14408. /**
  14409. * Defines how overlapping images should be mosaicked.
  14410. *
  14411. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#mosaicRule)
  14412. */
  14413. mosaicRule?: MosaicRuleProperties;
  14414. /**
  14415. * Represents a multidimensional subset of raster data.
  14416. *
  14417. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#multidimensionalSubset)
  14418. */
  14419. multidimensionalSubset?: MultidimensionalSubsetProperties;
  14420. /**
  14421. * The pixel value representing no available information.
  14422. *
  14423. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#noData)
  14424. */
  14425. noData?: number | number[];
  14426. /**
  14427. * Interpretation of the [noData](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#noData) setting.
  14428. *
  14429. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#noDataInterpretation)
  14430. */
  14431. noDataInterpretation?: "any" | "all";
  14432. /**
  14433. * The name of an `oid` [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#fields) containing a unique value or identifier for each raster in the layer.
  14434. *
  14435. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#objectIdField)
  14436. */
  14437. objectIdField?: string;
  14438. /**
  14439. * A function that processes [pixelData](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-ImageryLayerView.html#pixelData).
  14440. *
  14441. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#pixelFilter)
  14442. */
  14443. pixelFilter?: PixelFilterFunction;
  14444. /**
  14445. * Raster source pixel type.
  14446. *
  14447. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#pixelType)
  14448. */
  14449. pixelType?: "unknown" | "s8" | "s16" | "s32" | "u8" | "u16" | "u32" | "f32" | "f64";
  14450. /**
  14451. * The renderer assigned to the layer.
  14452. *
  14453. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#renderer)
  14454. */
  14455. renderer?: | (ClassBreaksRendererProperties & { type: "class-breaks" })
  14456. | (UniqueValueRendererProperties & { type: "unique-value" })
  14457. | (RasterStretchRendererProperties & { type: "raster-stretch" })
  14458. | (RasterShadedReliefRendererProperties & { type: "raster-shaded-relief" })
  14459. | (RasterColormapRendererProperties & { type: "raster-colormap" })
  14460. | (VectorFieldRendererProperties & { type: "vector-field" })
  14461. | (FlowRendererProperties & { type: "flow" });
  14462. /**
  14463. * Specifies the rule for how the requested image should be rendered.
  14464. *
  14465. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#renderingRule)
  14466. */
  14467. renderingRule?: RasterFunctionProperties;
  14468. /**
  14469. * The [image service's metadata JSON](https://developers.arcgis.com/rest/services-reference/image-service.htm) exposed by the ArcGIS REST API.
  14470. *
  14471. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#sourceJSON)
  14472. */
  14473. sourceJSON?: any;
  14474. /**
  14475. * The URL to the REST endpoint of the layer.
  14476. *
  14477. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#url)
  14478. */
  14479. url?: string;
  14480. }
  14481. export interface ArcGISImageServiceCapabilities {
  14482. /**
  14483. * Describes operations supported by the ImageryLayer.
  14484. *
  14485. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#capabilities)
  14486. */
  14487. operations: ArcGISImageServiceCapabilitiesOperations;
  14488. /**
  14489. * Describes [query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) operations supported by the layer.
  14490. *
  14491. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#capabilities)
  14492. */
  14493. query: ArcGISImageServiceCapabilitiesQuery;
  14494. }
  14495. export interface ArcGISImageServiceCapabilitiesOperations {
  14496. /**
  14497. * Indicates if the layer supports a [compute histograms](https://developers.arcgis.com/rest/services-reference/compute-histograms.htm) operation from an area of interest.
  14498. *
  14499. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#capabilities)
  14500. */
  14501. supportsComputeHistograms: boolean;
  14502. /**
  14503. * Indicates if the layer supports an [export image](https://developers.arcgis.com/rest/services-reference/export-image.htm) operation based on a bounding box.
  14504. *
  14505. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#capabilities)
  14506. */
  14507. supportsExportImage: boolean;
  14508. /**
  14509. * Indicates if the layer supports an [identify](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-identify.html#identify) operation on pixel values.
  14510. *
  14511. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#capabilities)
  14512. */
  14513. supportsIdentify: boolean;
  14514. /**
  14515. * Indicates if the layer supports mensuration.
  14516. *
  14517. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#capabilities)
  14518. */
  14519. supportsMeasure: boolean;
  14520. /**
  14521. * Indicates if the layer allows the source image to be [downloaded](https://developers.arcgis.com/rest/services-reference/download-rasters.htm).
  14522. *
  14523. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#capabilities)
  14524. */
  14525. supportsDownload: boolean;
  14526. /**
  14527. * Indicates if the layer supports an operation to [query images](https://developers.arcgis.com/rest/services-reference/query-image-service-.htm).
  14528. *
  14529. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#capabilities)
  14530. */
  14531. supportsQuery: boolean;
  14532. /**
  14533. * Indicates if the layer supports a [sampling operation](https://developers.arcgis.com/rest/services-reference/get-samples.htm).
  14534. *
  14535. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#capabilities)
  14536. */
  14537. supportsGetSamples: boolean;
  14538. /**
  14539. * Indicates if the layer supports [projection of geometries](https://developers.arcgis.com/rest/services-reference/project.htm), including from/to image spatial reference.
  14540. *
  14541. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#capabilities)
  14542. */
  14543. supportsProject: boolean;
  14544. /**
  14545. * Indicates if the layer supports an operation [computing statistics and histograms](https://developers.arcgis.com/rest/services-reference/compute-statistics-and-histograms.htm) from an area of interest.
  14546. *
  14547. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#capabilities)
  14548. */
  14549. supportsComputeStatisticsHistograms: boolean;
  14550. /**
  14551. * Indicates if the layer supports an operation to [query the service's boundary](https://developers.arcgis.com/rest/services-reference/query-boundary.htm).
  14552. *
  14553. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#capabilities)
  14554. */
  14555. supportsQueryBoundary: boolean;
  14556. /**
  14557. * Indicates if the elevation layer supports an operation to [compute volumes](https://developers.arcgis.com/rest/services-reference/calculate-volume.htm).
  14558. *
  14559. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#capabilities)
  14560. */
  14561. supportsCalculateVolume: boolean;
  14562. /**
  14563. * Indicates if the layer supports [computing pixel location](https://developers.arcgis.com/rest/services-reference/compute-pixel-location.htm) in pixel space.
  14564. *
  14565. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#capabilities)
  14566. */
  14567. supportsComputePixelLocation: boolean;
  14568. }
  14569. export interface ArcGISImageServiceCapabilitiesQuery {
  14570. /**
  14571. * Indicates if the layer supports field-based statistical functions.
  14572. *
  14573. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#capabilities)
  14574. */
  14575. supportsStatistics: boolean;
  14576. /**
  14577. * Indicates if the layer returned in the query response can be ordered by one or more fields.
  14578. *
  14579. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#capabilities)
  14580. */
  14581. supportsOrderBy: boolean;
  14582. /**
  14583. * Indicates if the layer supports queries for distinct values based on fields.
  14584. *
  14585. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#capabilities)
  14586. */
  14587. supportsDistinct: boolean;
  14588. /**
  14589. * Indicates if the layer supports paged queries.
  14590. *
  14591. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#capabilities)
  14592. */
  14593. supportsPagination: boolean;
  14594. /**
  14595. * Indicates if the layer supports use of standardized queries.
  14596. *
  14597. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#capabilities)
  14598. */
  14599. supportsStandardizedQueriesOnly: boolean;
  14600. /**
  14601. * The maximum number of records that will be returned for a given query.
  14602. *
  14603. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#capabilities)
  14604. */
  14605. maxRecordCount: boolean;
  14606. }
  14607. export interface ArcGISImageServiceFetchImageOptions {
  14608. /**
  14609. * An [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) to abort the request.
  14610. *
  14611. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#fetchImage)
  14612. */
  14613. signal?: AbortSignal;
  14614. }
  14615. export interface ArcGISImageServiceGenerateRasterInfoOptions {
  14616. /**
  14617. * Signal object that can be used to abort the asynchronous task.
  14618. *
  14619. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#generateRasterInfo)
  14620. */
  14621. signal?: AbortSignal;
  14622. }
  14623. export interface ArcGISImageServiceGetCatalogItemICSInfoOptions {
  14624. /**
  14625. * Signal object that can be used to abort the asynchronous task.
  14626. *
  14627. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#getCatalogItemICSInfo)
  14628. */
  14629. signal?: AbortSignal;
  14630. }
  14631. export interface ArcGISImageServiceGetCatalogItemRasterInfoOptions {
  14632. /**
  14633. * Signal object that can be used to abort the asynchronous task.
  14634. *
  14635. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISImageService.html#getCatalogItemRasterInfo)
  14636. */
  14637. signal?: AbortSignal;
  14638. }
  14639. export class ArcGISMapService {
  14640. /**
  14641. * Indicates the layer's supported capabilities.
  14642. *
  14643. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISMapService.html#capabilities)
  14644. */
  14645. readonly capabilities: ArcGISMapServiceCapabilities;
  14646. /**
  14647. * The copyright text as defined by the service.
  14648. *
  14649. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISMapService.html#copyright)
  14650. */
  14651. copyright: string;
  14652. /**
  14653. * The full extent of the layer as defined by the map service.
  14654. *
  14655. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISMapService.html#fullExtent)
  14656. */
  14657. fullExtent: Extent;
  14658. /**
  14659. * Indicates whether the layer will be included in the legend.
  14660. *
  14661. * @default true
  14662. *
  14663. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISMapService.html#legendEnabled)
  14664. */
  14665. legendEnabled: boolean;
  14666. /**
  14667. * The spatial reference of the layer as defined by the service.
  14668. *
  14669. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISMapService.html#spatialReference)
  14670. */
  14671. readonly spatialReference: SpatialReference;
  14672. /**
  14673. * The version of ArcGIS Server in which the map service is published.
  14674. *
  14675. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISMapService.html#version)
  14676. */
  14677. readonly version: number;
  14678. constructor(properties?: ArcGISMapServiceProperties);
  14679. static fromJSON(json: any): ArcGISMapService;
  14680. }
  14681. interface ArcGISMapServiceProperties {
  14682. /**
  14683. * The copyright text as defined by the service.
  14684. *
  14685. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISMapService.html#copyright)
  14686. */
  14687. copyright?: string;
  14688. /**
  14689. * The full extent of the layer as defined by the map service.
  14690. *
  14691. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISMapService.html#fullExtent)
  14692. */
  14693. fullExtent?: ExtentProperties;
  14694. /**
  14695. * Indicates whether the layer will be included in the legend.
  14696. *
  14697. * @default true
  14698. *
  14699. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISMapService.html#legendEnabled)
  14700. */
  14701. legendEnabled?: boolean;
  14702. }
  14703. export interface ArcGISMapServiceCapabilities {
  14704. /**
  14705. * Indicates options supported by the exportMap operation.
  14706. *
  14707. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISMapService.html#capabilities)
  14708. */
  14709. exportMap: ArcGISMapServiceCapabilitiesExportMap;
  14710. /**
  14711. * Indicates options supported by the exportTiles operation.
  14712. *
  14713. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISMapService.html#capabilities)
  14714. */
  14715. exportTiles: ArcGISMapServiceCapabilitiesExportTiles;
  14716. /**
  14717. * Indicates operations that can be performed on the service.
  14718. *
  14719. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISMapService.html#capabilities)
  14720. */
  14721. operations: ArcGISMapServiceCapabilitiesOperations;
  14722. }
  14723. export interface ArcGISMapServiceCapabilitiesExportMap {
  14724. /**
  14725. * Indicates if sublayers support Arcade expressions for labeling.
  14726. *
  14727. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISMapService.html#capabilities)
  14728. */
  14729. supportsArcadeExpressionForLabeling: boolean;
  14730. /**
  14731. * Indicates if sublayers rendering can be modified or added using dynamic layers.
  14732. *
  14733. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISMapService.html#capabilities)
  14734. */
  14735. supportsDynamicLayers: boolean;
  14736. /**
  14737. * Indicates if sublayers can be added, or removed.
  14738. *
  14739. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISMapService.html#capabilities)
  14740. */
  14741. supportsSublayersChanges: boolean;
  14742. /**
  14743. * Indicates if sublayers [definition expression](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#definitionExpression) can be set.
  14744. *
  14745. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISMapService.html#capabilities)
  14746. */
  14747. supportsSublayerDefinitionExpression: boolean;
  14748. /**
  14749. * Indicates if sublayers [visibility](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#visible) can be changed.
  14750. *
  14751. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISMapService.html#capabilities)
  14752. */
  14753. supportsSublayerVisibility: boolean;
  14754. /**
  14755. * _Since 4.23_ Indicates if [CIMSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html) can be used in a sublayer's [renderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#renderer).
  14756. *
  14757. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISMapService.html#capabilities)
  14758. */
  14759. supportsCIMSymbols: boolean;
  14760. }
  14761. export interface ArcGISMapServiceCapabilitiesExportTiles {
  14762. /**
  14763. * Specifies the maximum number of tiles that can be exported to a cache dataset or a tile package.
  14764. *
  14765. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISMapService.html#capabilities)
  14766. */
  14767. maxExportTilesCount: number;
  14768. }
  14769. export interface ArcGISMapServiceCapabilitiesOperations {
  14770. /**
  14771. * Indicates if the service can generate images.
  14772. *
  14773. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISMapService.html#capabilities)
  14774. */
  14775. supportsExportMap: boolean;
  14776. /**
  14777. * Indicates if the tiles from the service can be exported.
  14778. *
  14779. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISMapService.html#capabilities)
  14780. */
  14781. supportsExportTiles: boolean;
  14782. /**
  14783. * Indicates if the service supports the [identify operation](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-identify.html#identify).
  14784. *
  14785. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISMapService.html#capabilities)
  14786. */
  14787. supportsIdentify: boolean;
  14788. /**
  14789. * Indicates if features in the sublayers can be [queried](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#queryFeatures).
  14790. *
  14791. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISMapService.html#capabilities)
  14792. */
  14793. supportsQuery: boolean;
  14794. /**
  14795. * Indicates if the service exposes a tile map that describes the presence of tiles.
  14796. *
  14797. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ArcGISMapService.html#capabilities)
  14798. */
  14799. supportsTileMap: boolean;
  14800. }
  14801. export class BlendLayer {
  14802. /**
  14803. * Blend modes are used to blend layers together to create an interesting effect in a layer, or even to produce what seems like a new layer.
  14804. *
  14805. * @default normal
  14806. *
  14807. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-BlendLayer.html#blendMode)
  14808. */
  14809. blendMode: | "average"
  14810. | "color-burn"
  14811. | "color-dodge"
  14812. | "color"
  14813. | "darken"
  14814. | "destination-atop"
  14815. | "destination-in"
  14816. | "destination-out"
  14817. | "destination-over"
  14818. | "difference"
  14819. | "exclusion"
  14820. | "hard-light"
  14821. | "hue"
  14822. | "invert"
  14823. | "lighten"
  14824. | "lighter"
  14825. | "luminosity"
  14826. | "minus"
  14827. | "multiply"
  14828. | "normal"
  14829. | "overlay"
  14830. | "plus"
  14831. | "reflect"
  14832. | "saturation"
  14833. | "screen"
  14834. | "soft-light"
  14835. | "source-atop"
  14836. | "source-in"
  14837. | "source-out"
  14838. | "vivid-light"
  14839. | "xor";
  14840. /**
  14841. * Effect provides various filter functions that can be performed on the layer to achieve different visual effects similar to how image filters work.
  14842. *
  14843. * @default null
  14844. *
  14845. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-BlendLayer.html#effect)
  14846. */
  14847. effect: Effect;
  14848. }
  14849. interface BlendLayerProperties {
  14850. /**
  14851. * Blend modes are used to blend layers together to create an interesting effect in a layer, or even to produce what seems like a new layer.
  14852. *
  14853. * @default normal
  14854. *
  14855. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-BlendLayer.html#blendMode)
  14856. */
  14857. blendMode?: | "average"
  14858. | "color-burn"
  14859. | "color-dodge"
  14860. | "color"
  14861. | "darken"
  14862. | "destination-atop"
  14863. | "destination-in"
  14864. | "destination-out"
  14865. | "destination-over"
  14866. | "difference"
  14867. | "exclusion"
  14868. | "hard-light"
  14869. | "hue"
  14870. | "invert"
  14871. | "lighten"
  14872. | "lighter"
  14873. | "luminosity"
  14874. | "minus"
  14875. | "multiply"
  14876. | "normal"
  14877. | "overlay"
  14878. | "plus"
  14879. | "reflect"
  14880. | "saturation"
  14881. | "screen"
  14882. | "soft-light"
  14883. | "source-atop"
  14884. | "source-in"
  14885. | "source-out"
  14886. | "vivid-light"
  14887. | "xor";
  14888. /**
  14889. * Effect provides various filter functions that can be performed on the layer to achieve different visual effects similar to how image filters work.
  14890. *
  14891. * @default null
  14892. *
  14893. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-BlendLayer.html#effect)
  14894. */
  14895. effect?: any[] | string;
  14896. }
  14897. export class CustomParametersMixin {
  14898. /**
  14899. * A list of custom parameters appended to the URL of all resources fetched by the layer.
  14900. *
  14901. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-CustomParametersMixin.html#customParameters)
  14902. */
  14903. customParameters: any;
  14904. }
  14905. interface CustomParametersMixinProperties {
  14906. /**
  14907. * A list of custom parameters appended to the URL of all resources fetched by the layer.
  14908. *
  14909. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-CustomParametersMixin.html#customParameters)
  14910. */
  14911. customParameters?: any;
  14912. }
  14913. export class FeatureEffectLayer {
  14914. /**
  14915. * The featureEffect can be used to draw attention features of interest.
  14916. *
  14917. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureEffectLayer.html#featureEffect)
  14918. */
  14919. featureEffect: FeatureEffect;
  14920. }
  14921. interface FeatureEffectLayerProperties {
  14922. /**
  14923. * The featureEffect can be used to draw attention features of interest.
  14924. *
  14925. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureEffectLayer.html#featureEffect)
  14926. */
  14927. featureEffect?: FeatureEffectProperties;
  14928. }
  14929. export class FeatureLayerBase {
  14930. /**
  14931. * Copyright information for the layer.
  14932. *
  14933. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#copyright)
  14934. */
  14935. copyright: string;
  14936. /**
  14937. * The SQL where clause used to filter features on the client.
  14938. *
  14939. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#definitionExpression)
  14940. */
  14941. definitionExpression: string;
  14942. /**
  14943. * The name of the layer's primary display field.
  14944. *
  14945. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#displayField)
  14946. */
  14947. displayField: string;
  14948. /**
  14949. * The editor tracking fields, which record who adds or edits the data through the feature service and when edits are made.
  14950. *
  14951. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#editFieldsInfo)
  14952. */
  14953. readonly editFieldsInfo: EditFieldsInfo;
  14954. /**
  14955. * The editor tracking fields, which record who adds or edits the data through the feature service and when edits are made.
  14956. *
  14957. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#editingInfo)
  14958. */
  14959. readonly editingInfo: EditFieldsInfo;
  14960. /**
  14961. * Specifies how features are placed on the vertical axis (z).
  14962. *
  14963. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#elevationInfo)
  14964. */
  14965. elevationInfo: FeatureLayerBaseElevationInfo;
  14966. /**
  14967. * When a feature layer is configured as floor-aware, it has a floorInfo property defined.
  14968. *
  14969. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#floorInfo)
  14970. */
  14971. floorInfo: LayerFloorInfo;
  14972. /**
  14973. * The full extent of the layer.
  14974. *
  14975. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#fullExtent)
  14976. */
  14977. fullExtent: Extent;
  14978. /**
  14979. * The version of the geodatabase of the feature service data.
  14980. *
  14981. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#gdbVersion)
  14982. */
  14983. gdbVersion: string;
  14984. /**
  14985. * Provides information on the system maintained area and length fields along with their respective units.
  14986. *
  14987. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#geometryFieldsInfo)
  14988. */
  14989. readonly geometryFieldsInfo: GeometryFieldsInfo;
  14990. /**
  14991. * The geometry type of features in the layer.
  14992. *
  14993. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#geometryType)
  14994. */
  14995. geometryType: "point" | "multipoint" | "polyline" | "polygon" | "multipatch" | "mesh";
  14996. /**
  14997. * Indicates whether the client-side features in the layer have `M` (measurement) values.
  14998. *
  14999. * @default undefined
  15000. *
  15001. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#hasM)
  15002. */
  15003. hasM: boolean;
  15004. /**
  15005. * Indicates whether the client-side features in the layer have `Z` (elevation) values.
  15006. *
  15007. * @default undefined
  15008. *
  15009. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#hasZ)
  15010. */
  15011. hasZ: boolean;
  15012. /**
  15013. * The historic moment to query.
  15014. *
  15015. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#historicMoment)
  15016. */
  15017. historicMoment: Date;
  15018. /**
  15019. * Returns `true` if the layer is loaded from a non-spatial table in a service.
  15020. *
  15021. * @default false
  15022. *
  15023. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#isTable)
  15024. */
  15025. readonly isTable: boolean;
  15026. /**
  15027. * The layer ID, or layer index, of a Feature Service layer.
  15028. *
  15029. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#layerId)
  15030. */
  15031. layerId: number;
  15032. /**
  15033. * The name of an `oid` [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#fields) containing a unique value or identifier for each feature in the layer.
  15034. *
  15035. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#objectIdField)
  15036. */
  15037. objectIdField: string;
  15038. /**
  15039. * When `true`, indicates that M values will be returned.
  15040. *
  15041. * @default undefined
  15042. *
  15043. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#returnM)
  15044. */
  15045. returnM: boolean;
  15046. /**
  15047. * When `true`, indicates that z-values will always be returned.
  15048. *
  15049. * @default undefined
  15050. *
  15051. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#returnZ)
  15052. */
  15053. returnZ: boolean;
  15054. /**
  15055. * The service definition expression limits the features available for display and query.
  15056. *
  15057. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#serviceDefinitionExpression)
  15058. */
  15059. readonly serviceDefinitionExpression: string;
  15060. /**
  15061. * The [feature service's metadata JSON](https://developers.arcgis.com/rest/services-reference/layer-feature-service-.htm) exposed by the ArcGIS REST API.
  15062. *
  15063. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#sourceJSON)
  15064. */
  15065. sourceJSON: any;
  15066. /**
  15067. * The spatial reference of the layer.
  15068. *
  15069. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#spatialReference)
  15070. */
  15071. spatialReference: SpatialReference;
  15072. /**
  15073. * The absolute URL of the REST endpoint of the layer, non-spatial table or service.
  15074. *
  15075. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#url)
  15076. */
  15077. url: string;
  15078. /**
  15079. * The version of ArcGIS Server in which the layer is published.
  15080. *
  15081. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#version)
  15082. */
  15083. readonly version: number;
  15084. }
  15085. interface FeatureLayerBaseProperties {
  15086. /**
  15087. * Copyright information for the layer.
  15088. *
  15089. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#copyright)
  15090. */
  15091. copyright?: string;
  15092. /**
  15093. * The SQL where clause used to filter features on the client.
  15094. *
  15095. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#definitionExpression)
  15096. */
  15097. definitionExpression?: string;
  15098. /**
  15099. * The name of the layer's primary display field.
  15100. *
  15101. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#displayField)
  15102. */
  15103. displayField?: string;
  15104. /**
  15105. * Specifies how features are placed on the vertical axis (z).
  15106. *
  15107. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#elevationInfo)
  15108. */
  15109. elevationInfo?: FeatureLayerBaseElevationInfo;
  15110. /**
  15111. * When a feature layer is configured as floor-aware, it has a floorInfo property defined.
  15112. *
  15113. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#floorInfo)
  15114. */
  15115. floorInfo?: LayerFloorInfoProperties;
  15116. /**
  15117. * The full extent of the layer.
  15118. *
  15119. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#fullExtent)
  15120. */
  15121. fullExtent?: ExtentProperties;
  15122. /**
  15123. * The version of the geodatabase of the feature service data.
  15124. *
  15125. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#gdbVersion)
  15126. */
  15127. gdbVersion?: string;
  15128. /**
  15129. * The geometry type of features in the layer.
  15130. *
  15131. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#geometryType)
  15132. */
  15133. geometryType?: "point" | "multipoint" | "polyline" | "polygon" | "multipatch" | "mesh";
  15134. /**
  15135. * Indicates whether the client-side features in the layer have `M` (measurement) values.
  15136. *
  15137. * @default undefined
  15138. *
  15139. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#hasM)
  15140. */
  15141. hasM?: boolean;
  15142. /**
  15143. * Indicates whether the client-side features in the layer have `Z` (elevation) values.
  15144. *
  15145. * @default undefined
  15146. *
  15147. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#hasZ)
  15148. */
  15149. hasZ?: boolean;
  15150. /**
  15151. * The historic moment to query.
  15152. *
  15153. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#historicMoment)
  15154. */
  15155. historicMoment?: DateProperties;
  15156. /**
  15157. * The layer ID, or layer index, of a Feature Service layer.
  15158. *
  15159. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#layerId)
  15160. */
  15161. layerId?: number;
  15162. /**
  15163. * The name of an `oid` [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#fields) containing a unique value or identifier for each feature in the layer.
  15164. *
  15165. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#objectIdField)
  15166. */
  15167. objectIdField?: string;
  15168. /**
  15169. * When `true`, indicates that M values will be returned.
  15170. *
  15171. * @default undefined
  15172. *
  15173. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#returnM)
  15174. */
  15175. returnM?: boolean;
  15176. /**
  15177. * When `true`, indicates that z-values will always be returned.
  15178. *
  15179. * @default undefined
  15180. *
  15181. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#returnZ)
  15182. */
  15183. returnZ?: boolean;
  15184. /**
  15185. * The [feature service's metadata JSON](https://developers.arcgis.com/rest/services-reference/layer-feature-service-.htm) exposed by the ArcGIS REST API.
  15186. *
  15187. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#sourceJSON)
  15188. */
  15189. sourceJSON?: any;
  15190. /**
  15191. * The spatial reference of the layer.
  15192. *
  15193. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#spatialReference)
  15194. */
  15195. spatialReference?: SpatialReferenceProperties;
  15196. /**
  15197. * The absolute URL of the REST endpoint of the layer, non-spatial table or service.
  15198. *
  15199. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#url)
  15200. */
  15201. url?: string;
  15202. }
  15203. export interface FeatureLayerBaseElevationInfo {
  15204. /**
  15205. * Defines how the feature is placed with respect to the terrain surface or 3D objects in the scene.
  15206. *
  15207. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#elevationInfo)
  15208. */
  15209. mode: "on-the-ground" | "relative-to-ground" | "absolute-height" | "relative-to-scene";
  15210. /**
  15211. * An elevation offset, which is added to the vertical position of the feature.
  15212. *
  15213. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#elevationInfo)
  15214. */
  15215. offset?: number;
  15216. /**
  15217. * Defines how to override a feature's Z-value based on its attributes.
  15218. *
  15219. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#elevationInfo)
  15220. */
  15221. featureExpressionInfo?: FeatureLayerBaseElevationInfoFeatureExpressionInfo;
  15222. /**
  15223. * The unit for `featureExpressionInfo` and `offset` values.
  15224. *
  15225. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#elevationInfo)
  15226. */
  15227. unit?: "feet" | "meters" | "kilometers" | "miles" | "us-feet" | "yards";
  15228. }
  15229. export interface FeatureLayerBaseElevationInfoFeatureExpressionInfo {
  15230. /**
  15231. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Feature Z Profile](https://developers.arcgis.com/javascript/latest/arcade/#z-values).
  15232. *
  15233. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureLayerBase.html#elevationInfo)
  15234. */
  15235. expression?: string;
  15236. }
  15237. export class FeatureReductionLayer {
  15238. /**
  15239. * Configures the method for reducing the number of point features in the view.
  15240. *
  15241. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureReductionLayer.html#featureReduction)
  15242. */
  15243. featureReduction: FeatureReductionBinning | FeatureReductionCluster | FeatureReductionSelection;
  15244. }
  15245. interface FeatureReductionLayerProperties {
  15246. /**
  15247. * Configures the method for reducing the number of point features in the view.
  15248. *
  15249. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-FeatureReductionLayer.html#featureReduction)
  15250. */
  15251. featureReduction?: | (FeatureReductionBinningProperties & { type: "binning" })
  15252. | (FeatureReductionClusterProperties & { type: "cluster" })
  15253. | (FeatureReductionSelectionProperties & { type: "selection" });
  15254. }
  15255. export class ImageryTileMixin {
  15256. /**
  15257. * Defines a band combination using 0-based band indexes.
  15258. *
  15259. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ImageryTileMixin.html#bandIds)
  15260. */
  15261. bandIds: number[];
  15262. /**
  15263. * The copyright text as defined by the service.
  15264. *
  15265. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ImageryTileMixin.html#copyright)
  15266. */
  15267. copyright: string;
  15268. /**
  15269. * The multidimensional definitions associated with the layer.
  15270. *
  15271. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ImageryTileMixin.html#multidimensionalDefinition)
  15272. */
  15273. multidimensionalDefinition: DimensionalDefinition[];
  15274. /**
  15275. * Raster information retrieved from data source.
  15276. *
  15277. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ImageryTileMixin.html#rasterInfo)
  15278. */
  15279. readonly rasterInfo: RasterInfo;
  15280. /**
  15281. * The renderer assigned to the layer.
  15282. *
  15283. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ImageryTileMixin.html#renderer)
  15284. */
  15285. renderer: | ClassBreaksRenderer
  15286. | UniqueValueRenderer
  15287. | RasterStretchRenderer
  15288. | RasterShadedReliefRenderer
  15289. | RasterColormapRenderer
  15290. | VectorFieldRenderer
  15291. | FlowRenderer;
  15292. /**
  15293. * Fetches pixels for a given extent.
  15294. *
  15295. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ImageryTileMixin.html#fetchPixels)
  15296. */
  15297. fetchPixels(extent: Extent, width: number, height: number, options?: ImageryTileMixinFetchPixelsOptions): Promise<any>;
  15298. /**
  15299. * Identify pixel values at a given location.
  15300. *
  15301. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ImageryTileMixin.html#identify)
  15302. */
  15303. identify(point: Point | PointProperties, options?: RasterIdentifyOptions): Promise<RasterIdentifyResult>;
  15304. }
  15305. interface ImageryTileMixinProperties {
  15306. /**
  15307. * Defines a band combination using 0-based band indexes.
  15308. *
  15309. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ImageryTileMixin.html#bandIds)
  15310. */
  15311. bandIds?: number[];
  15312. /**
  15313. * The copyright text as defined by the service.
  15314. *
  15315. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ImageryTileMixin.html#copyright)
  15316. */
  15317. copyright?: string;
  15318. /**
  15319. * The multidimensional definitions associated with the layer.
  15320. *
  15321. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ImageryTileMixin.html#multidimensionalDefinition)
  15322. */
  15323. multidimensionalDefinition?: DimensionalDefinitionProperties[];
  15324. /**
  15325. * The renderer assigned to the layer.
  15326. *
  15327. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ImageryTileMixin.html#renderer)
  15328. */
  15329. renderer?: | (ClassBreaksRendererProperties & { type: "class-breaks" })
  15330. | (UniqueValueRendererProperties & { type: "unique-value" })
  15331. | (RasterStretchRendererProperties & { type: "raster-stretch" })
  15332. | (RasterShadedReliefRendererProperties & { type: "raster-shaded-relief" })
  15333. | (RasterColormapRendererProperties & { type: "raster-colormap" })
  15334. | (VectorFieldRendererProperties & { type: "vector-field" })
  15335. | (FlowRendererProperties & { type: "flow" });
  15336. }
  15337. export interface ImageryTileMixinFetchPixelsOptions {
  15338. /**
  15339. * Added at version 4.23.
  15340. *
  15341. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ImageryTileMixin.html#fetchPixels)
  15342. */
  15343. interpolation?: "nearest" | "bilinear" | "cubic" | "majority";
  15344. /**
  15345. * An [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) to abort the request.
  15346. *
  15347. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ImageryTileMixin.html#fetchPixels)
  15348. */
  15349. signal?: AbortSignal;
  15350. }
  15351. export class OrderedLayer {
  15352. /**
  15353. * Determines the order in which features are drawn in the view.
  15354. *
  15355. * @default null
  15356. *
  15357. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-OrderedLayer.html#orderBy)
  15358. */
  15359. orderBy: OrderedLayerOrderBy[];
  15360. }
  15361. interface OrderedLayerProperties {
  15362. /**
  15363. * Determines the order in which features are drawn in the view.
  15364. *
  15365. * @default null
  15366. *
  15367. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-OrderedLayer.html#orderBy)
  15368. */
  15369. orderBy?: OrderedLayerOrderBy[];
  15370. }
  15371. export interface OrderedLayerOrderBy {
  15372. /**
  15373. * The number or date field whose values will be used to sort features.
  15374. *
  15375. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-OrderedLayer.html#orderBy)
  15376. */
  15377. field?: string;
  15378. /**
  15379. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Feature Z Profile](https://developers.arcgis.com/javascript/latest/arcade/#feature-sorting).
  15380. *
  15381. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-OrderedLayer.html#orderBy)
  15382. */
  15383. valueExpression?: string;
  15384. /**
  15385. * The sort order.
  15386. *
  15387. * @default ascending
  15388. *
  15389. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-OrderedLayer.html#orderBy)
  15390. */
  15391. order?: "ascending" | "descending";
  15392. }
  15393. export class PortalLayer {
  15394. /**
  15395. * The portal item from which the layer is loaded.
  15396. *
  15397. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-PortalLayer.html#portalItem)
  15398. */
  15399. portalItem: PortalItem;
  15400. constructor(properties?: PortalLayerProperties);
  15401. static fromJSON(json: any): PortalLayer;
  15402. }
  15403. interface PortalLayerProperties {
  15404. /**
  15405. * The portal item from which the layer is loaded.
  15406. *
  15407. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-PortalLayer.html#portalItem)
  15408. */
  15409. portalItem?: PortalItemProperties;
  15410. }
  15411. export class PublishableLayer {
  15412. /**
  15413. * Checks layer's publishing status while the layer is being published to the portal.
  15414. *
  15415. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-PublishableLayer.html#publishingInfo)
  15416. */
  15417. readonly publishingInfo: PublishingInfo;
  15418. }
  15419. interface PublishableLayerProperties {
  15420. }
  15421. export class RefreshableLayer {
  15422. /**
  15423. * Refresh interval of the layer in minutes.
  15424. *
  15425. * @default 0
  15426. *
  15427. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-RefreshableLayer.html#refreshInterval)
  15428. */
  15429. refreshInterval: number;
  15430. /**
  15431. * Fetches all the data for the layer.
  15432. *
  15433. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-RefreshableLayer.html#refresh)
  15434. */
  15435. refresh(): void;
  15436. }
  15437. interface RefreshableLayerProperties {
  15438. /**
  15439. * Refresh interval of the layer in minutes.
  15440. *
  15441. * @default 0
  15442. *
  15443. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-RefreshableLayer.html#refreshInterval)
  15444. */
  15445. refreshInterval?: number;
  15446. }
  15447. export class ScaleRangeLayer {
  15448. /**
  15449. * The maximum scale (most zoomed in) at which the layer is visible in the view.
  15450. *
  15451. * @default 0
  15452. *
  15453. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ScaleRangeLayer.html#maxScale)
  15454. */
  15455. maxScale: number;
  15456. /**
  15457. * The minimum scale (most zoomed out) at which the layer is visible in the view.
  15458. *
  15459. * @default 0
  15460. *
  15461. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ScaleRangeLayer.html#minScale)
  15462. */
  15463. minScale: number;
  15464. }
  15465. interface ScaleRangeLayerProperties {
  15466. /**
  15467. * The maximum scale (most zoomed in) at which the layer is visible in the view.
  15468. *
  15469. * @default 0
  15470. *
  15471. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ScaleRangeLayer.html#maxScale)
  15472. */
  15473. maxScale?: number;
  15474. /**
  15475. * The minimum scale (most zoomed out) at which the layer is visible in the view.
  15476. *
  15477. * @default 0
  15478. *
  15479. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-ScaleRangeLayer.html#minScale)
  15480. */
  15481. minScale?: number;
  15482. }
  15483. export class SceneService {
  15484. /**
  15485. * The copyright text as defined by the scene service.
  15486. *
  15487. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-SceneService.html#copyright)
  15488. */
  15489. copyright: string;
  15490. /**
  15491. * The layer ID, or layer index, of a Scene Service layer.
  15492. *
  15493. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-SceneService.html#layerId)
  15494. */
  15495. layerId: number;
  15496. /**
  15497. * The spatial reference of the layer.
  15498. *
  15499. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-SceneService.html#spatialReference)
  15500. */
  15501. spatialReference: SpatialReference;
  15502. /**
  15503. * The URL of the REST endpoint of the layer or scene service.
  15504. *
  15505. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-SceneService.html#url)
  15506. */
  15507. url: string;
  15508. /**
  15509. * The version of the scene service specification used for this service.
  15510. *
  15511. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-SceneService.html#version)
  15512. */
  15513. readonly version: SceneServiceVersion;
  15514. constructor(properties?: SceneServiceProperties);
  15515. static fromJSON(json: any): SceneService;
  15516. }
  15517. interface SceneServiceProperties {
  15518. /**
  15519. * The copyright text as defined by the scene service.
  15520. *
  15521. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-SceneService.html#copyright)
  15522. */
  15523. copyright?: string;
  15524. /**
  15525. * The layer ID, or layer index, of a Scene Service layer.
  15526. *
  15527. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-SceneService.html#layerId)
  15528. */
  15529. layerId?: number;
  15530. /**
  15531. * The spatial reference of the layer.
  15532. *
  15533. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-SceneService.html#spatialReference)
  15534. */
  15535. spatialReference?: SpatialReferenceProperties;
  15536. /**
  15537. * The URL of the REST endpoint of the layer or scene service.
  15538. *
  15539. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-SceneService.html#url)
  15540. */
  15541. url?: string;
  15542. }
  15543. export interface SceneServiceVersion {
  15544. /**
  15545. * The major version of the scene layer.
  15546. *
  15547. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-SceneService.html#version)
  15548. */
  15549. major: number;
  15550. /**
  15551. * The minor version of the scene layer.
  15552. *
  15553. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-SceneService.html#version)
  15554. */
  15555. minor: number;
  15556. /**
  15557. * The complete version string of the scene layer.
  15558. *
  15559. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-SceneService.html#version)
  15560. */
  15561. versionString: string;
  15562. }
  15563. export class SublayersOwner {
  15564. /**
  15565. * Returns a deep clone of a map service's [sublayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html) as defined by the service.
  15566. *
  15567. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-SublayersOwner.html#createServiceSublayers)
  15568. */
  15569. createServiceSublayers(): Collection<Sublayer>;
  15570. /**
  15571. * Returns the sublayer with the given layerId.
  15572. *
  15573. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-SublayersOwner.html#findSublayerById)
  15574. */
  15575. findSublayerById(id: number): Sublayer;
  15576. }
  15577. export class TemporalLayer {
  15578. /**
  15579. * The layer's time extent.
  15580. *
  15581. * @default null
  15582. *
  15583. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-TemporalLayer.html#timeExtent)
  15584. */
  15585. timeExtent: TimeExtent;
  15586. /**
  15587. * TimeInfo provides information such as date fields that store [start](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#startField) and [end](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#endField) time for each feature and the [fullTimeExtent](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#fullTimeExtent) for the layer.
  15588. *
  15589. * @default null
  15590. *
  15591. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-TemporalLayer.html#timeInfo)
  15592. */
  15593. timeInfo: TimeInfo;
  15594. /**
  15595. * A temporary offset of the time data based on a certain [TimeInterval](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeInterval.html).
  15596. *
  15597. * @default null
  15598. *
  15599. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-TemporalLayer.html#timeOffset)
  15600. */
  15601. timeOffset: TimeInterval;
  15602. /**
  15603. * Determines if the layer will update its temporal data based on the view's [timeExtent](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#timeExtent).
  15604. *
  15605. * @default true
  15606. *
  15607. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-TemporalLayer.html#useViewTime)
  15608. */
  15609. useViewTime: boolean;
  15610. }
  15611. interface TemporalLayerProperties {
  15612. /**
  15613. * The layer's time extent.
  15614. *
  15615. * @default null
  15616. *
  15617. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-TemporalLayer.html#timeExtent)
  15618. */
  15619. timeExtent?: TimeExtentProperties;
  15620. /**
  15621. * TimeInfo provides information such as date fields that store [start](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#startField) and [end](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#endField) time for each feature and the [fullTimeExtent](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#fullTimeExtent) for the layer.
  15622. *
  15623. * @default null
  15624. *
  15625. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-TemporalLayer.html#timeInfo)
  15626. */
  15627. timeInfo?: TimeInfoProperties;
  15628. /**
  15629. * A temporary offset of the time data based on a certain [TimeInterval](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeInterval.html).
  15630. *
  15631. * @default null
  15632. *
  15633. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-TemporalLayer.html#timeOffset)
  15634. */
  15635. timeOffset?: TimeIntervalProperties;
  15636. /**
  15637. * Determines if the layer will update its temporal data based on the view's [timeExtent](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#timeExtent).
  15638. *
  15639. * @default true
  15640. *
  15641. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-mixins-TemporalLayer.html#useViewTime)
  15642. */
  15643. useViewTime?: boolean;
  15644. }
  15645. /**
  15646. * Provides utility functions for the [WFSLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html).
  15647. *
  15648. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html)
  15649. */
  15650. interface wfsUtils {
  15651. /**
  15652. * Fetches the GetCapabilities document of a WFS service which contains information about the list of layers in the service and the available operations.
  15653. *
  15654. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#getCapabilities)
  15655. */
  15656. getCapabilities(url: string, options?: wfsUtilsGetCapabilitiesOptions): Promise<WFSCapabilities>;
  15657. /**
  15658. * Returns the [WFSLayerInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSLayerInfo) from the capabilities of the WFS service.
  15659. *
  15660. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#getWFSLayerInfo)
  15661. */
  15662. getWFSLayerInfo(capabilities: WFSCapabilities, name?: string, namespaceUri?: string, options?: wfsUtilsGetWFSLayerInfoOptions): Promise<WFSLayerInfo>;
  15663. }
  15664. export const wfsUtils: wfsUtils;
  15665. /**
  15666. * WFS service information about the available layers and operations.
  15667. *
  15668. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSCapabilities)
  15669. */
  15670. export interface WFSCapabilities {
  15671. /**
  15672. * Information about the operations needed to consume the WFS service.
  15673. *
  15674. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSCapabilities)
  15675. */
  15676. operations: WFSOperations;
  15677. /**
  15678. * An array of featureTypes (or layers) available in the WFS service.
  15679. *
  15680. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSCapabilities)
  15681. */
  15682. featureTypes: WFSFeatureType[];
  15683. }
  15684. /**
  15685. * Provides information about an individual feature type, or layer, found in the WFS service.
  15686. *
  15687. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSFeatureType)
  15688. */
  15689. export interface WFSFeatureType {
  15690. /**
  15691. * The type name of the featureType.
  15692. *
  15693. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSFeatureType)
  15694. */
  15695. typeName: string;
  15696. /**
  15697. * The name of the featureType.
  15698. *
  15699. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSFeatureType)
  15700. */
  15701. name: string;
  15702. /**
  15703. * The title of the featureType.
  15704. *
  15705. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSFeatureType)
  15706. */
  15707. title: string;
  15708. /**
  15709. * The description of the featureType.
  15710. *
  15711. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSFeatureType)
  15712. */
  15713. description: string;
  15714. /**
  15715. * The extent of the features.
  15716. *
  15717. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSFeatureType)
  15718. */
  15719. extent: Extent;
  15720. /**
  15721. * The prefix of the namespace.
  15722. *
  15723. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSFeatureType)
  15724. */
  15725. namespacePrefix: string;
  15726. /**
  15727. * The namespaceUri of the featureType.
  15728. *
  15729. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSFeatureType)
  15730. */
  15731. namespaceUri: string;
  15732. /**
  15733. * An array of spatialReference wkids that are supported on the featureType.
  15734. *
  15735. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSFeatureType)
  15736. */
  15737. supportedSpatialReferences: number[];
  15738. }
  15739. /**
  15740. * The layer info from the WFS service.
  15741. *
  15742. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSLayerInfo)
  15743. */
  15744. export interface WFSLayerInfo {
  15745. /**
  15746. * The URL to the WFS service.
  15747. *
  15748. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSLayerInfo)
  15749. */
  15750. url: string;
  15751. /**
  15752. * The name of the layer in the WFS service to display.
  15753. *
  15754. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSLayerInfo)
  15755. */
  15756. name: string;
  15757. /**
  15758. * The namespace URI for the layer name.
  15759. *
  15760. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSLayerInfo)
  15761. */
  15762. namespaceUri: string;
  15763. /**
  15764. * The fields on the layer.
  15765. *
  15766. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSLayerInfo)
  15767. */
  15768. fields: Field[];
  15769. /**
  15770. * The geometry type of the features in the layer.
  15771. *
  15772. * [Read more...](global.html#geometryType)
  15773. */
  15774. geometryType: "point" | "multipoint" | "polyline" | "polygon";
  15775. /**
  15776. * The field containing the object ID.
  15777. *
  15778. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSLayerInfo)
  15779. */
  15780. objectIdField: string;
  15781. /**
  15782. * The spatial reference of the layer.
  15783. *
  15784. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSLayerInfo)
  15785. */
  15786. spatialReference: SpatialReference;
  15787. /**
  15788. * The extent of the layer.
  15789. *
  15790. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSLayerInfo)
  15791. */
  15792. extent: Extent;
  15793. /**
  15794. * Determines whether the X and Y coordinates should be swapped.
  15795. *
  15796. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSLayerInfo)
  15797. */
  15798. swapXY: boolean | undefined;
  15799. wfsCapabilities: WFSCapabilities;
  15800. /**
  15801. * The custom parameters applied to the layer.
  15802. *
  15803. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSLayerInfo)
  15804. */
  15805. customParameters: any;
  15806. }
  15807. /**
  15808. * Information about some operations of the WFS service.
  15809. *
  15810. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSOperations)
  15811. */
  15812. export interface WFSOperations {
  15813. GetCapabilities: WFSOperationsGetCapabilities;
  15814. DescribeFeatureType: WFSOperationsDescribeFeatureType;
  15815. GetFeature: WFSOperationsGetFeature;
  15816. }
  15817. export interface wfsUtilsGetCapabilitiesOptions {
  15818. /**
  15819. * A list of key-value pairs of parameters to append to the url.
  15820. *
  15821. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#getCapabilities)
  15822. */
  15823. customParameters?: any;
  15824. /**
  15825. * An [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) to abort the executions of the remote method.
  15826. *
  15827. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#getCapabilities)
  15828. */
  15829. signal?: AbortSignal;
  15830. }
  15831. export interface wfsUtilsGetWFSLayerInfoOptions {
  15832. /**
  15833. * A list of key-value pairs of parameters to append to the url.
  15834. *
  15835. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#getWFSLayerInfo)
  15836. */
  15837. customParameters?: any;
  15838. /**
  15839. * The desired spatial reference for the layer.
  15840. *
  15841. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#getWFSLayerInfo)
  15842. */
  15843. spatialReference?: any;
  15844. /**
  15845. * An [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) to abort the executions of the remote method.
  15846. *
  15847. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#getWFSLayerInfo)
  15848. */
  15849. signal?: AbortSignal;
  15850. }
  15851. export interface WFSOperationsDescribeFeatureType {
  15852. /**
  15853. * The URL to the DescribeFeatureType endpoint.
  15854. *
  15855. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSOperations)
  15856. */
  15857. url: string;
  15858. }
  15859. export interface WFSOperationsGetCapabilities {
  15860. /**
  15861. * The URL to the GetCapabilities endpoint.
  15862. *
  15863. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSOperations)
  15864. */
  15865. url: string;
  15866. }
  15867. export interface WFSOperationsGetFeature {
  15868. /**
  15869. * The URL to the GetFeature endpoint.
  15870. *
  15871. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSOperations)
  15872. */
  15873. url: string;
  15874. /**
  15875. * Value of the output format parameter to send with the GetFeature call.
  15876. *
  15877. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSOperations)
  15878. */
  15879. outputFormat: string;
  15880. /**
  15881. * Indicates if the GetFeature request supports pagination.
  15882. *
  15883. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#WFSOperations)
  15884. */
  15885. supportsPagination: boolean;
  15886. }
  15887. export interface OGCFeatureLayer extends Layer, APIKeyMixin, BlendLayer, CustomParametersMixin, OrderedLayer, PortalLayer, RefreshableLayer, ScaleRangeLayer, FeatureEffectLayer, FeatureReductionLayer {
  15888. }
  15889. export class OGCFeatureLayer {
  15890. /**
  15891. * The unique identifier of the collection on the server.
  15892. *
  15893. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#collectionId)
  15894. */
  15895. collectionId: string;
  15896. /**
  15897. * Copyright information for the layer.
  15898. *
  15899. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#copyright)
  15900. */
  15901. copyright: string;
  15902. /**
  15903. * Description of the features in the collection.
  15904. *
  15905. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#description)
  15906. */
  15907. readonly description: string;
  15908. /**
  15909. * The name of the layer's primary display field.
  15910. *
  15911. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#displayField)
  15912. */
  15913. displayField: string;
  15914. /**
  15915. * Specifies how features are placed on the vertical axis (z).
  15916. *
  15917. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#elevationInfo)
  15918. */
  15919. elevationInfo: OGCFeatureLayerElevationInfo;
  15920. /**
  15921. * An array of fields in the layer.
  15922. *
  15923. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#fields)
  15924. */
  15925. fields: Field[];
  15926. /**
  15927. * A convenient property that can be used to make case-insensitive lookups for a field by name.
  15928. *
  15929. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#fieldsIndex)
  15930. */
  15931. readonly fieldsIndex: FieldsIndex;
  15932. /**
  15933. * The geometry type of features in the layer.
  15934. *
  15935. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#geometryType)
  15936. */
  15937. geometryType: "point" | "polygon" | "polyline" | "multipoint";
  15938. /**
  15939. * The label definition for this layer, specified as an array of [LabelClass](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html).
  15940. *
  15941. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#labelingInfo)
  15942. */
  15943. labelingInfo: LabelClass[];
  15944. /**
  15945. * Indicates whether to display labels for this layer.
  15946. *
  15947. * @default true
  15948. *
  15949. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#labelsVisible)
  15950. */
  15951. labelsVisible: boolean;
  15952. /**
  15953. * Indicates whether the layer will be included in the legend.
  15954. *
  15955. * @default true
  15956. *
  15957. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#legendEnabled)
  15958. */
  15959. legendEnabled: boolean;
  15960. /**
  15961. * Explicitly set the maximum number of features that can be returned in a single request.
  15962. *
  15963. * @default null
  15964. *
  15965. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#maxRecordCount)
  15966. */
  15967. maxRecordCount: number;
  15968. /**
  15969. * The OGCFeatureLayer requires that each feature be uniquely identified with an object id.
  15970. *
  15971. * @default null
  15972. *
  15973. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#objectIdField)
  15974. */
  15975. objectIdField: string;
  15976. /**
  15977. * Indicates whether to display popups when features in the layer are clicked.
  15978. *
  15979. * @default true
  15980. *
  15981. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#popupEnabled)
  15982. */
  15983. popupEnabled: boolean;
  15984. /**
  15985. * The popup template for the layer.
  15986. *
  15987. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#popupTemplate)
  15988. */
  15989. popupTemplate: PopupTemplate;
  15990. /**
  15991. * The renderer assigned to the layer.
  15992. *
  15993. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#renderer)
  15994. */
  15995. renderer: Renderer;
  15996. /**
  15997. * Apply perspective scaling to screen-size point symbols in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  15998. *
  15999. * @default true
  16000. *
  16001. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#screenSizePerspectiveEnabled)
  16002. */
  16003. screenSizePerspectiveEnabled: boolean;
  16004. /**
  16005. * The spatial reference the source data is stored in.
  16006. *
  16007. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#spatialReference)
  16008. */
  16009. readonly spatialReference: SpatialReference;
  16010. readonly type: "ogc-feature";
  16011. /**
  16012. * The URL to the server.
  16013. *
  16014. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#url)
  16015. */
  16016. url: string;
  16017. /**
  16018. * The OGCFeatureLayer class is used to create a layer based on individual collections from a [OGC API Features](https://www.opengeospatial.org/standards/ogcapi-features) service.
  16019. *
  16020. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html)
  16021. */
  16022. constructor(properties?: OGCFeatureLayerProperties);
  16023. /**
  16024. * Creates a popup template for the layer, populated with all the fields of the layer.
  16025. *
  16026. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#createPopupTemplate)
  16027. */
  16028. createPopupTemplate(options?: CreatePopupTemplateOptions): PopupTemplate;
  16029. /**
  16030. * Returns the [Field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html) instance for a field name (case-insensitive).
  16031. *
  16032. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#getField)
  16033. */
  16034. getField(fieldName: string): Field;
  16035. on(name: "refresh", eventHandler: OGCFeatureLayerRefreshEventHandler): IHandle;
  16036. on(name: "layerview-create", eventHandler: OGCFeatureLayerLayerviewCreateEventHandler): IHandle;
  16037. on(name: "layerview-create-error", eventHandler: OGCFeatureLayerLayerviewCreateErrorEventHandler): IHandle;
  16038. on(name: "layerview-destroy", eventHandler: OGCFeatureLayerLayerviewDestroyEventHandler): IHandle;
  16039. static fromJSON(json: any): OGCFeatureLayer;
  16040. }
  16041. /** @deprecated Import the OGCFeatureLayer class instead. */
  16042. export type OGCFeatureLayerConstructor = typeof OGCFeatureLayer;
  16043. interface OGCFeatureLayerProperties extends LayerProperties, APIKeyMixinProperties, BlendLayerProperties, CustomParametersMixinProperties, OrderedLayerProperties, PortalLayerProperties, RefreshableLayerProperties, ScaleRangeLayerProperties, FeatureEffectLayerProperties, FeatureReductionLayerProperties {
  16044. /**
  16045. * The unique identifier of the collection on the server.
  16046. *
  16047. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#collectionId)
  16048. */
  16049. collectionId?: string;
  16050. /**
  16051. * Copyright information for the layer.
  16052. *
  16053. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#copyright)
  16054. */
  16055. copyright?: string;
  16056. /**
  16057. * The name of the layer's primary display field.
  16058. *
  16059. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#displayField)
  16060. */
  16061. displayField?: string;
  16062. /**
  16063. * Specifies how features are placed on the vertical axis (z).
  16064. *
  16065. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#elevationInfo)
  16066. */
  16067. elevationInfo?: OGCFeatureLayerElevationInfo;
  16068. /**
  16069. * An array of fields in the layer.
  16070. *
  16071. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#fields)
  16072. */
  16073. fields?: FieldProperties[];
  16074. /**
  16075. * The geometry type of features in the layer.
  16076. *
  16077. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#geometryType)
  16078. */
  16079. geometryType?: "point" | "polygon" | "polyline" | "multipoint";
  16080. /**
  16081. * The label definition for this layer, specified as an array of [LabelClass](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html).
  16082. *
  16083. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#labelingInfo)
  16084. */
  16085. labelingInfo?: LabelClassProperties[];
  16086. /**
  16087. * Indicates whether to display labels for this layer.
  16088. *
  16089. * @default true
  16090. *
  16091. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#labelsVisible)
  16092. */
  16093. labelsVisible?: boolean;
  16094. /**
  16095. * Indicates whether the layer will be included in the legend.
  16096. *
  16097. * @default true
  16098. *
  16099. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#legendEnabled)
  16100. */
  16101. legendEnabled?: boolean;
  16102. /**
  16103. * Explicitly set the maximum number of features that can be returned in a single request.
  16104. *
  16105. * @default null
  16106. *
  16107. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#maxRecordCount)
  16108. */
  16109. maxRecordCount?: number;
  16110. /**
  16111. * The OGCFeatureLayer requires that each feature be uniquely identified with an object id.
  16112. *
  16113. * @default null
  16114. *
  16115. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#objectIdField)
  16116. */
  16117. objectIdField?: string;
  16118. /**
  16119. * Indicates whether to display popups when features in the layer are clicked.
  16120. *
  16121. * @default true
  16122. *
  16123. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#popupEnabled)
  16124. */
  16125. popupEnabled?: boolean;
  16126. /**
  16127. * The popup template for the layer.
  16128. *
  16129. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#popupTemplate)
  16130. */
  16131. popupTemplate?: PopupTemplateProperties;
  16132. /**
  16133. * The renderer assigned to the layer.
  16134. *
  16135. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#renderer)
  16136. */
  16137. renderer?: RendererProperties;
  16138. /**
  16139. * Apply perspective scaling to screen-size point symbols in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  16140. *
  16141. * @default true
  16142. *
  16143. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#screenSizePerspectiveEnabled)
  16144. */
  16145. screenSizePerspectiveEnabled?: boolean;
  16146. /**
  16147. * The URL to the server.
  16148. *
  16149. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#url)
  16150. */
  16151. url?: string;
  16152. }
  16153. export interface OGCFeatureLayerLayerviewCreateErrorEvent {
  16154. error: Error;
  16155. view: View;
  16156. }
  16157. export interface OGCFeatureLayerLayerviewCreateEvent {
  16158. layerView: LayerView;
  16159. view: View;
  16160. }
  16161. export interface OGCFeatureLayerLayerviewDestroyEvent {
  16162. layerView: LayerView;
  16163. view: View;
  16164. }
  16165. export interface OGCFeatureLayerElevationInfo {
  16166. /**
  16167. * Defines how the feature is placed with respect to the terrain surface or 3D objects in the scene.
  16168. *
  16169. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#elevationInfo)
  16170. */
  16171. mode: "on-the-ground" | "relative-to-ground" | "absolute-height" | "relative-to-scene";
  16172. /**
  16173. * An elevation offset, which is added to the vertical position of the feature.
  16174. *
  16175. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#elevationInfo)
  16176. */
  16177. offset?: number;
  16178. /**
  16179. * Defines how to override a feature's Z-value based on its attributes.
  16180. *
  16181. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#elevationInfo)
  16182. */
  16183. featureExpressionInfo?: OGCFeatureLayerElevationInfoFeatureExpressionInfo;
  16184. /**
  16185. * The unit for `featureExpressionInfo` and `offset` values.
  16186. *
  16187. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#elevationInfo)
  16188. */
  16189. unit?: "feet" | "meters" | "kilometers" | "miles" | "us-feet" | "yards";
  16190. }
  16191. export interface OGCFeatureLayerElevationInfoFeatureExpressionInfo {
  16192. /**
  16193. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Feature Z Profile](https://developers.arcgis.com/javascript/latest/arcade/#z-values).
  16194. *
  16195. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#elevationInfo)
  16196. */
  16197. expression?: string;
  16198. }
  16199. export interface OGCFeatureLayerRefreshEvent {
  16200. dataChanged: boolean;
  16201. }
  16202. export class OpenStreetMapLayer extends WebTileLayer {
  16203. readonly type: "open-street-map";
  16204. /**
  16205. * Allows you to use [basemaps](http://wiki.openstreetmap.org/wiki/List_of_OSM-based_services) from [OpenStreetMap](http://www.openstreetmap.org/).
  16206. *
  16207. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OpenStreetMapLayer.html)
  16208. */
  16209. constructor(properties?: OpenStreetMapLayerProperties);
  16210. static fromJSON(json: any): OpenStreetMapLayer;
  16211. }
  16212. /** @deprecated Import the OpenStreetMapLayer class instead. */
  16213. export type OpenStreetMapLayerConstructor = typeof OpenStreetMapLayer;
  16214. interface OpenStreetMapLayerProperties extends WebTileLayerProperties {
  16215. }
  16216. export interface PointCloudFilter extends Accessor, JSONSupport {
  16217. }
  16218. export class PointCloudFilter {
  16219. /**
  16220. * The field used for applying the filter.
  16221. *
  16222. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-pointCloudFilters-PointCloudFilter.html#field)
  16223. */
  16224. field: string;
  16225. /**
  16226. * The type of filter.
  16227. *
  16228. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-pointCloudFilters-PointCloudFilter.html#type)
  16229. */
  16230. readonly type: "value" | "bitfield" | "return";
  16231. /**
  16232. * Point cloud filters are used to hide points that do not satisfy the filter criteria.
  16233. *
  16234. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-pointCloudFilters-PointCloudFilter.html)
  16235. */
  16236. constructor(properties?: PointCloudFilterProperties);
  16237. static fromJSON(json: any): PointCloudFilter;
  16238. }
  16239. /** @deprecated Import the PointCloudFilter class instead. */
  16240. export type PointCloudFilterConstructor = typeof PointCloudFilter;
  16241. interface PointCloudFilterProperties {
  16242. /**
  16243. * The field used for applying the filter.
  16244. *
  16245. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-pointCloudFilters-PointCloudFilter.html#field)
  16246. */
  16247. field?: string;
  16248. }
  16249. export class PointCloudReturnFilter extends PointCloudFilter {
  16250. /**
  16251. * An array of return types used to filter points.
  16252. *
  16253. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-pointCloudFilters-PointCloudReturnFilter.html#includedReturns)
  16254. */
  16255. includedReturns: ("firstOfMany" | "last" | "lastOfMany" | "single")[];
  16256. readonly type: "return";
  16257. /**
  16258. * Laser pulses emitted from a lidar system can have several returns depending on the surfaces that they encounter.
  16259. *
  16260. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-pointCloudFilters-PointCloudReturnFilter.html)
  16261. */
  16262. constructor(properties?: PointCloudReturnFilterProperties);
  16263. static fromJSON(json: any): PointCloudReturnFilter;
  16264. }
  16265. /** @deprecated Import the PointCloudReturnFilter class instead. */
  16266. export type PointCloudReturnFilterConstructor = typeof PointCloudReturnFilter;
  16267. interface PointCloudReturnFilterProperties extends PointCloudFilterProperties {
  16268. /**
  16269. * An array of return types used to filter points.
  16270. *
  16271. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-pointCloudFilters-PointCloudReturnFilter.html#includedReturns)
  16272. */
  16273. includedReturns?: ("firstOfMany" | "last" | "lastOfMany" | "single")[];
  16274. }
  16275. export class PointCloudValueFilter extends PointCloudFilter {
  16276. /**
  16277. * Whether points should be included or excluded from the filter.
  16278. *
  16279. * @default "exclude"
  16280. *
  16281. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-pointCloudFilters-PointCloudValueFilter.html#mode)
  16282. */
  16283. mode: "include" | "exclude";
  16284. readonly type: "value";
  16285. /**
  16286. * An array of numeric values representing the classification codes that the filter should apply.
  16287. *
  16288. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-pointCloudFilters-PointCloudValueFilter.html#values)
  16289. */
  16290. values: number[];
  16291. /**
  16292. * Every lidar point can have a classification that defines the type of surface that reflected the laser pulse.
  16293. *
  16294. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-pointCloudFilters-PointCloudValueFilter.html)
  16295. */
  16296. constructor(properties?: PointCloudValueFilterProperties);
  16297. static fromJSON(json: any): PointCloudValueFilter;
  16298. }
  16299. /** @deprecated Import the PointCloudValueFilter class instead. */
  16300. export type PointCloudValueFilterConstructor = typeof PointCloudValueFilter;
  16301. interface PointCloudValueFilterProperties extends PointCloudFilterProperties {
  16302. /**
  16303. * Whether points should be included or excluded from the filter.
  16304. *
  16305. * @default "exclude"
  16306. *
  16307. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-pointCloudFilters-PointCloudValueFilter.html#mode)
  16308. */
  16309. mode?: "include" | "exclude";
  16310. /**
  16311. * An array of numeric values representing the classification codes that the filter should apply.
  16312. *
  16313. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-pointCloudFilters-PointCloudValueFilter.html#values)
  16314. */
  16315. values?: number[];
  16316. }
  16317. export interface PointCloudLayer extends Layer, SceneService, PortalLayer, ScaleRangeLayer, APIKeyMixin {
  16318. }
  16319. export class PointCloudLayer {
  16320. /**
  16321. * Specifies how points are placed on the vertical axis (z).
  16322. *
  16323. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#elevationInfo)
  16324. */
  16325. elevationInfo: PointCloudLayerElevationInfo;
  16326. /**
  16327. * An array of fields accessible in the layer.
  16328. *
  16329. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#fields)
  16330. */
  16331. fields: Field[];
  16332. /**
  16333. * A convenient property that can be used to make case-insensitive lookups for a field by name.
  16334. *
  16335. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#fieldsIndex)
  16336. */
  16337. readonly fieldsIndex: FieldsIndex;
  16338. /**
  16339. * An array of [pointCloudFilters](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-pointCloudFilters-PointCloudFilter.html) used to filter points.
  16340. *
  16341. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#filters)
  16342. */
  16343. filters: (PointCloudValueFilter | PointCloudReturnFilter)[];
  16344. /**
  16345. * Indicates whether the layer will be included in the legend.
  16346. *
  16347. * @default true
  16348. *
  16349. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#legendEnabled)
  16350. */
  16351. legendEnabled: boolean;
  16352. /**
  16353. * An array of field names from the service to include with each feature.
  16354. *
  16355. * @default null
  16356. *
  16357. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#outFields)
  16358. */
  16359. outFields: string[];
  16360. /**
  16361. * Indicates whether to display popups when points in the layer are clicked.
  16362. *
  16363. * @default true
  16364. *
  16365. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#popupEnabled)
  16366. */
  16367. popupEnabled: boolean;
  16368. /**
  16369. * The popup template for the layer.
  16370. *
  16371. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#popupTemplate)
  16372. */
  16373. popupTemplate: PopupTemplate;
  16374. /**
  16375. * The renderer assigned to the layer.
  16376. *
  16377. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#renderer)
  16378. */
  16379. renderer: PointCloudRenderer;
  16380. readonly type: "point-cloud";
  16381. /**
  16382. * The PointCloudLayer is designed for visualizing large collections of points in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  16383. *
  16384. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html)
  16385. */
  16386. constructor(properties?: PointCloudLayerProperties);
  16387. /**
  16388. * Creates a default popup template for the layer, populated with all the fields of the layer.
  16389. *
  16390. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#createPopupTemplate)
  16391. */
  16392. createPopupTemplate(options?: CreatePopupTemplateOptions): PopupTemplate;
  16393. /**
  16394. * Returns the [Domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Domain.html) associated with the given field name.
  16395. *
  16396. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#getFieldDomain)
  16397. */
  16398. getFieldDomain(fieldName: string): Domain;
  16399. /**
  16400. * Queries cached statistics from the service for a given field.
  16401. *
  16402. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#queryCachedStatistics)
  16403. */
  16404. queryCachedStatistics(fieldName: string, options?: PointCloudLayerQueryCachedStatisticsOptions): any;
  16405. static fromJSON(json: any): PointCloudLayer;
  16406. }
  16407. /** @deprecated Import the PointCloudLayer class instead. */
  16408. export type PointCloudLayerConstructor = typeof PointCloudLayer;
  16409. interface PointCloudLayerProperties extends LayerProperties, SceneServiceProperties, PortalLayerProperties, ScaleRangeLayerProperties, APIKeyMixinProperties {
  16410. /**
  16411. * Specifies how points are placed on the vertical axis (z).
  16412. *
  16413. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#elevationInfo)
  16414. */
  16415. elevationInfo?: PointCloudLayerElevationInfo;
  16416. /**
  16417. * An array of fields accessible in the layer.
  16418. *
  16419. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#fields)
  16420. */
  16421. fields?: FieldProperties[];
  16422. /**
  16423. * An array of [pointCloudFilters](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-pointCloudFilters-PointCloudFilter.html) used to filter points.
  16424. *
  16425. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#filters)
  16426. */
  16427. filters?: (
  16428. | (PointCloudValueFilterProperties & { type: "value" })
  16429. | (PointCloudReturnFilterProperties & { type: "return" })
  16430. )[];
  16431. /**
  16432. * Indicates whether the layer will be included in the legend.
  16433. *
  16434. * @default true
  16435. *
  16436. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#legendEnabled)
  16437. */
  16438. legendEnabled?: boolean;
  16439. /**
  16440. * An array of field names from the service to include with each feature.
  16441. *
  16442. * @default null
  16443. *
  16444. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#outFields)
  16445. */
  16446. outFields?: string[];
  16447. /**
  16448. * Indicates whether to display popups when points in the layer are clicked.
  16449. *
  16450. * @default true
  16451. *
  16452. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#popupEnabled)
  16453. */
  16454. popupEnabled?: boolean;
  16455. /**
  16456. * The popup template for the layer.
  16457. *
  16458. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#popupTemplate)
  16459. */
  16460. popupTemplate?: PopupTemplateProperties;
  16461. /**
  16462. * The renderer assigned to the layer.
  16463. *
  16464. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#renderer)
  16465. */
  16466. renderer?: PointCloudRendererProperties;
  16467. }
  16468. export interface PointCloudLayerElevationInfo {
  16469. /**
  16470. * Defines how the points are placed on the vertical axis (z).
  16471. *
  16472. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#elevationInfo)
  16473. */
  16474. mode: string;
  16475. /**
  16476. * An elevation offset, which is added to the vertical position of each point.
  16477. *
  16478. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#elevationInfo)
  16479. */
  16480. offset?: number;
  16481. /**
  16482. * The unit for `offset` values.
  16483. *
  16484. * @default meters
  16485. *
  16486. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#elevationInfo)
  16487. */
  16488. unit?: "feet" | "meters" | "kilometers" | "miles" | "us-feet" | "yards";
  16489. }
  16490. export interface PointCloudLayerQueryCachedStatisticsOptions {
  16491. /**
  16492. * Signal object that can be used to abort the asynchronous task.
  16493. *
  16494. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html#queryCachedStatistics)
  16495. */
  16496. signal?: AbortSignal;
  16497. }
  16498. export interface RouteLayer extends Layer, BlendLayer, PortalLayer, ScaleRangeLayer {
  16499. }
  16500. export class RouteLayer {
  16501. /**
  16502. * The default symbol used for new stops and route results generated by [solve()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#solve).
  16503. *
  16504. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#defaultSymbols)
  16505. */
  16506. defaultSymbols: RouteSymbols;
  16507. /**
  16508. * A collection of [DirectionLine](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionLine.html) that represent the linear path between [directionPoints](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#directionPoints) of the solved route.
  16509. *
  16510. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#directionLines)
  16511. */
  16512. readonly directionLines: Collection<DirectionLine>;
  16513. /**
  16514. * A collection of [DirectionPoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionPoint.html) that represent the turn-by-turn directions along a solved route.
  16515. *
  16516. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#directionPoints)
  16517. */
  16518. readonly directionPoints: Collection<DirectionPoint>;
  16519. /**
  16520. * A collection of [PointBarrier](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PointBarrier.html) are used to prevent navigation through the street network.
  16521. *
  16522. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#pointBarriers)
  16523. */
  16524. pointBarriers: Collection<PointBarrier>;
  16525. /**
  16526. * A collection of [PolygonBarrier](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PolygonBarrier.html) are used to prevent navigation through the street network.
  16527. *
  16528. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#polygonBarriers)
  16529. */
  16530. polygonBarriers: Collection<PolygonBarrier>;
  16531. /**
  16532. * A collection of [PolylineBarrier](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PolylineBarrier.html) are used to prevent navigation through the street network.
  16533. *
  16534. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#polylineBarriers)
  16535. */
  16536. polylineBarriers: Collection<PolylineBarrier>;
  16537. /**
  16538. * This property contains the solved route's geometry and other route information like overall time and distance.
  16539. *
  16540. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#routeInfo)
  16541. */
  16542. readonly routeInfo: RouteInfo;
  16543. /**
  16544. * A collection of [Stop](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html)s define the start, end, waypoint, or break of the route.
  16545. *
  16546. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#stops)
  16547. */
  16548. stops: Collection<Stop>;
  16549. readonly type: "route";
  16550. /**
  16551. * The URL of the REST endpoint of the Route service.
  16552. *
  16553. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#url)
  16554. */
  16555. url: string;
  16556. /**
  16557. * RouteLayer is a layer for visualizing and solving routes.
  16558. *
  16559. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html)
  16560. */
  16561. constructor(properties?: RouteLayerProperties);
  16562. /**
  16563. * Update the currently assigned [portal item](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html) using information in this RouteLayer.
  16564. *
  16565. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#save)
  16566. */
  16567. save(): Promise<PortalItem>;
  16568. /**
  16569. * Saves the route layer to a new [portal item](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html).
  16570. *
  16571. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#saveAs)
  16572. */
  16573. saveAs(portalItem: Promise<PortalItem>, options?: RouteLayerSaveAsOptions): Promise<PortalItem>;
  16574. /**
  16575. * This method will solve the route using the route service referenced by [routeServiceUrl](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#routeServiceUrl) and the network objects [pointBarriers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#pointBarriers), [polylineBarriers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#polylineBarriers), [polygonBarriers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#polygonBarriers), and [stops](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#stops).
  16576. *
  16577. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#solve)
  16578. */
  16579. solve(routeParameters: RouteParameters, requestOptions?: any): Promise<RouteLayerSolveResult>;
  16580. /**
  16581. * Updates the layer with the results from a solved route layer.
  16582. *
  16583. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#update)
  16584. */
  16585. update(routeLayerSolveResult: RouteLayerUpdateRouteLayerSolveResult): void;
  16586. static fromJSON(json: any): RouteLayer;
  16587. }
  16588. /** @deprecated Import the RouteLayer class instead. */
  16589. export type RouteLayerConstructor = typeof RouteLayer;
  16590. interface RouteLayerProperties extends LayerProperties, BlendLayerProperties, PortalLayerProperties, ScaleRangeLayerProperties {
  16591. /**
  16592. * The default symbol used for new stops and route results generated by [solve()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#solve).
  16593. *
  16594. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#defaultSymbols)
  16595. */
  16596. defaultSymbols?: RouteSymbolsProperties;
  16597. /**
  16598. * A collection of [PointBarrier](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PointBarrier.html) are used to prevent navigation through the street network.
  16599. *
  16600. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#pointBarriers)
  16601. */
  16602. pointBarriers?: CollectionProperties<PointBarrierProperties>;
  16603. /**
  16604. * A collection of [PolygonBarrier](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PolygonBarrier.html) are used to prevent navigation through the street network.
  16605. *
  16606. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#polygonBarriers)
  16607. */
  16608. polygonBarriers?: CollectionProperties<PolygonBarrierProperties>;
  16609. /**
  16610. * A collection of [PolylineBarrier](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PolylineBarrier.html) are used to prevent navigation through the street network.
  16611. *
  16612. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#polylineBarriers)
  16613. */
  16614. polylineBarriers?: CollectionProperties<PolylineBarrierProperties>;
  16615. /**
  16616. * A collection of [Stop](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html)s define the start, end, waypoint, or break of the route.
  16617. *
  16618. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#stops)
  16619. */
  16620. stops?: CollectionProperties<StopProperties>;
  16621. /**
  16622. * The URL of the REST endpoint of the Route service.
  16623. *
  16624. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#url)
  16625. */
  16626. url?: string;
  16627. }
  16628. export interface RouteLayerSaveAsOptions {
  16629. /**
  16630. * The folder in which to save the item.
  16631. *
  16632. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#saveAs)
  16633. */
  16634. folder?: PortalFolder;
  16635. }
  16636. /**
  16637. * The results of computing a route and directions.
  16638. *
  16639. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#RouteLayerSolveResult)
  16640. */
  16641. export interface RouteLayerSolveResult {
  16642. /**
  16643. * Represents polyline segments associated with individual direction items.
  16644. *
  16645. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#RouteLayerSolveResult)
  16646. */
  16647. directionLines: Collection<DirectionLine>;
  16648. /**
  16649. * Represents direction items as points with various display information.
  16650. *
  16651. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#RouteLayerSolveResult)
  16652. */
  16653. directionPoints: Collection<DirectionPoint>;
  16654. /**
  16655. * Point barrier(s) to restrict travel along a street network when using a [RouteLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html).
  16656. *
  16657. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#RouteLayerSolveResult)
  16658. */
  16659. pointBarriers?: Collection<PointBarrier>;
  16660. /**
  16661. * Polygon barrier(s) to restrict travel along a street network when using a [RouteLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html).
  16662. *
  16663. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#RouteLayerSolveResult)
  16664. */
  16665. polygonBarriers?: Collection<PolygonBarrier>;
  16666. /**
  16667. * Polyline barrier(s) to restrict travel along a street network when using a [RouteLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html).
  16668. *
  16669. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#RouteLayerSolveResult)
  16670. */
  16671. polylineBarriers?: Collection<PolylineBarrier>;
  16672. /**
  16673. * Contains information about a solved route including the routes geometry and overall distance and time.
  16674. *
  16675. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#RouteLayerSolveResult)
  16676. */
  16677. routeInfo: RouteInfo;
  16678. /**
  16679. * Respresents the start, end, or midpoint of a route created using the [RouteLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html).
  16680. *
  16681. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#RouteLayerSolveResult)
  16682. */
  16683. stops: Collection<Stop>;
  16684. }
  16685. export interface RouteLayerUpdateRouteLayerSolveResult {
  16686. /**
  16687. * Collection of direction polylines associated with line segments between turns.
  16688. *
  16689. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#update)
  16690. */
  16691. directionLines: Collection<DirectionLine>;
  16692. /**
  16693. * Collection of direction items as points with various display information.
  16694. *
  16695. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#update)
  16696. */
  16697. directionPoints: Collection<DirectionPoint>;
  16698. /**
  16699. * Collection of point barriers.
  16700. *
  16701. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#update)
  16702. */
  16703. readPointBarriers: Collection<PointBarrier>;
  16704. /**
  16705. * Collection of polygon barriers.
  16706. *
  16707. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#update)
  16708. */
  16709. polygonBarriers: Collection<PolygonBarrier>;
  16710. /**
  16711. * Collection of polyline barriers.
  16712. *
  16713. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#update)
  16714. */
  16715. polylineBarriers: Collection<PolylineBarrier>;
  16716. /**
  16717. * Information about a solved route including the routes geometry and overall distance and time.
  16718. *
  16719. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#update)
  16720. */
  16721. routeInfo: RouteInfo;
  16722. /**
  16723. * Collection of stops.
  16724. *
  16725. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#update)
  16726. */
  16727. stops: Collection<Stop>;
  16728. }
  16729. export interface SceneLayer extends Layer, SceneService, PortalLayer, ScaleRangeLayer, APIKeyMixin {
  16730. }
  16731. export class SceneLayer {
  16732. /**
  16733. * Describes the layer's supported capabilities.
  16734. *
  16735. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  16736. */
  16737. readonly capabilities: SceneLayerCapabilities;
  16738. /**
  16739. * The SQL where clause used to filter features.
  16740. *
  16741. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#definitionExpression)
  16742. */
  16743. definitionExpression: string;
  16744. /**
  16745. * Specifies how features are placed on the vertical axis (z).
  16746. *
  16747. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#elevationInfo)
  16748. */
  16749. elevationInfo: SceneLayerElevationInfo;
  16750. /**
  16751. * List of ObjectIDs not being displayed in the view.
  16752. *
  16753. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#excludeObjectIds)
  16754. */
  16755. excludeObjectIds: Collection<number>;
  16756. /**
  16757. * Configures the method for decluttering overlapping features in the view.
  16758. *
  16759. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#featureReduction)
  16760. */
  16761. featureReduction: FeatureReductionSelection;
  16762. /**
  16763. * An array of fields accessible in the layer.
  16764. *
  16765. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#fields)
  16766. */
  16767. readonly fields: Field[];
  16768. /**
  16769. * A convenient property that can be used to make case-insensitive lookups for a field by name.
  16770. *
  16771. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#fieldsIndex)
  16772. */
  16773. readonly fieldsIndex: FieldsIndex;
  16774. /**
  16775. * A collection of polygons [geometries](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SceneFilter.html#geometries) which will mask out different parts of the layer.
  16776. *
  16777. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#filter)
  16778. */
  16779. filter: SceneFilter;
  16780. /**
  16781. * When a scene layer is configured as floor-aware, it has a floorInfo property defined.
  16782. *
  16783. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#floorInfo)
  16784. */
  16785. floorInfo: LayerFloorInfo;
  16786. /**
  16787. * The geometry type of features in the layer.
  16788. *
  16789. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#geometryType)
  16790. */
  16791. geometryType: "point" | "mesh";
  16792. /**
  16793. * The label definition for this layer, specified as an array of [LabelClass](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html).
  16794. *
  16795. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#labelingInfo)
  16796. */
  16797. labelingInfo: LabelClass[];
  16798. /**
  16799. * Indicates whether to display labels for this layer.
  16800. *
  16801. * @default true
  16802. *
  16803. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#labelsVisible)
  16804. */
  16805. labelsVisible: boolean;
  16806. /**
  16807. * Indicates whether the layer will be included in the legend.
  16808. *
  16809. * @default true
  16810. *
  16811. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#legendEnabled)
  16812. */
  16813. legendEnabled: boolean;
  16814. /**
  16815. * The name of the field containing each graphic's Object ID.
  16816. *
  16817. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#objectIdField)
  16818. */
  16819. objectIdField: string;
  16820. /**
  16821. * An array of field names from the service to include with each feature.
  16822. *
  16823. * @default null
  16824. *
  16825. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#outFields)
  16826. */
  16827. outFields: string[];
  16828. /**
  16829. * Indicates whether to display popups when features in the layer are clicked.
  16830. *
  16831. * @default true
  16832. *
  16833. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#popupEnabled)
  16834. */
  16835. popupEnabled: boolean;
  16836. /**
  16837. * The popup template for the layer.
  16838. *
  16839. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#popupTemplate)
  16840. */
  16841. popupTemplate: PopupTemplate;
  16842. /**
  16843. * The renderer assigned to the layer.
  16844. *
  16845. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#renderer)
  16846. */
  16847. renderer: Renderer;
  16848. /**
  16849. * Apply perspective scaling to screen-size point symbols in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  16850. *
  16851. * @default true
  16852. *
  16853. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#screenSizePerspectiveEnabled)
  16854. */
  16855. screenSizePerspectiveEnabled: boolean;
  16856. readonly type: "scene";
  16857. /**
  16858. * The SceneLayer is a layer type designed for on-demand streaming and displaying large amounts of data in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  16859. *
  16860. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html)
  16861. */
  16862. constructor(properties?: SceneLayerProperties);
  16863. /**
  16864. * Applies attribute edits to the features in the associated [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
  16865. *
  16866. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#applyEdits)
  16867. */
  16868. applyEdits(edits: SceneLayerApplyEditsEdits, options?: SceneLayerApplyEditsOptions): Promise<any>;
  16869. /**
  16870. * Creates a default popup template for the layer, populated with all the fields of the layer.
  16871. *
  16872. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#createPopupTemplate)
  16873. */
  16874. createPopupTemplate(options?: CreatePopupTemplateOptions): PopupTemplate;
  16875. /**
  16876. * Creates a query object that can be used to fetch features that satisfy the layer's current definition expression.
  16877. *
  16878. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#createQuery)
  16879. */
  16880. createQuery(): Query;
  16881. /**
  16882. * Returns the [Field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html) instance for a field name (case-insensitive).
  16883. *
  16884. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#getField)
  16885. */
  16886. getField(fieldName: string): Field;
  16887. /**
  16888. * Returns the [Domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Domain.html) associated with the given field name.
  16889. *
  16890. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#getFieldDomain)
  16891. */
  16892. getFieldDomain(fieldName: string, options?: SceneLayerGetFieldDomainOptions): Domain;
  16893. /**
  16894. * Gets field usage information.
  16895. *
  16896. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#getFieldUsageInfo)
  16897. */
  16898. getFieldUsageInfo(fieldName: string): any;
  16899. /**
  16900. * Queries cached statistics from the service for a given field.
  16901. *
  16902. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#queryCachedStatistics)
  16903. */
  16904. queryCachedStatistics(fieldName: string, options?: SceneLayerQueryCachedStatisticsOptions): any;
  16905. /**
  16906. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the associated feature service and returns the 2D [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) of features that satisfy the query.
  16907. *
  16908. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the associated feature service and returns the 2D [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) of features that satisfy the query. At the moment the 3D Extent can be returned by using [SceneLayerView.queryExtent()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-SceneLayerView.html#queryExtent), but this will return the 3D extent only for features currently in the view. The query succeeds only if the SceneLayer has an associated feature layer. If an associated feature layer is not available, then an error with the name `scenelayer:query-not-available` is thrown. Read more about queries in the [Querying](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#querying) section of the class description above. [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#queryExtent)
  16909. */
  16910. queryExtent(query?: Query | QueryProperties, options?: SceneLayerQueryExtentOptions): Promise<any>;
  16911. /**
  16912. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the associated feature service and returns the number of features that satisfy the query.
  16913. *
  16914. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the associated feature service and returns the number of features that satisfy the query. The query succeeds only if the layer's `supportsLayerQuery` capability is enabled. Use the [getFieldUsageInfo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#getFieldUsageInfo) method to check if the layer supports queries. If querying is not enabled, then an error with the name `scenelayer:query-not-available` is thrown. Read more about queries in the [Querying](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#querying) section of the class description above. [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#queryFeatureCount)
  16915. */
  16916. queryFeatureCount(query?: Query | QueryProperties, options?: SceneLayerQueryFeatureCountOptions): Promise<number>;
  16917. /**
  16918. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the associated feature service and returns a [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html).
  16919. *
  16920. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the associated feature service and returns a [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html). The query succeeds only if the layer's `supportsLayerQuery` capability is enabled. Use the [getFieldUsageInfo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#getFieldUsageInfo) method to check if the layer supports queries. If querying is not enabled, then an error with the name `scenelayer:query-not-available` is thrown. Read more about queries in the [Querying](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#querying) section of the class description above. [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#queryFeatures)
  16921. */
  16922. queryFeatures(query?: Query | QueryProperties, options?: SceneLayerQueryFeaturesOptions): Promise<FeatureSet>;
  16923. /**
  16924. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the associated feature service and returns an array of ObjectIDs of the features that satisfy the input query.
  16925. *
  16926. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the associated feature service and returns an array of ObjectIDs of the features that satisfy the input query. The query succeeds only if the layer's `supportsLayerQuery` capability is enabled. Use the [getFieldUsageInfo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#getFieldUsageInfo) method to check if the layer supports queries. If querying is not enabled, then an error with the name `scenelayer:query-not-available` is thrown. Read more about queries in the [Querying](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#querying) section of the class description above. [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#queryObjectIds)
  16927. */
  16928. queryObjectIds(query?: Query | QueryProperties, options?: SceneLayerQueryObjectIdsOptions): Promise<number[]>;
  16929. static fromJSON(json: any): SceneLayer;
  16930. }
  16931. /** @deprecated Import the SceneLayer class instead. */
  16932. export type SceneLayerConstructor = typeof SceneLayer;
  16933. interface SceneLayerProperties extends LayerProperties, SceneServiceProperties, PortalLayerProperties, ScaleRangeLayerProperties, APIKeyMixinProperties {
  16934. /**
  16935. * The SQL where clause used to filter features.
  16936. *
  16937. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#definitionExpression)
  16938. */
  16939. definitionExpression?: string;
  16940. /**
  16941. * Specifies how features are placed on the vertical axis (z).
  16942. *
  16943. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#elevationInfo)
  16944. */
  16945. elevationInfo?: SceneLayerElevationInfo;
  16946. /**
  16947. * List of ObjectIDs not being displayed in the view.
  16948. *
  16949. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#excludeObjectIds)
  16950. */
  16951. excludeObjectIds?: CollectionProperties<number>;
  16952. /**
  16953. * Configures the method for decluttering overlapping features in the view.
  16954. *
  16955. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#featureReduction)
  16956. */
  16957. featureReduction?: FeatureReductionSelectionProperties;
  16958. /**
  16959. * A collection of polygons [geometries](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SceneFilter.html#geometries) which will mask out different parts of the layer.
  16960. *
  16961. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#filter)
  16962. */
  16963. filter?: SceneFilterProperties;
  16964. /**
  16965. * When a scene layer is configured as floor-aware, it has a floorInfo property defined.
  16966. *
  16967. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#floorInfo)
  16968. */
  16969. floorInfo?: LayerFloorInfoProperties;
  16970. /**
  16971. * The geometry type of features in the layer.
  16972. *
  16973. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#geometryType)
  16974. */
  16975. geometryType?: "point" | "mesh";
  16976. /**
  16977. * The label definition for this layer, specified as an array of [LabelClass](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html).
  16978. *
  16979. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#labelingInfo)
  16980. */
  16981. labelingInfo?: LabelClassProperties[];
  16982. /**
  16983. * Indicates whether to display labels for this layer.
  16984. *
  16985. * @default true
  16986. *
  16987. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#labelsVisible)
  16988. */
  16989. labelsVisible?: boolean;
  16990. /**
  16991. * Indicates whether the layer will be included in the legend.
  16992. *
  16993. * @default true
  16994. *
  16995. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#legendEnabled)
  16996. */
  16997. legendEnabled?: boolean;
  16998. /**
  16999. * The name of the field containing each graphic's Object ID.
  17000. *
  17001. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#objectIdField)
  17002. */
  17003. objectIdField?: string;
  17004. /**
  17005. * An array of field names from the service to include with each feature.
  17006. *
  17007. * @default null
  17008. *
  17009. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#outFields)
  17010. */
  17011. outFields?: string[];
  17012. /**
  17013. * Indicates whether to display popups when features in the layer are clicked.
  17014. *
  17015. * @default true
  17016. *
  17017. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#popupEnabled)
  17018. */
  17019. popupEnabled?: boolean;
  17020. /**
  17021. * The popup template for the layer.
  17022. *
  17023. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#popupTemplate)
  17024. */
  17025. popupTemplate?: PopupTemplateProperties;
  17026. /**
  17027. * The renderer assigned to the layer.
  17028. *
  17029. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#renderer)
  17030. */
  17031. renderer?: RendererProperties;
  17032. /**
  17033. * Apply perspective scaling to screen-size point symbols in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  17034. *
  17035. * @default true
  17036. *
  17037. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#screenSizePerspectiveEnabled)
  17038. */
  17039. screenSizePerspectiveEnabled?: boolean;
  17040. }
  17041. export interface SceneLayerApplyEditsEdits {
  17042. /**
  17043. * An array or a [collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of features to be updated.
  17044. *
  17045. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#applyEdits)
  17046. */
  17047. updateFeatures?: Graphic[] | Collection<Graphic>;
  17048. }
  17049. export interface SceneLayerApplyEditsOptions {
  17050. /**
  17051. * Indicates whether the edits should be applied only if all submitted edits succeed.
  17052. *
  17053. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#applyEdits)
  17054. */
  17055. rollbackOnFailureEnabled?: boolean;
  17056. /**
  17057. * Indicates whether the edits can be applied using globalIds of features.
  17058. *
  17059. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#applyEdits)
  17060. */
  17061. globalIdUsed?: boolean;
  17062. }
  17063. export interface SceneLayerCapabilities {
  17064. /**
  17065. * Describes [query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) operations that can be performed on features in the layer.
  17066. *
  17067. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17068. */
  17069. query: SceneLayerCapabilitiesQuery;
  17070. /**
  17071. * Describes characteristics of the data in the layer.
  17072. *
  17073. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17074. */
  17075. data: SceneLayerCapabilitiesData;
  17076. /**
  17077. * Describes editing capabilities that can be performed on the features in the layer via [applyEdits()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#applyEdits).
  17078. *
  17079. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17080. */
  17081. editing: SceneLayerCapabilitiesEditing;
  17082. /**
  17083. * Describes operations that can be performed on features in the layer.
  17084. *
  17085. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17086. */
  17087. operations: SceneLayerCapabilitiesOperations;
  17088. }
  17089. export interface SceneLayerCapabilitiesData {
  17090. /**
  17091. * Indicates if the features in the layer support z-values.
  17092. *
  17093. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17094. */
  17095. supportsZ: boolean;
  17096. }
  17097. export interface SceneLayerCapabilitiesEditing {
  17098. /**
  17099. * Indicates if the geometry of the features in the layer can be edited.
  17100. *
  17101. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17102. */
  17103. supportsGeometryUpdate: boolean;
  17104. /**
  17105. * Indicates if the `globalId` values provided by the client are used in [applyEdits](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#applyEdits).
  17106. *
  17107. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17108. */
  17109. supportsGlobalId: boolean;
  17110. /**
  17111. * Indicates if the `rollbackOnFailureEnabled` parameter can be set to `true` or `false` when editing features.
  17112. *
  17113. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17114. */
  17115. supportsRollbackOnFailure: boolean;
  17116. }
  17117. export interface SceneLayerCapabilitiesOperations {
  17118. /**
  17119. * Indicates if new features can be [added](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#applyEdits) to the layer.
  17120. *
  17121. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17122. */
  17123. supportsAdd: boolean;
  17124. /**
  17125. * Indicates if features can be [deleted](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#applyEdits) from the layer.
  17126. *
  17127. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17128. */
  17129. supportsDelete: boolean;
  17130. /**
  17131. * Indicates if features in the layer can be [updated](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#applyEdits).
  17132. *
  17133. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17134. */
  17135. supportsUpdate: boolean;
  17136. /**
  17137. * Indicates if features in the layer can be [edited](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#applyEdits).
  17138. *
  17139. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17140. */
  17141. supportsEditing: boolean;
  17142. }
  17143. export interface SceneLayerCapabilitiesQuery {
  17144. /**
  17145. * The maximum number of records that will be returned for a given query.
  17146. *
  17147. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17148. */
  17149. maxRecordCount: number;
  17150. /**
  17151. * Indicates if the geometry centroid associated with each polygon feature can be returned.
  17152. *
  17153. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17154. */
  17155. supportsCentroid: boolean;
  17156. /**
  17157. * Indicates if the layer's query operation supports a buffer distance for input geometries.
  17158. *
  17159. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17160. */
  17161. supportsDistance: boolean;
  17162. /**
  17163. * Indicates if the layer supports queries for distinct values based on fields specified in the [outFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#outFields).
  17164. *
  17165. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17166. */
  17167. supportsDistinct: boolean;
  17168. /**
  17169. * Indicates if the query operation supports `disjoint` [spatial relationship](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#spatialRelationship).
  17170. *
  17171. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17172. */
  17173. supportsDisjointSpatialRelationship: boolean;
  17174. /**
  17175. * Indicates if the query operation supports a [cache hint](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#cacheHint).
  17176. *
  17177. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17178. */
  17179. supportsCacheHint: boolean;
  17180. /**
  17181. * Indicates if the layer's query response includes the extent of features.
  17182. *
  17183. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17184. */
  17185. supportsExtent: boolean;
  17186. /**
  17187. * Indicates if the layer's query response contains geometry attributes, including shape area and length attributes.
  17188. *
  17189. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17190. */
  17191. supportsGeometryProperties: boolean;
  17192. /**
  17193. * Indicates if the layer supports the [having](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#having) clause on the service.
  17194. *
  17195. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17196. */
  17197. supportsHavingClause: boolean;
  17198. /**
  17199. * Indicates if features returned in the query response can be ordered by one or more fields.
  17200. *
  17201. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17202. */
  17203. supportsOrderBy: boolean;
  17204. /**
  17205. * Indicates if the query response supports pagination.
  17206. *
  17207. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17208. */
  17209. supportsPagination: boolean;
  17210. /**
  17211. * Indicates if the layer supports [percentile statisticType](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-StatisticDefinition.html#statisticType).
  17212. *
  17213. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17214. */
  17215. supportsPercentileStatistics: boolean;
  17216. /**
  17217. * Indicates if the query response includes the [query geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html#queryGeometry).
  17218. *
  17219. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17220. */
  17221. supportsQueryGeometry: boolean;
  17222. /**
  17223. * Indicates if the query operation supports the projection of geometries onto a virtual grid.
  17224. *
  17225. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17226. */
  17227. supportsQuantization: boolean;
  17228. /**
  17229. * Indicates if the query operation supports quantization designed to be used in edit mode (highest resolution at the given spatial reference).
  17230. *
  17231. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17232. */
  17233. supportsQuantizationEditMode: boolean;
  17234. /**
  17235. * Indicates if the number of features returned by the query operation can be controlled.
  17236. *
  17237. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17238. */
  17239. supportsResultType: boolean;
  17240. /**
  17241. * Indicates if the query operation supports SQL expressions.
  17242. *
  17243. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17244. */
  17245. supportsSqlExpression: boolean;
  17246. /**
  17247. * Indicates if the query operation supports using standardized queries.
  17248. *
  17249. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17250. */
  17251. supportsStandardizedQueriesOnly: boolean;
  17252. /**
  17253. * Indicates if the layer supports field-based statistical functions.
  17254. *
  17255. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17256. */
  17257. supportsStatistics: boolean;
  17258. /**
  17259. * Indicates if the layer supports historic moment query.
  17260. *
  17261. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#capabilities)
  17262. */
  17263. supportsHistoricMoment: boolean;
  17264. }
  17265. export interface SceneLayerElevationInfo {
  17266. /**
  17267. * Defines how the feature is placed with respect to the terrain surface.
  17268. *
  17269. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#elevationInfo)
  17270. */
  17271. mode: "on-the-ground" | "relative-to-ground" | "absolute-height" | "relative-to-scene";
  17272. /**
  17273. * An elevation offset which is added to the vertical position of the feature.
  17274. *
  17275. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#elevationInfo)
  17276. */
  17277. offset?: number;
  17278. /**
  17279. * The unit for `offset` values.
  17280. *
  17281. * @default meters
  17282. *
  17283. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#elevationInfo)
  17284. */
  17285. unit?: "feet" | "meters" | "kilometers" | "miles" | "us-feet" | "yards";
  17286. }
  17287. export interface SceneLayerGetFieldDomainOptions {
  17288. /**
  17289. * The feature to which the [Domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Domain.html) is assigned.
  17290. *
  17291. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#getFieldDomain)
  17292. */
  17293. feature: Graphic;
  17294. }
  17295. export interface SceneLayerQueryCachedStatisticsOptions {
  17296. /**
  17297. * Signal object that can be used to abort the asynchronous task.
  17298. *
  17299. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#queryCachedStatistics)
  17300. */
  17301. signal?: AbortSignal;
  17302. }
  17303. export interface SceneLayerQueryExtentOptions {
  17304. /**
  17305. * Signal object that can be used to abort the asynchronous task.
  17306. *
  17307. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#queryExtent)
  17308. */
  17309. signal?: AbortSignal;
  17310. }
  17311. export interface SceneLayerQueryFeatureCountOptions {
  17312. /**
  17313. * Signal object that can be used to abort the asynchronous task.
  17314. *
  17315. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#queryFeatureCount)
  17316. */
  17317. signal?: AbortSignal;
  17318. }
  17319. export interface SceneLayerQueryFeaturesOptions {
  17320. /**
  17321. * Signal object that can be used to abort the asynchronous task.
  17322. *
  17323. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#queryFeatures)
  17324. */
  17325. signal?: AbortSignal;
  17326. }
  17327. export interface SceneLayerQueryObjectIdsOptions {
  17328. /**
  17329. * Signal object that can be used to abort the asynchronous task.
  17330. *
  17331. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#queryObjectIds)
  17332. */
  17333. signal?: AbortSignal;
  17334. }
  17335. export interface StreamLayer extends Layer, ScaleRangeLayer, TemporalLayer, BlendLayer, FeatureEffectLayer, FeatureReductionLayer {
  17336. }
  17337. export class StreamLayer {
  17338. /**
  17339. * Copyright information for the layer.
  17340. *
  17341. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#copyright)
  17342. */
  17343. copyright: string;
  17344. /**
  17345. * A list of custom parameters appended to the URL of all resources fetched by the layer.
  17346. *
  17347. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#customParameters)
  17348. */
  17349. customParameters: any;
  17350. /**
  17351. * The SQL where clause used to filter features based on their attributes.
  17352. *
  17353. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#definitionExpression)
  17354. */
  17355. definitionExpression: string;
  17356. /**
  17357. * The name of the layer's primary display field.
  17358. *
  17359. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#displayField)
  17360. */
  17361. displayField: string;
  17362. /**
  17363. * Specifies how features are placed on the vertical axis (z).
  17364. *
  17365. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#elevationInfo)
  17366. */
  17367. elevationInfo: StreamLayerElevationInfo;
  17368. /**
  17369. * An array of fields in the layer.
  17370. *
  17371. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#fields)
  17372. */
  17373. fields: Field[];
  17374. /**
  17375. * A convenient property that can be used to make case-insensitive lookups for a field by name.
  17376. *
  17377. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#fieldsIndex)
  17378. */
  17379. readonly fieldsIndex: FieldsIndex;
  17380. /**
  17381. * An [extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) object used to filter features.
  17382. *
  17383. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#geometryDefinition)
  17384. */
  17385. geometryDefinition: Extent;
  17386. /**
  17387. * The geometry type of features in the layer.
  17388. *
  17389. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#geometryType)
  17390. */
  17391. geometryType: "point" | "polygon" | "polyline" | "multipoint";
  17392. /**
  17393. * The label definition for this layer, specified as an array of [LabelClass](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html).
  17394. *
  17395. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#labelingInfo)
  17396. */
  17397. labelingInfo: LabelClass[];
  17398. /**
  17399. * Indicates whether to display labels for this layer.
  17400. *
  17401. * @default true
  17402. *
  17403. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#labelsVisible)
  17404. */
  17405. labelsVisible: boolean;
  17406. /**
  17407. * Indicates whether the layer will be included in the legend.
  17408. *
  17409. * @default true
  17410. *
  17411. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#legendEnabled)
  17412. */
  17413. legendEnabled: boolean;
  17414. /**
  17415. * The maximum number of attempts to reconnect.
  17416. *
  17417. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#maxReconnectionAttempts)
  17418. */
  17419. maxReconnectionAttempts: number;
  17420. /**
  17421. * The maximum time to wait in seconds between attempts to reconnect.
  17422. *
  17423. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#maxReconnectionInterval)
  17424. */
  17425. maxReconnectionInterval: number;
  17426. /**
  17427. * The name of an `oid` [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#fields) containing a unique value or identifier for each feature in the layer.
  17428. *
  17429. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#objectIdField)
  17430. */
  17431. objectIdField: string;
  17432. /**
  17433. * Indicates whether to display popups when features in the layer are clicked.
  17434. *
  17435. * @default true
  17436. *
  17437. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#popupEnabled)
  17438. */
  17439. popupEnabled: boolean;
  17440. /**
  17441. * The popup template for the layer.
  17442. *
  17443. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#popupTemplate)
  17444. */
  17445. popupTemplate: PopupTemplate;
  17446. /**
  17447. * Options for purging stale features.
  17448. *
  17449. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#purgeOptions)
  17450. */
  17451. purgeOptions: StreamLayerPurgeOptions;
  17452. /**
  17453. * The renderer assigned to the layer.
  17454. *
  17455. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#renderer)
  17456. */
  17457. renderer: Renderer;
  17458. /**
  17459. * Apply perspective scaling to screen-size point symbols in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  17460. *
  17461. * @default true
  17462. *
  17463. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#screenSizePerspectiveEnabled)
  17464. */
  17465. screenSizePerspectiveEnabled: boolean;
  17466. /**
  17467. * The [stream service's metadata JSON](https://developers.arcgis.com/rest/services-reference/stream-service.htm) exposed by the ArcGIS REST API.
  17468. *
  17469. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#sourceJSON)
  17470. */
  17471. sourceJSON: any;
  17472. /**
  17473. * The spatial reference of the layer.
  17474. *
  17475. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#spatialReference)
  17476. */
  17477. spatialReference: SpatialReference;
  17478. /**
  17479. * For [StreamLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html) the type is `stream`.
  17480. *
  17481. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#type)
  17482. */
  17483. readonly type: "stream";
  17484. /**
  17485. * The minimum rate (ms) at which to poll for updates over the websocket connection.
  17486. *
  17487. * @default 300
  17488. *
  17489. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#updateInterval)
  17490. */
  17491. updateInterval: number;
  17492. /**
  17493. * The URL of the stream service.
  17494. *
  17495. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#url)
  17496. */
  17497. url: string;
  17498. /**
  17499. * The URL of a websocket connection.
  17500. *
  17501. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#webSocketUrl)
  17502. */
  17503. webSocketUrl: string;
  17504. /**
  17505. * StreamLayer connects to a [stream service](https://enterprise.arcgis.com/en/geoevent) or a [custom WebSocket service](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#streamlayer-from-websocket), displaying the observation streams associated with a set of [tracked objects](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#track-aware) in real-time.
  17506. *
  17507. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html)
  17508. */
  17509. constructor(properties?: StreamLayerProperties);
  17510. /**
  17511. * Establishes a connection to a web socket that satisfy the specified connection parameters.
  17512. *
  17513. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#connect)
  17514. */
  17515. connect(parameters?: ConnectionParameters): Promise<StreamConnection>;
  17516. /**
  17517. * Creates a [ConnectionParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#ConnectionParameters) object that can be used to establish a connection to a web socket that satisfies the layer's configuration.
  17518. *
  17519. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#createConnectionParameters)
  17520. */
  17521. createConnectionParameters(): ConnectionParameters;
  17522. /**
  17523. * Creates a popup template for the layer, populated with all the fields of the layer.
  17524. *
  17525. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#createPopupTemplate)
  17526. */
  17527. createPopupTemplate(options?: CreatePopupTemplateOptions): PopupTemplate;
  17528. /**
  17529. * Returns the [Field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html) instance for a field name (case-insensitive).
  17530. *
  17531. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#getField)
  17532. */
  17533. getField(fieldName: string): Field;
  17534. /**
  17535. * Returns the [Domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Domain.html) associated with the given field name.
  17536. *
  17537. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#getFieldDomain)
  17538. */
  17539. getFieldDomain(fieldName: string, options?: StreamLayerGetFieldDomainOptions): Domain;
  17540. }
  17541. /** @deprecated Import the StreamLayer class instead. */
  17542. export type StreamLayerConstructor = typeof StreamLayer;
  17543. interface StreamLayerProperties extends LayerProperties, ScaleRangeLayerProperties, TemporalLayerProperties, BlendLayerProperties, FeatureEffectLayerProperties, FeatureReductionLayerProperties {
  17544. /**
  17545. * Copyright information for the layer.
  17546. *
  17547. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#copyright)
  17548. */
  17549. copyright?: string;
  17550. /**
  17551. * A list of custom parameters appended to the URL of all resources fetched by the layer.
  17552. *
  17553. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#customParameters)
  17554. */
  17555. customParameters?: any;
  17556. /**
  17557. * The SQL where clause used to filter features based on their attributes.
  17558. *
  17559. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#definitionExpression)
  17560. */
  17561. definitionExpression?: string;
  17562. /**
  17563. * The name of the layer's primary display field.
  17564. *
  17565. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#displayField)
  17566. */
  17567. displayField?: string;
  17568. /**
  17569. * Specifies how features are placed on the vertical axis (z).
  17570. *
  17571. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#elevationInfo)
  17572. */
  17573. elevationInfo?: StreamLayerElevationInfo;
  17574. /**
  17575. * An array of fields in the layer.
  17576. *
  17577. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#fields)
  17578. */
  17579. fields?: FieldProperties[];
  17580. /**
  17581. * An [extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) object used to filter features.
  17582. *
  17583. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#geometryDefinition)
  17584. */
  17585. geometryDefinition?: ExtentProperties;
  17586. /**
  17587. * The geometry type of features in the layer.
  17588. *
  17589. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#geometryType)
  17590. */
  17591. geometryType?: "point" | "polygon" | "polyline" | "multipoint";
  17592. /**
  17593. * The label definition for this layer, specified as an array of [LabelClass](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html).
  17594. *
  17595. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#labelingInfo)
  17596. */
  17597. labelingInfo?: LabelClassProperties[];
  17598. /**
  17599. * Indicates whether to display labels for this layer.
  17600. *
  17601. * @default true
  17602. *
  17603. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#labelsVisible)
  17604. */
  17605. labelsVisible?: boolean;
  17606. /**
  17607. * Indicates whether the layer will be included in the legend.
  17608. *
  17609. * @default true
  17610. *
  17611. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#legendEnabled)
  17612. */
  17613. legendEnabled?: boolean;
  17614. /**
  17615. * The maximum number of attempts to reconnect.
  17616. *
  17617. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#maxReconnectionAttempts)
  17618. */
  17619. maxReconnectionAttempts?: number;
  17620. /**
  17621. * The maximum time to wait in seconds between attempts to reconnect.
  17622. *
  17623. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#maxReconnectionInterval)
  17624. */
  17625. maxReconnectionInterval?: number;
  17626. /**
  17627. * The name of an `oid` [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#fields) containing a unique value or identifier for each feature in the layer.
  17628. *
  17629. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#objectIdField)
  17630. */
  17631. objectIdField?: string;
  17632. /**
  17633. * Indicates whether to display popups when features in the layer are clicked.
  17634. *
  17635. * @default true
  17636. *
  17637. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#popupEnabled)
  17638. */
  17639. popupEnabled?: boolean;
  17640. /**
  17641. * The popup template for the layer.
  17642. *
  17643. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#popupTemplate)
  17644. */
  17645. popupTemplate?: PopupTemplateProperties;
  17646. /**
  17647. * Options for purging stale features.
  17648. *
  17649. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#purgeOptions)
  17650. */
  17651. purgeOptions?: StreamLayerPurgeOptions;
  17652. /**
  17653. * The renderer assigned to the layer.
  17654. *
  17655. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#renderer)
  17656. */
  17657. renderer?: RendererProperties;
  17658. /**
  17659. * Apply perspective scaling to screen-size point symbols in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  17660. *
  17661. * @default true
  17662. *
  17663. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#screenSizePerspectiveEnabled)
  17664. */
  17665. screenSizePerspectiveEnabled?: boolean;
  17666. /**
  17667. * The [stream service's metadata JSON](https://developers.arcgis.com/rest/services-reference/stream-service.htm) exposed by the ArcGIS REST API.
  17668. *
  17669. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#sourceJSON)
  17670. */
  17671. sourceJSON?: any;
  17672. /**
  17673. * The spatial reference of the layer.
  17674. *
  17675. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#spatialReference)
  17676. */
  17677. spatialReference?: SpatialReferenceProperties;
  17678. /**
  17679. * The minimum rate (ms) at which to poll for updates over the websocket connection.
  17680. *
  17681. * @default 300
  17682. *
  17683. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#updateInterval)
  17684. */
  17685. updateInterval?: number;
  17686. /**
  17687. * The URL of the stream service.
  17688. *
  17689. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#url)
  17690. */
  17691. url?: string;
  17692. /**
  17693. * The URL of a websocket connection.
  17694. *
  17695. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#webSocketUrl)
  17696. */
  17697. webSocketUrl?: string;
  17698. }
  17699. /**
  17700. * The connection parameters that can be used to establish a connection to a web socket when the [connect()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#connect) method is called.
  17701. *
  17702. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#ConnectionParameters)
  17703. */
  17704. export interface ConnectionParameters {
  17705. /**
  17706. * The spatial reference of the geometries emitted by the connection.
  17707. *
  17708. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#ConnectionParameters)
  17709. */
  17710. spatialReference?: string;
  17711. /**
  17712. * A list of custom parameters appended to the URL of the stream service.
  17713. *
  17714. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#ConnectionParameters)
  17715. */
  17716. customParameters?: any;
  17717. /**
  17718. * The SQL where clause used to filter features based on their attributes.
  17719. *
  17720. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#ConnectionParameters)
  17721. */
  17722. definitionExpression?: string;
  17723. /**
  17724. * An [extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) object used to filter features.
  17725. *
  17726. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#ConnectionParameters)
  17727. */
  17728. geometryDefinition?: Extent;
  17729. /**
  17730. * The maximum number of attempts to reconnect.
  17731. *
  17732. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#ConnectionParameters)
  17733. */
  17734. maxReconnectionAttempts?: number;
  17735. /**
  17736. * The maximum time to wait in seconds between attempts to reconnect.
  17737. *
  17738. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#ConnectionParameters)
  17739. */
  17740. maxReconnectionInterval?: number;
  17741. }
  17742. export interface StreamLayerElevationInfo {
  17743. /**
  17744. * Defines how the feature is placed with respect to the terrain surface or 3D objects in the scene.
  17745. *
  17746. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#elevationInfo)
  17747. */
  17748. mode: "on-the-ground" | "relative-to-ground" | "absolute-height" | "relative-to-scene";
  17749. /**
  17750. * An elevation offset, which is added to the vertical position of the feature.
  17751. *
  17752. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#elevationInfo)
  17753. */
  17754. offset?: number;
  17755. /**
  17756. * Defines how to override a feature's Z-value based on its attributes.
  17757. *
  17758. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#elevationInfo)
  17759. */
  17760. featureExpressionInfo?: StreamLayerElevationInfoFeatureExpressionInfo;
  17761. /**
  17762. * The unit for `featureExpressionInfo` and `offset` values.
  17763. *
  17764. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#elevationInfo)
  17765. */
  17766. unit?: "feet" | "meters" | "kilometers" | "miles" | "us-feet" | "yards";
  17767. }
  17768. export interface StreamLayerElevationInfoFeatureExpressionInfo {
  17769. /**
  17770. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Feature Z Profile](https://developers.arcgis.com/javascript/latest/arcade/#z-values).
  17771. *
  17772. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#elevationInfo)
  17773. */
  17774. expression?: string;
  17775. }
  17776. export interface StreamLayerGetFieldDomainOptions {
  17777. /**
  17778. * The feature to which the [Domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Domain.html) is assigned.
  17779. *
  17780. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#getFieldDomain)
  17781. */
  17782. feature: Graphic;
  17783. }
  17784. export interface StreamLayerPurgeOptions {
  17785. /**
  17786. * Specifies the maximum age of a feature in minutes.
  17787. *
  17788. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#purgeOptions)
  17789. */
  17790. age?: number;
  17791. /**
  17792. * Specifies the maximum age of a feature in minutes since it arrived in the application.
  17793. *
  17794. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#purgeOptions)
  17795. */
  17796. ageReceived?: number;
  17797. /**
  17798. * Controls the overall maximum number of features.
  17799. *
  17800. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#purgeOptions)
  17801. */
  17802. displayCount?: number;
  17803. /**
  17804. * Controls the maximum number of observations to show within a [track](https://enterprise.arcgis.com/en/geoevent/latest/get-started/essential-geoevent-server-vocabulary.htm#ESRI_SECTION1_F45BBCE9ADFA4E57AF38DD225921EFCD).
  17805. *
  17806. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html#purgeOptions)
  17807. */
  17808. maxObservations?: number;
  17809. }
  17810. export interface SubtypeGroupLayer extends Layer, PortalLayer, ScaleRangeLayer, RefreshableLayer, TemporalLayer, BlendLayer, CustomParametersMixin, FeatureLayerBase {
  17811. }
  17812. export class SubtypeGroupLayer {
  17813. /**
  17814. * Describes the layer's supported capabilities.
  17815. *
  17816. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  17817. */
  17818. readonly capabilities: SubtypeGroupLayerCapabilities;
  17819. /**
  17820. * This property is set by the service publisher and indicates that dates should be considered without the local timezone.
  17821. *
  17822. * @default false
  17823. *
  17824. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#datesInUnknownTimezone)
  17825. */
  17826. readonly datesInUnknownTimezone: boolean;
  17827. /**
  17828. * Determines if the layer is editable.
  17829. *
  17830. * @default true
  17831. *
  17832. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#editingEnabled)
  17833. */
  17834. editingEnabled: boolean;
  17835. /**
  17836. * An array of fields in the layer.
  17837. *
  17838. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#fields)
  17839. */
  17840. fields: Field[];
  17841. /**
  17842. * A convenient property that can be used to make case-insensitive lookups for a field by name.
  17843. *
  17844. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#fieldsIndex)
  17845. */
  17846. readonly fieldsIndex: FieldsIndex;
  17847. /**
  17848. * An array of field names from the service to include with each feature.
  17849. *
  17850. * @default null
  17851. *
  17852. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#outFields)
  17853. */
  17854. outFields: string[];
  17855. /**
  17856. * Array of [relationships](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html) set up for the layer.
  17857. *
  17858. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#relationships)
  17859. */
  17860. readonly relationships: Relationship[];
  17861. /**
  17862. * A [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of [SubtypeSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html) objects that allow you to alter the properties of one or more sublayers of the SubtypeGroupLayer.
  17863. *
  17864. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#sublayers)
  17865. */
  17866. sublayers: Collection<SubtypeSublayer>;
  17867. /**
  17868. * The name of the SubtypeGroupLayer's subtype field.
  17869. *
  17870. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#subtypeField)
  17871. */
  17872. subtypeField: string;
  17873. readonly type: "subtype-group";
  17874. /**
  17875. * The SubtypeGroupLayer is a single layer that automatically creates a [SubtypeSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html) for each subtype in its corresponding [feature service](https://enterprise.arcgis.com/en/server/latest/publish-services/windows/what-is-a-feature-service-.htm).
  17876. *
  17877. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html)
  17878. */
  17879. constructor(properties?: SubtypeGroupLayerProperties);
  17880. /**
  17881. * Adds an attachment to a feature.
  17882. *
  17883. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#addAttachment)
  17884. */
  17885. addAttachment(feature: Graphic, attachment: HTMLFormElement | FormData): Promise<SubtypeGroupLayerFeatureEditResult>;
  17886. /**
  17887. * Applies edits to features in a layer.
  17888. *
  17889. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#applyEdits)
  17890. */
  17891. applyEdits(edits: SubtypeGroupLayerApplyEditsEdits, options?: SubtypeGroupLayerApplyEditsOptions): Promise<any>;
  17892. /**
  17893. * Creates query parameter object that can be used to fetch features that satisfy the layer's configurations such as [definitionExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#definitionExpression), [gdbVersion](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#gdbVersion), and [historicMoment](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#historicMoment).
  17894. *
  17895. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#createQuery)
  17896. */
  17897. createQuery(): Query;
  17898. /**
  17899. * Deletes attachments from a feature.
  17900. *
  17901. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#deleteAttachments)
  17902. */
  17903. deleteAttachments(feature: Graphic, attachmentIds: number[]): Promise<SubtypeGroupLayerFeatureEditResult>;
  17904. /**
  17905. * Returns the [Field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html) instance for a field name (case-insensitive).
  17906. *
  17907. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#getField)
  17908. */
  17909. getField(fieldName: string): Field;
  17910. /**
  17911. * Returns the [Domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Domain.html) associated with the given field name.
  17912. *
  17913. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#getFieldDomain)
  17914. */
  17915. getFieldDomain(fieldName: string, options?: SubtypeGroupLayerGetFieldDomainOptions): Domain;
  17916. /**
  17917. * Query information about attachments associated with features.
  17918. *
  17919. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#queryAttachments)
  17920. */
  17921. queryAttachments(attachmentQuery: AttachmentQuery | AttachmentQueryProperties, options?: SubtypeGroupLayerQueryAttachmentsOptions): Promise<any>;
  17922. /**
  17923. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the feature service and returns the [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) of features that satisfy the query.
  17924. *
  17925. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#queryExtent)
  17926. */
  17927. queryExtent(query?: Query | QueryProperties, options?: SubtypeGroupLayerQueryExtentOptions): Promise<any>;
  17928. /**
  17929. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the feature service and returns the number of features that satisfy the query.
  17930. *
  17931. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#queryFeatureCount)
  17932. */
  17933. queryFeatureCount(query?: Query | QueryProperties, options?: SubtypeGroupLayerQueryFeatureCountOptions): Promise<number>;
  17934. /**
  17935. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the feature service and returns a [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html), which can be accessed using the `.then()` method once the promise resolves.
  17936. *
  17937. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#queryFeatures)
  17938. */
  17939. queryFeatures(query?: Query | QueryProperties, options?: SubtypeGroupLayerQueryFeaturesOptions): Promise<FeatureSet>;
  17940. /**
  17941. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the feature service and returns an array of Object IDs for features that satisfy the input query.
  17942. *
  17943. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#queryObjectIds)
  17944. */
  17945. queryObjectIds(query?: Query | QueryProperties, options?: SubtypeGroupLayerQueryObjectIdsOptions): Promise<number[]>;
  17946. /**
  17947. * Executes a [RelationshipQuery](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html) against the feature service and returns [FeatureSets](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html) grouped by source layer or table objectIds.
  17948. *
  17949. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#queryRelatedFeatures)
  17950. */
  17951. queryRelatedFeatures(relationshipQuery: RelationshipQuery | RelationshipQueryProperties, options?: SubtypeGroupLayerQueryRelatedFeaturesOptions): Promise<any>;
  17952. /**
  17953. * Executes a [RelationshipQuery](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html) against the feature service and when resolved, it returns an `object` containing key value pairs.
  17954. *
  17955. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#queryRelatedFeaturesCount)
  17956. */
  17957. queryRelatedFeaturesCount(relationshipQuery: RelationshipQuery | RelationshipQueryProperties, options?: SubtypeGroupLayerQueryRelatedFeaturesCountOptions): Promise<any>;
  17958. /**
  17959. * Updates an existing attachment for a feature.
  17960. *
  17961. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#updateAttachment)
  17962. */
  17963. updateAttachment(feature: Graphic, attachmentId: number, attachment: HTMLFormElement | FormData): Promise<SubtypeGroupLayerFeatureEditResult>;
  17964. on(name: "refresh", eventHandler: SubtypeGroupLayerRefreshEventHandler): IHandle;
  17965. on(name: "edits", eventHandler: SubtypeGroupLayerEditsEventHandler): IHandle;
  17966. on(name: "layerview-create", eventHandler: SubtypeGroupLayerLayerviewCreateEventHandler): IHandle;
  17967. on(name: "layerview-create-error", eventHandler: SubtypeGroupLayerLayerviewCreateErrorEventHandler): IHandle;
  17968. on(name: "layerview-destroy", eventHandler: SubtypeGroupLayerLayerviewDestroyEventHandler): IHandle;
  17969. static fromJSON(json: any): SubtypeGroupLayer;
  17970. }
  17971. /** @deprecated Import the SubtypeGroupLayer class instead. */
  17972. export type SubtypeGroupLayerConstructor = typeof SubtypeGroupLayer;
  17973. interface SubtypeGroupLayerProperties extends LayerProperties, PortalLayerProperties, ScaleRangeLayerProperties, RefreshableLayerProperties, TemporalLayerProperties, BlendLayerProperties, CustomParametersMixinProperties, FeatureLayerBaseProperties {
  17974. /**
  17975. * Determines if the layer is editable.
  17976. *
  17977. * @default true
  17978. *
  17979. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#editingEnabled)
  17980. */
  17981. editingEnabled?: boolean;
  17982. /**
  17983. * An array of fields in the layer.
  17984. *
  17985. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#fields)
  17986. */
  17987. fields?: FieldProperties[];
  17988. /**
  17989. * An array of field names from the service to include with each feature.
  17990. *
  17991. * @default null
  17992. *
  17993. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#outFields)
  17994. */
  17995. outFields?: string[];
  17996. /**
  17997. * A [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of [SubtypeSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html) objects that allow you to alter the properties of one or more sublayers of the SubtypeGroupLayer.
  17998. *
  17999. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#sublayers)
  18000. */
  18001. sublayers?: CollectionProperties<SubtypeSublayer>;
  18002. /**
  18003. * The name of the SubtypeGroupLayer's subtype field.
  18004. *
  18005. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#subtypeField)
  18006. */
  18007. subtypeField?: string;
  18008. }
  18009. /**
  18010. * AttachmentEdit represents an attachment that can be added, updated or deleted via [applyEdits](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#applyEdits).
  18011. *
  18012. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#AttachmentEdit)
  18013. */
  18014. export interface SubtypeGroupLayerAttachmentEdit {
  18015. /**
  18016. * The feature, `objectId` or `globalId` of feature associated with the attachment.
  18017. *
  18018. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#AttachmentEdit)
  18019. */
  18020. feature: Graphic | number | string;
  18021. /**
  18022. * The attachment to be added, updated or deleted.
  18023. *
  18024. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#AttachmentEdit)
  18025. */
  18026. attachment: SubtypeGroupLayerAttachmentEditAttachment;
  18027. }
  18028. /**
  18029. * The fields that record who adds or edits data in the feature service and when the edit is made.
  18030. *
  18031. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#EditFieldsInfo)
  18032. */
  18033. export interface SubtypeGroupLayerEditFieldsInfo {
  18034. /**
  18035. * The name of the field that stores the name of the user who created the feature.
  18036. *
  18037. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#EditFieldsInfo)
  18038. */
  18039. creatorField: string;
  18040. /**
  18041. * The name of the field that stores the date and time the feature was created.
  18042. *
  18043. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#EditFieldsInfo)
  18044. */
  18045. creationDateField: string;
  18046. /**
  18047. * The name of the field that stores the name of the user who last edited the feature.
  18048. *
  18049. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#EditFieldsInfo)
  18050. */
  18051. editorField: string;
  18052. /**
  18053. * The name of the field that stores the date and time the feature was last edited.
  18054. *
  18055. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#EditFieldsInfo)
  18056. */
  18057. editDateField: string;
  18058. }
  18059. /**
  18060. * Specifies information about editing.
  18061. *
  18062. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#EditingInfo)
  18063. */
  18064. export interface SubtypeGroupLayerEditingInfo {
  18065. /**
  18066. * Indicates the last time the layer was edited.
  18067. *
  18068. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#EditingInfo)
  18069. */
  18070. lastEditDate: Date;
  18071. }
  18072. export interface SubtypeGroupLayerEditsEvent {
  18073. addedAttachments: SubtypeGroupLayerFeatureEditResult[];
  18074. addedFeatures: SubtypeGroupLayerFeatureEditResult[];
  18075. deletedAttachments: SubtypeGroupLayerFeatureEditResult[];
  18076. deletedFeatures: SubtypeGroupLayerFeatureEditResult[];
  18077. updatedAttachments: SubtypeGroupLayerFeatureEditResult[];
  18078. updatedFeatures: SubtypeGroupLayerFeatureEditResult[];
  18079. }
  18080. /**
  18081. * FeatureEditResult represents the result of adding, updating or deleting a feature or an attachment.
  18082. *
  18083. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#FeatureEditResult)
  18084. */
  18085. export interface SubtypeGroupLayerFeatureEditResult {
  18086. /**
  18087. * The objectId of the feature or the attachmentId of the attachment that was edited.
  18088. *
  18089. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#FeatureEditResult)
  18090. */
  18091. objectId: number;
  18092. /**
  18093. * The globalId of the feature or the attachment that was edited.
  18094. *
  18095. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#FeatureEditResult)
  18096. */
  18097. globalId: string;
  18098. /**
  18099. * If the edit failed, the edit result includes an error.
  18100. *
  18101. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#FeatureEditResult)
  18102. */
  18103. error: SubtypeGroupLayerFeatureEditResultError;
  18104. }
  18105. export interface SubtypeGroupLayerLayerviewCreateErrorEvent {
  18106. error: Error;
  18107. view: View;
  18108. }
  18109. export interface SubtypeGroupLayerLayerviewCreateEvent {
  18110. layerView: LayerView;
  18111. view: View;
  18112. }
  18113. export interface SubtypeGroupLayerLayerviewDestroyEvent {
  18114. layerView: LayerView;
  18115. view: View;
  18116. }
  18117. export interface SubtypeGroupLayerRefreshEvent {
  18118. dataChanged: boolean;
  18119. }
  18120. export interface SubtypeGroupLayerApplyEditsEdits {
  18121. /**
  18122. * An array or a [collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of features to be added.
  18123. *
  18124. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#applyEdits)
  18125. */
  18126. addFeatures?: Graphic[] | Collection<Graphic>;
  18127. /**
  18128. * An array or a [collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of features to be updated.
  18129. *
  18130. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#applyEdits)
  18131. */
  18132. updateFeatures?: Graphic[] | Collection<Graphic>;
  18133. /**
  18134. * An array or a [collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of features, or an array of objects with `objectId` or `globalId` of each feature to be deleted.
  18135. *
  18136. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#applyEdits)
  18137. */
  18138. deleteFeatures?: Graphic[] | Collection<Graphic> | any[];
  18139. /**
  18140. * An array of attachments to be added.
  18141. *
  18142. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#applyEdits)
  18143. */
  18144. addAttachments?: SubtypeGroupLayerAttachmentEdit[];
  18145. /**
  18146. * An array of attachments to be updated.
  18147. *
  18148. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#applyEdits)
  18149. */
  18150. updateAttachments?: SubtypeGroupLayerAttachmentEdit[];
  18151. /**
  18152. * An array of [globalId](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#AttachmentEdit)s for attachments to be deleted.
  18153. *
  18154. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#applyEdits)
  18155. */
  18156. deleteAttachments?: string[];
  18157. }
  18158. export interface SubtypeGroupLayerApplyEditsOptions {
  18159. /**
  18160. * The geodatabase version to apply the edits.
  18161. *
  18162. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#applyEdits)
  18163. */
  18164. gdbVersion?: string;
  18165. /**
  18166. * Indicates whether the edits should be applied only if all submitted edits succeed.
  18167. *
  18168. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#applyEdits)
  18169. */
  18170. rollbackOnFailureEnabled?: boolean;
  18171. /**
  18172. * Indicates whether the edits can be applied using globalIds of features or attachments.
  18173. *
  18174. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#applyEdits)
  18175. */
  18176. globalIdUsed?: boolean;
  18177. }
  18178. export interface SubtypeGroupLayerCapabilities {
  18179. /**
  18180. * Describes what attachment capabilities are enabled on the layer.
  18181. *
  18182. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18183. */
  18184. attachment: SubtypeGroupLayerCapabilitiesAttachment;
  18185. /**
  18186. * Describes characteristics of the data in the layer.
  18187. *
  18188. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18189. */
  18190. data: SubtypeGroupLayerCapabilitiesData;
  18191. /**
  18192. * Describes editing capabilities that can be performed on the features in the layer via [applyEdits()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#applyEdits).
  18193. *
  18194. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18195. */
  18196. editing: SubtypeGroupLayerCapabilitiesEditing;
  18197. /**
  18198. * Describes the metadata contained on features in the layer.
  18199. *
  18200. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18201. */
  18202. metadata: SubtypeGroupLayerCapabilitiesMetadata;
  18203. /**
  18204. * Describes operations that can be performed on features in the layer.
  18205. *
  18206. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18207. */
  18208. operations: SubtypeGroupLayerCapabilitiesOperations;
  18209. /**
  18210. * Describes [query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) operations that can be performed on features in the layer.
  18211. *
  18212. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18213. */
  18214. query: SubtypeGroupLayerCapabilitiesQuery;
  18215. /**
  18216. * Indicates if the layer's query operation supports querying features or records related to features in the layer.
  18217. *
  18218. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18219. */
  18220. queryRelated: SubtypeGroupLayerCapabilitiesQueryRelated;
  18221. }
  18222. export interface SubtypeGroupLayerCapabilitiesAttachment {
  18223. /**
  18224. * Indicates if the attachments can be [queried](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html) by their names.
  18225. *
  18226. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18227. */
  18228. supportsName: boolean;
  18229. /**
  18230. * Indicates if the attachments can be [queried](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html) by their sizes.
  18231. *
  18232. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18233. */
  18234. supportsSize: boolean;
  18235. /**
  18236. * Indicates if the attachments can be [queried](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html) by their content types.
  18237. *
  18238. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18239. */
  18240. supportsContentType: boolean;
  18241. /**
  18242. * Indicates if the attachments can be [queried](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html) by their keywords.
  18243. *
  18244. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18245. */
  18246. supportsKeywords: boolean;
  18247. /**
  18248. * Indicates if the attachment [queries](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html) support `exifInfo`.
  18249. *
  18250. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18251. */
  18252. supportsExifInfo: boolean;
  18253. }
  18254. export interface SubtypeGroupLayerCapabilitiesData {
  18255. /**
  18256. * Indicates if the feature service is versioned.
  18257. *
  18258. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18259. */
  18260. isVersioned: boolean;
  18261. /**
  18262. * Indicates if the attachment is enabled on the layer.
  18263. *
  18264. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18265. */
  18266. supportsAttachment: boolean;
  18267. /**
  18268. * Indicates if the features in the layer support m-values.
  18269. *
  18270. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18271. */
  18272. supportsM: boolean;
  18273. /**
  18274. * Indicates if the features in the layer support z-values.
  18275. *
  18276. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18277. */
  18278. supportsZ: boolean;
  18279. }
  18280. export interface SubtypeGroupLayerCapabilitiesEditing {
  18281. /**
  18282. * Indicates if anonymous users can delete features created by others.
  18283. *
  18284. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18285. */
  18286. supportsDeleteByAnonymous: boolean;
  18287. /**
  18288. * Indicates if logged in users can delete features created by others.
  18289. *
  18290. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18291. */
  18292. supportsDeleteByOthers: boolean;
  18293. /**
  18294. * Indicates if the geometry of the features in the layer can be edited.
  18295. *
  18296. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18297. */
  18298. supportsGeometryUpdate: boolean;
  18299. /**
  18300. * Indicates if the `globalId` values provided by the client are used in [applyEdits](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#applyEdits).
  18301. *
  18302. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18303. */
  18304. supportsGlobalId: boolean;
  18305. /**
  18306. * Indicates if the `rollbackOnFailureEnabled` parameter can be set to `true` or `false` when editing features.
  18307. *
  18308. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18309. */
  18310. supportsRollbackOnFailure: boolean;
  18311. /**
  18312. * Indicates if anonymous users can update features created by others.
  18313. *
  18314. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18315. */
  18316. supportsUpdateByAnonymous: boolean;
  18317. /**
  18318. * Indicates if logged in users can update features created by others.
  18319. *
  18320. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18321. */
  18322. supportsUpdateByOthers: boolean;
  18323. /**
  18324. * Indicates if `m-values` must be provided when updating features.
  18325. *
  18326. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18327. */
  18328. supportsUpdateWithoutM: boolean;
  18329. /**
  18330. * Indicates if the layer supports uploading attachments by [UploadId](https://developers.arcgis.com/rest/services-reference/item.htm).
  18331. *
  18332. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18333. */
  18334. supportsUploadWithItemId: boolean;
  18335. }
  18336. export interface SubtypeGroupLayerCapabilitiesMetadata {
  18337. /**
  18338. * Indicates whether to provide a user-defined field description.
  18339. *
  18340. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18341. */
  18342. supportsAdvancedFieldProperties: boolean;
  18343. }
  18344. export interface SubtypeGroupLayerCapabilitiesOperations {
  18345. /**
  18346. * Indicates if new features can be [added](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#applyEdits) to the layer.
  18347. *
  18348. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18349. */
  18350. supportsAdd: boolean;
  18351. /**
  18352. * Indicates if features can be [deleted](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#applyEdits) from the layer.
  18353. *
  18354. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18355. */
  18356. supportsDelete: boolean;
  18357. /**
  18358. * Indicates if features in the layer can be [updated](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#applyEdits).
  18359. *
  18360. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18361. */
  18362. supportsUpdate: boolean;
  18363. /**
  18364. * Indicates if features in the layer can be [edited](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#applyEdits).
  18365. *
  18366. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18367. */
  18368. supportsEditing: boolean;
  18369. /**
  18370. * Indicates if values of one or more field values in the layer can be updated.
  18371. *
  18372. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18373. */
  18374. supportsCalculate: boolean;
  18375. /**
  18376. * Indicates if features in the layer can be [queried](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#queryFeatures).
  18377. *
  18378. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18379. */
  18380. supportsQuery: boolean;
  18381. /**
  18382. * Indicates if the layer supports [REST API queryAttachments](https://developers.arcgis.com/rest/services-reference/query-attachments-feature-service-layer-.htm) operation, which is supported with hosted feature services at version 10.5 and greater.
  18383. *
  18384. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18385. */
  18386. supportsQueryAttachments: boolean;
  18387. /**
  18388. * Indicates if the layer supports a SQL-92 expression or where clause.
  18389. *
  18390. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18391. */
  18392. supportsValidateSql: boolean;
  18393. /**
  18394. * Indicates if resized attachments are supported in the feature layer.
  18395. *
  18396. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18397. */
  18398. supportsResizeAttachments: boolean;
  18399. }
  18400. export interface SubtypeGroupLayerCapabilitiesQuery {
  18401. /**
  18402. * The maximum number of records that will be returned for a given query.
  18403. *
  18404. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18405. */
  18406. maxRecordCount: number;
  18407. /**
  18408. * Indicates if the geometry centroid associated with each polygon feature can be returned.
  18409. *
  18410. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18411. */
  18412. supportsCentroid: boolean;
  18413. /**
  18414. * Indicates if the layer's query operation supports a buffer distance for input geometries.
  18415. *
  18416. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18417. */
  18418. supportsDistance: boolean;
  18419. /**
  18420. * Indicates if the layer supports queries for distinct values based on fields specified in the [outFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#outFields).
  18421. *
  18422. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18423. */
  18424. supportsDistinct: boolean;
  18425. /**
  18426. * Indicates if the query operation supports `disjoint` [spatial relationship](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#spatialRelationship).
  18427. *
  18428. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18429. */
  18430. supportsDisjointSpatialRelationship: boolean;
  18431. /**
  18432. * Indicates if the query operation supports a [cache hint](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#cacheHint).
  18433. *
  18434. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18435. */
  18436. supportsCacheHint: boolean;
  18437. /**
  18438. * Indicates if the layer's query response includes the extent of features.
  18439. *
  18440. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18441. */
  18442. supportsExtent: boolean;
  18443. /**
  18444. * Indicates if the layer's query response contains geometry attributes, including shape area and length attributes.
  18445. *
  18446. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18447. */
  18448. supportsGeometryProperties: boolean;
  18449. /**
  18450. * Indicates if the layer supports the [having](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#having) clause on the service.
  18451. *
  18452. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18453. */
  18454. supportsHavingClause: boolean;
  18455. /**
  18456. * Indicates if features returned in the query response can be ordered by one or more fields.
  18457. *
  18458. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18459. */
  18460. supportsOrderBy: boolean;
  18461. /**
  18462. * Indicates if the query response supports pagination.
  18463. *
  18464. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18465. */
  18466. supportsPagination: boolean;
  18467. /**
  18468. * Indicates if the layer supports [percentile statisticType](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-StatisticDefinition.html#statisticType).
  18469. *
  18470. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18471. */
  18472. supportsPercentileStatistics: boolean;
  18473. /**
  18474. * Indicates if the query response includes the [query geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html#queryGeometry).
  18475. *
  18476. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18477. */
  18478. supportsQueryGeometry: boolean;
  18479. /**
  18480. * Indicates if the query operation supports the projection of geometries onto a virtual grid.
  18481. *
  18482. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18483. */
  18484. supportsQuantization: boolean;
  18485. /**
  18486. * Indicates if the query operation supports quantization designed to be used in edit mode (highest resolution at the given spatial reference).
  18487. *
  18488. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18489. */
  18490. supportsQuantizationEditMode: boolean;
  18491. /**
  18492. * Indicates if the number of features returned by the query operation can be controlled.
  18493. *
  18494. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18495. */
  18496. supportsResultType: boolean;
  18497. /**
  18498. * Indicates if the query operation supports SQL expressions.
  18499. *
  18500. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18501. */
  18502. supportsSqlExpression: boolean;
  18503. /**
  18504. * Indicates if the query operation supports using standardized queries.
  18505. *
  18506. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18507. */
  18508. supportsStandardizedQueriesOnly: boolean;
  18509. /**
  18510. * Indicates if the layer supports field-based statistical functions.
  18511. *
  18512. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18513. */
  18514. supportsStatistics: boolean;
  18515. /**
  18516. * Indicates if the layer supports historic moment query.
  18517. *
  18518. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18519. */
  18520. supportsHistoricMoment: boolean;
  18521. }
  18522. export interface SubtypeGroupLayerCapabilitiesQueryRelated {
  18523. /**
  18524. * Indicates if the layer's query response includes the number of features or records related to features in the layer.
  18525. *
  18526. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18527. */
  18528. supportsCount: boolean;
  18529. /**
  18530. * Indicates if the related features or records returned in the query response can be ordered by one or more fields.
  18531. *
  18532. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18533. */
  18534. supportsOrderBy: boolean;
  18535. /**
  18536. * Indicates if the query response supports pagination for related features or records.
  18537. *
  18538. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#capabilities)
  18539. */
  18540. supportsPagination: boolean;
  18541. }
  18542. export interface SubtypeGroupLayerGetFieldDomainOptions {
  18543. /**
  18544. * The feature to which the [Domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Domain.html) is assigned.
  18545. *
  18546. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#getFieldDomain)
  18547. */
  18548. feature: Graphic;
  18549. }
  18550. export interface SubtypeGroupLayerQueryAttachmentsOptions {
  18551. /**
  18552. * Signal object that can be used to abort the asynchronous task.
  18553. *
  18554. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#queryAttachments)
  18555. */
  18556. signal?: AbortSignal;
  18557. }
  18558. export interface SubtypeGroupLayerQueryExtentOptions {
  18559. /**
  18560. * Signal object that can be used to abort the asynchronous task.
  18561. *
  18562. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#queryExtent)
  18563. */
  18564. signal?: AbortSignal;
  18565. }
  18566. export interface SubtypeGroupLayerQueryFeatureCountOptions {
  18567. /**
  18568. * Signal object that can be used to abort the asynchronous task.
  18569. *
  18570. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#queryFeatureCount)
  18571. */
  18572. signal?: AbortSignal;
  18573. }
  18574. export interface SubtypeGroupLayerQueryFeaturesOptions {
  18575. /**
  18576. * Signal object that can be used to abort the asynchronous task.
  18577. *
  18578. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#queryFeatures)
  18579. */
  18580. signal?: AbortSignal;
  18581. }
  18582. export interface SubtypeGroupLayerQueryObjectIdsOptions {
  18583. /**
  18584. * Signal object that can be used to abort the asynchronous task.
  18585. *
  18586. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#queryObjectIds)
  18587. */
  18588. signal?: AbortSignal;
  18589. }
  18590. export interface SubtypeGroupLayerQueryRelatedFeaturesCountOptions {
  18591. /**
  18592. * Signal object that can be used to abort the asynchronous task.
  18593. *
  18594. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#queryRelatedFeaturesCount)
  18595. */
  18596. signal?: AbortSignal;
  18597. }
  18598. export interface SubtypeGroupLayerQueryRelatedFeaturesOptions {
  18599. /**
  18600. * Signal object that can be used to abort the asynchronous task.
  18601. *
  18602. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#queryRelatedFeatures)
  18603. */
  18604. signal?: AbortSignal;
  18605. }
  18606. export interface SubtypeGroupLayerAttachmentEditAttachment {
  18607. /**
  18608. * The globalId of the attachment to be added or updated.
  18609. *
  18610. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#AttachmentEdit)
  18611. */
  18612. globalId: string;
  18613. /**
  18614. * The name of the attachment.
  18615. *
  18616. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#AttachmentEdit)
  18617. */
  18618. name?: string;
  18619. /**
  18620. * The content type of the attachment.
  18621. *
  18622. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#AttachmentEdit)
  18623. */
  18624. contentType?: string;
  18625. /**
  18626. * The id of pre-loaded attachment.
  18627. *
  18628. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#AttachmentEdit)
  18629. */
  18630. uploadId?: string;
  18631. /**
  18632. * The attachment data.
  18633. *
  18634. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#AttachmentEdit)
  18635. */
  18636. data?: Blob | any | string;
  18637. }
  18638. export interface SubtypeGroupLayerFeatureEditResultError {
  18639. /**
  18640. * Error name.
  18641. *
  18642. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#FeatureEditResult)
  18643. */
  18644. name: string;
  18645. /**
  18646. * Message describing the error.
  18647. *
  18648. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html#FeatureEditResult)
  18649. */
  18650. message: string;
  18651. }
  18652. export interface AggregateField extends Accessor, JSONSupport {
  18653. }
  18654. export class AggregateField {
  18655. /**
  18656. * The display name that describes the aggregate field in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html), [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html), and other UI elements.
  18657. *
  18658. * @default null
  18659. *
  18660. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-AggregateField.html#alias)
  18661. */
  18662. alias: string;
  18663. /**
  18664. * Indicates whether the field was created internally by the JS API's rendering engine for default [FeatureReductionCluster](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html) visualizations.
  18665. *
  18666. * @default false
  18667. *
  18668. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-AggregateField.html#isAutoGenerated)
  18669. */
  18670. isAutoGenerated: boolean;
  18671. /**
  18672. * The name of the aggregate field.
  18673. *
  18674. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-AggregateField.html#name)
  18675. */
  18676. name: string;
  18677. /**
  18678. * An object containing an [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression, which evaluates for each child feature represented by the aggregate graphic.
  18679. *
  18680. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-AggregateField.html#onStatisticExpression)
  18681. */
  18682. onStatisticExpression: supportExpressionInfo;
  18683. /**
  18684. * The name of the [layer field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#fields) to summarize with the given [statisticType](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-AggregateField.html#statisticType).
  18685. *
  18686. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-AggregateField.html#onStatisticField)
  18687. */
  18688. onStatisticField: string;
  18689. /**
  18690. * Defines the type of statistic used to aggregate data returned from [onStatisticField](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-AggregateField.html#onStatisticField) or [onStatisticExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-AggregateField.html#onStatisticExpression).
  18691. *
  18692. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-AggregateField.html#statisticType)
  18693. */
  18694. statisticType: "avg" | "count" | "max" | "min" | "mode" | "sum";
  18695. /**
  18696. * Defines the aggregate fields used in a layer visualized with [FeatureReductionBinning](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionBinning.html) or [FeatureReductionCluster](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html).
  18697. *
  18698. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-AggregateField.html)
  18699. */
  18700. constructor(properties?: AggregateFieldProperties);
  18701. /**
  18702. * Creates a deep clone of the AggregateField object.
  18703. *
  18704. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-AggregateField.html#clone)
  18705. */
  18706. clone(): AggregateField;
  18707. static fromJSON(json: any): AggregateField;
  18708. }
  18709. /** @deprecated Import the AggregateField class instead. */
  18710. export type AggregateFieldConstructor = typeof AggregateField;
  18711. interface AggregateFieldProperties {
  18712. /**
  18713. * The display name that describes the aggregate field in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html), [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html), and other UI elements.
  18714. *
  18715. * @default null
  18716. *
  18717. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-AggregateField.html#alias)
  18718. */
  18719. alias?: string;
  18720. /**
  18721. * Indicates whether the field was created internally by the JS API's rendering engine for default [FeatureReductionCluster](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html) visualizations.
  18722. *
  18723. * @default false
  18724. *
  18725. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-AggregateField.html#isAutoGenerated)
  18726. */
  18727. isAutoGenerated?: boolean;
  18728. /**
  18729. * The name of the aggregate field.
  18730. *
  18731. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-AggregateField.html#name)
  18732. */
  18733. name?: string;
  18734. /**
  18735. * An object containing an [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression, which evaluates for each child feature represented by the aggregate graphic.
  18736. *
  18737. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-AggregateField.html#onStatisticExpression)
  18738. */
  18739. onStatisticExpression?: supportExpressionInfoProperties;
  18740. /**
  18741. * The name of the [layer field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#fields) to summarize with the given [statisticType](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-AggregateField.html#statisticType).
  18742. *
  18743. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-AggregateField.html#onStatisticField)
  18744. */
  18745. onStatisticField?: string;
  18746. /**
  18747. * Defines the type of statistic used to aggregate data returned from [onStatisticField](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-AggregateField.html#onStatisticField) or [onStatisticExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-AggregateField.html#onStatisticExpression).
  18748. *
  18749. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-AggregateField.html#statisticType)
  18750. */
  18751. statisticType?: "avg" | "count" | "max" | "min" | "mode" | "sum";
  18752. }
  18753. /**
  18754. * Contains convenience methods for getting Arcade expressions defined on a layer.
  18755. *
  18756. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-arcadeUtils.html)
  18757. */
  18758. interface arcadeUtils {
  18759. /**
  18760. * Returns all Arcade expressions defined on a given layer and provides metadata describing the context for which each expression was authored.
  18761. *
  18762. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-arcadeUtils.html#getExpressionsFromLayer)
  18763. */
  18764. getExpressionsFromLayer(layer: CSVLayer | FeatureLayer | GeoJSONLayer | Sublayer | OGCFeatureLayer | SceneLayer | WFSLayer): arcadeUtilsExpressionInfo[];
  18765. }
  18766. export const arcadeUtils: arcadeUtils;
  18767. /**
  18768. * Represents the result of the [getExpressionsFromLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-arcadeUtils.html#getExpressionsFromLayer) method.
  18769. *
  18770. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-arcadeUtils.html#ExpressionInfo)
  18771. */
  18772. export interface arcadeUtilsExpressionInfo {
  18773. /**
  18774. * An Arcade expression defined on a layer.
  18775. *
  18776. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-arcadeUtils.html#ExpressionInfo)
  18777. */
  18778. expression: string;
  18779. /**
  18780. * The name of the expression used when referencing it in popup and form templates.
  18781. *
  18782. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-arcadeUtils.html#ExpressionInfo)
  18783. */
  18784. name?: string;
  18785. /**
  18786. * The expression's title, describing it in the legend and other UI elements.
  18787. *
  18788. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-arcadeUtils.html#ExpressionInfo)
  18789. */
  18790. title?: string;
  18791. /**
  18792. * Information about the profile, or environment, where the expression was defined.
  18793. *
  18794. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-arcadeUtils.html#ExpressionInfo)
  18795. */
  18796. profileInfo: ExpressionInfoProfileInfo;
  18797. }
  18798. /**
  18799. * Describes the context for which an Arcade expression was defined using the Feature Z profile.
  18800. *
  18801. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-arcadeUtils.html#FeatureZProfileContext)
  18802. */
  18803. export type FeatureZProfileContext = "order-by" | "elevation-info";
  18804. /**
  18805. * Describes the context for which an Arcade expression was defined using the popup or popup element profile.
  18806. *
  18807. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-arcadeUtils.html#PopupProfileContext)
  18808. */
  18809. export type PopupProfileContext = "popup-template" | "popup-expression-content";
  18810. /**
  18811. * Describes the context for which an Arcade expression was defined.
  18812. *
  18813. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-arcadeUtils.html#ProfileContext)
  18814. */
  18815. export type ProfileContext = | VisualizationProfileContext
  18816. | PopupProfileContext
  18817. | FeatureZProfileContext
  18818. | "label-class"
  18819. | "form-template";
  18820. /**
  18821. * Describes the context for which an Arcade expression was defined using the visualization profile.
  18822. *
  18823. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-arcadeUtils.html#VisualizationProfileContext)
  18824. */
  18825. export type VisualizationProfileContext = | "unique-value-renderer"
  18826. | "class-breaks-renderer"
  18827. | "dot-density-renderer"
  18828. | "heatmap-renderer"
  18829. | "pie-chart-renderer"
  18830. | "color-variable"
  18831. | "size-variable"
  18832. | "opacity-variable"
  18833. | "rotation-variable";
  18834. export interface ExpressionInfoProfileInfo {
  18835. /**
  18836. * Indicates which [profile](https://developers.arcgis.com/arcade/profiles/) is used to execute the expression.
  18837. *
  18838. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-arcadeUtils.html#ExpressionInfo)
  18839. */
  18840. name: | "constraint"
  18841. | "feature-z"
  18842. | "field-calculation"
  18843. | "form-calculation"
  18844. | "labeling"
  18845. | "popup"
  18846. | "popup-element"
  18847. | "feature-reduction-popup"
  18848. | "feature-reduction-popup-element"
  18849. | "visualization";
  18850. /**
  18851. * Describes the context (i.e.
  18852. *
  18853. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-arcadeUtils.html#ExpressionInfo)
  18854. */
  18855. context: ProfileContext;
  18856. /**
  18857. * Indicates the data source used to hydrate the expression's profile variables.
  18858. *
  18859. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-arcadeUtils.html#ExpressionInfo)
  18860. */
  18861. source: "layer" | "feature-reduction";
  18862. /**
  18863. * The return type of the expression.
  18864. *
  18865. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-arcadeUtils.html#ExpressionInfo)
  18866. */
  18867. returnType?: "boolean" | "date" | "number" | "string" | "dictionary";
  18868. }
  18869. export interface BuildingFilter extends Accessor, JSONSupport {
  18870. }
  18871. export class BuildingFilter {
  18872. /**
  18873. * Description of the filter for display in UIs, for example when the filter is edited in ArcGIS Pro.
  18874. *
  18875. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-BuildingFilter.html#description)
  18876. */
  18877. description: string;
  18878. /**
  18879. * Filter blocks define which features should be visible in the affected [BuildingSceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html) and how the filtered features are drawn.
  18880. *
  18881. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-BuildingFilter.html#filterBlocks)
  18882. */
  18883. filterBlocks: Collection<BuildingFilterBlock>;
  18884. /**
  18885. * Unique filter id.
  18886. *
  18887. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-BuildingFilter.html#id)
  18888. */
  18889. readonly id: string;
  18890. /**
  18891. * Name of the filter for display in UIs, for example when the filter is edited in ArcGIS Pro.
  18892. *
  18893. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-BuildingFilter.html#name)
  18894. */
  18895. name: string;
  18896. /**
  18897. * The `BuildingFilter` class defines a set of conditions that can be used to show or hide specific features of a [BuildingSceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html) in the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  18898. *
  18899. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-BuildingFilter.html)
  18900. */
  18901. constructor(properties?: BuildingFilterProperties);
  18902. static fromJSON(json: any): BuildingFilter;
  18903. }
  18904. /** @deprecated Import the BuildingFilter class instead. */
  18905. export type BuildingFilterConstructor = typeof BuildingFilter;
  18906. interface BuildingFilterProperties {
  18907. /**
  18908. * Description of the filter for display in UIs, for example when the filter is edited in ArcGIS Pro.
  18909. *
  18910. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-BuildingFilter.html#description)
  18911. */
  18912. description?: string;
  18913. /**
  18914. * Filter blocks define which features should be visible in the affected [BuildingSceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html) and how the filtered features are drawn.
  18915. *
  18916. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-BuildingFilter.html#filterBlocks)
  18917. */
  18918. filterBlocks?: CollectionProperties<BuildingFilterBlock>;
  18919. /**
  18920. * Name of the filter for display in UIs, for example when the filter is edited in ArcGIS Pro.
  18921. *
  18922. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-BuildingFilter.html#name)
  18923. */
  18924. name?: string;
  18925. }
  18926. /**
  18927. * Object contained in the [filterBlocks](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-BuildingFilter.html#filterBlocks) collection:
  18928. *
  18929. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-BuildingFilter.html#BuildingFilterBlock)
  18930. */
  18931. export interface BuildingFilterBlock {
  18932. /**
  18933. * The SQL where clause used to match features to this filter block.
  18934. *
  18935. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-BuildingFilter.html#BuildingFilterBlock)
  18936. */
  18937. filterExpression: string;
  18938. /**
  18939. * This object contains information about the filter mode of the filter block.
  18940. *
  18941. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-BuildingFilter.html#BuildingFilterBlock)
  18942. */
  18943. filterMode?: BuildingFilterBlockFilterMode;
  18944. /**
  18945. * Title of the filter for display in UIs, for example when the filter block is edited in ArcGIS Pro.
  18946. *
  18947. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-BuildingFilter.html#BuildingFilterBlock)
  18948. */
  18949. title?: string;
  18950. }
  18951. export interface BuildingFilterBlockFilterMode {
  18952. /**
  18953. * Defines how features are drawn while the filter is active.
  18954. *
  18955. * @default solid
  18956. *
  18957. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-BuildingFilter.html#BuildingFilterBlock)
  18958. */
  18959. type?: "solid" | "wire-frame" | "x-ray";
  18960. /**
  18961. * Defines the type of edges used to display a [BuildingSceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html) filtered in `wire-frame` mode.
  18962. *
  18963. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-BuildingFilter.html#BuildingFilterBlock)
  18964. */
  18965. edges?: SolidEdges3D | SketchEdges3D;
  18966. }
  18967. export interface BuildingSummaryStatistics extends Accessor, Loadable, JSONSupport {
  18968. }
  18969. export class BuildingSummaryStatistics {
  18970. /**
  18971. * An array of statistics on all fields in all sublayers.
  18972. *
  18973. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-BuildingSummaryStatistics.html#fields)
  18974. */
  18975. fields: BuildingFieldStatistics[];
  18976. /**
  18977. * Contains statistics about the fields in all sublayers of a [BuildingSceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html).
  18978. *
  18979. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-BuildingSummaryStatistics.html)
  18980. */
  18981. constructor(properties?: BuildingSummaryStatisticsProperties);
  18982. static fromJSON(json: any): BuildingSummaryStatistics;
  18983. }
  18984. /** @deprecated Import the BuildingSummaryStatistics class instead. */
  18985. export type BuildingSummaryStatisticsConstructor = typeof BuildingSummaryStatistics;
  18986. interface BuildingSummaryStatisticsProperties extends LoadableProperties {
  18987. /**
  18988. * An array of statistics on all fields in all sublayers.
  18989. *
  18990. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-BuildingSummaryStatistics.html#fields)
  18991. */
  18992. fields?: BuildingFieldStatistics[];
  18993. }
  18994. /**
  18995. * Summary statistics for a field in a [BuildingSceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html).
  18996. *
  18997. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-BuildingSummaryStatistics.html#BuildingFieldStatistics)
  18998. */
  18999. export interface BuildingFieldStatistics {
  19000. /**
  19001. * Name of the field.
  19002. *
  19003. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-BuildingSummaryStatistics.html#BuildingFieldStatistics)
  19004. */
  19005. fieldName: string;
  19006. /**
  19007. * Model Name of the field.
  19008. *
  19009. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-BuildingSummaryStatistics.html#BuildingFieldStatistics)
  19010. */
  19011. modelName: string;
  19012. /**
  19013. * Label of the field.
  19014. *
  19015. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-BuildingSummaryStatistics.html#BuildingFieldStatistics)
  19016. */
  19017. label: string;
  19018. /**
  19019. * Minimum value of the field for numeric values.
  19020. *
  19021. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-BuildingSummaryStatistics.html#BuildingFieldStatistics)
  19022. */
  19023. min: number;
  19024. /**
  19025. * Maximum value of the field for numeric values.
  19026. *
  19027. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-BuildingSummaryStatistics.html#BuildingFieldStatistics)
  19028. */
  19029. max: number;
  19030. /**
  19031. * List of the most frequent values of the field.
  19032. *
  19033. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-BuildingSummaryStatistics.html#BuildingFieldStatistics)
  19034. */
  19035. mostFrequentValues: string[] | number[];
  19036. /**
  19037. * List of sublayer ids where this field is available.
  19038. *
  19039. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-BuildingSummaryStatistics.html#BuildingFieldStatistics)
  19040. */
  19041. subLayerIds: number[];
  19042. }
  19043. export class CodedValueDomain extends Domain {
  19044. /**
  19045. * An array of the coded values in the domain.
  19046. *
  19047. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-CodedValueDomain.html#codedValues)
  19048. */
  19049. codedValues: CodedValue[];
  19050. readonly type: "coded-value";
  19051. /**
  19052. * Information about the coded values belonging to the domain.
  19053. *
  19054. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-CodedValueDomain.html)
  19055. */
  19056. constructor(properties?: CodedValueDomainProperties);
  19057. /**
  19058. * Returns the name of the coded-value associated with the specified code.
  19059. *
  19060. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-CodedValueDomain.html#getName)
  19061. */
  19062. getName(code: string | number): string;
  19063. static fromJSON(json: any): CodedValueDomain;
  19064. }
  19065. /** @deprecated Import the CodedValueDomain class instead. */
  19066. export type CodedValueDomainConstructor = typeof CodedValueDomain;
  19067. interface CodedValueDomainProperties extends DomainProperties {
  19068. /**
  19069. * An array of the coded values in the domain.
  19070. *
  19071. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-CodedValueDomain.html#codedValues)
  19072. */
  19073. codedValues?: CodedValue[];
  19074. }
  19075. /**
  19076. * The coded value in a domain.
  19077. *
  19078. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-CodedValueDomain.html#CodedValue)
  19079. */
  19080. export interface CodedValue {
  19081. /**
  19082. * The name of the coded value.
  19083. *
  19084. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-CodedValueDomain.html#CodedValue)
  19085. */
  19086. name: string;
  19087. /**
  19088. * The value of the code.
  19089. *
  19090. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-CodedValueDomain.html#CodedValue)
  19091. */
  19092. code: string | number;
  19093. }
  19094. export class ControlPointsGeoreference extends Accessor {
  19095. /**
  19096. * An array of two, three, or four [controlPoints](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ControlPointsGeoreference.html#controlPoints) positions the media element.
  19097. *
  19098. * @default null
  19099. *
  19100. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ControlPointsGeoreference.html#controlPoints)
  19101. */
  19102. controlPoints: ControlPoint[];
  19103. /**
  19104. * Defines the size of the element displayed, typically the element's height in pixels.
  19105. *
  19106. * @default 0
  19107. *
  19108. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ControlPointsGeoreference.html#height)
  19109. */
  19110. height: number;
  19111. type: "control-points";
  19112. /**
  19113. * Defines the size of the element displayed, typically the element's width in pixels.
  19114. *
  19115. * @default 0
  19116. *
  19117. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ControlPointsGeoreference.html#width)
  19118. */
  19119. width: number;
  19120. /**
  19121. * ControlPointsGeoreference is used to set the [geographic location](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageElement.html#georeference) of the [ImageElement](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageElement.html) or [VideoElement](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VideoElement.html) referenced in the [MediaLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html) using the [controlPoints](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ControlPointsGeoreference.html#controlPoints), [width](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ControlPointsGeoreference.html#width), and [height](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ControlPointsGeoreference.html#height) parameters.
  19122. *
  19123. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ControlPointsGeoreference.html)
  19124. */
  19125. constructor(properties?: ControlPointsGeoreferenceProperties);
  19126. /**
  19127. * Converts the given [sourcePoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ControlPointsGeoreference.html#SourcePoint) to a [mapPoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html).
  19128. *
  19129. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ControlPointsGeoreference.html#toMap)
  19130. */
  19131. toMap(sourcePoint: SourcePoint): Point;
  19132. /**
  19133. * Converts the given [mapPoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) to a [sourcePoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ControlPointsGeoreference.html#SourcePoint).
  19134. *
  19135. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ControlPointsGeoreference.html#toSource)
  19136. */
  19137. toSource(point: Point): SourcePoint;
  19138. }
  19139. /** @deprecated Import the ControlPointsGeoreference class instead. */
  19140. export type ControlPointsGeoreferenceConstructor = typeof ControlPointsGeoreference;
  19141. interface ControlPointsGeoreferenceProperties {
  19142. /**
  19143. * An array of two, three, or four [controlPoints](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ControlPointsGeoreference.html#controlPoints) positions the media element.
  19144. *
  19145. * @default null
  19146. *
  19147. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ControlPointsGeoreference.html#controlPoints)
  19148. */
  19149. controlPoints?: ControlPoint[];
  19150. /**
  19151. * Defines the size of the element displayed, typically the element's height in pixels.
  19152. *
  19153. * @default 0
  19154. *
  19155. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ControlPointsGeoreference.html#height)
  19156. */
  19157. height?: number;
  19158. type?: "control-points";
  19159. /**
  19160. * Defines the size of the element displayed, typically the element's width in pixels.
  19161. *
  19162. * @default 0
  19163. *
  19164. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ControlPointsGeoreference.html#width)
  19165. */
  19166. width?: number;
  19167. }
  19168. /**
  19169. * A control point object in the [controlPoints](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ControlPointsGeoreference.html#controlPoints) array.
  19170. *
  19171. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ControlPointsGeoreference.html#ControlPoint)
  19172. */
  19173. export interface ControlPoint {
  19174. /**
  19175. * The coordinate of the control point in the image coordinate space.
  19176. *
  19177. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ControlPointsGeoreference.html#ControlPoint)
  19178. */
  19179. sourcePoint?: SourcePoint;
  19180. /**
  19181. * The coordinate of the the control point in the map coordinate space.
  19182. *
  19183. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ControlPointsGeoreference.html#ControlPoint)
  19184. */
  19185. mapPoint?: Point;
  19186. }
  19187. /**
  19188. * An object representing a point on the element.
  19189. *
  19190. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ControlPointsGeoreference.html#SourcePoint)
  19191. */
  19192. export interface SourcePoint {
  19193. /**
  19194. * The x coordinate.
  19195. *
  19196. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ControlPointsGeoreference.html#SourcePoint)
  19197. */
  19198. x: number;
  19199. /**
  19200. * The y coordinate.
  19201. *
  19202. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ControlPointsGeoreference.html#SourcePoint)
  19203. */
  19204. y: number;
  19205. }
  19206. export class CornersGeoreference extends Accessor {
  19207. /**
  19208. * The bottom left [point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) of the bounding box representing the geographic location of the image or video element being added to the [MediaLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html).
  19209. *
  19210. * @default null
  19211. *
  19212. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-CornersGeoreference.html#bottomLeft)
  19213. */
  19214. bottomLeft: Point;
  19215. /**
  19216. * The bottom right [point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) of the bounding box representing the geographic location of the image or video element being added to the [MediaLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html).
  19217. *
  19218. * @default null
  19219. *
  19220. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-CornersGeoreference.html#bottomRight)
  19221. */
  19222. bottomRight: Point;
  19223. /**
  19224. * The top left [point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) of the bounding box representing the geographic location of the image or video element being added to the [MediaLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html).
  19225. *
  19226. * @default null
  19227. *
  19228. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-CornersGeoreference.html#topLeft)
  19229. */
  19230. topLeft: Point;
  19231. /**
  19232. * The top right [point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) of the bounding box representing the geographic location of the image or video element being added to the [MediaLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html).
  19233. *
  19234. * @default null
  19235. *
  19236. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-CornersGeoreference.html#topRight)
  19237. */
  19238. topRight: Point;
  19239. /**
  19240. * The georeference type.
  19241. *
  19242. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-CornersGeoreference.html#type)
  19243. */
  19244. readonly type: "corners";
  19245. /**
  19246. * CornersGeoreference is used to set the [geographic location](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageElement.html#georeference) of the [image](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageElement.html) or [element](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VideoElement.html) referenced in the [MediaLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html) using corner points of a bounding box.
  19247. *
  19248. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-CornersGeoreference.html)
  19249. */
  19250. constructor(properties?: CornersGeoreferenceProperties);
  19251. }
  19252. /** @deprecated Import the CornersGeoreference class instead. */
  19253. export type CornersGeoreferenceConstructor = typeof CornersGeoreference;
  19254. interface CornersGeoreferenceProperties {
  19255. /**
  19256. * The bottom left [point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) of the bounding box representing the geographic location of the image or video element being added to the [MediaLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html).
  19257. *
  19258. * @default null
  19259. *
  19260. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-CornersGeoreference.html#bottomLeft)
  19261. */
  19262. bottomLeft?: PointProperties;
  19263. /**
  19264. * The bottom right [point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) of the bounding box representing the geographic location of the image or video element being added to the [MediaLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html).
  19265. *
  19266. * @default null
  19267. *
  19268. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-CornersGeoreference.html#bottomRight)
  19269. */
  19270. bottomRight?: PointProperties;
  19271. /**
  19272. * The top left [point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) of the bounding box representing the geographic location of the image or video element being added to the [MediaLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html).
  19273. *
  19274. * @default null
  19275. *
  19276. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-CornersGeoreference.html#topLeft)
  19277. */
  19278. topLeft?: PointProperties;
  19279. /**
  19280. * The top right [point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) of the bounding box representing the geographic location of the image or video element being added to the [MediaLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html).
  19281. *
  19282. * @default null
  19283. *
  19284. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-CornersGeoreference.html#topRight)
  19285. */
  19286. topRight?: PointProperties;
  19287. }
  19288. export interface DimensionalDefinition extends Accessor, JSONSupport {
  19289. }
  19290. export class DimensionalDefinition {
  19291. /**
  19292. * The dimension associated with the variable.
  19293. *
  19294. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-DimensionalDefinition.html#dimensionName)
  19295. */
  19296. dimensionName: string;
  19297. /**
  19298. * Indicates whether the values indicate slices (rather than ranges).
  19299. *
  19300. * @default false
  19301. *
  19302. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-DimensionalDefinition.html#isSlice)
  19303. */
  19304. isSlice: boolean;
  19305. /**
  19306. * An array of single values or tuples [min, max] each defining a range of valid values along the specified dimension.
  19307. *
  19308. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-DimensionalDefinition.html#values)
  19309. */
  19310. values: (number | number[])[];
  19311. /**
  19312. * The required variable name by which to filter.
  19313. *
  19314. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-DimensionalDefinition.html#variableName)
  19315. */
  19316. variableName: string;
  19317. /**
  19318. * A dimensional definition defines a filter based on one variable and one dimension.
  19319. *
  19320. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-DimensionalDefinition.html)
  19321. */
  19322. constructor(properties?: DimensionalDefinitionProperties);
  19323. /**
  19324. * Creates a clone of the DimensionalDefinition object.
  19325. *
  19326. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-DimensionalDefinition.html#clone)
  19327. */
  19328. clone(): DimensionalDefinition;
  19329. static fromJSON(json: any): DimensionalDefinition;
  19330. }
  19331. /** @deprecated Import the DimensionalDefinition class instead. */
  19332. export type DimensionalDefinitionConstructor = typeof DimensionalDefinition;
  19333. interface DimensionalDefinitionProperties {
  19334. /**
  19335. * The dimension associated with the variable.
  19336. *
  19337. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-DimensionalDefinition.html#dimensionName)
  19338. */
  19339. dimensionName?: string;
  19340. /**
  19341. * Indicates whether the values indicate slices (rather than ranges).
  19342. *
  19343. * @default false
  19344. *
  19345. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-DimensionalDefinition.html#isSlice)
  19346. */
  19347. isSlice?: boolean;
  19348. /**
  19349. * An array of single values or tuples [min, max] each defining a range of valid values along the specified dimension.
  19350. *
  19351. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-DimensionalDefinition.html#values)
  19352. */
  19353. values?: (number | number[])[];
  19354. /**
  19355. * The required variable name by which to filter.
  19356. *
  19357. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-DimensionalDefinition.html#variableName)
  19358. */
  19359. variableName?: string;
  19360. }
  19361. export interface Domain extends Accessor, JSONSupport {
  19362. }
  19363. export class Domain {
  19364. /**
  19365. * The domain name.
  19366. *
  19367. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Domain.html#name)
  19368. */
  19369. name: string;
  19370. /**
  19371. * The domain type.
  19372. *
  19373. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Domain.html#type)
  19374. */
  19375. type: "range" | "coded-value" | "inherited";
  19376. /**
  19377. * Domains define constraints on a [layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html) [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html).
  19378. *
  19379. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Domain.html)
  19380. */
  19381. constructor(properties?: DomainProperties);
  19382. static fromJSON(json: any): Domain;
  19383. }
  19384. /** @deprecated Import the Domain class instead. */
  19385. export type DomainConstructor = typeof Domain;
  19386. interface DomainProperties {
  19387. /**
  19388. * The domain name.
  19389. *
  19390. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Domain.html#name)
  19391. */
  19392. name?: string;
  19393. /**
  19394. * The domain type.
  19395. *
  19396. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Domain.html#type)
  19397. */
  19398. type?: "range" | "coded-value" | "inherited";
  19399. }
  19400. export class ElevationSampler {
  19401. /**
  19402. * The minimum and maximum resolution of the data in the sampler.
  19403. *
  19404. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ElevationSampler.html#demResolution)
  19405. */
  19406. readonly demResolution: ElevationSamplerDemResolution;
  19407. /**
  19408. * The extent within which the sampler can be queried.
  19409. *
  19410. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ElevationSampler.html#extent)
  19411. */
  19412. readonly extent: Extent;
  19413. /**
  19414. * The value that is used to represent areas where there is no data available.
  19415. *
  19416. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ElevationSampler.html#noDataValue)
  19417. */
  19418. readonly noDataValue: number;
  19419. /**
  19420. * The spatial reference of the sampler.
  19421. *
  19422. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ElevationSampler.html#spatialReference)
  19423. */
  19424. readonly spatialReference: SpatialReference;
  19425. /**
  19426. * Get elevation for a coordinate specified in the spatial reference of the sampler.
  19427. *
  19428. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ElevationSampler.html#elevationAt)
  19429. */
  19430. elevationAt(x: number, y: number): number;
  19431. /**
  19432. * Query elevation for a [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html), [Polyline](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html) or [Multipoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Multipoint.html) geometry.
  19433. *
  19434. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ElevationSampler.html#queryElevation)
  19435. */
  19436. queryElevation(geometry: Point | Multipoint | Polyline): Point | Multipoint | Polyline;
  19437. on(name: "changed", eventHandler: ElevationSamplerChangedEventHandler): IHandle;
  19438. }
  19439. /** @deprecated Import the ElevationSampler class instead. */
  19440. export type ElevationSamplerConstructor = typeof ElevationSampler;
  19441. export interface ElevationSamplerChangedEvent {
  19442. }
  19443. export interface ElevationSamplerDemResolution {
  19444. /**
  19445. * The minimum resolution.
  19446. *
  19447. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ElevationSampler.html#demResolution)
  19448. */
  19449. min: number;
  19450. /**
  19451. * The maximum resolution.
  19452. *
  19453. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ElevationSampler.html#demResolution)
  19454. */
  19455. max: number;
  19456. }
  19457. export interface supportExpressionInfo extends Accessor, JSONSupport {
  19458. }
  19459. export class supportExpressionInfo {
  19460. /**
  19461. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  19462. *
  19463. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ExpressionInfo.html#expression)
  19464. */
  19465. expression: string;
  19466. /**
  19467. * Indicates the return type of the Arcade expression.
  19468. *
  19469. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ExpressionInfo.html#returnType)
  19470. */
  19471. returnType: "string" | "number";
  19472. /**
  19473. * The title used to describe the value returned by the expression.
  19474. *
  19475. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ExpressionInfo.html#title)
  19476. */
  19477. title: string;
  19478. /**
  19479. * The `ExpressionInfo` class references an [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  19480. *
  19481. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ExpressionInfo.html)
  19482. */
  19483. constructor(properties?: supportExpressionInfoProperties);
  19484. /**
  19485. * Creates a deep clone of this object.
  19486. *
  19487. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ExpressionInfo.html#clone)
  19488. */
  19489. clone(): this;
  19490. static fromJSON(json: any): supportExpressionInfo;
  19491. }
  19492. /** @deprecated Import the supportExpressionInfo class instead. */
  19493. export type supportExpressionInfoConstructor = typeof supportExpressionInfo;
  19494. interface supportExpressionInfoProperties {
  19495. /**
  19496. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  19497. *
  19498. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ExpressionInfo.html#expression)
  19499. */
  19500. expression?: string;
  19501. /**
  19502. * Indicates the return type of the Arcade expression.
  19503. *
  19504. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ExpressionInfo.html#returnType)
  19505. */
  19506. returnType?: "string" | "number";
  19507. /**
  19508. * The title used to describe the value returned by the expression.
  19509. *
  19510. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ExpressionInfo.html#title)
  19511. */
  19512. title?: string;
  19513. }
  19514. export class ExtentAndRotationGeoreference extends Accessor {
  19515. /**
  19516. * An extent of the image or video element representing its geographic location when added to the [MediaLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html).
  19517. *
  19518. * @default null
  19519. *
  19520. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ExtentAndRotationGeoreference.html#extent)
  19521. */
  19522. extent: Extent;
  19523. /**
  19524. * A rotation of the image or video element when added to the [MediaLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html).
  19525. *
  19526. * @default 0
  19527. *
  19528. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ExtentAndRotationGeoreference.html#rotation)
  19529. */
  19530. rotation: number;
  19531. /**
  19532. * The georeference type.
  19533. *
  19534. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ExtentAndRotationGeoreference.html#type)
  19535. */
  19536. readonly type: "extent-and-rotation";
  19537. /**
  19538. * ExtentAndRotationGeoreference is used to set the [geographic location](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageElement.html#georeference) of the [image](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageElement.html) or [element](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VideoElement.html) referenced in the [MediaLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html) using the [extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ExtentAndRotationGeoreference.html#extent) and [rotation](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ExtentAndRotationGeoreference.html#rotation) parameters.
  19539. *
  19540. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ExtentAndRotationGeoreference.html)
  19541. */
  19542. constructor(properties?: ExtentAndRotationGeoreferenceProperties);
  19543. }
  19544. /** @deprecated Import the ExtentAndRotationGeoreference class instead. */
  19545. export type ExtentAndRotationGeoreferenceConstructor = typeof ExtentAndRotationGeoreference;
  19546. interface ExtentAndRotationGeoreferenceProperties {
  19547. /**
  19548. * An extent of the image or video element representing its geographic location when added to the [MediaLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html).
  19549. *
  19550. * @default null
  19551. *
  19552. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ExtentAndRotationGeoreference.html#extent)
  19553. */
  19554. extent?: ExtentProperties;
  19555. /**
  19556. * A rotation of the image or video element when added to the [MediaLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html).
  19557. *
  19558. * @default 0
  19559. *
  19560. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ExtentAndRotationGeoreference.html#rotation)
  19561. */
  19562. rotation?: number;
  19563. }
  19564. export interface FacilityLayerInfo extends Accessor, JSONSupport {
  19565. }
  19566. export class FacilityLayerInfo {
  19567. /**
  19568. * The field name from the layer that defines the facility unique ID for a feature.
  19569. *
  19570. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FacilityLayerInfo.html#facilityIdField)
  19571. */
  19572. facilityIdField: string;
  19573. /**
  19574. * Identifies an operational layer in a map.
  19575. *
  19576. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FacilityLayerInfo.html#layerId)
  19577. */
  19578. layerId: string;
  19579. /**
  19580. * The field name from the layer that defines the facility name for a feature.
  19581. *
  19582. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FacilityLayerInfo.html#nameField)
  19583. */
  19584. nameField: string;
  19585. /**
  19586. * The field name from the layer that records the unique ID of a feature's associated site and can be used to identify a feature's associated site feature in floor-aware maps.
  19587. *
  19588. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FacilityLayerInfo.html#siteIdField)
  19589. */
  19590. siteIdField: string;
  19591. /**
  19592. * This value references the numeric ID of the sublayer if the Facility layer is a map service sublayer instead of a feature layer.
  19593. *
  19594. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FacilityLayerInfo.html#sublayerId)
  19595. */
  19596. sublayerId: number;
  19597. /**
  19598. * The FacilityLayerInfo describes the footprints of managed buildings and other structures.
  19599. *
  19600. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FacilityLayerInfo.html)
  19601. */
  19602. constructor(properties?: FacilityLayerInfoProperties);
  19603. static fromJSON(json: any): FacilityLayerInfo;
  19604. }
  19605. /** @deprecated Import the FacilityLayerInfo class instead. */
  19606. export type FacilityLayerInfoConstructor = typeof FacilityLayerInfo;
  19607. interface FacilityLayerInfoProperties {
  19608. /**
  19609. * The field name from the layer that defines the facility unique ID for a feature.
  19610. *
  19611. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FacilityLayerInfo.html#facilityIdField)
  19612. */
  19613. facilityIdField?: string;
  19614. /**
  19615. * Identifies an operational layer in a map.
  19616. *
  19617. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FacilityLayerInfo.html#layerId)
  19618. */
  19619. layerId?: string;
  19620. /**
  19621. * The field name from the layer that defines the facility name for a feature.
  19622. *
  19623. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FacilityLayerInfo.html#nameField)
  19624. */
  19625. nameField?: string;
  19626. /**
  19627. * The field name from the layer that records the unique ID of a feature's associated site and can be used to identify a feature's associated site feature in floor-aware maps.
  19628. *
  19629. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FacilityLayerInfo.html#siteIdField)
  19630. */
  19631. siteIdField?: string;
  19632. /**
  19633. * This value references the numeric ID of the sublayer if the Facility layer is a map service sublayer instead of a feature layer.
  19634. *
  19635. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FacilityLayerInfo.html#sublayerId)
  19636. */
  19637. sublayerId?: number;
  19638. }
  19639. export interface FeatureEffect extends Accessor, JSONSupport {
  19640. }
  19641. export class FeatureEffect {
  19642. /**
  19643. * The [effect](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html#Effect) applied to features that do not meet the [filter](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html#filter) requirements.
  19644. *
  19645. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html#excludedEffect)
  19646. */
  19647. excludedEffect: Effect;
  19648. /**
  19649. * Indicates if labels are visible for features that are [excluded](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html#excludedEffect) from the [filter](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html#filter).
  19650. *
  19651. * @default false
  19652. *
  19653. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html#excludedLabelsVisible)
  19654. */
  19655. excludedLabelsVisible: boolean;
  19656. /**
  19657. * The [filter](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html) that drives the effect.
  19658. *
  19659. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html#filter)
  19660. */
  19661. filter: FeatureFilter;
  19662. /**
  19663. * The [effect](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html#Effect) applied to features that meet the [filter](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html#filter) requirements.
  19664. *
  19665. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html#includedEffect)
  19666. */
  19667. includedEffect: Effect;
  19668. /**
  19669. * FeatureEffect allows you to emphasize or deemphasize features that satisfy a [filter](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html#filter) in 2D [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  19670. *
  19671. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html)
  19672. */
  19673. constructor(properties?: FeatureEffectProperties);
  19674. /**
  19675. * Creates a deep clone of FeatureEffect object.
  19676. *
  19677. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html#clone)
  19678. */
  19679. clone(): FeatureEffect;
  19680. static fromJSON(json: any): FeatureEffect;
  19681. }
  19682. /** @deprecated Import the FeatureEffect class instead. */
  19683. export type FeatureEffectConstructor = typeof FeatureEffect;
  19684. interface FeatureEffectProperties {
  19685. /**
  19686. * The [effect](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html#Effect) applied to features that do not meet the [filter](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html#filter) requirements.
  19687. *
  19688. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html#excludedEffect)
  19689. */
  19690. excludedEffect?: any[] | string;
  19691. /**
  19692. * Indicates if labels are visible for features that are [excluded](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html#excludedEffect) from the [filter](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html#filter).
  19693. *
  19694. * @default false
  19695. *
  19696. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html#excludedLabelsVisible)
  19697. */
  19698. excludedLabelsVisible?: boolean;
  19699. /**
  19700. * The [filter](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html) that drives the effect.
  19701. *
  19702. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html#filter)
  19703. */
  19704. filter?: FeatureFilterProperties;
  19705. /**
  19706. * The [effect](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html#Effect) applied to features that meet the [filter](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html#filter) requirements.
  19707. *
  19708. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html#includedEffect)
  19709. */
  19710. includedEffect?: any[] | string;
  19711. }
  19712. /**
  19713. * Effect provides various filter functions that can be performed on a layer or a layerView to achieve different visual effects similar to how image filters (photo apps) work.
  19714. *
  19715. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureEffect.html#Effect)
  19716. */
  19717. export type Effect = any[] | string;
  19718. export interface FeatureFilter extends Accessor, JSONSupport {
  19719. }
  19720. export class FeatureFilter {
  19721. /**
  19722. * Specifies a search distance from a given [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#geometry) in a spatial filter.
  19723. *
  19724. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#distance)
  19725. */
  19726. distance: number;
  19727. /**
  19728. * The geometry to apply to the spatial filter.
  19729. *
  19730. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#geometry)
  19731. */
  19732. geometry: Geometry;
  19733. /**
  19734. * An array of objectIds of the features to be filtered.
  19735. *
  19736. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#objectIds)
  19737. */
  19738. objectIds: number[];
  19739. /**
  19740. * For spatial filters, this parameter defines the spatial relationship to filter features in the layer view against the filter [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#geometry).
  19741. *
  19742. * @default intersects
  19743. *
  19744. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#spatialRelationship)
  19745. */
  19746. spatialRelationship: string;
  19747. /**
  19748. * A range of time with start and end date.
  19749. *
  19750. * @default null
  19751. *
  19752. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#timeExtent)
  19753. */
  19754. timeExtent: TimeExtent;
  19755. /**
  19756. * The unit for calculating the buffer distance when [distance](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#distance) is specified in a spatial filter.
  19757. *
  19758. * @default null
  19759. *
  19760. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#units)
  19761. */
  19762. units: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers";
  19763. /**
  19764. * A where clause for the feature filter.
  19765. *
  19766. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#where)
  19767. */
  19768. where: string;
  19769. /**
  19770. * This class defines parameters for setting a client-side filter on a [featureEffect](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#featureEffect) or [layer view](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#filter).
  19771. *
  19772. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html)
  19773. */
  19774. constructor(properties?: FeatureFilterProperties);
  19775. /**
  19776. * Creates a deep clone of the FeatureFilter object.
  19777. *
  19778. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#clone)
  19779. */
  19780. clone(): FeatureFilter;
  19781. /**
  19782. * Creates [query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) parameters that can be used to fetch features that satisfy the layer's current filters and definitions.
  19783. *
  19784. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#createQuery)
  19785. */
  19786. createQuery(): Query;
  19787. static fromJSON(json: any): FeatureFilter;
  19788. }
  19789. /** @deprecated Import the FeatureFilter class instead. */
  19790. export type FeatureFilterConstructor = typeof FeatureFilter;
  19791. interface FeatureFilterProperties {
  19792. /**
  19793. * Specifies a search distance from a given [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#geometry) in a spatial filter.
  19794. *
  19795. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#distance)
  19796. */
  19797. distance?: number;
  19798. /**
  19799. * The geometry to apply to the spatial filter.
  19800. *
  19801. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#geometry)
  19802. */
  19803. geometry?: GeometryProperties;
  19804. /**
  19805. * An array of objectIds of the features to be filtered.
  19806. *
  19807. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#objectIds)
  19808. */
  19809. objectIds?: number[];
  19810. /**
  19811. * For spatial filters, this parameter defines the spatial relationship to filter features in the layer view against the filter [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#geometry).
  19812. *
  19813. * @default intersects
  19814. *
  19815. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#spatialRelationship)
  19816. */
  19817. spatialRelationship?: string;
  19818. /**
  19819. * A range of time with start and end date.
  19820. *
  19821. * @default null
  19822. *
  19823. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#timeExtent)
  19824. */
  19825. timeExtent?: TimeExtentProperties;
  19826. /**
  19827. * The unit for calculating the buffer distance when [distance](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#distance) is specified in a spatial filter.
  19828. *
  19829. * @default null
  19830. *
  19831. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#units)
  19832. */
  19833. units?: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers";
  19834. /**
  19835. * A where clause for the feature filter.
  19836. *
  19837. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#where)
  19838. */
  19839. where?: string;
  19840. }
  19841. export interface FeatureReductionBinning extends Accessor, JSONSupport {
  19842. }
  19843. export class FeatureReductionBinning {
  19844. /**
  19845. * An array of aggregate fields that summarize layer [fields](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#fields) from features contained within each bin.
  19846. *
  19847. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionBinning.html#fields)
  19848. */
  19849. fields: AggregateField[];
  19850. /**
  19851. * The fixed geohash level used to create bins.
  19852. *
  19853. * @default 3
  19854. *
  19855. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionBinning.html#fixedBinLevel)
  19856. */
  19857. fixedBinLevel: number;
  19858. /**
  19859. * Defines labels for bins as an array of [LabelClass](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html).
  19860. *
  19861. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionBinning.html#labelingInfo)
  19862. */
  19863. labelingInfo: LabelClass[];
  19864. /**
  19865. * Indicates whether to display labels for the bins.
  19866. *
  19867. * @default true
  19868. *
  19869. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionBinning.html#labelsVisible)
  19870. */
  19871. labelsVisible: boolean;
  19872. /**
  19873. * Indicates whether to display a popup when a user clicks or touches a bin.
  19874. *
  19875. * @default true
  19876. *
  19877. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionBinning.html#popupEnabled)
  19878. */
  19879. popupEnabled: boolean;
  19880. /**
  19881. * The [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html) to apply to bins.
  19882. *
  19883. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionBinning.html#popupTemplate)
  19884. */
  19885. popupTemplate: PopupTemplate;
  19886. /**
  19887. * The renderer used to style the bins.
  19888. *
  19889. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionBinning.html#renderer)
  19890. */
  19891. renderer: Renderer;
  19892. /**
  19893. * The feature reduction type.
  19894. *
  19895. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionBinning.html#type)
  19896. */
  19897. type: "binning";
  19898. /**
  19899. * This class configures binning as a means of reducing and summarizing point features in a [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html), [CSVLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html), [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html), [WFSLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html), or [OGCFeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html).
  19900. *
  19901. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionBinning.html)
  19902. */
  19903. constructor(properties?: FeatureReductionBinningProperties);
  19904. /**
  19905. * Creates a deep clone of the FeatureReductionBinning object.
  19906. *
  19907. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionBinning.html#clone)
  19908. */
  19909. clone(): FeatureReductionBinning;
  19910. static fromJSON(json: any): FeatureReductionBinning;
  19911. }
  19912. /** @deprecated Import the FeatureReductionBinning class instead. */
  19913. export type FeatureReductionBinningConstructor = typeof FeatureReductionBinning;
  19914. interface FeatureReductionBinningProperties {
  19915. /**
  19916. * An array of aggregate fields that summarize layer [fields](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#fields) from features contained within each bin.
  19917. *
  19918. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionBinning.html#fields)
  19919. */
  19920. fields?: AggregateFieldProperties[];
  19921. /**
  19922. * The fixed geohash level used to create bins.
  19923. *
  19924. * @default 3
  19925. *
  19926. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionBinning.html#fixedBinLevel)
  19927. */
  19928. fixedBinLevel?: number;
  19929. /**
  19930. * Defines labels for bins as an array of [LabelClass](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html).
  19931. *
  19932. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionBinning.html#labelingInfo)
  19933. */
  19934. labelingInfo?: LabelClassProperties[];
  19935. /**
  19936. * Indicates whether to display labels for the bins.
  19937. *
  19938. * @default true
  19939. *
  19940. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionBinning.html#labelsVisible)
  19941. */
  19942. labelsVisible?: boolean;
  19943. /**
  19944. * Indicates whether to display a popup when a user clicks or touches a bin.
  19945. *
  19946. * @default true
  19947. *
  19948. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionBinning.html#popupEnabled)
  19949. */
  19950. popupEnabled?: boolean;
  19951. /**
  19952. * The [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html) to apply to bins.
  19953. *
  19954. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionBinning.html#popupTemplate)
  19955. */
  19956. popupTemplate?: PopupTemplateProperties;
  19957. /**
  19958. * The renderer used to style the bins.
  19959. *
  19960. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionBinning.html#renderer)
  19961. */
  19962. renderer?: RendererProperties;
  19963. /**
  19964. * The feature reduction type.
  19965. *
  19966. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionBinning.html#type)
  19967. */
  19968. type?: "binning";
  19969. }
  19970. export interface FeatureReductionCluster extends Accessor, JSONSupport {
  19971. }
  19972. export class FeatureReductionCluster {
  19973. /**
  19974. * Defines the symbol size of the largest cluster in points (or pixels if specified).
  19975. *
  19976. * @default 37.5
  19977. *
  19978. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#clusterMaxSize)
  19979. */
  19980. clusterMaxSize: number;
  19981. /**
  19982. * Defines the symbol size of the smallest cluster in points (or pixels if specified).
  19983. *
  19984. * @default 9
  19985. *
  19986. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#clusterMinSize)
  19987. */
  19988. clusterMinSize: number;
  19989. /**
  19990. * Defines the radius in points (or pixels if specified) of the area in which multiple points will be grouped and visualized as a single cluster.
  19991. *
  19992. * @default 60
  19993. *
  19994. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#clusterRadius)
  19995. */
  19996. clusterRadius: number;
  19997. /**
  19998. * An array of aggregate fields that summarize layer [fields](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#fields) from features contained within each cluster.
  19999. *
  20000. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#fields)
  20001. */
  20002. fields: AggregateField[];
  20003. /**
  20004. * Defines labels for clusters as an array of [LabelClass](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html).
  20005. *
  20006. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#labelingInfo)
  20007. */
  20008. labelingInfo: LabelClass[];
  20009. /**
  20010. * Indicates whether to display labels for the clusters.
  20011. *
  20012. * @default true
  20013. *
  20014. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#labelsVisible)
  20015. */
  20016. labelsVisible: boolean;
  20017. /**
  20018. * Indicates whether to display the cluster popup.
  20019. *
  20020. * @default true
  20021. *
  20022. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#popupEnabled)
  20023. */
  20024. popupEnabled: boolean;
  20025. /**
  20026. * The [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html) to apply to clustered graphics.
  20027. *
  20028. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#popupTemplate)
  20029. */
  20030. popupTemplate: PopupTemplate;
  20031. /**
  20032. * The renderer used to override the default style of the clusters.
  20033. *
  20034. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#renderer)
  20035. */
  20036. renderer: Renderer;
  20037. /**
  20038. * A symbol used to override the default cluster style.
  20039. *
  20040. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#symbol)
  20041. */
  20042. symbol: MarkerSymbol | CIMSymbol | WebStyleSymbol;
  20043. /**
  20044. * The feature reduction type.
  20045. *
  20046. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#type)
  20047. */
  20048. type: "cluster";
  20049. /**
  20050. * This class configures clustering as a means of reducing and summarizing point features in a [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html), [CSVLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html), [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html), [WFSLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html), or [OGCFeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html).
  20051. *
  20052. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html)
  20053. */
  20054. constructor(properties?: FeatureReductionClusterProperties);
  20055. /**
  20056. * Creates a deep clone of the FeatureReductionCluster object.
  20057. *
  20058. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#clone)
  20059. */
  20060. clone(): FeatureReductionCluster;
  20061. static fromJSON(json: any): FeatureReductionCluster;
  20062. }
  20063. /** @deprecated Import the FeatureReductionCluster class instead. */
  20064. export type FeatureReductionClusterConstructor = typeof FeatureReductionCluster;
  20065. interface FeatureReductionClusterProperties {
  20066. /**
  20067. * Defines the symbol size of the largest cluster in points (or pixels if specified).
  20068. *
  20069. * @default 37.5
  20070. *
  20071. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#clusterMaxSize)
  20072. */
  20073. clusterMaxSize?: number | string;
  20074. /**
  20075. * Defines the symbol size of the smallest cluster in points (or pixels if specified).
  20076. *
  20077. * @default 9
  20078. *
  20079. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#clusterMinSize)
  20080. */
  20081. clusterMinSize?: number | string;
  20082. /**
  20083. * Defines the radius in points (or pixels if specified) of the area in which multiple points will be grouped and visualized as a single cluster.
  20084. *
  20085. * @default 60
  20086. *
  20087. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#clusterRadius)
  20088. */
  20089. clusterRadius?: number | string;
  20090. /**
  20091. * An array of aggregate fields that summarize layer [fields](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#fields) from features contained within each cluster.
  20092. *
  20093. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#fields)
  20094. */
  20095. fields?: AggregateFieldProperties[];
  20096. /**
  20097. * Defines labels for clusters as an array of [LabelClass](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html).
  20098. *
  20099. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#labelingInfo)
  20100. */
  20101. labelingInfo?: LabelClassProperties[];
  20102. /**
  20103. * Indicates whether to display labels for the clusters.
  20104. *
  20105. * @default true
  20106. *
  20107. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#labelsVisible)
  20108. */
  20109. labelsVisible?: boolean;
  20110. /**
  20111. * Indicates whether to display the cluster popup.
  20112. *
  20113. * @default true
  20114. *
  20115. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#popupEnabled)
  20116. */
  20117. popupEnabled?: boolean;
  20118. /**
  20119. * The [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html) to apply to clustered graphics.
  20120. *
  20121. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#popupTemplate)
  20122. */
  20123. popupTemplate?: PopupTemplateProperties;
  20124. /**
  20125. * The renderer used to override the default style of the clusters.
  20126. *
  20127. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#renderer)
  20128. */
  20129. renderer?: RendererProperties;
  20130. /**
  20131. * A symbol used to override the default cluster style.
  20132. *
  20133. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#symbol)
  20134. */
  20135. symbol?: | MarkerSymbolProperties
  20136. | (CIMSymbolProperties & { type: "cim" })
  20137. | (WebStyleSymbolProperties & { type: "web-style" });
  20138. /**
  20139. * The feature reduction type.
  20140. *
  20141. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#type)
  20142. */
  20143. type?: "cluster";
  20144. }
  20145. export interface FeatureReductionSelection extends Accessor, JSONSupport {
  20146. }
  20147. export class FeatureReductionSelection {
  20148. /**
  20149. * The feature reduction type.
  20150. *
  20151. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionSelection.html#type)
  20152. */
  20153. type: "selection";
  20154. /**
  20155. * Declutters points in the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) by thinning overlapping features so no features intersect on screen.
  20156. *
  20157. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionSelection.html)
  20158. */
  20159. constructor(properties?: FeatureReductionSelectionProperties);
  20160. static fromJSON(json: any): FeatureReductionSelection;
  20161. }
  20162. /** @deprecated Import the FeatureReductionSelection class instead. */
  20163. export type FeatureReductionSelectionConstructor = typeof FeatureReductionSelection;
  20164. interface FeatureReductionSelectionProperties {
  20165. /**
  20166. * The feature reduction type.
  20167. *
  20168. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionSelection.html#type)
  20169. */
  20170. type?: "selection";
  20171. }
  20172. export interface FeatureTemplate extends Accessor, JSONSupport {
  20173. }
  20174. export class FeatureTemplate {
  20175. /**
  20176. * Description of the feature template.
  20177. *
  20178. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html#description)
  20179. */
  20180. description: string;
  20181. /**
  20182. * Name of the default drawing tool defined for the template to create a feature.
  20183. *
  20184. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html#drawingTool)
  20185. */
  20186. drawingTool: | "auto-complete-polygon"
  20187. | "circle"
  20188. | "ellipse"
  20189. | "freehand"
  20190. | "line"
  20191. | "none"
  20192. | "point"
  20193. | "polygon"
  20194. | "rectangle"
  20195. | "arrow"
  20196. | "triangle"
  20197. | "left-arrow"
  20198. | "right-arrow"
  20199. | "up-arrow"
  20200. | "down-arrow";
  20201. /**
  20202. * Name of the feature template.
  20203. *
  20204. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html#name)
  20205. */
  20206. name: string;
  20207. /**
  20208. * An instance of the prototypical feature described by the [feature template](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html).
  20209. *
  20210. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html#prototype)
  20211. */
  20212. prototype: any;
  20213. /**
  20214. * An object used to create a thumbnail image that represents a feature type in the feature template.
  20215. *
  20216. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html#thumbnail)
  20217. */
  20218. thumbnail: FeatureTemplateThumbnail;
  20219. /**
  20220. * Feature templates define all the information required to create a new feature in a [feature layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
  20221. *
  20222. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html)
  20223. */
  20224. constructor(properties?: FeatureTemplateProperties);
  20225. /**
  20226. * Creates a deep clone of this object.
  20227. *
  20228. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html#clone)
  20229. */
  20230. clone(): this;
  20231. static fromJSON(json: any): FeatureTemplate;
  20232. }
  20233. /** @deprecated Import the FeatureTemplate class instead. */
  20234. export type FeatureTemplateConstructor = typeof FeatureTemplate;
  20235. interface FeatureTemplateProperties {
  20236. /**
  20237. * Description of the feature template.
  20238. *
  20239. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html#description)
  20240. */
  20241. description?: string;
  20242. /**
  20243. * Name of the default drawing tool defined for the template to create a feature.
  20244. *
  20245. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html#drawingTool)
  20246. */
  20247. drawingTool?: | "auto-complete-polygon"
  20248. | "circle"
  20249. | "ellipse"
  20250. | "freehand"
  20251. | "line"
  20252. | "none"
  20253. | "point"
  20254. | "polygon"
  20255. | "rectangle"
  20256. | "arrow"
  20257. | "triangle"
  20258. | "left-arrow"
  20259. | "right-arrow"
  20260. | "up-arrow"
  20261. | "down-arrow";
  20262. /**
  20263. * Name of the feature template.
  20264. *
  20265. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html#name)
  20266. */
  20267. name?: string;
  20268. /**
  20269. * An instance of the prototypical feature described by the [feature template](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html).
  20270. *
  20271. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html#prototype)
  20272. */
  20273. prototype?: any;
  20274. /**
  20275. * An object used to create a thumbnail image that represents a feature type in the feature template.
  20276. *
  20277. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html#thumbnail)
  20278. */
  20279. thumbnail?: FeatureTemplateThumbnail;
  20280. }
  20281. export interface FeatureTemplateThumbnail {
  20282. /**
  20283. * The MIME type of the image.
  20284. *
  20285. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html#thumbnail)
  20286. */
  20287. contentType: "image" | "png" | "jpg" | "jpeg";
  20288. /**
  20289. * The [base64EncodedImageData](https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding) presenting the thumbnail image.
  20290. *
  20291. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html#thumbnail)
  20292. */
  20293. imageData: string;
  20294. /**
  20295. * The height of the thumbnail.
  20296. *
  20297. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html#thumbnail)
  20298. */
  20299. height: number;
  20300. /**
  20301. * The width of the thumbnail.
  20302. *
  20303. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html#thumbnail)
  20304. */
  20305. width: number;
  20306. }
  20307. export interface FeatureType extends Accessor, JSONSupport {
  20308. }
  20309. export class FeatureType {
  20310. /**
  20311. * Domains associated with the feature type.
  20312. *
  20313. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureType.html#domains)
  20314. */
  20315. domains: HashMap<CodedValueDomain | RangeDomain | InheritedDomain>;
  20316. /**
  20317. * The feature type identifier.
  20318. *
  20319. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureType.html#id)
  20320. */
  20321. id: number | string;
  20322. /**
  20323. * The feature type name.
  20324. *
  20325. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureType.html#name)
  20326. */
  20327. name: string;
  20328. /**
  20329. * Array of [feature templates](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html) associated with the feature type.
  20330. *
  20331. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureType.html#templates)
  20332. */
  20333. templates: FeatureTemplate[];
  20334. /**
  20335. * FeatureType is a subset of features defined in a [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) that share the same attributes.
  20336. *
  20337. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureType.html)
  20338. */
  20339. constructor(properties?: FeatureTypeProperties);
  20340. /**
  20341. * Creates a deep clone of this object.
  20342. *
  20343. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureType.html#clone)
  20344. */
  20345. clone(): this;
  20346. static fromJSON(json: any): FeatureType;
  20347. }
  20348. /** @deprecated Import the FeatureType class instead. */
  20349. export type FeatureTypeConstructor = typeof FeatureType;
  20350. interface FeatureTypeProperties {
  20351. /**
  20352. * Domains associated with the feature type.
  20353. *
  20354. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureType.html#domains)
  20355. */
  20356. domains?: HashMap<
  20357. | (CodedValueDomainProperties & { type: "coded-value" })
  20358. | (RangeDomainProperties & { type: "range" })
  20359. | (InheritedDomainProperties & { type: "inherited" })
  20360. >;
  20361. /**
  20362. * The feature type identifier.
  20363. *
  20364. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureType.html#id)
  20365. */
  20366. id?: number | string;
  20367. /**
  20368. * The feature type name.
  20369. *
  20370. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureType.html#name)
  20371. */
  20372. name?: string;
  20373. /**
  20374. * Array of [feature templates](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html) associated with the feature type.
  20375. *
  20376. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureType.html#templates)
  20377. */
  20378. templates?: FeatureTemplateProperties[];
  20379. }
  20380. export interface Field extends Accessor, JSONSupport {
  20381. }
  20382. export class Field {
  20383. /**
  20384. * The display name for the field.
  20385. *
  20386. * @default null
  20387. *
  20388. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#alias)
  20389. */
  20390. alias: string;
  20391. /**
  20392. * The default value set for the field.
  20393. *
  20394. * @default undefined
  20395. *
  20396. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#defaultValue)
  20397. */
  20398. defaultValue: number | string | null | undefined;
  20399. /**
  20400. * Contains information describing the purpose of each field.
  20401. *
  20402. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#description)
  20403. */
  20404. description: string;
  20405. /**
  20406. * The domain associated with the field.
  20407. *
  20408. * @default null
  20409. *
  20410. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#domain)
  20411. */
  20412. domain: CodedValueDomain | RangeDomain | InheritedDomain;
  20413. /**
  20414. * Indicates whether the field is editable.
  20415. *
  20416. * @default true
  20417. *
  20418. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#editable)
  20419. */
  20420. editable: boolean;
  20421. /**
  20422. * The field length.
  20423. *
  20424. * @default -1
  20425. *
  20426. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#length)
  20427. */
  20428. length: number;
  20429. /**
  20430. * The name of the field.
  20431. *
  20432. * @default null
  20433. *
  20434. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#name)
  20435. */
  20436. name: string;
  20437. /**
  20438. * Indicates if the field can accept `null` values.
  20439. *
  20440. * @default true
  20441. *
  20442. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#nullable)
  20443. */
  20444. nullable: boolean;
  20445. /**
  20446. * The data type of the field.
  20447. *
  20448. * @default null
  20449. *
  20450. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#type)
  20451. */
  20452. type: | "small-integer"
  20453. | "integer"
  20454. | "single"
  20455. | "double"
  20456. | "long"
  20457. | "string"
  20458. | "date"
  20459. | "oid"
  20460. | "geometry"
  20461. | "blob"
  20462. | "raster"
  20463. | "guid"
  20464. | "global-id"
  20465. | "xml";
  20466. /**
  20467. * The types of values that can be assigned to a field.
  20468. *
  20469. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#valueType)
  20470. */
  20471. valueType: | "binary"
  20472. | "coordinate"
  20473. | "count-or-amount"
  20474. | "date-and-time"
  20475. | "description"
  20476. | "location-or-place-name"
  20477. | "measurement"
  20478. | "name-or-title"
  20479. | "none"
  20480. | "ordered-or-ranked"
  20481. | "percentage-or-ratio"
  20482. | "type-or-category"
  20483. | "unique-identifier";
  20484. /**
  20485. * Information about each field in a layer.
  20486. *
  20487. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html)
  20488. */
  20489. constructor(properties?: FieldProperties);
  20490. static fromJSON(json: any): Field;
  20491. }
  20492. /** @deprecated Import the Field class instead. */
  20493. export type FieldConstructor = typeof Field;
  20494. interface FieldProperties {
  20495. /**
  20496. * The display name for the field.
  20497. *
  20498. * @default null
  20499. *
  20500. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#alias)
  20501. */
  20502. alias?: string;
  20503. /**
  20504. * The default value set for the field.
  20505. *
  20506. * @default undefined
  20507. *
  20508. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#defaultValue)
  20509. */
  20510. defaultValue?: number | string | null | undefined;
  20511. /**
  20512. * Contains information describing the purpose of each field.
  20513. *
  20514. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#description)
  20515. */
  20516. description?: string;
  20517. /**
  20518. * The domain associated with the field.
  20519. *
  20520. * @default null
  20521. *
  20522. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#domain)
  20523. */
  20524. domain?: | (CodedValueDomainProperties & { type: "coded-value" })
  20525. | (RangeDomainProperties & { type: "range" })
  20526. | (InheritedDomainProperties & { type: "inherited" });
  20527. /**
  20528. * Indicates whether the field is editable.
  20529. *
  20530. * @default true
  20531. *
  20532. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#editable)
  20533. */
  20534. editable?: boolean;
  20535. /**
  20536. * The field length.
  20537. *
  20538. * @default -1
  20539. *
  20540. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#length)
  20541. */
  20542. length?: number;
  20543. /**
  20544. * The name of the field.
  20545. *
  20546. * @default null
  20547. *
  20548. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#name)
  20549. */
  20550. name?: string;
  20551. /**
  20552. * Indicates if the field can accept `null` values.
  20553. *
  20554. * @default true
  20555. *
  20556. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#nullable)
  20557. */
  20558. nullable?: boolean;
  20559. /**
  20560. * The data type of the field.
  20561. *
  20562. * @default null
  20563. *
  20564. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#type)
  20565. */
  20566. type?: | "small-integer"
  20567. | "integer"
  20568. | "single"
  20569. | "double"
  20570. | "long"
  20571. | "string"
  20572. | "date"
  20573. | "oid"
  20574. | "geometry"
  20575. | "blob"
  20576. | "raster"
  20577. | "guid"
  20578. | "global-id"
  20579. | "xml";
  20580. /**
  20581. * The types of values that can be assigned to a field.
  20582. *
  20583. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#valueType)
  20584. */
  20585. valueType?: | "binary"
  20586. | "coordinate"
  20587. | "count-or-amount"
  20588. | "date-and-time"
  20589. | "description"
  20590. | "location-or-place-name"
  20591. | "measurement"
  20592. | "name-or-title"
  20593. | "none"
  20594. | "ordered-or-ranked"
  20595. | "percentage-or-ratio"
  20596. | "type-or-category"
  20597. | "unique-identifier";
  20598. }
  20599. export class FieldsIndex {
  20600. /**
  20601. * An array of date fields or field json objects.
  20602. *
  20603. * @default []
  20604. *
  20605. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FieldsIndex.html#dateFields)
  20606. */
  20607. dateFields: Field[] | any[];
  20608. constructor(properties?: any);
  20609. /**
  20610. * Returns a field with the specified field name.
  20611. *
  20612. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FieldsIndex.html#get)
  20613. */
  20614. get(fieldName: string): Field;
  20615. /**
  20616. * Checks if a field with the specified field name exists in the layer.
  20617. *
  20618. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FieldsIndex.html#has)
  20619. */
  20620. has(fieldName: string): boolean;
  20621. /**
  20622. * Checks if a field with the specified field name is a date field.
  20623. *
  20624. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FieldsIndex.html#isDateField)
  20625. */
  20626. isDateField(fieldName: string): boolean;
  20627. }
  20628. /** @deprecated Import the FieldsIndex class instead. */
  20629. export type FieldsIndexConstructor = typeof FieldsIndex;
  20630. /**
  20631. * Convenience methods for getting field names used for feature layer [labeling](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#labelingInfo), [elevation](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#elevationInfo), [editor tracking](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#editFieldsInfo) and time span.
  20632. *
  20633. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-fieldUtils.html)
  20634. */
  20635. interface fieldUtils {
  20636. /**
  20637. * Gets the appropriate display field name to label a feature.
  20638. *
  20639. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-fieldUtils.html#getDisplayFieldName)
  20640. */
  20641. getDisplayFieldName(layer: FeatureLayer | CSVLayer | GeoJSONLayer | OGCFeatureLayer | SceneLayer | StreamLayer): string;
  20642. /**
  20643. * Returns an array of field names used in the Arcade expression for calculating the z-values of features in the given feature layer's [FeatureLayer.elevationInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#elevationInfo).
  20644. *
  20645. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-fieldUtils.html#getElevationFields)
  20646. */
  20647. getElevationFields(layer: FeatureLayer): Promise<string[]>;
  20648. /**
  20649. * Returns an array of field names referenced in one or more [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expressions to be set on the given layer in either the renderer, labels, or popup template.
  20650. *
  20651. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-fieldUtils.html#getExpressionFields)
  20652. */
  20653. getExpressionFields(layer: FeatureLayer | CSVLayer | GeoJSONLayer | SceneLayer | StreamLayer, expressions: string[]): Promise<string[]>;
  20654. /**
  20655. * Returns an array of editor tracking field names for a given feature layer.
  20656. *
  20657. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-fieldUtils.html#getFeatureEditFields)
  20658. */
  20659. getFeatureEditFields(layer: FeatureLayer): string[];
  20660. /**
  20661. * Returns an array of geometry field names for a given feature layer.
  20662. *
  20663. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-fieldUtils.html#getFeatureGeometryFields)
  20664. */
  20665. getFeatureGeometryFields(layer: FeatureLayer): string[];
  20666. /**
  20667. * Returns an array of field names used in the Arcade expression for labeling features in the given feature layer's [FeatureLayer.labelingInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#labelingInfo).
  20668. *
  20669. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-fieldUtils.html#getLabelingFields)
  20670. */
  20671. getLabelingFields(layer: FeatureLayer): Promise<string[]>;
  20672. /**
  20673. * Returns an array of field names related to time.
  20674. *
  20675. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-fieldUtils.html#getTimeFields)
  20676. */
  20677. getTimeFields(layer: FeatureLayer): Promise<string[]>;
  20678. }
  20679. export const fieldUtils: fieldUtils;
  20680. export interface GeometryFieldsInfo extends Accessor, JSONSupport {
  20681. }
  20682. export class GeometryFieldsInfo {
  20683. /**
  20684. * The name of the field that stores the feature's area, e.g.
  20685. *
  20686. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-GeometryFieldsInfo.html#shapeAreaField)
  20687. */
  20688. readonly shapeAreaField: string;
  20689. /**
  20690. * The name of the field that stores the feature's length, e.g.
  20691. *
  20692. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-GeometryFieldsInfo.html#shapeLengthField)
  20693. */
  20694. readonly shapeLengthField: string;
  20695. /**
  20696. * The units of measure for the area and length field values.
  20697. *
  20698. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-GeometryFieldsInfo.html#units)
  20699. */
  20700. readonly units: string;
  20701. /**
  20702. * The `GeometryFieldsInfo` class returns information about the system maintained geometry information associated with a specific feature in a [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
  20703. *
  20704. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-GeometryFieldsInfo.html)
  20705. */
  20706. constructor(properties?: GeometryFieldsInfoProperties);
  20707. static fromJSON(json: any): GeometryFieldsInfo;
  20708. }
  20709. /** @deprecated Import the GeometryFieldsInfo class instead. */
  20710. export type GeometryFieldsInfoConstructor = typeof GeometryFieldsInfo;
  20711. interface GeometryFieldsInfoProperties {
  20712. }
  20713. export interface ImageElement extends Accessor, MediaElementBase {
  20714. }
  20715. export class ImageElement {
  20716. /**
  20717. * The image content referenced in the image element instance.
  20718. *
  20719. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageElement.html#content)
  20720. */
  20721. readonly content: HTMLImageElement | HTMLCanvasElement | ImageData;
  20722. /**
  20723. * The image element to be added to the [media layer's source](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html#source).
  20724. *
  20725. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageElement.html#image)
  20726. */
  20727. image: string | HTMLImageElement | HTMLCanvasElement | ImageData;
  20728. /**
  20729. * The element type.
  20730. *
  20731. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageElement.html#type)
  20732. */
  20733. readonly type: "image";
  20734. /**
  20735. * Represents an image element referenced in the MediaLayer's [source](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html#source).
  20736. *
  20737. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageElement.html)
  20738. */
  20739. constructor(properties?: ImageElementProperties);
  20740. }
  20741. /** @deprecated Import the ImageElement class instead. */
  20742. export type ImageElementConstructor = typeof ImageElement;
  20743. interface ImageElementProperties extends MediaElementBaseProperties {
  20744. /**
  20745. * The image element to be added to the [media layer's source](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html#source).
  20746. *
  20747. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageElement.html#image)
  20748. */
  20749. image?: string | HTMLImageElement | HTMLCanvasElement | ImageData;
  20750. }
  20751. export class ImageParameters extends Accessor {
  20752. /**
  20753. * Dots per inch setting for an [MapImageLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html).
  20754. *
  20755. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageParameters.html#dpi)
  20756. */
  20757. dpi: number;
  20758. /**
  20759. * Extent of map to be exported.
  20760. *
  20761. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageParameters.html#extent)
  20762. */
  20763. extent: Extent;
  20764. /**
  20765. * Map image format.
  20766. *
  20767. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageParameters.html#format)
  20768. */
  20769. format: "png" | "png8" | "png24" | "png32" | "jpg" | "pdf" | "bmp" | "gif" | "svg";
  20770. /**
  20771. * Requested image height in pixels.
  20772. *
  20773. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageParameters.html#height)
  20774. */
  20775. height: number;
  20776. /**
  20777. * Spatial reference of exported map.
  20778. *
  20779. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageParameters.html#imageSpatialReference)
  20780. */
  20781. imageSpatialReference: SpatialReference;
  20782. /**
  20783. * Array of layer definition expressions that allows you to filter the features of individual layers in the exported map image.
  20784. *
  20785. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageParameters.html#layerDefinitions)
  20786. */
  20787. layerDefinitions: string[];
  20788. /**
  20789. * A list of layer IDs, that represent which layers to include in the exported map.
  20790. *
  20791. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageParameters.html#layerIds)
  20792. */
  20793. layerIds: number[];
  20794. /**
  20795. * The option for displaying or hiding the layer.
  20796. *
  20797. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageParameters.html#layerOption)
  20798. */
  20799. layerOption: "show" | "hide" | "include" | "exclude";
  20800. /**
  20801. * Indicates whether or not the background of the dynamic image is transparent.
  20802. *
  20803. * @default true
  20804. *
  20805. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageParameters.html#transparent)
  20806. */
  20807. transparent: boolean;
  20808. /**
  20809. * Requested image width in pixels.
  20810. *
  20811. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageParameters.html#width)
  20812. */
  20813. width: number;
  20814. constructor(properties?: ImageParametersProperties);
  20815. /**
  20816. * Converts an instance of this class to its ArcGIS portal JSON representation.
  20817. *
  20818. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageParameters.html#toJSON)
  20819. */
  20820. toJSON(): any;
  20821. }
  20822. /** @deprecated Import the ImageParameters class instead. */
  20823. export type ImageParametersConstructor = typeof ImageParameters;
  20824. interface ImageParametersProperties {
  20825. /**
  20826. * Dots per inch setting for an [MapImageLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html).
  20827. *
  20828. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageParameters.html#dpi)
  20829. */
  20830. dpi?: number;
  20831. /**
  20832. * Extent of map to be exported.
  20833. *
  20834. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageParameters.html#extent)
  20835. */
  20836. extent?: ExtentProperties;
  20837. /**
  20838. * Map image format.
  20839. *
  20840. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageParameters.html#format)
  20841. */
  20842. format?: "png" | "png8" | "png24" | "png32" | "jpg" | "pdf" | "bmp" | "gif" | "svg";
  20843. /**
  20844. * Requested image height in pixels.
  20845. *
  20846. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageParameters.html#height)
  20847. */
  20848. height?: number;
  20849. /**
  20850. * Spatial reference of exported map.
  20851. *
  20852. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageParameters.html#imageSpatialReference)
  20853. */
  20854. imageSpatialReference?: SpatialReferenceProperties;
  20855. /**
  20856. * Array of layer definition expressions that allows you to filter the features of individual layers in the exported map image.
  20857. *
  20858. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageParameters.html#layerDefinitions)
  20859. */
  20860. layerDefinitions?: string[];
  20861. /**
  20862. * A list of layer IDs, that represent which layers to include in the exported map.
  20863. *
  20864. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageParameters.html#layerIds)
  20865. */
  20866. layerIds?: number[];
  20867. /**
  20868. * The option for displaying or hiding the layer.
  20869. *
  20870. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageParameters.html#layerOption)
  20871. */
  20872. layerOption?: "show" | "hide" | "include" | "exclude";
  20873. /**
  20874. * Indicates whether or not the background of the dynamic image is transparent.
  20875. *
  20876. * @default true
  20877. *
  20878. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageParameters.html#transparent)
  20879. */
  20880. transparent?: boolean;
  20881. /**
  20882. * Requested image width in pixels.
  20883. *
  20884. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageParameters.html#width)
  20885. */
  20886. width?: number;
  20887. }
  20888. export class InheritedDomain extends Domain {
  20889. /**
  20890. * The domain type.
  20891. *
  20892. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-InheritedDomain.html#type)
  20893. */
  20894. readonly type: "inherited";
  20895. /**
  20896. * This is a subclass of [Domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Domain.html).
  20897. *
  20898. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-InheritedDomain.html)
  20899. */
  20900. constructor(properties?: InheritedDomainProperties);
  20901. static fromJSON(json: any): InheritedDomain;
  20902. }
  20903. /** @deprecated Import the InheritedDomain class instead. */
  20904. export type InheritedDomainConstructor = typeof InheritedDomain;
  20905. interface InheritedDomainProperties extends DomainProperties {
  20906. }
  20907. export interface KMLSublayer extends Accessor, JSONSupport {
  20908. }
  20909. export class KMLSublayer {
  20910. /**
  20911. * Description for the KML sublayer.
  20912. *
  20913. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-KMLSublayer.html#description)
  20914. */
  20915. description: string;
  20916. /**
  20917. * The id for the KML sublayer.
  20918. *
  20919. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-KMLSublayer.html#id)
  20920. */
  20921. id: number;
  20922. /**
  20923. * The [KMLLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-KMLLayer.html) to which the sublayer belongs.
  20924. *
  20925. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-KMLSublayer.html#layer)
  20926. */
  20927. layer: KMLLayer;
  20928. /**
  20929. * Network link info for the current layer.
  20930. *
  20931. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-KMLSublayer.html#networkLink)
  20932. */
  20933. networkLink: any;
  20934. /**
  20935. * The raw KML data for this sublayer, in JSON format, as returned by the [KML utility service](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#kmlServiceUrl).
  20936. *
  20937. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-KMLSublayer.html#sourceJSON)
  20938. */
  20939. sourceJSON: any;
  20940. /**
  20941. * A collection of [KMLSublayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-KMLSublayer.html).
  20942. *
  20943. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-KMLSublayer.html#sublayers)
  20944. */
  20945. sublayers: Collection<KMLSublayer>;
  20946. /**
  20947. * The title of the KML sublayer used to identify it in places such as the [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html) and [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) widgets.
  20948. *
  20949. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-KMLSublayer.html#title)
  20950. */
  20951. title: string;
  20952. /**
  20953. * Indicates if the sublayer is visible in the view.
  20954. *
  20955. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-KMLSublayer.html#visible)
  20956. */
  20957. visible: boolean;
  20958. /**
  20959. * Represents a sublayer in a [KMLLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-KMLLayer.html).
  20960. *
  20961. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-KMLSublayer.html)
  20962. */
  20963. constructor(properties?: KMLSublayerProperties);
  20964. static fromJSON(json: any): KMLSublayer;
  20965. }
  20966. /** @deprecated Import the KMLSublayer class instead. */
  20967. export type KMLSublayerConstructor = typeof KMLSublayer;
  20968. interface KMLSublayerProperties {
  20969. /**
  20970. * Description for the KML sublayer.
  20971. *
  20972. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-KMLSublayer.html#description)
  20973. */
  20974. description?: string;
  20975. /**
  20976. * The id for the KML sublayer.
  20977. *
  20978. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-KMLSublayer.html#id)
  20979. */
  20980. id?: number;
  20981. /**
  20982. * The [KMLLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-KMLLayer.html) to which the sublayer belongs.
  20983. *
  20984. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-KMLSublayer.html#layer)
  20985. */
  20986. layer?: KMLLayerProperties;
  20987. /**
  20988. * Network link info for the current layer.
  20989. *
  20990. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-KMLSublayer.html#networkLink)
  20991. */
  20992. networkLink?: any;
  20993. /**
  20994. * The raw KML data for this sublayer, in JSON format, as returned by the [KML utility service](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#kmlServiceUrl).
  20995. *
  20996. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-KMLSublayer.html#sourceJSON)
  20997. */
  20998. sourceJSON?: any;
  20999. /**
  21000. * A collection of [KMLSublayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-KMLSublayer.html).
  21001. *
  21002. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-KMLSublayer.html#sublayers)
  21003. */
  21004. sublayers?: CollectionProperties<KMLSublayerProperties>;
  21005. /**
  21006. * The title of the KML sublayer used to identify it in places such as the [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html) and [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) widgets.
  21007. *
  21008. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-KMLSublayer.html#title)
  21009. */
  21010. title?: string;
  21011. /**
  21012. * Indicates if the sublayer is visible in the view.
  21013. *
  21014. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-KMLSublayer.html#visible)
  21015. */
  21016. visible?: boolean;
  21017. }
  21018. export interface LabelClass extends Accessor, JSONSupport {
  21019. }
  21020. export class LabelClass {
  21021. /**
  21022. * Specifies whether or not a polyline label can overrun the feature being labeled.
  21023. *
  21024. * @default false
  21025. *
  21026. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#allowOverrun)
  21027. */
  21028. allowOverrun: boolean;
  21029. /**
  21030. * Defines how labels should be placed relative to one another.
  21031. *
  21032. * @default static
  21033. *
  21034. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#deconflictionStrategy)
  21035. */
  21036. deconflictionStrategy: "none" | "static";
  21037. /**
  21038. * Defines the labels for a [MapImageLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html).
  21039. *
  21040. * @default null
  21041. *
  21042. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#labelExpression)
  21043. */
  21044. labelExpression: string;
  21045. /**
  21046. * Defines the labels for a [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
  21047. *
  21048. * @default null
  21049. *
  21050. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#labelExpressionInfo)
  21051. */
  21052. labelExpressionInfo: LabelClassLabelExpressionInfo;
  21053. /**
  21054. * The position of the label.
  21055. *
  21056. * @default null
  21057. *
  21058. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#labelPlacement)
  21059. */
  21060. labelPlacement: | "above-center"
  21061. | "above-left"
  21062. | "above-right"
  21063. | "below-center"
  21064. | "below-left"
  21065. | "below-right"
  21066. | "center-center"
  21067. | "center-left"
  21068. | "center-right"
  21069. | "above-after"
  21070. | "above-along"
  21071. | "above-before"
  21072. | "above-start"
  21073. | "above-end"
  21074. | "below-after"
  21075. | "below-along"
  21076. | "below-before"
  21077. | "below-start"
  21078. | "below-end"
  21079. | "center-after"
  21080. | "center-along"
  21081. | "center-before"
  21082. | "center-start"
  21083. | "center-end"
  21084. | "always-horizontal";
  21085. /**
  21086. * Specifies the orientation of the label position of a polyline label.
  21087. *
  21088. * @default "curved"
  21089. *
  21090. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#labelPosition)
  21091. */
  21092. labelPosition: "curved" | "parallel";
  21093. /**
  21094. * The maximum scale (most zoomed in) at which labels are visible in the view.
  21095. *
  21096. * @default 0
  21097. *
  21098. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#maxScale)
  21099. */
  21100. maxScale: number;
  21101. /**
  21102. * The minimum scale (most zoomed out) at which labels are visible in the view.
  21103. *
  21104. * @default 0
  21105. *
  21106. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#minScale)
  21107. */
  21108. minScale: number;
  21109. /**
  21110. * Indicates whether or not to repeat the label along the polyline feature.
  21111. *
  21112. * @default true
  21113. *
  21114. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#repeatLabel)
  21115. */
  21116. repeatLabel: boolean;
  21117. /**
  21118. * The size in points of the distance between labels on a polyline.
  21119. *
  21120. * @default null
  21121. *
  21122. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#repeatLabelDistance)
  21123. */
  21124. repeatLabelDistance: number;
  21125. /**
  21126. * Defines the symbol used for rendering the label.
  21127. *
  21128. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#symbol)
  21129. */
  21130. symbol: TextSymbol | LabelSymbol3D;
  21131. /**
  21132. * Indicates whether to use domain names if the fields in the [labelExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#labelExpression) or [labelExpressionInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#labelExpressionInfo) have domains.
  21133. *
  21134. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#useCodedValues)
  21135. */
  21136. useCodedValues: boolean;
  21137. /**
  21138. * A SQL where clause used to determine the features to which the label class should be applied.
  21139. *
  21140. * @default null
  21141. *
  21142. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#where)
  21143. */
  21144. where: string;
  21145. /**
  21146. * Defines label expressions, symbols, scale ranges, label priorities, and label placement options for labels on a layer.
  21147. *
  21148. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html)
  21149. */
  21150. constructor(properties?: LabelClassProperties);
  21151. /**
  21152. * Creates a deep clone of the LabelClass.
  21153. *
  21154. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#clone)
  21155. */
  21156. clone(): LabelClass;
  21157. static fromJSON(json: any): LabelClass;
  21158. }
  21159. /** @deprecated Import the LabelClass class instead. */
  21160. export type LabelClassConstructor = typeof LabelClass;
  21161. interface LabelClassProperties {
  21162. /**
  21163. * Specifies whether or not a polyline label can overrun the feature being labeled.
  21164. *
  21165. * @default false
  21166. *
  21167. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#allowOverrun)
  21168. */
  21169. allowOverrun?: boolean;
  21170. /**
  21171. * Defines how labels should be placed relative to one another.
  21172. *
  21173. * @default static
  21174. *
  21175. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#deconflictionStrategy)
  21176. */
  21177. deconflictionStrategy?: "none" | "static";
  21178. /**
  21179. * Defines the labels for a [MapImageLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html).
  21180. *
  21181. * @default null
  21182. *
  21183. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#labelExpression)
  21184. */
  21185. labelExpression?: string;
  21186. /**
  21187. * Defines the labels for a [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
  21188. *
  21189. * @default null
  21190. *
  21191. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#labelExpressionInfo)
  21192. */
  21193. labelExpressionInfo?: LabelClassLabelExpressionInfo;
  21194. /**
  21195. * The position of the label.
  21196. *
  21197. * @default null
  21198. *
  21199. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#labelPlacement)
  21200. */
  21201. labelPlacement?: | "above-center"
  21202. | "above-left"
  21203. | "above-right"
  21204. | "below-center"
  21205. | "below-left"
  21206. | "below-right"
  21207. | "center-center"
  21208. | "center-left"
  21209. | "center-right"
  21210. | "above-after"
  21211. | "above-along"
  21212. | "above-before"
  21213. | "above-start"
  21214. | "above-end"
  21215. | "below-after"
  21216. | "below-along"
  21217. | "below-before"
  21218. | "below-start"
  21219. | "below-end"
  21220. | "center-after"
  21221. | "center-along"
  21222. | "center-before"
  21223. | "center-start"
  21224. | "center-end"
  21225. | "always-horizontal";
  21226. /**
  21227. * Specifies the orientation of the label position of a polyline label.
  21228. *
  21229. * @default "curved"
  21230. *
  21231. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#labelPosition)
  21232. */
  21233. labelPosition?: "curved" | "parallel";
  21234. /**
  21235. * The maximum scale (most zoomed in) at which labels are visible in the view.
  21236. *
  21237. * @default 0
  21238. *
  21239. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#maxScale)
  21240. */
  21241. maxScale?: number;
  21242. /**
  21243. * The minimum scale (most zoomed out) at which labels are visible in the view.
  21244. *
  21245. * @default 0
  21246. *
  21247. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#minScale)
  21248. */
  21249. minScale?: number;
  21250. /**
  21251. * Indicates whether or not to repeat the label along the polyline feature.
  21252. *
  21253. * @default true
  21254. *
  21255. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#repeatLabel)
  21256. */
  21257. repeatLabel?: boolean;
  21258. /**
  21259. * The size in points of the distance between labels on a polyline.
  21260. *
  21261. * @default null
  21262. *
  21263. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#repeatLabelDistance)
  21264. */
  21265. repeatLabelDistance?: number | string;
  21266. /**
  21267. * Defines the symbol used for rendering the label.
  21268. *
  21269. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#symbol)
  21270. */
  21271. symbol?: (TextSymbolProperties & { type: "text" }) | (LabelSymbol3DProperties & { type: "label-3d" });
  21272. /**
  21273. * Indicates whether to use domain names if the fields in the [labelExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#labelExpression) or [labelExpressionInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#labelExpressionInfo) have domains.
  21274. *
  21275. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#useCodedValues)
  21276. */
  21277. useCodedValues?: boolean;
  21278. /**
  21279. * A SQL where clause used to determine the features to which the label class should be applied.
  21280. *
  21281. * @default null
  21282. *
  21283. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#where)
  21284. */
  21285. where?: string;
  21286. }
  21287. export interface LabelClassLabelExpressionInfo {
  21288. /**
  21289. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Labeling Profile](https://developers.arcgis.com/javascript/latest/arcade/#labeling).
  21290. *
  21291. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#labelExpressionInfo)
  21292. */
  21293. expression: string;
  21294. /**
  21295. * The title of the label expression.
  21296. *
  21297. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#labelExpressionInfo)
  21298. */
  21299. title?: string;
  21300. }
  21301. export interface LayerFloorInfo extends Accessor, JSONSupport {
  21302. }
  21303. export class LayerFloorInfo {
  21304. /**
  21305. * The field name derived from a floor-aware layer and used to filter features by floor level.
  21306. *
  21307. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LayerFloorInfo.html#floorField)
  21308. */
  21309. floorField: string;
  21310. /**
  21311. * LayerFloorInfo contains properties that allow a layer to be floor-aware.
  21312. *
  21313. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LayerFloorInfo.html)
  21314. */
  21315. constructor(properties?: LayerFloorInfoProperties);
  21316. /**
  21317. * Creates a deep clone of LayerFloorInfo object.
  21318. *
  21319. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LayerFloorInfo.html#clone)
  21320. */
  21321. clone(): LayerFloorInfo;
  21322. static fromJSON(json: any): LayerFloorInfo;
  21323. }
  21324. /** @deprecated Import the LayerFloorInfo class instead. */
  21325. export type LayerFloorInfoConstructor = typeof LayerFloorInfo;
  21326. interface LayerFloorInfoProperties {
  21327. /**
  21328. * The field name derived from a floor-aware layer and used to filter features by floor level.
  21329. *
  21330. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LayerFloorInfo.html#floorField)
  21331. */
  21332. floorField?: string;
  21333. }
  21334. export interface LevelLayerInfo extends Accessor, JSONSupport {
  21335. }
  21336. export class LevelLayerInfo {
  21337. /**
  21338. * The field name from the layer that defines the unique ID of a feature's associated facility.
  21339. *
  21340. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LevelLayerInfo.html#facilityIdField)
  21341. */
  21342. facilityIdField: string;
  21343. /**
  21344. * The id for an operational layer in the map.
  21345. *
  21346. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LevelLayerInfo.html#layerId)
  21347. */
  21348. layerId: string;
  21349. /**
  21350. * The field name from the layer that defines a unique ID for the feature.
  21351. *
  21352. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LevelLayerInfo.html#levelIdField)
  21353. */
  21354. levelIdField: string;
  21355. /**
  21356. * The field name from the layer that defines the level floor number in a particular facility.
  21357. *
  21358. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LevelLayerInfo.html#levelNumberField)
  21359. */
  21360. levelNumberField: string;
  21361. /**
  21362. * The field name from the layer that defines the level name of a feature.
  21363. *
  21364. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LevelLayerInfo.html#longNameField)
  21365. */
  21366. longNameField: string;
  21367. /**
  21368. * The field name from the layer that defines the level short name of a feature.
  21369. *
  21370. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LevelLayerInfo.html#shortNameField)
  21371. */
  21372. shortNameField: string;
  21373. /**
  21374. * This value references the numeric ID of the sublayer if the Level layer is a map service sublayer instead of a feature layer.
  21375. *
  21376. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LevelLayerInfo.html#sublayerId)
  21377. */
  21378. sublayerId: number;
  21379. /**
  21380. * The field name from the layer that defines the order of display and reference to floors in the [Indoor Positioning System](https://doc.arcgis.com/en/indoors/android/configure-indoor-positioning.htm).
  21381. *
  21382. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LevelLayerInfo.html#verticalOrderField)
  21383. */
  21384. verticalOrderField: string;
  21385. /**
  21386. * The LevelLayerInfo class describes the footprint of each occupiable floor contained in a managed facility.
  21387. *
  21388. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LevelLayerInfo.html)
  21389. */
  21390. constructor(properties?: LevelLayerInfoProperties);
  21391. static fromJSON(json: any): LevelLayerInfo;
  21392. }
  21393. /** @deprecated Import the LevelLayerInfo class instead. */
  21394. export type LevelLayerInfoConstructor = typeof LevelLayerInfo;
  21395. interface LevelLayerInfoProperties {
  21396. /**
  21397. * The field name from the layer that defines the unique ID of a feature's associated facility.
  21398. *
  21399. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LevelLayerInfo.html#facilityIdField)
  21400. */
  21401. facilityIdField?: string;
  21402. /**
  21403. * The id for an operational layer in the map.
  21404. *
  21405. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LevelLayerInfo.html#layerId)
  21406. */
  21407. layerId?: string;
  21408. /**
  21409. * The field name from the layer that defines a unique ID for the feature.
  21410. *
  21411. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LevelLayerInfo.html#levelIdField)
  21412. */
  21413. levelIdField?: string;
  21414. /**
  21415. * The field name from the layer that defines the level floor number in a particular facility.
  21416. *
  21417. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LevelLayerInfo.html#levelNumberField)
  21418. */
  21419. levelNumberField?: string;
  21420. /**
  21421. * The field name from the layer that defines the level name of a feature.
  21422. *
  21423. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LevelLayerInfo.html#longNameField)
  21424. */
  21425. longNameField?: string;
  21426. /**
  21427. * The field name from the layer that defines the level short name of a feature.
  21428. *
  21429. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LevelLayerInfo.html#shortNameField)
  21430. */
  21431. shortNameField?: string;
  21432. /**
  21433. * This value references the numeric ID of the sublayer if the Level layer is a map service sublayer instead of a feature layer.
  21434. *
  21435. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LevelLayerInfo.html#sublayerId)
  21436. */
  21437. sublayerId?: number;
  21438. /**
  21439. * The field name from the layer that defines the order of display and reference to floors in the [Indoor Positioning System](https://doc.arcgis.com/en/indoors/android/configure-indoor-positioning.htm).
  21440. *
  21441. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LevelLayerInfo.html#verticalOrderField)
  21442. */
  21443. verticalOrderField?: string;
  21444. }
  21445. export class LocalMediaElementSource extends Accessor {
  21446. /**
  21447. * [Image](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageElement.html) and [video](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VideoElement.html) elements referenced in the [MediaLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html).
  21448. *
  21449. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LocalMediaElementSource.html#elements)
  21450. */
  21451. elements: Collection<MediaElement>;
  21452. /**
  21453. * The LocalMediaElementSource is the default [source](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html#source) for the MediaLayer.
  21454. *
  21455. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LocalMediaElementSource.html)
  21456. */
  21457. constructor(properties?: LocalMediaElementSourceProperties);
  21458. }
  21459. /** @deprecated Import the LocalMediaElementSource class instead. */
  21460. export type LocalMediaElementSourceConstructor = typeof LocalMediaElementSource;
  21461. interface LocalMediaElementSourceProperties {
  21462. /**
  21463. * [Image](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-ImageElement.html) and [video](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VideoElement.html) elements referenced in the [MediaLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html).
  21464. *
  21465. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LocalMediaElementSource.html#elements)
  21466. */
  21467. elements?: CollectionProperties<
  21468. (ImageElementProperties & { type: "image" }) | (VideoElementProperties & { type: "video" })
  21469. >;
  21470. }
  21471. /**
  21472. * Image and video elements referenced in the MediaLayer.
  21473. *
  21474. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LocalMediaElementSource.html#MediaElement)
  21475. */
  21476. export type MediaElement = ImageElement | VideoElement;
  21477. export interface LOD extends Accessor, JSONSupport {
  21478. }
  21479. export class LOD {
  21480. /**
  21481. * ID for each level.
  21482. *
  21483. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LOD.html#level)
  21484. */
  21485. level: number;
  21486. /**
  21487. * String to be used when constructing a URL to access a tile from this LOD.
  21488. *
  21489. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LOD.html#levelValue)
  21490. */
  21491. levelValue: string;
  21492. /**
  21493. * Resolution in map units of each pixel in a tile for each level.
  21494. *
  21495. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LOD.html#resolution)
  21496. */
  21497. resolution: number;
  21498. /**
  21499. * Scale for each level.
  21500. *
  21501. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LOD.html#scale)
  21502. */
  21503. scale: number;
  21504. /**
  21505. * A [TileLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html) has a number of LODs (Levels of Detail).
  21506. *
  21507. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LOD.html)
  21508. */
  21509. constructor(properties?: LODProperties);
  21510. static fromJSON(json: any): LOD;
  21511. }
  21512. /** @deprecated Import the LOD class instead. */
  21513. export type LODConstructor = typeof LOD;
  21514. interface LODProperties {
  21515. /**
  21516. * ID for each level.
  21517. *
  21518. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LOD.html#level)
  21519. */
  21520. level?: number;
  21521. /**
  21522. * String to be used when constructing a URL to access a tile from this LOD.
  21523. *
  21524. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LOD.html#levelValue)
  21525. */
  21526. levelValue?: string;
  21527. /**
  21528. * Resolution in map units of each pixel in a tile for each level.
  21529. *
  21530. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LOD.html#resolution)
  21531. */
  21532. resolution?: number;
  21533. /**
  21534. * Scale for each level.
  21535. *
  21536. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LOD.html#scale)
  21537. */
  21538. scale?: number;
  21539. }
  21540. export interface MapImage extends Accessor, JSONSupport {
  21541. }
  21542. export class MapImage {
  21543. /**
  21544. * The extent of the exported map.
  21545. *
  21546. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MapImage.html#extent)
  21547. */
  21548. extent: Extent;
  21549. /**
  21550. * The requested image height in pixels.
  21551. *
  21552. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MapImage.html#height)
  21553. */
  21554. height: number;
  21555. /**
  21556. * URL to the returned image.
  21557. *
  21558. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MapImage.html#href)
  21559. */
  21560. href: "gif" | "jpg" | "png" | "bmp";
  21561. /**
  21562. * The opacity of the image.
  21563. *
  21564. * @default 1
  21565. *
  21566. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MapImage.html#opacity)
  21567. */
  21568. opacity: number;
  21569. /**
  21570. * Scale of the requested dynamic map.
  21571. *
  21572. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MapImage.html#scale)
  21573. */
  21574. scale: number;
  21575. /**
  21576. * Indicates if the requested image is visible in the view.
  21577. *
  21578. * @default true
  21579. *
  21580. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MapImage.html#visible)
  21581. */
  21582. visible: boolean;
  21583. /**
  21584. * The requested image width in pixels.
  21585. *
  21586. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MapImage.html#width)
  21587. */
  21588. width: number;
  21589. /**
  21590. * Represents the data object for the dynamically generated map.
  21591. *
  21592. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MapImage.html)
  21593. */
  21594. constructor(properties?: MapImageProperties);
  21595. static fromJSON(json: any): MapImage;
  21596. }
  21597. /** @deprecated Import the MapImage class instead. */
  21598. export type MapImageConstructor = typeof MapImage;
  21599. interface MapImageProperties {
  21600. /**
  21601. * The extent of the exported map.
  21602. *
  21603. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MapImage.html#extent)
  21604. */
  21605. extent?: ExtentProperties;
  21606. /**
  21607. * The requested image height in pixels.
  21608. *
  21609. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MapImage.html#height)
  21610. */
  21611. height?: number;
  21612. /**
  21613. * URL to the returned image.
  21614. *
  21615. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MapImage.html#href)
  21616. */
  21617. href?: "gif" | "jpg" | "png" | "bmp";
  21618. /**
  21619. * The opacity of the image.
  21620. *
  21621. * @default 1
  21622. *
  21623. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MapImage.html#opacity)
  21624. */
  21625. opacity?: number;
  21626. /**
  21627. * Scale of the requested dynamic map.
  21628. *
  21629. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MapImage.html#scale)
  21630. */
  21631. scale?: number;
  21632. /**
  21633. * Indicates if the requested image is visible in the view.
  21634. *
  21635. * @default true
  21636. *
  21637. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MapImage.html#visible)
  21638. */
  21639. visible?: boolean;
  21640. /**
  21641. * The requested image width in pixels.
  21642. *
  21643. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MapImage.html#width)
  21644. */
  21645. width?: number;
  21646. }
  21647. export class MediaElementBase {
  21648. /**
  21649. * The geographic location of the image or video element to be placed on the map.
  21650. *
  21651. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MediaElementBase.html#georeference)
  21652. */
  21653. georeference: ExtentAndRotationGeoreference | CornersGeoreference | ControlPointsGeoreference;
  21654. /**
  21655. * The opacity of the element.
  21656. *
  21657. * @default 1
  21658. *
  21659. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MediaElementBase.html#opacity)
  21660. */
  21661. opacity: number;
  21662. }
  21663. interface MediaElementBaseProperties {
  21664. /**
  21665. * The geographic location of the image or video element to be placed on the map.
  21666. *
  21667. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MediaElementBase.html#georeference)
  21668. */
  21669. georeference?: | (ExtentAndRotationGeoreferenceProperties & { type: "extent-and-rotation" })
  21670. | (CornersGeoreferenceProperties & { type: "corners" })
  21671. | (ControlPointsGeoreferenceProperties & { type: "control-points" });
  21672. /**
  21673. * The opacity of the element.
  21674. *
  21675. * @default 1
  21676. *
  21677. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MediaElementBase.html#opacity)
  21678. */
  21679. opacity?: number;
  21680. }
  21681. export interface MosaicRule extends Accessor, JSONSupport {
  21682. }
  21683. export class MosaicRule {
  21684. /**
  21685. * Indicates whether the sort should be ascending.
  21686. *
  21687. * @default true
  21688. *
  21689. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html#ascending)
  21690. */
  21691. ascending: boolean;
  21692. /**
  21693. * The rendering rule applied on items before mosaicking.
  21694. *
  21695. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html#itemRenderingRule)
  21696. */
  21697. itemRenderingRule: RasterFunction;
  21698. /**
  21699. * An array of raster Ids.
  21700. *
  21701. * @default null
  21702. *
  21703. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html#lockRasterIds)
  21704. */
  21705. lockRasterIds: number[];
  21706. /**
  21707. * The mosaic method determines how the selected rasters are ordered.
  21708. *
  21709. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html#method)
  21710. */
  21711. method: "none" | "center" | "nadir" | "viewpoint" | "attribute" | "lock-raster" | "northwest" | "seamline";
  21712. /**
  21713. * The multidimensional definitions associated with the [ImageryLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#mosaicRule).
  21714. *
  21715. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html#multidimensionalDefinition)
  21716. */
  21717. multidimensionalDefinition: DimensionalDefinition[];
  21718. /**
  21719. * Defines a selection using a set of ObjectIDs.
  21720. *
  21721. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html#objectIds)
  21722. */
  21723. objectIds: number[];
  21724. /**
  21725. * Defines the mosaic operation used to resolve overlapping pixels.
  21726. *
  21727. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html#operation)
  21728. */
  21729. operation: "first" | "last" | "min" | "max" | "mean" | "blend" | "sum";
  21730. /**
  21731. * The name of the attribute field that is used with a constant sortValue to define the mosaicking order when the mosaic [method](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html#method) is set to `attribute`.
  21732. *
  21733. * @default null
  21734. *
  21735. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html#sortField)
  21736. */
  21737. sortField: string;
  21738. /**
  21739. * A constant value defining a reference or base value for the sort field when the mosaic [method](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html#method) is set to `attribute`.
  21740. *
  21741. * @default null
  21742. *
  21743. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html#sortValue)
  21744. */
  21745. sortValue: string | number;
  21746. /**
  21747. * Defines the viewpoint location on which the ordering is defined based on the distance from the viewpoint and the nadir of rasters.
  21748. *
  21749. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html#viewpoint)
  21750. */
  21751. viewpoint: Point;
  21752. /**
  21753. * The where clause determines which rasters will participate in the mosaic.
  21754. *
  21755. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html#where)
  21756. */
  21757. where: string;
  21758. /**
  21759. * Specifies the mosaic rule when defining how individual images should be mosaicked.
  21760. *
  21761. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html)
  21762. */
  21763. constructor(properties?: MosaicRuleProperties);
  21764. /**
  21765. * Creates a clone of the MosaicRule object.
  21766. *
  21767. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html#clone)
  21768. */
  21769. clone(): MosaicRule;
  21770. static fromJSON(json: any): MosaicRule;
  21771. }
  21772. /** @deprecated Import the MosaicRule class instead. */
  21773. export type MosaicRuleConstructor = typeof MosaicRule;
  21774. interface MosaicRuleProperties {
  21775. /**
  21776. * Indicates whether the sort should be ascending.
  21777. *
  21778. * @default true
  21779. *
  21780. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html#ascending)
  21781. */
  21782. ascending?: boolean;
  21783. /**
  21784. * The rendering rule applied on items before mosaicking.
  21785. *
  21786. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html#itemRenderingRule)
  21787. */
  21788. itemRenderingRule?: RasterFunctionProperties;
  21789. /**
  21790. * An array of raster Ids.
  21791. *
  21792. * @default null
  21793. *
  21794. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html#lockRasterIds)
  21795. */
  21796. lockRasterIds?: number[];
  21797. /**
  21798. * The mosaic method determines how the selected rasters are ordered.
  21799. *
  21800. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html#method)
  21801. */
  21802. method?: "none" | "center" | "nadir" | "viewpoint" | "attribute" | "lock-raster" | "northwest" | "seamline";
  21803. /**
  21804. * The multidimensional definitions associated with the [ImageryLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#mosaicRule).
  21805. *
  21806. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html#multidimensionalDefinition)
  21807. */
  21808. multidimensionalDefinition?: DimensionalDefinitionProperties[];
  21809. /**
  21810. * Defines a selection using a set of ObjectIDs.
  21811. *
  21812. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html#objectIds)
  21813. */
  21814. objectIds?: number[];
  21815. /**
  21816. * Defines the mosaic operation used to resolve overlapping pixels.
  21817. *
  21818. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html#operation)
  21819. */
  21820. operation?: "first" | "last" | "min" | "max" | "mean" | "blend" | "sum";
  21821. /**
  21822. * The name of the attribute field that is used with a constant sortValue to define the mosaicking order when the mosaic [method](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html#method) is set to `attribute`.
  21823. *
  21824. * @default null
  21825. *
  21826. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html#sortField)
  21827. */
  21828. sortField?: string;
  21829. /**
  21830. * A constant value defining a reference or base value for the sort field when the mosaic [method](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html#method) is set to `attribute`.
  21831. *
  21832. * @default null
  21833. *
  21834. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html#sortValue)
  21835. */
  21836. sortValue?: string | number;
  21837. /**
  21838. * Defines the viewpoint location on which the ordering is defined based on the distance from the viewpoint and the nadir of rasters.
  21839. *
  21840. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html#viewpoint)
  21841. */
  21842. viewpoint?: PointProperties;
  21843. /**
  21844. * The where clause determines which rasters will participate in the mosaic.
  21845. *
  21846. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html#where)
  21847. */
  21848. where?: string;
  21849. }
  21850. export interface MultidimensionalSubset extends Accessor, JSONSupport {
  21851. }
  21852. export class MultidimensionalSubset {
  21853. /**
  21854. * The spatial area of interest.
  21855. *
  21856. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MultidimensionalSubset.html#areaOfInterest)
  21857. */
  21858. areaOfInterest: Extent | Polygon;
  21859. /**
  21860. * The aggregated dimension names and their extents or ranges computed from the [subsetDefinitions](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MultidimensionalSubset.html#subsetDefinitions).
  21861. *
  21862. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MultidimensionalSubset.html#dimensions)
  21863. */
  21864. readonly dimensions: SubsetDimension[];
  21865. /**
  21866. * The variable and dimension subset definitions to set the layer.
  21867. *
  21868. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MultidimensionalSubset.html#subsetDefinitions)
  21869. */
  21870. subsetDefinitions: DimensionalDefinition[];
  21871. /**
  21872. * The aggregated variables list computed from the [subsetDefinitions](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MultidimensionalSubset.html#subsetDefinitions).
  21873. *
  21874. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MultidimensionalSubset.html#variables)
  21875. */
  21876. readonly variables: string[];
  21877. /**
  21878. * A subset of multidimensional raster data created by slicing the data along defined variables and dimensions.
  21879. *
  21880. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MultidimensionalSubset.html)
  21881. */
  21882. constructor(properties?: MultidimensionalSubsetProperties);
  21883. /**
  21884. * Creates a deep clone of the MultidimensionalSubset object.
  21885. *
  21886. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MultidimensionalSubset.html#clone)
  21887. */
  21888. clone(): MultidimensionalSubset;
  21889. static fromJSON(json: any): MultidimensionalSubset;
  21890. }
  21891. /** @deprecated Import the MultidimensionalSubset class instead. */
  21892. export type MultidimensionalSubsetConstructor = typeof MultidimensionalSubset;
  21893. interface MultidimensionalSubsetProperties {
  21894. /**
  21895. * The spatial area of interest.
  21896. *
  21897. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MultidimensionalSubset.html#areaOfInterest)
  21898. */
  21899. areaOfInterest?: (ExtentProperties & { type: "extent" }) | (PolygonProperties & { type: "polygon" });
  21900. /**
  21901. * The variable and dimension subset definitions to set the layer.
  21902. *
  21903. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MultidimensionalSubset.html#subsetDefinitions)
  21904. */
  21905. subsetDefinitions?: DimensionalDefinitionProperties[];
  21906. }
  21907. /**
  21908. * Dimension name and its extent or range computed from the [subsetDefinitions](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MultidimensionalSubset.html#subsetDefinitions) and it is added to [dimensions](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MultidimensionalSubset.html#dimensions).
  21909. *
  21910. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MultidimensionalSubset.html#SubsetDimension)
  21911. */
  21912. export interface SubsetDimension {
  21913. /**
  21914. * The dimension name.
  21915. *
  21916. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MultidimensionalSubset.html#SubsetDimension)
  21917. */
  21918. name: string;
  21919. /**
  21920. * The computed extent or ranges for the given dimension.
  21921. *
  21922. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MultidimensionalSubset.html#SubsetDimension)
  21923. */
  21924. extent: number[];
  21925. }
  21926. export class PixelBlock extends Accessor {
  21927. /**
  21928. * The height (or number of rows) of the PixelBlock in pixels.
  21929. *
  21930. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#height)
  21931. */
  21932. height: number;
  21933. /**
  21934. * An array of nodata mask.
  21935. *
  21936. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#mask)
  21937. */
  21938. mask: number[] | Uint8Array;
  21939. /**
  21940. * Indicates whether mask should be used as alpha values.
  21941. *
  21942. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#maskIsAlpha)
  21943. */
  21944. maskIsAlpha: boolean;
  21945. /**
  21946. * A two dimensional array representing the pixels from the Image Service displayed on the client.
  21947. *
  21948. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#pixels)
  21949. */
  21950. pixels: | number[][]
  21951. | Int8Array[]
  21952. | Uint8Array[]
  21953. | Uint8ClampedArray[]
  21954. | Int16Array[]
  21955. | Uint16Array[]
  21956. | Int32Array[]
  21957. | Uint32Array[]
  21958. | Float32Array[]
  21959. | Float64Array[];
  21960. /**
  21961. * The pixel type.
  21962. *
  21963. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#pixelType)
  21964. */
  21965. pixelType: "unknown" | "s8" | "s16" | "s32" | "u8" | "u16" | "u32" | "f32" | "f64";
  21966. /**
  21967. * An array of objects containing numeric statistical properties.
  21968. *
  21969. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#statistics)
  21970. */
  21971. statistics: PixelBlockStatistics[];
  21972. /**
  21973. * Number of valid pixels
  21974. *
  21975. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#validPixelCount)
  21976. */
  21977. validPixelCount: number;
  21978. /**
  21979. * The width (or number of columns) of the PixelBlock in pixels.
  21980. *
  21981. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#width)
  21982. */
  21983. width: number;
  21984. /**
  21985. * An object representing the pixel arrays in the view.
  21986. *
  21987. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html)
  21988. */
  21989. constructor(properties?: PixelBlockProperties);
  21990. /**
  21991. * Adds another plane to the PixelBlock.
  21992. *
  21993. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#addData)
  21994. */
  21995. addData(planeData: PixelBlockAddDataPlaneData): void;
  21996. /**
  21997. * Returns pixels and masks using a single array in bip format (e.g.
  21998. *
  21999. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#getAsRGBA)
  22000. */
  22001. getAsRGBA(): Uint8ClampedArray;
  22002. /**
  22003. * Similar to [getAsRGBA](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#getAsRGBA), but returns floating point data.
  22004. *
  22005. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#getAsRGBAFloat)
  22006. */
  22007. getAsRGBAFloat(): Float32Array;
  22008. /**
  22009. * Returns the plane band count of the PixelBlock.
  22010. *
  22011. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#getPlaneCount)
  22012. */
  22013. getPlaneCount(): number;
  22014. }
  22015. /** @deprecated Import the PixelBlock class instead. */
  22016. export type PixelBlockConstructor = typeof PixelBlock;
  22017. interface PixelBlockProperties {
  22018. /**
  22019. * The height (or number of rows) of the PixelBlock in pixels.
  22020. *
  22021. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#height)
  22022. */
  22023. height?: number;
  22024. /**
  22025. * An array of nodata mask.
  22026. *
  22027. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#mask)
  22028. */
  22029. mask?: number[] | Uint8Array;
  22030. /**
  22031. * Indicates whether mask should be used as alpha values.
  22032. *
  22033. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#maskIsAlpha)
  22034. */
  22035. maskIsAlpha?: boolean;
  22036. /**
  22037. * A two dimensional array representing the pixels from the Image Service displayed on the client.
  22038. *
  22039. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#pixels)
  22040. */
  22041. pixels?: | number[][]
  22042. | Int8Array[]
  22043. | Uint8Array[]
  22044. | Uint8ClampedArray[]
  22045. | Int16Array[]
  22046. | Uint16Array[]
  22047. | Int32Array[]
  22048. | Uint32Array[]
  22049. | Float32Array[]
  22050. | Float64Array[];
  22051. /**
  22052. * The pixel type.
  22053. *
  22054. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#pixelType)
  22055. */
  22056. pixelType?: "unknown" | "s8" | "s16" | "s32" | "u8" | "u16" | "u32" | "f32" | "f64";
  22057. /**
  22058. * An array of objects containing numeric statistical properties.
  22059. *
  22060. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#statistics)
  22061. */
  22062. statistics?: PixelBlockStatistics[];
  22063. /**
  22064. * Number of valid pixels
  22065. *
  22066. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#validPixelCount)
  22067. */
  22068. validPixelCount?: number;
  22069. /**
  22070. * The width (or number of columns) of the PixelBlock in pixels.
  22071. *
  22072. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#width)
  22073. */
  22074. width?: number;
  22075. }
  22076. export interface PixelBlockAddDataPlaneData {
  22077. /**
  22078. * A two dimensional array representing the pixels to add.
  22079. *
  22080. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#addData)
  22081. */
  22082. pixels: number[][];
  22083. /**
  22084. * An array of objects containing numeric statistical properties.
  22085. *
  22086. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#addData)
  22087. */
  22088. statistics: any[];
  22089. }
  22090. export interface PixelBlockStatistics {
  22091. /**
  22092. * The maximum pixel value in the [pixels](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#pixels) array.
  22093. *
  22094. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#statistics)
  22095. */
  22096. maxValue?: number;
  22097. /**
  22098. * The minimum pixel value in the [pixels](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#pixels) array.
  22099. *
  22100. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#statistics)
  22101. */
  22102. minValue?: number;
  22103. /**
  22104. * Value representing areas of no data.
  22105. *
  22106. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#statistics)
  22107. */
  22108. noDataValue?: number;
  22109. }
  22110. export class PublishingInfo extends Accessor {
  22111. /**
  22112. * Layer's publishing status while the layer is being published to the portal.
  22113. *
  22114. * @default "unknown"
  22115. *
  22116. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PublishingInfo.html#status)
  22117. */
  22118. readonly status: "unknown" | "unavailable" | "publishing" | "published";
  22119. /**
  22120. * Indicates if the layer's status is still being updated.
  22121. *
  22122. * @default false
  22123. *
  22124. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PublishingInfo.html#updating)
  22125. */
  22126. readonly updating: boolean;
  22127. /**
  22128. * This stops when the status has been determined or when the layer is destroyed.
  22129. *
  22130. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PublishingInfo.html)
  22131. */
  22132. constructor(properties?: PublishingInfoProperties);
  22133. }
  22134. /** @deprecated Import the PublishingInfo class instead. */
  22135. export type PublishingInfoConstructor = typeof PublishingInfo;
  22136. interface PublishingInfoProperties {
  22137. }
  22138. export class RangeDomain extends Domain {
  22139. /**
  22140. * The maximum valid value.
  22141. *
  22142. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RangeDomain.html#maxValue)
  22143. */
  22144. maxValue: number;
  22145. /**
  22146. * The minimum valid value.
  22147. *
  22148. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RangeDomain.html#minValue)
  22149. */
  22150. minValue: number;
  22151. /**
  22152. * The domain type.
  22153. *
  22154. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RangeDomain.html#type)
  22155. */
  22156. readonly type: "range";
  22157. /**
  22158. * Range domains specify a valid [minimum](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RangeDomain.html#minValue) and [maximum](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RangeDomain.html#maxValue) valid value that can be stored in numeric and date [fields](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#type).
  22159. *
  22160. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RangeDomain.html)
  22161. */
  22162. constructor(properties?: RangeDomainProperties);
  22163. static fromJSON(json: any): RangeDomain;
  22164. }
  22165. /** @deprecated Import the RangeDomain class instead. */
  22166. export type RangeDomainConstructor = typeof RangeDomain;
  22167. interface RangeDomainProperties extends DomainProperties {
  22168. /**
  22169. * The maximum valid value.
  22170. *
  22171. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RangeDomain.html#maxValue)
  22172. */
  22173. maxValue?: number;
  22174. /**
  22175. * The minimum valid value.
  22176. *
  22177. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RangeDomain.html#minValue)
  22178. */
  22179. minValue?: number;
  22180. }
  22181. export interface RasterFunction extends Accessor, JSONSupport {
  22182. }
  22183. export class RasterFunction {
  22184. /**
  22185. * The arguments for the raster function.
  22186. *
  22187. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterFunction.html#functionArguments)
  22188. */
  22189. functionArguments: any;
  22190. /**
  22191. * The raster function name.
  22192. *
  22193. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterFunction.html#functionName)
  22194. */
  22195. functionName: string;
  22196. /**
  22197. * Defines the pixel type of the output image.
  22198. *
  22199. * @default unknown
  22200. *
  22201. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterFunction.html#outputPixelType)
  22202. */
  22203. outputPixelType: | "c128"
  22204. | "c64"
  22205. | "f32"
  22206. | "f64"
  22207. | "s16"
  22208. | "s32"
  22209. | "s8"
  22210. | "u1"
  22211. | "u16"
  22212. | "u2"
  22213. | "u32"
  22214. | "u4"
  22215. | "u8"
  22216. | "unknown";
  22217. rasterFunctionDefinition: any;
  22218. /**
  22219. * The variable name for the raster function.
  22220. *
  22221. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterFunction.html#variableName)
  22222. */
  22223. variableName: string;
  22224. /**
  22225. * Raster functions specify processing to be done to the image service.
  22226. *
  22227. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterFunction.html)
  22228. */
  22229. constructor(properties?: RasterFunctionProperties);
  22230. static fromJSON(json: any): RasterFunction;
  22231. }
  22232. /** @deprecated Import the RasterFunction class instead. */
  22233. export type RasterFunctionConstructor = typeof RasterFunction;
  22234. interface RasterFunctionProperties {
  22235. /**
  22236. * The arguments for the raster function.
  22237. *
  22238. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterFunction.html#functionArguments)
  22239. */
  22240. functionArguments?: any;
  22241. /**
  22242. * The raster function name.
  22243. *
  22244. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterFunction.html#functionName)
  22245. */
  22246. functionName?: string;
  22247. /**
  22248. * Defines the pixel type of the output image.
  22249. *
  22250. * @default unknown
  22251. *
  22252. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterFunction.html#outputPixelType)
  22253. */
  22254. outputPixelType?: | "c128"
  22255. | "c64"
  22256. | "f32"
  22257. | "f64"
  22258. | "s16"
  22259. | "s32"
  22260. | "s8"
  22261. | "u1"
  22262. | "u16"
  22263. | "u2"
  22264. | "u32"
  22265. | "u4"
  22266. | "u8"
  22267. | "unknown";
  22268. rasterFunctionDefinition?: any;
  22269. /**
  22270. * The variable name for the raster function.
  22271. *
  22272. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterFunction.html#variableName)
  22273. */
  22274. variableName?: string;
  22275. }
  22276. export interface RasterInfo extends Accessor, JSONSupport {
  22277. }
  22278. export class RasterInfo {
  22279. /**
  22280. * The raster attribute table associated with an imagery layer.
  22281. *
  22282. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#attributeTable)
  22283. */
  22284. attributeTable: FeatureSet;
  22285. /**
  22286. * Raster band count.
  22287. *
  22288. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#bandCount)
  22289. */
  22290. bandCount: number;
  22291. /**
  22292. * Raster colormap that can be used to display the imagery layer.
  22293. *
  22294. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#colormap)
  22295. */
  22296. colormap: number[][];
  22297. /**
  22298. * Raster data type controls how the data is rendered by default.
  22299. *
  22300. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#dataType)
  22301. */
  22302. dataType: | "generic"
  22303. | "elevation"
  22304. | "thematic"
  22305. | "processed"
  22306. | "scientific"
  22307. | "vector-uv"
  22308. | "vector-u"
  22309. | "vector-v"
  22310. | "vector-magdir"
  22311. | "vector-magnitude"
  22312. | "vector-direction"
  22313. | "standard-time";
  22314. /**
  22315. * The minimum and maximum X and Y coordinates of a bounding box containing all the raster data.
  22316. *
  22317. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#extent)
  22318. */
  22319. extent: Extent;
  22320. /**
  22321. * Indicates whether the source multidimensional data has been transposed.
  22322. *
  22323. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#hasMultidimensionalTranspose)
  22324. */
  22325. hasMultidimensionalTranspose: boolean;
  22326. /**
  22327. * Raster height (row count) in pixels.
  22328. *
  22329. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#height)
  22330. */
  22331. height: number;
  22332. /**
  22333. * Raster histograms return basic name-value pairs for number of bins, min and max bounding values, counts of pixels in each bin.
  22334. *
  22335. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#histograms)
  22336. */
  22337. histograms: any[];
  22338. /**
  22339. * Raster key properties.
  22340. *
  22341. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#keyProperties)
  22342. */
  22343. keyProperties: any;
  22344. /**
  22345. * Returns the multidimensional information associated with the raster service referenced in an imagery layer.
  22346. *
  22347. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#multidimensionalInfo)
  22348. */
  22349. multidimensionalInfo: RasterMultidimensionalInfo;
  22350. /**
  22351. * The pixel value representing no available information.
  22352. *
  22353. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#noDataValue)
  22354. */
  22355. noDataValue: number | number[];
  22356. /**
  22357. * Raster pixel size.
  22358. *
  22359. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#pixelSize)
  22360. */
  22361. pixelSize: RasterInfoPixelSize;
  22362. /**
  22363. * Pixel type for the raster data source.
  22364. *
  22365. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#pixelType)
  22366. */
  22367. pixelType: "unknown" | "s8" | "s16" | "s32" | "u8" | "u16" | "u32" | "f32" | "f64";
  22368. /**
  22369. * The spatial reference of the raster.
  22370. *
  22371. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#spatialReference)
  22372. */
  22373. spatialReference: SpatialReference;
  22374. /**
  22375. * Raster band statistics.
  22376. *
  22377. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#statistics)
  22378. */
  22379. statistics: RasterInfoStatistics[];
  22380. /**
  22381. * Raster width (column count) in pixels.
  22382. *
  22383. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#width)
  22384. */
  22385. width: number;
  22386. /**
  22387. * Describes general raster data information exposed by the ArcGIS REST API for [ImageryLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html), [ImageryTileLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html) and [WCSLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html).
  22388. *
  22389. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html)
  22390. */
  22391. constructor(properties?: RasterInfoProperties);
  22392. static fromJSON(json: any): RasterInfo;
  22393. }
  22394. /** @deprecated Import the RasterInfo class instead. */
  22395. export type RasterInfoConstructor = typeof RasterInfo;
  22396. interface RasterInfoProperties {
  22397. /**
  22398. * The raster attribute table associated with an imagery layer.
  22399. *
  22400. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#attributeTable)
  22401. */
  22402. attributeTable?: FeatureSetProperties;
  22403. /**
  22404. * Raster band count.
  22405. *
  22406. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#bandCount)
  22407. */
  22408. bandCount?: number;
  22409. /**
  22410. * Raster colormap that can be used to display the imagery layer.
  22411. *
  22412. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#colormap)
  22413. */
  22414. colormap?: number[][];
  22415. /**
  22416. * Raster data type controls how the data is rendered by default.
  22417. *
  22418. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#dataType)
  22419. */
  22420. dataType?: | "generic"
  22421. | "elevation"
  22422. | "thematic"
  22423. | "processed"
  22424. | "scientific"
  22425. | "vector-uv"
  22426. | "vector-u"
  22427. | "vector-v"
  22428. | "vector-magdir"
  22429. | "vector-magnitude"
  22430. | "vector-direction"
  22431. | "standard-time";
  22432. /**
  22433. * The minimum and maximum X and Y coordinates of a bounding box containing all the raster data.
  22434. *
  22435. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#extent)
  22436. */
  22437. extent?: ExtentProperties;
  22438. /**
  22439. * Indicates whether the source multidimensional data has been transposed.
  22440. *
  22441. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#hasMultidimensionalTranspose)
  22442. */
  22443. hasMultidimensionalTranspose?: boolean;
  22444. /**
  22445. * Raster height (row count) in pixels.
  22446. *
  22447. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#height)
  22448. */
  22449. height?: number;
  22450. /**
  22451. * Raster histograms return basic name-value pairs for number of bins, min and max bounding values, counts of pixels in each bin.
  22452. *
  22453. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#histograms)
  22454. */
  22455. histograms?: any[];
  22456. /**
  22457. * Raster key properties.
  22458. *
  22459. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#keyProperties)
  22460. */
  22461. keyProperties?: any;
  22462. /**
  22463. * Returns the multidimensional information associated with the raster service referenced in an imagery layer.
  22464. *
  22465. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#multidimensionalInfo)
  22466. */
  22467. multidimensionalInfo?: RasterMultidimensionalInfo;
  22468. /**
  22469. * The pixel value representing no available information.
  22470. *
  22471. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#noDataValue)
  22472. */
  22473. noDataValue?: number | number[];
  22474. /**
  22475. * Raster pixel size.
  22476. *
  22477. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#pixelSize)
  22478. */
  22479. pixelSize?: RasterInfoPixelSize;
  22480. /**
  22481. * Pixel type for the raster data source.
  22482. *
  22483. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#pixelType)
  22484. */
  22485. pixelType?: "unknown" | "s8" | "s16" | "s32" | "u8" | "u16" | "u32" | "f32" | "f64";
  22486. /**
  22487. * The spatial reference of the raster.
  22488. *
  22489. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#spatialReference)
  22490. */
  22491. spatialReference?: SpatialReferenceProperties;
  22492. /**
  22493. * Raster band statistics.
  22494. *
  22495. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#statistics)
  22496. */
  22497. statistics?: RasterInfoStatistics[];
  22498. /**
  22499. * Raster width (column count) in pixels.
  22500. *
  22501. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#width)
  22502. */
  22503. width?: number;
  22504. }
  22505. export interface RasterInfoPixelSize {
  22506. /**
  22507. * Pixel size along the x axis.
  22508. *
  22509. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#pixelSize)
  22510. */
  22511. x: number;
  22512. /**
  22513. * Pixel size along the y axis.
  22514. *
  22515. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#pixelSize)
  22516. */
  22517. y: number;
  22518. }
  22519. export interface RasterInfoStatistics {
  22520. /**
  22521. * The minimum pixel value.
  22522. *
  22523. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#statistics)
  22524. */
  22525. min: number;
  22526. /**
  22527. * The maximum pixel value.
  22528. *
  22529. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#statistics)
  22530. */
  22531. max: number;
  22532. /**
  22533. * The standard deviation of calculated pixel values.
  22534. *
  22535. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#statistics)
  22536. */
  22537. stddev: number;
  22538. /**
  22539. * The average of calculated pixel values.
  22540. *
  22541. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#statistics)
  22542. */
  22543. avg: number;
  22544. }
  22545. /**
  22546. * RasterMultidimensionalInfo contains dimensions for each variable in the service describing information about the images collected at multiple times, depths, or heights.
  22547. *
  22548. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#RasterMultidimensionalInfo)
  22549. */
  22550. export interface RasterMultidimensionalInfo {
  22551. /**
  22552. * The multi dimensional variables.
  22553. *
  22554. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#RasterMultidimensionalInfo)
  22555. */
  22556. variables: RasterMultidimensionalInfoVariables[];
  22557. }
  22558. export interface RasterMultidimensionalInfoVariables {
  22559. /**
  22560. * Variable name.
  22561. *
  22562. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#RasterMultidimensionalInfo)
  22563. */
  22564. name: string;
  22565. /**
  22566. * Variable description.
  22567. *
  22568. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#RasterMultidimensionalInfo)
  22569. */
  22570. description?: string;
  22571. /**
  22572. * Unit of the variable measured in.
  22573. *
  22574. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#RasterMultidimensionalInfo)
  22575. */
  22576. unit?: string;
  22577. /**
  22578. * A dimension may be used to represent real physical dimensions such as time or depth/height.
  22579. *
  22580. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#RasterMultidimensionalInfo)
  22581. */
  22582. dimensions: RasterMultidimensionalInfoVariablesDimensions[];
  22583. /**
  22584. * Variable statistics.
  22585. *
  22586. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#RasterMultidimensionalInfo)
  22587. */
  22588. statistics?: RasterBandStatistics[];
  22589. /**
  22590. * Variable histograms.
  22591. *
  22592. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#RasterMultidimensionalInfo)
  22593. */
  22594. histograms?: RasterHistogram[];
  22595. }
  22596. export interface RasterMultidimensionalInfoVariablesDimensions {
  22597. /**
  22598. * Dimension name.
  22599. *
  22600. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#RasterMultidimensionalInfo)
  22601. */
  22602. name: string;
  22603. /**
  22604. * Dimension description.
  22605. *
  22606. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#RasterMultidimensionalInfo)
  22607. */
  22608. description?: string;
  22609. /**
  22610. * Dimension unit.
  22611. *
  22612. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#RasterMultidimensionalInfo)
  22613. */
  22614. unit?: string;
  22615. /**
  22616. * An array of single values or tuples [min, max] each defining a range of valid values along the specified dimension.
  22617. *
  22618. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#RasterMultidimensionalInfo)
  22619. */
  22620. values?: number[] | number[][];
  22621. /**
  22622. * Indicates if the dimension is recorded at regular intervals.
  22623. *
  22624. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#RasterMultidimensionalInfo)
  22625. */
  22626. hasRegularIntervals?: boolean;
  22627. /**
  22628. * Dimension interval.
  22629. *
  22630. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#RasterMultidimensionalInfo)
  22631. */
  22632. interval?: number;
  22633. /**
  22634. * Dimension interval unit.
  22635. *
  22636. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#RasterMultidimensionalInfo)
  22637. */
  22638. intervalUnit?: string;
  22639. /**
  22640. * The extent of dimension values.
  22641. *
  22642. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterInfo.html#RasterMultidimensionalInfo)
  22643. */
  22644. extent?: number[];
  22645. }
  22646. export interface Relationship extends Accessor, JSONSupport {
  22647. }
  22648. export class Relationship {
  22649. /**
  22650. * The cardinality which specifies the number of objects in the origin [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) related to the number of objects in the destination [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
  22651. *
  22652. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html#cardinality)
  22653. */
  22654. cardinality: "one-to-one" | "one-to-many" | "many-to-many";
  22655. /**
  22656. * Indicates whether the relationship is composite.
  22657. *
  22658. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html#composite)
  22659. */
  22660. composite: boolean;
  22661. /**
  22662. * The unique ID for the relationship.
  22663. *
  22664. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html#id)
  22665. */
  22666. id: number;
  22667. /**
  22668. * The field used to establish the relate within the [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
  22669. *
  22670. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html#keyField)
  22671. */
  22672. keyField: string;
  22673. /**
  22674. * The key field in an attributed relationship class table that matches the [keyField](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html#keyField).
  22675. *
  22676. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html#keyFieldInRelationshipTable)
  22677. */
  22678. keyFieldInRelationshipTable: string;
  22679. /**
  22680. * The name of the relationship.
  22681. *
  22682. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html#name)
  22683. */
  22684. name: string;
  22685. /**
  22686. * The unique ID of the related [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
  22687. *
  22688. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html#relatedTableId)
  22689. */
  22690. relatedTableId: number;
  22691. /**
  22692. * The relationship table id.
  22693. *
  22694. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html#relationshipTableId)
  22695. */
  22696. relationshipTableId: number;
  22697. /**
  22698. * Indicates whether the table participating in the relationship is the `origin` or `destination` table.
  22699. *
  22700. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html#role)
  22701. */
  22702. role: "origin" | "destination";
  22703. /**
  22704. * Describes a [layer's](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) relationship with another layer or table.
  22705. *
  22706. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html)
  22707. */
  22708. constructor(properties?: RelationshipProperties);
  22709. /**
  22710. * Creates a deep clone of this object.
  22711. *
  22712. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html#clone)
  22713. */
  22714. clone(): this;
  22715. static fromJSON(json: any): Relationship;
  22716. }
  22717. /** @deprecated Import the Relationship class instead. */
  22718. export type RelationshipConstructor = typeof Relationship;
  22719. interface RelationshipProperties {
  22720. /**
  22721. * The cardinality which specifies the number of objects in the origin [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) related to the number of objects in the destination [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
  22722. *
  22723. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html#cardinality)
  22724. */
  22725. cardinality?: "one-to-one" | "one-to-many" | "many-to-many";
  22726. /**
  22727. * Indicates whether the relationship is composite.
  22728. *
  22729. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html#composite)
  22730. */
  22731. composite?: boolean;
  22732. /**
  22733. * The unique ID for the relationship.
  22734. *
  22735. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html#id)
  22736. */
  22737. id?: number;
  22738. /**
  22739. * The field used to establish the relate within the [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
  22740. *
  22741. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html#keyField)
  22742. */
  22743. keyField?: string;
  22744. /**
  22745. * The key field in an attributed relationship class table that matches the [keyField](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html#keyField).
  22746. *
  22747. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html#keyFieldInRelationshipTable)
  22748. */
  22749. keyFieldInRelationshipTable?: string;
  22750. /**
  22751. * The name of the relationship.
  22752. *
  22753. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html#name)
  22754. */
  22755. name?: string;
  22756. /**
  22757. * The unique ID of the related [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
  22758. *
  22759. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html#relatedTableId)
  22760. */
  22761. relatedTableId?: number;
  22762. /**
  22763. * The relationship table id.
  22764. *
  22765. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html#relationshipTableId)
  22766. */
  22767. relationshipTableId?: number;
  22768. /**
  22769. * Indicates whether the table participating in the relationship is the `origin` or `destination` table.
  22770. *
  22771. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html#role)
  22772. */
  22773. role?: "origin" | "destination";
  22774. }
  22775. export interface RouteStopSymbols extends Accessor, JSONSupport {
  22776. }
  22777. export class RouteStopSymbols {
  22778. /**
  22779. * The default symbol for _break_ [stops](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#stops).
  22780. *
  22781. * @default { type: "simple-marker", color: [255, 255, 255], size: 12, outline: { color: [0, 122, 194], width: 3 } }
  22782. *
  22783. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteStopSymbols.html#break)
  22784. */
  22785. break: SimpleMarkerSymbol | PictureMarkerSymbol | PointSymbol3D | CIMSymbol;
  22786. /**
  22787. * The default symbol for the first [stop](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#stops).
  22788. *
  22789. * @default { type: "simple-marker", color: [0, 255, 0], size: 20, outline: { color: [255, 255, 255], width: 4 } }
  22790. *
  22791. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteStopSymbols.html#first)
  22792. */
  22793. first: SimpleMarkerSymbol | PictureMarkerSymbol | PointSymbol3D | CIMSymbol;
  22794. /**
  22795. * The default symbol for a _last_ [stop](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#stops).
  22796. *
  22797. * @default { type: "simple-marker", color: [255, 0, 0], size: 20, outline: { color: [255, 255, 255], width: 4 } }
  22798. *
  22799. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteStopSymbols.html#last)
  22800. */
  22801. last: SimpleMarkerSymbol | PictureMarkerSymbol | PointSymbol3D | CIMSymbol;
  22802. /**
  22803. * The default symbol for _middle_ [stops](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#stops).
  22804. *
  22805. * @default { type: "simple-marker", color: [51, 51, 51],, size: 12, outline: { color: [0, 122, 194], width: 3 } }
  22806. *
  22807. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteStopSymbols.html#middle)
  22808. */
  22809. middle: SimpleMarkerSymbol | PictureMarkerSymbol | PointSymbol3D | CIMSymbol;
  22810. /**
  22811. * The default symbol for an _unlocated_ [stops](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#stops).
  22812. *
  22813. * @default { type: "simple-marker", color: [255, 0, 0], size: 12, outline: { color: [255, 255, 255], width: 3 } }
  22814. *
  22815. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteStopSymbols.html#unlocated)
  22816. */
  22817. unlocated: SimpleMarkerSymbol | PictureMarkerSymbol | PointSymbol3D | CIMSymbol;
  22818. /**
  22819. * The default symbol for _waypoint_ [stops](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#stops).
  22820. *
  22821. * @default { type: "simple-marker", color: [255, 255, 255], size: 12, outline: { color: [0, 122, 194], width: 3 } }
  22822. *
  22823. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteStopSymbols.html#waypoint)
  22824. */
  22825. waypoint: SimpleMarkerSymbol | PictureMarkerSymbol | PointSymbol3D | CIMSymbol;
  22826. /**
  22827. * RouteStopSymbols contains a set of symbols that will be used by [RouteLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html) to symbolize new stops.
  22828. *
  22829. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteStopSymbols.html)
  22830. */
  22831. constructor(properties?: RouteStopSymbolsProperties);
  22832. static fromJSON(json: any): RouteStopSymbols;
  22833. }
  22834. /** @deprecated Import the RouteStopSymbols class instead. */
  22835. export type RouteStopSymbolsConstructor = typeof RouteStopSymbols;
  22836. interface RouteStopSymbolsProperties {
  22837. /**
  22838. * The default symbol for _break_ [stops](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#stops).
  22839. *
  22840. * @default { type: "simple-marker", color: [255, 255, 255], size: 12, outline: { color: [0, 122, 194], width: 3 } }
  22841. *
  22842. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteStopSymbols.html#break)
  22843. */
  22844. break?: | (SimpleMarkerSymbolProperties & { type: "simple-marker" })
  22845. | (PictureMarkerSymbolProperties & { type: "picture-marker" })
  22846. | (PointSymbol3DProperties & { type: "point-3d" })
  22847. | (CIMSymbolProperties & { type: "cim" });
  22848. /**
  22849. * The default symbol for the first [stop](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#stops).
  22850. *
  22851. * @default { type: "simple-marker", color: [0, 255, 0], size: 20, outline: { color: [255, 255, 255], width: 4 } }
  22852. *
  22853. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteStopSymbols.html#first)
  22854. */
  22855. first?: | (SimpleMarkerSymbolProperties & { type: "simple-marker" })
  22856. | (PictureMarkerSymbolProperties & { type: "picture-marker" })
  22857. | (PointSymbol3DProperties & { type: "point-3d" })
  22858. | (CIMSymbolProperties & { type: "cim" });
  22859. /**
  22860. * The default symbol for a _last_ [stop](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#stops).
  22861. *
  22862. * @default { type: "simple-marker", color: [255, 0, 0], size: 20, outline: { color: [255, 255, 255], width: 4 } }
  22863. *
  22864. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteStopSymbols.html#last)
  22865. */
  22866. last?: | (SimpleMarkerSymbolProperties & { type: "simple-marker" })
  22867. | (PictureMarkerSymbolProperties & { type: "picture-marker" })
  22868. | (PointSymbol3DProperties & { type: "point-3d" })
  22869. | (CIMSymbolProperties & { type: "cim" });
  22870. /**
  22871. * The default symbol for _middle_ [stops](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#stops).
  22872. *
  22873. * @default { type: "simple-marker", color: [51, 51, 51],, size: 12, outline: { color: [0, 122, 194], width: 3 } }
  22874. *
  22875. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteStopSymbols.html#middle)
  22876. */
  22877. middle?: | (SimpleMarkerSymbolProperties & { type: "simple-marker" })
  22878. | (PictureMarkerSymbolProperties & { type: "picture-marker" })
  22879. | (PointSymbol3DProperties & { type: "point-3d" })
  22880. | (CIMSymbolProperties & { type: "cim" });
  22881. /**
  22882. * The default symbol for an _unlocated_ [stops](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#stops).
  22883. *
  22884. * @default { type: "simple-marker", color: [255, 0, 0], size: 12, outline: { color: [255, 255, 255], width: 3 } }
  22885. *
  22886. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteStopSymbols.html#unlocated)
  22887. */
  22888. unlocated?: | (SimpleMarkerSymbolProperties & { type: "simple-marker" })
  22889. | (PictureMarkerSymbolProperties & { type: "picture-marker" })
  22890. | (PointSymbol3DProperties & { type: "point-3d" })
  22891. | (CIMSymbolProperties & { type: "cim" });
  22892. /**
  22893. * The default symbol for _waypoint_ [stops](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#stops).
  22894. *
  22895. * @default { type: "simple-marker", color: [255, 255, 255], size: 12, outline: { color: [0, 122, 194], width: 3 } }
  22896. *
  22897. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteStopSymbols.html#waypoint)
  22898. */
  22899. waypoint?: | (SimpleMarkerSymbolProperties & { type: "simple-marker" })
  22900. | (PictureMarkerSymbolProperties & { type: "picture-marker" })
  22901. | (PointSymbol3DProperties & { type: "point-3d" })
  22902. | (CIMSymbolProperties & { type: "cim" });
  22903. }
  22904. export interface RouteSymbols extends Accessor, JSONSupport {
  22905. }
  22906. export class RouteSymbols {
  22907. /**
  22908. * The default symbol for [direction lines](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#directionLines).
  22909. *
  22910. * @default { type: "simple-line", color: [0, 122, 194], width: 6 }
  22911. *
  22912. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteSymbols.html#directionLines)
  22913. */
  22914. directionLines: SimpleLineSymbol | LineSymbol3D | CIMSymbol;
  22915. /**
  22916. * The default symbol for [direction points](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#directionPoints).
  22917. *
  22918. * @default { type: "simple-marker", color: [255, 255, 255], size: 6, outline: { color: [0, 122, 194], width: 2 } }
  22919. *
  22920. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteSymbols.html#directionPoints)
  22921. */
  22922. directionPoints: SimpleMarkerSymbol | PictureMarkerSymbol | PointSymbol3D | CIMSymbol;
  22923. /**
  22924. * The default symbol for [point barriers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#pointBarriers).
  22925. *
  22926. * @default { type: "simple-marker", style: "x", size: 10, outline: { color: [255, 0, 0], width: 3 } }
  22927. *
  22928. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteSymbols.html#pointBarriers)
  22929. */
  22930. pointBarriers: SimpleMarkerSymbol | PictureMarkerSymbol | PointSymbol3D | CIMSymbol;
  22931. /**
  22932. * The default symbol for [polygon barriers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#polygonBarriers).
  22933. *
  22934. * @default { type: "simple-fill", color: [255, 170, 0, 0.6], outline: { width: 7.5, color: [255, 0, 0, 0.6] } }
  22935. *
  22936. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteSymbols.html#polygonBarriers)
  22937. */
  22938. polygonBarriers: PictureFillSymbol | SimpleFillSymbol | PolygonSymbol3D | CIMSymbol;
  22939. /**
  22940. * The default symbol for [polyline Barriers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#polylineBarriers).
  22941. *
  22942. * @default { type: "simple-line", color: [255, 85, 0, 0.7], width: 7.5 }
  22943. *
  22944. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteSymbols.html#polylineBarriers)
  22945. */
  22946. polylineBarriers: SimpleLineSymbol | LineSymbol3D | CIMSymbol;
  22947. /**
  22948. * The default symbol for the overall [route](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#routeInfo).
  22949. *
  22950. * @default { type: "simple-line", color: [20, 89, 127], width: 8 }
  22951. *
  22952. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteSymbols.html#routeInfo)
  22953. */
  22954. routeInfo: SimpleLineSymbol | LineSymbol3D | CIMSymbol;
  22955. /**
  22956. * The default symbol for [stop](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#stops).
  22957. *
  22958. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteSymbols.html#stops)
  22959. */
  22960. stops: RouteStopSymbols;
  22961. /**
  22962. * RouteSymbols contains a set of symbols that will be used by [RouteLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html) to symbolize new stops, barriers and directions.
  22963. *
  22964. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteSymbols.html)
  22965. */
  22966. constructor(properties?: RouteSymbolsProperties);
  22967. static fromJSON(json: any): RouteSymbols;
  22968. }
  22969. /** @deprecated Import the RouteSymbols class instead. */
  22970. export type RouteSymbolsConstructor = typeof RouteSymbols;
  22971. interface RouteSymbolsProperties {
  22972. /**
  22973. * The default symbol for [direction lines](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#directionLines).
  22974. *
  22975. * @default { type: "simple-line", color: [0, 122, 194], width: 6 }
  22976. *
  22977. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteSymbols.html#directionLines)
  22978. */
  22979. directionLines?: | (SimpleLineSymbolProperties & { type: "simple-line" })
  22980. | (LineSymbol3DProperties & { type: "line-3d" })
  22981. | (CIMSymbolProperties & { type: "cim" });
  22982. /**
  22983. * The default symbol for [direction points](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#directionPoints).
  22984. *
  22985. * @default { type: "simple-marker", color: [255, 255, 255], size: 6, outline: { color: [0, 122, 194], width: 2 } }
  22986. *
  22987. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteSymbols.html#directionPoints)
  22988. */
  22989. directionPoints?: | (SimpleMarkerSymbolProperties & { type: "simple-marker" })
  22990. | (PictureMarkerSymbolProperties & { type: "picture-marker" })
  22991. | (PointSymbol3DProperties & { type: "point-3d" })
  22992. | (CIMSymbolProperties & { type: "cim" });
  22993. /**
  22994. * The default symbol for [point barriers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#pointBarriers).
  22995. *
  22996. * @default { type: "simple-marker", style: "x", size: 10, outline: { color: [255, 0, 0], width: 3 } }
  22997. *
  22998. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteSymbols.html#pointBarriers)
  22999. */
  23000. pointBarriers?: | (SimpleMarkerSymbolProperties & { type: "simple-marker" })
  23001. | (PictureMarkerSymbolProperties & { type: "picture-marker" })
  23002. | (PointSymbol3DProperties & { type: "point-3d" })
  23003. | (CIMSymbolProperties & { type: "cim" });
  23004. /**
  23005. * The default symbol for [polygon barriers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#polygonBarriers).
  23006. *
  23007. * @default { type: "simple-fill", color: [255, 170, 0, 0.6], outline: { width: 7.5, color: [255, 0, 0, 0.6] } }
  23008. *
  23009. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteSymbols.html#polygonBarriers)
  23010. */
  23011. polygonBarriers?: | (PictureFillSymbolProperties & { type: "picture-fill" })
  23012. | (SimpleFillSymbolProperties & { type: "simple-fill" })
  23013. | (PolygonSymbol3DProperties & { type: "polygon-3d" })
  23014. | (CIMSymbolProperties & { type: "cim" });
  23015. /**
  23016. * The default symbol for [polyline Barriers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#polylineBarriers).
  23017. *
  23018. * @default { type: "simple-line", color: [255, 85, 0, 0.7], width: 7.5 }
  23019. *
  23020. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteSymbols.html#polylineBarriers)
  23021. */
  23022. polylineBarriers?: | (SimpleLineSymbolProperties & { type: "simple-line" })
  23023. | (LineSymbol3DProperties & { type: "line-3d" })
  23024. | (CIMSymbolProperties & { type: "cim" });
  23025. /**
  23026. * The default symbol for the overall [route](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#routeInfo).
  23027. *
  23028. * @default { type: "simple-line", color: [20, 89, 127], width: 8 }
  23029. *
  23030. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteSymbols.html#routeInfo)
  23031. */
  23032. routeInfo?: | (SimpleLineSymbolProperties & { type: "simple-line" })
  23033. | (LineSymbol3DProperties & { type: "line-3d" })
  23034. | (CIMSymbolProperties & { type: "cim" });
  23035. /**
  23036. * The default symbol for [stop](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#stops).
  23037. *
  23038. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RouteSymbols.html#stops)
  23039. */
  23040. stops?: RouteStopSymbolsProperties;
  23041. }
  23042. export class SceneFilter extends Accessor {
  23043. /**
  23044. * The geometries to apply to the spatial filter.
  23045. *
  23046. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SceneFilter.html#geometries)
  23047. */
  23048. geometries: Collection<any>;
  23049. /**
  23050. * The type of masking to perform.
  23051. *
  23052. * @default "disjoint"
  23053. *
  23054. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SceneFilter.html#spatialRelationship)
  23055. */
  23056. spatialRelationship: "disjoint" | "contains";
  23057. /**
  23058. * A SceneFilter defines parameters for setting a client-side spatial filter on a [SceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#filter).
  23059. *
  23060. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SceneFilter.html)
  23061. */
  23062. constructor(properties?: SceneFilterProperties);
  23063. /**
  23064. * Creates a deep clone of the SceneFilter object.
  23065. *
  23066. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SceneFilter.html#clone)
  23067. */
  23068. clone(): SceneFilter;
  23069. }
  23070. /** @deprecated Import the SceneFilter class instead. */
  23071. export type SceneFilterConstructor = typeof SceneFilter;
  23072. interface SceneFilterProperties {
  23073. /**
  23074. * The geometries to apply to the spatial filter.
  23075. *
  23076. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SceneFilter.html#geometries)
  23077. */
  23078. geometries?: CollectionProperties<any>;
  23079. /**
  23080. * The type of masking to perform.
  23081. *
  23082. * @default "disjoint"
  23083. *
  23084. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SceneFilter.html#spatialRelationship)
  23085. */
  23086. spatialRelationship?: "disjoint" | "contains";
  23087. }
  23088. export interface SceneModification extends Accessor, JSONSupport {
  23089. }
  23090. export class SceneModification {
  23091. /**
  23092. * The geometry representing the location of the modification.
  23093. *
  23094. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SceneModification.html#geometry)
  23095. */
  23096. geometry: Polygon;
  23097. /**
  23098. * The type of modification to perform.
  23099. *
  23100. * @default clip
  23101. *
  23102. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SceneModification.html#type)
  23103. */
  23104. type: "clip" | "mask" | "replace";
  23105. /**
  23106. * The SceneModification is used to perform a client-side geometric modifications.
  23107. *
  23108. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SceneModification.html)
  23109. */
  23110. constructor(properties?: SceneModificationProperties);
  23111. /**
  23112. * Creates a clone of this object.
  23113. *
  23114. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SceneModification.html#clone)
  23115. */
  23116. clone(): SceneModification;
  23117. static fromJSON(json: any): SceneModification;
  23118. }
  23119. /** @deprecated Import the SceneModification class instead. */
  23120. export type SceneModificationConstructor = typeof SceneModification;
  23121. interface SceneModificationProperties {
  23122. /**
  23123. * The geometry representing the location of the modification.
  23124. *
  23125. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SceneModification.html#geometry)
  23126. */
  23127. geometry?: PolygonProperties;
  23128. /**
  23129. * The type of modification to perform.
  23130. *
  23131. * @default clip
  23132. *
  23133. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SceneModification.html#type)
  23134. */
  23135. type?: "clip" | "mask" | "replace";
  23136. }
  23137. export interface SceneModifications extends Collection<SceneModification>, JSONSupport {
  23138. }
  23139. export class SceneModifications {
  23140. /**
  23141. * A collection of [SceneModification](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SceneModification.html) with polygons and types to apply client-side modifications.
  23142. *
  23143. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SceneModifications.html)
  23144. */
  23145. constructor(properties?: | SceneModificationsProperties
  23146. | SceneModificationProperties[]
  23147. | Collection<SceneModificationProperties>);
  23148. /**
  23149. * Creates a clone of this object.
  23150. *
  23151. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SceneModifications.html#clone)
  23152. */
  23153. clone(): SceneModifications;
  23154. static fromJSON(json: any): SceneModifications;
  23155. }
  23156. /** @deprecated Import the SceneModifications class instead. */
  23157. export type SceneModificationsConstructor = typeof SceneModifications;
  23158. interface SceneModificationsProperties extends CollectionPropertiesBase<SceneModificationProperties> {
  23159. }
  23160. export interface SiteLayerInfo extends Accessor, JSONSupport {
  23161. }
  23162. export class SiteLayerInfo {
  23163. /**
  23164. * The id for an operational layer in a map.
  23165. *
  23166. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SiteLayerInfo.html#layerId)
  23167. */
  23168. layerId: string;
  23169. /**
  23170. * The field name from the layer that defines the site name of a feature.
  23171. *
  23172. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SiteLayerInfo.html#nameField)
  23173. */
  23174. nameField: string;
  23175. /**
  23176. * The field name from the layer that defines a site unique ID for a feature.
  23177. *
  23178. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SiteLayerInfo.html#siteIdField)
  23179. */
  23180. siteIdField: string;
  23181. /**
  23182. * This value references the numeric ID of the sublayer if the Site layer is a map service sublayer instead of a feature layer.
  23183. *
  23184. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SiteLayerInfo.html#sublayerId)
  23185. */
  23186. sublayerId: number;
  23187. /**
  23188. * The SiteLayerInfo class describes the boundaries of managed sites and is used for visualizing groups of facilities.
  23189. *
  23190. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SiteLayerInfo.html)
  23191. */
  23192. constructor(properties?: SiteLayerInfoProperties);
  23193. static fromJSON(json: any): SiteLayerInfo;
  23194. }
  23195. /** @deprecated Import the SiteLayerInfo class instead. */
  23196. export type SiteLayerInfoConstructor = typeof SiteLayerInfo;
  23197. interface SiteLayerInfoProperties {
  23198. /**
  23199. * The id for an operational layer in a map.
  23200. *
  23201. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SiteLayerInfo.html#layerId)
  23202. */
  23203. layerId?: string;
  23204. /**
  23205. * The field name from the layer that defines the site name of a feature.
  23206. *
  23207. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SiteLayerInfo.html#nameField)
  23208. */
  23209. nameField?: string;
  23210. /**
  23211. * The field name from the layer that defines a site unique ID for a feature.
  23212. *
  23213. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SiteLayerInfo.html#siteIdField)
  23214. */
  23215. siteIdField?: string;
  23216. /**
  23217. * This value references the numeric ID of the sublayer if the Site layer is a map service sublayer instead of a feature layer.
  23218. *
  23219. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SiteLayerInfo.html#sublayerId)
  23220. */
  23221. sublayerId?: number;
  23222. }
  23223. /**
  23224. * A web socket connection to a stream service.
  23225. *
  23226. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-StreamConnection.html)
  23227. */
  23228. interface StreamConnection {
  23229. /**
  23230. * The error that explains an unsuccessful attempt to connect to the stream service or an unexpected disconnection from the stream service.
  23231. *
  23232. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-StreamConnection.html#connectionError)
  23233. */
  23234. readonly connectionError: Error;
  23235. /**
  23236. * The status of the Web Socket connection with the stream service.
  23237. *
  23238. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-StreamConnection.html#connectionStatus)
  23239. */
  23240. readonly connectionStatus: "connected" | "disconnected";
  23241. /**
  23242. * Destroys the existing connection instance to the stream service.
  23243. *
  23244. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-StreamConnection.html#destroy)
  23245. */
  23246. destroy(): void;
  23247. }
  23248. export const StreamConnection: StreamConnection;
  23249. export interface StreamConnectionDataReceivedEvent {
  23250. attributes: any;
  23251. geometry: any;
  23252. }
  23253. export interface Sublayer extends Accessor, Loadable, Identifiable {
  23254. }
  23255. export class Sublayer {
  23256. /**
  23257. * A SQL where clause used to filter features in the image.
  23258. *
  23259. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#definitionExpression)
  23260. */
  23261. definitionExpression: string;
  23262. /**
  23263. * An array of fields in the Sublayer.
  23264. *
  23265. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#fields)
  23266. */
  23267. readonly fields: Field[];
  23268. /**
  23269. * A convenient property that can be used to make case-insensitive lookups for a [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#field) by name.
  23270. *
  23271. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#fieldsIndex)
  23272. */
  23273. readonly fieldsIndex: FieldsIndex;
  23274. /**
  23275. * If a map image layer contains a sublayer which is meant to be floor-aware, then that sublayer must have a floorInfo property, containing a [LayerFloorInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LayerFloorInfo.html) object which has a string property to represent the floorField.
  23276. *
  23277. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#floorInfo)
  23278. */
  23279. floorInfo: LayerFloorInfo;
  23280. /**
  23281. * The full extent of the Sublayer.
  23282. *
  23283. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#fullExtent)
  23284. */
  23285. readonly fullExtent: Extent;
  23286. /**
  23287. * The sublayer's layer ID.
  23288. *
  23289. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#id)
  23290. */
  23291. id: number;
  23292. /**
  23293. * The label definition for this layer, specified as an array of [LabelClass](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html) objects.
  23294. *
  23295. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#labelingInfo)
  23296. */
  23297. labelingInfo: LabelClass[];
  23298. /**
  23299. * Indicates if labels for the sublayer will be visible in the view.
  23300. *
  23301. * @default true
  23302. *
  23303. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#labelsVisible)
  23304. */
  23305. labelsVisible: boolean;
  23306. /**
  23307. * The [MapImageLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html) or [TileLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html) to which the sublayer belongs.
  23308. *
  23309. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#layer)
  23310. */
  23311. layer: MapImageLayer | TileLayer;
  23312. /**
  23313. * Indicates whether the layer will be included in the legend.
  23314. *
  23315. * @default true
  23316. *
  23317. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#legendEnabled)
  23318. */
  23319. legendEnabled: boolean;
  23320. /**
  23321. * Indicates how the layer should display in the [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html) widget.
  23322. *
  23323. * @default show
  23324. *
  23325. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#listMode)
  23326. */
  23327. listMode: "show" | "hide" | "hide-children";
  23328. /**
  23329. * The maximum scale (most zoomed in) at which the layer is visible in the view.
  23330. *
  23331. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#maxScale)
  23332. */
  23333. maxScale: number;
  23334. /**
  23335. * The minimum scale (most zoomed out) at which the layer is visible in the view.
  23336. *
  23337. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#minScale)
  23338. */
  23339. minScale: number;
  23340. /**
  23341. * The name of an `oid` [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#fields) containing a unique value or identifier for each feature in the Sublayer.
  23342. *
  23343. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#objectIdField)
  23344. */
  23345. readonly objectIdField: string;
  23346. /**
  23347. * The level of opacity to set on the sublayer on a scale from 0.0 - 1.0 where `0` is fully transparent and `1.0` is fully opaque.
  23348. *
  23349. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#opacity)
  23350. */
  23351. opacity: number;
  23352. /**
  23353. * Indicates whether to display popups when features in the layer are clicked.
  23354. *
  23355. * @default true
  23356. *
  23357. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#popupEnabled)
  23358. */
  23359. popupEnabled: boolean;
  23360. /**
  23361. * The popup template for the sublayer.
  23362. *
  23363. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#popupTemplate)
  23364. */
  23365. popupTemplate: PopupTemplate;
  23366. /**
  23367. * The renderer to apply to the sublayer.
  23368. *
  23369. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#renderer)
  23370. */
  23371. renderer: Renderer;
  23372. /**
  23373. * An object that allows you to create a dynamic layer with data either from the map service sublayers or data from a registered workspace.
  23374. *
  23375. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#source)
  23376. */
  23377. source: DynamicMapLayer | DynamicDataLayer;
  23378. /**
  23379. * The [map service's metadata JSON](https://developers.arcgis.com/rest/services-reference/map-service.htm) exposed by the ArcGIS REST API.
  23380. *
  23381. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#sourceJSON)
  23382. */
  23383. sourceJSON: any;
  23384. /**
  23385. * If a sublayer contains sublayers, this property is a [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of [Sublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html) objects belonging to the given sublayer with sublayers.
  23386. *
  23387. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#sublayers)
  23388. */
  23389. sublayers: Collection<Sublayer>;
  23390. /**
  23391. * The title of the sublayer used to identify it in places such as the [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html) and [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) widgets.
  23392. *
  23393. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#title)
  23394. */
  23395. title: string;
  23396. /**
  23397. * The name of the field holding the type ID or subtypes for the features.
  23398. *
  23399. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#typeIdField)
  23400. */
  23401. readonly typeIdField: string;
  23402. /**
  23403. * An array of subtypes defined in the feature service exposed by ArcGIS REST API.
  23404. *
  23405. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#types)
  23406. */
  23407. readonly types: FeatureType[];
  23408. /**
  23409. * The URL to the REST endpoint of the sublayer.
  23410. *
  23411. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#url)
  23412. */
  23413. url: string;
  23414. /**
  23415. * Indicates if the layer is visible in the view.
  23416. *
  23417. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#visible)
  23418. */
  23419. visible: boolean;
  23420. /**
  23421. * Represents a sublayer in a [MapImageLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html) or a [TileLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html).
  23422. *
  23423. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html)
  23424. */
  23425. constructor(properties?: SublayerProperties);
  23426. /**
  23427. * Creates a deep clone of the sublayer.
  23428. *
  23429. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#clone)
  23430. */
  23431. clone(): Sublayer;
  23432. /**
  23433. * A convenient method for creating a [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) instance based on the Sublayer's configuration, including [dynamic sources](https://enterprise.arcgis.com/en/server/latest/publish-services/linux/about-dynamic-layers.htm).
  23434. *
  23435. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#createFeatureLayer)
  23436. */
  23437. createFeatureLayer(): Promise<FeatureLayer>;
  23438. /**
  23439. * Creates a popup template for the sublayer, populated with all the fields of the sublayer.
  23440. *
  23441. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#createPopupTemplate)
  23442. */
  23443. createPopupTemplate(options?: CreatePopupTemplateOptions): PopupTemplate;
  23444. /**
  23445. * Creates a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) object with default values representing the layer's state, including filters (definition expression) on the layer's features.
  23446. *
  23447. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#createQuery)
  23448. */
  23449. createQuery(): Query;
  23450. /**
  23451. * Returns a [FeatureType](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureType.html) describing the feature's type.
  23452. *
  23453. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#getFeatureType)
  23454. */
  23455. getFeatureType(feature: Graphic): FeatureType;
  23456. /**
  23457. * Returns the [Domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Domain.html) associated with the given field name.
  23458. *
  23459. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#getFieldDomain)
  23460. */
  23461. getFieldDomain(fieldName: string, options?: SublayerGetFieldDomainOptions): Domain;
  23462. /**
  23463. * Executes a [query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query.html) against features in the sublayer.
  23464. *
  23465. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#queryFeatures)
  23466. */
  23467. queryFeatures(query?: Query | QueryProperties, options?: SublayerQueryFeaturesOptions): Promise<FeatureSet>;
  23468. }
  23469. /** @deprecated Import the Sublayer class instead. */
  23470. export type SublayerConstructor = typeof Sublayer;
  23471. interface SublayerProperties extends LoadableProperties {
  23472. /**
  23473. * A SQL where clause used to filter features in the image.
  23474. *
  23475. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#definitionExpression)
  23476. */
  23477. definitionExpression?: string;
  23478. /**
  23479. * If a map image layer contains a sublayer which is meant to be floor-aware, then that sublayer must have a floorInfo property, containing a [LayerFloorInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LayerFloorInfo.html) object which has a string property to represent the floorField.
  23480. *
  23481. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#floorInfo)
  23482. */
  23483. floorInfo?: LayerFloorInfoProperties;
  23484. /**
  23485. * The sublayer's layer ID.
  23486. *
  23487. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#id)
  23488. */
  23489. id?: number;
  23490. /**
  23491. * The label definition for this layer, specified as an array of [LabelClass](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html) objects.
  23492. *
  23493. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#labelingInfo)
  23494. */
  23495. labelingInfo?: LabelClassProperties[];
  23496. /**
  23497. * Indicates if labels for the sublayer will be visible in the view.
  23498. *
  23499. * @default true
  23500. *
  23501. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#labelsVisible)
  23502. */
  23503. labelsVisible?: boolean;
  23504. /**
  23505. * The [MapImageLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html) or [TileLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html) to which the sublayer belongs.
  23506. *
  23507. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#layer)
  23508. */
  23509. layer?: (MapImageLayerProperties & { type: "map-image" }) | (TileLayerProperties & { type: "tile" });
  23510. /**
  23511. * Indicates whether the layer will be included in the legend.
  23512. *
  23513. * @default true
  23514. *
  23515. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#legendEnabled)
  23516. */
  23517. legendEnabled?: boolean;
  23518. /**
  23519. * Indicates how the layer should display in the [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html) widget.
  23520. *
  23521. * @default show
  23522. *
  23523. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#listMode)
  23524. */
  23525. listMode?: "show" | "hide" | "hide-children";
  23526. /**
  23527. * The maximum scale (most zoomed in) at which the layer is visible in the view.
  23528. *
  23529. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#maxScale)
  23530. */
  23531. maxScale?: number;
  23532. /**
  23533. * The minimum scale (most zoomed out) at which the layer is visible in the view.
  23534. *
  23535. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#minScale)
  23536. */
  23537. minScale?: number;
  23538. /**
  23539. * The level of opacity to set on the sublayer on a scale from 0.0 - 1.0 where `0` is fully transparent and `1.0` is fully opaque.
  23540. *
  23541. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#opacity)
  23542. */
  23543. opacity?: number;
  23544. /**
  23545. * Indicates whether to display popups when features in the layer are clicked.
  23546. *
  23547. * @default true
  23548. *
  23549. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#popupEnabled)
  23550. */
  23551. popupEnabled?: boolean;
  23552. /**
  23553. * The popup template for the sublayer.
  23554. *
  23555. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#popupTemplate)
  23556. */
  23557. popupTemplate?: PopupTemplateProperties;
  23558. /**
  23559. * The renderer to apply to the sublayer.
  23560. *
  23561. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#renderer)
  23562. */
  23563. renderer?: RendererProperties;
  23564. /**
  23565. * An object that allows you to create a dynamic layer with data either from the map service sublayers or data from a registered workspace.
  23566. *
  23567. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#source)
  23568. */
  23569. source?: (DynamicMapLayer & { type: "map-layer" }) | (DynamicDataLayer & { type: "data-layer" });
  23570. /**
  23571. * The [map service's metadata JSON](https://developers.arcgis.com/rest/services-reference/map-service.htm) exposed by the ArcGIS REST API.
  23572. *
  23573. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#sourceJSON)
  23574. */
  23575. sourceJSON?: any;
  23576. /**
  23577. * If a sublayer contains sublayers, this property is a [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of [Sublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html) objects belonging to the given sublayer with sublayers.
  23578. *
  23579. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#sublayers)
  23580. */
  23581. sublayers?: CollectionProperties<SublayerProperties>;
  23582. /**
  23583. * The title of the sublayer used to identify it in places such as the [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html) and [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) widgets.
  23584. *
  23585. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#title)
  23586. */
  23587. title?: string;
  23588. /**
  23589. * The URL to the REST endpoint of the sublayer.
  23590. *
  23591. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#url)
  23592. */
  23593. url?: string;
  23594. /**
  23595. * Indicates if the layer is visible in the view.
  23596. *
  23597. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#visible)
  23598. */
  23599. visible?: boolean;
  23600. }
  23601. /**
  23602. * A dynamic data layer is a layer created on-the-fly with data stored in a [registered workspace](https://enterprise.arcgis.com/en/server/latest/manage-data/windows/overview-register-data-with-arcgis-server.htm).
  23603. *
  23604. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#DynamicDataLayer)
  23605. */
  23606. export interface DynamicDataLayer {
  23607. /**
  23608. * This value is always `data-layer` and is inferred when the `dataSource` property is set.
  23609. *
  23610. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#DynamicDataLayer)
  23611. */
  23612. type: "data-layer";
  23613. /**
  23614. * A table, feature class, or raster that resides in a registered workspace (either a folder or geodatabase).
  23615. *
  23616. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#DynamicDataLayer)
  23617. */
  23618. dataSource: TableDataSource | QueryTableDataSource | RasterDataSource | JoinTableDataSource;
  23619. /**
  23620. * Controls field visibility in the layer.
  23621. *
  23622. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#DynamicDataLayer)
  23623. */
  23624. fields: DynamicDataLayerFields[];
  23625. }
  23626. /**
  23627. * A dynamic map layer refers to a layer published in a map service that has dynamic layers enabled.
  23628. *
  23629. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#DynamicMapLayer)
  23630. */
  23631. export interface DynamicMapLayer {
  23632. /**
  23633. * This value is always `map-layer` and is inferred when the `mapLayerId` property is set.
  23634. *
  23635. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#DynamicMapLayer)
  23636. */
  23637. type: "map-layer";
  23638. /**
  23639. * The [id](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#id) of the service sublayer.
  23640. *
  23641. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#DynamicMapLayer)
  23642. */
  23643. mapLayerId: number;
  23644. /**
  23645. * An optional property for specifying the GDB version.
  23646. *
  23647. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#DynamicMapLayer)
  23648. */
  23649. gdbVersion: string;
  23650. }
  23651. /**
  23652. * The result of an on-the-fly join operation at runtime.
  23653. *
  23654. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#JoinTableDataSource)
  23655. */
  23656. export interface JoinTableDataSource {
  23657. /**
  23658. * This value is always `join-table` and is inferred when other join table properties of this object are set.
  23659. *
  23660. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#JoinTableDataSource)
  23661. */
  23662. type: "join-table";
  23663. /**
  23664. * The field name used for joining or matching records in the left table to records in the right table.
  23665. *
  23666. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#JoinTableDataSource)
  23667. */
  23668. leftTableKey: string;
  23669. /**
  23670. * The field name used for joining or matching records in the right table to records in the left table.
  23671. *
  23672. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#JoinTableDataSource)
  23673. */
  23674. rightTableKey: string;
  23675. /**
  23676. * The left table for joining to the right table source.
  23677. *
  23678. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#JoinTableDataSource)
  23679. */
  23680. leftTableSource: DynamicMapLayer | DynamicDataLayer;
  23681. /**
  23682. * The right table for joining to the left table source.
  23683. *
  23684. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#JoinTableDataSource)
  23685. */
  23686. rightTableSource: DynamicMapLayer | DynamicDataLayer;
  23687. /**
  23688. * The type of join that will be performed.
  23689. *
  23690. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#JoinTableDataSource)
  23691. */
  23692. joinType: "left-outer-join" | "left-inner-join";
  23693. }
  23694. /**
  23695. * A query table is a feature class or table defined by a SQL query on the fly.
  23696. *
  23697. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#QueryTableDataSource)
  23698. */
  23699. export interface QueryTableDataSource {
  23700. /**
  23701. * This value is always `query-table` and is inferred when the `query` property of this object is set.
  23702. *
  23703. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#QueryTableDataSource)
  23704. */
  23705. type: "query-table";
  23706. /**
  23707. * The workspace where the data resides (defined in ArcGIS Server Manager).
  23708. *
  23709. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#QueryTableDataSource)
  23710. */
  23711. workspaceId: string;
  23712. /**
  23713. * The SQL query used to filter records.
  23714. *
  23715. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#QueryTableDataSource)
  23716. */
  23717. query: string;
  23718. /**
  23719. * The field name(s) containing the unique IDs for each record in the table.
  23720. *
  23721. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#QueryTableDataSource)
  23722. */
  23723. oidFields: string;
  23724. /**
  23725. * The spatial reference of the geometry of each feature in the table source.
  23726. *
  23727. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#QueryTableDataSource)
  23728. */
  23729. spatialReference: SpatialReference;
  23730. /**
  23731. * The geometry type of each record in the table.
  23732. *
  23733. * [Read more...](global.html#geometryType)
  23734. */
  23735. geometryType: "point" | "multipoint" | "polyline" | "polygon" | "multipatch";
  23736. }
  23737. /**
  23738. * A file-based raster that resides in a registered raster workspace.
  23739. *
  23740. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#RasterDataSource)
  23741. */
  23742. export interface RasterDataSource {
  23743. /**
  23744. * This value is always `raster`.
  23745. *
  23746. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#RasterDataSource)
  23747. */
  23748. type: "raster";
  23749. /**
  23750. * The workspace where the raster resides as defined in the ArcGIS Server Manager.
  23751. *
  23752. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#RasterDataSource)
  23753. */
  23754. workspaceId: string;
  23755. /**
  23756. * The name of the raster in the registered workspace.
  23757. *
  23758. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#RasterDataSource)
  23759. */
  23760. dataSourceName: string;
  23761. }
  23762. export interface SublayerGetFieldDomainOptions {
  23763. /**
  23764. * The feature to which the [Domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Domain.html) is assigned.
  23765. *
  23766. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#getFieldDomain)
  23767. */
  23768. feature: Graphic;
  23769. }
  23770. export interface SublayerQueryFeaturesOptions {
  23771. /**
  23772. * Signal object that can be used to abort the asynchronous task.
  23773. *
  23774. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#queryFeatures)
  23775. */
  23776. signal?: AbortSignal;
  23777. }
  23778. /**
  23779. * A table or feature class that resides in a registered workspace (either a folder or geodatabase).
  23780. *
  23781. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#TableDataSource)
  23782. */
  23783. export interface TableDataSource {
  23784. /**
  23785. * This value is always `table`.
  23786. *
  23787. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#TableDataSource)
  23788. */
  23789. type: string;
  23790. /**
  23791. * The workspace where the table resides as defined in the ArcGIS Server Manager.
  23792. *
  23793. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#TableDataSource)
  23794. */
  23795. workspaceId: string;
  23796. /**
  23797. * The name of the table in the registered workspace.
  23798. *
  23799. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#TableDataSource)
  23800. */
  23801. dataSourceName: string;
  23802. /**
  23803. * References the geodatabase version if multiple versions exist in the geodatabase.
  23804. *
  23805. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#TableDataSource)
  23806. */
  23807. gdbVersion: string;
  23808. }
  23809. export interface DynamicDataLayerFields {
  23810. /**
  23811. * The name of the field.
  23812. *
  23813. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#DynamicDataLayer)
  23814. */
  23815. name: string;
  23816. /**
  23817. * The alias of the field.
  23818. *
  23819. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#DynamicDataLayer)
  23820. */
  23821. alias: string;
  23822. }
  23823. export class SubtypeSublayer extends Identifiable {
  23824. /**
  23825. * Determines if the layer is editable.
  23826. *
  23827. * @default true
  23828. *
  23829. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html#editingEnabled)
  23830. */
  23831. editingEnabled: boolean;
  23832. /**
  23833. * An array of fields in the layer.
  23834. *
  23835. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html#fields)
  23836. */
  23837. fields: Field[];
  23838. /**
  23839. * The [template](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html) used in an associated layer's [FeatureForm](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html).
  23840. *
  23841. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html#formTemplate)
  23842. */
  23843. formTemplate: FormTemplate;
  23844. /**
  23845. * The label definition for this layer, specified as an array of [LabelClass](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html).
  23846. *
  23847. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html#labelingInfo)
  23848. */
  23849. labelingInfo: LabelClass[];
  23850. /**
  23851. * Indicates whether to display labels for this layer.
  23852. *
  23853. * @default true
  23854. *
  23855. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html#labelsVisible)
  23856. */
  23857. labelsVisible: boolean;
  23858. /**
  23859. * Indicates whether the layer will be included in the legend.
  23860. *
  23861. * @default true
  23862. *
  23863. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html#legendEnabled)
  23864. */
  23865. legendEnabled: boolean;
  23866. /**
  23867. * The maximum scale (most zoomed in) at which the layer is visible in the view.
  23868. *
  23869. * @default 0
  23870. *
  23871. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html#maxScale)
  23872. */
  23873. maxScale: number;
  23874. /**
  23875. * The minimum scale (most zoomed out) at which the layer is visible in the view.
  23876. *
  23877. * @default 0
  23878. *
  23879. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html#minScale)
  23880. */
  23881. minScale: number;
  23882. /**
  23883. * The opacity of the layer.
  23884. *
  23885. * @default 1
  23886. *
  23887. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html#opacity)
  23888. */
  23889. opacity: number;
  23890. /**
  23891. * Indicates whether to display popups when features in the layer are clicked.
  23892. *
  23893. * @default true
  23894. *
  23895. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html#popupEnabled)
  23896. */
  23897. popupEnabled: boolean;
  23898. /**
  23899. * The popup template for the layer.
  23900. *
  23901. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html#popupTemplate)
  23902. */
  23903. popupTemplate: PopupTemplate;
  23904. /**
  23905. * The renderer assigned to the layer.
  23906. *
  23907. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html#renderer)
  23908. */
  23909. renderer: Renderer;
  23910. /**
  23911. * The unique identifier representing the [SubtypeSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html) created from the [SubtypeGroupLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SubtypeGroupLayer.html).
  23912. *
  23913. * @default null
  23914. *
  23915. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html#subtypeCode)
  23916. */
  23917. subtypeCode: number;
  23918. /**
  23919. * An array of feature templates defined in the feature layer.
  23920. *
  23921. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html#templates)
  23922. */
  23923. templates: FeatureTemplate[];
  23924. /**
  23925. * The title of the layer used to identify it in places such as the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) widget.
  23926. *
  23927. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html#title)
  23928. */
  23929. title: string;
  23930. readonly type: "subtype-sublayer";
  23931. /**
  23932. * Indicates if the layer is visible in the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html).
  23933. *
  23934. * @default true
  23935. *
  23936. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html#visible)
  23937. */
  23938. visible: boolean;
  23939. constructor(properties?: any);
  23940. /**
  23941. * Creates a popup template for the layer, populated with all the fields of the layer.
  23942. *
  23943. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html#createPopupTemplate)
  23944. */
  23945. createPopupTemplate(options?: CreatePopupTemplateOptions): PopupTemplate;
  23946. /**
  23947. * Returns the [Field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html) instance for a field name (case-insensitive).
  23948. *
  23949. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html#getField)
  23950. */
  23951. getField(fieldName: string): Field;
  23952. /**
  23953. * Returns the [Domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Domain.html) associated with the given field name.
  23954. *
  23955. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-SubtypeSublayer.html#getFieldDomain)
  23956. */
  23957. getFieldDomain(fieldName: string): Domain;
  23958. }
  23959. /** @deprecated Import the SubtypeSublayer class instead. */
  23960. export type SubtypeSublayerConstructor = typeof SubtypeSublayer;
  23961. export interface TileInfo extends Accessor, JSONSupport {
  23962. }
  23963. export class TileInfo {
  23964. /**
  23965. * The dots per inch (DPI) of the tiling scheme.
  23966. *
  23967. * @default 96
  23968. *
  23969. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html#dpi)
  23970. */
  23971. dpi: number;
  23972. /**
  23973. * Image format of the cached tiles.
  23974. *
  23975. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html#format)
  23976. */
  23977. format: | "png"
  23978. | "png24"
  23979. | "png32"
  23980. | "jpg"
  23981. | "dib"
  23982. | "tiff"
  23983. | "emf"
  23984. | "ps"
  23985. | "pdf"
  23986. | "gif"
  23987. | "svg"
  23988. | "svgz"
  23989. | "mixed"
  23990. | "lerc"
  23991. | "pbf";
  23992. /**
  23993. * Indicates if the tiling scheme supports wrap around.
  23994. *
  23995. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html#isWrappable)
  23996. */
  23997. isWrappable: boolean;
  23998. /**
  23999. * An array of levels of detail that define the tiling scheme.
  24000. *
  24001. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html#lods)
  24002. */
  24003. lods: LOD[];
  24004. /**
  24005. * The tiling scheme origin.
  24006. *
  24007. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html#origin)
  24008. */
  24009. origin: Point;
  24010. /**
  24011. * Size of tiles in pixels.
  24012. *
  24013. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html#size)
  24014. */
  24015. size: number[];
  24016. /**
  24017. * The spatial reference of the tiling schema.
  24018. *
  24019. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html#spatialReference)
  24020. */
  24021. spatialReference: SpatialReference;
  24022. /**
  24023. * Contains information about the tiling scheme for [TileLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html), [ElevationLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html), [ImageryTileLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html), [VectorTileLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html), and [WebTileLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WebTileLayer.html).
  24024. *
  24025. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html)
  24026. */
  24027. constructor(properties?: TileInfoProperties);
  24028. /**
  24029. * Utility method used to convert a scale value to its corresponding zoom value.
  24030. *
  24031. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html#scaleToZoom)
  24032. */
  24033. scaleToZoom(scale: number): number;
  24034. /**
  24035. * Utility method used to convert a zoom value to its corresponding scale value.
  24036. *
  24037. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html#zoomToScale)
  24038. */
  24039. zoomToScale(zoom: number): number;
  24040. /**
  24041. * A convenience method used to create a new TileInfo instance with preset properties like [LODs](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html#lods).
  24042. *
  24043. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html#create)
  24044. */
  24045. static create(options?: TileInfoCreateOptions): TileInfo;
  24046. static fromJSON(json: any): TileInfo;
  24047. }
  24048. /** @deprecated Import the TileInfo class instead. */
  24049. export type TileInfoConstructor = typeof TileInfo;
  24050. interface TileInfoProperties {
  24051. /**
  24052. * The dots per inch (DPI) of the tiling scheme.
  24053. *
  24054. * @default 96
  24055. *
  24056. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html#dpi)
  24057. */
  24058. dpi?: number;
  24059. /**
  24060. * Image format of the cached tiles.
  24061. *
  24062. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html#format)
  24063. */
  24064. format?: | "png"
  24065. | "png24"
  24066. | "png32"
  24067. | "jpg"
  24068. | "dib"
  24069. | "tiff"
  24070. | "emf"
  24071. | "ps"
  24072. | "pdf"
  24073. | "gif"
  24074. | "svg"
  24075. | "svgz"
  24076. | "mixed"
  24077. | "lerc"
  24078. | "pbf";
  24079. /**
  24080. * Indicates if the tiling scheme supports wrap around.
  24081. *
  24082. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html#isWrappable)
  24083. */
  24084. isWrappable?: boolean;
  24085. /**
  24086. * An array of levels of detail that define the tiling scheme.
  24087. *
  24088. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html#lods)
  24089. */
  24090. lods?: LODProperties[];
  24091. /**
  24092. * The tiling scheme origin.
  24093. *
  24094. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html#origin)
  24095. */
  24096. origin?: PointProperties;
  24097. /**
  24098. * Size of tiles in pixels.
  24099. *
  24100. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html#size)
  24101. */
  24102. size?: number[];
  24103. /**
  24104. * The spatial reference of the tiling schema.
  24105. *
  24106. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html#spatialReference)
  24107. */
  24108. spatialReference?: SpatialReferenceProperties;
  24109. }
  24110. export interface TileInfoCreateOptions {
  24111. /**
  24112. * The size of each tile in pixels.
  24113. *
  24114. * @default 256
  24115. *
  24116. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html#create)
  24117. */
  24118. size?: number;
  24119. /**
  24120. * Total number of LODs to create.
  24121. *
  24122. * @default 24
  24123. *
  24124. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html#create)
  24125. */
  24126. numLODs?: number;
  24127. /**
  24128. * The spatial reference for the new TileInfo instance.
  24129. *
  24130. * @default WebMercator
  24131. *
  24132. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html#create)
  24133. */
  24134. spatialReference?: SpatialReference;
  24135. /**
  24136. * An array of scale values to use for the TileInfo.
  24137. *
  24138. * @default The scales provided by ArcGIS Online basemaps
  24139. *
  24140. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileInfo.html#create)
  24141. */
  24142. scales?: number[];
  24143. }
  24144. export interface TileMatrixSet extends Accessor, JSONSupport {
  24145. }
  24146. export class TileMatrixSet {
  24147. /**
  24148. * The full extent of the TileMatrixSet.
  24149. *
  24150. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileMatrixSet.html#fullExtent)
  24151. */
  24152. fullExtent: Extent;
  24153. /**
  24154. * The unique ID assigned to the TileMatrixSet.
  24155. *
  24156. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileMatrixSet.html#id)
  24157. */
  24158. id: string;
  24159. /**
  24160. * The tiling scheme information for the layer.
  24161. *
  24162. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileMatrixSet.html#tileInfo)
  24163. */
  24164. tileInfo: TileInfo;
  24165. /**
  24166. * Contains information about the tiling scheme for [WMTSSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html).
  24167. *
  24168. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileMatrixSet.html)
  24169. */
  24170. constructor(properties?: TileMatrixSetProperties);
  24171. /**
  24172. * Creates a deep clone of this TileMatrixSet.
  24173. *
  24174. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileMatrixSet.html#clone)
  24175. */
  24176. clone(): TileMatrixSet;
  24177. static fromJSON(json: any): TileMatrixSet;
  24178. }
  24179. /** @deprecated Import the TileMatrixSet class instead. */
  24180. export type TileMatrixSetConstructor = typeof TileMatrixSet;
  24181. interface TileMatrixSetProperties {
  24182. /**
  24183. * The full extent of the TileMatrixSet.
  24184. *
  24185. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileMatrixSet.html#fullExtent)
  24186. */
  24187. fullExtent?: ExtentProperties;
  24188. /**
  24189. * The unique ID assigned to the TileMatrixSet.
  24190. *
  24191. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileMatrixSet.html#id)
  24192. */
  24193. id?: string;
  24194. /**
  24195. * The tiling scheme information for the layer.
  24196. *
  24197. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileMatrixSet.html#tileInfo)
  24198. */
  24199. tileInfo?: TileInfoProperties;
  24200. }
  24201. export interface TimeInfo extends Accessor, JSONSupport {
  24202. }
  24203. export class TimeInfo {
  24204. /**
  24205. * The name of the field containing the end time information.
  24206. *
  24207. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#endField)
  24208. */
  24209. endField: string;
  24210. /**
  24211. * The time extent defines the start time and end time for all data in the layer.
  24212. *
  24213. * @default null
  24214. *
  24215. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#fullTimeExtent)
  24216. */
  24217. fullTimeExtent: TimeExtent;
  24218. /**
  24219. * The time interval defines the granularity of the temporal data and allows you to visualize the data at specified intervals using the [time slider widget](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html).
  24220. *
  24221. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#interval)
  24222. */
  24223. interval: TimeInterval;
  24224. /**
  24225. * The name of the field containing the start time information.
  24226. *
  24227. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#startField)
  24228. */
  24229. startField: string;
  24230. /**
  24231. * Defines information about daylight savings time and the time zone in which data was collected.
  24232. *
  24233. * @default null
  24234. *
  24235. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#timeReference)
  24236. */
  24237. timeReference: TimeReference;
  24238. /**
  24239. * The name of the field used to join or group discrete locations.
  24240. *
  24241. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#trackIdField)
  24242. */
  24243. trackIdField: string;
  24244. /**
  24245. * Time info represents the temporal data of a time-aware layer.
  24246. *
  24247. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html)
  24248. */
  24249. constructor(properties?: TimeInfoProperties);
  24250. /**
  24251. * Creates a deep clone of TimeInfo object.
  24252. *
  24253. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#clone)
  24254. */
  24255. clone(): TimeInfo;
  24256. static fromJSON(json: any): TimeInfo;
  24257. }
  24258. /** @deprecated Import the TimeInfo class instead. */
  24259. export type TimeInfoConstructor = typeof TimeInfo;
  24260. interface TimeInfoProperties {
  24261. /**
  24262. * The name of the field containing the end time information.
  24263. *
  24264. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#endField)
  24265. */
  24266. endField?: string;
  24267. /**
  24268. * The time extent defines the start time and end time for all data in the layer.
  24269. *
  24270. * @default null
  24271. *
  24272. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#fullTimeExtent)
  24273. */
  24274. fullTimeExtent?: TimeExtentProperties;
  24275. /**
  24276. * The time interval defines the granularity of the temporal data and allows you to visualize the data at specified intervals using the [time slider widget](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html).
  24277. *
  24278. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#interval)
  24279. */
  24280. interval?: TimeIntervalProperties;
  24281. /**
  24282. * The name of the field containing the start time information.
  24283. *
  24284. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#startField)
  24285. */
  24286. startField?: string;
  24287. /**
  24288. * Defines information about daylight savings time and the time zone in which data was collected.
  24289. *
  24290. * @default null
  24291. *
  24292. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#timeReference)
  24293. */
  24294. timeReference?: TimeReferenceProperties;
  24295. /**
  24296. * The name of the field used to join or group discrete locations.
  24297. *
  24298. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#trackIdField)
  24299. */
  24300. trackIdField?: string;
  24301. }
  24302. export interface TimeReference extends Accessor, JSONSupport {
  24303. }
  24304. export class TimeReference {
  24305. /**
  24306. * Indicates if the source time zone respects day light savings.
  24307. *
  24308. * @default false
  24309. *
  24310. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeReference.html#respectsDaylightSaving)
  24311. */
  24312. respectsDaylightSaving: boolean;
  24313. /**
  24314. * The timezone of the source data.
  24315. *
  24316. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeReference.html#timezone)
  24317. */
  24318. timezone: string;
  24319. /**
  24320. * TimeReference contains information about how the time was captured when the data was created.
  24321. *
  24322. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeReference.html)
  24323. */
  24324. constructor(properties?: TimeReferenceProperties);
  24325. /**
  24326. * Creates a deep clone of TimeReference object.
  24327. *
  24328. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeReference.html#clone)
  24329. */
  24330. clone(): TimeReference;
  24331. static fromJSON(json: any): TimeReference;
  24332. }
  24333. /** @deprecated Import the TimeReference class instead. */
  24334. export type TimeReferenceConstructor = typeof TimeReference;
  24335. interface TimeReferenceProperties {
  24336. /**
  24337. * Indicates if the source time zone respects day light savings.
  24338. *
  24339. * @default false
  24340. *
  24341. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeReference.html#respectsDaylightSaving)
  24342. */
  24343. respectsDaylightSaving?: boolean;
  24344. /**
  24345. * The timezone of the source data.
  24346. *
  24347. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeReference.html#timezone)
  24348. */
  24349. timezone?: string;
  24350. }
  24351. export interface VideoElement extends Accessor, MediaElementBase {
  24352. }
  24353. export class VideoElement {
  24354. /**
  24355. * The video content referenced in the video element instance.
  24356. *
  24357. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VideoElement.html#content)
  24358. */
  24359. readonly content: any;
  24360. /**
  24361. * The element type.
  24362. *
  24363. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VideoElement.html#type)
  24364. */
  24365. readonly type: "video";
  24366. /**
  24367. * The video element to be added to the [media layer's source](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html#source).
  24368. *
  24369. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VideoElement.html#video)
  24370. */
  24371. video: string | any;
  24372. /**
  24373. * Represents a video element referenced in the MediaLayer's [source](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html#source).
  24374. *
  24375. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VideoElement.html)
  24376. */
  24377. constructor(properties?: VideoElementProperties);
  24378. }
  24379. /** @deprecated Import the VideoElement class instead. */
  24380. export type VideoElementConstructor = typeof VideoElement;
  24381. interface VideoElementProperties extends MediaElementBaseProperties {
  24382. /**
  24383. * The video element to be added to the [media layer's source](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html#source).
  24384. *
  24385. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VideoElement.html#video)
  24386. */
  24387. video?: string | any;
  24388. }
  24389. /**
  24390. * Describes a single variable in the [VoxelLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html).
  24391. *
  24392. * @deprecated This module was moved in 4.25. Use {@link module:esri/layers/voxel/VoxelVariable esri/layers/voxel/VoxelVariable} instead.
  24393. *
  24394. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VoxelVariable.html)
  24395. */
  24396. interface VoxelVariable {
  24397. /**
  24398. * The original data source description of the variable.
  24399. *
  24400. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VoxelVariable.html#description)
  24401. */
  24402. readonly description: string;
  24403. /**
  24404. * The unique identifier for the variable.
  24405. *
  24406. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VoxelVariable.html#id)
  24407. */
  24408. readonly id: number;
  24409. /**
  24410. * The original data source name of the variable.
  24411. *
  24412. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VoxelVariable.html#name)
  24413. */
  24414. readonly name: string;
  24415. /**
  24416. * A description of various properties of the variable as it is represented on the GPU.
  24417. *
  24418. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VoxelVariable.html#renderingFormat)
  24419. */
  24420. readonly renderingFormat: VoxelVariableRenderingFormat;
  24421. /**
  24422. * The variable units.
  24423. *
  24424. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VoxelVariable.html#unit)
  24425. */
  24426. readonly unit: string;
  24427. /**
  24428. * The volumeId of the variable.
  24429. *
  24430. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VoxelVariable.html#volumeId)
  24431. */
  24432. readonly volumeId: number;
  24433. }
  24434. export const VoxelVariable: VoxelVariable;
  24435. export interface VoxelVariableRenderingFormat {
  24436. /**
  24437. * Whether or not the data is discrete or continuous.
  24438. *
  24439. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VoxelVariable.html#renderingFormat)
  24440. */
  24441. continuity: "discrete" | "continuous";
  24442. /**
  24443. * Whether or not the data has a value representing NoData.
  24444. *
  24445. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VoxelVariable.html#renderingFormat)
  24446. */
  24447. hasNoData?: boolean;
  24448. /**
  24449. * The NoData value if there is one.
  24450. *
  24451. * @default 0.0
  24452. *
  24453. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VoxelVariable.html#renderingFormat)
  24454. */
  24455. noData?: number;
  24456. /**
  24457. * Indicates how the data are encoded.
  24458. *
  24459. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VoxelVariable.html#renderingFormat)
  24460. */
  24461. type: "Int8" | "UInt8" | "Int16" | "UInt16" | "Int32" | "UInt32" | "Float32";
  24462. }
  24463. export class VoxelVolumeStyle extends JSONSupport {
  24464. /**
  24465. * The collection of [VoxelDynamicSection](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelDynamicSection.html).
  24466. *
  24467. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VoxelVolumeStyle.html#dynamicSections)
  24468. */
  24469. dynamicSections: Collection<VoxelDynamicSection>;
  24470. /**
  24471. * The collection of [VoxelSlice](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelSlice.html).
  24472. *
  24473. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VoxelVolumeStyle.html#slices)
  24474. */
  24475. slices: Collection<VoxelSlice>;
  24476. /**
  24477. * The vertical exaggeration factor.
  24478. *
  24479. * @default 1
  24480. *
  24481. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VoxelVolumeStyle.html#verticalExaggeration)
  24482. */
  24483. verticalExaggeration: number;
  24484. /**
  24485. * The vertical offset amount.
  24486. *
  24487. * @default 0
  24488. *
  24489. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VoxelVolumeStyle.html#verticalOffset)
  24490. */
  24491. verticalOffset: number;
  24492. /**
  24493. * Id of the volume.
  24494. *
  24495. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VoxelVolumeStyle.html#volumeId)
  24496. */
  24497. readonly volumeId: number;
  24498. /**
  24499. * The VolumeStyle allows you to define rendering properties that apply to the volume itself, such as vertical exaggeration and offset.
  24500. *
  24501. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VoxelVolumeStyle.html)
  24502. */
  24503. constructor(properties?: VoxelVolumeStyleProperties);
  24504. /**
  24505. * Creates a deep clone of this object.
  24506. *
  24507. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VoxelVolumeStyle.html#clone)
  24508. */
  24509. clone(): this;
  24510. static fromJSON(json: any): VoxelVolumeStyle;
  24511. }
  24512. /** @deprecated Import the VoxelVolumeStyle class instead. */
  24513. export type VoxelVolumeStyleConstructor = typeof VoxelVolumeStyle;
  24514. interface VoxelVolumeStyleProperties {
  24515. /**
  24516. * The collection of [VoxelDynamicSection](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelDynamicSection.html).
  24517. *
  24518. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VoxelVolumeStyle.html#dynamicSections)
  24519. */
  24520. dynamicSections?: CollectionProperties<VoxelDynamicSectionProperties>;
  24521. /**
  24522. * The collection of [VoxelSlice](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelSlice.html).
  24523. *
  24524. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VoxelVolumeStyle.html#slices)
  24525. */
  24526. slices?: CollectionProperties<VoxelSliceProperties>;
  24527. /**
  24528. * The vertical exaggeration factor.
  24529. *
  24530. * @default 1
  24531. *
  24532. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VoxelVolumeStyle.html#verticalExaggeration)
  24533. */
  24534. verticalExaggeration?: number;
  24535. /**
  24536. * The vertical offset amount.
  24537. *
  24538. * @default 0
  24539. *
  24540. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-VoxelVolumeStyle.html#verticalOffset)
  24541. */
  24542. verticalOffset?: number;
  24543. }
  24544. export interface WMSSublayer extends Accessor, Identifiable {
  24545. }
  24546. export class WMSSublayer {
  24547. /**
  24548. * Description for the WMS sublayer.
  24549. *
  24550. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#description)
  24551. */
  24552. description: string;
  24553. /**
  24554. * An array of time, elevation and other dimensions for the sublayer.
  24555. *
  24556. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#dimensions)
  24557. */
  24558. readonly dimensions: (TimeDimension | ElevationDimension | GenericDimension)[];
  24559. /**
  24560. * The full extent of the layer.
  24561. *
  24562. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#fullExtent)
  24563. */
  24564. fullExtent: Extent;
  24565. /**
  24566. * The id for the WMS sublayer.
  24567. *
  24568. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#id)
  24569. */
  24570. id: number;
  24571. /**
  24572. * The [WMSLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html) to which the sublayer belongs.
  24573. *
  24574. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#layer)
  24575. */
  24576. layer: WMSLayer;
  24577. /**
  24578. * Indicates whether the layer will be included in the legend.
  24579. *
  24580. * @default true
  24581. *
  24582. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#legendEnabled)
  24583. */
  24584. legendEnabled: boolean;
  24585. /**
  24586. * A string url pointing to a legend image for the layer.
  24587. *
  24588. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#legendUrl)
  24589. */
  24590. legendUrl: string;
  24591. /**
  24592. * The maximum scale (most zoomed in) at which the layer is visible in the view.
  24593. *
  24594. * @default 0
  24595. *
  24596. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#maxScale)
  24597. */
  24598. maxScale: number;
  24599. /**
  24600. * The minimum scale (most zoomed out) at which the layer is visible in the view.
  24601. *
  24602. * @default 0
  24603. *
  24604. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#minScale)
  24605. */
  24606. minScale: number;
  24607. /**
  24608. * Name of the WMS sublayer.
  24609. *
  24610. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#name)
  24611. */
  24612. name: string;
  24613. /**
  24614. * Returns a reference to the parent WMS sublayer or layer.
  24615. *
  24616. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#parent)
  24617. */
  24618. parent: any | any;
  24619. /**
  24620. * Indicates whether to display popups when features in the layer are clicked.
  24621. *
  24622. * @default false
  24623. *
  24624. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#popupEnabled)
  24625. */
  24626. popupEnabled: boolean;
  24627. /**
  24628. * Indicates if the layer can be queried, i.e.
  24629. *
  24630. * @default false
  24631. *
  24632. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#queryable)
  24633. */
  24634. queryable: boolean;
  24635. /**
  24636. * List of spatialReferences (WKID) derived from the CRS elements of the first layer in the GetCapabilities request.
  24637. *
  24638. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#spatialReferences)
  24639. */
  24640. spatialReferences: number[];
  24641. /**
  24642. * A collection of [WMSSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html)s.
  24643. *
  24644. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#sublayers)
  24645. */
  24646. sublayers: Collection<WMSSublayer>;
  24647. /**
  24648. * The title of the WMS sublayer used to identify it in places such as the [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html) and [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) widgets.
  24649. *
  24650. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#title)
  24651. */
  24652. title: string;
  24653. /**
  24654. * Indicates if the layer is visible in the view.
  24655. *
  24656. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#visible)
  24657. */
  24658. visible: boolean;
  24659. /**
  24660. * Represents a sublayer in a [WMSLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html).
  24661. *
  24662. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html)
  24663. */
  24664. constructor(properties?: WMSSublayerProperties);
  24665. /**
  24666. * Creates a deep clone of the WMS sublayer.
  24667. *
  24668. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#clone)
  24669. */
  24670. clone(): WMSSublayer;
  24671. }
  24672. /** @deprecated Import the WMSSublayer class instead. */
  24673. export type WMSSublayerConstructor = typeof WMSSublayer;
  24674. interface WMSSublayerProperties {
  24675. /**
  24676. * Description for the WMS sublayer.
  24677. *
  24678. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#description)
  24679. */
  24680. description?: string;
  24681. /**
  24682. * The full extent of the layer.
  24683. *
  24684. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#fullExtent)
  24685. */
  24686. fullExtent?: ExtentProperties;
  24687. /**
  24688. * The id for the WMS sublayer.
  24689. *
  24690. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#id)
  24691. */
  24692. id?: number;
  24693. /**
  24694. * The [WMSLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html) to which the sublayer belongs.
  24695. *
  24696. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#layer)
  24697. */
  24698. layer?: WMSLayerProperties;
  24699. /**
  24700. * Indicates whether the layer will be included in the legend.
  24701. *
  24702. * @default true
  24703. *
  24704. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#legendEnabled)
  24705. */
  24706. legendEnabled?: boolean;
  24707. /**
  24708. * A string url pointing to a legend image for the layer.
  24709. *
  24710. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#legendUrl)
  24711. */
  24712. legendUrl?: string;
  24713. /**
  24714. * The maximum scale (most zoomed in) at which the layer is visible in the view.
  24715. *
  24716. * @default 0
  24717. *
  24718. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#maxScale)
  24719. */
  24720. maxScale?: number;
  24721. /**
  24722. * The minimum scale (most zoomed out) at which the layer is visible in the view.
  24723. *
  24724. * @default 0
  24725. *
  24726. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#minScale)
  24727. */
  24728. minScale?: number;
  24729. /**
  24730. * Name of the WMS sublayer.
  24731. *
  24732. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#name)
  24733. */
  24734. name?: string;
  24735. /**
  24736. * Returns a reference to the parent WMS sublayer or layer.
  24737. *
  24738. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#parent)
  24739. */
  24740. parent?: any | any;
  24741. /**
  24742. * Indicates whether to display popups when features in the layer are clicked.
  24743. *
  24744. * @default false
  24745. *
  24746. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#popupEnabled)
  24747. */
  24748. popupEnabled?: boolean;
  24749. /**
  24750. * Indicates if the layer can be queried, i.e.
  24751. *
  24752. * @default false
  24753. *
  24754. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#queryable)
  24755. */
  24756. queryable?: boolean;
  24757. /**
  24758. * List of spatialReferences (WKID) derived from the CRS elements of the first layer in the GetCapabilities request.
  24759. *
  24760. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#spatialReferences)
  24761. */
  24762. spatialReferences?: number[];
  24763. /**
  24764. * A collection of [WMSSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html)s.
  24765. *
  24766. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#sublayers)
  24767. */
  24768. sublayers?: CollectionProperties<WMSSublayerProperties>;
  24769. /**
  24770. * The title of the WMS sublayer used to identify it in places such as the [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html) and [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) widgets.
  24771. *
  24772. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#title)
  24773. */
  24774. title?: string;
  24775. /**
  24776. * Indicates if the layer is visible in the view.
  24777. *
  24778. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#visible)
  24779. */
  24780. visible?: boolean;
  24781. }
  24782. /**
  24783. * Elevation dimension information.
  24784. *
  24785. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#ElevationDimension)
  24786. */
  24787. export interface ElevationDimension {
  24788. /**
  24789. * Name of dimensional axis.
  24790. *
  24791. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#ElevationDimension)
  24792. */
  24793. name: "elevation";
  24794. }
  24795. /**
  24796. * Generic dimension information.
  24797. *
  24798. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#GenericDimension)
  24799. */
  24800. export interface GenericDimension {
  24801. /**
  24802. * Name of dimensional axis.
  24803. *
  24804. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#GenericDimension)
  24805. */
  24806. name: string;
  24807. }
  24808. /**
  24809. * Time dimension information.
  24810. *
  24811. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#TimeDimension)
  24812. */
  24813. export interface TimeDimension {
  24814. /**
  24815. * Name of dimensional axis.
  24816. *
  24817. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#TimeDimension)
  24818. */
  24819. name: "time";
  24820. /**
  24821. * Units of dimensional axis.
  24822. *
  24823. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#TimeDimension)
  24824. */
  24825. units: "ISO8601";
  24826. /**
  24827. * Available value(s) for the time dimension.
  24828. *
  24829. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#TimeDimension)
  24830. */
  24831. extent: Date[] | TimeDimensionInterval[];
  24832. /**
  24833. * Default value(s) for the time dimension.
  24834. *
  24835. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#TimeDimension)
  24836. */
  24837. default: Date[] | TimeDimensionInterval[];
  24838. /**
  24839. * Indicates whether multiple values of the dimension may be requested.
  24840. *
  24841. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#TimeDimension)
  24842. */
  24843. multipleValues: boolean;
  24844. /**
  24845. * Indicates whether the nearest value of the dimension will be returned in response to a request for a nearby value.
  24846. *
  24847. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#TimeDimension)
  24848. */
  24849. nearestValue: boolean;
  24850. }
  24851. /**
  24852. * The time dimension interval.
  24853. *
  24854. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#TimeDimensionInterval)
  24855. */
  24856. export interface TimeDimensionInterval {
  24857. /**
  24858. * Start of interval.
  24859. *
  24860. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#TimeDimensionInterval)
  24861. */
  24862. min: Date;
  24863. /**
  24864. * End of interval.
  24865. *
  24866. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#TimeDimensionInterval)
  24867. */
  24868. max: Date;
  24869. /**
  24870. * Interval duration defined by the following properties.
  24871. *
  24872. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#TimeDimensionInterval)
  24873. */
  24874. resolution: TimeDimensionIntervalResolution;
  24875. }
  24876. export interface TimeDimensionIntervalResolution {
  24877. /**
  24878. * Number of years.
  24879. *
  24880. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#TimeDimensionInterval)
  24881. */
  24882. years: number;
  24883. /**
  24884. * Number of months.
  24885. *
  24886. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#TimeDimensionInterval)
  24887. */
  24888. months: number;
  24889. /**
  24890. * Number of days.
  24891. *
  24892. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#TimeDimensionInterval)
  24893. */
  24894. days: number;
  24895. /**
  24896. * Number of hours.
  24897. *
  24898. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#TimeDimensionInterval)
  24899. */
  24900. hours: number;
  24901. /**
  24902. * Number of minutes.
  24903. *
  24904. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#TimeDimensionInterval)
  24905. */
  24906. minutes: number;
  24907. /**
  24908. * Number of seconds.
  24909. *
  24910. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html#TimeDimensionInterval)
  24911. */
  24912. seconds: number;
  24913. }
  24914. export interface WMTSStyle extends Accessor, JSONSupport {
  24915. }
  24916. export class WMTSStyle {
  24917. /**
  24918. * Description for the WMTS style.
  24919. *
  24920. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSStyle.html#description)
  24921. */
  24922. description: string;
  24923. /**
  24924. * The unique ID assigned to the style.
  24925. *
  24926. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSStyle.html#id)
  24927. */
  24928. id: string;
  24929. /**
  24930. * The URL to the legend which gets used in [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) widget.
  24931. *
  24932. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSStyle.html#legendUrl)
  24933. */
  24934. legendUrl: string;
  24935. /**
  24936. * The title of the WMTS style.
  24937. *
  24938. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSStyle.html#title)
  24939. */
  24940. title: string;
  24941. /**
  24942. * Contains information about the WMTS Style for [WMTSSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html).
  24943. *
  24944. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSStyle.html)
  24945. */
  24946. constructor(properties?: WMTSStyleProperties);
  24947. /**
  24948. * Creates a deep clone of the WMTSStyle.
  24949. *
  24950. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSStyle.html#clone)
  24951. */
  24952. clone(): WMTSStyle;
  24953. static fromJSON(json: any): WMTSStyle;
  24954. }
  24955. /** @deprecated Import the WMTSStyle class instead. */
  24956. export type WMTSStyleConstructor = typeof WMTSStyle;
  24957. interface WMTSStyleProperties {
  24958. /**
  24959. * Description for the WMTS style.
  24960. *
  24961. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSStyle.html#description)
  24962. */
  24963. description?: string;
  24964. /**
  24965. * The unique ID assigned to the style.
  24966. *
  24967. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSStyle.html#id)
  24968. */
  24969. id?: string;
  24970. /**
  24971. * The URL to the legend which gets used in [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) widget.
  24972. *
  24973. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSStyle.html#legendUrl)
  24974. */
  24975. legendUrl?: string;
  24976. /**
  24977. * The title of the WMTS style.
  24978. *
  24979. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSStyle.html#title)
  24980. */
  24981. title?: string;
  24982. }
  24983. export interface WMTSSublayer extends Accessor, JSONSupport {
  24984. }
  24985. export class WMTSSublayer {
  24986. /**
  24987. * Description for the WMTS sublayer.
  24988. *
  24989. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html#description)
  24990. */
  24991. description: string;
  24992. /**
  24993. * The full extent of the layer.
  24994. *
  24995. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html#fullExtent)
  24996. */
  24997. fullExtent: Extent;
  24998. /**
  24999. * The unique ID assigned to the sublayer.
  25000. *
  25001. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html#id)
  25002. */
  25003. id: string;
  25004. /**
  25005. * The map image format (MIME type) to request.
  25006. *
  25007. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html#imageFormat)
  25008. */
  25009. imageFormat: string;
  25010. /**
  25011. * Supported image formats as retrieved from the GetCapabilities request.
  25012. *
  25013. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html#imageFormats)
  25014. */
  25015. imageFormats: string[];
  25016. /**
  25017. * The [WMTSLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMTSLayer.html) to which the sublayer belongs.
  25018. *
  25019. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html#layer)
  25020. */
  25021. layer: WMTSLayer;
  25022. /**
  25023. * The [WMTSStyle](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSStyle.html) to request.
  25024. *
  25025. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html#styleId)
  25026. */
  25027. styleId: string;
  25028. /**
  25029. * A collection of supported [WMTSStyle](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSStyle.html)s as retrieved from the GetCapabilities request.
  25030. *
  25031. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html#styles)
  25032. */
  25033. styles: Collection<WMTSStyle>;
  25034. /**
  25035. * The [TileMatrixSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileMatrixSet.html) to request.
  25036. *
  25037. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html#tileMatrixSet)
  25038. */
  25039. tileMatrixSet: TileMatrixSet;
  25040. /**
  25041. * The id of the [TileMatrixSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileMatrixSet.html) to request.
  25042. *
  25043. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html#tileMatrixSetId)
  25044. */
  25045. tileMatrixSetId: string;
  25046. /**
  25047. * A collection of supported [TileMatrixSets](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileMatrixSet.html).
  25048. *
  25049. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html#tileMatrixSets)
  25050. */
  25051. tileMatrixSets: Collection<TileMatrixSet>;
  25052. /**
  25053. * The title of the WMTS sublayer used to identify it in places such as the [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html) and [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) widgets.
  25054. *
  25055. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html#title)
  25056. */
  25057. title: string;
  25058. /**
  25059. * Represents a sublayer in a [WMTSLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMTSLayer.html).
  25060. *
  25061. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html)
  25062. */
  25063. constructor(properties?: WMTSSublayerProperties);
  25064. /**
  25065. * Creates a deep clone of the WMTS sublayer.
  25066. *
  25067. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html#clone)
  25068. */
  25069. clone(): WMTSSublayer;
  25070. static fromJSON(json: any): WMTSSublayer;
  25071. }
  25072. /** @deprecated Import the WMTSSublayer class instead. */
  25073. export type WMTSSublayerConstructor = typeof WMTSSublayer;
  25074. interface WMTSSublayerProperties {
  25075. /**
  25076. * Description for the WMTS sublayer.
  25077. *
  25078. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html#description)
  25079. */
  25080. description?: string;
  25081. /**
  25082. * The full extent of the layer.
  25083. *
  25084. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html#fullExtent)
  25085. */
  25086. fullExtent?: ExtentProperties;
  25087. /**
  25088. * The unique ID assigned to the sublayer.
  25089. *
  25090. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html#id)
  25091. */
  25092. id?: string;
  25093. /**
  25094. * The map image format (MIME type) to request.
  25095. *
  25096. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html#imageFormat)
  25097. */
  25098. imageFormat?: string;
  25099. /**
  25100. * Supported image formats as retrieved from the GetCapabilities request.
  25101. *
  25102. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html#imageFormats)
  25103. */
  25104. imageFormats?: string[];
  25105. /**
  25106. * The [WMTSLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMTSLayer.html) to which the sublayer belongs.
  25107. *
  25108. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html#layer)
  25109. */
  25110. layer?: WMTSLayerProperties;
  25111. /**
  25112. * The [WMTSStyle](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSStyle.html) to request.
  25113. *
  25114. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html#styleId)
  25115. */
  25116. styleId?: string;
  25117. /**
  25118. * A collection of supported [WMTSStyle](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSStyle.html)s as retrieved from the GetCapabilities request.
  25119. *
  25120. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html#styles)
  25121. */
  25122. styles?: CollectionProperties<WMTSStyleProperties>;
  25123. /**
  25124. * The [TileMatrixSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileMatrixSet.html) to request.
  25125. *
  25126. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html#tileMatrixSet)
  25127. */
  25128. tileMatrixSet?: TileMatrixSetProperties;
  25129. /**
  25130. * The id of the [TileMatrixSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileMatrixSet.html) to request.
  25131. *
  25132. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html#tileMatrixSetId)
  25133. */
  25134. tileMatrixSetId?: string;
  25135. /**
  25136. * A collection of supported [TileMatrixSets](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TileMatrixSet.html).
  25137. *
  25138. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html#tileMatrixSets)
  25139. */
  25140. tileMatrixSets?: CollectionProperties<TileMatrixSetProperties>;
  25141. /**
  25142. * The title of the WMTS sublayer used to identify it in places such as the [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html) and [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) widgets.
  25143. *
  25144. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html#title)
  25145. */
  25146. title?: string;
  25147. }
  25148. export interface TileLayer extends Layer, SublayersOwner, ArcGISMapService, ArcGISCachedService, RefreshableLayer, ScaleRangeLayer, PortalLayer, BlendLayer, CustomParametersMixin, APIKeyMixin {
  25149. }
  25150. export class TileLayer {
  25151. /**
  25152. * A flat [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of all the [sublayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html#sublayers) in the TileLayer including the sublayers of its sublayers.
  25153. *
  25154. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html#allSublayers)
  25155. */
  25156. readonly allSublayers: Collection<Sublayer>;
  25157. /**
  25158. * The URL that points to the location of the layer's attribution data.
  25159. *
  25160. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html#attributionDataUrl)
  25161. */
  25162. readonly attributionDataUrl: string;
  25163. /**
  25164. * Indicates if the layer has attribution data.
  25165. *
  25166. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html#hasAttributionData)
  25167. */
  25168. readonly hasAttributionData: boolean;
  25169. /**
  25170. * Resampling is enabled by default in 2D [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) and 3D [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  25171. *
  25172. * @default true
  25173. *
  25174. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html#resampling)
  25175. */
  25176. resampling: boolean;
  25177. /**
  25178. * The [tiled map service's metadata JSON](https://developers.arcgis.com/rest/services-reference/map-service.htm) exposed by the ArcGIS REST API.
  25179. *
  25180. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html#sourceJSON)
  25181. */
  25182. sourceJSON: any;
  25183. /**
  25184. * A [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of [Sublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html) objects.
  25185. *
  25186. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html#sublayers)
  25187. */
  25188. readonly sublayers: Collection<Sublayer>;
  25189. /**
  25190. * An array of tile servers used for changing map tiles.
  25191. *
  25192. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html#tileServers)
  25193. */
  25194. tileServers: string[];
  25195. readonly type: "tile";
  25196. /**
  25197. * The URL of the REST endpoint of the layer.
  25198. *
  25199. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html#url)
  25200. */
  25201. url: string;
  25202. /**
  25203. * The TileLayer allows you work with a cached [map service](https://enterprise.arcgis.com/en/server/latest/publish-services/windows/what-is-a-map-service.htm) exposed by the ArcGIS Server REST API and add it to a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) as a tile layer.
  25204. *
  25205. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html)
  25206. */
  25207. constructor(properties?: TileLayerProperties);
  25208. /**
  25209. * This method fetches a tile for the given level, row and column present in the view.
  25210. *
  25211. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html#fetchTile)
  25212. */
  25213. fetchTile(level: number, row: number, col: number, options?: TileLayerFetchTileOptions): Promise<HTMLImageElement>;
  25214. /**
  25215. * This method returns a URL to a tile for a given level, row and column.
  25216. *
  25217. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html#getTileUrl)
  25218. */
  25219. getTileUrl(level: number, row: number, col: number): string;
  25220. on(name: "refresh", eventHandler: TileLayerRefreshEventHandler): IHandle;
  25221. on(name: "layerview-create", eventHandler: TileLayerLayerviewCreateEventHandler): IHandle;
  25222. on(name: "layerview-create-error", eventHandler: TileLayerLayerviewCreateErrorEventHandler): IHandle;
  25223. on(name: "layerview-destroy", eventHandler: TileLayerLayerviewDestroyEventHandler): IHandle;
  25224. static fromJSON(json: any): TileLayer;
  25225. }
  25226. /** @deprecated Import the TileLayer class instead. */
  25227. export type TileLayerConstructor = typeof TileLayer;
  25228. interface TileLayerProperties extends LayerProperties, ArcGISMapServiceProperties, ArcGISCachedServiceProperties, RefreshableLayerProperties, ScaleRangeLayerProperties, PortalLayerProperties, BlendLayerProperties, CustomParametersMixinProperties, APIKeyMixinProperties {
  25229. /**
  25230. * Resampling is enabled by default in 2D [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) and 3D [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  25231. *
  25232. * @default true
  25233. *
  25234. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html#resampling)
  25235. */
  25236. resampling?: boolean;
  25237. /**
  25238. * The [tiled map service's metadata JSON](https://developers.arcgis.com/rest/services-reference/map-service.htm) exposed by the ArcGIS REST API.
  25239. *
  25240. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html#sourceJSON)
  25241. */
  25242. sourceJSON?: any;
  25243. /**
  25244. * An array of tile servers used for changing map tiles.
  25245. *
  25246. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html#tileServers)
  25247. */
  25248. tileServers?: string[];
  25249. /**
  25250. * The URL of the REST endpoint of the layer.
  25251. *
  25252. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html#url)
  25253. */
  25254. url?: string;
  25255. }
  25256. export interface TileLayerLayerviewCreateErrorEvent {
  25257. error: Error;
  25258. view: View;
  25259. }
  25260. export interface TileLayerLayerviewCreateEvent {
  25261. layerView: LayerView;
  25262. view: View;
  25263. }
  25264. export interface TileLayerLayerviewDestroyEvent {
  25265. layerView: LayerView;
  25266. view: View;
  25267. }
  25268. export interface TileLayerRefreshEvent {
  25269. dataChanged: boolean;
  25270. }
  25271. export interface TileLayerFetchTileOptions {
  25272. /**
  25273. * [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) allows for cancelable requests.
  25274. *
  25275. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html#fetchTile)
  25276. */
  25277. signal?: AbortSignal;
  25278. }
  25279. export class UnknownLayer extends Layer {
  25280. readonly type: "unknown";
  25281. /**
  25282. * Represents a layer whose type could not be determined.
  25283. *
  25284. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-UnknownLayer.html)
  25285. */
  25286. constructor(properties?: UnknownLayerProperties);
  25287. }
  25288. /** @deprecated Import the UnknownLayer class instead. */
  25289. export type UnknownLayerConstructor = typeof UnknownLayer;
  25290. interface UnknownLayerProperties extends LayerProperties {
  25291. }
  25292. export class UnsupportedLayer extends Layer {
  25293. readonly type: "unsupported";
  25294. /**
  25295. * Represents an unsupported layer instance.
  25296. *
  25297. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-UnsupportedLayer.html)
  25298. */
  25299. constructor(properties?: UnsupportedLayerProperties);
  25300. }
  25301. /** @deprecated Import the UnsupportedLayer class instead. */
  25302. export type UnsupportedLayerConstructor = typeof UnsupportedLayer;
  25303. interface UnsupportedLayerProperties extends LayerProperties {
  25304. }
  25305. export interface VectorTileLayer extends Layer, ScaleRangeLayer, BlendLayer {
  25306. }
  25307. export class VectorTileLayer {
  25308. /**
  25309. * An authorization string used to access a resource or service.
  25310. *
  25311. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#apiKey)
  25312. */
  25313. apiKey: string;
  25314. /**
  25315. * The URL that points to the location of the layer's attribution data.
  25316. *
  25317. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#attributionDataUrl)
  25318. */
  25319. readonly attributionDataUrl: string;
  25320. /**
  25321. * Indicates the layer's supported capabilities.
  25322. *
  25323. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#capabilities)
  25324. */
  25325. readonly capabilities: VectorTileLayerCapabilities;
  25326. /**
  25327. * The current style information of the VectorTileLayer.
  25328. *
  25329. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#currentStyleInfo)
  25330. */
  25331. readonly currentStyleInfo: VectorTileLayerCurrentStyleInfo;
  25332. /**
  25333. * A list of custom parameters appended to the URL of all resources fetched by the layer.
  25334. *
  25335. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#customParameters)
  25336. */
  25337. customParameters: any;
  25338. /**
  25339. * The portal item from which the layer is loaded.
  25340. *
  25341. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#portalItem)
  25342. */
  25343. portalItem: PortalItem;
  25344. /**
  25345. * The spatial reference of the layer.
  25346. *
  25347. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#spatialReference)
  25348. */
  25349. spatialReference: SpatialReference;
  25350. /**
  25351. * A style JSON object of vector tiles that will be used to render the layer.
  25352. *
  25353. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#style)
  25354. */
  25355. style: any;
  25356. /**
  25357. * The tiling scheme information for the layer.
  25358. *
  25359. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#tileInfo)
  25360. */
  25361. tileInfo: TileInfo;
  25362. readonly type: "vector-tile";
  25363. /**
  25364. * The URL to the vector tile service, or the URL to the style resource of vector tiles that will be used to render the layer.
  25365. *
  25366. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#url)
  25367. */
  25368. url: string;
  25369. /**
  25370. * VectorTileLayer accesses cached tiles of data and renders it in vector format.
  25371. *
  25372. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html)
  25373. */
  25374. constructor(properties?: VectorTileLayerProperties);
  25375. /**
  25376. * Deletes the specified [style layer](https://www.mapbox.com/mapbox-gl-js/style-spec/#layers) from the VectorTileLayer's [currentStyleInfo.style](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#currentStyleInfo).
  25377. *
  25378. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#deleteStyleLayer)
  25379. */
  25380. deleteStyleLayer(layerId: string): void;
  25381. /**
  25382. * Returns an instance of [layout](https://www.mapbox.com/mapbox-gl-js/style-spec/#layer-layout) properties for the specified [style layer](https://www.mapbox.com/mapbox-gl-js/style-spec/#layers).
  25383. *
  25384. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#getLayoutProperties)
  25385. */
  25386. getLayoutProperties(layerId: string): any;
  25387. /**
  25388. * Returns an instance of [paint](https://www.mapbox.com/mapbox-gl-js/style-spec/#layer-paint) properties for the specified [style layer](https://www.mapbox.com/mapbox-gl-js/style-spec/#layers).
  25389. *
  25390. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#getPaintProperties)
  25391. */
  25392. getPaintProperties(layerId: string): any;
  25393. /**
  25394. * Returns an instance of a [style layer](https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/) from the VectorTileLayer's [currentStyleInfo.style](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#currentStyleInfo).
  25395. *
  25396. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#getStyleLayer)
  25397. */
  25398. getStyleLayer(layerId: string): any;
  25399. /**
  25400. * Returns the layer [id](https://www.mapbox.com/mapbox-gl-js/style-spec/#layer-id) of the [style layer](https://www.mapbox.com/mapbox-gl-js/style-spec/#layers) based on its index.
  25401. *
  25402. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#getStyleLayerId)
  25403. */
  25404. getStyleLayerId(index: number): string;
  25405. /**
  25406. * Returns the index of the [style layer](https://www.mapbox.com/mapbox-gl-js/style-spec/#layers) from the VectorTileLayer's [currentStyleInfo.style](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#currentStyleInfo).
  25407. *
  25408. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#getStyleLayerIndex)
  25409. */
  25410. getStyleLayerIndex(layerId: string): number;
  25411. /**
  25412. * Gets the visibility of the specified [style layer](https://www.mapbox.com/mapbox-gl-js/style-spec/#layers) from the VectorTileLayer's [currentStyleInfo.style](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#currentStyleInfo).
  25413. *
  25414. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#getStyleLayerVisibility)
  25415. */
  25416. getStyleLayerVisibility(layerId: string): string;
  25417. /**
  25418. * Loads a style to render a layer from the specified URL to a style resource or style JSON object.
  25419. *
  25420. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#loadStyle)
  25421. */
  25422. loadStyle(style: string | any, options?: VectorTileLayerLoadStyleOptions): Promise<any>;
  25423. /**
  25424. * Updates the [layout](https://www.mapbox.com/mapbox-gl-js/style-spec/#layer-layout) properties to the specified [style layer](https://www.mapbox.com/mapbox-gl-js/style-spec/#layers).
  25425. *
  25426. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#setLayoutProperties)
  25427. */
  25428. setLayoutProperties(layerId: string, layout: any): void;
  25429. /**
  25430. * Updates the [paint](https://www.mapbox.com/mapbox-gl-js/style-spec/#layer-paint) properties to the specified [style layer](https://www.mapbox.com/mapbox-gl-js/style-spec/#layers).
  25431. *
  25432. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#setPaintProperties)
  25433. */
  25434. setPaintProperties(layerId: string, painter: any): void;
  25435. /**
  25436. * Changes the sprite source associated with the VectorTileLayer's [current style](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#currentStyleInfo).
  25437. *
  25438. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#setSpriteSource)
  25439. */
  25440. setSpriteSource(spriteSourceInfo: SpriteSourceImageInfo | SpriteSourceUrlInfo): Promise<SpriteSource>;
  25441. /**
  25442. * Changes the layer properties of the specified [style layer](https://www.mapbox.com/mapbox-gl-js/style-spec/#layers).
  25443. *
  25444. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#setStyleLayer)
  25445. */
  25446. setStyleLayer(layer: any, index?: number): void;
  25447. /**
  25448. * Toggles the visibility of the specified [style layer](https://www.mapbox.com/mapbox-gl-js/style-spec/#layers) in the VectorTileLayer's [currentStyleInfo.style](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#currentStyleInfo).
  25449. *
  25450. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#setStyleLayerVisibility)
  25451. */
  25452. setStyleLayerVisibility(layerId: string, visibility: "none" | "visible"): void;
  25453. static fromJSON(json: any): VectorTileLayer;
  25454. }
  25455. /** @deprecated Import the VectorTileLayer class instead. */
  25456. export type VectorTileLayerConstructor = typeof VectorTileLayer;
  25457. interface VectorTileLayerProperties extends LayerProperties, ScaleRangeLayerProperties, BlendLayerProperties {
  25458. /**
  25459. * An authorization string used to access a resource or service.
  25460. *
  25461. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#apiKey)
  25462. */
  25463. apiKey?: string;
  25464. /**
  25465. * A list of custom parameters appended to the URL of all resources fetched by the layer.
  25466. *
  25467. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#customParameters)
  25468. */
  25469. customParameters?: any;
  25470. /**
  25471. * The portal item from which the layer is loaded.
  25472. *
  25473. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#portalItem)
  25474. */
  25475. portalItem?: PortalItemProperties;
  25476. /**
  25477. * The spatial reference of the layer.
  25478. *
  25479. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#spatialReference)
  25480. */
  25481. spatialReference?: SpatialReferenceProperties;
  25482. /**
  25483. * A style JSON object of vector tiles that will be used to render the layer.
  25484. *
  25485. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#style)
  25486. */
  25487. style?: any;
  25488. /**
  25489. * The tiling scheme information for the layer.
  25490. *
  25491. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#tileInfo)
  25492. */
  25493. tileInfo?: TileInfoProperties;
  25494. /**
  25495. * The URL to the vector tile service, or the URL to the style resource of vector tiles that will be used to render the layer.
  25496. *
  25497. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#url)
  25498. */
  25499. url?: string;
  25500. }
  25501. export type GetSpriteInfo = (name: string) => SpriteInfo;
  25502. /**
  25503. * Defines an image object that can be used when setting [SpriteSourceImageInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteSourceImageInfo).
  25504. *
  25505. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#ImageObject)
  25506. */
  25507. export interface ImageObject {
  25508. /**
  25509. * The width of the sprite.
  25510. *
  25511. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#ImageObject)
  25512. */
  25513. width: number;
  25514. /**
  25515. * The height of the sprite.
  25516. *
  25517. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#ImageObject)
  25518. */
  25519. height: number;
  25520. /**
  25521. * The image data for the sprite.
  25522. *
  25523. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#ImageObject)
  25524. */
  25525. data: ArrayBuffer;
  25526. }
  25527. /**
  25528. * A description of each image contained in the sprite.
  25529. *
  25530. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteInfo)
  25531. */
  25532. export interface SpriteInfo {
  25533. /**
  25534. * The x position of the upper-left corner of the sprite.
  25535. *
  25536. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteInfo)
  25537. */
  25538. x: number;
  25539. /**
  25540. * The y position of the upper-left corner of the sprite.
  25541. *
  25542. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteInfo)
  25543. */
  25544. y: number;
  25545. /**
  25546. * The height of the sprite.
  25547. *
  25548. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteInfo)
  25549. */
  25550. height: number;
  25551. /**
  25552. * The width of the sprite.
  25553. *
  25554. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteInfo)
  25555. */
  25556. width: number;
  25557. /**
  25558. * The pixel ratio of the sprite.
  25559. *
  25560. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteInfo)
  25561. */
  25562. pixelRatio?: number;
  25563. /**
  25564. * Whether the sprite is SDF or not.
  25565. *
  25566. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteInfo)
  25567. */
  25568. sdf?: number;
  25569. }
  25570. /**
  25571. * The sprite source returned from the [setSpriteSource](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#setSpriteSource) method.
  25572. *
  25573. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteSource)
  25574. */
  25575. export interface SpriteSource {
  25576. /**
  25577. * The base URL of the sprites source.
  25578. *
  25579. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteSource)
  25580. */
  25581. baseUrl: string;
  25582. /**
  25583. * Indicates whether the sprite source is loaded successfully.
  25584. *
  25585. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteSource)
  25586. */
  25587. loadStatus: any | any | any | any;
  25588. /**
  25589. * The device pixel ratio of the sprite source.
  25590. *
  25591. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteSource)
  25592. */
  25593. devicePixelRatio: number;
  25594. /**
  25595. * The height in pixels of the sprite source.
  25596. *
  25597. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteSource)
  25598. */
  25599. height: number;
  25600. /**
  25601. * The width in pixels of the sprite source.
  25602. *
  25603. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteSource)
  25604. */
  25605. width: number;
  25606. /**
  25607. * The sprite image data.
  25608. *
  25609. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteSource)
  25610. */
  25611. image: Uint8Array;
  25612. /**
  25613. * Returns the sprite info for the given sprite.
  25614. *
  25615. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteSource)
  25616. */
  25617. getSpriteInfo: GetSpriteInfo;
  25618. }
  25619. /**
  25620. * Defines sprite source from an image and index json when the [setSpriteSource()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#setSpriteSource) method is called.
  25621. *
  25622. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteSourceImageInfo)
  25623. */
  25624. export interface SpriteSourceImageInfo {
  25625. /**
  25626. * For SpriteSourceImageInfo the type is always "image".
  25627. *
  25628. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteSourceImageInfo)
  25629. */
  25630. type: string;
  25631. /**
  25632. * The sprite source url.
  25633. *
  25634. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteSourceImageInfo)
  25635. */
  25636. spriteUrl?: string;
  25637. /**
  25638. * The device pixel ratio of the sprite source.
  25639. *
  25640. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteSourceImageInfo)
  25641. */
  25642. pixelRatio?: number;
  25643. /**
  25644. * Sprite source for non high-DPI devices.
  25645. *
  25646. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteSourceImageInfo)
  25647. */
  25648. spriteSource1x?: SpriteSourceImageInfoSpriteSource1x;
  25649. /**
  25650. * Sprite source for high-DPI devices.
  25651. *
  25652. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteSourceImageInfo)
  25653. */
  25654. spriteSource2x?: SpriteSourceImageInfoSpriteSource2x;
  25655. }
  25656. /**
  25657. * The URL of the sprite source to be fetched when the [setSpriteSource()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#setSpriteSource) method is called.
  25658. *
  25659. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteSourceUrlInfo)
  25660. */
  25661. export interface SpriteSourceUrlInfo {
  25662. /**
  25663. * For SpriteSourceUrlInfo the type is always "url".
  25664. *
  25665. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteSourceUrlInfo)
  25666. */
  25667. type: string;
  25668. /**
  25669. * The sprite source url.
  25670. *
  25671. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteSourceUrlInfo)
  25672. */
  25673. spriteUrl: string;
  25674. /**
  25675. * The device pixel ratio used to fetch the appropriate sprite source.
  25676. *
  25677. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteSourceUrlInfo)
  25678. */
  25679. pixelRatio?: number;
  25680. /**
  25681. * The sprite image format.
  25682. *
  25683. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteSourceUrlInfo)
  25684. */
  25685. spriteFormat?: "png" | "webp";
  25686. }
  25687. export interface VectorTileLayerCapabilities {
  25688. /**
  25689. * Indicates options supported by the exportTiles operation.
  25690. *
  25691. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#capabilities)
  25692. */
  25693. exportTiles: any;
  25694. exportMap: VectorTileLayerCapabilitiesExportMap;
  25695. /**
  25696. * Indicates operations that can be performed on the service.
  25697. *
  25698. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#capabilities)
  25699. */
  25700. operations: VectorTileLayerCapabilitiesOperations;
  25701. }
  25702. export interface VectorTileLayerCapabilitiesExportMap {
  25703. /**
  25704. * Specifies the maximum number of tiles that can be exported to a cache dataset or a tile package.
  25705. *
  25706. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#capabilities)
  25707. */
  25708. maxExportTilesCount: number;
  25709. }
  25710. export interface VectorTileLayerCapabilitiesOperations {
  25711. /**
  25712. * Indicates if the tiles from the service can be exported.
  25713. *
  25714. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#capabilities)
  25715. */
  25716. supportsExportTiles: boolean;
  25717. /**
  25718. * Indicates if the service exposes a tile map that describes the presence of tiles.
  25719. *
  25720. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#capabilities)
  25721. */
  25722. supportsTileMap: boolean;
  25723. }
  25724. export interface VectorTileLayerCurrentStyleInfo {
  25725. /**
  25726. * Absolute URL for a vector tile service.
  25727. *
  25728. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#currentStyleInfo)
  25729. */
  25730. serviceUrl: string;
  25731. /**
  25732. * Absolute URL for vector tile service style.
  25733. *
  25734. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#currentStyleInfo)
  25735. */
  25736. styleUrl: string;
  25737. /**
  25738. * Absolute URL for sprites included in a style.
  25739. *
  25740. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#currentStyleInfo)
  25741. */
  25742. spriteUrl: string;
  25743. /**
  25744. * Absolute template URL for font sets included in a style.
  25745. *
  25746. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#currentStyleInfo)
  25747. */
  25748. glyphsUrl: string;
  25749. /**
  25750. * Style JSON object for vector tiles.
  25751. *
  25752. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#currentStyleInfo)
  25753. */
  25754. style: any;
  25755. /**
  25756. * Vector tile service information.
  25757. *
  25758. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#currentStyleInfo)
  25759. */
  25760. layerDefinition: any;
  25761. }
  25762. export interface VectorTileLayerLoadStyleOptions {
  25763. /**
  25764. * Signal object that can be used to abort the asynchronous task.
  25765. *
  25766. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#loadStyle)
  25767. */
  25768. signal?: AbortSignal;
  25769. }
  25770. export interface SpriteSourceImageInfoSpriteSource1x {
  25771. /**
  25772. * Image containing sprite data for non high-DPI devices.
  25773. *
  25774. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteSourceImageInfo)
  25775. */
  25776. image: HTMLImageElement | HTMLCanvasElement | any | ImageData | ImageObject;
  25777. /**
  25778. * The JSON representation of an index file containing a description of each image in the sprite for non high-DPI devices.
  25779. *
  25780. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteSourceImageInfo)
  25781. */
  25782. json: SpriteInfo;
  25783. }
  25784. export interface SpriteSourceImageInfoSpriteSource2x {
  25785. /**
  25786. * Image containing sprite data for high-DPI devices.
  25787. *
  25788. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteSourceImageInfo)
  25789. */
  25790. image: HTMLImageElement | HTMLCanvasElement | any | ImageData | ImageObject;
  25791. /**
  25792. * The JSON representation of an index file containing a description of each image in the sprite for high-DPI devices.
  25793. *
  25794. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VectorTileLayer.html#SpriteSourceImageInfo)
  25795. */
  25796. json: SpriteInfo;
  25797. }
  25798. export class VoxelDynamicSection extends JSONSupport {
  25799. /**
  25800. * Whether or not the dynamic section is enabled.
  25801. *
  25802. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelDynamicSection.html#enabled)
  25803. */
  25804. enabled: boolean;
  25805. /**
  25806. * The label for the dynamic section.
  25807. *
  25808. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelDynamicSection.html#label)
  25809. */
  25810. label: string;
  25811. /**
  25812. * The orientation angle (in the degrees) of the dynamic section plane.
  25813. *
  25814. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelDynamicSection.html#orientation)
  25815. */
  25816. orientation: number;
  25817. /**
  25818. * A point on the dynamic section plane specified as [x ,y, z] in voxel space for XYZ and XYZT volumes and as [x, y, t] for XYT volumes.
  25819. *
  25820. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelDynamicSection.html#point)
  25821. */
  25822. point: number[];
  25823. /**
  25824. * The tilt angle (in degrees) of the dynamic section plane.
  25825. *
  25826. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelDynamicSection.html#tilt)
  25827. */
  25828. tilt: number;
  25829. /**
  25830. * The VoxelDynamicSection allows you to define the properties of an individual dynamic section.
  25831. *
  25832. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelDynamicSection.html)
  25833. */
  25834. constructor(properties?: VoxelDynamicSectionProperties);
  25835. /**
  25836. * Creates a deep clone of this object.
  25837. *
  25838. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelDynamicSection.html#clone)
  25839. */
  25840. clone(): this;
  25841. static fromJSON(json: any): VoxelDynamicSection;
  25842. }
  25843. /** @deprecated Import the VoxelDynamicSection class instead. */
  25844. export type VoxelDynamicSectionConstructor = typeof VoxelDynamicSection;
  25845. interface VoxelDynamicSectionProperties {
  25846. /**
  25847. * Whether or not the dynamic section is enabled.
  25848. *
  25849. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelDynamicSection.html#enabled)
  25850. */
  25851. enabled?: boolean;
  25852. /**
  25853. * The label for the dynamic section.
  25854. *
  25855. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelDynamicSection.html#label)
  25856. */
  25857. label?: string;
  25858. /**
  25859. * The orientation angle (in the degrees) of the dynamic section plane.
  25860. *
  25861. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelDynamicSection.html#orientation)
  25862. */
  25863. orientation?: number;
  25864. /**
  25865. * A point on the dynamic section plane specified as [x ,y, z] in voxel space for XYZ and XYZT volumes and as [x, y, t] for XYT volumes.
  25866. *
  25867. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelDynamicSection.html#point)
  25868. */
  25869. point?: number[];
  25870. /**
  25871. * The tilt angle (in degrees) of the dynamic section plane.
  25872. *
  25873. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelDynamicSection.html#tilt)
  25874. */
  25875. tilt?: number;
  25876. }
  25877. export class VoxelSlice extends JSONSupport {
  25878. /**
  25879. * Whether or not the slice is enabled.
  25880. *
  25881. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelSlice.html#enabled)
  25882. */
  25883. enabled: boolean;
  25884. /**
  25885. * The label for the slice.
  25886. *
  25887. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelSlice.html#label)
  25888. */
  25889. label: string;
  25890. /**
  25891. * The orientation angle (in the degrees) of the slice plane.
  25892. *
  25893. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelSlice.html#orientation)
  25894. */
  25895. orientation: number;
  25896. /**
  25897. * A point on the slice plane specified as [x ,y, z] in voxel space for XYZ and XYZT volumes and as [x, y, t] for XYT volumes.
  25898. *
  25899. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelSlice.html#point)
  25900. */
  25901. point: number[];
  25902. /**
  25903. * The tilt angle (in degrees) of the slice plane.
  25904. *
  25905. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelSlice.html#tilt)
  25906. */
  25907. tilt: number;
  25908. /**
  25909. * The VoxelSlice allows you to define the properties of an individual slice.
  25910. *
  25911. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelSlice.html)
  25912. */
  25913. constructor(properties?: VoxelSliceProperties);
  25914. /**
  25915. * Creates a deep clone of this object.
  25916. *
  25917. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelSlice.html#clone)
  25918. */
  25919. clone(): this;
  25920. static fromJSON(json: any): VoxelSlice;
  25921. }
  25922. /** @deprecated Import the VoxelSlice class instead. */
  25923. export type VoxelSliceConstructor = typeof VoxelSlice;
  25924. interface VoxelSliceProperties {
  25925. /**
  25926. * Whether or not the slice is enabled.
  25927. *
  25928. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelSlice.html#enabled)
  25929. */
  25930. enabled?: boolean;
  25931. /**
  25932. * The label for the slice.
  25933. *
  25934. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelSlice.html#label)
  25935. */
  25936. label?: string;
  25937. /**
  25938. * The orientation angle (in the degrees) of the slice plane.
  25939. *
  25940. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelSlice.html#orientation)
  25941. */
  25942. orientation?: number;
  25943. /**
  25944. * A point on the slice plane specified as [x ,y, z] in voxel space for XYZ and XYZT volumes and as [x, y, t] for XYT volumes.
  25945. *
  25946. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelSlice.html#point)
  25947. */
  25948. point?: number[];
  25949. /**
  25950. * The tilt angle (in degrees) of the slice plane.
  25951. *
  25952. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelSlice.html#tilt)
  25953. */
  25954. tilt?: number;
  25955. }
  25956. export class VoxelTransferFunctionStyle extends JSONSupport {
  25957. /**
  25958. * A collection of colors and normalized positions which describe how to colorize the data values that are within the [stretchRange](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelTransferFunctionStyle.html#stretchRange).
  25959. *
  25960. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelTransferFunctionStyle.html#colorStops)
  25961. */
  25962. colorStops: Collection<VoxelColorStop>;
  25963. /**
  25964. * A collection of transparency values and normalized positions which describe how to apply transparency to the data values that are within the [stretchRange](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelTransferFunctionStyle.html#stretchRange).
  25965. *
  25966. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelTransferFunctionStyle.html#opacityStops)
  25967. */
  25968. opacityStops: Collection<VoxelOpacityStop>;
  25969. /**
  25970. * Defines the data range which will be rendered.
  25971. *
  25972. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelTransferFunctionStyle.html#rangeFilter)
  25973. */
  25974. rangeFilter: VoxelRangeFilter;
  25975. /**
  25976. * The data range to apply the color and alpha stops to, specified as [minimum, maximum] in the units of the data.
  25977. *
  25978. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelTransferFunctionStyle.html#stretchRange)
  25979. */
  25980. stretchRange: number[];
  25981. /**
  25982. * The VoxelTransferFunctionStyle allows you to define how an individual continuous variable is rendered as a volume or as sections.
  25983. *
  25984. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelTransferFunctionStyle.html)
  25985. */
  25986. constructor(properties?: VoxelTransferFunctionStyleProperties);
  25987. /**
  25988. * Creates a deep clone of this object.
  25989. *
  25990. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelTransferFunctionStyle.html#clone)
  25991. */
  25992. clone(): this;
  25993. static fromJSON(json: any): VoxelTransferFunctionStyle;
  25994. }
  25995. /** @deprecated Import the VoxelTransferFunctionStyle class instead. */
  25996. export type VoxelTransferFunctionStyleConstructor = typeof VoxelTransferFunctionStyle;
  25997. interface VoxelTransferFunctionStyleProperties {
  25998. /**
  25999. * A collection of colors and normalized positions which describe how to colorize the data values that are within the [stretchRange](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelTransferFunctionStyle.html#stretchRange).
  26000. *
  26001. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelTransferFunctionStyle.html#colorStops)
  26002. */
  26003. colorStops?: CollectionProperties<VoxelColorStop>;
  26004. /**
  26005. * A collection of transparency values and normalized positions which describe how to apply transparency to the data values that are within the [stretchRange](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelTransferFunctionStyle.html#stretchRange).
  26006. *
  26007. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelTransferFunctionStyle.html#opacityStops)
  26008. */
  26009. opacityStops?: CollectionProperties<VoxelOpacityStop>;
  26010. /**
  26011. * Defines the data range which will be rendered.
  26012. *
  26013. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelTransferFunctionStyle.html#rangeFilter)
  26014. */
  26015. rangeFilter?: VoxelRangeFilter;
  26016. /**
  26017. * The data range to apply the color and alpha stops to, specified as [minimum, maximum] in the units of the data.
  26018. *
  26019. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelTransferFunctionStyle.html#stretchRange)
  26020. */
  26021. stretchRange?: number[];
  26022. }
  26023. /**
  26024. * VoxelColorStop defines a color and a normalized position.
  26025. *
  26026. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelTransferFunctionStyle.html#VoxelColorStop)
  26027. */
  26028. export interface VoxelColorStop {
  26029. /**
  26030. * The color to render data at this position with.
  26031. *
  26032. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelTransferFunctionStyle.html#VoxelColorStop)
  26033. */
  26034. color: Color;
  26035. /**
  26036. * The normalized (i.e.
  26037. *
  26038. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelTransferFunctionStyle.html#VoxelColorStop)
  26039. */
  26040. position: number;
  26041. }
  26042. /**
  26043. * VoxelOpacityStop defines an opacity value and a normalized position.
  26044. *
  26045. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelTransferFunctionStyle.html#VoxelOpacityStop)
  26046. */
  26047. export interface VoxelOpacityStop {
  26048. /**
  26049. * The opacity value (0 = transparent, 1 = opaque) to apply to data at this position.
  26050. *
  26051. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelTransferFunctionStyle.html#VoxelOpacityStop)
  26052. */
  26053. opacity: number;
  26054. /**
  26055. * The normalized (i.e.
  26056. *
  26057. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelTransferFunctionStyle.html#VoxelOpacityStop)
  26058. */
  26059. position: number;
  26060. }
  26061. /**
  26062. * VoxelRangeFilter defines the data range which will be rendered.
  26063. *
  26064. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelTransferFunctionStyle.html#VoxelRangeFilter)
  26065. */
  26066. export interface VoxelRangeFilter {
  26067. /**
  26068. * Whether or not the filter is enabled.
  26069. *
  26070. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelTransferFunctionStyle.html#VoxelRangeFilter)
  26071. */
  26072. enabled?: boolean;
  26073. /**
  26074. * The data range to render, specified as [minimum, maximum].
  26075. *
  26076. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelTransferFunctionStyle.html#VoxelRangeFilter)
  26077. */
  26078. range: number[];
  26079. }
  26080. /**
  26081. * Describes a single variable in the [VoxelLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html).
  26082. *
  26083. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariable.html)
  26084. */
  26085. interface voxelVoxelVariable {
  26086. /**
  26087. * The original data source description of the variable.
  26088. *
  26089. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariable.html#description)
  26090. */
  26091. readonly description: string;
  26092. /**
  26093. * The unique identifier for the variable.
  26094. *
  26095. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariable.html#id)
  26096. */
  26097. readonly id: number;
  26098. /**
  26099. * The original data source name of the variable.
  26100. *
  26101. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariable.html#name)
  26102. */
  26103. readonly name: string;
  26104. /**
  26105. * A description of various properties of the variable as it is represented on the GPU.
  26106. *
  26107. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariable.html#renderingFormat)
  26108. */
  26109. readonly renderingFormat: voxelVoxelVariableRenderingFormat;
  26110. /**
  26111. * The variable units.
  26112. *
  26113. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariable.html#unit)
  26114. */
  26115. readonly unit: string;
  26116. /**
  26117. * The volumeId of the variable.
  26118. *
  26119. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariable.html#volumeId)
  26120. */
  26121. readonly volumeId: number;
  26122. }
  26123. export const voxelVoxelVariable: voxelVoxelVariable;
  26124. export interface voxelVoxelVariableRenderingFormat {
  26125. /**
  26126. * Whether or not the data is discrete or continuous.
  26127. *
  26128. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariable.html#renderingFormat)
  26129. */
  26130. continuity: "discrete" | "continuous";
  26131. /**
  26132. * Whether or not the data has a value representing NoData.
  26133. *
  26134. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariable.html#renderingFormat)
  26135. */
  26136. hasNoData?: boolean;
  26137. /**
  26138. * The NoData value if there is one.
  26139. *
  26140. * @default 0.0
  26141. *
  26142. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariable.html#renderingFormat)
  26143. */
  26144. noData?: number;
  26145. /**
  26146. * Indicates how the data are encoded.
  26147. *
  26148. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariable.html#renderingFormat)
  26149. */
  26150. type: "Int8" | "UInt8" | "Int16" | "UInt16" | "Int32" | "UInt32" | "Float32";
  26151. }
  26152. export class VoxelVariableStyle extends JSONSupport {
  26153. /**
  26154. * The collection of continuous variable isosurfaces.
  26155. *
  26156. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html#isosurfaces)
  26157. */
  26158. isosurfaces: Collection<VoxelIsosurface>;
  26159. /**
  26160. * The variable label.
  26161. *
  26162. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html#label)
  26163. */
  26164. label: string;
  26165. /**
  26166. * The transferFunction describes how to render continuous variable volumes and sections.
  26167. *
  26168. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html#transferFunction)
  26169. */
  26170. transferFunction: VoxelTransferFunctionStyle;
  26171. /**
  26172. * The collection of unique values describes how to render discrete variable volumes and sections.
  26173. *
  26174. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html#uniqueValues)
  26175. */
  26176. uniqueValues: Collection<VoxelUniqueValue>;
  26177. /**
  26178. * Id of the [VoxelVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariable.html) that the style applies to.
  26179. *
  26180. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html#variableId)
  26181. */
  26182. variableId: number;
  26183. /**
  26184. * The VoxelVariableStyle allows you to define how an individual variable is rendered.
  26185. *
  26186. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html)
  26187. */
  26188. constructor(properties?: VoxelVariableStyleProperties);
  26189. /**
  26190. * Creates a deep clone of this object.
  26191. *
  26192. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html#clone)
  26193. */
  26194. clone(): this;
  26195. static fromJSON(json: any): VoxelVariableStyle;
  26196. }
  26197. /** @deprecated Import the VoxelVariableStyle class instead. */
  26198. export type VoxelVariableStyleConstructor = typeof VoxelVariableStyle;
  26199. interface VoxelVariableStyleProperties {
  26200. /**
  26201. * The collection of continuous variable isosurfaces.
  26202. *
  26203. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html#isosurfaces)
  26204. */
  26205. isosurfaces?: CollectionProperties<VoxelIsosurface>;
  26206. /**
  26207. * The variable label.
  26208. *
  26209. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html#label)
  26210. */
  26211. label?: string;
  26212. /**
  26213. * The transferFunction describes how to render continuous variable volumes and sections.
  26214. *
  26215. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html#transferFunction)
  26216. */
  26217. transferFunction?: VoxelTransferFunctionStyleProperties;
  26218. /**
  26219. * The collection of unique values describes how to render discrete variable volumes and sections.
  26220. *
  26221. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html#uniqueValues)
  26222. */
  26223. uniqueValues?: CollectionProperties<VoxelUniqueValue>;
  26224. /**
  26225. * Id of the [VoxelVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariable.html) that the style applies to.
  26226. *
  26227. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html#variableId)
  26228. */
  26229. variableId?: number;
  26230. }
  26231. /**
  26232. * VoxelIsosurface describes an isosurface value and how to render it.
  26233. *
  26234. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html#VoxelIsosurface)
  26235. */
  26236. export interface VoxelIsosurface {
  26237. /**
  26238. * The color to render this isosurface with.
  26239. *
  26240. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html#VoxelIsosurface)
  26241. */
  26242. color: Color;
  26243. /**
  26244. * The data value for this isosurface.
  26245. *
  26246. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html#VoxelIsosurface)
  26247. */
  26248. value: number;
  26249. /**
  26250. * Whether or not to render this isosurface.
  26251. *
  26252. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html#VoxelIsosurface)
  26253. */
  26254. enabled?: boolean;
  26255. /**
  26256. * The label string for this isosurface.
  26257. *
  26258. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html#VoxelIsosurface)
  26259. */
  26260. label?: string;
  26261. /**
  26262. * Whether or not the isosurface color is automatically updated when the variable's transfer function's color stops change.
  26263. *
  26264. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html#VoxelIsosurface)
  26265. */
  26266. colorLocked?: boolean;
  26267. }
  26268. /**
  26269. * VoxelUniqueValue describes a particular voxel discrete value how to render it.
  26270. *
  26271. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html#VoxelUniqueValue)
  26272. */
  26273. export interface VoxelUniqueValue {
  26274. /**
  26275. * The color to render this value with.
  26276. *
  26277. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html#VoxelUniqueValue)
  26278. */
  26279. color: Color;
  26280. /**
  26281. * The data value.
  26282. *
  26283. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html#VoxelUniqueValue)
  26284. */
  26285. value: number;
  26286. /**
  26287. * Whether or not to render data with this value.
  26288. *
  26289. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html#VoxelUniqueValue)
  26290. */
  26291. enabled?: boolean;
  26292. /**
  26293. * The label string for this value.
  26294. *
  26295. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html#VoxelUniqueValue)
  26296. */
  26297. label?: string;
  26298. }
  26299. /**
  26300. * The VoxelVolume exposes properties that describe the volume and methods to convert to and from voxel space.
  26301. *
  26302. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVolume.html)
  26303. */
  26304. interface VoxelVolume {
  26305. /**
  26306. * The unique identifier for the volume.
  26307. *
  26308. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVolume.html#id)
  26309. */
  26310. readonly id: number;
  26311. /**
  26312. * A 3-component array containing the volume size in voxels.
  26313. *
  26314. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVolume.html#sizeInVoxels)
  26315. */
  26316. sizeInVoxels: number[];
  26317. /**
  26318. * Returns the type of the current variable's volume.
  26319. *
  26320. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVolume.html#volumeType)
  26321. */
  26322. volumeType: "xyz" | "xyzt" | "xyt";
  26323. /**
  26324. * Convert a position in voxel space to the spatialReference of the layer.
  26325. *
  26326. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVolume.html#computeLayerSpaceLocation)
  26327. */
  26328. computeLayerSpaceLocation(posInVoxelSpace: number[]): Point;
  26329. /**
  26330. * Convert a position from the layer's spatialReference to voxel space for XYZ or XYZT volumes.
  26331. *
  26332. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVolume.html#computeVoxelSpaceLocation)
  26333. */
  26334. computeVoxelSpaceLocation(pos: Point): number[];
  26335. }
  26336. export const VoxelVolume: VoxelVolume;
  26337. export class voxelVoxelVolumeStyle extends JSONSupport {
  26338. /**
  26339. * The collection of [VoxelDynamicSection](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelDynamicSection.html).
  26340. *
  26341. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVolumeStyle.html#dynamicSections)
  26342. */
  26343. dynamicSections: Collection<VoxelDynamicSection>;
  26344. /**
  26345. * The collection of [VoxelSlice](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelSlice.html).
  26346. *
  26347. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVolumeStyle.html#slices)
  26348. */
  26349. slices: Collection<VoxelSlice>;
  26350. /**
  26351. * The vertical exaggeration factor.
  26352. *
  26353. * @default 1
  26354. *
  26355. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVolumeStyle.html#verticalExaggeration)
  26356. */
  26357. verticalExaggeration: number;
  26358. /**
  26359. * The vertical offset amount.
  26360. *
  26361. * @default 0
  26362. *
  26363. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVolumeStyle.html#verticalOffset)
  26364. */
  26365. verticalOffset: number;
  26366. /**
  26367. * Id of the volume.
  26368. *
  26369. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVolumeStyle.html#volumeId)
  26370. */
  26371. readonly volumeId: number;
  26372. /**
  26373. * The VolumeStyle allows you to define rendering properties that apply to the volume itself, such as vertical exaggeration and offset.
  26374. *
  26375. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVolumeStyle.html)
  26376. */
  26377. constructor(properties?: voxelVoxelVolumeStyleProperties);
  26378. /**
  26379. * Creates a deep clone of this object.
  26380. *
  26381. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVolumeStyle.html#clone)
  26382. */
  26383. clone(): this;
  26384. static fromJSON(json: any): voxelVoxelVolumeStyle;
  26385. }
  26386. /** @deprecated Import the voxelVoxelVolumeStyle class instead. */
  26387. export type voxelVoxelVolumeStyleConstructor = typeof voxelVoxelVolumeStyle;
  26388. interface voxelVoxelVolumeStyleProperties {
  26389. /**
  26390. * The collection of [VoxelDynamicSection](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelDynamicSection.html).
  26391. *
  26392. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVolumeStyle.html#dynamicSections)
  26393. */
  26394. dynamicSections?: CollectionProperties<VoxelDynamicSectionProperties>;
  26395. /**
  26396. * The collection of [VoxelSlice](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelSlice.html).
  26397. *
  26398. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVolumeStyle.html#slices)
  26399. */
  26400. slices?: CollectionProperties<VoxelSliceProperties>;
  26401. /**
  26402. * The vertical exaggeration factor.
  26403. *
  26404. * @default 1
  26405. *
  26406. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVolumeStyle.html#verticalExaggeration)
  26407. */
  26408. verticalExaggeration?: number;
  26409. /**
  26410. * The vertical offset amount.
  26411. *
  26412. * @default 0
  26413. *
  26414. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVolumeStyle.html#verticalOffset)
  26415. */
  26416. verticalOffset?: number;
  26417. }
  26418. export interface VoxelLayer extends Layer, SceneService, PortalLayer, ScaleRangeLayer, APIKeyMixin {
  26419. }
  26420. export class VoxelLayer {
  26421. /**
  26422. * The variable that is being displayed.
  26423. *
  26424. * @default 0
  26425. *
  26426. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html#currentVariableId)
  26427. */
  26428. currentVariableId: number;
  26429. /**
  26430. * Controls whether or not to globally disable all dynamic sections in the current [VoxelVolumeStyle](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVolumeStyle.html).
  26431. *
  26432. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html#enableDynamicSections)
  26433. */
  26434. enableDynamicSections: boolean;
  26435. /**
  26436. * Controls whether or not to globally disable all isosurfaces in the current [VoxelVariableStyle](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html).
  26437. *
  26438. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html#enableIsosurfaces)
  26439. */
  26440. enableIsosurfaces: boolean;
  26441. /**
  26442. * Controls whether or not to globally disable all slices in the current [VoxelVolumeStyle](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVolumeStyle.html).
  26443. *
  26444. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html#enableSlices)
  26445. */
  26446. enableSlices: boolean;
  26447. /**
  26448. * Current rendering mode for the [VoxelLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html).
  26449. *
  26450. * @default "volume"
  26451. *
  26452. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html#renderMode)
  26453. */
  26454. renderMode: "volume" | "surfaces";
  26455. readonly type: "voxel";
  26456. /**
  26457. * The collection of variables that the VoxelLayer has data for.
  26458. *
  26459. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html#variables)
  26460. */
  26461. readonly variables: Collection<voxelVoxelVariable>;
  26462. /**
  26463. * The collection of variable styles, containing exactly one [VoxelVariableStyle](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html) for each [VoxelVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariable.html).
  26464. *
  26465. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html#variableStyles)
  26466. */
  26467. variableStyles: Collection<VoxelVariableStyle>;
  26468. /**
  26469. * The collection of volumes that the VoxelLayer has variables for.
  26470. *
  26471. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html#volumes)
  26472. */
  26473. readonly volumes: Collection<VoxelVolume>;
  26474. /**
  26475. * The collection of volume styles.
  26476. *
  26477. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html#volumeStyles)
  26478. */
  26479. volumeStyles: Collection<voxelVoxelVolumeStyle>;
  26480. /**
  26481. * A voxel layer represents multidimensional volumetric data.
  26482. *
  26483. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html)
  26484. */
  26485. constructor(properties?: VoxelLayerProperties);
  26486. /**
  26487. * Returns a [Color](https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html) for a given value for the continuous [VoxelVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariable.html) identified by variableId using the variable's [VoxelTransferFunctionStyle](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelTransferFunctionStyle.html).
  26488. *
  26489. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html#getColorForContinuousDataValue)
  26490. */
  26491. getColorForContinuousDataValue(variableId: number, dataValue: number, applyOpacityStops: boolean): Color | null;
  26492. /**
  26493. * Returns a [VoxelVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariable.html) based on an id.
  26494. *
  26495. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html#getVariable)
  26496. */
  26497. getVariable(variableId: number | null): voxelVoxelVariable | null;
  26498. /**
  26499. * Returns a [VoxelVariableStyle](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html) based on an id.
  26500. *
  26501. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html#getVariableStyle)
  26502. */
  26503. getVariableStyle(variableId: number | null): VoxelVariableStyle | null;
  26504. /**
  26505. * Returns a [VoxelVolume](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVolume.html) based on the id of a [VoxelVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariable.html).
  26506. *
  26507. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html#getVolume)
  26508. */
  26509. getVolume(variableId: number | null): VoxelVolume | null;
  26510. /**
  26511. * Returns a [VoxelVolumeStyle](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVolumeStyle.html) based on the id of a [VoxelVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariable.html).
  26512. *
  26513. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html#getVolumeStyle)
  26514. */
  26515. getVolumeStyle(variableId: number | null): voxelVoxelVolumeStyle | null;
  26516. static fromJSON(json: any): VoxelLayer;
  26517. }
  26518. /** @deprecated Import the VoxelLayer class instead. */
  26519. export type VoxelLayerConstructor = typeof VoxelLayer;
  26520. interface VoxelLayerProperties extends LayerProperties, SceneServiceProperties, PortalLayerProperties, ScaleRangeLayerProperties, APIKeyMixinProperties {
  26521. /**
  26522. * The variable that is being displayed.
  26523. *
  26524. * @default 0
  26525. *
  26526. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html#currentVariableId)
  26527. */
  26528. currentVariableId?: number;
  26529. /**
  26530. * Controls whether or not to globally disable all dynamic sections in the current [VoxelVolumeStyle](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVolumeStyle.html).
  26531. *
  26532. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html#enableDynamicSections)
  26533. */
  26534. enableDynamicSections?: boolean;
  26535. /**
  26536. * Controls whether or not to globally disable all isosurfaces in the current [VoxelVariableStyle](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html).
  26537. *
  26538. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html#enableIsosurfaces)
  26539. */
  26540. enableIsosurfaces?: boolean;
  26541. /**
  26542. * Controls whether or not to globally disable all slices in the current [VoxelVolumeStyle](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVolumeStyle.html).
  26543. *
  26544. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html#enableSlices)
  26545. */
  26546. enableSlices?: boolean;
  26547. /**
  26548. * Current rendering mode for the [VoxelLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html).
  26549. *
  26550. * @default "volume"
  26551. *
  26552. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html#renderMode)
  26553. */
  26554. renderMode?: "volume" | "surfaces";
  26555. /**
  26556. * The collection of variable styles, containing exactly one [VoxelVariableStyle](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariableStyle.html) for each [VoxelVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-voxel-VoxelVariable.html).
  26557. *
  26558. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html#variableStyles)
  26559. */
  26560. variableStyles?: CollectionProperties<VoxelVariableStyleProperties>;
  26561. /**
  26562. * The collection of volume styles.
  26563. *
  26564. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VoxelLayer.html#volumeStyles)
  26565. */
  26566. volumeStyles?: CollectionProperties<voxelVoxelVolumeStyleProperties>;
  26567. }
  26568. export interface WCSLayer extends Layer, ImageryTileMixin, PortalLayer, ScaleRangeLayer {
  26569. }
  26570. export class WCSLayer {
  26571. /**
  26572. * The coverage identifier for the layer.
  26573. *
  26574. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html#coverageId)
  26575. */
  26576. coverageId: string;
  26577. /**
  26578. * Use this property to append custom parameters to all WCS requests.
  26579. *
  26580. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html#customParameters)
  26581. */
  26582. customParameters: any;
  26583. /**
  26584. * An array of raster fields in the layer that consists of service pixel value.
  26585. *
  26586. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html#fields)
  26587. */
  26588. fields: Field[];
  26589. /**
  26590. * Defines how to interpolate pixel values.
  26591. *
  26592. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html#interpolation)
  26593. */
  26594. interpolation: "nearest" | "bilinear" | "cubic" | "majority";
  26595. /**
  26596. * The renderer assigned to the layer.
  26597. *
  26598. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html#renderer)
  26599. */
  26600. renderer: ClassBreaksRenderer | RasterStretchRenderer;
  26601. /**
  26602. * The layer's time extent.
  26603. *
  26604. * @default null
  26605. *
  26606. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html#timeExtent)
  26607. */
  26608. timeExtent: TimeExtent;
  26609. /**
  26610. * TimeInfo provides information such as date fields that store [start](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#startField) and [end](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#endField) time for each feature and the [fullTimeExtent](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#fullTimeExtent) for the layer.
  26611. *
  26612. * @default null
  26613. *
  26614. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html#timeInfo)
  26615. */
  26616. timeInfo: TimeInfo;
  26617. /**
  26618. * A temporary offset of the time data based on a certain [TimeInterval](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeInterval.html).
  26619. *
  26620. * @default null
  26621. *
  26622. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html#timeOffset)
  26623. */
  26624. timeOffset: TimeInterval;
  26625. readonly type: "wcs";
  26626. /**
  26627. * The URL of the WCS service endpoint of the layer.
  26628. *
  26629. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html#url)
  26630. */
  26631. url: string;
  26632. /**
  26633. * Determines if the layer will update its temporal data based on the view's [timeExtent](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#timeExtent).
  26634. *
  26635. * @default true
  26636. *
  26637. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html#useViewTime)
  26638. */
  26639. useViewTime: boolean;
  26640. /**
  26641. * The version of Web Coverage Service currently being used.
  26642. *
  26643. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html#version)
  26644. */
  26645. version: string;
  26646. /**
  26647. * WCS presents raster data from a [OGC Web Coverage Service](https://www.ogc.org/standards/wcs).
  26648. *
  26649. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html)
  26650. */
  26651. constructor(properties?: WCSLayerProperties);
  26652. /**
  26653. * Creates a default popup template for the layer, populated with all the fields of the layer.
  26654. *
  26655. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html#createPopupTemplate)
  26656. */
  26657. createPopupTemplate(options?: CreatePopupTemplateOptions): PopupTemplate;
  26658. static fromJSON(json: any): WCSLayer;
  26659. }
  26660. /** @deprecated Import the WCSLayer class instead. */
  26661. export type WCSLayerConstructor = typeof WCSLayer;
  26662. interface WCSLayerProperties extends LayerProperties, ImageryTileMixinProperties, PortalLayerProperties, ScaleRangeLayerProperties {
  26663. /**
  26664. * The coverage identifier for the layer.
  26665. *
  26666. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html#coverageId)
  26667. */
  26668. coverageId?: string;
  26669. /**
  26670. * Use this property to append custom parameters to all WCS requests.
  26671. *
  26672. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html#customParameters)
  26673. */
  26674. customParameters?: any;
  26675. /**
  26676. * An array of raster fields in the layer that consists of service pixel value.
  26677. *
  26678. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html#fields)
  26679. */
  26680. fields?: FieldProperties[];
  26681. /**
  26682. * Defines how to interpolate pixel values.
  26683. *
  26684. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html#interpolation)
  26685. */
  26686. interpolation?: "nearest" | "bilinear" | "cubic" | "majority";
  26687. /**
  26688. * The renderer assigned to the layer.
  26689. *
  26690. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html#renderer)
  26691. */
  26692. renderer?: | (ClassBreaksRendererProperties & { type: "class-breaks" })
  26693. | (RasterStretchRendererProperties & { type: "raster-stretch" });
  26694. /**
  26695. * The layer's time extent.
  26696. *
  26697. * @default null
  26698. *
  26699. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html#timeExtent)
  26700. */
  26701. timeExtent?: TimeExtentProperties;
  26702. /**
  26703. * TimeInfo provides information such as date fields that store [start](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#startField) and [end](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#endField) time for each feature and the [fullTimeExtent](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#fullTimeExtent) for the layer.
  26704. *
  26705. * @default null
  26706. *
  26707. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html#timeInfo)
  26708. */
  26709. timeInfo?: TimeInfoProperties;
  26710. /**
  26711. * A temporary offset of the time data based on a certain [TimeInterval](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeInterval.html).
  26712. *
  26713. * @default null
  26714. *
  26715. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html#timeOffset)
  26716. */
  26717. timeOffset?: TimeIntervalProperties;
  26718. /**
  26719. * The URL of the WCS service endpoint of the layer.
  26720. *
  26721. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html#url)
  26722. */
  26723. url?: string;
  26724. /**
  26725. * Determines if the layer will update its temporal data based on the view's [timeExtent](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#timeExtent).
  26726. *
  26727. * @default true
  26728. *
  26729. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html#useViewTime)
  26730. */
  26731. useViewTime?: boolean;
  26732. /**
  26733. * The version of Web Coverage Service currently being used.
  26734. *
  26735. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html#version)
  26736. */
  26737. version?: string;
  26738. }
  26739. export interface WebTileLayer extends Layer, ScaleRangeLayer, RefreshableLayer, PortalLayer, BlendLayer {
  26740. }
  26741. export class WebTileLayer {
  26742. /**
  26743. * The attribution information for the layer.
  26744. *
  26745. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WebTileLayer.html#copyright)
  26746. */
  26747. copyright: string;
  26748. /**
  26749. * The spatial reference of the layer.
  26750. *
  26751. * @default Web Mercator Auxiliary Sphere (wkid: 3857)
  26752. *
  26753. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WebTileLayer.html#spatialReference)
  26754. */
  26755. readonly spatialReference: SpatialReference;
  26756. /**
  26757. * A string of subDomain names where tiles are served to speed up tile retrieval.
  26758. *
  26759. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WebTileLayer.html#subDomains)
  26760. */
  26761. subDomains: string[];
  26762. /**
  26763. * The tiling scheme information for the layer.
  26764. *
  26765. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WebTileLayer.html#tileInfo)
  26766. */
  26767. tileInfo: TileInfo;
  26768. /**
  26769. * The list of tile server urls for the layer.
  26770. *
  26771. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WebTileLayer.html#tileServers)
  26772. */
  26773. readonly tileServers: string[];
  26774. /**
  26775. * For [WebTileLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WebTileLayer.html) the type is `web-tile`.
  26776. *
  26777. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WebTileLayer.html#type)
  26778. */
  26779. readonly type: "web-tile" | "open-street-map";
  26780. /**
  26781. * The url template is a string that specifies the URL of the hosted tile images to load.
  26782. *
  26783. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WebTileLayer.html#urlTemplate)
  26784. */
  26785. urlTemplate: string;
  26786. /**
  26787. * WebTileLayer provides a simple way to add non-ArcGIS Server map tiles as a layer to a map.
  26788. *
  26789. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WebTileLayer.html)
  26790. */
  26791. constructor(properties?: WebTileLayerProperties);
  26792. /**
  26793. * This method fetches a tile for the given level, row and column present in the view.
  26794. *
  26795. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WebTileLayer.html#fetchTile)
  26796. */
  26797. fetchTile(level: number, row: number, column: number, options?: WebTileLayerFetchTileOptions): Promise<HTMLImageElement>;
  26798. /**
  26799. * This method returns a URL to a tile for a given level, row and column.
  26800. *
  26801. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WebTileLayer.html#getTileUrl)
  26802. */
  26803. getTileUrl(level: number, row: number, col: number): string;
  26804. static fromJSON(json: any): WebTileLayer;
  26805. }
  26806. /** @deprecated Import the WebTileLayer class instead. */
  26807. export type WebTileLayerConstructor = typeof WebTileLayer;
  26808. interface WebTileLayerProperties extends LayerProperties, ScaleRangeLayerProperties, RefreshableLayerProperties, PortalLayerProperties, BlendLayerProperties {
  26809. /**
  26810. * The attribution information for the layer.
  26811. *
  26812. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WebTileLayer.html#copyright)
  26813. */
  26814. copyright?: string;
  26815. /**
  26816. * A string of subDomain names where tiles are served to speed up tile retrieval.
  26817. *
  26818. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WebTileLayer.html#subDomains)
  26819. */
  26820. subDomains?: string[];
  26821. /**
  26822. * The tiling scheme information for the layer.
  26823. *
  26824. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WebTileLayer.html#tileInfo)
  26825. */
  26826. tileInfo?: TileInfoProperties;
  26827. /**
  26828. * The url template is a string that specifies the URL of the hosted tile images to load.
  26829. *
  26830. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WebTileLayer.html#urlTemplate)
  26831. */
  26832. urlTemplate?: string;
  26833. }
  26834. export interface WebTileLayerFetchTileOptions {
  26835. /**
  26836. * [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) allows for cancelable requests.
  26837. *
  26838. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WebTileLayer.html#fetchTile)
  26839. */
  26840. signal?: AbortSignal;
  26841. }
  26842. export interface WFSLayer extends Layer, OrderedLayer, ScaleRangeLayer, RefreshableLayer, BlendLayer, PortalLayer, FeatureEffectLayer, FeatureReductionLayer {
  26843. }
  26844. export class WFSLayer {
  26845. /**
  26846. * Describes the layer's supported capabilities.
  26847. *
  26848. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  26849. */
  26850. readonly capabilities: WFSLayerCapabilities;
  26851. /**
  26852. * Copyright information for the layer.
  26853. *
  26854. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#copyright)
  26855. */
  26856. copyright: string;
  26857. /**
  26858. * A list of custom parameters appended to the URL of all resources fetched by the layer.
  26859. *
  26860. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#customParameters)
  26861. */
  26862. customParameters: any;
  26863. /**
  26864. * The SQL where clause used to filter features on the client.
  26865. *
  26866. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#definitionExpression)
  26867. */
  26868. definitionExpression: string;
  26869. /**
  26870. * The name of the layer's primary display field.
  26871. *
  26872. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#displayField)
  26873. */
  26874. displayField: string;
  26875. /**
  26876. * Specifies how features are placed on the vertical axis (z).
  26877. *
  26878. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#elevationInfo)
  26879. */
  26880. elevationInfo: WFSLayerElevationInfo;
  26881. /**
  26882. * An array of fields in the layer.
  26883. *
  26884. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#fields)
  26885. */
  26886. fields: Field[];
  26887. /**
  26888. * A convenient property that can be used to make case-insensitive lookups for a field by name.
  26889. *
  26890. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#fieldsIndex)
  26891. */
  26892. readonly fieldsIndex: FieldsIndex;
  26893. /**
  26894. * The geometry type of features in the layer.
  26895. *
  26896. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#geometryType)
  26897. */
  26898. geometryType: "point" | "polygon" | "polyline" | "multipoint";
  26899. /**
  26900. * The label definition for this layer, specified as an array of [LabelClass](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html).
  26901. *
  26902. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#labelingInfo)
  26903. */
  26904. labelingInfo: LabelClass[];
  26905. /**
  26906. * Indicates whether to display labels for this layer.
  26907. *
  26908. * @default true
  26909. *
  26910. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#labelsVisible)
  26911. */
  26912. labelsVisible: boolean;
  26913. /**
  26914. * Indicates whether the layer will be included in the legend.
  26915. *
  26916. * @default true
  26917. *
  26918. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#legendEnabled)
  26919. */
  26920. legendEnabled: boolean;
  26921. /**
  26922. * The name of the layer in the WFS service to display, excluding the namespace.
  26923. *
  26924. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#name)
  26925. */
  26926. name: string;
  26927. /**
  26928. * The namespace URI for the layer name.
  26929. *
  26930. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#namespaceUri)
  26931. */
  26932. namespaceUri: string;
  26933. /**
  26934. * The name of an `oid` [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#fields) containing a unique value or identifier for each feature in the layer.
  26935. *
  26936. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#objectIdField)
  26937. */
  26938. objectIdField: string;
  26939. /**
  26940. * An array of field names from the WFS layer to include with each feature.
  26941. *
  26942. * @default null
  26943. *
  26944. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#outFields)
  26945. */
  26946. outFields: string[];
  26947. /**
  26948. * Indicates whether to display popups when features in the layer are clicked.
  26949. *
  26950. * @default true
  26951. *
  26952. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#popupEnabled)
  26953. */
  26954. popupEnabled: boolean;
  26955. /**
  26956. * The popup template for the layer.
  26957. *
  26958. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#popupTemplate)
  26959. */
  26960. popupTemplate: PopupTemplate;
  26961. /**
  26962. * The renderer assigned to the layer.
  26963. *
  26964. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#renderer)
  26965. */
  26966. renderer: Renderer;
  26967. /**
  26968. * Apply perspective scaling to screen-size point symbols in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  26969. *
  26970. * @default true
  26971. *
  26972. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#screenSizePerspectiveEnabled)
  26973. */
  26974. screenSizePerspectiveEnabled: boolean;
  26975. /**
  26976. * The spatial reference of the layer.
  26977. *
  26978. * @default SpatialReference.WGS84
  26979. *
  26980. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#spatialReference)
  26981. */
  26982. spatialReference: SpatialReference;
  26983. readonly type: "wfs";
  26984. /**
  26985. * The url to the WFS service.
  26986. *
  26987. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#url)
  26988. */
  26989. url: string;
  26990. /**
  26991. * WFS service information about the available layers and operations.
  26992. *
  26993. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#wfsCapabilities)
  26994. */
  26995. wfsCapabilities: WFSCapabilities;
  26996. /**
  26997. * The WFSLayer is used to create a layer based on an [OGC Web Feature Service](https://www.ogc.org/standards/wfs) (WFS).
  26998. *
  26999. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html)
  27000. */
  27001. constructor(properties?: WFSLayerProperties);
  27002. /**
  27003. * Creates a popup template for the layer, populated with all the fields of the layer.
  27004. *
  27005. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#createPopupTemplate)
  27006. */
  27007. createPopupTemplate(options?: CreatePopupTemplateOptions): PopupTemplate;
  27008. /**
  27009. * Creates query parameter object that can be used to fetch features that satisfy the layer's configurations.
  27010. *
  27011. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#createQuery)
  27012. */
  27013. createQuery(): Query;
  27014. /**
  27015. * Returns the [Field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html) instance for a field name (case-insensitive).
  27016. *
  27017. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#getField)
  27018. */
  27019. getField(fieldName: string): Field;
  27020. /**
  27021. * Returns the [Domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Domain.html) associated with the given field name.
  27022. *
  27023. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#getFieldDomain)
  27024. */
  27025. getFieldDomain(fieldName: string, options?: WFSLayerGetFieldDomainOptions): Domain;
  27026. /**
  27027. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the layer and returns the [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) of features that satisfy the query.
  27028. *
  27029. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#queryExtent)
  27030. */
  27031. queryExtent(query?: Query | QueryProperties, options?: WFSLayerQueryExtentOptions): Promise<any>;
  27032. /**
  27033. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the layer and returns the number of features that satisfy the query.
  27034. *
  27035. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#queryFeatureCount)
  27036. */
  27037. queryFeatureCount(query?: Query | QueryProperties, options?: WFSLayerQueryFeatureCountOptions): Promise<number>;
  27038. /**
  27039. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the layer and returns a [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html), which can be accessed using the `.then()` method once the promise resolves.
  27040. *
  27041. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#queryFeatures)
  27042. */
  27043. queryFeatures(query?: Query | QueryProperties, options?: WFSLayerQueryFeaturesOptions): Promise<FeatureSet>;
  27044. /**
  27045. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the layer and returns an array of Object IDs for features that satisfy the input query.
  27046. *
  27047. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#queryObjectIds)
  27048. */
  27049. queryObjectIds(query?: Query | QueryProperties, options?: WFSLayerQueryObjectIdsOptions): Promise<number[]>;
  27050. on(name: "refresh", eventHandler: WFSLayerRefreshEventHandler): IHandle;
  27051. on(name: "layerview-create", eventHandler: WFSLayerLayerviewCreateEventHandler): IHandle;
  27052. on(name: "layerview-create-error", eventHandler: WFSLayerLayerviewCreateErrorEventHandler): IHandle;
  27053. on(name: "layerview-destroy", eventHandler: WFSLayerLayerviewDestroyEventHandler): IHandle;
  27054. /**
  27055. * Creates a WFSLayer from an object created by [wfsUtils.getWFSLayerInfo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ogc-wfsUtils.html#getWFSLayerInfo).
  27056. *
  27057. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#fromWFSLayerInfo)
  27058. */
  27059. static fromWFSLayerInfo(layerInfo: WFSLayerInfo): WFSLayer;
  27060. static fromJSON(json: any): WFSLayer;
  27061. }
  27062. /** @deprecated Import the WFSLayer class instead. */
  27063. export type WFSLayerConstructor = typeof WFSLayer;
  27064. interface WFSLayerProperties extends LayerProperties, OrderedLayerProperties, ScaleRangeLayerProperties, RefreshableLayerProperties, BlendLayerProperties, PortalLayerProperties, FeatureEffectLayerProperties, FeatureReductionLayerProperties {
  27065. /**
  27066. * Copyright information for the layer.
  27067. *
  27068. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#copyright)
  27069. */
  27070. copyright?: string;
  27071. /**
  27072. * A list of custom parameters appended to the URL of all resources fetched by the layer.
  27073. *
  27074. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#customParameters)
  27075. */
  27076. customParameters?: any;
  27077. /**
  27078. * The SQL where clause used to filter features on the client.
  27079. *
  27080. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#definitionExpression)
  27081. */
  27082. definitionExpression?: string;
  27083. /**
  27084. * The name of the layer's primary display field.
  27085. *
  27086. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#displayField)
  27087. */
  27088. displayField?: string;
  27089. /**
  27090. * Specifies how features are placed on the vertical axis (z).
  27091. *
  27092. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#elevationInfo)
  27093. */
  27094. elevationInfo?: WFSLayerElevationInfo;
  27095. /**
  27096. * An array of fields in the layer.
  27097. *
  27098. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#fields)
  27099. */
  27100. fields?: FieldProperties[];
  27101. /**
  27102. * The geometry type of features in the layer.
  27103. *
  27104. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#geometryType)
  27105. */
  27106. geometryType?: "point" | "polygon" | "polyline" | "multipoint";
  27107. /**
  27108. * The label definition for this layer, specified as an array of [LabelClass](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html).
  27109. *
  27110. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#labelingInfo)
  27111. */
  27112. labelingInfo?: LabelClassProperties[];
  27113. /**
  27114. * Indicates whether to display labels for this layer.
  27115. *
  27116. * @default true
  27117. *
  27118. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#labelsVisible)
  27119. */
  27120. labelsVisible?: boolean;
  27121. /**
  27122. * Indicates whether the layer will be included in the legend.
  27123. *
  27124. * @default true
  27125. *
  27126. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#legendEnabled)
  27127. */
  27128. legendEnabled?: boolean;
  27129. /**
  27130. * The name of the layer in the WFS service to display, excluding the namespace.
  27131. *
  27132. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#name)
  27133. */
  27134. name?: string;
  27135. /**
  27136. * The namespace URI for the layer name.
  27137. *
  27138. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#namespaceUri)
  27139. */
  27140. namespaceUri?: string;
  27141. /**
  27142. * The name of an `oid` [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#fields) containing a unique value or identifier for each feature in the layer.
  27143. *
  27144. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#objectIdField)
  27145. */
  27146. objectIdField?: string;
  27147. /**
  27148. * An array of field names from the WFS layer to include with each feature.
  27149. *
  27150. * @default null
  27151. *
  27152. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#outFields)
  27153. */
  27154. outFields?: string[];
  27155. /**
  27156. * Indicates whether to display popups when features in the layer are clicked.
  27157. *
  27158. * @default true
  27159. *
  27160. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#popupEnabled)
  27161. */
  27162. popupEnabled?: boolean;
  27163. /**
  27164. * The popup template for the layer.
  27165. *
  27166. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#popupTemplate)
  27167. */
  27168. popupTemplate?: PopupTemplateProperties;
  27169. /**
  27170. * The renderer assigned to the layer.
  27171. *
  27172. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#renderer)
  27173. */
  27174. renderer?: RendererProperties;
  27175. /**
  27176. * Apply perspective scaling to screen-size point symbols in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  27177. *
  27178. * @default true
  27179. *
  27180. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#screenSizePerspectiveEnabled)
  27181. */
  27182. screenSizePerspectiveEnabled?: boolean;
  27183. /**
  27184. * The spatial reference of the layer.
  27185. *
  27186. * @default SpatialReference.WGS84
  27187. *
  27188. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#spatialReference)
  27189. */
  27190. spatialReference?: SpatialReferenceProperties;
  27191. /**
  27192. * The url to the WFS service.
  27193. *
  27194. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#url)
  27195. */
  27196. url?: string;
  27197. /**
  27198. * WFS service information about the available layers and operations.
  27199. *
  27200. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#wfsCapabilities)
  27201. */
  27202. wfsCapabilities?: WFSCapabilities;
  27203. }
  27204. export interface WFSLayerLayerviewCreateErrorEvent {
  27205. error: Error;
  27206. view: View;
  27207. }
  27208. export interface WFSLayerLayerviewCreateEvent {
  27209. layerView: LayerView;
  27210. view: View;
  27211. }
  27212. export interface WFSLayerLayerviewDestroyEvent {
  27213. layerView: LayerView;
  27214. view: View;
  27215. }
  27216. export interface WFSLayerRefreshEvent {
  27217. dataChanged: boolean;
  27218. }
  27219. export interface WFSLayerCapabilities {
  27220. /**
  27221. * Describes characteristics of the data in the layer.
  27222. *
  27223. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27224. */
  27225. data: WFSLayerCapabilitiesData;
  27226. /**
  27227. * Describes editing capabilities that can be performed on the features in the layer.
  27228. *
  27229. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27230. */
  27231. editing: WFSLayerCapabilitiesEditing;
  27232. /**
  27233. * Describes operations that can be performed on features in the layer.
  27234. *
  27235. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27236. */
  27237. operations: WFSLayerCapabilitiesOperations;
  27238. /**
  27239. * Describes [query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) operations that can be performed on features in the layer.
  27240. *
  27241. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27242. */
  27243. query: WFSLayerCapabilitiesQuery;
  27244. /**
  27245. * Indicates if the layer's query operation supports querying features or records related to features in the layer.
  27246. *
  27247. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27248. */
  27249. queryRelated: WFSLayerCapabilitiesQueryRelated;
  27250. }
  27251. export interface WFSLayerCapabilitiesData {
  27252. /**
  27253. * Indicates if the attachment is enabled on the layer.
  27254. *
  27255. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27256. */
  27257. supportsAttachment: boolean;
  27258. /**
  27259. * Indicates if the features in the layer support m-values.
  27260. *
  27261. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27262. */
  27263. supportsM: boolean;
  27264. /**
  27265. * Indicates if the features in the layer support z-values.
  27266. *
  27267. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27268. */
  27269. supportsZ: boolean;
  27270. }
  27271. export interface WFSLayerCapabilitiesEditing {
  27272. /**
  27273. * Indicates if anonymous users can delete features created by others.
  27274. *
  27275. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27276. */
  27277. supportsDeleteByAnonymous: boolean;
  27278. /**
  27279. * Indicates if logged in users can delete features created by others.
  27280. *
  27281. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27282. */
  27283. supportsDeleteByOthers: boolean;
  27284. /**
  27285. * Indicates if the geometry of the features in the layer can be edited.
  27286. *
  27287. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27288. */
  27289. supportsGeometryUpdate: boolean;
  27290. /**
  27291. * Indicates if the `globalid` values provided by the client are used in [applyEdits](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#applyEdits).
  27292. *
  27293. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27294. */
  27295. supportsGlobalId: boolean;
  27296. /**
  27297. * Indicates if the `rollbackOnFailure` parameter can be set to `true` or `false` when running the synchronizeReplica operation.
  27298. *
  27299. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27300. */
  27301. supportsRollbackOnFailure: boolean;
  27302. /**
  27303. * Indicates if anonymous users can update features created by others.
  27304. *
  27305. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27306. */
  27307. supportsUpdateByAnonymous: boolean;
  27308. /**
  27309. * Indicates if logged in users can update features created by others.
  27310. *
  27311. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27312. */
  27313. supportsUpdateByOthers: boolean;
  27314. /**
  27315. * Indicates if `m-values` must be provided when updating features.
  27316. *
  27317. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27318. */
  27319. supportsUpdateWithoutM: boolean;
  27320. /**
  27321. * Indicates if the layer supports uploading attachments by [UploadId](https://developers.arcgis.com/rest/services-reference/item.htm).
  27322. *
  27323. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27324. */
  27325. supportsUploadWithItemId: boolean;
  27326. }
  27327. export interface WFSLayerCapabilitiesOperations {
  27328. /**
  27329. * Indicates if new features can be [added](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#applyEdits) to the layer.
  27330. *
  27331. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27332. */
  27333. supportsAdd: boolean;
  27334. /**
  27335. * Indicates if features can be [deleted](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#applyEdits) from the layer.
  27336. *
  27337. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27338. */
  27339. supportsDelete: boolean;
  27340. /**
  27341. * Indicates if features in the layer can be [updated](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#applyEdits).
  27342. *
  27343. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27344. */
  27345. supportsUpdate: boolean;
  27346. /**
  27347. * Indicates if features in the layer can be [edited](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#applyEdits).
  27348. *
  27349. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27350. */
  27351. supportsEditing: boolean;
  27352. /**
  27353. * Indicates if values of one or more field values in the layer can be updated.
  27354. *
  27355. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27356. */
  27357. supportsCalculate: boolean;
  27358. /**
  27359. * Indicates if features in the layer can be [queried](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#queryFeatures).
  27360. *
  27361. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27362. */
  27363. supportsQuery: boolean;
  27364. /**
  27365. * Indicates if the layer supports [REST API queryAttachments](https://developers.arcgis.com/rest/services-reference/query-attachments-feature-service-layer-.htm) operation.
  27366. *
  27367. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27368. */
  27369. supportsQueryAttachments: boolean;
  27370. /**
  27371. * Indicates if the layer supports a SQL-92 expression or where clause.
  27372. *
  27373. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27374. */
  27375. supportsValidateSql: boolean;
  27376. /**
  27377. * Indicates if resized attachments are supported in the layer.
  27378. *
  27379. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27380. */
  27381. supportsResizeAttachments: boolean;
  27382. }
  27383. export interface WFSLayerCapabilitiesQuery {
  27384. /**
  27385. * Indicates if the geometry centroid associated with each polygon feature can be returned.
  27386. *
  27387. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27388. */
  27389. supportsCentroid: boolean;
  27390. /**
  27391. * Indicates if the layer's query operation supports a buffer distance for input geometries.
  27392. *
  27393. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27394. */
  27395. supportsDistance: boolean;
  27396. /**
  27397. * Indicates if the layer supports queries for distinct values based on fields specified in the [outFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#outFields).
  27398. *
  27399. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27400. */
  27401. supportsDistinct: boolean;
  27402. /**
  27403. * Indicates if the query operation supports `disjoint` [spatial relationship](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#spatialRelationship).
  27404. *
  27405. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27406. */
  27407. supportsDisjointSpatialRelationship: boolean;
  27408. /**
  27409. * Indicates if the layer's query response includes the extent of features.
  27410. *
  27411. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27412. */
  27413. supportsExtent: boolean;
  27414. /**
  27415. * Indicates if the layer's query response contains geometry attributes, including shape area and length attributes.
  27416. *
  27417. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27418. */
  27419. supportsGeometryProperties: boolean;
  27420. /**
  27421. * Indicates if the layer supports the [having](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#having) clause on the service.
  27422. *
  27423. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27424. */
  27425. supportsHavingClause: boolean;
  27426. /**
  27427. * Indicates if features returned in the query response can be ordered by one or more fields.
  27428. *
  27429. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27430. */
  27431. supportsOrderBy: boolean;
  27432. /**
  27433. * Indicates if the query response supports pagination.
  27434. *
  27435. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27436. */
  27437. supportsPagination: boolean;
  27438. /**
  27439. * Indicates if the layer supports [percentile statisticType](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-StatisticDefinition.html#statisticType).
  27440. *
  27441. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27442. */
  27443. supportsPercentileStatistics: boolean;
  27444. /**
  27445. * Indicates if the query response includes the [query geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html#queryGeometry).
  27446. *
  27447. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27448. */
  27449. supportsQueryGeometry: boolean;
  27450. /**
  27451. * Indicates if the query operation supports the projection of geometries onto a virtual grid.
  27452. *
  27453. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27454. */
  27455. supportsQuantization: boolean;
  27456. /**
  27457. * Indicates if the query operation supports quantization designed to be used in edit mode (highest resolution at the given spatial reference).
  27458. *
  27459. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27460. */
  27461. supportsQuantizationEditMode: boolean;
  27462. /**
  27463. * Indicates if the number of features returned by the query operation can be controlled.
  27464. *
  27465. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27466. */
  27467. supportsResultType: boolean;
  27468. /**
  27469. * Indicates if the query operation supports SQL expressions.
  27470. *
  27471. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27472. */
  27473. supportsSqlExpression: boolean;
  27474. /**
  27475. * Indicates if the query operation supports using standardized queries.
  27476. *
  27477. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27478. */
  27479. supportsStandardizedQueriesOnly: boolean;
  27480. /**
  27481. * Indicates if the layer supports field-based statistical functions.
  27482. *
  27483. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27484. */
  27485. supportsStatistics: boolean;
  27486. /**
  27487. * Indicates if the layer supports historic moment query.
  27488. *
  27489. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27490. */
  27491. supportsHistoricMoment: boolean;
  27492. }
  27493. export interface WFSLayerCapabilitiesQueryRelated {
  27494. /**
  27495. * Indicates if the layer's query response includes the number of features or records related to features in the layer.
  27496. *
  27497. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27498. */
  27499. supportsCount: boolean;
  27500. /**
  27501. * Indicates if the related features or records returned in the query response can be ordered by one or more fields.
  27502. *
  27503. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27504. */
  27505. supportsOrderBy: boolean;
  27506. /**
  27507. * Indicates if the query response supports pagination for related features or records.
  27508. *
  27509. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#capabilities)
  27510. */
  27511. supportsPagination: boolean;
  27512. }
  27513. export interface WFSLayerElevationInfo {
  27514. /**
  27515. * Defines how the feature is placed with respect to the terrain surface or 3D objects in the scene.
  27516. *
  27517. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#elevationInfo)
  27518. */
  27519. mode: "on-the-ground" | "relative-to-ground" | "absolute-height" | "relative-to-scene";
  27520. /**
  27521. * An elevation offset, which is added to the vertical position of the feature.
  27522. *
  27523. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#elevationInfo)
  27524. */
  27525. offset?: number;
  27526. /**
  27527. * Defines how to override a feature's Z-value based on its attributes.
  27528. *
  27529. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#elevationInfo)
  27530. */
  27531. featureExpressionInfo?: WFSLayerElevationInfoFeatureExpressionInfo;
  27532. /**
  27533. * The unit for `featureExpressionInfo` and `offset` values.
  27534. *
  27535. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#elevationInfo)
  27536. */
  27537. unit?: "feet" | "meters" | "kilometers" | "miles" | "us-feet" | "yards";
  27538. }
  27539. export interface WFSLayerElevationInfoFeatureExpressionInfo {
  27540. /**
  27541. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Feature Z Profile](https://developers.arcgis.com/javascript/latest/arcade/#z-values).
  27542. *
  27543. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#elevationInfo)
  27544. */
  27545. expression?: string;
  27546. }
  27547. export interface WFSLayerGetFieldDomainOptions {
  27548. /**
  27549. * The feature to which the [Domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Domain.html) is assigned.
  27550. *
  27551. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#getFieldDomain)
  27552. */
  27553. feature: Graphic;
  27554. }
  27555. export interface WFSLayerQueryExtentOptions {
  27556. /**
  27557. * Signal object that can be used to abort the asynchronous task.
  27558. *
  27559. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#queryExtent)
  27560. */
  27561. signal?: AbortSignal;
  27562. }
  27563. export interface WFSLayerQueryFeatureCountOptions {
  27564. /**
  27565. * Signal object that can be used to abort the asynchronous task.
  27566. *
  27567. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#queryFeatureCount)
  27568. */
  27569. signal?: AbortSignal;
  27570. }
  27571. export interface WFSLayerQueryFeaturesOptions {
  27572. /**
  27573. * Signal object that can be used to abort the asynchronous task.
  27574. *
  27575. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#queryFeatures)
  27576. */
  27577. signal?: AbortSignal;
  27578. }
  27579. export interface WFSLayerQueryObjectIdsOptions {
  27580. /**
  27581. * Signal object that can be used to abort the asynchronous task.
  27582. *
  27583. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#queryObjectIds)
  27584. */
  27585. signal?: AbortSignal;
  27586. }
  27587. export interface WMSLayer extends Layer, BlendLayer, PortalLayer, ScaleRangeLayer, RefreshableLayer {
  27588. }
  27589. export class WMSLayer {
  27590. /**
  27591. * A flattened collection of all [WMSSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html)s based on the [`sublayers`](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#sublayers) property.
  27592. *
  27593. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#allSublayers)
  27594. */
  27595. allSublayers: Collection<WMSSublayer>;
  27596. /**
  27597. * Copyright information for the WMS service.
  27598. *
  27599. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#copyright)
  27600. */
  27601. copyright: string;
  27602. /**
  27603. * Use this to append different custom parameters to the WMS map requests.
  27604. *
  27605. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#customLayerParameters)
  27606. */
  27607. customLayerParameters: any;
  27608. /**
  27609. * Use this to append custom parameters to all WMS requests.
  27610. *
  27611. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#customParameters)
  27612. */
  27613. customParameters: any;
  27614. /**
  27615. * Description for the WMS layer.
  27616. *
  27617. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#description)
  27618. */
  27619. description: string;
  27620. /**
  27621. * An array of time, elevation and other dimensions for the root layer.
  27622. *
  27623. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#dimensions)
  27624. */
  27625. readonly dimensions: (TimeDimension | ElevationDimension | GenericDimension)[];
  27626. /**
  27627. * The MIME type that will be requested by popups.
  27628. *
  27629. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#featureInfoFormat)
  27630. */
  27631. featureInfoFormat: "text/html" | "text/plain" | null;
  27632. /**
  27633. * This property lists all available MIME-types that can be used with the WMS service's _GetFeatureInfo_ request.
  27634. *
  27635. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#featureInfoFormats)
  27636. */
  27637. readonly featureInfoFormats: string[];
  27638. /**
  27639. * The URL for the WMS GetFeatureInfo call.
  27640. *
  27641. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#featureInfoUrl)
  27642. */
  27643. featureInfoUrl: string;
  27644. /**
  27645. * Function to override the default popup behavior of `WMSLayer`.
  27646. *
  27647. * @default null
  27648. *
  27649. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#fetchFeatureInfoFunction)
  27650. */
  27651. fetchFeatureInfoFunction: FetchFeatureInfoFunction;
  27652. /**
  27653. * All bounding boxes defined for the layer.
  27654. *
  27655. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#fullExtents)
  27656. */
  27657. fullExtents: Extent[];
  27658. /**
  27659. * The map image format (MIME type) to request.
  27660. *
  27661. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#imageFormat)
  27662. */
  27663. imageFormat: string;
  27664. /**
  27665. * Indicates the maximum height of the image exported by the service.
  27666. *
  27667. * @default 2048
  27668. *
  27669. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#imageMaxHeight)
  27670. */
  27671. imageMaxHeight: number;
  27672. /**
  27673. * Indicates the maximum width of the image exported by the service.
  27674. *
  27675. * @default 2048
  27676. *
  27677. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#imageMaxWidth)
  27678. */
  27679. imageMaxWidth: number;
  27680. /**
  27681. * Indicates whether the background of the image exported by the service is transparent.
  27682. *
  27683. * @default true
  27684. *
  27685. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#imageTransparency)
  27686. */
  27687. imageTransparency: boolean;
  27688. /**
  27689. * Indicates whether the layer will be included in the legend.
  27690. *
  27691. * @default true
  27692. *
  27693. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#legendEnabled)
  27694. */
  27695. legendEnabled: boolean;
  27696. /**
  27697. * The spatial reference of the layer.
  27698. *
  27699. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#spatialReference)
  27700. */
  27701. spatialReference: SpatialReference;
  27702. /**
  27703. * List of spatialReference well known ids derived from the CRS elements of the first layer in the GetCapabilities request.
  27704. *
  27705. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#spatialReferences)
  27706. */
  27707. spatialReferences: number[];
  27708. /**
  27709. * A subset of the layer's [WMSSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html)s that will be displayed.
  27710. *
  27711. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#sublayers)
  27712. */
  27713. sublayers: Collection<WMSSublayer>;
  27714. /**
  27715. * The layer's time extent.
  27716. *
  27717. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#timeExtent)
  27718. */
  27719. timeExtent: TimeExtent;
  27720. /**
  27721. * TimeInfo provides information such as date fields that store [start](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#startField) and [end](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#endField) time for each feature and the [fullTimeExtent](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#fullTimeExtent) for the layer.
  27722. *
  27723. * @default null
  27724. *
  27725. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#timeInfo)
  27726. */
  27727. timeInfo: TimeInfo;
  27728. /**
  27729. * A temporary offset of the time data based on a certain [TimeInterval](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeInterval.html).
  27730. *
  27731. * @default null
  27732. *
  27733. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#timeOffset)
  27734. */
  27735. timeOffset: TimeInterval;
  27736. readonly type: "wms";
  27737. /**
  27738. * The URL of the WMS service.
  27739. *
  27740. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#url)
  27741. */
  27742. url: string;
  27743. /**
  27744. * Determines if the layer will update its temporal data based on the view's [timeExtent](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#timeExtent).
  27745. *
  27746. * @default true
  27747. *
  27748. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#useViewTime)
  27749. */
  27750. useViewTime: boolean;
  27751. /**
  27752. * Version of the [WMS specification](http://www.opengeospatial.org/standards/wms) to use.
  27753. *
  27754. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#version)
  27755. */
  27756. version: string;
  27757. /**
  27758. * The WMSLayer is used to create layers based on OGC Web Map Services (WMS).
  27759. *
  27760. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html)
  27761. */
  27762. constructor(properties?: WMSLayerProperties);
  27763. /**
  27764. * Fetching the WMS image.
  27765. *
  27766. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#fetchImage)
  27767. */
  27768. fetchImage(extent: Extent, width: number, height: number, options?: WMSLayerFetchImageOptions): Promise<any>;
  27769. /**
  27770. * Returns a [WMSSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html) based on the given sublayer id.
  27771. *
  27772. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#findSublayerById)
  27773. */
  27774. findSublayerById(id: number): WMSSublayer;
  27775. /**
  27776. * Returns a [WMSSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html) based on the given sublayer name.
  27777. *
  27778. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#findSublayerByName)
  27779. */
  27780. findSublayerByName(name: string): WMSSublayer;
  27781. on(name: "refresh", eventHandler: WMSLayerRefreshEventHandler): IHandle;
  27782. on(name: "layerview-create", eventHandler: WMSLayerLayerviewCreateEventHandler): IHandle;
  27783. on(name: "layerview-create-error", eventHandler: WMSLayerLayerviewCreateErrorEventHandler): IHandle;
  27784. on(name: "layerview-destroy", eventHandler: WMSLayerLayerviewDestroyEventHandler): IHandle;
  27785. static fromJSON(json: any): WMSLayer;
  27786. }
  27787. /** @deprecated Import the WMSLayer class instead. */
  27788. export type WMSLayerConstructor = typeof WMSLayer;
  27789. interface WMSLayerProperties extends LayerProperties, BlendLayerProperties, PortalLayerProperties, ScaleRangeLayerProperties, RefreshableLayerProperties {
  27790. /**
  27791. * A flattened collection of all [WMSSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html)s based on the [`sublayers`](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#sublayers) property.
  27792. *
  27793. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#allSublayers)
  27794. */
  27795. allSublayers?: CollectionProperties<WMSSublayerProperties>;
  27796. /**
  27797. * Copyright information for the WMS service.
  27798. *
  27799. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#copyright)
  27800. */
  27801. copyright?: string;
  27802. /**
  27803. * Use this to append different custom parameters to the WMS map requests.
  27804. *
  27805. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#customLayerParameters)
  27806. */
  27807. customLayerParameters?: any;
  27808. /**
  27809. * Use this to append custom parameters to all WMS requests.
  27810. *
  27811. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#customParameters)
  27812. */
  27813. customParameters?: any;
  27814. /**
  27815. * Description for the WMS layer.
  27816. *
  27817. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#description)
  27818. */
  27819. description?: string;
  27820. /**
  27821. * The MIME type that will be requested by popups.
  27822. *
  27823. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#featureInfoFormat)
  27824. */
  27825. featureInfoFormat?: "text/html" | "text/plain" | null;
  27826. /**
  27827. * The URL for the WMS GetFeatureInfo call.
  27828. *
  27829. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#featureInfoUrl)
  27830. */
  27831. featureInfoUrl?: string;
  27832. /**
  27833. * Function to override the default popup behavior of `WMSLayer`.
  27834. *
  27835. * @default null
  27836. *
  27837. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#fetchFeatureInfoFunction)
  27838. */
  27839. fetchFeatureInfoFunction?: FetchFeatureInfoFunction;
  27840. /**
  27841. * All bounding boxes defined for the layer.
  27842. *
  27843. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#fullExtents)
  27844. */
  27845. fullExtents?: ExtentProperties[];
  27846. /**
  27847. * The map image format (MIME type) to request.
  27848. *
  27849. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#imageFormat)
  27850. */
  27851. imageFormat?: string;
  27852. /**
  27853. * Indicates the maximum height of the image exported by the service.
  27854. *
  27855. * @default 2048
  27856. *
  27857. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#imageMaxHeight)
  27858. */
  27859. imageMaxHeight?: number;
  27860. /**
  27861. * Indicates the maximum width of the image exported by the service.
  27862. *
  27863. * @default 2048
  27864. *
  27865. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#imageMaxWidth)
  27866. */
  27867. imageMaxWidth?: number;
  27868. /**
  27869. * Indicates whether the background of the image exported by the service is transparent.
  27870. *
  27871. * @default true
  27872. *
  27873. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#imageTransparency)
  27874. */
  27875. imageTransparency?: boolean;
  27876. /**
  27877. * Indicates whether the layer will be included in the legend.
  27878. *
  27879. * @default true
  27880. *
  27881. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#legendEnabled)
  27882. */
  27883. legendEnabled?: boolean;
  27884. /**
  27885. * The spatial reference of the layer.
  27886. *
  27887. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#spatialReference)
  27888. */
  27889. spatialReference?: SpatialReferenceProperties;
  27890. /**
  27891. * List of spatialReference well known ids derived from the CRS elements of the first layer in the GetCapabilities request.
  27892. *
  27893. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#spatialReferences)
  27894. */
  27895. spatialReferences?: number[];
  27896. /**
  27897. * A subset of the layer's [WMSSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html)s that will be displayed.
  27898. *
  27899. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#sublayers)
  27900. */
  27901. sublayers?: CollectionProperties<WMSSublayerProperties>;
  27902. /**
  27903. * The layer's time extent.
  27904. *
  27905. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#timeExtent)
  27906. */
  27907. timeExtent?: TimeExtentProperties;
  27908. /**
  27909. * TimeInfo provides information such as date fields that store [start](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#startField) and [end](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#endField) time for each feature and the [fullTimeExtent](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#fullTimeExtent) for the layer.
  27910. *
  27911. * @default null
  27912. *
  27913. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#timeInfo)
  27914. */
  27915. timeInfo?: TimeInfoProperties;
  27916. /**
  27917. * A temporary offset of the time data based on a certain [TimeInterval](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeInterval.html).
  27918. *
  27919. * @default null
  27920. *
  27921. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#timeOffset)
  27922. */
  27923. timeOffset?: TimeIntervalProperties;
  27924. /**
  27925. * The URL of the WMS service.
  27926. *
  27927. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#url)
  27928. */
  27929. url?: string;
  27930. /**
  27931. * Determines if the layer will update its temporal data based on the view's [timeExtent](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#timeExtent).
  27932. *
  27933. * @default true
  27934. *
  27935. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#useViewTime)
  27936. */
  27937. useViewTime?: boolean;
  27938. /**
  27939. * Version of the [WMS specification](http://www.opengeospatial.org/standards/wms) to use.
  27940. *
  27941. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#version)
  27942. */
  27943. version?: string;
  27944. }
  27945. export type FetchFeatureInfoFunction = (query: any) => Promise<Graphic[]>;
  27946. export interface WMSLayerLayerviewCreateErrorEvent {
  27947. error: Error;
  27948. view: View;
  27949. }
  27950. export interface WMSLayerLayerviewCreateEvent {
  27951. layerView: LayerView;
  27952. view: View;
  27953. }
  27954. export interface WMSLayerLayerviewDestroyEvent {
  27955. layerView: LayerView;
  27956. view: View;
  27957. }
  27958. export interface WMSLayerRefreshEvent {
  27959. dataChanged: boolean;
  27960. }
  27961. export interface WMSLayerFetchImageOptions {
  27962. /**
  27963. * The ratio of the resolution in physical pixels of the image to the resolution it will be displayed at.
  27964. *
  27965. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#fetchImage)
  27966. */
  27967. pixelRatio?: number;
  27968. /**
  27969. * The rotation in degrees of the exported image.
  27970. *
  27971. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#fetchImage)
  27972. */
  27973. rotation?: number;
  27974. /**
  27975. * An [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) to abort the request.
  27976. *
  27977. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#fetchImage)
  27978. */
  27979. signal?: AbortSignal;
  27980. }
  27981. export interface WMTSLayer extends Layer, PortalLayer, ScaleRangeLayer, RefreshableLayer, BlendLayer {
  27982. }
  27983. export class WMTSLayer {
  27984. /**
  27985. * Currently active sublayer.
  27986. *
  27987. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMTSLayer.html#activeLayer)
  27988. */
  27989. activeLayer: WMTSSublayer;
  27990. /**
  27991. * Copyright information for the WMTS service.
  27992. *
  27993. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMTSLayer.html#copyright)
  27994. */
  27995. copyright: string;
  27996. /**
  27997. * Use this to append different custom parameters to the WMTS tile requests.
  27998. *
  27999. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMTSLayer.html#customLayerParameters)
  28000. */
  28001. customLayerParameters: any;
  28002. /**
  28003. * Use this to append custom parameters to all WMTS requests.
  28004. *
  28005. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMTSLayer.html#customParameters)
  28006. */
  28007. customParameters: any;
  28008. /**
  28009. * The service mode for the WMTS layer.
  28010. *
  28011. * @default RESTful
  28012. *
  28013. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMTSLayer.html#serviceMode)
  28014. */
  28015. serviceMode: "RESTful" | "KVP";
  28016. /**
  28017. * A collection of [WMTSSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html) objects.
  28018. *
  28019. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMTSLayer.html#sublayers)
  28020. */
  28021. sublayers: Collection<WMTSSublayer>;
  28022. readonly type: "wmts";
  28023. /**
  28024. * The URL of the WMTS service.
  28025. *
  28026. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMTSLayer.html#url)
  28027. */
  28028. url: string;
  28029. /**
  28030. * Version of the [WMTS specification](http://www.opengeospatial.org/standards/wmts) to use.
  28031. *
  28032. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMTSLayer.html#version)
  28033. */
  28034. version: string;
  28035. /**
  28036. * The WMTSLayer is used to create layers based on OGC Web Map Tile Services (WMTS).
  28037. *
  28038. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMTSLayer.html)
  28039. */
  28040. constructor(properties?: WMTSLayerProperties);
  28041. /**
  28042. * Returns a [WMTSSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html) based on the given sublayer id.
  28043. *
  28044. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMTSLayer.html#findSublayerById)
  28045. */
  28046. findSublayerById(id: string): WMTSSublayer;
  28047. static fromJSON(json: any): WMTSLayer;
  28048. }
  28049. /** @deprecated Import the WMTSLayer class instead. */
  28050. export type WMTSLayerConstructor = typeof WMTSLayer;
  28051. interface WMTSLayerProperties extends LayerProperties, PortalLayerProperties, ScaleRangeLayerProperties, RefreshableLayerProperties, BlendLayerProperties {
  28052. /**
  28053. * Currently active sublayer.
  28054. *
  28055. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMTSLayer.html#activeLayer)
  28056. */
  28057. activeLayer?: WMTSSublayerProperties;
  28058. /**
  28059. * Copyright information for the WMTS service.
  28060. *
  28061. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMTSLayer.html#copyright)
  28062. */
  28063. copyright?: string;
  28064. /**
  28065. * Use this to append different custom parameters to the WMTS tile requests.
  28066. *
  28067. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMTSLayer.html#customLayerParameters)
  28068. */
  28069. customLayerParameters?: any;
  28070. /**
  28071. * Use this to append custom parameters to all WMTS requests.
  28072. *
  28073. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMTSLayer.html#customParameters)
  28074. */
  28075. customParameters?: any;
  28076. /**
  28077. * The service mode for the WMTS layer.
  28078. *
  28079. * @default RESTful
  28080. *
  28081. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMTSLayer.html#serviceMode)
  28082. */
  28083. serviceMode?: "RESTful" | "KVP";
  28084. /**
  28085. * A collection of [WMTSSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMTSSublayer.html) objects.
  28086. *
  28087. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMTSLayer.html#sublayers)
  28088. */
  28089. sublayers?: CollectionProperties<WMTSSublayerProperties>;
  28090. /**
  28091. * The URL of the WMTS service.
  28092. *
  28093. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMTSLayer.html#url)
  28094. */
  28095. url?: string;
  28096. /**
  28097. * Version of the [WMTS specification](http://www.opengeospatial.org/standards/wmts) to use.
  28098. *
  28099. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMTSLayer.html#version)
  28100. */
  28101. version?: string;
  28102. }
  28103. export interface Map extends Accessor, LayersMixin, TablesMixin {
  28104. }
  28105. export class Map {
  28106. /**
  28107. * A flattened collection of all [layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html) in the map.
  28108. *
  28109. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#allLayers)
  28110. */
  28111. readonly allLayers: Collection<Layer>;
  28112. /**
  28113. * A flattened collection of tables anywhere in the map's hierarchy.
  28114. *
  28115. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#allTables)
  28116. */
  28117. readonly allTables: Collection<Layer>;
  28118. /**
  28119. * Specifies a basemap for the map.
  28120. *
  28121. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#basemap)
  28122. */
  28123. basemap: Basemap;
  28124. /**
  28125. * A collection of editable layers.
  28126. *
  28127. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#editableLayers)
  28128. */
  28129. readonly editableLayers: Collection<FeatureLayer | SceneLayer | SubtypeGroupLayer>;
  28130. /**
  28131. * Specifies the surface properties for the map.
  28132. *
  28133. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#ground)
  28134. */
  28135. ground: Ground;
  28136. /**
  28137. * The Map class contains properties and methods for storing, managing, and overlaying [layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#layers) common to both 2D and 3D viewing.
  28138. *
  28139. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html)
  28140. */
  28141. constructor(properties?: MapProperties);
  28142. /**
  28143. * Destroys the map, and any associated resources, including its [layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#layers), [basemap](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#basemap), [tables](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#tables), and [ground](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#ground).
  28144. *
  28145. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#destroy)
  28146. */
  28147. destroy(): void;
  28148. }
  28149. /** @deprecated Import the Map class instead. */
  28150. export type MapConstructor = typeof Map;
  28151. interface MapProperties extends LayersMixinProperties, TablesMixinProperties {
  28152. /**
  28153. * Specifies a basemap for the map.
  28154. *
  28155. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#basemap)
  28156. */
  28157. basemap?: BasemapProperties | string;
  28158. /**
  28159. * Specifies the surface properties for the map.
  28160. *
  28161. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#ground)
  28162. */
  28163. ground?: GroundProperties | string;
  28164. }
  28165. export interface Network extends Accessor, JSONSupport, Loadable {
  28166. }
  28167. export class Network {
  28168. /**
  28169. * The full network definition, accessible only when the network is loaded.
  28170. *
  28171. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#dataElement)
  28172. */
  28173. dataElement: any;
  28174. /**
  28175. * The physical dataset name of the network as defined in the backend database.
  28176. *
  28177. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#datasetName)
  28178. */
  28179. readonly datasetName: string;
  28180. /**
  28181. * Returns the root feature service url which this network is part of.
  28182. *
  28183. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#featureServiceUrl)
  28184. */
  28185. readonly featureServiceUrl: string;
  28186. /**
  28187. * The full extent of the network, defined from the service territory used to create the network.
  28188. *
  28189. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#fullExtent)
  28190. */
  28191. fullExtent: Extent;
  28192. /**
  28193. * Random unique id (UUID) to identify a network as defined in the webmap spec.
  28194. *
  28195. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#id)
  28196. */
  28197. id: string;
  28198. /**
  28199. * The layer id of the network.
  28200. *
  28201. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#layerId)
  28202. */
  28203. readonly layerId: number;
  28204. /**
  28205. * The full url to the network layer id as defined in the webmap spec.
  28206. *
  28207. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#layerUrl)
  28208. */
  28209. layerUrl: string;
  28210. /**
  28211. * Indicates whether the network instance has loaded.
  28212. *
  28213. * @default false
  28214. *
  28215. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#loaded)
  28216. */
  28217. readonly loaded: boolean;
  28218. /**
  28219. * Returns the url of network server.
  28220. *
  28221. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#networkServiceUrl)
  28222. */
  28223. readonly networkServiceUrl: string;
  28224. /**
  28225. * Contains the url and IDs of the utility network rules, subnetworks, and dirty areas tables or layers.
  28226. *
  28227. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#networkSystemLayers)
  28228. */
  28229. readonly networkSystemLayers: NetworkSystemLayers;
  28230. /**
  28231. * The portal user owner of the network.
  28232. *
  28233. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#owner)
  28234. */
  28235. readonly owner: string;
  28236. /**
  28237. * Converts url to a url object
  28238. *
  28239. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#parsedUrl)
  28240. */
  28241. readonly parsedUrl: string;
  28242. /**
  28243. * The schema version of the network.
  28244. *
  28245. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#schemaGeneration)
  28246. */
  28247. readonly schemaGeneration: number;
  28248. sourceJSON: any;
  28249. /**
  28250. * The spatial reference of the network, defined at the creation of the network, usually from the service territory class.
  28251. *
  28252. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#spatialReference)
  28253. */
  28254. spatialReference: SpatialReference;
  28255. /**
  28256. * The name of the network as defined in the webmap spec.
  28257. *
  28258. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#title)
  28259. */
  28260. title: string;
  28261. /**
  28262. * The type of the dataset.
  28263. *
  28264. * @default utility
  28265. *
  28266. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#type)
  28267. */
  28268. readonly type: "utility" | "trace";
  28269. /**
  28270. * Class defining high level properties that describes utility networks and trace networks.
  28271. *
  28272. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html)
  28273. */
  28274. constructor(properties?: NetworkProperties);
  28275. /**
  28276. * The network consists of sources (classes) and each source has a unique Id.
  28277. *
  28278. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#getLayerIdBySourceId)
  28279. */
  28280. getLayerIdBySourceId(id: number): number;
  28281. /**
  28282. * Triggers the loading of the network instance.
  28283. *
  28284. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#load)
  28285. */
  28286. load(): Promise<any>;
  28287. /**
  28288. * Named trace configurations allow you to add and store complex traces in a network that can be shared across an organization through web maps and consumed by web and field applications.
  28289. *
  28290. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#queryNamedTraceConfigurations)
  28291. */
  28292. queryNamedTraceConfigurations(query?: NetworkQueryNamedTraceConfigurationsQuery, options?: RequestOptions): Promise<NamedTraceConfiguration[]>;
  28293. /**
  28294. * Creates a new network instance from an ArcGIS Online or ArcGIS Enterprise [portal item](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html).
  28295. *
  28296. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#fromPortalItem)
  28297. */
  28298. static fromPortalItem(params: NetworkFromPortalItemParams): Promise<UtilityNetwork>;
  28299. static fromJSON(json: any): Network;
  28300. }
  28301. /** @deprecated Import the Network class instead. */
  28302. export type NetworkConstructor = typeof Network;
  28303. interface NetworkProperties extends LoadableProperties {
  28304. /**
  28305. * The full network definition, accessible only when the network is loaded.
  28306. *
  28307. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#dataElement)
  28308. */
  28309. dataElement?: any;
  28310. /**
  28311. * The full extent of the network, defined from the service territory used to create the network.
  28312. *
  28313. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#fullExtent)
  28314. */
  28315. fullExtent?: ExtentProperties;
  28316. /**
  28317. * Random unique id (UUID) to identify a network as defined in the webmap spec.
  28318. *
  28319. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#id)
  28320. */
  28321. id?: string;
  28322. /**
  28323. * The full url to the network layer id as defined in the webmap spec.
  28324. *
  28325. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#layerUrl)
  28326. */
  28327. layerUrl?: string;
  28328. sourceJSON?: any;
  28329. /**
  28330. * The spatial reference of the network, defined at the creation of the network, usually from the service territory class.
  28331. *
  28332. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#spatialReference)
  28333. */
  28334. spatialReference?: SpatialReferenceProperties;
  28335. /**
  28336. * The name of the network as defined in the webmap spec.
  28337. *
  28338. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#title)
  28339. */
  28340. title?: string;
  28341. }
  28342. export interface NetworkFromPortalItemParams {
  28343. /**
  28344. * The object representing an ArcGIS Online or ArcGIS Enterprise portal item from which to load the network.
  28345. *
  28346. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#fromPortalItem)
  28347. */
  28348. portalItem: PortalItem;
  28349. }
  28350. export interface NetworkQueryNamedTraceConfigurationsQuery {
  28351. /**
  28352. * An array of the named trace configuration creators to be queried.
  28353. *
  28354. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#queryNamedTraceConfigurations)
  28355. */
  28356. creators?: string[];
  28357. /**
  28358. * An array of named trace configuration globalIds (UUID) to be queried.
  28359. *
  28360. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#queryNamedTraceConfigurations)
  28361. */
  28362. globalIds?: string[];
  28363. /**
  28364. * An array of named trace configuration names to be queried.
  28365. *
  28366. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#queryNamedTraceConfigurations)
  28367. */
  28368. names?: string[];
  28369. /**
  28370. * An array of named trace configuration user tags to be queried.
  28371. *
  28372. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-Network.html#queryNamedTraceConfigurations)
  28373. */
  28374. tags?: string[];
  28375. }
  28376. export class NamedTraceConfiguration {
  28377. /**
  28378. * The date/time when the trace configuration has been added to the utility network.
  28379. *
  28380. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-NamedTraceConfiguration.html#creationDate)
  28381. */
  28382. creationDate: Date;
  28383. /**
  28384. * The portal user who created the trace configuration.
  28385. *
  28386. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-NamedTraceConfiguration.html#creator)
  28387. */
  28388. creator: string;
  28389. /**
  28390. * Short description of what kind of trace this trace configuration performs.
  28391. *
  28392. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-NamedTraceConfiguration.html#description)
  28393. */
  28394. description: string;
  28395. /**
  28396. * The `globalId` (UUID) uniquely identifies a trace configuration.
  28397. *
  28398. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-NamedTraceConfiguration.html#globalId)
  28399. */
  28400. globalId: string;
  28401. /**
  28402. * The minimum number of starting points required to perform a trace with this particular trace configuration.
  28403. *
  28404. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-NamedTraceConfiguration.html#minStartingPoints)
  28405. */
  28406. minStartingPoints: "none" | "one" | "many";
  28407. /**
  28408. * The result types of the trace configuration.
  28409. *
  28410. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-NamedTraceConfiguration.html#resultTypes)
  28411. */
  28412. resultTypes: any[];
  28413. /**
  28414. * Labels that help identify and search for a particular trace configuration.
  28415. *
  28416. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-NamedTraceConfiguration.html#tags)
  28417. */
  28418. tags: string[];
  28419. /**
  28420. * The title or the name of the trace configuration.
  28421. *
  28422. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-NamedTraceConfiguration.html#title)
  28423. */
  28424. title: string;
  28425. /**
  28426. * The full definition of the trace configuration.
  28427. *
  28428. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-NamedTraceConfiguration.html#traceConfiguration)
  28429. */
  28430. traceConfiguration: TraceConfiguration | UNTraceConfiguration;
  28431. /**
  28432. * The trace type defined in this trace configuration.
  28433. *
  28434. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-NamedTraceConfiguration.html#traceType)
  28435. */
  28436. traceType: | "connected"
  28437. | "upstream"
  28438. | "downstream"
  28439. | "shortest-path"
  28440. | "subnetwork"
  28441. | "subnetwork-controllers"
  28442. | "loops"
  28443. | "isolation";
  28444. constructor(properties?: any);
  28445. }
  28446. /** @deprecated Import the NamedTraceConfiguration class instead. */
  28447. export type NamedTraceConfigurationConstructor = typeof NamedTraceConfiguration;
  28448. export class NetworkSystemLayers extends Accessor {
  28449. /**
  28450. * The layer ID of the service containing the utility network's [dirty areas](https://pro.arcgis.com/en/pro-app/latest/help/data/utility-network/dirty-areas-in-a-utility-network.htm).
  28451. *
  28452. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-NetworkSystemLayers.html#dirtyAreasLayerId)
  28453. */
  28454. readonly dirtyAreasLayerId: number;
  28455. /**
  28456. * The service url containing the utility network's [dirty areas](https://pro.arcgis.com/en/pro-app/latest/help/data/utility-network/dirty-areas-in-a-utility-network.htm).
  28457. *
  28458. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-NetworkSystemLayers.html#dirtyAreasLayerUrl)
  28459. */
  28460. readonly dirtyAreasLayerUrl: string;
  28461. /**
  28462. * The layer ID of the service containing the network rules table.
  28463. *
  28464. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-NetworkSystemLayers.html#rulesTableId)
  28465. */
  28466. readonly rulesTableId: number;
  28467. /**
  28468. * The service url containing the network rules table.
  28469. *
  28470. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-NetworkSystemLayers.html#rulesTableUrl)
  28471. */
  28472. readonly rulesTableUrl: string;
  28473. /**
  28474. * The layer ID of the service containing the utility network's [Subnetworks table](https://pro.arcgis.com/en/pro-app/latest/help/data/utility-network/subnetworks-table.htm).
  28475. *
  28476. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-NetworkSystemLayers.html#subnetworksTableId)
  28477. */
  28478. readonly subnetworksTableId: number;
  28479. /**
  28480. * The service url containing the utility network's [Subnetworks table](https://pro.arcgis.com/en/pro-app/latest/help/data/utility-network/subnetworks-table.htm).
  28481. *
  28482. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-NetworkSystemLayers.html#subnetworksTableUrl)
  28483. */
  28484. readonly subnetworksTableUrl: string;
  28485. /**
  28486. * The NetworkSystemLayers contains the url and IDs of the utility network rules, subnetworks, and dirty areas tables or layers.
  28487. *
  28488. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-NetworkSystemLayers.html)
  28489. */
  28490. constructor(properties?: NetworkSystemLayersProperties);
  28491. }
  28492. /** @deprecated Import the NetworkSystemLayers class instead. */
  28493. export type NetworkSystemLayersConstructor = typeof NetworkSystemLayers;
  28494. interface NetworkSystemLayersProperties {
  28495. }
  28496. export interface Terminal extends Accessor, JSONSupport {
  28497. }
  28498. export class Terminal {
  28499. /**
  28500. * A unique numeric identifer for the terminal.
  28501. *
  28502. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-Terminal.html#id)
  28503. */
  28504. id: number;
  28505. /**
  28506. * The name of the terminal.
  28507. *
  28508. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-Terminal.html#name)
  28509. */
  28510. name: string;
  28511. /**
  28512. * A device feature can be assigned a terminal configuration, which could have one or more terminals.
  28513. *
  28514. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-Terminal.html)
  28515. */
  28516. constructor(properties?: TerminalProperties);
  28517. static fromJSON(json: any): Terminal;
  28518. }
  28519. /** @deprecated Import the Terminal class instead. */
  28520. export type TerminalConstructor = typeof Terminal;
  28521. interface TerminalProperties {
  28522. /**
  28523. * A unique numeric identifer for the terminal.
  28524. *
  28525. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-Terminal.html#id)
  28526. */
  28527. id?: number;
  28528. /**
  28529. * The name of the terminal.
  28530. *
  28531. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-Terminal.html#name)
  28532. */
  28533. name?: string;
  28534. }
  28535. export interface TerminalConfiguration extends Accessor, JSONSupport {
  28536. }
  28537. export class TerminalConfiguration {
  28538. /**
  28539. * The default terminal configuration path defined.
  28540. *
  28541. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-TerminalConfiguration.html#defaultConfiguration)
  28542. */
  28543. defaultConfiguration: string;
  28544. /**
  28545. * A unique numeric identifer of the terminal configuration.
  28546. *
  28547. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-TerminalConfiguration.html#id)
  28548. */
  28549. id: number;
  28550. /**
  28551. * The name of the terminal configuration.
  28552. *
  28553. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-TerminalConfiguration.html#name)
  28554. */
  28555. name: string;
  28556. /**
  28557. * An array of [terminals](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-Terminal.html) defined in this configuration.
  28558. *
  28559. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-TerminalConfiguration.html#terminals)
  28560. */
  28561. terminals: Terminal[];
  28562. /**
  28563. * Terminal configurations can be defined as directional or bidirectional.
  28564. *
  28565. * @default null
  28566. *
  28567. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-TerminalConfiguration.html#traversabilityModel)
  28568. */
  28569. traversabilityModel: "directional" | "bidirectional";
  28570. /**
  28571. * A device feature can be assigned a terminal configuration which could have one or more terminals.
  28572. *
  28573. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-TerminalConfiguration.html)
  28574. */
  28575. constructor(properties?: TerminalConfigurationProperties);
  28576. static fromJSON(json: any): TerminalConfiguration;
  28577. }
  28578. /** @deprecated Import the TerminalConfiguration class instead. */
  28579. export type TerminalConfigurationConstructor = typeof TerminalConfiguration;
  28580. interface TerminalConfigurationProperties {
  28581. /**
  28582. * The default terminal configuration path defined.
  28583. *
  28584. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-TerminalConfiguration.html#defaultConfiguration)
  28585. */
  28586. defaultConfiguration?: string;
  28587. /**
  28588. * A unique numeric identifer of the terminal configuration.
  28589. *
  28590. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-TerminalConfiguration.html#id)
  28591. */
  28592. id?: number;
  28593. /**
  28594. * The name of the terminal configuration.
  28595. *
  28596. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-TerminalConfiguration.html#name)
  28597. */
  28598. name?: string;
  28599. /**
  28600. * An array of [terminals](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-Terminal.html) defined in this configuration.
  28601. *
  28602. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-TerminalConfiguration.html#terminals)
  28603. */
  28604. terminals?: TerminalProperties[];
  28605. /**
  28606. * Terminal configurations can be defined as directional or bidirectional.
  28607. *
  28608. * @default null
  28609. *
  28610. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-TerminalConfiguration.html#traversabilityModel)
  28611. */
  28612. traversabilityModel?: "directional" | "bidirectional";
  28613. }
  28614. export class TraceConfiguration {
  28615. /**
  28616. * An array of objects representing network attribute or category conditions that serve as barriers.
  28617. *
  28618. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-TraceConfiguration.html#conditionBarriers)
  28619. */
  28620. conditionBarriers: any[];
  28621. /**
  28622. * An array of objects representing function barriers.
  28623. *
  28624. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-TraceConfiguration.html#functionBarriers)
  28625. */
  28626. functionBarriers: any[];
  28627. /**
  28628. * An array of objects representing function.
  28629. *
  28630. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-TraceConfiguration.html#functions)
  28631. */
  28632. functions: any[];
  28633. /**
  28634. * Do not stop the trace if the starting point is a barrier.
  28635. *
  28636. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-TraceConfiguration.html#ignoreBarriersAtStartingPoints)
  28637. */
  28638. ignoreBarriersAtStartingPoints: boolean;
  28639. /**
  28640. * Specifies whether the traversability barrier features will be included in the trace results.
  28641. *
  28642. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-TraceConfiguration.html#includeBarriers)
  28643. */
  28644. includeBarriers: boolean;
  28645. /**
  28646. * Specifies the type of features returned based on a network attribute or check for a category string.
  28647. *
  28648. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-TraceConfiguration.html#outputConditions)
  28649. */
  28650. outputConditions: any[];
  28651. /**
  28652. * Specifies the network attribute name used for determining the shortest path.
  28653. *
  28654. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-TraceConfiguration.html#shortestPathNetworkAttributeName)
  28655. */
  28656. shortestPathNetworkAttributeName: string;
  28657. /**
  28658. * Determines whether traversability is applied to both junctions and edges, junctions only, or edges only.
  28659. *
  28660. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-TraceConfiguration.html#traversabilityScope)
  28661. */
  28662. traversabilityScope: "junctions" | "edges" | "junctionsAndEdges";
  28663. /**
  28664. * Specifies whether an error will be returned if dirty areas are encountered in any of the traversed features.
  28665. *
  28666. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-TraceConfiguration.html#validateConsistency)
  28667. */
  28668. validateConsistency: boolean;
  28669. constructor(properties?: any);
  28670. }
  28671. /** @deprecated Import the TraceConfiguration class instead. */
  28672. export type TraceConfigurationConstructor = typeof TraceConfiguration;
  28673. export class UNTraceConfiguration {
  28674. /**
  28675. * Specifies the name of the domain network where the trace will be run.
  28676. *
  28677. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-UNTraceConfiguration.html#domainNetworkName)
  28678. */
  28679. domainNetworkName: string;
  28680. /**
  28681. * An array of objects representing specific categories or network attributes where the trace will stop.
  28682. *
  28683. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-UNTraceConfiguration.html#filterBarriers)
  28684. */
  28685. filterBarriers: any[];
  28686. /**
  28687. * Ensures the trace results include any bit that is set in the starting points for the network attribute.
  28688. *
  28689. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-UNTraceConfiguration.html#filterBitsetNetworkAttributeName)
  28690. */
  28691. filterBitsetNetworkAttributeName: string;
  28692. /**
  28693. * An array of objects representing filter function barriers.
  28694. *
  28695. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-UNTraceConfiguration.html#filterFunctionBarriers)
  28696. */
  28697. filterFunctionBarriers: any[];
  28698. /**
  28699. * Specifies where the filter will be applied.
  28700. *
  28701. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-UNTraceConfiguration.html#filterScope)
  28702. */
  28703. filterScope: "junctions" | "edges" | "junctionsAndEdges";
  28704. /**
  28705. * Specifies if the container features will be included in the trace results.
  28706. *
  28707. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-UNTraceConfiguration.html#includeContainers)
  28708. */
  28709. includeContainers: boolean;
  28710. /**
  28711. * Specifies if the content in containers will be included in the results.
  28712. *
  28713. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-UNTraceConfiguration.html#includeContent)
  28714. */
  28715. includeContent: boolean;
  28716. /**
  28717. * Specifies whether to include isolated features for an isolation trace.
  28718. *
  28719. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-UNTraceConfiguration.html#includeIsolated)
  28720. */
  28721. includeIsolated: boolean;
  28722. /**
  28723. * Specifies if structure features and objects will be included in the trace results.
  28724. *
  28725. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-UNTraceConfiguration.html#includeStructures)
  28726. */
  28727. includeStructures: boolean;
  28728. /**
  28729. * Specifies whether to limit the containers returned to include only those encountered up to, and including, the first spatial container for each network element in the trace results.
  28730. *
  28731. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-UNTraceConfiguration.html#includeUpToFirstSpatialContainer)
  28732. */
  28733. includeUpToFirstSpatialContainer: boolean;
  28734. /**
  28735. * Specifies the parameters needed for calculating nearest neighbors.
  28736. *
  28737. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-UNTraceConfiguration.html#nearestNeighbor)
  28738. */
  28739. nearestNeighbor: any;
  28740. /**
  28741. * An array of objects representing the output filter categories.
  28742. *
  28743. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-UNTraceConfiguration.html#outputFilterCategories)
  28744. */
  28745. outputFilterCategories: any[];
  28746. /**
  28747. * An array of objects used to control what is returned in the results of a trace.
  28748. *
  28749. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-UNTraceConfiguration.html#outputFilters)
  28750. */
  28751. outputFilters: any[];
  28752. /**
  28753. * A propagator defines the propagation of a network attribute along a traversal and provides a filter to stop traversal.
  28754. *
  28755. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-UNTraceConfiguration.html#propagators)
  28756. */
  28757. propagators: any[];
  28758. /**
  28759. * Specifies the name of the [subnetwork](https://pro.arcgis.com/en/pro-app/latest/help/data/utility-network/subnetworks.htm) where the trace will be run.
  28760. *
  28761. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-UNTraceConfiguration.html#subnetworkName)
  28762. */
  28763. subnetworkName: string;
  28764. /**
  28765. * Specifies the name of the tier where an upstream or downstream trace ends.
  28766. *
  28767. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-UNTraceConfiguration.html#targetTierName)
  28768. */
  28769. targetTierName: string;
  28770. /**
  28771. * Specifies the name of the tier where the trace will be run.
  28772. *
  28773. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-UNTraceConfiguration.html#tierName)
  28774. */
  28775. tierName: string;
  28776. /**
  28777. * Specifies if its necessary to validate whether traversed junction or edge objects have the necessary containment, attachment, or connectivity association in their association hierarchy.
  28778. *
  28779. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-UNTraceConfiguration.html#validateLocatability)
  28780. */
  28781. validateLocatability: boolean;
  28782. constructor(properties?: any);
  28783. }
  28784. /** @deprecated Import the UNTraceConfiguration class instead. */
  28785. export type UNTraceConfigurationConstructor = typeof UNTraceConfiguration;
  28786. export class UtilityNetwork extends Network {
  28787. /**
  28788. * Returns all the [domain networks](https://pro.arcgis.com/en/pro-app/latest/help/data/utility-network/domain-network.htm) in the utility network.
  28789. *
  28790. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-UtilityNetwork.html#domainNetworkNames)
  28791. */
  28792. readonly domainNetworkNames: string[];
  28793. /**
  28794. * The layer id of the service containing the utility network rules table.
  28795. *
  28796. * @deprecated since version 4.25. Use [networkSystemLayers.rulesTableId](#networkSystemLayers) instead.
  28797. *
  28798. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-UtilityNetwork.html#rulesTableId)
  28799. */
  28800. readonly rulesTableId: number;
  28801. /**
  28802. * The service url containing the utility network rules table.
  28803. *
  28804. * @deprecated since version 4.25. Use [networkSystemLayers.rulesTableUrl](#networkSystemLayers) instead.
  28805. *
  28806. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-UtilityNetwork.html#rulesTableUrl)
  28807. */
  28808. readonly rulesTableUrl: string;
  28809. /**
  28810. * The layer id of the service territory class used to define the extent of the utility network.
  28811. *
  28812. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-UtilityNetwork.html#serviceTerritoryFeatureLayerId)
  28813. */
  28814. readonly serviceTerritoryFeatureLayerId: number;
  28815. /**
  28816. * This property returns the list of trace configurations shared on the webmap.
  28817. *
  28818. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-UtilityNetwork.html#sharedNamedTraceConfigurations)
  28819. */
  28820. sharedNamedTraceConfigurations: NamedTraceConfiguration[];
  28821. /**
  28822. * The layer id of the service containing the utility network's [Subnetworks table](https://pro.arcgis.com/en/pro-app/latest/help/data/utility-network/subnetworks-table.htm).
  28823. *
  28824. * @deprecated since version 4.25. Use [networkSystemLayers.subnetworksTableId](#networkSystemLayers) instead.
  28825. *
  28826. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-UtilityNetwork.html#subnetworksTableId)
  28827. */
  28828. readonly subnetworksTableId: number;
  28829. /**
  28830. * The service url containing the utility network's [Subnetworks table](https://pro.arcgis.com/en/pro-app/latest/help/data/utility-network/subnetworks-table.htm).
  28831. *
  28832. * @deprecated since version 4.25. Use [networkSystemLayers.subnetworksTableUrl](#networkSystemLayers) instead.
  28833. *
  28834. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-UtilityNetwork.html#subnetworksTableUrl)
  28835. */
  28836. readonly subnetworksTableUrl: string;
  28837. /**
  28838. * Returns all the terminal configurations on the utility network.
  28839. *
  28840. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-UtilityNetwork.html#terminalConfigurations)
  28841. */
  28842. readonly terminalConfigurations: TerminalConfiguration[];
  28843. /**
  28844. * The type of the dataset.
  28845. *
  28846. * @default "utility"
  28847. *
  28848. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-UtilityNetwork.html#type)
  28849. */
  28850. readonly type: "utility";
  28851. /**
  28852. * This class contains metadata about the utility network dataset retrieved from a [WebMap](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html).
  28853. *
  28854. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-UtilityNetwork.html)
  28855. */
  28856. constructor(properties?: UtilityNetworkProperties);
  28857. /**
  28858. * All devices features have terminal configurations (default single terminal).
  28859. *
  28860. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-UtilityNetwork.html#getTerminalConfiguration)
  28861. */
  28862. getTerminalConfiguration(feature: Graphic): TerminalConfiguration;
  28863. /**
  28864. * Takes the name of a domain network and returns an array with the names of its tiers.
  28865. *
  28866. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-UtilityNetwork.html#getTierNames)
  28867. */
  28868. getTierNames(domainNetworkName: string): string[];
  28869. static fromJSON(json: any): UtilityNetwork;
  28870. }
  28871. /** @deprecated Import the UtilityNetwork class instead. */
  28872. export type UtilityNetworkConstructor = typeof UtilityNetwork;
  28873. interface UtilityNetworkProperties extends NetworkProperties {
  28874. /**
  28875. * This property returns the list of trace configurations shared on the webmap.
  28876. *
  28877. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-UtilityNetwork.html#sharedNamedTraceConfigurations)
  28878. */
  28879. sharedNamedTraceConfigurations?: NamedTraceConfiguration[];
  28880. }
  28881. /**
  28882. * A convenience module for importing [PointCloudRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudRenderer.html) classes when developing with [TypeScript](https://developers.arcgis.com/javascript/latest/typescript-setup/).
  28883. *
  28884. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-pointCloudRenderers.html)
  28885. */
  28886. namespace pointCloudRenderers {
  28887. /**
  28888. * Renderer types.
  28889. *
  28890. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-pointCloudRenderers.html#PointCloudRenderer)
  28891. */
  28892. export type PointCloudRenderer = | __esri.PointCloudClassBreaksRenderer
  28893. | __esri.PointCloudRGBRenderer
  28894. | __esri.PointCloudStretchRenderer
  28895. | __esri.PointCloudUniqueValueRenderer;
  28896. /**
  28897. * PointCloudClassBreaksRenderer.
  28898. *
  28899. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-pointCloudRenderers.html#PointCloudClassBreaksRenderer)
  28900. */
  28901. export type PointCloudClassBreaksRenderer = __esri.PointCloudClassBreaksRenderer;
  28902. export const PointCloudClassBreaksRenderer: typeof __esri.PointCloudClassBreaksRenderer;
  28903. /**
  28904. * PointCloudRGBRenderer.
  28905. *
  28906. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-pointCloudRenderers.html#PointCloudRGBRenderer)
  28907. */
  28908. export type PointCloudRGBRenderer = __esri.PointCloudRGBRenderer;
  28909. export const PointCloudRGBRenderer: typeof __esri.PointCloudRGBRenderer;
  28910. /**
  28911. * PointCloudStretchRenderer.
  28912. *
  28913. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-pointCloudRenderers.html#PointCloudStretchRenderer)
  28914. */
  28915. export type PointCloudStretchRenderer = __esri.PointCloudStretchRenderer;
  28916. export const PointCloudStretchRenderer: typeof __esri.PointCloudStretchRenderer;
  28917. /**
  28918. * PointCloudUniqueValueRenderer.
  28919. *
  28920. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-pointCloudRenderers.html#PointCloudUniqueValueRenderer)
  28921. */
  28922. export type PointCloudUniqueValueRenderer = __esri.PointCloudUniqueValueRenderer;
  28923. export const PointCloudUniqueValueRenderer: typeof __esri.PointCloudUniqueValueRenderer;
  28924. }
  28925. /**
  28926. * PointCloudClassBreaksRenderer.
  28927. *
  28928. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-pointCloudRenderers.html#PointCloudClassBreaksRenderer)
  28929. */
  28930. export type pointCloudRenderersPointCloudClassBreaksRenderer = PointCloudClassBreaksRenderer;
  28931. /**
  28932. * Renderer types.
  28933. *
  28934. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-pointCloudRenderers.html#PointCloudRenderer)
  28935. */
  28936. export type pointCloudRenderersPointCloudRenderer = | PointCloudClassBreaksRenderer
  28937. | PointCloudRGBRenderer
  28938. | PointCloudStretchRenderer
  28939. | PointCloudUniqueValueRenderer;
  28940. /**
  28941. * PointCloudRGBRenderer.
  28942. *
  28943. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-pointCloudRenderers.html#PointCloudRGBRenderer)
  28944. */
  28945. export type pointCloudRenderersPointCloudRGBRenderer = PointCloudRGBRenderer;
  28946. /**
  28947. * PointCloudStretchRenderer.
  28948. *
  28949. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-pointCloudRenderers.html#PointCloudStretchRenderer)
  28950. */
  28951. export type pointCloudRenderersPointCloudStretchRenderer = PointCloudStretchRenderer;
  28952. /**
  28953. * PointCloudUniqueValueRenderer.
  28954. *
  28955. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-pointCloudRenderers.html#PointCloudUniqueValueRenderer)
  28956. */
  28957. export type pointCloudRenderersPointCloudUniqueValueRenderer = PointCloudUniqueValueRenderer;
  28958. /**
  28959. * A convenience module for importing [Content](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-Content.html) classes when developing with [TypeScript](https://developers.arcgis.com/javascript/latest/typescript-setup/).
  28960. *
  28961. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content.html)
  28962. */
  28963. namespace content {
  28964. /**
  28965. * Popup content element types.
  28966. *
  28967. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content.html#Content)
  28968. */
  28969. export type Content = | __esri.TextContent
  28970. | __esri.MediaContent
  28971. | __esri.FieldsContent
  28972. | __esri.AttachmentsContent
  28973. | __esri.CustomContent
  28974. | __esri.ExpressionContent
  28975. | __esri.RelationshipContent;
  28976. /**
  28977. * TextContent defines descriptive text as an element within the [PopupTemplate's](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html) content.
  28978. *
  28979. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content.html#TextContent)
  28980. */
  28981. export type TextContent = __esri.TextContent;
  28982. export const TextContent: typeof __esri.TextContent;
  28983. /**
  28984. * MediaContent contains an individual or array of chart and/or image media elements to display within a popup's content.
  28985. *
  28986. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content.html#MediaContent)
  28987. */
  28988. export type MediaContent = __esri.MediaContent;
  28989. export const MediaContent: typeof __esri.MediaContent;
  28990. /**
  28991. * FieldsContent represents the [FieldInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-FieldInfo.html) associated with a feature.
  28992. *
  28993. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content.html#FieldsContent)
  28994. */
  28995. export type FieldsContent = __esri.FieldsContent;
  28996. export const FieldsContent: typeof __esri.FieldsContent;
  28997. /**
  28998. * AttachmentsContent represents an attachment element associated with a feature.
  28999. *
  29000. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content.html#AttachmentsContent)
  29001. */
  29002. export type AttachmentsContent = __esri.AttachmentsContent;
  29003. export const AttachmentsContent: typeof __esri.AttachmentsContent;
  29004. /**
  29005. * CustomContent represents a custom content element associated with a feature.
  29006. *
  29007. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content.html#CustomContent)
  29008. */
  29009. export type CustomContent = __esri.CustomContent;
  29010. export const CustomContent: typeof __esri.CustomContent;
  29011. /**
  29012. * ExpressionContent represents an expression element associated with a feature.
  29013. *
  29014. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content.html#ExpressionContent)
  29015. */
  29016. export type ExpressionContent = __esri.ExpressionContent;
  29017. export const ExpressionContent: typeof __esri.ExpressionContent;
  29018. /**
  29019. * RelationshipContent represents an relationship element associated with a feature.
  29020. *
  29021. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content.html#RelationshipContent)
  29022. */
  29023. export type RelationshipContent = __esri.RelationshipContent;
  29024. export const RelationshipContent: typeof __esri.RelationshipContent;
  29025. }
  29026. export interface AttachmentsContent extends Content, JSONSupport {
  29027. }
  29028. export class AttachmentsContent {
  29029. /**
  29030. * Describes the attachment's content in detail.
  29031. *
  29032. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-AttachmentsContent.html#description)
  29033. */
  29034. description: string;
  29035. /**
  29036. * A string value indicating how to display an attachment.
  29037. *
  29038. * @default "auto"
  29039. *
  29040. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-AttachmentsContent.html#displayType)
  29041. */
  29042. displayType: "auto" | "preview" | "list";
  29043. /**
  29044. * A heading indicating what the attachment's content represents.
  29045. *
  29046. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-AttachmentsContent.html#title)
  29047. */
  29048. title: string;
  29049. /**
  29050. * The type of popup element displayed.
  29051. *
  29052. * @default attachments
  29053. *
  29054. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-AttachmentsContent.html#type)
  29055. */
  29056. readonly type: "attachments";
  29057. /**
  29058. * An `AttachmentsContent` popup element represents an attachment element associated with a feature.
  29059. *
  29060. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-AttachmentsContent.html)
  29061. */
  29062. constructor(properties?: AttachmentsContentProperties);
  29063. static fromJSON(json: any): AttachmentsContent;
  29064. }
  29065. /** @deprecated Import the AttachmentsContent class instead. */
  29066. export type AttachmentsContentConstructor = typeof AttachmentsContent;
  29067. interface AttachmentsContentProperties extends ContentProperties {
  29068. /**
  29069. * Describes the attachment's content in detail.
  29070. *
  29071. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-AttachmentsContent.html#description)
  29072. */
  29073. description?: string;
  29074. /**
  29075. * A string value indicating how to display an attachment.
  29076. *
  29077. * @default "auto"
  29078. *
  29079. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-AttachmentsContent.html#displayType)
  29080. */
  29081. displayType?: "auto" | "preview" | "list";
  29082. /**
  29083. * A heading indicating what the attachment's content represents.
  29084. *
  29085. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-AttachmentsContent.html#title)
  29086. */
  29087. title?: string;
  29088. }
  29089. export interface BarChartMediaInfo extends Accessor, JSONSupport, MediaInfo, ChartMediaInfo {
  29090. }
  29091. export class BarChartMediaInfo {
  29092. /**
  29093. * Indicates the type of chart.
  29094. *
  29095. * @default bar-chart
  29096. *
  29097. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-BarChartMediaInfo.html#type)
  29098. */
  29099. readonly type: string;
  29100. /**
  29101. * A `BarChartMediaInfo` is a type of chart media element that represents a bar chart displayed within a popup.
  29102. *
  29103. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-BarChartMediaInfo.html)
  29104. */
  29105. constructor(properties?: BarChartMediaInfoProperties);
  29106. /**
  29107. * Creates a deep clone of the BarChartMediaInfo class.
  29108. *
  29109. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-BarChartMediaInfo.html#clone)
  29110. */
  29111. clone(): BarChartMediaInfo;
  29112. static fromJSON(json: any): BarChartMediaInfo;
  29113. }
  29114. /** @deprecated Import the BarChartMediaInfo class instead. */
  29115. export type BarChartMediaInfoConstructor = typeof BarChartMediaInfo;
  29116. interface BarChartMediaInfoProperties extends MediaInfoProperties, ChartMediaInfoProperties {
  29117. }
  29118. export interface ColumnChartMediaInfo extends JSONSupport, MediaInfo, ChartMediaInfo {
  29119. }
  29120. export class ColumnChartMediaInfo {
  29121. /**
  29122. * Indicates the type of chart.
  29123. *
  29124. * @default column-chart
  29125. *
  29126. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-ColumnChartMediaInfo.html#type)
  29127. */
  29128. readonly type: string;
  29129. /**
  29130. * A `ColumnChartMediaInfo` is a type of chart media element that represents a column chart displayed within a popup.
  29131. *
  29132. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-ColumnChartMediaInfo.html)
  29133. */
  29134. constructor(properties?: ColumnChartMediaInfoProperties);
  29135. /**
  29136. * Creates a deep clone of the ColumnChartMediaInfo class.
  29137. *
  29138. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-ColumnChartMediaInfo.html#clone)
  29139. */
  29140. clone(): ColumnChartMediaInfo;
  29141. static fromJSON(json: any): ColumnChartMediaInfo;
  29142. }
  29143. /** @deprecated Import the ColumnChartMediaInfo class instead. */
  29144. export type ColumnChartMediaInfoConstructor = typeof ColumnChartMediaInfo;
  29145. interface ColumnChartMediaInfoProperties extends MediaInfoProperties, ChartMediaInfoProperties {
  29146. }
  29147. export interface Content extends Accessor, JSONSupport {
  29148. }
  29149. export class Content {
  29150. /**
  29151. * The type of popup element displayed.
  29152. *
  29153. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-Content.html#type)
  29154. */
  29155. readonly type: "text" | "fields" | "media" | "attachments" | "custom" | "expression" | "relationship";
  29156. /**
  29157. * Content elements define what should display within the [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html) content.
  29158. *
  29159. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-Content.html)
  29160. */
  29161. constructor(properties?: ContentProperties);
  29162. static fromJSON(json: any): Content;
  29163. }
  29164. /** @deprecated Import the Content class instead. */
  29165. export type ContentConstructor = typeof Content;
  29166. interface ContentProperties {
  29167. }
  29168. export interface CustomContent extends Content, JSONSupport {
  29169. }
  29170. export class CustomContent {
  29171. /**
  29172. * The function that is called to create the custom content element.
  29173. *
  29174. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-CustomContent.html#creator)
  29175. */
  29176. creator: PopupTemplateContentCreator;
  29177. /**
  29178. * The called function to cleanup custom content when it is no longer necessary.
  29179. *
  29180. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-CustomContent.html#destroyer)
  29181. */
  29182. destroyer: PopupTemplateContentDestroyer;
  29183. /**
  29184. * An array of field names used in the [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html).
  29185. *
  29186. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-CustomContent.html#outFields)
  29187. */
  29188. outFields: string[];
  29189. /**
  29190. * The type of popup element displayed.
  29191. *
  29192. * @default custom
  29193. *
  29194. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-CustomContent.html#type)
  29195. */
  29196. readonly type: "custom";
  29197. /**
  29198. * A `CustomContent` popup element is used to provide a way to customize the [popup's](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html) content.
  29199. *
  29200. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-CustomContent.html)
  29201. */
  29202. constructor(properties?: CustomContentProperties);
  29203. /**
  29204. * Creates a deep clone of the CustomContent class.
  29205. *
  29206. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-CustomContent.html#clone)
  29207. */
  29208. clone(): CustomContent;
  29209. static fromJSON(json: any): CustomContent;
  29210. }
  29211. /** @deprecated Import the CustomContent class instead. */
  29212. export type CustomContentConstructor = typeof CustomContent;
  29213. interface CustomContentProperties extends ContentProperties {
  29214. /**
  29215. * The function that is called to create the custom content element.
  29216. *
  29217. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-CustomContent.html#creator)
  29218. */
  29219. creator?: PopupTemplateContentCreator;
  29220. /**
  29221. * The called function to cleanup custom content when it is no longer necessary.
  29222. *
  29223. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-CustomContent.html#destroyer)
  29224. */
  29225. destroyer?: PopupTemplateContentDestroyer;
  29226. /**
  29227. * An array of field names used in the [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html).
  29228. *
  29229. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-CustomContent.html#outFields)
  29230. */
  29231. outFields?: string[];
  29232. }
  29233. export type PopupTemplateContentCreator = (
  29234. event?: PopupTemplateCreatorEvent
  29235. ) => string | HTMLElement | Widget | Promise<any>;
  29236. export type PopupTemplateContentDestroyer = (event?: PopupTemplateCreatorEvent) => void;
  29237. /**
  29238. * The event that contains the [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) used to represent the feature.
  29239. *
  29240. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-CustomContent.html#PopupTemplateCreatorEvent)
  29241. */
  29242. export interface PopupTemplateCreatorEvent {
  29243. /**
  29244. * The [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) used to represent the feature.
  29245. *
  29246. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-CustomContent.html#PopupTemplateCreatorEvent)
  29247. */
  29248. graphic: Graphic;
  29249. }
  29250. export interface ExpressionContent extends Content, JSONSupport {
  29251. }
  29252. export class ExpressionContent {
  29253. /**
  29254. * Contains the Arcade expression used to create a popup content element.
  29255. *
  29256. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-ExpressionContent.html#expressionInfo)
  29257. */
  29258. expressionInfo: ElementExpressionInfo;
  29259. /**
  29260. * The type of popup element displayed.
  29261. *
  29262. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-ExpressionContent.html#type)
  29263. */
  29264. readonly type: "expression";
  29265. /**
  29266. * An ExpressionContent element allows you to define a popup content element with an [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression.
  29267. *
  29268. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-ExpressionContent.html)
  29269. */
  29270. constructor(properties?: ExpressionContentProperties);
  29271. /**
  29272. * Creates a deep clone of the ExpressionContent instance.
  29273. *
  29274. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-ExpressionContent.html#clone)
  29275. */
  29276. clone(): ExpressionContent;
  29277. static fromJSON(json: any): ExpressionContent;
  29278. }
  29279. /** @deprecated Import the ExpressionContent class instead. */
  29280. export type ExpressionContentConstructor = typeof ExpressionContent;
  29281. interface ExpressionContentProperties extends ContentProperties {
  29282. /**
  29283. * Contains the Arcade expression used to create a popup content element.
  29284. *
  29285. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-ExpressionContent.html#expressionInfo)
  29286. */
  29287. expressionInfo?: ElementExpressionInfoProperties;
  29288. }
  29289. export interface FieldsContent extends Content, JSONSupport {
  29290. }
  29291. export class FieldsContent {
  29292. /**
  29293. * Describes the field's content in detail.
  29294. *
  29295. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-FieldsContent.html#description)
  29296. */
  29297. description: string;
  29298. /**
  29299. * Array of [fieldInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-FieldInfo.html).
  29300. *
  29301. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-FieldsContent.html#fieldInfos)
  29302. */
  29303. fieldInfos: FieldInfo[];
  29304. /**
  29305. * Heading indicating what the field's content represents.
  29306. *
  29307. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-FieldsContent.html#title)
  29308. */
  29309. title: string;
  29310. /**
  29311. * The type of popup element displayed.
  29312. *
  29313. * @default fields
  29314. *
  29315. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-FieldsContent.html#type)
  29316. */
  29317. readonly type: "fields";
  29318. /**
  29319. * A `FieldsContent` popup element represents the [FieldInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-FieldInfo.html) associated with a feature.
  29320. *
  29321. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-FieldsContent.html)
  29322. */
  29323. constructor(properties?: FieldsContentProperties);
  29324. /**
  29325. * Creates a deep clone of the FieldsContent class.
  29326. *
  29327. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-FieldsContent.html#clone)
  29328. */
  29329. clone(): FieldsContent;
  29330. static fromJSON(json: any): FieldsContent;
  29331. }
  29332. /** @deprecated Import the FieldsContent class instead. */
  29333. export type FieldsContentConstructor = typeof FieldsContent;
  29334. interface FieldsContentProperties extends ContentProperties {
  29335. /**
  29336. * Describes the field's content in detail.
  29337. *
  29338. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-FieldsContent.html#description)
  29339. */
  29340. description?: string;
  29341. /**
  29342. * Array of [fieldInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-FieldInfo.html).
  29343. *
  29344. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-FieldsContent.html#fieldInfos)
  29345. */
  29346. fieldInfos?: FieldInfoProperties[];
  29347. /**
  29348. * Heading indicating what the field's content represents.
  29349. *
  29350. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-FieldsContent.html#title)
  29351. */
  29352. title?: string;
  29353. }
  29354. export interface ImageMediaInfo extends Accessor, JSONSupport, MediaInfo {
  29355. }
  29356. export class ImageMediaInfo {
  29357. /**
  29358. * Refresh interval of the layer in minutes.
  29359. *
  29360. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-ImageMediaInfo.html#refreshInterval)
  29361. */
  29362. refreshInterval: number;
  29363. /**
  29364. * The type of popup element.
  29365. *
  29366. * @default image
  29367. *
  29368. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-ImageMediaInfo.html#type)
  29369. */
  29370. readonly type: string;
  29371. /**
  29372. * Defines the value format of the image media element and how the images should be retrieved.
  29373. *
  29374. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-ImageMediaInfo.html#value)
  29375. */
  29376. value: ImageMediaInfoValue;
  29377. /**
  29378. * An `ImageMediaInfo` is a type of media element that represents images to display within a popup.
  29379. *
  29380. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-ImageMediaInfo.html)
  29381. */
  29382. constructor(properties?: ImageMediaInfoProperties);
  29383. /**
  29384. * Creates a deep clone of the ImageMediaInfo class.
  29385. *
  29386. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-ImageMediaInfo.html#clone)
  29387. */
  29388. clone(): ImageMediaInfo;
  29389. static fromJSON(json: any): ImageMediaInfo;
  29390. }
  29391. /** @deprecated Import the ImageMediaInfo class instead. */
  29392. export type ImageMediaInfoConstructor = typeof ImageMediaInfo;
  29393. interface ImageMediaInfoProperties extends MediaInfoProperties {
  29394. /**
  29395. * Refresh interval of the layer in minutes.
  29396. *
  29397. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-ImageMediaInfo.html#refreshInterval)
  29398. */
  29399. refreshInterval?: number;
  29400. /**
  29401. * Defines the value format of the image media element and how the images should be retrieved.
  29402. *
  29403. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-ImageMediaInfo.html#value)
  29404. */
  29405. value?: ImageMediaInfoValueProperties;
  29406. }
  29407. export interface LineChartMediaInfo extends Accessor, JSONSupport, MediaInfo, ChartMediaInfo {
  29408. }
  29409. export class LineChartMediaInfo {
  29410. /**
  29411. * Indicates the type of chart.
  29412. *
  29413. * @default line-chart
  29414. *
  29415. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-LineChartMediaInfo.html#type)
  29416. */
  29417. readonly type: string;
  29418. /**
  29419. * A `LineChartMediaInfo` is a type of chart media element that represents a line chart displayed within a popup.
  29420. *
  29421. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-LineChartMediaInfo.html)
  29422. */
  29423. constructor(properties?: LineChartMediaInfoProperties);
  29424. /**
  29425. * Creates a deep clone of the LineChartMediaInfo class.
  29426. *
  29427. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-LineChartMediaInfo.html#clone)
  29428. */
  29429. clone(): LineChartMediaInfo;
  29430. static fromJSON(json: any): LineChartMediaInfo;
  29431. }
  29432. /** @deprecated Import the LineChartMediaInfo class instead. */
  29433. export type LineChartMediaInfoConstructor = typeof LineChartMediaInfo;
  29434. interface LineChartMediaInfoProperties extends MediaInfoProperties, ChartMediaInfoProperties {
  29435. }
  29436. export interface MediaContent extends Content, JSONSupport {
  29437. }
  29438. export class MediaContent {
  29439. /**
  29440. * Index of the current active media within the popup's media content.
  29441. *
  29442. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-MediaContent.html#activeMediaInfoIndex)
  29443. */
  29444. activeMediaInfoIndex: string;
  29445. /**
  29446. * Describes the media's content in detail.
  29447. *
  29448. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-MediaContent.html#description)
  29449. */
  29450. description: string;
  29451. /**
  29452. * Contains the media elements representing images or charts to display within the [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html).
  29453. *
  29454. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-MediaContent.html#mediaInfos)
  29455. */
  29456. mediaInfos: | BarChartMediaInfo
  29457. | ColumnChartMediaInfo
  29458. | ImageMediaInfo
  29459. | LineChartMediaInfo
  29460. | PieChartMediaInfo
  29461. | any[];
  29462. /**
  29463. * Heading indicating what the media's content represents.
  29464. *
  29465. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-MediaContent.html#title)
  29466. */
  29467. title: string;
  29468. /**
  29469. * The type of popup element displayed.
  29470. *
  29471. * @default media
  29472. *
  29473. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-MediaContent.html#type)
  29474. */
  29475. readonly type: "media";
  29476. /**
  29477. * A `MediaContent` popup element contains an individual or array of chart and/or image media elements to display within a popup's content.
  29478. *
  29479. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-MediaContent.html)
  29480. */
  29481. constructor(properties?: MediaContentProperties);
  29482. /**
  29483. * Creates a deep clone of the MediaContent class.
  29484. *
  29485. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-MediaContent.html#clone)
  29486. */
  29487. clone(): MediaContent;
  29488. static fromJSON(json: any): MediaContent;
  29489. }
  29490. /** @deprecated Import the MediaContent class instead. */
  29491. export type MediaContentConstructor = typeof MediaContent;
  29492. interface MediaContentProperties extends ContentProperties {
  29493. /**
  29494. * Index of the current active media within the popup's media content.
  29495. *
  29496. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-MediaContent.html#activeMediaInfoIndex)
  29497. */
  29498. activeMediaInfoIndex?: string;
  29499. /**
  29500. * Describes the media's content in detail.
  29501. *
  29502. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-MediaContent.html#description)
  29503. */
  29504. description?: string;
  29505. /**
  29506. * Contains the media elements representing images or charts to display within the [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html).
  29507. *
  29508. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-MediaContent.html#mediaInfos)
  29509. */
  29510. mediaInfos?: | BarChartMediaInfoProperties
  29511. | ColumnChartMediaInfoProperties
  29512. | ImageMediaInfoProperties
  29513. | LineChartMediaInfoProperties
  29514. | PieChartMediaInfoProperties
  29515. | any[];
  29516. /**
  29517. * Heading indicating what the media's content represents.
  29518. *
  29519. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-MediaContent.html#title)
  29520. */
  29521. title?: string;
  29522. }
  29523. export class ChartMediaInfo {
  29524. /**
  29525. * Defines the chart value.
  29526. *
  29527. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-mixins-ChartMediaInfo.html#value)
  29528. */
  29529. value: ChartMediaInfoValue;
  29530. }
  29531. interface ChartMediaInfoProperties {
  29532. /**
  29533. * Defines the chart value.
  29534. *
  29535. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-mixins-ChartMediaInfo.html#value)
  29536. */
  29537. value?: ChartMediaInfoValueProperties;
  29538. }
  29539. export class MediaInfo {
  29540. /**
  29541. * Provides an alternate text for an image if the image cannot be displayed.
  29542. *
  29543. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-mixins-MediaInfo.html#altText)
  29544. */
  29545. altText: string;
  29546. /**
  29547. * Defines a caption for the media.
  29548. *
  29549. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-mixins-MediaInfo.html#caption)
  29550. */
  29551. caption: string;
  29552. /**
  29553. * The title of the media element.
  29554. *
  29555. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-mixins-MediaInfo.html#title)
  29556. */
  29557. title: string;
  29558. }
  29559. interface MediaInfoProperties {
  29560. /**
  29561. * Provides an alternate text for an image if the image cannot be displayed.
  29562. *
  29563. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-mixins-MediaInfo.html#altText)
  29564. */
  29565. altText?: string;
  29566. /**
  29567. * Defines a caption for the media.
  29568. *
  29569. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-mixins-MediaInfo.html#caption)
  29570. */
  29571. caption?: string;
  29572. /**
  29573. * The title of the media element.
  29574. *
  29575. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-mixins-MediaInfo.html#title)
  29576. */
  29577. title?: string;
  29578. }
  29579. export interface PieChartMediaInfo extends Accessor, JSONSupport, MediaInfo, ChartMediaInfo {
  29580. }
  29581. export class PieChartMediaInfo {
  29582. /**
  29583. * Indicates the type of chart.
  29584. *
  29585. * @default pie-chart
  29586. *
  29587. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-PieChartMediaInfo.html#type)
  29588. */
  29589. readonly type: string;
  29590. /**
  29591. * A `PieChartMediaInfo` is a type of chart media element that represents a pie chart displayed within a popup.
  29592. *
  29593. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-PieChartMediaInfo.html)
  29594. */
  29595. constructor(properties?: PieChartMediaInfoProperties);
  29596. /**
  29597. * Creates a deep clone of the PieChartMediaInfo class.
  29598. *
  29599. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-PieChartMediaInfo.html#clone)
  29600. */
  29601. clone(): PieChartMediaInfo;
  29602. static fromJSON(json: any): PieChartMediaInfo;
  29603. }
  29604. /** @deprecated Import the PieChartMediaInfo class instead. */
  29605. export type PieChartMediaInfoConstructor = typeof PieChartMediaInfo;
  29606. interface PieChartMediaInfoProperties extends MediaInfoProperties, ChartMediaInfoProperties {
  29607. }
  29608. export interface RelationshipContent extends Content, JSONSupport {
  29609. }
  29610. export class RelationshipContent {
  29611. /**
  29612. * Describes the relationship's content in detail.
  29613. *
  29614. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-RelationshipContent.html#description)
  29615. */
  29616. description: string;
  29617. /**
  29618. * A numeric value indicating the maximum number of related features to display in the list of related records.
  29619. *
  29620. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-RelationshipContent.html#displayCount)
  29621. */
  29622. displayCount: number;
  29623. /**
  29624. * A string value indicating how to display related records within the relationship content.
  29625. *
  29626. * @default "list"
  29627. *
  29628. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-RelationshipContent.html#displayType)
  29629. */
  29630. displayType: "list";
  29631. /**
  29632. * An array of [RelatedRecordsInfoFieldOrder](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-support-RelatedRecordsInfoFieldOrder.html) indicating the display order for the related records, and whether they should be sorted in ascending `asc` or descending `desc` order.
  29633. *
  29634. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-RelationshipContent.html#orderByFields)
  29635. */
  29636. orderByFields: RelatedRecordsInfoFieldOrder[];
  29637. /**
  29638. * The numeric id value for the defined relationship.
  29639. *
  29640. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-RelationshipContent.html#relationshipId)
  29641. */
  29642. relationshipId: number;
  29643. /**
  29644. * A heading indicating what the relationship's content represents.
  29645. *
  29646. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-RelationshipContent.html#title)
  29647. */
  29648. title: string;
  29649. /**
  29650. * The type of popup element displayed.
  29651. *
  29652. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-RelationshipContent.html#type)
  29653. */
  29654. readonly type: "relationship";
  29655. /**
  29656. * A `RelationshipContent` popup element represents a relationship element associated with a feature.
  29657. *
  29658. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-RelationshipContent.html)
  29659. */
  29660. constructor(properties?: RelationshipContentProperties);
  29661. /**
  29662. * Creates a deep clone of this object.
  29663. *
  29664. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-RelationshipContent.html#clone)
  29665. */
  29666. clone(): this;
  29667. static fromJSON(json: any): RelationshipContent;
  29668. }
  29669. /** @deprecated Import the RelationshipContent class instead. */
  29670. export type RelationshipContentConstructor = typeof RelationshipContent;
  29671. interface RelationshipContentProperties extends ContentProperties {
  29672. /**
  29673. * Describes the relationship's content in detail.
  29674. *
  29675. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-RelationshipContent.html#description)
  29676. */
  29677. description?: string;
  29678. /**
  29679. * A numeric value indicating the maximum number of related features to display in the list of related records.
  29680. *
  29681. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-RelationshipContent.html#displayCount)
  29682. */
  29683. displayCount?: number;
  29684. /**
  29685. * A string value indicating how to display related records within the relationship content.
  29686. *
  29687. * @default "list"
  29688. *
  29689. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-RelationshipContent.html#displayType)
  29690. */
  29691. displayType?: "list";
  29692. /**
  29693. * An array of [RelatedRecordsInfoFieldOrder](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-support-RelatedRecordsInfoFieldOrder.html) indicating the display order for the related records, and whether they should be sorted in ascending `asc` or descending `desc` order.
  29694. *
  29695. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-RelationshipContent.html#orderByFields)
  29696. */
  29697. orderByFields?: RelatedRecordsInfoFieldOrderProperties[];
  29698. /**
  29699. * The numeric id value for the defined relationship.
  29700. *
  29701. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-RelationshipContent.html#relationshipId)
  29702. */
  29703. relationshipId?: number;
  29704. /**
  29705. * A heading indicating what the relationship's content represents.
  29706. *
  29707. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-RelationshipContent.html#title)
  29708. */
  29709. title?: string;
  29710. }
  29711. export interface ChartMediaInfoValue extends Accessor, JSONSupport {
  29712. }
  29713. export class ChartMediaInfoValue {
  29714. /**
  29715. * An array of strings, with each string containing the name of a field to display in the chart.
  29716. *
  29717. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-support-ChartMediaInfoValue.html#fields)
  29718. */
  29719. fields: string[];
  29720. /**
  29721. * A string containing the name of a field.
  29722. *
  29723. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-support-ChartMediaInfoValue.html#normalizeField)
  29724. */
  29725. normalizeField: string;
  29726. /**
  29727. * An array of [ChartMediaInfoValueSeries](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-support-ChartMediaInfoValueSeries.html) objects which provide information of x/y data that is plotted in a chart.
  29728. *
  29729. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-support-ChartMediaInfoValue.html#series)
  29730. */
  29731. series: ChartMediaInfoValueSeries[];
  29732. /**
  29733. * String value indicating the tooltip for a chart specified from another field.
  29734. *
  29735. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-support-ChartMediaInfoValue.html#tooltipField)
  29736. */
  29737. tooltipField: string;
  29738. /**
  29739. * The `ChartMediaInfoValue` class contains information for popups regarding how charts should be constructed.
  29740. *
  29741. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-support-ChartMediaInfoValue.html)
  29742. */
  29743. constructor(properties?: ChartMediaInfoValueProperties);
  29744. static fromJSON(json: any): ChartMediaInfoValue;
  29745. }
  29746. /** @deprecated Import the ChartMediaInfoValue class instead. */
  29747. export type ChartMediaInfoValueConstructor = typeof ChartMediaInfoValue;
  29748. interface ChartMediaInfoValueProperties {
  29749. /**
  29750. * An array of strings, with each string containing the name of a field to display in the chart.
  29751. *
  29752. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-support-ChartMediaInfoValue.html#fields)
  29753. */
  29754. fields?: string[];
  29755. /**
  29756. * A string containing the name of a field.
  29757. *
  29758. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-support-ChartMediaInfoValue.html#normalizeField)
  29759. */
  29760. normalizeField?: string;
  29761. /**
  29762. * An array of [ChartMediaInfoValueSeries](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-support-ChartMediaInfoValueSeries.html) objects which provide information of x/y data that is plotted in a chart.
  29763. *
  29764. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-support-ChartMediaInfoValue.html#series)
  29765. */
  29766. series?: ChartMediaInfoValueSeriesProperties[];
  29767. /**
  29768. * String value indicating the tooltip for a chart specified from another field.
  29769. *
  29770. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-support-ChartMediaInfoValue.html#tooltipField)
  29771. */
  29772. tooltipField?: string;
  29773. }
  29774. export class ChartMediaInfoValueSeries extends Accessor {
  29775. /**
  29776. * String value indicating the field's name for a series.
  29777. *
  29778. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-support-ChartMediaInfoValueSeries.html#fieldName)
  29779. */
  29780. readonly fieldName: string;
  29781. /**
  29782. * String value indicating the tooltip for a series.
  29783. *
  29784. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-support-ChartMediaInfoValueSeries.html#tooltip)
  29785. */
  29786. readonly tooltip: string;
  29787. /**
  29788. * Numerical value for the chart series.
  29789. *
  29790. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-support-ChartMediaInfoValueSeries.html#value)
  29791. */
  29792. readonly value: number;
  29793. /**
  29794. * The `ChartMediaInfoValueSeries` class is a read-only support class that represents information specific to how data should be plotted in a chart.
  29795. *
  29796. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-support-ChartMediaInfoValueSeries.html)
  29797. */
  29798. constructor(properties?: ChartMediaInfoValueSeriesProperties);
  29799. /**
  29800. * Creates a deep clone of the ChartMediaInfoValueSeries class.
  29801. *
  29802. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-support-ChartMediaInfoValueSeries.html#clone)
  29803. */
  29804. clone(): ChartMediaInfoValueSeries;
  29805. }
  29806. /** @deprecated Import the ChartMediaInfoValueSeries class instead. */
  29807. export type ChartMediaInfoValueSeriesConstructor = typeof ChartMediaInfoValueSeries;
  29808. interface ChartMediaInfoValueSeriesProperties {
  29809. }
  29810. export interface ImageMediaInfoValue extends Accessor, JSONSupport {
  29811. }
  29812. export class ImageMediaInfoValue {
  29813. /**
  29814. * A string containing a URL to be launched in a browser when a user clicks the image.
  29815. *
  29816. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-support-ImageMediaInfoValue.html#linkURL)
  29817. */
  29818. linkURL: string;
  29819. /**
  29820. * A string containing the URL to the image.
  29821. *
  29822. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-support-ImageMediaInfoValue.html#sourceURL)
  29823. */
  29824. sourceURL: string;
  29825. /**
  29826. * The `ImageMediaInfoValue` class contains information for popups regarding how images should be retrieved.
  29827. *
  29828. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-support-ImageMediaInfoValue.html)
  29829. */
  29830. constructor(properties?: ImageMediaInfoValueProperties);
  29831. /**
  29832. * Creates a deep clone of the ImageMediaInfoValue class.
  29833. *
  29834. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-support-ImageMediaInfoValue.html#clone)
  29835. */
  29836. clone(): ImageMediaInfoValue;
  29837. static fromJSON(json: any): ImageMediaInfoValue;
  29838. }
  29839. /** @deprecated Import the ImageMediaInfoValue class instead. */
  29840. export type ImageMediaInfoValueConstructor = typeof ImageMediaInfoValue;
  29841. interface ImageMediaInfoValueProperties {
  29842. /**
  29843. * A string containing a URL to be launched in a browser when a user clicks the image.
  29844. *
  29845. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-support-ImageMediaInfoValue.html#linkURL)
  29846. */
  29847. linkURL?: string;
  29848. /**
  29849. * A string containing the URL to the image.
  29850. *
  29851. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-support-ImageMediaInfoValue.html#sourceURL)
  29852. */
  29853. sourceURL?: string;
  29854. }
  29855. export interface TextContent extends Content, JSONSupport {
  29856. }
  29857. export class TextContent {
  29858. /**
  29859. * The formatted string content to display.
  29860. *
  29861. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-TextContent.html#text)
  29862. */
  29863. text: string;
  29864. /**
  29865. * The type of popup element displayed.
  29866. *
  29867. * @default text
  29868. *
  29869. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-TextContent.html#type)
  29870. */
  29871. readonly type: "text";
  29872. /**
  29873. * A `TextContent` popup element is used to define descriptive text as an element within a [PopupTemplate's](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html) content.
  29874. *
  29875. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-TextContent.html)
  29876. */
  29877. constructor(properties?: TextContentProperties);
  29878. /**
  29879. * Creates a deep clone of the TextContent class.
  29880. *
  29881. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-TextContent.html#clone)
  29882. */
  29883. clone(): TextContent;
  29884. static fromJSON(json: any): TextContent;
  29885. }
  29886. /** @deprecated Import the TextContent class instead. */
  29887. export type TextContentConstructor = typeof TextContent;
  29888. interface TextContentProperties extends ContentProperties {
  29889. /**
  29890. * The formatted string content to display.
  29891. *
  29892. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-TextContent.html#text)
  29893. */
  29894. text?: string;
  29895. }
  29896. /**
  29897. * AttachmentsContent represents an attachment element associated with a feature.
  29898. *
  29899. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content.html#AttachmentsContent)
  29900. */
  29901. export type contentAttachmentsContent = AttachmentsContent;
  29902. /**
  29903. * Popup content element types.
  29904. *
  29905. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content.html#Content)
  29906. */
  29907. export type contentContent = | TextContent
  29908. | MediaContent
  29909. | FieldsContent
  29910. | AttachmentsContent
  29911. | CustomContent
  29912. | ExpressionContent
  29913. | RelationshipContent;
  29914. /**
  29915. * CustomContent represents a custom content element associated with a feature.
  29916. *
  29917. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content.html#CustomContent)
  29918. */
  29919. export type contentCustomContent = CustomContent;
  29920. /**
  29921. * ExpressionContent represents an expression element associated with a feature.
  29922. *
  29923. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content.html#ExpressionContent)
  29924. */
  29925. export type contentExpressionContent = ExpressionContent;
  29926. /**
  29927. * FieldsContent represents the [FieldInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-FieldInfo.html) associated with a feature.
  29928. *
  29929. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content.html#FieldsContent)
  29930. */
  29931. export type contentFieldsContent = FieldsContent;
  29932. /**
  29933. * MediaContent contains an individual or array of chart and/or image media elements to display within a popup's content.
  29934. *
  29935. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content.html#MediaContent)
  29936. */
  29937. export type contentMediaContent = MediaContent;
  29938. /**
  29939. * RelationshipContent represents an relationship element associated with a feature.
  29940. *
  29941. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content.html#RelationshipContent)
  29942. */
  29943. export type contentRelationshipContent = RelationshipContent;
  29944. /**
  29945. * TextContent defines descriptive text as an element within the [PopupTemplate's](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html) content.
  29946. *
  29947. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content.html#TextContent)
  29948. */
  29949. export type contentTextContent = TextContent;
  29950. export interface ElementExpressionInfo extends Accessor, JSONSupport {
  29951. }
  29952. export class ElementExpressionInfo {
  29953. /**
  29954. * The [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression evaluating to a dictionary.
  29955. *
  29956. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-ElementExpressionInfo.html#expression)
  29957. */
  29958. expression: string;
  29959. /**
  29960. * The return type of the expression.
  29961. *
  29962. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-ElementExpressionInfo.html#returnType)
  29963. */
  29964. returnType: "dictionary";
  29965. /**
  29966. * The title used to describe the popup element returned by the expression.
  29967. *
  29968. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-ElementExpressionInfo.html#title)
  29969. */
  29970. title: string;
  29971. /**
  29972. * Defines an [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression used to create an [ExpressionContent](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-ExpressionContent.html) element in a [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html).
  29973. *
  29974. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-ElementExpressionInfo.html)
  29975. */
  29976. constructor(properties?: ElementExpressionInfoProperties);
  29977. /**
  29978. * Creates a deep clone of the ElementExpressionInfo instance.
  29979. *
  29980. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-ElementExpressionInfo.html#clone)
  29981. */
  29982. clone(): ElementExpressionInfo;
  29983. static fromJSON(json: any): ElementExpressionInfo;
  29984. }
  29985. /** @deprecated Import the ElementExpressionInfo class instead. */
  29986. export type ElementExpressionInfoConstructor = typeof ElementExpressionInfo;
  29987. interface ElementExpressionInfoProperties {
  29988. /**
  29989. * The [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression evaluating to a dictionary.
  29990. *
  29991. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-ElementExpressionInfo.html#expression)
  29992. */
  29993. expression?: string;
  29994. /**
  29995. * The return type of the expression.
  29996. *
  29997. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-ElementExpressionInfo.html#returnType)
  29998. */
  29999. returnType?: "dictionary";
  30000. /**
  30001. * The title used to describe the popup element returned by the expression.
  30002. *
  30003. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-ElementExpressionInfo.html#title)
  30004. */
  30005. title?: string;
  30006. }
  30007. export interface popupExpressionInfo extends Accessor, JSONSupport {
  30008. }
  30009. export class popupExpressionInfo {
  30010. /**
  30011. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Popup Profile](https://developers.arcgis.com/javascript/latest/arcade/#popup).
  30012. *
  30013. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-ExpressionInfo.html#expression)
  30014. */
  30015. expression: string;
  30016. /**
  30017. * The name of the expression.
  30018. *
  30019. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-ExpressionInfo.html#name)
  30020. */
  30021. name: string;
  30022. /**
  30023. * Indicates the return type of the Arcade expression.
  30024. *
  30025. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-ExpressionInfo.html#returnType)
  30026. */
  30027. returnType: "string" | "number";
  30028. /**
  30029. * The title used to describe the value returned by the expression in the popup.
  30030. *
  30031. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-ExpressionInfo.html#title)
  30032. */
  30033. title: string;
  30034. /**
  30035. * The `ExpressionInfo` class references [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expressions following the specification defined by the [Arcade Popup Profile](https://developers.arcgis.com/javascript/latest/arcade/#popup).
  30036. *
  30037. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-ExpressionInfo.html)
  30038. */
  30039. constructor(properties?: popupExpressionInfoProperties);
  30040. /**
  30041. * Creates a deep clone of the ExpressionInfo class.
  30042. *
  30043. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-ExpressionInfo.html#clone)
  30044. */
  30045. clone(): popupExpressionInfo;
  30046. static fromJSON(json: any): popupExpressionInfo;
  30047. }
  30048. /** @deprecated Import the popupExpressionInfo class instead. */
  30049. export type popupExpressionInfoConstructor = typeof popupExpressionInfo;
  30050. interface popupExpressionInfoProperties {
  30051. /**
  30052. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Popup Profile](https://developers.arcgis.com/javascript/latest/arcade/#popup).
  30053. *
  30054. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-ExpressionInfo.html#expression)
  30055. */
  30056. expression?: string;
  30057. /**
  30058. * The name of the expression.
  30059. *
  30060. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-ExpressionInfo.html#name)
  30061. */
  30062. name?: string;
  30063. /**
  30064. * Indicates the return type of the Arcade expression.
  30065. *
  30066. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-ExpressionInfo.html#returnType)
  30067. */
  30068. returnType?: "string" | "number";
  30069. /**
  30070. * The title used to describe the value returned by the expression in the popup.
  30071. *
  30072. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-ExpressionInfo.html#title)
  30073. */
  30074. title?: string;
  30075. }
  30076. export interface FieldInfo extends Accessor, JSONSupport {
  30077. }
  30078. export class FieldInfo {
  30079. /**
  30080. * The field name as defined by the service or the name of an [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression.
  30081. *
  30082. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-FieldInfo.html#fieldName)
  30083. */
  30084. fieldName: string;
  30085. /**
  30086. * Class which provides formatting options for numerical or date fields and how they should display within a popup.
  30087. *
  30088. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-FieldInfo.html#format)
  30089. */
  30090. format: FieldInfoFormat;
  30091. /**
  30092. * A Boolean determining whether users can edit this field.
  30093. *
  30094. * @default false
  30095. *
  30096. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-FieldInfo.html#isEditable)
  30097. */
  30098. isEditable: boolean;
  30099. /**
  30100. * A string containing the field alias.
  30101. *
  30102. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-FieldInfo.html#label)
  30103. */
  30104. label: string;
  30105. /**
  30106. * Used in a `one:many` or `many:many` relationship to compute the statistics on the field to show in the popup.
  30107. *
  30108. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-FieldInfo.html#statisticType)
  30109. */
  30110. statisticType: "count" | "sum" | "min" | "max" | "avg" | "stddev" | "var";
  30111. /**
  30112. * A string determining what type of input box editors see when editing the field.
  30113. *
  30114. * @default text-box
  30115. *
  30116. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-FieldInfo.html#stringFieldOption)
  30117. */
  30118. stringFieldOption: "rich-text" | "text-area" | "text-box";
  30119. /**
  30120. * A string providing an editing hint for editors of the field.
  30121. *
  30122. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-FieldInfo.html#tooltip)
  30123. */
  30124. tooltip: string;
  30125. /**
  30126. * Indicates whether the field is visible in the popup window.
  30127. *
  30128. * @default true
  30129. *
  30130. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-FieldInfo.html#visible)
  30131. */
  30132. visible: boolean;
  30133. /**
  30134. * The `FieldInfo` class defines how a [Field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html) participates, or in some cases, does not participate, in a [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html).
  30135. *
  30136. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-FieldInfo.html)
  30137. */
  30138. constructor(properties?: FieldInfoProperties);
  30139. /**
  30140. * Creates a deep clone of the FieldInfo class.
  30141. *
  30142. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-FieldInfo.html#clone)
  30143. */
  30144. clone(): FieldInfo;
  30145. static fromJSON(json: any): FieldInfo;
  30146. }
  30147. /** @deprecated Import the FieldInfo class instead. */
  30148. export type FieldInfoConstructor = typeof FieldInfo;
  30149. interface FieldInfoProperties {
  30150. /**
  30151. * The field name as defined by the service or the name of an [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression.
  30152. *
  30153. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-FieldInfo.html#fieldName)
  30154. */
  30155. fieldName?: string;
  30156. /**
  30157. * Class which provides formatting options for numerical or date fields and how they should display within a popup.
  30158. *
  30159. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-FieldInfo.html#format)
  30160. */
  30161. format?: FieldInfoFormatProperties;
  30162. /**
  30163. * A Boolean determining whether users can edit this field.
  30164. *
  30165. * @default false
  30166. *
  30167. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-FieldInfo.html#isEditable)
  30168. */
  30169. isEditable?: boolean;
  30170. /**
  30171. * A string containing the field alias.
  30172. *
  30173. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-FieldInfo.html#label)
  30174. */
  30175. label?: string;
  30176. /**
  30177. * Used in a `one:many` or `many:many` relationship to compute the statistics on the field to show in the popup.
  30178. *
  30179. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-FieldInfo.html#statisticType)
  30180. */
  30181. statisticType?: "count" | "sum" | "min" | "max" | "avg" | "stddev" | "var";
  30182. /**
  30183. * A string determining what type of input box editors see when editing the field.
  30184. *
  30185. * @default text-box
  30186. *
  30187. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-FieldInfo.html#stringFieldOption)
  30188. */
  30189. stringFieldOption?: "rich-text" | "text-area" | "text-box";
  30190. /**
  30191. * A string providing an editing hint for editors of the field.
  30192. *
  30193. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-FieldInfo.html#tooltip)
  30194. */
  30195. tooltip?: string;
  30196. /**
  30197. * Indicates whether the field is visible in the popup window.
  30198. *
  30199. * @default true
  30200. *
  30201. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-FieldInfo.html#visible)
  30202. */
  30203. visible?: boolean;
  30204. }
  30205. export interface LayerOptions extends Accessor, JSONSupport {
  30206. }
  30207. export class LayerOptions {
  30208. /**
  30209. * Applicable to [Imagery Layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html).
  30210. *
  30211. * @default false
  30212. *
  30213. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-LayerOptions.html#returnTopmostRaster)
  30214. */
  30215. returnTopmostRaster: boolean;
  30216. /**
  30217. * Applicable to [Imagery Layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html).
  30218. *
  30219. * @default true
  30220. *
  30221. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-LayerOptions.html#showNoDataRecords)
  30222. */
  30223. showNoDataRecords: boolean;
  30224. /**
  30225. * The `LayerOptions` class defines additional options that can be defined for a layer's [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html).
  30226. *
  30227. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-LayerOptions.html)
  30228. */
  30229. constructor(properties?: LayerOptionsProperties);
  30230. /**
  30231. * Creates a deep clone of the LayerOptions class.
  30232. *
  30233. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-LayerOptions.html#clone)
  30234. */
  30235. clone(): LayerOptions;
  30236. static fromJSON(json: any): LayerOptions;
  30237. }
  30238. /** @deprecated Import the LayerOptions class instead. */
  30239. export type LayerOptionsConstructor = typeof LayerOptions;
  30240. interface LayerOptionsProperties {
  30241. /**
  30242. * Applicable to [Imagery Layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html).
  30243. *
  30244. * @default false
  30245. *
  30246. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-LayerOptions.html#returnTopmostRaster)
  30247. */
  30248. returnTopmostRaster?: boolean;
  30249. /**
  30250. * Applicable to [Imagery Layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html).
  30251. *
  30252. * @default true
  30253. *
  30254. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-LayerOptions.html#showNoDataRecords)
  30255. */
  30256. showNoDataRecords?: boolean;
  30257. }
  30258. export interface RelatedRecordsInfo extends Accessor, JSONSupport {
  30259. }
  30260. export class RelatedRecordsInfo {
  30261. /**
  30262. * An array of [RelatedRecordsInfoFieldOrder](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-support-RelatedRecordsInfoFieldOrder.html) objects indicating the field display order for the related records and whether they should be sorted in ascending `asc` or descending `desc` order.
  30263. *
  30264. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-RelatedRecordsInfo.html#orderByFields)
  30265. */
  30266. orderByFields: RelatedRecordsInfoFieldOrder[];
  30267. /**
  30268. * Indicates whether to display related records in the popup.
  30269. *
  30270. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-RelatedRecordsInfo.html#showRelatedRecords)
  30271. */
  30272. showRelatedRecords: boolean;
  30273. /**
  30274. * The `RelatedRecordsInfo` class provides additional sorting options when working with related records in a layer's [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html).
  30275. *
  30276. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-RelatedRecordsInfo.html)
  30277. */
  30278. constructor(properties?: RelatedRecordsInfoProperties);
  30279. /**
  30280. * Creates a deep clone of the RelatedRecordsInfo class.
  30281. *
  30282. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-RelatedRecordsInfo.html#clone)
  30283. */
  30284. clone(): RelatedRecordsInfo;
  30285. static fromJSON(json: any): RelatedRecordsInfo;
  30286. }
  30287. /** @deprecated Import the RelatedRecordsInfo class instead. */
  30288. export type RelatedRecordsInfoConstructor = typeof RelatedRecordsInfo;
  30289. interface RelatedRecordsInfoProperties {
  30290. /**
  30291. * An array of [RelatedRecordsInfoFieldOrder](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-support-RelatedRecordsInfoFieldOrder.html) objects indicating the field display order for the related records and whether they should be sorted in ascending `asc` or descending `desc` order.
  30292. *
  30293. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-RelatedRecordsInfo.html#orderByFields)
  30294. */
  30295. orderByFields?: RelatedRecordsInfoFieldOrderProperties[];
  30296. /**
  30297. * Indicates whether to display related records in the popup.
  30298. *
  30299. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-RelatedRecordsInfo.html#showRelatedRecords)
  30300. */
  30301. showRelatedRecords?: boolean;
  30302. }
  30303. export interface FieldInfoFormat extends Accessor, JSONSupport {
  30304. }
  30305. export class FieldInfoFormat {
  30306. /**
  30307. * Used only with `Date` fields.
  30308. *
  30309. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-support-FieldInfoFormat.html#dateFormat)
  30310. */
  30311. dateFormat: | "default"
  30312. | "short-date"
  30313. | "short-date-short-time"
  30314. | "short-date-short-time-24"
  30315. | "short-date-long-time"
  30316. | "short-date-long-time-24"
  30317. | "long-month-day-year"
  30318. | "long-month-day-year-short-time"
  30319. | "long-month-day-year-short-time-24"
  30320. | "long-month-day-year-long-time"
  30321. | "long-month-day-year-long-time-24"
  30322. | "day-short-month-year"
  30323. | "day-short-month-year-short-time"
  30324. | "day-short-month-year-short-time-24"
  30325. | "day-short-month-year-long-time"
  30326. | "day-short-month-year-long-time-24"
  30327. | "long-date"
  30328. | "long-date-short-time"
  30329. | "long-date-short-time-24"
  30330. | "long-date-long-time"
  30331. | "long-date-long-time-24"
  30332. | "long-month-year"
  30333. | "short-month-year"
  30334. | "year";
  30335. /**
  30336. * Used only with `Number` fields.
  30337. *
  30338. * @default false
  30339. *
  30340. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-support-FieldInfoFormat.html#digitSeparator)
  30341. */
  30342. digitSeparator: boolean;
  30343. /**
  30344. * Used only with `Number` fields to specify the number of supported decimal places that should appear in popups.
  30345. *
  30346. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-support-FieldInfoFormat.html#places)
  30347. */
  30348. places: number;
  30349. /**
  30350. * The `FieldInfoFormat` class is used with numerical or date fields to provide more detail about how the value should be displayed in a popup.
  30351. *
  30352. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-support-FieldInfoFormat.html)
  30353. */
  30354. constructor(properties?: FieldInfoFormatProperties);
  30355. /**
  30356. * Creates a deep clone of the FieldInfoFormat class.
  30357. *
  30358. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-support-FieldInfoFormat.html#clone)
  30359. */
  30360. clone(): FieldInfoFormat;
  30361. static fromJSON(json: any): FieldInfoFormat;
  30362. }
  30363. /** @deprecated Import the FieldInfoFormat class instead. */
  30364. export type FieldInfoFormatConstructor = typeof FieldInfoFormat;
  30365. interface FieldInfoFormatProperties {
  30366. /**
  30367. * Used only with `Date` fields.
  30368. *
  30369. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-support-FieldInfoFormat.html#dateFormat)
  30370. */
  30371. dateFormat?: | "default"
  30372. | "short-date"
  30373. | "short-date-short-time"
  30374. | "short-date-short-time-24"
  30375. | "short-date-long-time"
  30376. | "short-date-long-time-24"
  30377. | "long-month-day-year"
  30378. | "long-month-day-year-short-time"
  30379. | "long-month-day-year-short-time-24"
  30380. | "long-month-day-year-long-time"
  30381. | "long-month-day-year-long-time-24"
  30382. | "day-short-month-year"
  30383. | "day-short-month-year-short-time"
  30384. | "day-short-month-year-short-time-24"
  30385. | "day-short-month-year-long-time"
  30386. | "day-short-month-year-long-time-24"
  30387. | "long-date"
  30388. | "long-date-short-time"
  30389. | "long-date-short-time-24"
  30390. | "long-date-long-time"
  30391. | "long-date-long-time-24"
  30392. | "long-month-year"
  30393. | "short-month-year"
  30394. | "year";
  30395. /**
  30396. * Used only with `Number` fields.
  30397. *
  30398. * @default false
  30399. *
  30400. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-support-FieldInfoFormat.html#digitSeparator)
  30401. */
  30402. digitSeparator?: boolean;
  30403. /**
  30404. * Used only with `Number` fields to specify the number of supported decimal places that should appear in popups.
  30405. *
  30406. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-support-FieldInfoFormat.html#places)
  30407. */
  30408. places?: number;
  30409. }
  30410. export interface RelatedRecordsInfoFieldOrder extends Accessor, JSONSupport {
  30411. }
  30412. export class RelatedRecordsInfoFieldOrder {
  30413. /**
  30414. * The attribute value of the field selected that will drive the sorting of related records.
  30415. *
  30416. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-support-RelatedRecordsInfoFieldOrder.html#field)
  30417. */
  30418. field: string;
  30419. /**
  30420. * Set the ascending or descending sort order of the returned related records.
  30421. *
  30422. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-support-RelatedRecordsInfoFieldOrder.html#order)
  30423. */
  30424. order: "asc" | "desc";
  30425. /**
  30426. * The `RelatedRecordsInfoFieldOrder` class indicates the field display order for the related records in a layer's [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html).
  30427. *
  30428. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-support-RelatedRecordsInfoFieldOrder.html)
  30429. */
  30430. constructor(properties?: RelatedRecordsInfoFieldOrderProperties);
  30431. /**
  30432. * Creates a deep clone of the RelatedRecordsInfoFieldOrder class.
  30433. *
  30434. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-support-RelatedRecordsInfoFieldOrder.html#clone)
  30435. */
  30436. clone(): RelatedRecordsInfoFieldOrder;
  30437. static fromJSON(json: any): RelatedRecordsInfoFieldOrder;
  30438. }
  30439. /** @deprecated Import the RelatedRecordsInfoFieldOrder class instead. */
  30440. export type RelatedRecordsInfoFieldOrderConstructor = typeof RelatedRecordsInfoFieldOrder;
  30441. interface RelatedRecordsInfoFieldOrderProperties {
  30442. /**
  30443. * The attribute value of the field selected that will drive the sorting of related records.
  30444. *
  30445. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-support-RelatedRecordsInfoFieldOrder.html#field)
  30446. */
  30447. field?: string;
  30448. /**
  30449. * Set the ascending or descending sort order of the returned related records.
  30450. *
  30451. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-support-RelatedRecordsInfoFieldOrder.html#order)
  30452. */
  30453. order?: "asc" | "desc";
  30454. }
  30455. export interface PopupTemplate extends Accessor, JSONSupport {
  30456. }
  30457. export class PopupTemplate {
  30458. /**
  30459. * A [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of [action](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionButton.html) or [action toggle](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionToggle.html) objects.
  30460. *
  30461. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#actions)
  30462. */
  30463. actions: Collection<ActionButton | ActionToggle>;
  30464. /**
  30465. * The template for defining and formatting a popup's content.
  30466. *
  30467. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#content)
  30468. */
  30469. content: Content[] | string | Function | Promise<any>;
  30470. /**
  30471. * An array of objects or [ExpressionInfo[]](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-ExpressionInfo.html) that reference [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expressions following the specification defined by the [Arcade Popup Profile](https://developers.arcgis.com/javascript/latest/arcade/#popup).
  30472. *
  30473. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#expressionInfos)
  30474. */
  30475. expressionInfos: popupExpressionInfo[];
  30476. /**
  30477. * An array of [FieldInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-FieldInfo.html) that defines how fields in the dataset or values from [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expressions participate in a popup.
  30478. *
  30479. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#fieldInfos)
  30480. */
  30481. fieldInfos: FieldInfo[];
  30482. /**
  30483. * Indicates whether or not editor tracking should display.
  30484. *
  30485. * @default true
  30486. *
  30487. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#lastEditInfoEnabled)
  30488. */
  30489. lastEditInfoEnabled: boolean;
  30490. /**
  30491. * Additional options that can be defined for the popup layer.
  30492. *
  30493. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#layerOptions)
  30494. */
  30495. layerOptions: LayerOptions;
  30496. /**
  30497. * An array of field names used in the PopupTemplate.
  30498. *
  30499. * @default null
  30500. *
  30501. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#outFields)
  30502. */
  30503. outFields: string[];
  30504. /**
  30505. * Indicates whether actions should replace existing [popup actions](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#actions).
  30506. *
  30507. * @default false
  30508. *
  30509. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#overwriteActions)
  30510. */
  30511. overwriteActions: boolean;
  30512. /**
  30513. * Indicates whether to include the feature's geometry for use by the template.
  30514. *
  30515. * @default false
  30516. *
  30517. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#returnGeometry)
  30518. */
  30519. returnGeometry: boolean;
  30520. /**
  30521. * The template for defining how to format the title used in a popup.
  30522. *
  30523. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#title)
  30524. */
  30525. title: string | Function | Promise<any>;
  30526. /**
  30527. * A PopupTemplate formats and defines the content of a [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html) for a specific [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html) or [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html).
  30528. *
  30529. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html)
  30530. */
  30531. constructor(properties?: PopupTemplateProperties);
  30532. /**
  30533. * Creates a deep clone of this object.
  30534. *
  30535. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#clone)
  30536. */
  30537. clone(): this;
  30538. static fromJSON(json: any): PopupTemplate;
  30539. }
  30540. /** @deprecated Import the PopupTemplate class instead. */
  30541. export type PopupTemplateConstructor = typeof PopupTemplate;
  30542. interface PopupTemplateProperties {
  30543. /**
  30544. * A [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of [action](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionButton.html) or [action toggle](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionToggle.html) objects.
  30545. *
  30546. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#actions)
  30547. */
  30548. actions?: CollectionProperties<
  30549. (ActionButtonProperties & { type: "button" }) | (ActionToggleProperties & { type: "toggle" })
  30550. >;
  30551. /**
  30552. * The template for defining and formatting a popup's content.
  30553. *
  30554. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#content)
  30555. */
  30556. content?: ContentProperties[] | string | Function | Promise<any>;
  30557. /**
  30558. * An array of objects or [ExpressionInfo[]](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-ExpressionInfo.html) that reference [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expressions following the specification defined by the [Arcade Popup Profile](https://developers.arcgis.com/javascript/latest/arcade/#popup).
  30559. *
  30560. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#expressionInfos)
  30561. */
  30562. expressionInfos?: popupExpressionInfoProperties[];
  30563. /**
  30564. * An array of [FieldInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-FieldInfo.html) that defines how fields in the dataset or values from [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expressions participate in a popup.
  30565. *
  30566. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#fieldInfos)
  30567. */
  30568. fieldInfos?: FieldInfoProperties[];
  30569. /**
  30570. * Indicates whether or not editor tracking should display.
  30571. *
  30572. * @default true
  30573. *
  30574. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#lastEditInfoEnabled)
  30575. */
  30576. lastEditInfoEnabled?: boolean;
  30577. /**
  30578. * Additional options that can be defined for the popup layer.
  30579. *
  30580. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#layerOptions)
  30581. */
  30582. layerOptions?: LayerOptionsProperties;
  30583. /**
  30584. * An array of field names used in the PopupTemplate.
  30585. *
  30586. * @default null
  30587. *
  30588. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#outFields)
  30589. */
  30590. outFields?: string[];
  30591. /**
  30592. * Indicates whether actions should replace existing [popup actions](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#actions).
  30593. *
  30594. * @default false
  30595. *
  30596. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#overwriteActions)
  30597. */
  30598. overwriteActions?: boolean;
  30599. /**
  30600. * Indicates whether to include the feature's geometry for use by the template.
  30601. *
  30602. * @default false
  30603. *
  30604. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#returnGeometry)
  30605. */
  30606. returnGeometry?: boolean;
  30607. /**
  30608. * The template for defining how to format the title used in a popup.
  30609. *
  30610. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#title)
  30611. */
  30612. title?: string | Function | Promise<any>;
  30613. }
  30614. export interface Portal extends Accessor, Loadable {
  30615. }
  30616. export class Portal {
  30617. /**
  30618. * The access level of the organization.
  30619. *
  30620. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#access)
  30621. */
  30622. access: "public" | "private";
  30623. /**
  30624. * When `true`, access to the organization's Portal resources must occur over SSL.
  30625. *
  30626. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#allSSL)
  30627. */
  30628. allSSL: boolean;
  30629. /**
  30630. * The authentication mode for handling authentication when the user attempts to access a secure resource.
  30631. *
  30632. * @default auto
  30633. *
  30634. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#authMode)
  30635. */
  30636. authMode: "anonymous" | "auto" | "immediate";
  30637. /**
  30638. * Array of trusted servers to send credentials to when making Cross-Origin Resource Sharing (CORS) requests to access services secured with web-tier authentication.
  30639. *
  30640. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#authorizedCrossOriginDomains)
  30641. */
  30642. authorizedCrossOriginDomains: string[];
  30643. /**
  30644. * The query that defines the basemaps that should be displayed in the [BasemapGallery](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html) when [useVectorBasemaps](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#useVectorBasemaps) is not true.
  30645. *
  30646. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#basemapGalleryGroupQuery)
  30647. */
  30648. basemapGalleryGroupQuery: string;
  30649. /**
  30650. * The Bing key to use for web maps using Bing Maps.
  30651. *
  30652. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#bingKey)
  30653. */
  30654. bingKey: string;
  30655. /**
  30656. * Indicates whether an organization can list applications in the marketplace.
  30657. *
  30658. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#canListApps)
  30659. */
  30660. canListApps: boolean;
  30661. /**
  30662. * Indicates whether an organization can list data services in the marketplace.
  30663. *
  30664. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#canListData)
  30665. */
  30666. canListData: boolean;
  30667. /**
  30668. * Indicates whether an organization can list pre-provisioned items in the marketplace.
  30669. *
  30670. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#canListPreProvisionedItems)
  30671. */
  30672. canListPreProvisionedItems: boolean;
  30673. /**
  30674. * Indicates whether an organization can provision direct purchases in the marketplace without customer request.
  30675. *
  30676. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#canProvisionDirectPurchase)
  30677. */
  30678. canProvisionDirectPurchase: boolean;
  30679. /**
  30680. * When `true`, the organization's public items, groups and users are included in search queries.
  30681. *
  30682. * @default true
  30683. *
  30684. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#canSearchPublic)
  30685. */
  30686. canSearchPublic: boolean;
  30687. /**
  30688. * The Bing key can be shared to the public and is returned as part of a portal's description call (`/sharing/rest/portals/<orgid>`).
  30689. *
  30690. * @default false
  30691. *
  30692. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#canShareBingPublic)
  30693. */
  30694. canShareBingPublic: boolean;
  30695. /**
  30696. * When `true`, members of the organization can share resources outside the organization.
  30697. *
  30698. * @default false
  30699. *
  30700. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#canSharePublic)
  30701. */
  30702. canSharePublic: boolean;
  30703. /**
  30704. * Indicates whether to allow an organization with an enterprise IDP configured to be able to turn on or off the ArcGIS sign in.
  30705. *
  30706. * @default false
  30707. *
  30708. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#canSignInArcGIS)
  30709. */
  30710. canSignInArcGIS: boolean;
  30711. /**
  30712. * Indicates whether to allow an organization with an enterprise IDP configured to be able to turn on or off the enterprise sign in.
  30713. *
  30714. * @default false
  30715. *
  30716. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#canSignInIDP)
  30717. */
  30718. canSignInIDP: boolean;
  30719. /**
  30720. * The query that identifies the group containing the color sets used for rendering in the map viewer.
  30721. *
  30722. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#colorSetsGroupQuery)
  30723. */
  30724. colorSetsGroupQuery: string;
  30725. /**
  30726. * Indicates whether to allow the organization to disable commenting.
  30727. *
  30728. * @default false
  30729. *
  30730. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#commentsEnabled)
  30731. */
  30732. commentsEnabled: boolean;
  30733. /**
  30734. * Date the organization was created.
  30735. *
  30736. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#created)
  30737. */
  30738. created: Date;
  30739. /**
  30740. * The default locale (language and country) information.
  30741. *
  30742. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#culture)
  30743. */
  30744. culture: string;
  30745. /**
  30746. * The custom base URL for the portal.
  30747. *
  30748. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#customBaseUrl)
  30749. */
  30750. customBaseUrl: string;
  30751. /**
  30752. * The default basemap to use for the portal.
  30753. *
  30754. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#defaultBasemap)
  30755. */
  30756. defaultBasemap: Basemap;
  30757. /**
  30758. * The default developer basemap to use for the portal when an [apiKey](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#apiKey) is defined.
  30759. *
  30760. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#defaultDevBasemap)
  30761. */
  30762. defaultDevBasemap: Basemap;
  30763. /**
  30764. * The default extent to use for the portal.
  30765. *
  30766. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#defaultExtent)
  30767. */
  30768. defaultExtent: Extent;
  30769. /**
  30770. * The default vector basemap to use for the portal.
  30771. *
  30772. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#defaultVectorBasemap)
  30773. */
  30774. defaultVectorBasemap: Basemap;
  30775. /**
  30776. * A description of the organization/portal.
  30777. *
  30778. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#description)
  30779. */
  30780. description: string;
  30781. /**
  30782. * The query that defines the basemaps that should be displayed in the [BasemapGallery](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html) when an [apiKey](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#apiKey) is defined.
  30783. *
  30784. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#devBasemapGalleryGroupQuery)
  30785. */
  30786. devBasemapGalleryGroupQuery: string;
  30787. /**
  30788. * Boolean value indicating whether to opt-in to the [Esri User Experience Improvement (EUEI) program](https://doc.arcgis.com/en/arcgis-online/reference/faq.htm#ESRI_QUESTIONANSWER_AED97F28DCD84F7682623C2FA9E5CE49).
  30789. *
  30790. * @default null
  30791. *
  30792. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#eueiEnabled)
  30793. */
  30794. eueiEnabled: boolean;
  30795. /**
  30796. * The featured groups for the portal.
  30797. *
  30798. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#featuredGroups)
  30799. */
  30800. featuredGroups: PortalFeaturedGroups[];
  30801. /**
  30802. * The query that defines the featured group.
  30803. *
  30804. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#featuredItemsGroupQuery)
  30805. */
  30806. featuredItemsGroupQuery: string;
  30807. /**
  30808. * The query that identifies the group containing features items for the gallery.
  30809. *
  30810. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#galleryTemplatesGroupQuery)
  30811. */
  30812. galleryTemplatesGroupQuery: string;
  30813. /**
  30814. * Indicates whether the organization has content categories.
  30815. *
  30816. * @default false
  30817. *
  30818. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#hasCategorySchema)
  30819. */
  30820. hasCategorySchema: boolean;
  30821. /**
  30822. * Helper services provided by the portal.
  30823. *
  30824. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#helperServices)
  30825. */
  30826. helperServices: any;
  30827. /**
  30828. * The group that contains featured content to be displayed on the home page.
  30829. *
  30830. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#homePageFeaturedContent)
  30831. */
  30832. homePageFeaturedContent: string;
  30833. /**
  30834. * The number of featured items that can be displayed on the home page.
  30835. *
  30836. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#homePageFeaturedContentCount)
  30837. */
  30838. homePageFeaturedContentCount: number;
  30839. /**
  30840. * The port used by the portal for HTTP communication.
  30841. *
  30842. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#httpPort)
  30843. */
  30844. httpPort: number;
  30845. /**
  30846. * The port used by the portal for HTTPS communication.
  30847. *
  30848. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#httpsPort)
  30849. */
  30850. httpsPort: number;
  30851. /**
  30852. * The id of the organization that owns this portal.
  30853. *
  30854. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#id)
  30855. */
  30856. id: string;
  30857. /**
  30858. * The country code of the calling IP (ArcGIS Online only).
  30859. *
  30860. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#ipCntryCode)
  30861. */
  30862. ipCntryCode: string;
  30863. /**
  30864. * Indicates whether the portal is an organization.
  30865. *
  30866. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#isOrganization)
  30867. */
  30868. readonly isOrganization: boolean;
  30869. /**
  30870. * Indicates if the portal is on-premises.
  30871. *
  30872. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#isPortal)
  30873. */
  30874. isPortal: boolean;
  30875. /**
  30876. * Indicates if the portal is in read-only mode.
  30877. *
  30878. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#isReadOnly)
  30879. */
  30880. isReadOnly: boolean;
  30881. /**
  30882. * The query that identifies the group containing editing templates.
  30883. *
  30884. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#layerTemplatesGroupQuery)
  30885. */
  30886. layerTemplatesGroupQuery: string;
  30887. /**
  30888. * Indicates whether the portal's resources have loaded.
  30889. *
  30890. * @default false
  30891. *
  30892. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#loaded)
  30893. */
  30894. readonly loaded: boolean;
  30895. /**
  30896. * The maximum validity in minutes of tokens issued for users of the organization.
  30897. *
  30898. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#maxTokenExpirationMinutes)
  30899. */
  30900. maxTokenExpirationMinutes: number;
  30901. /**
  30902. * Date the organization was last modified.
  30903. *
  30904. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#modified)
  30905. */
  30906. modified: Date;
  30907. /**
  30908. * Name of the organization.
  30909. *
  30910. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#name)
  30911. */
  30912. name: string;
  30913. /**
  30914. * URL of the portal host.
  30915. *
  30916. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#portalHostname)
  30917. */
  30918. portalHostname: string;
  30919. /**
  30920. * The portal mode.
  30921. *
  30922. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#portalMode)
  30923. */
  30924. portalMode: "multitenant" | "singletenant";
  30925. /**
  30926. * Properties specific to the organization, for example the "contact us" link.
  30927. *
  30928. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#portalProperties)
  30929. */
  30930. portalProperties: any;
  30931. /**
  30932. * The region for the organization.
  30933. *
  30934. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#region)
  30935. */
  30936. region: string;
  30937. /**
  30938. * The REST URL for the portal, for example "https://www.arcgis.com/sharing/rest" for ArcGIS Online and "https://www.example.com/arcgis/sharing/rest" for your in-house portal.
  30939. *
  30940. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#restUrl)
  30941. */
  30942. readonly restUrl: string;
  30943. /**
  30944. * Custom HTML for the home page.
  30945. *
  30946. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#rotatorPanels)
  30947. */
  30948. rotatorPanels: any[];
  30949. /**
  30950. * Indicates whether the description of your organization displays on the home page.
  30951. *
  30952. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#showHomePageDescription)
  30953. */
  30954. showHomePageDescription: boolean;
  30955. /**
  30956. * The JSON used to create the property values when the `Portal` is loaded.
  30957. *
  30958. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#sourceJSON)
  30959. */
  30960. sourceJSON: any;
  30961. /**
  30962. * Indicates whether hosted services are supported.
  30963. *
  30964. * @default false
  30965. *
  30966. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#supportsHostedServices)
  30967. */
  30968. supportsHostedServices: boolean;
  30969. /**
  30970. * The query that defines the symbols sets.
  30971. *
  30972. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#symbolSetsGroupQuery)
  30973. */
  30974. symbolSetsGroupQuery: string;
  30975. /**
  30976. * The query that defines the collection of templates that will appear in the template gallery.
  30977. *
  30978. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#templatesGroupQuery)
  30979. */
  30980. templatesGroupQuery: string;
  30981. /**
  30982. * The URL to the thumbnail of the organization.
  30983. *
  30984. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#thumbnailUrl)
  30985. */
  30986. readonly thumbnailUrl: string;
  30987. /**
  30988. * Sets the units of measure for the organization's users.
  30989. *
  30990. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#units)
  30991. */
  30992. units: "english" | "metric";
  30993. /**
  30994. * The URL to the portal instance.
  30995. *
  30996. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#url)
  30997. */
  30998. url: string;
  30999. /**
  31000. * The prefix selected by the organization's administrator to be used with the customBaseURL.
  31001. *
  31002. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#urlKey)
  31003. */
  31004. urlKey: string;
  31005. /**
  31006. * Information representing a registered user of the portal.
  31007. *
  31008. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#user)
  31009. */
  31010. user: PortalUser;
  31011. /**
  31012. * When `true`, only simple where clauses that are compliant with SQL92 can be used when querying layers and tables.
  31013. *
  31014. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#useStandardizedQuery)
  31015. */
  31016. useStandardizedQuery: boolean;
  31017. /**
  31018. * When `true`, the organization has opted in to use the vector tile basemaps, and (a) [vectorBasemapGalleryGroupQuery](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#vectorBasemapGalleryGroupQuery) should be used instead of [basemapGalleryGroupQuery](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#basemapGalleryGroupQuery), while (b) [defaultVectorBasemap](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#defaultVectorBasemap) should be used instead of [defaultBasemap](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#defaultBasemap).
  31019. *
  31020. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#useVectorBasemaps)
  31021. */
  31022. useVectorBasemaps: boolean;
  31023. /**
  31024. * The query that defines the vector tiles basemaps that should be displayed in the [BasemapGallery](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html) when [useVectorBasemaps](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#useVectorBasemaps) is true.
  31025. *
  31026. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#vectorBasemapGalleryGroupQuery)
  31027. */
  31028. vectorBasemapGalleryGroupQuery: string;
  31029. /**
  31030. * The Portal class is part of the [ArcGIS Enterprise portal](https://enterprise.arcgis.com/en/portal/) that provides a way to build applications that work with content from [ArcGIS Online](https://www.arcgis.com/home/) or an [ArcGIS Enterprise portal](https://enterprise.arcgis.com/en/portal/).
  31031. *
  31032. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html)
  31033. */
  31034. constructor(properties?: PortalProperties);
  31035. /**
  31036. * A helper function that returns an array of [ElevationsLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html) derived from the Portal's [Limited Error Raster Compression (LERC) elevation helper service](https://enterprise.arcgis.com/en/portal/latest/administer/windows/about-utility-services.htm).
  31037. *
  31038. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#createElevationLayers)
  31039. */
  31040. createElevationLayers(): Promise<ElevationLayer[]>;
  31041. /**
  31042. * Fetches the [basemaps](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html) that are displayed in the [BasemapGallery](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html).
  31043. *
  31044. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#fetchBasemaps)
  31045. */
  31046. fetchBasemaps(basemapGalleryGroupQuery?: string, options?: PortalFetchBasemapsOptions): Promise<Basemap[]>;
  31047. /**
  31048. * If present, fetches the organization's category schema.
  31049. *
  31050. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#fetchCategorySchema)
  31051. */
  31052. fetchCategorySchema(options?: PortalFetchCategorySchemaOptions): Promise<any[]>;
  31053. /**
  31054. * Fetches the featured groups in the Portal.
  31055. *
  31056. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#fetchFeaturedGroups)
  31057. */
  31058. fetchFeaturedGroups(options?: PortalFetchFeaturedGroupsOptions): Promise<PortalGroup[]>;
  31059. /**
  31060. * Fetches and returns the associated regions with the portal instance.
  31061. *
  31062. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#fetchRegions)
  31063. */
  31064. fetchRegions(options?: PortalFetchRegionsOptions): Promise<any[]>;
  31065. /**
  31066. * Fetches and returns the portal settings as seen by the current user(s), whether anonymous or signed in.
  31067. *
  31068. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#fetchSettings)
  31069. */
  31070. fetchSettings(options?: PortalFetchSettingsOptions): Promise<any>;
  31071. /**
  31072. * Executes a query against the Portal to return an array of [PortalGroup](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html) objects that match the input query.
  31073. *
  31074. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#queryGroups)
  31075. */
  31076. queryGroups(queryParams: PortalQueryParams | PortalQueryParamsProperties, options?: PortalQueryGroupsOptions): Promise<PortalQueryResult>;
  31077. /**
  31078. * Executes a query against the Portal to return an array of [PortalItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html) objects that match the input query.
  31079. *
  31080. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#queryItems)
  31081. */
  31082. queryItems(queryParams: PortalQueryParams | PortalQueryParamsProperties, options?: PortalQueryItemsOptions): Promise<PortalQueryResult>;
  31083. /**
  31084. * Executes a query against the Portal to return an array of [PortalUser](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html) objects that match the input query.
  31085. *
  31086. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#queryUsers)
  31087. */
  31088. queryUsers(queryParams: PortalQueryParams | PortalQueryParamsProperties, options?: PortalQueryUsersOptions): Promise<PortalQueryResult>;
  31089. /**
  31090. * A new `Portal` instance is created the first time this method is called.
  31091. *
  31092. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#getDefault)
  31093. */
  31094. static getDefault(): Portal;
  31095. }
  31096. /** @deprecated Import the Portal class instead. */
  31097. export type PortalConstructor = typeof Portal;
  31098. interface PortalProperties extends LoadableProperties {
  31099. /**
  31100. * The access level of the organization.
  31101. *
  31102. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#access)
  31103. */
  31104. access?: "public" | "private";
  31105. /**
  31106. * When `true`, access to the organization's Portal resources must occur over SSL.
  31107. *
  31108. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#allSSL)
  31109. */
  31110. allSSL?: boolean;
  31111. /**
  31112. * The authentication mode for handling authentication when the user attempts to access a secure resource.
  31113. *
  31114. * @default auto
  31115. *
  31116. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#authMode)
  31117. */
  31118. authMode?: "anonymous" | "auto" | "immediate";
  31119. /**
  31120. * Array of trusted servers to send credentials to when making Cross-Origin Resource Sharing (CORS) requests to access services secured with web-tier authentication.
  31121. *
  31122. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#authorizedCrossOriginDomains)
  31123. */
  31124. authorizedCrossOriginDomains?: string[];
  31125. /**
  31126. * The query that defines the basemaps that should be displayed in the [BasemapGallery](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html) when [useVectorBasemaps](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#useVectorBasemaps) is not true.
  31127. *
  31128. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#basemapGalleryGroupQuery)
  31129. */
  31130. basemapGalleryGroupQuery?: string;
  31131. /**
  31132. * The Bing key to use for web maps using Bing Maps.
  31133. *
  31134. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#bingKey)
  31135. */
  31136. bingKey?: string;
  31137. /**
  31138. * Indicates whether an organization can list applications in the marketplace.
  31139. *
  31140. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#canListApps)
  31141. */
  31142. canListApps?: boolean;
  31143. /**
  31144. * Indicates whether an organization can list data services in the marketplace.
  31145. *
  31146. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#canListData)
  31147. */
  31148. canListData?: boolean;
  31149. /**
  31150. * Indicates whether an organization can list pre-provisioned items in the marketplace.
  31151. *
  31152. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#canListPreProvisionedItems)
  31153. */
  31154. canListPreProvisionedItems?: boolean;
  31155. /**
  31156. * Indicates whether an organization can provision direct purchases in the marketplace without customer request.
  31157. *
  31158. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#canProvisionDirectPurchase)
  31159. */
  31160. canProvisionDirectPurchase?: boolean;
  31161. /**
  31162. * When `true`, the organization's public items, groups and users are included in search queries.
  31163. *
  31164. * @default true
  31165. *
  31166. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#canSearchPublic)
  31167. */
  31168. canSearchPublic?: boolean;
  31169. /**
  31170. * The Bing key can be shared to the public and is returned as part of a portal's description call (`/sharing/rest/portals/<orgid>`).
  31171. *
  31172. * @default false
  31173. *
  31174. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#canShareBingPublic)
  31175. */
  31176. canShareBingPublic?: boolean;
  31177. /**
  31178. * When `true`, members of the organization can share resources outside the organization.
  31179. *
  31180. * @default false
  31181. *
  31182. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#canSharePublic)
  31183. */
  31184. canSharePublic?: boolean;
  31185. /**
  31186. * Indicates whether to allow an organization with an enterprise IDP configured to be able to turn on or off the ArcGIS sign in.
  31187. *
  31188. * @default false
  31189. *
  31190. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#canSignInArcGIS)
  31191. */
  31192. canSignInArcGIS?: boolean;
  31193. /**
  31194. * Indicates whether to allow an organization with an enterprise IDP configured to be able to turn on or off the enterprise sign in.
  31195. *
  31196. * @default false
  31197. *
  31198. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#canSignInIDP)
  31199. */
  31200. canSignInIDP?: boolean;
  31201. /**
  31202. * The query that identifies the group containing the color sets used for rendering in the map viewer.
  31203. *
  31204. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#colorSetsGroupQuery)
  31205. */
  31206. colorSetsGroupQuery?: string;
  31207. /**
  31208. * Indicates whether to allow the organization to disable commenting.
  31209. *
  31210. * @default false
  31211. *
  31212. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#commentsEnabled)
  31213. */
  31214. commentsEnabled?: boolean;
  31215. /**
  31216. * Date the organization was created.
  31217. *
  31218. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#created)
  31219. */
  31220. created?: DateProperties;
  31221. /**
  31222. * The default locale (language and country) information.
  31223. *
  31224. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#culture)
  31225. */
  31226. culture?: string;
  31227. /**
  31228. * The custom base URL for the portal.
  31229. *
  31230. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#customBaseUrl)
  31231. */
  31232. customBaseUrl?: string;
  31233. /**
  31234. * The default basemap to use for the portal.
  31235. *
  31236. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#defaultBasemap)
  31237. */
  31238. defaultBasemap?: BasemapProperties;
  31239. /**
  31240. * The default developer basemap to use for the portal when an [apiKey](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#apiKey) is defined.
  31241. *
  31242. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#defaultDevBasemap)
  31243. */
  31244. defaultDevBasemap?: BasemapProperties;
  31245. /**
  31246. * The default extent to use for the portal.
  31247. *
  31248. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#defaultExtent)
  31249. */
  31250. defaultExtent?: ExtentProperties;
  31251. /**
  31252. * The default vector basemap to use for the portal.
  31253. *
  31254. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#defaultVectorBasemap)
  31255. */
  31256. defaultVectorBasemap?: BasemapProperties;
  31257. /**
  31258. * A description of the organization/portal.
  31259. *
  31260. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#description)
  31261. */
  31262. description?: string;
  31263. /**
  31264. * The query that defines the basemaps that should be displayed in the [BasemapGallery](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html) when an [apiKey](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#apiKey) is defined.
  31265. *
  31266. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#devBasemapGalleryGroupQuery)
  31267. */
  31268. devBasemapGalleryGroupQuery?: string;
  31269. /**
  31270. * Boolean value indicating whether to opt-in to the [Esri User Experience Improvement (EUEI) program](https://doc.arcgis.com/en/arcgis-online/reference/faq.htm#ESRI_QUESTIONANSWER_AED97F28DCD84F7682623C2FA9E5CE49).
  31271. *
  31272. * @default null
  31273. *
  31274. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#eueiEnabled)
  31275. */
  31276. eueiEnabled?: boolean;
  31277. /**
  31278. * The featured groups for the portal.
  31279. *
  31280. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#featuredGroups)
  31281. */
  31282. featuredGroups?: PortalFeaturedGroups[];
  31283. /**
  31284. * The query that defines the featured group.
  31285. *
  31286. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#featuredItemsGroupQuery)
  31287. */
  31288. featuredItemsGroupQuery?: string;
  31289. /**
  31290. * The query that identifies the group containing features items for the gallery.
  31291. *
  31292. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#galleryTemplatesGroupQuery)
  31293. */
  31294. galleryTemplatesGroupQuery?: string;
  31295. /**
  31296. * Indicates whether the organization has content categories.
  31297. *
  31298. * @default false
  31299. *
  31300. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#hasCategorySchema)
  31301. */
  31302. hasCategorySchema?: boolean;
  31303. /**
  31304. * Helper services provided by the portal.
  31305. *
  31306. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#helperServices)
  31307. */
  31308. helperServices?: any;
  31309. /**
  31310. * The group that contains featured content to be displayed on the home page.
  31311. *
  31312. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#homePageFeaturedContent)
  31313. */
  31314. homePageFeaturedContent?: string;
  31315. /**
  31316. * The number of featured items that can be displayed on the home page.
  31317. *
  31318. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#homePageFeaturedContentCount)
  31319. */
  31320. homePageFeaturedContentCount?: number;
  31321. /**
  31322. * The port used by the portal for HTTP communication.
  31323. *
  31324. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#httpPort)
  31325. */
  31326. httpPort?: number;
  31327. /**
  31328. * The port used by the portal for HTTPS communication.
  31329. *
  31330. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#httpsPort)
  31331. */
  31332. httpsPort?: number;
  31333. /**
  31334. * The id of the organization that owns this portal.
  31335. *
  31336. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#id)
  31337. */
  31338. id?: string;
  31339. /**
  31340. * The country code of the calling IP (ArcGIS Online only).
  31341. *
  31342. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#ipCntryCode)
  31343. */
  31344. ipCntryCode?: string;
  31345. /**
  31346. * Indicates if the portal is on-premises.
  31347. *
  31348. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#isPortal)
  31349. */
  31350. isPortal?: boolean;
  31351. /**
  31352. * Indicates if the portal is in read-only mode.
  31353. *
  31354. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#isReadOnly)
  31355. */
  31356. isReadOnly?: boolean;
  31357. /**
  31358. * The query that identifies the group containing editing templates.
  31359. *
  31360. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#layerTemplatesGroupQuery)
  31361. */
  31362. layerTemplatesGroupQuery?: string;
  31363. /**
  31364. * The maximum validity in minutes of tokens issued for users of the organization.
  31365. *
  31366. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#maxTokenExpirationMinutes)
  31367. */
  31368. maxTokenExpirationMinutes?: number;
  31369. /**
  31370. * Date the organization was last modified.
  31371. *
  31372. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#modified)
  31373. */
  31374. modified?: DateProperties;
  31375. /**
  31376. * Name of the organization.
  31377. *
  31378. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#name)
  31379. */
  31380. name?: string;
  31381. /**
  31382. * URL of the portal host.
  31383. *
  31384. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#portalHostname)
  31385. */
  31386. portalHostname?: string;
  31387. /**
  31388. * The portal mode.
  31389. *
  31390. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#portalMode)
  31391. */
  31392. portalMode?: "multitenant" | "singletenant";
  31393. /**
  31394. * Properties specific to the organization, for example the "contact us" link.
  31395. *
  31396. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#portalProperties)
  31397. */
  31398. portalProperties?: any;
  31399. /**
  31400. * The region for the organization.
  31401. *
  31402. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#region)
  31403. */
  31404. region?: string;
  31405. /**
  31406. * Custom HTML for the home page.
  31407. *
  31408. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#rotatorPanels)
  31409. */
  31410. rotatorPanels?: any[];
  31411. /**
  31412. * Indicates whether the description of your organization displays on the home page.
  31413. *
  31414. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#showHomePageDescription)
  31415. */
  31416. showHomePageDescription?: boolean;
  31417. /**
  31418. * The JSON used to create the property values when the `Portal` is loaded.
  31419. *
  31420. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#sourceJSON)
  31421. */
  31422. sourceJSON?: any;
  31423. /**
  31424. * Indicates whether hosted services are supported.
  31425. *
  31426. * @default false
  31427. *
  31428. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#supportsHostedServices)
  31429. */
  31430. supportsHostedServices?: boolean;
  31431. /**
  31432. * The query that defines the symbols sets.
  31433. *
  31434. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#symbolSetsGroupQuery)
  31435. */
  31436. symbolSetsGroupQuery?: string;
  31437. /**
  31438. * The query that defines the collection of templates that will appear in the template gallery.
  31439. *
  31440. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#templatesGroupQuery)
  31441. */
  31442. templatesGroupQuery?: string;
  31443. /**
  31444. * Sets the units of measure for the organization's users.
  31445. *
  31446. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#units)
  31447. */
  31448. units?: "english" | "metric";
  31449. /**
  31450. * The URL to the portal instance.
  31451. *
  31452. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#url)
  31453. */
  31454. url?: string;
  31455. /**
  31456. * The prefix selected by the organization's administrator to be used with the customBaseURL.
  31457. *
  31458. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#urlKey)
  31459. */
  31460. urlKey?: string;
  31461. /**
  31462. * Information representing a registered user of the portal.
  31463. *
  31464. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#user)
  31465. */
  31466. user?: PortalUserProperties;
  31467. /**
  31468. * When `true`, only simple where clauses that are compliant with SQL92 can be used when querying layers and tables.
  31469. *
  31470. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#useStandardizedQuery)
  31471. */
  31472. useStandardizedQuery?: boolean;
  31473. /**
  31474. * When `true`, the organization has opted in to use the vector tile basemaps, and (a) [vectorBasemapGalleryGroupQuery](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#vectorBasemapGalleryGroupQuery) should be used instead of [basemapGalleryGroupQuery](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#basemapGalleryGroupQuery), while (b) [defaultVectorBasemap](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#defaultVectorBasemap) should be used instead of [defaultBasemap](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#defaultBasemap).
  31475. *
  31476. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#useVectorBasemaps)
  31477. */
  31478. useVectorBasemaps?: boolean;
  31479. /**
  31480. * The query that defines the vector tiles basemaps that should be displayed in the [BasemapGallery](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html) when [useVectorBasemaps](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#useVectorBasemaps) is true.
  31481. *
  31482. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#vectorBasemapGalleryGroupQuery)
  31483. */
  31484. vectorBasemapGalleryGroupQuery?: string;
  31485. }
  31486. export interface PortalFeaturedGroups {
  31487. /**
  31488. * Name of the group owner.
  31489. *
  31490. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#featuredGroups)
  31491. */
  31492. owner: string;
  31493. /**
  31494. * Group title.
  31495. *
  31496. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#featuredGroups)
  31497. */
  31498. title: string;
  31499. }
  31500. export interface PortalFetchBasemapsOptions {
  31501. /**
  31502. * Signal object that can be used to abort the asynchronous task.
  31503. *
  31504. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#fetchBasemaps)
  31505. */
  31506. signal?: AbortSignal;
  31507. }
  31508. export interface PortalFetchCategorySchemaOptions {
  31509. /**
  31510. * Signal object that can be used to abort the asynchronous task.
  31511. *
  31512. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#fetchCategorySchema)
  31513. */
  31514. signal?: AbortSignal;
  31515. }
  31516. export interface PortalFetchFeaturedGroupsOptions {
  31517. /**
  31518. * Signal object that can be used to abort the asynchronous task.
  31519. *
  31520. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#fetchFeaturedGroups)
  31521. */
  31522. signal?: AbortSignal;
  31523. }
  31524. export interface PortalFetchRegionsOptions {
  31525. /**
  31526. * Signal object that can be used to abort the asynchronous task.
  31527. *
  31528. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#fetchRegions)
  31529. */
  31530. signal?: AbortSignal;
  31531. }
  31532. export interface PortalFetchSettingsOptions {
  31533. /**
  31534. * Signal object that can be used to abort the asynchronous task.
  31535. *
  31536. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#fetchSettings)
  31537. */
  31538. signal?: AbortSignal;
  31539. }
  31540. export interface PortalQueryGroupsOptions {
  31541. /**
  31542. * Signal object that can be used to abort the asynchronous task.
  31543. *
  31544. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#queryGroups)
  31545. */
  31546. signal?: AbortSignal;
  31547. }
  31548. export interface PortalQueryItemsOptions {
  31549. /**
  31550. * Signal object that can be used to abort the asynchronous task.
  31551. *
  31552. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#queryItems)
  31553. */
  31554. signal?: AbortSignal;
  31555. }
  31556. export interface PortalQueryUsersOptions {
  31557. /**
  31558. * Signal object that can be used to abort the asynchronous task.
  31559. *
  31560. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html#queryUsers)
  31561. */
  31562. signal?: AbortSignal;
  31563. }
  31564. export class PortalFolder extends Accessor {
  31565. /**
  31566. * The date the folder was created.
  31567. *
  31568. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalFolder.html#created)
  31569. */
  31570. created: Date;
  31571. /**
  31572. * The unique id of the folder.
  31573. *
  31574. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalFolder.html#id)
  31575. */
  31576. id: string;
  31577. /**
  31578. * The portal associated with the folder.
  31579. *
  31580. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalFolder.html#portal)
  31581. */
  31582. portal: Portal;
  31583. /**
  31584. * The title of the folder.
  31585. *
  31586. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalFolder.html#title)
  31587. */
  31588. title: string;
  31589. /**
  31590. * The URL to the folder.
  31591. *
  31592. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalFolder.html#url)
  31593. */
  31594. readonly url: string;
  31595. /**
  31596. * Provides information about folders used to organize content in a portal.
  31597. *
  31598. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalFolder.html)
  31599. */
  31600. constructor(properties?: PortalFolderProperties);
  31601. }
  31602. /** @deprecated Import the PortalFolder class instead. */
  31603. export type PortalFolderConstructor = typeof PortalFolder;
  31604. interface PortalFolderProperties {
  31605. /**
  31606. * The date the folder was created.
  31607. *
  31608. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalFolder.html#created)
  31609. */
  31610. created?: DateProperties;
  31611. /**
  31612. * The unique id of the folder.
  31613. *
  31614. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalFolder.html#id)
  31615. */
  31616. id?: string;
  31617. /**
  31618. * The portal associated with the folder.
  31619. *
  31620. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalFolder.html#portal)
  31621. */
  31622. portal?: PortalProperties;
  31623. /**
  31624. * The title of the folder.
  31625. *
  31626. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalFolder.html#title)
  31627. */
  31628. title?: string;
  31629. }
  31630. export class PortalGroup extends Accessor {
  31631. /**
  31632. * The access privileges on the group which determines who can see and access the group.
  31633. *
  31634. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#access)
  31635. */
  31636. access: "private" | "org" | "public";
  31637. /**
  31638. * The date the group was created.
  31639. *
  31640. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#created)
  31641. */
  31642. created: Date;
  31643. /**
  31644. * A detailed description of the group.
  31645. *
  31646. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#description)
  31647. */
  31648. description: string;
  31649. /**
  31650. * The unique id for the group.
  31651. *
  31652. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#id)
  31653. */
  31654. id: string;
  31655. /**
  31656. * If set to `true`, then users will not be able to apply to join the group.
  31657. *
  31658. * @default false
  31659. *
  31660. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#isInvitationOnly)
  31661. */
  31662. isInvitationOnly: boolean;
  31663. /**
  31664. * The date the group was last modified.
  31665. *
  31666. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#modified)
  31667. */
  31668. modified: Date;
  31669. /**
  31670. * The username of the group's owner.
  31671. *
  31672. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#owner)
  31673. */
  31674. owner: string;
  31675. /**
  31676. * The portal associated with the group.
  31677. *
  31678. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#portal)
  31679. */
  31680. portal: Portal;
  31681. /**
  31682. * A short summary that describes the group.
  31683. *
  31684. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#snippet)
  31685. */
  31686. snippet: string;
  31687. /**
  31688. * User defined tags that describe the group.
  31689. *
  31690. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#tags)
  31691. */
  31692. tags: string[];
  31693. /**
  31694. * The URL to the thumbnail used for the group.
  31695. *
  31696. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#thumbnailUrl)
  31697. */
  31698. readonly thumbnailUrl: string;
  31699. /**
  31700. * The title of the group.
  31701. *
  31702. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#title)
  31703. */
  31704. title: string;
  31705. /**
  31706. * The URL to the group.
  31707. *
  31708. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#url)
  31709. */
  31710. readonly url: string;
  31711. /**
  31712. * The group resource represents a group within the [Portal](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html).
  31713. *
  31714. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html)
  31715. */
  31716. constructor(properties?: PortalGroupProperties);
  31717. /**
  31718. * If present, fetches the group's category schema.
  31719. *
  31720. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#fetchCategorySchema)
  31721. */
  31722. fetchCategorySchema(options?: PortalGroupFetchCategorySchemaOptions): Promise<any[]>;
  31723. /**
  31724. * Fetches the current members of the group.
  31725. *
  31726. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#fetchMembers)
  31727. */
  31728. fetchMembers(options?: PortalGroupFetchMembersOptions): Promise<any>;
  31729. /**
  31730. * Get the URL to the thumbnail image for the group.
  31731. *
  31732. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#getThumbnailUrl)
  31733. */
  31734. getThumbnailUrl(width?: number): string;
  31735. /**
  31736. * Executes a query against the group to return an array of [PortalItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html) objects that match the input query.
  31737. *
  31738. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#queryItems)
  31739. */
  31740. queryItems(queryParams?: PortalQueryParams | PortalQueryParamsProperties, options?: PortalGroupQueryItemsOptions): Promise<PortalQueryResult>;
  31741. }
  31742. /** @deprecated Import the PortalGroup class instead. */
  31743. export type PortalGroupConstructor = typeof PortalGroup;
  31744. interface PortalGroupProperties {
  31745. /**
  31746. * The access privileges on the group which determines who can see and access the group.
  31747. *
  31748. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#access)
  31749. */
  31750. access?: "private" | "org" | "public";
  31751. /**
  31752. * The date the group was created.
  31753. *
  31754. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#created)
  31755. */
  31756. created?: DateProperties;
  31757. /**
  31758. * A detailed description of the group.
  31759. *
  31760. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#description)
  31761. */
  31762. description?: string;
  31763. /**
  31764. * The unique id for the group.
  31765. *
  31766. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#id)
  31767. */
  31768. id?: string;
  31769. /**
  31770. * If set to `true`, then users will not be able to apply to join the group.
  31771. *
  31772. * @default false
  31773. *
  31774. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#isInvitationOnly)
  31775. */
  31776. isInvitationOnly?: boolean;
  31777. /**
  31778. * The date the group was last modified.
  31779. *
  31780. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#modified)
  31781. */
  31782. modified?: DateProperties;
  31783. /**
  31784. * The username of the group's owner.
  31785. *
  31786. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#owner)
  31787. */
  31788. owner?: string;
  31789. /**
  31790. * The portal associated with the group.
  31791. *
  31792. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#portal)
  31793. */
  31794. portal?: PortalProperties;
  31795. /**
  31796. * A short summary that describes the group.
  31797. *
  31798. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#snippet)
  31799. */
  31800. snippet?: string;
  31801. /**
  31802. * User defined tags that describe the group.
  31803. *
  31804. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#tags)
  31805. */
  31806. tags?: string[];
  31807. /**
  31808. * The title of the group.
  31809. *
  31810. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#title)
  31811. */
  31812. title?: string;
  31813. }
  31814. export interface PortalGroupFetchCategorySchemaOptions {
  31815. /**
  31816. * Signal object that can be used to abort the asynchronous task.
  31817. *
  31818. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#fetchCategorySchema)
  31819. */
  31820. signal?: AbortSignal;
  31821. }
  31822. export interface PortalGroupFetchMembersOptions {
  31823. /**
  31824. * Signal object that can be used to abort the asynchronous task.
  31825. *
  31826. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#fetchMembers)
  31827. */
  31828. signal?: AbortSignal;
  31829. }
  31830. export interface PortalGroupQueryItemsOptions {
  31831. /**
  31832. * Signal object that can be used to abort the asynchronous task.
  31833. *
  31834. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalGroup.html#queryItems)
  31835. */
  31836. signal?: AbortSignal;
  31837. }
  31838. export interface PortalItem extends Accessor, Loadable, JSONSupport {
  31839. }
  31840. export class PortalItem {
  31841. /**
  31842. * Indicates the level of access to this item: `private`, `shared`, `org`, or `public`.
  31843. *
  31844. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#access)
  31845. */
  31846. access: "private" | "shared" | "org" | "public";
  31847. /**
  31848. * Information on the source of the item and its copyright status.
  31849. *
  31850. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#accessInformation)
  31851. */
  31852. accessInformation: string;
  31853. /**
  31854. * An authorization string used to access the portal item.
  31855. *
  31856. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#apiKey)
  31857. */
  31858. apiKey: string;
  31859. /**
  31860. * Contains an array of objects containing proxy information for premium platform services.
  31861. *
  31862. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#applicationProxies)
  31863. */
  31864. readonly applicationProxies: PortalItemApplicationProxies[];
  31865. /**
  31866. * Average rating.
  31867. *
  31868. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#avgRating)
  31869. */
  31870. avgRating: number;
  31871. /**
  31872. * An array of organization categories that are set on the item.
  31873. *
  31874. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#categories)
  31875. */
  31876. categories: string[];
  31877. /**
  31878. * The date the item was created.
  31879. *
  31880. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#created)
  31881. */
  31882. created: Date;
  31883. /**
  31884. * The item's locale information (language and country).
  31885. *
  31886. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#culture)
  31887. */
  31888. culture: string;
  31889. /**
  31890. * The detailed description of the item.
  31891. *
  31892. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#description)
  31893. */
  31894. description: string;
  31895. /**
  31896. * The geographic extent, or bounding rectangle, of the item.
  31897. *
  31898. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#extent)
  31899. */
  31900. extent: Extent;
  31901. /**
  31902. * An array of group categories set on the item.
  31903. *
  31904. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#groupCategories)
  31905. */
  31906. groupCategories: string[];
  31907. /**
  31908. * The unique id for the item.
  31909. *
  31910. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#id)
  31911. */
  31912. id: string;
  31913. /**
  31914. * Indicates whether a layer can be created from this item using [Layer.fromPortalItem()](esri-layers-Layer.html#fromPortalItem).
  31915. *
  31916. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#isLayer)
  31917. */
  31918. readonly isLayer: boolean;
  31919. /**
  31920. * Indicates whether an item can be updated and deleted.
  31921. *
  31922. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#itemControl)
  31923. */
  31924. readonly itemControl: "admin" | "update" | "null";
  31925. /**
  31926. * The URL to the [Item page](https://doc.arcgis.com/en/arcgis-online/manage-data/item-details.htm) on the portal.
  31927. *
  31928. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#itemPageUrl)
  31929. */
  31930. readonly itemPageUrl: string;
  31931. /**
  31932. * The URL to the item.
  31933. *
  31934. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#itemUrl)
  31935. */
  31936. readonly itemUrl: string;
  31937. /**
  31938. * Information on license or restrictions related to the item.
  31939. *
  31940. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#licenseInfo)
  31941. */
  31942. licenseInfo: string;
  31943. /**
  31944. * Indicates whether the item's resources have loaded from the portal.
  31945. *
  31946. * @default false
  31947. *
  31948. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#loaded)
  31949. */
  31950. readonly loaded: boolean;
  31951. /**
  31952. * The date the item was last modified.
  31953. *
  31954. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#modified)
  31955. */
  31956. modified: Date;
  31957. /**
  31958. * The name of the item.
  31959. *
  31960. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#name)
  31961. */
  31962. name: string;
  31963. /**
  31964. * Number of comments on the item.
  31965. *
  31966. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#numComments)
  31967. */
  31968. numComments: number;
  31969. /**
  31970. * Number of ratings on the item.
  31971. *
  31972. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#numRatings)
  31973. */
  31974. numRatings: number;
  31975. /**
  31976. * Number of views on the item.
  31977. *
  31978. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#numViews)
  31979. */
  31980. numViews: number;
  31981. /**
  31982. * The username of the user who owns this item.
  31983. *
  31984. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#owner)
  31985. */
  31986. owner: string;
  31987. /**
  31988. * The ID of the folder in which the owner has stored the item.
  31989. *
  31990. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#ownerFolder)
  31991. */
  31992. ownerFolder: string;
  31993. /**
  31994. * The portal that contains the item.
  31995. *
  31996. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#portal)
  31997. */
  31998. portal: Portal;
  31999. /**
  32000. * An array of string URLs.
  32001. *
  32002. * @default null
  32003. *
  32004. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#screenshots)
  32005. */
  32006. screenshots: string[];
  32007. /**
  32008. * The size of the item (in bytes).
  32009. *
  32010. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#size)
  32011. */
  32012. size: number;
  32013. /**
  32014. * A summary description of the item.
  32015. *
  32016. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#snippet)
  32017. */
  32018. snippet: string;
  32019. /**
  32020. * The JSON used to create the property values when the `PortalItem` is loaded.
  32021. *
  32022. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#sourceJSON)
  32023. */
  32024. sourceJSON: any;
  32025. /**
  32026. * User defined tags that describe the item.
  32027. *
  32028. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#tags)
  32029. */
  32030. tags: string[];
  32031. /**
  32032. * The URL to the thumbnail used for the item.
  32033. *
  32034. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#thumbnailUrl)
  32035. */
  32036. readonly thumbnailUrl: string;
  32037. /**
  32038. * The title for the item.
  32039. *
  32040. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#title)
  32041. */
  32042. title: string;
  32043. /**
  32044. * The GIS content type of this item.
  32045. *
  32046. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#type)
  32047. */
  32048. type: string;
  32049. /**
  32050. * Type keywords that describe the type of content of this item.
  32051. *
  32052. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#typeKeywords)
  32053. */
  32054. typeKeywords: string[];
  32055. /**
  32056. * The service URL of this item.
  32057. *
  32058. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#url)
  32059. */
  32060. url: string;
  32061. /**
  32062. * An item (a unit of content) in the Portal.
  32063. *
  32064. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html)
  32065. */
  32066. constructor(properties?: PortalItemProperties);
  32067. /**
  32068. * Adds a rating to an accessible item.
  32069. *
  32070. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#addRating)
  32071. */
  32072. addRating(rating: number | PortalRating): Promise<PortalRating>;
  32073. /**
  32074. * Adds a new [resource](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItemResource.html) to the portal item.
  32075. *
  32076. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#addResource)
  32077. */
  32078. addResource(resource: PortalItemResource, content: Blob, options?: PortalItemAddResourceOptions): Promise<any>;
  32079. /**
  32080. * Creates a clone of this object.
  32081. *
  32082. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#clone)
  32083. */
  32084. clone(): PortalItem;
  32085. /**
  32086. * Deletes a rating for the specified item.
  32087. *
  32088. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#deleteRating)
  32089. */
  32090. deleteRating(): Promise<any>;
  32091. /**
  32092. * Destroys the portal item, and any associated resources, including its associated [portal](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#portal).
  32093. *
  32094. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#destroy)
  32095. */
  32096. destroy(): void;
  32097. /**
  32098. * Requests a PortalItem in the format specified in `responseType`.
  32099. *
  32100. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#fetchData)
  32101. */
  32102. fetchData(responseType?: "json" | "xml" | "text" | "blob" | "array-buffer" | "document", options?: PortalItemFetchDataOptions): Promise<any>;
  32103. /**
  32104. * Returns the rating (if any) given to the item.
  32105. *
  32106. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#fetchRating)
  32107. */
  32108. fetchRating(options?: PortalItemFetchRatingOptions): Promise<PortalRating>;
  32109. /**
  32110. * Gets all the related items of a certain relationship type for the portal item.
  32111. *
  32112. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#fetchRelatedItems)
  32113. */
  32114. fetchRelatedItems(params: PortalItemFetchRelatedItemsParams, options?: PortalItemFetchRelatedItemsOptions): Promise<PortalItem[]>;
  32115. /**
  32116. * Retrieves references to all the [portal item resources](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItemResource.html).
  32117. *
  32118. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#fetchResources)
  32119. */
  32120. fetchResources(params?: FetchResourcesParams, options?: PortalItemFetchResourcesOptions): Promise<FetchResourcesResult>;
  32121. /**
  32122. * Get the URL to the thumbnail image for the item.
  32123. *
  32124. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#getThumbnailUrl)
  32125. */
  32126. getThumbnailUrl(width?: number): string;
  32127. /**
  32128. * Reloads a loaded item's properties from the portal.
  32129. *
  32130. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#reload)
  32131. */
  32132. reload(): Promise<PortalItem>;
  32133. /**
  32134. * Removes all the [resources](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItemResource.html) from the portal item.
  32135. *
  32136. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#removeAllResources)
  32137. */
  32138. removeAllResources(options?: PortalItemRemoveAllResourcesOptions): Promise<any>;
  32139. /**
  32140. * Removes a [resource](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItemResource.html) from the portal item.
  32141. *
  32142. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#removeResource)
  32143. */
  32144. removeResource(resource: PortalItemResource, options?: PortalItemRemoveResourceOptions): Promise<any>;
  32145. /**
  32146. * Updates the item's properties to the portal, and optionally its data.
  32147. *
  32148. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#update)
  32149. */
  32150. update(params?: PortalItemUpdateParams): Promise<PortalItem>;
  32151. /**
  32152. * Updates the item's thumbnail on the portal.
  32153. *
  32154. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#updateThumbnail)
  32155. */
  32156. updateThumbnail(params: PortalItemUpdateThumbnailParams): Promise<PortalItem>;
  32157. static fromJSON(json: any): PortalItem;
  32158. }
  32159. /** @deprecated Import the PortalItem class instead. */
  32160. export type PortalItemConstructor = typeof PortalItem;
  32161. interface PortalItemProperties extends LoadableProperties {
  32162. /**
  32163. * Indicates the level of access to this item: `private`, `shared`, `org`, or `public`.
  32164. *
  32165. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#access)
  32166. */
  32167. access?: "private" | "shared" | "org" | "public";
  32168. /**
  32169. * Information on the source of the item and its copyright status.
  32170. *
  32171. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#accessInformation)
  32172. */
  32173. accessInformation?: string;
  32174. /**
  32175. * An authorization string used to access the portal item.
  32176. *
  32177. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#apiKey)
  32178. */
  32179. apiKey?: string;
  32180. /**
  32181. * Average rating.
  32182. *
  32183. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#avgRating)
  32184. */
  32185. avgRating?: number;
  32186. /**
  32187. * An array of organization categories that are set on the item.
  32188. *
  32189. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#categories)
  32190. */
  32191. categories?: string[];
  32192. /**
  32193. * The date the item was created.
  32194. *
  32195. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#created)
  32196. */
  32197. created?: DateProperties;
  32198. /**
  32199. * The item's locale information (language and country).
  32200. *
  32201. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#culture)
  32202. */
  32203. culture?: string;
  32204. /**
  32205. * The detailed description of the item.
  32206. *
  32207. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#description)
  32208. */
  32209. description?: string;
  32210. /**
  32211. * The geographic extent, or bounding rectangle, of the item.
  32212. *
  32213. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#extent)
  32214. */
  32215. extent?: ExtentProperties;
  32216. /**
  32217. * An array of group categories set on the item.
  32218. *
  32219. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#groupCategories)
  32220. */
  32221. groupCategories?: string[];
  32222. /**
  32223. * The unique id for the item.
  32224. *
  32225. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#id)
  32226. */
  32227. id?: string;
  32228. /**
  32229. * Information on license or restrictions related to the item.
  32230. *
  32231. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#licenseInfo)
  32232. */
  32233. licenseInfo?: string;
  32234. /**
  32235. * The date the item was last modified.
  32236. *
  32237. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#modified)
  32238. */
  32239. modified?: DateProperties;
  32240. /**
  32241. * The name of the item.
  32242. *
  32243. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#name)
  32244. */
  32245. name?: string;
  32246. /**
  32247. * Number of comments on the item.
  32248. *
  32249. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#numComments)
  32250. */
  32251. numComments?: number;
  32252. /**
  32253. * Number of ratings on the item.
  32254. *
  32255. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#numRatings)
  32256. */
  32257. numRatings?: number;
  32258. /**
  32259. * Number of views on the item.
  32260. *
  32261. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#numViews)
  32262. */
  32263. numViews?: number;
  32264. /**
  32265. * The username of the user who owns this item.
  32266. *
  32267. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#owner)
  32268. */
  32269. owner?: string;
  32270. /**
  32271. * The ID of the folder in which the owner has stored the item.
  32272. *
  32273. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#ownerFolder)
  32274. */
  32275. ownerFolder?: string;
  32276. /**
  32277. * The portal that contains the item.
  32278. *
  32279. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#portal)
  32280. */
  32281. portal?: PortalProperties;
  32282. /**
  32283. * An array of string URLs.
  32284. *
  32285. * @default null
  32286. *
  32287. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#screenshots)
  32288. */
  32289. screenshots?: string[];
  32290. /**
  32291. * The size of the item (in bytes).
  32292. *
  32293. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#size)
  32294. */
  32295. size?: number;
  32296. /**
  32297. * A summary description of the item.
  32298. *
  32299. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#snippet)
  32300. */
  32301. snippet?: string;
  32302. /**
  32303. * The JSON used to create the property values when the `PortalItem` is loaded.
  32304. *
  32305. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#sourceJSON)
  32306. */
  32307. sourceJSON?: any;
  32308. /**
  32309. * User defined tags that describe the item.
  32310. *
  32311. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#tags)
  32312. */
  32313. tags?: string[];
  32314. /**
  32315. * The title for the item.
  32316. *
  32317. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#title)
  32318. */
  32319. title?: string;
  32320. /**
  32321. * The GIS content type of this item.
  32322. *
  32323. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#type)
  32324. */
  32325. type?: string;
  32326. /**
  32327. * Type keywords that describe the type of content of this item.
  32328. *
  32329. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#typeKeywords)
  32330. */
  32331. typeKeywords?: string[];
  32332. /**
  32333. * The service URL of this item.
  32334. *
  32335. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#url)
  32336. */
  32337. url?: string;
  32338. }
  32339. /**
  32340. * A resource reference returned in the result of [fetchResources()](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#fetchResources).
  32341. *
  32342. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#FetchResource)
  32343. */
  32344. export interface FetchResource {
  32345. /**
  32346. * The fetched resources.
  32347. *
  32348. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#FetchResource)
  32349. */
  32350. resource: PortalItemResource;
  32351. /**
  32352. * When the resource was created.
  32353. *
  32354. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#FetchResource)
  32355. */
  32356. created: Date;
  32357. /**
  32358. * The size of the resource in bytes.
  32359. *
  32360. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#FetchResource)
  32361. */
  32362. size: number;
  32363. }
  32364. /**
  32365. * Parameters used when fetching portal item resources using [fetchResources()](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#fetchResources).
  32366. *
  32367. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#FetchResourcesParams)
  32368. */
  32369. export interface FetchResourcesParams {
  32370. /**
  32371. * The maximum number of results to be included in the result set response.
  32372. *
  32373. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#FetchResourcesParams)
  32374. */
  32375. num?: number;
  32376. /**
  32377. * The index of the first entry in the result set response.
  32378. *
  32379. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#FetchResourcesParams)
  32380. */
  32381. start?: number;
  32382. /**
  32383. * The order in which to sort the results.
  32384. *
  32385. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#FetchResourcesParams)
  32386. */
  32387. sortOrder?: "asc" | "desc";
  32388. /**
  32389. * A field to sort the results.
  32390. *
  32391. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#FetchResourcesParams)
  32392. */
  32393. sortField?: "created" | "size" | "type";
  32394. }
  32395. /**
  32396. * Object returned when [fetchResources()](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#fetchResources) promise resolves.
  32397. *
  32398. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#FetchResourcesResult)
  32399. */
  32400. export interface FetchResourcesResult {
  32401. /**
  32402. * The fetched resources.
  32403. *
  32404. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#FetchResourcesResult)
  32405. */
  32406. resources: FetchResource[];
  32407. /**
  32408. * The next entry index if the current result set doesn't contain all results.
  32409. *
  32410. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#FetchResourcesResult)
  32411. */
  32412. nextStart: number;
  32413. /**
  32414. * The total number of results.
  32415. *
  32416. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#FetchResourcesResult)
  32417. */
  32418. total: number;
  32419. }
  32420. export interface PortalItemAddResourceOptions {
  32421. /**
  32422. * Indicates the level of access to the resource.
  32423. *
  32424. * @default "inherit"
  32425. *
  32426. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#addResource)
  32427. */
  32428. access?: "inherit" | "private";
  32429. /**
  32430. * Signal object that can be used to abort the asynchronous task.
  32431. *
  32432. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#addResource)
  32433. */
  32434. signal?: AbortSignal;
  32435. }
  32436. export interface PortalItemApplicationProxies {
  32437. /**
  32438. * The URL of the premium map service layer.
  32439. *
  32440. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#applicationProxies)
  32441. */
  32442. sourceUrl: string;
  32443. /**
  32444. * The proxy URL for the source URL.
  32445. *
  32446. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#applicationProxies)
  32447. */
  32448. proxyUrl: string;
  32449. /**
  32450. * The proxy ID registered in ArcGIS Online or ArcGIS Enterprise Portal.
  32451. *
  32452. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#applicationProxies)
  32453. */
  32454. proxyId: string;
  32455. }
  32456. export interface PortalItemFetchDataOptions {
  32457. /**
  32458. * Signal object that can be used to abort the asynchronous task.
  32459. *
  32460. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#fetchData)
  32461. */
  32462. signal?: AbortSignal;
  32463. }
  32464. export interface PortalItemFetchRatingOptions {
  32465. /**
  32466. * Signal object that can be used to abort the asynchronous task.
  32467. *
  32468. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#fetchRating)
  32469. */
  32470. signal?: AbortSignal;
  32471. }
  32472. export interface PortalItemFetchRelatedItemsOptions {
  32473. /**
  32474. * Signal object that can be used to abort the asynchronous task.
  32475. *
  32476. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#fetchRelatedItems)
  32477. */
  32478. signal?: AbortSignal;
  32479. }
  32480. export interface PortalItemFetchRelatedItemsParams {
  32481. /**
  32482. * The type of relationship between the two items.
  32483. *
  32484. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#fetchRelatedItems)
  32485. */
  32486. relationshipType: string;
  32487. /**
  32488. * The direction of the relationship.
  32489. *
  32490. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#fetchRelatedItems)
  32491. */
  32492. direction: "forward" | "reverse";
  32493. }
  32494. export interface PortalItemFetchResourcesOptions {
  32495. /**
  32496. * Signal object that can be used to abort the asynchronous task.
  32497. *
  32498. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#fetchResources)
  32499. */
  32500. signal?: AbortSignal;
  32501. }
  32502. export interface PortalItemRemoveAllResourcesOptions {
  32503. /**
  32504. * Signal object that can be used to abort the asynchronous task.
  32505. *
  32506. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#removeAllResources)
  32507. */
  32508. signal?: AbortSignal;
  32509. }
  32510. export interface PortalItemRemoveResourceOptions {
  32511. /**
  32512. * Signal object that can be used to abort the asynchronous task.
  32513. *
  32514. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#removeResource)
  32515. */
  32516. signal?: AbortSignal;
  32517. }
  32518. export interface PortalItemUpdateParams {
  32519. /**
  32520. * **Optional**.
  32521. *
  32522. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#update)
  32523. */
  32524. data?: string | any;
  32525. }
  32526. export interface PortalItemUpdateThumbnailParams {
  32527. /**
  32528. * A URL, Data URI, Blob, or File.
  32529. *
  32530. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#updateThumbnail)
  32531. */
  32532. thumbnail: Blob | string;
  32533. /**
  32534. * The file name used for the thumbnail in [thumbnailUrl](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#thumbnailUrl).
  32535. *
  32536. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html#updateThumbnail)
  32537. */
  32538. filename?: string;
  32539. }
  32540. export class PortalItemResource extends Accessor {
  32541. /**
  32542. * Path of the resource relative to `{ITEM}/resources/`.
  32543. *
  32544. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItemResource.html#path)
  32545. */
  32546. path: string;
  32547. /**
  32548. * The [portal item](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html) that owns the resource.
  32549. *
  32550. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItemResource.html#portalItem)
  32551. */
  32552. portalItem: PortalItem;
  32553. /**
  32554. * The absolute url to the item resource.
  32555. *
  32556. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItemResource.html#url)
  32557. */
  32558. readonly url: string;
  32559. /**
  32560. * A reference to a portal item resource.
  32561. *
  32562. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItemResource.html)
  32563. */
  32564. constructor(properties?: PortalItemResourceProperties);
  32565. /**
  32566. * Requests the PortalItemResource data in the format specified for the `responseType`.
  32567. *
  32568. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItemResource.html#fetch)
  32569. */
  32570. fetch(responseType?: "json" | "xml" | "text" | "blob" | "array-buffer" | "document", options?: PortalItemResourceFetchOptions): Promise<any>;
  32571. /**
  32572. * Updates an existing resource with new content.
  32573. *
  32574. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItemResource.html#update)
  32575. */
  32576. update(content: Blob, options?: PortalItemResourceUpdateOptions): Promise<any>;
  32577. }
  32578. /** @deprecated Import the PortalItemResource class instead. */
  32579. export type PortalItemResourceConstructor = typeof PortalItemResource;
  32580. interface PortalItemResourceProperties {
  32581. /**
  32582. * Path of the resource relative to `{ITEM}/resources/`.
  32583. *
  32584. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItemResource.html#path)
  32585. */
  32586. path?: string;
  32587. /**
  32588. * The [portal item](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html) that owns the resource.
  32589. *
  32590. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItemResource.html#portalItem)
  32591. */
  32592. portalItem?: PortalItemProperties;
  32593. }
  32594. export interface PortalItemResourceFetchOptions {
  32595. /**
  32596. * Signal object that can be used to abort the asynchronous task.
  32597. *
  32598. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItemResource.html#fetch)
  32599. */
  32600. signal?: AbortSignal;
  32601. }
  32602. export interface PortalItemResourceUpdateOptions {
  32603. /**
  32604. * Indicates the level of access to the resource.
  32605. *
  32606. * @default "inherit"
  32607. *
  32608. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItemResource.html#update)
  32609. */
  32610. access?: "inherit" | "private";
  32611. /**
  32612. * Signal object that can be used to abort the asynchronous task.
  32613. *
  32614. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItemResource.html#update)
  32615. */
  32616. signal?: AbortSignal;
  32617. }
  32618. export class PortalQueryParams extends Accessor {
  32619. /**
  32620. * An array of categories stored within the item.
  32621. *
  32622. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryParams.html#categories)
  32623. */
  32624. categories: (string | string[])[];
  32625. /**
  32626. * Only relevant when querying for [PortalItems](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html).
  32627. *
  32628. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryParams.html#extent)
  32629. */
  32630. extent: Extent;
  32631. /**
  32632. * Structured filter to use instead of the [query](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryParams.html#query) property.
  32633. *
  32634. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryParams.html#filter)
  32635. */
  32636. filter: string;
  32637. /**
  32638. * The maximum number of results to be included in the [result](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryResult.html#results) set response.
  32639. *
  32640. * @default 10
  32641. *
  32642. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryParams.html#num)
  32643. */
  32644. num: number;
  32645. /**
  32646. * The query string used for the search.
  32647. *
  32648. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryParams.html#query)
  32649. */
  32650. query: string;
  32651. /**
  32652. * A comma-delimited list of fields to sort.
  32653. *
  32654. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryParams.html#sortField)
  32655. */
  32656. sortField: | "title"
  32657. | "uploaded"
  32658. | "modified"
  32659. | "username"
  32660. | "created"
  32661. | "type"
  32662. | "owner"
  32663. | "avg-rating"
  32664. | "num-ratings"
  32665. | "num-comments"
  32666. | "num-views";
  32667. /**
  32668. * The order in which to sort the results.
  32669. *
  32670. * @default asc
  32671. *
  32672. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryParams.html#sortOrder)
  32673. */
  32674. sortOrder: "asc" | "desc";
  32675. /**
  32676. * The index of the first entry in the result set response.
  32677. *
  32678. * @default 1
  32679. *
  32680. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryParams.html#start)
  32681. */
  32682. start: number;
  32683. /**
  32684. * The parameters used to perform a query for Items, Groups, and Users within a [Portal](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html).
  32685. *
  32686. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryParams.html)
  32687. */
  32688. constructor(properties?: PortalQueryParamsProperties);
  32689. /**
  32690. * Creates a deep clone of the instance of PortalQueryParams that calls this method.
  32691. *
  32692. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryParams.html#clone)
  32693. */
  32694. clone(): PortalQueryParams;
  32695. }
  32696. /** @deprecated Import the PortalQueryParams class instead. */
  32697. export type PortalQueryParamsConstructor = typeof PortalQueryParams;
  32698. interface PortalQueryParamsProperties {
  32699. /**
  32700. * An array of categories stored within the item.
  32701. *
  32702. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryParams.html#categories)
  32703. */
  32704. categories?: (string | string[])[];
  32705. /**
  32706. * Only relevant when querying for [PortalItems](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html).
  32707. *
  32708. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryParams.html#extent)
  32709. */
  32710. extent?: ExtentProperties;
  32711. /**
  32712. * Structured filter to use instead of the [query](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryParams.html#query) property.
  32713. *
  32714. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryParams.html#filter)
  32715. */
  32716. filter?: string;
  32717. /**
  32718. * The maximum number of results to be included in the [result](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryResult.html#results) set response.
  32719. *
  32720. * @default 10
  32721. *
  32722. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryParams.html#num)
  32723. */
  32724. num?: number;
  32725. /**
  32726. * The query string used for the search.
  32727. *
  32728. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryParams.html#query)
  32729. */
  32730. query?: string;
  32731. /**
  32732. * A comma-delimited list of fields to sort.
  32733. *
  32734. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryParams.html#sortField)
  32735. */
  32736. sortField?: | "title"
  32737. | "uploaded"
  32738. | "modified"
  32739. | "username"
  32740. | "created"
  32741. | "type"
  32742. | "owner"
  32743. | "avg-rating"
  32744. | "num-ratings"
  32745. | "num-comments"
  32746. | "num-views";
  32747. /**
  32748. * The order in which to sort the results.
  32749. *
  32750. * @default asc
  32751. *
  32752. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryParams.html#sortOrder)
  32753. */
  32754. sortOrder?: "asc" | "desc";
  32755. /**
  32756. * The index of the first entry in the result set response.
  32757. *
  32758. * @default 1
  32759. *
  32760. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryParams.html#start)
  32761. */
  32762. start?: number;
  32763. }
  32764. export class PortalQueryResult extends Accessor {
  32765. /**
  32766. * The query parameters for the next set of results.
  32767. *
  32768. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryResult.html#nextQueryParams)
  32769. */
  32770. nextQueryParams: PortalQueryParams;
  32771. /**
  32772. * The query parameters for the first set of results.
  32773. *
  32774. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryResult.html#queryParams)
  32775. */
  32776. queryParams: PortalQueryParams;
  32777. /**
  32778. * An array of result item objects.
  32779. *
  32780. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryResult.html#results)
  32781. */
  32782. results: any[];
  32783. /**
  32784. * The total number of results.
  32785. *
  32786. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryResult.html#total)
  32787. */
  32788. total: number;
  32789. /**
  32790. * Represents the result object returned from a portal query.
  32791. *
  32792. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryResult.html)
  32793. */
  32794. constructor(properties?: PortalQueryResultProperties);
  32795. }
  32796. /** @deprecated Import the PortalQueryResult class instead. */
  32797. export type PortalQueryResultConstructor = typeof PortalQueryResult;
  32798. interface PortalQueryResultProperties {
  32799. /**
  32800. * The query parameters for the next set of results.
  32801. *
  32802. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryResult.html#nextQueryParams)
  32803. */
  32804. nextQueryParams?: PortalQueryParamsProperties;
  32805. /**
  32806. * The query parameters for the first set of results.
  32807. *
  32808. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryResult.html#queryParams)
  32809. */
  32810. queryParams?: PortalQueryParamsProperties;
  32811. /**
  32812. * An array of result item objects.
  32813. *
  32814. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryResult.html#results)
  32815. */
  32816. results?: any[];
  32817. /**
  32818. * The total number of results.
  32819. *
  32820. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryResult.html#total)
  32821. */
  32822. total?: number;
  32823. }
  32824. export class PortalRating extends Accessor {
  32825. /**
  32826. * Date the rating was added to the item.
  32827. *
  32828. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalRating.html#created)
  32829. */
  32830. created: Date;
  32831. /**
  32832. * A rating between 1.0 and 5.0 for the item.
  32833. *
  32834. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalRating.html#rating)
  32835. */
  32836. rating: number;
  32837. /**
  32838. * PortalRating provides details about the rating associated with a [Portal item](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html).
  32839. *
  32840. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalRating.html)
  32841. */
  32842. constructor(properties?: PortalRatingProperties);
  32843. }
  32844. /** @deprecated Import the PortalRating class instead. */
  32845. export type PortalRatingConstructor = typeof PortalRating;
  32846. interface PortalRatingProperties {
  32847. /**
  32848. * Date the rating was added to the item.
  32849. *
  32850. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalRating.html#created)
  32851. */
  32852. created?: DateProperties;
  32853. /**
  32854. * A rating between 1.0 and 5.0 for the item.
  32855. *
  32856. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalRating.html#rating)
  32857. */
  32858. rating?: number;
  32859. }
  32860. export class PortalUser extends Accessor {
  32861. /**
  32862. * Indicates the level of access of the user.
  32863. *
  32864. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#access)
  32865. */
  32866. access: "private" | "org" | "public";
  32867. /**
  32868. * The date the user was created.
  32869. *
  32870. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#created)
  32871. */
  32872. created: Date;
  32873. /**
  32874. * The culture information for the user.
  32875. *
  32876. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#culture)
  32877. */
  32878. culture: string;
  32879. /**
  32880. * A description of the user.
  32881. *
  32882. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#description)
  32883. */
  32884. description: string;
  32885. /**
  32886. * The user's e-mail address.
  32887. *
  32888. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#email)
  32889. */
  32890. email: string;
  32891. /**
  32892. * The user's full name.
  32893. *
  32894. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#fullName)
  32895. */
  32896. fullName: string;
  32897. /**
  32898. * The date the user was last modified.
  32899. *
  32900. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#modified)
  32901. */
  32902. modified: Date;
  32903. /**
  32904. * The ID of the organization the user belongs to.
  32905. *
  32906. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#orgId)
  32907. */
  32908. orgId: string;
  32909. /**
  32910. * The portal associated with the user.
  32911. *
  32912. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#portal)
  32913. */
  32914. portal: Portal;
  32915. /**
  32916. * The user's preferred view for content, either web or GIS.
  32917. *
  32918. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#preferredView)
  32919. */
  32920. preferredView: string;
  32921. /**
  32922. * The user preferred region, used to set the featured maps on the home page, content in the gallery, and the default extent of new maps in the Viewer.
  32923. *
  32924. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#region)
  32925. */
  32926. region: string;
  32927. /**
  32928. * Defines the user's role in the organization.
  32929. *
  32930. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#role)
  32931. */
  32932. role: "org_admin" | "org_publisher" | "org_user";
  32933. /**
  32934. * The ID of the user's role.
  32935. *
  32936. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#roleId)
  32937. */
  32938. roleId: string;
  32939. /**
  32940. * The JSON used to create the property values when the `PortalUser` is created.
  32941. *
  32942. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#sourceJSON)
  32943. */
  32944. sourceJSON: any;
  32945. /**
  32946. * The URL to the thumbnail image for the user.
  32947. *
  32948. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#thumbnailUrl)
  32949. */
  32950. readonly thumbnailUrl: string;
  32951. /**
  32952. * The user's personal units of measure setting.
  32953. *
  32954. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#units)
  32955. */
  32956. units: "english" | "metric";
  32957. /**
  32958. * The URL for the user's content.
  32959. *
  32960. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#userContentUrl)
  32961. */
  32962. readonly userContentUrl: string;
  32963. /**
  32964. * The username of the user.
  32965. *
  32966. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#username)
  32967. */
  32968. username: string;
  32969. /**
  32970. * Represents a registered user of the [Portal](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-Portal.html).
  32971. *
  32972. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html)
  32973. */
  32974. constructor(properties?: PortalUserProperties);
  32975. /**
  32976. * Adds an item to the user's portal content.
  32977. *
  32978. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#addItem)
  32979. */
  32980. addItem(params: PortalUserAddItemParams): Promise<PortalItem>;
  32981. /**
  32982. * Deletes an item from the user's portal content.
  32983. *
  32984. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#deleteItem)
  32985. */
  32986. deleteItem(item: PortalItem): Promise<any>;
  32987. /**
  32988. * Deletes items from the user's portal content.
  32989. *
  32990. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#deleteItems)
  32991. */
  32992. deleteItems(items: PortalItem[]): Promise<any>;
  32993. /**
  32994. * Fetches all of the user's folders used to organize portal content.
  32995. *
  32996. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#fetchFolders)
  32997. */
  32998. fetchFolders(): Promise<PortalFolder[]>;
  32999. /**
  33000. * Fetches all the groups that the portal user has permission to access.
  33001. *
  33002. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#fetchGroups)
  33003. */
  33004. fetchGroups(): Promise<PortalGroup[]>;
  33005. /**
  33006. * Retrieves all the items in the specified folder.
  33007. *
  33008. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#fetchItems)
  33009. */
  33010. fetchItems(params?: PortalUserFetchItemsParams): Promise<any>;
  33011. /**
  33012. * Fetches the tag objects that have been created by the portal user.
  33013. *
  33014. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#fetchTags)
  33015. */
  33016. fetchTags(): Promise<any[]>;
  33017. /**
  33018. * Get the URL to the thumbnail image for the user.
  33019. *
  33020. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#getThumbnailUrl)
  33021. */
  33022. getThumbnailUrl(width?: number): string;
  33023. /**
  33024. * Executes a query against the user's favorite group to return an array of [PortalItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html) objects that match the input query.
  33025. *
  33026. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#queryFavorites)
  33027. */
  33028. queryFavorites(queryParams?: PortalQueryParams): Promise<PortalQueryResult>;
  33029. }
  33030. /** @deprecated Import the PortalUser class instead. */
  33031. export type PortalUserConstructor = typeof PortalUser;
  33032. interface PortalUserProperties {
  33033. /**
  33034. * Indicates the level of access of the user.
  33035. *
  33036. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#access)
  33037. */
  33038. access?: "private" | "org" | "public";
  33039. /**
  33040. * The date the user was created.
  33041. *
  33042. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#created)
  33043. */
  33044. created?: DateProperties;
  33045. /**
  33046. * The culture information for the user.
  33047. *
  33048. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#culture)
  33049. */
  33050. culture?: string;
  33051. /**
  33052. * A description of the user.
  33053. *
  33054. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#description)
  33055. */
  33056. description?: string;
  33057. /**
  33058. * The user's e-mail address.
  33059. *
  33060. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#email)
  33061. */
  33062. email?: string;
  33063. /**
  33064. * The user's full name.
  33065. *
  33066. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#fullName)
  33067. */
  33068. fullName?: string;
  33069. /**
  33070. * The date the user was last modified.
  33071. *
  33072. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#modified)
  33073. */
  33074. modified?: DateProperties;
  33075. /**
  33076. * The ID of the organization the user belongs to.
  33077. *
  33078. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#orgId)
  33079. */
  33080. orgId?: string;
  33081. /**
  33082. * The portal associated with the user.
  33083. *
  33084. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#portal)
  33085. */
  33086. portal?: PortalProperties;
  33087. /**
  33088. * The user's preferred view for content, either web or GIS.
  33089. *
  33090. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#preferredView)
  33091. */
  33092. preferredView?: string;
  33093. /**
  33094. * The user preferred region, used to set the featured maps on the home page, content in the gallery, and the default extent of new maps in the Viewer.
  33095. *
  33096. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#region)
  33097. */
  33098. region?: string;
  33099. /**
  33100. * Defines the user's role in the organization.
  33101. *
  33102. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#role)
  33103. */
  33104. role?: "org_admin" | "org_publisher" | "org_user";
  33105. /**
  33106. * The ID of the user's role.
  33107. *
  33108. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#roleId)
  33109. */
  33110. roleId?: string;
  33111. /**
  33112. * The JSON used to create the property values when the `PortalUser` is created.
  33113. *
  33114. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#sourceJSON)
  33115. */
  33116. sourceJSON?: any;
  33117. /**
  33118. * The user's personal units of measure setting.
  33119. *
  33120. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#units)
  33121. */
  33122. units?: "english" | "metric";
  33123. /**
  33124. * The username of the user.
  33125. *
  33126. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#username)
  33127. */
  33128. username?: string;
  33129. }
  33130. export interface PortalUserAddItemParams {
  33131. /**
  33132. * The item to add to the user's content.
  33133. *
  33134. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#addItem)
  33135. */
  33136. item: PortalItem;
  33137. /**
  33138. * The component used to stream the data represented by the item to the client.
  33139. *
  33140. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#addItem)
  33141. */
  33142. data?: string | any;
  33143. /**
  33144. * The portal folder in which to store the item.
  33145. *
  33146. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#addItem)
  33147. */
  33148. folder?: string | PortalFolder;
  33149. }
  33150. export interface PortalUserFetchItemsParams {
  33151. /**
  33152. * The folder to retrieve items from.
  33153. *
  33154. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#fetchItems)
  33155. */
  33156. folder?: PortalFolder;
  33157. /**
  33158. * The maximum number of results to be included in the result set response.
  33159. *
  33160. * @default 10
  33161. *
  33162. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#fetchItems)
  33163. */
  33164. num?: number;
  33165. /**
  33166. * A comma-delimited list of fields to sort by.
  33167. *
  33168. * @default created
  33169. *
  33170. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#fetchItems)
  33171. */
  33172. sortField?: string;
  33173. /**
  33174. * The order in which to sort the results.
  33175. *
  33176. * @default asc
  33177. *
  33178. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#fetchItems)
  33179. */
  33180. sortOrder?: string;
  33181. /**
  33182. * The index of the first entry in the result set response.
  33183. *
  33184. * @default 1
  33185. *
  33186. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalUser.html#fetchItems)
  33187. */
  33188. start?: number;
  33189. }
  33190. /**
  33191. * A convenience module for importing renderer classes that can be used to render [ImageryLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html) when developing with [TypeScript](https://developers.arcgis.com/javascript/latest/typescript-setup/).
  33192. *
  33193. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rasterRenderers.html)
  33194. */
  33195. namespace rasterRenderers {
  33196. /**
  33197. * FlowRenderer.
  33198. *
  33199. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rasterRenderers.html#FlowRenderer)
  33200. */
  33201. export type FlowRenderer = __esri.FlowRenderer;
  33202. export const FlowRenderer: typeof __esri.FlowRenderer;
  33203. /**
  33204. * ClassBreaksRenderer.
  33205. *
  33206. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rasterRenderers.html#ClassBreaksRenderer)
  33207. */
  33208. export type ClassBreaksRenderer = __esri.ClassBreaksRenderer;
  33209. export const ClassBreaksRenderer: typeof __esri.ClassBreaksRenderer;
  33210. /**
  33211. * UniqueValueRenderer.
  33212. *
  33213. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rasterRenderers.html#UniqueValueRenderer)
  33214. */
  33215. export type UniqueValueRenderer = __esri.UniqueValueRenderer;
  33216. export const UniqueValueRenderer: typeof __esri.UniqueValueRenderer;
  33217. /**
  33218. * RasterColormapRenderer.
  33219. *
  33220. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rasterRenderers.html#RasterColormapRenderer)
  33221. */
  33222. export type RasterColormapRenderer = __esri.RasterColormapRenderer;
  33223. export const RasterColormapRenderer: typeof __esri.RasterColormapRenderer;
  33224. /**
  33225. * RasterStretchRenderer.
  33226. *
  33227. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rasterRenderers.html#RasterStretchRenderer)
  33228. */
  33229. export type RasterStretchRenderer = __esri.RasterStretchRenderer;
  33230. export const RasterStretchRenderer: typeof __esri.RasterStretchRenderer;
  33231. /**
  33232. * VectorFieldRenderer.
  33233. *
  33234. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rasterRenderers.html#VectorFieldRenderer)
  33235. */
  33236. export type VectorFieldRenderer = __esri.VectorFieldRenderer;
  33237. export const VectorFieldRenderer: typeof __esri.VectorFieldRenderer;
  33238. /**
  33239. * RasterShadedReliefRenderer.
  33240. *
  33241. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rasterRenderers.html#RasterShadedReliefRenderer)
  33242. */
  33243. export type RasterShadedReliefRenderer = __esri.RasterShadedReliefRenderer;
  33244. export const RasterShadedReliefRenderer: typeof __esri.RasterShadedReliefRenderer;
  33245. }
  33246. /**
  33247. * ClassBreaksRenderer.
  33248. *
  33249. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rasterRenderers.html#ClassBreaksRenderer)
  33250. */
  33251. export type rasterRenderersClassBreaksRenderer = ClassBreaksRenderer;
  33252. /**
  33253. * FlowRenderer.
  33254. *
  33255. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rasterRenderers.html#FlowRenderer)
  33256. */
  33257. export type rasterRenderersFlowRenderer = FlowRenderer;
  33258. /**
  33259. * RasterColormapRenderer.
  33260. *
  33261. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rasterRenderers.html#RasterColormapRenderer)
  33262. */
  33263. export type rasterRenderersRasterColormapRenderer = RasterColormapRenderer;
  33264. /**
  33265. * RasterShadedReliefRenderer.
  33266. *
  33267. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rasterRenderers.html#RasterShadedReliefRenderer)
  33268. */
  33269. export type rasterRenderersRasterShadedReliefRenderer = RasterShadedReliefRenderer;
  33270. /**
  33271. * RasterStretchRenderer.
  33272. *
  33273. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rasterRenderers.html#RasterStretchRenderer)
  33274. */
  33275. export type rasterRenderersRasterStretchRenderer = RasterStretchRenderer;
  33276. /**
  33277. * UniqueValueRenderer.
  33278. *
  33279. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rasterRenderers.html#UniqueValueRenderer)
  33280. */
  33281. export type rasterRenderersUniqueValueRenderer = UniqueValueRenderer;
  33282. /**
  33283. * VectorFieldRenderer.
  33284. *
  33285. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rasterRenderers.html#VectorFieldRenderer)
  33286. */
  33287. export type rasterRenderersVectorFieldRenderer = VectorFieldRenderer;
  33288. /**
  33289. * A convenience module for importing [Renderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-Renderer.html) classes when developing with [TypeScript](https://developers.arcgis.com/javascript/latest/typescript-setup/).
  33290. *
  33291. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers.html)
  33292. */
  33293. namespace renderers {
  33294. /**
  33295. * DictionaryRenderer.
  33296. *
  33297. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers.html#DictionaryRenderer)
  33298. */
  33299. export type DictionaryRenderer = __esri.DictionaryRenderer;
  33300. export const DictionaryRenderer: typeof __esri.DictionaryRenderer;
  33301. /**
  33302. * SimpleRenderer.
  33303. *
  33304. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers.html#SimpleRenderer)
  33305. */
  33306. export type SimpleRenderer = __esri.SimpleRenderer;
  33307. export const SimpleRenderer: typeof __esri.SimpleRenderer;
  33308. /**
  33309. * ClassBreaksRenderer.
  33310. *
  33311. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers.html#ClassBreaksRenderer)
  33312. */
  33313. export type ClassBreaksRenderer = __esri.ClassBreaksRenderer;
  33314. export const ClassBreaksRenderer: typeof __esri.ClassBreaksRenderer;
  33315. /**
  33316. * UniqueValueRenderer.
  33317. *
  33318. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers.html#UniqueValueRenderer)
  33319. */
  33320. export type UniqueValueRenderer = __esri.UniqueValueRenderer;
  33321. export const UniqueValueRenderer: typeof __esri.UniqueValueRenderer;
  33322. /**
  33323. * DotDensityRenderer.
  33324. *
  33325. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers.html#DotDensityRenderer)
  33326. */
  33327. export type DotDensityRenderer = __esri.DotDensityRenderer;
  33328. export const DotDensityRenderer: typeof __esri.DotDensityRenderer;
  33329. /**
  33330. * PieChartRenderer.
  33331. *
  33332. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers.html#PieChartRenderer)
  33333. */
  33334. export type PieChartRenderer = __esri.PieChartRenderer;
  33335. export const PieChartRenderer: typeof __esri.PieChartRenderer;
  33336. /**
  33337. * RendererWithVisualVariables.
  33338. *
  33339. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers.html#RendererWithVisualVariables)
  33340. */
  33341. export type RendererWithVisualVariables = | __esri.SimpleRenderer
  33342. | __esri.ClassBreaksRenderer
  33343. | __esri.UniqueValueRenderer
  33344. | __esri.DotDensityRenderer
  33345. | __esri.DictionaryRenderer
  33346. | __esri.PieChartRenderer;
  33347. /**
  33348. * HeatmapRenderer.
  33349. *
  33350. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers.html#HeatmapRenderer)
  33351. */
  33352. export type HeatmapRenderer = __esri.HeatmapRenderer;
  33353. export const HeatmapRenderer: typeof __esri.HeatmapRenderer;
  33354. /**
  33355. * Renderer.
  33356. *
  33357. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers.html#Renderer)
  33358. */
  33359. export type Renderer = __esri.HeatmapRenderer | __esri.RendererWithVisualVariables;
  33360. }
  33361. export interface ClassBreaksRenderer extends Renderer, VisualVariablesMixin {
  33362. }
  33363. export class ClassBreaksRenderer {
  33364. /**
  33365. * When symbolizing polygon features with graduated symbols, set a [FillSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol.html) on this property to visualize the boundaries of each feature.
  33366. *
  33367. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#backgroundFillSymbol)
  33368. */
  33369. backgroundFillSymbol: FillSymbol | PolygonSymbol3D;
  33370. /**
  33371. * Each element in the array is an object that provides information about a class break associated with the renderer.
  33372. *
  33373. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#classBreakInfos)
  33374. */
  33375. classBreakInfos: ClassBreakInfo[];
  33376. /**
  33377. * Label used in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) to describe features assigned the [default symbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#defaultSymbol).
  33378. *
  33379. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#defaultLabel)
  33380. */
  33381. defaultLabel: string;
  33382. /**
  33383. * The default symbol assigned to features with a value not matched to a given break.
  33384. *
  33385. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#defaultSymbol)
  33386. */
  33387. defaultSymbol: Symbol;
  33388. /**
  33389. * The name of a numeric attribute field whose data determines the symbol of each feature based on the class breaks defined in [classBreakInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#classBreakInfos).
  33390. *
  33391. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#field)
  33392. */
  33393. field: string;
  33394. /**
  33395. * An object providing options for displaying the renderer in the Legend.
  33396. *
  33397. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#legendOptions)
  33398. */
  33399. legendOptions: ClassBreaksRendererLegendOptions;
  33400. /**
  33401. * When [normalizationType](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#normalizationType) is `field`, this property contains the attribute field name used for normalization.
  33402. *
  33403. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#normalizationField)
  33404. */
  33405. normalizationField: string;
  33406. /**
  33407. * When [normalizationType](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#normalizationType) is `percent-of-total`, this property contains the total of all data values.
  33408. *
  33409. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#normalizationTotal)
  33410. */
  33411. normalizationTotal: number;
  33412. /**
  33413. * Indicates how the data is normalized.
  33414. *
  33415. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#normalizationType)
  33416. */
  33417. normalizationType: "field" | "log" | "percent-of-total";
  33418. /**
  33419. * The type of renderer.
  33420. *
  33421. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#type)
  33422. */
  33423. readonly type: "class-breaks";
  33424. /**
  33425. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  33426. *
  33427. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#valueExpression)
  33428. */
  33429. valueExpression: string;
  33430. /**
  33431. * The title identifying and describing the associated [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression as defined in the [valueExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#valueExpression) property.
  33432. *
  33433. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#valueExpressionTitle)
  33434. */
  33435. valueExpressionTitle: string;
  33436. /**
  33437. * ClassBreaksRenderer defines the symbol of each feature in a [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html) based on the value of a numeric attribute.
  33438. *
  33439. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html)
  33440. */
  33441. constructor(properties?: ClassBreaksRendererProperties);
  33442. /**
  33443. * Adds a class break to the renderer.
  33444. *
  33445. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#addClassBreakInfo)
  33446. */
  33447. addClassBreakInfo(min: number | any, max?: number, symbol?: Symbol): void;
  33448. /**
  33449. * Creates a deep clone of the renderer.
  33450. *
  33451. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#clone)
  33452. */
  33453. clone(): ClassBreaksRenderer;
  33454. /**
  33455. * Returns the [classBreakInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#classBreakInfos) information (as defined by the renderer) associated with the given graphic.
  33456. *
  33457. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#getClassBreakInfo)
  33458. */
  33459. getClassBreakInfo(graphic: Graphic): Promise<ClassBreakInfo>;
  33460. /**
  33461. * Removes a break from the renderer.
  33462. *
  33463. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#removeClassBreakInfo)
  33464. */
  33465. removeClassBreakInfo(min: number, max: number): void;
  33466. static fromJSON(json: any): ClassBreaksRenderer;
  33467. }
  33468. /** @deprecated Import the ClassBreaksRenderer class instead. */
  33469. export type ClassBreaksRendererConstructor = typeof ClassBreaksRenderer;
  33470. interface ClassBreaksRendererProperties extends RendererProperties, VisualVariablesMixinProperties {
  33471. /**
  33472. * When symbolizing polygon features with graduated symbols, set a [FillSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol.html) on this property to visualize the boundaries of each feature.
  33473. *
  33474. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#backgroundFillSymbol)
  33475. */
  33476. backgroundFillSymbol?: FillSymbolProperties | (PolygonSymbol3DProperties & { type: "polygon-3d" });
  33477. /**
  33478. * Each element in the array is an object that provides information about a class break associated with the renderer.
  33479. *
  33480. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#classBreakInfos)
  33481. */
  33482. classBreakInfos?: ClassBreakInfoProperties[];
  33483. /**
  33484. * Label used in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) to describe features assigned the [default symbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#defaultSymbol).
  33485. *
  33486. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#defaultLabel)
  33487. */
  33488. defaultLabel?: string;
  33489. /**
  33490. * The default symbol assigned to features with a value not matched to a given break.
  33491. *
  33492. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#defaultSymbol)
  33493. */
  33494. defaultSymbol?: SymbolProperties;
  33495. /**
  33496. * The name of a numeric attribute field whose data determines the symbol of each feature based on the class breaks defined in [classBreakInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#classBreakInfos).
  33497. *
  33498. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#field)
  33499. */
  33500. field?: string;
  33501. /**
  33502. * An object providing options for displaying the renderer in the Legend.
  33503. *
  33504. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#legendOptions)
  33505. */
  33506. legendOptions?: ClassBreaksRendererLegendOptions;
  33507. /**
  33508. * When [normalizationType](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#normalizationType) is `field`, this property contains the attribute field name used for normalization.
  33509. *
  33510. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#normalizationField)
  33511. */
  33512. normalizationField?: string;
  33513. /**
  33514. * When [normalizationType](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#normalizationType) is `percent-of-total`, this property contains the total of all data values.
  33515. *
  33516. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#normalizationTotal)
  33517. */
  33518. normalizationTotal?: number;
  33519. /**
  33520. * Indicates how the data is normalized.
  33521. *
  33522. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#normalizationType)
  33523. */
  33524. normalizationType?: "field" | "log" | "percent-of-total";
  33525. /**
  33526. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  33527. *
  33528. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#valueExpression)
  33529. */
  33530. valueExpression?: string;
  33531. /**
  33532. * The title identifying and describing the associated [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression as defined in the [valueExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#valueExpression) property.
  33533. *
  33534. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#valueExpressionTitle)
  33535. */
  33536. valueExpressionTitle?: string;
  33537. }
  33538. export interface ClassBreaksRendererLegendOptions {
  33539. /**
  33540. * Describes the variable driving the visualization.
  33541. *
  33542. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#legendOptions)
  33543. */
  33544. title: string;
  33545. }
  33546. export interface DictionaryRenderer extends Renderer, VisualVariablesMixin {
  33547. }
  33548. export class DictionaryRenderer {
  33549. /**
  33550. * This property allows you to set display options that can be configured on the dictionary symbol style.
  33551. *
  33552. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DictionaryRenderer.html#config)
  33553. */
  33554. config: any;
  33555. /**
  33556. * Defines a field mapping that maps input fields from the feature to the dictionary symbol style's expected fields for symbols and text.
  33557. *
  33558. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DictionaryRenderer.html#fieldMap)
  33559. */
  33560. fieldMap: HashMap<string>;
  33561. /**
  33562. * A scaling expression can be set to increase or decrease the size of the dictionary symbols.
  33563. *
  33564. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DictionaryRenderer.html#scaleExpression)
  33565. */
  33566. scaleExpression: string;
  33567. /**
  33568. * The title identifying and describing the associated [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression as defined in the [scaleExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DictionaryRenderer.html#scaleExpression) property.
  33569. *
  33570. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DictionaryRenderer.html#scaleExpressionTitle)
  33571. */
  33572. scaleExpressionTitle: string;
  33573. /**
  33574. * The type of renderer.
  33575. *
  33576. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DictionaryRenderer.html#type)
  33577. */
  33578. type: "dictionary";
  33579. /**
  33580. * The URL to the dictionary style.
  33581. *
  33582. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DictionaryRenderer.html#url)
  33583. */
  33584. url: string;
  33585. /**
  33586. * Dictionary Renderer is used to symbolize layers using a dictionary of [CIMSymbols](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html) configured with multiple attributes.
  33587. *
  33588. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DictionaryRenderer.html)
  33589. */
  33590. constructor(properties?: DictionaryRendererProperties);
  33591. /**
  33592. * Creates a deep clone of the renderer.
  33593. *
  33594. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DictionaryRenderer.html#clone)
  33595. */
  33596. clone(): DictionaryRenderer;
  33597. /**
  33598. * This method will return the symbol for a given graphic using the dictionary renderer.
  33599. *
  33600. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DictionaryRenderer.html#getSymbolAsync)
  33601. */
  33602. getSymbolAsync(graphic: Graphic): Promise<CIMSymbol>;
  33603. static fromJSON(json: any): DictionaryRenderer;
  33604. }
  33605. /** @deprecated Import the DictionaryRenderer class instead. */
  33606. export type DictionaryRendererConstructor = typeof DictionaryRenderer;
  33607. interface DictionaryRendererProperties extends RendererProperties, VisualVariablesMixinProperties {
  33608. /**
  33609. * This property allows you to set display options that can be configured on the dictionary symbol style.
  33610. *
  33611. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DictionaryRenderer.html#config)
  33612. */
  33613. config?: any;
  33614. /**
  33615. * Defines a field mapping that maps input fields from the feature to the dictionary symbol style's expected fields for symbols and text.
  33616. *
  33617. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DictionaryRenderer.html#fieldMap)
  33618. */
  33619. fieldMap?: HashMap<string>;
  33620. /**
  33621. * A scaling expression can be set to increase or decrease the size of the dictionary symbols.
  33622. *
  33623. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DictionaryRenderer.html#scaleExpression)
  33624. */
  33625. scaleExpression?: string;
  33626. /**
  33627. * The title identifying and describing the associated [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression as defined in the [scaleExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DictionaryRenderer.html#scaleExpression) property.
  33628. *
  33629. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DictionaryRenderer.html#scaleExpressionTitle)
  33630. */
  33631. scaleExpressionTitle?: string;
  33632. /**
  33633. * The type of renderer.
  33634. *
  33635. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DictionaryRenderer.html#type)
  33636. */
  33637. type?: "dictionary";
  33638. /**
  33639. * The URL to the dictionary style.
  33640. *
  33641. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DictionaryRenderer.html#url)
  33642. */
  33643. url?: string;
  33644. }
  33645. export class DotDensityRenderer extends Renderer {
  33646. /**
  33647. * Defines the variable(s) used to visualize density.
  33648. *
  33649. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#attributes)
  33650. */
  33651. attributes: AttributeColorInfo[];
  33652. /**
  33653. * The color used to shade the polygon fill behind the dots.
  33654. *
  33655. * @default [0, 0, 0, 0.25] - black, semitransparent
  33656. *
  33657. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#backgroundColor)
  33658. */
  33659. backgroundColor: Color;
  33660. /**
  33661. * Only applicable when two or more [attributes](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#attributes) are specified.
  33662. *
  33663. * @default true
  33664. *
  33665. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#dotBlendingEnabled)
  33666. */
  33667. dotBlendingEnabled: boolean;
  33668. /**
  33669. * Defines the size of the dots in points.
  33670. *
  33671. * @default 1
  33672. *
  33673. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#dotSize)
  33674. */
  33675. dotSize: number;
  33676. /**
  33677. * Defines the initial dot value used for visualizing density.
  33678. *
  33679. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#dotValue)
  33680. */
  33681. dotValue: number;
  33682. /**
  33683. * An object providing options for configuring the renderer in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  33684. *
  33685. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#legendOptions)
  33686. */
  33687. legendOptions: DotDensityRendererLegendOptions;
  33688. /**
  33689. * The outline of the polygon.
  33690. *
  33691. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#outline)
  33692. */
  33693. outline: SimpleLineSymbol;
  33694. /**
  33695. * When defined, the renderer will recalculate the dot value linearly based on the change in the view's scale using the [calculateDotValue()](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#calculateDotValue) method.
  33696. *
  33697. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#referenceScale)
  33698. */
  33699. referenceScale: number;
  33700. /**
  33701. * When set to a consistent value, dot placements will be preserved for the same scale given all parameters are the same in the renderer.
  33702. *
  33703. * @default 1
  33704. *
  33705. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#seed)
  33706. */
  33707. seed: number;
  33708. /**
  33709. * The type of renderer.
  33710. *
  33711. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#type)
  33712. */
  33713. readonly type: "dot-density";
  33714. /**
  33715. * An array of [Size Visual Variable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html) objects.
  33716. *
  33717. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#visualVariables)
  33718. */
  33719. visualVariables: VisualVariable[];
  33720. /**
  33721. * DotDensityRenderer allows you to create dot density visualizations for polygon layers.
  33722. *
  33723. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html)
  33724. */
  33725. constructor(properties?: DotDensityRendererProperties);
  33726. /**
  33727. * Calculates an updated dot value for the given scale for the cases where a [referenceScale](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#referenceScale) is provided.
  33728. *
  33729. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#calculateDotValue)
  33730. */
  33731. calculateDotValue(scale: number): number;
  33732. /**
  33733. * Creates a deep clone of the renderer.
  33734. *
  33735. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#clone)
  33736. */
  33737. clone(): DotDensityRenderer;
  33738. static fromJSON(json: any): DotDensityRenderer;
  33739. }
  33740. /** @deprecated Import the DotDensityRenderer class instead. */
  33741. export type DotDensityRendererConstructor = typeof DotDensityRenderer;
  33742. interface DotDensityRendererProperties extends RendererProperties {
  33743. /**
  33744. * Defines the variable(s) used to visualize density.
  33745. *
  33746. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#attributes)
  33747. */
  33748. attributes?: AttributeColorInfoProperties[];
  33749. /**
  33750. * The color used to shade the polygon fill behind the dots.
  33751. *
  33752. * @default [0, 0, 0, 0.25] - black, semitransparent
  33753. *
  33754. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#backgroundColor)
  33755. */
  33756. backgroundColor?: Color | number[] | string;
  33757. /**
  33758. * Only applicable when two or more [attributes](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#attributes) are specified.
  33759. *
  33760. * @default true
  33761. *
  33762. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#dotBlendingEnabled)
  33763. */
  33764. dotBlendingEnabled?: boolean;
  33765. /**
  33766. * Defines the size of the dots in points.
  33767. *
  33768. * @default 1
  33769. *
  33770. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#dotSize)
  33771. */
  33772. dotSize?: number;
  33773. /**
  33774. * Defines the initial dot value used for visualizing density.
  33775. *
  33776. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#dotValue)
  33777. */
  33778. dotValue?: number;
  33779. /**
  33780. * An object providing options for configuring the renderer in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  33781. *
  33782. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#legendOptions)
  33783. */
  33784. legendOptions?: DotDensityRendererLegendOptions;
  33785. /**
  33786. * The outline of the polygon.
  33787. *
  33788. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#outline)
  33789. */
  33790. outline?: SimpleLineSymbolProperties;
  33791. /**
  33792. * When defined, the renderer will recalculate the dot value linearly based on the change in the view's scale using the [calculateDotValue()](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#calculateDotValue) method.
  33793. *
  33794. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#referenceScale)
  33795. */
  33796. referenceScale?: number;
  33797. /**
  33798. * When set to a consistent value, dot placements will be preserved for the same scale given all parameters are the same in the renderer.
  33799. *
  33800. * @default 1
  33801. *
  33802. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#seed)
  33803. */
  33804. seed?: number;
  33805. /**
  33806. * An array of [Size Visual Variable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html) objects.
  33807. *
  33808. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#visualVariables)
  33809. */
  33810. visualVariables?: VisualVariableProperties[];
  33811. }
  33812. export interface DotDensityRendererLegendOptions {
  33813. /**
  33814. * Indicates the unit of the data being visualized.
  33815. *
  33816. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#legendOptions)
  33817. */
  33818. unit?: string;
  33819. }
  33820. export interface FlowRenderer extends Accessor, JSONSupport {
  33821. }
  33822. export class FlowRenderer {
  33823. /**
  33824. * Contains metadata about renderers generated from the [flowRendererCreator.createRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-flow.html#createRenderer) method, including information for setting UI elements such as sliders and themes.
  33825. *
  33826. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#authoringInfo)
  33827. */
  33828. authoringInfo: AuthoringInfo;
  33829. /**
  33830. * The color of the animated streamlines.
  33831. *
  33832. * @default [255, 255, 255, 1]
  33833. *
  33834. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#color)
  33835. */
  33836. color: Color;
  33837. /**
  33838. * The density of the streamlines.
  33839. *
  33840. * @default 0.8
  33841. *
  33842. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#density)
  33843. */
  33844. density: number;
  33845. /**
  33846. * Defines the flow direction of the data.
  33847. *
  33848. * @default "flow-from"
  33849. *
  33850. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#flowRepresentation)
  33851. */
  33852. flowRepresentation: "flow-from" | "flow-to";
  33853. /**
  33854. * The speed of the animated streamlines, relative to the simulation time.
  33855. *
  33856. * @default 10
  33857. *
  33858. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#flowSpeed)
  33859. */
  33860. flowSpeed: number;
  33861. /**
  33862. * An object providing options for displaying the renderer in the Legend.
  33863. *
  33864. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#legendOptions)
  33865. */
  33866. legendOptions: FlowRendererLegendOptions;
  33867. /**
  33868. * The maximum path length streamlines will travel in points.
  33869. *
  33870. * @default 200
  33871. *
  33872. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#maxPathLength)
  33873. */
  33874. maxPathLength: number;
  33875. /**
  33876. * The front cap of the streamline.
  33877. *
  33878. * @default "butt"
  33879. *
  33880. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#trailCap)
  33881. */
  33882. trailCap: "butt" | "round";
  33883. /**
  33884. * The approximate visible length of the streamline in points.
  33885. *
  33886. * @default 100
  33887. *
  33888. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#trailLength)
  33889. */
  33890. trailLength: number;
  33891. /**
  33892. * The width of the streamline trail in points.
  33893. *
  33894. * @default 1.5
  33895. *
  33896. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#trailWidth)
  33897. */
  33898. trailWidth: number;
  33899. /**
  33900. * The type of Renderer.
  33901. *
  33902. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#type)
  33903. */
  33904. readonly type: "flow";
  33905. /**
  33906. * An array of [VisualVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-VisualVariable.html) objects.
  33907. *
  33908. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#visualVariables)
  33909. */
  33910. visualVariables: VisualVariable[];
  33911. /**
  33912. * The FlowRenderer allows you to visualize your raster data with animated streamlines.
  33913. *
  33914. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html)
  33915. */
  33916. constructor(properties?: FlowRendererProperties);
  33917. /**
  33918. * Creates a deep clone of the renderer.
  33919. *
  33920. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#clone)
  33921. */
  33922. clone(): FlowRenderer;
  33923. static fromJSON(json: any): FlowRenderer;
  33924. }
  33925. /** @deprecated Import the FlowRenderer class instead. */
  33926. export type FlowRendererConstructor = typeof FlowRenderer;
  33927. interface FlowRendererProperties {
  33928. /**
  33929. * Contains metadata about renderers generated from the [flowRendererCreator.createRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-flow.html#createRenderer) method, including information for setting UI elements such as sliders and themes.
  33930. *
  33931. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#authoringInfo)
  33932. */
  33933. authoringInfo?: AuthoringInfoProperties;
  33934. /**
  33935. * The color of the animated streamlines.
  33936. *
  33937. * @default [255, 255, 255, 1]
  33938. *
  33939. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#color)
  33940. */
  33941. color?: Color;
  33942. /**
  33943. * The density of the streamlines.
  33944. *
  33945. * @default 0.8
  33946. *
  33947. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#density)
  33948. */
  33949. density?: number;
  33950. /**
  33951. * Defines the flow direction of the data.
  33952. *
  33953. * @default "flow-from"
  33954. *
  33955. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#flowRepresentation)
  33956. */
  33957. flowRepresentation?: "flow-from" | "flow-to";
  33958. /**
  33959. * The speed of the animated streamlines, relative to the simulation time.
  33960. *
  33961. * @default 10
  33962. *
  33963. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#flowSpeed)
  33964. */
  33965. flowSpeed?: number;
  33966. /**
  33967. * An object providing options for displaying the renderer in the Legend.
  33968. *
  33969. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#legendOptions)
  33970. */
  33971. legendOptions?: FlowRendererLegendOptions;
  33972. /**
  33973. * The maximum path length streamlines will travel in points.
  33974. *
  33975. * @default 200
  33976. *
  33977. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#maxPathLength)
  33978. */
  33979. maxPathLength?: number | string;
  33980. /**
  33981. * The front cap of the streamline.
  33982. *
  33983. * @default "butt"
  33984. *
  33985. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#trailCap)
  33986. */
  33987. trailCap?: "butt" | "round";
  33988. /**
  33989. * The approximate visible length of the streamline in points.
  33990. *
  33991. * @default 100
  33992. *
  33993. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#trailLength)
  33994. */
  33995. trailLength?: number;
  33996. /**
  33997. * The width of the streamline trail in points.
  33998. *
  33999. * @default 1.5
  34000. *
  34001. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#trailWidth)
  34002. */
  34003. trailWidth?: number | string;
  34004. /**
  34005. * An array of [VisualVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-VisualVariable.html) objects.
  34006. *
  34007. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#visualVariables)
  34008. */
  34009. visualVariables?: VisualVariableProperties[];
  34010. }
  34011. export interface FlowRendererLegendOptions {
  34012. /**
  34013. * Describes the variable driving the visualization.
  34014. *
  34015. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#legendOptions)
  34016. */
  34017. title?: string;
  34018. }
  34019. export class HeatmapRenderer extends Renderer {
  34020. /**
  34021. * An array of objects describing the renderer's color ramp.
  34022. *
  34023. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#colorStops)
  34024. */
  34025. colorStops: HeatmapColorStop[];
  34026. /**
  34027. * The name of the attribute field used to weight the density of each heatmap point.
  34028. *
  34029. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#field)
  34030. */
  34031. field: string;
  34032. /**
  34033. * An object providing options for describing the renderer in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  34034. *
  34035. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#legendOptions)
  34036. */
  34037. legendOptions: HeatmapRendererLegendOptions;
  34038. /**
  34039. * The max density value to be assigned a color in the heatmap surface.
  34040. *
  34041. * @default 0.04
  34042. *
  34043. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#maxDensity)
  34044. */
  34045. maxDensity: number;
  34046. /**
  34047. * The minimum density value to be assigned a color in the heatmap surface.
  34048. *
  34049. * @default 0
  34050. *
  34051. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#minDensity)
  34052. */
  34053. minDensity: number;
  34054. /**
  34055. * The search radius (in points) used to create a smooth kernel surface fitted around each point.
  34056. *
  34057. * @default 18
  34058. *
  34059. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#radius)
  34060. */
  34061. radius: number;
  34062. /**
  34063. * When set, the heatmap's visualization at the given scale will remain static and not change as the user zooms in and out of the view.
  34064. *
  34065. * @default 0
  34066. *
  34067. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#referenceScale)
  34068. */
  34069. referenceScale: number;
  34070. /**
  34071. * The type of renderer.
  34072. *
  34073. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#type)
  34074. */
  34075. readonly type: "heatmap";
  34076. /**
  34077. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  34078. *
  34079. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#valueExpression)
  34080. */
  34081. valueExpression: string;
  34082. /**
  34083. * The title identifying and describing the [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression as defined in the [valueExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#valueExpression) property.
  34084. *
  34085. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#valueExpressionTitle)
  34086. */
  34087. valueExpressionTitle: string;
  34088. /**
  34089. * The HeatmapRenderer uses [kernel density](https://pro.arcgis.com/en/pro-app/2.8/tool-reference/spatial-analyst/how-kernel-density-works.htm) to render point features in [FeatureLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html), [CSVLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html), [GeoJSONLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html) and [OGCFeatureLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html) as a raster surface.
  34090. *
  34091. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html)
  34092. */
  34093. constructor(properties?: HeatmapRendererProperties);
  34094. /**
  34095. * Creates a deep clone of the renderer.
  34096. *
  34097. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#clone)
  34098. */
  34099. clone(): HeatmapRenderer;
  34100. static fromJSON(json: any): HeatmapRenderer;
  34101. }
  34102. /** @deprecated Import the HeatmapRenderer class instead. */
  34103. export type HeatmapRendererConstructor = typeof HeatmapRenderer;
  34104. interface HeatmapRendererProperties extends RendererProperties {
  34105. /**
  34106. * An array of objects describing the renderer's color ramp.
  34107. *
  34108. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#colorStops)
  34109. */
  34110. colorStops?: HeatmapColorStopProperties[];
  34111. /**
  34112. * The name of the attribute field used to weight the density of each heatmap point.
  34113. *
  34114. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#field)
  34115. */
  34116. field?: string;
  34117. /**
  34118. * An object providing options for describing the renderer in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  34119. *
  34120. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#legendOptions)
  34121. */
  34122. legendOptions?: HeatmapRendererLegendOptions;
  34123. /**
  34124. * The max density value to be assigned a color in the heatmap surface.
  34125. *
  34126. * @default 0.04
  34127. *
  34128. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#maxDensity)
  34129. */
  34130. maxDensity?: number;
  34131. /**
  34132. * The minimum density value to be assigned a color in the heatmap surface.
  34133. *
  34134. * @default 0
  34135. *
  34136. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#minDensity)
  34137. */
  34138. minDensity?: number;
  34139. /**
  34140. * The search radius (in points) used to create a smooth kernel surface fitted around each point.
  34141. *
  34142. * @default 18
  34143. *
  34144. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#radius)
  34145. */
  34146. radius?: number | string;
  34147. /**
  34148. * When set, the heatmap's visualization at the given scale will remain static and not change as the user zooms in and out of the view.
  34149. *
  34150. * @default 0
  34151. *
  34152. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#referenceScale)
  34153. */
  34154. referenceScale?: number;
  34155. /**
  34156. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  34157. *
  34158. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#valueExpression)
  34159. */
  34160. valueExpression?: string;
  34161. /**
  34162. * The title identifying and describing the [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression as defined in the [valueExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#valueExpression) property.
  34163. *
  34164. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#valueExpressionTitle)
  34165. */
  34166. valueExpressionTitle?: string;
  34167. }
  34168. export interface HeatmapRendererLegendOptions {
  34169. /**
  34170. * The label used to describe low density areas in the legend.
  34171. *
  34172. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#legendOptions)
  34173. */
  34174. minLabel?: string;
  34175. /**
  34176. * The label used to describe max density areas in the legend.
  34177. *
  34178. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#legendOptions)
  34179. */
  34180. maxLabel?: string;
  34181. /**
  34182. * Describes the variable driving the visualization.
  34183. *
  34184. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#legendOptions)
  34185. */
  34186. title?: string;
  34187. }
  34188. export class VisualVariablesMixin {
  34189. /**
  34190. * An array of [VisualVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-VisualVariable.html) objects.
  34191. *
  34192. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-mixins-VisualVariablesMixin.html#visualVariables)
  34193. */
  34194. visualVariables: VisualVariable[];
  34195. }
  34196. interface VisualVariablesMixinProperties {
  34197. /**
  34198. * An array of [VisualVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-VisualVariable.html) objects.
  34199. *
  34200. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-mixins-VisualVariablesMixin.html#visualVariables)
  34201. */
  34202. visualVariables?: VisualVariableProperties[];
  34203. }
  34204. export class PieChartRenderer extends Renderer {
  34205. /**
  34206. * Defines the variable(s) to include in the pie charts.
  34207. *
  34208. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#attributes)
  34209. */
  34210. attributes: AttributeColorInfo[];
  34211. /**
  34212. * The symbol used to render polygons behind the pie symbols.
  34213. *
  34214. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#backgroundFillSymbol)
  34215. */
  34216. backgroundFillSymbol: SimpleFillSymbol;
  34217. /**
  34218. * The color used to visualize features whose [attributes](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#attributes) all have null or empty values.
  34219. *
  34220. * @default new Color([0, 0, 0, 0])
  34221. *
  34222. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#defaultColor)
  34223. */
  34224. defaultColor: Color;
  34225. /**
  34226. * Describes the [defaultColor](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#defaultColor) in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  34227. *
  34228. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#defaultLabel)
  34229. */
  34230. defaultLabel: string;
  34231. /**
  34232. * Use this property to create a donut chart.
  34233. *
  34234. * @default 0
  34235. *
  34236. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#holePercentage)
  34237. */
  34238. holePercentage: number;
  34239. /**
  34240. * An object providing options for describing the renderer in the Legend.
  34241. *
  34242. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#legendOptions)
  34243. */
  34244. legendOptions: PieChartRendererLegendOptions;
  34245. /**
  34246. * Defines the rules for how to aggregate small categories to a generic "others" category.
  34247. *
  34248. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#othersCategory)
  34249. */
  34250. othersCategory: PieChartRendererOthersCategory;
  34251. /**
  34252. * Defines the outline of the pie chart.
  34253. *
  34254. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#outline)
  34255. */
  34256. outline: SimpleLineSymbol;
  34257. /**
  34258. * Defines the size of each pie chart in points.
  34259. *
  34260. * @default 12
  34261. *
  34262. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#size)
  34263. */
  34264. size: number;
  34265. /**
  34266. * The type of renderer.
  34267. *
  34268. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#type)
  34269. */
  34270. readonly type: "pie-chart";
  34271. /**
  34272. * An array of [Size Visual Variable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html) objects.
  34273. *
  34274. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#visualVariables)
  34275. */
  34276. visualVariables: SizeVariable[];
  34277. /**
  34278. * PieChartRenderer allows you to create a pie chart for each feature in the layer.
  34279. *
  34280. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html)
  34281. */
  34282. constructor(properties?: PieChartRendererProperties);
  34283. /**
  34284. * Creates a deep clone of the renderer.
  34285. *
  34286. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#clone)
  34287. */
  34288. clone(): PieChartRenderer;
  34289. static fromJSON(json: any): PieChartRenderer;
  34290. }
  34291. /** @deprecated Import the PieChartRenderer class instead. */
  34292. export type PieChartRendererConstructor = typeof PieChartRenderer;
  34293. interface PieChartRendererProperties extends RendererProperties {
  34294. /**
  34295. * Defines the variable(s) to include in the pie charts.
  34296. *
  34297. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#attributes)
  34298. */
  34299. attributes?: AttributeColorInfoProperties[];
  34300. /**
  34301. * The symbol used to render polygons behind the pie symbols.
  34302. *
  34303. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#backgroundFillSymbol)
  34304. */
  34305. backgroundFillSymbol?: SimpleFillSymbolProperties;
  34306. /**
  34307. * The color used to visualize features whose [attributes](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#attributes) all have null or empty values.
  34308. *
  34309. * @default new Color([0, 0, 0, 0])
  34310. *
  34311. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#defaultColor)
  34312. */
  34313. defaultColor?: Color;
  34314. /**
  34315. * Describes the [defaultColor](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#defaultColor) in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  34316. *
  34317. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#defaultLabel)
  34318. */
  34319. defaultLabel?: string;
  34320. /**
  34321. * Use this property to create a donut chart.
  34322. *
  34323. * @default 0
  34324. *
  34325. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#holePercentage)
  34326. */
  34327. holePercentage?: number;
  34328. /**
  34329. * An object providing options for describing the renderer in the Legend.
  34330. *
  34331. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#legendOptions)
  34332. */
  34333. legendOptions?: PieChartRendererLegendOptions;
  34334. /**
  34335. * Defines the rules for how to aggregate small categories to a generic "others" category.
  34336. *
  34337. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#othersCategory)
  34338. */
  34339. othersCategory?: PieChartRendererOthersCategory;
  34340. /**
  34341. * Defines the outline of the pie chart.
  34342. *
  34343. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#outline)
  34344. */
  34345. outline?: SimpleLineSymbolProperties;
  34346. /**
  34347. * Defines the size of each pie chart in points.
  34348. *
  34349. * @default 12
  34350. *
  34351. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#size)
  34352. */
  34353. size?: number | string;
  34354. /**
  34355. * An array of [Size Visual Variable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html) objects.
  34356. *
  34357. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#visualVariables)
  34358. */
  34359. visualVariables?: SizeVariableProperties[];
  34360. }
  34361. export interface PieChartRendererLegendOptions {
  34362. /**
  34363. * Describes the data used by the renderer.
  34364. *
  34365. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#legendOptions)
  34366. */
  34367. title?: string;
  34368. }
  34369. export interface PieChartRendererOthersCategory {
  34370. /**
  34371. * Defines the color used to represent all categories whose pie slices are smaller than the percentage defined by `threshold`.
  34372. *
  34373. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#othersCategory)
  34374. */
  34375. color?: Color;
  34376. /**
  34377. * Describes the `color` grouping categories smaller than the `threshold` in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  34378. *
  34379. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#othersCategory)
  34380. */
  34381. label?: string;
  34382. /**
  34383. * Represents the minimum size of individual slices as a percentage of the entire pie.
  34384. *
  34385. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#othersCategory)
  34386. */
  34387. threshold?: number;
  34388. }
  34389. export class PointCloudClassBreaksRenderer extends PointCloudRenderer {
  34390. /**
  34391. * Each element in the array is an object that provides information about a class break associated with the renderer.
  34392. *
  34393. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudClassBreaksRenderer.html#colorClassBreakInfos)
  34394. */
  34395. colorClassBreakInfos: PointCloudClassBreaksRendererColorClassBreakInfos[];
  34396. /**
  34397. * The name of the field that is used to drive the color visualization for the renderer.
  34398. *
  34399. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudClassBreaksRenderer.html#field)
  34400. */
  34401. field: string;
  34402. /**
  34403. * A transform that is applied to the field value before evaluating the renderer.
  34404. *
  34405. * @default null
  34406. *
  34407. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudClassBreaksRenderer.html#fieldTransformType)
  34408. */
  34409. fieldTransformType: "none" | "low-four-bit" | "high-four-bit" | "absolute-value" | "modulo-ten";
  34410. /**
  34411. * An object providing options for displaying the renderer in the Legend.
  34412. *
  34413. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudClassBreaksRenderer.html#legendOptions)
  34414. */
  34415. legendOptions: PointCloudClassBreaksRendererLegendOptions;
  34416. /**
  34417. * The type of renderer.
  34418. *
  34419. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudClassBreaksRenderer.html#type)
  34420. */
  34421. readonly type: "point-cloud-class-breaks";
  34422. /**
  34423. * This class defines the color of each point in a [PointCloudLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html) based on the value of a numeric attribute.
  34424. *
  34425. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudClassBreaksRenderer.html)
  34426. */
  34427. constructor(properties?: PointCloudClassBreaksRendererProperties);
  34428. /**
  34429. * Creates a deep clone of the renderer.
  34430. *
  34431. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudClassBreaksRenderer.html#clone)
  34432. */
  34433. clone(): PointCloudClassBreaksRenderer;
  34434. static fromJSON(json: any): PointCloudClassBreaksRenderer;
  34435. }
  34436. /** @deprecated Import the PointCloudClassBreaksRenderer class instead. */
  34437. export type PointCloudClassBreaksRendererConstructor = typeof PointCloudClassBreaksRenderer;
  34438. interface PointCloudClassBreaksRendererProperties extends PointCloudRendererProperties {
  34439. /**
  34440. * Each element in the array is an object that provides information about a class break associated with the renderer.
  34441. *
  34442. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudClassBreaksRenderer.html#colorClassBreakInfos)
  34443. */
  34444. colorClassBreakInfos?: PointCloudClassBreaksRendererColorClassBreakInfos[];
  34445. /**
  34446. * The name of the field that is used to drive the color visualization for the renderer.
  34447. *
  34448. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudClassBreaksRenderer.html#field)
  34449. */
  34450. field?: string;
  34451. /**
  34452. * A transform that is applied to the field value before evaluating the renderer.
  34453. *
  34454. * @default null
  34455. *
  34456. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudClassBreaksRenderer.html#fieldTransformType)
  34457. */
  34458. fieldTransformType?: "none" | "low-four-bit" | "high-four-bit" | "absolute-value" | "modulo-ten";
  34459. /**
  34460. * An object providing options for displaying the renderer in the Legend.
  34461. *
  34462. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudClassBreaksRenderer.html#legendOptions)
  34463. */
  34464. legendOptions?: PointCloudClassBreaksRendererLegendOptions;
  34465. }
  34466. export interface PointCloudClassBreaksRendererColorClassBreakInfos {
  34467. /**
  34468. * The minimum value of the break.
  34469. *
  34470. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudClassBreaksRenderer.html#colorClassBreakInfos)
  34471. */
  34472. minValue: number;
  34473. /**
  34474. * The maximum value of the break.
  34475. *
  34476. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudClassBreaksRenderer.html#colorClassBreakInfos)
  34477. */
  34478. maxValue: number;
  34479. /**
  34480. * The color used to colorize the points where values are between the `minValue` and `maxValue` of the break.
  34481. *
  34482. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudClassBreaksRenderer.html#colorClassBreakInfos)
  34483. */
  34484. color: Color;
  34485. /**
  34486. * The label used to describe point in the break.
  34487. *
  34488. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudClassBreaksRenderer.html#colorClassBreakInfos)
  34489. */
  34490. label?: string;
  34491. }
  34492. export interface PointCloudClassBreaksRendererLegendOptions {
  34493. /**
  34494. * Describes the variable driving the visualization.
  34495. *
  34496. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudClassBreaksRenderer.html#legendOptions)
  34497. */
  34498. title?: string;
  34499. }
  34500. export interface PointCloudRenderer extends Accessor, JSONSupport {
  34501. }
  34502. export class PointCloudRenderer {
  34503. /**
  34504. * Reduces the brightness of the point's color, based on the value of another field, usually `intensity`.
  34505. *
  34506. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudRenderer.html#colorModulation)
  34507. */
  34508. colorModulation: PointCloudRendererColorModulation;
  34509. /**
  34510. * Specifies how the size of the points in the point cloud is computed for rendering.
  34511. *
  34512. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudRenderer.html#pointSizeAlgorithm)
  34513. */
  34514. pointSizeAlgorithm: PointCloudRendererPointSizeAlgorithm;
  34515. /**
  34516. * The number of points to draw per display inch.
  34517. *
  34518. * @default 10
  34519. *
  34520. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudRenderer.html#pointsPerInch)
  34521. */
  34522. pointsPerInch: number;
  34523. /**
  34524. * The point cloud renderer type.
  34525. *
  34526. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudRenderer.html#type)
  34527. */
  34528. readonly type: "point-cloud-class-breaks" | "point-cloud-rgb" | "point-cloud-stretch" | "point-cloud-unique-value";
  34529. /**
  34530. * A PointCloudRenderer allows you to specify how points in a [PointCloudLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html) are rendered.
  34531. *
  34532. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudRenderer.html)
  34533. */
  34534. constructor(properties?: PointCloudRendererProperties);
  34535. /**
  34536. * Creates a deep clone of the renderer.
  34537. *
  34538. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudRenderer.html#clone)
  34539. */
  34540. clone(): PointCloudRenderer;
  34541. static fromJSON(json: any): PointCloudRenderer;
  34542. }
  34543. /** @deprecated Import the PointCloudRenderer class instead. */
  34544. export type PointCloudRendererConstructor = typeof PointCloudRenderer;
  34545. interface PointCloudRendererProperties {
  34546. /**
  34547. * Reduces the brightness of the point's color, based on the value of another field, usually `intensity`.
  34548. *
  34549. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudRenderer.html#colorModulation)
  34550. */
  34551. colorModulation?: PointCloudRendererColorModulation;
  34552. /**
  34553. * Specifies how the size of the points in the point cloud is computed for rendering.
  34554. *
  34555. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudRenderer.html#pointSizeAlgorithm)
  34556. */
  34557. pointSizeAlgorithm?: PointCloudRendererPointSizeAlgorithm;
  34558. /**
  34559. * The number of points to draw per display inch.
  34560. *
  34561. * @default 10
  34562. *
  34563. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudRenderer.html#pointsPerInch)
  34564. */
  34565. pointsPerInch?: number;
  34566. }
  34567. export interface PointCloudRendererColorModulation {
  34568. /**
  34569. * Field to use for the color modulation.
  34570. *
  34571. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudRenderer.html#colorModulation)
  34572. */
  34573. field: string;
  34574. /**
  34575. * Field value at which the point color becomes darkest.
  34576. *
  34577. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudRenderer.html#colorModulation)
  34578. */
  34579. minValue?: number;
  34580. /**
  34581. * Field value at which the point color will be left unchanged.
  34582. *
  34583. * @default 255
  34584. *
  34585. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudRenderer.html#colorModulation)
  34586. */
  34587. maxValue?: number;
  34588. }
  34589. export interface PointCloudRendererPointSizeAlgorithm {
  34590. /**
  34591. * `fixed-size` or `splat`.
  34592. *
  34593. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudRenderer.html#pointSizeAlgorithm)
  34594. */
  34595. type: "fixed-size" | "splat";
  34596. /**
  34597. * Specifies whether `size` is in real world units or screen-space units.
  34598. *
  34599. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudRenderer.html#pointSizeAlgorithm)
  34600. */
  34601. useRealWorldSymbolSizes?: boolean;
  34602. /**
  34603. * Point size in meters (`useRealWorldSymbolSizes = true`) or points.
  34604. *
  34605. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudRenderer.html#pointSizeAlgorithm)
  34606. */
  34607. size?: number;
  34608. /**
  34609. * Specifies the scale factor that is applied to the size estimated by the density.
  34610. *
  34611. * @default 1
  34612. *
  34613. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudRenderer.html#pointSizeAlgorithm)
  34614. */
  34615. scaleFactor?: number;
  34616. }
  34617. export class PointCloudRGBRenderer extends PointCloudRenderer {
  34618. /**
  34619. * The name of the field containing RGB values used to drive the visualization.
  34620. *
  34621. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudRGBRenderer.html#field)
  34622. */
  34623. field: string;
  34624. /**
  34625. * The type of Renderer.
  34626. *
  34627. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudRGBRenderer.html#type)
  34628. */
  34629. readonly type: "point-cloud-rgb";
  34630. /**
  34631. * PointCloudRGBRenderer defines the color of each point in a [PointCloudLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html) based on the value of a color attribute.
  34632. *
  34633. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudRGBRenderer.html)
  34634. */
  34635. constructor(properties?: PointCloudRGBRendererProperties);
  34636. /**
  34637. * Creates a deep clone of the renderer.
  34638. *
  34639. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudRGBRenderer.html#clone)
  34640. */
  34641. clone(): PointCloudRGBRenderer;
  34642. static fromJSON(json: any): PointCloudRGBRenderer;
  34643. }
  34644. /** @deprecated Import the PointCloudRGBRenderer class instead. */
  34645. export type PointCloudRGBRendererConstructor = typeof PointCloudRGBRenderer;
  34646. interface PointCloudRGBRendererProperties extends PointCloudRendererProperties {
  34647. /**
  34648. * The name of the field containing RGB values used to drive the visualization.
  34649. *
  34650. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudRGBRenderer.html#field)
  34651. */
  34652. field?: string;
  34653. }
  34654. export class PointCloudStretchRenderer extends PointCloudRenderer {
  34655. /**
  34656. * The name of the number field whose values are used to drive the continuous color visualization.
  34657. *
  34658. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudStretchRenderer.html#field)
  34659. */
  34660. field: string;
  34661. /**
  34662. * A transform that is applied to the field value before evaluating the renderer.
  34663. *
  34664. * @default null
  34665. *
  34666. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudStretchRenderer.html#fieldTransformType)
  34667. */
  34668. fieldTransformType: "none" | "low-four-bit" | "high-four-bit" | "absolute-value" | "modulo-ten";
  34669. /**
  34670. * An object providing options for displaying the renderer in the Legend.
  34671. *
  34672. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudStretchRenderer.html#legendOptions)
  34673. */
  34674. legendOptions: PointCloudStretchRendererLegendOptions;
  34675. /**
  34676. * An array of color value pairs.
  34677. *
  34678. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudStretchRenderer.html#stops)
  34679. */
  34680. stops: ColorStop[];
  34681. /**
  34682. * The type of Renderer.
  34683. *
  34684. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudStretchRenderer.html#type)
  34685. */
  34686. readonly type: "point-cloud-stretch";
  34687. /**
  34688. * PointCloudStretchRenderer defines the color of each point in a [PointCloudLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html) based on the value of a numeric attribute.
  34689. *
  34690. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudStretchRenderer.html)
  34691. */
  34692. constructor(properties?: PointCloudStretchRendererProperties);
  34693. /**
  34694. * Creates a deep clone of the renderer.
  34695. *
  34696. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudStretchRenderer.html#clone)
  34697. */
  34698. clone(): PointCloudStretchRenderer;
  34699. static fromJSON(json: any): PointCloudStretchRenderer;
  34700. }
  34701. /** @deprecated Import the PointCloudStretchRenderer class instead. */
  34702. export type PointCloudStretchRendererConstructor = typeof PointCloudStretchRenderer;
  34703. interface PointCloudStretchRendererProperties extends PointCloudRendererProperties {
  34704. /**
  34705. * The name of the number field whose values are used to drive the continuous color visualization.
  34706. *
  34707. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudStretchRenderer.html#field)
  34708. */
  34709. field?: string;
  34710. /**
  34711. * A transform that is applied to the field value before evaluating the renderer.
  34712. *
  34713. * @default null
  34714. *
  34715. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudStretchRenderer.html#fieldTransformType)
  34716. */
  34717. fieldTransformType?: "none" | "low-four-bit" | "high-four-bit" | "absolute-value" | "modulo-ten";
  34718. /**
  34719. * An object providing options for displaying the renderer in the Legend.
  34720. *
  34721. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudStretchRenderer.html#legendOptions)
  34722. */
  34723. legendOptions?: PointCloudStretchRendererLegendOptions;
  34724. /**
  34725. * An array of color value pairs.
  34726. *
  34727. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudStretchRenderer.html#stops)
  34728. */
  34729. stops?: ColorStopProperties[];
  34730. }
  34731. export interface PointCloudStretchRendererLegendOptions {
  34732. /**
  34733. * Describes the variable driving the visualization.
  34734. *
  34735. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudStretchRenderer.html#legendOptions)
  34736. */
  34737. title?: string;
  34738. }
  34739. export class PointCloudUniqueValueRenderer extends PointCloudRenderer {
  34740. /**
  34741. * Each element in the array is an object that matches a unique value with a specific color.
  34742. *
  34743. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudUniqueValueRenderer.html#colorUniqueValueInfos)
  34744. */
  34745. colorUniqueValueInfos: PointCloudUniqueValueRendererColorUniqueValueInfos[];
  34746. /**
  34747. * The name of the field whose values are used to drive the visualization.
  34748. *
  34749. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudUniqueValueRenderer.html#field)
  34750. */
  34751. field: string;
  34752. /**
  34753. * A transform that is applied to the field value before evaluating the renderer.
  34754. *
  34755. * @default null
  34756. *
  34757. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudUniqueValueRenderer.html#fieldTransformType)
  34758. */
  34759. fieldTransformType: "none" | "low-four-bit" | "high-four-bit" | "absolute-value" | "modulo-ten";
  34760. /**
  34761. * An object providing options for displaying the renderer in the Legend.
  34762. *
  34763. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudUniqueValueRenderer.html#legendOptions)
  34764. */
  34765. legendOptions: PointCloudUniqueValueRendererLegendOptions;
  34766. /**
  34767. * The type of Renderer.
  34768. *
  34769. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudUniqueValueRenderer.html#type)
  34770. */
  34771. readonly type: "point-cloud-unique-value";
  34772. /**
  34773. * PointCloudUniqueValueRenderer allows you to colorize points in a [PointCloudLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html) based on an attribute value.
  34774. *
  34775. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudUniqueValueRenderer.html)
  34776. */
  34777. constructor(properties?: PointCloudUniqueValueRendererProperties);
  34778. /**
  34779. * Creates a deep clone of the renderer.
  34780. *
  34781. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudUniqueValueRenderer.html#clone)
  34782. */
  34783. clone(): PointCloudUniqueValueRenderer;
  34784. static fromJSON(json: any): PointCloudUniqueValueRenderer;
  34785. }
  34786. /** @deprecated Import the PointCloudUniqueValueRenderer class instead. */
  34787. export type PointCloudUniqueValueRendererConstructor = typeof PointCloudUniqueValueRenderer;
  34788. interface PointCloudUniqueValueRendererProperties extends PointCloudRendererProperties {
  34789. /**
  34790. * Each element in the array is an object that matches a unique value with a specific color.
  34791. *
  34792. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudUniqueValueRenderer.html#colorUniqueValueInfos)
  34793. */
  34794. colorUniqueValueInfos?: PointCloudUniqueValueRendererColorUniqueValueInfos[];
  34795. /**
  34796. * The name of the field whose values are used to drive the visualization.
  34797. *
  34798. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudUniqueValueRenderer.html#field)
  34799. */
  34800. field?: string;
  34801. /**
  34802. * A transform that is applied to the field value before evaluating the renderer.
  34803. *
  34804. * @default null
  34805. *
  34806. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudUniqueValueRenderer.html#fieldTransformType)
  34807. */
  34808. fieldTransformType?: "none" | "low-four-bit" | "high-four-bit" | "absolute-value" | "modulo-ten";
  34809. /**
  34810. * An object providing options for displaying the renderer in the Legend.
  34811. *
  34812. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudUniqueValueRenderer.html#legendOptions)
  34813. */
  34814. legendOptions?: PointCloudUniqueValueRendererLegendOptions;
  34815. }
  34816. export interface PointCloudUniqueValueRendererColorUniqueValueInfos {
  34817. /**
  34818. * A unique combination of values that will be represented with the given `color`.
  34819. *
  34820. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudUniqueValueRenderer.html#colorUniqueValueInfos)
  34821. */
  34822. values: string[];
  34823. /**
  34824. * The color used to represent points whose value matches `values`.
  34825. *
  34826. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudUniqueValueRenderer.html#colorUniqueValueInfos)
  34827. */
  34828. color: Color;
  34829. /**
  34830. * Label used to describe points matched to the unique value.
  34831. *
  34832. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudUniqueValueRenderer.html#colorUniqueValueInfos)
  34833. */
  34834. label?: string;
  34835. }
  34836. export interface PointCloudUniqueValueRendererLegendOptions {
  34837. /**
  34838. * Describes the variable driving the visualization.
  34839. *
  34840. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudUniqueValueRenderer.html#legendOptions)
  34841. */
  34842. title?: string;
  34843. }
  34844. export interface RasterColormapRenderer extends Accessor, JSONSupport {
  34845. }
  34846. export class RasterColormapRenderer {
  34847. /**
  34848. * A colormap info array containing mappings for pixel and RGB color values.
  34849. *
  34850. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterColormapRenderer.html#colormapInfos)
  34851. */
  34852. colormapInfos: ColormapInfo[];
  34853. /**
  34854. * The type of Renderer.
  34855. *
  34856. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterColormapRenderer.html#type)
  34857. */
  34858. readonly type: "raster-colormap";
  34859. /**
  34860. * The RasterColormapRenderer defines the symbology to display raster data based on specific colors, aiding in visual analysis of the data.
  34861. *
  34862. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterColormapRenderer.html)
  34863. */
  34864. constructor(properties?: RasterColormapRendererProperties);
  34865. /**
  34866. * Creates a deep clone of the renderer.
  34867. *
  34868. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterColormapRenderer.html#clone)
  34869. */
  34870. clone(): RasterColormapRenderer;
  34871. /**
  34872. * Creates a new instance [RasterColormapRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterColormapRenderer.html) from an array of color maps where pixel values with its corresponding RGB color values specified.
  34873. *
  34874. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterColormapRenderer.html#createFromColormap)
  34875. */
  34876. static createFromColormap(colormap: number[][]): RasterColormapRenderer;
  34877. static fromJSON(json: any): RasterColormapRenderer;
  34878. }
  34879. /** @deprecated Import the RasterColormapRenderer class instead. */
  34880. export type RasterColormapRendererConstructor = typeof RasterColormapRenderer;
  34881. interface RasterColormapRendererProperties {
  34882. /**
  34883. * A colormap info array containing mappings for pixel and RGB color values.
  34884. *
  34885. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterColormapRenderer.html#colormapInfos)
  34886. */
  34887. colormapInfos?: ColormapInfoProperties[];
  34888. }
  34889. export interface RasterShadedReliefRenderer extends Accessor, JSONSupport {
  34890. }
  34891. export class RasterShadedReliefRenderer {
  34892. /**
  34893. * The sun's angle of elevation above the horizon, ranging from 0 to 90 degrees.
  34894. *
  34895. * @default 45
  34896. *
  34897. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterShadedReliefRenderer.html#altitude)
  34898. */
  34899. altitude: number;
  34900. /**
  34901. * The sun's relative position along the horizon, ranging from 0 to 360 degrees.
  34902. *
  34903. * @default 315
  34904. *
  34905. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterShadedReliefRenderer.html#azimuth)
  34906. */
  34907. azimuth: number;
  34908. /**
  34909. * The color ramp to display the shaded relief.
  34910. *
  34911. * @default null
  34912. *
  34913. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterShadedReliefRenderer.html#colorRamp)
  34914. */
  34915. colorRamp: ColorRamp;
  34916. /**
  34917. * The type of hillshading being applied on the elevation surface.
  34918. *
  34919. * @default "traditional"
  34920. *
  34921. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterShadedReliefRenderer.html#hillshadeType)
  34922. */
  34923. hillshadeType: "traditional" | "multi-directional";
  34924. /**
  34925. * Pixel size factor accounts for changes in scale as the viewer zooms in and out on the map display.
  34926. *
  34927. * @default 0.024
  34928. *
  34929. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterShadedReliefRenderer.html#pixelSizeFactor)
  34930. */
  34931. pixelSizeFactor: number;
  34932. /**
  34933. * Pixel Size Power accounts for the altitude changes (or scale) as the viewer zooms in and out on the map display.
  34934. *
  34935. * @default 0.664
  34936. *
  34937. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterShadedReliefRenderer.html#pixelSizePower)
  34938. */
  34939. pixelSizePower: number;
  34940. /**
  34941. * Applies a constant or adjusted z-factor based on resolution changes.
  34942. *
  34943. * @default none
  34944. *
  34945. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterShadedReliefRenderer.html#scalingType)
  34946. */
  34947. scalingType: "none" | "adjusted";
  34948. /**
  34949. * The type of Renderer.
  34950. *
  34951. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterShadedReliefRenderer.html#type)
  34952. */
  34953. readonly type: "raster-shaded-relief";
  34954. /**
  34955. * A ratio of z unit / xy unit, with optional exaggeration factored in.
  34956. *
  34957. * @default 1
  34958. *
  34959. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterShadedReliefRenderer.html#zFactor)
  34960. */
  34961. zFactor: number;
  34962. /**
  34963. * RasterShadedReliefRenderer produces a grayscale or colored 3D representation of the surface on an [ImageryLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html) or [ImageryTileLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html), with the sun's relative position taken into account for shading the image.
  34964. *
  34965. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterShadedReliefRenderer.html)
  34966. */
  34967. constructor(properties?: RasterShadedReliefRendererProperties);
  34968. /**
  34969. * Creates a deep clone of the renderer.
  34970. *
  34971. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterShadedReliefRenderer.html#clone)
  34972. */
  34973. clone(): RasterShadedReliefRenderer;
  34974. static fromJSON(json: any): RasterShadedReliefRenderer;
  34975. }
  34976. /** @deprecated Import the RasterShadedReliefRenderer class instead. */
  34977. export type RasterShadedReliefRendererConstructor = typeof RasterShadedReliefRenderer;
  34978. interface RasterShadedReliefRendererProperties {
  34979. /**
  34980. * The sun's angle of elevation above the horizon, ranging from 0 to 90 degrees.
  34981. *
  34982. * @default 45
  34983. *
  34984. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterShadedReliefRenderer.html#altitude)
  34985. */
  34986. altitude?: number;
  34987. /**
  34988. * The sun's relative position along the horizon, ranging from 0 to 360 degrees.
  34989. *
  34990. * @default 315
  34991. *
  34992. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterShadedReliefRenderer.html#azimuth)
  34993. */
  34994. azimuth?: number;
  34995. /**
  34996. * The color ramp to display the shaded relief.
  34997. *
  34998. * @default null
  34999. *
  35000. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterShadedReliefRenderer.html#colorRamp)
  35001. */
  35002. colorRamp?: ColorRampProperties;
  35003. /**
  35004. * The type of hillshading being applied on the elevation surface.
  35005. *
  35006. * @default "traditional"
  35007. *
  35008. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterShadedReliefRenderer.html#hillshadeType)
  35009. */
  35010. hillshadeType?: "traditional" | "multi-directional";
  35011. /**
  35012. * Pixel size factor accounts for changes in scale as the viewer zooms in and out on the map display.
  35013. *
  35014. * @default 0.024
  35015. *
  35016. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterShadedReliefRenderer.html#pixelSizeFactor)
  35017. */
  35018. pixelSizeFactor?: number;
  35019. /**
  35020. * Pixel Size Power accounts for the altitude changes (or scale) as the viewer zooms in and out on the map display.
  35021. *
  35022. * @default 0.664
  35023. *
  35024. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterShadedReliefRenderer.html#pixelSizePower)
  35025. */
  35026. pixelSizePower?: number;
  35027. /**
  35028. * Applies a constant or adjusted z-factor based on resolution changes.
  35029. *
  35030. * @default none
  35031. *
  35032. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterShadedReliefRenderer.html#scalingType)
  35033. */
  35034. scalingType?: "none" | "adjusted";
  35035. /**
  35036. * A ratio of z unit / xy unit, with optional exaggeration factored in.
  35037. *
  35038. * @default 1
  35039. *
  35040. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterShadedReliefRenderer.html#zFactor)
  35041. */
  35042. zFactor?: number;
  35043. }
  35044. export interface RasterStretchRenderer extends Accessor, JSONSupport {
  35045. }
  35046. export class RasterStretchRenderer {
  35047. /**
  35048. * The stretched values are mapped to this specified color ramp.
  35049. *
  35050. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#colorRamp)
  35051. */
  35052. colorRamp: ColorRamp;
  35053. /**
  35054. * The computeGamma automatically calculates best gamma value to render exported image based on empirical model.
  35055. *
  35056. * @default false
  35057. *
  35058. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#computeGamma)
  35059. */
  35060. computeGamma: boolean;
  35061. /**
  35062. * When Dynamic Range Adjustment is `true`, the statistics based on the current display extent are calculated as you zoom and pan around the image.
  35063. *
  35064. * @default false
  35065. *
  35066. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#dynamicRangeAdjustment)
  35067. */
  35068. dynamicRangeAdjustment: boolean;
  35069. /**
  35070. * The gamma values to be used if [useGamma](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#useGamma) is set to `true`.
  35071. *
  35072. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#gamma)
  35073. */
  35074. gamma: number[];
  35075. /**
  35076. * Applicable when [stretchType](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#stretchType) is `percent-clip`.
  35077. *
  35078. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#maxPercent)
  35079. */
  35080. maxPercent: number;
  35081. /**
  35082. * Applicable when [stretchType](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#stretchType) is `percent-clip`.
  35083. *
  35084. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#minPercent)
  35085. */
  35086. minPercent: number;
  35087. /**
  35088. * Applicable when [stretchType](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#stretchType) is `standard-deviation`.
  35089. *
  35090. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#numberOfStandardDeviations)
  35091. */
  35092. numberOfStandardDeviations: number;
  35093. /**
  35094. * The outputMax denotes the output maximum, which is the highest pixel value.
  35095. *
  35096. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#outputMax)
  35097. */
  35098. outputMax: number;
  35099. /**
  35100. * The outputMin denotes the output minimum, which is the lowest pixel value.
  35101. *
  35102. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#outputMin)
  35103. */
  35104. outputMin: number;
  35105. /**
  35106. * The sigmoid strength level determines how much of the sigmoidal function will be used in the stretch.
  35107. *
  35108. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#sigmoidStrengthLevel)
  35109. */
  35110. sigmoidStrengthLevel: number;
  35111. /**
  35112. * The input statistics can be specified through the statistics property.
  35113. *
  35114. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#statistics)
  35115. */
  35116. statistics: number[][] | any[] | RasterStretchRendererStatistics;
  35117. /**
  35118. * The stretch type defines a histogram stretch that will be applied to the rasters to enhance their appearance.
  35119. *
  35120. * @default none
  35121. *
  35122. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#stretchType)
  35123. */
  35124. stretchType: "none" | "standard-deviation" | "histogram-equalization" | "min-max" | "percent-clip" | "sigmoid";
  35125. /**
  35126. * The type of Renderer.
  35127. *
  35128. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#type)
  35129. */
  35130. readonly type: "raster-stretch";
  35131. /**
  35132. * Denotes whether the [gamma](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#gamma) value should be used.
  35133. *
  35134. * @default false
  35135. *
  35136. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#useGamma)
  35137. */
  35138. useGamma: boolean;
  35139. /**
  35140. * RasterStretchRenderer defines the symbology with a gradual ramp of colors for each pixel in a [ImageryLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html), [ImageryTileLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html), and [WCSLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WCSLayer.html) based on the pixel value.
  35141. *
  35142. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html)
  35143. */
  35144. constructor(properties?: RasterStretchRendererProperties);
  35145. /**
  35146. * Creates a deep clone of the renderer.
  35147. *
  35148. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#clone)
  35149. */
  35150. clone(): RasterStretchRenderer;
  35151. static fromJSON(json: any): RasterStretchRenderer;
  35152. }
  35153. /** @deprecated Import the RasterStretchRenderer class instead. */
  35154. export type RasterStretchRendererConstructor = typeof RasterStretchRenderer;
  35155. interface RasterStretchRendererProperties {
  35156. /**
  35157. * The stretched values are mapped to this specified color ramp.
  35158. *
  35159. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#colorRamp)
  35160. */
  35161. colorRamp?: ColorRampProperties;
  35162. /**
  35163. * The computeGamma automatically calculates best gamma value to render exported image based on empirical model.
  35164. *
  35165. * @default false
  35166. *
  35167. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#computeGamma)
  35168. */
  35169. computeGamma?: boolean;
  35170. /**
  35171. * When Dynamic Range Adjustment is `true`, the statistics based on the current display extent are calculated as you zoom and pan around the image.
  35172. *
  35173. * @default false
  35174. *
  35175. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#dynamicRangeAdjustment)
  35176. */
  35177. dynamicRangeAdjustment?: boolean;
  35178. /**
  35179. * The gamma values to be used if [useGamma](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#useGamma) is set to `true`.
  35180. *
  35181. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#gamma)
  35182. */
  35183. gamma?: number[];
  35184. /**
  35185. * Applicable when [stretchType](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#stretchType) is `percent-clip`.
  35186. *
  35187. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#maxPercent)
  35188. */
  35189. maxPercent?: number;
  35190. /**
  35191. * Applicable when [stretchType](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#stretchType) is `percent-clip`.
  35192. *
  35193. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#minPercent)
  35194. */
  35195. minPercent?: number;
  35196. /**
  35197. * Applicable when [stretchType](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#stretchType) is `standard-deviation`.
  35198. *
  35199. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#numberOfStandardDeviations)
  35200. */
  35201. numberOfStandardDeviations?: number;
  35202. /**
  35203. * The outputMax denotes the output maximum, which is the highest pixel value.
  35204. *
  35205. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#outputMax)
  35206. */
  35207. outputMax?: number;
  35208. /**
  35209. * The outputMin denotes the output minimum, which is the lowest pixel value.
  35210. *
  35211. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#outputMin)
  35212. */
  35213. outputMin?: number;
  35214. /**
  35215. * The sigmoid strength level determines how much of the sigmoidal function will be used in the stretch.
  35216. *
  35217. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#sigmoidStrengthLevel)
  35218. */
  35219. sigmoidStrengthLevel?: number;
  35220. /**
  35221. * The input statistics can be specified through the statistics property.
  35222. *
  35223. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#statistics)
  35224. */
  35225. statistics?: number[][] | any[] | RasterStretchRendererStatistics;
  35226. /**
  35227. * The stretch type defines a histogram stretch that will be applied to the rasters to enhance their appearance.
  35228. *
  35229. * @default none
  35230. *
  35231. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#stretchType)
  35232. */
  35233. stretchType?: "none" | "standard-deviation" | "histogram-equalization" | "min-max" | "percent-clip" | "sigmoid";
  35234. /**
  35235. * Denotes whether the [gamma](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#gamma) value should be used.
  35236. *
  35237. * @default false
  35238. *
  35239. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#useGamma)
  35240. */
  35241. useGamma?: boolean;
  35242. }
  35243. export interface RasterStretchRendererStatistics {
  35244. /**
  35245. * The minimum pixel value.
  35246. *
  35247. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#statistics)
  35248. */
  35249. min: number;
  35250. /**
  35251. * The maximum pixel value.
  35252. *
  35253. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#statistics)
  35254. */
  35255. max: number;
  35256. /**
  35257. * The average pixel value.
  35258. *
  35259. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#statistics)
  35260. */
  35261. avg?: number;
  35262. /**
  35263. * The standard deviation of the pixel value.
  35264. *
  35265. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html#statistics)
  35266. */
  35267. stddev?: number;
  35268. }
  35269. export interface Renderer extends Accessor, JSONSupport {
  35270. }
  35271. export class Renderer {
  35272. /**
  35273. * Authoring metadata only included in renderers generated from one of the Smart Mapping creator methods, such as [sizeRendererCreator.createContinuousRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer) or [colorRendererCreator.createContinuousRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer).
  35274. *
  35275. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-Renderer.html#authoringInfo)
  35276. */
  35277. authoringInfo: AuthoringInfo;
  35278. /**
  35279. * The renderer type.
  35280. *
  35281. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-Renderer.html#type)
  35282. */
  35283. readonly type: "class-breaks" | "dictionary" | "dot-density" | "heatmap" | "pie-chart" | "simple" | "unique-value";
  35284. /**
  35285. * Renderers define how to visually represent each feature in one of the following layer types:
  35286. *
  35287. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-Renderer.html)
  35288. */
  35289. constructor(properties?: RendererProperties);
  35290. static fromJSON(json: any): Renderer;
  35291. }
  35292. /** @deprecated Import the Renderer class instead. */
  35293. export type RendererConstructor = typeof Renderer;
  35294. interface RendererProperties {
  35295. /**
  35296. * Authoring metadata only included in renderers generated from one of the Smart Mapping creator methods, such as [sizeRendererCreator.createContinuousRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer) or [colorRendererCreator.createContinuousRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer).
  35297. *
  35298. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-Renderer.html#authoringInfo)
  35299. */
  35300. authoringInfo?: AuthoringInfoProperties;
  35301. }
  35302. export interface SimpleRenderer extends Renderer, VisualVariablesMixin {
  35303. }
  35304. export class SimpleRenderer {
  35305. /**
  35306. * The label for the renderer.
  35307. *
  35308. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-SimpleRenderer.html#label)
  35309. */
  35310. label: string;
  35311. /**
  35312. * The symbol used by the renderer to visualize all features in the layer.
  35313. *
  35314. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-SimpleRenderer.html#symbol)
  35315. */
  35316. symbol: Symbol;
  35317. /**
  35318. * The type of renderer.
  35319. *
  35320. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-SimpleRenderer.html#type)
  35321. */
  35322. readonly type: "simple";
  35323. /**
  35324. * SimpleRenderer renders all features in a [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html) with one [Symbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol.html).
  35325. *
  35326. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-SimpleRenderer.html)
  35327. */
  35328. constructor(properties?: SimpleRendererProperties);
  35329. /**
  35330. * Creates a deep clone of the renderer.
  35331. *
  35332. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-SimpleRenderer.html#clone)
  35333. */
  35334. clone(): SimpleRenderer;
  35335. static fromJSON(json: any): SimpleRenderer;
  35336. }
  35337. /** @deprecated Import the SimpleRenderer class instead. */
  35338. export type SimpleRendererConstructor = typeof SimpleRenderer;
  35339. interface SimpleRendererProperties extends RendererProperties, VisualVariablesMixinProperties {
  35340. /**
  35341. * The label for the renderer.
  35342. *
  35343. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-SimpleRenderer.html#label)
  35344. */
  35345. label?: string;
  35346. /**
  35347. * The symbol used by the renderer to visualize all features in the layer.
  35348. *
  35349. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-SimpleRenderer.html#symbol)
  35350. */
  35351. symbol?: SymbolProperties;
  35352. }
  35353. export interface AttributeColorInfo extends Accessor, JSONSupport {
  35354. }
  35355. export class AttributeColorInfo {
  35356. /**
  35357. * The color used to render dots representing the given [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AttributeColorInfo.html#field) in a [DotDensityRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html) or the color used to represent a pie chart slice in a [PieChartRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html).
  35358. *
  35359. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AttributeColorInfo.html#color)
  35360. */
  35361. color: Color;
  35362. /**
  35363. * The name of the numeric attribute field represented by the given [color](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AttributeColorInfo.html#color).
  35364. *
  35365. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AttributeColorInfo.html#field)
  35366. */
  35367. field: string;
  35368. /**
  35369. * The label used to describe the field or attribute in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) widget.
  35370. *
  35371. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AttributeColorInfo.html#label)
  35372. */
  35373. label: string;
  35374. /**
  35375. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  35376. *
  35377. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AttributeColorInfo.html#valueExpression)
  35378. */
  35379. valueExpression: string;
  35380. /**
  35381. * The title identifying and describing the associated [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression as defined in the [valueExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AttributeColorInfo.html#valueExpression) property.
  35382. *
  35383. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AttributeColorInfo.html#valueExpressionTitle)
  35384. */
  35385. valueExpressionTitle: string;
  35386. /**
  35387. * Defines colors for dots in a [DotDensityRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html#attributes), or colors for pie chart slices in a [PieChartRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html#attributes).
  35388. *
  35389. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AttributeColorInfo.html)
  35390. */
  35391. constructor(properties?: AttributeColorInfoProperties);
  35392. /**
  35393. * Creates a deep clone of this object.
  35394. *
  35395. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AttributeColorInfo.html#clone)
  35396. */
  35397. clone(): AttributeColorInfo;
  35398. static fromJSON(json: any): AttributeColorInfo;
  35399. }
  35400. /** @deprecated Import the AttributeColorInfo class instead. */
  35401. export type AttributeColorInfoConstructor = typeof AttributeColorInfo;
  35402. interface AttributeColorInfoProperties {
  35403. /**
  35404. * The color used to render dots representing the given [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AttributeColorInfo.html#field) in a [DotDensityRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html) or the color used to represent a pie chart slice in a [PieChartRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html).
  35405. *
  35406. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AttributeColorInfo.html#color)
  35407. */
  35408. color?: Color | number[] | string;
  35409. /**
  35410. * The name of the numeric attribute field represented by the given [color](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AttributeColorInfo.html#color).
  35411. *
  35412. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AttributeColorInfo.html#field)
  35413. */
  35414. field?: string;
  35415. /**
  35416. * The label used to describe the field or attribute in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) widget.
  35417. *
  35418. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AttributeColorInfo.html#label)
  35419. */
  35420. label?: string;
  35421. /**
  35422. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  35423. *
  35424. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AttributeColorInfo.html#valueExpression)
  35425. */
  35426. valueExpression?: string;
  35427. /**
  35428. * The title identifying and describing the associated [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression as defined in the [valueExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AttributeColorInfo.html#valueExpression) property.
  35429. *
  35430. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AttributeColorInfo.html#valueExpressionTitle)
  35431. */
  35432. valueExpressionTitle?: string;
  35433. }
  35434. export interface AuthoringInfo extends Accessor, JSONSupport {
  35435. }
  35436. export class AuthoringInfo {
  35437. /**
  35438. * Indicates which classification method was used if a classed color or classed size renderer was generated using one of the Smart Mapping functions.
  35439. *
  35440. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#classificationMethod)
  35441. */
  35442. classificationMethod: | "equal-interval"
  35443. | "defined-interval"
  35444. | "manual"
  35445. | "natural-breaks"
  35446. | "quantile"
  35447. | "standard-deviation";
  35448. /**
  35449. * Indicates the color ramp was used to create the symbols for Unique Value or Class Breaks renderer for Imagery Layer.
  35450. *
  35451. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#colorRamp)
  35452. */
  35453. colorRamp: ColorRamp;
  35454. /**
  35455. * Only applicable to [HeatmapRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html) created with the [heatmap renderer creator](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html).
  35456. *
  35457. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#fadeRatio)
  35458. */
  35459. fadeRatio: number;
  35460. /**
  35461. * A numeric field used for generating a [relationship renderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html) along with [field2](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#field2).
  35462. *
  35463. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#field1)
  35464. */
  35465. field1: AuthoringInfoField1;
  35466. /**
  35467. * A numeric field used for generating a [relationship renderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html) along with [field1](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#field1).
  35468. *
  35469. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#field2)
  35470. */
  35471. field2: AuthoringInfoField2;
  35472. /**
  35473. * An array of string values representing field names used for creating a [predominance renderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html).
  35474. *
  35475. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#fields)
  35476. */
  35477. fields: string[];
  35478. /**
  35479. * Only applicable to flow renderers.
  35480. *
  35481. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#flowTheme)
  35482. */
  35483. flowTheme: "flow-line" | "wave-front";
  35484. /**
  35485. * The focus of a [relationship renderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html).
  35486. *
  35487. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#focus)
  35488. */
  35489. focus: string;
  35490. /**
  35491. * Indicates whether the renderer was created internally by the JS API's rendering engine for default [FeatureReductionCluster](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html) visualizations.
  35492. *
  35493. * @default false
  35494. *
  35495. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#isAutoGenerated)
  35496. */
  35497. isAutoGenerated: boolean;
  35498. /**
  35499. * **Only applicable to renderer used in web scenes.** Indicates the unit used in real-world sizes.
  35500. *
  35501. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#lengthUnit)
  35502. */
  35503. lengthUnit: | "inches"
  35504. | "feet"
  35505. | "yards"
  35506. | "miles"
  35507. | "nautical-miles"
  35508. | "millimeters"
  35509. | "centimeters"
  35510. | "decimeters"
  35511. | "meters"
  35512. | "kilometers"
  35513. | "decimal-degrees";
  35514. /**
  35515. * Indicates the value of the upper handle if a slider was used to generate the dot value for dot density renderer.
  35516. *
  35517. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#maxSliderValue)
  35518. */
  35519. maxSliderValue: number;
  35520. /**
  35521. * Indicates the value of the lower handle if a slider was used to generate the dot value for dot density renderer.
  35522. *
  35523. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#minSliderValue)
  35524. */
  35525. minSliderValue: number;
  35526. /**
  35527. * The number of classes used to classify each field of a [relationship renderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html).
  35528. *
  35529. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#numClasses)
  35530. */
  35531. numClasses: number;
  35532. /**
  35533. * Indicates the standard deviation interval for each stop in a classed color or classed size renderer that was generated using the `standard-deviation` classification method.
  35534. *
  35535. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#standardDeviationInterval)
  35536. */
  35537. standardDeviationInterval: number;
  35538. /**
  35539. * Only for renderers of type `univariate-color-size` with an `above-and-below` [univariateTheme](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#univariateTheme).
  35540. *
  35541. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#statistics)
  35542. */
  35543. statistics: AuthoringInfoStatistics;
  35544. /**
  35545. * Indicates the renderer type generated from one of the Smart Mapping functions.
  35546. *
  35547. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#type)
  35548. */
  35549. type: | "class-breaks-size"
  35550. | "class-breaks-color"
  35551. | "classed-color"
  35552. | "classed-size"
  35553. | "flow"
  35554. | "predominance"
  35555. | "relationship"
  35556. | "univariate-color-size";
  35557. /**
  35558. * Only applicable to [univariateColorSize](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html) renderers with an `above-and-below` [univariateTheme](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#univariateTheme).
  35559. *
  35560. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#univariateSymbolStyle)
  35561. */
  35562. univariateSymbolStyle: | "caret"
  35563. | "circle-caret"
  35564. | "arrow"
  35565. | "circle-arrow"
  35566. | "plus-minus"
  35567. | "circle-plus-minus"
  35568. | "square"
  35569. | "circle"
  35570. | "triangle"
  35571. | "happy-sad"
  35572. | "thumb"
  35573. | "custom";
  35574. /**
  35575. * Only applicable to [univariateColorSize](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html) renderers.
  35576. *
  35577. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#univariateTheme)
  35578. */
  35579. univariateTheme: "high-to-low" | "above" | "below" | "above-and-below";
  35580. /**
  35581. * Contains authoring properties of visual variables generated from one of the Smart Mapping methods or sliders.
  35582. *
  35583. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#visualVariables)
  35584. */
  35585. visualVariables: AuthoringInfoVisualVariable[];
  35586. /**
  35587. * Authoring information related to generating renderers and visual variables with the Smart Mapping methods.
  35588. *
  35589. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html)
  35590. */
  35591. constructor(properties?: AuthoringInfoProperties);
  35592. /**
  35593. * Creates a deep clone of the instance.
  35594. *
  35595. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#clone)
  35596. */
  35597. clone(): AuthoringInfo;
  35598. static fromJSON(json: any): AuthoringInfo;
  35599. }
  35600. /** @deprecated Import the AuthoringInfo class instead. */
  35601. export type AuthoringInfoConstructor = typeof AuthoringInfo;
  35602. interface AuthoringInfoProperties {
  35603. /**
  35604. * Indicates which classification method was used if a classed color or classed size renderer was generated using one of the Smart Mapping functions.
  35605. *
  35606. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#classificationMethod)
  35607. */
  35608. classificationMethod?: | "equal-interval"
  35609. | "defined-interval"
  35610. | "manual"
  35611. | "natural-breaks"
  35612. | "quantile"
  35613. | "standard-deviation";
  35614. /**
  35615. * Indicates the color ramp was used to create the symbols for Unique Value or Class Breaks renderer for Imagery Layer.
  35616. *
  35617. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#colorRamp)
  35618. */
  35619. colorRamp?: ColorRampProperties;
  35620. /**
  35621. * Only applicable to [HeatmapRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html) created with the [heatmap renderer creator](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html).
  35622. *
  35623. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#fadeRatio)
  35624. */
  35625. fadeRatio?: number;
  35626. /**
  35627. * A numeric field used for generating a [relationship renderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html) along with [field2](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#field2).
  35628. *
  35629. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#field1)
  35630. */
  35631. field1?: AuthoringInfoField1;
  35632. /**
  35633. * A numeric field used for generating a [relationship renderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html) along with [field1](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#field1).
  35634. *
  35635. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#field2)
  35636. */
  35637. field2?: AuthoringInfoField2;
  35638. /**
  35639. * An array of string values representing field names used for creating a [predominance renderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html).
  35640. *
  35641. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#fields)
  35642. */
  35643. fields?: string[];
  35644. /**
  35645. * Only applicable to flow renderers.
  35646. *
  35647. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#flowTheme)
  35648. */
  35649. flowTheme?: "flow-line" | "wave-front";
  35650. /**
  35651. * The focus of a [relationship renderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html).
  35652. *
  35653. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#focus)
  35654. */
  35655. focus?: string;
  35656. /**
  35657. * Indicates whether the renderer was created internally by the JS API's rendering engine for default [FeatureReductionCluster](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html) visualizations.
  35658. *
  35659. * @default false
  35660. *
  35661. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#isAutoGenerated)
  35662. */
  35663. isAutoGenerated?: boolean;
  35664. /**
  35665. * **Only applicable to renderer used in web scenes.** Indicates the unit used in real-world sizes.
  35666. *
  35667. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#lengthUnit)
  35668. */
  35669. lengthUnit?: | "inches"
  35670. | "feet"
  35671. | "yards"
  35672. | "miles"
  35673. | "nautical-miles"
  35674. | "millimeters"
  35675. | "centimeters"
  35676. | "decimeters"
  35677. | "meters"
  35678. | "kilometers"
  35679. | "decimal-degrees";
  35680. /**
  35681. * Indicates the value of the upper handle if a slider was used to generate the dot value for dot density renderer.
  35682. *
  35683. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#maxSliderValue)
  35684. */
  35685. maxSliderValue?: number;
  35686. /**
  35687. * Indicates the value of the lower handle if a slider was used to generate the dot value for dot density renderer.
  35688. *
  35689. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#minSliderValue)
  35690. */
  35691. minSliderValue?: number;
  35692. /**
  35693. * The number of classes used to classify each field of a [relationship renderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html).
  35694. *
  35695. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#numClasses)
  35696. */
  35697. numClasses?: number;
  35698. /**
  35699. * Indicates the standard deviation interval for each stop in a classed color or classed size renderer that was generated using the `standard-deviation` classification method.
  35700. *
  35701. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#standardDeviationInterval)
  35702. */
  35703. standardDeviationInterval?: number;
  35704. /**
  35705. * Only for renderers of type `univariate-color-size` with an `above-and-below` [univariateTheme](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#univariateTheme).
  35706. *
  35707. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#statistics)
  35708. */
  35709. statistics?: AuthoringInfoStatistics;
  35710. /**
  35711. * Indicates the renderer type generated from one of the Smart Mapping functions.
  35712. *
  35713. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#type)
  35714. */
  35715. type?: | "class-breaks-size"
  35716. | "class-breaks-color"
  35717. | "classed-color"
  35718. | "classed-size"
  35719. | "flow"
  35720. | "predominance"
  35721. | "relationship"
  35722. | "univariate-color-size";
  35723. /**
  35724. * Only applicable to [univariateColorSize](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html) renderers with an `above-and-below` [univariateTheme](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#univariateTheme).
  35725. *
  35726. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#univariateSymbolStyle)
  35727. */
  35728. univariateSymbolStyle?: | "caret"
  35729. | "circle-caret"
  35730. | "arrow"
  35731. | "circle-arrow"
  35732. | "plus-minus"
  35733. | "circle-plus-minus"
  35734. | "square"
  35735. | "circle"
  35736. | "triangle"
  35737. | "happy-sad"
  35738. | "thumb"
  35739. | "custom";
  35740. /**
  35741. * Only applicable to [univariateColorSize](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html) renderers.
  35742. *
  35743. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#univariateTheme)
  35744. */
  35745. univariateTheme?: "high-to-low" | "above" | "below" | "above-and-below";
  35746. /**
  35747. * Contains authoring properties of visual variables generated from one of the Smart Mapping methods or sliders.
  35748. *
  35749. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#visualVariables)
  35750. */
  35751. visualVariables?: AuthoringInfoVisualVariableProperties[];
  35752. }
  35753. export interface AuthoringInfoField1 {
  35754. /**
  35755. * The name of a numeric field.
  35756. *
  35757. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#field1)
  35758. */
  35759. field: string;
  35760. /**
  35761. * The name of a numeric field used to normalize the given `field`.
  35762. *
  35763. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#field1)
  35764. */
  35765. normalizationField?: string;
  35766. /**
  35767. * Describes the class breaks generated for this field.
  35768. *
  35769. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#field1)
  35770. */
  35771. classBreakInfos?: AuthoringInfoField1ClassBreakInfos[];
  35772. /**
  35773. * The label used to describe the field or variable in the legend.
  35774. *
  35775. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#field1)
  35776. */
  35777. label?: string;
  35778. }
  35779. export interface AuthoringInfoField1ClassBreakInfos {
  35780. /**
  35781. * The maximum bound of values to visualize in the given field.
  35782. *
  35783. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#field1)
  35784. */
  35785. maxValue?: number;
  35786. /**
  35787. * The minimum bound of values to visualize in the given field.
  35788. *
  35789. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#field1)
  35790. */
  35791. minValue?: number;
  35792. }
  35793. export interface AuthoringInfoField2 {
  35794. /**
  35795. * The name of a numeric field.
  35796. *
  35797. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#field2)
  35798. */
  35799. field: string;
  35800. /**
  35801. * The name of a numeric field used to normalize the given `field`.
  35802. *
  35803. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#field2)
  35804. */
  35805. normalizationField?: string;
  35806. /**
  35807. * Describes the class breaks generated for this field.
  35808. *
  35809. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#field2)
  35810. */
  35811. classBreakInfos?: AuthoringInfoField2ClassBreakInfos[];
  35812. /**
  35813. * The label used to describe the field or variable in the legend.
  35814. *
  35815. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#field2)
  35816. */
  35817. label?: string;
  35818. }
  35819. export interface AuthoringInfoField2ClassBreakInfos {
  35820. /**
  35821. * The maximum bound of values to visualize in the given field.
  35822. *
  35823. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#field2)
  35824. */
  35825. maxValue?: number;
  35826. /**
  35827. * The minimum bound of values to visualize in the given field.
  35828. *
  35829. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#field2)
  35830. */
  35831. minValue?: number;
  35832. }
  35833. export interface AuthoringInfoStatistics {
  35834. /**
  35835. * The maximum data value of the attribute represented by the renderer.
  35836. *
  35837. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#statistics)
  35838. */
  35839. max: number;
  35840. /**
  35841. * The minimum data value of the attribute represented by the renderer.
  35842. *
  35843. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfo.html#statistics)
  35844. */
  35845. min: number;
  35846. }
  35847. export interface AuthoringInfoVisualVariable extends Accessor, JSONSupport {
  35848. }
  35849. export class AuthoringInfoVisualVariable {
  35850. /**
  35851. * If an age or timeline renderer was generated, indicates the end time of the visualization.
  35852. *
  35853. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfoVisualVariable.html#endTime)
  35854. */
  35855. endTime: string | number;
  35856. /**
  35857. * Indicates the field name used for generating the data-driven visualization.
  35858. *
  35859. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfoVisualVariable.html#field)
  35860. */
  35861. field: string;
  35862. /**
  35863. * Indicates the value of the upper handle if a slider was used to generate the visual variable.
  35864. *
  35865. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfoVisualVariable.html#maxSliderValue)
  35866. */
  35867. maxSliderValue: number;
  35868. /**
  35869. * Indicates the value of the lower handle if a slider was used to generate the visual variable.
  35870. *
  35871. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfoVisualVariable.html#minSliderValue)
  35872. */
  35873. minSliderValue: number;
  35874. /**
  35875. * If an age or timeline renderer was generated, indicates the start time of the visualization.
  35876. *
  35877. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfoVisualVariable.html#startTime)
  35878. */
  35879. startTime: string | number;
  35880. /**
  35881. * If the UI offers the option to display values based on a ratio or percentage, this indicates which selection was made.
  35882. *
  35883. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfoVisualVariable.html#style)
  35884. */
  35885. style: "percent" | "percent-of-total" | "ratio";
  35886. /**
  35887. * Indicates the theme selected by the user when generating a renderer or visual variable with one of the Smart Mapping functions.
  35888. *
  35889. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfoVisualVariable.html#theme)
  35890. */
  35891. theme: "above" | "below" | "above-and-below" | "centered-on" | "extremes" | "high-to-low";
  35892. /**
  35893. * The type of visual variable generated.
  35894. *
  35895. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfoVisualVariable.html#type)
  35896. */
  35897. type: "color" | "size" | "opacity";
  35898. /**
  35899. * If an age or timeline renderer was generated, indicates the time units used.
  35900. *
  35901. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfoVisualVariable.html#units)
  35902. */
  35903. units: "seconds" | "minutes" | "hours" | "days" | "months" | "years";
  35904. /**
  35905. * Contains authoring properties of visual variables generated from one of the Smart Mapping methods or sliders.
  35906. *
  35907. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfoVisualVariable.html)
  35908. */
  35909. constructor(properties?: AuthoringInfoVisualVariableProperties);
  35910. /**
  35911. * Creates a deep clone of the instance.
  35912. *
  35913. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfoVisualVariable.html#clone)
  35914. */
  35915. clone(): AuthoringInfoVisualVariable;
  35916. static fromJSON(json: any): AuthoringInfoVisualVariable;
  35917. }
  35918. /** @deprecated Import the AuthoringInfoVisualVariable class instead. */
  35919. export type AuthoringInfoVisualVariableConstructor = typeof AuthoringInfoVisualVariable;
  35920. interface AuthoringInfoVisualVariableProperties {
  35921. /**
  35922. * If an age or timeline renderer was generated, indicates the end time of the visualization.
  35923. *
  35924. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfoVisualVariable.html#endTime)
  35925. */
  35926. endTime?: string | number;
  35927. /**
  35928. * Indicates the field name used for generating the data-driven visualization.
  35929. *
  35930. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfoVisualVariable.html#field)
  35931. */
  35932. field?: string;
  35933. /**
  35934. * Indicates the value of the upper handle if a slider was used to generate the visual variable.
  35935. *
  35936. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfoVisualVariable.html#maxSliderValue)
  35937. */
  35938. maxSliderValue?: number;
  35939. /**
  35940. * Indicates the value of the lower handle if a slider was used to generate the visual variable.
  35941. *
  35942. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfoVisualVariable.html#minSliderValue)
  35943. */
  35944. minSliderValue?: number;
  35945. /**
  35946. * If an age or timeline renderer was generated, indicates the start time of the visualization.
  35947. *
  35948. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfoVisualVariable.html#startTime)
  35949. */
  35950. startTime?: string | number;
  35951. /**
  35952. * If the UI offers the option to display values based on a ratio or percentage, this indicates which selection was made.
  35953. *
  35954. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfoVisualVariable.html#style)
  35955. */
  35956. style?: "percent" | "percent-of-total" | "ratio";
  35957. /**
  35958. * Indicates the theme selected by the user when generating a renderer or visual variable with one of the Smart Mapping functions.
  35959. *
  35960. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfoVisualVariable.html#theme)
  35961. */
  35962. theme?: "above" | "below" | "above-and-below" | "centered-on" | "extremes" | "high-to-low";
  35963. /**
  35964. * The type of visual variable generated.
  35965. *
  35966. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfoVisualVariable.html#type)
  35967. */
  35968. type?: "color" | "size" | "opacity";
  35969. /**
  35970. * If an age or timeline renderer was generated, indicates the time units used.
  35971. *
  35972. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-AuthoringInfoVisualVariable.html#units)
  35973. */
  35974. units?: "seconds" | "minutes" | "hours" | "days" | "months" | "years";
  35975. }
  35976. export interface ClassBreakInfo extends Accessor, JSONSupport {
  35977. }
  35978. export class ClassBreakInfo {
  35979. /**
  35980. * Describes the data represented by the class break.
  35981. *
  35982. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-ClassBreakInfo.html#label)
  35983. */
  35984. label: string;
  35985. /**
  35986. * Sets the maximum value for the class break.
  35987. *
  35988. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-ClassBreakInfo.html#maxValue)
  35989. */
  35990. maxValue: number;
  35991. /**
  35992. * Sets the minimum value for the class break.
  35993. *
  35994. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-ClassBreakInfo.html#minValue)
  35995. */
  35996. minValue: number;
  35997. /**
  35998. * Defines the symbol used to render features with data values that are within the bounds defined for the class break.
  35999. *
  36000. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-ClassBreakInfo.html#symbol)
  36001. */
  36002. symbol: Symbol;
  36003. /**
  36004. * Defines a class break for a [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html).
  36005. *
  36006. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-ClassBreakInfo.html)
  36007. */
  36008. constructor(properties?: ClassBreakInfoProperties);
  36009. /**
  36010. * Creates a deep clone of the class break info object.
  36011. *
  36012. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-ClassBreakInfo.html#clone)
  36013. */
  36014. clone(): ClassBreakInfo;
  36015. static fromJSON(json: any): ClassBreakInfo;
  36016. }
  36017. /** @deprecated Import the ClassBreakInfo class instead. */
  36018. export type ClassBreakInfoConstructor = typeof ClassBreakInfo;
  36019. interface ClassBreakInfoProperties {
  36020. /**
  36021. * Describes the data represented by the class break.
  36022. *
  36023. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-ClassBreakInfo.html#label)
  36024. */
  36025. label?: string;
  36026. /**
  36027. * Sets the maximum value for the class break.
  36028. *
  36029. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-ClassBreakInfo.html#maxValue)
  36030. */
  36031. maxValue?: number;
  36032. /**
  36033. * Sets the minimum value for the class break.
  36034. *
  36035. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-ClassBreakInfo.html#minValue)
  36036. */
  36037. minValue?: number;
  36038. /**
  36039. * Defines the symbol used to render features with data values that are within the bounds defined for the class break.
  36040. *
  36041. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-ClassBreakInfo.html#symbol)
  36042. */
  36043. symbol?: SymbolProperties;
  36044. }
  36045. export interface ColormapInfo extends Accessor, JSONSupport {
  36046. }
  36047. export class ColormapInfo {
  36048. /**
  36049. * The color of a given pixel.
  36050. *
  36051. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-ColormapInfo.html#color)
  36052. */
  36053. color: Color;
  36054. /**
  36055. * The label for a given pixel value and color mapping.
  36056. *
  36057. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-ColormapInfo.html#label)
  36058. */
  36059. label: string;
  36060. /**
  36061. * The raster pixel value.
  36062. *
  36063. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-ColormapInfo.html#value)
  36064. */
  36065. value: number;
  36066. /**
  36067. * The ColormapInfo describes pixel value, RGB colors and labels to color the raster.
  36068. *
  36069. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-ColormapInfo.html)
  36070. */
  36071. constructor(properties?: ColormapInfoProperties);
  36072. static fromJSON(json: any): ColormapInfo;
  36073. }
  36074. /** @deprecated Import the ColormapInfo class instead. */
  36075. export type ColormapInfoConstructor = typeof ColormapInfo;
  36076. interface ColormapInfoProperties {
  36077. /**
  36078. * The color of a given pixel.
  36079. *
  36080. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-ColormapInfo.html#color)
  36081. */
  36082. color?: Color;
  36083. /**
  36084. * The label for a given pixel value and color mapping.
  36085. *
  36086. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-ColormapInfo.html#label)
  36087. */
  36088. label?: string;
  36089. /**
  36090. * The raster pixel value.
  36091. *
  36092. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-ColormapInfo.html#value)
  36093. */
  36094. value?: number;
  36095. }
  36096. export class HeatmapColorStop extends Accessor {
  36097. /**
  36098. * The color to shade a given pixel based on its calculated density [ratio](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-HeatmapColorStop.html#ratio).
  36099. *
  36100. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-HeatmapColorStop.html#color)
  36101. */
  36102. color: Color;
  36103. /**
  36104. * The ratio of a pixel's density value to the [maxDensity](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#maxDensity) of the renderer.
  36105. *
  36106. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-HeatmapColorStop.html#ratio)
  36107. */
  36108. ratio: number;
  36109. /**
  36110. * This class is used to define an array of objects describing the [HeatmapRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html)'s color ramp and associated density value ratios.
  36111. *
  36112. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-HeatmapColorStop.html)
  36113. */
  36114. constructor(properties?: HeatmapColorStopProperties);
  36115. /**
  36116. * Creates a deep clone of the color stop.
  36117. *
  36118. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-HeatmapColorStop.html#clone)
  36119. */
  36120. clone(): HeatmapColorStop;
  36121. }
  36122. /** @deprecated Import the HeatmapColorStop class instead. */
  36123. export type HeatmapColorStopConstructor = typeof HeatmapColorStop;
  36124. interface HeatmapColorStopProperties {
  36125. /**
  36126. * The color to shade a given pixel based on its calculated density [ratio](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-HeatmapColorStop.html#ratio).
  36127. *
  36128. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-HeatmapColorStop.html#color)
  36129. */
  36130. color?: Color | number[] | string;
  36131. /**
  36132. * The ratio of a pixel's density value to the [maxDensity](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#maxDensity) of the renderer.
  36133. *
  36134. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-HeatmapColorStop.html#ratio)
  36135. */
  36136. ratio?: number;
  36137. }
  36138. /**
  36139. * Provides a utility method used to deserialize a JSON renderer object returned by the REST API.
  36140. *
  36141. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-jsonUtils.html)
  36142. */
  36143. interface supportJsonUtils {
  36144. /**
  36145. * Creates a new instance of an appropriate [Renderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-Renderer.html) class and initializes it with values from a JSON object generated from an ArcGIS product.
  36146. *
  36147. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-jsonUtils.html#fromJSON)
  36148. */
  36149. fromJSON(json: any): Renderer;
  36150. }
  36151. export const supportJsonUtils: supportJsonUtils;
  36152. export interface UniqueValue extends Accessor, JSONSupport {
  36153. }
  36154. export class UniqueValue {
  36155. /**
  36156. * Defines a value (possibly in combination with [value2](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValue.html#value2) and [value3](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValue.html#value3)) returned from the field referenced in [UniqueValueRenderer.field](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#field) or returned from an Arcade expression defined in [UniqueValueRenderer.valueExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#valueExpression) to be categorized in a [UniqueValueClass](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueClass.html).
  36157. *
  36158. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValue.html#value)
  36159. */
  36160. value: string | number;
  36161. /**
  36162. * Defines a value returned from the field referenced in [UniqueValueRenderer.field2](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#field2) to be categorized in combination with [value](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValue.html#value) (and possibly [value3](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValue.html#value3)) in a [UniqueValueClass](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueClass.html).
  36163. *
  36164. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValue.html#value2)
  36165. */
  36166. value2: string | number;
  36167. /**
  36168. * Defines a value returned from the field referenced in [UniqueValueRenderer.field3](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#field3) to be categorized in combination with [value](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValue.html#value) and [value2](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValue.html#value2) in a [UniqueValueClass](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueClass.html).
  36169. *
  36170. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValue.html#value3)
  36171. */
  36172. value3: string | number;
  36173. /**
  36174. * Defines combinations of values to expect from up to three fields of categorical data in a [UniqueValueRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html).
  36175. *
  36176. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValue.html)
  36177. */
  36178. constructor(properties?: UniqueValueProperties);
  36179. static fromJSON(json: any): UniqueValue;
  36180. }
  36181. /** @deprecated Import the UniqueValue class instead. */
  36182. export type UniqueValueConstructor = typeof UniqueValue;
  36183. interface UniqueValueProperties {
  36184. /**
  36185. * Defines a value (possibly in combination with [value2](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValue.html#value2) and [value3](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValue.html#value3)) returned from the field referenced in [UniqueValueRenderer.field](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#field) or returned from an Arcade expression defined in [UniqueValueRenderer.valueExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#valueExpression) to be categorized in a [UniqueValueClass](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueClass.html).
  36186. *
  36187. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValue.html#value)
  36188. */
  36189. value?: string | number;
  36190. /**
  36191. * Defines a value returned from the field referenced in [UniqueValueRenderer.field2](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#field2) to be categorized in combination with [value](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValue.html#value) (and possibly [value3](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValue.html#value3)) in a [UniqueValueClass](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueClass.html).
  36192. *
  36193. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValue.html#value2)
  36194. */
  36195. value2?: string | number;
  36196. /**
  36197. * Defines a value returned from the field referenced in [UniqueValueRenderer.field3](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#field3) to be categorized in combination with [value](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValue.html#value) and [value2](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValue.html#value2) in a [UniqueValueClass](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueClass.html).
  36198. *
  36199. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValue.html#value3)
  36200. */
  36201. value3?: string | number;
  36202. }
  36203. export interface UniqueValueClass extends Accessor, JSONSupport {
  36204. }
  36205. export class UniqueValueClass {
  36206. /**
  36207. * Describes the [values](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueClass.html#values) represented by the [symbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueClass.html#symbol) in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  36208. *
  36209. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueClass.html#label)
  36210. */
  36211. label: string;
  36212. /**
  36213. * Defines the symbol used to represent features containing the given [values](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueClass.html#values).
  36214. *
  36215. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueClass.html#symbol)
  36216. */
  36217. symbol: Symbol;
  36218. /**
  36219. * An array of unique values that should be rendered with the same symbol.
  36220. *
  36221. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueClass.html#values)
  36222. */
  36223. values: UniqueValue[];
  36224. /**
  36225. * Defines a category within a [UniqueValueGroup](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueGroup.html).
  36226. *
  36227. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueClass.html)
  36228. */
  36229. constructor(properties?: UniqueValueClassProperties);
  36230. static fromJSON(json: any): UniqueValueClass;
  36231. }
  36232. /** @deprecated Import the UniqueValueClass class instead. */
  36233. export type UniqueValueClassConstructor = typeof UniqueValueClass;
  36234. interface UniqueValueClassProperties {
  36235. /**
  36236. * Describes the [values](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueClass.html#values) represented by the [symbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueClass.html#symbol) in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  36237. *
  36238. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueClass.html#label)
  36239. */
  36240. label?: string;
  36241. /**
  36242. * Defines the symbol used to represent features containing the given [values](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueClass.html#values).
  36243. *
  36244. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueClass.html#symbol)
  36245. */
  36246. symbol?: SymbolProperties;
  36247. /**
  36248. * An array of unique values that should be rendered with the same symbol.
  36249. *
  36250. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueClass.html#values)
  36251. */
  36252. values?: UniqueValueProperties[] | string | number;
  36253. }
  36254. export interface UniqueValueGroup extends Accessor, JSONSupport {
  36255. }
  36256. export class UniqueValueGroup {
  36257. /**
  36258. * Specifies the classes (or unique categories) to group under a [heading](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueGroup.html#heading).
  36259. *
  36260. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueGroup.html#classes)
  36261. */
  36262. classes: UniqueValueClass[];
  36263. /**
  36264. * The heading to be displayed for the group of unique classes in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  36265. *
  36266. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueGroup.html#heading)
  36267. */
  36268. heading: string;
  36269. /**
  36270. * UniqueValueGroup represents a group of [unique value classes](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueClass.html) (i.e.
  36271. *
  36272. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueGroup.html)
  36273. */
  36274. constructor(properties?: UniqueValueGroupProperties);
  36275. static fromJSON(json: any): UniqueValueGroup;
  36276. }
  36277. /** @deprecated Import the UniqueValueGroup class instead. */
  36278. export type UniqueValueGroupConstructor = typeof UniqueValueGroup;
  36279. interface UniqueValueGroupProperties {
  36280. /**
  36281. * Specifies the classes (or unique categories) to group under a [heading](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueGroup.html#heading).
  36282. *
  36283. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueGroup.html#classes)
  36284. */
  36285. classes?: UniqueValueClassProperties[];
  36286. /**
  36287. * The heading to be displayed for the group of unique classes in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  36288. *
  36289. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueGroup.html#heading)
  36290. */
  36291. heading?: string;
  36292. }
  36293. export interface UniqueValueInfo extends Accessor, JSONSupport {
  36294. }
  36295. export class UniqueValueInfo {
  36296. /**
  36297. * Describes the [value](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueInfo.html#value) represented by the [symbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueInfo.html#symbol).
  36298. *
  36299. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueInfo.html#label)
  36300. */
  36301. label: string;
  36302. /**
  36303. * Defines the symbol used to render features with the provided [value](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueInfo.html#value).
  36304. *
  36305. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueInfo.html#symbol)
  36306. */
  36307. symbol: Symbol;
  36308. /**
  36309. * Features with this value will be rendered with the given [symbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueInfo.html#symbol).
  36310. *
  36311. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueInfo.html#value)
  36312. */
  36313. value: string | number;
  36314. /**
  36315. * Defines the categories of a [UniqueValueRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html).
  36316. *
  36317. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueInfo.html)
  36318. */
  36319. constructor(properties?: UniqueValueInfoProperties);
  36320. /**
  36321. * Creates a deep clone of the unique value info object.
  36322. *
  36323. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueInfo.html#clone)
  36324. */
  36325. clone(): UniqueValueInfo;
  36326. static fromJSON(json: any): UniqueValueInfo;
  36327. }
  36328. /** @deprecated Import the UniqueValueInfo class instead. */
  36329. export type UniqueValueInfoConstructor = typeof UniqueValueInfo;
  36330. interface UniqueValueInfoProperties {
  36331. /**
  36332. * Describes the [value](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueInfo.html#value) represented by the [symbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueInfo.html#symbol).
  36333. *
  36334. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueInfo.html#label)
  36335. */
  36336. label?: string;
  36337. /**
  36338. * Defines the symbol used to render features with the provided [value](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueInfo.html#value).
  36339. *
  36340. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueInfo.html#symbol)
  36341. */
  36342. symbol?: SymbolProperties;
  36343. /**
  36344. * Features with this value will be rendered with the given [symbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueInfo.html#symbol).
  36345. *
  36346. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-UniqueValueInfo.html#value)
  36347. */
  36348. value?: string | number;
  36349. }
  36350. export interface UniqueValueRenderer extends Renderer, VisualVariablesMixin {
  36351. }
  36352. export class UniqueValueRenderer {
  36353. /**
  36354. * This property is only relevant When symbolizing polygon features with marker symbols (or [IconSymbol3DLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html)) in the [uniqueValueInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#uniqueValueInfos) of this renderer.
  36355. *
  36356. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#backgroundFillSymbol)
  36357. */
  36358. backgroundFillSymbol: FillSymbol | PolygonSymbol3D;
  36359. /**
  36360. * The label used in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) to describe features assigned the [default symbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#defaultSymbol).
  36361. *
  36362. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#defaultLabel)
  36363. */
  36364. defaultLabel: string;
  36365. /**
  36366. * The symbol used to draw all features with values not referenced by [uniqueValueInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#uniqueValueInfos) or [uniqueValueGroups](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#uniqueValueGroups).
  36367. *
  36368. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#defaultSymbol)
  36369. */
  36370. defaultSymbol: Symbol;
  36371. /**
  36372. * The name of the attribute field containing types or categorical values referenced in [uniqueValueInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#uniqueValueInfos) or [uniqueValueGroups](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#uniqueValueGroups).
  36373. *
  36374. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#field)
  36375. */
  36376. field: string;
  36377. /**
  36378. * Specifies the name of an additional attribute field used to categorize features.
  36379. *
  36380. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#field2)
  36381. */
  36382. field2: string;
  36383. /**
  36384. * Specifies the name of a third attribute field used to categorize features.
  36385. *
  36386. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#field3)
  36387. */
  36388. field3: string;
  36389. /**
  36390. * A string used as a separator between the values in the legend if multiple attribute fields are used to categorize values.
  36391. *
  36392. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#fieldDelimiter)
  36393. */
  36394. fieldDelimiter: string;
  36395. /**
  36396. * An object providing options for displaying the renderer in the Legend.
  36397. *
  36398. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#legendOptions)
  36399. */
  36400. legendOptions: UniqueValueRendererLegendOptions;
  36401. /**
  36402. * The type of Renderer.
  36403. *
  36404. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#type)
  36405. */
  36406. readonly type: "unique-value";
  36407. /**
  36408. * An array of objects defining groups of unique values.
  36409. *
  36410. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#uniqueValueGroups)
  36411. */
  36412. uniqueValueGroups: UniqueValueGroup[];
  36413. /**
  36414. * Defines categories and their corresponding symbols based on a set of values expected from the provided [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#field) or [valueExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#valueExpression).
  36415. *
  36416. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#uniqueValueInfos)
  36417. */
  36418. uniqueValueInfos: UniqueValueInfo[];
  36419. /**
  36420. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  36421. *
  36422. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#valueExpression)
  36423. */
  36424. valueExpression: string;
  36425. /**
  36426. * The title identifying and describing the associated [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression as defined in the [valueExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#valueExpression) property.
  36427. *
  36428. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#valueExpressionTitle)
  36429. */
  36430. valueExpressionTitle: string;
  36431. /**
  36432. * UniqueValueRenderer allows you to symbolize features in a [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html) based on one or more categorical attributes.
  36433. *
  36434. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html)
  36435. */
  36436. constructor(properties?: UniqueValueRendererProperties);
  36437. /**
  36438. * Adds a unique value and symbol to the renderer.
  36439. *
  36440. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#addUniqueValueInfo)
  36441. */
  36442. addUniqueValueInfo(valueOrInfo: string | number | any, symbol?: Symbol | SymbolProperties): void;
  36443. /**
  36444. * Creates a deep clone of the renderer.
  36445. *
  36446. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#clone)
  36447. */
  36448. clone(): UniqueValueRenderer;
  36449. /**
  36450. * Returns rendering and legend information (as defined by the renderer) associated with the given graphic.
  36451. *
  36452. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#getUniqueValueInfo)
  36453. */
  36454. getUniqueValueInfo(graphic: Graphic): Promise<UniqueValueInfo>;
  36455. /**
  36456. * Removes a unique value from the renderer.
  36457. *
  36458. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#removeUniqueValueInfo)
  36459. */
  36460. removeUniqueValueInfo(value: string | number): void;
  36461. static fromJSON(json: any): UniqueValueRenderer;
  36462. }
  36463. /** @deprecated Import the UniqueValueRenderer class instead. */
  36464. export type UniqueValueRendererConstructor = typeof UniqueValueRenderer;
  36465. interface UniqueValueRendererProperties extends RendererProperties, VisualVariablesMixinProperties {
  36466. /**
  36467. * This property is only relevant When symbolizing polygon features with marker symbols (or [IconSymbol3DLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html)) in the [uniqueValueInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#uniqueValueInfos) of this renderer.
  36468. *
  36469. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#backgroundFillSymbol)
  36470. */
  36471. backgroundFillSymbol?: FillSymbolProperties | (PolygonSymbol3DProperties & { type: "polygon-3d" });
  36472. /**
  36473. * The label used in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) to describe features assigned the [default symbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#defaultSymbol).
  36474. *
  36475. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#defaultLabel)
  36476. */
  36477. defaultLabel?: string;
  36478. /**
  36479. * The symbol used to draw all features with values not referenced by [uniqueValueInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#uniqueValueInfos) or [uniqueValueGroups](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#uniqueValueGroups).
  36480. *
  36481. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#defaultSymbol)
  36482. */
  36483. defaultSymbol?: SymbolProperties;
  36484. /**
  36485. * The name of the attribute field containing types or categorical values referenced in [uniqueValueInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#uniqueValueInfos) or [uniqueValueGroups](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#uniqueValueGroups).
  36486. *
  36487. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#field)
  36488. */
  36489. field?: string;
  36490. /**
  36491. * Specifies the name of an additional attribute field used to categorize features.
  36492. *
  36493. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#field2)
  36494. */
  36495. field2?: string;
  36496. /**
  36497. * Specifies the name of a third attribute field used to categorize features.
  36498. *
  36499. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#field3)
  36500. */
  36501. field3?: string;
  36502. /**
  36503. * A string used as a separator between the values in the legend if multiple attribute fields are used to categorize values.
  36504. *
  36505. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#fieldDelimiter)
  36506. */
  36507. fieldDelimiter?: string;
  36508. /**
  36509. * An object providing options for displaying the renderer in the Legend.
  36510. *
  36511. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#legendOptions)
  36512. */
  36513. legendOptions?: UniqueValueRendererLegendOptions;
  36514. /**
  36515. * An array of objects defining groups of unique values.
  36516. *
  36517. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#uniqueValueGroups)
  36518. */
  36519. uniqueValueGroups?: UniqueValueGroupProperties[];
  36520. /**
  36521. * Defines categories and their corresponding symbols based on a set of values expected from the provided [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#field) or [valueExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#valueExpression).
  36522. *
  36523. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#uniqueValueInfos)
  36524. */
  36525. uniqueValueInfos?: UniqueValueInfoProperties[];
  36526. /**
  36527. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  36528. *
  36529. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#valueExpression)
  36530. */
  36531. valueExpression?: string;
  36532. /**
  36533. * The title identifying and describing the associated [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression as defined in the [valueExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#valueExpression) property.
  36534. *
  36535. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#valueExpressionTitle)
  36536. */
  36537. valueExpressionTitle?: string;
  36538. }
  36539. export interface UniqueValueRendererLegendOptions {
  36540. /**
  36541. * Describes the variable driving the visualization.
  36542. *
  36543. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html#legendOptions)
  36544. */
  36545. title?: string;
  36546. }
  36547. export interface VectorFieldRenderer extends Accessor, JSONSupport {
  36548. }
  36549. export class VectorFieldRenderer {
  36550. /**
  36551. * Attribute field presenting the magnitude.
  36552. *
  36553. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-VectorFieldRenderer.html#attributeField)
  36554. */
  36555. attributeField: "Magnitude";
  36556. /**
  36557. * Defines the flow direction of the data.
  36558. *
  36559. * @default "flow-from"
  36560. *
  36561. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-VectorFieldRenderer.html#flowRepresentation)
  36562. */
  36563. flowRepresentation: "flow-from" | "flow-to";
  36564. /**
  36565. * Predefined symbol styles used to represent the vector flow.
  36566. *
  36567. * @default "single-arrow"
  36568. *
  36569. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-VectorFieldRenderer.html#style)
  36570. */
  36571. style: | "beaufort-ft"
  36572. | "beaufort-km"
  36573. | "beaufort-kn"
  36574. | "beaufort-m"
  36575. | "beaufort-mi"
  36576. | "classified-arrow"
  36577. | "ocean-current-kn"
  36578. | "ocean-current-m"
  36579. | "simple-scalar"
  36580. | "single-arrow"
  36581. | "wind-barb";
  36582. /**
  36583. * Determines the density of the symbols.
  36584. *
  36585. * @default 50
  36586. *
  36587. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-VectorFieldRenderer.html#symbolTileSize)
  36588. */
  36589. symbolTileSize: number;
  36590. /**
  36591. * The type of Renderer.
  36592. *
  36593. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-VectorFieldRenderer.html#type)
  36594. */
  36595. readonly type: "vector-field";
  36596. /**
  36597. * An array of [VisualVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-VisualVariable.html) objects.
  36598. *
  36599. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-VectorFieldRenderer.html#visualVariables)
  36600. */
  36601. visualVariables: VisualVariable[];
  36602. /**
  36603. * The VectorFieldRenderer allows you to display your raster data with vector symbols.
  36604. *
  36605. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-VectorFieldRenderer.html)
  36606. */
  36607. constructor(properties?: VectorFieldRendererProperties);
  36608. /**
  36609. * Creates a deep clone of the renderer.
  36610. *
  36611. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-VectorFieldRenderer.html#clone)
  36612. */
  36613. clone(): VectorFieldRenderer;
  36614. static fromJSON(json: any): VectorFieldRenderer;
  36615. }
  36616. /** @deprecated Import the VectorFieldRenderer class instead. */
  36617. export type VectorFieldRendererConstructor = typeof VectorFieldRenderer;
  36618. interface VectorFieldRendererProperties {
  36619. /**
  36620. * Attribute field presenting the magnitude.
  36621. *
  36622. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-VectorFieldRenderer.html#attributeField)
  36623. */
  36624. attributeField?: "Magnitude";
  36625. /**
  36626. * Defines the flow direction of the data.
  36627. *
  36628. * @default "flow-from"
  36629. *
  36630. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-VectorFieldRenderer.html#flowRepresentation)
  36631. */
  36632. flowRepresentation?: "flow-from" | "flow-to";
  36633. /**
  36634. * Predefined symbol styles used to represent the vector flow.
  36635. *
  36636. * @default "single-arrow"
  36637. *
  36638. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-VectorFieldRenderer.html#style)
  36639. */
  36640. style?: | "beaufort-ft"
  36641. | "beaufort-km"
  36642. | "beaufort-kn"
  36643. | "beaufort-m"
  36644. | "beaufort-mi"
  36645. | "classified-arrow"
  36646. | "ocean-current-kn"
  36647. | "ocean-current-m"
  36648. | "simple-scalar"
  36649. | "single-arrow"
  36650. | "wind-barb";
  36651. /**
  36652. * Determines the density of the symbols.
  36653. *
  36654. * @default 50
  36655. *
  36656. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-VectorFieldRenderer.html#symbolTileSize)
  36657. */
  36658. symbolTileSize?: number;
  36659. /**
  36660. * An array of [VisualVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-VisualVariable.html) objects.
  36661. *
  36662. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-VectorFieldRenderer.html#visualVariables)
  36663. */
  36664. visualVariables?: VisualVariableProperties[];
  36665. }
  36666. export interface ColorVariable extends VisualVariable, JSONSupport {
  36667. }
  36668. export class ColorVariable {
  36669. /**
  36670. * Name of the numeric attribute field by which to normalize the data.
  36671. *
  36672. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html#normalizationField)
  36673. */
  36674. normalizationField: string;
  36675. /**
  36676. * An array of sequential objects, or stops, that defines a continuous color ramp.
  36677. *
  36678. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html#stops)
  36679. */
  36680. stops: ColorStop[];
  36681. /**
  36682. * The visual variable type.
  36683. *
  36684. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html#type)
  36685. */
  36686. readonly type: "color";
  36687. /**
  36688. * The color visual variable is used to visualize features along a continuous color ramp based on the values of a numeric attribute [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html#field) or an [expression](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html#valueExpression).
  36689. *
  36690. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html)
  36691. */
  36692. constructor(properties?: ColorVariableProperties);
  36693. /**
  36694. * Creates a deep clone of the ColorVariable.
  36695. *
  36696. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html#clone)
  36697. */
  36698. clone(): ColorVariable;
  36699. static fromJSON(json: any): ColorVariable;
  36700. }
  36701. /** @deprecated Import the ColorVariable class instead. */
  36702. export type ColorVariableConstructor = typeof ColorVariable;
  36703. interface ColorVariableProperties extends VisualVariableProperties {
  36704. /**
  36705. * Name of the numeric attribute field by which to normalize the data.
  36706. *
  36707. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html#normalizationField)
  36708. */
  36709. normalizationField?: string;
  36710. /**
  36711. * An array of sequential objects, or stops, that defines a continuous color ramp.
  36712. *
  36713. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html#stops)
  36714. */
  36715. stops?: ColorStopProperties[];
  36716. }
  36717. export interface OpacityVariable extends VisualVariable, JSONSupport {
  36718. }
  36719. export class OpacityVariable {
  36720. /**
  36721. * Name of the numeric attribute field by which to normalize the data.
  36722. *
  36723. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-OpacityVariable.html#normalizationField)
  36724. */
  36725. normalizationField: string;
  36726. /**
  36727. * An array of objects that defines the opacity to apply to features in a layer in a sequence of stops.
  36728. *
  36729. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-OpacityVariable.html#stops)
  36730. */
  36731. stops: OpacityStop[];
  36732. /**
  36733. * The visual variable type.
  36734. *
  36735. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-OpacityVariable.html#type)
  36736. */
  36737. readonly type: "opacity";
  36738. /**
  36739. * The opacity visual variable defines the opacity of each feature's symbol based on a numeric [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-OpacityVariable.html#field) value or number returned from an [expression](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-OpacityVariable.html#valueExpression).
  36740. *
  36741. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-OpacityVariable.html)
  36742. */
  36743. constructor(properties?: OpacityVariableProperties);
  36744. /**
  36745. * Creates a deep clone of the OpacityVariable.
  36746. *
  36747. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-OpacityVariable.html#clone)
  36748. */
  36749. clone(): OpacityVariable;
  36750. static fromJSON(json: any): OpacityVariable;
  36751. }
  36752. /** @deprecated Import the OpacityVariable class instead. */
  36753. export type OpacityVariableConstructor = typeof OpacityVariable;
  36754. interface OpacityVariableProperties extends VisualVariableProperties {
  36755. /**
  36756. * Name of the numeric attribute field by which to normalize the data.
  36757. *
  36758. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-OpacityVariable.html#normalizationField)
  36759. */
  36760. normalizationField?: string;
  36761. /**
  36762. * An array of objects that defines the opacity to apply to features in a layer in a sequence of stops.
  36763. *
  36764. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-OpacityVariable.html#stops)
  36765. */
  36766. stops?: OpacityStopProperties[];
  36767. }
  36768. export interface RotationVariable extends VisualVariable, JSONSupport {
  36769. }
  36770. export class RotationVariable {
  36771. /**
  36772. * Only applicable when working in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  36773. *
  36774. * @default heading
  36775. *
  36776. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-RotationVariable.html#axis)
  36777. */
  36778. axis: "heading" | "tilt" | "roll";
  36779. /**
  36780. * Defines the origin and direction of rotation depending on how the angle of rotation was measured.
  36781. *
  36782. * @default geographic
  36783. *
  36784. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-RotationVariable.html#rotationType)
  36785. */
  36786. rotationType: "geographic" | "arithmetic";
  36787. /**
  36788. * The visual variable type.
  36789. *
  36790. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-RotationVariable.html#type)
  36791. */
  36792. readonly type: "rotation";
  36793. /**
  36794. * The rotation visual variable defines how features rendered with [marker symbols](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-MarkerSymbol.html) or [text symbols](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html) in a MapView are rotated.
  36795. *
  36796. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-RotationVariable.html)
  36797. */
  36798. constructor(properties?: RotationVariableProperties);
  36799. /**
  36800. * Creates a deep clone of the RotationVariable.
  36801. *
  36802. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-RotationVariable.html#clone)
  36803. */
  36804. clone(): RotationVariable;
  36805. static fromJSON(json: any): RotationVariable;
  36806. }
  36807. /** @deprecated Import the RotationVariable class instead. */
  36808. export type RotationVariableConstructor = typeof RotationVariable;
  36809. interface RotationVariableProperties extends VisualVariableProperties {
  36810. /**
  36811. * Only applicable when working in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  36812. *
  36813. * @default heading
  36814. *
  36815. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-RotationVariable.html#axis)
  36816. */
  36817. axis?: "heading" | "tilt" | "roll";
  36818. /**
  36819. * Defines the origin and direction of rotation depending on how the angle of rotation was measured.
  36820. *
  36821. * @default geographic
  36822. *
  36823. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-RotationVariable.html#rotationType)
  36824. */
  36825. rotationType?: "geographic" | "arithmetic";
  36826. }
  36827. export interface SizeVariable extends VisualVariable, JSONSupport {
  36828. }
  36829. export class SizeVariable {
  36830. /**
  36831. * Only applicable when working in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  36832. *
  36833. * @default all
  36834. *
  36835. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#axis)
  36836. */
  36837. axis: "width" | "depth" | "height" | "width-and-depth" | "all";
  36838. /**
  36839. * The maximum data value used in the size ramp.
  36840. *
  36841. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#maxDataValue)
  36842. */
  36843. maxDataValue: number;
  36844. /**
  36845. * The size used to render a feature containing the maximum data value.
  36846. *
  36847. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#maxSize)
  36848. */
  36849. maxSize: number | ScaleDependentStops;
  36850. /**
  36851. * The minimum data value used in the size ramp.
  36852. *
  36853. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#minDataValue)
  36854. */
  36855. minDataValue: number;
  36856. /**
  36857. * The size used to render a feature containing the minimum data value.
  36858. *
  36859. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#minSize)
  36860. */
  36861. minSize: number | ScaleDependentStops;
  36862. /**
  36863. * The name of the numeric attribute field used to normalize the data in the given [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#field).
  36864. *
  36865. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#normalizationField)
  36866. */
  36867. normalizationField: string;
  36868. /**
  36869. * An array of objects that defines the mapping of data values returned from [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#field) or [valueExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#valueExpression) to icon sizes.
  36870. *
  36871. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#stops)
  36872. */
  36873. stops: SizeStop[];
  36874. /**
  36875. * This value must be `outline` when scaling polygon outline widths based on the view scale.
  36876. *
  36877. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#target)
  36878. */
  36879. target: string;
  36880. /**
  36881. * The visual variable type.
  36882. *
  36883. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#type)
  36884. */
  36885. readonly type: "size";
  36886. /**
  36887. * When setting a size visual variable on a renderer using an [ObjectSymbol3DLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html), this property indicates whether to apply the value defined by the [height](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#height), [width](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#width), or [depth](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#depth) properties to the corresponding [axis](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#axis) of this visual variable instead of proportionally scaling this axis' value.
  36888. *
  36889. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#useSymbolValue)
  36890. */
  36891. useSymbolValue: boolean;
  36892. /**
  36893. * Specifies how to apply the data value when mapping real-world sizes.
  36894. *
  36895. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#valueRepresentation)
  36896. */
  36897. valueRepresentation: "radius" | "diameter" | "area" | "width" | "distance";
  36898. /**
  36899. * Indicates the unit of measurement used to interpret the value returned by [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#field) or [valueExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#valueExpression).
  36900. *
  36901. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#valueUnit)
  36902. */
  36903. valueUnit: | "unknown"
  36904. | "inches"
  36905. | "feet"
  36906. | "yards"
  36907. | "miles"
  36908. | "nautical-miles"
  36909. | "millimeters"
  36910. | "centimeters"
  36911. | "decimeters"
  36912. | "meters"
  36913. | "kilometers"
  36914. | "decimal-degrees";
  36915. /**
  36916. * The size visual variable defines the size of individual features in a layer based on a numeric (often thematic) value.
  36917. *
  36918. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html)
  36919. */
  36920. constructor(properties?: SizeVariableProperties);
  36921. /**
  36922. * Creates a deep clone of the SizeVisualVariable.
  36923. *
  36924. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#clone)
  36925. */
  36926. clone(): SizeVariable;
  36927. /**
  36928. * Modifies the SizeVariable in place by flipping the sizes in the [stops](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#stops).
  36929. *
  36930. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#flipSizes)
  36931. */
  36932. flipSizes(): void;
  36933. static fromJSON(json: any): SizeVariable;
  36934. }
  36935. /** @deprecated Import the SizeVariable class instead. */
  36936. export type SizeVariableConstructor = typeof SizeVariable;
  36937. interface SizeVariableProperties extends VisualVariableProperties {
  36938. /**
  36939. * Only applicable when working in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  36940. *
  36941. * @default all
  36942. *
  36943. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#axis)
  36944. */
  36945. axis?: "width" | "depth" | "height" | "width-and-depth" | "all";
  36946. /**
  36947. * The maximum data value used in the size ramp.
  36948. *
  36949. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#maxDataValue)
  36950. */
  36951. maxDataValue?: number;
  36952. /**
  36953. * The size used to render a feature containing the maximum data value.
  36954. *
  36955. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#maxSize)
  36956. */
  36957. maxSize?: number | ScaleDependentStops | string;
  36958. /**
  36959. * The minimum data value used in the size ramp.
  36960. *
  36961. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#minDataValue)
  36962. */
  36963. minDataValue?: number;
  36964. /**
  36965. * The size used to render a feature containing the minimum data value.
  36966. *
  36967. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#minSize)
  36968. */
  36969. minSize?: number | ScaleDependentStops | string;
  36970. /**
  36971. * The name of the numeric attribute field used to normalize the data in the given [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#field).
  36972. *
  36973. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#normalizationField)
  36974. */
  36975. normalizationField?: string;
  36976. /**
  36977. * An array of objects that defines the mapping of data values returned from [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#field) or [valueExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#valueExpression) to icon sizes.
  36978. *
  36979. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#stops)
  36980. */
  36981. stops?: SizeStopProperties[];
  36982. /**
  36983. * This value must be `outline` when scaling polygon outline widths based on the view scale.
  36984. *
  36985. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#target)
  36986. */
  36987. target?: string;
  36988. /**
  36989. * When setting a size visual variable on a renderer using an [ObjectSymbol3DLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html), this property indicates whether to apply the value defined by the [height](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#height), [width](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#width), or [depth](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#depth) properties to the corresponding [axis](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#axis) of this visual variable instead of proportionally scaling this axis' value.
  36990. *
  36991. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#useSymbolValue)
  36992. */
  36993. useSymbolValue?: boolean;
  36994. /**
  36995. * Specifies how to apply the data value when mapping real-world sizes.
  36996. *
  36997. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#valueRepresentation)
  36998. */
  36999. valueRepresentation?: "radius" | "diameter" | "area" | "width" | "distance";
  37000. /**
  37001. * Indicates the unit of measurement used to interpret the value returned by [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#field) or [valueExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#valueExpression).
  37002. *
  37003. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#valueUnit)
  37004. */
  37005. valueUnit?: | "unknown"
  37006. | "inches"
  37007. | "feet"
  37008. | "yards"
  37009. | "miles"
  37010. | "nautical-miles"
  37011. | "millimeters"
  37012. | "centimeters"
  37013. | "decimeters"
  37014. | "meters"
  37015. | "kilometers"
  37016. | "decimal-degrees";
  37017. }
  37018. /**
  37019. * Defines a size visual variable with minimum and maximum bounds.
  37020. *
  37021. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#BoundedMinMax)
  37022. */
  37023. export interface BoundedMinMax {
  37024. /**
  37025. * Value must be `size`.
  37026. *
  37027. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#BoundedMinMax)
  37028. */
  37029. type: string;
  37030. /**
  37031. * See [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#field).
  37032. *
  37033. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#BoundedMinMax)
  37034. */
  37035. field?: string;
  37036. /**
  37037. * See [normalizationField](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#normalizationField).
  37038. *
  37039. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#BoundedMinMax)
  37040. */
  37041. normalizationField?: string;
  37042. /**
  37043. * See [valueExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#valueExpression).
  37044. *
  37045. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#BoundedMinMax)
  37046. */
  37047. valueExpression?: string;
  37048. /**
  37049. * See [valueExpressionTitle](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#valueExpressionTitle).
  37050. *
  37051. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#BoundedMinMax)
  37052. */
  37053. valueExpressionTitle?: string;
  37054. /**
  37055. * See [maxDataValue](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#maxDataValue).
  37056. *
  37057. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#BoundedMinMax)
  37058. */
  37059. maxDataValue: number;
  37060. /**
  37061. * The size used to render a feature containing the maximum data value.
  37062. *
  37063. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#BoundedMinMax)
  37064. */
  37065. maxSize: string | number;
  37066. /**
  37067. * See [minDataValue](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#minDataValue).
  37068. *
  37069. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#BoundedMinMax)
  37070. */
  37071. minDataValue: number;
  37072. /**
  37073. * The size used to render a feature containing the minimum data value.
  37074. *
  37075. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#BoundedMinMax)
  37076. */
  37077. minSize: string | number;
  37078. }
  37079. /**
  37080. * Defines a size visual variable where data values are interpreted as real-world sizes based on a given unit.
  37081. *
  37082. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#RealWorldSize)
  37083. */
  37084. export interface RealWorldSize {
  37085. /**
  37086. * See [axis](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#axis).
  37087. *
  37088. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#RealWorldSize)
  37089. */
  37090. axis?: string;
  37091. /**
  37092. * Value must be `size`.
  37093. *
  37094. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#RealWorldSize)
  37095. */
  37096. type: string;
  37097. /**
  37098. * See [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#field).
  37099. *
  37100. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#RealWorldSize)
  37101. */
  37102. field?: string;
  37103. /**
  37104. * See [normalizationField](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#normalizationField).
  37105. *
  37106. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#RealWorldSize)
  37107. */
  37108. normalizationField?: string;
  37109. /**
  37110. * See [valueExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#valueExpression).
  37111. *
  37112. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#RealWorldSize)
  37113. */
  37114. valueExpression?: string;
  37115. /**
  37116. * See [valueUnit](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#valueUnit).
  37117. *
  37118. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#RealWorldSize)
  37119. */
  37120. valueUnit?: string;
  37121. /**
  37122. * See [valueRepresentation](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#valueRepresentation).
  37123. *
  37124. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#RealWorldSize)
  37125. */
  37126. valueRepresentation?: string;
  37127. }
  37128. /**
  37129. * Defines icon sizes in a size visual variable based on minimum and maximum bounds similar to the [BoundedMinMax](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#BoundedMinMax) case.
  37130. *
  37131. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#ScaleDependentIcons)
  37132. */
  37133. export interface ScaleDependentIcons {
  37134. /**
  37135. * Value must be `size`.
  37136. *
  37137. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#ScaleDependentIcons)
  37138. */
  37139. type: string;
  37140. /**
  37141. * See [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#field).
  37142. *
  37143. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#ScaleDependentIcons)
  37144. */
  37145. field?: string;
  37146. /**
  37147. * See [normalizationField](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#normalizationField).
  37148. *
  37149. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#ScaleDependentIcons)
  37150. */
  37151. normalizationField?: string;
  37152. /**
  37153. * See [valueExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#valueExpression).
  37154. *
  37155. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#ScaleDependentIcons)
  37156. */
  37157. valueExpression?: string;
  37158. /**
  37159. * See [maxDataValue](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#maxDataValue).
  37160. *
  37161. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#ScaleDependentIcons)
  37162. */
  37163. maxDataValue: number;
  37164. /**
  37165. * An object defining the size of features whose data value (defined in `field` or `valueExpression`) is greater than or equal to the `maxDataValue` for the given view scale.
  37166. *
  37167. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#ScaleDependentIcons)
  37168. */
  37169. maxSize: ScaleDependentStops;
  37170. /**
  37171. * See [minDataValue](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#minDataValue).
  37172. *
  37173. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#ScaleDependentIcons)
  37174. */
  37175. minDataValue: number;
  37176. /**
  37177. * An object defining the size of features whose data value (defined in `field` or `valueExpression`) is less than or equal to the `minDataValue` for the given view scale.
  37178. *
  37179. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#ScaleDependentIcons)
  37180. */
  37181. minSize: ScaleDependentStops;
  37182. }
  37183. /**
  37184. * Defines feature sizes and outline widths in a [size visual variable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#SizeVisualVariable) based on the [MapView.scale](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#scale).
  37185. *
  37186. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#ScaleDependentStops)
  37187. */
  37188. export interface ScaleDependentStops {
  37189. /**
  37190. * Value must be `size`.
  37191. *
  37192. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#ScaleDependentStops)
  37193. */
  37194. type: string;
  37195. /**
  37196. * This value must be `$view.scale`.
  37197. *
  37198. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#ScaleDependentStops)
  37199. */
  37200. valueExpression: string;
  37201. /**
  37202. * This value must be `outline` when scaling polygon outline widths based on the view scale.
  37203. *
  37204. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#ScaleDependentStops)
  37205. */
  37206. target?: string;
  37207. /**
  37208. * An array of objects that define the size of the icon (or alternatively the width of the polygon outline) at the given scale `value`.
  37209. *
  37210. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#ScaleDependentStops)
  37211. */
  37212. stops: SizeStop[];
  37213. }
  37214. /**
  37215. * Defines two or more stops at which feature sizes are mapped to data values in a size visual variable.
  37216. *
  37217. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#ThematicStops)
  37218. */
  37219. export interface ThematicStops {
  37220. /**
  37221. * Value must be `size`.
  37222. *
  37223. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#ThematicStops)
  37224. */
  37225. type: string;
  37226. /**
  37227. * See [field](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#field).
  37228. *
  37229. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#ThematicStops)
  37230. */
  37231. field?: string;
  37232. /**
  37233. * See [normalizationField](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#normalizationField).
  37234. *
  37235. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#ThematicStops)
  37236. */
  37237. normalizationField?: string;
  37238. /**
  37239. * See [valueExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#valueExpression).
  37240. *
  37241. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#ThematicStops)
  37242. */
  37243. valueExpression?: string;
  37244. /**
  37245. * An array of objects defining the thematic size ramp in a sequence of data or expression stops.
  37246. *
  37247. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#ThematicStops)
  37248. */
  37249. stops: SizeStop[];
  37250. }
  37251. export interface ColorSizeStop extends Accessor, JSONSupport {
  37252. }
  37253. export class ColorSizeStop {
  37254. /**
  37255. * The [Color](https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html) used to render features with the given [value](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorSizeStop.html#value).
  37256. *
  37257. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorSizeStop.html#color)
  37258. */
  37259. color: Color;
  37260. /**
  37261. * A string value used to label the stop in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  37262. *
  37263. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorSizeStop.html#label)
  37264. */
  37265. label: string;
  37266. /**
  37267. * The size value in points used to render features with the given [value](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorSizeStop.html#value).
  37268. *
  37269. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorSizeStop.html#size)
  37270. */
  37271. size: number;
  37272. /**
  37273. * Specifies the data value to map to the given [size](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorSizeStop.html#size) and [color](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorSizeStop.html#color).
  37274. *
  37275. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorSizeStop.html#value)
  37276. */
  37277. value: number;
  37278. /**
  37279. * Defines how to data values should be represented in the [ColorSizeSlider](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSizeSlider.html) with an associated color and size.
  37280. *
  37281. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorSizeStop.html)
  37282. */
  37283. constructor(properties?: ColorSizeStopProperties);
  37284. /**
  37285. * Creates a deep clone of the ColorSizeStop.
  37286. *
  37287. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorSizeStop.html#clone)
  37288. */
  37289. clone(): ColorSizeStop;
  37290. static fromJSON(json: any): ColorSizeStop;
  37291. }
  37292. /** @deprecated Import the ColorSizeStop class instead. */
  37293. export type ColorSizeStopConstructor = typeof ColorSizeStop;
  37294. interface ColorSizeStopProperties {
  37295. /**
  37296. * The [Color](https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html) used to render features with the given [value](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorSizeStop.html#value).
  37297. *
  37298. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorSizeStop.html#color)
  37299. */
  37300. color?: Color | number[] | string;
  37301. /**
  37302. * A string value used to label the stop in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  37303. *
  37304. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorSizeStop.html#label)
  37305. */
  37306. label?: string;
  37307. /**
  37308. * The size value in points used to render features with the given [value](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorSizeStop.html#value).
  37309. *
  37310. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorSizeStop.html#size)
  37311. */
  37312. size?: number | string;
  37313. /**
  37314. * Specifies the data value to map to the given [size](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorSizeStop.html#size) and [color](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorSizeStop.html#color).
  37315. *
  37316. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorSizeStop.html#value)
  37317. */
  37318. value?: number;
  37319. }
  37320. export interface ColorStop extends Accessor, JSONSupport {
  37321. }
  37322. export class ColorStop {
  37323. /**
  37324. * The [Color](https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html) used to render features with the given [value](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorStop.html#value).
  37325. *
  37326. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorStop.html#color)
  37327. */
  37328. color: Color;
  37329. /**
  37330. * A string value used to label the stop along the color ramp in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  37331. *
  37332. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorStop.html#label)
  37333. */
  37334. label: string;
  37335. /**
  37336. * Specifies the data value to map to the given [color](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorStop.html#color).
  37337. *
  37338. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorStop.html#value)
  37339. */
  37340. value: number;
  37341. /**
  37342. * Defines a color stop used for creating a continuous color visualization in a [color visual variable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html#stops).
  37343. *
  37344. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorStop.html)
  37345. */
  37346. constructor(properties?: ColorStopProperties);
  37347. /**
  37348. * Creates a deep clone of the ColorStop.
  37349. *
  37350. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorStop.html#clone)
  37351. */
  37352. clone(): ColorStop;
  37353. static fromJSON(json: any): ColorStop;
  37354. }
  37355. /** @deprecated Import the ColorStop class instead. */
  37356. export type ColorStopConstructor = typeof ColorStop;
  37357. interface ColorStopProperties {
  37358. /**
  37359. * The [Color](https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html) used to render features with the given [value](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorStop.html#value).
  37360. *
  37361. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorStop.html#color)
  37362. */
  37363. color?: Color | number[] | string;
  37364. /**
  37365. * A string value used to label the stop along the color ramp in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  37366. *
  37367. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorStop.html#label)
  37368. */
  37369. label?: string;
  37370. /**
  37371. * Specifies the data value to map to the given [color](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorStop.html#color).
  37372. *
  37373. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-ColorStop.html#value)
  37374. */
  37375. value?: number;
  37376. }
  37377. export interface OpacityStop extends Accessor, JSONSupport {
  37378. }
  37379. export class OpacityStop {
  37380. /**
  37381. * A string value used to label the stop in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  37382. *
  37383. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-OpacityStop.html#label)
  37384. */
  37385. label: string;
  37386. /**
  37387. * The opacity value (between `0.0` and `1.0`) used to render features with the given [value](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-OpacityStop.html#value).
  37388. *
  37389. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-OpacityStop.html#opacity)
  37390. */
  37391. opacity: number;
  37392. /**
  37393. * Specifies the data value to map to the given [opacity value](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-OpacityStop.html#opacity).
  37394. *
  37395. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-OpacityStop.html#value)
  37396. */
  37397. value: number;
  37398. /**
  37399. * Defines an opacity stop used for creating a continuous opacity visualization in a [opacity visual variable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-OpacityVariable.html#stops).
  37400. *
  37401. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-OpacityStop.html)
  37402. */
  37403. constructor(properties?: OpacityStopProperties);
  37404. /**
  37405. * Creates a deep clone of the OpacityStop.
  37406. *
  37407. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-OpacityStop.html#clone)
  37408. */
  37409. clone(): OpacityStop;
  37410. static fromJSON(json: any): OpacityStop;
  37411. }
  37412. /** @deprecated Import the OpacityStop class instead. */
  37413. export type OpacityStopConstructor = typeof OpacityStop;
  37414. interface OpacityStopProperties {
  37415. /**
  37416. * A string value used to label the stop in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  37417. *
  37418. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-OpacityStop.html#label)
  37419. */
  37420. label?: string;
  37421. /**
  37422. * The opacity value (between `0.0` and `1.0`) used to render features with the given [value](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-OpacityStop.html#value).
  37423. *
  37424. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-OpacityStop.html#opacity)
  37425. */
  37426. opacity?: number | number[] | string;
  37427. /**
  37428. * Specifies the data value to map to the given [opacity value](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-OpacityStop.html#opacity).
  37429. *
  37430. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-OpacityStop.html#value)
  37431. */
  37432. value?: number;
  37433. }
  37434. export interface SizeStop extends Accessor, JSONSupport {
  37435. }
  37436. export class SizeStop {
  37437. /**
  37438. * A string value used to label the stop in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  37439. *
  37440. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-SizeStop.html#label)
  37441. */
  37442. label: string;
  37443. /**
  37444. * The size value in points (between `0` and `90`) used to render features with the given [value](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-SizeStop.html#value).
  37445. *
  37446. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-SizeStop.html#size)
  37447. */
  37448. size: number;
  37449. /**
  37450. * Specifies the data value to map to the given [size](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-SizeStop.html#size).
  37451. *
  37452. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-SizeStop.html#value)
  37453. */
  37454. value: number;
  37455. /**
  37456. * Defines a size stop used for creating a continuous size visualization in a [size visual variable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#stops).
  37457. *
  37458. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-SizeStop.html)
  37459. */
  37460. constructor(properties?: SizeStopProperties);
  37461. /**
  37462. * Creates a deep clone of the SizeStop.
  37463. *
  37464. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-SizeStop.html#clone)
  37465. */
  37466. clone(): SizeStop;
  37467. static fromJSON(json: any): SizeStop;
  37468. }
  37469. /** @deprecated Import the SizeStop class instead. */
  37470. export type SizeStopConstructor = typeof SizeStop;
  37471. interface SizeStopProperties {
  37472. /**
  37473. * A string value used to label the stop in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  37474. *
  37475. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-SizeStop.html#label)
  37476. */
  37477. label?: string;
  37478. /**
  37479. * The size value in points (between `0` and `90`) used to render features with the given [value](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-SizeStop.html#value).
  37480. *
  37481. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-SizeStop.html#size)
  37482. */
  37483. size?: number | string;
  37484. /**
  37485. * Specifies the data value to map to the given [size](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-SizeStop.html#size).
  37486. *
  37487. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-support-SizeStop.html#value)
  37488. */
  37489. value?: number;
  37490. }
  37491. export interface VisualVariable extends Accessor, JSONSupport {
  37492. }
  37493. export class VisualVariable {
  37494. /**
  37495. * The name of the numeric attribute field that contains the data values used to determine the color/opacity/size/rotation of each feature.
  37496. *
  37497. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-VisualVariable.html#field)
  37498. */
  37499. field: string;
  37500. /**
  37501. * An object providing options for displaying the visual variable in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  37502. *
  37503. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-VisualVariable.html#legendOptions)
  37504. */
  37505. legendOptions: VisualVariableLegendOptions;
  37506. /**
  37507. * The visual variable type.
  37508. *
  37509. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-VisualVariable.html#type)
  37510. */
  37511. readonly type: "color" | "opacity" | "rotation" | "size";
  37512. /**
  37513. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  37514. *
  37515. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-VisualVariable.html#valueExpression)
  37516. */
  37517. valueExpression: string;
  37518. /**
  37519. * The title identifying and describing the associated [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression as defined in the [valueExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-VisualVariable.html#valueExpression) property.
  37520. *
  37521. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-VisualVariable.html#valueExpressionTitle)
  37522. */
  37523. valueExpressionTitle: string;
  37524. /**
  37525. * The visual variable base class.
  37526. *
  37527. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-VisualVariable.html)
  37528. */
  37529. constructor(properties?: VisualVariableProperties);
  37530. static fromJSON(json: any): VisualVariable;
  37531. }
  37532. /** @deprecated Import the VisualVariable class instead. */
  37533. export type VisualVariableConstructor = typeof VisualVariable;
  37534. interface VisualVariableProperties {
  37535. /**
  37536. * The name of the numeric attribute field that contains the data values used to determine the color/opacity/size/rotation of each feature.
  37537. *
  37538. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-VisualVariable.html#field)
  37539. */
  37540. field?: string;
  37541. /**
  37542. * An object providing options for displaying the visual variable in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  37543. *
  37544. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-VisualVariable.html#legendOptions)
  37545. */
  37546. legendOptions?: VisualVariableLegendOptions;
  37547. /**
  37548. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  37549. *
  37550. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-VisualVariable.html#valueExpression)
  37551. */
  37552. valueExpression?: string;
  37553. /**
  37554. * The title identifying and describing the associated [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression as defined in the [valueExpression](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-VisualVariable.html#valueExpression) property.
  37555. *
  37556. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-VisualVariable.html#valueExpressionTitle)
  37557. */
  37558. valueExpressionTitle?: string;
  37559. }
  37560. export interface VisualVariableLegendOptions {
  37561. /**
  37562. * Indicates whether to show the visual variable in the legend.
  37563. *
  37564. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-VisualVariable.html#legendOptions)
  37565. */
  37566. showLegend?: boolean;
  37567. /**
  37568. * The title describing the visualization of the visual variable in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  37569. *
  37570. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-VisualVariable.html#legendOptions)
  37571. */
  37572. title?: string;
  37573. }
  37574. /**
  37575. * ClassBreaksRenderer.
  37576. *
  37577. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers.html#ClassBreaksRenderer)
  37578. */
  37579. export type renderersClassBreaksRenderer = ClassBreaksRenderer;
  37580. /**
  37581. * DictionaryRenderer.
  37582. *
  37583. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers.html#DictionaryRenderer)
  37584. */
  37585. export type renderersDictionaryRenderer = DictionaryRenderer;
  37586. /**
  37587. * DotDensityRenderer.
  37588. *
  37589. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers.html#DotDensityRenderer)
  37590. */
  37591. export type renderersDotDensityRenderer = DotDensityRenderer;
  37592. /**
  37593. * HeatmapRenderer.
  37594. *
  37595. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers.html#HeatmapRenderer)
  37596. */
  37597. export type renderersHeatmapRenderer = HeatmapRenderer;
  37598. /**
  37599. * PieChartRenderer.
  37600. *
  37601. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers.html#PieChartRenderer)
  37602. */
  37603. export type renderersPieChartRenderer = PieChartRenderer;
  37604. /**
  37605. * Renderer.
  37606. *
  37607. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers.html#Renderer)
  37608. */
  37609. export type renderersRenderer = HeatmapRenderer | RendererWithVisualVariables;
  37610. /**
  37611. * RendererWithVisualVariables.
  37612. *
  37613. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers.html#RendererWithVisualVariables)
  37614. */
  37615. export type RendererWithVisualVariables = | SimpleRenderer
  37616. | ClassBreaksRenderer
  37617. | UniqueValueRenderer
  37618. | DotDensityRenderer
  37619. | DictionaryRenderer
  37620. | PieChartRenderer;
  37621. /**
  37622. * SimpleRenderer.
  37623. *
  37624. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers.html#SimpleRenderer)
  37625. */
  37626. export type renderersSimpleRenderer = SimpleRenderer;
  37627. /**
  37628. * UniqueValueRenderer.
  37629. *
  37630. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers.html#UniqueValueRenderer)
  37631. */
  37632. export type renderersUniqueValueRenderer = UniqueValueRenderer;
  37633. /**
  37634. * Retrieves data from a remote server or uploads a file.
  37635. *
  37636. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html)
  37637. */
  37638. interface request {
  37639. /**
  37640. * Retrieves data from a remote server or uploads a file from a user's computer.
  37641. *
  37642. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#esriRequest)
  37643. */
  37644. esriRequest(url: string, options?: RequestOptions): Promise<RequestResponse>;
  37645. }
  37646. const __requestMapped: request;
  37647. export const request: typeof __requestMapped.esriRequest;
  37648. /**
  37649. * The specification of the [details object](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Error.html#details) returned in an [Error](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Error.html) object.
  37650. *
  37651. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#EsriErrorDetails)
  37652. */
  37653. export interface EsriErrorDetails {
  37654. /**
  37655. * A function to retrieve headers sent from the server.
  37656. *
  37657. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#EsriErrorDetails)
  37658. */
  37659. getHeader: GetHeader;
  37660. /**
  37661. * The status of the http request.
  37662. *
  37663. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#EsriErrorDetails)
  37664. */
  37665. httpStatus: number;
  37666. /**
  37667. * The error message code.
  37668. *
  37669. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#EsriErrorDetails)
  37670. */
  37671. messageCode: string;
  37672. /**
  37673. * Additional error message(s).
  37674. *
  37675. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#EsriErrorDetails)
  37676. */
  37677. messages: string[];
  37678. /**
  37679. * The raw error object if the server returned a JSON error, or the response text if the server didn't return a 200 response code.
  37680. *
  37681. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#EsriErrorDetails)
  37682. */
  37683. raw: any | string;
  37684. /**
  37685. * The query parameters sent with the http request.
  37686. *
  37687. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#EsriErrorDetails)
  37688. */
  37689. requestOptions: any;
  37690. /**
  37691. * Indicates if the request required https.
  37692. *
  37693. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#EsriErrorDetails)
  37694. */
  37695. ssl: boolean;
  37696. /**
  37697. * The error message subcode.
  37698. *
  37699. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#EsriErrorDetails)
  37700. */
  37701. subCode: number;
  37702. /**
  37703. * The URL of the request that returned an error message.
  37704. *
  37705. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#EsriErrorDetails)
  37706. */
  37707. url: string;
  37708. }
  37709. export type GetHeader = (headerName: string) => string;
  37710. /**
  37711. * An object with the following properties that describe the request.
  37712. *
  37713. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestOptions)
  37714. */
  37715. export interface RequestOptions {
  37716. /**
  37717. * Indicates if and how requests to ArcGIS Services are authenticated.
  37718. *
  37719. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestOptions)
  37720. */
  37721. authMode?: "auto" | "anonymous" | "immediate" | "no-prompt";
  37722. /**
  37723. * If uploading a file, specify the form data or element used to submit the file here.
  37724. *
  37725. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestOptions)
  37726. */
  37727. body?: FormData | HTMLFormElement | string;
  37728. /**
  37729. * If `true`, the browser will send a request to the server instead of using the browser's local cache.
  37730. *
  37731. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestOptions)
  37732. */
  37733. cacheBust?: boolean;
  37734. /**
  37735. * Headers to use for the request.
  37736. *
  37737. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestOptions)
  37738. */
  37739. headers?: any;
  37740. /**
  37741. * Indicates if the request should be made using the HTTP DELETE, HEAD, POST, or PUT method.
  37742. *
  37743. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestOptions)
  37744. */
  37745. method?: "auto" | "delete" | "head" | "post" | "put";
  37746. /**
  37747. * Query parameters for the request.
  37748. *
  37749. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestOptions)
  37750. */
  37751. query?: any;
  37752. /**
  37753. * Response format.
  37754. *
  37755. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestOptions)
  37756. */
  37757. responseType?: "json" | "text" | "array-buffer" | "blob" | "image" | "native" | "document" | "xml";
  37758. /**
  37759. * [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) allows for cancelable requests.
  37760. *
  37761. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestOptions)
  37762. */
  37763. signal?: AbortSignal;
  37764. /**
  37765. * Indicates the amount of time in milliseconds to wait for a response from the server.
  37766. *
  37767. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestOptions)
  37768. */
  37769. timeout?: number;
  37770. /**
  37771. * Indicates the request should use the proxy.
  37772. *
  37773. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestOptions)
  37774. */
  37775. useProxy?: boolean;
  37776. /**
  37777. * Indicates if cross-site `Access-Control` requests should use credentials.
  37778. *
  37779. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestOptions)
  37780. */
  37781. withCredentials?: boolean;
  37782. }
  37783. /**
  37784. * Returns a promise that resolves to an object with the following specification.
  37785. *
  37786. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestResponse)
  37787. */
  37788. export interface RequestResponse {
  37789. /**
  37790. * The requested data.
  37791. *
  37792. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestResponse)
  37793. */
  37794. data?: any;
  37795. /**
  37796. * The options specified by the user in the data request.
  37797. *
  37798. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestResponse)
  37799. */
  37800. requestOptions?: RequestOptions;
  37801. /**
  37802. * Indicates if the request required https.
  37803. *
  37804. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestResponse)
  37805. */
  37806. ssl?: boolean;
  37807. /**
  37808. * The URL used to request the data.
  37809. *
  37810. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestResponse)
  37811. */
  37812. url?: string;
  37813. /**
  37814. * Method for getting a header sent from the server.
  37815. *
  37816. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestResponse)
  37817. */
  37818. getHeader?: GetHeader;
  37819. }
  37820. /**
  37821. * Helps you find closest facilities around any location (incident) on a network.
  37822. *
  37823. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-closestFacility.html)
  37824. */
  37825. interface closestFacility {
  37826. /**
  37827. * Solves the closest facility.
  37828. *
  37829. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-closestFacility.html#solve)
  37830. */
  37831. solve(url: string, params: ClosestFacilityParameters, requestOptions?: any): Promise<ClosestFacilitySolveResult>;
  37832. }
  37833. export const closestFacility: closestFacility;
  37834. /**
  37835. * Search a map service exposed by the ArcGIS Server REST API based on a string value.
  37836. *
  37837. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-find.html)
  37838. */
  37839. interface find {
  37840. /**
  37841. * Sends a request to the ArcGIS REST map service resource to perform a search based on the input [params](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindParameters.html).
  37842. *
  37843. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-find.html#find)
  37844. */
  37845. find(url: string, params: FindParameters | FindParametersProperties, requestOptions?: any): Promise<any>;
  37846. }
  37847. export const find: find;
  37848. /**
  37849. * A convenience module for importing [geometryService](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html) functions when developing with [TypeScript](https://developers.arcgis.com/javascript/latest/typescript-setup/).
  37850. *
  37851. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html)
  37852. */
  37853. interface geometryService {
  37854. /**
  37855. * Computes the area and length for the input [polygons](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html).
  37856. *
  37857. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#areasAndLengths)
  37858. */
  37859. areasAndLengths(url: string, areasAndLengthsParameters: AreasAndLengthsParameters, requestOptions?: any): Promise<any>;
  37860. /**
  37861. * The Auto Complete operation is performed on a geometry service resource.
  37862. *
  37863. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#autoComplete)
  37864. */
  37865. autoComplete(url: string, polygons: Polygon[], polylines: Polyline[], requestOptions?: any): Promise<Polygon>;
  37866. /**
  37867. * Creates buffer polygons at a specified distance around the given geometries.
  37868. *
  37869. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#buffer)
  37870. */
  37871. buffer(url: string, bufferParameters: BufferParameters, requestOptions?: any): Promise<Polygon[]>;
  37872. /**
  37873. * The convexHull operation is performed on a geometry service resource.
  37874. *
  37875. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#convexHull)
  37876. */
  37877. convexHull(url: string, geometries: Geometry[], requestOptions?: any): Promise<Geometry>;
  37878. /**
  37879. * The cut operation is performed on a geometry service resource.
  37880. *
  37881. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#cut)
  37882. */
  37883. cut(url: string, geometries: Geometry[], cutter: Polyline, requestOptions?: any): Promise<any>;
  37884. /**
  37885. * The densify operation is performed on a geometry service resource.
  37886. *
  37887. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#densify)
  37888. */
  37889. densify(url: string, densifyParameters: DensifyParameters, requestOptions?: any): Promise<Geometry[]>;
  37890. /**
  37891. * The difference operation is performed on a geometry service resource.
  37892. *
  37893. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#difference)
  37894. */
  37895. difference(url: string, geometries: Geometry[], geometry: Geometry, requestOptions?: any): Promise<Geometry>;
  37896. /**
  37897. * Measures the planar or geodesic distance between geometries.
  37898. *
  37899. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#distance)
  37900. */
  37901. distance(url: string, distanceParameters: DistanceParameters, requestOptions?: any): Promise<number>;
  37902. /**
  37903. * Converts an array of well-known strings into xy-coordinates based on the conversion type and spatial reference supplied by the user.
  37904. *
  37905. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#fromGeoCoordinateString)
  37906. */
  37907. fromGeoCoordinateString(url: string, params: geometryServiceFromGeoCoordinateStringParams, requestOptions?: any): Promise<any>;
  37908. /**
  37909. * Generalizes the input geometries using the Douglas-Peucker algorithm.
  37910. *
  37911. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#generalize)
  37912. */
  37913. generalize(url: string, generalizeParameters: GeneralizeParameters, requestOptions?: any): Promise<Geometry[]>;
  37914. /**
  37915. * The intersect operation is performed on a geometry service resource.
  37916. *
  37917. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#intersect)
  37918. */
  37919. intersect(url: string, geometries: Geometry[], intersector: Geometry, requestOptions?: any): Promise<Geometry[]>;
  37920. /**
  37921. * Calculates an interior point for each polygon specified.
  37922. *
  37923. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#labelPoints)
  37924. */
  37925. labelPoints(url: string, polygons: Polygon[], requestOptions?: any): Promise<Point>;
  37926. /**
  37927. * Gets the lengths for a [Geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html) when the geometry type is [Polyline](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html)
  37928. *
  37929. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#lengths)
  37930. */
  37931. lengths(url: string, lengthsParameters: LengthsParameters, requestOptions?: any): Promise<any>;
  37932. /**
  37933. * Constructs the offset of the input geometries based on a planar distance.
  37934. *
  37935. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#offset)
  37936. */
  37937. offset(url: string, offsetParameters: OffsetParameters, requestOptions?: any): Promise<Geometry[]>;
  37938. /**
  37939. * Projects a set of geometries to a new spatial reference.
  37940. *
  37941. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#project)
  37942. */
  37943. project(url: string, projectParameters: ProjectParameters, requestOptions?: any): Promise<Geometry[]>;
  37944. /**
  37945. * Computes the set of pairs of geometries from the input geometry arrays that belong to the specified relation.
  37946. *
  37947. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#relation)
  37948. */
  37949. relation(url: string, relationParameters: RelationParameters, requestOptions?: any): Promise<Polygon[]>;
  37950. /**
  37951. * The reshape operation is performed on a geometry service resource.
  37952. *
  37953. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#reshape)
  37954. */
  37955. reshape(url: string, geometry: Geometry, reshaper: Polyline, requestOptions?: any): Promise<Geometry>;
  37956. /**
  37957. * Alters the given geometries to make their definitions topologically legal with respect to their geometry type.
  37958. *
  37959. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#simplify)
  37960. */
  37961. simplify(geometries: Geometry[], requestOptions?: any): Promise<Geometry[]>;
  37962. /**
  37963. * Converts an array of XY-coordinates into well-known strings based on the conversion type and spatial reference supplied by the user.
  37964. *
  37965. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#toGeoCoordinateString)
  37966. */
  37967. toGeoCoordinateString(url: string, params: geometryServiceToGeoCoordinateStringParams, requestOptions?: any): Promise<string[]>;
  37968. /**
  37969. * Trims or extends the input polylines using the user specified guide polyline.
  37970. *
  37971. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#trimExtend)
  37972. */
  37973. trimExtend(url: string, trimExtendParameters: TrimExtendParameters, requestOptions?: any): Promise<Polyline[]>;
  37974. /**
  37975. * The union operation is performed on a geometry service resource.
  37976. *
  37977. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#union)
  37978. */
  37979. union(url: string, geometries: Geometry[], requestOptions?: any): Promise<Geometry>;
  37980. }
  37981. export const geometryService: geometryService;
  37982. export interface geometryServiceFromGeoCoordinateStringParams {
  37983. /**
  37984. * An array of formatted strings as specified by `conversionType`.
  37985. *
  37986. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#fromGeoCoordinateString)
  37987. */
  37988. strings: string[];
  37989. /**
  37990. * The spatial reference or well-known ID to convert the input string coordinates to.
  37991. *
  37992. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#fromGeoCoordinateString)
  37993. */
  37994. sr: SpatialReference | string | number;
  37995. /**
  37996. * The conversion type of the input strings.
  37997. *
  37998. * @default mrgs
  37999. *
  38000. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#fromGeoCoordinateString)
  38001. */
  38002. conversionType?: "mrgs" | "usng" | "utm" | "geo-ref" | "gars" | "dms" | "ddm" | "dd";
  38003. /**
  38004. * Conversion options for mrgs, utm and gars conversion types.
  38005. *
  38006. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#fromGeoCoordinateString)
  38007. */
  38008. conversionMode?: string;
  38009. }
  38010. export interface geometryServiceToGeoCoordinateStringParams {
  38011. /**
  38012. * The spatial reference (or WKID of the spatial reference) of the XY-coordinates to be converted.
  38013. *
  38014. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#toGeoCoordinateString)
  38015. */
  38016. sr: SpatialReference | string | number;
  38017. /**
  38018. * An array of XY-coordinates (in JSON format) to be converted.
  38019. *
  38020. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#toGeoCoordinateString)
  38021. */
  38022. coordinates: number[][];
  38023. /**
  38024. * The conversion type of the input strings.
  38025. *
  38026. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#toGeoCoordinateString)
  38027. */
  38028. conversionType: "mgrs" | "usng" | "utm" | "geo-ref" | "gars" | "dms" | "ddm" | "dd";
  38029. /**
  38030. * Conversion options for mgrs and utm conversion types.
  38031. *
  38032. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#toGeoCoordinateString)
  38033. */
  38034. conversionMode?: string;
  38035. /**
  38036. * The number of digits to output for each of the numerical portions in the string.
  38037. *
  38038. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#toGeoCoordinateString)
  38039. */
  38040. numOfDigits?: number;
  38041. /**
  38042. * If `true`, then numeric portions of the string are rounded to the nearest whole magnitude as specified by `numOfDigits`.
  38043. *
  38044. * @default true
  38045. *
  38046. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#toGeoCoordinateString)
  38047. */
  38048. rounding?: boolean;
  38049. /**
  38050. * If `true`, then spaces are added between components of the string.
  38051. *
  38052. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#toGeoCoordinateString)
  38053. */
  38054. addSpaces?: boolean;
  38055. }
  38056. /**
  38057. * Represents a GP resource exposed by the ArcGIS REST API.
  38058. *
  38059. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geoprocessor.html)
  38060. */
  38061. interface geoprocessor {
  38062. /**
  38063. * Sends a request to the server to execute a synchronous GP task.
  38064. *
  38065. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geoprocessor.html#execute)
  38066. */
  38067. execute(url: string, params?: any, options?: GPOptions, requestOptions?: any): Promise<any>;
  38068. /**
  38069. * Submits a job to the server for asynchronous processing by the GP task.
  38070. *
  38071. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geoprocessor.html#submitJob)
  38072. */
  38073. submitJob(url: string, params?: any, options?: GPOptions, requestOptions?: any): Promise<JobInfo>;
  38074. }
  38075. export const geoprocessor: geoprocessor;
  38076. /**
  38077. * A convenience module for providing input options for the geoprocessing service return values.
  38078. *
  38079. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geoprocessor-GPOptions.html)
  38080. */
  38081. interface GPOptions {
  38082. /**
  38083. * The spatial reference of the output geometries.
  38084. *
  38085. * @default null
  38086. *
  38087. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geoprocessor-GPOptions.html#outSpatialReference)
  38088. */
  38089. outSpatialReference: SpatialReference;
  38090. /**
  38091. * ProcessExtent, if specified, will only process features that overlap this extent.
  38092. *
  38093. * @default null
  38094. *
  38095. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geoprocessor-GPOptions.html#processExtent)
  38096. */
  38097. processExtent: Extent;
  38098. /**
  38099. * The spatial reference that the model will use to perform geometry operations.
  38100. *
  38101. * @default null
  38102. *
  38103. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geoprocessor-GPOptions.html#processSpatialReference)
  38104. */
  38105. processSpatialReference: SpatialReference;
  38106. /**
  38107. * If `true`, m-values will be included in the results if the features have m-values.
  38108. *
  38109. * @default false
  38110. *
  38111. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geoprocessor-GPOptions.html#returnM)
  38112. */
  38113. returnM: boolean;
  38114. /**
  38115. * If `true`, z-values will be included in the results if the features have z-values.
  38116. *
  38117. * @default false
  38118. *
  38119. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geoprocessor-GPOptions.html#returnZ)
  38120. */
  38121. returnZ: boolean;
  38122. }
  38123. export const GPOptions: GPOptions;
  38124. /**
  38125. * Performs an identify operation on the layers of a map service exposed by the ArcGIS Server REST API.
  38126. *
  38127. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-identify.html)
  38128. */
  38129. interface identify {
  38130. /**
  38131. * Sends a request to the ArcGIS REST map service resource to identify features based on the [IdentifyParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html) specified.
  38132. *
  38133. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-identify.html#identify)
  38134. */
  38135. identify(url: string, params: IdentifyParameters, requestOptions?: any): Promise<any>;
  38136. }
  38137. export const identify: identify;
  38138. /**
  38139. * Performs various operations on an image service resource:
  38140. *
  38141. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-imageService.html)
  38142. */
  38143. interface imageService {
  38144. /**
  38145. * Computes the rotation angle of a [ImageryLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html) at a given location.
  38146. *
  38147. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-imageService.html#computeAngles)
  38148. */
  38149. computeAngles(url: string, parameters: ImageAngleParameters | ImageAngleParametersProperties, requestOptions?: any): Promise<ImageAngleResult>;
  38150. /**
  38151. * Computes histograms based on the provided [ImageHistogramParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageHistogramParameters.html).
  38152. *
  38153. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-imageService.html#computeHistograms)
  38154. */
  38155. computeHistograms(url: string, parameters: ImageHistogramParameters | ImageHistogramParametersProperties, requestOptions?: any): Promise<any>;
  38156. /**
  38157. * Computes the corresponding pixel location in columns and rows for an [ImageryLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html) based on input geometry.
  38158. *
  38159. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-imageService.html#computePixelSpaceLocations)
  38160. */
  38161. computePixelSpaceLocations(url: string, parameters: ImagePixelLocationParameters, requestOptions?: any): Promise<ImagePixelLocationResult>;
  38162. /**
  38163. * Computes [statistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#RasterBandStatistics) and [histograms](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#RasterHistogram) for the provided [ImageHistogramParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageHistogramParameters.html).
  38164. *
  38165. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-imageService.html#computeStatisticsHistograms)
  38166. */
  38167. computeStatisticsHistograms(url: string, parameters: ImageHistogramParameters | ImageHistogramParametersProperties, requestOptions?: any): Promise<any>;
  38168. /**
  38169. * Returns sample point locations, pixel values and corresponding resolutions of the source data for a given geometry.
  38170. *
  38171. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-imageService.html#getSamples)
  38172. */
  38173. getSamples(url: string, parameters: ImageSampleParameters | ImageSampleParametersProperties, requestOptions?: any): Promise<ImageSampleResult>;
  38174. /**
  38175. * Sends a request to the ArcGIS REST image service resource to identify content based on the [ImageIdentifyParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html) specified in the `params` argument.
  38176. *
  38177. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-imageService.html#identify)
  38178. */
  38179. identify(url: string, params: ImageIdentifyParameters, requestOptions?: any): Promise<ImageIdentifyResult>;
  38180. }
  38181. export const imageService: imageService;
  38182. export class DataModel extends Accessor {
  38183. /**
  38184. * A list of the [entity types](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html) contained in the knowledge graph including their associated properties.
  38185. *
  38186. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-DataModel.html#entityTypes)
  38187. */
  38188. entityTypes: EntityType[];
  38189. /**
  38190. * A list of the [relationship types](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-RelationshipType.html) in the knowledge graph including their associated properties.
  38191. *
  38192. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-DataModel.html#relationshipTypes)
  38193. */
  38194. relationshipTypes: RelationshipType[];
  38195. /**
  38196. * Specifies [spatial reference](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html) information for the knowledge graph.
  38197. *
  38198. * @default null
  38199. *
  38200. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-DataModel.html#spatialReference)
  38201. */
  38202. spatialReference: SpatialReference;
  38203. /**
  38204. * Indicates whether users can make changes to the data model.
  38205. *
  38206. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-DataModel.html#strict)
  38207. */
  38208. strict: boolean;
  38209. /**
  38210. * The date the data model was last updated.
  38211. *
  38212. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-DataModel.html#timestamp)
  38213. */
  38214. timestamp: Date;
  38215. /**
  38216. * The data model defines the [entity types](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html) and [relationship types](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-RelationshipType.html) in a knowledge graph service as well as some additional settings.
  38217. *
  38218. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-DataModel.html)
  38219. */
  38220. constructor(properties?: DataModelProperties);
  38221. }
  38222. /** @deprecated Import the DataModel class instead. */
  38223. export type DataModelConstructor = typeof DataModel;
  38224. interface DataModelProperties {
  38225. /**
  38226. * A list of the [entity types](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html) contained in the knowledge graph including their associated properties.
  38227. *
  38228. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-DataModel.html#entityTypes)
  38229. */
  38230. entityTypes?: EntityTypeProperties[];
  38231. /**
  38232. * A list of the [relationship types](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-RelationshipType.html) in the knowledge graph including their associated properties.
  38233. *
  38234. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-DataModel.html#relationshipTypes)
  38235. */
  38236. relationshipTypes?: RelationshipTypeProperties[];
  38237. /**
  38238. * Specifies [spatial reference](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html) information for the knowledge graph.
  38239. *
  38240. * @default null
  38241. *
  38242. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-DataModel.html#spatialReference)
  38243. */
  38244. spatialReference?: SpatialReferenceProperties;
  38245. /**
  38246. * Indicates whether users can make changes to the data model.
  38247. *
  38248. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-DataModel.html#strict)
  38249. */
  38250. strict?: boolean;
  38251. /**
  38252. * The date the data model was last updated.
  38253. *
  38254. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-DataModel.html#timestamp)
  38255. */
  38256. timestamp?: DateProperties;
  38257. }
  38258. export class Entity extends GraphNamedObject {
  38259. /**
  38260. * An entity is a specific instance of an [EntityType](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html) that can exist in the [knowledge graph](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-KnowledgeGraph.html).
  38261. *
  38262. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Entity.html)
  38263. */
  38264. constructor(properties?: EntityProperties);
  38265. }
  38266. /** @deprecated Import the Entity class instead. */
  38267. export type EntityConstructor = typeof Entity;
  38268. interface EntityProperties extends GraphNamedObjectProperties {
  38269. }
  38270. export class EntityType extends GraphObjectType {
  38271. /**
  38272. * An entity type defines a homogeneous collection of [entities](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Entity.html) with a common set of properties and a spatial feature type.
  38273. *
  38274. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html)
  38275. */
  38276. constructor(properties?: EntityTypeProperties);
  38277. }
  38278. /** @deprecated Import the EntityType class instead. */
  38279. export type EntityTypeConstructor = typeof EntityType;
  38280. interface EntityTypeProperties extends GraphObjectTypeProperties {
  38281. }
  38282. export class FieldIndex extends Accessor {
  38283. /**
  38284. * Specifies if the field is indexed in ascending order.
  38285. *
  38286. * @default true
  38287. *
  38288. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-FieldIndex.html#ascending)
  38289. */
  38290. ascending: boolean;
  38291. /**
  38292. * Description of the field.
  38293. *
  38294. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-FieldIndex.html#description)
  38295. */
  38296. description: string;
  38297. /**
  38298. * The ordered field names included in this index.
  38299. *
  38300. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-FieldIndex.html#fieldNames)
  38301. */
  38302. fieldNames: string[];
  38303. /**
  38304. * The name of the field.
  38305. *
  38306. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-FieldIndex.html#name)
  38307. */
  38308. name: string;
  38309. /**
  38310. * Specifies if the values in the field are unique (no duplicate values).
  38311. *
  38312. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-FieldIndex.html#unique)
  38313. */
  38314. unique: boolean;
  38315. /**
  38316. * Defines an index on fields associated with an [entity type](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html) or [relationship type](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-RelationshipType.html).
  38317. *
  38318. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-FieldIndex.html)
  38319. */
  38320. constructor(properties?: FieldIndexProperties);
  38321. }
  38322. /** @deprecated Import the FieldIndex class instead. */
  38323. export type FieldIndexConstructor = typeof FieldIndex;
  38324. interface FieldIndexProperties {
  38325. /**
  38326. * Specifies if the field is indexed in ascending order.
  38327. *
  38328. * @default true
  38329. *
  38330. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-FieldIndex.html#ascending)
  38331. */
  38332. ascending?: boolean;
  38333. /**
  38334. * Description of the field.
  38335. *
  38336. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-FieldIndex.html#description)
  38337. */
  38338. description?: string;
  38339. /**
  38340. * The ordered field names included in this index.
  38341. *
  38342. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-FieldIndex.html#fieldNames)
  38343. */
  38344. fieldNames?: string[];
  38345. /**
  38346. * The name of the field.
  38347. *
  38348. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-FieldIndex.html#name)
  38349. */
  38350. name?: string;
  38351. /**
  38352. * Specifies if the values in the field are unique (no duplicate values).
  38353. *
  38354. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-FieldIndex.html#unique)
  38355. */
  38356. unique?: boolean;
  38357. }
  38358. export class GraphApplyEdits extends Accessor {
  38359. /**
  38360. * A list of [entities](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Entity.html) to add to the [knowledge graph](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-KnowledgeGraph.html).
  38361. *
  38362. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEdits.html#entityAdds)
  38363. */
  38364. entityAdds: Entity[];
  38365. /**
  38366. * A list of objects containing an [entity type](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html) and the ids of the [entities](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Entity.html) of that type to delete.
  38367. *
  38368. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEdits.html#entityDeletes)
  38369. */
  38370. entityDeletes: GraphNamedObjectDeletes[];
  38371. /**
  38372. * A list of [entities](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Entity.html) with the modified properties to update in the [knowledge graph](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-KnowledgeGraph.html).
  38373. *
  38374. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEdits.html#entityUpdates)
  38375. */
  38376. entityUpdates: Entity[];
  38377. /**
  38378. * Additional options to set an [input quantization](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-InputQuantizationParameters.html) for any geometries being added to the graph and to automatically delete all relationships associated with a deleted entity.
  38379. *
  38380. * @default false
  38381. *
  38382. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEdits.html#options)
  38383. */
  38384. options: GraphApplyEditsOptions;
  38385. /**
  38386. * A list of [relationships](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Relationship.html) to add to the [knowledge graph](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-KnowledgeGraph.html).
  38387. *
  38388. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEdits.html#relationshipAdds)
  38389. */
  38390. relationshipAdds: knowledgeGraphRelationship[];
  38391. /**
  38392. * A list of objects containing a [relationship type](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-RelationshipType.html), and the ids of the [relationships](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Relationship.html) of that type to delete.
  38393. *
  38394. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEdits.html#relationshipDeletes)
  38395. */
  38396. relationshipDeletes: GraphNamedObjectDeletes[];
  38397. /**
  38398. * A list of [relationships](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Relationship.html) with modified properties to update in the [knowledge graph](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-KnowledgeGraph.html).
  38399. *
  38400. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEdits.html#relationshipUpdates)
  38401. */
  38402. relationshipUpdates: knowledgeGraphRelationship[];
  38403. /**
  38404. * This class defines [entities](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Entity.html) and [relationships](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Relationship.html) to add, delete, and update in a knowledge graph service's [graph](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-KnowledgeGraph.html) resource.
  38405. *
  38406. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEdits.html)
  38407. */
  38408. constructor(properties?: GraphApplyEditsProperties);
  38409. }
  38410. /** @deprecated Import the GraphApplyEdits class instead. */
  38411. export type GraphApplyEditsConstructor = typeof GraphApplyEdits;
  38412. interface GraphApplyEditsProperties {
  38413. /**
  38414. * A list of [entities](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Entity.html) to add to the [knowledge graph](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-KnowledgeGraph.html).
  38415. *
  38416. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEdits.html#entityAdds)
  38417. */
  38418. entityAdds?: EntityProperties[];
  38419. /**
  38420. * A list of objects containing an [entity type](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html) and the ids of the [entities](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Entity.html) of that type to delete.
  38421. *
  38422. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEdits.html#entityDeletes)
  38423. */
  38424. entityDeletes?: GraphNamedObjectDeletes[];
  38425. /**
  38426. * A list of [entities](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Entity.html) with the modified properties to update in the [knowledge graph](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-KnowledgeGraph.html).
  38427. *
  38428. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEdits.html#entityUpdates)
  38429. */
  38430. entityUpdates?: EntityProperties[];
  38431. /**
  38432. * Additional options to set an [input quantization](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-InputQuantizationParameters.html) for any geometries being added to the graph and to automatically delete all relationships associated with a deleted entity.
  38433. *
  38434. * @default false
  38435. *
  38436. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEdits.html#options)
  38437. */
  38438. options?: GraphApplyEditsOptions;
  38439. /**
  38440. * A list of [relationships](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Relationship.html) to add to the [knowledge graph](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-KnowledgeGraph.html).
  38441. *
  38442. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEdits.html#relationshipAdds)
  38443. */
  38444. relationshipAdds?: knowledgeGraphRelationshipProperties[];
  38445. /**
  38446. * A list of objects containing a [relationship type](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-RelationshipType.html), and the ids of the [relationships](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Relationship.html) of that type to delete.
  38447. *
  38448. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEdits.html#relationshipDeletes)
  38449. */
  38450. relationshipDeletes?: GraphNamedObjectDeletes[];
  38451. /**
  38452. * A list of [relationships](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Relationship.html) with modified properties to update in the [knowledge graph](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-KnowledgeGraph.html).
  38453. *
  38454. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEdits.html#relationshipUpdates)
  38455. */
  38456. relationshipUpdates?: knowledgeGraphRelationshipProperties[];
  38457. }
  38458. export interface GraphApplyEditsOptions {
  38459. /**
  38460. * Custom [quantization parameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-InputQuantizationParameters.html) for input geometry that compresses geometry for transfer to the server.
  38461. *
  38462. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEdits.html#options)
  38463. */
  38464. inputQuantizationParameters: InputQuantizationParameters;
  38465. /**
  38466. * If `true`, deleting an entity will automatically delete all relationships connected to that entity.
  38467. *
  38468. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEdits.html#options)
  38469. */
  38470. cascadeDelete: boolean;
  38471. }
  38472. /**
  38473. * GraphNamedObjectDeletes represents the list of [GraphNamedObjects](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphNamedObject.html) ([entities](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Entity.html) or [relationships](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Relationship.html)) of a specific type that will be deleted from a knowledge graph.
  38474. *
  38475. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEdits.html#GraphNamedObjectDeletes)
  38476. */
  38477. export interface GraphNamedObjectDeletes {
  38478. /**
  38479. * The name of the [EntityType](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html) that the entities belongs to.
  38480. *
  38481. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEdits.html#GraphNamedObjectDeletes)
  38482. */
  38483. typeName: string;
  38484. /**
  38485. * A list of the ids of the specified type to delete.
  38486. *
  38487. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEdits.html#GraphNamedObjectDeletes)
  38488. */
  38489. ids: string[];
  38490. }
  38491. export class GraphApplyEditsResult extends Accessor {
  38492. /**
  38493. * Returns a list of objects for each [entity type](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html) or [relationship type](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-RelationshipType.html) that added, updated or deleted records by [executeApplyEdits()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html#executeApplyEdits).
  38494. *
  38495. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEditsResult.html#editResults)
  38496. */
  38497. editResults: EditResultsObject[];
  38498. /**
  38499. * The error message explaining information about why [executeApplyEdits()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html#executeApplyEdits) failed.
  38500. *
  38501. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEditsResult.html#error)
  38502. */
  38503. error: GraphApplyEditsResultError;
  38504. /**
  38505. * If `true` there was an error processing [executeApplyEdits()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html#executeApplyEdits).
  38506. *
  38507. * @default false
  38508. *
  38509. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEditsResult.html#hasError)
  38510. */
  38511. hasError: any;
  38512. /**
  38513. * The result of an [executeApplyEdits()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html#executeApplyEdits) performed on a knowledge graph service's [graph](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-KnowledgeGraph.html) resource.
  38514. *
  38515. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEditsResult.html)
  38516. */
  38517. constructor(properties?: GraphApplyEditsResultProperties);
  38518. }
  38519. /** @deprecated Import the GraphApplyEditsResult class instead. */
  38520. export type GraphApplyEditsResultConstructor = typeof GraphApplyEditsResult;
  38521. interface GraphApplyEditsResultProperties {
  38522. /**
  38523. * Returns a list of objects for each [entity type](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html) or [relationship type](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-RelationshipType.html) that added, updated or deleted records by [executeApplyEdits()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html#executeApplyEdits).
  38524. *
  38525. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEditsResult.html#editResults)
  38526. */
  38527. editResults?: EditResultsObject[];
  38528. /**
  38529. * The error message explaining information about why [executeApplyEdits()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html#executeApplyEdits) failed.
  38530. *
  38531. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEditsResult.html#error)
  38532. */
  38533. error?: GraphApplyEditsResultError;
  38534. /**
  38535. * If `true` there was an error processing [executeApplyEdits()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html#executeApplyEdits).
  38536. *
  38537. * @default false
  38538. *
  38539. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEditsResult.html#hasError)
  38540. */
  38541. hasError?: any;
  38542. }
  38543. /**
  38544. * editResultsObject returns a list of all [entities](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Entity.html) and [relationships](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Relationship.html) of each [type](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphObjectType.html) that was added, updated or deleted from the [KnowledgeGraph](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-KnowledgeGraph.html) as well as any errors that occurred during the operation.
  38545. *
  38546. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEditsResult.html#editResultsObject)
  38547. */
  38548. export interface EditResultsObject {
  38549. /**
  38550. * The name of the [EntityType](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html) or [RelationshipType](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-RelationshipType.html) that had changed items.
  38551. *
  38552. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEditsResult.html#editResultsObject)
  38553. */
  38554. typeName: string;
  38555. /**
  38556. * A list of objects containing the id and error information for every added entity or relationship.
  38557. *
  38558. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEditsResult.html#editResultsObject)
  38559. */
  38560. adds: NamedObjectEditResults[];
  38561. /**
  38562. * A list of objects containing the id and error information for every updated entity or relationship.
  38563. *
  38564. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEditsResult.html#editResultsObject)
  38565. */
  38566. updates: NamedObjectEditResults[];
  38567. /**
  38568. * A list of objects containing the id and error information for every deleted entity or relationship.
  38569. *
  38570. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEditsResult.html#editResultsObject)
  38571. */
  38572. deletes: NamedObjectEditResults[];
  38573. }
  38574. export interface GraphApplyEditsResultError {
  38575. /**
  38576. * Error code returned from the server.
  38577. *
  38578. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEditsResult.html#error)
  38579. */
  38580. errorCode: any;
  38581. /**
  38582. * Description of the error.
  38583. *
  38584. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEditsResult.html#error)
  38585. */
  38586. errorMessage: string;
  38587. }
  38588. /**
  38589. * NamedObjectEditResults contains the `id` of the [GraphNamedObject](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphNamedObject.html) ([Entity](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Entity.html) or [Relationship](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Relationship.html)) that was added, updated or deleted from the [KnowledgeGraph](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-KnowledgeGraph.html) as well as any errors that occurred during the operation.
  38590. *
  38591. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEditsResult.html#NamedObjectEditResults)
  38592. */
  38593. export interface NamedObjectEditResults {
  38594. /**
  38595. * The id of the [Entity](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Entity.html) or [Relationship](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Relationship.html) that was added, updated or deleted from the knowledge graph.
  38596. *
  38597. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEditsResult.html#NamedObjectEditResults)
  38598. */
  38599. id: string;
  38600. /**
  38601. * Indicates any errors caused during the operation applied to this object.
  38602. *
  38603. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEditsResult.html#NamedObjectEditResults)
  38604. */
  38605. error: NamedObjectEditResultsError;
  38606. }
  38607. export interface NamedObjectEditResultsError {
  38608. /**
  38609. * Error code returned from the server.
  38610. *
  38611. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEditsResult.html#NamedObjectEditResults)
  38612. */
  38613. errorCode: any;
  38614. /**
  38615. * Description of the error.
  38616. *
  38617. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphApplyEditsResult.html#NamedObjectEditResults)
  38618. */
  38619. errorMessage: string;
  38620. }
  38621. export class GraphNamedObject extends GraphObject {
  38622. /**
  38623. * The unique ID of the object.
  38624. *
  38625. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphNamedObject.html#id)
  38626. */
  38627. id: string;
  38628. /**
  38629. * Specifies the name for all similar types of objects ([entities](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Entity.html) or [relationships](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Relationship.html)) defined in the knowledge graph.
  38630. *
  38631. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphNamedObject.html#typeName)
  38632. */
  38633. typeName: string;
  38634. /**
  38635. * The parent class for an [Entity](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Entity.html) or [Relationship](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Relationship.html) that is defined in the graph schema.
  38636. *
  38637. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphNamedObject.html)
  38638. */
  38639. constructor(properties?: GraphNamedObjectProperties);
  38640. }
  38641. /** @deprecated Import the GraphNamedObject class instead. */
  38642. export type GraphNamedObjectConstructor = typeof GraphNamedObject;
  38643. interface GraphNamedObjectProperties extends GraphObjectProperties {
  38644. /**
  38645. * The unique ID of the object.
  38646. *
  38647. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphNamedObject.html#id)
  38648. */
  38649. id?: string;
  38650. /**
  38651. * Specifies the name for all similar types of objects ([entities](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Entity.html) or [relationships](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Relationship.html)) defined in the knowledge graph.
  38652. *
  38653. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphNamedObject.html#typeName)
  38654. */
  38655. typeName?: string;
  38656. }
  38657. export class GraphObject extends Accessor {
  38658. /**
  38659. * The properties of the graph object.
  38660. *
  38661. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphObject.html#properties)
  38662. */
  38663. properties: any;
  38664. /**
  38665. * This is the parent class of all objects that can be represented on a graph structure or graph query - [Entity](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Entity.html), [Relationship](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Relationship.html), [Path](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Path.html), and anonymous object.
  38666. *
  38667. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphObject.html)
  38668. */
  38669. constructor(properties?: GraphObjectProperties);
  38670. }
  38671. /** @deprecated Import the GraphObject class instead. */
  38672. export type GraphObjectConstructor = typeof GraphObject;
  38673. interface GraphObjectProperties {
  38674. /**
  38675. * The properties of the graph object.
  38676. *
  38677. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphObject.html#properties)
  38678. */
  38679. properties?: any;
  38680. }
  38681. export class GraphObjectType extends Accessor {
  38682. /**
  38683. * The display name of the graph object type.
  38684. *
  38685. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphObjectType.html#alias)
  38686. */
  38687. alias: string;
  38688. /**
  38689. * Specifies [index fields](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-FieldIndex.html) for a graph object type.
  38690. *
  38691. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphObjectType.html#fieldIndexes)
  38692. */
  38693. fieldIndexes: FieldIndex[];
  38694. /**
  38695. * The name of the graph object type.
  38696. *
  38697. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphObjectType.html#name)
  38698. */
  38699. name: string;
  38700. /**
  38701. * Specifies the [properties](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html) of a graph object type such as an [EntityType](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html) or [RelationshipType](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-RelationshipType.html).
  38702. *
  38703. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphObjectType.html#properties)
  38704. */
  38705. properties: GraphProperty[];
  38706. /**
  38707. * The object type's role in the knowledge graph.
  38708. *
  38709. * @default "Regular"
  38710. *
  38711. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphObjectType.html#role)
  38712. */
  38713. role: string;
  38714. /**
  38715. * Parent object for [entity types](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html) and [relationship types](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-RelationshipType.html) defined in the graph schema.
  38716. *
  38717. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphObjectType.html)
  38718. */
  38719. constructor(properties?: GraphObjectTypeProperties);
  38720. }
  38721. /** @deprecated Import the GraphObjectType class instead. */
  38722. export type GraphObjectTypeConstructor = typeof GraphObjectType;
  38723. interface GraphObjectTypeProperties {
  38724. /**
  38725. * The display name of the graph object type.
  38726. *
  38727. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphObjectType.html#alias)
  38728. */
  38729. alias?: string;
  38730. /**
  38731. * Specifies [index fields](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-FieldIndex.html) for a graph object type.
  38732. *
  38733. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphObjectType.html#fieldIndexes)
  38734. */
  38735. fieldIndexes?: FieldIndexProperties[];
  38736. /**
  38737. * The name of the graph object type.
  38738. *
  38739. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphObjectType.html#name)
  38740. */
  38741. name?: string;
  38742. /**
  38743. * Specifies the [properties](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html) of a graph object type such as an [EntityType](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html) or [RelationshipType](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-RelationshipType.html).
  38744. *
  38745. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphObjectType.html#properties)
  38746. */
  38747. properties?: GraphPropertyProperties[];
  38748. /**
  38749. * The object type's role in the knowledge graph.
  38750. *
  38751. * @default "Regular"
  38752. *
  38753. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphObjectType.html#role)
  38754. */
  38755. role?: string;
  38756. }
  38757. export class GraphProperty extends Accessor {
  38758. /**
  38759. * The display name for the property.
  38760. *
  38761. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#alias)
  38762. */
  38763. alias: string;
  38764. /**
  38765. * Specifies a default value for the object type.
  38766. *
  38767. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#defaultValue)
  38768. */
  38769. defaultValue: any;
  38770. /**
  38771. * Specifies whether the property is visible by default.
  38772. *
  38773. * @default true
  38774. *
  38775. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#defaultVisibility)
  38776. */
  38777. defaultVisibility: boolean;
  38778. /**
  38779. * Specifies whether the property is editable.
  38780. *
  38781. * @default true
  38782. *
  38783. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#editable)
  38784. */
  38785. editable: boolean;
  38786. /**
  38787. * Specifies the field type for the property.
  38788. *
  38789. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#fieldType)
  38790. */
  38791. fieldType: string;
  38792. /**
  38793. * Specifies the geometry type for the property.
  38794. *
  38795. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#geometryType)
  38796. */
  38797. geometryType: string;
  38798. /**
  38799. * Specifies whether the property has an m-value.
  38800. *
  38801. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#hasM)
  38802. */
  38803. hasM: boolean;
  38804. /**
  38805. * Specifies whether property has a z-value.
  38806. *
  38807. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#hasZ)
  38808. */
  38809. hasZ: boolean;
  38810. /**
  38811. * The name of the property.
  38812. *
  38813. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#name)
  38814. */
  38815. name: string;
  38816. /**
  38817. * Specifies whether the property can be `null`.
  38818. *
  38819. * @default true
  38820. *
  38821. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#nullable)
  38822. */
  38823. nullable: boolean;
  38824. /**
  38825. * Specifies whether the property is required.
  38826. *
  38827. * @default false
  38828. *
  38829. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#required)
  38830. */
  38831. required: boolean;
  38832. /**
  38833. * Specifies if the property can be searched and included in search results.
  38834. *
  38835. * @default false
  38836. *
  38837. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#searchable)
  38838. */
  38839. searchable: boolean;
  38840. /**
  38841. * Specifies if the property is system maintained.
  38842. *
  38843. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#systemMaintained)
  38844. */
  38845. systemMaintained: boolean;
  38846. /**
  38847. * Specifies the properties of for [entity types](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html) and [relationship types](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-RelationshipType.html) defined in the graph schema by the [data model](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-DataModel.html).
  38848. *
  38849. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html)
  38850. */
  38851. constructor(properties?: GraphPropertyProperties);
  38852. }
  38853. /** @deprecated Import the GraphProperty class instead. */
  38854. export type GraphPropertyConstructor = typeof GraphProperty;
  38855. interface GraphPropertyProperties {
  38856. /**
  38857. * The display name for the property.
  38858. *
  38859. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#alias)
  38860. */
  38861. alias?: string;
  38862. /**
  38863. * Specifies a default value for the object type.
  38864. *
  38865. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#defaultValue)
  38866. */
  38867. defaultValue?: any;
  38868. /**
  38869. * Specifies whether the property is visible by default.
  38870. *
  38871. * @default true
  38872. *
  38873. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#defaultVisibility)
  38874. */
  38875. defaultVisibility?: boolean;
  38876. /**
  38877. * Specifies whether the property is editable.
  38878. *
  38879. * @default true
  38880. *
  38881. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#editable)
  38882. */
  38883. editable?: boolean;
  38884. /**
  38885. * Specifies the field type for the property.
  38886. *
  38887. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#fieldType)
  38888. */
  38889. fieldType?: string;
  38890. /**
  38891. * Specifies the geometry type for the property.
  38892. *
  38893. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#geometryType)
  38894. */
  38895. geometryType?: string;
  38896. /**
  38897. * Specifies whether the property has an m-value.
  38898. *
  38899. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#hasM)
  38900. */
  38901. hasM?: boolean;
  38902. /**
  38903. * Specifies whether property has a z-value.
  38904. *
  38905. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#hasZ)
  38906. */
  38907. hasZ?: boolean;
  38908. /**
  38909. * The name of the property.
  38910. *
  38911. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#name)
  38912. */
  38913. name?: string;
  38914. /**
  38915. * Specifies whether the property can be `null`.
  38916. *
  38917. * @default true
  38918. *
  38919. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#nullable)
  38920. */
  38921. nullable?: boolean;
  38922. /**
  38923. * Specifies whether the property is required.
  38924. *
  38925. * @default false
  38926. *
  38927. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#required)
  38928. */
  38929. required?: boolean;
  38930. /**
  38931. * Specifies if the property can be searched and included in search results.
  38932. *
  38933. * @default false
  38934. *
  38935. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#searchable)
  38936. */
  38937. searchable?: boolean;
  38938. /**
  38939. * Specifies if the property is system maintained.
  38940. *
  38941. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#systemMaintained)
  38942. */
  38943. systemMaintained?: boolean;
  38944. }
  38945. export class GraphQuery extends Accessor {
  38946. /**
  38947. * The Esri implementation of [openCypher](https://opencypher.org/) query to be executed against the knowledge graph.
  38948. *
  38949. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphQuery.html#openCypherQuery)
  38950. */
  38951. openCypherQuery: string;
  38952. /**
  38953. * Defines the query operation performed on a knowledge graph service's [graph](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-KnowledgeGraph.html) resource.
  38954. *
  38955. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphQuery.html)
  38956. */
  38957. constructor(properties?: GraphQueryProperties);
  38958. }
  38959. /** @deprecated Import the GraphQuery class instead. */
  38960. export type GraphQueryConstructor = typeof GraphQuery;
  38961. interface GraphQueryProperties {
  38962. /**
  38963. * The Esri implementation of [openCypher](https://opencypher.org/) query to be executed against the knowledge graph.
  38964. *
  38965. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphQuery.html#openCypherQuery)
  38966. */
  38967. openCypherQuery?: string;
  38968. }
  38969. export class GraphQueryResult extends Accessor {
  38970. /**
  38971. * An array of the result types that are returned from a search or query.
  38972. *
  38973. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphQueryResult.html#resultRows)
  38974. */
  38975. resultRows: (
  38976. | Path
  38977. | GraphObject
  38978. | Geometry
  38979. | Date
  38980. | string
  38981. | number
  38982. | null
  38983. | (Path | GraphObject | Geometry | Date | string | number | null)[]
  38984. )[];
  38985. /**
  38986. * The results of a [executeQuery()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html#executeQuery) or [executeSearch()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html#executeSearch) on a knowledge graph service.
  38987. *
  38988. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphQueryResult.html)
  38989. */
  38990. constructor(properties?: GraphQueryResultProperties);
  38991. }
  38992. /** @deprecated Import the GraphQueryResult class instead. */
  38993. export type GraphQueryResultConstructor = typeof GraphQueryResult;
  38994. interface GraphQueryResultProperties {
  38995. /**
  38996. * An array of the result types that are returned from a search or query.
  38997. *
  38998. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphQueryResult.html#resultRows)
  38999. */
  39000. resultRows?: (
  39001. | PathProperties
  39002. | GraphObjectProperties
  39003. | GeometryProperties
  39004. | DateProperties
  39005. | string
  39006. | number
  39007. | null
  39008. | (PathProperties | GraphObjectProperties | GeometryProperties | DateProperties | string | number | null)[]
  39009. )[];
  39010. }
  39011. export class GraphQueryStreaming extends GraphQuery {
  39012. /**
  39013. * Custom quantization parameters for input geometry that compresses geometry for transfer to the server.
  39014. *
  39015. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphQueryStreaming.html#bindGeometryQuantizationParameters)
  39016. */
  39017. bindGeometryQuantizationParameters: InputQuantizationParameters;
  39018. /**
  39019. * Specifies a set of parameters containing data to be included in the query.
  39020. *
  39021. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphQueryStreaming.html#bindParameters)
  39022. */
  39023. bindParameters: any;
  39024. /**
  39025. * Used to project the geometry onto a virtual grid, likely representing pixels on the screen.
  39026. *
  39027. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphQueryStreaming.html#outputQuantizationParameters)
  39028. */
  39029. outputQuantizationParameters: OutputQuantizationParameters;
  39030. /**
  39031. * Defines a streaming query operation performed on a [knowledge graph service's](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html) [graph](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-KnowledgeGraph.html) resource.
  39032. *
  39033. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphQueryStreaming.html)
  39034. */
  39035. constructor(properties?: GraphQueryStreamingProperties);
  39036. }
  39037. /** @deprecated Import the GraphQueryStreaming class instead. */
  39038. export type GraphQueryStreamingConstructor = typeof GraphQueryStreaming;
  39039. interface GraphQueryStreamingProperties extends GraphQueryProperties {
  39040. /**
  39041. * Custom quantization parameters for input geometry that compresses geometry for transfer to the server.
  39042. *
  39043. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphQueryStreaming.html#bindGeometryQuantizationParameters)
  39044. */
  39045. bindGeometryQuantizationParameters?: InputQuantizationParametersProperties;
  39046. /**
  39047. * Specifies a set of parameters containing data to be included in the query.
  39048. *
  39049. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphQueryStreaming.html#bindParameters)
  39050. */
  39051. bindParameters?: any;
  39052. /**
  39053. * Used to project the geometry onto a virtual grid, likely representing pixels on the screen.
  39054. *
  39055. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphQueryStreaming.html#outputQuantizationParameters)
  39056. */
  39057. outputQuantizationParameters?: OutputQuantizationParametersProperties;
  39058. }
  39059. export class GraphQueryStreamingResult extends Accessor {
  39060. /**
  39061. * Readable stream of objects matching [executeSearchStreaming()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html#executeSearchStreaming) or [executeQueryStreaming()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html#executeQueryStreaming) criteria.
  39062. *
  39063. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphQueryStreamingResult.html#resultRowsStream)
  39064. */
  39065. resultRowsStream: any;
  39066. /**
  39067. * The result of a [executeSearchStreaming()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html#executeSearchStreaming) or [executeQueryStreaming()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html#executeQueryStreaming) on a knowledge graph service.
  39068. *
  39069. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphQueryStreamingResult.html)
  39070. */
  39071. constructor(properties?: GraphQueryStreamingResultProperties);
  39072. }
  39073. /** @deprecated Import the GraphQueryStreamingResult class instead. */
  39074. export type GraphQueryStreamingResultConstructor = typeof GraphQueryStreamingResult;
  39075. interface GraphQueryStreamingResultProperties {
  39076. /**
  39077. * Readable stream of objects matching [executeSearchStreaming()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html#executeSearchStreaming) or [executeQueryStreaming()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html#executeQueryStreaming) criteria.
  39078. *
  39079. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphQueryStreamingResult.html#resultRowsStream)
  39080. */
  39081. resultRowsStream?: any;
  39082. }
  39083. export class GraphSearch extends Accessor {
  39084. /**
  39085. * The text to search for in the knowledge graph.
  39086. *
  39087. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphSearch.html#searchQuery)
  39088. */
  39089. searchQuery: string;
  39090. /**
  39091. * Specifies whether to search [entities](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html), [relationships](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-RelationshipType.html), or both.
  39092. *
  39093. * @default "both"
  39094. *
  39095. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphSearch.html#typeCategoryFilter)
  39096. */
  39097. typeCategoryFilter: "entity" | "relationship" | "both";
  39098. /**
  39099. * The search operation is performed on a [knowledge graph service's](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html) [graph](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-KnowledgeGraph.html) resource.
  39100. *
  39101. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphSearch.html)
  39102. */
  39103. constructor(properties?: GraphSearchProperties);
  39104. }
  39105. /** @deprecated Import the GraphSearch class instead. */
  39106. export type GraphSearchConstructor = typeof GraphSearch;
  39107. interface GraphSearchProperties {
  39108. /**
  39109. * The text to search for in the knowledge graph.
  39110. *
  39111. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphSearch.html#searchQuery)
  39112. */
  39113. searchQuery?: string;
  39114. /**
  39115. * Specifies whether to search [entities](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html), [relationships](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-RelationshipType.html), or both.
  39116. *
  39117. * @default "both"
  39118. *
  39119. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphSearch.html#typeCategoryFilter)
  39120. */
  39121. typeCategoryFilter?: "entity" | "relationship" | "both";
  39122. }
  39123. export class GraphSearchStreaming extends GraphSearch {
  39124. /**
  39125. * Specifies list of IDs to search.
  39126. *
  39127. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphSearchStreaming.html#globalIdsFilter)
  39128. */
  39129. globalIdsFilter: string[];
  39130. /**
  39131. * Specifies list of names of [entity types](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html#name) or [relationship types](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-RelationshipType.html#name) to search.
  39132. *
  39133. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphSearchStreaming.html#namedTypesFilter)
  39134. */
  39135. namedTypesFilter: string[];
  39136. /**
  39137. * The maximum number of results returned from the search.
  39138. *
  39139. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphSearchStreaming.html#num)
  39140. */
  39141. num: number;
  39142. /**
  39143. * If `true`, returns the IDs of objects that match the search, the names of the properties that matched the search term, scores and highlights of the result set.
  39144. *
  39145. * @default false
  39146. *
  39147. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphSearchStreaming.html#returnSearchContext)
  39148. */
  39149. returnSearchContext: boolean;
  39150. /**
  39151. * The index of the first result to return.
  39152. *
  39153. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphSearchStreaming.html#start)
  39154. */
  39155. start: number;
  39156. /**
  39157. * The search operation is performed on a knowledge graph service's [graph](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-KnowledgeGraph.html) resource.
  39158. *
  39159. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphSearchStreaming.html)
  39160. */
  39161. constructor(properties?: GraphSearchStreamingProperties);
  39162. }
  39163. /** @deprecated Import the GraphSearchStreaming class instead. */
  39164. export type GraphSearchStreamingConstructor = typeof GraphSearchStreaming;
  39165. interface GraphSearchStreamingProperties extends GraphSearchProperties {
  39166. /**
  39167. * Specifies list of IDs to search.
  39168. *
  39169. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphSearchStreaming.html#globalIdsFilter)
  39170. */
  39171. globalIdsFilter?: string[];
  39172. /**
  39173. * Specifies list of names of [entity types](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html#name) or [relationship types](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-RelationshipType.html#name) to search.
  39174. *
  39175. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphSearchStreaming.html#namedTypesFilter)
  39176. */
  39177. namedTypesFilter?: string[];
  39178. /**
  39179. * The maximum number of results returned from the search.
  39180. *
  39181. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphSearchStreaming.html#num)
  39182. */
  39183. num?: number;
  39184. /**
  39185. * If `true`, returns the IDs of objects that match the search, the names of the properties that matched the search term, scores and highlights of the result set.
  39186. *
  39187. * @default false
  39188. *
  39189. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphSearchStreaming.html#returnSearchContext)
  39190. */
  39191. returnSearchContext?: boolean;
  39192. /**
  39193. * The index of the first result to return.
  39194. *
  39195. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphSearchStreaming.html#start)
  39196. */
  39197. start?: number;
  39198. }
  39199. export class InputQuantizationParameters extends Accessor {
  39200. /**
  39201. * Origin of M-Values.
  39202. *
  39203. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-InputQuantizationParameters.html#mFalseOrigin)
  39204. */
  39205. mFalseOrigin: number;
  39206. /**
  39207. * Number of significant digits for M-Values.
  39208. *
  39209. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-InputQuantizationParameters.html#mResolution)
  39210. */
  39211. mResolution: number;
  39212. /**
  39213. * False origin of x values of the quantization grid.
  39214. *
  39215. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-InputQuantizationParameters.html#xFalseOrigin)
  39216. */
  39217. xFalseOrigin: number;
  39218. /**
  39219. * Number of significant digits for the x and y coordinates.
  39220. *
  39221. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-InputQuantizationParameters.html#xyResolution)
  39222. */
  39223. xyResolution: number;
  39224. /**
  39225. * False origin for y-values of the quantization grid.
  39226. *
  39227. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-InputQuantizationParameters.html#yFalseOrigin)
  39228. */
  39229. yFalseOrigin: number;
  39230. /**
  39231. * The false origin of the Z-values.
  39232. *
  39233. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-InputQuantizationParameters.html#zFalseOrigin)
  39234. */
  39235. zFalseOrigin: number;
  39236. /**
  39237. * Number of significant digits of the Z-Values.
  39238. *
  39239. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-InputQuantizationParameters.html#zResolution)
  39240. */
  39241. zResolution: number;
  39242. /**
  39243. * Custom quantization parameters for input geometry that compresses geometry for transfer to the server.
  39244. *
  39245. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-InputQuantizationParameters.html)
  39246. */
  39247. constructor(properties?: InputQuantizationParametersProperties);
  39248. }
  39249. /** @deprecated Import the InputQuantizationParameters class instead. */
  39250. export type InputQuantizationParametersConstructor = typeof InputQuantizationParameters;
  39251. interface InputQuantizationParametersProperties {
  39252. /**
  39253. * Origin of M-Values.
  39254. *
  39255. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-InputQuantizationParameters.html#mFalseOrigin)
  39256. */
  39257. mFalseOrigin?: number;
  39258. /**
  39259. * Number of significant digits for M-Values.
  39260. *
  39261. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-InputQuantizationParameters.html#mResolution)
  39262. */
  39263. mResolution?: number;
  39264. /**
  39265. * False origin of x values of the quantization grid.
  39266. *
  39267. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-InputQuantizationParameters.html#xFalseOrigin)
  39268. */
  39269. xFalseOrigin?: number;
  39270. /**
  39271. * Number of significant digits for the x and y coordinates.
  39272. *
  39273. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-InputQuantizationParameters.html#xyResolution)
  39274. */
  39275. xyResolution?: number;
  39276. /**
  39277. * False origin for y-values of the quantization grid.
  39278. *
  39279. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-InputQuantizationParameters.html#yFalseOrigin)
  39280. */
  39281. yFalseOrigin?: number;
  39282. /**
  39283. * The false origin of the Z-values.
  39284. *
  39285. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-InputQuantizationParameters.html#zFalseOrigin)
  39286. */
  39287. zFalseOrigin?: number;
  39288. /**
  39289. * Number of significant digits of the Z-Values.
  39290. *
  39291. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-InputQuantizationParameters.html#zResolution)
  39292. */
  39293. zResolution?: number;
  39294. }
  39295. export class KnowledgeGraph extends Accessor {
  39296. /**
  39297. * The data model of the knowledge graph service.
  39298. *
  39299. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-KnowledgeGraph.html#dataModel)
  39300. */
  39301. dataModel: DataModel;
  39302. /**
  39303. * The url to a hosted knowledge graph.
  39304. *
  39305. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-KnowledgeGraph.html#url)
  39306. */
  39307. url: string;
  39308. /**
  39309. * The knowledge graph associated with the [knowledgeGraphService](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html).
  39310. *
  39311. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-KnowledgeGraph.html)
  39312. */
  39313. constructor(properties?: KnowledgeGraphProperties);
  39314. }
  39315. /** @deprecated Import the KnowledgeGraph class instead. */
  39316. export type KnowledgeGraphConstructor = typeof KnowledgeGraph;
  39317. interface KnowledgeGraphProperties {
  39318. /**
  39319. * The data model of the knowledge graph service.
  39320. *
  39321. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-KnowledgeGraph.html#dataModel)
  39322. */
  39323. dataModel?: DataModelProperties;
  39324. /**
  39325. * The url to a hosted knowledge graph.
  39326. *
  39327. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-KnowledgeGraph.html#url)
  39328. */
  39329. url?: string;
  39330. }
  39331. export class OutputQuantizationParameters extends Accessor {
  39332. /**
  39333. * An extent defining the quantization grid bounds.
  39334. *
  39335. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-OutputQuantizationParameters.html#extent)
  39336. */
  39337. extent: OutputQuantizationParametersExtent;
  39338. /**
  39339. * Geometry coordinates are optimized for viewing and displaying of data.
  39340. *
  39341. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-OutputQuantizationParameters.html#quantizeMode)
  39342. */
  39343. quantizeMode: "view" | "edit";
  39344. /**
  39345. * The size of one pixel in the units of the [SpatialReference](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html).
  39346. *
  39347. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-OutputQuantizationParameters.html#tolerance)
  39348. */
  39349. tolerance: number;
  39350. /**
  39351. * Used to project the geometry onto a virtual grid, likely representing pixels on the screen.
  39352. *
  39353. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-OutputQuantizationParameters.html)
  39354. */
  39355. constructor(properties?: OutputQuantizationParametersProperties);
  39356. }
  39357. /** @deprecated Import the OutputQuantizationParameters class instead. */
  39358. export type OutputQuantizationParametersConstructor = typeof OutputQuantizationParameters;
  39359. interface OutputQuantizationParametersProperties {
  39360. /**
  39361. * An extent defining the quantization grid bounds.
  39362. *
  39363. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-OutputQuantizationParameters.html#extent)
  39364. */
  39365. extent?: OutputQuantizationParametersExtent;
  39366. /**
  39367. * Geometry coordinates are optimized for viewing and displaying of data.
  39368. *
  39369. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-OutputQuantizationParameters.html#quantizeMode)
  39370. */
  39371. quantizeMode?: "view" | "edit";
  39372. /**
  39373. * The size of one pixel in the units of the [SpatialReference](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html).
  39374. *
  39375. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-OutputQuantizationParameters.html#tolerance)
  39376. */
  39377. tolerance?: number;
  39378. }
  39379. export interface OutputQuantizationParametersExtent {
  39380. /**
  39381. * Maximum horizontal grid bounds.
  39382. *
  39383. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-OutputQuantizationParameters.html#extent)
  39384. */
  39385. xmax: number;
  39386. /**
  39387. * Minimum horizontal grid bounds.
  39388. *
  39389. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-OutputQuantizationParameters.html#extent)
  39390. */
  39391. xmin: number;
  39392. /**
  39393. * Maximum vertical grid bounds.
  39394. *
  39395. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-OutputQuantizationParameters.html#extent)
  39396. */
  39397. ymax: number;
  39398. /**
  39399. * Minimum vertical grid bounds.
  39400. *
  39401. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-OutputQuantizationParameters.html#extent)
  39402. */
  39403. ymin: number;
  39404. }
  39405. export class Path extends Accessor {
  39406. /**
  39407. * Array of [entities](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Entity.html) and [relationships](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Relationship.html) where the first element is the starting entity of the path, the final element is the ending entity of the path, and intermediary elements are entities and relationships connecting the two.
  39408. *
  39409. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Path.html#path)
  39410. */
  39411. path: GraphObject[];
  39412. /**
  39413. * An object containing all [entities](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Entity.html) and [relationships](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Relationship.html) required to traverse a graph from one entity to another.
  39414. *
  39415. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Path.html)
  39416. */
  39417. constructor(properties?: PathProperties);
  39418. }
  39419. /** @deprecated Import the Path class instead. */
  39420. export type PathConstructor = typeof Path;
  39421. interface PathProperties {
  39422. /**
  39423. * Array of [entities](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Entity.html) and [relationships](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Relationship.html) where the first element is the starting entity of the path, the final element is the ending entity of the path, and intermediary elements are entities and relationships connecting the two.
  39424. *
  39425. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Path.html#path)
  39426. */
  39427. path?: GraphObjectProperties[];
  39428. }
  39429. export class knowledgeGraphRelationship extends GraphNamedObject {
  39430. /**
  39431. * The ID of the destination entity of the relationship (i.e.
  39432. *
  39433. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Relationship.html#destinationId)
  39434. */
  39435. destinationId: string;
  39436. /**
  39437. * The ID of the origin entity of the relationship (i.e.
  39438. *
  39439. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Relationship.html#originId)
  39440. */
  39441. originId: string;
  39442. /**
  39443. * A relationship is an instance of a [relationship type](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-RelationshipType.html) that defines an association between two [entities](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Entity.html).
  39444. *
  39445. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Relationship.html)
  39446. */
  39447. constructor(properties?: knowledgeGraphRelationshipProperties);
  39448. }
  39449. /** @deprecated Import the knowledgeGraphRelationship class instead. */
  39450. export type knowledgeGraphRelationshipConstructor = typeof knowledgeGraphRelationship;
  39451. interface knowledgeGraphRelationshipProperties extends GraphNamedObjectProperties {
  39452. /**
  39453. * The ID of the destination entity of the relationship (i.e.
  39454. *
  39455. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Relationship.html#destinationId)
  39456. */
  39457. destinationId?: string;
  39458. /**
  39459. * The ID of the origin entity of the relationship (i.e.
  39460. *
  39461. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Relationship.html#originId)
  39462. */
  39463. originId?: string;
  39464. }
  39465. export class RelationshipType extends GraphObjectType {
  39466. /**
  39467. * Specifies the [entity types](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html) can be the destination of this relationship type.
  39468. *
  39469. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-RelationshipType.html#destinationEntityTypes)
  39470. */
  39471. destinationEntityTypes: string[];
  39472. /**
  39473. * Specifies the [entity types](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html) that can be the origin of this relationship type.
  39474. *
  39475. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-RelationshipType.html#originEntityTypes)
  39476. */
  39477. originEntityTypes: string[];
  39478. /**
  39479. * Indicates whether the destination [entity types](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html) for the relationship can be changed.
  39480. *
  39481. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-RelationshipType.html#strictDestination)
  39482. */
  39483. strictDestination: boolean;
  39484. /**
  39485. * Indicates whether the origin [entity types](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html) for the relationship can be changed.
  39486. *
  39487. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-RelationshipType.html#strictOrigin)
  39488. */
  39489. strictOrigin: boolean;
  39490. /**
  39491. * A relationship type defines a homogenous collection of [relationships](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Relationship.html) that can exist between two [entity types](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html), with a common set of properties.
  39492. *
  39493. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-RelationshipType.html)
  39494. */
  39495. constructor(properties?: RelationshipTypeProperties);
  39496. }
  39497. /** @deprecated Import the RelationshipType class instead. */
  39498. export type RelationshipTypeConstructor = typeof RelationshipType;
  39499. interface RelationshipTypeProperties extends GraphObjectTypeProperties {
  39500. /**
  39501. * Specifies the [entity types](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html) can be the destination of this relationship type.
  39502. *
  39503. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-RelationshipType.html#destinationEntityTypes)
  39504. */
  39505. destinationEntityTypes?: string[];
  39506. /**
  39507. * Specifies the [entity types](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html) that can be the origin of this relationship type.
  39508. *
  39509. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-RelationshipType.html#originEntityTypes)
  39510. */
  39511. originEntityTypes?: string[];
  39512. /**
  39513. * Indicates whether the destination [entity types](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html) for the relationship can be changed.
  39514. *
  39515. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-RelationshipType.html#strictDestination)
  39516. */
  39517. strictDestination?: boolean;
  39518. /**
  39519. * Indicates whether the origin [entity types](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-EntityType.html) for the relationship can be changed.
  39520. *
  39521. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-RelationshipType.html#strictOrigin)
  39522. */
  39523. strictOrigin?: boolean;
  39524. }
  39525. /**
  39526. * A knowledge graph service is associated with several resources.
  39527. *
  39528. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html)
  39529. */
  39530. interface knowledgeGraphService {
  39531. /**
  39532. * Add, delete, or update [entities](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Entity.html) and [relationships](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-Relationship.html) in a [knowledge graph service's](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html) [graph](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-KnowledgeGraph.html) resource.
  39533. *
  39534. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html#executeApplyEdits)
  39535. */
  39536. executeApplyEdits(graph: KnowledgeGraph, edits: GraphApplyEdits, requestOptions?: RequestOptions): Promise<GraphApplyEditsResult>;
  39537. /**
  39538. * Executes a query on [knowledge graph service's](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html) [graph](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-KnowledgeGraph.html) resource using the Esri implementation of [openCypher](https://opencypher.org/) and returns the results.
  39539. *
  39540. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html#executeQuery)
  39541. */
  39542. executeQuery(graph: KnowledgeGraph, queryArguments: GraphQuery, requestOptions?: RequestOptions): Promise<GraphQueryResult>;
  39543. /**
  39544. * Execute a streaming query on a [knowledge graph service's](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html) [graph](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-KnowledgeGraph.html) resource.
  39545. *
  39546. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html#executeQueryStreaming)
  39547. */
  39548. executeQueryStreaming(graph: KnowledgeGraph, queryArguments: GraphQueryStreaming, requestOptions?: RequestOptions): Promise<GraphQueryStreamingResult>;
  39549. /**
  39550. * Search the knowledge graph using a full-text index that is automatically built on the property values in the graph and returns the result.
  39551. *
  39552. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html#executeSearch)
  39553. */
  39554. executeSearch(graph: KnowledgeGraph, searchArguments: GraphSearch, requestOptions?: RequestOptions): Promise<GraphQueryResult>;
  39555. /**
  39556. * Execute a streaming search on a [knowledge graph service's](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html) [graph](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-KnowledgeGraph.html) resource.
  39557. *
  39558. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html#executeSearchStreaming)
  39559. */
  39560. executeSearchStreaming(graph: KnowledgeGraph, searchArguments: GraphSearchStreaming, requestOptions?: any): Promise<GraphQueryStreamingResult>;
  39561. /**
  39562. * Retrieves the knowledge graph service based on the URL provided.
  39563. *
  39564. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html#fetchKnowledgeGraph)
  39565. */
  39566. fetchKnowledgeGraph(url: string): Promise<KnowledgeGraph>;
  39567. /**
  39568. * Refreshes the [data model](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-DataModel.html) of the [knowledge graph](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-KnowledgeGraph.html).
  39569. *
  39570. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html#refreshDataModel)
  39571. */
  39572. refreshDataModel(graph: KnowledgeGraph): void;
  39573. }
  39574. export const knowledgeGraphService: knowledgeGraphService;
  39575. /**
  39576. * A convenience module for importing [locator](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html) functions when developing with [TypeScript](https://developers.arcgis.com/javascript/latest/typescript-setup/).
  39577. *
  39578. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html)
  39579. */
  39580. interface locator {
  39581. /**
  39582. * Find address candidates for multiple input addresses.
  39583. *
  39584. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#addressesToLocations)
  39585. */
  39586. addressesToLocations(url: string, params: locatorAddressesToLocationsParams, requestOptions?: any): Promise<AddressCandidate[]>;
  39587. /**
  39588. * Sends a request to the ArcGIS REST geocode resource to find candidates for a single address specified in the address parameter.
  39589. *
  39590. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#addressToLocations)
  39591. */
  39592. addressToLocations(url: string, params: locatorAddressToLocationsParams, requestOptions?: any): Promise<AddressCandidate[]>;
  39593. /**
  39594. * Locates an address based on a given point.
  39595. *
  39596. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#locationToAddress)
  39597. */
  39598. locationToAddress(url: string, params: locatorLocationToAddressParams, requestOptions?: any): Promise<AddressCandidate>;
  39599. /**
  39600. * Get character by character auto complete suggestions.
  39601. *
  39602. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#suggestLocations)
  39603. */
  39604. suggestLocations(url: string, params: locatorSuggestLocationsParams, requestOptions?: any): Promise<SuggestionResult[]>;
  39605. }
  39606. export const locator: locator;
  39607. export interface locatorAddressesToLocationsParams {
  39608. /**
  39609. * The input addresses in the format supported by the geocode service.
  39610. *
  39611. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#addressesToLocations)
  39612. */
  39613. addresses: any[];
  39614. /**
  39615. * Limits the results to only search in the country provided.
  39616. *
  39617. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#addressesToLocations)
  39618. */
  39619. countryCode?: string;
  39620. /**
  39621. * Limit result to one or more categories.
  39622. *
  39623. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#addressesToLocations)
  39624. */
  39625. categories?: string[];
  39626. /**
  39627. * Define the type of location, either `"street"` or `"rooftop"`, of the point returned from the [World Geocoding Service](https://developers.arcgis.com/rest/geocode/api-reference/geocoding-category-filtering.htm).
  39628. *
  39629. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#addressesToLocations)
  39630. */
  39631. locationType?: string;
  39632. /**
  39633. * The spatial reference of the output geometries.
  39634. *
  39635. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#addressesToLocations)
  39636. */
  39637. outSpatialReference?: SpatialReference;
  39638. }
  39639. export interface locatorAddressToLocationsParams {
  39640. /**
  39641. * The address argument is data object that contains properties representing the various address fields accepted by the corresponding geocode service.
  39642. *
  39643. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#addressToLocations)
  39644. */
  39645. address: any;
  39646. /**
  39647. * Limit result to one or more categories.
  39648. *
  39649. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#addressToLocations)
  39650. */
  39651. categories?: string[];
  39652. /**
  39653. * Limit result to a specific country.
  39654. *
  39655. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#addressToLocations)
  39656. */
  39657. countryCode?: string;
  39658. /**
  39659. * Allows the results of single geocode transactions to be persisted.
  39660. *
  39661. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#addressToLocations)
  39662. */
  39663. forStorage?: boolean;
  39664. /**
  39665. * Used to weight returned results for a specified area.
  39666. *
  39667. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#addressToLocations)
  39668. */
  39669. location?: Point;
  39670. /**
  39671. * Define the type of location, either `"street"` or `"rooftop"`, of the point returned from the [World Geocoding Service](https://developers.arcgis.com/rest/geocode/api-reference/geocoding-category-filtering.htm).
  39672. *
  39673. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#addressToLocations)
  39674. */
  39675. locationType?: string;
  39676. /**
  39677. * A `suggestLocations` result ID (magicKey).
  39678. *
  39679. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#addressToLocations)
  39680. */
  39681. magicKey?: string;
  39682. /**
  39683. * Maximum results to return from the query.
  39684. *
  39685. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#addressToLocations)
  39686. */
  39687. maxLocations?: number;
  39688. /**
  39689. * The list of fields included in the returned result set.
  39690. *
  39691. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#addressToLocations)
  39692. */
  39693. outFields?: string[];
  39694. /**
  39695. * The spatial reference of the output geometries.
  39696. *
  39697. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#addressToLocations)
  39698. */
  39699. outSpatialReference?: SpatialReference;
  39700. /**
  39701. * Defines the extent within which the geocode server will search.
  39702. *
  39703. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#addressToLocations)
  39704. */
  39705. searchExtent?: Extent;
  39706. }
  39707. export interface locatorLocationToAddressParams {
  39708. /**
  39709. * The point at which to search for the closest address.
  39710. *
  39711. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#locationToAddress)
  39712. */
  39713. location: Point;
  39714. /**
  39715. * Define the type of location, either `"street"` or `"rooftop"`, of the point returned from the [World Geocoding Service](https://developers.arcgis.com/rest/geocode/api-reference/geocoding-category-filtering.htm).
  39716. *
  39717. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#locationToAddress)
  39718. */
  39719. locationType?: string;
  39720. /**
  39721. * The spatial reference of the output geometries.
  39722. *
  39723. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#locationToAddress)
  39724. */
  39725. outSpatialReference?: SpatialReference;
  39726. }
  39727. export interface locatorSuggestLocationsParams {
  39728. /**
  39729. * A place or address type which can be used to filter suggest results.
  39730. *
  39731. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#suggestLocations)
  39732. */
  39733. categories?: string[];
  39734. /**
  39735. * Defines a normalized location point that is used to sort geocoding candidates based upon their proximity to the given location.
  39736. *
  39737. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#suggestLocations)
  39738. */
  39739. location: Point;
  39740. /**
  39741. * The input text entered by a user which is used by the suggest operation to generate a list of possible matches.
  39742. *
  39743. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#suggestLocations)
  39744. */
  39745. text: string;
  39746. }
  39747. /**
  39748. * Describes the object representing the result of the [suggestLocations()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#suggestLocations) method.
  39749. *
  39750. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#SuggestionResult)
  39751. */
  39752. export interface SuggestionResult {
  39753. /**
  39754. * Indicates if the result is a Collection.
  39755. *
  39756. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#SuggestionResult)
  39757. */
  39758. isCollection: boolean;
  39759. /**
  39760. * ID used in combination with the `text` property to uniquely identify a suggestion.
  39761. *
  39762. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#SuggestionResult)
  39763. */
  39764. magicKey: string;
  39765. /**
  39766. * The string name of the suggested location to geocode.
  39767. *
  39768. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#SuggestionResult)
  39769. */
  39770. text: string;
  39771. }
  39772. /**
  39773. * The utility network associations model connectivity, containment, and structure relations between assets.
  39774. *
  39775. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-queryAssociations.html)
  39776. */
  39777. interface queryAssociations {
  39778. /**
  39779. * Returns all associations filtered by the [QueryAssociationsParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-QueryAssociationsParameters.html) in a utility network.
  39780. *
  39781. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-queryAssociations.html#queryAssociations)
  39782. */
  39783. queryAssociations(url: string, params: QueryAssociationsParameters, requestOptions?: any): Promise<QueryAssociationsResult>;
  39784. }
  39785. export const queryAssociations: queryAssociations;
  39786. export interface AggregatedGeometry extends Accessor, JSONSupport {
  39787. }
  39788. export class AggregatedGeometry {
  39789. /**
  39790. * A [polyline](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html) geometry representing a union of all polyline features encountered during the trace and specified by the output.
  39791. *
  39792. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-AggregatedGeometry.html#line)
  39793. */
  39794. line: Polyline;
  39795. /**
  39796. * A [multi-point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Multipoint.html) geometry representing a union of all point features encountered during the trace and specified by the output The aggregated geometries will only include geometries that belong to features with `assetgroups/assettypes` specified in the trace output.
  39797. *
  39798. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-AggregatedGeometry.html#multipoint)
  39799. */
  39800. multipoint: Multipoint;
  39801. /**
  39802. * A [polygon](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html) geometry representing a union of all polygon features encountered during the trace and specified by the output.
  39803. *
  39804. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-AggregatedGeometry.html#polygon)
  39805. */
  39806. polygon: Polygon;
  39807. /**
  39808. * A class that defines an aggregation of geometries.
  39809. *
  39810. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-AggregatedGeometry.html)
  39811. */
  39812. constructor(properties?: AggregatedGeometryProperties);
  39813. static fromJSON(json: any): AggregatedGeometry;
  39814. }
  39815. /** @deprecated Import the AggregatedGeometry class instead. */
  39816. export type AggregatedGeometryConstructor = typeof AggregatedGeometry;
  39817. interface AggregatedGeometryProperties {
  39818. /**
  39819. * A [polyline](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html) geometry representing a union of all polyline features encountered during the trace and specified by the output.
  39820. *
  39821. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-AggregatedGeometry.html#line)
  39822. */
  39823. line?: PolylineProperties;
  39824. /**
  39825. * A [multi-point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Multipoint.html) geometry representing a union of all point features encountered during the trace and specified by the output The aggregated geometries will only include geometries that belong to features with `assetgroups/assettypes` specified in the trace output.
  39826. *
  39827. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-AggregatedGeometry.html#multipoint)
  39828. */
  39829. multipoint?: MultipointProperties;
  39830. /**
  39831. * A [polygon](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html) geometry representing a union of all polygon features encountered during the trace and specified by the output.
  39832. *
  39833. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-AggregatedGeometry.html#polygon)
  39834. */
  39835. polygon?: PolygonProperties;
  39836. }
  39837. export interface Association extends Accessor, JSONSupport {
  39838. }
  39839. export class Association {
  39840. /**
  39841. * The type of association.
  39842. *
  39843. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html#associationType)
  39844. */
  39845. associationType: "attachment" | "connectivity" | "containment";
  39846. /**
  39847. * Error code returned from the server for a failed associations query.
  39848. *
  39849. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html#errorCode)
  39850. */
  39851. errorCode: number;
  39852. /**
  39853. * Message returned from the server for a failed associations query.
  39854. *
  39855. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html#errorMessage)
  39856. */
  39857. errorMessage: string;
  39858. /**
  39859. * The from side network element of the association.
  39860. *
  39861. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html#fromNetworkElement)
  39862. */
  39863. fromNetworkElement: NetworkElement;
  39864. /**
  39865. * The globalId (UUID) of the association record, uniquely identifes this association row.
  39866. *
  39867. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html#globalId)
  39868. */
  39869. globalId: string;
  39870. /**
  39871. * Specifies the content visibility on the map.
  39872. *
  39873. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html#isContentVisible)
  39874. */
  39875. isContentVisible: boolean;
  39876. /**
  39877. * The synthesized [polyline](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html) geometry created between the two network elements.
  39878. *
  39879. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html#line)
  39880. */
  39881. line: Polyline;
  39882. /**
  39883. * This double parameter of value of 0-1 indicates a percentage along the line of where the trace location is placed.
  39884. *
  39885. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html#percentAlong)
  39886. */
  39887. percentAlong: number;
  39888. /**
  39889. * Indicates the type of association a feature or object participates in, the role the network feature plays in the association relationship, and any properties that are set.
  39890. *
  39891. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html#status)
  39892. */
  39893. status: number;
  39894. /**
  39895. * The to side network element of the association.
  39896. *
  39897. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html#toNetworkElement)
  39898. */
  39899. toNetworkElement: NetworkElement;
  39900. /**
  39901. * The utility network associations model connectivity, containment and structure relations between assets.
  39902. *
  39903. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html)
  39904. */
  39905. constructor(properties?: AssociationProperties);
  39906. static fromJSON(json: any): Association;
  39907. }
  39908. /** @deprecated Import the Association class instead. */
  39909. export type AssociationConstructor = typeof Association;
  39910. interface AssociationProperties {
  39911. /**
  39912. * The type of association.
  39913. *
  39914. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html#associationType)
  39915. */
  39916. associationType?: "attachment" | "connectivity" | "containment";
  39917. /**
  39918. * Error code returned from the server for a failed associations query.
  39919. *
  39920. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html#errorCode)
  39921. */
  39922. errorCode?: number;
  39923. /**
  39924. * Message returned from the server for a failed associations query.
  39925. *
  39926. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html#errorMessage)
  39927. */
  39928. errorMessage?: string;
  39929. /**
  39930. * The from side network element of the association.
  39931. *
  39932. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html#fromNetworkElement)
  39933. */
  39934. fromNetworkElement?: NetworkElementProperties;
  39935. /**
  39936. * The globalId (UUID) of the association record, uniquely identifes this association row.
  39937. *
  39938. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html#globalId)
  39939. */
  39940. globalId?: string;
  39941. /**
  39942. * Specifies the content visibility on the map.
  39943. *
  39944. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html#isContentVisible)
  39945. */
  39946. isContentVisible?: boolean;
  39947. /**
  39948. * The synthesized [polyline](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html) geometry created between the two network elements.
  39949. *
  39950. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html#line)
  39951. */
  39952. line?: PolylineProperties;
  39953. /**
  39954. * This double parameter of value of 0-1 indicates a percentage along the line of where the trace location is placed.
  39955. *
  39956. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html#percentAlong)
  39957. */
  39958. percentAlong?: number;
  39959. /**
  39960. * Indicates the type of association a feature or object participates in, the role the network feature plays in the association relationship, and any properties that are set.
  39961. *
  39962. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html#status)
  39963. */
  39964. status?: number;
  39965. /**
  39966. * The to side network element of the association.
  39967. *
  39968. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html#toNetworkElement)
  39969. */
  39970. toNetworkElement?: NetworkElementProperties;
  39971. }
  39972. export interface AssociationGeometriesResult extends Accessor, JSONSupport {
  39973. }
  39974. export class AssociationGeometriesResult {
  39975. /**
  39976. * List of returned [associations](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html) filtered based on the input parameters in [SynthesizeAssociationGeometriesParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-SynthesizeAssociationGeometriesParameters.html).
  39977. *
  39978. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-AssociationGeometriesResult.html#associations)
  39979. */
  39980. associations: Association[];
  39981. /**
  39982. * Indicates whether the [maxGeometryCount](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-SynthesizeAssociationGeometriesParameters.html#maxGeometryCount) has exceeded.
  39983. *
  39984. * @default false
  39985. *
  39986. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-AssociationGeometriesResult.html#maxGeometryCountExceeded)
  39987. */
  39988. maxGeometryCountExceeded: boolean;
  39989. /**
  39990. * This class defines the results of the function [synthesizeAssociationGeometries](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-synthesizeAssociationGeometries.html) which takes an extent and returns an [AggregatedGeometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-AggregatedGeometry.html) of all [associations](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html) within the extent based on the defined parameters.
  39991. *
  39992. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-AssociationGeometriesResult.html)
  39993. */
  39994. constructor(properties?: AssociationGeometriesResultProperties);
  39995. static fromJSON(json: any): AssociationGeometriesResult;
  39996. }
  39997. /** @deprecated Import the AssociationGeometriesResult class instead. */
  39998. export type AssociationGeometriesResultConstructor = typeof AssociationGeometriesResult;
  39999. interface AssociationGeometriesResultProperties {
  40000. /**
  40001. * List of returned [associations](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html) filtered based on the input parameters in [SynthesizeAssociationGeometriesParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-SynthesizeAssociationGeometriesParameters.html).
  40002. *
  40003. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-AssociationGeometriesResult.html#associations)
  40004. */
  40005. associations?: AssociationProperties[];
  40006. /**
  40007. * Indicates whether the [maxGeometryCount](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-SynthesizeAssociationGeometriesParameters.html#maxGeometryCount) has exceeded.
  40008. *
  40009. * @default false
  40010. *
  40011. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-AssociationGeometriesResult.html#maxGeometryCountExceeded)
  40012. */
  40013. maxGeometryCountExceeded?: boolean;
  40014. }
  40015. export interface FunctionResult extends Accessor, JSONSupport {
  40016. }
  40017. export class FunctionResult {
  40018. /**
  40019. * The aggregate function type used in the supplied trace configuration.
  40020. *
  40021. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-FunctionResult.html#functionType)
  40022. */
  40023. readonly functionType: "add" | "subtract" | "average" | "count" | "min" | "max";
  40024. /**
  40025. * The name of the function result.
  40026. *
  40027. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-FunctionResult.html#networkAttributeName)
  40028. */
  40029. readonly networkAttributeName: string;
  40030. /**
  40031. * Actual result of the aggregate function.
  40032. *
  40033. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-FunctionResult.html#result)
  40034. */
  40035. readonly result: number;
  40036. /**
  40037. * A trace can optionally return a aggregated function result if the trace configuration asked for it.
  40038. *
  40039. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-FunctionResult.html)
  40040. */
  40041. constructor(properties?: FunctionResultProperties);
  40042. static fromJSON(json: any): FunctionResult;
  40043. }
  40044. /** @deprecated Import the FunctionResult class instead. */
  40045. export type FunctionResultConstructor = typeof FunctionResult;
  40046. interface FunctionResultProperties {
  40047. }
  40048. export interface NetworkElement extends Accessor, JSONSupport {
  40049. }
  40050. export class NetworkElement {
  40051. /**
  40052. * The asset group code that this network element represents.
  40053. *
  40054. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-NetworkElement.html#assetGroupCode)
  40055. */
  40056. assetGroupCode: number;
  40057. /**
  40058. * The asset type code discriminator this network element represents.
  40059. *
  40060. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-NetworkElement.html#assetTypeCode)
  40061. */
  40062. assetTypeCode: number;
  40063. /**
  40064. * The globalId of the feature the network element belongs to.
  40065. *
  40066. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-NetworkElement.html#globalId)
  40067. */
  40068. globalId: string;
  40069. /**
  40070. * The network source Id of the feature the network element belongs to.
  40071. *
  40072. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-NetworkElement.html#networkSourceId)
  40073. */
  40074. networkSourceId: number;
  40075. /**
  40076. * The objectId of the feature the network element belongs to.
  40077. *
  40078. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-NetworkElement.html#objectId)
  40079. */
  40080. objectId: number;
  40081. /**
  40082. * Applicable to edge elements, represents a double value (0 to 1) where this edge element starts.
  40083. *
  40084. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-NetworkElement.html#positionFrom)
  40085. */
  40086. positionFrom: number;
  40087. /**
  40088. * Applicable to edge elements, represents a double value (0 to 1) where this edge element ends.
  40089. *
  40090. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-NetworkElement.html#positionTo)
  40091. */
  40092. positionTo: number;
  40093. /**
  40094. * The terminal id defined at the network element.
  40095. *
  40096. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-NetworkElement.html#terminalId)
  40097. */
  40098. terminalId: number;
  40099. /**
  40100. * The network element is a representation of how the network topology defines its graph.
  40101. *
  40102. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-NetworkElement.html)
  40103. */
  40104. constructor(properties?: NetworkElementProperties);
  40105. static fromJSON(json: any): NetworkElement;
  40106. }
  40107. /** @deprecated Import the NetworkElement class instead. */
  40108. export type NetworkElementConstructor = typeof NetworkElement;
  40109. interface NetworkElementProperties {
  40110. /**
  40111. * The asset group code that this network element represents.
  40112. *
  40113. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-NetworkElement.html#assetGroupCode)
  40114. */
  40115. assetGroupCode?: number;
  40116. /**
  40117. * The asset type code discriminator this network element represents.
  40118. *
  40119. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-NetworkElement.html#assetTypeCode)
  40120. */
  40121. assetTypeCode?: number;
  40122. /**
  40123. * The globalId of the feature the network element belongs to.
  40124. *
  40125. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-NetworkElement.html#globalId)
  40126. */
  40127. globalId?: string;
  40128. /**
  40129. * The network source Id of the feature the network element belongs to.
  40130. *
  40131. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-NetworkElement.html#networkSourceId)
  40132. */
  40133. networkSourceId?: number;
  40134. /**
  40135. * The objectId of the feature the network element belongs to.
  40136. *
  40137. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-NetworkElement.html#objectId)
  40138. */
  40139. objectId?: number;
  40140. /**
  40141. * Applicable to edge elements, represents a double value (0 to 1) where this edge element starts.
  40142. *
  40143. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-NetworkElement.html#positionFrom)
  40144. */
  40145. positionFrom?: number;
  40146. /**
  40147. * Applicable to edge elements, represents a double value (0 to 1) where this edge element ends.
  40148. *
  40149. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-NetworkElement.html#positionTo)
  40150. */
  40151. positionTo?: number;
  40152. /**
  40153. * The terminal id defined at the network element.
  40154. *
  40155. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-NetworkElement.html#terminalId)
  40156. */
  40157. terminalId?: number;
  40158. }
  40159. export interface QueryAssociationsParameters extends Accessor, JSONSupport {
  40160. }
  40161. export class QueryAssociationsParameters {
  40162. /**
  40163. * The [NetworkElements](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-NetworkElement.html) for which the association is queried.
  40164. *
  40165. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-QueryAssociationsParameters.html#elements)
  40166. */
  40167. elements: any[];
  40168. /**
  40169. * The geodatabase version to execute the function against.
  40170. *
  40171. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-QueryAssociationsParameters.html#gdbVersion)
  40172. */
  40173. gdbVersion: string;
  40174. /**
  40175. * The date/timestamp (in UTC) to execute the function.
  40176. *
  40177. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-QueryAssociationsParameters.html#moment)
  40178. */
  40179. moment: Date;
  40180. /**
  40181. * Specifies whether to return logically deleted associations.
  40182. *
  40183. * @default false
  40184. *
  40185. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-QueryAssociationsParameters.html#returnDeletes)
  40186. */
  40187. returnDeletes: boolean;
  40188. /**
  40189. * Specifies an array of [Association](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html) types to be queried.
  40190. *
  40191. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-QueryAssociationsParameters.html#types)
  40192. */
  40193. types: | "connectivity"
  40194. | "attachment"
  40195. | "containment"
  40196. | "junction-edge-from-connectivity"
  40197. | "junction-midspan-connectivity"
  40198. | "junction-edge-to-connectivity"[];
  40199. /**
  40200. * QueryAssociationsParameters describes the parameters required to execute the [queryAssociations()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-queryAssociations.html) function, which returns a list of [associations](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html) filtered by the parameters set.
  40201. *
  40202. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-QueryAssociationsParameters.html)
  40203. */
  40204. constructor(properties?: QueryAssociationsParametersProperties);
  40205. static fromJSON(json: any): QueryAssociationsParameters;
  40206. }
  40207. /** @deprecated Import the QueryAssociationsParameters class instead. */
  40208. export type QueryAssociationsParametersConstructor = typeof QueryAssociationsParameters;
  40209. interface QueryAssociationsParametersProperties {
  40210. /**
  40211. * The [NetworkElements](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-NetworkElement.html) for which the association is queried.
  40212. *
  40213. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-QueryAssociationsParameters.html#elements)
  40214. */
  40215. elements?: any[];
  40216. /**
  40217. * The geodatabase version to execute the function against.
  40218. *
  40219. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-QueryAssociationsParameters.html#gdbVersion)
  40220. */
  40221. gdbVersion?: string;
  40222. /**
  40223. * The date/timestamp (in UTC) to execute the function.
  40224. *
  40225. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-QueryAssociationsParameters.html#moment)
  40226. */
  40227. moment?: DateProperties;
  40228. /**
  40229. * Specifies whether to return logically deleted associations.
  40230. *
  40231. * @default false
  40232. *
  40233. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-QueryAssociationsParameters.html#returnDeletes)
  40234. */
  40235. returnDeletes?: boolean;
  40236. /**
  40237. * Specifies an array of [Association](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html) types to be queried.
  40238. *
  40239. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-QueryAssociationsParameters.html#types)
  40240. */
  40241. types?: | "connectivity"
  40242. | "attachment"
  40243. | "containment"
  40244. | "junction-edge-from-connectivity"
  40245. | "junction-midspan-connectivity"
  40246. | "junction-edge-to-connectivity"[];
  40247. }
  40248. export interface QueryAssociationsResult extends Accessor, JSONSupport {
  40249. }
  40250. export class QueryAssociationsResult {
  40251. /**
  40252. * List of [associations](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html) returned filtered based on the input parameters in [QueryAssociationsParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-QueryAssociationsParameters.html).
  40253. *
  40254. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-QueryAssociationsResult.html#associations)
  40255. */
  40256. associations: Association[];
  40257. /**
  40258. * Defines the results of the [queryAssociations()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-queryAssociations.html) function which takes in [QueryAssociationsParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-QueryAssociationsParameters.html) and returns an [QueryAssociationsResult](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-QueryAssociationsResult.html) of all [associations](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html) filtered by the parameters set.
  40259. *
  40260. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-QueryAssociationsResult.html)
  40261. */
  40262. constructor(properties?: QueryAssociationsResultProperties);
  40263. static fromJSON(json: any): QueryAssociationsResult;
  40264. }
  40265. /** @deprecated Import the QueryAssociationsResult class instead. */
  40266. export type QueryAssociationsResultConstructor = typeof QueryAssociationsResult;
  40267. interface QueryAssociationsResultProperties {
  40268. /**
  40269. * List of [associations](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-Association.html) returned filtered based on the input parameters in [QueryAssociationsParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-QueryAssociationsParameters.html).
  40270. *
  40271. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-QueryAssociationsResult.html#associations)
  40272. */
  40273. associations?: AssociationProperties[];
  40274. }
  40275. export interface SynthesizeAssociationGeometriesParameters extends Accessor, JSONSupport {
  40276. }
  40277. export class SynthesizeAssociationGeometriesParameters {
  40278. /**
  40279. * The extent used to execute a spatial query to retrieve the associations.
  40280. *
  40281. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-SynthesizeAssociationGeometriesParameters.html#extent)
  40282. */
  40283. extent: Extent;
  40284. /**
  40285. * The geodatabase version to execute the function against.
  40286. *
  40287. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-SynthesizeAssociationGeometriesParameters.html#gdbVersion)
  40288. */
  40289. gdbVersion: string;
  40290. /**
  40291. * A number that indicates the maximum associations that should be synthesized after which the operation should immediately return.
  40292. *
  40293. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-SynthesizeAssociationGeometriesParameters.html#maxGeometryCount)
  40294. */
  40295. maxGeometryCount: number;
  40296. /**
  40297. * The date/timestamp (in UTC) to execute the function.
  40298. *
  40299. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-SynthesizeAssociationGeometriesParameters.html#moment)
  40300. */
  40301. moment: Date;
  40302. /**
  40303. * The spatial reference that should be used to project the synthesized geometries.
  40304. *
  40305. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-SynthesizeAssociationGeometriesParameters.html#outSpatialReference)
  40306. */
  40307. outSpatialReference: SpatialReference;
  40308. /**
  40309. * Indicates whether to synthesize and return structual attachment associations.
  40310. *
  40311. * @default false
  40312. *
  40313. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-SynthesizeAssociationGeometriesParameters.html#returnAttachmentAssociations)
  40314. */
  40315. returnAttachmentAssociations: boolean;
  40316. /**
  40317. * Indicates whether to synthesize and return connectivity associations.
  40318. *
  40319. * @default false
  40320. *
  40321. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-SynthesizeAssociationGeometriesParameters.html#returnConnectivityAssociations)
  40322. */
  40323. returnConnectivityAssociations: boolean;
  40324. /**
  40325. * Indicates whether to synthesize and return containment associations.
  40326. *
  40327. * @default false
  40328. *
  40329. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-SynthesizeAssociationGeometriesParameters.html#returnContainmentAssociations)
  40330. */
  40331. returnContainmentAssociations: boolean;
  40332. /**
  40333. * This class describes the parameters required to execute the synthesizeAssociationGeometries function which synthesizes and returns the associations geometries in a given extent.
  40334. *
  40335. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-SynthesizeAssociationGeometriesParameters.html)
  40336. */
  40337. constructor(properties?: SynthesizeAssociationGeometriesParametersProperties);
  40338. static fromJSON(json: any): SynthesizeAssociationGeometriesParameters;
  40339. }
  40340. /** @deprecated Import the SynthesizeAssociationGeometriesParameters class instead. */
  40341. export type SynthesizeAssociationGeometriesParametersConstructor = typeof SynthesizeAssociationGeometriesParameters;
  40342. interface SynthesizeAssociationGeometriesParametersProperties {
  40343. /**
  40344. * The extent used to execute a spatial query to retrieve the associations.
  40345. *
  40346. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-SynthesizeAssociationGeometriesParameters.html#extent)
  40347. */
  40348. extent?: ExtentProperties;
  40349. /**
  40350. * The geodatabase version to execute the function against.
  40351. *
  40352. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-SynthesizeAssociationGeometriesParameters.html#gdbVersion)
  40353. */
  40354. gdbVersion?: string;
  40355. /**
  40356. * A number that indicates the maximum associations that should be synthesized after which the operation should immediately return.
  40357. *
  40358. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-SynthesizeAssociationGeometriesParameters.html#maxGeometryCount)
  40359. */
  40360. maxGeometryCount?: number;
  40361. /**
  40362. * The date/timestamp (in UTC) to execute the function.
  40363. *
  40364. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-SynthesizeAssociationGeometriesParameters.html#moment)
  40365. */
  40366. moment?: DateProperties;
  40367. /**
  40368. * The spatial reference that should be used to project the synthesized geometries.
  40369. *
  40370. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-SynthesizeAssociationGeometriesParameters.html#outSpatialReference)
  40371. */
  40372. outSpatialReference?: SpatialReferenceProperties;
  40373. /**
  40374. * Indicates whether to synthesize and return structual attachment associations.
  40375. *
  40376. * @default false
  40377. *
  40378. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-SynthesizeAssociationGeometriesParameters.html#returnAttachmentAssociations)
  40379. */
  40380. returnAttachmentAssociations?: boolean;
  40381. /**
  40382. * Indicates whether to synthesize and return connectivity associations.
  40383. *
  40384. * @default false
  40385. *
  40386. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-SynthesizeAssociationGeometriesParameters.html#returnConnectivityAssociations)
  40387. */
  40388. returnConnectivityAssociations?: boolean;
  40389. /**
  40390. * Indicates whether to synthesize and return containment associations.
  40391. *
  40392. * @default false
  40393. *
  40394. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-SynthesizeAssociationGeometriesParameters.html#returnContainmentAssociations)
  40395. */
  40396. returnContainmentAssociations?: boolean;
  40397. }
  40398. export interface TraceLocation extends Accessor, JSONSupport {
  40399. }
  40400. export class TraceLocation {
  40401. /**
  40402. * The globalId (UUID) of the feature to start or stop the trace.
  40403. *
  40404. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceLocation.html#globalId)
  40405. */
  40406. globalId: string;
  40407. /**
  40408. * This indicates whether this barrier starting location should be skipped (filtered) when a trace attempts to find upstream controllers.
  40409. *
  40410. * @default false
  40411. *
  40412. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceLocation.html#isFilterBarrier)
  40413. */
  40414. isFilterBarrier: boolean;
  40415. /**
  40416. * This double parameter of value of 0-1 indicates a percentage along the line of where the trace location is placed.
  40417. *
  40418. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceLocation.html#percentAlong)
  40419. */
  40420. percentAlong: number;
  40421. /**
  40422. * The terminal Id to place the starting location at.
  40423. *
  40424. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceLocation.html#terminalId)
  40425. */
  40426. terminalId: number;
  40427. /**
  40428. * The type of the trace location; `starting-point` defines where the trace should start and `barrier` defines where the trace should stop.
  40429. *
  40430. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceLocation.html#type)
  40431. */
  40432. type: "starting-point" | "barrier";
  40433. /**
  40434. * To perform the trace analytic, users can optionally supply a list of locations in forms of globalIds (UUID) and terminals.
  40435. *
  40436. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceLocation.html)
  40437. */
  40438. constructor(properties?: TraceLocationProperties);
  40439. static fromJSON(json: any): TraceLocation;
  40440. }
  40441. /** @deprecated Import the TraceLocation class instead. */
  40442. export type TraceLocationConstructor = typeof TraceLocation;
  40443. interface TraceLocationProperties {
  40444. /**
  40445. * The globalId (UUID) of the feature to start or stop the trace.
  40446. *
  40447. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceLocation.html#globalId)
  40448. */
  40449. globalId?: string;
  40450. /**
  40451. * This indicates whether this barrier starting location should be skipped (filtered) when a trace attempts to find upstream controllers.
  40452. *
  40453. * @default false
  40454. *
  40455. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceLocation.html#isFilterBarrier)
  40456. */
  40457. isFilterBarrier?: boolean;
  40458. /**
  40459. * This double parameter of value of 0-1 indicates a percentage along the line of where the trace location is placed.
  40460. *
  40461. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceLocation.html#percentAlong)
  40462. */
  40463. percentAlong?: number;
  40464. /**
  40465. * The terminal Id to place the starting location at.
  40466. *
  40467. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceLocation.html#terminalId)
  40468. */
  40469. terminalId?: number;
  40470. /**
  40471. * The type of the trace location; `starting-point` defines where the trace should start and `barrier` defines where the trace should stop.
  40472. *
  40473. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceLocation.html#type)
  40474. */
  40475. type?: "starting-point" | "barrier";
  40476. }
  40477. export interface TraceParameters extends Accessor, JSONSupport {
  40478. }
  40479. export class TraceParameters {
  40480. /**
  40481. * The geodatabase version to execute the function against.
  40482. *
  40483. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceParameters.html#gdbVersion)
  40484. */
  40485. gdbVersion: string;
  40486. /**
  40487. * The date/timestamp (in UTC) to execute the function at a given time.
  40488. *
  40489. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceParameters.html#moment)
  40490. */
  40491. moment: Date;
  40492. /**
  40493. * The globalId (UUID) of the named trace configuration persisted in the network.
  40494. *
  40495. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceParameters.html#namedTraceConfigurationGlobalId)
  40496. */
  40497. namedTraceConfigurationGlobalId: string;
  40498. /**
  40499. * The spatial reference that should be used to project the [aggregated geometries](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-AggregatedGeometry.html) returned by the trace (if applicable).
  40500. *
  40501. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceParameters.html#outSpatialReference)
  40502. */
  40503. outSpatialReference: SpatialReference;
  40504. resultTypes: any[];
  40505. /**
  40506. * Defines the properties of a trace.
  40507. *
  40508. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceParameters.html#traceConfiguration)
  40509. */
  40510. traceConfiguration: TraceConfiguration;
  40511. /**
  40512. * The list of starting points and barriers that will define where the trace starts and stops.
  40513. *
  40514. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceParameters.html#traceLocations)
  40515. */
  40516. traceLocations: TraceLocation[];
  40517. /**
  40518. * The trace type defined in this trace configuration.
  40519. *
  40520. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceParameters.html#traceType)
  40521. */
  40522. traceType: | "connected"
  40523. | "upstream"
  40524. | "downstream"
  40525. | "shortest-path"
  40526. | "subnetwork"
  40527. | "subnetwork-controllers"
  40528. | "loops"
  40529. | "isolation";
  40530. /**
  40531. * The list of parameters that are needed to determine how the trace analytic will be executed.
  40532. *
  40533. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceParameters.html)
  40534. */
  40535. constructor(properties?: TraceParametersProperties);
  40536. static fromJSON(json: any): TraceParameters;
  40537. }
  40538. /** @deprecated Import the TraceParameters class instead. */
  40539. export type TraceParametersConstructor = typeof TraceParameters;
  40540. interface TraceParametersProperties {
  40541. /**
  40542. * The geodatabase version to execute the function against.
  40543. *
  40544. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceParameters.html#gdbVersion)
  40545. */
  40546. gdbVersion?: string;
  40547. /**
  40548. * The date/timestamp (in UTC) to execute the function at a given time.
  40549. *
  40550. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceParameters.html#moment)
  40551. */
  40552. moment?: DateProperties;
  40553. /**
  40554. * The globalId (UUID) of the named trace configuration persisted in the network.
  40555. *
  40556. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceParameters.html#namedTraceConfigurationGlobalId)
  40557. */
  40558. namedTraceConfigurationGlobalId?: string;
  40559. /**
  40560. * The spatial reference that should be used to project the [aggregated geometries](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-AggregatedGeometry.html) returned by the trace (if applicable).
  40561. *
  40562. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceParameters.html#outSpatialReference)
  40563. */
  40564. outSpatialReference?: SpatialReferenceProperties;
  40565. resultTypes?: any[];
  40566. /**
  40567. * Defines the properties of a trace.
  40568. *
  40569. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceParameters.html#traceConfiguration)
  40570. */
  40571. traceConfiguration?: TraceConfiguration;
  40572. /**
  40573. * The list of starting points and barriers that will define where the trace starts and stops.
  40574. *
  40575. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceParameters.html#traceLocations)
  40576. */
  40577. traceLocations?: TraceLocationProperties[];
  40578. /**
  40579. * The trace type defined in this trace configuration.
  40580. *
  40581. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceParameters.html#traceType)
  40582. */
  40583. traceType?: | "connected"
  40584. | "upstream"
  40585. | "downstream"
  40586. | "shortest-path"
  40587. | "subnetwork"
  40588. | "subnetwork-controllers"
  40589. | "loops"
  40590. | "isolation";
  40591. }
  40592. export interface TraceResult extends Accessor, JSONSupport {
  40593. }
  40594. export class TraceResult {
  40595. /**
  40596. * This property defines an aggregation of geometries returned by the trace.
  40597. *
  40598. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceResult.html#aggregatedGeometry)
  40599. */
  40600. aggregatedGeometry: AggregatedGeometry;
  40601. /**
  40602. * An array of network elements returned by the trace.
  40603. *
  40604. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceResult.html#elements)
  40605. */
  40606. elements: NetworkElement[];
  40607. /**
  40608. * Returns an array of function aggregation results.
  40609. *
  40610. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceResult.html#globalFunctionResults)
  40611. */
  40612. globalFunctionResults: FunctionResult[];
  40613. /**
  40614. * This parameter is specific to the K-Nearest Neighbors Algorithm, when the neariest filter is provided in the trace configuration.
  40615. *
  40616. * @default false
  40617. *
  40618. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceResult.html#kFeaturesForKNNFound)
  40619. */
  40620. kFeaturesForKNNFound: boolean;
  40621. /**
  40622. * Returns `true` if the starting points in the network trace operation are ignored.
  40623. *
  40624. * @default false
  40625. *
  40626. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceResult.html#startingPointsIgnored)
  40627. */
  40628. startingPointsIgnored: boolean;
  40629. /**
  40630. * Returns any warnings encountered by the trace operation.
  40631. *
  40632. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceResult.html#warnings)
  40633. */
  40634. warnings: string[];
  40635. /**
  40636. * This class defines the collection of results returned from the trace function.
  40637. *
  40638. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceResult.html)
  40639. */
  40640. constructor(properties?: TraceResultProperties);
  40641. static fromJSON(json: any): TraceResult;
  40642. }
  40643. /** @deprecated Import the TraceResult class instead. */
  40644. export type TraceResultConstructor = typeof TraceResult;
  40645. interface TraceResultProperties {
  40646. /**
  40647. * This property defines an aggregation of geometries returned by the trace.
  40648. *
  40649. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceResult.html#aggregatedGeometry)
  40650. */
  40651. aggregatedGeometry?: AggregatedGeometryProperties;
  40652. /**
  40653. * An array of network elements returned by the trace.
  40654. *
  40655. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceResult.html#elements)
  40656. */
  40657. elements?: NetworkElementProperties[];
  40658. /**
  40659. * Returns an array of function aggregation results.
  40660. *
  40661. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceResult.html#globalFunctionResults)
  40662. */
  40663. globalFunctionResults?: FunctionResultProperties[];
  40664. /**
  40665. * This parameter is specific to the K-Nearest Neighbors Algorithm, when the neariest filter is provided in the trace configuration.
  40666. *
  40667. * @default false
  40668. *
  40669. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceResult.html#kFeaturesForKNNFound)
  40670. */
  40671. kFeaturesForKNNFound?: boolean;
  40672. /**
  40673. * Returns `true` if the starting points in the network trace operation are ignored.
  40674. *
  40675. * @default false
  40676. *
  40677. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceResult.html#startingPointsIgnored)
  40678. */
  40679. startingPointsIgnored?: boolean;
  40680. /**
  40681. * Returns any warnings encountered by the trace operation.
  40682. *
  40683. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-support-TraceResult.html#warnings)
  40684. */
  40685. warnings?: string[];
  40686. }
  40687. /**
  40688. * The utility network associations model connectivity, containment, and structure relations between assets.
  40689. *
  40690. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-synthesizeAssociationGeometries.html)
  40691. */
  40692. interface synthesizeAssociationGeometries {
  40693. /**
  40694. * Given an extent, returns all associations within this extent and their synthesized geometries.
  40695. *
  40696. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-synthesizeAssociationGeometries.html#synthesizeAssociationGeometries)
  40697. */
  40698. synthesizeAssociationGeometries(url: string, params: SynthesizeAssociationGeometriesParameters, requestOptions?: any): Promise<AssociationGeometriesResult>;
  40699. }
  40700. export const synthesizeAssociationGeometries: synthesizeAssociationGeometries;
  40701. /**
  40702. * Trace is the core analytic of the utility network, by providing a set of parameters, you can start the trace in one or more features and traverse the network topology satisfying the parameters until the trace stops at end points or when the definition of the trace condition barriers are met.
  40703. *
  40704. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-trace.html)
  40705. */
  40706. interface trace {
  40707. /**
  40708. * The trace function takes a set of parameters, executes the trace analytic on the backend, and returns trace results.
  40709. *
  40710. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networks-trace.html#trace)
  40711. */
  40712. trace(url: string, params: TraceParameters, requestOptions?: any): Promise<TraceResult>;
  40713. }
  40714. export const trace: trace;
  40715. /**
  40716. * This modules contains functions for working with network services.
  40717. *
  40718. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networkService.html)
  40719. */
  40720. interface networkService {
  40721. /**
  40722. * Retrieve a description of the network service.
  40723. *
  40724. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-networkService.html#fetchServiceDescription)
  40725. */
  40726. fetchServiceDescription(url: string, apiKey?: string, requestOptions?: any): Promise<any>;
  40727. }
  40728. export const networkService: networkService;
  40729. /**
  40730. * The print module provides an `executePrint` method that generates a printer-ready version of the map using an [Export Web Map Task](https://developers.arcgis.com/rest/services-reference/export-web-map-task.htm) available with ArGIS Server 10.1 and later.
  40731. *
  40732. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-print.html)
  40733. */
  40734. interface print {
  40735. /**
  40736. * Sends a request to the print service to create a printable static image of the map using the options specified in the [PrintParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintParameters.html).
  40737. *
  40738. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-print.html#execute)
  40739. */
  40740. execute(url: string, params: PrintParameters, requestOptions?: any): Promise<PrintResponse>;
  40741. /**
  40742. * Request the mode for the print request service.
  40743. *
  40744. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-print.html#getMode)
  40745. */
  40746. getMode(url: string): string;
  40747. }
  40748. export const print: print;
  40749. /**
  40750. * Represents the response of the [execute()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-print.html#execute) method.
  40751. *
  40752. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-print.html#PrintResponse)
  40753. */
  40754. export interface PrintResponse {
  40755. /**
  40756. * URL pointing to the location of the generated printout of the view.
  40757. *
  40758. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-print.html#PrintResponse)
  40759. */
  40760. url: string;
  40761. }
  40762. /**
  40763. * Executes different types of query operations on a layer.
  40764. *
  40765. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query.html)
  40766. */
  40767. interface query {
  40768. /**
  40769. * Query information about attachments associated with features from a [feature layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) specified in the url parameter.
  40770. *
  40771. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query.html#executeAttachmentQuery)
  40772. */
  40773. executeAttachmentQuery(url: string, attachmentQuery: AttachmentQuery | AttachmentQueryProperties, requestOptions?: any): Promise<any>;
  40774. /**
  40775. * Gets a count of the number of features that satisfy the input query.
  40776. *
  40777. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query.html#executeForCount)
  40778. */
  40779. executeForCount(url: string, query: Query | QueryProperties, requestOptions?: any): Promise<number>;
  40780. /**
  40781. * Gets the extent of the features that satisfy the input query.
  40782. *
  40783. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query.html#executeForExtent)
  40784. */
  40785. executeForExtent(url: string, params: Query, requestOptions?: any): Promise<any>;
  40786. /**
  40787. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the layer specified in the url parameter.
  40788. *
  40789. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query.html#executeForIds)
  40790. */
  40791. executeForIds(url: string, query: Query | QueryProperties, requestOptions?: any): Promise<number[]>;
  40792. /**
  40793. * Executes a [TopFeaturesQuery](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html) against a feature service and returns the count of features or records that satisfy the query.
  40794. *
  40795. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query.html#executeForTopCount)
  40796. */
  40797. executeForTopCount(url: string, topFeaturesQuery: TopFeaturesQuery, requestOptions?: any): Promise<number>;
  40798. /**
  40799. * Executes a [TopFeaturesQuery](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html) against a feature service and returns the [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) of features that satisfy the query.
  40800. *
  40801. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query.html#executeForTopExtents)
  40802. */
  40803. executeForTopExtents(url: string, topFeaturesQuery: TopFeaturesQuery, outSpatialReference: SpatialReference, requestOptions?: any): Promise<any>;
  40804. /**
  40805. * Executes a [TopFeaturesQuery](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html) against a feature service and returns an array of Object IDs of features that satisfy the query.
  40806. *
  40807. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query.html#executeForTopIds)
  40808. */
  40809. executeForTopIds(url: string, topFeaturesQuery: TopFeaturesQuery, outSpatialReference: SpatialReference, requestOptions?: any): Promise<number[]>;
  40810. /**
  40811. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the layer specified in the url parameter.
  40812. *
  40813. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query.html#executeQueryJSON)
  40814. */
  40815. executeQueryJSON(url: string, query: Query | QueryProperties, requestOptions?: any): Promise<FeatureSet>;
  40816. /**
  40817. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against the layer specified in the url parameter.
  40818. *
  40819. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query.html#executeQueryPBF)
  40820. */
  40821. executeQueryPBF(url: string, query: Query | QueryProperties, requestOptions?: any): Promise<FeatureSet>;
  40822. /**
  40823. * Executes a [RelationshipQuery](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html) against the layer or table specified in the url parameter.
  40824. *
  40825. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query.html#executeRelationshipQuery)
  40826. */
  40827. executeRelationshipQuery(url: string, relationshipQuery: RelationshipQuery | RelationshipQueryProperties, requestOptions?: any): Promise<any>;
  40828. /**
  40829. * Executes a [TopFeaturesQuery](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html) against a feature service and returns a [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html) once the promise resolves.
  40830. *
  40831. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query.html#executeTopFeaturesQuery)
  40832. */
  40833. executeTopFeaturesQuery(url: string, topFeaturesQuery: TopFeaturesQuery, outSpatialReference: SpatialReference, requestOptions?: any): Promise<FeatureSet>;
  40834. }
  40835. export const query: query;
  40836. export interface AttachmentInfo extends Accessor, JSONSupport {
  40837. }
  40838. export class AttachmentInfo {
  40839. /**
  40840. * The content type of the attachment.
  40841. *
  40842. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#contentType)
  40843. */
  40844. contentType: string;
  40845. /**
  40846. * An array of [ExifInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#ExifInfo) for the attachment.
  40847. *
  40848. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#exifInfo)
  40849. */
  40850. exifInfo: ExifInfo[];
  40851. /**
  40852. * The global identifier for the attachment.
  40853. *
  40854. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#globalId)
  40855. */
  40856. globalId: string;
  40857. /**
  40858. * The identifier for the attachment.
  40859. *
  40860. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#id)
  40861. */
  40862. id: number;
  40863. /**
  40864. * Keywords used for the attachments.
  40865. *
  40866. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#keywords)
  40867. */
  40868. keywords: string;
  40869. /**
  40870. * String value indicating the name of the file attachment.
  40871. *
  40872. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#name)
  40873. */
  40874. name: string;
  40875. /**
  40876. * The [OrientationInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#OrientationInfo) for the attachment.
  40877. *
  40878. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#orientationInfo)
  40879. */
  40880. readonly orientationInfo: OrientationInfo;
  40881. /**
  40882. * The parent or the feature global id of the attachment.
  40883. *
  40884. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#parentGlobalId)
  40885. */
  40886. parentGlobalId: number;
  40887. /**
  40888. * The parent or the feature object id of the attachment.
  40889. *
  40890. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#parentObjectId)
  40891. */
  40892. parentObjectId: number;
  40893. /**
  40894. * The file size of the attachment.
  40895. *
  40896. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#size)
  40897. */
  40898. size: number;
  40899. /**
  40900. * The URL of the attachment.
  40901. *
  40902. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#url)
  40903. */
  40904. url: string;
  40905. /**
  40906. * The `AttachmentInfo` class returns information about attachments associated with a feature.
  40907. *
  40908. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html)
  40909. */
  40910. constructor(properties?: AttachmentInfoProperties);
  40911. /**
  40912. * Creates a deep clone of the AttachmentInfo class.
  40913. *
  40914. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#clone)
  40915. */
  40916. clone(): AttachmentInfo;
  40917. static fromJSON(json: any): AttachmentInfo;
  40918. }
  40919. /** @deprecated Import the AttachmentInfo class instead. */
  40920. export type AttachmentInfoConstructor = typeof AttachmentInfo;
  40921. interface AttachmentInfoProperties {
  40922. /**
  40923. * The content type of the attachment.
  40924. *
  40925. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#contentType)
  40926. */
  40927. contentType?: string;
  40928. /**
  40929. * An array of [ExifInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#ExifInfo) for the attachment.
  40930. *
  40931. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#exifInfo)
  40932. */
  40933. exifInfo?: ExifInfo[];
  40934. /**
  40935. * The global identifier for the attachment.
  40936. *
  40937. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#globalId)
  40938. */
  40939. globalId?: string;
  40940. /**
  40941. * The identifier for the attachment.
  40942. *
  40943. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#id)
  40944. */
  40945. id?: number;
  40946. /**
  40947. * Keywords used for the attachments.
  40948. *
  40949. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#keywords)
  40950. */
  40951. keywords?: string;
  40952. /**
  40953. * String value indicating the name of the file attachment.
  40954. *
  40955. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#name)
  40956. */
  40957. name?: string;
  40958. /**
  40959. * The parent or the feature global id of the attachment.
  40960. *
  40961. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#parentGlobalId)
  40962. */
  40963. parentGlobalId?: number;
  40964. /**
  40965. * The parent or the feature object id of the attachment.
  40966. *
  40967. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#parentObjectId)
  40968. */
  40969. parentObjectId?: number;
  40970. /**
  40971. * The file size of the attachment.
  40972. *
  40973. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#size)
  40974. */
  40975. size?: number;
  40976. /**
  40977. * The URL of the attachment.
  40978. *
  40979. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#url)
  40980. */
  40981. url?: string;
  40982. }
  40983. /**
  40984. * An array of [Exchangeable image file format](https://en.wikipedia.org/wiki/Exif) information for the attachment.
  40985. *
  40986. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#ExifInfo)
  40987. */
  40988. export interface ExifInfo {
  40989. /**
  40990. * The file name.
  40991. *
  40992. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#ExifInfo)
  40993. */
  40994. name?: string;
  40995. /**
  40996. * Array of tag objects containing the following properties:
  40997. *
  40998. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#ExifInfo)
  40999. */
  41000. tags?: ExifInfoTags[];
  41001. }
  41002. /**
  41003. * An object containing properties specific to the orientation of an image attachment.
  41004. *
  41005. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#OrientationInfo)
  41006. */
  41007. export interface OrientationInfo {
  41008. /**
  41009. * The identifer for the orientation info.
  41010. *
  41011. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#OrientationInfo)
  41012. */
  41013. id?: number;
  41014. /**
  41015. * The rotation value for the attached image.
  41016. *
  41017. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#OrientationInfo)
  41018. */
  41019. rotation?: number;
  41020. /**
  41021. * Indicates whether the image displays mirrored.
  41022. *
  41023. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#OrientationInfo)
  41024. */
  41025. mirrored?: boolean;
  41026. }
  41027. export interface ExifInfoTags {
  41028. /**
  41029. * The tag name.
  41030. *
  41031. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#ExifInfo)
  41032. */
  41033. name: string;
  41034. /**
  41035. * The tag description.
  41036. *
  41037. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#ExifInfo)
  41038. */
  41039. description: string;
  41040. /**
  41041. * The value of the tag.
  41042. *
  41043. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#ExifInfo)
  41044. */
  41045. value: any;
  41046. }
  41047. /**
  41048. * Find routes between two or more locations and optionally get driving directions.
  41049. *
  41050. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-route.html)
  41051. */
  41052. interface route {
  41053. /**
  41054. * Solves the route against the route layer with the route parameters.
  41055. *
  41056. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-route.html#solve)
  41057. */
  41058. solve(url: string, params: RouteParameters, requestOptions?: any): Promise<RouteSolveResult>;
  41059. }
  41060. export const route: route;
  41061. /**
  41062. * With the Service area service, you can find the area that can be reached from the input location within a given travel time or travel distance.
  41063. *
  41064. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-serviceArea.html)
  41065. */
  41066. interface serviceArea {
  41067. /**
  41068. * Determines the service area based on a set of parameters.
  41069. *
  41070. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-serviceArea.html#solve)
  41071. */
  41072. solve(url: string, params: ServiceAreaParameters, requestOptions?: any): Promise<ServiceAreaSolveResult>;
  41073. }
  41074. export const serviceArea: serviceArea;
  41075. export interface AddressCandidate extends Accessor, JSONSupport {
  41076. }
  41077. export class AddressCandidate {
  41078. /**
  41079. * Address of the candidate.
  41080. *
  41081. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AddressCandidate.html#address)
  41082. */
  41083. address: string;
  41084. /**
  41085. * Name value pairs of field name and field value as defined in `outFields` in [locator.addressToLocations()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#addressToLocations).
  41086. *
  41087. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AddressCandidate.html#attributes)
  41088. */
  41089. attributes: any;
  41090. /**
  41091. * The minimum and maximum X and Y coordinates of a bounding box of the address candidate.
  41092. *
  41093. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AddressCandidate.html#extent)
  41094. */
  41095. extent: Extent;
  41096. /**
  41097. * The [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) object representing the location of the [address](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AddressCandidate.html#address).
  41098. *
  41099. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AddressCandidate.html#location)
  41100. */
  41101. location: Point;
  41102. /**
  41103. * Numeric score between `0` and `100` for geocode candidates.
  41104. *
  41105. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AddressCandidate.html#score)
  41106. */
  41107. score: number;
  41108. /**
  41109. * Represents the result of a geocode service operation as a list of address candidates.
  41110. *
  41111. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AddressCandidate.html)
  41112. */
  41113. constructor(properties?: AddressCandidateProperties);
  41114. static fromJSON(json: any): AddressCandidate;
  41115. }
  41116. /** @deprecated Import the AddressCandidate class instead. */
  41117. export type AddressCandidateConstructor = typeof AddressCandidate;
  41118. interface AddressCandidateProperties {
  41119. /**
  41120. * Address of the candidate.
  41121. *
  41122. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AddressCandidate.html#address)
  41123. */
  41124. address?: string;
  41125. /**
  41126. * Name value pairs of field name and field value as defined in `outFields` in [locator.addressToLocations()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html#addressToLocations).
  41127. *
  41128. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AddressCandidate.html#attributes)
  41129. */
  41130. attributes?: any;
  41131. /**
  41132. * The minimum and maximum X and Y coordinates of a bounding box of the address candidate.
  41133. *
  41134. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AddressCandidate.html#extent)
  41135. */
  41136. extent?: ExtentProperties;
  41137. /**
  41138. * The [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) object representing the location of the [address](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AddressCandidate.html#address).
  41139. *
  41140. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AddressCandidate.html#location)
  41141. */
  41142. location?: PointProperties;
  41143. /**
  41144. * Numeric score between `0` and `100` for geocode candidates.
  41145. *
  41146. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AddressCandidate.html#score)
  41147. */
  41148. score?: number;
  41149. }
  41150. export class AlgorithmicColorRamp extends ColorRamp {
  41151. /**
  41152. * The algorithm used to generate the colors between the `fromColor` and `toColor`.
  41153. *
  41154. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AlgorithmicColorRamp.html#algorithm)
  41155. */
  41156. algorithm: "cie-lab" | "lab-lch" | "hsv";
  41157. /**
  41158. * The first color in the color ramp.
  41159. *
  41160. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AlgorithmicColorRamp.html#fromColor)
  41161. */
  41162. fromColor: Color;
  41163. /**
  41164. * The last color in the color ramp.
  41165. *
  41166. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AlgorithmicColorRamp.html#toColor)
  41167. */
  41168. toColor: Color;
  41169. /**
  41170. * A string value representing the color ramp type.
  41171. *
  41172. * @default algorithmic
  41173. *
  41174. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AlgorithmicColorRamp.html#type)
  41175. */
  41176. readonly type: "algorithmic";
  41177. /**
  41178. * Creates a color ramp for use in a raster renderer.
  41179. *
  41180. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AlgorithmicColorRamp.html)
  41181. */
  41182. constructor(properties?: AlgorithmicColorRampProperties);
  41183. /**
  41184. * Creates a deep clone of this object.
  41185. *
  41186. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AlgorithmicColorRamp.html#clone)
  41187. */
  41188. clone(): AlgorithmicColorRamp;
  41189. static fromJSON(json: any): AlgorithmicColorRamp;
  41190. }
  41191. /** @deprecated Import the AlgorithmicColorRamp class instead. */
  41192. export type AlgorithmicColorRampConstructor = typeof AlgorithmicColorRamp;
  41193. interface AlgorithmicColorRampProperties extends ColorRampProperties {
  41194. /**
  41195. * The algorithm used to generate the colors between the `fromColor` and `toColor`.
  41196. *
  41197. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AlgorithmicColorRamp.html#algorithm)
  41198. */
  41199. algorithm?: "cie-lab" | "lab-lch" | "hsv";
  41200. /**
  41201. * The first color in the color ramp.
  41202. *
  41203. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AlgorithmicColorRamp.html#fromColor)
  41204. */
  41205. fromColor?: Color;
  41206. /**
  41207. * The last color in the color ramp.
  41208. *
  41209. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AlgorithmicColorRamp.html#toColor)
  41210. */
  41211. toColor?: Color;
  41212. }
  41213. export interface AreasAndLengthsParameters extends Accessor, JSONSupport {
  41214. }
  41215. export class AreasAndLengthsParameters {
  41216. /**
  41217. * The area unit in which areas of polygons will be calculated.
  41218. *
  41219. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AreasAndLengthsParameters.html#areaUnit)
  41220. */
  41221. areaUnit: | "acres"
  41222. | "hectares"
  41223. | "square-miles"
  41224. | "square-kilometers"
  41225. | "square-meters"
  41226. | "square-feet"
  41227. | "square-yards";
  41228. /**
  41229. * Defines the type of calculation for the geometry.
  41230. *
  41231. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AreasAndLengthsParameters.html#calculationType)
  41232. */
  41233. calculationType: "planar" | "geodesic" | "preserve-shape";
  41234. /**
  41235. * The length unit in which perimeters of polygons will be calculated.
  41236. *
  41237. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AreasAndLengthsParameters.html#lengthUnit)
  41238. */
  41239. lengthUnit: "feet" | "kilometers" | "meters" | "miles" | "nautical-miles" | "yards";
  41240. /**
  41241. * Polygon geometries for which to compute areas and lengths.
  41242. *
  41243. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AreasAndLengthsParameters.html#polygons)
  41244. */
  41245. polygons: Polygon[];
  41246. /**
  41247. * Input parameters for the areasAndLengths() method on the GeometryService.
  41248. *
  41249. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AreasAndLengthsParameters.html)
  41250. */
  41251. constructor(properties?: AreasAndLengthsParametersProperties);
  41252. static fromJSON(json: any): AreasAndLengthsParameters;
  41253. }
  41254. /** @deprecated Import the AreasAndLengthsParameters class instead. */
  41255. export type AreasAndLengthsParametersConstructor = typeof AreasAndLengthsParameters;
  41256. interface AreasAndLengthsParametersProperties {
  41257. /**
  41258. * The area unit in which areas of polygons will be calculated.
  41259. *
  41260. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AreasAndLengthsParameters.html#areaUnit)
  41261. */
  41262. areaUnit?: | "acres"
  41263. | "hectares"
  41264. | "square-miles"
  41265. | "square-kilometers"
  41266. | "square-meters"
  41267. | "square-feet"
  41268. | "square-yards";
  41269. /**
  41270. * Defines the type of calculation for the geometry.
  41271. *
  41272. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AreasAndLengthsParameters.html#calculationType)
  41273. */
  41274. calculationType?: "planar" | "geodesic" | "preserve-shape";
  41275. /**
  41276. * The length unit in which perimeters of polygons will be calculated.
  41277. *
  41278. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AreasAndLengthsParameters.html#lengthUnit)
  41279. */
  41280. lengthUnit?: "feet" | "kilometers" | "meters" | "miles" | "nautical-miles" | "yards";
  41281. /**
  41282. * Polygon geometries for which to compute areas and lengths.
  41283. *
  41284. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AreasAndLengthsParameters.html#polygons)
  41285. */
  41286. polygons?: PolygonProperties[];
  41287. }
  41288. export interface AttachmentQuery extends Accessor, JSONSupport {
  41289. }
  41290. export class AttachmentQuery {
  41291. /**
  41292. * The where clause to be applied to attachment queries.
  41293. *
  41294. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html#attachmentsWhere)
  41295. */
  41296. attachmentsWhere: string;
  41297. /**
  41298. * The file format that is supported by query attachment.
  41299. *
  41300. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html#attachmentTypes)
  41301. */
  41302. attachmentTypes: string[];
  41303. /**
  41304. * Indicates if the service should cache the attachment query results.
  41305. *
  41306. * @default undefined
  41307. *
  41308. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html#cacheHint)
  41309. */
  41310. cacheHint: boolean;
  41311. /**
  41312. * An array of globalIds for the features in the layer being queried.
  41313. *
  41314. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html#globalIds)
  41315. */
  41316. globalIds: number[];
  41317. /**
  41318. * Used to query for attachments that match the provided `keywords`.
  41319. *
  41320. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html#keywords)
  41321. */
  41322. keywords: string[];
  41323. /**
  41324. * Used to query for attachments that match this `name`.
  41325. *
  41326. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html#name)
  41327. */
  41328. name: string;
  41329. /**
  41330. * The number of features to retrieve.
  41331. *
  41332. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html#num)
  41333. */
  41334. num: number;
  41335. /**
  41336. * An array of objectIds of the features to be queried for attachments.
  41337. *
  41338. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html#objectIds)
  41339. */
  41340. objectIds: number[];
  41341. /**
  41342. * If `true`, the [Exchangeable image file format](https://en.wikipedia.org/wiki/Exif) for the attachment will be included in [attachmentInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#exifInfo).
  41343. *
  41344. * @default false
  41345. *
  41346. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html#returnMetadata)
  41347. */
  41348. returnMetadata: boolean;
  41349. /**
  41350. * The file size of the attachment is specified in bytes.
  41351. *
  41352. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html#size)
  41353. */
  41354. size: number[];
  41355. /**
  41356. * This option fetches query results by skipping a specified number of records.
  41357. *
  41358. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html#start)
  41359. */
  41360. start: number;
  41361. /**
  41362. * The `where` clause to be applied to the layer.
  41363. *
  41364. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html#where)
  41365. */
  41366. where: string;
  41367. /**
  41368. * This class defines parameters for executing queries for feature attachments from a [feature layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
  41369. *
  41370. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html)
  41371. */
  41372. constructor(properties?: AttachmentQueryProperties);
  41373. /**
  41374. * Creates a deep clone of AttachmentQuery object.
  41375. *
  41376. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html#clone)
  41377. */
  41378. clone(): AttachmentQuery;
  41379. static fromJSON(json: any): AttachmentQuery;
  41380. }
  41381. /** @deprecated Import the AttachmentQuery class instead. */
  41382. export type AttachmentQueryConstructor = typeof AttachmentQuery;
  41383. interface AttachmentQueryProperties {
  41384. /**
  41385. * The where clause to be applied to attachment queries.
  41386. *
  41387. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html#attachmentsWhere)
  41388. */
  41389. attachmentsWhere?: string;
  41390. /**
  41391. * The file format that is supported by query attachment.
  41392. *
  41393. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html#attachmentTypes)
  41394. */
  41395. attachmentTypes?: string[];
  41396. /**
  41397. * Indicates if the service should cache the attachment query results.
  41398. *
  41399. * @default undefined
  41400. *
  41401. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html#cacheHint)
  41402. */
  41403. cacheHint?: boolean;
  41404. /**
  41405. * An array of globalIds for the features in the layer being queried.
  41406. *
  41407. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html#globalIds)
  41408. */
  41409. globalIds?: number[];
  41410. /**
  41411. * Used to query for attachments that match the provided `keywords`.
  41412. *
  41413. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html#keywords)
  41414. */
  41415. keywords?: string[];
  41416. /**
  41417. * Used to query for attachments that match this `name`.
  41418. *
  41419. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html#name)
  41420. */
  41421. name?: string;
  41422. /**
  41423. * The number of features to retrieve.
  41424. *
  41425. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html#num)
  41426. */
  41427. num?: number;
  41428. /**
  41429. * An array of objectIds of the features to be queried for attachments.
  41430. *
  41431. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html#objectIds)
  41432. */
  41433. objectIds?: number[];
  41434. /**
  41435. * If `true`, the [Exchangeable image file format](https://en.wikipedia.org/wiki/Exif) for the attachment will be included in [attachmentInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html#exifInfo).
  41436. *
  41437. * @default false
  41438. *
  41439. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html#returnMetadata)
  41440. */
  41441. returnMetadata?: boolean;
  41442. /**
  41443. * The file size of the attachment is specified in bytes.
  41444. *
  41445. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html#size)
  41446. */
  41447. size?: number[];
  41448. /**
  41449. * This option fetches query results by skipping a specified number of records.
  41450. *
  41451. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html#start)
  41452. */
  41453. start?: number;
  41454. /**
  41455. * The `where` clause to be applied to the layer.
  41456. *
  41457. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-AttachmentQuery.html#where)
  41458. */
  41459. where?: string;
  41460. }
  41461. export interface BufferParameters extends Accessor, JSONSupport {
  41462. }
  41463. export class BufferParameters {
  41464. /**
  41465. * The spatial reference in which the geometries are buffered.
  41466. *
  41467. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-BufferParameters.html#bufferSpatialReference)
  41468. */
  41469. bufferSpatialReference: SpatialReference;
  41470. /**
  41471. * The distances the input features are buffered.
  41472. *
  41473. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-BufferParameters.html#distances)
  41474. */
  41475. distances: number[];
  41476. /**
  41477. * If the input geometries are in a geographic coordinate system, set geodesic to `true` to generate a buffer polygon using a geodesic distance.
  41478. *
  41479. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-BufferParameters.html#geodesic)
  41480. */
  41481. geodesic: boolean;
  41482. /**
  41483. * The input geometries to buffer.
  41484. *
  41485. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-BufferParameters.html#geometries)
  41486. */
  41487. geometries: Geometry[];
  41488. /**
  41489. * The spatial reference for the returned geometries.
  41490. *
  41491. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-BufferParameters.html#outSpatialReference)
  41492. */
  41493. outSpatialReference: SpatialReference;
  41494. /**
  41495. * If `true`, all geometries buffered at a given distance are unioned into a single (possibly multipart) polygon, and the unioned geometry is placed in the output array.
  41496. *
  41497. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-BufferParameters.html#unionResults)
  41498. */
  41499. unionResults: boolean;
  41500. /**
  41501. * The units for calculating each buffer distance.
  41502. *
  41503. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-BufferParameters.html#unit)
  41504. */
  41505. unit: "feet" | "kilometers" | "meters" | "miles" | "nautical-miles" | "yards";
  41506. /**
  41507. * Sets the distances, units, and other parameters for the [buffer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#buffer) method on the [geometryService](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html).
  41508. *
  41509. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-BufferParameters.html)
  41510. */
  41511. constructor(properties?: BufferParametersProperties);
  41512. static fromJSON(json: any): BufferParameters;
  41513. }
  41514. /** @deprecated Import the BufferParameters class instead. */
  41515. export type BufferParametersConstructor = typeof BufferParameters;
  41516. interface BufferParametersProperties {
  41517. /**
  41518. * The spatial reference in which the geometries are buffered.
  41519. *
  41520. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-BufferParameters.html#bufferSpatialReference)
  41521. */
  41522. bufferSpatialReference?: SpatialReferenceProperties;
  41523. /**
  41524. * The distances the input features are buffered.
  41525. *
  41526. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-BufferParameters.html#distances)
  41527. */
  41528. distances?: number[];
  41529. /**
  41530. * If the input geometries are in a geographic coordinate system, set geodesic to `true` to generate a buffer polygon using a geodesic distance.
  41531. *
  41532. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-BufferParameters.html#geodesic)
  41533. */
  41534. geodesic?: boolean;
  41535. /**
  41536. * The input geometries to buffer.
  41537. *
  41538. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-BufferParameters.html#geometries)
  41539. */
  41540. geometries?: GeometryProperties[];
  41541. /**
  41542. * The spatial reference for the returned geometries.
  41543. *
  41544. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-BufferParameters.html#outSpatialReference)
  41545. */
  41546. outSpatialReference?: SpatialReferenceProperties;
  41547. /**
  41548. * If `true`, all geometries buffered at a given distance are unioned into a single (possibly multipart) polygon, and the unioned geometry is placed in the output array.
  41549. *
  41550. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-BufferParameters.html#unionResults)
  41551. */
  41552. unionResults?: boolean;
  41553. /**
  41554. * The units for calculating each buffer distance.
  41555. *
  41556. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-BufferParameters.html#unit)
  41557. */
  41558. unit?: "feet" | "kilometers" | "meters" | "miles" | "nautical-miles" | "yards";
  41559. }
  41560. export interface ClosestFacilityParameters extends Accessor, JSONSupport {
  41561. }
  41562. export class ClosestFacilityParameters {
  41563. /**
  41564. * Use this property to specify whether the operation should accumulate values other than the value specified for [impedanceAttribute](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#impedanceAttribute).
  41565. *
  41566. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#accumulateAttributes)
  41567. */
  41568. accumulateAttributes: (
  41569. | "kilometers"
  41570. | "miles"
  41571. | "minutes"
  41572. | "travel-time"
  41573. | "truck-minutes"
  41574. | "truck-travel-time"
  41575. | "walk-time"
  41576. | string
  41577. )[];
  41578. /**
  41579. * An authorization string used to access a resource or service.
  41580. *
  41581. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#apiKey)
  41582. */
  41583. apiKey: string;
  41584. /**
  41585. * Use this property to specify additional values required by an attribute or restriction, such as to specify whether the restriction prohibits, avoids, or prefers travel on restricted roads.
  41586. *
  41587. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#attributeParameterValues)
  41588. */
  41589. attributeParameterValues: AttributeParameterValue[];
  41590. /**
  41591. * The travel time or travel distance value at which to stop searching for facilities for a given incident.
  41592. *
  41593. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#defaultCutoff)
  41594. */
  41595. defaultCutoff: number;
  41596. /**
  41597. * The number of closest facilities to find per incident.
  41598. *
  41599. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#defaultTargetFacilityCount)
  41600. */
  41601. defaultTargetFacilityCount: number;
  41602. /**
  41603. * The language that will be used when generating travel directions.
  41604. *
  41605. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#directionsLanguage)
  41606. */
  41607. directionsLanguage: string;
  41608. /**
  41609. * Specify the units for displaying travel distance in the driving directions.
  41610. *
  41611. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#directionsLengthUnits)
  41612. */
  41613. directionsLengthUnits: | "centimeters"
  41614. | "decimal-degrees"
  41615. | "decimeters"
  41616. | "feet"
  41617. | "inches"
  41618. | "kilometers"
  41619. | "meters"
  41620. | "miles"
  41621. | "millimeters"
  41622. | "nautical-miles"
  41623. | "points"
  41624. | "yards";
  41625. /**
  41626. * Define the content and verbosity of the driving directions.
  41627. *
  41628. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#directionsOutputType)
  41629. */
  41630. directionsOutputType: | "complete"
  41631. | "complete-no-events"
  41632. | "featuresets"
  41633. | "instructions-only"
  41634. | "standard"
  41635. | "summary-only";
  41636. /**
  41637. * Specify the name of the formatting style for the directions.
  41638. *
  41639. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#directionsStyleName)
  41640. */
  41641. directionsStyleName: "desktop" | "navigation" | "campus";
  41642. /**
  41643. * Set the time-based impedance attribute to display the duration of a maneuver, such as "Go northwest on Alvorado St.
  41644. *
  41645. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#directionsTimeAttribute)
  41646. */
  41647. directionsTimeAttribute: "travel-time" | "truck-travel-time" | "walk-time" | "minutes" | "truck-time" | string;
  41648. /**
  41649. * One or more locations that are searched for when finding the closest location.
  41650. *
  41651. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#facilities)
  41652. */
  41653. facilities: DataLayer | FeatureSet | NetworkFeatureSet | NetworkUrl;
  41654. /**
  41655. * Use this property to specify the number of decimal places in the response geometries returned by solve operation.
  41656. *
  41657. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#geometryPrecision)
  41658. */
  41659. geometryPrecision: number;
  41660. /**
  41661. * Use this property to specify the number of decimal places in the response geometries returned by solve operation.
  41662. *
  41663. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#geometryPrecisionM)
  41664. */
  41665. geometryPrecisionM: number;
  41666. /**
  41667. * Use this property to specify the number of decimal places in the response geometries returned by a solve operation.
  41668. *
  41669. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#geometryPrecisionZ)
  41670. */
  41671. geometryPrecisionZ: number;
  41672. /**
  41673. * Specify whether invalid input locations should be ignored when finding the best solution.
  41674. *
  41675. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#ignoreInvalidLocations)
  41676. */
  41677. ignoreInvalidLocations: boolean;
  41678. /**
  41679. * Specifies the impedance.
  41680. *
  41681. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#impedanceAttribute)
  41682. */
  41683. impedanceAttribute: | "kilometers"
  41684. | "miles"
  41685. | "minutes"
  41686. | "travel-time"
  41687. | "truck-minutes"
  41688. | "truck-travel-time"
  41689. | "walk-time"
  41690. | string;
  41691. /**
  41692. * One or more locations from which the service searches for the nearby locations
  41693. *
  41694. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#incidents)
  41695. */
  41696. incidents: DataLayer | FeatureSet | NetworkFeatureSet | NetworkUrl;
  41697. /**
  41698. * Use this property to specify by how much you want to simplify the route geometry returned by the operation.
  41699. *
  41700. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#outputGeometryPrecision)
  41701. */
  41702. outputGeometryPrecision: number;
  41703. /**
  41704. * Use this property to specify the units for the value specified for the [outputGeometryPrecision](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#outputGeometryPrecision) parameter.
  41705. *
  41706. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#outputGeometryPrecisionUnits)
  41707. */
  41708. outputGeometryPrecisionUnits: | "centimeters"
  41709. | "decimal-degrees"
  41710. | "decimeters"
  41711. | "feet"
  41712. | "inches"
  41713. | "kilometers"
  41714. | "meters"
  41715. | "miles"
  41716. | "millimeters"
  41717. | "nautical-miles"
  41718. | "points"
  41719. | "yards";
  41720. /**
  41721. * Use this property to specify the type of route features that are output by the operation.
  41722. *
  41723. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#outputLines)
  41724. */
  41725. outputLines: "none" | "straight" | "true-shape" | "true-shape-with-measure";
  41726. /**
  41727. * Use this property to specify the spatial reference of the geometries, such as line or point features, returned by a solve operation.
  41728. *
  41729. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#outSpatialReference)
  41730. */
  41731. outSpatialReference: SpatialReference;
  41732. /**
  41733. * Specify additional settings that can influence the behavior of the solver when finding solutions for the network analysis problems.
  41734. *
  41735. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#overrides)
  41736. */
  41737. overrides: any;
  41738. /**
  41739. * Use this property to specify one or more points that will act as temporary restrictions or represent additional time or distance that may be required to travel on the underlying streets.
  41740. *
  41741. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#pointBarriers)
  41742. */
  41743. pointBarriers: Collection<PointBarrier> | DataLayer | FeatureSet | NetworkFeatureSet | NetworkUrl;
  41744. /**
  41745. * Use this property to specify polygons that either completely restrict travel or proportionately scale the time or distance required to travel on the streets intersected by the polygons.
  41746. *
  41747. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#polygonBarriers)
  41748. */
  41749. polygonBarriers: Collection<PolygonBarrier> | DataLayer | FeatureSet | NetworkFeatureSet | NetworkUrl;
  41750. /**
  41751. * Use this property to specify one or more lines that prohibit travel anywhere the lines intersect the streets.
  41752. *
  41753. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#polylineBarriers)
  41754. */
  41755. polylineBarriers: Collection<PolylineBarrier> | DataLayer | FeatureSet | NetworkFeatureSet | NetworkUrl;
  41756. /**
  41757. * Use this property to specify if the Object IDs specified for input locations such as stops or barriers should be preserved when the input locations are returned as output.
  41758. *
  41759. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#preserveObjectID)
  41760. */
  41761. preserveObjectID: boolean;
  41762. /**
  41763. * Use this property to specify which restrictions should be honored by the operation.
  41764. *
  41765. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#restrictionAttributes)
  41766. */
  41767. restrictionAttributes: (
  41768. | "any-hazmat-prohibited"
  41769. | "avoid-carpool-roads"
  41770. | "avoid-express-lanes"
  41771. | "avoid-ferries"
  41772. | "avoid-gates"
  41773. | "avoid-limited-access-roads"
  41774. | "avoid-private-roads"
  41775. | "avoid-roads-unsuitable-for-pedestrians"
  41776. | "avoid-stairways"
  41777. | "avoid-toll-roads"
  41778. | "avoid-toll-roads-for-trucks"
  41779. | "avoid-truck-restricted-roads"
  41780. | "avoid-unpaved-roads"
  41781. | "axle-count-restriction"
  41782. | "driving-a-bus"
  41783. | "driving-a-taxi"
  41784. | "driving-a-truck"
  41785. | "driving-an-automobile"
  41786. | "driving-an-emergency-vehicle"
  41787. | "height-restriction"
  41788. | "kingpin-to-rear-axle-length-restriction"
  41789. | "length-restriction"
  41790. | "preferred-for-pedestrians"
  41791. | "riding-a-motorcycle"
  41792. | "roads-under-construction-prohibited"
  41793. | "semi-or-tractor-with-one-or-more-trailers-prohibited"
  41794. | "single-axle-vehicles-prohibited"
  41795. | "tandem-axle-vehicles-prohibited"
  41796. | "through-traffic-prohibited"
  41797. | "truck-with-trailers-restriction"
  41798. | "use-preferred-hazmat-routes"
  41799. | "use-preferred-truck-routes"
  41800. | "walking"
  41801. | "weight-restriction"
  41802. | string
  41803. )[];
  41804. /**
  41805. * Specifies how U-Turns should be handled.
  41806. *
  41807. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#restrictUTurns)
  41808. */
  41809. restrictUTurns: "allow-backtrack" | "at-dead-ends-only" | "no-backtrack" | "at-dead-ends-and-intersections";
  41810. /**
  41811. * Specify whether the operation should generate driving directions for each route.
  41812. *
  41813. * @default false
  41814. *
  41815. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#returnDirections)
  41816. */
  41817. returnDirections: boolean;
  41818. /**
  41819. * Determines if facilities will be returned by the service.
  41820. *
  41821. * @default false
  41822. *
  41823. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#returnFacilities)
  41824. */
  41825. returnFacilities: boolean;
  41826. /**
  41827. * Determines if incidents will be returned by the service.
  41828. *
  41829. * @default false
  41830. *
  41831. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#returnIncidents)
  41832. */
  41833. returnIncidents: boolean;
  41834. /**
  41835. * Specify whether [point barriers](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#pointBarriers) will be returned by the routing operation.
  41836. *
  41837. * @default false
  41838. *
  41839. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#returnPointBarriers)
  41840. */
  41841. returnPointBarriers: boolean;
  41842. /**
  41843. * Specify whether [polygon barriers](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#polygonBarriers) will be returned by the routing operation.
  41844. *
  41845. * @default false
  41846. *
  41847. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#returnPolygonBarriers)
  41848. */
  41849. returnPolygonBarriers: boolean;
  41850. /**
  41851. * Specify whether [polyline barriers](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#polylineBarriers) will be returned by the routing operation.
  41852. *
  41853. * @default false
  41854. *
  41855. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#returnPolylineBarriers)
  41856. */
  41857. returnPolylineBarriers: boolean;
  41858. /**
  41859. * Use this property to specify if the operation should return routes.
  41860. *
  41861. * @default true
  41862. *
  41863. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#returnRoutes)
  41864. */
  41865. returnRoutes: boolean;
  41866. /**
  41867. * Specify whether traversed edges will be returned by the operation.
  41868. *
  41869. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#returnTraversedEdges)
  41870. */
  41871. returnTraversedEdges: boolean;
  41872. /**
  41873. * Specify whether traversed junctions will be returned by the operation.
  41874. *
  41875. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#returnTraversedJunctions)
  41876. */
  41877. returnTraversedJunctions: boolean;
  41878. /**
  41879. * Specify whether traversed turns will be returned by the operation.
  41880. *
  41881. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#returnTraversedTurns)
  41882. */
  41883. returnTraversedTurns: boolean;
  41884. /**
  41885. * Include z values for the returned geometries if supported by the underlying network.
  41886. *
  41887. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#returnZ)
  41888. */
  41889. returnZ: boolean;
  41890. /**
  41891. * Specify the time and date to depart from or arrive at incidents or facilities.
  41892. *
  41893. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#timeOfDay)
  41894. */
  41895. timeOfDay: Date | "now";
  41896. /**
  41897. * Specify the time zone or zones of the [timeOfDay](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#timeOfDay) property.
  41898. *
  41899. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#timeOfDayIsUTC)
  41900. */
  41901. timeOfDayIsUTC: boolean;
  41902. /**
  41903. * The [timeOfDay](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#timeOfDay) parameter value represents the arrival or departure time for the routes.
  41904. *
  41905. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#timeOfDayUsage)
  41906. */
  41907. timeOfDayUsage: "start" | "end";
  41908. /**
  41909. * Specifies how the travel direction for the closest facility search will be measured.
  41910. *
  41911. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#travelDirection)
  41912. */
  41913. travelDirection: "from-facility" | "to-facility";
  41914. /**
  41915. * A travel mode represents a means of transportation, such as driving or walking.
  41916. *
  41917. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#travelMode)
  41918. */
  41919. travelMode: TravelMode;
  41920. /**
  41921. * Specify whether hierarchy should be used when finding the shortest paths.
  41922. *
  41923. * @default false
  41924. *
  41925. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#useHierarchy)
  41926. */
  41927. useHierarchy: boolean;
  41928. /**
  41929. * ClosestFacilityParameters provides the input parameters for a [closestFacility](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-closestFacility.html) request.
  41930. *
  41931. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html)
  41932. */
  41933. constructor(properties?: ClosestFacilityParametersProperties);
  41934. /**
  41935. * Creates a deep clone of this object.
  41936. *
  41937. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#clone)
  41938. */
  41939. clone(): this;
  41940. static fromJSON(json: any): ClosestFacilityParameters;
  41941. }
  41942. /** @deprecated Import the ClosestFacilityParameters class instead. */
  41943. export type ClosestFacilityParametersConstructor = typeof ClosestFacilityParameters;
  41944. interface ClosestFacilityParametersProperties {
  41945. /**
  41946. * Use this property to specify whether the operation should accumulate values other than the value specified for [impedanceAttribute](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#impedanceAttribute).
  41947. *
  41948. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#accumulateAttributes)
  41949. */
  41950. accumulateAttributes?: (
  41951. | "kilometers"
  41952. | "miles"
  41953. | "minutes"
  41954. | "travel-time"
  41955. | "truck-minutes"
  41956. | "truck-travel-time"
  41957. | "walk-time"
  41958. | string
  41959. )[];
  41960. /**
  41961. * An authorization string used to access a resource or service.
  41962. *
  41963. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#apiKey)
  41964. */
  41965. apiKey?: string;
  41966. /**
  41967. * Use this property to specify additional values required by an attribute or restriction, such as to specify whether the restriction prohibits, avoids, or prefers travel on restricted roads.
  41968. *
  41969. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#attributeParameterValues)
  41970. */
  41971. attributeParameterValues?: AttributeParameterValue[];
  41972. /**
  41973. * The travel time or travel distance value at which to stop searching for facilities for a given incident.
  41974. *
  41975. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#defaultCutoff)
  41976. */
  41977. defaultCutoff?: number;
  41978. /**
  41979. * The number of closest facilities to find per incident.
  41980. *
  41981. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#defaultTargetFacilityCount)
  41982. */
  41983. defaultTargetFacilityCount?: number;
  41984. /**
  41985. * The language that will be used when generating travel directions.
  41986. *
  41987. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#directionsLanguage)
  41988. */
  41989. directionsLanguage?: string;
  41990. /**
  41991. * Specify the units for displaying travel distance in the driving directions.
  41992. *
  41993. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#directionsLengthUnits)
  41994. */
  41995. directionsLengthUnits?: | "centimeters"
  41996. | "decimal-degrees"
  41997. | "decimeters"
  41998. | "feet"
  41999. | "inches"
  42000. | "kilometers"
  42001. | "meters"
  42002. | "miles"
  42003. | "millimeters"
  42004. | "nautical-miles"
  42005. | "points"
  42006. | "yards";
  42007. /**
  42008. * Define the content and verbosity of the driving directions.
  42009. *
  42010. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#directionsOutputType)
  42011. */
  42012. directionsOutputType?: | "complete"
  42013. | "complete-no-events"
  42014. | "featuresets"
  42015. | "instructions-only"
  42016. | "standard"
  42017. | "summary-only";
  42018. /**
  42019. * Specify the name of the formatting style for the directions.
  42020. *
  42021. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#directionsStyleName)
  42022. */
  42023. directionsStyleName?: "desktop" | "navigation" | "campus";
  42024. /**
  42025. * Set the time-based impedance attribute to display the duration of a maneuver, such as "Go northwest on Alvorado St.
  42026. *
  42027. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#directionsTimeAttribute)
  42028. */
  42029. directionsTimeAttribute?: "travel-time" | "truck-travel-time" | "walk-time" | "minutes" | "truck-time" | string;
  42030. /**
  42031. * One or more locations that are searched for when finding the closest location.
  42032. *
  42033. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#facilities)
  42034. */
  42035. facilities?: | (DataLayerProperties & { type: "layer" })
  42036. | FeatureSetProperties
  42037. | NetworkFeatureSetProperties
  42038. | NetworkUrlProperties;
  42039. /**
  42040. * Use this property to specify the number of decimal places in the response geometries returned by solve operation.
  42041. *
  42042. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#geometryPrecision)
  42043. */
  42044. geometryPrecision?: number;
  42045. /**
  42046. * Use this property to specify the number of decimal places in the response geometries returned by solve operation.
  42047. *
  42048. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#geometryPrecisionM)
  42049. */
  42050. geometryPrecisionM?: number;
  42051. /**
  42052. * Use this property to specify the number of decimal places in the response geometries returned by a solve operation.
  42053. *
  42054. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#geometryPrecisionZ)
  42055. */
  42056. geometryPrecisionZ?: number;
  42057. /**
  42058. * Specify whether invalid input locations should be ignored when finding the best solution.
  42059. *
  42060. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#ignoreInvalidLocations)
  42061. */
  42062. ignoreInvalidLocations?: boolean;
  42063. /**
  42064. * Specifies the impedance.
  42065. *
  42066. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#impedanceAttribute)
  42067. */
  42068. impedanceAttribute?: | "kilometers"
  42069. | "miles"
  42070. | "minutes"
  42071. | "travel-time"
  42072. | "truck-minutes"
  42073. | "truck-travel-time"
  42074. | "walk-time"
  42075. | string;
  42076. /**
  42077. * One or more locations from which the service searches for the nearby locations
  42078. *
  42079. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#incidents)
  42080. */
  42081. incidents?: | (DataLayerProperties & { type: "layer" })
  42082. | FeatureSetProperties
  42083. | NetworkFeatureSetProperties
  42084. | NetworkUrlProperties;
  42085. /**
  42086. * Use this property to specify by how much you want to simplify the route geometry returned by the operation.
  42087. *
  42088. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#outputGeometryPrecision)
  42089. */
  42090. outputGeometryPrecision?: number;
  42091. /**
  42092. * Use this property to specify the units for the value specified for the [outputGeometryPrecision](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#outputGeometryPrecision) parameter.
  42093. *
  42094. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#outputGeometryPrecisionUnits)
  42095. */
  42096. outputGeometryPrecisionUnits?: | "centimeters"
  42097. | "decimal-degrees"
  42098. | "decimeters"
  42099. | "feet"
  42100. | "inches"
  42101. | "kilometers"
  42102. | "meters"
  42103. | "miles"
  42104. | "millimeters"
  42105. | "nautical-miles"
  42106. | "points"
  42107. | "yards";
  42108. /**
  42109. * Use this property to specify the type of route features that are output by the operation.
  42110. *
  42111. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#outputLines)
  42112. */
  42113. outputLines?: "none" | "straight" | "true-shape" | "true-shape-with-measure";
  42114. /**
  42115. * Use this property to specify the spatial reference of the geometries, such as line or point features, returned by a solve operation.
  42116. *
  42117. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#outSpatialReference)
  42118. */
  42119. outSpatialReference?: SpatialReferenceProperties;
  42120. /**
  42121. * Specify additional settings that can influence the behavior of the solver when finding solutions for the network analysis problems.
  42122. *
  42123. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#overrides)
  42124. */
  42125. overrides?: any;
  42126. /**
  42127. * Use this property to specify one or more points that will act as temporary restrictions or represent additional time or distance that may be required to travel on the underlying streets.
  42128. *
  42129. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#pointBarriers)
  42130. */
  42131. pointBarriers?: | CollectionProperties<PointBarrierProperties>
  42132. | (DataLayerProperties & { type: "layer" })
  42133. | FeatureSetProperties
  42134. | NetworkFeatureSetProperties
  42135. | NetworkUrlProperties;
  42136. /**
  42137. * Use this property to specify polygons that either completely restrict travel or proportionately scale the time or distance required to travel on the streets intersected by the polygons.
  42138. *
  42139. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#polygonBarriers)
  42140. */
  42141. polygonBarriers?: | CollectionProperties<PolygonBarrierProperties>
  42142. | (DataLayerProperties & { type: "layer" })
  42143. | FeatureSetProperties
  42144. | NetworkFeatureSetProperties
  42145. | NetworkUrlProperties;
  42146. /**
  42147. * Use this property to specify one or more lines that prohibit travel anywhere the lines intersect the streets.
  42148. *
  42149. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#polylineBarriers)
  42150. */
  42151. polylineBarriers?: | CollectionProperties<PolylineBarrierProperties>
  42152. | (DataLayerProperties & { type: "layer" })
  42153. | FeatureSetProperties
  42154. | NetworkFeatureSetProperties
  42155. | NetworkUrlProperties;
  42156. /**
  42157. * Use this property to specify if the Object IDs specified for input locations such as stops or barriers should be preserved when the input locations are returned as output.
  42158. *
  42159. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#preserveObjectID)
  42160. */
  42161. preserveObjectID?: boolean;
  42162. /**
  42163. * Use this property to specify which restrictions should be honored by the operation.
  42164. *
  42165. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#restrictionAttributes)
  42166. */
  42167. restrictionAttributes?: (
  42168. | "any-hazmat-prohibited"
  42169. | "avoid-carpool-roads"
  42170. | "avoid-express-lanes"
  42171. | "avoid-ferries"
  42172. | "avoid-gates"
  42173. | "avoid-limited-access-roads"
  42174. | "avoid-private-roads"
  42175. | "avoid-roads-unsuitable-for-pedestrians"
  42176. | "avoid-stairways"
  42177. | "avoid-toll-roads"
  42178. | "avoid-toll-roads-for-trucks"
  42179. | "avoid-truck-restricted-roads"
  42180. | "avoid-unpaved-roads"
  42181. | "axle-count-restriction"
  42182. | "driving-a-bus"
  42183. | "driving-a-taxi"
  42184. | "driving-a-truck"
  42185. | "driving-an-automobile"
  42186. | "driving-an-emergency-vehicle"
  42187. | "height-restriction"
  42188. | "kingpin-to-rear-axle-length-restriction"
  42189. | "length-restriction"
  42190. | "preferred-for-pedestrians"
  42191. | "riding-a-motorcycle"
  42192. | "roads-under-construction-prohibited"
  42193. | "semi-or-tractor-with-one-or-more-trailers-prohibited"
  42194. | "single-axle-vehicles-prohibited"
  42195. | "tandem-axle-vehicles-prohibited"
  42196. | "through-traffic-prohibited"
  42197. | "truck-with-trailers-restriction"
  42198. | "use-preferred-hazmat-routes"
  42199. | "use-preferred-truck-routes"
  42200. | "walking"
  42201. | "weight-restriction"
  42202. | string
  42203. )[];
  42204. /**
  42205. * Specifies how U-Turns should be handled.
  42206. *
  42207. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#restrictUTurns)
  42208. */
  42209. restrictUTurns?: "allow-backtrack" | "at-dead-ends-only" | "no-backtrack" | "at-dead-ends-and-intersections";
  42210. /**
  42211. * Specify whether the operation should generate driving directions for each route.
  42212. *
  42213. * @default false
  42214. *
  42215. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#returnDirections)
  42216. */
  42217. returnDirections?: boolean;
  42218. /**
  42219. * Determines if facilities will be returned by the service.
  42220. *
  42221. * @default false
  42222. *
  42223. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#returnFacilities)
  42224. */
  42225. returnFacilities?: boolean;
  42226. /**
  42227. * Determines if incidents will be returned by the service.
  42228. *
  42229. * @default false
  42230. *
  42231. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#returnIncidents)
  42232. */
  42233. returnIncidents?: boolean;
  42234. /**
  42235. * Specify whether [point barriers](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#pointBarriers) will be returned by the routing operation.
  42236. *
  42237. * @default false
  42238. *
  42239. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#returnPointBarriers)
  42240. */
  42241. returnPointBarriers?: boolean;
  42242. /**
  42243. * Specify whether [polygon barriers](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#polygonBarriers) will be returned by the routing operation.
  42244. *
  42245. * @default false
  42246. *
  42247. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#returnPolygonBarriers)
  42248. */
  42249. returnPolygonBarriers?: boolean;
  42250. /**
  42251. * Specify whether [polyline barriers](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#polylineBarriers) will be returned by the routing operation.
  42252. *
  42253. * @default false
  42254. *
  42255. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#returnPolylineBarriers)
  42256. */
  42257. returnPolylineBarriers?: boolean;
  42258. /**
  42259. * Use this property to specify if the operation should return routes.
  42260. *
  42261. * @default true
  42262. *
  42263. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#returnRoutes)
  42264. */
  42265. returnRoutes?: boolean;
  42266. /**
  42267. * Specify whether traversed edges will be returned by the operation.
  42268. *
  42269. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#returnTraversedEdges)
  42270. */
  42271. returnTraversedEdges?: boolean;
  42272. /**
  42273. * Specify whether traversed junctions will be returned by the operation.
  42274. *
  42275. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#returnTraversedJunctions)
  42276. */
  42277. returnTraversedJunctions?: boolean;
  42278. /**
  42279. * Specify whether traversed turns will be returned by the operation.
  42280. *
  42281. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#returnTraversedTurns)
  42282. */
  42283. returnTraversedTurns?: boolean;
  42284. /**
  42285. * Include z values for the returned geometries if supported by the underlying network.
  42286. *
  42287. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#returnZ)
  42288. */
  42289. returnZ?: boolean;
  42290. /**
  42291. * Specify the time and date to depart from or arrive at incidents or facilities.
  42292. *
  42293. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#timeOfDay)
  42294. */
  42295. timeOfDay?: DateProperties | "now";
  42296. /**
  42297. * Specify the time zone or zones of the [timeOfDay](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#timeOfDay) property.
  42298. *
  42299. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#timeOfDayIsUTC)
  42300. */
  42301. timeOfDayIsUTC?: boolean;
  42302. /**
  42303. * The [timeOfDay](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#timeOfDay) parameter value represents the arrival or departure time for the routes.
  42304. *
  42305. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#timeOfDayUsage)
  42306. */
  42307. timeOfDayUsage?: "start" | "end";
  42308. /**
  42309. * Specifies how the travel direction for the closest facility search will be measured.
  42310. *
  42311. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#travelDirection)
  42312. */
  42313. travelDirection?: "from-facility" | "to-facility";
  42314. /**
  42315. * A travel mode represents a means of transportation, such as driving or walking.
  42316. *
  42317. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#travelMode)
  42318. */
  42319. travelMode?: TravelModeProperties;
  42320. /**
  42321. * Specify whether hierarchy should be used when finding the shortest paths.
  42322. *
  42323. * @default false
  42324. *
  42325. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#useHierarchy)
  42326. */
  42327. useHierarchy?: boolean;
  42328. }
  42329. /**
  42330. * An object describing the parameter values for the [attributeParameterValues](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#attributeParameterValues) property of [ClosestFacilityParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html).
  42331. *
  42332. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#AttributeParameterValue)
  42333. */
  42334. export interface AttributeParameterValue {
  42335. /**
  42336. * The name of the restriction.
  42337. *
  42338. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#AttributeParameterValue)
  42339. */
  42340. attributeName: string;
  42341. /**
  42342. * The name of the parameter associated with the restriction.
  42343. *
  42344. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#AttributeParameterValue)
  42345. */
  42346. parameterName: string;
  42347. /**
  42348. * The value for `parameterName`.
  42349. *
  42350. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#AttributeParameterValue)
  42351. */
  42352. value: string | number;
  42353. }
  42354. export interface ClosestFacilitySolveResult extends Accessor, JSONSupport {
  42355. }
  42356. export class ClosestFacilitySolveResult {
  42357. /**
  42358. * Direction lines contains a set of line features for each segment of the route.
  42359. *
  42360. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilitySolveResult.html#directionLines)
  42361. */
  42362. directionLines: FeatureSet;
  42363. /**
  42364. * Direction points contains a set of point features representing the direction maneuvers such as arriving to or departing from a stop, turning left or right, and other events along your route.
  42365. *
  42366. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilitySolveResult.html#directionPoints)
  42367. */
  42368. directionPoints: FeatureSet;
  42369. /**
  42370. * Directions are returned if [ClosestFacilityParameters.returnDirections](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#returnDirections) is set to `true` and [ClosestFacilityParameters.directionsOutputType](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#directionsOutputType) is set to `complete`, `complete-no-events`, `instructions-only', `standard` or `summary-only` in a [closestFacility.solve()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-closestFacility.html#solve) request.
  42371. *
  42372. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilitySolveResult.html#directions)
  42373. */
  42374. directions: DirectionsFeatureSet[];
  42375. /**
  42376. * This provides access to the output facilities from a closest facility analysis.
  42377. *
  42378. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilitySolveResult.html#facilities)
  42379. */
  42380. facilities: FeatureSet;
  42381. /**
  42382. * This provides access to the locations used as starting or ending points in a closest facility analysis.
  42383. *
  42384. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilitySolveResult.html#incidents)
  42385. */
  42386. incidents: FeatureSet;
  42387. /**
  42388. * An array of processing [messages](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-NAMessage.html) generated by the server.
  42389. *
  42390. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilitySolveResult.html#messages)
  42391. */
  42392. messages: NAMessage[];
  42393. /**
  42394. * A set of features representing point barriers.
  42395. *
  42396. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilitySolveResult.html#pointBarriers)
  42397. */
  42398. pointBarriers: FeatureSet;
  42399. /**
  42400. * A set of features representing polygon barriers.
  42401. *
  42402. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilitySolveResult.html#polygonBarriers)
  42403. */
  42404. polygonBarriers: FeatureSet;
  42405. /**
  42406. * A set of features representing polyline barriers.
  42407. *
  42408. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilitySolveResult.html#polylineBarriers)
  42409. */
  42410. polylineBarriers: FeatureSet;
  42411. /**
  42412. * A set of features representing routes between the facilities and the incidents.
  42413. *
  42414. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilitySolveResult.html#routes)
  42415. */
  42416. routes: FeatureSet;
  42417. /**
  42418. * This provides access to the edges that are traversed while solving a network analysis layer.
  42419. *
  42420. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilitySolveResult.html#traversedEdges)
  42421. */
  42422. traversedEdges: FeatureSet;
  42423. /**
  42424. * This provides access to the junctions that are traversed while solving a network analysis layer.
  42425. *
  42426. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilitySolveResult.html#traversedJunctions)
  42427. */
  42428. traversedJunctions: FeatureSet;
  42429. /**
  42430. * This provides access to the turns that are traversed while solving a network analysis layer.
  42431. *
  42432. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilitySolveResult.html#traversedTurns)
  42433. */
  42434. traversedTurns: FeatureSet;
  42435. /**
  42436. * The result from [closestFacility](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-closestFacility.html).
  42437. *
  42438. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilitySolveResult.html)
  42439. */
  42440. constructor(properties?: ClosestFacilitySolveResultProperties);
  42441. static fromJSON(json: any): ClosestFacilitySolveResult;
  42442. }
  42443. /** @deprecated Import the ClosestFacilitySolveResult class instead. */
  42444. export type ClosestFacilitySolveResultConstructor = typeof ClosestFacilitySolveResult;
  42445. interface ClosestFacilitySolveResultProperties {
  42446. /**
  42447. * Direction lines contains a set of line features for each segment of the route.
  42448. *
  42449. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilitySolveResult.html#directionLines)
  42450. */
  42451. directionLines?: FeatureSetProperties;
  42452. /**
  42453. * Direction points contains a set of point features representing the direction maneuvers such as arriving to or departing from a stop, turning left or right, and other events along your route.
  42454. *
  42455. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilitySolveResult.html#directionPoints)
  42456. */
  42457. directionPoints?: FeatureSetProperties;
  42458. /**
  42459. * Directions are returned if [ClosestFacilityParameters.returnDirections](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#returnDirections) is set to `true` and [ClosestFacilityParameters.directionsOutputType](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilityParameters.html#directionsOutputType) is set to `complete`, `complete-no-events`, `instructions-only', `standard` or `summary-only` in a [closestFacility.solve()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-closestFacility.html#solve) request.
  42460. *
  42461. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilitySolveResult.html#directions)
  42462. */
  42463. directions?: DirectionsFeatureSetProperties[];
  42464. /**
  42465. * This provides access to the output facilities from a closest facility analysis.
  42466. *
  42467. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilitySolveResult.html#facilities)
  42468. */
  42469. facilities?: FeatureSetProperties;
  42470. /**
  42471. * This provides access to the locations used as starting or ending points in a closest facility analysis.
  42472. *
  42473. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilitySolveResult.html#incidents)
  42474. */
  42475. incidents?: FeatureSetProperties;
  42476. /**
  42477. * An array of processing [messages](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-NAMessage.html) generated by the server.
  42478. *
  42479. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilitySolveResult.html#messages)
  42480. */
  42481. messages?: NAMessageProperties[];
  42482. /**
  42483. * A set of features representing point barriers.
  42484. *
  42485. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilitySolveResult.html#pointBarriers)
  42486. */
  42487. pointBarriers?: FeatureSetProperties;
  42488. /**
  42489. * A set of features representing polygon barriers.
  42490. *
  42491. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilitySolveResult.html#polygonBarriers)
  42492. */
  42493. polygonBarriers?: FeatureSetProperties;
  42494. /**
  42495. * A set of features representing polyline barriers.
  42496. *
  42497. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilitySolveResult.html#polylineBarriers)
  42498. */
  42499. polylineBarriers?: FeatureSetProperties;
  42500. /**
  42501. * A set of features representing routes between the facilities and the incidents.
  42502. *
  42503. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilitySolveResult.html#routes)
  42504. */
  42505. routes?: FeatureSetProperties;
  42506. /**
  42507. * This provides access to the edges that are traversed while solving a network analysis layer.
  42508. *
  42509. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilitySolveResult.html#traversedEdges)
  42510. */
  42511. traversedEdges?: FeatureSetProperties;
  42512. /**
  42513. * This provides access to the junctions that are traversed while solving a network analysis layer.
  42514. *
  42515. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilitySolveResult.html#traversedJunctions)
  42516. */
  42517. traversedJunctions?: FeatureSetProperties;
  42518. /**
  42519. * This provides access to the turns that are traversed while solving a network analysis layer.
  42520. *
  42521. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ClosestFacilitySolveResult.html#traversedTurns)
  42522. */
  42523. traversedTurns?: FeatureSetProperties;
  42524. }
  42525. export interface ColorRamp extends Accessor, JSONSupport {
  42526. }
  42527. export class ColorRamp {
  42528. /**
  42529. * A string value representing the color ramp type.
  42530. *
  42531. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ColorRamp.html#type)
  42532. */
  42533. readonly type: "algorithmic" | "multipart";
  42534. /**
  42535. * A ColorRamp object is used to specify a range of colors that are applied to a group of symbols or pixels.
  42536. *
  42537. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ColorRamp.html)
  42538. */
  42539. constructor(properties?: ColorRampProperties);
  42540. static fromJSON(json: any): ColorRamp;
  42541. }
  42542. /** @deprecated Import the ColorRamp class instead. */
  42543. export type ColorRampConstructor = typeof ColorRamp;
  42544. interface ColorRampProperties {
  42545. }
  42546. export interface DataFile extends Accessor, JSONSupport {
  42547. }
  42548. export class DataFile {
  42549. /**
  42550. * The ID of the uploaded file returned as a result of the upload operation.
  42551. *
  42552. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DataFile.html#itemId)
  42553. */
  42554. itemId: string;
  42555. /**
  42556. * URL to the location of the data file.
  42557. *
  42558. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DataFile.html#url)
  42559. */
  42560. url: string;
  42561. /**
  42562. * A geoprocessing data object containing a data source.
  42563. *
  42564. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DataFile.html)
  42565. */
  42566. constructor(properties?: DataFileProperties);
  42567. static fromJSON(json: any): DataFile;
  42568. }
  42569. /** @deprecated Import the DataFile class instead. */
  42570. export type DataFileConstructor = typeof DataFile;
  42571. interface DataFileProperties {
  42572. /**
  42573. * The ID of the uploaded file returned as a result of the upload operation.
  42574. *
  42575. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DataFile.html#itemId)
  42576. */
  42577. itemId?: string;
  42578. /**
  42579. * URL to the location of the data file.
  42580. *
  42581. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DataFile.html#url)
  42582. */
  42583. url?: string;
  42584. }
  42585. export interface DataLayer extends Accessor, JSONSupport {
  42586. }
  42587. export class DataLayer {
  42588. /**
  42589. * If true, restricted network elements should be considered when finding network locations.
  42590. *
  42591. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DataLayer.html#doNotLocateOnRestrictedElements)
  42592. */
  42593. doNotLocateOnRestrictedElements: boolean;
  42594. /**
  42595. * The geometry to apply to the spatial filter.
  42596. *
  42597. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DataLayer.html#geometry)
  42598. */
  42599. geometry: Geometry;
  42600. /**
  42601. * The type of geometry specified by the [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DataLayer.html#geometry) property.
  42602. *
  42603. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DataLayer.html#geometryType)
  42604. */
  42605. geometryType: "point" | "polyline" | "polygon" | "envelope" | "multipoint";
  42606. /**
  42607. * The name of the data layer in the map service that is being referenced.
  42608. *
  42609. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DataLayer.html#name)
  42610. */
  42611. name: string;
  42612. /**
  42613. * The spatial relationship to be applied on the input geometry while performing the query.
  42614. *
  42615. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DataLayer.html#spatialRelationship)
  42616. */
  42617. spatialRelationship: | "intersects"
  42618. | "contains"
  42619. | "crosses"
  42620. | "envelope-intersects"
  42621. | "index-intersects"
  42622. | "overlaps"
  42623. | "touches"
  42624. | "within"
  42625. | "relation";
  42626. type: "layer";
  42627. /**
  42628. * A where clause for the query.
  42629. *
  42630. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DataLayer.html#where)
  42631. */
  42632. where: string;
  42633. /**
  42634. * Input for properties of ClosestFacilityParameters, RouteParameters or ServiceAreaParameters.
  42635. *
  42636. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DataLayer.html)
  42637. */
  42638. constructor(properties?: DataLayerProperties);
  42639. static fromJSON(json: any): DataLayer;
  42640. }
  42641. /** @deprecated Import the DataLayer class instead. */
  42642. export type DataLayerConstructor = typeof DataLayer;
  42643. interface DataLayerProperties {
  42644. /**
  42645. * If true, restricted network elements should be considered when finding network locations.
  42646. *
  42647. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DataLayer.html#doNotLocateOnRestrictedElements)
  42648. */
  42649. doNotLocateOnRestrictedElements?: boolean;
  42650. /**
  42651. * The geometry to apply to the spatial filter.
  42652. *
  42653. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DataLayer.html#geometry)
  42654. */
  42655. geometry?: GeometryProperties;
  42656. /**
  42657. * The type of geometry specified by the [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DataLayer.html#geometry) property.
  42658. *
  42659. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DataLayer.html#geometryType)
  42660. */
  42661. geometryType?: "point" | "polyline" | "polygon" | "envelope" | "multipoint";
  42662. /**
  42663. * The name of the data layer in the map service that is being referenced.
  42664. *
  42665. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DataLayer.html#name)
  42666. */
  42667. name?: string;
  42668. /**
  42669. * The spatial relationship to be applied on the input geometry while performing the query.
  42670. *
  42671. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DataLayer.html#spatialRelationship)
  42672. */
  42673. spatialRelationship?: | "intersects"
  42674. | "contains"
  42675. | "crosses"
  42676. | "envelope-intersects"
  42677. | "index-intersects"
  42678. | "overlaps"
  42679. | "touches"
  42680. | "within"
  42681. | "relation";
  42682. type?: "layer";
  42683. /**
  42684. * A where clause for the query.
  42685. *
  42686. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DataLayer.html#where)
  42687. */
  42688. where?: string;
  42689. }
  42690. export class DensifyParameters extends Accessor {
  42691. /**
  42692. * If `true`, Geographic Coordinate System spatial references are used or densify geodesic will be performed.
  42693. *
  42694. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DensifyParameters.html#geodesic)
  42695. */
  42696. geodesic: boolean;
  42697. /**
  42698. * The array of geometries to be densified.
  42699. *
  42700. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DensifyParameters.html#geometries)
  42701. */
  42702. geometries: Geometry[];
  42703. /**
  42704. * The length unit of `maxSegmentLength`.
  42705. *
  42706. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DensifyParameters.html#lengthUnit)
  42707. */
  42708. lengthUnit: "feet" | "kilometers" | "meters" | "miles" | "nautical-miles" | "yards";
  42709. /**
  42710. * All segments longer than `maxSegmentLength` are replaced with sequences of lines no longer than `maxSegmentLength.`
  42711. *
  42712. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DensifyParameters.html#maxSegmentLength)
  42713. */
  42714. maxSegmentLength: number;
  42715. /**
  42716. * Input parameters for the densify() method on the GeometryService.
  42717. *
  42718. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DensifyParameters.html)
  42719. */
  42720. constructor(properties?: DensifyParametersProperties);
  42721. /**
  42722. * Converts an instance of this class to its ArcGIS portal JSON representation.
  42723. *
  42724. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DensifyParameters.html#toJSON)
  42725. */
  42726. toJSON(): any;
  42727. }
  42728. /** @deprecated Import the DensifyParameters class instead. */
  42729. export type DensifyParametersConstructor = typeof DensifyParameters;
  42730. interface DensifyParametersProperties {
  42731. /**
  42732. * If `true`, Geographic Coordinate System spatial references are used or densify geodesic will be performed.
  42733. *
  42734. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DensifyParameters.html#geodesic)
  42735. */
  42736. geodesic?: boolean;
  42737. /**
  42738. * The array of geometries to be densified.
  42739. *
  42740. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DensifyParameters.html#geometries)
  42741. */
  42742. geometries?: GeometryProperties[];
  42743. /**
  42744. * The length unit of `maxSegmentLength`.
  42745. *
  42746. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DensifyParameters.html#lengthUnit)
  42747. */
  42748. lengthUnit?: "feet" | "kilometers" | "meters" | "miles" | "nautical-miles" | "yards";
  42749. /**
  42750. * All segments longer than `maxSegmentLength` are replaced with sequences of lines no longer than `maxSegmentLength.`
  42751. *
  42752. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DensifyParameters.html#maxSegmentLength)
  42753. */
  42754. maxSegmentLength?: number;
  42755. }
  42756. export interface DirectionLine extends Accessor, JSONSupport {
  42757. }
  42758. export class DirectionLine {
  42759. /**
  42760. * The type of line which is defined by esriDirectionLineType.
  42761. *
  42762. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionLine.html#directionLineType)
  42763. */
  42764. directionLineType: | "unknown"
  42765. | "segment"
  42766. | "maneuver-segment"
  42767. | "restriction-violation"
  42768. | "scaled-cost-barrier"
  42769. | "heavy-traffic"
  42770. | "slow-traffic"
  42771. | "moderate-traffic";
  42772. /**
  42773. * Length of the line measured in meters.
  42774. *
  42775. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionLine.html#distance)
  42776. */
  42777. distance: number;
  42778. /**
  42779. * Time of the line measured in minutes.
  42780. *
  42781. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionLine.html#duration)
  42782. */
  42783. duration: number;
  42784. /**
  42785. * Polyline representing the direction's location.
  42786. *
  42787. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionLine.html#geometry)
  42788. */
  42789. geometry: Polyline;
  42790. readonly type: "direction-line";
  42791. /**
  42792. * The DirectionLine represents polylines associated with individual direction items.
  42793. *
  42794. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionLine.html)
  42795. */
  42796. constructor(properties?: DirectionLineProperties);
  42797. /**
  42798. * Creates a [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) from the [DirectionLine](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionLine.html) instance.
  42799. *
  42800. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionLine.html#toGraphic)
  42801. */
  42802. toGraphic(): Graphic;
  42803. /**
  42804. * Creates a [DirectionLine](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionLine.html) from the parsed [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html).
  42805. *
  42806. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionLine.html#fromGraphic)
  42807. */
  42808. static fromGraphic(graphic?: Graphic): DirectionLine;
  42809. static fromJSON(json: any): DirectionLine;
  42810. }
  42811. /** @deprecated Import the DirectionLine class instead. */
  42812. export type DirectionLineConstructor = typeof DirectionLine;
  42813. interface DirectionLineProperties {
  42814. /**
  42815. * The type of line which is defined by esriDirectionLineType.
  42816. *
  42817. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionLine.html#directionLineType)
  42818. */
  42819. directionLineType?: | "unknown"
  42820. | "segment"
  42821. | "maneuver-segment"
  42822. | "restriction-violation"
  42823. | "scaled-cost-barrier"
  42824. | "heavy-traffic"
  42825. | "slow-traffic"
  42826. | "moderate-traffic";
  42827. /**
  42828. * Length of the line measured in meters.
  42829. *
  42830. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionLine.html#distance)
  42831. */
  42832. distance?: number;
  42833. /**
  42834. * Time of the line measured in minutes.
  42835. *
  42836. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionLine.html#duration)
  42837. */
  42838. duration?: number;
  42839. /**
  42840. * Polyline representing the direction's location.
  42841. *
  42842. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionLine.html#geometry)
  42843. */
  42844. geometry?: PolylineProperties;
  42845. }
  42846. export interface DirectionPoint extends Accessor, JSONSupport {
  42847. }
  42848. export class DirectionPoint {
  42849. /**
  42850. * Time when the action happens.
  42851. *
  42852. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionPoint.html#arrivalTime)
  42853. */
  42854. arrivalTime: Date;
  42855. /**
  42856. * The type of directions event or maneuver described by the point.
  42857. *
  42858. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionPoint.html#directionPointType)
  42859. */
  42860. directionPointType: | "header"
  42861. | "arrive"
  42862. | "depart"
  42863. | "straight"
  42864. | "on-ferry"
  42865. | "off-ferry"
  42866. | "central-fork"
  42867. | "roundabout"
  42868. | "u-turn"
  42869. | "door"
  42870. | "stairs"
  42871. | "elevator"
  42872. | "escalator"
  42873. | "pedestrian-ramp"
  42874. | "left-fork"
  42875. | "left-ramp"
  42876. | "clockwise-roundabout"
  42877. | "left-handed-u-turn"
  42878. | "bear-left"
  42879. | "left-turn"
  42880. | "sharp-left"
  42881. | "left-turn-and-immediate-left-turn"
  42882. | "left-turn-and-immediate-right-turn"
  42883. | "right-fork"
  42884. | "right-ramp"
  42885. | "counter-clockwise-roundabout"
  42886. | "right-handed-u-turn"
  42887. | "bear-right"
  42888. | "right-turn"
  42889. | "sharp-right"
  42890. | "right-turn-and-immediate-left-turn"
  42891. | "right-turn-and-immediate-right-turn"
  42892. | "up-elevator"
  42893. | "up-escalator"
  42894. | "up-stairs"
  42895. | "down-elevator"
  42896. | "down-escalator"
  42897. | "down-stairs"
  42898. | "general-event"
  42899. | "landmark"
  42900. | "time-zone-change"
  42901. | "traffic-event"
  42902. | "scaled-cost-barrier-event"
  42903. | "boundary-crossing"
  42904. | "restriction-violation";
  42905. /**
  42906. * The direction item text to dispay on the screen.
  42907. *
  42908. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionPoint.html#displayText)
  42909. */
  42910. displayText: string;
  42911. /**
  42912. * The local time offset (in minutes) for the arrival time.
  42913. *
  42914. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionPoint.html#endTimeOffset)
  42915. */
  42916. endTimeOffset: number;
  42917. /**
  42918. * Point representing the direction's location.
  42919. *
  42920. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionPoint.html#geometry)
  42921. */
  42922. geometry: Point;
  42923. /**
  42924. * Sequence of the Direction items, starting with 1.
  42925. *
  42926. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionPoint.html#sequence)
  42927. */
  42928. sequence: number;
  42929. readonly type: "direction-point";
  42930. /**
  42931. * The DirectionPoint represents direction items as points with various display information.
  42932. *
  42933. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionPoint.html)
  42934. */
  42935. constructor(properties?: DirectionPointProperties);
  42936. /**
  42937. * Creates a [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) from the [DirectionPoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionPoint.html) instance.
  42938. *
  42939. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionPoint.html#toGraphic)
  42940. */
  42941. toGraphic(): Graphic;
  42942. /**
  42943. * Creates a [DirectionPoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionPoint.html) from the parsed [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html).
  42944. *
  42945. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionPoint.html#fromGraphic)
  42946. */
  42947. static fromGraphic(graphic?: Graphic): DirectionPoint;
  42948. static fromJSON(json: any): DirectionPoint;
  42949. }
  42950. /** @deprecated Import the DirectionPoint class instead. */
  42951. export type DirectionPointConstructor = typeof DirectionPoint;
  42952. interface DirectionPointProperties {
  42953. /**
  42954. * Time when the action happens.
  42955. *
  42956. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionPoint.html#arrivalTime)
  42957. */
  42958. arrivalTime?: DateProperties;
  42959. /**
  42960. * The type of directions event or maneuver described by the point.
  42961. *
  42962. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionPoint.html#directionPointType)
  42963. */
  42964. directionPointType?: | "header"
  42965. | "arrive"
  42966. | "depart"
  42967. | "straight"
  42968. | "on-ferry"
  42969. | "off-ferry"
  42970. | "central-fork"
  42971. | "roundabout"
  42972. | "u-turn"
  42973. | "door"
  42974. | "stairs"
  42975. | "elevator"
  42976. | "escalator"
  42977. | "pedestrian-ramp"
  42978. | "left-fork"
  42979. | "left-ramp"
  42980. | "clockwise-roundabout"
  42981. | "left-handed-u-turn"
  42982. | "bear-left"
  42983. | "left-turn"
  42984. | "sharp-left"
  42985. | "left-turn-and-immediate-left-turn"
  42986. | "left-turn-and-immediate-right-turn"
  42987. | "right-fork"
  42988. | "right-ramp"
  42989. | "counter-clockwise-roundabout"
  42990. | "right-handed-u-turn"
  42991. | "bear-right"
  42992. | "right-turn"
  42993. | "sharp-right"
  42994. | "right-turn-and-immediate-left-turn"
  42995. | "right-turn-and-immediate-right-turn"
  42996. | "up-elevator"
  42997. | "up-escalator"
  42998. | "up-stairs"
  42999. | "down-elevator"
  43000. | "down-escalator"
  43001. | "down-stairs"
  43002. | "general-event"
  43003. | "landmark"
  43004. | "time-zone-change"
  43005. | "traffic-event"
  43006. | "scaled-cost-barrier-event"
  43007. | "boundary-crossing"
  43008. | "restriction-violation";
  43009. /**
  43010. * The direction item text to dispay on the screen.
  43011. *
  43012. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionPoint.html#displayText)
  43013. */
  43014. displayText?: string;
  43015. /**
  43016. * The local time offset (in minutes) for the arrival time.
  43017. *
  43018. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionPoint.html#endTimeOffset)
  43019. */
  43020. endTimeOffset?: number;
  43021. /**
  43022. * Point representing the direction's location.
  43023. *
  43024. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionPoint.html#geometry)
  43025. */
  43026. geometry?: PointProperties;
  43027. /**
  43028. * Sequence of the Direction items, starting with 1.
  43029. *
  43030. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionPoint.html#sequence)
  43031. */
  43032. sequence?: number;
  43033. }
  43034. export interface DirectionsEvent extends Accessor, JSONSupport {
  43035. }
  43036. export class DirectionsEvent {
  43037. /**
  43038. * The date and time value indicating the arrival time at the Directions Event.
  43039. *
  43040. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsEvent.html#arriveTime)
  43041. */
  43042. arriveTime: Date;
  43043. /**
  43044. * The local time offset (in minutes) for the arrival time.
  43045. *
  43046. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsEvent.html#arriveTimeOffset)
  43047. */
  43048. arriveTimeOffset: number;
  43049. /**
  43050. * The point location of the stop.
  43051. *
  43052. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsEvent.html#geometry)
  43053. */
  43054. geometry: Point;
  43055. /**
  43056. * An array of [direction strings](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html#DirectionsString).
  43057. *
  43058. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsEvent.html#strings)
  43059. */
  43060. strings: DirectionsString[];
  43061. /**
  43062. * DirectionsEvent represent [events](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeature.html#events) for features in a [DirectionsFeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html).
  43063. *
  43064. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsEvent.html)
  43065. */
  43066. constructor(properties?: DirectionsEventProperties);
  43067. static fromJSON(json: any): DirectionsEvent;
  43068. }
  43069. /** @deprecated Import the DirectionsEvent class instead. */
  43070. export type DirectionsEventConstructor = typeof DirectionsEvent;
  43071. interface DirectionsEventProperties {
  43072. /**
  43073. * The date and time value indicating the arrival time at the Directions Event.
  43074. *
  43075. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsEvent.html#arriveTime)
  43076. */
  43077. arriveTime?: DateProperties;
  43078. /**
  43079. * The local time offset (in minutes) for the arrival time.
  43080. *
  43081. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsEvent.html#arriveTimeOffset)
  43082. */
  43083. arriveTimeOffset?: number;
  43084. /**
  43085. * The point location of the stop.
  43086. *
  43087. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsEvent.html#geometry)
  43088. */
  43089. geometry?: PointProperties;
  43090. /**
  43091. * An array of [direction strings](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html#DirectionsString).
  43092. *
  43093. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsEvent.html#strings)
  43094. */
  43095. strings?: DirectionsString[];
  43096. }
  43097. export class DirectionsFeature {
  43098. /**
  43099. * Name-value pairs of fields and field values associated with the Directions Feature.
  43100. *
  43101. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeature.html#attributes)
  43102. */
  43103. attributes: any;
  43104. /**
  43105. * An array of Direction Events.
  43106. *
  43107. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeature.html#events)
  43108. */
  43109. events: DirectionsEvent[];
  43110. /**
  43111. * The geometry of the Directions Feature.
  43112. *
  43113. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeature.html#geometry)
  43114. */
  43115. geometry: Polyline;
  43116. /**
  43117. * An array of [direction strings](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html#DirectionsString).
  43118. *
  43119. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeature.html#strings)
  43120. */
  43121. strings: DirectionsString[];
  43122. constructor(properties?: any);
  43123. }
  43124. /** @deprecated Import the DirectionsFeature class instead. */
  43125. export type DirectionsFeatureConstructor = typeof DirectionsFeature;
  43126. export interface DirectionsFeatureSet extends FeatureSet, Accessor {
  43127. }
  43128. export class DirectionsFeatureSet {
  43129. /**
  43130. * The extent of the route.
  43131. *
  43132. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html#extent)
  43133. */
  43134. extent: Extent;
  43135. /**
  43136. * The geometry type of the Directions FeatureSet.
  43137. *
  43138. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html#geometryType)
  43139. */
  43140. geometryType: "polyline";
  43141. /**
  43142. * A single polyline representing the route.
  43143. *
  43144. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html#mergedGeometry)
  43145. */
  43146. mergedGeometry: Polyline;
  43147. /**
  43148. * The ID of the route.
  43149. *
  43150. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html#routeId)
  43151. */
  43152. routeId: number;
  43153. /**
  43154. * The name of the route.
  43155. *
  43156. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html#routeName)
  43157. */
  43158. routeName: string;
  43159. /**
  43160. * A flattened array of all [direction strings](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html#DirectionsString).
  43161. *
  43162. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html#strings)
  43163. */
  43164. strings: DirectionsString[];
  43165. /**
  43166. * The total drive time for the route.
  43167. *
  43168. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html#totalDriveTime)
  43169. */
  43170. totalDriveTime: number;
  43171. /**
  43172. * The total length of the route.
  43173. *
  43174. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html#totalLength)
  43175. */
  43176. totalLength: number;
  43177. /**
  43178. * The total time for the route including wait and service time.
  43179. *
  43180. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html#totalTime)
  43181. */
  43182. totalTime: number;
  43183. /**
  43184. * DirectionsFeatureSet is a subclass of [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html) that contains street directions for a [solved route](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-route.html#solve).
  43185. *
  43186. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html)
  43187. */
  43188. constructor(properties?: DirectionsFeatureSetProperties);
  43189. static fromJSON(json: any): DirectionsFeatureSet;
  43190. }
  43191. /** @deprecated Import the DirectionsFeatureSet class instead. */
  43192. export type DirectionsFeatureSetConstructor = typeof DirectionsFeatureSet;
  43193. interface DirectionsFeatureSetProperties extends FeatureSetProperties {
  43194. /**
  43195. * The extent of the route.
  43196. *
  43197. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html#extent)
  43198. */
  43199. extent?: ExtentProperties;
  43200. /**
  43201. * The geometry type of the Directions FeatureSet.
  43202. *
  43203. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html#geometryType)
  43204. */
  43205. geometryType?: "polyline";
  43206. /**
  43207. * A single polyline representing the route.
  43208. *
  43209. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html#mergedGeometry)
  43210. */
  43211. mergedGeometry?: PolylineProperties;
  43212. /**
  43213. * The ID of the route.
  43214. *
  43215. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html#routeId)
  43216. */
  43217. routeId?: number;
  43218. /**
  43219. * The name of the route.
  43220. *
  43221. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html#routeName)
  43222. */
  43223. routeName?: string;
  43224. /**
  43225. * A flattened array of all [direction strings](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html#DirectionsString).
  43226. *
  43227. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html#strings)
  43228. */
  43229. strings?: DirectionsString[];
  43230. /**
  43231. * The total drive time for the route.
  43232. *
  43233. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html#totalDriveTime)
  43234. */
  43235. totalDriveTime?: number;
  43236. /**
  43237. * The total length of the route.
  43238. *
  43239. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html#totalLength)
  43240. */
  43241. totalLength?: number;
  43242. /**
  43243. * The total time for the route including wait and service time.
  43244. *
  43245. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html#totalTime)
  43246. */
  43247. totalTime?: number;
  43248. }
  43249. /**
  43250. * An event string object with name and type.
  43251. *
  43252. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html#DirectionsString)
  43253. */
  43254. export interface DirectionsString {
  43255. /**
  43256. * The direction text.
  43257. *
  43258. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html#DirectionsString)
  43259. */
  43260. text: string;
  43261. /**
  43262. * The type of event.
  43263. *
  43264. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DirectionsFeatureSet.html#DirectionsString)
  43265. */
  43266. type: | "alt-name"
  43267. | "arrive"
  43268. | "branch"
  43269. | "cross-street"
  43270. | "cumulative-length"
  43271. | "depart"
  43272. | "estimated-arrival-time"
  43273. | "exit"
  43274. | "general"
  43275. | "length"
  43276. | "service-time"
  43277. | "street-name"
  43278. | "summary"
  43279. | "time"
  43280. | "time-window"
  43281. | "toward"
  43282. | "violation-time"
  43283. | "wait-time";
  43284. }
  43285. export class DistanceParameters extends Accessor {
  43286. /**
  43287. * Specifies the units for measuring distance between [geometry1](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DistanceParameters.html#geometry1) and [geometry2](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DistanceParameters.html#geometry2).
  43288. *
  43289. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DistanceParameters.html#distanceUnit)
  43290. */
  43291. distanceUnit: "feet" | "kilometers" | "meters" | "miles" | "nautical-miles" | "yards";
  43292. /**
  43293. * When `true`, the geodesic distance between [geometry1](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DistanceParameters.html#geometry1) and [geometry2](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DistanceParameters.html#geometry2) is measured.
  43294. *
  43295. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DistanceParameters.html#geodesic)
  43296. */
  43297. geodesic: boolean;
  43298. /**
  43299. * The geometry from which the distance is to be measured.
  43300. *
  43301. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DistanceParameters.html#geometry1)
  43302. */
  43303. geometry1: Geometry;
  43304. /**
  43305. * The geometry to which the distance is to be measured.
  43306. *
  43307. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DistanceParameters.html#geometry2)
  43308. */
  43309. geometry2: Geometry;
  43310. /**
  43311. * Defines the input parameters when calling [geometryService.distance()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#distance).
  43312. *
  43313. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DistanceParameters.html)
  43314. */
  43315. constructor(properties?: DistanceParametersProperties);
  43316. /**
  43317. * Converts an instance of this class to its ArcGIS portal JSON representation.
  43318. *
  43319. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DistanceParameters.html#toJSON)
  43320. */
  43321. toJSON(): any;
  43322. }
  43323. /** @deprecated Import the DistanceParameters class instead. */
  43324. export type DistanceParametersConstructor = typeof DistanceParameters;
  43325. interface DistanceParametersProperties {
  43326. /**
  43327. * Specifies the units for measuring distance between [geometry1](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DistanceParameters.html#geometry1) and [geometry2](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DistanceParameters.html#geometry2).
  43328. *
  43329. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DistanceParameters.html#distanceUnit)
  43330. */
  43331. distanceUnit?: "feet" | "kilometers" | "meters" | "miles" | "nautical-miles" | "yards";
  43332. /**
  43333. * When `true`, the geodesic distance between [geometry1](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DistanceParameters.html#geometry1) and [geometry2](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DistanceParameters.html#geometry2) is measured.
  43334. *
  43335. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DistanceParameters.html#geodesic)
  43336. */
  43337. geodesic?: boolean;
  43338. /**
  43339. * The geometry from which the distance is to be measured.
  43340. *
  43341. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DistanceParameters.html#geometry1)
  43342. */
  43343. geometry1?: GeometryProperties;
  43344. /**
  43345. * The geometry to which the distance is to be measured.
  43346. *
  43347. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-DistanceParameters.html#geometry2)
  43348. */
  43349. geometry2?: GeometryProperties;
  43350. }
  43351. export interface FeatureSet extends Accessor, JSONSupport {
  43352. }
  43353. export class FeatureSet {
  43354. /**
  43355. * The name of the layer's primary display field.
  43356. *
  43357. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html#displayFieldName)
  43358. */
  43359. displayFieldName: string;
  43360. /**
  43361. * Typically, a layer has a limit on the number of features (i.e., records) returned by the query operation.
  43362. *
  43363. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html#exceededTransferLimit)
  43364. */
  43365. exceededTransferLimit: boolean;
  43366. /**
  43367. * The array of graphics returned from a task.
  43368. *
  43369. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html#features)
  43370. */
  43371. features: Graphic[];
  43372. /**
  43373. * Information about each field.
  43374. *
  43375. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html#fields)
  43376. */
  43377. fields: Field[];
  43378. /**
  43379. * The geometry type of features in the FeatureSet.
  43380. *
  43381. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html#geometryType)
  43382. */
  43383. geometryType: "point" | "multipoint" | "polyline" | "polygon" | "extent" | "mesh";
  43384. /**
  43385. * The [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#geometry) used to query the features.
  43386. *
  43387. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html#queryGeometry)
  43388. */
  43389. queryGeometry: Geometry;
  43390. /**
  43391. * When a FeatureSet is used as input to Geoprocessor, the spatial reference is set to the map's spatial reference by default.
  43392. *
  43393. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html#spatialReference)
  43394. */
  43395. spatialReference: SpatialReference;
  43396. /**
  43397. * A collection of features returned from ArcGIS Server or used as input to methods.
  43398. *
  43399. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html)
  43400. */
  43401. constructor(properties?: FeatureSetProperties);
  43402. static fromJSON(json: any): FeatureSet;
  43403. }
  43404. /** @deprecated Import the FeatureSet class instead. */
  43405. export type FeatureSetConstructor = typeof FeatureSet;
  43406. interface FeatureSetProperties {
  43407. /**
  43408. * The name of the layer's primary display field.
  43409. *
  43410. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html#displayFieldName)
  43411. */
  43412. displayFieldName?: string;
  43413. /**
  43414. * Typically, a layer has a limit on the number of features (i.e., records) returned by the query operation.
  43415. *
  43416. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html#exceededTransferLimit)
  43417. */
  43418. exceededTransferLimit?: boolean;
  43419. /**
  43420. * The array of graphics returned from a task.
  43421. *
  43422. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html#features)
  43423. */
  43424. features?: GraphicProperties[];
  43425. /**
  43426. * Information about each field.
  43427. *
  43428. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html#fields)
  43429. */
  43430. fields?: FieldProperties[];
  43431. /**
  43432. * The geometry type of features in the FeatureSet.
  43433. *
  43434. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html#geometryType)
  43435. */
  43436. geometryType?: "point" | "multipoint" | "polyline" | "polygon" | "extent" | "mesh";
  43437. /**
  43438. * The [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#geometry) used to query the features.
  43439. *
  43440. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html#queryGeometry)
  43441. */
  43442. queryGeometry?: GeometryProperties;
  43443. /**
  43444. * When a FeatureSet is used as input to Geoprocessor, the spatial reference is set to the map's spatial reference by default.
  43445. *
  43446. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html#spatialReference)
  43447. */
  43448. spatialReference?: SpatialReferenceProperties;
  43449. }
  43450. export interface FindParameters extends Accessor, JSONSupport {
  43451. }
  43452. export class FindParameters {
  43453. /**
  43454. * Determines whether to look for an exact match of the search text or not.
  43455. *
  43456. * @default true
  43457. *
  43458. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindParameters.html#contains)
  43459. */
  43460. contains: boolean;
  43461. /**
  43462. * Specify the geodatabase version to search.
  43463. *
  43464. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindParameters.html#gdbVersion)
  43465. */
  43466. gdbVersion: string;
  43467. /**
  43468. * Specify the number of decimal places for the geometries returned by the task.
  43469. *
  43470. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindParameters.html#geometryPrecision)
  43471. */
  43472. geometryPrecision: number;
  43473. /**
  43474. * The layers to perform the find operation on.
  43475. *
  43476. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindParameters.html#layerIds)
  43477. */
  43478. layerIds: number[];
  43479. /**
  43480. * The maximum allowable offset used for generalizing geometries returned by the find operation.
  43481. *
  43482. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindParameters.html#maxAllowableOffset)
  43483. */
  43484. maxAllowableOffset: number;
  43485. /**
  43486. * The spatial reference of the output geometries.
  43487. *
  43488. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindParameters.html#outSpatialReference)
  43489. */
  43490. outSpatialReference: SpatialReference;
  43491. /**
  43492. * If `true`, the output will include the geometry associated with each result.
  43493. *
  43494. * @default false
  43495. *
  43496. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindParameters.html#returnGeometry)
  43497. */
  43498. returnGeometry: boolean;
  43499. /**
  43500. * The names of the fields of a layer to search.
  43501. *
  43502. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindParameters.html#searchFields)
  43503. */
  43504. searchFields: string[];
  43505. /**
  43506. * The text that is searched across the layers and the fields as specified in the `layers` and [searchFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindParameters.html#searchFields) properties.
  43507. *
  43508. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindParameters.html#searchText)
  43509. */
  43510. searchText: string;
  43511. /**
  43512. * Input parameters for [find](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-find.html).
  43513. *
  43514. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindParameters.html)
  43515. */
  43516. constructor(properties?: FindParametersProperties);
  43517. static fromJSON(json: any): FindParameters;
  43518. }
  43519. /** @deprecated Import the FindParameters class instead. */
  43520. export type FindParametersConstructor = typeof FindParameters;
  43521. interface FindParametersProperties {
  43522. /**
  43523. * Determines whether to look for an exact match of the search text or not.
  43524. *
  43525. * @default true
  43526. *
  43527. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindParameters.html#contains)
  43528. */
  43529. contains?: boolean;
  43530. /**
  43531. * Specify the geodatabase version to search.
  43532. *
  43533. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindParameters.html#gdbVersion)
  43534. */
  43535. gdbVersion?: string;
  43536. /**
  43537. * Specify the number of decimal places for the geometries returned by the task.
  43538. *
  43539. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindParameters.html#geometryPrecision)
  43540. */
  43541. geometryPrecision?: number;
  43542. /**
  43543. * The layers to perform the find operation on.
  43544. *
  43545. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindParameters.html#layerIds)
  43546. */
  43547. layerIds?: number[];
  43548. /**
  43549. * The maximum allowable offset used for generalizing geometries returned by the find operation.
  43550. *
  43551. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindParameters.html#maxAllowableOffset)
  43552. */
  43553. maxAllowableOffset?: number;
  43554. /**
  43555. * The spatial reference of the output geometries.
  43556. *
  43557. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindParameters.html#outSpatialReference)
  43558. */
  43559. outSpatialReference?: SpatialReferenceProperties;
  43560. /**
  43561. * If `true`, the output will include the geometry associated with each result.
  43562. *
  43563. * @default false
  43564. *
  43565. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindParameters.html#returnGeometry)
  43566. */
  43567. returnGeometry?: boolean;
  43568. /**
  43569. * The names of the fields of a layer to search.
  43570. *
  43571. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindParameters.html#searchFields)
  43572. */
  43573. searchFields?: string[];
  43574. /**
  43575. * The text that is searched across the layers and the fields as specified in the `layers` and [searchFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindParameters.html#searchFields) properties.
  43576. *
  43577. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindParameters.html#searchText)
  43578. */
  43579. searchText?: string;
  43580. }
  43581. export interface FindResult extends Accessor, JSONSupport {
  43582. }
  43583. export class FindResult {
  43584. /**
  43585. * The name of the layer's primary display field.
  43586. *
  43587. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindResult.html#displayFieldName)
  43588. */
  43589. displayFieldName: string;
  43590. /**
  43591. * The found feature.
  43592. *
  43593. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindResult.html#feature)
  43594. */
  43595. feature: Graphic;
  43596. /**
  43597. * The name of the field that contains the search text.
  43598. *
  43599. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindResult.html#foundFieldName)
  43600. */
  43601. foundFieldName: string;
  43602. /**
  43603. * Unique ID of the layer that contains the feature.
  43604. *
  43605. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindResult.html#layerId)
  43606. */
  43607. layerId: number;
  43608. /**
  43609. * The layer name that contains the feature.
  43610. *
  43611. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindResult.html#layerName)
  43612. */
  43613. layerName: string;
  43614. /**
  43615. * The value of the `foundFieldName` in the feature's attributes.
  43616. *
  43617. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindResult.html#value)
  43618. */
  43619. value: string;
  43620. /**
  43621. * The result from [find](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-find.html).
  43622. *
  43623. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindResult.html)
  43624. */
  43625. constructor(properties?: FindResultProperties);
  43626. static fromJSON(json: any): FindResult;
  43627. }
  43628. /** @deprecated Import the FindResult class instead. */
  43629. export type FindResultConstructor = typeof FindResult;
  43630. interface FindResultProperties {
  43631. /**
  43632. * The name of the layer's primary display field.
  43633. *
  43634. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindResult.html#displayFieldName)
  43635. */
  43636. displayFieldName?: string;
  43637. /**
  43638. * The found feature.
  43639. *
  43640. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindResult.html#feature)
  43641. */
  43642. feature?: GraphicProperties;
  43643. /**
  43644. * The name of the field that contains the search text.
  43645. *
  43646. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindResult.html#foundFieldName)
  43647. */
  43648. foundFieldName?: string;
  43649. /**
  43650. * Unique ID of the layer that contains the feature.
  43651. *
  43652. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindResult.html#layerId)
  43653. */
  43654. layerId?: number;
  43655. /**
  43656. * The layer name that contains the feature.
  43657. *
  43658. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindResult.html#layerName)
  43659. */
  43660. layerName?: string;
  43661. /**
  43662. * The value of the `foundFieldName` in the feature's attributes.
  43663. *
  43664. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FindResult.html#value)
  43665. */
  43666. value?: string;
  43667. }
  43668. export interface GeneralizeParameters extends Accessor, JSONSupport {
  43669. }
  43670. export class GeneralizeParameters {
  43671. /**
  43672. * The maximum deviation unit.
  43673. *
  43674. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-GeneralizeParameters.html#deviationUnit)
  43675. */
  43676. deviationUnit: "feet" | "kilometers" | "meters" | "miles" | "nautical-miles" | "yards";
  43677. /**
  43678. * The array of input geometries to generalize.
  43679. *
  43680. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-GeneralizeParameters.html#geometries)
  43681. */
  43682. geometries: Geometry[];
  43683. /**
  43684. * The maximum deviation for constructing a generalized geometry based on the input geometries.
  43685. *
  43686. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-GeneralizeParameters.html#maxDeviation)
  43687. */
  43688. maxDeviation: number;
  43689. /**
  43690. * Sets the geometries, maximum deviation and units for the [generalize](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#generalize) operation.
  43691. *
  43692. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-GeneralizeParameters.html)
  43693. */
  43694. constructor(properties?: GeneralizeParametersProperties);
  43695. static fromJSON(json: any): GeneralizeParameters;
  43696. }
  43697. /** @deprecated Import the GeneralizeParameters class instead. */
  43698. export type GeneralizeParametersConstructor = typeof GeneralizeParameters;
  43699. interface GeneralizeParametersProperties {
  43700. /**
  43701. * The maximum deviation unit.
  43702. *
  43703. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-GeneralizeParameters.html#deviationUnit)
  43704. */
  43705. deviationUnit?: "feet" | "kilometers" | "meters" | "miles" | "nautical-miles" | "yards";
  43706. /**
  43707. * The array of input geometries to generalize.
  43708. *
  43709. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-GeneralizeParameters.html#geometries)
  43710. */
  43711. geometries?: GeometryProperties[];
  43712. /**
  43713. * The maximum deviation for constructing a generalized geometry based on the input geometries.
  43714. *
  43715. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-GeneralizeParameters.html#maxDeviation)
  43716. */
  43717. maxDeviation?: number;
  43718. }
  43719. export interface GPMessage extends Accessor, JSONSupport {
  43720. }
  43721. export class GPMessage {
  43722. /**
  43723. * The geoprocessing message.
  43724. *
  43725. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-GPMessage.html#description)
  43726. */
  43727. description: string;
  43728. /**
  43729. * The geoprocessing message type.
  43730. *
  43731. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-GPMessage.html#type)
  43732. */
  43733. type: | "informative"
  43734. | "process-definition"
  43735. | "process-start"
  43736. | "process-stop"
  43737. | "warning"
  43738. | "error"
  43739. | "empty"
  43740. | "abort";
  43741. /**
  43742. * Represents a message generated during the execution of a module:esri/rest/Geoprocessor method.
  43743. *
  43744. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-GPMessage.html)
  43745. */
  43746. constructor(properties?: GPMessageProperties);
  43747. static fromJSON(json: any): GPMessage;
  43748. }
  43749. /** @deprecated Import the GPMessage class instead. */
  43750. export type GPMessageConstructor = typeof GPMessage;
  43751. interface GPMessageProperties {
  43752. /**
  43753. * The geoprocessing message.
  43754. *
  43755. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-GPMessage.html#description)
  43756. */
  43757. description?: string;
  43758. /**
  43759. * The geoprocessing message type.
  43760. *
  43761. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-GPMessage.html#type)
  43762. */
  43763. type?: | "informative"
  43764. | "process-definition"
  43765. | "process-start"
  43766. | "process-stop"
  43767. | "warning"
  43768. | "error"
  43769. | "empty"
  43770. | "abort";
  43771. }
  43772. export interface IdentifyParameters extends Accessor, JSONSupport {
  43773. }
  43774. export class IdentifyParameters {
  43775. /**
  43776. * Resolution of the current map view in dots per inch.
  43777. *
  43778. * @default 96
  43779. *
  43780. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#dpi)
  43781. */
  43782. dpi: number;
  43783. /**
  43784. * Specify the geodatabase version to search.
  43785. *
  43786. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#gdbVersion)
  43787. */
  43788. gdbVersion: string;
  43789. /**
  43790. * The geometry used to select features during the Identify operation.
  43791. *
  43792. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#geometry)
  43793. */
  43794. geometry: Geometry;
  43795. /**
  43796. * Specify the number of decimal places for the geometries returned by the task.
  43797. *
  43798. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#geometryPrecision)
  43799. */
  43800. geometryPrecision: number;
  43801. /**
  43802. * Height of the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html) in pixels.
  43803. *
  43804. * @default 400
  43805. *
  43806. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#height)
  43807. */
  43808. height: number;
  43809. /**
  43810. * The layers on which to perform the identify operation.
  43811. *
  43812. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#layerIds)
  43813. */
  43814. layerIds: number[];
  43815. /**
  43816. * Specifies which layers to use when using Identify.
  43817. *
  43818. * @default top
  43819. *
  43820. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#layerOption)
  43821. */
  43822. layerOption: "top" | "visible" | "all" | "popup";
  43823. /**
  43824. * The Extent or bounding box of the current map view.
  43825. *
  43826. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#mapExtent)
  43827. */
  43828. mapExtent: Extent;
  43829. /**
  43830. * The maximum allowable offset used for generalizing geometries returned by the identify operation.
  43831. *
  43832. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#maxAllowableOffset)
  43833. */
  43834. maxAllowableOffset: number;
  43835. /**
  43836. * If `true`, field names will be returned instead of field aliases.
  43837. *
  43838. * @default true
  43839. *
  43840. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#returnFieldName)
  43841. */
  43842. returnFieldName: boolean;
  43843. /**
  43844. * If `true`, the result set includes the geometry associated with each result.
  43845. *
  43846. * @default false
  43847. *
  43848. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#returnGeometry)
  43849. */
  43850. returnGeometry: boolean;
  43851. /**
  43852. * When `true`, indicates that M values will be returned.
  43853. *
  43854. * @default false
  43855. *
  43856. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#returnM)
  43857. */
  43858. returnM: boolean;
  43859. /**
  43860. * If `true`, the values in the result will not be formatted i.e.
  43861. *
  43862. * @default true
  43863. *
  43864. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#returnUnformattedValues)
  43865. */
  43866. returnUnformattedValues: boolean;
  43867. /**
  43868. * When `true`, indicates that z-values will be returned.
  43869. *
  43870. * @default false
  43871. *
  43872. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#returnZ)
  43873. */
  43874. returnZ: boolean;
  43875. /**
  43876. * The spatial reference of the input and output geometries as well as of the [mapExtent](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#mapExtent).
  43877. *
  43878. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#spatialReference)
  43879. */
  43880. spatialReference: SpatialReference;
  43881. /**
  43882. * An [Collection](esri-core-Collection.html) of [Sublayer](esri-layers-support-Sublayer.html) objects used to change the layer ordering and/or rendering, or redefine the map.
  43883. *
  43884. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#sublayers)
  43885. */
  43886. sublayers: Sublayer[];
  43887. /**
  43888. * Specify the time extent used by identify.
  43889. *
  43890. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#timeExtent)
  43891. */
  43892. timeExtent: TimeExtent;
  43893. /**
  43894. * The distance in screen pixels from the specified geometry within which the identify should be performed.
  43895. *
  43896. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#tolerance)
  43897. */
  43898. tolerance: number;
  43899. /**
  43900. * Width of the current map view in pixels.
  43901. *
  43902. * @default 400
  43903. *
  43904. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#width)
  43905. */
  43906. width: number;
  43907. /**
  43908. * Input parameters for the [identify](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-identify.html).
  43909. *
  43910. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html)
  43911. */
  43912. constructor(properties?: IdentifyParametersProperties);
  43913. static fromJSON(json: any): IdentifyParameters;
  43914. }
  43915. /** @deprecated Import the IdentifyParameters class instead. */
  43916. export type IdentifyParametersConstructor = typeof IdentifyParameters;
  43917. interface IdentifyParametersProperties {
  43918. /**
  43919. * Resolution of the current map view in dots per inch.
  43920. *
  43921. * @default 96
  43922. *
  43923. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#dpi)
  43924. */
  43925. dpi?: number;
  43926. /**
  43927. * Specify the geodatabase version to search.
  43928. *
  43929. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#gdbVersion)
  43930. */
  43931. gdbVersion?: string;
  43932. /**
  43933. * The geometry used to select features during the Identify operation.
  43934. *
  43935. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#geometry)
  43936. */
  43937. geometry?: GeometryProperties;
  43938. /**
  43939. * Specify the number of decimal places for the geometries returned by the task.
  43940. *
  43941. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#geometryPrecision)
  43942. */
  43943. geometryPrecision?: number;
  43944. /**
  43945. * Height of the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html) in pixels.
  43946. *
  43947. * @default 400
  43948. *
  43949. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#height)
  43950. */
  43951. height?: number;
  43952. /**
  43953. * The layers on which to perform the identify operation.
  43954. *
  43955. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#layerIds)
  43956. */
  43957. layerIds?: number[];
  43958. /**
  43959. * Specifies which layers to use when using Identify.
  43960. *
  43961. * @default top
  43962. *
  43963. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#layerOption)
  43964. */
  43965. layerOption?: "top" | "visible" | "all" | "popup";
  43966. /**
  43967. * The Extent or bounding box of the current map view.
  43968. *
  43969. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#mapExtent)
  43970. */
  43971. mapExtent?: ExtentProperties;
  43972. /**
  43973. * The maximum allowable offset used for generalizing geometries returned by the identify operation.
  43974. *
  43975. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#maxAllowableOffset)
  43976. */
  43977. maxAllowableOffset?: number;
  43978. /**
  43979. * If `true`, field names will be returned instead of field aliases.
  43980. *
  43981. * @default true
  43982. *
  43983. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#returnFieldName)
  43984. */
  43985. returnFieldName?: boolean;
  43986. /**
  43987. * If `true`, the result set includes the geometry associated with each result.
  43988. *
  43989. * @default false
  43990. *
  43991. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#returnGeometry)
  43992. */
  43993. returnGeometry?: boolean;
  43994. /**
  43995. * When `true`, indicates that M values will be returned.
  43996. *
  43997. * @default false
  43998. *
  43999. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#returnM)
  44000. */
  44001. returnM?: boolean;
  44002. /**
  44003. * If `true`, the values in the result will not be formatted i.e.
  44004. *
  44005. * @default true
  44006. *
  44007. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#returnUnformattedValues)
  44008. */
  44009. returnUnformattedValues?: boolean;
  44010. /**
  44011. * When `true`, indicates that z-values will be returned.
  44012. *
  44013. * @default false
  44014. *
  44015. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#returnZ)
  44016. */
  44017. returnZ?: boolean;
  44018. /**
  44019. * The spatial reference of the input and output geometries as well as of the [mapExtent](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#mapExtent).
  44020. *
  44021. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#spatialReference)
  44022. */
  44023. spatialReference?: SpatialReferenceProperties;
  44024. /**
  44025. * An [Collection](esri-core-Collection.html) of [Sublayer](esri-layers-support-Sublayer.html) objects used to change the layer ordering and/or rendering, or redefine the map.
  44026. *
  44027. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#sublayers)
  44028. */
  44029. sublayers?: SublayerProperties[];
  44030. /**
  44031. * Specify the time extent used by identify.
  44032. *
  44033. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#timeExtent)
  44034. */
  44035. timeExtent?: TimeExtentProperties;
  44036. /**
  44037. * The distance in screen pixels from the specified geometry within which the identify should be performed.
  44038. *
  44039. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#tolerance)
  44040. */
  44041. tolerance?: number;
  44042. /**
  44043. * Width of the current map view in pixels.
  44044. *
  44045. * @default 400
  44046. *
  44047. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyParameters.html#width)
  44048. */
  44049. width?: number;
  44050. }
  44051. export interface IdentifyResult extends Accessor, JSONSupport {
  44052. }
  44053. export class IdentifyResult {
  44054. /**
  44055. * The name of the layer's primary display field.
  44056. *
  44057. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyResult.html#displayFieldName)
  44058. */
  44059. displayFieldName: string;
  44060. /**
  44061. * An identified feature from the map service.
  44062. *
  44063. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyResult.html#feature)
  44064. */
  44065. feature: Graphic;
  44066. /**
  44067. * Unique ID of the layer that contains the feature.
  44068. *
  44069. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyResult.html#layerId)
  44070. */
  44071. layerId: number;
  44072. /**
  44073. * The layer name that contains the feature.
  44074. *
  44075. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyResult.html#layerName)
  44076. */
  44077. layerName: string;
  44078. /**
  44079. * The result from [identify](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-identify.html).
  44080. *
  44081. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyResult.html)
  44082. */
  44083. constructor(properties?: IdentifyResultProperties);
  44084. static fromJSON(json: any): IdentifyResult;
  44085. }
  44086. /** @deprecated Import the IdentifyResult class instead. */
  44087. export type IdentifyResultConstructor = typeof IdentifyResult;
  44088. interface IdentifyResultProperties {
  44089. /**
  44090. * The name of the layer's primary display field.
  44091. *
  44092. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyResult.html#displayFieldName)
  44093. */
  44094. displayFieldName?: string;
  44095. /**
  44096. * An identified feature from the map service.
  44097. *
  44098. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyResult.html#feature)
  44099. */
  44100. feature?: GraphicProperties;
  44101. /**
  44102. * Unique ID of the layer that contains the feature.
  44103. *
  44104. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyResult.html#layerId)
  44105. */
  44106. layerId?: number;
  44107. /**
  44108. * The layer name that contains the feature.
  44109. *
  44110. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-IdentifyResult.html#layerName)
  44111. */
  44112. layerName?: string;
  44113. }
  44114. export interface ImageAngleParameters extends Accessor, JSONSupport {
  44115. }
  44116. export class ImageAngleParameters {
  44117. /**
  44118. * Angle names to be computed.
  44119. *
  44120. * @default ["north","up"]
  44121. *
  44122. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageAngleParameters.html#angleNames)
  44123. */
  44124. angleNames: string[];
  44125. /**
  44126. * A [point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) geometry that defines the reference point of rotation to compute the angle direction.
  44127. *
  44128. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageAngleParameters.html#point)
  44129. */
  44130. point: Point;
  44131. /**
  44132. * The rasterId of a raster catalog in the image service.
  44133. *
  44134. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageAngleParameters.html#rasterId)
  44135. */
  44136. rasterId: number;
  44137. /**
  44138. * The spatial reference used to compute the angles.
  44139. *
  44140. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageAngleParameters.html#spatialReference)
  44141. */
  44142. spatialReference: SpatialReference;
  44143. /**
  44144. * Input parameters for [ImageryLayer.computeAngles()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#computeAngles) or [imageService.computeAngles()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-imageService.html#computeAngles) methods.
  44145. *
  44146. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageAngleParameters.html)
  44147. */
  44148. constructor(properties?: ImageAngleParametersProperties);
  44149. static fromJSON(json: any): ImageAngleParameters;
  44150. }
  44151. /** @deprecated Import the ImageAngleParameters class instead. */
  44152. export type ImageAngleParametersConstructor = typeof ImageAngleParameters;
  44153. interface ImageAngleParametersProperties {
  44154. /**
  44155. * Angle names to be computed.
  44156. *
  44157. * @default ["north","up"]
  44158. *
  44159. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageAngleParameters.html#angleNames)
  44160. */
  44161. angleNames?: string[];
  44162. /**
  44163. * A [point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) geometry that defines the reference point of rotation to compute the angle direction.
  44164. *
  44165. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageAngleParameters.html#point)
  44166. */
  44167. point?: PointProperties;
  44168. /**
  44169. * The rasterId of a raster catalog in the image service.
  44170. *
  44171. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageAngleParameters.html#rasterId)
  44172. */
  44173. rasterId?: number;
  44174. /**
  44175. * The spatial reference used to compute the angles.
  44176. *
  44177. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageAngleParameters.html#spatialReference)
  44178. */
  44179. spatialReference?: SpatialReferenceProperties;
  44180. }
  44181. export interface ImageAngleResult extends Accessor, JSONSupport {
  44182. }
  44183. export class ImageAngleResult {
  44184. /**
  44185. * The computed north angle after rotating the map so the top of the image is oriented toward north.
  44186. *
  44187. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageAngleResult.html#north)
  44188. */
  44189. north: number;
  44190. /**
  44191. * The spatial reference used to compute the angles.
  44192. *
  44193. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageAngleResult.html#spatialReference)
  44194. */
  44195. spatialReference: SpatialReference;
  44196. /**
  44197. * The computed up angle after rotating the map so the top of the image is always oriented to the direction of the sensor when it acquired the image.
  44198. *
  44199. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageAngleResult.html#up)
  44200. */
  44201. up: number;
  44202. /**
  44203. * The results from [imageService.computeAngles()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-imageService.html#computeAngles) or [ImageryLayer.computeAngles()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#computeAngles) method.
  44204. *
  44205. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageAngleResult.html)
  44206. */
  44207. constructor(properties?: ImageAngleResultProperties);
  44208. static fromJSON(json: any): ImageAngleResult;
  44209. }
  44210. /** @deprecated Import the ImageAngleResult class instead. */
  44211. export type ImageAngleResultConstructor = typeof ImageAngleResult;
  44212. interface ImageAngleResultProperties {
  44213. /**
  44214. * The computed north angle after rotating the map so the top of the image is oriented toward north.
  44215. *
  44216. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageAngleResult.html#north)
  44217. */
  44218. north?: number;
  44219. /**
  44220. * The spatial reference used to compute the angles.
  44221. *
  44222. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageAngleResult.html#spatialReference)
  44223. */
  44224. spatialReference?: SpatialReferenceProperties;
  44225. /**
  44226. * The computed up angle after rotating the map so the top of the image is always oriented to the direction of the sensor when it acquired the image.
  44227. *
  44228. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageAngleResult.html#up)
  44229. */
  44230. up?: number;
  44231. }
  44232. export interface ImageHistogramParameters extends Accessor, JSONSupport {
  44233. }
  44234. export class ImageHistogramParameters {
  44235. /**
  44236. * Input geometry that defines the area of interest for which the histograms and statistics will be computed.
  44237. *
  44238. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageHistogramParameters.html#geometry)
  44239. */
  44240. geometry: Extent | Polygon;
  44241. /**
  44242. * Specifies the [mosaic rule](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html) on how individual images should be mosaicked when the histogram is computed.
  44243. *
  44244. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageHistogramParameters.html#mosaicRule)
  44245. */
  44246. mosaicRule: MosaicRule;
  44247. /**
  44248. * Specifies the pixel size (or the resolution).
  44249. *
  44250. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageHistogramParameters.html#pixelSize)
  44251. */
  44252. pixelSize: PixelSize;
  44253. /**
  44254. * Specifies the [rendering rule](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterFunction.html) from which to compute the statistics and histogram.
  44255. *
  44256. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageHistogramParameters.html#renderingRule)
  44257. */
  44258. renderingRule: RasterFunction;
  44259. /**
  44260. * The [time extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeExtent.html) for which to compute the statistics and histogram.
  44261. *
  44262. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageHistogramParameters.html#timeExtent)
  44263. */
  44264. timeExtent: TimeExtent;
  44265. /**
  44266. * Input parameters for the [computeHistograms](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#computeHistograms) or [computeStatisticsHistograms](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#computeStatisticsHistograms) method on [ImageryLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html).
  44267. *
  44268. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageHistogramParameters.html)
  44269. */
  44270. constructor(properties?: ImageHistogramParametersProperties);
  44271. static fromJSON(json: any): ImageHistogramParameters;
  44272. }
  44273. /** @deprecated Import the ImageHistogramParameters class instead. */
  44274. export type ImageHistogramParametersConstructor = typeof ImageHistogramParameters;
  44275. interface ImageHistogramParametersProperties {
  44276. /**
  44277. * Input geometry that defines the area of interest for which the histograms and statistics will be computed.
  44278. *
  44279. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageHistogramParameters.html#geometry)
  44280. */
  44281. geometry?: (ExtentProperties & { type: "extent" }) | (PolygonProperties & { type: "polygon" });
  44282. /**
  44283. * Specifies the [mosaic rule](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html) on how individual images should be mosaicked when the histogram is computed.
  44284. *
  44285. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageHistogramParameters.html#mosaicRule)
  44286. */
  44287. mosaicRule?: MosaicRuleProperties;
  44288. /**
  44289. * Specifies the pixel size (or the resolution).
  44290. *
  44291. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageHistogramParameters.html#pixelSize)
  44292. */
  44293. pixelSize?: PixelSize;
  44294. /**
  44295. * Specifies the [rendering rule](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RasterFunction.html) from which to compute the statistics and histogram.
  44296. *
  44297. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageHistogramParameters.html#renderingRule)
  44298. */
  44299. renderingRule?: RasterFunctionProperties;
  44300. /**
  44301. * The [time extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeExtent.html) for which to compute the statistics and histogram.
  44302. *
  44303. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageHistogramParameters.html#timeExtent)
  44304. */
  44305. timeExtent?: TimeExtentProperties;
  44306. }
  44307. export interface ImageIdentifyParameters extends Accessor, JSONSupport {
  44308. }
  44309. export class ImageIdentifyParameters {
  44310. /**
  44311. * Input geometry that defines the location to be identified.
  44312. *
  44313. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#geometry)
  44314. */
  44315. geometry: Point | Polygon;
  44316. /**
  44317. * Controls the maximum number of returned catalog items, set to 1 to return the top most raster only.
  44318. *
  44319. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#maxItemCount)
  44320. */
  44321. maxItemCount: number;
  44322. /**
  44323. * Specifies the mosaic rules defining the image sorting order.
  44324. *
  44325. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#mosaicRule)
  44326. */
  44327. mosaicRule: MosaicRule;
  44328. /**
  44329. * Specifies the pixel level being identified on the x and y axis.
  44330. *
  44331. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#pixelSize)
  44332. */
  44333. pixelSize: PixelSize;
  44334. /**
  44335. * When `true`, the request is processed for all variables and dimensions.
  44336. *
  44337. * @default false
  44338. *
  44339. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#processAsMultidimensional)
  44340. */
  44341. processAsMultidimensional: boolean;
  44342. /**
  44343. * Specifies the rendering rule for how the requested image should be rendered.
  44344. *
  44345. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#renderingRule)
  44346. */
  44347. renderingRule: RasterFunction;
  44348. /**
  44349. * An array the [rendering rules](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#renderingRule) to retrieve multiple processed pixel values.
  44350. *
  44351. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#renderingRules)
  44352. */
  44353. renderingRules: RasterFunction;
  44354. /**
  44355. * If `true`, returns both geometry and attributes of the catalog items.
  44356. *
  44357. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#returnCatalogItems)
  44358. */
  44359. returnCatalogItems: boolean;
  44360. /**
  44361. * When `true`, each feature in the catalog items includes the geometry.
  44362. *
  44363. * @default false
  44364. *
  44365. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#returnGeometry)
  44366. */
  44367. returnGeometry: boolean;
  44368. /**
  44369. * If `true`, the pixel values of all raster catalog items under the requested geometry.
  44370. *
  44371. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#returnPixelValues)
  44372. */
  44373. returnPixelValues: boolean;
  44374. /**
  44375. * A time extent for a temporal data against [time-aware imagery layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#timeInfo).
  44376. *
  44377. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#timeExtent)
  44378. */
  44379. timeExtent: TimeExtent;
  44380. /**
  44381. * Input parameters for [imageService](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-imageService.html).
  44382. *
  44383. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html)
  44384. */
  44385. constructor(properties?: ImageIdentifyParametersProperties);
  44386. static fromJSON(json: any): ImageIdentifyParameters;
  44387. }
  44388. /** @deprecated Import the ImageIdentifyParameters class instead. */
  44389. export type ImageIdentifyParametersConstructor = typeof ImageIdentifyParameters;
  44390. interface ImageIdentifyParametersProperties {
  44391. /**
  44392. * Input geometry that defines the location to be identified.
  44393. *
  44394. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#geometry)
  44395. */
  44396. geometry?: (PointProperties & { type: "point" }) | (PolygonProperties & { type: "polygon" });
  44397. /**
  44398. * Controls the maximum number of returned catalog items, set to 1 to return the top most raster only.
  44399. *
  44400. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#maxItemCount)
  44401. */
  44402. maxItemCount?: number;
  44403. /**
  44404. * Specifies the mosaic rules defining the image sorting order.
  44405. *
  44406. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#mosaicRule)
  44407. */
  44408. mosaicRule?: MosaicRuleProperties;
  44409. /**
  44410. * Specifies the pixel level being identified on the x and y axis.
  44411. *
  44412. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#pixelSize)
  44413. */
  44414. pixelSize?: PixelSize;
  44415. /**
  44416. * When `true`, the request is processed for all variables and dimensions.
  44417. *
  44418. * @default false
  44419. *
  44420. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#processAsMultidimensional)
  44421. */
  44422. processAsMultidimensional?: boolean;
  44423. /**
  44424. * Specifies the rendering rule for how the requested image should be rendered.
  44425. *
  44426. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#renderingRule)
  44427. */
  44428. renderingRule?: RasterFunctionProperties;
  44429. /**
  44430. * An array the [rendering rules](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#renderingRule) to retrieve multiple processed pixel values.
  44431. *
  44432. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#renderingRules)
  44433. */
  44434. renderingRules?: RasterFunctionProperties;
  44435. /**
  44436. * If `true`, returns both geometry and attributes of the catalog items.
  44437. *
  44438. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#returnCatalogItems)
  44439. */
  44440. returnCatalogItems?: boolean;
  44441. /**
  44442. * When `true`, each feature in the catalog items includes the geometry.
  44443. *
  44444. * @default false
  44445. *
  44446. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#returnGeometry)
  44447. */
  44448. returnGeometry?: boolean;
  44449. /**
  44450. * If `true`, the pixel values of all raster catalog items under the requested geometry.
  44451. *
  44452. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#returnPixelValues)
  44453. */
  44454. returnPixelValues?: boolean;
  44455. /**
  44456. * A time extent for a temporal data against [time-aware imagery layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#timeInfo).
  44457. *
  44458. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#timeExtent)
  44459. */
  44460. timeExtent?: TimeExtentProperties;
  44461. }
  44462. /**
  44463. * Specifies the pixel size (or the resolution).
  44464. *
  44465. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#PixelSize)
  44466. */
  44467. export interface PixelSize {
  44468. /**
  44469. * Represents the size of one pixel in map units along the x axis.
  44470. *
  44471. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#PixelSize)
  44472. */
  44473. x: number;
  44474. /**
  44475. * Represents the size of one pixel in map units along the y axis.
  44476. *
  44477. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#PixelSize)
  44478. */
  44479. y: number;
  44480. /**
  44481. * Spatial reference to be used for the request.
  44482. *
  44483. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#PixelSize)
  44484. */
  44485. spatialReference?: PixelSizeSpatialReference;
  44486. }
  44487. export interface PixelSizeSpatialReference {
  44488. /**
  44489. * The wkid of the spatial reference.
  44490. *
  44491. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#PixelSize)
  44492. */
  44493. wkid?: number;
  44494. /**
  44495. * The Well known text or wkt of the spatial reference.
  44496. *
  44497. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyParameters.html#PixelSize)
  44498. */
  44499. wkt?: number;
  44500. }
  44501. export interface ImageIdentifyResult extends Accessor, JSONSupport {
  44502. }
  44503. export class ImageIdentifyResult {
  44504. /**
  44505. * The set of catalog items that overlap the input geometry.
  44506. *
  44507. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyResult.html#catalogItems)
  44508. */
  44509. catalogItems: FeatureSet;
  44510. /**
  44511. * The set of visible areas for the identified catalog items.
  44512. *
  44513. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyResult.html#catalogItemVisibilities)
  44514. */
  44515. catalogItemVisibilities: number[];
  44516. /**
  44517. * The identified location.
  44518. *
  44519. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyResult.html#location)
  44520. */
  44521. location: Point;
  44522. /**
  44523. * The identify property name.
  44524. *
  44525. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyResult.html#name)
  44526. */
  44527. name: string;
  44528. /**
  44529. * The identify property id.
  44530. *
  44531. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyResult.html#objectId)
  44532. */
  44533. objectId: number;
  44534. /**
  44535. * The attributes of the identified object.
  44536. *
  44537. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyResult.html#properties)
  44538. */
  44539. properties: any;
  44540. /**
  44541. * The identify image service pixel value.
  44542. *
  44543. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyResult.html#value)
  44544. */
  44545. value: string;
  44546. /**
  44547. * The results from [imageService](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-imageService.html).
  44548. *
  44549. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyResult.html)
  44550. */
  44551. constructor(properties?: ImageIdentifyResultProperties);
  44552. static fromJSON(json: any): ImageIdentifyResult;
  44553. }
  44554. /** @deprecated Import the ImageIdentifyResult class instead. */
  44555. export type ImageIdentifyResultConstructor = typeof ImageIdentifyResult;
  44556. interface ImageIdentifyResultProperties {
  44557. /**
  44558. * The set of catalog items that overlap the input geometry.
  44559. *
  44560. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyResult.html#catalogItems)
  44561. */
  44562. catalogItems?: FeatureSetProperties;
  44563. /**
  44564. * The set of visible areas for the identified catalog items.
  44565. *
  44566. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyResult.html#catalogItemVisibilities)
  44567. */
  44568. catalogItemVisibilities?: number[];
  44569. /**
  44570. * The identified location.
  44571. *
  44572. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyResult.html#location)
  44573. */
  44574. location?: PointProperties;
  44575. /**
  44576. * The identify property name.
  44577. *
  44578. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyResult.html#name)
  44579. */
  44580. name?: string;
  44581. /**
  44582. * The identify property id.
  44583. *
  44584. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyResult.html#objectId)
  44585. */
  44586. objectId?: number;
  44587. /**
  44588. * The attributes of the identified object.
  44589. *
  44590. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyResult.html#properties)
  44591. */
  44592. properties?: any;
  44593. /**
  44594. * The identify image service pixel value.
  44595. *
  44596. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageIdentifyResult.html#value)
  44597. */
  44598. value?: string;
  44599. }
  44600. export class supportImageParameters extends Accessor {
  44601. /**
  44602. * Dots per inch setting for [JobInfo.fetchResultMapImageLayer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-JobInfo.html#fetchResultMapImageLayer).
  44603. *
  44604. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageParameters.html#dpi)
  44605. */
  44606. dpi: number;
  44607. /**
  44608. * Extent of map to be exported.
  44609. *
  44610. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageParameters.html#extent)
  44611. */
  44612. extent: Extent;
  44613. /**
  44614. * Map image format.
  44615. *
  44616. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageParameters.html#format)
  44617. */
  44618. format: "png" | "png8" | "png24" | "png32" | "jpg" | "pdf" | "bmp" | "gif" | "svg";
  44619. /**
  44620. * Requested image height in pixels.
  44621. *
  44622. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageParameters.html#height)
  44623. */
  44624. height: number;
  44625. /**
  44626. * Spatial reference of exported image.
  44627. *
  44628. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageParameters.html#imageSpatialReference)
  44629. */
  44630. imageSpatialReference: SpatialReference;
  44631. /**
  44632. * Array of layer definition expressions that allows you to filter the features of individual layers in the exported map image.
  44633. *
  44634. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageParameters.html#layerDefinitions)
  44635. */
  44636. layerDefinitions: string[];
  44637. /**
  44638. * A list of layer IDs, that represent which layers to include in the exported map.
  44639. *
  44640. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageParameters.html#layerIds)
  44641. */
  44642. layerIds: number[];
  44643. /**
  44644. * This property determines how the layers specified by [layerIds](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageParameters.html#layerIds) are treated.
  44645. *
  44646. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageParameters.html#layerOption)
  44647. */
  44648. layerOption: "show" | "hide" | "include" | "exclude";
  44649. /**
  44650. * Indicates whether or not the background of the dynamic image is transparent.
  44651. *
  44652. * @default true
  44653. *
  44654. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageParameters.html#transparent)
  44655. */
  44656. transparent: boolean;
  44657. /**
  44658. * Requested image width in pixels.
  44659. *
  44660. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageParameters.html#width)
  44661. */
  44662. width: number;
  44663. /**
  44664. * Represents the image parameter options used when calling [JobInfo.fetchResultImage()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-JobInfo.html#fetchResultImage) and [JobInfo.fetchResultMapImageLayer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-JobInfo.html#fetchResultMapImageLayer).
  44665. *
  44666. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageParameters.html)
  44667. */
  44668. constructor(properties?: supportImageParametersProperties);
  44669. /**
  44670. * Converts an instance of this class to its ArcGIS portal JSON representation.
  44671. *
  44672. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageParameters.html#toJSON)
  44673. */
  44674. toJSON(): any;
  44675. }
  44676. /** @deprecated Import the supportImageParameters class instead. */
  44677. export type supportImageParametersConstructor = typeof supportImageParameters;
  44678. interface supportImageParametersProperties {
  44679. /**
  44680. * Dots per inch setting for [JobInfo.fetchResultMapImageLayer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-JobInfo.html#fetchResultMapImageLayer).
  44681. *
  44682. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageParameters.html#dpi)
  44683. */
  44684. dpi?: number;
  44685. /**
  44686. * Extent of map to be exported.
  44687. *
  44688. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageParameters.html#extent)
  44689. */
  44690. extent?: ExtentProperties;
  44691. /**
  44692. * Map image format.
  44693. *
  44694. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageParameters.html#format)
  44695. */
  44696. format?: "png" | "png8" | "png24" | "png32" | "jpg" | "pdf" | "bmp" | "gif" | "svg";
  44697. /**
  44698. * Requested image height in pixels.
  44699. *
  44700. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageParameters.html#height)
  44701. */
  44702. height?: number;
  44703. /**
  44704. * Spatial reference of exported image.
  44705. *
  44706. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageParameters.html#imageSpatialReference)
  44707. */
  44708. imageSpatialReference?: SpatialReferenceProperties;
  44709. /**
  44710. * Array of layer definition expressions that allows you to filter the features of individual layers in the exported map image.
  44711. *
  44712. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageParameters.html#layerDefinitions)
  44713. */
  44714. layerDefinitions?: string[];
  44715. /**
  44716. * A list of layer IDs, that represent which layers to include in the exported map.
  44717. *
  44718. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageParameters.html#layerIds)
  44719. */
  44720. layerIds?: number[];
  44721. /**
  44722. * This property determines how the layers specified by [layerIds](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageParameters.html#layerIds) are treated.
  44723. *
  44724. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageParameters.html#layerOption)
  44725. */
  44726. layerOption?: "show" | "hide" | "include" | "exclude";
  44727. /**
  44728. * Indicates whether or not the background of the dynamic image is transparent.
  44729. *
  44730. * @default true
  44731. *
  44732. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageParameters.html#transparent)
  44733. */
  44734. transparent?: boolean;
  44735. /**
  44736. * Requested image width in pixels.
  44737. *
  44738. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageParameters.html#width)
  44739. */
  44740. width?: number;
  44741. }
  44742. export interface ImagePixelLocationParameters extends Accessor, JSONSupport {
  44743. }
  44744. export class ImagePixelLocationParameters {
  44745. /**
  44746. * An array of [points](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) that defines pixel locations.
  44747. *
  44748. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImagePixelLocationParameters.html#point)
  44749. */
  44750. point: Point[];
  44751. /**
  44752. * The rasterId of a raster catalog in the image service.
  44753. *
  44754. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImagePixelLocationParameters.html#rasterId)
  44755. */
  44756. rasterId: number;
  44757. /**
  44758. * Input parameters for the [ImageryLayer.computePixelSpaceLocations()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#computePixelSpaceLocations) or [imageService.computePixelSpaceLocations()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-imageService.html#computePixelSpaceLocations) methods.
  44759. *
  44760. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImagePixelLocationParameters.html)
  44761. */
  44762. constructor(properties?: ImagePixelLocationParametersProperties);
  44763. static fromJSON(json: any): ImagePixelLocationParameters;
  44764. }
  44765. /** @deprecated Import the ImagePixelLocationParameters class instead. */
  44766. export type ImagePixelLocationParametersConstructor = typeof ImagePixelLocationParameters;
  44767. interface ImagePixelLocationParametersProperties {
  44768. /**
  44769. * An array of [points](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) that defines pixel locations.
  44770. *
  44771. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImagePixelLocationParameters.html#point)
  44772. */
  44773. point?: PointProperties[];
  44774. /**
  44775. * The rasterId of a raster catalog in the image service.
  44776. *
  44777. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImagePixelLocationParameters.html#rasterId)
  44778. */
  44779. rasterId?: number;
  44780. }
  44781. export interface ImagePixelLocationResult extends Accessor, JSONSupport {
  44782. }
  44783. export class ImagePixelLocationResult {
  44784. /**
  44785. * An array of objects containing pixel space x,y coordinates and the pixel's z values of the pixel location geometries.
  44786. *
  44787. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImagePixelLocationResult.html#geometries)
  44788. */
  44789. geometries: any[];
  44790. /**
  44791. * The results from [imageService.computePixelSpaceLocations()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-imageService.html#computePixelSpaceLocations) or [ImageryLayer.computePixelSpaceLocations()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#computePixelSpaceLocations) method.
  44792. *
  44793. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImagePixelLocationResult.html)
  44794. */
  44795. constructor(properties?: ImagePixelLocationResultProperties);
  44796. static fromJSON(json: any): ImagePixelLocationResult;
  44797. }
  44798. /** @deprecated Import the ImagePixelLocationResult class instead. */
  44799. export type ImagePixelLocationResultConstructor = typeof ImagePixelLocationResult;
  44800. interface ImagePixelLocationResultProperties {
  44801. /**
  44802. * An array of objects containing pixel space x,y coordinates and the pixel's z values of the pixel location geometries.
  44803. *
  44804. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImagePixelLocationResult.html#geometries)
  44805. */
  44806. geometries?: any[];
  44807. }
  44808. export interface ImageSample extends Accessor, JSONSupport {
  44809. }
  44810. export class ImageSample {
  44811. /**
  44812. * Name-value pairs of fields and field values associated with the [sample location](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSample.html#location).
  44813. *
  44814. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSample.html#attributes)
  44815. */
  44816. attributes: any;
  44817. /**
  44818. * The sample location.
  44819. *
  44820. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSample.html#location)
  44821. */
  44822. location: Point;
  44823. /**
  44824. * The location id.
  44825. *
  44826. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSample.html#locationId)
  44827. */
  44828. locationId: number;
  44829. /**
  44830. * The pixel value associated with the sampled location.
  44831. *
  44832. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSample.html#pixelValue)
  44833. */
  44834. pixelValue: number[];
  44835. /**
  44836. * The raster id.
  44837. *
  44838. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSample.html#rasterId)
  44839. */
  44840. rasterId: number;
  44841. /**
  44842. * The resolution representing the average of source raster's resolutions in x and y axes.
  44843. *
  44844. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSample.html#resolution)
  44845. */
  44846. resolution: number;
  44847. /**
  44848. * The [getSamples](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#getSamples) method on [ImageryLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html) returns [ImageSampleResult](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleResult.html) containing array of this class.
  44849. *
  44850. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSample.html)
  44851. */
  44852. constructor(properties?: ImageSampleProperties);
  44853. static fromJSON(json: any): ImageSample;
  44854. }
  44855. /** @deprecated Import the ImageSample class instead. */
  44856. export type ImageSampleConstructor = typeof ImageSample;
  44857. interface ImageSampleProperties {
  44858. /**
  44859. * Name-value pairs of fields and field values associated with the [sample location](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSample.html#location).
  44860. *
  44861. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSample.html#attributes)
  44862. */
  44863. attributes?: any;
  44864. /**
  44865. * The sample location.
  44866. *
  44867. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSample.html#location)
  44868. */
  44869. location?: PointProperties;
  44870. /**
  44871. * The location id.
  44872. *
  44873. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSample.html#locationId)
  44874. */
  44875. locationId?: number;
  44876. /**
  44877. * The pixel value associated with the sampled location.
  44878. *
  44879. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSample.html#pixelValue)
  44880. */
  44881. pixelValue?: number[];
  44882. /**
  44883. * The raster id.
  44884. *
  44885. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSample.html#rasterId)
  44886. */
  44887. rasterId?: number;
  44888. /**
  44889. * The resolution representing the average of source raster's resolutions in x and y axes.
  44890. *
  44891. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSample.html#resolution)
  44892. */
  44893. resolution?: number;
  44894. }
  44895. export interface ImageSampleParameters extends Accessor, JSONSupport {
  44896. }
  44897. export class ImageSampleParameters {
  44898. /**
  44899. * Input geometry that defines the locations to be sampled.
  44900. *
  44901. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#geometry)
  44902. */
  44903. geometry: Point | Multipoint | Polyline | Extent | Polygon;
  44904. /**
  44905. * Defines how to interpolate pixel values.
  44906. *
  44907. * @default nearest
  44908. *
  44909. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#interpolation)
  44910. */
  44911. interpolation: "nearest" | "bilinear" | "cubic" | "majority";
  44912. /**
  44913. * When sampling multiple locations, you can use an array of [points](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) instead of providing a [multipoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Multipoint.html) for the [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#geometry) property.
  44914. *
  44915. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#locations)
  44916. */
  44917. locations: Point[];
  44918. /**
  44919. * Specifies the [mosaic rule](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html) defining the image sort order and selection.
  44920. *
  44921. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#mosaicRule)
  44922. */
  44923. mosaicRule: MosaicRule;
  44924. /**
  44925. * The list of fields associated with the rasters to be included in the response.
  44926. *
  44927. * @default null
  44928. *
  44929. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#outFields)
  44930. */
  44931. outFields: string[];
  44932. /**
  44933. * Specifies the pixel size (or the resolution) that will be used for the sampling.
  44934. *
  44935. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#pixelSize)
  44936. */
  44937. pixelSize: PixelSize;
  44938. /**
  44939. * When `true`, returns the first valid pixel value that meets specified conditions at each sampling point location.
  44940. *
  44941. * @default true
  44942. *
  44943. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#returnFirstValueOnly)
  44944. */
  44945. returnFirstValueOnly: boolean;
  44946. /**
  44947. * Specifies the approximate number of locations to sample from the provided geometry when the input geometry is [polyline](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html), [polygon](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html) or [extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html).
  44948. *
  44949. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#sampleCount)
  44950. */
  44951. sampleCount: number;
  44952. /**
  44953. * Specifies the distance interval to sample points from the provided [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#geometry) when input geometry is [polyline](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html).
  44954. *
  44955. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#sampleDistance)
  44956. */
  44957. sampleDistance: number;
  44958. /**
  44959. * Specifies the slice id of a multidimensional raster.
  44960. *
  44961. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#sliceId)
  44962. */
  44963. sliceId: number;
  44964. /**
  44965. * The [time extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeExtent.html) for which to perform sampling.
  44966. *
  44967. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#timeExtent)
  44968. */
  44969. timeExtent: TimeExtent;
  44970. /**
  44971. * Input parameters for the [getSamples()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#getSamples) method on [ImageryLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html).
  44972. *
  44973. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html)
  44974. */
  44975. constructor(properties?: ImageSampleParametersProperties);
  44976. static fromJSON(json: any): ImageSampleParameters;
  44977. }
  44978. /** @deprecated Import the ImageSampleParameters class instead. */
  44979. export type ImageSampleParametersConstructor = typeof ImageSampleParameters;
  44980. interface ImageSampleParametersProperties {
  44981. /**
  44982. * Input geometry that defines the locations to be sampled.
  44983. *
  44984. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#geometry)
  44985. */
  44986. geometry?: | (PointProperties & { type: "point" })
  44987. | (MultipointProperties & { type: "multipoint" })
  44988. | (PolylineProperties & { type: "polyline" })
  44989. | (ExtentProperties & { type: "extent" })
  44990. | (PolygonProperties & { type: "polygon" });
  44991. /**
  44992. * Defines how to interpolate pixel values.
  44993. *
  44994. * @default nearest
  44995. *
  44996. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#interpolation)
  44997. */
  44998. interpolation?: "nearest" | "bilinear" | "cubic" | "majority";
  44999. /**
  45000. * When sampling multiple locations, you can use an array of [points](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) instead of providing a [multipoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Multipoint.html) for the [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#geometry) property.
  45001. *
  45002. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#locations)
  45003. */
  45004. locations?: PointProperties[];
  45005. /**
  45006. * Specifies the [mosaic rule](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-MosaicRule.html) defining the image sort order and selection.
  45007. *
  45008. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#mosaicRule)
  45009. */
  45010. mosaicRule?: MosaicRuleProperties;
  45011. /**
  45012. * The list of fields associated with the rasters to be included in the response.
  45013. *
  45014. * @default null
  45015. *
  45016. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#outFields)
  45017. */
  45018. outFields?: string[];
  45019. /**
  45020. * Specifies the pixel size (or the resolution) that will be used for the sampling.
  45021. *
  45022. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#pixelSize)
  45023. */
  45024. pixelSize?: PixelSize;
  45025. /**
  45026. * When `true`, returns the first valid pixel value that meets specified conditions at each sampling point location.
  45027. *
  45028. * @default true
  45029. *
  45030. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#returnFirstValueOnly)
  45031. */
  45032. returnFirstValueOnly?: boolean;
  45033. /**
  45034. * Specifies the approximate number of locations to sample from the provided geometry when the input geometry is [polyline](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html), [polygon](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html) or [extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html).
  45035. *
  45036. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#sampleCount)
  45037. */
  45038. sampleCount?: number;
  45039. /**
  45040. * Specifies the distance interval to sample points from the provided [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#geometry) when input geometry is [polyline](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html).
  45041. *
  45042. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#sampleDistance)
  45043. */
  45044. sampleDistance?: number;
  45045. /**
  45046. * Specifies the slice id of a multidimensional raster.
  45047. *
  45048. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#sliceId)
  45049. */
  45050. sliceId?: number;
  45051. /**
  45052. * The [time extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeExtent.html) for which to perform sampling.
  45053. *
  45054. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleParameters.html#timeExtent)
  45055. */
  45056. timeExtent?: TimeExtentProperties;
  45057. }
  45058. export interface ImageSampleResult extends Accessor, JSONSupport {
  45059. }
  45060. export class ImageSampleResult {
  45061. /**
  45062. * An array of image sample results returned in response to [ImageryLayer.getSamples()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#getSamples) method.
  45063. *
  45064. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleResult.html#samples)
  45065. */
  45066. samples: ImageSample[];
  45067. /**
  45068. * The result from the [getSamples](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#getSamples) method on [ImageryLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html) containing array of [ImageSample](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSample.html).
  45069. *
  45070. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleResult.html)
  45071. */
  45072. constructor(properties?: ImageSampleResultProperties);
  45073. static fromJSON(json: any): ImageSampleResult;
  45074. }
  45075. /** @deprecated Import the ImageSampleResult class instead. */
  45076. export type ImageSampleResultConstructor = typeof ImageSampleResult;
  45077. interface ImageSampleResultProperties {
  45078. /**
  45079. * An array of image sample results returned in response to [ImageryLayer.getSamples()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html#getSamples) method.
  45080. *
  45081. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ImageSampleResult.html#samples)
  45082. */
  45083. samples?: ImageSampleProperties[];
  45084. }
  45085. export interface JobInfo extends Accessor, JSONSupport {
  45086. }
  45087. export class JobInfo {
  45088. /**
  45089. * The unique job ID assigned by ArcGIS Server.
  45090. *
  45091. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-JobInfo.html#jobId)
  45092. */
  45093. jobId: string;
  45094. /**
  45095. * The job status.
  45096. *
  45097. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-JobInfo.html#jobStatus)
  45098. */
  45099. jobStatus: | "job-cancelled"
  45100. | "job-cancelling"
  45101. | "job-deleted"
  45102. | "job-deleting"
  45103. | "job-timed-out"
  45104. | "job-executing"
  45105. | "job-failed"
  45106. | "job-new"
  45107. | "job-submitted"
  45108. | "job-succeeded"
  45109. | "job-waiting";
  45110. /**
  45111. * An array of messages that include the message type and a description.
  45112. *
  45113. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-JobInfo.html#messages)
  45114. */
  45115. messages: GPMessage[];
  45116. /**
  45117. * The [options](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#esriRequest) to be used for data requests.
  45118. *
  45119. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-JobInfo.html#requestOptions)
  45120. */
  45121. requestOptions: any;
  45122. /**
  45123. * ArcGIS Server Rest API endpoint to the resource that receives the geoprocessing request.
  45124. *
  45125. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-JobInfo.html#sourceUrl)
  45126. */
  45127. sourceUrl: string;
  45128. /**
  45129. * Represents information pertaining to the execution of an asynchronous [geoprocessor](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geoprocessor.html) request on the server.
  45130. *
  45131. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-JobInfo.html)
  45132. */
  45133. constructor(properties?: JobInfoProperties);
  45134. /**
  45135. * Cancels an asynchronous geoprocessing job.
  45136. *
  45137. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-JobInfo.html#cancelJob)
  45138. */
  45139. cancelJob(jobId: string, requestOptions?: any): Promise<JobInfo>;
  45140. /**
  45141. * Sends a request for the current state of this job.
  45142. *
  45143. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-JobInfo.html#checkJobStatus)
  45144. */
  45145. checkJobStatus(requestOptions?: any): Promise<JobInfo>;
  45146. /**
  45147. * Stop monitoring this job for status updates.
  45148. *
  45149. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-JobInfo.html#destroy)
  45150. */
  45151. destroy(): void;
  45152. /**
  45153. * Sends a request to the GP Task to get the task result identified by `resultName`.
  45154. *
  45155. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-JobInfo.html#fetchResultData)
  45156. */
  45157. fetchResultData(resultName: string, gpOptions?: GPOptions, requestOptions?: any): Promise<ParameterValue>;
  45158. /**
  45159. * Sends a request to the GP Task to get the task result identified by `jobId` and `resultName` as an image.
  45160. *
  45161. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-JobInfo.html#fetchResultImage)
  45162. */
  45163. fetchResultImage(jobId: string, resultName: string, imageParams: ImageParameters, requestOptions?: any): Promise<ParameterValue>;
  45164. /**
  45165. * Get the task result identified by `jobId` as an [MapImageLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html).
  45166. *
  45167. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-JobInfo.html#fetchResultMapImageLayer)
  45168. */
  45169. fetchResultMapImageLayer(jobId: string): Promise<MapImageLayer>;
  45170. /**
  45171. * Resolves when an asynchronous job has completed.
  45172. *
  45173. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-JobInfo.html#waitForJobCompletion)
  45174. */
  45175. waitForJobCompletion(options?: JobInfoWaitForJobCompletionOptions): Promise<JobInfo>;
  45176. static fromJSON(json: any): JobInfo;
  45177. }
  45178. /** @deprecated Import the JobInfo class instead. */
  45179. export type JobInfoConstructor = typeof JobInfo;
  45180. interface JobInfoProperties {
  45181. /**
  45182. * The unique job ID assigned by ArcGIS Server.
  45183. *
  45184. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-JobInfo.html#jobId)
  45185. */
  45186. jobId?: string;
  45187. /**
  45188. * The job status.
  45189. *
  45190. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-JobInfo.html#jobStatus)
  45191. */
  45192. jobStatus?: | "job-cancelled"
  45193. | "job-cancelling"
  45194. | "job-deleted"
  45195. | "job-deleting"
  45196. | "job-timed-out"
  45197. | "job-executing"
  45198. | "job-failed"
  45199. | "job-new"
  45200. | "job-submitted"
  45201. | "job-succeeded"
  45202. | "job-waiting";
  45203. /**
  45204. * An array of messages that include the message type and a description.
  45205. *
  45206. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-JobInfo.html#messages)
  45207. */
  45208. messages?: GPMessageProperties[];
  45209. /**
  45210. * The [options](https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#esriRequest) to be used for data requests.
  45211. *
  45212. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-JobInfo.html#requestOptions)
  45213. */
  45214. requestOptions?: any;
  45215. /**
  45216. * ArcGIS Server Rest API endpoint to the resource that receives the geoprocessing request.
  45217. *
  45218. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-JobInfo.html#sourceUrl)
  45219. */
  45220. sourceUrl?: string;
  45221. }
  45222. export interface JobInfoWaitForJobCompletionOptions {
  45223. /**
  45224. * The time in millisecond between remote job status requests.
  45225. *
  45226. * @default 1000
  45227. *
  45228. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-JobInfo.html#waitForJobCompletion)
  45229. */
  45230. interval?: any;
  45231. /**
  45232. * [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) allows for cancelable asynchronous job.
  45233. *
  45234. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-JobInfo.html#waitForJobCompletion)
  45235. */
  45236. signal?: any;
  45237. /**
  45238. * Callback function that is called at the specified interval.
  45239. *
  45240. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-JobInfo.html#waitForJobCompletion)
  45241. */
  45242. statusCallback?: any;
  45243. }
  45244. export class LegendLayer extends Accessor {
  45245. /**
  45246. * The id of the operational layer to include in the printout's legend.
  45247. *
  45248. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-LegendLayer.html#layerId)
  45249. */
  45250. layerId: string;
  45251. /**
  45252. * The ids of the sublayers to include in the printout's legend.
  45253. *
  45254. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-LegendLayer.html#subLayerIds)
  45255. */
  45256. subLayerIds: string[];
  45257. /**
  45258. * The title of the feature layer.
  45259. *
  45260. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-LegendLayer.html#title)
  45261. */
  45262. title: string;
  45263. /**
  45264. * Define layer properties for the legend layers associated with a [PrintTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html).
  45265. *
  45266. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-LegendLayer.html)
  45267. */
  45268. constructor(properties?: LegendLayerProperties);
  45269. }
  45270. /** @deprecated Import the LegendLayer class instead. */
  45271. export type LegendLayerConstructor = typeof LegendLayer;
  45272. interface LegendLayerProperties {
  45273. /**
  45274. * The id of the operational layer to include in the printout's legend.
  45275. *
  45276. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-LegendLayer.html#layerId)
  45277. */
  45278. layerId?: string;
  45279. /**
  45280. * The ids of the sublayers to include in the printout's legend.
  45281. *
  45282. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-LegendLayer.html#subLayerIds)
  45283. */
  45284. subLayerIds?: string[];
  45285. /**
  45286. * The title of the feature layer.
  45287. *
  45288. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-LegendLayer.html#title)
  45289. */
  45290. title?: string;
  45291. }
  45292. export interface LengthsParameters extends Accessor, JSONSupport {
  45293. }
  45294. export class LengthsParameters {
  45295. /**
  45296. * Defines the type of calculation for the geometry.
  45297. *
  45298. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-LengthsParameters.html#calculationType)
  45299. */
  45300. calculationType: "planar" | "geodesic" | "preserve-shape";
  45301. /**
  45302. * If polylines are in a geographic coordinate system, then geodesic needs to be set to `true` in order to calculate the ellipsoidal shortest path distance between each pair of the vertices in the polylines.
  45303. *
  45304. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-LengthsParameters.html#geodesic)
  45305. */
  45306. geodesic: boolean;
  45307. /**
  45308. * The length unit in which perimeters of polygons will be calculated.
  45309. *
  45310. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-LengthsParameters.html#lengthUnit)
  45311. */
  45312. lengthUnit: number | string;
  45313. /**
  45314. * The array of polylines whose lengths are to be computed.
  45315. *
  45316. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-LengthsParameters.html#polylines)
  45317. */
  45318. polylines: Polyline[];
  45319. /**
  45320. * Sets the length units and other parameters for the [geometryService.lengths()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#lengths) operation.
  45321. *
  45322. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-LengthsParameters.html)
  45323. */
  45324. constructor(properties?: LengthsParametersProperties);
  45325. static fromJSON(json: any): LengthsParameters;
  45326. }
  45327. /** @deprecated Import the LengthsParameters class instead. */
  45328. export type LengthsParametersConstructor = typeof LengthsParameters;
  45329. interface LengthsParametersProperties {
  45330. /**
  45331. * Defines the type of calculation for the geometry.
  45332. *
  45333. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-LengthsParameters.html#calculationType)
  45334. */
  45335. calculationType?: "planar" | "geodesic" | "preserve-shape";
  45336. /**
  45337. * If polylines are in a geographic coordinate system, then geodesic needs to be set to `true` in order to calculate the ellipsoidal shortest path distance between each pair of the vertices in the polylines.
  45338. *
  45339. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-LengthsParameters.html#geodesic)
  45340. */
  45341. geodesic?: boolean;
  45342. /**
  45343. * The length unit in which perimeters of polygons will be calculated.
  45344. *
  45345. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-LengthsParameters.html#lengthUnit)
  45346. */
  45347. lengthUnit?: number | string;
  45348. /**
  45349. * The array of polylines whose lengths are to be computed.
  45350. *
  45351. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-LengthsParameters.html#polylines)
  45352. */
  45353. polylines?: PolylineProperties[];
  45354. }
  45355. export interface LinearUnit extends Accessor, JSONSupport {
  45356. }
  45357. export class LinearUnit {
  45358. /**
  45359. * Specifies the value of the linear distance.
  45360. *
  45361. * @default 0
  45362. *
  45363. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-LinearUnit.html#distance)
  45364. */
  45365. distance: number;
  45366. /**
  45367. * Specifies the unit type of the linear distance.
  45368. *
  45369. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-LinearUnit.html#units)
  45370. */
  45371. units: "feet" | "kilometers" | "meters" | "miles" | "nautical-miles" | "yards";
  45372. /**
  45373. * A data object containing a linear distance.
  45374. *
  45375. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-LinearUnit.html)
  45376. */
  45377. constructor(properties?: LinearUnitProperties);
  45378. static fromJSON(json: any): LinearUnit;
  45379. }
  45380. /** @deprecated Import the LinearUnit class instead. */
  45381. export type LinearUnitConstructor = typeof LinearUnit;
  45382. interface LinearUnitProperties {
  45383. /**
  45384. * Specifies the value of the linear distance.
  45385. *
  45386. * @default 0
  45387. *
  45388. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-LinearUnit.html#distance)
  45389. */
  45390. distance?: number;
  45391. /**
  45392. * Specifies the unit type of the linear distance.
  45393. *
  45394. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-LinearUnit.html#units)
  45395. */
  45396. units?: "feet" | "kilometers" | "meters" | "miles" | "nautical-miles" | "yards";
  45397. }
  45398. export class MultipartColorRamp extends ColorRamp {
  45399. /**
  45400. * Define an array of algorithmic color ramps used to generate the multi part ramp.
  45401. *
  45402. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-MultipartColorRamp.html#colorRamps)
  45403. */
  45404. colorRamps: AlgorithmicColorRamp[];
  45405. /**
  45406. * A string value representing the color ramp type.
  45407. *
  45408. * @default multipart
  45409. *
  45410. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-MultipartColorRamp.html#type)
  45411. */
  45412. readonly type: "multipart";
  45413. /**
  45414. * Creates a multipart color ramp to combine multiple continuous color ramps for use in raster renderers.
  45415. *
  45416. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-MultipartColorRamp.html)
  45417. */
  45418. constructor(properties?: MultipartColorRampProperties);
  45419. /**
  45420. * Creates a deep clone of this object.
  45421. *
  45422. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-MultipartColorRamp.html#clone)
  45423. */
  45424. clone(): MultipartColorRamp;
  45425. static fromJSON(json: any): MultipartColorRamp;
  45426. }
  45427. /** @deprecated Import the MultipartColorRamp class instead. */
  45428. export type MultipartColorRampConstructor = typeof MultipartColorRamp;
  45429. interface MultipartColorRampProperties extends ColorRampProperties {
  45430. /**
  45431. * Define an array of algorithmic color ramps used to generate the multi part ramp.
  45432. *
  45433. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-MultipartColorRamp.html#colorRamps)
  45434. */
  45435. colorRamps?: AlgorithmicColorRampProperties[];
  45436. }
  45437. export interface NAMessage extends Accessor, JSONSupport {
  45438. }
  45439. export class NAMessage {
  45440. /**
  45441. * A description of the network analyst message.
  45442. *
  45443. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-NAMessage.html#description)
  45444. */
  45445. description: string;
  45446. /**
  45447. * The network analyst message type.
  45448. *
  45449. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-NAMessage.html#type)
  45450. */
  45451. type: | "informative"
  45452. | "process-definition"
  45453. | "process-start"
  45454. | "process-stop"
  45455. | "warning"
  45456. | "error"
  45457. | "empty"
  45458. | "abort";
  45459. /**
  45460. * Represents a message generated during the execution of a network analyst task.
  45461. *
  45462. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-NAMessage.html)
  45463. */
  45464. constructor(properties?: NAMessageProperties);
  45465. static fromJSON(json: any): NAMessage;
  45466. }
  45467. /** @deprecated Import the NAMessage class instead. */
  45468. export type NAMessageConstructor = typeof NAMessage;
  45469. interface NAMessageProperties {
  45470. /**
  45471. * A description of the network analyst message.
  45472. *
  45473. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-NAMessage.html#description)
  45474. */
  45475. description?: string;
  45476. /**
  45477. * The network analyst message type.
  45478. *
  45479. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-NAMessage.html#type)
  45480. */
  45481. type?: | "informative"
  45482. | "process-definition"
  45483. | "process-start"
  45484. | "process-stop"
  45485. | "warning"
  45486. | "error"
  45487. | "empty"
  45488. | "abort";
  45489. }
  45490. export interface NetworkFeatureSet extends FeatureSet, Accessor {
  45491. }
  45492. export class NetworkFeatureSet {
  45493. /**
  45494. * If true, restricted network elements should be considered when finding network locations.
  45495. *
  45496. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-NetworkFeatureSet.html#doNotLocateOnRestrictedElements)
  45497. */
  45498. doNotLocateOnRestrictedElements: boolean;
  45499. /**
  45500. * A subclass of FeaureSet that can be used as an input in the Route, Closest Facility, and Service Area solvers.
  45501. *
  45502. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-NetworkFeatureSet.html)
  45503. */
  45504. constructor(properties?: NetworkFeatureSetProperties);
  45505. static fromJSON(json: any): NetworkFeatureSet;
  45506. }
  45507. /** @deprecated Import the NetworkFeatureSet class instead. */
  45508. export type NetworkFeatureSetConstructor = typeof NetworkFeatureSet;
  45509. interface NetworkFeatureSetProperties extends FeatureSetProperties {
  45510. /**
  45511. * If true, restricted network elements should be considered when finding network locations.
  45512. *
  45513. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-NetworkFeatureSet.html#doNotLocateOnRestrictedElements)
  45514. */
  45515. doNotLocateOnRestrictedElements?: boolean;
  45516. }
  45517. export interface NetworkUrl extends Accessor, JSONSupport {
  45518. }
  45519. export class NetworkUrl {
  45520. /**
  45521. * If true, restricted network elements should be considered when finding network locations.
  45522. *
  45523. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-NetworkUrl.html#doNotLocateOnRestrictedElements)
  45524. */
  45525. doNotLocateOnRestrictedElements: boolean;
  45526. /**
  45527. * A url to any ArcGIS Server feature, map, or geoprocessing service that returns a JSON feature set.
  45528. *
  45529. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-NetworkUrl.html#url)
  45530. */
  45531. url: string;
  45532. /**
  45533. * An input type for Route, Closest Facility, and Service Area solvers.
  45534. *
  45535. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-NetworkUrl.html)
  45536. */
  45537. constructor(properties?: NetworkUrlProperties);
  45538. static fromJSON(json: any): NetworkUrl;
  45539. }
  45540. /** @deprecated Import the NetworkUrl class instead. */
  45541. export type NetworkUrlConstructor = typeof NetworkUrl;
  45542. interface NetworkUrlProperties {
  45543. /**
  45544. * If true, restricted network elements should be considered when finding network locations.
  45545. *
  45546. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-NetworkUrl.html#doNotLocateOnRestrictedElements)
  45547. */
  45548. doNotLocateOnRestrictedElements?: boolean;
  45549. /**
  45550. * A url to any ArcGIS Server feature, map, or geoprocessing service that returns a JSON feature set.
  45551. *
  45552. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-NetworkUrl.html#url)
  45553. */
  45554. url?: string;
  45555. }
  45556. export interface OffsetParameters extends Accessor, JSONSupport {
  45557. }
  45558. export class OffsetParameters {
  45559. /**
  45560. * The `bevelRatio` is multiplied by the offset distance and the result determines how far a mitered offset intersection can be located before it is beveled.
  45561. *
  45562. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-OffsetParameters.html#bevelRatio)
  45563. */
  45564. bevelRatio: number;
  45565. /**
  45566. * The array of geometries to be offset.
  45567. *
  45568. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-OffsetParameters.html#geometries)
  45569. */
  45570. geometries: Geometry[];
  45571. /**
  45572. * Specifies the planar distance for constructing an offset based on the input geometries.
  45573. *
  45574. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-OffsetParameters.html#offsetDistance)
  45575. */
  45576. offsetDistance: number;
  45577. /**
  45578. * Options that determine how the ends intersect.
  45579. *
  45580. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-OffsetParameters.html#offsetHow)
  45581. */
  45582. offsetHow: "bevelled" | "mitered" | "rounded";
  45583. /**
  45584. * The offset distance unit.
  45585. *
  45586. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-OffsetParameters.html#offsetUnit)
  45587. */
  45588. offsetUnit: "feet" | "kilometers" | "meters" | "miles" | "nautical-miles" | "yards";
  45589. /**
  45590. * Sets the offset distance, type and other parameters for the [geometryService.offset](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#offset) operation.
  45591. *
  45592. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-OffsetParameters.html)
  45593. */
  45594. constructor(properties?: OffsetParametersProperties);
  45595. static fromJSON(json: any): OffsetParameters;
  45596. }
  45597. /** @deprecated Import the OffsetParameters class instead. */
  45598. export type OffsetParametersConstructor = typeof OffsetParameters;
  45599. interface OffsetParametersProperties {
  45600. /**
  45601. * The `bevelRatio` is multiplied by the offset distance and the result determines how far a mitered offset intersection can be located before it is beveled.
  45602. *
  45603. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-OffsetParameters.html#bevelRatio)
  45604. */
  45605. bevelRatio?: number;
  45606. /**
  45607. * The array of geometries to be offset.
  45608. *
  45609. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-OffsetParameters.html#geometries)
  45610. */
  45611. geometries?: GeometryProperties[];
  45612. /**
  45613. * Specifies the planar distance for constructing an offset based on the input geometries.
  45614. *
  45615. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-OffsetParameters.html#offsetDistance)
  45616. */
  45617. offsetDistance?: number;
  45618. /**
  45619. * Options that determine how the ends intersect.
  45620. *
  45621. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-OffsetParameters.html#offsetHow)
  45622. */
  45623. offsetHow?: "bevelled" | "mitered" | "rounded";
  45624. /**
  45625. * The offset distance unit.
  45626. *
  45627. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-OffsetParameters.html#offsetUnit)
  45628. */
  45629. offsetUnit?: "feet" | "kilometers" | "meters" | "miles" | "nautical-miles" | "yards";
  45630. }
  45631. export interface ParameterValue extends Accessor, JSONSupport {
  45632. }
  45633. export class ParameterValue {
  45634. /**
  45635. * Specifies the parameter's data type.
  45636. *
  45637. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ParameterValue.html#dataType)
  45638. */
  45639. dataType: | "boolean"
  45640. | "data-file"
  45641. | "date"
  45642. | "double"
  45643. | "feature-record-set-layer"
  45644. | "field"
  45645. | "linear-unit"
  45646. | "long"
  45647. | "raster-data"
  45648. | "raster-data-layer"
  45649. | "record-set"
  45650. | "string"
  45651. | "multi-value";
  45652. /**
  45653. * The value of the parameter.
  45654. *
  45655. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ParameterValue.html#value)
  45656. */
  45657. value: | boolean
  45658. | DataFile
  45659. | Date
  45660. | number
  45661. | FeatureSet
  45662. | Field
  45663. | LinearUnit
  45664. | RasterData
  45665. | string
  45666. | (boolean | DataFile | Date | number | FeatureSet | Field | LinearUnit | RasterData | string)[];
  45667. /**
  45668. * Represents the output parameters of a [geoprocessor](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geoprocessor.html) method and their properties and values.
  45669. *
  45670. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ParameterValue.html)
  45671. */
  45672. constructor(properties?: ParameterValueProperties);
  45673. static fromJSON(json: any): ParameterValue;
  45674. }
  45675. /** @deprecated Import the ParameterValue class instead. */
  45676. export type ParameterValueConstructor = typeof ParameterValue;
  45677. interface ParameterValueProperties {
  45678. /**
  45679. * Specifies the parameter's data type.
  45680. *
  45681. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ParameterValue.html#dataType)
  45682. */
  45683. dataType?: | "boolean"
  45684. | "data-file"
  45685. | "date"
  45686. | "double"
  45687. | "feature-record-set-layer"
  45688. | "field"
  45689. | "linear-unit"
  45690. | "long"
  45691. | "raster-data"
  45692. | "raster-data-layer"
  45693. | "record-set"
  45694. | "string"
  45695. | "multi-value";
  45696. /**
  45697. * The value of the parameter.
  45698. *
  45699. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ParameterValue.html#value)
  45700. */
  45701. value?: | boolean
  45702. | DataFileProperties
  45703. | DateProperties
  45704. | number
  45705. | FeatureSetProperties
  45706. | FieldProperties
  45707. | LinearUnitProperties
  45708. | RasterDataProperties
  45709. | string
  45710. | (
  45711. | boolean
  45712. | DataFileProperties
  45713. | DateProperties
  45714. | number
  45715. | FeatureSetProperties
  45716. | FieldProperties
  45717. | LinearUnitProperties
  45718. | RasterDataProperties
  45719. | string
  45720. )[];
  45721. }
  45722. export interface PointBarrier extends Accessor, JSONSupport {
  45723. }
  45724. export class PointBarrier {
  45725. /**
  45726. * Specify if the point barrier restricts travel completely or adds time or distance when it is crossed.
  45727. *
  45728. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PointBarrier.html#barrierType)
  45729. */
  45730. barrierType: "restriction" | "added-cost";
  45731. /**
  45732. * The side of the vehicle the curb is on when arriving at the stop.
  45733. *
  45734. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PointBarrier.html#curbApproach)
  45735. */
  45736. curbApproach: "either-side-of-vehicle" | "right-side-of-vehicle" | "left-side-of-vehicle" | "no-u-turn";
  45737. /**
  45738. * Point barriers are applied to the edge elements during the analysis.
  45739. *
  45740. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PointBarrier.html#fullEdge)
  45741. */
  45742. fullEdge: "permit" | "restrict";
  45743. /**
  45744. * The point location of the barrier.
  45745. *
  45746. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PointBarrier.html#geometry)
  45747. */
  45748. geometry: Point;
  45749. /**
  45750. * The name of the barrier.
  45751. *
  45752. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PointBarrier.html#name)
  45753. */
  45754. name: string;
  45755. readonly type: "barrier-point";
  45756. /**
  45757. * A point barrier to restrict travel along a street network when using a [RouteLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html).
  45758. *
  45759. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PointBarrier.html)
  45760. */
  45761. constructor(properties?: PointBarrierProperties);
  45762. /**
  45763. * Creates a [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) from the [PointBarrier](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PointBarrier.html) instance.
  45764. *
  45765. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PointBarrier.html#toGraphic)
  45766. */
  45767. toGraphic(): Graphic;
  45768. /**
  45769. * Creates a [PointBarrier](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PointBarrier.html) from the parsed [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html).
  45770. *
  45771. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PointBarrier.html#fromGraphic)
  45772. */
  45773. static fromGraphic(graphic?: Graphic): PointBarrier;
  45774. static fromJSON(json: any): PointBarrier;
  45775. }
  45776. /** @deprecated Import the PointBarrier class instead. */
  45777. export type PointBarrierConstructor = typeof PointBarrier;
  45778. interface PointBarrierProperties {
  45779. /**
  45780. * Specify if the point barrier restricts travel completely or adds time or distance when it is crossed.
  45781. *
  45782. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PointBarrier.html#barrierType)
  45783. */
  45784. barrierType?: "restriction" | "added-cost";
  45785. /**
  45786. * The side of the vehicle the curb is on when arriving at the stop.
  45787. *
  45788. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PointBarrier.html#curbApproach)
  45789. */
  45790. curbApproach?: "either-side-of-vehicle" | "right-side-of-vehicle" | "left-side-of-vehicle" | "no-u-turn";
  45791. /**
  45792. * Point barriers are applied to the edge elements during the analysis.
  45793. *
  45794. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PointBarrier.html#fullEdge)
  45795. */
  45796. fullEdge?: "permit" | "restrict";
  45797. /**
  45798. * The point location of the barrier.
  45799. *
  45800. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PointBarrier.html#geometry)
  45801. */
  45802. geometry?: PointProperties;
  45803. /**
  45804. * The name of the barrier.
  45805. *
  45806. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PointBarrier.html#name)
  45807. */
  45808. name?: string;
  45809. }
  45810. export interface PolygonBarrier extends Accessor, JSONSupport {
  45811. }
  45812. export class PolygonBarrier {
  45813. /**
  45814. * Specify if the point barrier restricts travel completely or adds time or distance when it is crossed.
  45815. *
  45816. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PolygonBarrier.html#barrierType)
  45817. */
  45818. barrierType: "restriction" | "added-cost";
  45819. /**
  45820. * The point location of the barrier.
  45821. *
  45822. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PolygonBarrier.html#geometry)
  45823. */
  45824. geometry: Polygon;
  45825. /**
  45826. * The name of the barrier.
  45827. *
  45828. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PolygonBarrier.html#name)
  45829. */
  45830. name: string;
  45831. readonly type: "barrier-area";
  45832. /**
  45833. * A polygon barrier to restrict travel along a street network when using a [RouteLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html).
  45834. *
  45835. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PolygonBarrier.html)
  45836. */
  45837. constructor(properties?: PolygonBarrierProperties);
  45838. /**
  45839. * Creates a [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) from the [PolygonBarrier](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PolygonBarrier.html) instance.
  45840. *
  45841. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PolygonBarrier.html#toGraphic)
  45842. */
  45843. toGraphic(): Graphic;
  45844. /**
  45845. * Creates a [PolygonBarrier](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PolygonBarrier.html) from the parsed [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html).
  45846. *
  45847. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PolygonBarrier.html#fromGraphic)
  45848. */
  45849. static fromGraphic(graphic?: Graphic): PolygonBarrier;
  45850. static fromJSON(json: any): PolygonBarrier;
  45851. }
  45852. /** @deprecated Import the PolygonBarrier class instead. */
  45853. export type PolygonBarrierConstructor = typeof PolygonBarrier;
  45854. interface PolygonBarrierProperties {
  45855. /**
  45856. * Specify if the point barrier restricts travel completely or adds time or distance when it is crossed.
  45857. *
  45858. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PolygonBarrier.html#barrierType)
  45859. */
  45860. barrierType?: "restriction" | "added-cost";
  45861. /**
  45862. * The point location of the barrier.
  45863. *
  45864. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PolygonBarrier.html#geometry)
  45865. */
  45866. geometry?: PolygonProperties;
  45867. /**
  45868. * The name of the barrier.
  45869. *
  45870. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PolygonBarrier.html#name)
  45871. */
  45872. name?: string;
  45873. }
  45874. export interface PolylineBarrier extends Accessor, JSONSupport {
  45875. }
  45876. export class PolylineBarrier {
  45877. /**
  45878. * Specify if the point barrier restricts travel completely or adds time or distance when it is crossed.
  45879. *
  45880. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PolylineBarrier.html#barrierType)
  45881. */
  45882. barrierType: "restriction" | "added-cost";
  45883. /**
  45884. * The point location of the barrier.
  45885. *
  45886. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PolylineBarrier.html#geometry)
  45887. */
  45888. geometry: Point;
  45889. /**
  45890. * The name of the barrier.
  45891. *
  45892. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PolylineBarrier.html#name)
  45893. */
  45894. name: string;
  45895. readonly type: "barrier-line";
  45896. /**
  45897. * A polyline barrier to restrict travel along a street network when using a [RouteLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html).
  45898. *
  45899. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PolylineBarrier.html)
  45900. */
  45901. constructor(properties?: PolylineBarrierProperties);
  45902. /**
  45903. * Creates a [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) from the [PolylineBarrier](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PolylineBarrier.html) instance.
  45904. *
  45905. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PolylineBarrier.html#toGraphic)
  45906. */
  45907. toGraphic(): Graphic;
  45908. /**
  45909. * Creates a [PolylineBarrier](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PolylineBarrier.html) from the parsed [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html).
  45910. *
  45911. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PolylineBarrier.html#fromGraphic)
  45912. */
  45913. static fromGraphic(graphic?: Graphic): PolylineBarrier;
  45914. static fromJSON(json: any): PolylineBarrier;
  45915. }
  45916. /** @deprecated Import the PolylineBarrier class instead. */
  45917. export type PolylineBarrierConstructor = typeof PolylineBarrier;
  45918. interface PolylineBarrierProperties {
  45919. /**
  45920. * Specify if the point barrier restricts travel completely or adds time or distance when it is crossed.
  45921. *
  45922. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PolylineBarrier.html#barrierType)
  45923. */
  45924. barrierType?: "restriction" | "added-cost";
  45925. /**
  45926. * The point location of the barrier.
  45927. *
  45928. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PolylineBarrier.html#geometry)
  45929. */
  45930. geometry?: PointProperties;
  45931. /**
  45932. * The name of the barrier.
  45933. *
  45934. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PolylineBarrier.html#name)
  45935. */
  45936. name?: string;
  45937. }
  45938. export class PrintParameters extends Accessor {
  45939. /**
  45940. * Additional parameters for the print service.
  45941. *
  45942. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintParameters.html#extraParameters)
  45943. */
  45944. extraParameters: any;
  45945. /**
  45946. * Specify the output spatial reference for the printout.
  45947. *
  45948. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintParameters.html#outSpatialReference)
  45949. */
  45950. outSpatialReference: SpatialReference;
  45951. /**
  45952. * Defines the layout template used for the printed map.
  45953. *
  45954. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintParameters.html#template)
  45955. */
  45956. template: PrintTemplate;
  45957. /**
  45958. * The view to print.
  45959. *
  45960. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintParameters.html#view)
  45961. */
  45962. view: MapView;
  45963. /**
  45964. * Input parameters for [print](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-print.html).
  45965. *
  45966. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintParameters.html)
  45967. */
  45968. constructor(properties?: PrintParametersProperties);
  45969. }
  45970. /** @deprecated Import the PrintParameters class instead. */
  45971. export type PrintParametersConstructor = typeof PrintParameters;
  45972. interface PrintParametersProperties {
  45973. /**
  45974. * Additional parameters for the print service.
  45975. *
  45976. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintParameters.html#extraParameters)
  45977. */
  45978. extraParameters?: any;
  45979. /**
  45980. * Specify the output spatial reference for the printout.
  45981. *
  45982. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintParameters.html#outSpatialReference)
  45983. */
  45984. outSpatialReference?: SpatialReferenceProperties;
  45985. /**
  45986. * Defines the layout template used for the printed map.
  45987. *
  45988. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintParameters.html#template)
  45989. */
  45990. template?: PrintTemplateProperties;
  45991. /**
  45992. * The view to print.
  45993. *
  45994. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintParameters.html#view)
  45995. */
  45996. view?: MapViewProperties;
  45997. }
  45998. export class PrintTemplate extends Accessor {
  45999. /**
  46000. * When `false`, the attribution is not displayed on the printout.
  46001. *
  46002. * @default true
  46003. *
  46004. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#attributionVisible)
  46005. */
  46006. attributionVisible: boolean;
  46007. /**
  46008. * Define the map width, height and dpi.
  46009. *
  46010. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#exportOptions)
  46011. */
  46012. exportOptions: PrintTemplateExportOptions;
  46013. /**
  46014. * When true, the feature's attributes are included in feature collection layers even when they are not needed for rendering.
  46015. *
  46016. * @default false
  46017. *
  46018. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#forceFeatureAttributes)
  46019. */
  46020. forceFeatureAttributes: boolean;
  46021. /**
  46022. * The output format for the printed map.
  46023. *
  46024. * @default png32
  46025. *
  46026. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#format)
  46027. */
  46028. format: "pdf" | "png32" | "png8" | "jpg" | "gif" | "eps" | "svg" | "svgz";
  46029. /**
  46030. * The layout used for the print output.
  46031. *
  46032. * @default map-only
  46033. *
  46034. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#layout)
  46035. */
  46036. layout: | "map-only"
  46037. | "a3-landscape"
  46038. | "a3-portrait"
  46039. | "a4-landscape"
  46040. | "a4-portrait"
  46041. | "letter-ansi-a-landscape"
  46042. | "letter-ansi-a-portrait"
  46043. | "tabloid-ansi-b-landscape"
  46044. | "tabloid-ansi-b-portrait";
  46045. /**
  46046. * A custom layout hosted as a [portal item](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html).
  46047. *
  46048. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#layoutItem)
  46049. */
  46050. layoutItem: PortalItem;
  46051. /**
  46052. * Defines the layout elements.
  46053. *
  46054. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#layoutOptions)
  46055. */
  46056. layoutOptions: PrintTemplateLayoutOptions;
  46057. /**
  46058. * The optional map scale of the printed map.
  46059. *
  46060. * @default 0
  46061. *
  46062. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#outScale)
  46063. */
  46064. outScale: number;
  46065. /**
  46066. * Define whether the printed map should preserve map scale or map extent.
  46067. *
  46068. * @default true
  46069. *
  46070. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#scalePreserved)
  46071. */
  46072. scalePreserved: boolean;
  46073. /**
  46074. * When `true`, labels will be shown on the layout.
  46075. *
  46076. * @default true
  46077. *
  46078. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#showLabels)
  46079. */
  46080. showLabels: boolean;
  46081. /**
  46082. * Defines the layout template options used by [print](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-print.html) and the [PrintViewModel.print()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#print) method to generate the print page.
  46083. *
  46084. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html)
  46085. */
  46086. constructor(properties?: PrintTemplateProperties);
  46087. }
  46088. /** @deprecated Import the PrintTemplate class instead. */
  46089. export type PrintTemplateConstructor = typeof PrintTemplate;
  46090. interface PrintTemplateProperties {
  46091. /**
  46092. * When `false`, the attribution is not displayed on the printout.
  46093. *
  46094. * @default true
  46095. *
  46096. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#attributionVisible)
  46097. */
  46098. attributionVisible?: boolean;
  46099. /**
  46100. * Define the map width, height and dpi.
  46101. *
  46102. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#exportOptions)
  46103. */
  46104. exportOptions?: PrintTemplateExportOptions;
  46105. /**
  46106. * When true, the feature's attributes are included in feature collection layers even when they are not needed for rendering.
  46107. *
  46108. * @default false
  46109. *
  46110. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#forceFeatureAttributes)
  46111. */
  46112. forceFeatureAttributes?: boolean;
  46113. /**
  46114. * The output format for the printed map.
  46115. *
  46116. * @default png32
  46117. *
  46118. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#format)
  46119. */
  46120. format?: "pdf" | "png32" | "png8" | "jpg" | "gif" | "eps" | "svg" | "svgz";
  46121. /**
  46122. * The layout used for the print output.
  46123. *
  46124. * @default map-only
  46125. *
  46126. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#layout)
  46127. */
  46128. layout?: | "map-only"
  46129. | "a3-landscape"
  46130. | "a3-portrait"
  46131. | "a4-landscape"
  46132. | "a4-portrait"
  46133. | "letter-ansi-a-landscape"
  46134. | "letter-ansi-a-portrait"
  46135. | "tabloid-ansi-b-landscape"
  46136. | "tabloid-ansi-b-portrait";
  46137. /**
  46138. * A custom layout hosted as a [portal item](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html).
  46139. *
  46140. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#layoutItem)
  46141. */
  46142. layoutItem?: PortalItemProperties;
  46143. /**
  46144. * Defines the layout elements.
  46145. *
  46146. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#layoutOptions)
  46147. */
  46148. layoutOptions?: PrintTemplateLayoutOptions;
  46149. /**
  46150. * The optional map scale of the printed map.
  46151. *
  46152. * @default 0
  46153. *
  46154. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#outScale)
  46155. */
  46156. outScale?: number;
  46157. /**
  46158. * Define whether the printed map should preserve map scale or map extent.
  46159. *
  46160. * @default true
  46161. *
  46162. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#scalePreserved)
  46163. */
  46164. scalePreserved?: boolean;
  46165. /**
  46166. * When `true`, labels will be shown on the layout.
  46167. *
  46168. * @default true
  46169. *
  46170. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#showLabels)
  46171. */
  46172. showLabels?: boolean;
  46173. }
  46174. export interface PrintTemplateExportOptions {
  46175. /**
  46176. * Map width.
  46177. *
  46178. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#exportOptions)
  46179. */
  46180. width?: number;
  46181. /**
  46182. * Map height.
  46183. *
  46184. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#exportOptions)
  46185. */
  46186. height?: number;
  46187. /**
  46188. * Resolution in dots per inch.
  46189. *
  46190. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#exportOptions)
  46191. */
  46192. dpi?: number;
  46193. }
  46194. export interface PrintTemplateLayoutOptions {
  46195. /**
  46196. * The text used for the map title if the specified layout contains a title text element.
  46197. *
  46198. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#layoutOptions)
  46199. */
  46200. titleText?: string;
  46201. /**
  46202. * The text used for the author if the specified layout contains an author text element.
  46203. *
  46204. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#layoutOptions)
  46205. */
  46206. authorText?: string;
  46207. /**
  46208. * The text used for the copyright if the specified layout contains a copyright text element.
  46209. *
  46210. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#layoutOptions)
  46211. */
  46212. copyrightText?: string;
  46213. /**
  46214. * The unit used for the scalebar.
  46215. *
  46216. * @default Miles
  46217. *
  46218. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#layoutOptions)
  46219. */
  46220. scalebarUnit?: "Miles" | "Kilometers" | "Meters" | "Feet";
  46221. /**
  46222. * An array of [LegendLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-LegendLayer.html) containing the ids of the layers that will be included in the legend.
  46223. *
  46224. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#layoutOptions)
  46225. */
  46226. legendLayers?: LegendLayer[];
  46227. /**
  46228. * An array of name-value pair objects.
  46229. *
  46230. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#layoutOptions)
  46231. */
  46232. customTextElements?: any[];
  46233. /**
  46234. * An object containing optional elements from the print service that can be updated.
  46235. *
  46236. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#layoutOptions)
  46237. */
  46238. elementOverrides?: any;
  46239. }
  46240. export class ProjectParameters extends Accessor {
  46241. /**
  46242. * The input geometries to project.
  46243. *
  46244. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ProjectParameters.html#geometries)
  46245. */
  46246. geometries: Geometry[];
  46247. /**
  46248. * The spatial reference to which you are projecting the geometries.
  46249. *
  46250. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ProjectParameters.html#outSpatialReference)
  46251. */
  46252. outSpatialReference: SpatialReference;
  46253. /**
  46254. * The well-known id {wkid:number} or well-known text {wkt:string} of the datum transformation to be applied to the projected geometries.
  46255. *
  46256. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ProjectParameters.html#transformation)
  46257. */
  46258. transformation: ProjectParametersTransformation;
  46259. /**
  46260. * Indicates whether to transform forward or not.
  46261. *
  46262. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ProjectParameters.html#transformForward)
  46263. */
  46264. transformForward: boolean;
  46265. /**
  46266. * Defines the projection parameters used when calling the [geometryService.project()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#project).
  46267. *
  46268. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ProjectParameters.html)
  46269. */
  46270. constructor(properties?: ProjectParametersProperties);
  46271. /**
  46272. * Converts an instance of this class to its ArcGIS portal JSON representation.
  46273. *
  46274. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ProjectParameters.html#toJSON)
  46275. */
  46276. toJSON(): any;
  46277. }
  46278. /** @deprecated Import the ProjectParameters class instead. */
  46279. export type ProjectParametersConstructor = typeof ProjectParameters;
  46280. interface ProjectParametersProperties {
  46281. /**
  46282. * The input geometries to project.
  46283. *
  46284. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ProjectParameters.html#geometries)
  46285. */
  46286. geometries?: GeometryProperties[];
  46287. /**
  46288. * The spatial reference to which you are projecting the geometries.
  46289. *
  46290. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ProjectParameters.html#outSpatialReference)
  46291. */
  46292. outSpatialReference?: SpatialReferenceProperties;
  46293. /**
  46294. * The well-known id {wkid:number} or well-known text {wkt:string} of the datum transformation to be applied to the projected geometries.
  46295. *
  46296. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ProjectParameters.html#transformation)
  46297. */
  46298. transformation?: ProjectParametersTransformation;
  46299. /**
  46300. * Indicates whether to transform forward or not.
  46301. *
  46302. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ProjectParameters.html#transformForward)
  46303. */
  46304. transformForward?: boolean;
  46305. }
  46306. export interface ProjectParametersTransformation {
  46307. /**
  46308. * The well-known ID of the datum transformation to apply to the projection.
  46309. *
  46310. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ProjectParameters.html#transformation)
  46311. */
  46312. wkid?: number;
  46313. /**
  46314. * The well-known text that defines a spatial reference.
  46315. *
  46316. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ProjectParameters.html#transformation)
  46317. */
  46318. wkt?: string;
  46319. }
  46320. export interface Query extends Accessor, JSONSupport {
  46321. }
  46322. export class Query {
  46323. /**
  46324. * An array of Object IDs representing [aggregate](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#isAggregate) (i.e.
  46325. *
  46326. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#aggregateIds)
  46327. */
  46328. aggregateIds: number[];
  46329. /**
  46330. * Indicates if the service should cache the query results.
  46331. *
  46332. * @default undefined
  46333. *
  46334. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#cacheHint)
  46335. */
  46336. cacheHint: boolean;
  46337. /**
  46338. * Datum transformation used for projecting geometries in the query results when [outSpatialReference](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#outSpatialReference) is different than the layer's spatial reference.
  46339. *
  46340. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#datumTransformation)
  46341. */
  46342. datumTransformation: number;
  46343. /**
  46344. * Specifies a search distance from a given [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#geometry) in a spatial query.
  46345. *
  46346. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#distance)
  46347. */
  46348. distance: number;
  46349. /**
  46350. * Specifies the geodatabase version to display for feature service queries.
  46351. *
  46352. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#gdbVersion)
  46353. */
  46354. gdbVersion: string;
  46355. /**
  46356. * The geometry to apply to the spatial filter.
  46357. *
  46358. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#geometry)
  46359. */
  46360. geometry: Geometry;
  46361. /**
  46362. * Specifies the number of decimal places for geometries returned by the [JSON query operation](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query.html#executeQueryJSON).
  46363. *
  46364. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#geometryPrecision)
  46365. */
  46366. geometryPrecision: number;
  46367. /**
  46368. * Used only in [statistical queries](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#statistic).
  46369. *
  46370. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#groupByFieldsForStatistics)
  46371. */
  46372. groupByFieldsForStatistics: string[];
  46373. /**
  46374. * A condition used with [outStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#outStatistics) and [groupByFieldsForStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#groupByFieldsForStatistics) to limit query results to groups that satisfy the aggregation function(s).
  46375. *
  46376. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#having)
  46377. */
  46378. having: string;
  46379. /**
  46380. * The historic moment to query.
  46381. *
  46382. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#historicMoment)
  46383. */
  46384. historicMoment: Date;
  46385. /**
  46386. * The maximum distance in units of [outSpatialReference](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#outSpatialReference) used for generalizing geometries returned by the query operation.
  46387. *
  46388. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#maxAllowableOffset)
  46389. */
  46390. maxAllowableOffset: number;
  46391. /**
  46392. * When set, the maximum number of features returned by the query will equal the `maxRecordCount` of the service multiplied by this factor.
  46393. *
  46394. * @default 1
  46395. *
  46396. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#maxRecordCountFactor)
  46397. */
  46398. maxRecordCountFactor: number;
  46399. /**
  46400. * Parameter dictates how the geometry of a multipatch feature will be returned.
  46401. *
  46402. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#multipatchOption)
  46403. */
  46404. multipatchOption: string;
  46405. /**
  46406. * The number of features to retrieve.
  46407. *
  46408. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#num)
  46409. */
  46410. num: number;
  46411. /**
  46412. * An array of ObjectIDs to be used to query for features in a layer.
  46413. *
  46414. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#objectIds)
  46415. */
  46416. objectIds: number[];
  46417. /**
  46418. * One or more field names used to order the query results.
  46419. *
  46420. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#orderByFields)
  46421. */
  46422. orderByFields: string[];
  46423. /**
  46424. * Attribute fields to include in the [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html).
  46425. *
  46426. * @default null
  46427. *
  46428. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#outFields)
  46429. */
  46430. outFields: string[];
  46431. /**
  46432. * The spatial reference for the returned geometry.
  46433. *
  46434. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#outSpatialReference)
  46435. */
  46436. outSpatialReference: SpatialReference;
  46437. /**
  46438. * The definitions for one or more field-based statistics to be calculated.
  46439. *
  46440. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#outStatistics)
  46441. */
  46442. outStatistics: StatisticDefinition[];
  46443. /**
  46444. * Filters features from the layer based on pre-authored parameterized filters.
  46445. *
  46446. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#parameterValues)
  46447. */
  46448. parameterValues: QueryParameterValues[];
  46449. /**
  46450. * Specifies the pixel level to be identified on the X and Y axis.
  46451. *
  46452. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#pixelSize)
  46453. */
  46454. pixelSize: Point;
  46455. /**
  46456. * Used to project the geometry onto a virtual grid, likely representing pixels on the screen.
  46457. *
  46458. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#quantizationParameters)
  46459. */
  46460. quantizationParameters: QueryQuantizationParameters;
  46461. /**
  46462. * Filters features from the layer that are within the specified range values.
  46463. *
  46464. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#rangeValues)
  46465. */
  46466. rangeValues: QueryRangeValues[];
  46467. /**
  46468. * The Dimensionally Extended 9 Intersection Model (DE-9IM) matrix relation (encoded as a string) to query the spatial relationship of the input [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#geometry) to the layer's features.
  46469. *
  46470. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#relationParameter)
  46471. */
  46472. relationParameter: string;
  46473. /**
  46474. * If `true`, each feature in the returned [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html) will be returned with a centroid.
  46475. *
  46476. * @default false
  46477. *
  46478. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#returnCentroid)
  46479. */
  46480. returnCentroid: boolean;
  46481. /**
  46482. * If `true` then the query returns distinct values based on the field(s) specified in [outFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#outFields).
  46483. *
  46484. * @default false
  46485. *
  46486. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#returnDistinctValues)
  46487. */
  46488. returnDistinctValues: boolean;
  46489. /**
  46490. * If `true`, then all features are returned for each tile request, even if they exceed the maximum record limit per query indicated on the service by `maxRecordCount`.
  46491. *
  46492. * @default true
  46493. *
  46494. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#returnExceededLimitFeatures)
  46495. */
  46496. returnExceededLimitFeatures: boolean;
  46497. /**
  46498. * If `true`, each feature in the returned [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html) includes the geometry.
  46499. *
  46500. * @default false
  46501. *
  46502. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#returnGeometry)
  46503. */
  46504. returnGeometry: boolean;
  46505. /**
  46506. * If `true`, and [returnGeometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#returnGeometry) is `true`, then m-values are included in the geometry.
  46507. *
  46508. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#returnM)
  46509. */
  46510. returnM: boolean;
  46511. /**
  46512. * If `true`, the [query geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html#queryGeometry) will be returned with the query results.
  46513. *
  46514. * @default false
  46515. *
  46516. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#returnQueryGeometry)
  46517. */
  46518. returnQueryGeometry: boolean;
  46519. /**
  46520. * If `true`, and [returnGeometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#returnGeometry) is `true`, then z-values are included in the geometry.
  46521. *
  46522. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#returnZ)
  46523. */
  46524. returnZ: boolean;
  46525. /**
  46526. * For spatial queries, this parameter defines the spatial relationship to query features in the layer or layer view against the input [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#geometry).
  46527. *
  46528. * @default intersects
  46529. *
  46530. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#spatialRelationship)
  46531. */
  46532. spatialRelationship: | "intersects"
  46533. | "contains"
  46534. | "crosses"
  46535. | "disjoint"
  46536. | "envelope-intersects"
  46537. | "index-intersects"
  46538. | "overlaps"
  46539. | "touches"
  46540. | "within"
  46541. | "relation";
  46542. /**
  46543. * This parameter can be either standard SQL92 `standard` or it can use the native SQL of the underlying datastore `native`.
  46544. *
  46545. * @default none
  46546. *
  46547. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#sqlFormat)
  46548. */
  46549. sqlFormat: "none" | "standard" | "native";
  46550. /**
  46551. * The zero-based index indicating where to begin retrieving features.
  46552. *
  46553. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#start)
  46554. */
  46555. start: number;
  46556. /**
  46557. * Shorthand for a where clause using "like".
  46558. *
  46559. * @default null
  46560. *
  46561. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#text)
  46562. */
  46563. text: string;
  46564. /**
  46565. * A time extent for a temporal query against [time-aware layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#timeInfo).
  46566. *
  46567. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#timeExtent)
  46568. */
  46569. timeExtent: TimeExtent;
  46570. /**
  46571. * The unit for calculating the buffer distance when [distance](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#distance) is specified in spatial queries.
  46572. *
  46573. * @default null
  46574. *
  46575. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#units)
  46576. */
  46577. units: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers";
  46578. /**
  46579. * A where clause for the query.
  46580. *
  46581. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#where)
  46582. */
  46583. where: string;
  46584. /**
  46585. * This class defines parameters for executing queries for features from a layer or layer view.
  46586. *
  46587. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html)
  46588. */
  46589. constructor(properties?: QueryProperties);
  46590. /**
  46591. * Creates a deep clone of Query object.
  46592. *
  46593. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#clone)
  46594. */
  46595. clone(): Query;
  46596. static fromJSON(json: any): Query;
  46597. }
  46598. /** @deprecated Import the Query class instead. */
  46599. export type QueryConstructor = typeof Query;
  46600. interface QueryProperties {
  46601. /**
  46602. * An array of Object IDs representing [aggregate](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#isAggregate) (i.e.
  46603. *
  46604. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#aggregateIds)
  46605. */
  46606. aggregateIds?: number[];
  46607. /**
  46608. * Indicates if the service should cache the query results.
  46609. *
  46610. * @default undefined
  46611. *
  46612. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#cacheHint)
  46613. */
  46614. cacheHint?: boolean;
  46615. /**
  46616. * Datum transformation used for projecting geometries in the query results when [outSpatialReference](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#outSpatialReference) is different than the layer's spatial reference.
  46617. *
  46618. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#datumTransformation)
  46619. */
  46620. datumTransformation?: number;
  46621. /**
  46622. * Specifies a search distance from a given [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#geometry) in a spatial query.
  46623. *
  46624. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#distance)
  46625. */
  46626. distance?: number;
  46627. /**
  46628. * Specifies the geodatabase version to display for feature service queries.
  46629. *
  46630. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#gdbVersion)
  46631. */
  46632. gdbVersion?: string;
  46633. /**
  46634. * The geometry to apply to the spatial filter.
  46635. *
  46636. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#geometry)
  46637. */
  46638. geometry?: GeometryProperties;
  46639. /**
  46640. * Specifies the number of decimal places for geometries returned by the [JSON query operation](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query.html#executeQueryJSON).
  46641. *
  46642. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#geometryPrecision)
  46643. */
  46644. geometryPrecision?: number;
  46645. /**
  46646. * Used only in [statistical queries](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#statistic).
  46647. *
  46648. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#groupByFieldsForStatistics)
  46649. */
  46650. groupByFieldsForStatistics?: string[];
  46651. /**
  46652. * A condition used with [outStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#outStatistics) and [groupByFieldsForStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#groupByFieldsForStatistics) to limit query results to groups that satisfy the aggregation function(s).
  46653. *
  46654. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#having)
  46655. */
  46656. having?: string;
  46657. /**
  46658. * The historic moment to query.
  46659. *
  46660. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#historicMoment)
  46661. */
  46662. historicMoment?: DateProperties;
  46663. /**
  46664. * The maximum distance in units of [outSpatialReference](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#outSpatialReference) used for generalizing geometries returned by the query operation.
  46665. *
  46666. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#maxAllowableOffset)
  46667. */
  46668. maxAllowableOffset?: number;
  46669. /**
  46670. * When set, the maximum number of features returned by the query will equal the `maxRecordCount` of the service multiplied by this factor.
  46671. *
  46672. * @default 1
  46673. *
  46674. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#maxRecordCountFactor)
  46675. */
  46676. maxRecordCountFactor?: number;
  46677. /**
  46678. * Parameter dictates how the geometry of a multipatch feature will be returned.
  46679. *
  46680. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#multipatchOption)
  46681. */
  46682. multipatchOption?: string;
  46683. /**
  46684. * The number of features to retrieve.
  46685. *
  46686. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#num)
  46687. */
  46688. num?: number;
  46689. /**
  46690. * An array of ObjectIDs to be used to query for features in a layer.
  46691. *
  46692. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#objectIds)
  46693. */
  46694. objectIds?: number[];
  46695. /**
  46696. * One or more field names used to order the query results.
  46697. *
  46698. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#orderByFields)
  46699. */
  46700. orderByFields?: string[];
  46701. /**
  46702. * Attribute fields to include in the [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html).
  46703. *
  46704. * @default null
  46705. *
  46706. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#outFields)
  46707. */
  46708. outFields?: string[];
  46709. /**
  46710. * The spatial reference for the returned geometry.
  46711. *
  46712. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#outSpatialReference)
  46713. */
  46714. outSpatialReference?: SpatialReferenceProperties;
  46715. /**
  46716. * The definitions for one or more field-based statistics to be calculated.
  46717. *
  46718. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#outStatistics)
  46719. */
  46720. outStatistics?: StatisticDefinitionProperties[];
  46721. /**
  46722. * Filters features from the layer based on pre-authored parameterized filters.
  46723. *
  46724. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#parameterValues)
  46725. */
  46726. parameterValues?: QueryParameterValues[];
  46727. /**
  46728. * Specifies the pixel level to be identified on the X and Y axis.
  46729. *
  46730. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#pixelSize)
  46731. */
  46732. pixelSize?: PointProperties;
  46733. /**
  46734. * Used to project the geometry onto a virtual grid, likely representing pixels on the screen.
  46735. *
  46736. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#quantizationParameters)
  46737. */
  46738. quantizationParameters?: QueryQuantizationParameters;
  46739. /**
  46740. * Filters features from the layer that are within the specified range values.
  46741. *
  46742. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#rangeValues)
  46743. */
  46744. rangeValues?: QueryRangeValues[];
  46745. /**
  46746. * The Dimensionally Extended 9 Intersection Model (DE-9IM) matrix relation (encoded as a string) to query the spatial relationship of the input [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#geometry) to the layer's features.
  46747. *
  46748. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#relationParameter)
  46749. */
  46750. relationParameter?: string;
  46751. /**
  46752. * If `true`, each feature in the returned [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html) will be returned with a centroid.
  46753. *
  46754. * @default false
  46755. *
  46756. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#returnCentroid)
  46757. */
  46758. returnCentroid?: boolean;
  46759. /**
  46760. * If `true` then the query returns distinct values based on the field(s) specified in [outFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#outFields).
  46761. *
  46762. * @default false
  46763. *
  46764. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#returnDistinctValues)
  46765. */
  46766. returnDistinctValues?: boolean;
  46767. /**
  46768. * If `true`, then all features are returned for each tile request, even if they exceed the maximum record limit per query indicated on the service by `maxRecordCount`.
  46769. *
  46770. * @default true
  46771. *
  46772. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#returnExceededLimitFeatures)
  46773. */
  46774. returnExceededLimitFeatures?: boolean;
  46775. /**
  46776. * If `true`, each feature in the returned [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html) includes the geometry.
  46777. *
  46778. * @default false
  46779. *
  46780. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#returnGeometry)
  46781. */
  46782. returnGeometry?: boolean;
  46783. /**
  46784. * If `true`, and [returnGeometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#returnGeometry) is `true`, then m-values are included in the geometry.
  46785. *
  46786. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#returnM)
  46787. */
  46788. returnM?: boolean;
  46789. /**
  46790. * If `true`, the [query geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html#queryGeometry) will be returned with the query results.
  46791. *
  46792. * @default false
  46793. *
  46794. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#returnQueryGeometry)
  46795. */
  46796. returnQueryGeometry?: boolean;
  46797. /**
  46798. * If `true`, and [returnGeometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#returnGeometry) is `true`, then z-values are included in the geometry.
  46799. *
  46800. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#returnZ)
  46801. */
  46802. returnZ?: boolean;
  46803. /**
  46804. * For spatial queries, this parameter defines the spatial relationship to query features in the layer or layer view against the input [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#geometry).
  46805. *
  46806. * @default intersects
  46807. *
  46808. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#spatialRelationship)
  46809. */
  46810. spatialRelationship?: | "intersects"
  46811. | "contains"
  46812. | "crosses"
  46813. | "disjoint"
  46814. | "envelope-intersects"
  46815. | "index-intersects"
  46816. | "overlaps"
  46817. | "touches"
  46818. | "within"
  46819. | "relation";
  46820. /**
  46821. * This parameter can be either standard SQL92 `standard` or it can use the native SQL of the underlying datastore `native`.
  46822. *
  46823. * @default none
  46824. *
  46825. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#sqlFormat)
  46826. */
  46827. sqlFormat?: "none" | "standard" | "native";
  46828. /**
  46829. * The zero-based index indicating where to begin retrieving features.
  46830. *
  46831. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#start)
  46832. */
  46833. start?: number;
  46834. /**
  46835. * Shorthand for a where clause using "like".
  46836. *
  46837. * @default null
  46838. *
  46839. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#text)
  46840. */
  46841. text?: string;
  46842. /**
  46843. * A time extent for a temporal query against [time-aware layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#timeInfo).
  46844. *
  46845. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#timeExtent)
  46846. */
  46847. timeExtent?: TimeExtentProperties;
  46848. /**
  46849. * The unit for calculating the buffer distance when [distance](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#distance) is specified in spatial queries.
  46850. *
  46851. * @default null
  46852. *
  46853. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#units)
  46854. */
  46855. units?: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers";
  46856. /**
  46857. * A where clause for the query.
  46858. *
  46859. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#where)
  46860. */
  46861. where?: string;
  46862. }
  46863. export interface QueryParameterValues {
  46864. /**
  46865. * The parameter name.
  46866. *
  46867. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#parameterValues)
  46868. */
  46869. name: string;
  46870. /**
  46871. * Single value or array of values.
  46872. *
  46873. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#parameterValues)
  46874. */
  46875. value: string | string[] | number | number[] | Date | Date[];
  46876. }
  46877. export interface QueryQuantizationParameters {
  46878. /**
  46879. * An extent defining the quantization grid bounds.
  46880. *
  46881. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#quantizationParameters)
  46882. */
  46883. extent?: Extent;
  46884. /**
  46885. * Geometry coordinates are optimized for viewing and displaying of data.
  46886. *
  46887. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#quantizationParameters)
  46888. */
  46889. mode?: "view" | "edit";
  46890. /**
  46891. * The integer's coordinates will be returned relative to the origin position defined by this property value.
  46892. *
  46893. * @default upper-left
  46894. *
  46895. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#quantizationParameters)
  46896. */
  46897. originPosition?: "upper-left" | "lower-left";
  46898. /**
  46899. * The size of one pixel in the units of the [outSpatialReference](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#outSpatialReference).
  46900. *
  46901. * @default 1
  46902. *
  46903. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#quantizationParameters)
  46904. */
  46905. tolerance?: number;
  46906. }
  46907. export interface QueryRangeValues {
  46908. /**
  46909. * The range id.
  46910. *
  46911. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#rangeValues)
  46912. */
  46913. name: string;
  46914. /**
  46915. * Single value or value range.
  46916. *
  46917. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html#rangeValues)
  46918. */
  46919. values: number | number[];
  46920. }
  46921. export interface RasterData extends Accessor, JSONSupport {
  46922. }
  46923. export class RasterData {
  46924. /**
  46925. * Specifies the format of the raster data, such as "jpg", "tif", etc.
  46926. *
  46927. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RasterData.html#format)
  46928. */
  46929. format: string;
  46930. /**
  46931. * The ID of the uploaded file returned as a result of the upload operation.
  46932. *
  46933. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RasterData.html#itemId)
  46934. */
  46935. itemId: string;
  46936. /**
  46937. * URL to the location of the raster data file.
  46938. *
  46939. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RasterData.html#url)
  46940. */
  46941. url: string;
  46942. /**
  46943. * A geoprocessing data object containing a raster data source.
  46944. *
  46945. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RasterData.html)
  46946. */
  46947. constructor(properties?: RasterDataProperties);
  46948. static fromJSON(json: any): RasterData;
  46949. }
  46950. /** @deprecated Import the RasterData class instead. */
  46951. export type RasterDataConstructor = typeof RasterData;
  46952. interface RasterDataProperties {
  46953. /**
  46954. * Specifies the format of the raster data, such as "jpg", "tif", etc.
  46955. *
  46956. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RasterData.html#format)
  46957. */
  46958. format?: string;
  46959. /**
  46960. * The ID of the uploaded file returned as a result of the upload operation.
  46961. *
  46962. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RasterData.html#itemId)
  46963. */
  46964. itemId?: string;
  46965. /**
  46966. * URL to the location of the raster data file.
  46967. *
  46968. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RasterData.html#url)
  46969. */
  46970. url?: string;
  46971. }
  46972. export interface RelationParameters extends Accessor, JSONSupport {
  46973. }
  46974. export class RelationParameters {
  46975. /**
  46976. * The first array of geometries to compute the relation.
  46977. *
  46978. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationParameters.html#geometries1)
  46979. */
  46980. geometries1: Geometry[];
  46981. /**
  46982. * The second array of geometries to compute the relation.
  46983. *
  46984. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationParameters.html#geometries2)
  46985. */
  46986. geometries2: Geometry[];
  46987. /**
  46988. * The spatial relationship to be tested between the two input geometry arrays.
  46989. *
  46990. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationParameters.html#relation)
  46991. */
  46992. relation: | "cross"
  46993. | "disjoint"
  46994. | "in"
  46995. | "interior-intersection"
  46996. | "intersection"
  46997. | "line-coincidence"
  46998. | "line-touch"
  46999. | "overlap"
  47000. | "point-touch"
  47001. | "relation"
  47002. | "touch"
  47003. | "within";
  47004. /**
  47005. * The string describes the spatial relationship to be tested when `RelationParameters.relation = 'relation'`.
  47006. *
  47007. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationParameters.html#relationParameter)
  47008. */
  47009. relationParameter: string;
  47010. /**
  47011. * Sets the relation and other parameters for the [geometryService.relation()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#relation) operation.
  47012. *
  47013. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationParameters.html)
  47014. */
  47015. constructor(properties?: RelationParametersProperties);
  47016. static fromJSON(json: any): RelationParameters;
  47017. }
  47018. /** @deprecated Import the RelationParameters class instead. */
  47019. export type RelationParametersConstructor = typeof RelationParameters;
  47020. interface RelationParametersProperties {
  47021. /**
  47022. * The first array of geometries to compute the relation.
  47023. *
  47024. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationParameters.html#geometries1)
  47025. */
  47026. geometries1?: GeometryProperties[];
  47027. /**
  47028. * The second array of geometries to compute the relation.
  47029. *
  47030. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationParameters.html#geometries2)
  47031. */
  47032. geometries2?: GeometryProperties[];
  47033. /**
  47034. * The spatial relationship to be tested between the two input geometry arrays.
  47035. *
  47036. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationParameters.html#relation)
  47037. */
  47038. relation?: | "cross"
  47039. | "disjoint"
  47040. | "in"
  47041. | "interior-intersection"
  47042. | "intersection"
  47043. | "line-coincidence"
  47044. | "line-touch"
  47045. | "overlap"
  47046. | "point-touch"
  47047. | "relation"
  47048. | "touch"
  47049. | "within";
  47050. /**
  47051. * The string describes the spatial relationship to be tested when `RelationParameters.relation = 'relation'`.
  47052. *
  47053. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationParameters.html#relationParameter)
  47054. */
  47055. relationParameter?: string;
  47056. }
  47057. export interface RelationshipQuery extends Accessor, JSONSupport {
  47058. }
  47059. export class RelationshipQuery {
  47060. /**
  47061. * Indicates if the service should cache the relationship query results.
  47062. *
  47063. * @default undefined
  47064. *
  47065. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#cacheHint)
  47066. */
  47067. cacheHint: boolean;
  47068. /**
  47069. * Specify the geodatabase version to query.
  47070. *
  47071. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#gdbVersion)
  47072. */
  47073. gdbVersion: string;
  47074. /**
  47075. * Specify the number of decimal places for the geometries returned by the query operation.
  47076. *
  47077. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#geometryPrecision)
  47078. */
  47079. geometryPrecision: number;
  47080. /**
  47081. * The historic moment to query.
  47082. *
  47083. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#historicMoment)
  47084. */
  47085. historicMoment: Date;
  47086. /**
  47087. * The maximum allowable offset used for generalizing geometries returned by the query operation.
  47088. *
  47089. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#maxAllowableOffset)
  47090. */
  47091. maxAllowableOffset: number;
  47092. /**
  47093. * The number of features to retrieve.
  47094. *
  47095. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#num)
  47096. */
  47097. num: number;
  47098. /**
  47099. * An array of objectIds for the features in the layer/table being queried.
  47100. *
  47101. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#objectIds)
  47102. */
  47103. objectIds: number[];
  47104. /**
  47105. * One or more field names used to order the query results.
  47106. *
  47107. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#orderByFields)
  47108. */
  47109. orderByFields: string[];
  47110. /**
  47111. * Attribute fields to include in the FeatureSet.
  47112. *
  47113. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#outFields)
  47114. */
  47115. outFields: string[];
  47116. /**
  47117. * The spatial reference for the returned geometry.
  47118. *
  47119. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#outSpatialReference)
  47120. */
  47121. outSpatialReference: SpatialReference;
  47122. /**
  47123. * The ID of the relationship to be queried.
  47124. *
  47125. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#relationshipId)
  47126. */
  47127. relationshipId: number;
  47128. /**
  47129. * If `true`, each feature in the [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html) includes the geometry.
  47130. *
  47131. * @default false
  47132. *
  47133. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#returnGeometry)
  47134. */
  47135. returnGeometry: boolean;
  47136. /**
  47137. * If `true`, and [returnGeometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#returnGeometry) is `true`, then m-values are included in the geometry.
  47138. *
  47139. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#returnM)
  47140. */
  47141. returnM: boolean;
  47142. /**
  47143. * If `true`, and [returnGeometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#returnGeometry) is `true`, then z-values are included in the geometry.
  47144. *
  47145. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#returnZ)
  47146. */
  47147. returnZ: boolean;
  47148. /**
  47149. * The zero-based index indicating where to begin retrieving features.
  47150. *
  47151. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#start)
  47152. */
  47153. start: number;
  47154. /**
  47155. * The definition expression to be applied to the related table or layer.
  47156. *
  47157. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#where)
  47158. */
  47159. where: string;
  47160. /**
  47161. * This class defines parameters for executing queries for related records from a layer.
  47162. *
  47163. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html)
  47164. */
  47165. constructor(properties?: RelationshipQueryProperties);
  47166. /**
  47167. * Creates a deep clone of RelationshipQuery object.
  47168. *
  47169. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#clone)
  47170. */
  47171. clone(): RelationshipQuery;
  47172. static fromJSON(json: any): RelationshipQuery;
  47173. }
  47174. /** @deprecated Import the RelationshipQuery class instead. */
  47175. export type RelationshipQueryConstructor = typeof RelationshipQuery;
  47176. interface RelationshipQueryProperties {
  47177. /**
  47178. * Indicates if the service should cache the relationship query results.
  47179. *
  47180. * @default undefined
  47181. *
  47182. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#cacheHint)
  47183. */
  47184. cacheHint?: boolean;
  47185. /**
  47186. * Specify the geodatabase version to query.
  47187. *
  47188. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#gdbVersion)
  47189. */
  47190. gdbVersion?: string;
  47191. /**
  47192. * Specify the number of decimal places for the geometries returned by the query operation.
  47193. *
  47194. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#geometryPrecision)
  47195. */
  47196. geometryPrecision?: number;
  47197. /**
  47198. * The historic moment to query.
  47199. *
  47200. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#historicMoment)
  47201. */
  47202. historicMoment?: DateProperties;
  47203. /**
  47204. * The maximum allowable offset used for generalizing geometries returned by the query operation.
  47205. *
  47206. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#maxAllowableOffset)
  47207. */
  47208. maxAllowableOffset?: number;
  47209. /**
  47210. * The number of features to retrieve.
  47211. *
  47212. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#num)
  47213. */
  47214. num?: number;
  47215. /**
  47216. * An array of objectIds for the features in the layer/table being queried.
  47217. *
  47218. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#objectIds)
  47219. */
  47220. objectIds?: number[];
  47221. /**
  47222. * One or more field names used to order the query results.
  47223. *
  47224. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#orderByFields)
  47225. */
  47226. orderByFields?: string[];
  47227. /**
  47228. * Attribute fields to include in the FeatureSet.
  47229. *
  47230. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#outFields)
  47231. */
  47232. outFields?: string[];
  47233. /**
  47234. * The spatial reference for the returned geometry.
  47235. *
  47236. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#outSpatialReference)
  47237. */
  47238. outSpatialReference?: SpatialReferenceProperties;
  47239. /**
  47240. * The ID of the relationship to be queried.
  47241. *
  47242. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#relationshipId)
  47243. */
  47244. relationshipId?: number;
  47245. /**
  47246. * If `true`, each feature in the [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html) includes the geometry.
  47247. *
  47248. * @default false
  47249. *
  47250. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#returnGeometry)
  47251. */
  47252. returnGeometry?: boolean;
  47253. /**
  47254. * If `true`, and [returnGeometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#returnGeometry) is `true`, then m-values are included in the geometry.
  47255. *
  47256. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#returnM)
  47257. */
  47258. returnM?: boolean;
  47259. /**
  47260. * If `true`, and [returnGeometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#returnGeometry) is `true`, then z-values are included in the geometry.
  47261. *
  47262. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#returnZ)
  47263. */
  47264. returnZ?: boolean;
  47265. /**
  47266. * The zero-based index indicating where to begin retrieving features.
  47267. *
  47268. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#start)
  47269. */
  47270. start?: number;
  47271. /**
  47272. * The definition expression to be applied to the related table or layer.
  47273. *
  47274. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RelationshipQuery.html#where)
  47275. */
  47276. where?: string;
  47277. }
  47278. export interface RouteInfo extends Accessor, JSONSupport {
  47279. }
  47280. export class RouteInfo {
  47281. /**
  47282. * The end time of the route.
  47283. *
  47284. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteInfo.html#endTime)
  47285. */
  47286. endTime: Date;
  47287. /**
  47288. * The local time offset (in minutes) for the end time.
  47289. *
  47290. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteInfo.html#endTimeOffset)
  47291. */
  47292. endTimeOffset: number;
  47293. /**
  47294. * Polyline representing the route's geometry.
  47295. *
  47296. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteInfo.html#geometry)
  47297. */
  47298. geometry: Polyline;
  47299. /**
  47300. * User specified route name.
  47301. *
  47302. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteInfo.html#name)
  47303. */
  47304. name: string;
  47305. /**
  47306. * The start time of the route.
  47307. *
  47308. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteInfo.html#startTime)
  47309. */
  47310. startTime: Date;
  47311. /**
  47312. * The local time offset (in minutes) for the start time.
  47313. *
  47314. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteInfo.html#startTimeOffset)
  47315. */
  47316. startTimeOffset: number;
  47317. /**
  47318. * Total distance traveled in meters.
  47319. *
  47320. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteInfo.html#totalDistance)
  47321. */
  47322. totalDistance: number;
  47323. /**
  47324. * Total time in minutes.
  47325. *
  47326. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteInfo.html#totalDuration)
  47327. */
  47328. totalDuration: number;
  47329. readonly type: "route-info";
  47330. /**
  47331. * A RouteInfo contains information about a solved route including the routes geometry and overall distance and time.
  47332. *
  47333. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteInfo.html)
  47334. */
  47335. constructor(properties?: RouteInfoProperties);
  47336. /**
  47337. * Creates a [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) from the [RouteInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteInfo.html) instance.
  47338. *
  47339. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteInfo.html#toGraphic)
  47340. */
  47341. toGraphic(): Graphic;
  47342. /**
  47343. * Creates a [RouteInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteInfo.html) from the parsed [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html).
  47344. *
  47345. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteInfo.html#fromGraphic)
  47346. */
  47347. static fromGraphic(graphic?: Graphic): RouteInfo;
  47348. static fromJSON(json: any): RouteInfo;
  47349. }
  47350. /** @deprecated Import the RouteInfo class instead. */
  47351. export type RouteInfoConstructor = typeof RouteInfo;
  47352. interface RouteInfoProperties {
  47353. /**
  47354. * The end time of the route.
  47355. *
  47356. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteInfo.html#endTime)
  47357. */
  47358. endTime?: DateProperties;
  47359. /**
  47360. * The local time offset (in minutes) for the end time.
  47361. *
  47362. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteInfo.html#endTimeOffset)
  47363. */
  47364. endTimeOffset?: number;
  47365. /**
  47366. * Polyline representing the route's geometry.
  47367. *
  47368. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteInfo.html#geometry)
  47369. */
  47370. geometry?: PolylineProperties;
  47371. /**
  47372. * User specified route name.
  47373. *
  47374. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteInfo.html#name)
  47375. */
  47376. name?: string;
  47377. /**
  47378. * The start time of the route.
  47379. *
  47380. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteInfo.html#startTime)
  47381. */
  47382. startTime?: DateProperties;
  47383. /**
  47384. * The local time offset (in minutes) for the start time.
  47385. *
  47386. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteInfo.html#startTimeOffset)
  47387. */
  47388. startTimeOffset?: number;
  47389. /**
  47390. * Total distance traveled in meters.
  47391. *
  47392. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteInfo.html#totalDistance)
  47393. */
  47394. totalDistance?: number;
  47395. /**
  47396. * Total time in minutes.
  47397. *
  47398. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteInfo.html#totalDuration)
  47399. */
  47400. totalDuration?: number;
  47401. }
  47402. export interface RouteParameters extends Accessor, JSONSupport {
  47403. }
  47404. export class RouteParameters {
  47405. /**
  47406. * Use this property to specify whether the operation should accumulate values other than the value specified for [impedanceAttribute](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#impedanceAttribute).
  47407. *
  47408. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#accumulateAttributes)
  47409. */
  47410. accumulateAttributes: (
  47411. | "kilometers"
  47412. | "miles"
  47413. | "minutes"
  47414. | "travel-time"
  47415. | "truck-minutes"
  47416. | "truck-travel-time"
  47417. | "walk-time"
  47418. | string
  47419. )[];
  47420. /**
  47421. * An authorization string used to access a resource or service.
  47422. *
  47423. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#apiKey)
  47424. */
  47425. apiKey: string;
  47426. /**
  47427. * Use this property to specify additional values required by an attribute or restriction, such as to specify whether the restriction prohibits, avoids, or prefers travel on restricted roads.
  47428. *
  47429. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#attributeParameterValues)
  47430. */
  47431. attributeParameterValues: RouteParametersAttributeParameterValue[];
  47432. /**
  47433. * The language that will be used when generating travel directions.
  47434. *
  47435. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#directionsLanguage)
  47436. */
  47437. directionsLanguage: string;
  47438. /**
  47439. * Specify the units for displaying travel distance in the driving directions.
  47440. *
  47441. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#directionsLengthUnits)
  47442. */
  47443. directionsLengthUnits: | "centimeters"
  47444. | "decimal-degrees"
  47445. | "decimeters"
  47446. | "feet"
  47447. | "inches"
  47448. | "kilometers"
  47449. | "meters"
  47450. | "miles"
  47451. | "millimeters"
  47452. | "nautical-miles"
  47453. | "points"
  47454. | "yards";
  47455. /**
  47456. * Define the content and verbosity of the driving directions.
  47457. *
  47458. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#directionsOutputType)
  47459. */
  47460. directionsOutputType: | "complete"
  47461. | "complete-no-events"
  47462. | "featuresets"
  47463. | "instructions-only"
  47464. | "standard"
  47465. | "summary-only";
  47466. /**
  47467. * Specify the name of the formatting style for the directions.
  47468. *
  47469. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#directionsStyleName)
  47470. */
  47471. directionsStyleName: "desktop" | "navigation" | "campus";
  47472. /**
  47473. * Set the time-based impedance attribute to display the duration of a maneuver, such as "Go northwest on Alvorado St.
  47474. *
  47475. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#directionsTimeAttribute)
  47476. */
  47477. directionsTimeAttribute: "travel-time" | "truck-travel-time" | "walk-time" | "minutes" | "truck-time" | string;
  47478. /**
  47479. * Use this property to specify whether the operation should reorder stops to find the optimized route.
  47480. *
  47481. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#findBestSequence)
  47482. */
  47483. findBestSequence: boolean;
  47484. /**
  47485. * Use this property to specify the number of decimal places in the response geometries returned by solve operation.
  47486. *
  47487. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#geometryPrecision)
  47488. */
  47489. geometryPrecision: number;
  47490. /**
  47491. * Use this property to specify the number of decimal places in the response geometries returned by solve operation.
  47492. *
  47493. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#geometryPrecisionM)
  47494. */
  47495. geometryPrecisionM: number;
  47496. /**
  47497. * Use this property to specify the number of decimal places in the response geometries returned by a solve operation.
  47498. *
  47499. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#geometryPrecisionZ)
  47500. */
  47501. geometryPrecisionZ: number;
  47502. /**
  47503. * Specify whether invalid input locations should be ignored when finding the best solution.
  47504. *
  47505. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#ignoreInvalidLocations)
  47506. */
  47507. ignoreInvalidLocations: boolean;
  47508. /**
  47509. * Specifies the impedance.
  47510. *
  47511. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#impedanceAttribute)
  47512. */
  47513. impedanceAttribute: | "kilometers"
  47514. | "miles"
  47515. | "minutes"
  47516. | "travel-time"
  47517. | "truck-minutes"
  47518. | "truck-travel-time"
  47519. | "walk-time"
  47520. | string;
  47521. /**
  47522. * Use this property to specify by how much you want to simplify the route geometry returned by the operation.
  47523. *
  47524. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#outputGeometryPrecision)
  47525. */
  47526. outputGeometryPrecision: number;
  47527. /**
  47528. * Use this property to specify the units for the value specified for the [outputGeometryPrecision](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#outputGeometryPrecision) parameter.
  47529. *
  47530. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#outputGeometryPrecisionUnits)
  47531. */
  47532. outputGeometryPrecisionUnits: | "centimeters"
  47533. | "decimal-degrees"
  47534. | "decimeters"
  47535. | "feet"
  47536. | "inches"
  47537. | "kilometers"
  47538. | "meters"
  47539. | "miles"
  47540. | "millimeters"
  47541. | "nautical-miles"
  47542. | "points"
  47543. | "yards";
  47544. /**
  47545. * Use this property to specify the type of route features that are output by the operation.
  47546. *
  47547. * @default "true-shape"
  47548. *
  47549. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#outputLines)
  47550. */
  47551. outputLines: "none" | "straight" | "true-shape" | "true-shape-with-measure";
  47552. /**
  47553. * Use this property to specify the spatial reference of the geometries, such as line or point features, returned by a solve operation.
  47554. *
  47555. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#outSpatialReference)
  47556. */
  47557. outSpatialReference: SpatialReference;
  47558. /**
  47559. * Specify additional settings that can influence the behavior of the solver when finding solutions for the network analysis problems.
  47560. *
  47561. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#overrides)
  47562. */
  47563. overrides: any;
  47564. /**
  47565. * Use this property to specify one or more points that will act as temporary restrictions or represent additional time or distance that may be required to travel on the underlying streets.
  47566. *
  47567. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#pointBarriers)
  47568. */
  47569. pointBarriers: Collection<PointBarrier> | DataLayer | FeatureSet | NetworkFeatureSet | NetworkUrl;
  47570. /**
  47571. * Use this property to specify polygons that either completely restrict travel or proportionately scale the time or distance required to travel on the streets intersected by the polygons.
  47572. *
  47573. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#polygonBarriers)
  47574. */
  47575. polygonBarriers: Collection<PolygonBarrier> | DataLayer | FeatureSet | NetworkFeatureSet | NetworkUrl;
  47576. /**
  47577. * Use this property to specify one or more lines that prohibit travel anywhere the lines intersect the streets.
  47578. *
  47579. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#polylineBarriers)
  47580. */
  47581. polylineBarriers: Collection<PolylineBarrier> | DataLayer | FeatureSet | NetworkFeatureSet | NetworkUrl;
  47582. /**
  47583. * Use this property to indicate whether the operation should keep the first stop fixed when reordering the [stops](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#stops).
  47584. *
  47585. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#preserveFirstStop)
  47586. */
  47587. preserveFirstStop: boolean;
  47588. /**
  47589. * Use this property to indicate whether the operation should keep the last stop fixed when reordering the [stops](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#stops).
  47590. *
  47591. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#preserveLastStop)
  47592. */
  47593. preserveLastStop: boolean;
  47594. /**
  47595. * Use this property to specify if the Object IDs specified for input locations such as stops or barriers should be preserved when the input locations are returned as output.
  47596. *
  47597. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#preserveObjectID)
  47598. */
  47599. preserveObjectID: boolean;
  47600. /**
  47601. * Use this property to specify which restrictions should be honored by the operation.
  47602. *
  47603. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#restrictionAttributes)
  47604. */
  47605. restrictionAttributes: (
  47606. | "any-hazmat-prohibited"
  47607. | "avoid-carpool-roads"
  47608. | "avoid-express-lanes"
  47609. | "avoid-ferries"
  47610. | "avoid-gates"
  47611. | "avoid-limited-access-roads"
  47612. | "avoid-private-roads"
  47613. | "avoid-roads-unsuitable-for-pedestrians"
  47614. | "avoid-stairways"
  47615. | "avoid-toll-roads"
  47616. | "avoid-toll-roads-for-trucks"
  47617. | "avoid-truck-restricted-roads"
  47618. | "avoid-unpaved-roads"
  47619. | "axle-count-restriction"
  47620. | "driving-a-bus"
  47621. | "driving-a-taxi"
  47622. | "driving-a-truck"
  47623. | "driving-an-automobile"
  47624. | "driving-an-emergency-vehicle"
  47625. | "height-restriction"
  47626. | "kingpin-to-rear-axle-length-restriction"
  47627. | "length-restriction"
  47628. | "preferred-for-pedestrians"
  47629. | "riding-a-motorcycle"
  47630. | "roads-under-construction-prohibited"
  47631. | "semi-or-tractor-with-one-or-more-trailers-prohibited"
  47632. | "single-axle-vehicles-prohibited"
  47633. | "tandem-axle-vehicles-prohibited"
  47634. | "through-traffic-prohibited"
  47635. | "truck-with-trailers-restriction"
  47636. | "use-preferred-hazmat-routes"
  47637. | "use-preferred-truck-routes"
  47638. | "walking"
  47639. | "weight-restriction"
  47640. | string
  47641. )[];
  47642. /**
  47643. * Use this property to restrict or permit the route from making U-turns at junctions.
  47644. *
  47645. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#restrictUTurns)
  47646. */
  47647. restrictUTurns: "allow-backtrack" | "at-dead-ends-only" | "no-backtrack" | "at-dead-ends-and-intersections";
  47648. /**
  47649. * Specify whether [point barriers](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#pointBarriers) will be returned by the routing operation.
  47650. *
  47651. * @default false
  47652. *
  47653. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#returnBarriers)
  47654. */
  47655. returnBarriers: boolean;
  47656. /**
  47657. * Specify whether the operation should generate driving directions for each route.
  47658. *
  47659. * @default false
  47660. *
  47661. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#returnDirections)
  47662. */
  47663. returnDirections: boolean;
  47664. /**
  47665. * Specify whether [polygon barriers](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#polygonBarriers) will be returned by the routing operation.
  47666. *
  47667. * @default false
  47668. *
  47669. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#returnPolygonBarriers)
  47670. */
  47671. returnPolygonBarriers: boolean;
  47672. /**
  47673. * Specify whether [polyline barriers](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#polylineBarriers) will be returned by the routing operation.
  47674. *
  47675. * @default false
  47676. *
  47677. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#returnPolylineBarriers)
  47678. */
  47679. returnPolylineBarriers: boolean;
  47680. /**
  47681. * Use this property to specify if the operation should return routes.
  47682. *
  47683. * @default true
  47684. *
  47685. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#returnRoutes)
  47686. */
  47687. returnRoutes: boolean;
  47688. /**
  47689. * Use this property to specify whether [stops](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#stops) will be returned by the routing operation.
  47690. *
  47691. * @default false
  47692. *
  47693. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#returnStops)
  47694. */
  47695. returnStops: boolean;
  47696. /**
  47697. * Specify whether traversed edges will be returned by the operation.
  47698. *
  47699. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#returnTraversedEdges)
  47700. */
  47701. returnTraversedEdges: boolean;
  47702. /**
  47703. * Specify whether traversed junctions will be returned by the operation.
  47704. *
  47705. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#returnTraversedJunctions)
  47706. */
  47707. returnTraversedJunctions: boolean;
  47708. /**
  47709. * Specify whether traversed turns will be returned by the operation.
  47710. *
  47711. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#returnTraversedTurns)
  47712. */
  47713. returnTraversedTurns: boolean;
  47714. /**
  47715. * Include z values for the returned geometries if supported by the underlying network.
  47716. *
  47717. * @default true
  47718. *
  47719. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#returnZ)
  47720. */
  47721. returnZ: boolean;
  47722. /**
  47723. * Indicate the time that travel should begin.
  47724. *
  47725. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#startTime)
  47726. */
  47727. startTime: Date | "now";
  47728. /**
  47729. * Specify the time zone or zones of the [startTime](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#startTime) property.
  47730. *
  47731. * @default true
  47732. *
  47733. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#startTimeIsUTC)
  47734. */
  47735. startTimeIsUTC: boolean;
  47736. /**
  47737. * Specifies the locations the output route or routes will visit.
  47738. *
  47739. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#stops)
  47740. */
  47741. stops: Collection<Stop> | DataLayer | FeatureSet | NetworkFeatureSet | NetworkUrl;
  47742. /**
  47743. * Specify whether the timeWindowStart and timeWindowEnd property values on [stops](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#stops) are specified in UTC or geographically local time.
  47744. *
  47745. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#timeWindowsAreUTC)
  47746. */
  47747. timeWindowsAreUTC: boolean;
  47748. /**
  47749. * A travel mode represents a means of transportation, such as driving or walking.
  47750. *
  47751. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#travelMode)
  47752. */
  47753. travelMode: TravelMode;
  47754. /**
  47755. * Specify whether hierarchy should be used when finding the shortest paths.
  47756. *
  47757. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#useHierarchy)
  47758. */
  47759. useHierarchy: boolean;
  47760. /**
  47761. * Use this property to indicate whether the operation should consider time windows specified on the [stops](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#stops) when finding the best route.
  47762. *
  47763. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#useTimeWindows)
  47764. */
  47765. useTimeWindows: boolean;
  47766. /**
  47767. * Input parameters for [route](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-route.html).
  47768. *
  47769. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html)
  47770. */
  47771. constructor(properties?: RouteParametersProperties);
  47772. /**
  47773. * Creates a deep clone of this object.
  47774. *
  47775. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#clone)
  47776. */
  47777. clone(): this;
  47778. static fromJSON(json: any): RouteParameters;
  47779. }
  47780. /** @deprecated Import the RouteParameters class instead. */
  47781. export type RouteParametersConstructor = typeof RouteParameters;
  47782. interface RouteParametersProperties {
  47783. /**
  47784. * Use this property to specify whether the operation should accumulate values other than the value specified for [impedanceAttribute](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#impedanceAttribute).
  47785. *
  47786. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#accumulateAttributes)
  47787. */
  47788. accumulateAttributes?: (
  47789. | "kilometers"
  47790. | "miles"
  47791. | "minutes"
  47792. | "travel-time"
  47793. | "truck-minutes"
  47794. | "truck-travel-time"
  47795. | "walk-time"
  47796. | string
  47797. )[];
  47798. /**
  47799. * An authorization string used to access a resource or service.
  47800. *
  47801. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#apiKey)
  47802. */
  47803. apiKey?: string;
  47804. /**
  47805. * Use this property to specify additional values required by an attribute or restriction, such as to specify whether the restriction prohibits, avoids, or prefers travel on restricted roads.
  47806. *
  47807. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#attributeParameterValues)
  47808. */
  47809. attributeParameterValues?: RouteParametersAttributeParameterValue[];
  47810. /**
  47811. * The language that will be used when generating travel directions.
  47812. *
  47813. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#directionsLanguage)
  47814. */
  47815. directionsLanguage?: string;
  47816. /**
  47817. * Specify the units for displaying travel distance in the driving directions.
  47818. *
  47819. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#directionsLengthUnits)
  47820. */
  47821. directionsLengthUnits?: | "centimeters"
  47822. | "decimal-degrees"
  47823. | "decimeters"
  47824. | "feet"
  47825. | "inches"
  47826. | "kilometers"
  47827. | "meters"
  47828. | "miles"
  47829. | "millimeters"
  47830. | "nautical-miles"
  47831. | "points"
  47832. | "yards";
  47833. /**
  47834. * Define the content and verbosity of the driving directions.
  47835. *
  47836. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#directionsOutputType)
  47837. */
  47838. directionsOutputType?: | "complete"
  47839. | "complete-no-events"
  47840. | "featuresets"
  47841. | "instructions-only"
  47842. | "standard"
  47843. | "summary-only";
  47844. /**
  47845. * Specify the name of the formatting style for the directions.
  47846. *
  47847. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#directionsStyleName)
  47848. */
  47849. directionsStyleName?: "desktop" | "navigation" | "campus";
  47850. /**
  47851. * Set the time-based impedance attribute to display the duration of a maneuver, such as "Go northwest on Alvorado St.
  47852. *
  47853. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#directionsTimeAttribute)
  47854. */
  47855. directionsTimeAttribute?: "travel-time" | "truck-travel-time" | "walk-time" | "minutes" | "truck-time" | string;
  47856. /**
  47857. * Use this property to specify whether the operation should reorder stops to find the optimized route.
  47858. *
  47859. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#findBestSequence)
  47860. */
  47861. findBestSequence?: boolean;
  47862. /**
  47863. * Use this property to specify the number of decimal places in the response geometries returned by solve operation.
  47864. *
  47865. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#geometryPrecision)
  47866. */
  47867. geometryPrecision?: number;
  47868. /**
  47869. * Use this property to specify the number of decimal places in the response geometries returned by solve operation.
  47870. *
  47871. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#geometryPrecisionM)
  47872. */
  47873. geometryPrecisionM?: number;
  47874. /**
  47875. * Use this property to specify the number of decimal places in the response geometries returned by a solve operation.
  47876. *
  47877. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#geometryPrecisionZ)
  47878. */
  47879. geometryPrecisionZ?: number;
  47880. /**
  47881. * Specify whether invalid input locations should be ignored when finding the best solution.
  47882. *
  47883. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#ignoreInvalidLocations)
  47884. */
  47885. ignoreInvalidLocations?: boolean;
  47886. /**
  47887. * Specifies the impedance.
  47888. *
  47889. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#impedanceAttribute)
  47890. */
  47891. impedanceAttribute?: | "kilometers"
  47892. | "miles"
  47893. | "minutes"
  47894. | "travel-time"
  47895. | "truck-minutes"
  47896. | "truck-travel-time"
  47897. | "walk-time"
  47898. | string;
  47899. /**
  47900. * Use this property to specify by how much you want to simplify the route geometry returned by the operation.
  47901. *
  47902. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#outputGeometryPrecision)
  47903. */
  47904. outputGeometryPrecision?: number;
  47905. /**
  47906. * Use this property to specify the units for the value specified for the [outputGeometryPrecision](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#outputGeometryPrecision) parameter.
  47907. *
  47908. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#outputGeometryPrecisionUnits)
  47909. */
  47910. outputGeometryPrecisionUnits?: | "centimeters"
  47911. | "decimal-degrees"
  47912. | "decimeters"
  47913. | "feet"
  47914. | "inches"
  47915. | "kilometers"
  47916. | "meters"
  47917. | "miles"
  47918. | "millimeters"
  47919. | "nautical-miles"
  47920. | "points"
  47921. | "yards";
  47922. /**
  47923. * Use this property to specify the type of route features that are output by the operation.
  47924. *
  47925. * @default "true-shape"
  47926. *
  47927. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#outputLines)
  47928. */
  47929. outputLines?: "none" | "straight" | "true-shape" | "true-shape-with-measure";
  47930. /**
  47931. * Use this property to specify the spatial reference of the geometries, such as line or point features, returned by a solve operation.
  47932. *
  47933. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#outSpatialReference)
  47934. */
  47935. outSpatialReference?: SpatialReferenceProperties;
  47936. /**
  47937. * Specify additional settings that can influence the behavior of the solver when finding solutions for the network analysis problems.
  47938. *
  47939. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#overrides)
  47940. */
  47941. overrides?: any;
  47942. /**
  47943. * Use this property to specify one or more points that will act as temporary restrictions or represent additional time or distance that may be required to travel on the underlying streets.
  47944. *
  47945. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#pointBarriers)
  47946. */
  47947. pointBarriers?: | CollectionProperties<PointBarrierProperties>
  47948. | (DataLayerProperties & { type: "layer" })
  47949. | FeatureSetProperties
  47950. | NetworkFeatureSetProperties
  47951. | NetworkUrlProperties;
  47952. /**
  47953. * Use this property to specify polygons that either completely restrict travel or proportionately scale the time or distance required to travel on the streets intersected by the polygons.
  47954. *
  47955. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#polygonBarriers)
  47956. */
  47957. polygonBarriers?: | CollectionProperties<PolygonBarrierProperties>
  47958. | (DataLayerProperties & { type: "layer" })
  47959. | FeatureSetProperties
  47960. | NetworkFeatureSetProperties
  47961. | NetworkUrlProperties;
  47962. /**
  47963. * Use this property to specify one or more lines that prohibit travel anywhere the lines intersect the streets.
  47964. *
  47965. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#polylineBarriers)
  47966. */
  47967. polylineBarriers?: | CollectionProperties<PolylineBarrierProperties>
  47968. | (DataLayerProperties & { type: "layer" })
  47969. | FeatureSetProperties
  47970. | NetworkFeatureSetProperties
  47971. | NetworkUrlProperties;
  47972. /**
  47973. * Use this property to indicate whether the operation should keep the first stop fixed when reordering the [stops](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#stops).
  47974. *
  47975. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#preserveFirstStop)
  47976. */
  47977. preserveFirstStop?: boolean;
  47978. /**
  47979. * Use this property to indicate whether the operation should keep the last stop fixed when reordering the [stops](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#stops).
  47980. *
  47981. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#preserveLastStop)
  47982. */
  47983. preserveLastStop?: boolean;
  47984. /**
  47985. * Use this property to specify if the Object IDs specified for input locations such as stops or barriers should be preserved when the input locations are returned as output.
  47986. *
  47987. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#preserveObjectID)
  47988. */
  47989. preserveObjectID?: boolean;
  47990. /**
  47991. * Use this property to specify which restrictions should be honored by the operation.
  47992. *
  47993. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#restrictionAttributes)
  47994. */
  47995. restrictionAttributes?: (
  47996. | "any-hazmat-prohibited"
  47997. | "avoid-carpool-roads"
  47998. | "avoid-express-lanes"
  47999. | "avoid-ferries"
  48000. | "avoid-gates"
  48001. | "avoid-limited-access-roads"
  48002. | "avoid-private-roads"
  48003. | "avoid-roads-unsuitable-for-pedestrians"
  48004. | "avoid-stairways"
  48005. | "avoid-toll-roads"
  48006. | "avoid-toll-roads-for-trucks"
  48007. | "avoid-truck-restricted-roads"
  48008. | "avoid-unpaved-roads"
  48009. | "axle-count-restriction"
  48010. | "driving-a-bus"
  48011. | "driving-a-taxi"
  48012. | "driving-a-truck"
  48013. | "driving-an-automobile"
  48014. | "driving-an-emergency-vehicle"
  48015. | "height-restriction"
  48016. | "kingpin-to-rear-axle-length-restriction"
  48017. | "length-restriction"
  48018. | "preferred-for-pedestrians"
  48019. | "riding-a-motorcycle"
  48020. | "roads-under-construction-prohibited"
  48021. | "semi-or-tractor-with-one-or-more-trailers-prohibited"
  48022. | "single-axle-vehicles-prohibited"
  48023. | "tandem-axle-vehicles-prohibited"
  48024. | "through-traffic-prohibited"
  48025. | "truck-with-trailers-restriction"
  48026. | "use-preferred-hazmat-routes"
  48027. | "use-preferred-truck-routes"
  48028. | "walking"
  48029. | "weight-restriction"
  48030. | string
  48031. )[];
  48032. /**
  48033. * Use this property to restrict or permit the route from making U-turns at junctions.
  48034. *
  48035. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#restrictUTurns)
  48036. */
  48037. restrictUTurns?: "allow-backtrack" | "at-dead-ends-only" | "no-backtrack" | "at-dead-ends-and-intersections";
  48038. /**
  48039. * Specify whether [point barriers](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#pointBarriers) will be returned by the routing operation.
  48040. *
  48041. * @default false
  48042. *
  48043. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#returnBarriers)
  48044. */
  48045. returnBarriers?: boolean;
  48046. /**
  48047. * Specify whether the operation should generate driving directions for each route.
  48048. *
  48049. * @default false
  48050. *
  48051. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#returnDirections)
  48052. */
  48053. returnDirections?: boolean;
  48054. /**
  48055. * Specify whether [polygon barriers](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#polygonBarriers) will be returned by the routing operation.
  48056. *
  48057. * @default false
  48058. *
  48059. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#returnPolygonBarriers)
  48060. */
  48061. returnPolygonBarriers?: boolean;
  48062. /**
  48063. * Specify whether [polyline barriers](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#polylineBarriers) will be returned by the routing operation.
  48064. *
  48065. * @default false
  48066. *
  48067. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#returnPolylineBarriers)
  48068. */
  48069. returnPolylineBarriers?: boolean;
  48070. /**
  48071. * Use this property to specify if the operation should return routes.
  48072. *
  48073. * @default true
  48074. *
  48075. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#returnRoutes)
  48076. */
  48077. returnRoutes?: boolean;
  48078. /**
  48079. * Use this property to specify whether [stops](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#stops) will be returned by the routing operation.
  48080. *
  48081. * @default false
  48082. *
  48083. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#returnStops)
  48084. */
  48085. returnStops?: boolean;
  48086. /**
  48087. * Specify whether traversed edges will be returned by the operation.
  48088. *
  48089. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#returnTraversedEdges)
  48090. */
  48091. returnTraversedEdges?: boolean;
  48092. /**
  48093. * Specify whether traversed junctions will be returned by the operation.
  48094. *
  48095. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#returnTraversedJunctions)
  48096. */
  48097. returnTraversedJunctions?: boolean;
  48098. /**
  48099. * Specify whether traversed turns will be returned by the operation.
  48100. *
  48101. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#returnTraversedTurns)
  48102. */
  48103. returnTraversedTurns?: boolean;
  48104. /**
  48105. * Include z values for the returned geometries if supported by the underlying network.
  48106. *
  48107. * @default true
  48108. *
  48109. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#returnZ)
  48110. */
  48111. returnZ?: boolean;
  48112. /**
  48113. * Indicate the time that travel should begin.
  48114. *
  48115. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#startTime)
  48116. */
  48117. startTime?: DateProperties | "now";
  48118. /**
  48119. * Specify the time zone or zones of the [startTime](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#startTime) property.
  48120. *
  48121. * @default true
  48122. *
  48123. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#startTimeIsUTC)
  48124. */
  48125. startTimeIsUTC?: boolean;
  48126. /**
  48127. * Specifies the locations the output route or routes will visit.
  48128. *
  48129. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#stops)
  48130. */
  48131. stops?: | CollectionProperties<StopProperties>
  48132. | (DataLayerProperties & { type: "layer" })
  48133. | FeatureSetProperties
  48134. | NetworkFeatureSetProperties
  48135. | NetworkUrlProperties;
  48136. /**
  48137. * Specify whether the timeWindowStart and timeWindowEnd property values on [stops](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#stops) are specified in UTC or geographically local time.
  48138. *
  48139. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#timeWindowsAreUTC)
  48140. */
  48141. timeWindowsAreUTC?: boolean;
  48142. /**
  48143. * A travel mode represents a means of transportation, such as driving or walking.
  48144. *
  48145. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#travelMode)
  48146. */
  48147. travelMode?: TravelModeProperties;
  48148. /**
  48149. * Specify whether hierarchy should be used when finding the shortest paths.
  48150. *
  48151. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#useHierarchy)
  48152. */
  48153. useHierarchy?: boolean;
  48154. /**
  48155. * Use this property to indicate whether the operation should consider time windows specified on the [stops](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#stops) when finding the best route.
  48156. *
  48157. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#useTimeWindows)
  48158. */
  48159. useTimeWindows?: boolean;
  48160. }
  48161. /**
  48162. * An object describing the parameter values for the [attributeParameterValues](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#attributeParameterValues) property of [RouteParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html).
  48163. *
  48164. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#AttributeParameterValue)
  48165. */
  48166. export interface RouteParametersAttributeParameterValue {
  48167. /**
  48168. * The name of the restriction.
  48169. *
  48170. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#AttributeParameterValue)
  48171. */
  48172. attributeName: string;
  48173. /**
  48174. * The name of the parameter associated with the restriction.
  48175. *
  48176. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#AttributeParameterValue)
  48177. */
  48178. parameterName: string;
  48179. /**
  48180. * The value for `parameterName`.
  48181. *
  48182. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#AttributeParameterValue)
  48183. */
  48184. value: string | number;
  48185. }
  48186. export interface RouteResult extends Accessor, JSONSupport {
  48187. }
  48188. export class RouteResult {
  48189. /**
  48190. * Direction lines contains a set of line features for each segment of the route.
  48191. *
  48192. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteResult.html#directionLines)
  48193. */
  48194. directionLines: FeatureSet;
  48195. /**
  48196. * Direction points contains a set of point features representing the direction maneuvers such as arriving to or departing from a stop, turning left or right, and other events along your route.
  48197. *
  48198. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteResult.html#directionPoints)
  48199. */
  48200. directionPoints: FeatureSet;
  48201. /**
  48202. * Direction are returned if [RouteParameters.returnDirections](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#returnDirections) is set to `true` and [RouteParameters.directionsOutputType](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#directionsOutputType) is set to `complete`, `complete-no-events`, `instructions-only', `standard` or `summary-only` in a [route.solve()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-route.html#solve) request.
  48203. *
  48204. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteResult.html#directions)
  48205. */
  48206. directions: DirectionsFeatureSet;
  48207. /**
  48208. * This property returns a Graphic that represent the overall path with attributes containing the total cost.
  48209. *
  48210. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteResult.html#route)
  48211. */
  48212. route: Graphic;
  48213. /**
  48214. * The name of the route.
  48215. *
  48216. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteResult.html#routeName)
  48217. */
  48218. routeName: string;
  48219. /**
  48220. * Array of stops.
  48221. *
  48222. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteResult.html#stops)
  48223. */
  48224. stops: Graphic[];
  48225. /**
  48226. * This provides access to the edges that are traversed while solving a network analysis layer.
  48227. *
  48228. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteResult.html#traversedEdges)
  48229. */
  48230. traversedEdges: FeatureSet;
  48231. /**
  48232. * This provides access to the junctions that are traversed while solving a network analysis layer.
  48233. *
  48234. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteResult.html#traversedJunctions)
  48235. */
  48236. traversedJunctions: FeatureSet;
  48237. /**
  48238. * This provides access to the turns that are traversed while solving a network analysis layer.
  48239. *
  48240. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteResult.html#traversedTurns)
  48241. */
  48242. traversedTurns: FeatureSet;
  48243. /**
  48244. * The route result from [route.solve()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-route.html#solve) as part of a [RouteSolveResult](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteSolveResult.html).
  48245. *
  48246. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteResult.html)
  48247. */
  48248. constructor(properties?: RouteResultProperties);
  48249. static fromJSON(json: any): RouteResult;
  48250. }
  48251. /** @deprecated Import the RouteResult class instead. */
  48252. export type RouteResultConstructor = typeof RouteResult;
  48253. interface RouteResultProperties {
  48254. /**
  48255. * Direction lines contains a set of line features for each segment of the route.
  48256. *
  48257. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteResult.html#directionLines)
  48258. */
  48259. directionLines?: FeatureSetProperties;
  48260. /**
  48261. * Direction points contains a set of point features representing the direction maneuvers such as arriving to or departing from a stop, turning left or right, and other events along your route.
  48262. *
  48263. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteResult.html#directionPoints)
  48264. */
  48265. directionPoints?: FeatureSetProperties;
  48266. /**
  48267. * Direction are returned if [RouteParameters.returnDirections](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#returnDirections) is set to `true` and [RouteParameters.directionsOutputType](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#directionsOutputType) is set to `complete`, `complete-no-events`, `instructions-only', `standard` or `summary-only` in a [route.solve()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-route.html#solve) request.
  48268. *
  48269. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteResult.html#directions)
  48270. */
  48271. directions?: DirectionsFeatureSetProperties;
  48272. /**
  48273. * This property returns a Graphic that represent the overall path with attributes containing the total cost.
  48274. *
  48275. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteResult.html#route)
  48276. */
  48277. route?: GraphicProperties;
  48278. /**
  48279. * The name of the route.
  48280. *
  48281. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteResult.html#routeName)
  48282. */
  48283. routeName?: string;
  48284. /**
  48285. * Array of stops.
  48286. *
  48287. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteResult.html#stops)
  48288. */
  48289. stops?: GraphicProperties[];
  48290. /**
  48291. * This provides access to the edges that are traversed while solving a network analysis layer.
  48292. *
  48293. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteResult.html#traversedEdges)
  48294. */
  48295. traversedEdges?: FeatureSetProperties;
  48296. /**
  48297. * This provides access to the junctions that are traversed while solving a network analysis layer.
  48298. *
  48299. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteResult.html#traversedJunctions)
  48300. */
  48301. traversedJunctions?: FeatureSetProperties;
  48302. /**
  48303. * This provides access to the turns that are traversed while solving a network analysis layer.
  48304. *
  48305. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteResult.html#traversedTurns)
  48306. */
  48307. traversedTurns?: FeatureSetProperties;
  48308. }
  48309. export interface RouteSolveResult extends Accessor, JSONSupport {
  48310. }
  48311. export class RouteSolveResult {
  48312. /**
  48313. * An array of processing [messages](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-NAMessage.html) generated by the server.
  48314. *
  48315. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteSolveResult.html#messages)
  48316. */
  48317. messages: NAMessage[];
  48318. /**
  48319. * An array of [graphics](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) representing point barriers.
  48320. *
  48321. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteSolveResult.html#pointBarriers)
  48322. */
  48323. pointBarriers: Graphic[];
  48324. /**
  48325. * An array of [graphics](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) representing polygon barriers.
  48326. *
  48327. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteSolveResult.html#polygonBarriers)
  48328. */
  48329. polygonBarriers: Graphic[];
  48330. /**
  48331. * An array of [graphics](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) representing polyline barriers.
  48332. *
  48333. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteSolveResult.html#polylineBarriers)
  48334. */
  48335. polylineBarriers: Graphic[];
  48336. /**
  48337. * An array of [route results](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteResult.html).
  48338. *
  48339. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteSolveResult.html#routeResults)
  48340. */
  48341. routeResults: RouteResult[];
  48342. /**
  48343. * The results from [route.solve()](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-route.html#solve) method.
  48344. *
  48345. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteSolveResult.html)
  48346. */
  48347. constructor(properties?: RouteSolveResultProperties);
  48348. static fromJSON(json: any): RouteSolveResult;
  48349. }
  48350. /** @deprecated Import the RouteSolveResult class instead. */
  48351. export type RouteSolveResultConstructor = typeof RouteSolveResult;
  48352. interface RouteSolveResultProperties {
  48353. /**
  48354. * An array of processing [messages](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-NAMessage.html) generated by the server.
  48355. *
  48356. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteSolveResult.html#messages)
  48357. */
  48358. messages?: NAMessageProperties[];
  48359. /**
  48360. * An array of [graphics](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) representing point barriers.
  48361. *
  48362. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteSolveResult.html#pointBarriers)
  48363. */
  48364. pointBarriers?: GraphicProperties[];
  48365. /**
  48366. * An array of [graphics](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) representing polygon barriers.
  48367. *
  48368. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteSolveResult.html#polygonBarriers)
  48369. */
  48370. polygonBarriers?: GraphicProperties[];
  48371. /**
  48372. * An array of [graphics](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) representing polyline barriers.
  48373. *
  48374. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteSolveResult.html#polylineBarriers)
  48375. */
  48376. polylineBarriers?: GraphicProperties[];
  48377. /**
  48378. * An array of [route results](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteResult.html).
  48379. *
  48380. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteSolveResult.html#routeResults)
  48381. */
  48382. routeResults?: RouteResultProperties[];
  48383. }
  48384. export interface ServiceAreaParameters extends Accessor, JSONSupport {
  48385. }
  48386. export class ServiceAreaParameters {
  48387. /**
  48388. * Use this property to specify whether the operation should accumulate values other than the value specified for [impedanceAttribute](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#impedanceAttribute).
  48389. *
  48390. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#accumulateAttributes)
  48391. */
  48392. accumulateAttributes: (
  48393. | "kilometers"
  48394. | "miles"
  48395. | "minutes"
  48396. | "travel-time"
  48397. | "truck-minutes"
  48398. | "truck-travel-time"
  48399. | "walk-time"
  48400. | string
  48401. )[];
  48402. /**
  48403. * An authorization string used to access a resource or service.
  48404. *
  48405. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#apiKey)
  48406. */
  48407. apiKey: string;
  48408. /**
  48409. * Use this property to specify additional values required by an attribute or restriction, such as to specify whether the restriction prohibits, avoids, or prefers travel on restricted roads.
  48410. *
  48411. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#attributeParameterValues)
  48412. */
  48413. attributeParameterValues: ServiceAreaParametersAttributeParameterValue[];
  48414. /**
  48415. * Use this parameter to specify the size and number of service areas to generate for each facility.
  48416. *
  48417. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#defaultBreaks)
  48418. */
  48419. defaultBreaks: number[];
  48420. /**
  48421. * An array of network source names to not use when generating polygons.
  48422. *
  48423. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#excludeSourcesFromPolygons)
  48424. */
  48425. excludeSourcesFromPolygons: string[];
  48426. /**
  48427. * The input locations around which service areas are generated.
  48428. *
  48429. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#facilities)
  48430. */
  48431. facilities: DataLayer | FeatureSet | NetworkFeatureSet | NetworkUrl;
  48432. /**
  48433. * Use this property to specify the number of decimal places in the response geometries returned by solve operation.
  48434. *
  48435. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#geometryPrecision)
  48436. */
  48437. geometryPrecision: number;
  48438. /**
  48439. * Use this property to specify the number of decimal places in the response geometries returned by solve operation.
  48440. *
  48441. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#geometryPrecisionM)
  48442. */
  48443. geometryPrecisionM: number;
  48444. /**
  48445. * Use this property to specify the number of decimal places in the response geometries returned by a solve operation.
  48446. *
  48447. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#geometryPrecisionZ)
  48448. */
  48449. geometryPrecisionZ: number;
  48450. /**
  48451. * Specify whether invalid input locations should be ignored when finding the best solution.
  48452. *
  48453. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#ignoreInvalidLocations)
  48454. */
  48455. ignoreInvalidLocations: boolean;
  48456. /**
  48457. * Specifies the impedance.
  48458. *
  48459. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#impedanceAttribute)
  48460. */
  48461. impedanceAttribute: | "kilometers"
  48462. | "miles"
  48463. | "minutes"
  48464. | "travel-time"
  48465. | "truck-minutes"
  48466. | "truck-travel-time"
  48467. | "walk-time"
  48468. | string;
  48469. /**
  48470. * Use this parameter to specify whether the service areas from different facilities that have the same break value should be joined together or split at break values.
  48471. *
  48472. * @default false
  48473. *
  48474. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#mergeSimilarPolygonRanges)
  48475. */
  48476. mergeSimilarPolygonRanges: boolean;
  48477. /**
  48478. * Use this property to specify by how much you want to simplify the route geometry returned by the operation.
  48479. *
  48480. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#outputGeometryPrecision)
  48481. */
  48482. outputGeometryPrecision: number;
  48483. /**
  48484. * Use this property to specify the units for the value specified for the [outputGeometryPrecision](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#outputGeometryPrecision) parameter.
  48485. *
  48486. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#outputGeometryPrecisionUnits)
  48487. */
  48488. outputGeometryPrecisionUnits: | "centimeters"
  48489. | "decimal-degrees"
  48490. | "decimeters"
  48491. | "feet"
  48492. | "inches"
  48493. | "kilometers"
  48494. | "meters"
  48495. | "miles"
  48496. | "millimeters"
  48497. | "nautical-miles"
  48498. | "points"
  48499. | "yards";
  48500. /**
  48501. * Use this property to specify the type of route features that are output by the operation.
  48502. *
  48503. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#outputLines)
  48504. */
  48505. outputLines: "none" | "straight" | "true-shape" | "true-shape-with-measure";
  48506. /**
  48507. * This parameter sets whether service area polygons should be returned and to what detail.
  48508. *
  48509. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#outputPolygons)
  48510. */
  48511. outputPolygons: "none" | "simplified" | "detailed";
  48512. /**
  48513. * Use this property to specify the spatial reference of the geometries, such as line or point features, returned by a solve operation.
  48514. *
  48515. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#outSpatialReference)
  48516. */
  48517. outSpatialReference: SpatialReference;
  48518. /**
  48519. * Specifies whether the service area lines from different facilities can overlap each other.
  48520. *
  48521. * @default false
  48522. *
  48523. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#overlapLines)
  48524. */
  48525. overlapLines: boolean;
  48526. /**
  48527. * Specifies whether the service areas from different facilities can overlap each other.
  48528. *
  48529. * @default false
  48530. *
  48531. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#overlapPolygons)
  48532. */
  48533. overlapPolygons: boolean;
  48534. /**
  48535. * Specify additional settings that can influence the behavior of the solver when finding solutions for the network analysis problems.
  48536. *
  48537. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#overrides)
  48538. */
  48539. overrides: any;
  48540. /**
  48541. * Use this property to specify one or more points that will act as temporary restrictions or represent additional time or distance that may be required to travel on the underlying streets.
  48542. *
  48543. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#pointBarriers)
  48544. */
  48545. pointBarriers: Collection<PointBarrier> | DataLayer | FeatureSet | NetworkFeatureSet | NetworkUrl;
  48546. /**
  48547. * Use this property to specify polygons that either completely restrict travel or proportionately scale the time or distance required to travel on the streets intersected by the polygons.
  48548. *
  48549. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#polygonBarriers)
  48550. */
  48551. polygonBarriers: Collection<PolygonBarrier> | DataLayer | FeatureSet | NetworkFeatureSet | NetworkUrl;
  48552. /**
  48553. * Use this property to specify one or more lines that prohibit travel anywhere the lines intersect the streets.
  48554. *
  48555. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#polylineBarriers)
  48556. */
  48557. polylineBarriers: Collection<PolylineBarrier> | DataLayer | FeatureSet | NetworkFeatureSet | NetworkUrl;
  48558. /**
  48559. * Use this property to specify if the Object IDs specified for input locations such as stops or barriers should be preserved when the input locations are returned as output.
  48560. *
  48561. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#preserveObjectID)
  48562. */
  48563. preserveObjectID: boolean;
  48564. /**
  48565. * Use this property to specify which restrictions should be honored by the operation.
  48566. *
  48567. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#restrictionAttributes)
  48568. */
  48569. restrictionAttributes: (
  48570. | "any-hazmat-prohibited"
  48571. | "avoid-carpool-roads"
  48572. | "avoid-express-lanes"
  48573. | "avoid-ferries"
  48574. | "avoid-gates"
  48575. | "avoid-limited-access-roads"
  48576. | "avoid-private-roads"
  48577. | "avoid-roads-unsuitable-for-pedestrians"
  48578. | "avoid-stairways"
  48579. | "avoid-toll-roads"
  48580. | "avoid-toll-roads-for-trucks"
  48581. | "avoid-truck-restricted-roads"
  48582. | "avoid-unpaved-roads"
  48583. | "axle-count-restriction"
  48584. | "driving-a-bus"
  48585. | "driving-a-taxi"
  48586. | "driving-a-truck"
  48587. | "driving-an-automobile"
  48588. | "driving-an-emergency-vehicle"
  48589. | "height-restriction"
  48590. | "kingpin-to-rear-axle-length-restriction"
  48591. | "length-restriction"
  48592. | "preferred-for-pedestrians"
  48593. | "riding-a-motorcycle"
  48594. | "roads-under-construction-prohibited"
  48595. | "semi-or-tractor-with-one-or-more-trailers-prohibited"
  48596. | "single-axle-vehicles-prohibited"
  48597. | "tandem-axle-vehicles-prohibited"
  48598. | "through-traffic-prohibited"
  48599. | "truck-with-trailers-restriction"
  48600. | "use-preferred-hazmat-routes"
  48601. | "use-preferred-truck-routes"
  48602. | "walking"
  48603. | "weight-restriction"
  48604. | string
  48605. )[];
  48606. /**
  48607. * Specifies how U-Turns should be handled.
  48608. *
  48609. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#restrictUTurns)
  48610. */
  48611. restrictUTurns: "allow-backtrack" | "at-dead-ends-only" | "no-backtrack" | "at-dead-ends-and-intersections";
  48612. /**
  48613. * Determines if facilities will be returned by the service.
  48614. *
  48615. * @default false
  48616. *
  48617. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#returnFacilities)
  48618. */
  48619. returnFacilities: boolean;
  48620. /**
  48621. * Specify whether [point barriers](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#pointBarriers) will be returned by the routing operation.
  48622. *
  48623. * @default false
  48624. *
  48625. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#returnPointBarriers)
  48626. */
  48627. returnPointBarriers: boolean;
  48628. /**
  48629. * Specify whether [polygon barriers](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#polygonBarriers) will be returned by the routing operation.
  48630. *
  48631. * @default false
  48632. *
  48633. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#returnPolygonBarriers)
  48634. */
  48635. returnPolygonBarriers: boolean;
  48636. /**
  48637. * Specify whether [polyline barriers](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#polylineBarriers) will be returned by the routing operation.
  48638. *
  48639. * @default false
  48640. *
  48641. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#returnPolylineBarriers)
  48642. */
  48643. returnPolylineBarriers: boolean;
  48644. /**
  48645. * Specifies whether the service area lines should be split at break values.
  48646. *
  48647. * @default false
  48648. *
  48649. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#splitLinesAtBreaks)
  48650. */
  48651. splitLinesAtBreaks: boolean;
  48652. /**
  48653. * Specifies whether multiple service areas around a facility are created as disks or rings.
  48654. *
  48655. * @default false
  48656. *
  48657. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#splitPolygonsAtBreaks)
  48658. */
  48659. splitPolygonsAtBreaks: boolean;
  48660. /**
  48661. * Specify the time and date to depart from or arrive at incidents or facilities.
  48662. *
  48663. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#timeOfDay)
  48664. */
  48665. timeOfDay: Date | "now";
  48666. /**
  48667. * Specify the time zone or zones of the [timeOfDay](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#timeOfDay) property.
  48668. *
  48669. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#timeOfDayIsUTC)
  48670. */
  48671. timeOfDayIsUTC: boolean;
  48672. /**
  48673. * Specifies whether the direction of travel used to generate the service area polygons is toward or away from the facilities.
  48674. *
  48675. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#travelDirection)
  48676. */
  48677. travelDirection: "from-facility" | "to-facility";
  48678. /**
  48679. * A travel mode represents a means of transportation, such as driving or walking.
  48680. *
  48681. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#travelMode)
  48682. */
  48683. travelMode: TravelMode;
  48684. /**
  48685. * Specifies whether the service areas are trimmed.
  48686. *
  48687. * @default false
  48688. *
  48689. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#trimOuterPolygon)
  48690. */
  48691. trimOuterPolygon: boolean;
  48692. /**
  48693. * The property defines the distance that can be reached from the network.
  48694. *
  48695. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#trimPolygonDistance)
  48696. */
  48697. trimPolygonDistance: number;
  48698. /**
  48699. * Specifies the units of the value specified [trimPolygonDistance](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#trimPolygonDistance).
  48700. *
  48701. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#trimPolygonDistanceUnits)
  48702. */
  48703. trimPolygonDistanceUnits: | "centimeters"
  48704. | "decimal-degrees"
  48705. | "decimeters"
  48706. | "feet"
  48707. | "inches"
  48708. | "kilometers"
  48709. | "meters"
  48710. | "miles"
  48711. | "millimeters"
  48712. | "nautical-miles"
  48713. | "points"
  48714. | "yards";
  48715. /**
  48716. * Specify whether hierarchy should be used when finding the shortest paths.
  48717. *
  48718. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#useHierarchy)
  48719. */
  48720. useHierarchy: boolean;
  48721. /**
  48722. * ServiceAreaParameters provides the input parameters for a [serviceArea](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-serviceArea.html) request.
  48723. *
  48724. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html)
  48725. */
  48726. constructor(properties?: ServiceAreaParametersProperties);
  48727. /**
  48728. * Creates a deep clone of this object.
  48729. *
  48730. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#clone)
  48731. */
  48732. clone(): this;
  48733. static fromJSON(json: any): ServiceAreaParameters;
  48734. }
  48735. /** @deprecated Import the ServiceAreaParameters class instead. */
  48736. export type ServiceAreaParametersConstructor = typeof ServiceAreaParameters;
  48737. interface ServiceAreaParametersProperties {
  48738. /**
  48739. * Use this property to specify whether the operation should accumulate values other than the value specified for [impedanceAttribute](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#impedanceAttribute).
  48740. *
  48741. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#accumulateAttributes)
  48742. */
  48743. accumulateAttributes?: (
  48744. | "kilometers"
  48745. | "miles"
  48746. | "minutes"
  48747. | "travel-time"
  48748. | "truck-minutes"
  48749. | "truck-travel-time"
  48750. | "walk-time"
  48751. | string
  48752. )[];
  48753. /**
  48754. * An authorization string used to access a resource or service.
  48755. *
  48756. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#apiKey)
  48757. */
  48758. apiKey?: string;
  48759. /**
  48760. * Use this property to specify additional values required by an attribute or restriction, such as to specify whether the restriction prohibits, avoids, or prefers travel on restricted roads.
  48761. *
  48762. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#attributeParameterValues)
  48763. */
  48764. attributeParameterValues?: ServiceAreaParametersAttributeParameterValue[];
  48765. /**
  48766. * Use this parameter to specify the size and number of service areas to generate for each facility.
  48767. *
  48768. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#defaultBreaks)
  48769. */
  48770. defaultBreaks?: number[];
  48771. /**
  48772. * An array of network source names to not use when generating polygons.
  48773. *
  48774. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#excludeSourcesFromPolygons)
  48775. */
  48776. excludeSourcesFromPolygons?: string[];
  48777. /**
  48778. * The input locations around which service areas are generated.
  48779. *
  48780. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#facilities)
  48781. */
  48782. facilities?: | (DataLayerProperties & { type: "layer" })
  48783. | FeatureSetProperties
  48784. | NetworkFeatureSetProperties
  48785. | NetworkUrlProperties;
  48786. /**
  48787. * Use this property to specify the number of decimal places in the response geometries returned by solve operation.
  48788. *
  48789. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#geometryPrecision)
  48790. */
  48791. geometryPrecision?: number;
  48792. /**
  48793. * Use this property to specify the number of decimal places in the response geometries returned by solve operation.
  48794. *
  48795. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#geometryPrecisionM)
  48796. */
  48797. geometryPrecisionM?: number;
  48798. /**
  48799. * Use this property to specify the number of decimal places in the response geometries returned by a solve operation.
  48800. *
  48801. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#geometryPrecisionZ)
  48802. */
  48803. geometryPrecisionZ?: number;
  48804. /**
  48805. * Specify whether invalid input locations should be ignored when finding the best solution.
  48806. *
  48807. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#ignoreInvalidLocations)
  48808. */
  48809. ignoreInvalidLocations?: boolean;
  48810. /**
  48811. * Specifies the impedance.
  48812. *
  48813. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#impedanceAttribute)
  48814. */
  48815. impedanceAttribute?: | "kilometers"
  48816. | "miles"
  48817. | "minutes"
  48818. | "travel-time"
  48819. | "truck-minutes"
  48820. | "truck-travel-time"
  48821. | "walk-time"
  48822. | string;
  48823. /**
  48824. * Use this parameter to specify whether the service areas from different facilities that have the same break value should be joined together or split at break values.
  48825. *
  48826. * @default false
  48827. *
  48828. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#mergeSimilarPolygonRanges)
  48829. */
  48830. mergeSimilarPolygonRanges?: boolean;
  48831. /**
  48832. * Use this property to specify by how much you want to simplify the route geometry returned by the operation.
  48833. *
  48834. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#outputGeometryPrecision)
  48835. */
  48836. outputGeometryPrecision?: number;
  48837. /**
  48838. * Use this property to specify the units for the value specified for the [outputGeometryPrecision](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#outputGeometryPrecision) parameter.
  48839. *
  48840. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#outputGeometryPrecisionUnits)
  48841. */
  48842. outputGeometryPrecisionUnits?: | "centimeters"
  48843. | "decimal-degrees"
  48844. | "decimeters"
  48845. | "feet"
  48846. | "inches"
  48847. | "kilometers"
  48848. | "meters"
  48849. | "miles"
  48850. | "millimeters"
  48851. | "nautical-miles"
  48852. | "points"
  48853. | "yards";
  48854. /**
  48855. * Use this property to specify the type of route features that are output by the operation.
  48856. *
  48857. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#outputLines)
  48858. */
  48859. outputLines?: "none" | "straight" | "true-shape" | "true-shape-with-measure";
  48860. /**
  48861. * This parameter sets whether service area polygons should be returned and to what detail.
  48862. *
  48863. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#outputPolygons)
  48864. */
  48865. outputPolygons?: "none" | "simplified" | "detailed";
  48866. /**
  48867. * Use this property to specify the spatial reference of the geometries, such as line or point features, returned by a solve operation.
  48868. *
  48869. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#outSpatialReference)
  48870. */
  48871. outSpatialReference?: SpatialReferenceProperties;
  48872. /**
  48873. * Specifies whether the service area lines from different facilities can overlap each other.
  48874. *
  48875. * @default false
  48876. *
  48877. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#overlapLines)
  48878. */
  48879. overlapLines?: boolean;
  48880. /**
  48881. * Specifies whether the service areas from different facilities can overlap each other.
  48882. *
  48883. * @default false
  48884. *
  48885. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#overlapPolygons)
  48886. */
  48887. overlapPolygons?: boolean;
  48888. /**
  48889. * Specify additional settings that can influence the behavior of the solver when finding solutions for the network analysis problems.
  48890. *
  48891. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#overrides)
  48892. */
  48893. overrides?: any;
  48894. /**
  48895. * Use this property to specify one or more points that will act as temporary restrictions or represent additional time or distance that may be required to travel on the underlying streets.
  48896. *
  48897. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#pointBarriers)
  48898. */
  48899. pointBarriers?: | CollectionProperties<PointBarrierProperties>
  48900. | (DataLayerProperties & { type: "layer" })
  48901. | FeatureSetProperties
  48902. | NetworkFeatureSetProperties
  48903. | NetworkUrlProperties;
  48904. /**
  48905. * Use this property to specify polygons that either completely restrict travel or proportionately scale the time or distance required to travel on the streets intersected by the polygons.
  48906. *
  48907. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#polygonBarriers)
  48908. */
  48909. polygonBarriers?: | CollectionProperties<PolygonBarrierProperties>
  48910. | (DataLayerProperties & { type: "layer" })
  48911. | FeatureSetProperties
  48912. | NetworkFeatureSetProperties
  48913. | NetworkUrlProperties;
  48914. /**
  48915. * Use this property to specify one or more lines that prohibit travel anywhere the lines intersect the streets.
  48916. *
  48917. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#polylineBarriers)
  48918. */
  48919. polylineBarriers?: | CollectionProperties<PolylineBarrierProperties>
  48920. | (DataLayerProperties & { type: "layer" })
  48921. | FeatureSetProperties
  48922. | NetworkFeatureSetProperties
  48923. | NetworkUrlProperties;
  48924. /**
  48925. * Use this property to specify if the Object IDs specified for input locations such as stops or barriers should be preserved when the input locations are returned as output.
  48926. *
  48927. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#preserveObjectID)
  48928. */
  48929. preserveObjectID?: boolean;
  48930. /**
  48931. * Use this property to specify which restrictions should be honored by the operation.
  48932. *
  48933. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#restrictionAttributes)
  48934. */
  48935. restrictionAttributes?: (
  48936. | "any-hazmat-prohibited"
  48937. | "avoid-carpool-roads"
  48938. | "avoid-express-lanes"
  48939. | "avoid-ferries"
  48940. | "avoid-gates"
  48941. | "avoid-limited-access-roads"
  48942. | "avoid-private-roads"
  48943. | "avoid-roads-unsuitable-for-pedestrians"
  48944. | "avoid-stairways"
  48945. | "avoid-toll-roads"
  48946. | "avoid-toll-roads-for-trucks"
  48947. | "avoid-truck-restricted-roads"
  48948. | "avoid-unpaved-roads"
  48949. | "axle-count-restriction"
  48950. | "driving-a-bus"
  48951. | "driving-a-taxi"
  48952. | "driving-a-truck"
  48953. | "driving-an-automobile"
  48954. | "driving-an-emergency-vehicle"
  48955. | "height-restriction"
  48956. | "kingpin-to-rear-axle-length-restriction"
  48957. | "length-restriction"
  48958. | "preferred-for-pedestrians"
  48959. | "riding-a-motorcycle"
  48960. | "roads-under-construction-prohibited"
  48961. | "semi-or-tractor-with-one-or-more-trailers-prohibited"
  48962. | "single-axle-vehicles-prohibited"
  48963. | "tandem-axle-vehicles-prohibited"
  48964. | "through-traffic-prohibited"
  48965. | "truck-with-trailers-restriction"
  48966. | "use-preferred-hazmat-routes"
  48967. | "use-preferred-truck-routes"
  48968. | "walking"
  48969. | "weight-restriction"
  48970. | string
  48971. )[];
  48972. /**
  48973. * Specifies how U-Turns should be handled.
  48974. *
  48975. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#restrictUTurns)
  48976. */
  48977. restrictUTurns?: "allow-backtrack" | "at-dead-ends-only" | "no-backtrack" | "at-dead-ends-and-intersections";
  48978. /**
  48979. * Determines if facilities will be returned by the service.
  48980. *
  48981. * @default false
  48982. *
  48983. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#returnFacilities)
  48984. */
  48985. returnFacilities?: boolean;
  48986. /**
  48987. * Specify whether [point barriers](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#pointBarriers) will be returned by the routing operation.
  48988. *
  48989. * @default false
  48990. *
  48991. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#returnPointBarriers)
  48992. */
  48993. returnPointBarriers?: boolean;
  48994. /**
  48995. * Specify whether [polygon barriers](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#polygonBarriers) will be returned by the routing operation.
  48996. *
  48997. * @default false
  48998. *
  48999. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#returnPolygonBarriers)
  49000. */
  49001. returnPolygonBarriers?: boolean;
  49002. /**
  49003. * Specify whether [polyline barriers](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#polylineBarriers) will be returned by the routing operation.
  49004. *
  49005. * @default false
  49006. *
  49007. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#returnPolylineBarriers)
  49008. */
  49009. returnPolylineBarriers?: boolean;
  49010. /**
  49011. * Specifies whether the service area lines should be split at break values.
  49012. *
  49013. * @default false
  49014. *
  49015. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#splitLinesAtBreaks)
  49016. */
  49017. splitLinesAtBreaks?: boolean;
  49018. /**
  49019. * Specifies whether multiple service areas around a facility are created as disks or rings.
  49020. *
  49021. * @default false
  49022. *
  49023. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#splitPolygonsAtBreaks)
  49024. */
  49025. splitPolygonsAtBreaks?: boolean;
  49026. /**
  49027. * Specify the time and date to depart from or arrive at incidents or facilities.
  49028. *
  49029. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#timeOfDay)
  49030. */
  49031. timeOfDay?: DateProperties | "now";
  49032. /**
  49033. * Specify the time zone or zones of the [timeOfDay](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#timeOfDay) property.
  49034. *
  49035. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#timeOfDayIsUTC)
  49036. */
  49037. timeOfDayIsUTC?: boolean;
  49038. /**
  49039. * Specifies whether the direction of travel used to generate the service area polygons is toward or away from the facilities.
  49040. *
  49041. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#travelDirection)
  49042. */
  49043. travelDirection?: "from-facility" | "to-facility";
  49044. /**
  49045. * A travel mode represents a means of transportation, such as driving or walking.
  49046. *
  49047. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#travelMode)
  49048. */
  49049. travelMode?: TravelModeProperties;
  49050. /**
  49051. * Specifies whether the service areas are trimmed.
  49052. *
  49053. * @default false
  49054. *
  49055. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#trimOuterPolygon)
  49056. */
  49057. trimOuterPolygon?: boolean;
  49058. /**
  49059. * The property defines the distance that can be reached from the network.
  49060. *
  49061. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#trimPolygonDistance)
  49062. */
  49063. trimPolygonDistance?: number;
  49064. /**
  49065. * Specifies the units of the value specified [trimPolygonDistance](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#trimPolygonDistance).
  49066. *
  49067. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#trimPolygonDistanceUnits)
  49068. */
  49069. trimPolygonDistanceUnits?: | "centimeters"
  49070. | "decimal-degrees"
  49071. | "decimeters"
  49072. | "feet"
  49073. | "inches"
  49074. | "kilometers"
  49075. | "meters"
  49076. | "miles"
  49077. | "millimeters"
  49078. | "nautical-miles"
  49079. | "points"
  49080. | "yards";
  49081. /**
  49082. * Specify whether hierarchy should be used when finding the shortest paths.
  49083. *
  49084. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#useHierarchy)
  49085. */
  49086. useHierarchy?: boolean;
  49087. }
  49088. /**
  49089. * An object describing the parameter values for the [attributeParameterValues](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#attributeParameterValues) property of [ServiceAreaParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html).
  49090. *
  49091. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#AttributeParameterValue)
  49092. */
  49093. export interface ServiceAreaParametersAttributeParameterValue {
  49094. /**
  49095. * The name of the restriction.
  49096. *
  49097. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#AttributeParameterValue)
  49098. */
  49099. attributeName: string;
  49100. /**
  49101. * The name of the parameter associated with the restriction.
  49102. *
  49103. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#AttributeParameterValue)
  49104. */
  49105. parameterName: string;
  49106. /**
  49107. * The value for `parameterName`.
  49108. *
  49109. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaParameters.html#AttributeParameterValue)
  49110. */
  49111. value: string | number;
  49112. }
  49113. export interface ServiceAreaSolveResult extends Accessor, JSONSupport {
  49114. }
  49115. export class ServiceAreaSolveResult {
  49116. /**
  49117. * This provides access to the output facilities from a closest facility analysis.
  49118. *
  49119. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaSolveResult.html#facilities)
  49120. */
  49121. facilities: FeatureSet;
  49122. /**
  49123. * An array of processing [messages](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-NAMessage.html) generated by the server.
  49124. *
  49125. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaSolveResult.html#messages)
  49126. */
  49127. messages: NAMessage[];
  49128. /**
  49129. * A set of features representing point barriers.
  49130. *
  49131. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaSolveResult.html#pointBarriers)
  49132. */
  49133. pointBarriers: FeatureSet;
  49134. /**
  49135. * A set of features representing polygon barriers.
  49136. *
  49137. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaSolveResult.html#polygonBarriers)
  49138. */
  49139. polygonBarriers: FeatureSet;
  49140. /**
  49141. * A set of features representing polyline barriers.
  49142. *
  49143. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaSolveResult.html#polylineBarriers)
  49144. */
  49145. polylineBarriers: FeatureSet;
  49146. /**
  49147. * A feature set containing polygon features that represent areas that can be reached from the input locations with a given travel time, travel distance, or travel cost.
  49148. *
  49149. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaSolveResult.html#serviceAreaPolygons)
  49150. */
  49151. serviceAreaPolygons: FeatureSet;
  49152. /**
  49153. * A feature set containing linear features and covers the streets, or network edges, that can be reached within the given time, distance, or other travel-cost cutoff.
  49154. *
  49155. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaSolveResult.html#serviceAreaPolylines)
  49156. */
  49157. serviceAreaPolylines: FeatureSet;
  49158. /**
  49159. * The result from [serviceArea](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-serviceArea.html).
  49160. *
  49161. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaSolveResult.html)
  49162. */
  49163. constructor(properties?: ServiceAreaSolveResultProperties);
  49164. static fromJSON(json: any): ServiceAreaSolveResult;
  49165. }
  49166. /** @deprecated Import the ServiceAreaSolveResult class instead. */
  49167. export type ServiceAreaSolveResultConstructor = typeof ServiceAreaSolveResult;
  49168. interface ServiceAreaSolveResultProperties {
  49169. /**
  49170. * This provides access to the output facilities from a closest facility analysis.
  49171. *
  49172. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaSolveResult.html#facilities)
  49173. */
  49174. facilities?: FeatureSetProperties;
  49175. /**
  49176. * An array of processing [messages](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-NAMessage.html) generated by the server.
  49177. *
  49178. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaSolveResult.html#messages)
  49179. */
  49180. messages?: NAMessageProperties[];
  49181. /**
  49182. * A set of features representing point barriers.
  49183. *
  49184. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaSolveResult.html#pointBarriers)
  49185. */
  49186. pointBarriers?: FeatureSetProperties;
  49187. /**
  49188. * A set of features representing polygon barriers.
  49189. *
  49190. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaSolveResult.html#polygonBarriers)
  49191. */
  49192. polygonBarriers?: FeatureSetProperties;
  49193. /**
  49194. * A set of features representing polyline barriers.
  49195. *
  49196. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaSolveResult.html#polylineBarriers)
  49197. */
  49198. polylineBarriers?: FeatureSetProperties;
  49199. /**
  49200. * A feature set containing polygon features that represent areas that can be reached from the input locations with a given travel time, travel distance, or travel cost.
  49201. *
  49202. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaSolveResult.html#serviceAreaPolygons)
  49203. */
  49204. serviceAreaPolygons?: FeatureSetProperties;
  49205. /**
  49206. * A feature set containing linear features and covers the streets, or network edges, that can be reached within the given time, distance, or other travel-cost cutoff.
  49207. *
  49208. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-ServiceAreaSolveResult.html#serviceAreaPolylines)
  49209. */
  49210. serviceAreaPolylines?: FeatureSetProperties;
  49211. }
  49212. export interface StatisticDefinition extends Accessor, JSONSupport {
  49213. }
  49214. export class StatisticDefinition {
  49215. /**
  49216. * Defines the field for which statistics will be calculated.
  49217. *
  49218. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-StatisticDefinition.html#onStatisticField)
  49219. */
  49220. onStatisticField: string;
  49221. /**
  49222. * Specifies the output field name for the requested statistic.
  49223. *
  49224. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-StatisticDefinition.html#outStatisticFieldName)
  49225. */
  49226. outStatisticFieldName: string;
  49227. /**
  49228. * The parameters for [percentile statistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-StatisticDefinition.html#statisticType).
  49229. *
  49230. * @default null
  49231. *
  49232. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-StatisticDefinition.html#statisticParameters)
  49233. */
  49234. statisticParameters: StatisticDefinitionStatisticParameters;
  49235. /**
  49236. * Defines the type of statistic.
  49237. *
  49238. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-StatisticDefinition.html#statisticType)
  49239. */
  49240. statisticType: | "count"
  49241. | "sum"
  49242. | "min"
  49243. | "max"
  49244. | "avg"
  49245. | "stddev"
  49246. | "var"
  49247. | "percentile-continuous"
  49248. | "percentile-discrete"
  49249. | "envelope-aggregate"
  49250. | "centroid-aggregate"
  49251. | "convex-hull-aggregate";
  49252. /**
  49253. * This class defines the parameters for querying a layer or layer view for statistics.
  49254. *
  49255. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-StatisticDefinition.html)
  49256. */
  49257. constructor(properties?: StatisticDefinitionProperties);
  49258. /**
  49259. * Creates a deep clone of StatisticDefinition object.
  49260. *
  49261. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-StatisticDefinition.html#clone)
  49262. */
  49263. clone(): StatisticDefinition;
  49264. static fromJSON(json: any): StatisticDefinition;
  49265. }
  49266. /** @deprecated Import the StatisticDefinition class instead. */
  49267. export type StatisticDefinitionConstructor = typeof StatisticDefinition;
  49268. interface StatisticDefinitionProperties {
  49269. /**
  49270. * Defines the field for which statistics will be calculated.
  49271. *
  49272. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-StatisticDefinition.html#onStatisticField)
  49273. */
  49274. onStatisticField?: string;
  49275. /**
  49276. * Specifies the output field name for the requested statistic.
  49277. *
  49278. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-StatisticDefinition.html#outStatisticFieldName)
  49279. */
  49280. outStatisticFieldName?: string;
  49281. /**
  49282. * The parameters for [percentile statistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-StatisticDefinition.html#statisticType).
  49283. *
  49284. * @default null
  49285. *
  49286. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-StatisticDefinition.html#statisticParameters)
  49287. */
  49288. statisticParameters?: StatisticDefinitionStatisticParameters;
  49289. /**
  49290. * Defines the type of statistic.
  49291. *
  49292. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-StatisticDefinition.html#statisticType)
  49293. */
  49294. statisticType?: | "count"
  49295. | "sum"
  49296. | "min"
  49297. | "max"
  49298. | "avg"
  49299. | "stddev"
  49300. | "var"
  49301. | "percentile-continuous"
  49302. | "percentile-discrete"
  49303. | "envelope-aggregate"
  49304. | "centroid-aggregate"
  49305. | "convex-hull-aggregate";
  49306. }
  49307. export interface StatisticDefinitionStatisticParameters {
  49308. /**
  49309. * Percentile value.
  49310. *
  49311. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-StatisticDefinition.html#statisticParameters)
  49312. */
  49313. value: number;
  49314. /**
  49315. * Specify `ASC` (ascending) or `DESC` (descending) to control the order of the data.
  49316. *
  49317. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-StatisticDefinition.html#statisticParameters)
  49318. */
  49319. orderBy?: "ASC" | "DESC";
  49320. }
  49321. export interface Stop extends Accessor, JSONSupport {
  49322. }
  49323. export class Stop {
  49324. /**
  49325. * The date and time value indicating the arrival time at the stop.
  49326. *
  49327. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html#arriveTime)
  49328. */
  49329. arriveTime: Date;
  49330. /**
  49331. * The local time offset (in minutes) for the arrival time.
  49332. *
  49333. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html#arriveTimeOffset)
  49334. */
  49335. arriveTimeOffset: number;
  49336. /**
  49337. * Specify the direction a vehicle may arrive at and depart from the stop.
  49338. *
  49339. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html#curbApproach)
  49340. */
  49341. curbApproach: "either-side-of-vehicle" | "right-side-of-vehicle" | "left-side-of-vehicle" | "no-u-turn";
  49342. /**
  49343. * The date and time value indicating the departure time from the stop.
  49344. *
  49345. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html#departTime)
  49346. */
  49347. departTime: Date;
  49348. /**
  49349. * The local time offset in minutes for the departure time.
  49350. *
  49351. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html#departTimeOffset)
  49352. */
  49353. departTimeOffset: number;
  49354. /**
  49355. * The point location of the stop.
  49356. *
  49357. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html#geometry)
  49358. */
  49359. geometry: Point;
  49360. locationType: "stop" | "waypoint" | "break";
  49361. /**
  49362. * The name of the stop.
  49363. *
  49364. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html#name)
  49365. */
  49366. name: string;
  49367. /**
  49368. * If the findBestSequence parameter is set to false, the output routes will visit the stops in the order you specify with this attribute.
  49369. *
  49370. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html#sequence)
  49371. */
  49372. sequence: number;
  49373. /**
  49374. * Indicates the status of the point with respect to its location on the network and the outcome of the analysis.
  49375. *
  49376. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html#status)
  49377. */
  49378. status: | "ok"
  49379. | "not-located"
  49380. | "network-element-not-located"
  49381. | "element-not-traversable"
  49382. | "invalid-field-values"
  49383. | "not-reached"
  49384. | "time-window-violation"
  49385. | "not-located-on-closest";
  49386. /**
  49387. * The latest time the route can visit the stop.
  49388. *
  49389. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html#timeWindowEnd)
  49390. */
  49391. timeWindowEnd: Date;
  49392. /**
  49393. * The earliest time the route can visit the stop.
  49394. *
  49395. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html#timeWindowStart)
  49396. */
  49397. timeWindowStart: Date;
  49398. readonly type: "stop";
  49399. /**
  49400. * A stop respresents the start, end, or midpoint of a route in [RouteLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#stops) or [RouteParameters](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteParameters.html#stops).
  49401. *
  49402. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html)
  49403. */
  49404. constructor(properties?: StopProperties);
  49405. /**
  49406. * Creates a [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) from the [Stop](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html) instance.
  49407. *
  49408. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html#toGraphic)
  49409. */
  49410. toGraphic(): Graphic;
  49411. /**
  49412. * Creates a [Stop](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html) from the parsed [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html).
  49413. *
  49414. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html#fromGraphic)
  49415. */
  49416. static fromGraphic(graphic?: Graphic): Stop;
  49417. static fromJSON(json: any): Stop;
  49418. }
  49419. /** @deprecated Import the Stop class instead. */
  49420. export type StopConstructor = typeof Stop;
  49421. interface StopProperties {
  49422. /**
  49423. * The date and time value indicating the arrival time at the stop.
  49424. *
  49425. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html#arriveTime)
  49426. */
  49427. arriveTime?: DateProperties;
  49428. /**
  49429. * The local time offset (in minutes) for the arrival time.
  49430. *
  49431. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html#arriveTimeOffset)
  49432. */
  49433. arriveTimeOffset?: number;
  49434. /**
  49435. * Specify the direction a vehicle may arrive at and depart from the stop.
  49436. *
  49437. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html#curbApproach)
  49438. */
  49439. curbApproach?: "either-side-of-vehicle" | "right-side-of-vehicle" | "left-side-of-vehicle" | "no-u-turn";
  49440. /**
  49441. * The date and time value indicating the departure time from the stop.
  49442. *
  49443. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html#departTime)
  49444. */
  49445. departTime?: DateProperties;
  49446. /**
  49447. * The local time offset in minutes for the departure time.
  49448. *
  49449. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html#departTimeOffset)
  49450. */
  49451. departTimeOffset?: number;
  49452. /**
  49453. * The point location of the stop.
  49454. *
  49455. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html#geometry)
  49456. */
  49457. geometry?: PointProperties;
  49458. locationType?: "stop" | "waypoint" | "break";
  49459. /**
  49460. * The name of the stop.
  49461. *
  49462. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html#name)
  49463. */
  49464. name?: string;
  49465. /**
  49466. * If the findBestSequence parameter is set to false, the output routes will visit the stops in the order you specify with this attribute.
  49467. *
  49468. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html#sequence)
  49469. */
  49470. sequence?: number;
  49471. /**
  49472. * Indicates the status of the point with respect to its location on the network and the outcome of the analysis.
  49473. *
  49474. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html#status)
  49475. */
  49476. status?: | "ok"
  49477. | "not-located"
  49478. | "network-element-not-located"
  49479. | "element-not-traversable"
  49480. | "invalid-field-values"
  49481. | "not-reached"
  49482. | "time-window-violation"
  49483. | "not-located-on-closest";
  49484. /**
  49485. * The latest time the route can visit the stop.
  49486. *
  49487. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html#timeWindowEnd)
  49488. */
  49489. timeWindowEnd?: DateProperties;
  49490. /**
  49491. * The earliest time the route can visit the stop.
  49492. *
  49493. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html#timeWindowStart)
  49494. */
  49495. timeWindowStart?: DateProperties;
  49496. }
  49497. export interface TopFeaturesQuery extends Accessor, JSONSupport {
  49498. }
  49499. export class TopFeaturesQuery {
  49500. /**
  49501. * Indicates if the service should cache the query results.
  49502. *
  49503. * @default undefined
  49504. *
  49505. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#cacheHint)
  49506. */
  49507. cacheHint: boolean;
  49508. /**
  49509. * Specifies a search distance from a given [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#geometry) in a spatial query.
  49510. *
  49511. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#distance)
  49512. */
  49513. distance: number;
  49514. /**
  49515. * The geometry to apply to the spatial filter.
  49516. *
  49517. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#geometry)
  49518. */
  49519. geometry: Geometry;
  49520. /**
  49521. * Specifies the number of decimal places for geometries returned by the query operation.
  49522. *
  49523. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#geometryPrecision)
  49524. */
  49525. geometryPrecision: number;
  49526. /**
  49527. * The maximum distance in units of [outSpatialReference](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#outSpatialReference) used for generalizing geometries returned by the query operation.
  49528. *
  49529. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#maxAllowableOffset)
  49530. */
  49531. maxAllowableOffset: number;
  49532. /**
  49533. * The number of features to retrieve.
  49534. *
  49535. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#num)
  49536. */
  49537. num: number;
  49538. /**
  49539. * An array of ObjectIDs to be used to query for features in a layer.
  49540. *
  49541. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#objectIds)
  49542. */
  49543. objectIds: number[];
  49544. /**
  49545. * One or more field names used to order the query results.
  49546. *
  49547. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#orderByFields)
  49548. */
  49549. orderByFields: string[];
  49550. /**
  49551. * Attribute fields to include in the [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html).
  49552. *
  49553. * @default null
  49554. *
  49555. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#outFields)
  49556. */
  49557. outFields: string[];
  49558. /**
  49559. * The spatial reference for the returned geometry.
  49560. *
  49561. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#outSpatialReference)
  49562. */
  49563. outSpatialReference: SpatialReference;
  49564. /**
  49565. * If `true`, each feature in the returned [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html) includes the geometry.
  49566. *
  49567. * @default false
  49568. *
  49569. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#returnGeometry)
  49570. */
  49571. returnGeometry: boolean;
  49572. /**
  49573. * If `true`, and [returnGeometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#returnGeometry) is `true`, then m-values are included in the geometry.
  49574. *
  49575. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#returnM)
  49576. */
  49577. returnM: boolean;
  49578. /**
  49579. * If `true`, and [returnGeometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#returnGeometry) is `true`, then z-values are included in the geometry.
  49580. *
  49581. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#returnZ)
  49582. */
  49583. returnZ: boolean;
  49584. /**
  49585. * For spatial queries, this parameter defines the spatial relationship to query features in the layer or layer view against the input [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#geometry).
  49586. *
  49587. * @default intersects
  49588. *
  49589. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#spatialRelationship)
  49590. */
  49591. spatialRelationship: | "intersects"
  49592. | "contains"
  49593. | "crosses"
  49594. | "envelope-intersects"
  49595. | "index-intersects"
  49596. | "overlaps"
  49597. | "touches"
  49598. | "within"
  49599. | "relation";
  49600. /**
  49601. * The zero-based index indicating where to begin retrieving features.
  49602. *
  49603. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#start)
  49604. */
  49605. start: number;
  49606. /**
  49607. * A time extent for a temporal query against [time-aware layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#timeInfo).
  49608. *
  49609. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#timeExtent)
  49610. */
  49611. timeExtent: TimeExtent;
  49612. /**
  49613. * The `topFilter` parameter is used to set the [groupByFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFilter.html#groupByFields), [orderByFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFilter.html#orderByFields), and [topCount](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFilter.html#topCount) criteria used in generating the result.
  49614. *
  49615. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#topFilter)
  49616. */
  49617. topFilter: TopFilter;
  49618. /**
  49619. * The unit for calculating the buffer distance when [distance](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#distance) is specified in spatial queries.
  49620. *
  49621. * @default null
  49622. *
  49623. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#units)
  49624. */
  49625. units: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers";
  49626. /**
  49627. * A where clause for the query.
  49628. *
  49629. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#where)
  49630. */
  49631. where: string;
  49632. /**
  49633. * This class defines parameters for executing [top features queries](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryTopFeatures) from a [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
  49634. *
  49635. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html)
  49636. */
  49637. constructor(properties?: TopFeaturesQueryProperties);
  49638. /**
  49639. * Creates a deep clone of TopFeaturesQuery object.
  49640. *
  49641. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#clone)
  49642. */
  49643. clone(): TopFeaturesQuery;
  49644. static fromJSON(json: any): TopFeaturesQuery;
  49645. }
  49646. /** @deprecated Import the TopFeaturesQuery class instead. */
  49647. export type TopFeaturesQueryConstructor = typeof TopFeaturesQuery;
  49648. interface TopFeaturesQueryProperties {
  49649. /**
  49650. * Indicates if the service should cache the query results.
  49651. *
  49652. * @default undefined
  49653. *
  49654. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#cacheHint)
  49655. */
  49656. cacheHint?: boolean;
  49657. /**
  49658. * Specifies a search distance from a given [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#geometry) in a spatial query.
  49659. *
  49660. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#distance)
  49661. */
  49662. distance?: number;
  49663. /**
  49664. * The geometry to apply to the spatial filter.
  49665. *
  49666. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#geometry)
  49667. */
  49668. geometry?: GeometryProperties;
  49669. /**
  49670. * Specifies the number of decimal places for geometries returned by the query operation.
  49671. *
  49672. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#geometryPrecision)
  49673. */
  49674. geometryPrecision?: number;
  49675. /**
  49676. * The maximum distance in units of [outSpatialReference](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#outSpatialReference) used for generalizing geometries returned by the query operation.
  49677. *
  49678. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#maxAllowableOffset)
  49679. */
  49680. maxAllowableOffset?: number;
  49681. /**
  49682. * The number of features to retrieve.
  49683. *
  49684. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#num)
  49685. */
  49686. num?: number;
  49687. /**
  49688. * An array of ObjectIDs to be used to query for features in a layer.
  49689. *
  49690. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#objectIds)
  49691. */
  49692. objectIds?: number[];
  49693. /**
  49694. * One or more field names used to order the query results.
  49695. *
  49696. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#orderByFields)
  49697. */
  49698. orderByFields?: string[];
  49699. /**
  49700. * Attribute fields to include in the [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html).
  49701. *
  49702. * @default null
  49703. *
  49704. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#outFields)
  49705. */
  49706. outFields?: string[];
  49707. /**
  49708. * The spatial reference for the returned geometry.
  49709. *
  49710. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#outSpatialReference)
  49711. */
  49712. outSpatialReference?: SpatialReferenceProperties;
  49713. /**
  49714. * If `true`, each feature in the returned [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html) includes the geometry.
  49715. *
  49716. * @default false
  49717. *
  49718. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#returnGeometry)
  49719. */
  49720. returnGeometry?: boolean;
  49721. /**
  49722. * If `true`, and [returnGeometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#returnGeometry) is `true`, then m-values are included in the geometry.
  49723. *
  49724. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#returnM)
  49725. */
  49726. returnM?: boolean;
  49727. /**
  49728. * If `true`, and [returnGeometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#returnGeometry) is `true`, then z-values are included in the geometry.
  49729. *
  49730. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#returnZ)
  49731. */
  49732. returnZ?: boolean;
  49733. /**
  49734. * For spatial queries, this parameter defines the spatial relationship to query features in the layer or layer view against the input [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#geometry).
  49735. *
  49736. * @default intersects
  49737. *
  49738. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#spatialRelationship)
  49739. */
  49740. spatialRelationship?: | "intersects"
  49741. | "contains"
  49742. | "crosses"
  49743. | "envelope-intersects"
  49744. | "index-intersects"
  49745. | "overlaps"
  49746. | "touches"
  49747. | "within"
  49748. | "relation";
  49749. /**
  49750. * The zero-based index indicating where to begin retrieving features.
  49751. *
  49752. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#start)
  49753. */
  49754. start?: number;
  49755. /**
  49756. * A time extent for a temporal query against [time-aware layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#timeInfo).
  49757. *
  49758. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#timeExtent)
  49759. */
  49760. timeExtent?: TimeExtentProperties;
  49761. /**
  49762. * The `topFilter` parameter is used to set the [groupByFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFilter.html#groupByFields), [orderByFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFilter.html#orderByFields), and [topCount](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFilter.html#topCount) criteria used in generating the result.
  49763. *
  49764. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#topFilter)
  49765. */
  49766. topFilter?: TopFilterProperties;
  49767. /**
  49768. * The unit for calculating the buffer distance when [distance](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#distance) is specified in spatial queries.
  49769. *
  49770. * @default null
  49771. *
  49772. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#units)
  49773. */
  49774. units?: "feet" | "miles" | "nautical-miles" | "us-nautical-miles" | "meters" | "kilometers";
  49775. /**
  49776. * A where clause for the query.
  49777. *
  49778. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFeaturesQuery.html#where)
  49779. */
  49780. where?: string;
  49781. }
  49782. export interface TopFilter extends Accessor, JSONSupport {
  49783. }
  49784. export class TopFilter {
  49785. /**
  49786. * When one or more field names are provided in this property, the output result will be grouped based on unique values from those fields.
  49787. *
  49788. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFilter.html#groupByFields)
  49789. */
  49790. groupByFields: string[];
  49791. /**
  49792. * One or more field names used to order the query results.
  49793. *
  49794. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFilter.html#orderByFields)
  49795. */
  49796. orderByFields: string[];
  49797. /**
  49798. * Defines the number of features to be returned from the top features query.
  49799. *
  49800. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFilter.html#topCount)
  49801. */
  49802. topCount: number;
  49803. /**
  49804. * This class defines the top filter parameters for executing top features queries for features from a [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
  49805. *
  49806. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFilter.html)
  49807. */
  49808. constructor(properties?: TopFilterProperties);
  49809. /**
  49810. * Creates a deep clone of TopFilter object.
  49811. *
  49812. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFilter.html#clone)
  49813. */
  49814. clone(): TopFilter;
  49815. static fromJSON(json: any): TopFilter;
  49816. }
  49817. /** @deprecated Import the TopFilter class instead. */
  49818. export type TopFilterConstructor = typeof TopFilter;
  49819. interface TopFilterProperties {
  49820. /**
  49821. * When one or more field names are provided in this property, the output result will be grouped based on unique values from those fields.
  49822. *
  49823. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFilter.html#groupByFields)
  49824. */
  49825. groupByFields?: string[];
  49826. /**
  49827. * One or more field names used to order the query results.
  49828. *
  49829. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFilter.html#orderByFields)
  49830. */
  49831. orderByFields?: string[];
  49832. /**
  49833. * Defines the number of features to be returned from the top features query.
  49834. *
  49835. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TopFilter.html#topCount)
  49836. */
  49837. topCount?: number;
  49838. }
  49839. export interface TravelMode extends Accessor, JSONSupport {
  49840. }
  49841. export class TravelMode {
  49842. /**
  49843. * Lists the parameterized attributes used by the travel mode.
  49844. *
  49845. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#attributeParameterValues)
  49846. */
  49847. attributeParameterValues: TravelModeAttributeParameterValues[];
  49848. /**
  49849. * A short text description of the travel mode.
  49850. *
  49851. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#description)
  49852. */
  49853. description: string;
  49854. /**
  49855. * Indicates the distance-based cost attribute for reporting directions and for solving vehicle routing problems.
  49856. *
  49857. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#distanceAttributeName)
  49858. */
  49859. distanceAttributeName: "kilometers" | "miles" | "meters" | string;
  49860. /**
  49861. * The unique identifier.
  49862. *
  49863. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#id)
  49864. */
  49865. id: string;
  49866. /**
  49867. * The network cost attribute used as impedance.
  49868. *
  49869. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#impedanceAttributeName)
  49870. */
  49871. impedanceAttributeName: | "kilometers"
  49872. | "miles"
  49873. | "meters"
  49874. | "minutes"
  49875. | "travel-time"
  49876. | "truck-minutes"
  49877. | "truck-travel-time"
  49878. | "walk-time"
  49879. | string;
  49880. /**
  49881. * The unique name of the travel mode.
  49882. *
  49883. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#name)
  49884. */
  49885. name: string;
  49886. /**
  49887. * The list of the restriction attributes used when solving network analysis problems with this travel mode.
  49888. *
  49889. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#restrictionAttributeNames)
  49890. */
  49891. restrictionAttributeNames: (
  49892. | "any-hazmat-prohibited"
  49893. | "avoid-carpool-roads"
  49894. | "avoid-express-lanes"
  49895. | "avoid-ferries"
  49896. | "avoid-gates"
  49897. | "avoid-limited-access-roads"
  49898. | "avoid-private-roads"
  49899. | "avoid-roads-unsuitable-for-pedestrians"
  49900. | "avoid-stairways"
  49901. | "avoid-toll-roads"
  49902. | "avoid-toll-roads-for-trucks"
  49903. | "avoid-truck-restricted-roads"
  49904. | "avoid-unpaved-roads"
  49905. | "axle-count-restriction"
  49906. | "driving-a-bus"
  49907. | "driving-a-taxi"
  49908. | "driving-a-truck"
  49909. | "driving-an-automobile"
  49910. | "driving-an-emergency-vehicle"
  49911. | "height-restriction"
  49912. | "kingpin-to-rear-axle-length-restriction"
  49913. | "length-restriction"
  49914. | "preferred-for-pedestrians"
  49915. | "riding-a-motorcycle"
  49916. | "roads-under-construction-prohibited"
  49917. | "semi-or-tractor-with-one-or-more-trailers-prohibited"
  49918. | "single-axle-vehicles-prohibited"
  49919. | "tandem-axle-vehicles-prohibited"
  49920. | "through-traffic-prohibited"
  49921. | "truck-with-trailers-restriction"
  49922. | "use-preferred-hazmat-routes"
  49923. | "use-preferred-truck-routes"
  49924. | "walking"
  49925. | "weight-restriction"
  49926. | string
  49927. )[];
  49928. /**
  49929. * Specifies whether the travel mode generalizes the geometry of analysis results and by how much.
  49930. *
  49931. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#simplificationTolerance)
  49932. */
  49933. simplificationTolerance: number;
  49934. /**
  49935. * The linear units associated with [simplificationTolerance](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#simplificationTolerance).
  49936. *
  49937. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#simplificationToleranceUnits)
  49938. */
  49939. simplificationToleranceUnits: | "centimeters"
  49940. | "decimal-degrees"
  49941. | "decimeters"
  49942. | "feet"
  49943. | "inches"
  49944. | "kilometers"
  49945. | "meters"
  49946. | "miles"
  49947. | "millimeters"
  49948. | "nautical-miles"
  49949. | "points"
  49950. | "unknown"
  49951. | "yards";
  49952. /**
  49953. * Indicates the time-based cost attribute for reporting directions.
  49954. *
  49955. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#timeAttributeName)
  49956. */
  49957. timeAttributeName: "minutes" | "travel-time" | "truck-minutes" | "truck-travel-time" | "walk-time" | string;
  49958. /**
  49959. * Indicates the category of travel or vehicle represented by this travel mode.
  49960. *
  49961. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#type)
  49962. */
  49963. type: "automobile" | "truck" | "walk" | "other";
  49964. /**
  49965. * Indicates whether the travel mode uses a hierarchy attribute while performing the analysis.
  49966. *
  49967. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#useHierarchy)
  49968. */
  49969. useHierarchy: boolean;
  49970. /**
  49971. * Indicates how the U-turns at junctions that could occur during network traversal are handled by the solver.
  49972. *
  49973. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#uturnAtJunctions)
  49974. */
  49975. uturnAtJunctions: "allow-backtrack" | "at-dead-ends-only" | "no-backtrack" | "at-dead-ends-and-intersections";
  49976. /**
  49977. * A TravelMode is a set of characteristics that define how an object like a vehicle, bicycle, or pedestrian moves along a street network.
  49978. *
  49979. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html)
  49980. */
  49981. constructor(properties?: TravelModeProperties);
  49982. /**
  49983. * Creates a deep clone of this object.
  49984. *
  49985. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#clone)
  49986. */
  49987. clone(): this;
  49988. static fromJSON(json: any): TravelMode;
  49989. }
  49990. /** @deprecated Import the TravelMode class instead. */
  49991. export type TravelModeConstructor = typeof TravelMode;
  49992. interface TravelModeProperties {
  49993. /**
  49994. * Lists the parameterized attributes used by the travel mode.
  49995. *
  49996. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#attributeParameterValues)
  49997. */
  49998. attributeParameterValues?: TravelModeAttributeParameterValues[];
  49999. /**
  50000. * A short text description of the travel mode.
  50001. *
  50002. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#description)
  50003. */
  50004. description?: string;
  50005. /**
  50006. * Indicates the distance-based cost attribute for reporting directions and for solving vehicle routing problems.
  50007. *
  50008. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#distanceAttributeName)
  50009. */
  50010. distanceAttributeName?: "kilometers" | "miles" | "meters" | string;
  50011. /**
  50012. * The unique identifier.
  50013. *
  50014. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#id)
  50015. */
  50016. id?: string;
  50017. /**
  50018. * The network cost attribute used as impedance.
  50019. *
  50020. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#impedanceAttributeName)
  50021. */
  50022. impedanceAttributeName?: | "kilometers"
  50023. | "miles"
  50024. | "meters"
  50025. | "minutes"
  50026. | "travel-time"
  50027. | "truck-minutes"
  50028. | "truck-travel-time"
  50029. | "walk-time"
  50030. | string;
  50031. /**
  50032. * The unique name of the travel mode.
  50033. *
  50034. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#name)
  50035. */
  50036. name?: string;
  50037. /**
  50038. * The list of the restriction attributes used when solving network analysis problems with this travel mode.
  50039. *
  50040. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#restrictionAttributeNames)
  50041. */
  50042. restrictionAttributeNames?: (
  50043. | "any-hazmat-prohibited"
  50044. | "avoid-carpool-roads"
  50045. | "avoid-express-lanes"
  50046. | "avoid-ferries"
  50047. | "avoid-gates"
  50048. | "avoid-limited-access-roads"
  50049. | "avoid-private-roads"
  50050. | "avoid-roads-unsuitable-for-pedestrians"
  50051. | "avoid-stairways"
  50052. | "avoid-toll-roads"
  50053. | "avoid-toll-roads-for-trucks"
  50054. | "avoid-truck-restricted-roads"
  50055. | "avoid-unpaved-roads"
  50056. | "axle-count-restriction"
  50057. | "driving-a-bus"
  50058. | "driving-a-taxi"
  50059. | "driving-a-truck"
  50060. | "driving-an-automobile"
  50061. | "driving-an-emergency-vehicle"
  50062. | "height-restriction"
  50063. | "kingpin-to-rear-axle-length-restriction"
  50064. | "length-restriction"
  50065. | "preferred-for-pedestrians"
  50066. | "riding-a-motorcycle"
  50067. | "roads-under-construction-prohibited"
  50068. | "semi-or-tractor-with-one-or-more-trailers-prohibited"
  50069. | "single-axle-vehicles-prohibited"
  50070. | "tandem-axle-vehicles-prohibited"
  50071. | "through-traffic-prohibited"
  50072. | "truck-with-trailers-restriction"
  50073. | "use-preferred-hazmat-routes"
  50074. | "use-preferred-truck-routes"
  50075. | "walking"
  50076. | "weight-restriction"
  50077. | string
  50078. )[];
  50079. /**
  50080. * Specifies whether the travel mode generalizes the geometry of analysis results and by how much.
  50081. *
  50082. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#simplificationTolerance)
  50083. */
  50084. simplificationTolerance?: number;
  50085. /**
  50086. * The linear units associated with [simplificationTolerance](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#simplificationTolerance).
  50087. *
  50088. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#simplificationToleranceUnits)
  50089. */
  50090. simplificationToleranceUnits?: | "centimeters"
  50091. | "decimal-degrees"
  50092. | "decimeters"
  50093. | "feet"
  50094. | "inches"
  50095. | "kilometers"
  50096. | "meters"
  50097. | "miles"
  50098. | "millimeters"
  50099. | "nautical-miles"
  50100. | "points"
  50101. | "unknown"
  50102. | "yards";
  50103. /**
  50104. * Indicates the time-based cost attribute for reporting directions.
  50105. *
  50106. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#timeAttributeName)
  50107. */
  50108. timeAttributeName?: "minutes" | "travel-time" | "truck-minutes" | "truck-travel-time" | "walk-time" | string;
  50109. /**
  50110. * Indicates the category of travel or vehicle represented by this travel mode.
  50111. *
  50112. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#type)
  50113. */
  50114. type?: "automobile" | "truck" | "walk" | "other";
  50115. /**
  50116. * Indicates whether the travel mode uses a hierarchy attribute while performing the analysis.
  50117. *
  50118. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#useHierarchy)
  50119. */
  50120. useHierarchy?: boolean;
  50121. /**
  50122. * Indicates how the U-turns at junctions that could occur during network traversal are handled by the solver.
  50123. *
  50124. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#uturnAtJunctions)
  50125. */
  50126. uturnAtJunctions?: "allow-backtrack" | "at-dead-ends-only" | "no-backtrack" | "at-dead-ends-and-intersections";
  50127. }
  50128. export interface TravelModeAttributeParameterValues {
  50129. /**
  50130. * The name of the attribute.
  50131. *
  50132. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#attributeParameterValues)
  50133. */
  50134. attributeName: string;
  50135. /**
  50136. * The parameter name.
  50137. *
  50138. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#attributeParameterValues)
  50139. */
  50140. parameterName: string;
  50141. /**
  50142. * The parameter value.
  50143. *
  50144. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TravelMode.html#attributeParameterValues)
  50145. */
  50146. value: string;
  50147. }
  50148. export interface TrimExtendParameters extends Accessor, JSONSupport {
  50149. }
  50150. export class TrimExtendParameters {
  50151. /**
  50152. * A flag used with the `trimExtend` operation.
  50153. *
  50154. * @default "default-curve-extension"
  50155. *
  50156. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TrimExtendParameters.html#extendHow)
  50157. */
  50158. extendHow: | "default-curve-extension"
  50159. | "relocate-ends"
  50160. | "keep-end-attributes"
  50161. | "no-end-attributes"
  50162. | "no-extend-at-from"
  50163. | "no-extend-at-to";
  50164. /**
  50165. * The array of polylines to trim or extend.
  50166. *
  50167. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TrimExtendParameters.html#polylines)
  50168. */
  50169. polylines: Polyline[];
  50170. /**
  50171. * A polyline used as a guide for trimming or extending input polylines.
  50172. *
  50173. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TrimExtendParameters.html#trimExtendTo)
  50174. */
  50175. trimExtendTo: Polyline;
  50176. /**
  50177. * Used to set the parameters for the [geometryService.trimExtend](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-geometryService.html#trimExtend) operation.
  50178. *
  50179. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TrimExtendParameters.html)
  50180. */
  50181. constructor(properties?: TrimExtendParametersProperties);
  50182. static fromJSON(json: any): TrimExtendParameters;
  50183. }
  50184. /** @deprecated Import the TrimExtendParameters class instead. */
  50185. export type TrimExtendParametersConstructor = typeof TrimExtendParameters;
  50186. interface TrimExtendParametersProperties {
  50187. /**
  50188. * A flag used with the `trimExtend` operation.
  50189. *
  50190. * @default "default-curve-extension"
  50191. *
  50192. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TrimExtendParameters.html#extendHow)
  50193. */
  50194. extendHow?: | "default-curve-extension"
  50195. | "relocate-ends"
  50196. | "keep-end-attributes"
  50197. | "no-end-attributes"
  50198. | "no-extend-at-from"
  50199. | "no-extend-at-to";
  50200. /**
  50201. * The array of polylines to trim or extend.
  50202. *
  50203. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TrimExtendParameters.html#polylines)
  50204. */
  50205. polylines?: PolylineProperties[];
  50206. /**
  50207. * A polyline used as a guide for trimming or extending input polylines.
  50208. *
  50209. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-TrimExtendParameters.html#trimExtendTo)
  50210. */
  50211. trimExtendTo?: PolylineProperties;
  50212. }
  50213. /**
  50214. * Represents [symbol service](https://developers.arcgis.com/rest/services-reference/enterprise/symbol-server.htm) resources exposed by the ArcGIS REST API.
  50215. *
  50216. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-symbolService.html)
  50217. */
  50218. interface symbolService {
  50219. /**
  50220. * Converts a [Scalable Vector Graphic](https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/scalable-vector-graphics-support.htm) (SVG) to a [CIMSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html).
  50221. *
  50222. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-symbolService.html#generateSymbol)
  50223. */
  50224. generateSymbol(url: string, params: GenerateSymbolParameters, requestOptions?: RequestOptions): Promise<GenerateSymbolResponse>;
  50225. }
  50226. export const symbolService: symbolService;
  50227. /**
  50228. * Input parameters for the [generateSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-symbolService.html#generateSymbol) method.
  50229. *
  50230. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-symbolService.html#GenerateSymbolParameters)
  50231. */
  50232. export interface GenerateSymbolParameters {
  50233. /**
  50234. * The SVG image to convert.
  50235. *
  50236. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-symbolService.html#GenerateSymbolParameters)
  50237. */
  50238. svgImage?: string | FormData | HTMLFormElement;
  50239. }
  50240. /**
  50241. * The response of the [generateSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-symbolService.html#generateSymbol) method.
  50242. *
  50243. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-symbolService.html#GenerateSymbolResponse)
  50244. */
  50245. export interface GenerateSymbolResponse {
  50246. /**
  50247. * The CIMSymbol created from the [generateSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-symbolService.html#generateSymbol) method.
  50248. *
  50249. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-symbolService.html#GenerateSymbolResponse)
  50250. */
  50251. symbol: CIMSymbol;
  50252. }
  50253. /**
  50254. * Function that suggests a [fixedBinLevel](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionBinning.html#fixedBinLevel) in a [FeatureReductionBinning](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionBinning.html) visualization.
  50255. *
  50256. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-heuristics-binLevel.html)
  50257. */
  50258. interface binLevel {
  50259. /**
  50260. * Generates a suggested [fixedBinLevel](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionBinning.html#fixedBinLevel) for a binning visualization based on the view scale at the time this method is called.
  50261. *
  50262. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-heuristics-binLevel.html#binLevel)
  50263. */
  50264. binLevel(params: binLevelBinLevelParams): Promise<number>;
  50265. }
  50266. export const binLevel: binLevel;
  50267. export interface binLevelBinLevelParams {
  50268. /**
  50269. * The [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) where the layer will be rendered.
  50270. *
  50271. * [Read more...](global.html)
  50272. */
  50273. view: MapView;
  50274. }
  50275. /**
  50276. * Function for determining suggested [min](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#minScale) and [max](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#maxScale) scale ranges for an input layer.
  50277. *
  50278. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-heuristics-scaleRange.html)
  50279. */
  50280. interface scaleRange {
  50281. /**
  50282. * Generates a suggested scale range (i.e.
  50283. *
  50284. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-heuristics-scaleRange.html#scaleRange)
  50285. */
  50286. scaleRange(params: scaleRangeScaleRangeParams): Promise<ScaleRangeResult>;
  50287. }
  50288. const __scaleRangeMapped: scaleRange;
  50289. export const scaleRange: typeof __scaleRangeMapped.scaleRange;
  50290. /**
  50291. * Suggested `min` and `max` scales to apply to the input layer for the [scaleRange()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-heuristics-scaleRange.html#scaleRange) function.
  50292. *
  50293. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-heuristics-scaleRange.html#ScaleRangeResult)
  50294. */
  50295. export interface ScaleRangeResult {
  50296. /**
  50297. * The suggested [minScale](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#minScale) to apply to the input layer.
  50298. *
  50299. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-heuristics-scaleRange.html#ScaleRangeResult)
  50300. */
  50301. minScale: number;
  50302. /**
  50303. * The suggested [maxScale](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#maxScale) to apply to the input layer.
  50304. *
  50305. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-heuristics-scaleRange.html#ScaleRangeResult)
  50306. */
  50307. maxScale: number;
  50308. }
  50309. export interface scaleRangeScaleRangeParams {
  50310. /**
  50311. * The layer for which to generate a suggested min/max scale range.
  50312. *
  50313. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-heuristics-scaleRange.html#scaleRange)
  50314. */
  50315. layer: FeatureLayer | SceneLayer | CSVLayer | OGCFeatureLayer | PointCloudLayer | GeoJSONLayer | WFSLayer;
  50316. /**
  50317. * The [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) or [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) where the layer will be rendered.
  50318. *
  50319. * [Read more...](global.html)
  50320. */
  50321. view: View;
  50322. /**
  50323. * The number of features in the `layer` to sample for spatial statistics.
  50324. *
  50325. * @default 500
  50326. *
  50327. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-heuristics-scaleRange.html#scaleRange)
  50328. */
  50329. sampleSize?: number;
  50330. /**
  50331. * Indicates whether the generated renderer is for a binning visualization.
  50332. *
  50333. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-heuristics-scaleRange.html#scaleRange)
  50334. */
  50335. forBinning?: boolean;
  50336. /**
  50337. * Allows for cancelable requests.
  50338. *
  50339. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-heuristics-scaleRange.html#scaleRange)
  50340. */
  50341. signal?: AbortSignal;
  50342. }
  50343. /**
  50344. * Function for determining the suggested `minSize` and `maxSize` of a [scale-dependent size visual variable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#ScaleDependentIcons).
  50345. *
  50346. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-heuristics-sizeRange.html)
  50347. */
  50348. interface sizeRange {
  50349. /**
  50350. * Generates a suggested size range (i.e.
  50351. *
  50352. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-heuristics-sizeRange.html#sizeRange)
  50353. */
  50354. sizeRange(params: sizeRangeSizeRangeParams): Promise<SizeRangeResult>;
  50355. }
  50356. const __sizeRangeMapped: sizeRange;
  50357. export const sizeRange: typeof __sizeRangeMapped.sizeRange;
  50358. /**
  50359. * The suggested `minSize` and `maxSize` [size stops](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#ScaleDependentStops) generated from the [sizeRange()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-heuristics-sizeRange.html#sizeRange) function to apply to the [scale-dependent size visual variable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#ScaleDependentIcons).
  50360. *
  50361. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-heuristics-sizeRange.html#SizeRangeResult)
  50362. */
  50363. export interface SizeRangeResult {
  50364. /**
  50365. * The suggested sizes of the smallest symbols at various scales in a layer with a [size visualization](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html).
  50366. *
  50367. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-heuristics-sizeRange.html#SizeRangeResult)
  50368. */
  50369. minSize: ScaleDependentStops;
  50370. /**
  50371. * The suggested sizes of the largest symbols at various scales in a layer with a [size visualization](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html).
  50372. *
  50373. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-heuristics-sizeRange.html#SizeRangeResult)
  50374. */
  50375. maxSize: ScaleDependentStops;
  50376. }
  50377. export interface sizeRangeSizeRangeParams {
  50378. /**
  50379. * The layer for which to generate a suggested min/max size range based on scale for a size visual variable.
  50380. *
  50381. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-heuristics-sizeRange.html#sizeRange)
  50382. */
  50383. layer: FeatureLayer | SceneLayer | CSVLayer | OGCFeatureLayer | PointCloudLayer | GeoJSONLayer | WFSLayer;
  50384. /**
  50385. * The [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) where the layer will be rendered.
  50386. *
  50387. * [Read more...](global.html)
  50388. */
  50389. view: MapView;
  50390. /**
  50391. * Indicates whether the generated renderer is for a binning visualization.
  50392. *
  50393. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-heuristics-sizeRange.html#sizeRange)
  50394. */
  50395. forBinning?: boolean;
  50396. /**
  50397. * Allows for cancelable requests.
  50398. *
  50399. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-heuristics-sizeRange.html#sizeRange)
  50400. */
  50401. signal?: AbortSignal;
  50402. }
  50403. /**
  50404. * This object contains a helper method for generating default labels to be set on a layer's [cluster configuration](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#labelingInfo).
  50405. *
  50406. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-labels-clusters.html)
  50407. */
  50408. interface clusters {
  50409. /**
  50410. * Generates default [labelingInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#labelingInfo) schemes to be set on a FeatureLayer's [featureReduction](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#featureReduction) configuration.
  50411. *
  50412. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-labels-clusters.html#getLabelSchemes)
  50413. */
  50414. getLabelSchemes(params: clustersGetLabelSchemesParams): Promise<Schemes>;
  50415. }
  50416. export const clusters: clusters;
  50417. export interface clustersGetLabelSchemesParams {
  50418. /**
  50419. * The point layer that has or will have clustering enabled.
  50420. *
  50421. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-labels-clusters.html#getLabelSchemes)
  50422. */
  50423. layer: FeatureLayer | CSVLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  50424. /**
  50425. * The renderer to set on the input layer when clustering is enabled.
  50426. *
  50427. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-labels-clusters.html#getLabelSchemes)
  50428. */
  50429. renderer?: Renderer;
  50430. /**
  50431. * The view where the input layer will be rendered.
  50432. *
  50433. * [Read more...](global.html)
  50434. */
  50435. view: MapView;
  50436. }
  50437. /**
  50438. * Contains a suggested labelingInfo to be set on the layer's [featureReduction.labelingInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#labelingInfo).
  50439. *
  50440. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-labels-clusters.html#Scheme)
  50441. */
  50442. export interface Scheme {
  50443. /**
  50444. * The name of the generated cluster labeling scheme.
  50445. *
  50446. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-labels-clusters.html#Scheme)
  50447. */
  50448. name: string;
  50449. /**
  50450. * The name of the aggregate field the labeling scheme is based on.
  50451. *
  50452. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-labels-clusters.html#Scheme)
  50453. */
  50454. fieldName: string;
  50455. /**
  50456. * An array of LabelClass objects to set on the layer's [featureReduction.labelingInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#labelingInfo) property.
  50457. *
  50458. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-labels-clusters.html#Scheme)
  50459. */
  50460. labelingInfo: LabelClass[];
  50461. /**
  50462. * The suggested [featureReduction.clusterMinSize](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#clusterMinSize) required to fit labels within clusters.
  50463. *
  50464. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-labels-clusters.html#Scheme)
  50465. */
  50466. clusterMinSize: number;
  50467. }
  50468. /**
  50469. * The return object of the [getLabelSchemes()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-labels-clusters.html#getLabelSchemes) method.
  50470. *
  50471. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-labels-clusters.html#Schemes)
  50472. */
  50473. export interface Schemes {
  50474. /**
  50475. * Includes the primary labeling scheme suggested for the input layer's clusters.
  50476. *
  50477. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-labels-clusters.html#Schemes)
  50478. */
  50479. primaryScheme: Scheme;
  50480. /**
  50481. * Includes secondary labeling schemes suggested for the input layer's clusters.
  50482. *
  50483. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-labels-clusters.html#Schemes)
  50484. */
  50485. secondarySchemes: Scheme[];
  50486. }
  50487. /**
  50488. * This object contains helper methods for generating popup templates to be set on a layer's [FeatureReductionCluster](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#popupTemplate).
  50489. *
  50490. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-popup-clusters.html)
  50491. */
  50492. interface popupClusters {
  50493. /**
  50494. * Returns one or more suggested default [popupTemplates](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html) for a given layer's [FeatureReductionCluster](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html#popupTemplate) configuration.
  50495. *
  50496. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-popup-clusters.html#getTemplates)
  50497. */
  50498. getTemplates(params: clustersGetTemplatesParams): Promise<Templates>;
  50499. }
  50500. export const popupClusters: popupClusters;
  50501. export interface clustersGetTemplatesParams {
  50502. /**
  50503. * The point layer that is or will be clustered.
  50504. *
  50505. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-popup-clusters.html#getTemplates)
  50506. */
  50507. layer: FeatureLayer | CSVLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  50508. /**
  50509. * Specify the renderer to be used on the layer when `featureReduction` is enabled if it will be different than the renderer already set on the layer.
  50510. *
  50511. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-popup-clusters.html#getTemplates)
  50512. */
  50513. renderer?: Renderer;
  50514. }
  50515. /**
  50516. * This object contains helper methods for generating popup templates to be set on a [layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#popupTemplate).
  50517. *
  50518. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-popup-templates.html)
  50519. */
  50520. interface templates {
  50521. /**
  50522. * Returns one or more suggested [popupTemplates](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html) for a given layer based on its renderer.
  50523. *
  50524. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-popup-templates.html#getTemplates)
  50525. */
  50526. getTemplates(params: templatesGetTemplatesParams): Promise<Templates>;
  50527. }
  50528. export const templates: templates;
  50529. /**
  50530. * Defines a suggested PopupTemplate with a given name and title describing the content and purpose of the PopupTemplate.
  50531. *
  50532. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-popup-templates.html#Template)
  50533. */
  50534. export interface Template {
  50535. /**
  50536. * The name of the auto-generated PopupTemplate.
  50537. *
  50538. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-popup-templates.html#Template)
  50539. */
  50540. name: string;
  50541. /**
  50542. * The title of the PopupTemplate.
  50543. *
  50544. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-popup-templates.html#Template)
  50545. */
  50546. title: string;
  50547. /**
  50548. * The suggested PopupTemplate.
  50549. *
  50550. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-popup-templates.html#Template)
  50551. */
  50552. value: PopupTemplate;
  50553. }
  50554. /**
  50555. * The return object of the [getTemplates()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-popup-templates.html#getTemplates) method.
  50556. *
  50557. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-popup-templates.html#Templates)
  50558. */
  50559. export interface Templates {
  50560. /**
  50561. * Includes the primary PopupTemplate suggested for the input layer.
  50562. *
  50563. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-popup-templates.html#Templates)
  50564. */
  50565. primaryTemplate: Template;
  50566. /**
  50567. * Includes secondary PopupTemplates that may be applied to the input layer.
  50568. *
  50569. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-popup-templates.html#Templates)
  50570. */
  50571. secondaryTemplates: Template[];
  50572. }
  50573. export interface templatesGetTemplatesParams {
  50574. /**
  50575. * The layer to which the suggested popup templates can be applied.
  50576. *
  50577. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-popup-templates.html#getTemplates)
  50578. */
  50579. layer: FeatureLayer | CSVLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  50580. /**
  50581. * Specify the renderer to be used on the layer when if it will be different than the renderer already set on the layer.
  50582. *
  50583. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-popup-templates.html#getTemplates)
  50584. */
  50585. renderer?: Renderer;
  50586. }
  50587. /**
  50588. * This object contains helper methods for generating class breaks visualizations for raster layers (i.e.
  50589. *
  50590. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-classBreaks.html)
  50591. */
  50592. interface classBreaks {
  50593. /**
  50594. * Generates a [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html) used to render imagery data.
  50595. *
  50596. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-classBreaks.html#createRenderer)
  50597. */
  50598. createRenderer(params: classBreaksCreateRendererParams): Promise<RasterClassBreaksResult>;
  50599. }
  50600. export const classBreaks: classBreaks;
  50601. export interface classBreaksCreateRendererParams {
  50602. /**
  50603. * The input layer for which the renderer is generated.
  50604. *
  50605. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-classBreaks.html#createRenderer)
  50606. */
  50607. layer: ImageryLayer | ImageryTileLayer | WCSLayer;
  50608. /**
  50609. * Specifies the rule for how the requested image should be rendered.
  50610. *
  50611. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-classBreaks.html#createRenderer)
  50612. */
  50613. renderingRule?: RasterFunction;
  50614. /**
  50615. * The field whose data will be used in the classification.
  50616. *
  50617. * @default value
  50618. *
  50619. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-classBreaks.html#createRenderer)
  50620. */
  50621. field?: string;
  50622. /**
  50623. * The classification method used for generating breaks.
  50624. *
  50625. * @default natural-breaks
  50626. *
  50627. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-classBreaks.html#createRenderer)
  50628. */
  50629. classificationMethod?: "equal-interval" | "natural-breaks" | "quantile" | "standard-deviation" | "defined-interval";
  50630. /**
  50631. * Only applicable to multidimensional datasets where a raster layer can contain more than one variable (such as temperature, humidity, wind speed) with different statistics.
  50632. *
  50633. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-classBreaks.html#createRenderer)
  50634. */
  50635. variableName?: string;
  50636. /**
  50637. * The number of class breaks to generate for the classification.
  50638. *
  50639. * @default 5
  50640. *
  50641. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-classBreaks.html#createRenderer)
  50642. */
  50643. numClasses?: number;
  50644. /**
  50645. * The color ramp to apply to the renderer.
  50646. *
  50647. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-classBreaks.html#createRenderer)
  50648. */
  50649. colorRamp?: AlgorithmicColorRamp | MultipartColorRamp;
  50650. /**
  50651. * The colors to apply to each class break.
  50652. *
  50653. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-classBreaks.html#createRenderer)
  50654. */
  50655. colors?: number[][];
  50656. /**
  50657. * Only applicable when `classificationMethod` is `defined-interval`.
  50658. *
  50659. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-classBreaks.html#createRenderer)
  50660. */
  50661. definedInterval?: number;
  50662. /**
  50663. * Allows for cancelable requests.
  50664. *
  50665. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-classBreaks.html#createRenderer)
  50666. */
  50667. signal?: AbortSignal;
  50668. }
  50669. /**
  50670. * The result object of the [createRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-classBreaks.html#createRenderer) method.
  50671. *
  50672. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-classBreaks.html#RasterClassBreaksResult)
  50673. */
  50674. export interface RasterClassBreaksResult {
  50675. /**
  50676. * The renderer object configured to best match the given basemap and the spread of the data.
  50677. *
  50678. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-classBreaks.html#RasterClassBreaksResult)
  50679. */
  50680. renderer: ClassBreaksRenderer;
  50681. /**
  50682. * This object describes class breaks generated from data in a layer for a given field with a specified classification method.
  50683. *
  50684. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-classBreaks.html#RasterClassBreaksResult)
  50685. */
  50686. classBreaksResult: ClassBreaksResult;
  50687. }
  50688. /**
  50689. * This object contains helper methods for generating a [RasterColormapRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterColormapRenderer.html) for raster layers (i.e.
  50690. *
  50691. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-colormap.html)
  50692. */
  50693. interface colormap {
  50694. /**
  50695. * Generates a [RasterColormapRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterColormapRenderer.html) used to render imagery data.
  50696. *
  50697. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-colormap.html#createRenderer)
  50698. */
  50699. createRenderer(params: colormapCreateRendererParams): Promise<RasterColormapResult>;
  50700. }
  50701. export const colormap: colormap;
  50702. export interface colormapCreateRendererParams {
  50703. /**
  50704. * The input layer for which the renderer is generated.
  50705. *
  50706. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-colormap.html#createRenderer)
  50707. */
  50708. layer: ImageryLayer | ImageryTileLayer;
  50709. /**
  50710. * Specifies the rule for how the requested image should be rendered.
  50711. *
  50712. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-colormap.html#createRenderer)
  50713. */
  50714. renderingRule?: RasterFunction;
  50715. /**
  50716. * Allows for cancelable requests.
  50717. *
  50718. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-colormap.html#createRenderer)
  50719. */
  50720. signal?: AbortSignal;
  50721. }
  50722. /**
  50723. * The result object of the [createRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-colormap.html#createRenderer) method.
  50724. *
  50725. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-colormap.html#RasterColormapResult)
  50726. */
  50727. export interface RasterColormapResult {
  50728. /**
  50729. * The colormap renderer to apply to the input layer.
  50730. *
  50731. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-colormap.html#RasterColormapResult)
  50732. */
  50733. renderer: RasterColormapRenderer;
  50734. }
  50735. /**
  50736. * This object contains helper methods for generating a [FlowRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html) for a `Vector-UV` or `Vector-MagDir` [ImageryLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html) or [ImageryTileLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html).
  50737. *
  50738. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-flow.html)
  50739. */
  50740. interface flow {
  50741. /**
  50742. * Generates a [FlowRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html) to display raster data with stream lines.
  50743. *
  50744. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-flow.html#createRenderer)
  50745. */
  50746. createRenderer(params: flowCreateRendererParams): Promise<FlowRendererResult>;
  50747. }
  50748. export const flow: flow;
  50749. export interface flowCreateRendererParams {
  50750. /**
  50751. * The input layer for which the renderer is generated.
  50752. *
  50753. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-flow.html#createRenderer)
  50754. */
  50755. layer: ImageryLayer | ImageryTileLayer;
  50756. /**
  50757. * The view where the input layer is rendered.
  50758. *
  50759. * [Read more...](global.html)
  50760. */
  50761. view?: MapView;
  50762. /**
  50763. * Determines how flow lines will render.
  50764. *
  50765. * @default "flow-line"
  50766. *
  50767. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-flow.html#createRenderer)
  50768. */
  50769. theme?: "flow-line" | "wave-front";
  50770. /**
  50771. * When `true`, the color of stream lines will vary depending on the magnitude of the data.
  50772. *
  50773. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-flow.html#createRenderer)
  50774. */
  50775. includeColorVariable?: boolean;
  50776. /**
  50777. * When `true`, the width of stream lines will vary depending on the magnitude of the data.
  50778. *
  50779. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-flow.html#createRenderer)
  50780. */
  50781. includeSizeVariable?: boolean;
  50782. /**
  50783. * When `true`, the opacity of stream lines will vary depending on the magnitude of the data.
  50784. *
  50785. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-flow.html#createRenderer)
  50786. */
  50787. includeOpacityVariable?: boolean;
  50788. /**
  50789. * Provides options for setting a title to the renderer in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  50790. *
  50791. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-flow.html#createRenderer)
  50792. */
  50793. legendOptions?: flowCreateRendererParamsLegendOptions;
  50794. /**
  50795. * The flow scheme used to set colors and sizes to the flow lines.
  50796. *
  50797. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-flow.html#createRenderer)
  50798. */
  50799. flowScheme?: FlowScheme;
  50800. /**
  50801. * Specifies the rule for how the requested image should be rendered.
  50802. *
  50803. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-flow.html#createRenderer)
  50804. */
  50805. renderingRule?: RasterFunction;
  50806. /**
  50807. * Defines the flow direction of the data.
  50808. *
  50809. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-flow.html#createRenderer)
  50810. */
  50811. flowRepresentation?: "flow-from" | "flow-to";
  50812. /**
  50813. * Allows for cancelable requests.
  50814. *
  50815. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-flow.html#createRenderer)
  50816. */
  50817. signal?: AbortSignal;
  50818. }
  50819. export interface flowCreateRendererParamsLegendOptions {
  50820. /**
  50821. * The title used to represent the data in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  50822. *
  50823. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-flow.html#createRenderer)
  50824. */
  50825. title?: string;
  50826. }
  50827. /**
  50828. * The result object of the [createRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-flow.html#createRenderer) method.
  50829. *
  50830. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-flow.html#FlowRendererResult)
  50831. */
  50832. export interface FlowRendererResult {
  50833. /**
  50834. * The FlowRenderer renderer to apply to the input layer.
  50835. *
  50836. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-flow.html#FlowRendererResult)
  50837. */
  50838. renderer: FlowRenderer;
  50839. /**
  50840. * The flow scheme used to set colors and sizes to the flow lines.
  50841. *
  50842. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-flow.html#FlowRendererResult)
  50843. */
  50844. flowScheme: FlowScheme;
  50845. /**
  50846. * Visual variables included in the output renderer.
  50847. *
  50848. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-flow.html#FlowRendererResult)
  50849. */
  50850. visualVariables: VisualVariable[];
  50851. /**
  50852. * Summary statistics of the raster layer.
  50853. *
  50854. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-flow.html#FlowRendererResult)
  50855. */
  50856. statistics: SummaryStatisticsResult;
  50857. /**
  50858. * The ID of the basemap used to determine the optimal color of the flow lines.
  50859. *
  50860. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-flow.html#FlowRendererResult)
  50861. */
  50862. basemapId: string;
  50863. /**
  50864. * Indicates whether the average color of the input view's basemap is `light` or `dark`.
  50865. *
  50866. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-flow.html#FlowRendererResult)
  50867. */
  50868. basemapTheme: string;
  50869. /**
  50870. * A suggested layer effect to apply to the input layer.
  50871. *
  50872. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-flow.html#FlowRendererResult)
  50873. */
  50874. layerEffect: string;
  50875. }
  50876. /**
  50877. * This object contains helper methods for generating an RGB [stretch visualization](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html) for raster layers (i.e.
  50878. *
  50879. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-rgb.html)
  50880. */
  50881. interface rgb {
  50882. /**
  50883. * Generates an RGB [RasterStretchRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html) to render three selected bands into red, green, and blue color channels.
  50884. *
  50885. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-rgb.html#createRenderer)
  50886. */
  50887. createRenderer(params: rgbCreateRendererParams): Promise<RasterRGBResult>;
  50888. }
  50889. export const rgb: rgb;
  50890. /**
  50891. * The result object of the [createRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-rgb.html#createRenderer) method.
  50892. *
  50893. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-rgb.html#RasterRGBResult)
  50894. */
  50895. export interface RasterRGBResult {
  50896. /**
  50897. * The RGB RasterStretchRenderer renderer to apply to the input layer.
  50898. *
  50899. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-rgb.html#RasterRGBResult)
  50900. */
  50901. renderer: RasterStretchRenderer;
  50902. /**
  50903. * The RGB band indexes following the order of red, green, and blue channels.
  50904. *
  50905. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-rgb.html#RasterRGBResult)
  50906. */
  50907. rgbBandIds: number[];
  50908. }
  50909. export interface rgbCreateRendererParams {
  50910. /**
  50911. * The input layer for which the renderer is generated.
  50912. *
  50913. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-rgb.html#createRenderer)
  50914. */
  50915. layer: ImageryLayer | ImageryTileLayer | WCSLayer;
  50916. /**
  50917. * Specifies the rule for how the requested image should be rendered.
  50918. *
  50919. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-rgb.html#createRenderer)
  50920. */
  50921. renderingRule?: RasterFunction;
  50922. /**
  50923. * A preferred stretch type can be provided.
  50924. *
  50925. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-rgb.html#createRenderer)
  50926. */
  50927. stretchType?: "none" | "min-max" | "standard-deviation" | "histogram-equalization" | "percent-clip" | "sigmoid";
  50928. /**
  50929. * The RGB band indexes following the order of red, green, and blue channels.
  50930. *
  50931. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-rgb.html#createRenderer)
  50932. */
  50933. rgbBandIds?: number[];
  50934. /**
  50935. * The gamma values to be used if `useGamma` is `true`.
  50936. *
  50937. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-rgb.html#createRenderer)
  50938. */
  50939. gamma?: number[];
  50940. /**
  50941. * Indicates whether the `gamma` values should be used.
  50942. *
  50943. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-rgb.html#createRenderer)
  50944. */
  50945. useGamma?: boolean;
  50946. /**
  50947. * When `true`, calculates the renderer's statistics based on the current display extent and recalculates them as you zoom and pan around the image.
  50948. *
  50949. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-rgb.html#createRenderer)
  50950. */
  50951. dynamicRangeAdjustment?: boolean;
  50952. /**
  50953. * Useful in scenarios where an image service does not have statistics.
  50954. *
  50955. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-rgb.html#createRenderer)
  50956. */
  50957. estimateStatistics?: boolean;
  50958. /**
  50959. * Allows for cancelable requests.
  50960. *
  50961. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-rgb.html#createRenderer)
  50962. */
  50963. signal?: AbortSignal;
  50964. }
  50965. /**
  50966. * This object contains helper methods for generating a [RasterShadedReliefRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterShadedReliefRenderer.html) to render elevation values in raster layers (i.e.
  50967. *
  50968. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-shadedRelief.html)
  50969. */
  50970. interface shadedRelief {
  50971. /**
  50972. * Generates a [RasterShadedReliefRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterShadedReliefRenderer.html) to render elevation data.
  50973. *
  50974. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-shadedRelief.html#createRenderer)
  50975. */
  50976. createRenderer(params: shadedReliefCreateRendererParams): Promise<RasterShadedReliefResult>;
  50977. }
  50978. export const shadedRelief: shadedRelief;
  50979. /**
  50980. * The result object of the [createRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-shadedRelief.html#createRenderer) method.
  50981. *
  50982. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-shadedRelief.html#RasterShadedReliefResult)
  50983. */
  50984. export interface RasterShadedReliefResult {
  50985. /**
  50986. * The RasterShadedReliefRenderer renderer to apply to the input layer.
  50987. *
  50988. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-shadedRelief.html#RasterShadedReliefResult)
  50989. */
  50990. renderer: RasterShadedReliefRenderer;
  50991. }
  50992. export interface shadedReliefCreateRendererParams {
  50993. /**
  50994. * The input layer for which the renderer is generated.
  50995. *
  50996. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-shadedRelief.html#createRenderer)
  50997. */
  50998. layer: ImageryLayer | ImageryTileLayer;
  50999. /**
  51000. * Specifies the rule for how the requested image should be rendered.
  51001. *
  51002. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-shadedRelief.html#createRenderer)
  51003. */
  51004. renderingRule?: RasterFunction;
  51005. /**
  51006. * The preferred hillshade type.
  51007. *
  51008. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-shadedRelief.html#createRenderer)
  51009. */
  51010. hillshadeType?: "traditional" | "multi-directional";
  51011. /**
  51012. * Applies a constant or adjusted z-factor based on resolution changes.
  51013. *
  51014. * @default none
  51015. *
  51016. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-shadedRelief.html#createRenderer)
  51017. */
  51018. scalingType?: "none" | "adjusted";
  51019. /**
  51020. * The color ramp to apply to the renderer.
  51021. *
  51022. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-shadedRelief.html#createRenderer)
  51023. */
  51024. colorRamp?: AlgorithmicColorRamp | MultipartColorRamp;
  51025. /**
  51026. * Allows for cancelable requests.
  51027. *
  51028. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-shadedRelief.html#createRenderer)
  51029. */
  51030. signal?: AbortSignal;
  51031. }
  51032. /**
  51033. * This object contains helper methods for generating a single-band [stretch visualization](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html) for raster layers (i.e.
  51034. *
  51035. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-stretch.html)
  51036. */
  51037. interface stretch {
  51038. /**
  51039. * Generates a [RasterStretchRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-RasterStretchRenderer.html) to render data from a single raster band.
  51040. *
  51041. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-stretch.html#createRenderer)
  51042. */
  51043. createRenderer(params: stretchCreateRendererParams): Promise<RasterStretchColorrampResult>;
  51044. }
  51045. export const stretch: stretch;
  51046. /**
  51047. * The result object of the [createRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-stretch.html#createRenderer) method.
  51048. *
  51049. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-stretch.html#RasterStretchColorrampResult)
  51050. */
  51051. export interface RasterStretchColorrampResult {
  51052. /**
  51053. * The RasterStretchRenderer renderer to apply to the input layer.
  51054. *
  51055. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-stretch.html#RasterStretchColorrampResult)
  51056. */
  51057. renderer: RasterStretchRenderer;
  51058. /**
  51059. * The zero-based index of the band represented by the renderer.
  51060. *
  51061. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-stretch.html#RasterStretchColorrampResult)
  51062. */
  51063. bandId: number;
  51064. }
  51065. export interface stretchCreateRendererParams {
  51066. /**
  51067. * The input layer for which the renderer is generated.
  51068. *
  51069. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-stretch.html#createRenderer)
  51070. */
  51071. layer: ImageryLayer | ImageryTileLayer | WCSLayer;
  51072. /**
  51073. * Specifies the rule for how the requested image should be rendered.
  51074. *
  51075. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-stretch.html#createRenderer)
  51076. */
  51077. renderingRule?: RasterFunction;
  51078. /**
  51079. * A preferred stretch type can be provided.
  51080. *
  51081. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-stretch.html#createRenderer)
  51082. */
  51083. stretchType?: "none" | "min-max" | "standard-deviation" | "histogram-equalization" | "percent-clip" | "sigmoid";
  51084. /**
  51085. * The 0-based index of a selected band.
  51086. *
  51087. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-stretch.html#createRenderer)
  51088. */
  51089. bandId?: number;
  51090. /**
  51091. * The color ramp to apply to the renderer.
  51092. *
  51093. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-stretch.html#createRenderer)
  51094. */
  51095. colorRamp?: AlgorithmicColorRamp | MultipartColorRamp;
  51096. /**
  51097. * Only applicable to multidimensional datasets where a raster layer can contain more than one variable (such as temperature, humidity, wind speed) with different statistics.
  51098. *
  51099. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-stretch.html#createRenderer)
  51100. */
  51101. variableName?: string;
  51102. /**
  51103. * The gamma values to be used if `useGamma` is `true`.
  51104. *
  51105. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-stretch.html#createRenderer)
  51106. */
  51107. gamma?: number[];
  51108. /**
  51109. * Indicates whether the `gamma` values should be used.
  51110. *
  51111. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-stretch.html#createRenderer)
  51112. */
  51113. useGamma?: boolean;
  51114. /**
  51115. * When `true`, calculates the renderer's statistics based on the current display extent and recalculates them as you zoom and pan around the image.
  51116. *
  51117. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-stretch.html#createRenderer)
  51118. */
  51119. dynamicRangeAdjustment?: boolean;
  51120. /**
  51121. * Useful in scenarios where an image service does not have statistics.
  51122. *
  51123. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-stretch.html#createRenderer)
  51124. */
  51125. estimateStatistics?: boolean;
  51126. /**
  51127. * Allows for cancelable requests.
  51128. *
  51129. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-stretch.html#createRenderer)
  51130. */
  51131. signal?: AbortSignal;
  51132. }
  51133. /**
  51134. * This object contains helper methods for generating a [UniqueValueRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html) for raster layers (i.e.
  51135. *
  51136. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-uniqueValue.html)
  51137. */
  51138. interface uniqueValue {
  51139. /**
  51140. * Generates a [UniqueValueRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html) to render thematic imagery.
  51141. *
  51142. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-uniqueValue.html#createRenderer)
  51143. */
  51144. createRenderer(params: uniqueValueCreateRendererParams): Promise<RasterUniqueValuesResult>;
  51145. }
  51146. export const uniqueValue: uniqueValue;
  51147. /**
  51148. * The result object of the [createRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-uniqueValue.html#createRenderer) method.
  51149. *
  51150. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-uniqueValue.html#RasterUniqueValuesResult)
  51151. */
  51152. export interface RasterUniqueValuesResult {
  51153. /**
  51154. * The UniqueValueRenderer renderer to apply to the input layer.
  51155. *
  51156. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-uniqueValue.html#RasterUniqueValuesResult)
  51157. */
  51158. renderer: UniqueValueRenderer;
  51159. /**
  51160. * The class field name from which the unique value infos were generated.
  51161. *
  51162. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-uniqueValue.html#RasterUniqueValuesResult)
  51163. */
  51164. classFieldName: string;
  51165. }
  51166. export interface uniqueValueCreateRendererParams {
  51167. /**
  51168. * The input layer for which the renderer is generated.
  51169. *
  51170. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-uniqueValue.html#createRenderer)
  51171. */
  51172. layer: ImageryLayer | ImageryTileLayer;
  51173. /**
  51174. * Specifies the rule for how the requested image should be rendered.
  51175. *
  51176. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-uniqueValue.html#createRenderer)
  51177. */
  51178. renderingRule?: RasterFunction;
  51179. /**
  51180. * A preferred class field name used for calculating unique values.
  51181. *
  51182. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-uniqueValue.html#createRenderer)
  51183. */
  51184. classFieldName?: string;
  51185. /**
  51186. * The colors to apply to each unique value.
  51187. *
  51188. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-uniqueValue.html#createRenderer)
  51189. */
  51190. colors?: number[][];
  51191. /**
  51192. * The color ramp to apply to the renderer.
  51193. *
  51194. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-uniqueValue.html#createRenderer)
  51195. */
  51196. colorRamp?: AlgorithmicColorRamp | MultipartColorRamp;
  51197. /**
  51198. * Allows for cancelable requests.
  51199. *
  51200. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-uniqueValue.html#createRenderer)
  51201. */
  51202. signal?: AbortSignal;
  51203. }
  51204. /**
  51205. * This object contains helper methods for generating a [VectorFieldRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-VectorFieldRenderer.html) for a `Vector-UV` or `Vector-MagDir` [ImageryLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html) or [ImageryTileLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html).
  51206. *
  51207. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-vectorField.html)
  51208. */
  51209. interface vectorField {
  51210. /**
  51211. * Generates a [VectorFieldRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-VectorFieldRenderer.html) to display raster data with vector symbols.
  51212. *
  51213. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-vectorField.html#createRenderer)
  51214. */
  51215. createRenderer(params: vectorFieldCreateRendererParams): Promise<VectorFieldRendererResult>;
  51216. }
  51217. export const vectorField: vectorField;
  51218. export interface vectorFieldCreateRendererParams {
  51219. /**
  51220. * The input layer for which the renderer is generated.
  51221. *
  51222. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-vectorField.html#createRenderer)
  51223. */
  51224. layer: ImageryLayer | ImageryTileLayer;
  51225. /**
  51226. * Specifies the rule for how the requested image should be rendered.
  51227. *
  51228. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-vectorField.html#createRenderer)
  51229. */
  51230. renderingRule?: RasterFunction;
  51231. /**
  51232. * Defines the flow direction of the data.
  51233. *
  51234. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-vectorField.html#createRenderer)
  51235. */
  51236. flowRepresentation?: "flow-from" | "flow-to";
  51237. /**
  51238. * Defines the origin and direction of rotation depending on how the angle of rotation was measured.
  51239. *
  51240. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-vectorField.html#createRenderer)
  51241. */
  51242. rotationType?: "geographic" | "arithmetic";
  51243. /**
  51244. * The predefined symbol styles used to represent the vector flow.
  51245. *
  51246. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-vectorField.html#createRenderer)
  51247. */
  51248. style?: | "beaufort-ft"
  51249. | "beaufort-km"
  51250. | "beaufort-kn"
  51251. | "beaufort-m"
  51252. | "beaufort-mi"
  51253. | "classified-arrow"
  51254. | "ocean-current-kn"
  51255. | "ocean-current-m"
  51256. | "simple-scalar"
  51257. | "single-arrow"
  51258. | "wind-barb";
  51259. /**
  51260. * Allows for cancelable requests.
  51261. *
  51262. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-vectorField.html#createRenderer)
  51263. */
  51264. signal?: AbortSignal;
  51265. }
  51266. /**
  51267. * The result object of the [createRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-vectorField.html#createRenderer) method.
  51268. *
  51269. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-vectorField.html#VectorFieldRendererResult)
  51270. */
  51271. export interface VectorFieldRendererResult {
  51272. /**
  51273. * The VectorFieldRenderer renderer to apply to the input layer.
  51274. *
  51275. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-vectorField.html#VectorFieldRendererResult)
  51276. */
  51277. renderer: VectorFieldRenderer;
  51278. }
  51279. /**
  51280. * This object contains utility methods for obtaining information about supported renderers of raster layers (i.e.
  51281. *
  51282. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-support-utils.html)
  51283. */
  51284. interface utils {
  51285. /**
  51286. * Returns default band ids used by a multispectral imagery layer when using a raster [rgb](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-rgb.html) or [stretch](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-renderers-stretch.html) renderer.
  51287. *
  51288. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-support-utils.html#getDefaultBandCombination)
  51289. */
  51290. getDefaultBandCombination(params: utilsGetDefaultBandCombinationParams): Promise<number[]>;
  51291. /**
  51292. * Returns supported raster renderer information of an imagery layer.
  51293. *
  51294. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-support-utils.html#getSupportedRendererInfo)
  51295. */
  51296. getSupportedRendererInfo(params: utilsGetSupportedRendererInfoParams): Promise<SupportedRendererInfo>;
  51297. }
  51298. export const utils: utils;
  51299. /**
  51300. * The result object of the [getSupportedRendererInfo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-support-utils.html#getSupportedRendererInfo) method.
  51301. *
  51302. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-support-utils.html#SupportedRendererInfo)
  51303. */
  51304. export interface SupportedRendererInfo {
  51305. /**
  51306. * The default renderer of the input layer.
  51307. *
  51308. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-support-utils.html#SupportedRendererInfo)
  51309. */
  51310. defaultRenderer: | ClassBreaksRenderer
  51311. | RasterColormapRenderer
  51312. | UniqueValueRenderer
  51313. | RasterStretchRenderer
  51314. | VectorFieldRenderer
  51315. | RasterShadedReliefRenderer
  51316. | FlowRenderer;
  51317. /**
  51318. * A list of supported renderer types that may be applied to the input layer.
  51319. *
  51320. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-support-utils.html#SupportedRendererInfo)
  51321. */
  51322. supportedTypes: SupportedRendererType[];
  51323. }
  51324. /**
  51325. * Supported renderer types for imagery layers.
  51326. *
  51327. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-support-utils.html#SupportedRendererType)
  51328. */
  51329. export type SupportedRendererType = | "raster-stretch"
  51330. | "raster-unique-value"
  51331. | "raster-rgb"
  51332. | "raster-class-breaks"
  51333. | "raster-colormap"
  51334. | "raster-shaded-relief"
  51335. | "raster-vector-field"
  51336. | "raster-flow";
  51337. export interface utilsGetDefaultBandCombinationParams {
  51338. /**
  51339. * Layer for which the default band ids are returned.
  51340. *
  51341. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-support-utils.html#getDefaultBandCombination)
  51342. */
  51343. layer: ImageryLayer | ImageryTileLayer | WCSLayer;
  51344. /**
  51345. * Specifies the rule for how the requested image should be rendered.
  51346. *
  51347. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-support-utils.html#getDefaultBandCombination)
  51348. */
  51349. renderingRule?: RasterFunction;
  51350. /**
  51351. * Allows for cancelable requests.
  51352. *
  51353. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-support-utils.html#getDefaultBandCombination)
  51354. */
  51355. signal?: AbortSignal;
  51356. }
  51357. export interface utilsGetSupportedRendererInfoParams {
  51358. /**
  51359. * The input layer for which the renderer info is returned.
  51360. *
  51361. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-support-utils.html#getSupportedRendererInfo)
  51362. */
  51363. layer: ImageryLayer | ImageryTileLayer | WCSLayer;
  51364. /**
  51365. * Specifies the rule for how the requested image should be rendered.
  51366. *
  51367. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-support-utils.html#getSupportedRendererInfo)
  51368. */
  51369. renderingRule?: RasterFunction;
  51370. /**
  51371. * Allows for cancelable requests.
  51372. *
  51373. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-raster-support-utils.html#getSupportedRendererInfo)
  51374. */
  51375. signal?: AbortSignal;
  51376. }
  51377. /**
  51378. * This object contains helper methods for generating data-driven visualizations with continuous color or class breaks based on a field value or expression from features in a [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html).
  51379. *
  51380. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html)
  51381. */
  51382. interface color {
  51383. /**
  51384. * Generates a continuous color [Renderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-Renderer.html) representing the age of features based on one or more fields.
  51385. *
  51386. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createAgeRenderer)
  51387. */
  51388. createAgeRenderer(params: colorCreateAgeRendererParams): Promise<AgeRendererResult>;
  51389. /**
  51390. * Generates a [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html) that may be applied directly to the layer used to call this method.
  51391. *
  51392. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer)
  51393. */
  51394. createClassBreaksRenderer(params: colorCreateClassBreaksRendererParams): Promise<ClassBreaksRendererResult>;
  51395. /**
  51396. * Generates a [Renderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-Renderer.html) that may be applied directly to the layer used to call this method.
  51397. *
  51398. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer)
  51399. */
  51400. createContinuousRenderer(params: colorCreateContinuousRendererParams): Promise<ContinuousRendererResult>;
  51401. /**
  51402. * Generates a [PointCloudStretchRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudStretchRenderer.html) with a color scheme best-suited for the view's background based on statistics returned from a given field of a [PointCloudLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html).
  51403. *
  51404. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createPCContinuousRenderer)
  51405. */
  51406. createPCContinuousRenderer(params: colorCreatePCContinuousRendererParams): Promise<PCContinuousRendererResult>;
  51407. /**
  51408. * Generates a [PointCloudRGBRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudRGBRenderer.html) based on the `RGB` field of a given [PointCloudLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html).
  51409. *
  51410. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createPCTrueColorRenderer)
  51411. */
  51412. createPCTrueColorRenderer(params: colorCreatePCTrueColorRendererParams): Promise<PCTrueColorRendererResult>;
  51413. /**
  51414. * This method generates a color visual variable with default stops that are optimally chosen based on the statistics queried for the indicated field or expression and colors determined by the view's background.
  51415. *
  51416. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createVisualVariable)
  51417. */
  51418. createVisualVariable(params: colorCreateVisualVariableParams): Promise<VisualVariableResult>;
  51419. }
  51420. export const color: color;
  51421. /**
  51422. * The result object of the [createAgeRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createAgeRenderer) method.
  51423. *
  51424. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#AgeRendererResult)
  51425. */
  51426. export interface AgeRendererResult {
  51427. /**
  51428. * The renderer object configured to best match the background of the view and the spread of the data.
  51429. *
  51430. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#AgeRendererResult)
  51431. */
  51432. renderer: ClassBreaksRenderer;
  51433. /**
  51434. * A color visual variable configured based on the statistics of the data and the background of the view.
  51435. *
  51436. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#AgeRendererResult)
  51437. */
  51438. visualVariable: ColorVariable;
  51439. /**
  51440. * The time unit used to represent age in the output `renderer`.
  51441. *
  51442. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#AgeRendererResult)
  51443. */
  51444. unit: string;
  51445. /**
  51446. * The color scheme used by the visual variable.
  51447. *
  51448. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#AgeRendererResult)
  51449. */
  51450. colorScheme: ColorScheme;
  51451. /**
  51452. * Indicates whether default values are used in the absence of sufficient data and/or statistics from the layer.
  51453. *
  51454. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#AgeRendererResult)
  51455. */
  51456. defaultValuesUsed: boolean;
  51457. /**
  51458. * Basic statistics returned from a query to the service for data from the given field name or expression.
  51459. *
  51460. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#AgeRendererResult)
  51461. */
  51462. statistics: SummaryStatisticsResult;
  51463. /**
  51464. * The ID of the basemap used to determine the optimal fill color of the features.
  51465. *
  51466. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#AgeRendererResult)
  51467. */
  51468. basemapId: string;
  51469. /**
  51470. * Indicates whether the average color of the input view's basemap is `light` or `dark`.
  51471. *
  51472. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#AgeRendererResult)
  51473. */
  51474. basemapTheme: string;
  51475. }
  51476. /**
  51477. * The result object of the [createClassBreaksRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer) method.
  51478. *
  51479. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#ClassBreaksRendererResult)
  51480. */
  51481. export interface ClassBreaksRendererResult {
  51482. /**
  51483. * The renderer object configured to best match the background of the view and the spread of the data.
  51484. *
  51485. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#ClassBreaksRendererResult)
  51486. */
  51487. renderer: ClassBreaksRenderer;
  51488. /**
  51489. * This object describes class breaks generated from data in a layer for a given field with a specified classification method.
  51490. *
  51491. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#ClassBreaksRendererResult)
  51492. */
  51493. classBreaksResult: ClassBreaksResult;
  51494. /**
  51495. * The color scheme used for the class breaks.
  51496. *
  51497. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#ClassBreaksRendererResult)
  51498. */
  51499. colorScheme: ColorScheme;
  51500. /**
  51501. * Indicates whether default values are used in the absence of sufficient data and/or statistics from the layer.
  51502. *
  51503. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#ClassBreaksRendererResult)
  51504. */
  51505. defaultValuesUsed: boolean;
  51506. /**
  51507. * The ID of the basemap used to determine the optimal fill color of the features.
  51508. *
  51509. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#ClassBreaksRendererResult)
  51510. */
  51511. basemapId: string;
  51512. /**
  51513. * Indicates whether the average color of the input view's basemap is `light` or `dark`.
  51514. *
  51515. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#ClassBreaksRendererResult)
  51516. */
  51517. basemapTheme: string;
  51518. }
  51519. export interface colorCreateAgeRendererParams {
  51520. /**
  51521. * The layer for which the visualization is generated.
  51522. *
  51523. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createAgeRenderer)
  51524. */
  51525. layer: FeatureLayer | SceneLayer | CSVLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  51526. /**
  51527. * The view where the input layer is rendered.
  51528. *
  51529. * [Read more...](global.html)
  51530. */
  51531. view: View;
  51532. /**
  51533. * The name of the field, or a date value representing the start time in the age calculation.
  51534. *
  51535. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createAgeRenderer)
  51536. */
  51537. startTime: Date | string | number;
  51538. /**
  51539. * The name of the field, or a date value representing the end time in the age calculation.
  51540. *
  51541. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createAgeRenderer)
  51542. */
  51543. endTime: Date | string | number;
  51544. /**
  51545. * The time unit used to calculate the difference between `endTime` and `startTime`.
  51546. *
  51547. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createAgeRenderer)
  51548. */
  51549. unit?: "years" | "months" | "days" | "hours" | "minutes" | "seconds";
  51550. /**
  51551. * Sets a maximum age for the visualization.
  51552. *
  51553. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createAgeRenderer)
  51554. */
  51555. maxValue?: number;
  51556. /**
  51557. * Sets a minimum age for the visualization.
  51558. *
  51559. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createAgeRenderer)
  51560. */
  51561. minValue?: number;
  51562. /**
  51563. * Determines which values will be emphasized in the continuous ramp and the map.
  51564. *
  51565. * @default high-to-low
  51566. *
  51567. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createAgeRenderer)
  51568. */
  51569. theme?: "high-to-low" | "above" | "below" | "above-and-below" | "centered-on" | "extremes";
  51570. /**
  51571. * For polygon layers only.
  51572. *
  51573. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createAgeRenderer)
  51574. */
  51575. outlineOptimizationEnabled?: boolean;
  51576. /**
  51577. * For point and polyline layers only.
  51578. *
  51579. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createAgeRenderer)
  51580. */
  51581. sizeOptimizationEnabled?: boolean;
  51582. /**
  51583. * Provides options for modifying [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) properties describing the visualization.
  51584. *
  51585. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createAgeRenderer)
  51586. */
  51587. legendOptions?: colorCreateAgeRendererParamsLegendOptions;
  51588. /**
  51589. * A statistics object generated from the [summaryStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html) function.
  51590. *
  51591. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createAgeRenderer)
  51592. */
  51593. statistics?: SummaryStatisticsResult;
  51594. /**
  51595. * In authoring apps, the user may select a pre-defined color scheme.
  51596. *
  51597. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createAgeRenderer)
  51598. */
  51599. colorScheme?: ColorScheme;
  51600. /**
  51601. * The type of symbol to generate.
  51602. *
  51603. * @default 2d
  51604. *
  51605. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createAgeRenderer)
  51606. */
  51607. symbolType?: "2d" | "3d-flat" | "3d-volumetric" | "3d-volumetric-uniform";
  51608. /**
  51609. * Enables the `defaultSymbol` on the renderer and assigns it to features with no value.
  51610. *
  51611. * @default true
  51612. *
  51613. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createAgeRenderer)
  51614. */
  51615. defaultSymbolEnabled?: boolean;
  51616. /**
  51617. * **This option only applies to generating renderers for mesh SceneLayers**.
  51618. *
  51619. * @default replace
  51620. *
  51621. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createAgeRenderer)
  51622. */
  51623. colorMixMode?: string;
  51624. /**
  51625. * Allows for cancelable requests.
  51626. *
  51627. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createAgeRenderer)
  51628. */
  51629. signal?: AbortSignal;
  51630. }
  51631. export interface colorCreateAgeRendererParamsLegendOptions {
  51632. /**
  51633. * The title used to represent the age color ramp in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  51634. *
  51635. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createAgeRenderer)
  51636. */
  51637. title?: string;
  51638. /**
  51639. * Indicates whether to include the age renderer in the legend.
  51640. *
  51641. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createAgeRenderer)
  51642. */
  51643. showLegend?: boolean;
  51644. }
  51645. export interface colorCreateClassBreaksRendererParams {
  51646. /**
  51647. * The layer for which the visualization is generated.
  51648. *
  51649. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer)
  51650. */
  51651. layer: FeatureLayer | SceneLayer | CSVLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  51652. /**
  51653. * The view where the input layer is rendered.
  51654. *
  51655. * [Read more...](global.html)
  51656. */
  51657. view?: View;
  51658. /**
  51659. * The name of the field whose data will be queried for statistics and classified.
  51660. *
  51661. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer)
  51662. */
  51663. field?: string;
  51664. /**
  51665. * The name of the field to normalize the values of the given `field`.
  51666. *
  51667. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer)
  51668. */
  51669. normalizationField?: string;
  51670. /**
  51671. * Indicates how the data is normalized.
  51672. *
  51673. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer)
  51674. */
  51675. normalizationType?: "field" | "log" | "percent-of-total";
  51676. /**
  51677. * When `normalizationType` is `percent-of-total`, this property contains the total of all data values.
  51678. *
  51679. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer)
  51680. */
  51681. normalizationTotal?: number;
  51682. /**
  51683. * The classification method used for generating breaks.
  51684. *
  51685. * @default equal-interval
  51686. *
  51687. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer)
  51688. */
  51689. classificationMethod?: "equal-interval" | "natural-breaks" | "quantile" | "standard-deviation";
  51690. /**
  51691. * If a `standard-deviation` classification method is used, then this indicates the interval by which to generate class breaks.
  51692. *
  51693. * @default 1
  51694. *
  51695. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer)
  51696. */
  51697. standardDeviationInterval?: number;
  51698. /**
  51699. * The number of class breaks to generate.
  51700. *
  51701. * @default 5
  51702. *
  51703. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer)
  51704. */
  51705. numClasses?: number;
  51706. /**
  51707. * In authoring apps, the user may select a pre-defined color scheme.
  51708. *
  51709. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer)
  51710. */
  51711. colorScheme?: ColorScheme;
  51712. /**
  51713. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  51714. *
  51715. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer)
  51716. */
  51717. valueExpression?: string;
  51718. /**
  51719. * Text describing the value returned from the `valueExpression`.
  51720. *
  51721. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer)
  51722. */
  51723. valueExpressionTitle?: string;
  51724. /**
  51725. * A SQL expression evaluating to a number.
  51726. *
  51727. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer)
  51728. */
  51729. sqlExpression?: string;
  51730. /**
  51731. * A SQL where clause used to filter features for the statistics query.
  51732. *
  51733. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer)
  51734. */
  51735. sqlWhere?: string;
  51736. /**
  51737. * For polygon layers only.
  51738. *
  51739. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer)
  51740. */
  51741. outlineOptimizationEnabled?: boolean;
  51742. /**
  51743. * Provides options for setting a title to describe a field instead of using the field name.
  51744. *
  51745. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer)
  51746. */
  51747. legendOptions?: colorCreateClassBreaksRendererParamsLegendOptions;
  51748. /**
  51749. * A minimum value set by the user.
  51750. *
  51751. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer)
  51752. */
  51753. minValue?: number;
  51754. /**
  51755. * A maximum value set by the user.
  51756. *
  51757. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer)
  51758. */
  51759. maxValue?: number;
  51760. /**
  51761. * Enables the `defaultSymbol` on the renderer and assigns it to features with no value and features that do not fall within the configured data range.
  51762. *
  51763. * @default true
  51764. *
  51765. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer)
  51766. */
  51767. defaultSymbolEnabled?: boolean;
  51768. /**
  51769. * The type of symbol to generate.
  51770. *
  51771. * @default 2d
  51772. *
  51773. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer)
  51774. */
  51775. symbolType?: "2d" | "3d-flat" | "3d-volumetric" | "3d-volumetric-uniform";
  51776. /**
  51777. * **This option only applies to generating renderers for mesh SceneLayers**.
  51778. *
  51779. * @default replace
  51780. *
  51781. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer)
  51782. */
  51783. colorMixMode?: string;
  51784. /**
  51785. * Indicates whether the generated renderer is for a binning visualization.
  51786. *
  51787. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer)
  51788. */
  51789. forBinning?: boolean;
  51790. /**
  51791. * Allows for cancelable requests.
  51792. *
  51793. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer)
  51794. */
  51795. signal?: AbortSignal;
  51796. }
  51797. export interface colorCreateClassBreaksRendererParamsLegendOptions {
  51798. /**
  51799. * The title used to represent the given field or expression in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  51800. *
  51801. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer)
  51802. */
  51803. title?: string;
  51804. }
  51805. export interface colorCreateContinuousRendererParams {
  51806. /**
  51807. * The layer for which the visualization is generated.
  51808. *
  51809. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer)
  51810. */
  51811. layer: FeatureLayer | SceneLayer | CSVLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  51812. /**
  51813. * The view where the input layer is rendered.
  51814. *
  51815. * [Read more...](global.html)
  51816. */
  51817. view?: View;
  51818. /**
  51819. * The name of the field whose data will be queried for statistics and used for the basis of the data-driven visualization.
  51820. *
  51821. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer)
  51822. */
  51823. field?: string;
  51824. /**
  51825. * The name of the field to normalize the values of the given `field`.
  51826. *
  51827. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer)
  51828. */
  51829. normalizationField?: string;
  51830. /**
  51831. * Determines which values will be emphasized in the continuous ramp and the map.
  51832. *
  51833. * @default high-to-low
  51834. *
  51835. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer)
  51836. */
  51837. theme?: "high-to-low" | "above" | "below" | "above-and-below" | "centered-on" | "extremes";
  51838. /**
  51839. * In authoring apps, the user may select a pre-defined color scheme.
  51840. *
  51841. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer)
  51842. */
  51843. colorScheme?: ColorScheme;
  51844. /**
  51845. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  51846. *
  51847. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer)
  51848. */
  51849. valueExpression?: string;
  51850. /**
  51851. * Text describing the value returned from the `valueExpression`.
  51852. *
  51853. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer)
  51854. */
  51855. valueExpressionTitle?: string;
  51856. /**
  51857. * A SQL expression evaluating to a number.
  51858. *
  51859. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer)
  51860. */
  51861. sqlExpression?: string;
  51862. /**
  51863. * A SQL where clause used to filter features for the statistics query.
  51864. *
  51865. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer)
  51866. */
  51867. sqlWhere?: string;
  51868. /**
  51869. * For polygon layers only.
  51870. *
  51871. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer)
  51872. */
  51873. outlineOptimizationEnabled?: boolean;
  51874. /**
  51875. * For point and polyline layers only.
  51876. *
  51877. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer)
  51878. */
  51879. sizeOptimizationEnabled?: boolean;
  51880. /**
  51881. * Provides options for setting a title to a field when an expression is provided instead of a field name.
  51882. *
  51883. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer)
  51884. */
  51885. legendOptions?: colorCreateContinuousRendererParamsLegendOptions;
  51886. /**
  51887. * A statistics object generated from the [summaryStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html) function.
  51888. *
  51889. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer)
  51890. */
  51891. statistics?: SummaryStatisticsResult;
  51892. /**
  51893. * A custom minimum value set by the user.
  51894. *
  51895. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer)
  51896. */
  51897. minValue?: number;
  51898. /**
  51899. * A custom maximum value set by the user.
  51900. *
  51901. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer)
  51902. */
  51903. maxValue?: number;
  51904. /**
  51905. * Enables the `defaultSymbol` on the renderer and assigns it to features with no value and features that do not fall within the configured data range.
  51906. *
  51907. * @default true
  51908. *
  51909. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer)
  51910. */
  51911. defaultSymbolEnabled?: boolean;
  51912. /**
  51913. * The type of symbol to generate.
  51914. *
  51915. * @default 2d
  51916. *
  51917. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer)
  51918. */
  51919. symbolType?: "2d" | "3d-flat" | "3d-volumetric" | "3d-volumetric-uniform";
  51920. /**
  51921. * **This option only applies to generating renderers for mesh SceneLayers**.
  51922. *
  51923. * @default replace
  51924. *
  51925. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer)
  51926. */
  51927. colorMixMode?: string;
  51928. /**
  51929. * Indicates whether the generated renderer is for a binning visualization.
  51930. *
  51931. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer)
  51932. */
  51933. forBinning?: boolean;
  51934. /**
  51935. * Allows for cancelable requests.
  51936. *
  51937. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer)
  51938. */
  51939. signal?: AbortSignal;
  51940. }
  51941. export interface colorCreateContinuousRendererParamsLegendOptions {
  51942. /**
  51943. * The title used to represent the given field or expression in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  51944. *
  51945. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer)
  51946. */
  51947. title?: string;
  51948. /**
  51949. * Indicates whether to describe the renderer in the legend.
  51950. *
  51951. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer)
  51952. */
  51953. showLegend?: boolean;
  51954. }
  51955. export interface colorCreatePCContinuousRendererParams {
  51956. /**
  51957. * The layer for which the visualization is generated.
  51958. *
  51959. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createPCContinuousRenderer)
  51960. */
  51961. layer: PointCloudLayer;
  51962. /**
  51963. * The name of the field whose data will be queried for statistics and used for the basis of the data-driven visualization.
  51964. *
  51965. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createPCContinuousRenderer)
  51966. */
  51967. field: string;
  51968. /**
  51969. * The [named string](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#basemap) or basemap object of the Esri basemap that will be paired with the output visualization.
  51970. *
  51971. * @default gray
  51972. *
  51973. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createPCContinuousRenderer)
  51974. */
  51975. basemap?: string | Basemap;
  51976. /**
  51977. * The size of each point expressed as a percentage.
  51978. *
  51979. * @default 100%
  51980. *
  51981. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createPCContinuousRenderer)
  51982. */
  51983. size?: string;
  51984. /**
  51985. * The number of points per inch in the view.
  51986. *
  51987. * @default 25
  51988. *
  51989. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createPCContinuousRenderer)
  51990. */
  51991. density?: number;
  51992. /**
  51993. * In authoring apps, the user may select a pre-defined color scheme.
  51994. *
  51995. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createPCContinuousRenderer)
  51996. */
  51997. colorScheme?: ColorScheme;
  51998. /**
  51999. * A statistics object generated from the [summaryStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html) function.
  52000. *
  52001. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createPCContinuousRenderer)
  52002. */
  52003. statistics?: SummaryStatisticsResult;
  52004. /**
  52005. * Allows for cancelable requests.
  52006. *
  52007. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createPCContinuousRenderer)
  52008. */
  52009. signal?: AbortSignal;
  52010. }
  52011. export interface colorCreatePCTrueColorRendererParams {
  52012. /**
  52013. * The layer for which the visualization is generated.
  52014. *
  52015. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createPCTrueColorRenderer)
  52016. */
  52017. layer: PointCloudLayer;
  52018. /**
  52019. * The size of each point expressed as a percentage.
  52020. *
  52021. * @default 100%
  52022. *
  52023. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createPCTrueColorRenderer)
  52024. */
  52025. size?: string;
  52026. /**
  52027. * The number of points per inch in the view.
  52028. *
  52029. * @default 25
  52030. *
  52031. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createPCTrueColorRenderer)
  52032. */
  52033. density?: number;
  52034. /**
  52035. * Allows for cancelable requests.
  52036. *
  52037. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createPCTrueColorRenderer)
  52038. */
  52039. signal?: AbortSignal;
  52040. }
  52041. export interface colorCreateVisualVariableParams {
  52042. /**
  52043. * The layer for which the visual variable is generated.
  52044. *
  52045. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createVisualVariable)
  52046. */
  52047. layer: FeatureLayer | SceneLayer | CSVLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  52048. /**
  52049. * The view where the input layer is rendered.
  52050. *
  52051. * [Read more...](global.html)
  52052. */
  52053. view?: View;
  52054. /**
  52055. * The name of the field whose data will be queried for statistics and used for the basis of the data-driven visualization.
  52056. *
  52057. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createVisualVariable)
  52058. */
  52059. field?: string;
  52060. /**
  52061. * The name of the field to normalize the values of the given `field`.
  52062. *
  52063. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createVisualVariable)
  52064. */
  52065. normalizationField?: string;
  52066. /**
  52067. * Determines which values will be emphasized in the continuous ramp and the map.
  52068. *
  52069. * @default high-to-low
  52070. *
  52071. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createVisualVariable)
  52072. */
  52073. theme?: "high-to-low" | "above" | "below" | "above-and-below" | "centered-on" | "extremes";
  52074. /**
  52075. * In authoring apps, the user may select a pre-defined color scheme.
  52076. *
  52077. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createVisualVariable)
  52078. */
  52079. colorScheme?: ColorScheme;
  52080. /**
  52081. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  52082. *
  52083. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createVisualVariable)
  52084. */
  52085. valueExpression?: string;
  52086. /**
  52087. * Text describing the value returned from the `valueExpression`.
  52088. *
  52089. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createVisualVariable)
  52090. */
  52091. valueExpressionTitle?: string;
  52092. /**
  52093. * A SQL expression evaluating to a number.
  52094. *
  52095. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createVisualVariable)
  52096. */
  52097. sqlExpression?: string;
  52098. /**
  52099. * A SQL where clause used to filter features for the statistics query.
  52100. *
  52101. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createVisualVariable)
  52102. */
  52103. sqlWhere?: string;
  52104. /**
  52105. * Provides options for setting a title to a field when an expression is provided instead of a field name.
  52106. *
  52107. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createVisualVariable)
  52108. */
  52109. legendOptions?: colorCreateVisualVariableParamsLegendOptions;
  52110. /**
  52111. * A statistics object generated from the [summaryStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html) function.
  52112. *
  52113. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createVisualVariable)
  52114. */
  52115. statistics?: SummaryStatisticsResult;
  52116. /**
  52117. * A custom minimum value set by the user.
  52118. *
  52119. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createVisualVariable)
  52120. */
  52121. minValue?: number;
  52122. /**
  52123. * A custom maximum value set by the user.
  52124. *
  52125. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createVisualVariable)
  52126. */
  52127. maxValue?: number;
  52128. /**
  52129. * Indicates if the size units of the symbols will be in meters.
  52130. *
  52131. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createVisualVariable)
  52132. */
  52133. worldScale?: boolean;
  52134. /**
  52135. * Indicates whether the generated renderer is for a binning visualization.
  52136. *
  52137. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createVisualVariable)
  52138. */
  52139. forBinning?: boolean;
  52140. /**
  52141. * Allows for cancelable requests.
  52142. *
  52143. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createVisualVariable)
  52144. */
  52145. signal?: AbortSignal;
  52146. }
  52147. export interface colorCreateVisualVariableParamsLegendOptions {
  52148. /**
  52149. * The title used to represent the given field or expression in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  52150. *
  52151. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createVisualVariable)
  52152. */
  52153. title?: string;
  52154. /**
  52155. * Indicates whether to describe the renderer in the legend.
  52156. *
  52157. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createVisualVariable)
  52158. */
  52159. showLegend?: boolean;
  52160. }
  52161. /**
  52162. * The result object of the [createContinuousRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer) method.
  52163. *
  52164. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#ContinuousRendererResult)
  52165. */
  52166. export interface ContinuousRendererResult {
  52167. /**
  52168. * The renderer object configured to best match the view's background and the spread of the data.
  52169. *
  52170. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#ContinuousRendererResult)
  52171. */
  52172. renderer: ClassBreaksRenderer;
  52173. /**
  52174. * A color visual variable configured based on the statistics of the data and the view's background.
  52175. *
  52176. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#ContinuousRendererResult)
  52177. */
  52178. visualVariable: ColorVariable;
  52179. /**
  52180. * The color scheme used by the visual variable.
  52181. *
  52182. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#ContinuousRendererResult)
  52183. */
  52184. colorScheme: ColorScheme;
  52185. /**
  52186. * Indicates whether default values are used in the absence of sufficient data and/or statistics from the layer.
  52187. *
  52188. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#ContinuousRendererResult)
  52189. */
  52190. defaultValuesUsed: boolean;
  52191. /**
  52192. * Basic statistics returned from a query to the service for data from the given field name or expression.
  52193. *
  52194. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#ContinuousRendererResult)
  52195. */
  52196. statistics: SummaryStatisticsResult;
  52197. /**
  52198. * The ID of the basemap used to determine the optimal fill color of the features.
  52199. *
  52200. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#ContinuousRendererResult)
  52201. */
  52202. basemapId: string;
  52203. /**
  52204. * Indicates whether the average color of the input view's basemap is `light` or `dark`.
  52205. *
  52206. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#ContinuousRendererResult)
  52207. */
  52208. basemapTheme: string;
  52209. }
  52210. /**
  52211. * The result object of the [createPCContinuousRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createPCContinuousRenderer) method.
  52212. *
  52213. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#PCContinuousRendererResult)
  52214. */
  52215. export interface PCContinuousRendererResult {
  52216. /**
  52217. * The renderer object configured to best match the background of the view and the spread of the data.
  52218. *
  52219. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#PCContinuousRendererResult)
  52220. */
  52221. renderer: PointCloudStretchRenderer;
  52222. /**
  52223. * The color scheme used by the renderer.
  52224. *
  52225. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#PCContinuousRendererResult)
  52226. */
  52227. colorScheme: ColorScheme;
  52228. /**
  52229. * Indicates whether default values are used in the absence of sufficient data and/or statistics from the layer.
  52230. *
  52231. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#PCContinuousRendererResult)
  52232. */
  52233. defaultValuesUsed: boolean;
  52234. /**
  52235. * Basic statistics returned from a query to the service for data from the given field name.
  52236. *
  52237. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#PCContinuousRendererResult)
  52238. */
  52239. statistics: SummaryStatisticsResult;
  52240. /**
  52241. * The ID of the basemap used to determine the optimal color scheme for the output renderer.
  52242. *
  52243. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#PCContinuousRendererResult)
  52244. */
  52245. basemapId: string;
  52246. /**
  52247. * Indicates whether the average color of the input view's basemap is `light` or `dark`.
  52248. *
  52249. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#PCContinuousRendererResult)
  52250. */
  52251. basemapTheme: string;
  52252. }
  52253. /**
  52254. * The result object of the [createPCTrueColorRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createPCTrueColorRenderer) method.
  52255. *
  52256. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#PCTrueColorRendererResult)
  52257. */
  52258. export interface PCTrueColorRendererResult {
  52259. /**
  52260. * The renderer object configured to represent the true color of each point in the point cloud.
  52261. *
  52262. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#PCTrueColorRendererResult)
  52263. */
  52264. renderer: PointCloudRGBRenderer;
  52265. }
  52266. /**
  52267. * The result object of the [createVisualVariable()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createVisualVariable) method.
  52268. *
  52269. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#VisualVariableResult)
  52270. */
  52271. export interface VisualVariableResult {
  52272. /**
  52273. * A color visual variable configured based on the statistics of the data and the view's background.
  52274. *
  52275. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#VisualVariableResult)
  52276. */
  52277. visualVariable: ColorVariable;
  52278. /**
  52279. * The color scheme used by the visual variable.
  52280. *
  52281. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#VisualVariableResult)
  52282. */
  52283. colorScheme: ColorScheme;
  52284. /**
  52285. * Basic statistics returned from a query to the service for the given field or expression.
  52286. *
  52287. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#VisualVariableResult)
  52288. */
  52289. statistics: SummaryStatisticsResult;
  52290. /**
  52291. * Indicates whether default values are used in the absence of sufficient data and/or statistics from the layer.
  52292. *
  52293. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#VisualVariableResult)
  52294. */
  52295. defaultValuesUsed: boolean;
  52296. /**
  52297. * The ID of the basemap used to determine the optimal fill color of the features.
  52298. *
  52299. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#VisualVariableResult)
  52300. */
  52301. basemapId: string;
  52302. /**
  52303. * Indicates whether the average color of the input view's basemap is `light` or `dark`.
  52304. *
  52305. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#VisualVariableResult)
  52306. */
  52307. basemapTheme: string;
  52308. /**
  52309. * Authoring information related to the creation of the visual variable.
  52310. *
  52311. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#VisualVariableResult)
  52312. */
  52313. authoringInfo: AuthoringInfo;
  52314. }
  52315. /**
  52316. * This object contains a helper method for generating a [dot density visualization](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html).
  52317. *
  52318. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-dotDensity.html)
  52319. */
  52320. interface dotDensity {
  52321. /**
  52322. * Generates a [DotDensityRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-DotDensityRenderer.html) based on one or more complementary numeric fields and/or Arcade expressions.
  52323. *
  52324. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-dotDensity.html#createRenderer)
  52325. */
  52326. createRenderer(params: dotDensityCreateRendererParams): Promise<RendererResult>;
  52327. }
  52328. export const dotDensity: dotDensity;
  52329. export interface dotDensityCreateRendererParams {
  52330. /**
  52331. * The **polygon** layer for which the visualization is generated.
  52332. *
  52333. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-dotDensity.html#createRenderer)
  52334. */
  52335. layer: FeatureLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  52336. /**
  52337. * The MapView instance in which the visualization will be rendered.
  52338. *
  52339. * [Read more...](global.html)
  52340. */
  52341. view: MapView;
  52342. /**
  52343. * A set of complementary numeric fields/expressions used as the basis of the dot density visualization.
  52344. *
  52345. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-dotDensity.html#createRenderer)
  52346. */
  52347. attributes: dotDensityCreateRendererParamsAttributes[];
  52348. /**
  52349. * Indicates whether to vary the value of each dot by the view's scale.
  52350. *
  52351. * @default true
  52352. *
  52353. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-dotDensity.html#createRenderer)
  52354. */
  52355. dotValueOptimizationEnabled?: boolean;
  52356. /**
  52357. * Indicates whether to enable color blending of different colored dots rendered at the same pixel.
  52358. *
  52359. * @default true
  52360. *
  52361. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-dotDensity.html#createRenderer)
  52362. */
  52363. dotBlendingEnabled?: boolean;
  52364. /**
  52365. * Indicates whether the polygon outline width should vary based on view scale.
  52366. *
  52367. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-dotDensity.html#createRenderer)
  52368. */
  52369. outlineOptimizationEnabled?: boolean;
  52370. /**
  52371. * Provides options for modifying [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) properties describing the visualization.
  52372. *
  52373. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-dotDensity.html#createRenderer)
  52374. */
  52375. legendOptions?: dotDensityCreateRendererParamsLegendOptions;
  52376. /**
  52377. * In authoring apps, the user may select a pre-defined dot density scheme.
  52378. *
  52379. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-dotDensity.html#createRenderer)
  52380. */
  52381. dotDensityScheme?: DotDensityScheme;
  52382. /**
  52383. * Indicates whether the generated renderer is for a binning visualization.
  52384. *
  52385. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-dotDensity.html#createRenderer)
  52386. */
  52387. forBinning?: boolean;
  52388. /**
  52389. * Allows for cancelable requests.
  52390. *
  52391. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-dotDensity.html#createRenderer)
  52392. */
  52393. signal?: AbortSignal;
  52394. }
  52395. export interface dotDensityCreateRendererParamsAttributes {
  52396. /**
  52397. * The name of a numeric field.
  52398. *
  52399. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-dotDensity.html#createRenderer)
  52400. */
  52401. field?: string;
  52402. /**
  52403. * The label describing the field name (or category) in the legend.
  52404. *
  52405. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-dotDensity.html#createRenderer)
  52406. */
  52407. label?: string;
  52408. /**
  52409. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  52410. *
  52411. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-dotDensity.html#createRenderer)
  52412. */
  52413. valueExpression?: string;
  52414. /**
  52415. * Text describing the value returned from the `valueExpression`.
  52416. *
  52417. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-dotDensity.html#createRenderer)
  52418. */
  52419. valueExpressionTitle?: string;
  52420. }
  52421. export interface dotDensityCreateRendererParamsLegendOptions {
  52422. /**
  52423. * Indicates the unit represented by each dot in the legend.
  52424. *
  52425. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-dotDensity.html#createRenderer)
  52426. */
  52427. unit?: string;
  52428. }
  52429. /**
  52430. * The result object of the [createRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-dotDensity.html#createRenderer) method.
  52431. *
  52432. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-dotDensity.html#RendererResult)
  52433. */
  52434. export interface RendererResult {
  52435. /**
  52436. * The object representing the dot density visualization.
  52437. *
  52438. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-dotDensity.html#RendererResult)
  52439. */
  52440. renderer: DotDensityRenderer;
  52441. /**
  52442. * The dot density scheme used by the renderer based on the view's background.
  52443. *
  52444. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-dotDensity.html#RendererResult)
  52445. */
  52446. dotDensityScheme: DotDensityScheme;
  52447. /**
  52448. * The ID of the basemap used to determine the optimal colors of the dots.
  52449. *
  52450. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-dotDensity.html#RendererResult)
  52451. */
  52452. basemapId: string;
  52453. /**
  52454. * Indicates whether the average color of the input view's basemap is `light` or `dark`.
  52455. *
  52456. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-dotDensity.html#RendererResult)
  52457. */
  52458. basemapTheme: string;
  52459. }
  52460. /**
  52461. * This object contains a helper method for generating a [HeatmapRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html) for a point [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html).
  52462. *
  52463. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html)
  52464. */
  52465. interface heatmap {
  52466. /**
  52467. * Generates a [HeatmapRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html) that may be applied directly to the layer used to call this method.
  52468. *
  52469. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html#createRenderer)
  52470. */
  52471. createRenderer(params: heatmapCreateRendererParams): Promise<HeatmapRendererResult>;
  52472. /**
  52473. * Allows you to update the [colorStops](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#colorStops) of a [HeatmapRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html) with opacity, making the low density areas of the heat map to fade out.
  52474. *
  52475. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html#updateRenderer)
  52476. */
  52477. updateRenderer(params: heatmapUpdateRendererParams): HeatmapRenderer;
  52478. }
  52479. export const heatmap: heatmap;
  52480. export interface heatmapCreateRendererParams {
  52481. /**
  52482. * The point layer for which the visualization is generated.
  52483. *
  52484. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html#createRenderer)
  52485. */
  52486. layer: FeatureLayer | CSVLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  52487. /**
  52488. * The view instance in which the visualization will be rendered.
  52489. *
  52490. * [Read more...](global.html)
  52491. */
  52492. view: MapView | SceneView;
  52493. /**
  52494. * The name of the field whose data will be queried for statistics and used for the basis of the data-driven visualization.
  52495. *
  52496. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html#createRenderer)
  52497. */
  52498. field?: string;
  52499. /**
  52500. * In authoring apps, the user may select a pre-defined heatmap scheme.
  52501. *
  52502. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html#createRenderer)
  52503. */
  52504. heatmapScheme?: HeatmapScheme;
  52505. /**
  52506. * A statistics object generated from the [heatmapStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-heatmapStatistics.html) function.
  52507. *
  52508. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html#createRenderer)
  52509. */
  52510. statistics?: HeatmapStatisticsResult;
  52511. /**
  52512. * Indicates how much to fade the lower color stops with transparency to create a fuzzy boundary on the edge of the heatmap.
  52513. *
  52514. * @default 0.2
  52515. *
  52516. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html#createRenderer)
  52517. */
  52518. fadeRatio?: number;
  52519. /**
  52520. * Indicates whether the heatmap should fade its colors to transparent.
  52521. *
  52522. * @default true
  52523. *
  52524. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html#createRenderer)
  52525. */
  52526. fadeToTransparent?: boolean;
  52527. /**
  52528. * The [radius](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#radius) in points that determines the area of influence of each point.
  52529. *
  52530. * @default 18
  52531. *
  52532. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html#createRenderer)
  52533. */
  52534. radius?: number;
  52535. /**
  52536. * The minimum [ratio](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-HeatmapColorStop.html#ratio) used in the [HeatmapRenderer.colorStops](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#colorStops) of the output renderer.
  52537. *
  52538. * @default 0.01
  52539. *
  52540. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html#createRenderer)
  52541. */
  52542. minRatio?: number;
  52543. /**
  52544. * The maximum [ratio](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-support-HeatmapColorStop.html#ratio) used in the [HeatmapRenderer.colorStops](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html#colorStops) of the output renderer.
  52545. *
  52546. * @default 1
  52547. *
  52548. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html#createRenderer)
  52549. */
  52550. maxRatio?: number;
  52551. /**
  52552. * Allows for cancelable requests.
  52553. *
  52554. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html#createRenderer)
  52555. */
  52556. signal?: AbortSignal;
  52557. }
  52558. /**
  52559. * The result object of the [createRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html#createRenderer) method.
  52560. *
  52561. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html#HeatmapRendererResult)
  52562. */
  52563. export interface HeatmapRendererResult {
  52564. /**
  52565. * The renderer object configured to best match the view's background and the spread of the data.
  52566. *
  52567. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html#HeatmapRendererResult)
  52568. */
  52569. renderer: HeatmapRenderer;
  52570. /**
  52571. * The color scheme used by the renderer.
  52572. *
  52573. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html#HeatmapRendererResult)
  52574. */
  52575. scheme: HeatmapScheme;
  52576. /**
  52577. * Indicates whether default values are used in the absence of sufficient data and/or statistics from the layer.
  52578. *
  52579. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html#HeatmapRendererResult)
  52580. */
  52581. defaultValuesUsed: boolean;
  52582. /**
  52583. * Basic statistics required for generating a renderer with optimal values for the given layer and view.
  52584. *
  52585. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html#HeatmapRendererResult)
  52586. */
  52587. statistics: HeatmapStatisticsResult;
  52588. /**
  52589. * The ID of the basemap used to determine the optimal color stops of the heatmap.
  52590. *
  52591. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html#HeatmapRendererResult)
  52592. */
  52593. basemapId: string;
  52594. /**
  52595. * Indicates whether the average color of the input view's basemap is `light` or `dark`.
  52596. *
  52597. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html#HeatmapRendererResult)
  52598. */
  52599. basemapTheme: string;
  52600. }
  52601. export interface heatmapUpdateRendererParams {
  52602. /**
  52603. * The heatmap renderer for which to add or remove opacity.
  52604. *
  52605. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html#updateRenderer)
  52606. */
  52607. renderer: HeatmapRenderer;
  52608. /**
  52609. * Indicates how much to fade the lower color stops with transparency to create a fuzzy boundary on the edge of the heatmap.
  52610. *
  52611. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html#updateRenderer)
  52612. */
  52613. fadeRatio?: number;
  52614. }
  52615. /**
  52616. * This object contains helper methods for generating location-only visualizations (not data-driven) in a [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html).
  52617. *
  52618. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-location.html)
  52619. */
  52620. interface location {
  52621. /**
  52622. * Generates a [Renderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-Renderer.html) that may be applied directly to a supported [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html).
  52623. *
  52624. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-location.html#createRenderer)
  52625. */
  52626. createRenderer(params: locationCreateRendererParams): Promise<locationRendererResult>;
  52627. }
  52628. export const location: location;
  52629. export interface locationCreateRendererParams {
  52630. /**
  52631. * The layer for which the visualization is generated.
  52632. *
  52633. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-location.html#createRenderer)
  52634. */
  52635. layer: FeatureLayer | SceneLayer | CSVLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  52636. /**
  52637. * The view where the input layer is rendered.
  52638. *
  52639. * [Read more...](global.html)
  52640. */
  52641. view?: View;
  52642. /**
  52643. * In authoring apps, the user may select a pre-defined location scheme.
  52644. *
  52645. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-location.html#createRenderer)
  52646. */
  52647. locationScheme?: LocationScheme;
  52648. /**
  52649. * For point and polyline layers only.
  52650. *
  52651. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-location.html#createRenderer)
  52652. */
  52653. sizeOptimizationEnabled?: boolean;
  52654. /**
  52655. * For polygon layers only.
  52656. *
  52657. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-location.html#createRenderer)
  52658. */
  52659. outlineOptimizationEnabled?: boolean;
  52660. /**
  52661. * The type of symbol to generate.
  52662. *
  52663. * @default 2d
  52664. *
  52665. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-location.html#createRenderer)
  52666. */
  52667. symbolType?: "2d" | "3d-flat" | "3d-volumetric" | "3d-volumetric-uniform";
  52668. /**
  52669. * **This option only applies to generating renderers for mesh SceneLayers**.
  52670. *
  52671. * @default replace
  52672. *
  52673. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-location.html#createRenderer)
  52674. */
  52675. colorMixMode?: string;
  52676. /**
  52677. * Indicates whether the generated renderer is for a binning visualization.
  52678. *
  52679. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-location.html#createRenderer)
  52680. */
  52681. forBinning?: boolean;
  52682. /**
  52683. * Allows for cancelable requests.
  52684. *
  52685. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-location.html#createRenderer)
  52686. */
  52687. signal?: AbortSignal;
  52688. }
  52689. /**
  52690. * The result object of the [createRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-location.html#createRenderer) method.
  52691. *
  52692. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-location.html#RendererResult)
  52693. */
  52694. export interface locationRendererResult {
  52695. /**
  52696. * A simple renderer configured with a single color best suited to match the background of the view.
  52697. *
  52698. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-location.html#RendererResult)
  52699. */
  52700. renderer: SimpleRenderer;
  52701. /**
  52702. * The location scheme used by the renderer.
  52703. *
  52704. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-location.html#RendererResult)
  52705. */
  52706. locationScheme: LocationScheme;
  52707. /**
  52708. * The ID of the basemap used to determine the optimal fill color of the features.
  52709. *
  52710. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-location.html#RendererResult)
  52711. */
  52712. basemapId: string;
  52713. /**
  52714. * Indicates whether the average color of the input view's basemap is `light` or `dark`.
  52715. *
  52716. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-location.html#RendererResult)
  52717. */
  52718. basemapTheme: string;
  52719. }
  52720. /**
  52721. * This object contains a helper method for generating data-driven visualizations with continuous opacity based on data returned from a field value or expression in a [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html).
  52722. *
  52723. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html)
  52724. */
  52725. interface opacity {
  52726. /**
  52727. * This method generates an opacity visual variable with default alpha values optimally mapped to data values based on the statistics queried for the indicated field or expression.
  52728. *
  52729. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#createVisualVariable)
  52730. */
  52731. createVisualVariable(params: opacityCreateVisualVariableParams): Promise<opacityVisualVariableResult>;
  52732. }
  52733. export const opacity: opacity;
  52734. export interface opacityCreateVisualVariableParams {
  52735. /**
  52736. * The layer for which the visual variable is generated.
  52737. *
  52738. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#createVisualVariable)
  52739. */
  52740. layer: FeatureLayer | SceneLayer | CSVLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  52741. /**
  52742. * The name of the field whose data will be queried for statistics and used for the basis of the data-driven visualization.
  52743. *
  52744. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#createVisualVariable)
  52745. */
  52746. field?: string;
  52747. /**
  52748. * The name of the field to normalize the values of the given `field`.
  52749. *
  52750. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#createVisualVariable)
  52751. */
  52752. normalizationField?: string;
  52753. /**
  52754. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  52755. *
  52756. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#createVisualVariable)
  52757. */
  52758. valueExpression?: string;
  52759. /**
  52760. * Text describing the value returned from the `valueExpression`.
  52761. *
  52762. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#createVisualVariable)
  52763. */
  52764. valueExpressionTitle?: string;
  52765. /**
  52766. * A SQL expression evaluating to a number.
  52767. *
  52768. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#createVisualVariable)
  52769. */
  52770. sqlExpression?: string;
  52771. /**
  52772. * A SQL where clause used to filter features for the statistics query.
  52773. *
  52774. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#createVisualVariable)
  52775. */
  52776. sqlWhere?: string;
  52777. /**
  52778. * Provides options for setting a title to a field when an expression is provided instead of a field name.
  52779. *
  52780. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#createVisualVariable)
  52781. */
  52782. legendOptions?: opacityCreateVisualVariableParamsLegendOptions;
  52783. /**
  52784. * A statistics object generated from the [summaryStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html) function.
  52785. *
  52786. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#createVisualVariable)
  52787. */
  52788. statistics?: SummaryStatisticsResult;
  52789. /**
  52790. * A custom minimum value set by the user.
  52791. *
  52792. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#createVisualVariable)
  52793. */
  52794. minValue?: number;
  52795. /**
  52796. * A custom maximum value set by the user.
  52797. *
  52798. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#createVisualVariable)
  52799. */
  52800. maxValue?: number;
  52801. /**
  52802. * A [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) or [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) instance is required when a `valueExpression` is specified.
  52803. *
  52804. * [Read more...](global.html)
  52805. */
  52806. view?: View;
  52807. /**
  52808. * Indicates whether the generated renderer is for a binning visualization.
  52809. *
  52810. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#createVisualVariable)
  52811. */
  52812. forBinning?: boolean;
  52813. /**
  52814. * Allows for cancelable requests.
  52815. *
  52816. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#createVisualVariable)
  52817. */
  52818. signal?: AbortSignal;
  52819. }
  52820. export interface opacityCreateVisualVariableParamsLegendOptions {
  52821. /**
  52822. * The title used to represent the given field or expression in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  52823. *
  52824. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#createVisualVariable)
  52825. */
  52826. title?: string;
  52827. }
  52828. /**
  52829. * The result object of the [createVisualVariable()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#createVisualVariable) method.
  52830. *
  52831. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#VisualVariableResult)
  52832. */
  52833. export interface opacityVisualVariableResult {
  52834. /**
  52835. * An opacity visual variable configured based on the statistics of the data.
  52836. *
  52837. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#VisualVariableResult)
  52838. */
  52839. visualVariable: OpacityVariable;
  52840. /**
  52841. * Basic statistics returned from a query to the service for the given field or expression.
  52842. *
  52843. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#VisualVariableResult)
  52844. */
  52845. statistics: SummaryStatisticsResult;
  52846. /**
  52847. * Indicates whether default values are used in the absence of sufficient data and/or statistics from the layer.
  52848. *
  52849. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#VisualVariableResult)
  52850. */
  52851. defaultValuesUsed: boolean;
  52852. /**
  52853. * Authoring information related to the creation of the visual variable.
  52854. *
  52855. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#VisualVariableResult)
  52856. */
  52857. authoringInfo: AuthoringInfo;
  52858. }
  52859. /**
  52860. * This object contains a helper method for generating a pie chart for every feature.
  52861. *
  52862. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html)
  52863. */
  52864. interface pieChart {
  52865. /**
  52866. * Generates a [PieChartRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html) based on a set of numeric fields.
  52867. *
  52868. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#createRenderer)
  52869. */
  52870. createRenderer(params: pieChartCreateRendererParams): Promise<pieChartRendererResult>;
  52871. /**
  52872. * Generates a [PieChartRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PieChartRenderer.html) to use for a [FeatureReductionCluster](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html) visualization based off an input layer's [UniqueValueRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.html) or [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html).
  52873. *
  52874. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#createRendererForClustering)
  52875. */
  52876. createRendererForClustering(params: pieChartCreateRendererForClusteringParams): Promise<ClusterRendererResult>;
  52877. }
  52878. export const pieChart: pieChart;
  52879. /**
  52880. * The result object of the [createRendererForClustering()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#createRendererForClustering) method.
  52881. *
  52882. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#ClusterRendererResult)
  52883. */
  52884. export interface ClusterRendererResult {
  52885. /**
  52886. * The generated pie chart renderer to use for clustering.
  52887. *
  52888. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#ClusterRendererResult)
  52889. */
  52890. renderer: PieChartRenderer;
  52891. /**
  52892. * The aggregate fields used by the `renderer`.
  52893. *
  52894. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#ClusterRendererResult)
  52895. */
  52896. fields: AggregateField[];
  52897. }
  52898. export interface pieChartCreateRendererForClusteringParams {
  52899. /**
  52900. * The layer for which the visualization is generated.
  52901. *
  52902. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#createRendererForClustering)
  52903. */
  52904. layer: FeatureLayer | CSVLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  52905. /**
  52906. * Determines whether to create a pie chart or a donut chart.
  52907. *
  52908. * @default "pie"
  52909. *
  52910. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#createRendererForClustering)
  52911. */
  52912. shape?: "pie" | "donut";
  52913. /**
  52914. * Includes the `defaultSymbol` defined in the input layer's renderer in the output pie chart renderer.
  52915. *
  52916. * @default true
  52917. *
  52918. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#createRendererForClustering)
  52919. */
  52920. defaultSymbolEnabled?: boolean;
  52921. /**
  52922. * Provides options for modifying [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) properties describing the visualization.
  52923. *
  52924. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#createRendererForClustering)
  52925. */
  52926. legendOptions?: pieChartCreateRendererForClusteringParamsLegendOptions;
  52927. /**
  52928. * Allows for cancelable requests.
  52929. *
  52930. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#createRendererForClustering)
  52931. */
  52932. signal?: AbortSignal;
  52933. }
  52934. export interface pieChartCreateRendererForClusteringParamsLegendOptions {
  52935. /**
  52936. * The title used to describe the renderer in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  52937. *
  52938. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#createRendererForClustering)
  52939. */
  52940. title?: string;
  52941. }
  52942. export interface pieChartCreateRendererParams {
  52943. /**
  52944. * The layer for which the visualization is generated.
  52945. *
  52946. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#createRenderer)
  52947. */
  52948. layer: FeatureLayer | CSVLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  52949. /**
  52950. * The view instance in which the visualization will be rendered.
  52951. *
  52952. * [Read more...](global.html)
  52953. */
  52954. view: MapView;
  52955. /**
  52956. * A set of complementary numeric fields/expressions used to create the charts.
  52957. *
  52958. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#createRenderer)
  52959. */
  52960. attributes: pieChartCreateRendererParamsAttributes[];
  52961. /**
  52962. * Determines whether to create a pie chart or a donut chart.
  52963. *
  52964. * @default "pie"
  52965. *
  52966. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#createRenderer)
  52967. */
  52968. shape?: "pie" | "donut";
  52969. /**
  52970. * Indicates whether to include data-driven size in the final renderer.
  52971. *
  52972. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#createRenderer)
  52973. */
  52974. includeSizeVariable?: boolean;
  52975. /**
  52976. * Only for polygon layers.
  52977. *
  52978. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#createRenderer)
  52979. */
  52980. outlineOptimizationEnabled?: boolean;
  52981. /**
  52982. * Indicates whether chart sizes should vary based on view scale.
  52983. *
  52984. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#createRenderer)
  52985. */
  52986. sizeOptimizationEnabled?: boolean;
  52987. /**
  52988. * Provides options for modifying [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) properties describing the visualization.
  52989. *
  52990. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#createRenderer)
  52991. */
  52992. legendOptions?: pieChartCreateRendererParamsLegendOptions;
  52993. /**
  52994. * In authoring apps, the user may select a pre-defined color scheme.
  52995. *
  52996. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#createRenderer)
  52997. */
  52998. pieChartScheme?: PieChartScheme;
  52999. /**
  53000. * Indicates whether the generated renderer is for a binning visualization.
  53001. *
  53002. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#createRenderer)
  53003. */
  53004. forBinning?: boolean;
  53005. /**
  53006. * Allows for cancelable requests.
  53007. *
  53008. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#createRenderer)
  53009. */
  53010. signal?: AbortSignal;
  53011. }
  53012. export interface pieChartCreateRendererParamsAttributes {
  53013. /**
  53014. * The name of a numeric field.
  53015. *
  53016. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#createRenderer)
  53017. */
  53018. field?: string;
  53019. /**
  53020. * The label describing the field name (or pie slice) in the legend.
  53021. *
  53022. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#createRenderer)
  53023. */
  53024. label?: string;
  53025. /**
  53026. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  53027. *
  53028. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#createRenderer)
  53029. */
  53030. valueExpression?: string;
  53031. /**
  53032. * Text describing the value returned from the `valueExpression`.
  53033. *
  53034. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#createRenderer)
  53035. */
  53036. valueExpressionTitle?: string;
  53037. }
  53038. export interface pieChartCreateRendererParamsLegendOptions {
  53039. /**
  53040. * The title used to describe the renderer in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  53041. *
  53042. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#createRenderer)
  53043. */
  53044. title?: string;
  53045. }
  53046. /**
  53047. * The result object of the [createRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#createRenderer) method.
  53048. *
  53049. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#RendererResult)
  53050. */
  53051. export interface pieChartRendererResult {
  53052. /**
  53053. * The generated pie chart renderer.
  53054. *
  53055. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#RendererResult)
  53056. */
  53057. renderer: PieChartRenderer;
  53058. /**
  53059. * A size visual variable representing the sum of all attributes included in the pie chart.
  53060. *
  53061. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#RendererResult)
  53062. */
  53063. size?: sizeVisualVariableResult;
  53064. /**
  53065. * The color scheme used by the renderer.
  53066. *
  53067. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#RendererResult)
  53068. */
  53069. pieChartScheme: PieChartScheme;
  53070. /**
  53071. * The ID of the basemap used to determine the optimal color schemes for the charts.
  53072. *
  53073. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#RendererResult)
  53074. */
  53075. basemapId: string;
  53076. /**
  53077. * Indicates whether the average color of the input view's basemap is `light` or `dark`.
  53078. *
  53079. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#RendererResult)
  53080. */
  53081. basemapTheme: string;
  53082. /**
  53083. * Contains the total counts of each attribute used in the renderer.
  53084. *
  53085. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html#RendererResult)
  53086. */
  53087. statistics: UniqueValuesResult;
  53088. }
  53089. /**
  53090. * This object contains a helper method for generating a predominance visualization.
  53091. *
  53092. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html)
  53093. */
  53094. interface predominance {
  53095. /**
  53096. * Generates a predominance renderer based on a set of competing numeric fields.
  53097. *
  53098. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#createRenderer)
  53099. */
  53100. createRenderer(params: predominanceCreateRendererParams): Promise<predominanceRendererResult>;
  53101. }
  53102. export const predominance: predominance;
  53103. export interface predominanceCreateRendererParams {
  53104. /**
  53105. * The layer for which the visualization is generated.
  53106. *
  53107. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#createRenderer)
  53108. */
  53109. layer: FeatureLayer | SceneLayer | CSVLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  53110. /**
  53111. * The view instance in which the visualization will be rendered.
  53112. *
  53113. * [Read more...](global.html)
  53114. */
  53115. view: View;
  53116. /**
  53117. * A set of competing numeric fields used as the basis of the predominance visualization.
  53118. *
  53119. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#createRenderer)
  53120. */
  53121. fields: predominanceCreateRendererParamsFields[];
  53122. /**
  53123. * Indicates whether to include data-driven opacity in the final renderer.
  53124. *
  53125. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#createRenderer)
  53126. */
  53127. includeOpacityVariable?: boolean;
  53128. /**
  53129. * Indicates whether to include data-driven size in the final renderer.
  53130. *
  53131. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#createRenderer)
  53132. */
  53133. includeSizeVariable?: boolean;
  53134. /**
  53135. * Only for polygon layers.
  53136. *
  53137. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#createRenderer)
  53138. */
  53139. outlineOptimizationEnabled?: boolean;
  53140. /**
  53141. * Indicates whether symbol sizes should vary based on view scale.
  53142. *
  53143. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#createRenderer)
  53144. */
  53145. sizeOptimizationEnabled?: boolean;
  53146. /**
  53147. * Provides options for modifying [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) properties describing the visualization.
  53148. *
  53149. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#createRenderer)
  53150. */
  53151. legendOptions?: predominanceCreateRendererParamsLegendOptions;
  53152. /**
  53153. * A statistics object generated from the [summaryStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html) function.
  53154. *
  53155. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#createRenderer)
  53156. */
  53157. statistics?: SummaryStatisticsResult;
  53158. /**
  53159. * Indicates how values should be sorted in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  53160. *
  53161. * @default count
  53162. *
  53163. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#createRenderer)
  53164. */
  53165. sortBy?: "count" | "value";
  53166. /**
  53167. * In authoring apps, the user may select a pre-defined predominance scheme.
  53168. *
  53169. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#createRenderer)
  53170. */
  53171. predominanceScheme?: PredominanceScheme;
  53172. /**
  53173. * The type of symbol to generate.
  53174. *
  53175. * @default 2d
  53176. *
  53177. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#createRenderer)
  53178. */
  53179. symbolType?: "2d" | "3d-flat" | "3d-volumetric" | "3d-volumetric-uniform";
  53180. /**
  53181. * Enables the `defaultSymbol` on the renderer and assigns it to features with no value.
  53182. *
  53183. * @default true
  53184. *
  53185. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#createRenderer)
  53186. */
  53187. defaultSymbolEnabled?: boolean;
  53188. /**
  53189. * **This option only applies to generating renderers for mesh SceneLayers**.
  53190. *
  53191. * @default replace
  53192. *
  53193. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#createRenderer)
  53194. */
  53195. colorMixMode?: string;
  53196. /**
  53197. * Indicates whether the generated renderer is for a binning visualization.
  53198. *
  53199. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#createRenderer)
  53200. */
  53201. forBinning?: boolean;
  53202. /**
  53203. * Allows for cancelable requests.
  53204. *
  53205. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#createRenderer)
  53206. */
  53207. signal?: AbortSignal;
  53208. }
  53209. export interface predominanceCreateRendererParamsFields {
  53210. /**
  53211. * The name of a numeric field.
  53212. *
  53213. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#createRenderer)
  53214. */
  53215. name: string;
  53216. /**
  53217. * The label describing the field name (or category) in the legend.
  53218. *
  53219. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#createRenderer)
  53220. */
  53221. label?: string;
  53222. }
  53223. export interface predominanceCreateRendererParamsLegendOptions {
  53224. /**
  53225. * The title used to describe the renderer in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  53226. *
  53227. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#createRenderer)
  53228. */
  53229. title?: string;
  53230. /**
  53231. * Indicates whether to include the renderer in the legend.
  53232. *
  53233. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#createRenderer)
  53234. */
  53235. showLegend?: boolean;
  53236. }
  53237. /**
  53238. * The result object of the [createRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#createRenderer) method.
  53239. *
  53240. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#RendererResult)
  53241. */
  53242. export interface predominanceRendererResult {
  53243. /**
  53244. * The unique value renderer object representing the predominance visualization.
  53245. *
  53246. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#RendererResult)
  53247. */
  53248. renderer: UniqueValueRenderer;
  53249. /**
  53250. * An array of objects describing the value, symbol, and count of each unique type or category represented in the renderer.
  53251. *
  53252. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#RendererResult)
  53253. */
  53254. predominantCategoryInfos: typeUniqueValueInfo[];
  53255. /**
  53256. * An array of objects describing the values or categories excluded from consideration in visualizing data from the given fields.
  53257. *
  53258. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#RendererResult)
  53259. */
  53260. excludedCategoryInfos: any[];
  53261. /**
  53262. * A size visual variable representing the total count of all fields included in the predominance visualization.
  53263. *
  53264. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#RendererResult)
  53265. */
  53266. size?: sizeVisualVariableResult;
  53267. /**
  53268. * An opacity visual variable representing the percentage of the total count comprised by the predominant value of all fields.
  53269. *
  53270. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#RendererResult)
  53271. */
  53272. opacity?: opacityVisualVariableResult;
  53273. /**
  53274. * The predominance scheme used by the renderer.
  53275. *
  53276. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#RendererResult)
  53277. */
  53278. predominanceScheme: PredominanceScheme;
  53279. /**
  53280. * The ID of the basemap used to determine the optimal fill color of the features.
  53281. *
  53282. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#RendererResult)
  53283. */
  53284. basemapId: string;
  53285. /**
  53286. * Indicates whether the average color of the input view's basemap is `light` or `dark`.
  53287. *
  53288. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html#RendererResult)
  53289. */
  53290. basemapTheme: string;
  53291. }
  53292. /**
  53293. * This object contains a helper method for creating a renderer for exploring the relationship between two numeric attributes.
  53294. *
  53295. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html)
  53296. */
  53297. interface relationship {
  53298. /**
  53299. * Generates a relationship renderer (bivariate choropleth) based on a set of competing numeric fields.
  53300. *
  53301. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53302. */
  53303. createRenderer(params: relationshipCreateRendererParams): Promise<relationshipRendererResult>;
  53304. /**
  53305. * Updates a relationship renderer (bivariate choropleth) generated from [createRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer) based on the given input parameters.
  53306. *
  53307. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#updateRenderer)
  53308. */
  53309. updateRenderer(params: relationshipUpdateRendererParams): Promise<UniqueValueRenderer>;
  53310. }
  53311. export const relationship: relationship;
  53312. export interface relationshipCreateRendererParams {
  53313. /**
  53314. * The layer for which the visualization is generated.
  53315. *
  53316. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53317. */
  53318. layer: FeatureLayer | SceneLayer | CSVLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  53319. /**
  53320. * The view instance in which the visualization will be rendered.
  53321. *
  53322. * [Read more...](global.html)
  53323. */
  53324. view: View;
  53325. /**
  53326. * A numeric field that will be used to explore its relationship with `field2`.
  53327. *
  53328. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53329. */
  53330. field1: relationshipCreateRendererParamsField1;
  53331. /**
  53332. * A numeric field that will be used to explore its relationship with `field1`.
  53333. *
  53334. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53335. */
  53336. field2: relationshipCreateRendererParamsField2;
  53337. /**
  53338. * The method for classifying each field's data values.
  53339. *
  53340. * @default quantile
  53341. *
  53342. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53343. */
  53344. classificationMethod?: "quantile" | "equal-interval" | "natural-breaks";
  53345. /**
  53346. * Determines the orientation of the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  53347. *
  53348. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53349. */
  53350. focus?: string;
  53351. /**
  53352. * Indicates the number of classes by which to break up the values of each field.
  53353. *
  53354. * @default 3
  53355. *
  53356. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53357. */
  53358. numClasses?: number;
  53359. /**
  53360. * For polygon layers only.
  53361. *
  53362. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53363. */
  53364. outlineOptimizationEnabled?: boolean;
  53365. /**
  53366. * For point and polyline layers only.
  53367. *
  53368. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53369. */
  53370. sizeOptimizationEnabled?: boolean;
  53371. /**
  53372. * Provides options for modifying [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) properties describing the visualization.
  53373. *
  53374. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53375. */
  53376. legendOptions?: relationshipCreateRendererParamsLegendOptions;
  53377. /**
  53378. * In authoring apps, the user may select a pre-defined relationship scheme.
  53379. *
  53380. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53381. */
  53382. relationshipScheme?: RelationshipScheme;
  53383. /**
  53384. * The type of symbol to generate.
  53385. *
  53386. * @default 2d
  53387. *
  53388. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53389. */
  53390. symbolType?: "2d" | "3d-flat" | "3d-volumetric" | "3d-volumetric-uniform";
  53391. /**
  53392. * Enables the `defaultSymbol` on the renderer and assigns it to features with no value or that fall outside of the prescribed class breaks.
  53393. *
  53394. * @default true
  53395. *
  53396. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53397. */
  53398. defaultSymbolEnabled?: boolean;
  53399. /**
  53400. * **This option only applies to generating renderers for mesh SceneLayers**.
  53401. *
  53402. * @default replace
  53403. *
  53404. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53405. */
  53406. colorMixMode?: string;
  53407. /**
  53408. * Indicates whether the generated renderer is for a binning visualization.
  53409. *
  53410. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53411. */
  53412. forBinning?: boolean;
  53413. /**
  53414. * Allows for cancelable requests.
  53415. *
  53416. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53417. */
  53418. signal?: AbortSignal;
  53419. }
  53420. export interface relationshipCreateRendererParamsField1 {
  53421. /**
  53422. * The name of a numeric field.
  53423. *
  53424. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53425. */
  53426. field: string;
  53427. /**
  53428. * The name of a numeric field used to normalize the given `field`.
  53429. *
  53430. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53431. */
  53432. normalizationField?: string;
  53433. /**
  53434. * The maximum bound of values to visualize in the given field.
  53435. *
  53436. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53437. */
  53438. maxValue?: number;
  53439. /**
  53440. * The minimum bound of values to visualize in the given field.
  53441. *
  53442. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53443. */
  53444. minValue?: number;
  53445. /**
  53446. * The label used to describe the field or variable in the legend.
  53447. *
  53448. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53449. */
  53450. label?: string;
  53451. }
  53452. export interface relationshipCreateRendererParamsField2 {
  53453. /**
  53454. * The name of a numeric field.
  53455. *
  53456. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53457. */
  53458. field: string;
  53459. /**
  53460. * The name of a numeric field used to normalize the given `field`.
  53461. *
  53462. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53463. */
  53464. normalizationField?: string;
  53465. /**
  53466. * The maximum bound of values to visualize in the given field.
  53467. *
  53468. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53469. */
  53470. maxValue?: number;
  53471. /**
  53472. * The minimum bound of values to visualize in the given field.
  53473. *
  53474. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53475. */
  53476. minValue?: number;
  53477. /**
  53478. * The label used to describe the field or variable in the legend.
  53479. *
  53480. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53481. */
  53482. label?: string;
  53483. }
  53484. export interface relationshipCreateRendererParamsLegendOptions {
  53485. /**
  53486. * The title used to describe the renderer in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  53487. *
  53488. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53489. */
  53490. title?: string;
  53491. /**
  53492. * Indicates whether to include the renderer in the legend.
  53493. *
  53494. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)
  53495. */
  53496. showLegend?: boolean;
  53497. }
  53498. export interface relationshipUpdateRendererParams {
  53499. /**
  53500. * A numeric field used to explore its relationship with `field2`.
  53501. *
  53502. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#updateRenderer)
  53503. */
  53504. field1: relationshipUpdateRendererParamsField1;
  53505. /**
  53506. * A numeric field used to explore its relationship with `field1`.
  53507. *
  53508. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#updateRenderer)
  53509. */
  53510. field2: relationshipUpdateRendererParamsField2;
  53511. /**
  53512. * Determines the orientation of the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  53513. *
  53514. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#updateRenderer)
  53515. */
  53516. focus?: string;
  53517. /**
  53518. * Indicates the number of classes by which to break up the values of each field.
  53519. *
  53520. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#updateRenderer)
  53521. */
  53522. numClasses: number;
  53523. /**
  53524. * The array of colors to be used by the symbols in the uniqueValueInfos of the renderer.
  53525. *
  53526. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#updateRenderer)
  53527. */
  53528. colors: Color[];
  53529. /**
  53530. * The relationship renderer (generated from [createRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer)) to update with the other parameters provided in this method.
  53531. *
  53532. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#updateRenderer)
  53533. */
  53534. renderer: UniqueValueRenderer;
  53535. }
  53536. export interface relationshipUpdateRendererParamsField1 {
  53537. /**
  53538. * The name of a numeric field.
  53539. *
  53540. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#updateRenderer)
  53541. */
  53542. field: string;
  53543. /**
  53544. * The name of a numeric field used to normalize the given `field`.
  53545. *
  53546. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#updateRenderer)
  53547. */
  53548. normalizationField?: string;
  53549. /**
  53550. * The class breaks for the first field used in the relationship visualization.
  53551. *
  53552. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#updateRenderer)
  53553. */
  53554. classBreakInfos: ClassBreak[];
  53555. /**
  53556. * The label used to describe the field or variable in the legend.
  53557. *
  53558. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#updateRenderer)
  53559. */
  53560. label?: string;
  53561. }
  53562. export interface relationshipUpdateRendererParamsField2 {
  53563. /**
  53564. * The name of a numeric field.
  53565. *
  53566. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#updateRenderer)
  53567. */
  53568. field: string;
  53569. /**
  53570. * The name of a numeric field used to normalize the given `field`.
  53571. *
  53572. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#updateRenderer)
  53573. */
  53574. normalizationField?: string;
  53575. /**
  53576. * The class breaks for the second field used in the relationship visualization.
  53577. *
  53578. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#updateRenderer)
  53579. */
  53580. classBreakInfos: ClassBreak[];
  53581. /**
  53582. * The label used to describe the field or variable in the legend.
  53583. *
  53584. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#updateRenderer)
  53585. */
  53586. label?: string;
  53587. }
  53588. /**
  53589. * The result object of the [createRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#createRenderer) method.
  53590. *
  53591. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#RendererResult)
  53592. */
  53593. export interface relationshipRendererResult {
  53594. /**
  53595. * The renderer object representing the relationship visualization.
  53596. *
  53597. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#RendererResult)
  53598. */
  53599. renderer: UniqueValueRenderer;
  53600. /**
  53601. * Describes each class break for both fields considered in the relationship visualization.
  53602. *
  53603. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#RendererResult)
  53604. */
  53605. classBreaks: RendererResultClassBreaks;
  53606. /**
  53607. * Describes each container or bin used in the visualization.
  53608. *
  53609. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#RendererResult)
  53610. */
  53611. uniqueValueInfos: typeUniqueValueInfo[];
  53612. /**
  53613. * The relationship scheme used by the renderer.
  53614. *
  53615. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#RendererResult)
  53616. */
  53617. relationshipScheme: RelationshipScheme;
  53618. /**
  53619. * The ID of the basemap used to determine the optimal fill colors of the features.
  53620. *
  53621. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#RendererResult)
  53622. */
  53623. basemapId: string;
  53624. /**
  53625. * Indicates whether the average color of the input view's basemap is `light` or `dark`.
  53626. *
  53627. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#RendererResult)
  53628. */
  53629. basemapTheme: string;
  53630. }
  53631. export interface RendererResultClassBreaks {
  53632. /**
  53633. * The class breaks generated for values in the `field1` parameter.
  53634. *
  53635. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#RendererResult)
  53636. */
  53637. field1: ClassBreaksResult;
  53638. /**
  53639. * The class breaks generated for values in the `field2` parameter.
  53640. *
  53641. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html#RendererResult)
  53642. */
  53643. field2: ClassBreaksResult;
  53644. }
  53645. /**
  53646. * This object contains helper methods for generating data-driven visualizations with continuous size or class breaks based on a field value or expression from features in a [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html).
  53647. *
  53648. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html)
  53649. */
  53650. interface size {
  53651. /**
  53652. * Generates a continuous size [Renderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-Renderer.html) representing the age of features based on one or more fields.
  53653. *
  53654. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createAgeRenderer)
  53655. */
  53656. createAgeRenderer(params: sizeCreateAgeRendererParams): Promise<sizeAgeRendererResult>;
  53657. /**
  53658. * Generates a [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html) that may be applied directly to the layer used to call this method.
  53659. *
  53660. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer)
  53661. */
  53662. createClassBreaksRenderer(params: sizeCreateClassBreaksRendererParams): Promise<sizeClassBreaksRendererResult>;
  53663. /**
  53664. * Generates a [Renderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-Renderer.html) that may be applied directly to the layer used to call this method.
  53665. *
  53666. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer)
  53667. */
  53668. createContinuousRenderer(params: sizeCreateContinuousRendererParams): Promise<sizeContinuousRendererResult>;
  53669. /**
  53670. * This method generates an array of size visual variables with default stops that are optimally chosen based on the statistics queried for the indicated field or expression and mapped to appropriate sizes.
  53671. *
  53672. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createVisualVariables)
  53673. */
  53674. createVisualVariables(params: sizeCreateVisualVariablesParams): Promise<sizeVisualVariableResult>;
  53675. }
  53676. export const size: size;
  53677. /**
  53678. * The result object of the [createAgeRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createAgeRenderer) method.
  53679. *
  53680. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#AgeRendererResult)
  53681. */
  53682. export interface sizeAgeRendererResult {
  53683. /**
  53684. * The renderer object configured to best match the view's background and the spread of the data.
  53685. *
  53686. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#AgeRendererResult)
  53687. */
  53688. renderer: ClassBreaksRenderer;
  53689. /**
  53690. * Size visual variables configured based on the statistics of the data and the size scheme.
  53691. *
  53692. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#AgeRendererResult)
  53693. */
  53694. visualVariables: SizeVariable[];
  53695. /**
  53696. * The time unit used to represent age in the output `renderer`.
  53697. *
  53698. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#AgeRendererResult)
  53699. */
  53700. unit: string;
  53701. /**
  53702. * The size scheme used by the visual variables.
  53703. *
  53704. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#AgeRendererResult)
  53705. */
  53706. sizeScheme: SizeScheme;
  53707. /**
  53708. * Indicates whether default values are used in the absence of sufficient data and/or statistics from the layer.
  53709. *
  53710. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#AgeRendererResult)
  53711. */
  53712. defaultValuesUsed: boolean;
  53713. /**
  53714. * Basic statistics returned from a query for the generated expression.
  53715. *
  53716. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#AgeRendererResult)
  53717. */
  53718. statistics: SummaryStatisticsResult;
  53719. /**
  53720. * The ID of the basemap used to determine the optimal fill color of the features.
  53721. *
  53722. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#AgeRendererResult)
  53723. */
  53724. basemapId: string;
  53725. /**
  53726. * Indicates whether the average color of the input view's basemap is `light` or `dark`.
  53727. *
  53728. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#AgeRendererResult)
  53729. */
  53730. basemapTheme: string;
  53731. }
  53732. /**
  53733. * The result object of the [createClassBreaksRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer) method.
  53734. *
  53735. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#ClassBreaksRendererResult)
  53736. */
  53737. export interface sizeClassBreaksRendererResult {
  53738. /**
  53739. * The renderer object configured to best match the view's background and the spread of the data.
  53740. *
  53741. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#ClassBreaksRendererResult)
  53742. */
  53743. renderer: ClassBreaksRenderer;
  53744. /**
  53745. * This object describes class breaks generated from data in a layer for a given field with a specified classification method.
  53746. *
  53747. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#ClassBreaksRendererResult)
  53748. */
  53749. classBreaksResult: ClassBreaksResult;
  53750. /**
  53751. * The size scheme used by the visual variables.
  53752. *
  53753. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#ClassBreaksRendererResult)
  53754. */
  53755. sizeScheme: SizeScheme;
  53756. /**
  53757. * Indicates whether default values are used in the absence of sufficient data and/or statistics from the layer.
  53758. *
  53759. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#ClassBreaksRendererResult)
  53760. */
  53761. defaultValuesUsed: boolean;
  53762. /**
  53763. * The ID of the basemap used to determine the optimal fill color of the features.
  53764. *
  53765. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#ClassBreaksRendererResult)
  53766. */
  53767. basemapId: string;
  53768. /**
  53769. * Indicates whether the average color of the input view's basemap is `light` or `dark`.
  53770. *
  53771. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#ClassBreaksRendererResult)
  53772. */
  53773. basemapTheme: string;
  53774. }
  53775. /**
  53776. * The result object of the [createContinuousRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer) method.
  53777. *
  53778. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#ContinuousRendererResult)
  53779. */
  53780. export interface sizeContinuousRendererResult {
  53781. /**
  53782. * The renderer object configured to best match the background of the view and the spread of the data.
  53783. *
  53784. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#ContinuousRendererResult)
  53785. */
  53786. renderer: ClassBreaksRenderer;
  53787. /**
  53788. * Size visual variables configured based on the statistics of the data.
  53789. *
  53790. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#ContinuousRendererResult)
  53791. */
  53792. visualVariables: SizeVariable[];
  53793. /**
  53794. * The size scheme used by the visual variables.
  53795. *
  53796. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#ContinuousRendererResult)
  53797. */
  53798. sizeScheme: SizeScheme;
  53799. /**
  53800. * Indicates whether default values are used in the absence of sufficient data and/or statistics from the layer.
  53801. *
  53802. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#ContinuousRendererResult)
  53803. */
  53804. defaultValuesUsed: boolean;
  53805. /**
  53806. * Basic statistics returned from a query to the service for data from the given field name or expression.
  53807. *
  53808. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#ContinuousRendererResult)
  53809. */
  53810. statistics: SummaryStatisticsResult;
  53811. /**
  53812. * The ID of the basemap used to determine the optimal fill color of the features.
  53813. *
  53814. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#ContinuousRendererResult)
  53815. */
  53816. basemapId: string;
  53817. /**
  53818. * Indicates whether the average color of the input view's basemap is `light` or `dark`.
  53819. *
  53820. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#ContinuousRendererResult)
  53821. */
  53822. basemapTheme: string;
  53823. }
  53824. export interface sizeCreateAgeRendererParams {
  53825. /**
  53826. * The layer for which the visualization is generated.
  53827. *
  53828. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createAgeRenderer)
  53829. */
  53830. layer: FeatureLayer | SceneLayer | CSVLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  53831. /**
  53832. * The view where the input layer is rendered.
  53833. *
  53834. * [Read more...](global.html)
  53835. */
  53836. view: View;
  53837. /**
  53838. * The name of the field, or a date value representing the start time in the age calculation.
  53839. *
  53840. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createAgeRenderer)
  53841. */
  53842. startTime: Date | string | number;
  53843. /**
  53844. * The name of the field, or a date value representing the end time in the age calculation.
  53845. *
  53846. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createAgeRenderer)
  53847. */
  53848. endTime: Date | string | number;
  53849. /**
  53850. * The time unit used to calculate the difference between `endTime` and `startTime`.
  53851. *
  53852. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createAgeRenderer)
  53853. */
  53854. unit?: "years" | "months" | "days" | "hours" | "minutes" | "seconds";
  53855. /**
  53856. * Sets the size stops based on meaningful data values.
  53857. *
  53858. * @default high-to-low
  53859. *
  53860. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createAgeRenderer)
  53861. */
  53862. theme?: "high-to-low" | "above" | "below";
  53863. /**
  53864. * Sets a maximum age for the visualization.
  53865. *
  53866. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createAgeRenderer)
  53867. */
  53868. maxValue?: number;
  53869. /**
  53870. * Sets a minimum age for the visualization.
  53871. *
  53872. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createAgeRenderer)
  53873. */
  53874. minValue?: number;
  53875. /**
  53876. * Only for polygon layers.
  53877. *
  53878. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createAgeRenderer)
  53879. */
  53880. outlineOptimizationEnabled?: boolean;
  53881. /**
  53882. * Indicates whether symbol sizes should vary based on view scale.
  53883. *
  53884. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createAgeRenderer)
  53885. */
  53886. sizeOptimizationEnabled?: boolean;
  53887. /**
  53888. * Provides options for modifying [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) properties describing the visualization.
  53889. *
  53890. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createAgeRenderer)
  53891. */
  53892. legendOptions?: sizeCreateAgeRendererParamsLegendOptions;
  53893. /**
  53894. * A statistics object generated from the [summaryStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html) function.
  53895. *
  53896. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createAgeRenderer)
  53897. */
  53898. statistics?: SummaryStatisticsResult;
  53899. /**
  53900. * In authoring apps, the user may select a pre-defined size scheme.
  53901. *
  53902. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createAgeRenderer)
  53903. */
  53904. sizeScheme?: SizeScheme;
  53905. /**
  53906. * The type of symbol to generate.
  53907. *
  53908. * @default 2d
  53909. *
  53910. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createAgeRenderer)
  53911. */
  53912. symbolType?: "2d" | "3d-flat" | "3d-volumetric" | "3d-volumetric-uniform";
  53913. /**
  53914. * Enables the `defaultSymbol` on the renderer and assigns it to features with no value.
  53915. *
  53916. * @default true
  53917. *
  53918. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createAgeRenderer)
  53919. */
  53920. defaultSymbolEnabled?: boolean;
  53921. /**
  53922. * Allows for cancelable requests.
  53923. *
  53924. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createAgeRenderer)
  53925. */
  53926. signal?: AbortSignal;
  53927. }
  53928. export interface sizeCreateAgeRendererParamsLegendOptions {
  53929. /**
  53930. * The title used to represent the age size ramp in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  53931. *
  53932. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createAgeRenderer)
  53933. */
  53934. title?: string;
  53935. /**
  53936. * Indicates whether to include the age renderer in the legend.
  53937. *
  53938. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createAgeRenderer)
  53939. */
  53940. showLegend?: boolean;
  53941. }
  53942. export interface sizeCreateClassBreaksRendererParams {
  53943. /**
  53944. * The layer for which the visualization is generated.
  53945. *
  53946. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer)
  53947. */
  53948. layer: FeatureLayer | SceneLayer | CSVLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  53949. /**
  53950. * The view where the input layer is rendered.
  53951. *
  53952. * [Read more...](global.html)
  53953. */
  53954. view?: View;
  53955. /**
  53956. * The name of the field whose data will be queried for statistics and classified.
  53957. *
  53958. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer)
  53959. */
  53960. field?: string;
  53961. /**
  53962. * The name of the field to normalize the values of the given `field`.
  53963. *
  53964. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer)
  53965. */
  53966. normalizationField?: string;
  53967. /**
  53968. * Indicates how the data is normalized.
  53969. *
  53970. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer)
  53971. */
  53972. normalizationType?: "field" | "log" | "percent-of-total";
  53973. /**
  53974. * When `normalizationType` is `percent-of-total`, this property contains the total of all data values.
  53975. *
  53976. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer)
  53977. */
  53978. normalizationTotal?: number;
  53979. /**
  53980. * The classification method used for generating breaks.
  53981. *
  53982. * @default equal-interval
  53983. *
  53984. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer)
  53985. */
  53986. classificationMethod?: "equal-interval" | "natural-breaks" | "quantile" | "standard-deviation";
  53987. /**
  53988. * If a `standard-deviation` classification method is used, then this indicates the interval by which to generate class breaks.
  53989. *
  53990. * @default 1
  53991. *
  53992. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer)
  53993. */
  53994. standardDeviationInterval?: number;
  53995. /**
  53996. * The number of class breaks to generate.
  53997. *
  53998. * @default 5
  53999. *
  54000. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer)
  54001. */
  54002. numClasses?: number;
  54003. /**
  54004. * In authoring apps, the user may select a pre-defined size scheme.
  54005. *
  54006. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer)
  54007. */
  54008. sizeScheme?: SizeScheme;
  54009. /**
  54010. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  54011. *
  54012. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer)
  54013. */
  54014. valueExpression?: string;
  54015. /**
  54016. * Text describing the value returned from the `valueExpression`.
  54017. *
  54018. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer)
  54019. */
  54020. valueExpressionTitle?: string;
  54021. /**
  54022. * A SQL expression evaluating to a number.
  54023. *
  54024. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer)
  54025. */
  54026. sqlExpression?: string;
  54027. /**
  54028. * A SQL where clause used to filter features for the statistics query.
  54029. *
  54030. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer)
  54031. */
  54032. sqlWhere?: string;
  54033. /**
  54034. * Only for polygon layers.
  54035. *
  54036. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer)
  54037. */
  54038. outlineOptimizationEnabled?: boolean;
  54039. /**
  54040. * Provides options for setting a title to describe a field instead of using the field name.
  54041. *
  54042. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer)
  54043. */
  54044. legendOptions?: sizeCreateClassBreaksRendererParamsLegendOptions;
  54045. /**
  54046. * A minimum value set by the user.
  54047. *
  54048. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer)
  54049. */
  54050. minValue?: number;
  54051. /**
  54052. * A maximum value set by the user.
  54053. *
  54054. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer)
  54055. */
  54056. maxValue?: number;
  54057. /**
  54058. * Enables the `defaultSymbol` on the renderer and assigns it to features with no value and features that do not fall within the configured data range.
  54059. *
  54060. * @default true
  54061. *
  54062. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer)
  54063. */
  54064. defaultSymbolEnabled?: boolean;
  54065. /**
  54066. * The type of symbol to generate.
  54067. *
  54068. * @default 2d
  54069. *
  54070. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer)
  54071. */
  54072. symbolType?: "2d" | "3d-flat" | "3d-volumetric" | "3d-volumetric-uniform";
  54073. /**
  54074. * Indicates whether the generated renderer is for a binning visualization.
  54075. *
  54076. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer)
  54077. */
  54078. forBinning?: boolean;
  54079. /**
  54080. * Allows for cancelable requests.
  54081. *
  54082. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer)
  54083. */
  54084. signal?: AbortSignal;
  54085. }
  54086. export interface sizeCreateClassBreaksRendererParamsLegendOptions {
  54087. /**
  54088. * The title used to represent the given field or expression in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  54089. *
  54090. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer)
  54091. */
  54092. title?: string;
  54093. }
  54094. export interface sizeCreateContinuousRendererParams {
  54095. /**
  54096. * The layer for which the renderer is generated.
  54097. *
  54098. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer)
  54099. */
  54100. layer: FeatureLayer | SceneLayer | CSVLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  54101. /**
  54102. * The view where the input layer is rendered.
  54103. *
  54104. * [Read more...](global.html)
  54105. */
  54106. view?: View;
  54107. /**
  54108. * The name of the field whose data will be queried for statistics and used for the basis of the data-driven visualization.
  54109. *
  54110. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer)
  54111. */
  54112. field?: string;
  54113. /**
  54114. * The name of the field to normalize the values of the given `field`.
  54115. *
  54116. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer)
  54117. */
  54118. normalizationField?: string;
  54119. /**
  54120. * In authoring apps, the user may select a pre-defined size scheme.
  54121. *
  54122. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer)
  54123. */
  54124. sizeScheme?: SizeScheme;
  54125. /**
  54126. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  54127. *
  54128. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer)
  54129. */
  54130. valueExpression?: string;
  54131. /**
  54132. * Text describing the value returned from the `valueExpression`.
  54133. *
  54134. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer)
  54135. */
  54136. valueExpressionTitle?: string;
  54137. /**
  54138. * Sets the size stops based on meaningful data values.
  54139. *
  54140. * @default high-to-low
  54141. *
  54142. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer)
  54143. */
  54144. theme?: "high-to-low" | "above" | "below";
  54145. /**
  54146. * A SQL expression evaluating to a number.
  54147. *
  54148. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer)
  54149. */
  54150. sqlExpression?: string;
  54151. /**
  54152. * A SQL where clause used to filter features for the statistics query.
  54153. *
  54154. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer)
  54155. */
  54156. sqlWhere?: string;
  54157. /**
  54158. * Only for polygon layers.
  54159. *
  54160. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer)
  54161. */
  54162. outlineOptimizationEnabled?: boolean;
  54163. /**
  54164. * Indicates whether symbol sizes should vary based on view scale.
  54165. *
  54166. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer)
  54167. */
  54168. sizeOptimizationEnabled?: boolean;
  54169. /**
  54170. * Provides options for setting a title to a field when an expression is provided instead of a field name.
  54171. *
  54172. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer)
  54173. */
  54174. legendOptions?: sizeCreateContinuousRendererParamsLegendOptions;
  54175. /**
  54176. * A statistics object generated from the [summaryStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html) function.
  54177. *
  54178. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer)
  54179. */
  54180. statistics?: SummaryStatisticsResult;
  54181. /**
  54182. * A custom minimum value set by the user.
  54183. *
  54184. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer)
  54185. */
  54186. minValue?: number;
  54187. /**
  54188. * A custom maximum value set by the user.
  54189. *
  54190. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer)
  54191. */
  54192. maxValue?: number;
  54193. /**
  54194. * Enables the `defaultSymbol` on the renderer and assigns it to features with no value and features that do not fall within the configured data range.
  54195. *
  54196. * @default true
  54197. *
  54198. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer)
  54199. */
  54200. defaultSymbolEnabled?: boolean;
  54201. /**
  54202. * The type of symbol to generate.
  54203. *
  54204. * @default 2d
  54205. *
  54206. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer)
  54207. */
  54208. symbolType?: "2d" | "3d-flat" | "3d-volumetric" | "3d-volumetric-uniform";
  54209. /**
  54210. * Indicates whether the generated renderer is for a binning visualization.
  54211. *
  54212. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer)
  54213. */
  54214. forBinning?: boolean;
  54215. /**
  54216. * Allows for cancelable requests.
  54217. *
  54218. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer)
  54219. */
  54220. signal?: AbortSignal;
  54221. }
  54222. export interface sizeCreateContinuousRendererParamsLegendOptions {
  54223. /**
  54224. * The title used to represent the given field or expression in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  54225. *
  54226. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer)
  54227. */
  54228. title?: string;
  54229. /**
  54230. * Indicates whether to describe the renderer in the legend.
  54231. *
  54232. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer)
  54233. */
  54234. showLegend?: boolean;
  54235. }
  54236. export interface sizeCreateVisualVariablesParams {
  54237. /**
  54238. * The layer for which the visual variables are generated.
  54239. *
  54240. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createVisualVariables)
  54241. */
  54242. layer: FeatureLayer | SceneLayer | CSVLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  54243. /**
  54244. * The view where the input layer is rendered.
  54245. *
  54246. * [Read more...](global.html)
  54247. */
  54248. view?: View;
  54249. /**
  54250. * The name of the field whose data will be queried for statistics and used for the basis of the data-driven visualization.
  54251. *
  54252. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createVisualVariables)
  54253. */
  54254. field: string;
  54255. /**
  54256. * The name of the field to normalize the values of the given `field`.
  54257. *
  54258. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createVisualVariables)
  54259. */
  54260. normalizationField?: string;
  54261. /**
  54262. * In authoring apps, the user may select a pre-defined size scheme.
  54263. *
  54264. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createVisualVariables)
  54265. */
  54266. sizeScheme?: SizeScheme;
  54267. /**
  54268. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  54269. *
  54270. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createVisualVariables)
  54271. */
  54272. valueExpression?: string;
  54273. /**
  54274. * Text describing the value returned from the `valueExpression`.
  54275. *
  54276. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createVisualVariables)
  54277. */
  54278. valueExpressionTitle?: string;
  54279. /**
  54280. * Sets the size stops based on meaningful data values.
  54281. *
  54282. * @default high-to-low
  54283. *
  54284. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createVisualVariables)
  54285. */
  54286. theme?: "high-to-low" | "above" | "below";
  54287. /**
  54288. * A SQL expression evaluating to a number.
  54289. *
  54290. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createVisualVariables)
  54291. */
  54292. sqlExpression?: string;
  54293. /**
  54294. * A SQL where clause used to filter features for the statistics query.
  54295. *
  54296. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createVisualVariables)
  54297. */
  54298. sqlWhere?: string;
  54299. /**
  54300. * Indicates whether symbol sizes should vary based on view scale.
  54301. *
  54302. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createVisualVariables)
  54303. */
  54304. sizeOptimizationEnabled?: boolean;
  54305. /**
  54306. * Provides options for setting a title to a field when an expression is provided instead of a field name.
  54307. *
  54308. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createVisualVariables)
  54309. */
  54310. legendOptions?: sizeCreateVisualVariablesParamsLegendOptions;
  54311. /**
  54312. * A statistics object generated from the [summaryStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html) function.
  54313. *
  54314. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createVisualVariables)
  54315. */
  54316. statistics?: SummaryStatisticsResult;
  54317. /**
  54318. * A custom minimum value set by the user.
  54319. *
  54320. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createVisualVariables)
  54321. */
  54322. minValue?: number;
  54323. /**
  54324. * A custom maximum value set by the user.
  54325. *
  54326. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createVisualVariables)
  54327. */
  54328. maxValue?: number;
  54329. /**
  54330. * Indicates if the size units of the symbols will be in meters.
  54331. *
  54332. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createVisualVariables)
  54333. */
  54334. worldScale?: boolean;
  54335. /**
  54336. * When set to `all`, a single size variable that scales uniformly in all dimensions is generated.
  54337. *
  54338. * @default all
  54339. *
  54340. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createVisualVariables)
  54341. */
  54342. axis?: "all" | "height";
  54343. /**
  54344. * Indicates whether the generated renderer is for a binning visualization.
  54345. *
  54346. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createVisualVariables)
  54347. */
  54348. forBinning?: boolean;
  54349. /**
  54350. * Allows for cancelable requests.
  54351. *
  54352. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createVisualVariables)
  54353. */
  54354. signal?: AbortSignal;
  54355. }
  54356. export interface sizeCreateVisualVariablesParamsLegendOptions {
  54357. /**
  54358. * The title used to represent the given field or expression in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  54359. *
  54360. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createVisualVariables)
  54361. */
  54362. title?: string;
  54363. /**
  54364. * Indicates whether to describe the renderer in the legend.
  54365. *
  54366. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createVisualVariables)
  54367. */
  54368. showLegend?: boolean;
  54369. }
  54370. /**
  54371. * The result object of the [createVisualVariables()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createVisualVariables) method.
  54372. *
  54373. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#VisualVariableResult)
  54374. */
  54375. export interface sizeVisualVariableResult {
  54376. /**
  54377. * An array of size visual variables configured based on the statistics of the data and the view scale.
  54378. *
  54379. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#VisualVariableResult)
  54380. */
  54381. visualVariables: SizeVariable[];
  54382. /**
  54383. * The size scheme used by the main visual variable.
  54384. *
  54385. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#VisualVariableResult)
  54386. */
  54387. sizeScheme: SizeScheme;
  54388. /**
  54389. * Indicates whether default values were used in the absence of sufficient data and/or statistics from the layer.
  54390. *
  54391. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#VisualVariableResult)
  54392. */
  54393. defaultValuesUsed: boolean;
  54394. /**
  54395. * Basic statistics returned from a query to the service for the given field or expression.
  54396. *
  54397. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#VisualVariableResult)
  54398. */
  54399. statistics: SummaryStatisticsResult;
  54400. /**
  54401. * The ID of the basemap used to determine the optimal fill color of the features.
  54402. *
  54403. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#VisualVariableResult)
  54404. */
  54405. basemapId: string;
  54406. /**
  54407. * Indicates whether the average color of the input view's basemap is `light` or `dark`.
  54408. *
  54409. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#VisualVariableResult)
  54410. */
  54411. basemapTheme: string;
  54412. /**
  54413. * Authoring information related to the creation of the visual variable.
  54414. *
  54415. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#VisualVariableResult)
  54416. */
  54417. authoringInfo: AuthoringInfo;
  54418. }
  54419. /**
  54420. * This object contains helper methods for generating data-driven visualizations with unique types (or categories) based on a field value from features in a [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html).
  54421. *
  54422. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html)
  54423. */
  54424. interface type {
  54425. /**
  54426. * Generates a [PointCloudUniqueValueRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-PointCloudUniqueValueRenderer.html) based on a given field of a [PointCloudLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html).
  54427. *
  54428. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createPCClassRenderer)
  54429. */
  54430. createPCClassRenderer(params: typeCreatePCClassRendererParams): Promise<PCClassRendererResult>;
  54431. /**
  54432. * Generates a [Renderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-Renderer.html) that may be applied directly to a [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html) that supports renderers.
  54433. *
  54434. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createRenderer)
  54435. */
  54436. createRenderer(params: typeCreateRendererParams): Promise<typeRendererResult>;
  54437. }
  54438. export const type: type;
  54439. /**
  54440. * The result object of the [createPCClassRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createPCClassRenderer) method.
  54441. *
  54442. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#PCClassRendererResult)
  54443. */
  54444. export interface PCClassRendererResult {
  54445. /**
  54446. * The renderer object configured to represent the class codes in the point cloud.
  54447. *
  54448. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#PCClassRendererResult)
  54449. */
  54450. renderer: PointCloudUniqueValueRenderer;
  54451. }
  54452. /**
  54453. * The result object of the [createRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createRenderer) method.
  54454. *
  54455. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#RendererResult)
  54456. */
  54457. export interface typeRendererResult {
  54458. /**
  54459. * The renderer object configured to best match the background of the view.
  54460. *
  54461. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#RendererResult)
  54462. */
  54463. renderer: UniqueValueRenderer;
  54464. /**
  54465. * An array of objects describing the value, symbol, and count of each unique type or category represented in the renderer.
  54466. *
  54467. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#RendererResult)
  54468. */
  54469. uniqueValueInfos: typeUniqueValueInfo[];
  54470. /**
  54471. * An array of objects describing the values or categories excluded from consideration in visualizing data from the given field.
  54472. *
  54473. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#RendererResult)
  54474. */
  54475. excludedUniqueValueInfos: any[];
  54476. /**
  54477. * The scheme used to represent each category within the `uniqueValueInfos`.
  54478. *
  54479. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#RendererResult)
  54480. */
  54481. typeScheme: TypeScheme;
  54482. /**
  54483. * The ID of the basemap used to determine the optimal color scheme to represent the categorical variable.
  54484. *
  54485. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#RendererResult)
  54486. */
  54487. basemapId: string;
  54488. /**
  54489. * Indicates whether the average color of the input view's basemap is `light` or `dark`.
  54490. *
  54491. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#RendererResult)
  54492. */
  54493. basemapTheme: string;
  54494. }
  54495. export interface typeCreatePCClassRendererParams {
  54496. /**
  54497. * The layer for which the visualization is generated.
  54498. *
  54499. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createPCClassRenderer)
  54500. */
  54501. layer: PointCloudLayer;
  54502. /**
  54503. * The name of the field containing classification data for the given layer.
  54504. *
  54505. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createPCClassRenderer)
  54506. */
  54507. field: string;
  54508. /**
  54509. * The size of each point expressed as a percentage.
  54510. *
  54511. * @default 100%
  54512. *
  54513. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createPCClassRenderer)
  54514. */
  54515. size?: string;
  54516. /**
  54517. * The number of points per inch in the view.
  54518. *
  54519. * @default 25
  54520. *
  54521. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createPCClassRenderer)
  54522. */
  54523. density?: number;
  54524. /**
  54525. * In authoring apps, the user may select a pre-defined type scheme.
  54526. *
  54527. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createPCClassRenderer)
  54528. */
  54529. typeScheme?: TypeSchemeForPoint;
  54530. /**
  54531. * A statistics object generated from the [uniqueValues](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-uniqueValues.html) function.
  54532. *
  54533. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createPCClassRenderer)
  54534. */
  54535. statistics?: UniqueValuesResult;
  54536. /**
  54537. * Allows for cancelable requests.
  54538. *
  54539. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createPCClassRenderer)
  54540. */
  54541. signal?: AbortSignal;
  54542. }
  54543. export interface typeCreateRendererParams {
  54544. /**
  54545. * The layer for which the renderer is generated.
  54546. *
  54547. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createRenderer)
  54548. */
  54549. layer: FeatureLayer | SceneLayer | CSVLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  54550. /**
  54551. * The view where the input layer is rendered.
  54552. *
  54553. * [Read more...](global.html)
  54554. */
  54555. view?: View;
  54556. /**
  54557. * The name of the field from which to extract unique values that will be used for the basis of the data-driven visualization.
  54558. *
  54559. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createRenderer)
  54560. */
  54561. field?: string;
  54562. /**
  54563. * Specifies the name of a second attribute field used to categorize features.
  54564. *
  54565. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createRenderer)
  54566. */
  54567. field2?: string;
  54568. /**
  54569. * Specifies the name of a third attribute field used to categorize features.
  54570. *
  54571. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createRenderer)
  54572. */
  54573. field3?: string;
  54574. /**
  54575. * The number of types (or categories) displayed by the renderer.
  54576. *
  54577. * @default 10
  54578. *
  54579. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createRenderer)
  54580. */
  54581. numTypes?: number;
  54582. /**
  54583. * Indicates how values should be sorted in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  54584. *
  54585. * @default count
  54586. *
  54587. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createRenderer)
  54588. */
  54589. sortBy?: "count" | "value";
  54590. /**
  54591. * In authoring apps, the user may select a pre-defined type scheme.
  54592. *
  54593. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createRenderer)
  54594. */
  54595. typeScheme?: TypeScheme;
  54596. /**
  54597. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  54598. *
  54599. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createRenderer)
  54600. */
  54601. valueExpression?: string;
  54602. /**
  54603. * Text describing the value returned from the `valueExpression`.
  54604. *
  54605. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createRenderer)
  54606. */
  54607. valueExpressionTitle?: string;
  54608. /**
  54609. * For polygon layers only.
  54610. *
  54611. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createRenderer)
  54612. */
  54613. outlineOptimizationEnabled?: boolean;
  54614. /**
  54615. * For point and polyline layers only.
  54616. *
  54617. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createRenderer)
  54618. */
  54619. sizeOptimizationEnabled?: boolean;
  54620. /**
  54621. * Provides options for setting a title to a field that will override the field alias defined in the service.
  54622. *
  54623. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createRenderer)
  54624. */
  54625. legendOptions?: typeCreateRendererParamsLegendOptions;
  54626. /**
  54627. * Enables the `defaultSymbol` on the renderer and assigns it to features with no value.
  54628. *
  54629. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createRenderer)
  54630. */
  54631. defaultSymbolEnabled?: boolean;
  54632. /**
  54633. * The type of symbol to generate.
  54634. *
  54635. * @default 2d
  54636. *
  54637. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createRenderer)
  54638. */
  54639. symbolType?: "2d" | "3d-flat" | "3d-volumetric" | "3d-volumetric-uniform";
  54640. /**
  54641. * A statistics object generated from the [uniqueValues](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-uniqueValues.html) function.
  54642. *
  54643. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createRenderer)
  54644. */
  54645. statistics?: UniqueValuesResult;
  54646. /**
  54647. * **This option only applies to generating renderers for mesh SceneLayers**.
  54648. *
  54649. * @default replace
  54650. *
  54651. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createRenderer)
  54652. */
  54653. colorMixMode?: string;
  54654. /**
  54655. * Indicates that all domain codes should be returned if the given field has domain values.
  54656. *
  54657. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createRenderer)
  54658. */
  54659. returnAllCodedValues?: boolean;
  54660. /**
  54661. * Indicates whether the generated renderer is for a binning visualization.
  54662. *
  54663. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createRenderer)
  54664. */
  54665. forBinning?: boolean;
  54666. /**
  54667. * Allows for cancelable requests.
  54668. *
  54669. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createRenderer)
  54670. */
  54671. signal?: AbortSignal;
  54672. }
  54673. export interface typeCreateRendererParamsLegendOptions {
  54674. /**
  54675. * The title used to represent the given field in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  54676. *
  54677. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createRenderer)
  54678. */
  54679. title: string;
  54680. }
  54681. /**
  54682. * Describes the symbol, label, and value of a unique value generated by the [createRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#createRenderer) method.
  54683. *
  54684. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#UniqueValueInfo)
  54685. */
  54686. export interface typeUniqueValueInfo {
  54687. /**
  54688. * A unique value representing a type or category of features in a layer.
  54689. *
  54690. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#UniqueValueInfo)
  54691. */
  54692. value: string | number;
  54693. /**
  54694. * The number of features with the given `value` (or belonging to the given category).
  54695. *
  54696. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#UniqueValueInfo)
  54697. */
  54698. count: number;
  54699. /**
  54700. * The label describing the value or category in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  54701. *
  54702. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#UniqueValueInfo)
  54703. */
  54704. label: string;
  54705. /**
  54706. * The symbol used to represent features belonging to the given category.
  54707. *
  54708. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-type.html#UniqueValueInfo)
  54709. */
  54710. symbol: Symbol;
  54711. }
  54712. /**
  54713. * This object contains helper methods for generating data-driven univariate visualizations using both continuous color and continuous size based on a single field value or expression from features in a [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html).
  54714. *
  54715. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html)
  54716. */
  54717. interface univariateColorSize {
  54718. /**
  54719. * Generates a [Renderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-Renderer.html) that may be applied directly to a [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html).
  54720. *
  54721. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54722. */
  54723. createContinuousRenderer(params: univariateColorSizeCreateContinuousRendererParams): Promise<univariateColorSizeContinuousRendererResult>;
  54724. /**
  54725. * This method generates color and size visual variables, both based on the same given field or expression.
  54726. *
  54727. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createVisualVariables)
  54728. */
  54729. createVisualVariables(params: univariateColorSizeCreateVisualVariablesParams): Promise<VisualVariablesResult>;
  54730. }
  54731. export const univariateColorSize: univariateColorSize;
  54732. /**
  54733. * The result object of the [createContinuousRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer) method.
  54734. *
  54735. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#ContinuousRendererResult)
  54736. */
  54737. export interface univariateColorSizeContinuousRendererResult {
  54738. /**
  54739. * The renderer object configured to best match the view's background and the spread of the data.
  54740. *
  54741. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#ContinuousRendererResult)
  54742. */
  54743. renderer: ClassBreaksRenderer;
  54744. /**
  54745. * Object containing visual variable and scheme information for the color portion of the visualization.
  54746. *
  54747. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#ContinuousRendererResult)
  54748. */
  54749. color: ContinuousRendererResultColor;
  54750. /**
  54751. * Object containing visual variable and scheme information for the size portion of the visualization.
  54752. *
  54753. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#ContinuousRendererResult)
  54754. */
  54755. size: ContinuousRendererResultSize;
  54756. /**
  54757. * Indicates whether default values were used in the absence of sufficient data and/or statistics from the layer.
  54758. *
  54759. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#ContinuousRendererResult)
  54760. */
  54761. defaultValuesUsed: boolean;
  54762. /**
  54763. * Basic statistics returned from a query to the service for the given field or expression.
  54764. *
  54765. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#ContinuousRendererResult)
  54766. */
  54767. statistics: SummaryStatisticsResult;
  54768. /**
  54769. * The ID of the basemap used to determine the optimal fill color of the features.
  54770. *
  54771. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#ContinuousRendererResult)
  54772. */
  54773. basemapId: string;
  54774. /**
  54775. * Indicates whether the average color of the input view's basemap is `light` or `dark`.
  54776. *
  54777. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#ContinuousRendererResult)
  54778. */
  54779. basemapTheme: string;
  54780. }
  54781. export interface univariateColorSizeCreateContinuousRendererParams {
  54782. /**
  54783. * The layer for which the visual variable is generated.
  54784. *
  54785. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54786. */
  54787. layer: FeatureLayer | SceneLayer | CSVLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  54788. /**
  54789. * The view where the input layer is rendered.
  54790. *
  54791. * [Read more...](global.html)
  54792. */
  54793. view?: View;
  54794. /**
  54795. * The name of the field whose data will be queried for statistics and used for the basis of the data-driven visualization.
  54796. *
  54797. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54798. */
  54799. field?: string;
  54800. /**
  54801. * The name of the field to normalize the values of the given `field`.
  54802. *
  54803. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54804. */
  54805. normalizationField?: string;
  54806. /**
  54807. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  54808. *
  54809. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54810. */
  54811. valueExpression?: string;
  54812. /**
  54813. * Text describing the value returned from the `valueExpression`.
  54814. *
  54815. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54816. */
  54817. valueExpressionTitle?: string;
  54818. /**
  54819. * Sets the size stops and colors based on meaningful data values.
  54820. *
  54821. * @default high-to-low
  54822. *
  54823. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54824. */
  54825. theme?: "high-to-low" | "above" | "below" | "above-and-below";
  54826. /**
  54827. * A SQL expression evaluating to a number.
  54828. *
  54829. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54830. */
  54831. sqlExpression?: string;
  54832. /**
  54833. * A SQL where clause used to filter features for the statistics query.
  54834. *
  54835. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54836. */
  54837. sqlWhere?: string;
  54838. /**
  54839. * Indicates whether symbol sizes should vary based on view scale.
  54840. *
  54841. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54842. */
  54843. sizeOptimizationEnabled?: boolean;
  54844. /**
  54845. * A statistics object generated from the [summaryStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html) function.
  54846. *
  54847. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54848. */
  54849. statistics?: SummaryStatisticsResult;
  54850. /**
  54851. * A custom minimum value set by the user.
  54852. *
  54853. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54854. */
  54855. minValue?: number;
  54856. /**
  54857. * A custom maximum value set by the user.
  54858. *
  54859. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54860. */
  54861. maxValue?: number;
  54862. /**
  54863. * Enables the `defaultSymbol` on the renderer and assigns it to features with no value and features that do not fall within the configured data range.
  54864. *
  54865. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54866. */
  54867. defaultSymbolEnabled?: boolean;
  54868. /**
  54869. * Options for configuring the color portion of the visualization.
  54870. *
  54871. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54872. */
  54873. colorOptions?: univariateColorSizeCreateContinuousRendererParamsColorOptions;
  54874. /**
  54875. * Options for configuring the size portion of the visualization.
  54876. *
  54877. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54878. */
  54879. sizeOptions?: univariateColorSizeCreateContinuousRendererParamsSizeOptions;
  54880. /**
  54881. * Options for setting symbols for the `above-and-below` theme.
  54882. *
  54883. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54884. */
  54885. symbolOptions?: univariateColorSizeCreateContinuousRendererParamsSymbolOptions;
  54886. /**
  54887. * Provides options for configuring the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) representing the renderer generated from this method.
  54888. *
  54889. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54890. */
  54891. legendOptions?: univariateColorSizeCreateContinuousRendererParamsLegendOptions;
  54892. /**
  54893. * The type of symbol to generate.
  54894. *
  54895. * @default 2d
  54896. *
  54897. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54898. */
  54899. symbolType?: "2d" | "3d-flat" | "3d-volumetric" | "3d-volumetric-uniform";
  54900. /**
  54901. * Indicates whether the generated renderer is for a binning visualization.
  54902. *
  54903. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54904. */
  54905. forBinning?: boolean;
  54906. /**
  54907. * Allows for cancelable requests.
  54908. *
  54909. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54910. */
  54911. signal?: AbortSignal;
  54912. }
  54913. export interface univariateColorSizeCreateContinuousRendererParamsColorOptions {
  54914. /**
  54915. * In authoring apps, the user may select a pre-defined color scheme.
  54916. *
  54917. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54918. */
  54919. colorScheme?: ColorScheme;
  54920. /**
  54921. * Only applies to the `above-and-below` theme.
  54922. *
  54923. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54924. */
  54925. isContinuous?: boolean;
  54926. }
  54927. export interface univariateColorSizeCreateContinuousRendererParamsLegendOptions {
  54928. /**
  54929. * The title used to represent the renderer generated from this method in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  54930. *
  54931. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54932. */
  54933. title?: string;
  54934. /**
  54935. * Indicates if the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) widget should display content describing the generated renderer.
  54936. *
  54937. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54938. */
  54939. showLegend?: boolean;
  54940. }
  54941. export interface univariateColorSizeCreateContinuousRendererParamsSizeOptions {
  54942. /**
  54943. * In authoring apps, the user may select a pre-defined size scheme.
  54944. *
  54945. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54946. */
  54947. sizeScheme?: SizeScheme;
  54948. }
  54949. export interface univariateColorSizeCreateContinuousRendererParamsSymbolOptions {
  54950. /**
  54951. * Sets above and below symbols based on pre-defined named symbol pairs.
  54952. *
  54953. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54954. */
  54955. symbolStyle?: | "caret"
  54956. | "circle-caret"
  54957. | "arrow"
  54958. | "circle-arrow"
  54959. | "plus-minus"
  54960. | "circle-plus-minus"
  54961. | "square"
  54962. | "circle"
  54963. | "triangle"
  54964. | "happy-sad"
  54965. | "thumb";
  54966. /**
  54967. * Allows you to specify custom symbols in the `above-and-below` theme.
  54968. *
  54969. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54970. */
  54971. symbols?: univariateColorSizeCreateContinuousRendererParamsSymbolOptionsSymbols;
  54972. }
  54973. export interface univariateColorSizeCreateContinuousRendererParamsSymbolOptionsSymbols {
  54974. /**
  54975. * The symbol to use for the above portion of the `above-and-below` visualization.
  54976. *
  54977. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54978. */
  54979. above: Symbol;
  54980. /**
  54981. * The symbol to use for the below portion of the `above-and-below` visualization.
  54982. *
  54983. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer)
  54984. */
  54985. below: Symbol;
  54986. }
  54987. export interface univariateColorSizeCreateVisualVariablesParams {
  54988. /**
  54989. * The layer for which the visual variable is generated.
  54990. *
  54991. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createVisualVariables)
  54992. */
  54993. layer: FeatureLayer | SceneLayer | CSVLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  54994. /**
  54995. * The view where the input layer is rendered.
  54996. *
  54997. * [Read more...](global.html)
  54998. */
  54999. view?: View;
  55000. /**
  55001. * The name of the field whose data will be queried for statistics and used for the basis of the data-driven visualization.
  55002. *
  55003. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createVisualVariables)
  55004. */
  55005. field?: string;
  55006. /**
  55007. * The name of the field to normalize the values of the given `field`.
  55008. *
  55009. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createVisualVariables)
  55010. */
  55011. normalizationField?: string;
  55012. /**
  55013. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  55014. *
  55015. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createVisualVariables)
  55016. */
  55017. valueExpression?: string;
  55018. /**
  55019. * Text describing the value returned from the `valueExpression`.
  55020. *
  55021. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createVisualVariables)
  55022. */
  55023. valueExpressionTitle?: string;
  55024. /**
  55025. * Sets the size stops and colors based on meaningful data values.
  55026. *
  55027. * @default high-to-low
  55028. *
  55029. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createVisualVariables)
  55030. */
  55031. theme?: "high-to-low" | "above" | "below" | "above-and-below";
  55032. /**
  55033. * A SQL expression evaluating to a number.
  55034. *
  55035. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createVisualVariables)
  55036. */
  55037. sqlExpression?: string;
  55038. /**
  55039. * A SQL where clause used to filter features for the statistics query.
  55040. *
  55041. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createVisualVariables)
  55042. */
  55043. sqlWhere?: string;
  55044. /**
  55045. * A statistics object generated from the [summaryStatistics](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html) function.
  55046. *
  55047. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createVisualVariables)
  55048. */
  55049. statistics?: SummaryStatisticsResult;
  55050. /**
  55051. * A custom minimum value set by the user.
  55052. *
  55053. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createVisualVariables)
  55054. */
  55055. minValue?: number;
  55056. /**
  55057. * A custom maximum value set by the user.
  55058. *
  55059. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createVisualVariables)
  55060. */
  55061. maxValue?: number;
  55062. /**
  55063. * Options for configuring the color portion of the visualization.
  55064. *
  55065. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createVisualVariables)
  55066. */
  55067. colorOptions?: univariateColorSizeCreateVisualVariablesParamsColorOptions;
  55068. /**
  55069. * Options for configuring the size portion of the visualization.
  55070. *
  55071. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createVisualVariables)
  55072. */
  55073. sizeOptions?: univariateColorSizeCreateVisualVariablesParamsSizeOptions;
  55074. /**
  55075. * Indicates if the size units of the symbols will be in meters.
  55076. *
  55077. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createVisualVariables)
  55078. */
  55079. worldScale?: boolean;
  55080. /**
  55081. * Indicates whether the generated renderer is for a binning visualization.
  55082. *
  55083. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createVisualVariables)
  55084. */
  55085. forBinning?: boolean;
  55086. /**
  55087. * Allows for cancelable requests.
  55088. *
  55089. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createVisualVariables)
  55090. */
  55091. signal?: AbortSignal;
  55092. }
  55093. export interface univariateColorSizeCreateVisualVariablesParamsColorOptions {
  55094. /**
  55095. * Determines which values will be emphasized in the continuous ramp and the map.
  55096. *
  55097. * @default high-to-low
  55098. *
  55099. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createVisualVariables)
  55100. */
  55101. theme?: "high-to-low" | "above-and-below" | "centered-on" | "extremes";
  55102. /**
  55103. * In authoring apps, the user may select a pre-defined color scheme.
  55104. *
  55105. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createVisualVariables)
  55106. */
  55107. colorScheme?: ColorScheme;
  55108. /**
  55109. * Provides options for setting a title to a field when an expression is provided instead of a field name.
  55110. *
  55111. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createVisualVariables)
  55112. */
  55113. legendOptions?: univariateColorSizeCreateVisualVariablesParamsColorOptionsLegendOptions;
  55114. /**
  55115. * Only applies to the `above-and-below` theme.
  55116. *
  55117. * @default true
  55118. *
  55119. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createVisualVariables)
  55120. */
  55121. isContinuous?: boolean;
  55122. }
  55123. export interface univariateColorSizeCreateVisualVariablesParamsColorOptionsLegendOptions {
  55124. /**
  55125. * The title used to represent the given field or expression in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  55126. *
  55127. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createVisualVariables)
  55128. */
  55129. title: string;
  55130. }
  55131. export interface univariateColorSizeCreateVisualVariablesParamsSizeOptions {
  55132. /**
  55133. * When set to `all`, a single size variable that scales uniformly in all dimensions is generated.
  55134. *
  55135. * @default all
  55136. *
  55137. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createVisualVariables)
  55138. */
  55139. axis?: "all" | "height";
  55140. /**
  55141. * In authoring apps, the user may select a pre-defined size scheme.
  55142. *
  55143. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createVisualVariables)
  55144. */
  55145. sizeScheme?: SizeScheme;
  55146. /**
  55147. * Provides options for setting a title to a field when an expression is provided instead of a field name.
  55148. *
  55149. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createVisualVariables)
  55150. */
  55151. legendOptions?: univariateColorSizeCreateVisualVariablesParamsSizeOptionsLegendOptions;
  55152. }
  55153. export interface univariateColorSizeCreateVisualVariablesParamsSizeOptionsLegendOptions {
  55154. /**
  55155. * The title used to represent the given field or expression in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  55156. *
  55157. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createVisualVariables)
  55158. */
  55159. title: string;
  55160. }
  55161. /**
  55162. * The result object of the [createVisualVariables()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createVisualVariables) method.
  55163. *
  55164. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#VisualVariablesResult)
  55165. */
  55166. export interface VisualVariablesResult {
  55167. /**
  55168. * Object containing visual variable and scheme information for the color portion of the visualization.
  55169. *
  55170. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#VisualVariablesResult)
  55171. */
  55172. color: VisualVariablesResultColor;
  55173. /**
  55174. * Object containing visual variable and scheme information for the size portion of the visualization.
  55175. *
  55176. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#VisualVariablesResult)
  55177. */
  55178. size: VisualVariablesResultSize;
  55179. /**
  55180. * Indicates whether default values were used in the absence of sufficient data and/or statistics from the layer.
  55181. *
  55182. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#VisualVariablesResult)
  55183. */
  55184. defaultValuesUsed: boolean;
  55185. /**
  55186. * Basic statistics returned from a query to the service for the given field or expression.
  55187. *
  55188. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#VisualVariablesResult)
  55189. */
  55190. statistics: SummaryStatisticsResult;
  55191. /**
  55192. * The ID of the basemap used to determine the optimal fill color of the features.
  55193. *
  55194. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#VisualVariablesResult)
  55195. */
  55196. basemapId: string;
  55197. /**
  55198. * Indicates whether the average color of the input view's basemap is `light` or `dark`.
  55199. *
  55200. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#VisualVariablesResult)
  55201. */
  55202. basemapTheme: string;
  55203. /**
  55204. * Authoring information related to the creation of the visual variables.
  55205. *
  55206. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#VisualVariablesResult)
  55207. */
  55208. authoringInfo: AuthoringInfo;
  55209. }
  55210. export interface ContinuousRendererResultColor {
  55211. /**
  55212. * A color visual variable configured based on the statistics of the data and the color scheme.
  55213. *
  55214. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#ContinuousRendererResult)
  55215. */
  55216. visualVariable: ColorVariable;
  55217. /**
  55218. * The color scheme used by the visual variable.
  55219. *
  55220. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#ContinuousRendererResult)
  55221. */
  55222. colorScheme: ColorScheme;
  55223. }
  55224. export interface ContinuousRendererResultSize {
  55225. /**
  55226. * The size visual variable(s) configured based on the statistics of the data and the view scale.
  55227. *
  55228. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#ContinuousRendererResult)
  55229. */
  55230. visualVariables: SizeVariable[];
  55231. /**
  55232. * The size scheme used by the visual variable.
  55233. *
  55234. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#ContinuousRendererResult)
  55235. */
  55236. sizeScheme: SizeScheme;
  55237. }
  55238. export interface VisualVariablesResultColor {
  55239. /**
  55240. * A color visual variable configured based on the statistics of the data and the color scheme.
  55241. *
  55242. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#VisualVariablesResult)
  55243. */
  55244. visualVariable: ColorVariable;
  55245. /**
  55246. * The color scheme used by the visual variable.
  55247. *
  55248. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#VisualVariablesResult)
  55249. */
  55250. colorScheme: ColorScheme;
  55251. }
  55252. export interface VisualVariablesResultSize {
  55253. /**
  55254. * The size visual variable(s) configured based on the statistics of the data and the view scale.
  55255. *
  55256. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#VisualVariablesResult)
  55257. */
  55258. visualVariables: SizeVariable[];
  55259. /**
  55260. * The size scheme used by the visual variable.
  55261. *
  55262. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#VisualVariablesResult)
  55263. */
  55264. sizeScheme: SizeScheme;
  55265. }
  55266. /**
  55267. * Function for generating class breaks for an input field in a [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) based on a given classification method and normalization type.
  55268. *
  55269. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html)
  55270. */
  55271. interface statisticsClassBreaks {
  55272. /**
  55273. * Generates class breaks for an input field (or expression) of a [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) based on a given classification method and normalization type.
  55274. *
  55275. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#classBreaks)
  55276. */
  55277. classBreaks(params: classBreaksClassBreaksParams): Promise<ClassBreaksResult>;
  55278. }
  55279. const __statisticsClassBreaksMapped: statisticsClassBreaks;
  55280. export const statisticsClassBreaks: typeof __statisticsClassBreaksMapped.classBreaks;
  55281. /**
  55282. * An object describing a single class break generated from the [classBreaks()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#classBreaks) method.
  55283. *
  55284. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#ClassBreak)
  55285. */
  55286. export interface ClassBreak {
  55287. /**
  55288. * The label describing the given class break for use in the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html).
  55289. *
  55290. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#ClassBreak)
  55291. */
  55292. label: string;
  55293. /**
  55294. * The lower bound of the class break.
  55295. *
  55296. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#ClassBreak)
  55297. */
  55298. minValue: number;
  55299. /**
  55300. * The upper bound of the class break.
  55301. *
  55302. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#ClassBreak)
  55303. */
  55304. maxValue: number;
  55305. }
  55306. export interface classBreaksClassBreaksParams {
  55307. /**
  55308. * The layer from which to generate class breaks.
  55309. *
  55310. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#classBreaks)
  55311. */
  55312. layer: FeatureLayer | SceneLayer | CSVLayer | PointCloudLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  55313. /**
  55314. * The class breaks will be generated based on values of this field.
  55315. *
  55316. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#classBreaks)
  55317. */
  55318. field?: string;
  55319. /**
  55320. * The field by which to normalize the values returned from the given `field`.
  55321. *
  55322. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#classBreaks)
  55323. */
  55324. normalizationField?: string;
  55325. /**
  55326. * The method for classifying the data.
  55327. *
  55328. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#classBreaks)
  55329. */
  55330. classificationMethod?: "equal-interval" | "natural-breaks" | "quantile" | "standard-deviation";
  55331. /**
  55332. * When `classificationMethod = "standard-deviation"`, this sets the interval at which each class break should be set (e.g.
  55333. *
  55334. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#classBreaks)
  55335. */
  55336. standardDeviationInterval?: number;
  55337. /**
  55338. * The minimum bounding value for the class breaks definition.
  55339. *
  55340. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#classBreaks)
  55341. */
  55342. minValue?: number;
  55343. /**
  55344. * The maximum bounding value for the class breaks definition.
  55345. *
  55346. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#classBreaks)
  55347. */
  55348. maxValue?: number;
  55349. /**
  55350. * Indicates the number of classes to generate for the class breaks definition.
  55351. *
  55352. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#classBreaks)
  55353. */
  55354. numClasses?: number;
  55355. /**
  55356. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  55357. *
  55358. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#classBreaks)
  55359. */
  55360. valueExpression?: string;
  55361. /**
  55362. * A SQL expression evaluating to a number.
  55363. *
  55364. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#classBreaks)
  55365. */
  55366. sqlExpression?: string;
  55367. /**
  55368. * A SQL where clause used to filter features for the statistics query.
  55369. *
  55370. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#classBreaks)
  55371. */
  55372. sqlWhere?: string;
  55373. /**
  55374. * A [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) or [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) instance is required when a `valueExpression` is specified.
  55375. *
  55376. * [Read more...](global.html)
  55377. */
  55378. view?: View;
  55379. /**
  55380. * A feature filter used to filter statistic queries by geometry.
  55381. *
  55382. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#classBreaks)
  55383. */
  55384. filter?: FeatureFilter;
  55385. /**
  55386. * A subset of features for which to generate the class breaks.
  55387. *
  55388. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#classBreaks)
  55389. */
  55390. features?: Graphic[];
  55391. /**
  55392. * Only applicable when the input `layer` is a service-backed FeatureLayer.
  55393. *
  55394. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#classBreaks)
  55395. */
  55396. useFeaturesInView?: boolean;
  55397. /**
  55398. * Indicates whether the generated statistics are for a binning or clustering visualization.
  55399. *
  55400. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#classBreaks)
  55401. */
  55402. forBinning?: boolean;
  55403. /**
  55404. * Allows for cancelable requests.
  55405. *
  55406. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#classBreaks)
  55407. */
  55408. signal?: AbortSignal;
  55409. }
  55410. /**
  55411. * Object returned from the [classBreaks()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#classBreaks) method.
  55412. *
  55413. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#ClassBreaksResult)
  55414. */
  55415. export interface ClassBreaksResult {
  55416. /**
  55417. * An array of objects describing the class breaks generated from the [classBreaks()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#classBreaks) method.
  55418. *
  55419. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#ClassBreaksResult)
  55420. */
  55421. classBreakInfos: ClassBreak[];
  55422. /**
  55423. * The minimum value of features in the dataset.
  55424. *
  55425. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#ClassBreaksResult)
  55426. */
  55427. minValue: number;
  55428. /**
  55429. * The maximum value of features in the dataset.
  55430. *
  55431. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#ClassBreaksResult)
  55432. */
  55433. maxValue: number;
  55434. /**
  55435. * The normalization total if `normalizationType` is set to `percent-of-total` when generating class breaks with [createClassBreaksRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer).
  55436. *
  55437. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-classBreaks.html#ClassBreaksResult)
  55438. */
  55439. normalizationTotal: number;
  55440. }
  55441. /**
  55442. * Function for generating statistics from a [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html) for a [HeatmapRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html) visualization.
  55443. *
  55444. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-heatmapStatistics.html)
  55445. */
  55446. interface heatmapStatistics {
  55447. /**
  55448. * Returns an object containing various statistics describing the intensity values for a heatmap visualization of a given point [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html).
  55449. *
  55450. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-heatmapStatistics.html#heatmapStatistics)
  55451. */
  55452. heatmapStatistics(params: heatmapStatisticsHeatmapStatisticsParams): Promise<HeatmapStatisticsResult>;
  55453. }
  55454. const __heatmapStatisticsMapped: heatmapStatistics;
  55455. export const heatmapStatistics: typeof __heatmapStatisticsMapped.heatmapStatistics;
  55456. export interface heatmapStatisticsHeatmapStatisticsParams {
  55457. /**
  55458. * The layer from which to generate statistics for the pixel intensity values and a given `field` if provided.
  55459. *
  55460. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-heatmapStatistics.html#heatmapStatistics)
  55461. */
  55462. layer: FeatureLayer | CSVLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  55463. /**
  55464. * A view instance used to calculate pixel intensity values based on the features in the current view.
  55465. *
  55466. * [Read more...](global.html)
  55467. */
  55468. view: MapView | SceneView;
  55469. /**
  55470. * The name of the numeric field for which the statistics will be generated.
  55471. *
  55472. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-heatmapStatistics.html#heatmapStatistics)
  55473. */
  55474. field?: string;
  55475. /**
  55476. * The area of influence for each point as a radius in points from the point.
  55477. *
  55478. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-heatmapStatistics.html#heatmapStatistics)
  55479. */
  55480. radius?: number;
  55481. /**
  55482. * Allows for cancelable requests.
  55483. *
  55484. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-heatmapStatistics.html#heatmapStatistics)
  55485. */
  55486. signal?: AbortSignal;
  55487. }
  55488. /**
  55489. * The statistics returned from the [heatmapStatistics()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-heatmapStatistics.html#heatmapStatistics) function.
  55490. *
  55491. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-heatmapStatistics.html#HeatmapStatisticsResult)
  55492. */
  55493. export interface HeatmapStatisticsResult {
  55494. /**
  55495. * The maximum density value of all pixels in the view.
  55496. *
  55497. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-heatmapStatistics.html#HeatmapStatisticsResult)
  55498. */
  55499. max: number;
  55500. /**
  55501. * The minimum density value of all pixels in the view.
  55502. *
  55503. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-heatmapStatistics.html#HeatmapStatisticsResult)
  55504. */
  55505. min: number;
  55506. /**
  55507. * The summary statistics for all values returned from the field, if provided.
  55508. *
  55509. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-heatmapStatistics.html#HeatmapStatisticsResult)
  55510. */
  55511. summaryStatistics?: SummaryStatisticsResult;
  55512. }
  55513. /**
  55514. * Generates a histogram based on data in a [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html) for a given field.
  55515. *
  55516. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html)
  55517. */
  55518. interface histogram {
  55519. /**
  55520. * Generates a histogram for data returned from a `field` in a given `layer`.
  55521. *
  55522. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram)
  55523. */
  55524. histogram(params: histogramHistogramParams): Promise<HistogramResult>;
  55525. }
  55526. const __histogramMapped: histogram;
  55527. export const histogram: typeof __histogramMapped.histogram;
  55528. export interface histogramHistogramParams {
  55529. /**
  55530. * The layer for which to generate a histogram.
  55531. *
  55532. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram)
  55533. */
  55534. layer: FeatureLayer | SceneLayer | CSVLayer | PointCloudLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  55535. /**
  55536. * The name of the numeric field for which the histogram will be generated.
  55537. *
  55538. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram)
  55539. */
  55540. field?: string;
  55541. /**
  55542. * Determines how the provided `field` values will be normalized.
  55543. *
  55544. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram)
  55545. */
  55546. normalizationType?: "field" | "log" | "percent-of-total" | "natural-log" | "square-root";
  55547. /**
  55548. * The field by which to normalize the values returned from the given `field`.
  55549. *
  55550. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram)
  55551. */
  55552. normalizationField?: string;
  55553. /**
  55554. * Only applies if `normalizationType` is `percent-of-total`.
  55555. *
  55556. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram)
  55557. */
  55558. normalizationTotal?: number;
  55559. /**
  55560. * The method for classifying the data.
  55561. *
  55562. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram)
  55563. */
  55564. classificationMethod?: "equal-interval" | "natural-breaks" | "quantile" | "standard-deviation";
  55565. /**
  55566. * When `classificationMethod = "standard-deviation"`, this sets the interval at which each class break should be set (e.g.
  55567. *
  55568. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram)
  55569. */
  55570. standardDeviationInterval?: number;
  55571. /**
  55572. * The minimum bounding value for the histogram.
  55573. *
  55574. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram)
  55575. */
  55576. minValue?: number;
  55577. /**
  55578. * The maximum bounding value for the histogram.
  55579. *
  55580. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram)
  55581. */
  55582. maxValue?: number;
  55583. /**
  55584. * Indicates the number of classes to generate for the histogram.
  55585. *
  55586. * @default 10
  55587. *
  55588. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram)
  55589. */
  55590. numBins?: number;
  55591. /**
  55592. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  55593. *
  55594. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram)
  55595. */
  55596. valueExpression?: string;
  55597. /**
  55598. * A SQL expression evaluating to a number.
  55599. *
  55600. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram)
  55601. */
  55602. sqlExpression?: string;
  55603. /**
  55604. * A SQL where clause used to filter features for the statistics query.
  55605. *
  55606. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram)
  55607. */
  55608. sqlWhere?: string;
  55609. /**
  55610. * A [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) or [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) instance is required when a `valueExpression` is specified.
  55611. *
  55612. * [Read more...](global.html)
  55613. */
  55614. view?: View;
  55615. /**
  55616. * A feature filter used to filter statistic queries by geometry.
  55617. *
  55618. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram)
  55619. */
  55620. filter?: FeatureFilter;
  55621. /**
  55622. * A subset of features for which to generate the histogram.
  55623. *
  55624. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram)
  55625. */
  55626. features?: Graphic[];
  55627. /**
  55628. * Only applicable when the input `layer` is a service-backed FeatureLayer.
  55629. *
  55630. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram)
  55631. */
  55632. useFeaturesInView?: boolean;
  55633. /**
  55634. * Indicates whether the generated statistics are for a binning or clustering visualization.
  55635. *
  55636. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram)
  55637. */
  55638. forBinning?: boolean;
  55639. /**
  55640. * Allows for cancelable requests.
  55641. *
  55642. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram)
  55643. */
  55644. signal?: AbortSignal;
  55645. }
  55646. /**
  55647. * The result returned from the [histogram()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#histogram) method.
  55648. *
  55649. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#HistogramResult)
  55650. */
  55651. export interface HistogramResult {
  55652. /**
  55653. * An array of objects representing each bin in the histogram.
  55654. *
  55655. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#HistogramResult)
  55656. */
  55657. bins: Bin[];
  55658. /**
  55659. * The minimum value returned by the field.
  55660. *
  55661. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#HistogramResult)
  55662. */
  55663. minValue: number;
  55664. /**
  55665. * The maximum value returned by the field.
  55666. *
  55667. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#HistogramResult)
  55668. */
  55669. maxValue: number;
  55670. /**
  55671. * The number used to normalize all values when `percent-of-total` is specified as the `normalizationType`.
  55672. *
  55673. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html#HistogramResult)
  55674. */
  55675. normalizationTotal?: number;
  55676. }
  55677. /**
  55678. * Function for generating category statistics for a [predominance](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html) renderer.
  55679. *
  55680. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-predominantCategories.html)
  55681. */
  55682. interface predominantCategories {
  55683. /**
  55684. * Determines predominant categories for a layer based on a given set of competing numeric fields and returns the number of features belonging to each category.
  55685. *
  55686. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-predominantCategories.html#predominantCategories)
  55687. */
  55688. predominantCategories(params: predominantCategoriesPredominantCategoriesParams): Promise<PredominantCategoriesResult>;
  55689. }
  55690. const __predominantCategoriesMapped: predominantCategories;
  55691. export const predominantCategories: typeof __predominantCategoriesMapped.predominantCategories;
  55692. export interface predominantCategoriesPredominantCategoriesParams {
  55693. /**
  55694. * The layer from which to generate predominant categories for the given set of `fields`.
  55695. *
  55696. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-predominantCategories.html#predominantCategories)
  55697. */
  55698. layer: FeatureLayer | SceneLayer | CSVLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  55699. /**
  55700. * An array of numeric fields from which to determine predominant categories.
  55701. *
  55702. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-predominantCategories.html#predominantCategories)
  55703. */
  55704. fields: string[];
  55705. /**
  55706. * Indicates whether the generated statistics are for a binning or clustering visualization.
  55707. *
  55708. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-predominantCategories.html#predominantCategories)
  55709. */
  55710. forBinning?: boolean;
  55711. /**
  55712. * The view in which features will be rendered.
  55713. *
  55714. * [Read more...](global.html)
  55715. */
  55716. view?: MapView | SceneView;
  55717. /**
  55718. * Allows for cancelable requests.
  55719. *
  55720. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-predominantCategories.html#predominantCategories)
  55721. */
  55722. signal?: AbortSignal;
  55723. }
  55724. /**
  55725. * The statistics returned from the [predominantCategories()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-predominantCategories.html#predominantCategories) function.
  55726. *
  55727. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-predominantCategories.html#PredominantCategoriesResult)
  55728. */
  55729. export interface PredominantCategoriesResult {
  55730. /**
  55731. * An array of objects describing the count of each predominant category.
  55732. *
  55733. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-predominantCategories.html#PredominantCategoriesResult)
  55734. */
  55735. predominantCategoryInfos: PredominantCategoriesResultPredominantCategoryInfos[];
  55736. }
  55737. export interface PredominantCategoriesResultPredominantCategoryInfos {
  55738. /**
  55739. * The value or category referenced in a predominance visualization.
  55740. *
  55741. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-predominantCategories.html#PredominantCategoriesResult)
  55742. */
  55743. value: string | number;
  55744. /**
  55745. * The number of features belonging to the predominant category.
  55746. *
  55747. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-predominantCategories.html#PredominantCategoriesResult)
  55748. */
  55749. count: number;
  55750. /**
  55751. * The label describing the predominant category, or field name.
  55752. *
  55753. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-predominantCategories.html#PredominantCategoriesResult)
  55754. */
  55755. label?: string;
  55756. }
  55757. /**
  55758. * Function for generating attribute statistics in a [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html) based on values returned from a given field.
  55759. *
  55760. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html)
  55761. */
  55762. interface summaryStatistics {
  55763. /**
  55764. * Returns an object containing statistics describing a set of values returned from a field (or expression) in a [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html).
  55765. *
  55766. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#summaryStatistics)
  55767. */
  55768. summaryStatistics(params: summaryStatisticsSummaryStatisticsParams): Promise<SummaryStatisticsResult>;
  55769. }
  55770. const __summaryStatisticsMapped: summaryStatistics;
  55771. export const summaryStatistics: typeof __summaryStatisticsMapped.summaryStatistics;
  55772. /**
  55773. * The statistics returned from the [summaryStatistics()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#summaryStatistics) query.
  55774. *
  55775. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#SummaryStatisticsResult)
  55776. */
  55777. export interface SummaryStatisticsResult {
  55778. /**
  55779. * The average of all values returned from the field or expression.
  55780. *
  55781. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#SummaryStatisticsResult)
  55782. */
  55783. avg: number;
  55784. /**
  55785. * The total number of features with a non-null value for the given field.
  55786. *
  55787. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#SummaryStatisticsResult)
  55788. */
  55789. count: number;
  55790. /**
  55791. * The maximum of all values returned from the field or expression.
  55792. *
  55793. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#SummaryStatisticsResult)
  55794. */
  55795. max: number;
  55796. /**
  55797. * The median of all values returned from the field or expression.
  55798. *
  55799. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#SummaryStatisticsResult)
  55800. */
  55801. median: number;
  55802. /**
  55803. * The minimum of all values returned from the field or expression.
  55804. *
  55805. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#SummaryStatisticsResult)
  55806. */
  55807. min: number;
  55808. /**
  55809. * The standard deviation calculated from values returned from the field or expression.
  55810. *
  55811. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#SummaryStatisticsResult)
  55812. */
  55813. stddev: number;
  55814. /**
  55815. * The sum of all values returned from the field or expression.
  55816. *
  55817. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#SummaryStatisticsResult)
  55818. */
  55819. sum: number;
  55820. /**
  55821. * The calculated variance from all values returned from the field or expression.
  55822. *
  55823. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#SummaryStatisticsResult)
  55824. */
  55825. variance: number;
  55826. /**
  55827. * The number of null values stored in the given field.
  55828. *
  55829. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#SummaryStatisticsResult)
  55830. */
  55831. nullcount?: number;
  55832. }
  55833. export interface summaryStatisticsSummaryStatisticsParams {
  55834. /**
  55835. * The layer from which to generate statistics for the given `field`.
  55836. *
  55837. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#summaryStatistics)
  55838. */
  55839. layer: FeatureLayer | SceneLayer | CSVLayer | PointCloudLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  55840. /**
  55841. * The name of the numeric or string field for which the summary statistics will be generated.
  55842. *
  55843. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#summaryStatistics)
  55844. */
  55845. field?: string;
  55846. /**
  55847. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  55848. *
  55849. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#summaryStatistics)
  55850. */
  55851. valueExpression?: string;
  55852. /**
  55853. * A SQL expression evaluating to a number.
  55854. *
  55855. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#summaryStatistics)
  55856. */
  55857. sqlExpression?: string;
  55858. /**
  55859. * A SQL where clause used to filter features for the statistics query.
  55860. *
  55861. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#summaryStatistics)
  55862. */
  55863. sqlWhere?: string;
  55864. /**
  55865. * Determines how the provided `field` values will be normalized.
  55866. *
  55867. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#summaryStatistics)
  55868. */
  55869. normalizationType?: "field" | "log" | "percent-of-total" | "natural-log" | "square-root";
  55870. /**
  55871. * The field by which to normalize the values returned from the given `field`.
  55872. *
  55873. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#summaryStatistics)
  55874. */
  55875. normalizationField?: string;
  55876. /**
  55877. * Only applies if `normalizationType` is `percent-of-total`.
  55878. *
  55879. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#summaryStatistics)
  55880. */
  55881. normalizationTotal?: number;
  55882. /**
  55883. * The minimum bounding value for the statistics calculation.
  55884. *
  55885. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#summaryStatistics)
  55886. */
  55887. minValue?: number;
  55888. /**
  55889. * The maximum bounding value for the statistics calculation.
  55890. *
  55891. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#summaryStatistics)
  55892. */
  55893. maxValue?: number;
  55894. /**
  55895. * A [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) or [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) instance is required when a `valueExpression` is specified.
  55896. *
  55897. * [Read more...](global.html)
  55898. */
  55899. view?: View;
  55900. /**
  55901. * A feature filter used to filter statistic queries by geometry.
  55902. *
  55903. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#summaryStatistics)
  55904. */
  55905. filter?: FeatureFilter;
  55906. /**
  55907. * A subset of features for which to calculate the statistics.
  55908. *
  55909. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#summaryStatistics)
  55910. */
  55911. features?: Graphic[];
  55912. /**
  55913. * Only applicable when the input `layer` is a service-backed FeatureLayer.
  55914. *
  55915. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#summaryStatistics)
  55916. */
  55917. useFeaturesInView?: boolean;
  55918. /**
  55919. * Indicates whether the generated statistics are for a binning or clustering visualization.
  55920. *
  55921. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#summaryStatistics)
  55922. */
  55923. forBinning?: boolean;
  55924. /**
  55925. * Allows for cancelable requests.
  55926. *
  55927. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatistics.html#summaryStatistics)
  55928. */
  55929. signal?: AbortSignal;
  55930. }
  55931. /**
  55932. * Function for generating statistics for the age of features in a layer based on a given start time and end time.
  55933. *
  55934. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatisticsForAge.html)
  55935. */
  55936. interface summaryStatisticsForAge {
  55937. /**
  55938. * Returns an object containing various statistics describing an age value (e.g.
  55939. *
  55940. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatisticsForAge.html#summaryStatisticsForAge)
  55941. */
  55942. summaryStatisticsForAge(params: summaryStatisticsForAgeSummaryStatisticsForAgeParams): Promise<SummaryStatisticsResult>;
  55943. }
  55944. const __summaryStatisticsForAgeMapped: summaryStatisticsForAge;
  55945. export const summaryStatisticsForAge: typeof __summaryStatisticsForAgeMapped.summaryStatisticsForAge;
  55946. export interface summaryStatisticsForAgeSummaryStatisticsForAgeParams {
  55947. /**
  55948. * The layer from which to generate age statistics for the given `startTime` and `endTime`.
  55949. *
  55950. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatisticsForAge.html#summaryStatisticsForAge)
  55951. */
  55952. layer: FeatureLayer | SceneLayer | CSVLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  55953. /**
  55954. * The start time for the age calculation.
  55955. *
  55956. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatisticsForAge.html#summaryStatisticsForAge)
  55957. */
  55958. startTime: Date | string | number;
  55959. /**
  55960. * The end time for the age calculation.
  55961. *
  55962. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatisticsForAge.html#summaryStatisticsForAge)
  55963. */
  55964. endTime: Date | string | number;
  55965. /**
  55966. * The desired units of the age result.
  55967. *
  55968. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatisticsForAge.html#summaryStatisticsForAge)
  55969. */
  55970. unit: "years" | "months" | "days" | "hours" | "minutes" | "seconds";
  55971. /**
  55972. * The view in which features will be rendered.
  55973. *
  55974. * [Read more...](global.html)
  55975. */
  55976. view?: MapView | SceneView;
  55977. /**
  55978. * Allows for cancelable requests.
  55979. *
  55980. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-summaryStatisticsForAge.html#summaryStatisticsForAge)
  55981. */
  55982. signal?: AbortSignal;
  55983. }
  55984. /**
  55985. * Provides utility functions for generating [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expressions intended for use in an [age renderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createAgeRenderer).
  55986. *
  55987. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-ageUtils.html)
  55988. */
  55989. interface ageUtils {
  55990. /**
  55991. * Returns an [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression for visualizing the age of a feature based on a given start time and end time.
  55992. *
  55993. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-ageUtils.html#getAgeExpressions)
  55994. */
  55995. getAgeExpressions(params: ageUtilsGetAgeExpressionsParams): AgeExpressionsResult;
  55996. }
  55997. export const ageUtils: ageUtils;
  55998. /**
  55999. * The result object returned from the [getAgeExpressions()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-ageUtils.html#getAgeExpressions) method.
  56000. *
  56001. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-ageUtils.html#AgeExpressionsResult)
  56002. */
  56003. export interface AgeExpressionsResult {
  56004. /**
  56005. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  56006. *
  56007. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-ageUtils.html#AgeExpressionsResult)
  56008. */
  56009. valueExpression: string;
  56010. /**
  56011. * A SQL expression and where clause that matches the generated `valueExpression` used to query statistics from the layer.
  56012. *
  56013. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-ageUtils.html#AgeExpressionsResult)
  56014. */
  56015. statisticsQuery: any;
  56016. /**
  56017. * A SQL expression and where clause that matches the generated `valueExpression` used to query for a histogram from the layer.
  56018. *
  56019. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-ageUtils.html#AgeExpressionsResult)
  56020. */
  56021. histogramQuery: any;
  56022. }
  56023. export interface ageUtilsGetAgeExpressionsParams {
  56024. /**
  56025. * The layer from which to generate age statistics for the given `startTime` and `endTime`.
  56026. *
  56027. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-ageUtils.html#getAgeExpressions)
  56028. */
  56029. layer: FeatureLayer | SceneLayer | CSVLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  56030. /**
  56031. * The start time for the age calculation.
  56032. *
  56033. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-ageUtils.html#getAgeExpressions)
  56034. */
  56035. startTime: Date | string | number;
  56036. /**
  56037. * The end time for the age calculation.
  56038. *
  56039. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-ageUtils.html#getAgeExpressions)
  56040. */
  56041. endTime: Date | string | number;
  56042. /**
  56043. * The desired units of the age result.
  56044. *
  56045. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-ageUtils.html#getAgeExpressions)
  56046. */
  56047. unit?: "years" | "months" | "days" | "hours" | "minutes" | "seconds";
  56048. }
  56049. /**
  56050. * Provides utility functions for generating [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) and SQL expressions intended for use in an [predominance renderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html).
  56051. *
  56052. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html)
  56053. */
  56054. interface predominanceUtils {
  56055. /**
  56056. * Returns [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) and SQL expressions used for visualizing the predominant category (or field) among a set of competing fields.
  56057. *
  56058. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#getPredominanceExpressions)
  56059. */
  56060. getPredominanceExpressions(layer: FeatureLayer | SceneLayer | CSVLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer, fieldNames: string[]): PredominantExpressions;
  56061. }
  56062. export const predominanceUtils: predominanceUtils;
  56063. /**
  56064. * Contains the Arcade and SQL expressions used to query feature services and client-side layers for the strength of the predominant category compared with all other categories.
  56065. *
  56066. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#OpacityExpressionInfo)
  56067. */
  56068. export interface OpacityExpressionInfo {
  56069. /**
  56070. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  56071. *
  56072. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#OpacityExpressionInfo)
  56073. */
  56074. valueExpression: string;
  56075. /**
  56076. * The SQL expressions used for querying the percentage the predominant value comprises among of a set of fields.
  56077. *
  56078. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#OpacityExpressionInfo)
  56079. */
  56080. statisticsQuery: SQLExpressionInfo;
  56081. /**
  56082. * The SQL expressions used for querying the histogram using the percentage the predominant value comprises among of a set of fields.
  56083. *
  56084. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#OpacityExpressionInfo)
  56085. */
  56086. histogramQuery: SQLExpressionInfo;
  56087. }
  56088. /**
  56089. * The result object returned from the [getAgeExpressions()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#getAgeExpressions) method.
  56090. *
  56091. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#PredominantExpressions)
  56092. */
  56093. export interface PredominantExpressions {
  56094. /**
  56095. * The Arcade expression used to get the predominant category among a set of fields.
  56096. *
  56097. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#PredominantExpressions)
  56098. */
  56099. predominantCategory: PredominantExpressionsPredominantCategory;
  56100. /**
  56101. * The Arcade and SQL expressions used to query the server or client-side layer for statistics of the sum of all competing fields considered for the predominance visualization.
  56102. *
  56103. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#PredominantExpressions)
  56104. */
  56105. size: SizeExpressionInfo;
  56106. /**
  56107. * The Arcade and SQL expressions used to query the server or client-side layer for statistics of the percentage among all competing fields comprised by the predominant category.
  56108. *
  56109. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#PredominantExpressions)
  56110. */
  56111. opacity: OpacityExpressionInfo;
  56112. }
  56113. /**
  56114. * Contains the Arcade and SQL expressions used to query feature services and client-side layers for the sum of all values considered in a predominance visualization.
  56115. *
  56116. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#SizeExpressionInfo)
  56117. */
  56118. export interface SizeExpressionInfo {
  56119. /**
  56120. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  56121. *
  56122. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#SizeExpressionInfo)
  56123. */
  56124. valueExpression: string;
  56125. /**
  56126. * The SQL expressions used for querying the sum of a set of fields.
  56127. *
  56128. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#SizeExpressionInfo)
  56129. */
  56130. statisticsQuery: SQLExpressionInfo;
  56131. /**
  56132. * The SQL expressions used for querying the histogram for the sum of a set of fields.
  56133. *
  56134. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#SizeExpressionInfo)
  56135. */
  56136. histogramQuery: SQLExpressionInfo;
  56137. }
  56138. /**
  56139. * SQL expressions used to query feature services for predominant values and related statistics given a set of fields.
  56140. *
  56141. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#SQLExpressionInfo)
  56142. */
  56143. export interface SQLExpressionInfo {
  56144. /**
  56145. * The SQL expression used for querying the predominant category given a set of fields.
  56146. *
  56147. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#SQLExpressionInfo)
  56148. */
  56149. sqlExpression: string;
  56150. /**
  56151. * The SQL where clause used to query the predominant value.
  56152. *
  56153. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#SQLExpressionInfo)
  56154. */
  56155. sqlWhere: string;
  56156. }
  56157. export interface PredominantExpressionsPredominantCategory {
  56158. /**
  56159. * valueExpression - An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  56160. *
  56161. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-support-predominanceUtils.html#PredominantExpressions)
  56162. */
  56163. valueExpression: string;
  56164. }
  56165. /**
  56166. * A function that queries for unique values from a field in a [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html).
  56167. *
  56168. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-uniqueValues.html)
  56169. */
  56170. interface uniqueValues {
  56171. /**
  56172. * Returns an object containing an array of unique values queried from a given field (or values returned from an expression) in a [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html) along with the total count of features that belong to the given category.
  56173. *
  56174. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-uniqueValues.html#uniqueValues)
  56175. */
  56176. uniqueValues(params: uniqueValuesUniqueValuesParams): Promise<UniqueValuesResult>;
  56177. }
  56178. const __uniqueValuesMapped: uniqueValues;
  56179. export const uniqueValues: typeof __uniqueValuesMapped.uniqueValues;
  56180. /**
  56181. * An object that contains the unique values returned from the [uniqueValues()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-uniqueValues.html#uniqueValues) query of a layer's field.
  56182. *
  56183. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-uniqueValues.html#UniqueValuesResult)
  56184. */
  56185. export interface UniqueValuesResult {
  56186. /**
  56187. * An array of objects, each containing a unique value/type/category present in the field specified in the [uniqueValues()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-uniqueValues.html#uniqueValues) query.
  56188. *
  56189. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-uniqueValues.html#UniqueValuesResult)
  56190. */
  56191. uniqueValueInfos: UniqueValuesResultUniqueValueInfos[];
  56192. }
  56193. export interface uniqueValuesUniqueValuesParams {
  56194. /**
  56195. * The layer from which to query for unique values.
  56196. *
  56197. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-uniqueValues.html#uniqueValues)
  56198. */
  56199. layer: FeatureLayer | SceneLayer | CSVLayer | PointCloudLayer | GeoJSONLayer | WFSLayer | OGCFeatureLayer;
  56200. /**
  56201. * The name of the numeric or string field from which the unique values will be obtained.
  56202. *
  56203. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-uniqueValues.html#uniqueValues)
  56204. */
  56205. field?: string;
  56206. /**
  56207. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  56208. *
  56209. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-uniqueValues.html#uniqueValues)
  56210. */
  56211. valueExpression?: string;
  56212. /**
  56213. * A SQL expression evaluating to a number or string.
  56214. *
  56215. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-uniqueValues.html#uniqueValues)
  56216. */
  56217. sqlExpression?: string;
  56218. /**
  56219. * A SQL where clause used to filter features for the statistics query.
  56220. *
  56221. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-uniqueValues.html#uniqueValues)
  56222. */
  56223. sqlWhere?: string;
  56224. /**
  56225. * Indicates that all domain codes should be returned if the given field has domain values.
  56226. *
  56227. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-uniqueValues.html#uniqueValues)
  56228. */
  56229. returnAllCodedValues?: boolean;
  56230. /**
  56231. * A [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) or [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) instance is required when a `valueExpression` is specified.
  56232. *
  56233. * [Read more...](global.html)
  56234. */
  56235. view?: View;
  56236. /**
  56237. * A feature filter used to filter statistic queries by geometry.
  56238. *
  56239. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-uniqueValues.html#uniqueValues)
  56240. */
  56241. filter?: FeatureFilter;
  56242. /**
  56243. * A subset of features for which to generate the unique values.
  56244. *
  56245. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-uniqueValues.html#uniqueValues)
  56246. */
  56247. features?: Graphic[];
  56248. /**
  56249. * Only applicable when the input `layer` is a service-backed FeatureLayer.
  56250. *
  56251. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-uniqueValues.html#uniqueValues)
  56252. */
  56253. useFeaturesInView?: boolean;
  56254. /**
  56255. * Indicates whether the generated statistics are for a binning or clustering visualization.
  56256. *
  56257. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-uniqueValues.html#uniqueValues)
  56258. */
  56259. forBinning?: boolean;
  56260. /**
  56261. * Allows for cancelable requests.
  56262. *
  56263. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-uniqueValues.html#uniqueValues)
  56264. */
  56265. signal?: AbortSignal;
  56266. }
  56267. export interface UniqueValuesResultUniqueValueInfos {
  56268. /**
  56269. * A unique value representing a type or category of features in the layer.
  56270. *
  56271. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-uniqueValues.html#UniqueValuesResult)
  56272. */
  56273. value: string | number;
  56274. /**
  56275. * The number of features assigned the given `value` (or belonging to the given category).
  56276. *
  56277. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-uniqueValues.html#UniqueValuesResult)
  56278. */
  56279. count: number;
  56280. }
  56281. /**
  56282. * Object containing helper methods for generating optimal symbols for data-driven color visualizations.
  56283. *
  56284. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html)
  56285. */
  56286. interface symbologyColor {
  56287. /**
  56288. * Clones a color scheme object.
  56289. *
  56290. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#cloneScheme)
  56291. */
  56292. cloneScheme(scheme: ColorScheme): ColorScheme;
  56293. /**
  56294. * Flips the colors in reverse order of the input color scheme.
  56295. *
  56296. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#flipColors)
  56297. */
  56298. flipColors(scheme: ColorScheme): ColorScheme;
  56299. /**
  56300. * Returns all schemes matching the given color ramp.
  56301. *
  56302. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#getMatchingSchemes)
  56303. */
  56304. getMatchingSchemes(params: colorGetMatchingSchemesParams): ColorScheme[];
  56305. /**
  56306. * Returns a color scheme with the provided name.
  56307. *
  56308. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#getSchemeByName)
  56309. */
  56310. getSchemeByName(params: colorGetSchemeByNameParams): ColorScheme;
  56311. /**
  56312. * Returns a primary scheme and secondary schemes defining symbol properties for data-driven color visualizations in a [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
  56313. *
  56314. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#getSchemes)
  56315. */
  56316. getSchemes(params: colorGetSchemesParams): ColorSchemes;
  56317. /**
  56318. * Returns an array of color schemes with the provided tags.
  56319. *
  56320. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#getSchemesByTag)
  56321. */
  56322. getSchemesByTag(params: colorGetSchemesByTagParams): ColorScheme[];
  56323. /**
  56324. * Returns metadata for the available themes.
  56325. *
  56326. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#getThemes)
  56327. */
  56328. getThemes(basemap?: string | Basemap): Theme[];
  56329. }
  56330. export const symbologyColor: symbologyColor;
  56331. export interface colorGetMatchingSchemesParams {
  56332. /**
  56333. * The name of the theme from which to get color schemes.
  56334. *
  56335. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#getMatchingSchemes)
  56336. */
  56337. theme: "high-to-low" | "above-and-below" | "centered-on" | "extremes";
  56338. /**
  56339. * An array of colors used to match with schemes for the given theme.
  56340. *
  56341. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#getMatchingSchemes)
  56342. */
  56343. colors: Color[];
  56344. /**
  56345. * The geometry type of the layer for which the color scheme will be applied.
  56346. *
  56347. * [Read more...](global.html#geometryType)
  56348. */
  56349. geometryType: string;
  56350. /**
  56351. * Indicates whether 3D volumetric symbols will be used in the visualization.
  56352. *
  56353. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#getMatchingSchemes)
  56354. */
  56355. worldScale?: boolean;
  56356. /**
  56357. * The [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) instance used to calculate the suggested sizes of the symbols.
  56358. *
  56359. * [Read more...](global.html)
  56360. */
  56361. view?: SceneView;
  56362. }
  56363. export interface colorGetSchemeByNameParams {
  56364. /**
  56365. * The name of the scheme to retrieve.
  56366. *
  56367. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#getSchemeByName)
  56368. */
  56369. name: string;
  56370. /**
  56371. * The basemap to pair with the visualization.
  56372. *
  56373. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#getSchemeByName)
  56374. */
  56375. basemap?: string | Basemap;
  56376. /**
  56377. * If you have a non-Esri basemap (e.g.
  56378. *
  56379. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#getSchemeByName)
  56380. */
  56381. basemapTheme?: "light" | "dark";
  56382. /**
  56383. * The geometry type of the features to visualize.
  56384. *
  56385. * [Read more...](global.html#geometryType)
  56386. */
  56387. geometryType: "point" | "multipoint" | "polyline" | "polygon" | "mesh" | "multipatch";
  56388. /**
  56389. * The theme determines which values will be emphasized in the continuous ramp and the map.
  56390. *
  56391. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#getSchemeByName)
  56392. */
  56393. theme: "high-to-low" | "above-and-below" | "centered-on" | "extremes";
  56394. /**
  56395. * The SceneView instance in which the scheme will be used.
  56396. *
  56397. * [Read more...](global.html)
  56398. */
  56399. view?: SceneView;
  56400. /**
  56401. * Indicates if the size units of the scheme will be in meters.
  56402. *
  56403. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#getSchemeByName)
  56404. */
  56405. worldScale?: boolean;
  56406. }
  56407. export interface colorGetSchemesByTagParams {
  56408. /**
  56409. * When provided, only schemes containing all the matching tags will be returned.
  56410. *
  56411. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#getSchemesByTag)
  56412. */
  56413. includedTags?: string[];
  56414. /**
  56415. * When provided, only schemes missing all the provided tags will be returned.
  56416. *
  56417. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#getSchemesByTag)
  56418. */
  56419. excludedTags?: string[];
  56420. /**
  56421. * The basemap to pair with the visualization.
  56422. *
  56423. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#getSchemesByTag)
  56424. */
  56425. basemap?: string | Basemap;
  56426. /**
  56427. * If you have a non-Esri basemap (e.g.
  56428. *
  56429. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#getSchemesByTag)
  56430. */
  56431. basemapTheme?: "light" | "dark";
  56432. /**
  56433. * The geometry type of the features to visualize.
  56434. *
  56435. * [Read more...](global.html#geometryType)
  56436. */
  56437. geometryType: "point" | "multipoint" | "polyline" | "polygon" | "mesh" | "multipatch";
  56438. /**
  56439. * The theme determines which values will be emphasized in the continuous ramp and the map.
  56440. *
  56441. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#getSchemesByTag)
  56442. */
  56443. theme: "high-to-low" | "above-and-below" | "centered-on" | "extremes";
  56444. /**
  56445. * The SceneView instance in which the scheme will be used.
  56446. *
  56447. * [Read more...](global.html)
  56448. */
  56449. view?: SceneView;
  56450. /**
  56451. * Indicates if the size units of the scheme will be in meters.
  56452. *
  56453. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#getSchemesByTag)
  56454. */
  56455. worldScale?: boolean;
  56456. }
  56457. export interface colorGetSchemesParams {
  56458. /**
  56459. * The Esri basemap to pair with the visualization.
  56460. *
  56461. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#getSchemes)
  56462. */
  56463. basemap?: string | Basemap;
  56464. /**
  56465. * If you have a non-Esri basemap (e.g.
  56466. *
  56467. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#getSchemes)
  56468. */
  56469. basemapTheme?: "light" | "dark";
  56470. /**
  56471. * The geometry type of the features to visualize.
  56472. *
  56473. * [Read more...](global.html#geometryType)
  56474. */
  56475. geometryType: "point" | "multipoint" | "polyline" | "polygon" | "mesh" | "multipatch";
  56476. /**
  56477. * The theme determines which values will be emphasized in the continuous ramp and the map.
  56478. *
  56479. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#getSchemes)
  56480. */
  56481. theme: "high-to-low" | "above-and-below" | "centered-on" | "extremes";
  56482. /**
  56483. * The SceneView instance in which the scheme will be used.
  56484. *
  56485. * [Read more...](global.html)
  56486. */
  56487. view?: SceneView;
  56488. /**
  56489. * Indicates if the size units of the scheme will be in meters.
  56490. *
  56491. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#getSchemes)
  56492. */
  56493. worldScale?: boolean;
  56494. }
  56495. /**
  56496. * Properties defining the symbology scheme used to visualize features with attribute data-driven color.
  56497. *
  56498. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorScheme)
  56499. */
  56500. export type ColorScheme = ColorSchemeForPoint | ColorSchemeForPolyline | ColorSchemeForPolygon | ColorSchemeForMesh;
  56501. /**
  56502. * Properties defining the symbology scheme used to visualize mesh features with attribute data-driven color.
  56503. *
  56504. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForMesh)
  56505. */
  56506. export interface ColorSchemeForMesh {
  56507. /**
  56508. * The unique name of the scheme.
  56509. *
  56510. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForMesh)
  56511. */
  56512. name: string;
  56513. /**
  56514. * Tags associated with the scheme.
  56515. *
  56516. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForMesh)
  56517. */
  56518. tags: string[];
  56519. /**
  56520. * The unique id of the color scheme to use in the visualization.
  56521. *
  56522. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForMesh)
  56523. */
  56524. id: string;
  56525. /**
  56526. * Indicates which values will be emphasized in the continuous ramp and the map.
  56527. *
  56528. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForMesh)
  56529. */
  56530. theme: string;
  56531. /**
  56532. * The continuous color ramp that will be applied to the visualization.
  56533. *
  56534. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForMesh)
  56535. */
  56536. colors: Color[];
  56537. /**
  56538. * The color of the symbol used to indicate features with no data and features that are out of range.
  56539. *
  56540. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForMesh)
  56541. */
  56542. noDataColor: Color;
  56543. /**
  56544. * Predefined classed color schemes to use for the visualization.
  56545. *
  56546. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForMesh)
  56547. */
  56548. colorsForClassBreaks: ColorSchemeForMeshColorsForClassBreaks[];
  56549. /**
  56550. * The opacity of the symbol.
  56551. *
  56552. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForMesh)
  56553. */
  56554. opacity: number;
  56555. }
  56556. /**
  56557. * Properties defining the symbology scheme used to visualize point features with attribute data-driven color.
  56558. *
  56559. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPoint)
  56560. */
  56561. export interface ColorSchemeForPoint {
  56562. /**
  56563. * The unique name of the scheme.
  56564. *
  56565. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPoint)
  56566. */
  56567. name: string;
  56568. /**
  56569. * Tags associated with the scheme.
  56570. *
  56571. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPoint)
  56572. */
  56573. tags: string[];
  56574. /**
  56575. * The unique id of the color scheme to use in the visualization.
  56576. *
  56577. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPoint)
  56578. */
  56579. id: string;
  56580. /**
  56581. * Indicates which values will be emphasized in the continuous ramp and the map.
  56582. *
  56583. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPoint)
  56584. */
  56585. theme: string;
  56586. /**
  56587. * The continuous color ramp that will be applied to the visualization.
  56588. *
  56589. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPoint)
  56590. */
  56591. colors: Color[];
  56592. /**
  56593. * The color of the symbol used to indicate features with no data and features that are out of range.
  56594. *
  56595. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPoint)
  56596. */
  56597. noDataColor: Color;
  56598. /**
  56599. * Predefined classed color schemes to use for the visualization.
  56600. *
  56601. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPoint)
  56602. */
  56603. colorsForClassBreaks: ColorSchemeForPointColorsForClassBreaks[];
  56604. /**
  56605. * Properties for defining the outline of the symbol.
  56606. *
  56607. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPoint)
  56608. */
  56609. outline: ColorSchemeForPointOutline;
  56610. /**
  56611. * The default size of the symbol in pixels or points.
  56612. *
  56613. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPoint)
  56614. */
  56615. size: number;
  56616. /**
  56617. * The opacity of the symbol.
  56618. *
  56619. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPoint)
  56620. */
  56621. opacity: number;
  56622. }
  56623. /**
  56624. * Properties defining the symbology scheme used to visualize polygon features with attribute data-driven color.
  56625. *
  56626. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPolygon)
  56627. */
  56628. export interface ColorSchemeForPolygon {
  56629. /**
  56630. * The unique name of the scheme.
  56631. *
  56632. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPolygon)
  56633. */
  56634. name: string;
  56635. /**
  56636. * Tags associated with the scheme.
  56637. *
  56638. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPolygon)
  56639. */
  56640. tags: string[];
  56641. /**
  56642. * The unique id of the color scheme to use in the visualization.
  56643. *
  56644. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPolygon)
  56645. */
  56646. id: string;
  56647. /**
  56648. * Indicates which values will be emphasized in the continuous ramp and the map.
  56649. *
  56650. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPolygon)
  56651. */
  56652. theme: string;
  56653. /**
  56654. * The continuous color ramp that will be applied to the visualization.
  56655. *
  56656. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPolygon)
  56657. */
  56658. colors: Color[];
  56659. /**
  56660. * The color of the symbol used to indicate features with no data and features that are out of range.
  56661. *
  56662. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPolygon)
  56663. */
  56664. noDataColor: Color;
  56665. /**
  56666. * Predefined classed color schemes to use for the visualization.
  56667. *
  56668. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPolygon)
  56669. */
  56670. colorsForClassBreaks: ColorSchemeForPolygonColorsForClassBreaks[];
  56671. /**
  56672. * Properties for defining the outline of the symbol.
  56673. *
  56674. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPolygon)
  56675. */
  56676. outline: ColorSchemeForPolygonOutline;
  56677. /**
  56678. * The opacity of the symbol.
  56679. *
  56680. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPolygon)
  56681. */
  56682. opacity: number;
  56683. }
  56684. /**
  56685. * Properties defining the symbology scheme used to visualize polyline features with attribute data-driven color.
  56686. *
  56687. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPolyline)
  56688. */
  56689. export interface ColorSchemeForPolyline {
  56690. /**
  56691. * The unique name of the scheme.
  56692. *
  56693. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPolyline)
  56694. */
  56695. name: string;
  56696. /**
  56697. * Tags associated with the scheme.
  56698. *
  56699. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPolyline)
  56700. */
  56701. tags: string[];
  56702. /**
  56703. * The unique id of the color scheme to use in the visualization.
  56704. *
  56705. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPolyline)
  56706. */
  56707. id: string;
  56708. /**
  56709. * Indicates which values will be emphasized in the continuous ramp and the map.
  56710. *
  56711. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPolyline)
  56712. */
  56713. theme: string;
  56714. /**
  56715. * The continuous color ramp that will be applied to the visualization.
  56716. *
  56717. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPolyline)
  56718. */
  56719. colors: Color[];
  56720. /**
  56721. * The color of the symbol used to indicate features with no data and features that are out of range.
  56722. *
  56723. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPolyline)
  56724. */
  56725. noDataColor: Color;
  56726. /**
  56727. * Predefined classed color schemes to use for the visualization.
  56728. *
  56729. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPolyline)
  56730. */
  56731. colorsForClassBreaks: ColorSchemeForPolylineColorsForClassBreaks[];
  56732. /**
  56733. * The default width of the symbol in pixels or points.
  56734. *
  56735. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPolyline)
  56736. */
  56737. width: number;
  56738. /**
  56739. * The opacity of the symbol.
  56740. *
  56741. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPolyline)
  56742. */
  56743. opacity: number;
  56744. }
  56745. /**
  56746. * The return object of the [getSchemes()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#getSchemes) method.
  56747. *
  56748. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemes)
  56749. */
  56750. export interface ColorSchemes {
  56751. /**
  56752. * The color scheme best suited for the given basemap and geometry type.
  56753. *
  56754. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemes)
  56755. */
  56756. primaryScheme: ColorScheme;
  56757. /**
  56758. * Additional color schemes that may be used to visualize data of the given geometry type overlaid on the given basemap.
  56759. *
  56760. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemes)
  56761. */
  56762. secondarySchemes: ColorScheme[];
  56763. /**
  56764. * The ID of the basemap associated with the given schemes.
  56765. *
  56766. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemes)
  56767. */
  56768. basemapId: string;
  56769. /**
  56770. * Indicates whether the average basemap color is `light` or `dark`.
  56771. *
  56772. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemes)
  56773. */
  56774. basemapTheme: string;
  56775. }
  56776. /**
  56777. * Describes a theme that pairs well with the given basemaps.
  56778. *
  56779. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#Theme)
  56780. */
  56781. export interface Theme {
  56782. /**
  56783. * The name of the theme.
  56784. *
  56785. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#Theme)
  56786. */
  56787. name: string;
  56788. /**
  56789. * The label identifying the theme in UI elements.
  56790. *
  56791. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#Theme)
  56792. */
  56793. label: string;
  56794. /**
  56795. * Text describing the theme in the UI.
  56796. *
  56797. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#Theme)
  56798. */
  56799. description: string;
  56800. /**
  56801. * The Esri basemaps that pair well with the given theme.
  56802. *
  56803. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#Theme)
  56804. */
  56805. basemaps: string[];
  56806. }
  56807. export interface ColorSchemeForMeshColorsForClassBreaks {
  56808. /**
  56809. * An array of hex color strings.
  56810. *
  56811. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForMesh)
  56812. */
  56813. colors: Color[];
  56814. /**
  56815. * The number of classes used in the classed color visualization.
  56816. *
  56817. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForMesh)
  56818. */
  56819. numClasses: number;
  56820. }
  56821. export interface ColorSchemeForPointColorsForClassBreaks {
  56822. /**
  56823. * An array of hex color strings.
  56824. *
  56825. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPoint)
  56826. */
  56827. colors: Color[];
  56828. /**
  56829. * The number of classes used in the classed color visualization.
  56830. *
  56831. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPoint)
  56832. */
  56833. numClasses: number;
  56834. }
  56835. export interface ColorSchemeForPointOutline {
  56836. /**
  56837. * The outline color of the symbol.
  56838. *
  56839. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPoint)
  56840. */
  56841. color: Color;
  56842. /**
  56843. * The width of the symbol in pixels or points.
  56844. *
  56845. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPoint)
  56846. */
  56847. width: number;
  56848. }
  56849. export interface ColorSchemeForPolygonColorsForClassBreaks {
  56850. /**
  56851. * An array of hex color strings.
  56852. *
  56853. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPolygon)
  56854. */
  56855. colors: Color[];
  56856. /**
  56857. * The number of classes used in the classed color visualization.
  56858. *
  56859. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPolygon)
  56860. */
  56861. numClasses: number;
  56862. }
  56863. export interface ColorSchemeForPolygonOutline {
  56864. /**
  56865. * The outline color of the symbol.
  56866. *
  56867. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPolygon)
  56868. */
  56869. color: Color;
  56870. /**
  56871. * The width of the symbol in pixels or points.
  56872. *
  56873. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPolygon)
  56874. */
  56875. width: number;
  56876. }
  56877. export interface ColorSchemeForPolylineColorsForClassBreaks {
  56878. /**
  56879. * An array of hex color strings.
  56880. *
  56881. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPolyline)
  56882. */
  56883. colors: Color[];
  56884. /**
  56885. * The number of classes used in the classed color visualization.
  56886. *
  56887. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html#ColorSchemeForPolyline)
  56888. */
  56889. numClasses: number;
  56890. }
  56891. /**
  56892. * Object containing helper methods for getting optimal symbol schemes used to create [dot density visualizations](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-dotDensity.html).
  56893. *
  56894. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html)
  56895. */
  56896. interface symbologyDotDensity {
  56897. /**
  56898. * Clones a dot density scheme object.
  56899. *
  56900. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#cloneScheme)
  56901. */
  56902. cloneScheme(scheme: DotDensityScheme): DotDensityScheme;
  56903. /**
  56904. * Returns a dot density scheme with the provided name.
  56905. *
  56906. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#getSchemeByName)
  56907. */
  56908. getSchemeByName(params: dotDensityGetSchemeByNameParams): DotDensityScheme;
  56909. /**
  56910. * Returns a primary scheme and secondary schemes defining symbol properties for dot density-based data-driven visualizations in a [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html).
  56911. *
  56912. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#getSchemes)
  56913. */
  56914. getSchemes(params: dotDensityGetSchemesParams): DotDensitySchemes;
  56915. /**
  56916. * Returns an array of dot density schemes with the provided tags.
  56917. *
  56918. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#getSchemesByTag)
  56919. */
  56920. getSchemesByTag(params: dotDensityGetSchemesByTagParams): DotDensityScheme[];
  56921. }
  56922. export const symbologyDotDensity: symbologyDotDensity;
  56923. export interface dotDensityGetSchemeByNameParams {
  56924. /**
  56925. * The name of the scheme to retrieve.
  56926. *
  56927. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#getSchemeByName)
  56928. */
  56929. name: string;
  56930. /**
  56931. * The basemap to pair with the visualization.
  56932. *
  56933. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#getSchemeByName)
  56934. */
  56935. basemap?: string | Basemap;
  56936. /**
  56937. * If you have a non-Esri basemap (e.g.
  56938. *
  56939. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#getSchemeByName)
  56940. */
  56941. basemapTheme?: "light" | "dark";
  56942. /**
  56943. * The number of colors to visualize.
  56944. *
  56945. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#getSchemeByName)
  56946. */
  56947. numColors: number;
  56948. }
  56949. export interface dotDensityGetSchemesByTagParams {
  56950. /**
  56951. * When provided, only schemes containing all the matching tags will be returned.
  56952. *
  56953. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#getSchemesByTag)
  56954. */
  56955. includedTags?: string[];
  56956. /**
  56957. * When provided, only schemes missing all the provided tags will be returned.
  56958. *
  56959. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#getSchemesByTag)
  56960. */
  56961. excludedTags?: string[];
  56962. /**
  56963. * The basemap to pair with the visualization.
  56964. *
  56965. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#getSchemesByTag)
  56966. */
  56967. basemap?: string | Basemap;
  56968. /**
  56969. * If you have a non-Esri basemap (e.g.
  56970. *
  56971. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#getSchemesByTag)
  56972. */
  56973. basemapTheme?: "light" | "dark";
  56974. /**
  56975. * The number of colors to visualize.
  56976. *
  56977. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#getSchemesByTag)
  56978. */
  56979. numColors: number;
  56980. }
  56981. export interface dotDensityGetSchemesParams {
  56982. /**
  56983. * The Esri basemap to pair with the visualization.
  56984. *
  56985. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#getSchemes)
  56986. */
  56987. basemap?: string | Basemap;
  56988. /**
  56989. * If you have a non-Esri basemap (e.g.
  56990. *
  56991. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#getSchemes)
  56992. */
  56993. basemapTheme?: "light" | "dark";
  56994. /**
  56995. * The number of colors to visualize.
  56996. *
  56997. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#getSchemes)
  56998. */
  56999. numColors: number;
  57000. }
  57001. /**
  57002. * Properties defining the symbology scheme used to visualize predominance for polygon features.
  57003. *
  57004. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#DotDensityScheme)
  57005. */
  57006. export interface DotDensityScheme {
  57007. /**
  57008. * The unique name of the scheme.
  57009. *
  57010. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#DotDensityScheme)
  57011. */
  57012. name: string;
  57013. /**
  57014. * Tags associated with the scheme.
  57015. *
  57016. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#DotDensityScheme)
  57017. */
  57018. tags: string[];
  57019. /**
  57020. * The dot color for each attribute.
  57021. *
  57022. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#DotDensityScheme)
  57023. */
  57024. colors: Color[];
  57025. /**
  57026. * Properties for defining the outline of the symbol.
  57027. *
  57028. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#DotDensityScheme)
  57029. */
  57030. outline: DotDensitySchemeOutline;
  57031. /**
  57032. * The opacity of the symbol (0 - 1).
  57033. *
  57034. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#DotDensityScheme)
  57035. */
  57036. opacity: number;
  57037. }
  57038. /**
  57039. * The return object of the [getSchemes()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#getSchemes) method.
  57040. *
  57041. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#DotDensitySchemes)
  57042. */
  57043. export interface DotDensitySchemes {
  57044. /**
  57045. * The dot density scheme best suited for the given basemap and geometry type.
  57046. *
  57047. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#DotDensitySchemes)
  57048. */
  57049. primaryScheme: DotDensityScheme;
  57050. /**
  57051. * Additional dot density schemes that may be used to visualize data of the given geometry type overlaid on the given basemap.
  57052. *
  57053. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#DotDensitySchemes)
  57054. */
  57055. secondarySchemes: DotDensityScheme[];
  57056. /**
  57057. * The ID of the basemap associated with the given schemes.
  57058. *
  57059. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#DotDensitySchemes)
  57060. */
  57061. basemapId: string;
  57062. /**
  57063. * Indicates whether the average basemap color is `light` or `dark`.
  57064. *
  57065. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#DotDensitySchemes)
  57066. */
  57067. basemapTheme: string;
  57068. }
  57069. export interface DotDensitySchemeOutline {
  57070. /**
  57071. * The outline color of the symbol.
  57072. *
  57073. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#DotDensityScheme)
  57074. */
  57075. color: Color;
  57076. /**
  57077. * The width of the symbol's outline in points.
  57078. *
  57079. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-dotDensity.html#DotDensityScheme)
  57080. */
  57081. width: number;
  57082. }
  57083. /**
  57084. * Object containing helper methods for generating optimal settings for [FlowRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html).
  57085. *
  57086. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html)
  57087. */
  57088. interface symbologyFlow {
  57089. /**
  57090. * Clones a flow scheme object.
  57091. *
  57092. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#cloneScheme)
  57093. */
  57094. cloneScheme(scheme: FlowScheme): FlowScheme;
  57095. /**
  57096. * Returns the flow scheme with the given name.
  57097. *
  57098. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#getSchemeByName)
  57099. */
  57100. getSchemeByName(params: flowGetSchemeByNameParams): FlowScheme;
  57101. /**
  57102. * Returns a primary scheme and secondary schemes defining properties for flow visualizations in a [ImageryLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html) and [ImageryTileLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html).
  57103. *
  57104. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#getSchemes)
  57105. */
  57106. getSchemes(params: flowGetSchemesParams): FlowSchemes;
  57107. /**
  57108. * Returns the flow schemes filtered by tags included and excluded from the paramters.
  57109. *
  57110. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#getSchemesByTag)
  57111. */
  57112. getSchemesByTag(params: flowGetSchemesByTagParams): FlowScheme[];
  57113. /**
  57114. * Returns metadata for the available themes.
  57115. *
  57116. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#getThemes)
  57117. */
  57118. getThemes(basemap?: string | Basemap): flowTheme[];
  57119. }
  57120. export const symbologyFlow: symbologyFlow;
  57121. export interface flowGetSchemeByNameParams {
  57122. /**
  57123. * The name of the desired scheme.
  57124. *
  57125. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#getSchemeByName)
  57126. */
  57127. name: string;
  57128. /**
  57129. * Determines how flow lines will render.
  57130. *
  57131. * @default "flow-line"
  57132. *
  57133. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#getSchemeByName)
  57134. */
  57135. theme?: "flow-line" | "wave-front";
  57136. /**
  57137. * The Esri basemap to pair with the visualization.
  57138. *
  57139. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#getSchemeByName)
  57140. */
  57141. basemap?: string | Basemap;
  57142. /**
  57143. * If you have a non-Esri basemap (e.g.
  57144. *
  57145. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#getSchemeByName)
  57146. */
  57147. basemapTheme?: "light" | "dark";
  57148. }
  57149. export interface flowGetSchemesByTagParams {
  57150. /**
  57151. * When provided, only schemes containing all the matching tags will be returned.
  57152. *
  57153. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#getSchemesByTag)
  57154. */
  57155. includedTags?: string[];
  57156. /**
  57157. * When provided, only schemes excluding all the provided tags will be returned.
  57158. *
  57159. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#getSchemesByTag)
  57160. */
  57161. excludedTags?: string[];
  57162. /**
  57163. * Determines how flow lines will render.
  57164. *
  57165. * @default "flow-line"
  57166. *
  57167. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#getSchemesByTag)
  57168. */
  57169. theme?: "flow-line" | "wave-front";
  57170. /**
  57171. * The Esri basemap to pair with the visualization.
  57172. *
  57173. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#getSchemesByTag)
  57174. */
  57175. basemap?: string | Basemap;
  57176. /**
  57177. * If you have a non-Esri basemap (e.g.
  57178. *
  57179. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#getSchemesByTag)
  57180. */
  57181. basemapTheme?: "light" | "dark";
  57182. }
  57183. export interface flowGetSchemesParams {
  57184. /**
  57185. * Determines how flow lines will render.
  57186. *
  57187. * @default "flow-line"
  57188. *
  57189. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#getSchemes)
  57190. */
  57191. theme?: "flow-line" | "wave-front";
  57192. /**
  57193. * The Esri basemap to pair with the visualization.
  57194. *
  57195. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#getSchemes)
  57196. */
  57197. basemap?: string | Basemap;
  57198. /**
  57199. * If you have a non-Esri basemap (e.g.
  57200. *
  57201. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#getSchemes)
  57202. */
  57203. basemapTheme?: "light" | "dark";
  57204. }
  57205. /**
  57206. * Suggested property values for defining the scheme used to visualize flow lines.
  57207. *
  57208. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#FlowScheme)
  57209. */
  57210. export interface FlowScheme {
  57211. /**
  57212. * The unique name of the scheme.
  57213. *
  57214. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#FlowScheme)
  57215. */
  57216. name: string;
  57217. /**
  57218. * Tags associated with the scheme.
  57219. *
  57220. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#FlowScheme)
  57221. */
  57222. tags: string[];
  57223. /**
  57224. * The unique id of the color scheme to use in the visualization.
  57225. *
  57226. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#FlowScheme)
  57227. */
  57228. id: string;
  57229. /**
  57230. * Determines how flow lines will render.
  57231. *
  57232. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#FlowScheme)
  57233. */
  57234. theme: "flow-line" | "wave-front";
  57235. /**
  57236. * The suggested color of the flow lines if a color visual variable is not desired.
  57237. *
  57238. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#FlowScheme)
  57239. */
  57240. color: Color;
  57241. /**
  57242. * The suggested colors to use if a [ColorVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html) is set on the flow renderer.
  57243. *
  57244. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#FlowScheme)
  57245. */
  57246. colors: Color[];
  57247. /**
  57248. * The suggested [density](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#density) of the stream lines.
  57249. *
  57250. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#FlowScheme)
  57251. */
  57252. density: number;
  57253. /**
  57254. * The suggested [flowSpeed](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#flowSpeed) of the stream lines.
  57255. *
  57256. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#FlowScheme)
  57257. */
  57258. flowSpeed: number;
  57259. /**
  57260. * The suggested [length](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#trailLength) of the stream lines.
  57261. *
  57262. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#FlowScheme)
  57263. */
  57264. trailLength: number;
  57265. /**
  57266. * The suggested [width](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#trailWidth) of the stream lines.
  57267. *
  57268. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#FlowScheme)
  57269. */
  57270. trailWidth: number;
  57271. /**
  57272. * The suggested [cap style](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-FlowRenderer.html#trailCap) of the stream lines.
  57273. *
  57274. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#FlowScheme)
  57275. */
  57276. trailCap: number;
  57277. /**
  57278. * The suggested [effect](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryTileLayer.html#effect) to apply to the input layer.
  57279. *
  57280. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#FlowScheme)
  57281. */
  57282. layerEffect: string;
  57283. /**
  57284. * The suggested size to apply to small magnitude values if a [SizeVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html) is set on the flow renderer.
  57285. *
  57286. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#FlowScheme)
  57287. */
  57288. minWidth: number;
  57289. /**
  57290. * The suggested size to apply to large magnitude values if a [SizeVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html) is set on the flow renderer.
  57291. *
  57292. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#FlowScheme)
  57293. */
  57294. maxWidth: number;
  57295. /**
  57296. * The suggested opacity to apply to small magnitude values if an [OpacityVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-OpacityVariable.html) is set on the flow renderer.
  57297. *
  57298. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#FlowScheme)
  57299. */
  57300. minOpacity: number;
  57301. /**
  57302. * The suggested opacity to apply to large magnitude values if an [OpacityVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-OpacityVariable.html) is set on the flow renderer.
  57303. *
  57304. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#FlowScheme)
  57305. */
  57306. maxOpacity: number;
  57307. }
  57308. /**
  57309. * The return object of the [getSchemes()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#getSchemes) method.
  57310. *
  57311. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#FlowSchemes)
  57312. */
  57313. export interface FlowSchemes {
  57314. /**
  57315. * The flow scheme best suited for the given basemap.
  57316. *
  57317. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#FlowSchemes)
  57318. */
  57319. primaryScheme: FlowScheme;
  57320. /**
  57321. * Additional flow schemes that may be used to visualize stream lines overlaid on the given basemap or basemap theme.
  57322. *
  57323. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#FlowSchemes)
  57324. */
  57325. secondarySchemes: FlowScheme[];
  57326. /**
  57327. * The ID of the basemap associated with the given schemes.
  57328. *
  57329. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#FlowSchemes)
  57330. */
  57331. basemapId: string;
  57332. /**
  57333. * Indicates whether the average basemap color is `light` or `dark`.
  57334. *
  57335. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#FlowSchemes)
  57336. */
  57337. basemapTheme: string;
  57338. }
  57339. /**
  57340. * Describes a theme that pairs well with the given basemaps.
  57341. *
  57342. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#Theme)
  57343. */
  57344. export interface flowTheme {
  57345. /**
  57346. * The name of the theme.
  57347. *
  57348. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#Theme)
  57349. */
  57350. name: string;
  57351. /**
  57352. * The label identifying the theme in UI elements.
  57353. *
  57354. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#Theme)
  57355. */
  57356. label: string;
  57357. /**
  57358. * Text describing the theme in the UI.
  57359. *
  57360. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#Theme)
  57361. */
  57362. description: string;
  57363. /**
  57364. * The Esri basemaps that pair well with the given theme.
  57365. *
  57366. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-flow.html#Theme)
  57367. */
  57368. basemaps: string[];
  57369. }
  57370. /**
  57371. * Object containing helper methods for generating optimal colors for heatmap visualizations.
  57372. *
  57373. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-heatmap.html)
  57374. */
  57375. interface symbologyHeatmap {
  57376. /**
  57377. * Clones a heatmap scheme object.
  57378. *
  57379. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-heatmap.html#cloneScheme)
  57380. */
  57381. cloneScheme(scheme: HeatmapScheme): HeatmapScheme;
  57382. /**
  57383. * Returns a heatmap scheme with the provided name.
  57384. *
  57385. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-heatmap.html#getSchemeByName)
  57386. */
  57387. getSchemeByName(params: heatmapGetSchemeByNameParams): HeatmapScheme;
  57388. /**
  57389. * Returns a primary scheme and secondary schemes defining properties for heatmap visualizations in a point [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html).
  57390. *
  57391. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-heatmap.html#getSchemes)
  57392. */
  57393. getSchemes(params: heatmapGetSchemesParams): HeatmapSchemes;
  57394. /**
  57395. * Returns an array of heatmap schemes with the provided tags.
  57396. *
  57397. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-heatmap.html#getSchemesByTag)
  57398. */
  57399. getSchemesByTag(params: heatmapGetSchemesByTagParams): HeatmapScheme[];
  57400. /**
  57401. * Returns metadata for the available themes.
  57402. *
  57403. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-heatmap.html#getThemes)
  57404. */
  57405. getThemes(basemap?: string | Basemap): Theme[];
  57406. }
  57407. export const symbologyHeatmap: symbologyHeatmap;
  57408. export interface heatmapGetSchemeByNameParams {
  57409. /**
  57410. * The name of the scheme to retrieve.
  57411. *
  57412. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-heatmap.html#getSchemeByName)
  57413. */
  57414. name: string;
  57415. /**
  57416. * The basemap to pair with the visualization.
  57417. *
  57418. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-heatmap.html#getSchemeByName)
  57419. */
  57420. basemap?: string | Basemap;
  57421. /**
  57422. * If you have a non-Esri basemap (e.g.
  57423. *
  57424. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-heatmap.html#getSchemeByName)
  57425. */
  57426. basemapTheme?: "light" | "dark";
  57427. }
  57428. export interface heatmapGetSchemesByTagParams {
  57429. /**
  57430. * When provided, only schemes containing all the matching tags will be returned.
  57431. *
  57432. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-heatmap.html#getSchemesByTag)
  57433. */
  57434. includedTags?: string[];
  57435. /**
  57436. * When provided, only schemes missing all the provided tags will be returned.
  57437. *
  57438. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-heatmap.html#getSchemesByTag)
  57439. */
  57440. excludedTags?: string[];
  57441. /**
  57442. * The basemap to pair with the visualization.
  57443. *
  57444. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-heatmap.html#getSchemesByTag)
  57445. */
  57446. basemap?: string | Basemap;
  57447. /**
  57448. * If you have a non-Esri basemap (e.g.
  57449. *
  57450. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-heatmap.html#getSchemesByTag)
  57451. */
  57452. basemapTheme?: "light" | "dark";
  57453. }
  57454. export interface heatmapGetSchemesParams {
  57455. /**
  57456. * The Esri basemap to pair with the visualization.
  57457. *
  57458. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-heatmap.html#getSchemes)
  57459. */
  57460. basemap?: string | Basemap;
  57461. /**
  57462. * If you have a non-Esri basemap (e.g.
  57463. *
  57464. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-heatmap.html#getSchemes)
  57465. */
  57466. basemapTheme?: "light" | "dark";
  57467. }
  57468. /**
  57469. * Properties defining the symbology scheme used to visualize point features as a heatmap.
  57470. *
  57471. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-heatmap.html#HeatmapScheme)
  57472. */
  57473. export interface HeatmapScheme {
  57474. /**
  57475. * The unique name of the scheme.
  57476. *
  57477. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-heatmap.html#HeatmapScheme)
  57478. */
  57479. name: string;
  57480. /**
  57481. * Tags associated with the scheme.
  57482. *
  57483. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-heatmap.html#HeatmapScheme)
  57484. */
  57485. tags: string[];
  57486. /**
  57487. * The unique id of the color scheme to usee in the visualization.
  57488. *
  57489. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-heatmap.html#HeatmapScheme)
  57490. */
  57491. id: string;
  57492. /**
  57493. * A continuous color ramp used to construct a heatmap.
  57494. *
  57495. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-heatmap.html#HeatmapScheme)
  57496. */
  57497. colors: Color[];
  57498. /**
  57499. * The opacity of the heatmap.
  57500. *
  57501. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-heatmap.html#HeatmapScheme)
  57502. */
  57503. opacity: number;
  57504. }
  57505. /**
  57506. * The return object of the [getSchemes()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-heatmap.html#getSchemes) method.
  57507. *
  57508. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-heatmap.html#HeatmapSchemes)
  57509. */
  57510. export interface HeatmapSchemes {
  57511. /**
  57512. * The heatmap color scheme best suited for the given basemap and geometry type.
  57513. *
  57514. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-heatmap.html#HeatmapSchemes)
  57515. */
  57516. primaryScheme: HeatmapScheme;
  57517. /**
  57518. * Additional heatmap color schemes that may be used to visualize data overlaid on the given basemap.
  57519. *
  57520. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-heatmap.html#HeatmapSchemes)
  57521. */
  57522. secondarySchemes: HeatmapScheme[];
  57523. /**
  57524. * The ID of the basemap associated with the given schemes.
  57525. *
  57526. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-heatmap.html#HeatmapSchemes)
  57527. */
  57528. basemapId: string;
  57529. /**
  57530. * Indicates whether the average basemap color is `light` or `dark`.
  57531. *
  57532. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-heatmap.html#HeatmapSchemes)
  57533. */
  57534. basemapTheme: string;
  57535. }
  57536. /**
  57537. * Object containing helper methods for generating optimal symbols for location-only visualizations.
  57538. *
  57539. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html)
  57540. */
  57541. interface symbologyLocation {
  57542. /**
  57543. * Clones a location scheme object.
  57544. *
  57545. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#cloneScheme)
  57546. */
  57547. cloneScheme(scheme: LocationScheme): LocationScheme;
  57548. /**
  57549. * Returns a primary scheme and secondary schemes defining symbol properties for location-only visualizions in a [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) or [SceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html).
  57550. *
  57551. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#getSchemes)
  57552. */
  57553. getSchemes(params: locationGetSchemesParams): LocationSchemes;
  57554. /**
  57555. * Returns metadata for the available themes.
  57556. *
  57557. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#getThemes)
  57558. */
  57559. getThemes(basemap?: string | Basemap): Theme[];
  57560. }
  57561. export const symbologyLocation: symbologyLocation;
  57562. export interface locationGetSchemesParams {
  57563. /**
  57564. * The Esri basemap to pair with the visualization.
  57565. *
  57566. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#getSchemes)
  57567. */
  57568. basemap?: string | Basemap;
  57569. /**
  57570. * If you have a non-Esri basemap (e.g.
  57571. *
  57572. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#getSchemes)
  57573. */
  57574. basemapTheme?: "light" | "dark";
  57575. /**
  57576. * The geometry type of the features to visualize.
  57577. *
  57578. * [Read more...](global.html#geometryType)
  57579. */
  57580. geometryType: "point" | "multipoint" | "polyline" | "polygon" | "mesh" | "multipatch";
  57581. /**
  57582. * The SceneView instance in which the scheme will be used.
  57583. *
  57584. * [Read more...](global.html)
  57585. */
  57586. view?: SceneView;
  57587. /**
  57588. * Indicates if the size units of the scheme will be in meters.
  57589. *
  57590. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#getSchemes)
  57591. */
  57592. worldScale?: boolean;
  57593. }
  57594. /**
  57595. * Defines the symbology scheme used to visualize default location-based symbols depending on the layer's geometry type.
  57596. *
  57597. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#LocationScheme)
  57598. */
  57599. export type LocationScheme = | LocationSchemeForPoint
  57600. | LocationSchemeForPolyline
  57601. | LocationSchemeForPolygon
  57602. | LocationSchemeForMesh;
  57603. /**
  57604. * Properties defining the location-only symbology scheme used to visualize mesh features.
  57605. *
  57606. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#LocationSchemeForMesh)
  57607. */
  57608. export interface LocationSchemeForMesh {
  57609. /**
  57610. * The color of the fill symbol.
  57611. *
  57612. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#LocationSchemeForMesh)
  57613. */
  57614. color: Color;
  57615. /**
  57616. * The opacity of the fill symbol.
  57617. *
  57618. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#LocationSchemeForMesh)
  57619. */
  57620. opacity: number;
  57621. }
  57622. /**
  57623. * Properties defining the location-only symbology scheme used to visualize point features.
  57624. *
  57625. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#LocationSchemeForPoint)
  57626. */
  57627. export interface LocationSchemeForPoint {
  57628. /**
  57629. * The fill color of the marker symbol.
  57630. *
  57631. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#LocationSchemeForPoint)
  57632. */
  57633. color: Color;
  57634. /**
  57635. * Properties for defining the outline of the marker symbol.
  57636. *
  57637. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#LocationSchemeForPoint)
  57638. */
  57639. outline: LocationSchemeForPointOutline;
  57640. /**
  57641. * The size of the marker symbol in pixels or points.
  57642. *
  57643. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#LocationSchemeForPoint)
  57644. */
  57645. size: number;
  57646. /**
  57647. * The opacity of the marker symbol.
  57648. *
  57649. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#LocationSchemeForPoint)
  57650. */
  57651. opacity: number;
  57652. }
  57653. /**
  57654. * Properties defining the location-only symbology scheme used to visualize polygon features.
  57655. *
  57656. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#LocationSchemeForPolygon)
  57657. */
  57658. export interface LocationSchemeForPolygon {
  57659. /**
  57660. * The color of the fill symbol.
  57661. *
  57662. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#LocationSchemeForPolygon)
  57663. */
  57664. color: Color;
  57665. /**
  57666. * Properties for defining the outline of the fill symbol.
  57667. *
  57668. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#LocationSchemeForPolygon)
  57669. */
  57670. outline: LocationSchemeForPolygonOutline;
  57671. /**
  57672. * The opacity of the fill symbol.
  57673. *
  57674. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#LocationSchemeForPolygon)
  57675. */
  57676. opacity: number;
  57677. }
  57678. /**
  57679. * Properties defining the location-only symbology scheme used to visualize polyline features.
  57680. *
  57681. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#LocationSchemeForPolyline)
  57682. */
  57683. export interface LocationSchemeForPolyline {
  57684. /**
  57685. * The color of the line symbol.
  57686. *
  57687. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#LocationSchemeForPolyline)
  57688. */
  57689. color: Color;
  57690. /**
  57691. * The width of the line symbol in pixels or points.
  57692. *
  57693. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#LocationSchemeForPolyline)
  57694. */
  57695. width: number;
  57696. /**
  57697. * The opacity of the line symbol.
  57698. *
  57699. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#LocationSchemeForPolyline)
  57700. */
  57701. opacity: number;
  57702. }
  57703. /**
  57704. * The return object of the [getSchemes()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#getSchemes) method.
  57705. *
  57706. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#LocationSchemes)
  57707. */
  57708. export interface LocationSchemes {
  57709. /**
  57710. * The location scheme best suited for the given basemap and geometry type.
  57711. *
  57712. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#LocationSchemes)
  57713. */
  57714. primaryScheme: LocationScheme;
  57715. /**
  57716. * Additional location schemes that may be used to visualize data of the given geometry type overlaid on the given basemap.
  57717. *
  57718. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#LocationSchemes)
  57719. */
  57720. secondarySchemes: LocationScheme[];
  57721. /**
  57722. * The ID of the basemap associated with the given schemes.
  57723. *
  57724. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#LocationSchemes)
  57725. */
  57726. basemapId: string;
  57727. /**
  57728. * Indicates whether the average basemap color is `light` or `dark`.
  57729. *
  57730. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#LocationSchemes)
  57731. */
  57732. basemapTheme: string;
  57733. }
  57734. export interface LocationSchemeForPointOutline {
  57735. /**
  57736. * The outline color of the marker symbol.
  57737. *
  57738. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#LocationSchemeForPoint)
  57739. */
  57740. color: Color;
  57741. /**
  57742. * The width of the marker symbol in pixels or points.
  57743. *
  57744. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#LocationSchemeForPoint)
  57745. */
  57746. width: number;
  57747. }
  57748. export interface LocationSchemeForPolygonOutline {
  57749. /**
  57750. * The outline color of the fill symbol.
  57751. *
  57752. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#LocationSchemeForPolygon)
  57753. */
  57754. color: Color;
  57755. /**
  57756. * The width of the fill symbol in pixels or points.
  57757. *
  57758. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-location.html#LocationSchemeForPolygon)
  57759. */
  57760. width: number;
  57761. }
  57762. /**
  57763. * Object containing helper methods for getting optimal color schemes used to create [pie chart visualizations](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-pieChart.html).
  57764. *
  57765. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html)
  57766. */
  57767. interface symbologyPieChart {
  57768. /**
  57769. * Clones a pie chart scheme object.
  57770. *
  57771. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#cloneScheme)
  57772. */
  57773. cloneScheme(scheme: PieChartScheme): PieChartScheme;
  57774. /**
  57775. * Returns a pie chart scheme with the given name.
  57776. *
  57777. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#getSchemeByName)
  57778. */
  57779. getSchemeByName(params: pieChartGetSchemeByNameParams): PieChartScheme;
  57780. /**
  57781. * Returns a primary scheme and secondary schemes defining properties for pie chart visualizations.
  57782. *
  57783. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#getSchemes)
  57784. */
  57785. getSchemes(params: pieChartGetSchemesParams): PieChartSchemes;
  57786. /**
  57787. * Returns an array of pie chart schemes with the provided tags.
  57788. *
  57789. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#getSchemesByTag)
  57790. */
  57791. getSchemesByTag(params: pieChartGetSchemesByTagParams): PieChartScheme[];
  57792. /**
  57793. * Returns metadata for the available themes.
  57794. *
  57795. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#getThemes)
  57796. */
  57797. getThemes(basemap?: string | Basemap): Theme[];
  57798. }
  57799. export const symbologyPieChart: symbologyPieChart;
  57800. export interface pieChartGetSchemeByNameParams {
  57801. /**
  57802. * The name of the scheme to retrieve.
  57803. *
  57804. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#getSchemeByName)
  57805. */
  57806. name: string;
  57807. /**
  57808. * The basemap to pair with the visualization.
  57809. *
  57810. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#getSchemeByName)
  57811. */
  57812. basemap?: string | Basemap;
  57813. /**
  57814. * If you have a non-Esri basemap (e.g.
  57815. *
  57816. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#getSchemeByName)
  57817. */
  57818. basemapTheme?: "light" | "dark";
  57819. /**
  57820. * The geometry type of the features to visualize.
  57821. *
  57822. * [Read more...](global.html#geometryType)
  57823. */
  57824. geometryType: "point" | "polygon";
  57825. /**
  57826. * The number of values to include in the pie chart.
  57827. *
  57828. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#getSchemeByName)
  57829. */
  57830. numColors: number;
  57831. }
  57832. export interface pieChartGetSchemesByTagParams {
  57833. /**
  57834. * When provided, only schemes containing all the matching tags will be returned.
  57835. *
  57836. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#getSchemesByTag)
  57837. */
  57838. includedTags?: string[];
  57839. /**
  57840. * When provided, only schemes missing all the provided tags will be returned.
  57841. *
  57842. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#getSchemesByTag)
  57843. */
  57844. excludedTags?: string[];
  57845. /**
  57846. * The basemap to pair with the visualization.
  57847. *
  57848. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#getSchemesByTag)
  57849. */
  57850. basemap?: string | Basemap;
  57851. /**
  57852. * If you have a non-Esri basemap (e.g.
  57853. *
  57854. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#getSchemesByTag)
  57855. */
  57856. basemapTheme?: "light" | "dark";
  57857. /**
  57858. * The geometry type of the features to visualize.
  57859. *
  57860. * [Read more...](global.html#geometryType)
  57861. */
  57862. geometryType: "point" | "polygon";
  57863. /**
  57864. * The number of categories to include in the pie chart visualization.
  57865. *
  57866. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#getSchemesByTag)
  57867. */
  57868. numColors: number;
  57869. }
  57870. export interface pieChartGetSchemesParams {
  57871. /**
  57872. * The Esri basemap to pair with the visualization.
  57873. *
  57874. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#getSchemes)
  57875. */
  57876. basemap?: string | Basemap;
  57877. /**
  57878. * If you have a non-Esri basemap (e.g.
  57879. *
  57880. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#getSchemes)
  57881. */
  57882. basemapTheme?: "light" | "dark";
  57883. /**
  57884. * The geometry type of the features to visualize.
  57885. *
  57886. * [Read more...](global.html#geometryType)
  57887. */
  57888. geometryType: "point" | "polygon";
  57889. /**
  57890. * The number of unique values to include in the pie chart visualization.
  57891. *
  57892. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#getSchemes)
  57893. */
  57894. numColors: number;
  57895. }
  57896. /**
  57897. * Properties defining the colors and schemes used to visualize pie charts.
  57898. *
  57899. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#PieChartScheme)
  57900. */
  57901. export interface PieChartScheme {
  57902. /**
  57903. * The unique name of the color scheme.
  57904. *
  57905. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#PieChartScheme)
  57906. */
  57907. name: string;
  57908. /**
  57909. * Tags associated with the color scheme.
  57910. *
  57911. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#PieChartScheme)
  57912. */
  57913. tags: string[];
  57914. /**
  57915. * The colors used to visualize pie slices in the chart.
  57916. *
  57917. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#PieChartScheme)
  57918. */
  57919. colors: Color[];
  57920. /**
  57921. * The color of the "others" category.
  57922. *
  57923. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#PieChartScheme)
  57924. */
  57925. colorForOthersCategory: Color;
  57926. /**
  57927. * Properties for defining the outline of the pie chart.
  57928. *
  57929. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#PieChartScheme)
  57930. */
  57931. outline: PieChartSchemeOutline;
  57932. /**
  57933. * The scheme defining the size visual variable used to vary chart size per feature.
  57934. *
  57935. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#PieChartScheme)
  57936. */
  57937. sizeScheme: SizeScheme;
  57938. /**
  57939. * The default size of the pie charts in points or pixels.
  57940. *
  57941. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#PieChartScheme)
  57942. */
  57943. size: number | string;
  57944. }
  57945. /**
  57946. * The return object of the [getSchemes()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#getSchemes) method.
  57947. *
  57948. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#PieChartSchemes)
  57949. */
  57950. export interface PieChartSchemes {
  57951. /**
  57952. * The suggest default chart scheme based on the given basemap.
  57953. *
  57954. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#PieChartSchemes)
  57955. */
  57956. primaryScheme: PieChartScheme;
  57957. /**
  57958. * Additional chart schemes that may be used to visualize data overlaid on the given basemap.
  57959. *
  57960. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#PieChartSchemes)
  57961. */
  57962. secondarySchemes: PieChartScheme[];
  57963. /**
  57964. * The ID of the basemap associated with the given schemes.
  57965. *
  57966. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#PieChartSchemes)
  57967. */
  57968. basemapId: string;
  57969. /**
  57970. * Indicates whether the average basemap color is `light` or `dark`.
  57971. *
  57972. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#PieChartSchemes)
  57973. */
  57974. basemapTheme: string;
  57975. }
  57976. export interface PieChartSchemeOutline {
  57977. /**
  57978. * The outline color of the pie chart.
  57979. *
  57980. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#PieChartScheme)
  57981. */
  57982. color: Color;
  57983. /**
  57984. * The width of the outline in points.
  57985. *
  57986. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-pieChart.html#PieChartScheme)
  57987. */
  57988. width: number | string;
  57989. }
  57990. /**
  57991. * Object containing helper methods for getting optimal symbol schemes used to create [predominance visualizations](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-predominance.html).
  57992. *
  57993. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html)
  57994. */
  57995. interface symbologyPredominance {
  57996. /**
  57997. * Clones a predominance scheme object.
  57998. *
  57999. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#cloneScheme)
  58000. */
  58001. cloneScheme(scheme: PredominanceScheme): PredominanceScheme;
  58002. /**
  58003. * Returns a predominance scheme with the provided name.
  58004. *
  58005. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#getSchemeByName)
  58006. */
  58007. getSchemeByName(params: predominanceGetSchemeByNameParams): PredominanceScheme;
  58008. /**
  58009. * Returns a primary scheme and secondary schemes defining symbol properties for predominance-based data-driven visualizations in a [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html).
  58010. *
  58011. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#getSchemes)
  58012. */
  58013. getSchemes(params: predominanceGetSchemesParams): PredominanceSchemes;
  58014. /**
  58015. * Returns an array of predominance schemes with the provided tags.
  58016. *
  58017. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#getSchemesByTag)
  58018. */
  58019. getSchemesByTag(params: predominanceGetSchemesByTagParams): PredominanceScheme[];
  58020. /**
  58021. * Returns metadata for the available themes.
  58022. *
  58023. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#getThemes)
  58024. */
  58025. getThemes(basemap?: string | Basemap): Theme[];
  58026. }
  58027. export const symbologyPredominance: symbologyPredominance;
  58028. export interface predominanceGetSchemeByNameParams {
  58029. /**
  58030. * The name of the scheme to retrieve.
  58031. *
  58032. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#getSchemeByName)
  58033. */
  58034. name: string;
  58035. /**
  58036. * The basemap to pair with the visualization.
  58037. *
  58038. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#getSchemeByName)
  58039. */
  58040. basemap?: string | Basemap;
  58041. /**
  58042. * If you have a non-Esri basemap (e.g.
  58043. *
  58044. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#getSchemeByName)
  58045. */
  58046. basemapTheme?: "light" | "dark";
  58047. /**
  58048. * The geometry type of the features to visualize.
  58049. *
  58050. * [Read more...](global.html#geometryType)
  58051. */
  58052. geometryType: "point" | "multipoint" | "polyline" | "polygon" | "mesh" | "multipatch";
  58053. /**
  58054. * The number of unique values to include in the predominance visualization.
  58055. *
  58056. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#getSchemeByName)
  58057. */
  58058. numColors: number;
  58059. /**
  58060. * Determines which set of primary and secondary color schemes to return.
  58061. *
  58062. * @default default
  58063. *
  58064. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#getSchemeByName)
  58065. */
  58066. theme?: "default";
  58067. /**
  58068. * Indicates if the size units of the scheme will be in meters.
  58069. *
  58070. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#getSchemeByName)
  58071. */
  58072. worldScale?: boolean;
  58073. /**
  58074. * The SceneView instance in which the scheme will be used.
  58075. *
  58076. * [Read more...](global.html)
  58077. */
  58078. view?: SceneView;
  58079. }
  58080. export interface predominanceGetSchemesByTagParams {
  58081. /**
  58082. * When provided, only schemes containing all the matching tags will be returned.
  58083. *
  58084. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#getSchemesByTag)
  58085. */
  58086. includedTags?: string[];
  58087. /**
  58088. * When provided, only schemes missing all the provided tags will be returned.
  58089. *
  58090. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#getSchemesByTag)
  58091. */
  58092. excludedTags?: string[];
  58093. /**
  58094. * The basemap to pair with the visualization.
  58095. *
  58096. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#getSchemesByTag)
  58097. */
  58098. basemap?: string | Basemap;
  58099. /**
  58100. * If you have a non-Esri basemap (e.g.
  58101. *
  58102. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#getSchemesByTag)
  58103. */
  58104. basemapTheme?: "light" | "dark";
  58105. /**
  58106. * The geometry type of the features to visualize.
  58107. *
  58108. * [Read more...](global.html#geometryType)
  58109. */
  58110. geometryType: "point" | "multipoint" | "polyline" | "polygon" | "mesh" | "multipatch";
  58111. /**
  58112. * The number of unique values to include in the predominance visualization.
  58113. *
  58114. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#getSchemesByTag)
  58115. */
  58116. numColors: number;
  58117. /**
  58118. * Determines which set of primary and secondary color schemes to return.
  58119. *
  58120. * @default default
  58121. *
  58122. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#getSchemesByTag)
  58123. */
  58124. theme?: "default";
  58125. /**
  58126. * Indicates if the size units of the scheme will be in meters.
  58127. *
  58128. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#getSchemesByTag)
  58129. */
  58130. worldScale?: boolean;
  58131. /**
  58132. * The SceneView instance in which the scheme will be used.
  58133. *
  58134. * [Read more...](global.html)
  58135. */
  58136. view?: SceneView;
  58137. }
  58138. export interface predominanceGetSchemesParams {
  58139. /**
  58140. * The Esri basemap to pair with the visualization.
  58141. *
  58142. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#getSchemes)
  58143. */
  58144. basemap?: string | Basemap;
  58145. /**
  58146. * If you have a non-Esri basemap (e.g.
  58147. *
  58148. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#getSchemes)
  58149. */
  58150. basemapTheme?: "light" | "dark";
  58151. /**
  58152. * The geometry type of the features to visualize.
  58153. *
  58154. * [Read more...](global.html#geometryType)
  58155. */
  58156. geometryType: "point" | "multipoint" | "polyline" | "polygon" | "mesh" | "multipatch";
  58157. /**
  58158. * The number of unique values to include in the predominance visualization.
  58159. *
  58160. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#getSchemes)
  58161. */
  58162. numColors: number;
  58163. /**
  58164. * Determines which set of primary and secondary color schemes to return.
  58165. *
  58166. * @default default
  58167. *
  58168. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#getSchemes)
  58169. */
  58170. theme?: "default";
  58171. /**
  58172. * Indicates if the size units of the scheme will be in meters.
  58173. *
  58174. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#getSchemes)
  58175. */
  58176. worldScale?: boolean;
  58177. /**
  58178. * The SceneView instance in which the scheme will be used.
  58179. *
  58180. * [Read more...](global.html)
  58181. */
  58182. view?: SceneView;
  58183. }
  58184. /**
  58185. * Defines the symbology scheme used to visualize predominance based on the layer's geometry type.
  58186. *
  58187. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceScheme)
  58188. */
  58189. export type PredominanceScheme = | PredominanceSchemeForPoint
  58190. | PredominanceSchemeForPolyline
  58191. | PredominanceSchemeForPolygon
  58192. | PredominanceSchemeForMesh;
  58193. /**
  58194. * Properties defining the symbology scheme used to visualize predominance for mesh features.
  58195. *
  58196. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForMesh)
  58197. */
  58198. export interface PredominanceSchemeForMesh {
  58199. /**
  58200. * The unique name of the scheme.
  58201. *
  58202. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForMesh)
  58203. */
  58204. name: string;
  58205. /**
  58206. * Tags associated with the scheme.
  58207. *
  58208. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForMesh)
  58209. */
  58210. tags: string[];
  58211. /**
  58212. * The fill colors of the mesh symbols used for each category.
  58213. *
  58214. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForMesh)
  58215. */
  58216. colors: Color[];
  58217. /**
  58218. * The color of the fill symbol used to indicate features with no data.
  58219. *
  58220. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForMesh)
  58221. */
  58222. noDataColor: Color;
  58223. /**
  58224. * The opacity of the symbol (0 - 1).
  58225. *
  58226. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForMesh)
  58227. */
  58228. opacity: number;
  58229. }
  58230. /**
  58231. * Properties defining the symbology scheme used to visualize predominance for point features.
  58232. *
  58233. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPoint)
  58234. */
  58235. export interface PredominanceSchemeForPoint {
  58236. /**
  58237. * The unique name of the scheme.
  58238. *
  58239. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPoint)
  58240. */
  58241. name: string;
  58242. /**
  58243. * Tags associated with the scheme.
  58244. *
  58245. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPoint)
  58246. */
  58247. tags: string[];
  58248. /**
  58249. * The fill colors of the point symbols used for each category.
  58250. *
  58251. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPoint)
  58252. */
  58253. colors: Color[];
  58254. /**
  58255. * The color of the point symbol used to indicate features with no data.
  58256. *
  58257. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPoint)
  58258. */
  58259. noDataColor: Color;
  58260. /**
  58261. * Properties for defining the outline of the marker symbol.
  58262. *
  58263. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPoint)
  58264. */
  58265. outline: PredominanceSchemeForPointOutline;
  58266. /**
  58267. * The opacity of the point symbol (0 - 1).
  58268. *
  58269. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPoint)
  58270. */
  58271. opacity: number;
  58272. /**
  58273. * The scheme defining the size visual variable if included in a predominance visualization.
  58274. *
  58275. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPoint)
  58276. */
  58277. sizeScheme: SizeSchemeForPoint;
  58278. }
  58279. /**
  58280. * Properties defining the symbology scheme used to visualize predominance for polygon features.
  58281. *
  58282. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPolygon)
  58283. */
  58284. export interface PredominanceSchemeForPolygon {
  58285. /**
  58286. * The unique name of the scheme.
  58287. *
  58288. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPolygon)
  58289. */
  58290. name: string;
  58291. /**
  58292. * Tags associated with the scheme.
  58293. *
  58294. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPolygon)
  58295. */
  58296. tags: string[];
  58297. /**
  58298. * The fill colors of the polygon symbols used for each category.
  58299. *
  58300. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPolygon)
  58301. */
  58302. colors: Color[];
  58303. /**
  58304. * The color of the fill symbol used to indicate features with no data.
  58305. *
  58306. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPolygon)
  58307. */
  58308. noDataColor: Color;
  58309. /**
  58310. * Properties for defining the outline of the fill symbol.
  58311. *
  58312. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPolygon)
  58313. */
  58314. outline: PredominanceSchemeForPolygonOutline;
  58315. /**
  58316. * The opacity of the symbol (0 - 1).
  58317. *
  58318. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPolygon)
  58319. */
  58320. opacity: number;
  58321. /**
  58322. * The scheme defining the size visual variable if included in a predominance visualization.
  58323. *
  58324. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPolygon)
  58325. */
  58326. sizeScheme: SizeSchemeForPolygon;
  58327. }
  58328. /**
  58329. * Properties defining the symbology scheme used to visualize predominance for polyline features.
  58330. *
  58331. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPolyline)
  58332. */
  58333. export interface PredominanceSchemeForPolyline {
  58334. /**
  58335. * The unique name of the scheme.
  58336. *
  58337. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPolyline)
  58338. */
  58339. name: string;
  58340. /**
  58341. * Tags associated with the scheme.
  58342. *
  58343. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPolyline)
  58344. */
  58345. tags: string[];
  58346. /**
  58347. * The colors of the line symbols used for each category.
  58348. *
  58349. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPolyline)
  58350. */
  58351. colors: Color[];
  58352. /**
  58353. * The color of the line symbol used to indicate features with no data and features that are out of range.
  58354. *
  58355. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPolyline)
  58356. */
  58357. noDataColor: Color;
  58358. /**
  58359. * The default width of the line symbol in pixels or points.
  58360. *
  58361. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPolyline)
  58362. */
  58363. width: number;
  58364. /**
  58365. * The opacity of the line symbol (0 - 1).
  58366. *
  58367. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPolyline)
  58368. */
  58369. opacity: number;
  58370. /**
  58371. * The scheme defining the size visual variable if included in a predominance visualization.
  58372. *
  58373. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPolyline)
  58374. */
  58375. sizeScheme: SizeSchemeForPolyline;
  58376. }
  58377. /**
  58378. * The return object of the [getSchemes()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#getSchemes) method.
  58379. *
  58380. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemes)
  58381. */
  58382. export interface PredominanceSchemes {
  58383. /**
  58384. * The predominance scheme best suited for the given basemap and geometry type.
  58385. *
  58386. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemes)
  58387. */
  58388. primaryScheme: PredominanceScheme;
  58389. /**
  58390. * Additional predominance schemes that may be used to visualize data of the given geometry type overlaid on the given basemap.
  58391. *
  58392. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemes)
  58393. */
  58394. secondarySchemes: PredominanceScheme[];
  58395. /**
  58396. * The ID of the basemap associated with the given schemes.
  58397. *
  58398. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemes)
  58399. */
  58400. basemapId: string;
  58401. /**
  58402. * Indicates whether the average basemap color is `light` or `dark`.
  58403. *
  58404. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemes)
  58405. */
  58406. basemapTheme: string;
  58407. }
  58408. export interface PredominanceSchemeForPointOutline {
  58409. /**
  58410. * The outline color of the marker symbol.
  58411. *
  58412. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPoint)
  58413. */
  58414. color: Color;
  58415. /**
  58416. * The width of the marker symbol in points.
  58417. *
  58418. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPoint)
  58419. */
  58420. width: number;
  58421. }
  58422. export interface PredominanceSchemeForPolygonOutline {
  58423. /**
  58424. * The outline color of the fill symbol.
  58425. *
  58426. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPolygon)
  58427. */
  58428. color: Color;
  58429. /**
  58430. * The width of the fill symbol's outline in pixels or points.
  58431. *
  58432. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-predominance.html#PredominanceSchemeForPolygon)
  58433. */
  58434. width: number;
  58435. }
  58436. /**
  58437. * Object containing helper methods for getting optimal symbol schemes used to create [relationship (bivariate choropleth) visualizations](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-relationship.html).
  58438. *
  58439. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html)
  58440. */
  58441. interface symbologyRelationship {
  58442. /**
  58443. * Clones a relationship (bivariate color) scheme object.
  58444. *
  58445. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#cloneScheme)
  58446. */
  58447. cloneScheme(scheme: RelationshipScheme): RelationshipScheme;
  58448. /**
  58449. * Returns a relationship scheme with the provided name.
  58450. *
  58451. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#getSchemeByName)
  58452. */
  58453. getSchemeByName(params: relationshipGetSchemeByNameParams): RelationshipScheme;
  58454. /**
  58455. * Returns a primary scheme and secondary schemes defining symbol properties for relationship-based (bivariate choropleth) data-driven visualizations in a [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html).
  58456. *
  58457. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#getSchemes)
  58458. */
  58459. getSchemes(params: relationshipGetSchemesParams): RelationshipSchemes;
  58460. /**
  58461. * Returns an array of relationship schemes with the provided tags.
  58462. *
  58463. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#getSchemesByTag)
  58464. */
  58465. getSchemesByTag(params: relationshipGetSchemesByTagParams): RelationshipScheme[];
  58466. /**
  58467. * Returns metadata for the available themes.
  58468. *
  58469. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#getThemes)
  58470. */
  58471. getThemes(basemap?: string | Basemap): Theme[];
  58472. }
  58473. export const symbologyRelationship: symbologyRelationship;
  58474. export interface relationshipGetSchemeByNameParams {
  58475. /**
  58476. * The name of the scheme to retrieve.
  58477. *
  58478. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#getSchemeByName)
  58479. */
  58480. name: string;
  58481. /**
  58482. * The basemap to pair with the visualization.
  58483. *
  58484. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#getSchemeByName)
  58485. */
  58486. basemap?: string | Basemap;
  58487. /**
  58488. * If you have a non-Esri basemap (e.g.
  58489. *
  58490. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#getSchemeByName)
  58491. */
  58492. basemapTheme?: "light" | "dark";
  58493. /**
  58494. * The geometry type of the features to visualize.
  58495. *
  58496. * [Read more...](global.html#geometryType)
  58497. */
  58498. geometryType: "point" | "multipoint" | "polyline" | "polygon" | "mesh" | "multipatch";
  58499. /**
  58500. * Determines which set of primary and secondary color schemes to return.
  58501. *
  58502. * @default default
  58503. *
  58504. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#getSchemeByName)
  58505. */
  58506. theme?: "default";
  58507. /**
  58508. * Indicates if the size units of the scheme will be in meters.
  58509. *
  58510. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#getSchemeByName)
  58511. */
  58512. worldScale?: boolean;
  58513. /**
  58514. * The SceneView instance in which the scheme will be used.
  58515. *
  58516. * [Read more...](global.html)
  58517. */
  58518. view?: SceneView;
  58519. }
  58520. export interface relationshipGetSchemesByTagParams {
  58521. /**
  58522. * When provided, only schemes containing all the matching tags will be returned.
  58523. *
  58524. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#getSchemesByTag)
  58525. */
  58526. includedTags?: string[];
  58527. /**
  58528. * When provided, only schemes missing all the provided tags will be returned.
  58529. *
  58530. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#getSchemesByTag)
  58531. */
  58532. excludedTags?: string[];
  58533. /**
  58534. * The basemap to pair with the visualization.
  58535. *
  58536. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#getSchemesByTag)
  58537. */
  58538. basemap?: string | Basemap;
  58539. /**
  58540. * If you have a non-Esri basemap (e.g.
  58541. *
  58542. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#getSchemesByTag)
  58543. */
  58544. basemapTheme?: "light" | "dark";
  58545. /**
  58546. * The geometry type of the features to visualize.
  58547. *
  58548. * [Read more...](global.html#geometryType)
  58549. */
  58550. geometryType: "point" | "multipoint" | "polyline" | "polygon" | "mesh" | "multipatch";
  58551. /**
  58552. * Determines which set of primary and secondary color schemes to return.
  58553. *
  58554. * @default default
  58555. *
  58556. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#getSchemesByTag)
  58557. */
  58558. theme?: "default";
  58559. /**
  58560. * Indicates if the size units of the scheme will be in meters.
  58561. *
  58562. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#getSchemesByTag)
  58563. */
  58564. worldScale?: boolean;
  58565. /**
  58566. * The SceneView instance in which the scheme will be used.
  58567. *
  58568. * [Read more...](global.html)
  58569. */
  58570. view?: SceneView;
  58571. }
  58572. export interface relationshipGetSchemesParams {
  58573. /**
  58574. * The Esri basemap to pair with the visualization.
  58575. *
  58576. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#getSchemes)
  58577. */
  58578. basemap?: string | Basemap;
  58579. /**
  58580. * If you have a non-Esri basemap (e.g.
  58581. *
  58582. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#getSchemes)
  58583. */
  58584. basemapTheme?: "light" | "dark";
  58585. /**
  58586. * The geometry type of the features to visualize.
  58587. *
  58588. * [Read more...](global.html#geometryType)
  58589. */
  58590. geometryType: "point" | "multipoint" | "polyline" | "polygon" | "mesh" | "multipatch";
  58591. /**
  58592. * Determines which set of primary and secondary color schemes to return.
  58593. *
  58594. * @default default
  58595. *
  58596. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#getSchemes)
  58597. */
  58598. theme?: "default";
  58599. /**
  58600. * Indicates if the size units of the scheme will be in meters.
  58601. *
  58602. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#getSchemes)
  58603. */
  58604. worldScale?: boolean;
  58605. /**
  58606. * The SceneView instance in which the scheme will be used.
  58607. *
  58608. * [Read more...](global.html)
  58609. */
  58610. view?: SceneView;
  58611. }
  58612. /**
  58613. * Defines the symbology scheme used to visualize relationship renderers (bivariate color) based on the layer's geometry type.
  58614. *
  58615. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipScheme)
  58616. */
  58617. export type RelationshipScheme = | RelationshipSchemeForPoint
  58618. | RelationshipSchemeForPolyline
  58619. | RelationshipSchemeForPolygon
  58620. | RelationshipSchemeForMesh;
  58621. /**
  58622. * Properties defining the symbology scheme used to visualize relationship renderers (bivariate color) for mesh features.
  58623. *
  58624. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForMesh)
  58625. */
  58626. export interface RelationshipSchemeForMesh {
  58627. /**
  58628. * The unique name of the scheme.
  58629. *
  58630. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForMesh)
  58631. */
  58632. name: string;
  58633. /**
  58634. * Tags associated with the scheme.
  58635. *
  58636. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForMesh)
  58637. */
  58638. tags: string[];
  58639. /**
  58640. * The ID uniquely identifying the color scheme.
  58641. *
  58642. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForMesh)
  58643. */
  58644. id: string;
  58645. /**
  58646. * Defines the colors to use in each bin of the relationship visualization.
  58647. *
  58648. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForMesh)
  58649. */
  58650. colorsForClassBreaks: RelationshipSchemeForMeshColorsForClassBreaks[];
  58651. /**
  58652. * The color of the fill symbol used to indicate features with no data.
  58653. *
  58654. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForMesh)
  58655. */
  58656. noDataColor: Color;
  58657. /**
  58658. * The opacity of the fill symbol (0 - 1).
  58659. *
  58660. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForMesh)
  58661. */
  58662. opacity: number;
  58663. }
  58664. /**
  58665. * Properties defining the symbology scheme used to visualize relationship renderers (bivariate color) for point features.
  58666. *
  58667. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPoint)
  58668. */
  58669. export interface RelationshipSchemeForPoint {
  58670. /**
  58671. * The unique name of the scheme.
  58672. *
  58673. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPoint)
  58674. */
  58675. name: string;
  58676. /**
  58677. * Tags associated with the scheme.
  58678. *
  58679. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPoint)
  58680. */
  58681. tags: string[];
  58682. /**
  58683. * The ID uniquely identifying the color scheme.
  58684. *
  58685. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPoint)
  58686. */
  58687. id: string;
  58688. /**
  58689. * Defines the colors to use in each bin of the relationship visualization.
  58690. *
  58691. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPoint)
  58692. */
  58693. colorsForClassBreaks: RelationshipSchemeForPointColorsForClassBreaks[];
  58694. /**
  58695. * The color of the point symbol used to indicate features with no data.
  58696. *
  58697. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPoint)
  58698. */
  58699. noDataColor: Color;
  58700. /**
  58701. * Properties for defining the outline of the marker symbol.
  58702. *
  58703. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPoint)
  58704. */
  58705. outline: RelationshipSchemeForPointOutline;
  58706. /**
  58707. * The opacity of the point symbol (0 - 1).
  58708. *
  58709. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPoint)
  58710. */
  58711. opacity: number;
  58712. /**
  58713. * The size of the point symbol in points.
  58714. *
  58715. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPoint)
  58716. */
  58717. size: number;
  58718. }
  58719. /**
  58720. * Properties defining the symbology scheme used to visualize relationship renderers (bivariate color) for polygon features.
  58721. *
  58722. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPolygon)
  58723. */
  58724. export interface RelationshipSchemeForPolygon {
  58725. /**
  58726. * The unique name of the scheme.
  58727. *
  58728. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPolygon)
  58729. */
  58730. name: string;
  58731. /**
  58732. * Tags associated with the scheme.
  58733. *
  58734. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPolygon)
  58735. */
  58736. tags: string[];
  58737. /**
  58738. * The ID uniquely identifying the color scheme.
  58739. *
  58740. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPolygon)
  58741. */
  58742. id: string;
  58743. /**
  58744. * Defines the colors to use in each bin of the relationship visualization.
  58745. *
  58746. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPolygon)
  58747. */
  58748. colorsForClassBreaks: RelationshipSchemeForPolygonColorsForClassBreaks[];
  58749. /**
  58750. * The color of the fill symbol used to indicate features with no data.
  58751. *
  58752. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPolygon)
  58753. */
  58754. noDataColor: Color;
  58755. /**
  58756. * Properties for defining the outline of the fill symbol.
  58757. *
  58758. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPolygon)
  58759. */
  58760. outline: RelationshipSchemeForPolygonOutline;
  58761. /**
  58762. * The opacity of the fill symbol (0 - 1).
  58763. *
  58764. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPolygon)
  58765. */
  58766. opacity: number;
  58767. }
  58768. /**
  58769. * Properties defining the symbology scheme used to visualize relationship renderers (bivariate color) for polyline features.
  58770. *
  58771. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPolyline)
  58772. */
  58773. export interface RelationshipSchemeForPolyline {
  58774. /**
  58775. * The unique name of the scheme.
  58776. *
  58777. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPolyline)
  58778. */
  58779. name: string;
  58780. /**
  58781. * Tags associated with the scheme.
  58782. *
  58783. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPolyline)
  58784. */
  58785. tags: string[];
  58786. /**
  58787. * The ID uniquely identifying the color scheme.
  58788. *
  58789. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPolyline)
  58790. */
  58791. id: string;
  58792. /**
  58793. * Defines the colors to use in each bin of the relationship visualization.
  58794. *
  58795. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPolyline)
  58796. */
  58797. colorsForClassBreaks: RelationshipSchemeForPolylineColorsForClassBreaks[];
  58798. /**
  58799. * The color of the line symbol used to indicate features with no data.
  58800. *
  58801. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPolyline)
  58802. */
  58803. noDataColor: Color;
  58804. /**
  58805. * The opacity of the line symbol (0 - 1).
  58806. *
  58807. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPolyline)
  58808. */
  58809. opacity: number;
  58810. /**
  58811. * The width of the line symbol in points.
  58812. *
  58813. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPolyline)
  58814. */
  58815. width: number;
  58816. }
  58817. /**
  58818. * The return object of the [getSchemes()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#getSchemes) method.
  58819. *
  58820. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemes)
  58821. */
  58822. export interface RelationshipSchemes {
  58823. /**
  58824. * The relationship scheme best suited for the given basemap and geometry type.
  58825. *
  58826. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemes)
  58827. */
  58828. primaryScheme: RelationshipScheme;
  58829. /**
  58830. * Additional relationship schemes that may be used to visualize data of the given geometry type overlaid on the given basemap.
  58831. *
  58832. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemes)
  58833. */
  58834. secondarySchemes: RelationshipScheme[];
  58835. /**
  58836. * The ID of the basemap associated with the given schemes.
  58837. *
  58838. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemes)
  58839. */
  58840. basemapId: string;
  58841. /**
  58842. * Indicates whether the average basemap color is `light` or `dark`.
  58843. *
  58844. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemes)
  58845. */
  58846. basemapTheme: string;
  58847. }
  58848. export interface RelationshipSchemeForMeshColorsForClassBreaks {
  58849. /**
  58850. * The colors of the fill symbols used for each bin in the relationship visualization.
  58851. *
  58852. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForMesh)
  58853. */
  58854. colors: Color[][];
  58855. /**
  58856. * The number of breaks (rows/columns) for each variable in the relationship visualization.
  58857. *
  58858. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForMesh)
  58859. */
  58860. numClasses: number;
  58861. }
  58862. export interface RelationshipSchemeForPointColorsForClassBreaks {
  58863. /**
  58864. * The fill colors of the point symbols used for each bin in the relationship visualization.
  58865. *
  58866. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPoint)
  58867. */
  58868. colors: Color[][];
  58869. /**
  58870. * The number of breaks (rows/columns) for each variable in the relationship visualization.
  58871. *
  58872. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPoint)
  58873. */
  58874. numClasses: number;
  58875. }
  58876. export interface RelationshipSchemeForPointOutline {
  58877. /**
  58878. * The outline color of the marker symbol.
  58879. *
  58880. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPoint)
  58881. */
  58882. color: Color;
  58883. /**
  58884. * The width of the outline in points.
  58885. *
  58886. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPoint)
  58887. */
  58888. width: number;
  58889. }
  58890. export interface RelationshipSchemeForPolygonColorsForClassBreaks {
  58891. /**
  58892. * The colors of the fill symbols used for each bin in the relationship visualization.
  58893. *
  58894. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPolygon)
  58895. */
  58896. colors: Color[][];
  58897. /**
  58898. * The number of breaks (rows/columns) for each variable in the relationship visualization.
  58899. *
  58900. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPolygon)
  58901. */
  58902. numClasses: number;
  58903. }
  58904. export interface RelationshipSchemeForPolygonOutline {
  58905. /**
  58906. * The outline color of the fill symbol.
  58907. *
  58908. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPolygon)
  58909. */
  58910. color: Color;
  58911. /**
  58912. * The width of the outline in points.
  58913. *
  58914. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPolygon)
  58915. */
  58916. width: number;
  58917. }
  58918. export interface RelationshipSchemeForPolylineColorsForClassBreaks {
  58919. /**
  58920. * The colors of the line symbols used for each bin in the relationship visualization.
  58921. *
  58922. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPolyline)
  58923. */
  58924. colors: Color[][];
  58925. /**
  58926. * The number of breaks (rows/columns) for each variable in the relationship visualization.
  58927. *
  58928. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-relationship.html#RelationshipSchemeForPolyline)
  58929. */
  58930. numClasses: number;
  58931. }
  58932. /**
  58933. * Object containing helper methods for generating optimal symbols for data-driven size visualizations.
  58934. *
  58935. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html)
  58936. */
  58937. interface symbologySize {
  58938. /**
  58939. * Clones a size scheme object.
  58940. *
  58941. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#cloneScheme)
  58942. */
  58943. cloneScheme(scheme: SizeScheme): SizeScheme;
  58944. /**
  58945. * Returns a primary scheme and secondary schemes defining symbol properties for size-based data-driven visualizations in a [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html).
  58946. *
  58947. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#getSchemes)
  58948. */
  58949. getSchemes(params: sizeGetSchemesParams): SizeSchemes;
  58950. /**
  58951. * Returns metadata for the available themes.
  58952. *
  58953. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#getThemes)
  58954. */
  58955. getThemes(basemap?: string | Basemap): Theme[];
  58956. }
  58957. export const symbologySize: symbologySize;
  58958. export interface sizeGetSchemesParams {
  58959. /**
  58960. * The Esri basemap to pair with the visualization.
  58961. *
  58962. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#getSchemes)
  58963. */
  58964. basemap?: string | Basemap;
  58965. /**
  58966. * If you have a non-Esri basemap (e.g.
  58967. *
  58968. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#getSchemes)
  58969. */
  58970. basemapTheme?: "light" | "dark";
  58971. /**
  58972. * The geometry type of the features to visualize.
  58973. *
  58974. * [Read more...](global.html#geometryType)
  58975. */
  58976. geometryType: "point" | "multipoint" | "polyline" | "polygon";
  58977. /**
  58978. * The SceneView instance in which the scheme will be used.
  58979. *
  58980. * [Read more...](global.html)
  58981. */
  58982. view?: SceneView;
  58983. /**
  58984. * Indicates if the size units of the scheme will be in meters.
  58985. *
  58986. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#getSchemes)
  58987. */
  58988. worldScale?: boolean;
  58989. }
  58990. /**
  58991. * Properties defining the symbology scheme used to visualize features with attribute data-driven size.
  58992. *
  58993. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeScheme)
  58994. */
  58995. export type SizeScheme = SizeSchemeForPoint | SizeSchemeForPolyline | SizeSchemeForPolygon;
  58996. /**
  58997. * Properties defining the symbology scheme used to visualize point features driven by attribute data.
  58998. *
  58999. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemeForPoint)
  59000. */
  59001. export interface SizeSchemeForPoint {
  59002. /**
  59003. * The fill color of the marker symbol.
  59004. *
  59005. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemeForPoint)
  59006. */
  59007. color: Color;
  59008. /**
  59009. * The color of the marker symbol used to indicate features with no data and features that are out of range.
  59010. *
  59011. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemeForPoint)
  59012. */
  59013. noDataColor: Color;
  59014. /**
  59015. * Properties for defining the outline of the marker symbol.
  59016. *
  59017. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemeForPoint)
  59018. */
  59019. outline: SizeSchemeForPointOutline;
  59020. /**
  59021. * The default size of the marker symbol in pixels or points.
  59022. *
  59023. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemeForPoint)
  59024. */
  59025. size: number;
  59026. /**
  59027. * The size of the marker symbol (in pixels or points) used to indicate features with no data and features that are out of range.
  59028. *
  59029. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemeForPoint)
  59030. */
  59031. noDataSize: number;
  59032. /**
  59033. * The minimum size of a marker symbol in pixels or points representing features with low data values.
  59034. *
  59035. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemeForPoint)
  59036. */
  59037. minSize: number;
  59038. /**
  59039. * The maximum size of a marker symbol in pixels or points representing features with high data values.
  59040. *
  59041. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemeForPoint)
  59042. */
  59043. maxSize: number;
  59044. /**
  59045. * The opacity of the marker symbol.
  59046. *
  59047. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemeForPoint)
  59048. */
  59049. opacity: number;
  59050. }
  59051. /**
  59052. * Properties defining the symbology scheme used to visualize polygon features driven by attribute data.
  59053. *
  59054. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemeForPolygon)
  59055. */
  59056. export interface SizeSchemeForPolygon {
  59057. /**
  59058. * The scheme defining the symbology of the marker symbol used to represent polygon features by size.
  59059. *
  59060. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemeForPolygon)
  59061. */
  59062. marker: SizeSchemeForPoint;
  59063. /**
  59064. * The schema defining the backgound symbol of the feature.
  59065. *
  59066. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemeForPolygon)
  59067. */
  59068. background: SizeSchemeForPolygonBackground;
  59069. /**
  59070. * The opacity of the symbol.
  59071. *
  59072. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemeForPolygon)
  59073. */
  59074. opacity: number;
  59075. }
  59076. /**
  59077. * Properties defining the symbology scheme used to visualize polyline features driven by attribute data.
  59078. *
  59079. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemeForPolyline)
  59080. */
  59081. export interface SizeSchemeForPolyline {
  59082. /**
  59083. * The color of the line symbol.
  59084. *
  59085. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemeForPolyline)
  59086. */
  59087. color: Color;
  59088. /**
  59089. * The color of the line symbol used to indicate features with no data and features that are out of range.
  59090. *
  59091. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemeForPolyline)
  59092. */
  59093. noDataColor: Color;
  59094. /**
  59095. * The default width of the line symbol in pixels or points.
  59096. *
  59097. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemeForPolyline)
  59098. */
  59099. width: number;
  59100. /**
  59101. * The width of the line symbol in pixels or points used to indicate features with no data and features that are out of range.
  59102. *
  59103. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemeForPolyline)
  59104. */
  59105. noDataWidth: number;
  59106. /**
  59107. * The minimum width of a line symbol in pixels or points representing features with low data values.
  59108. *
  59109. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemeForPolyline)
  59110. */
  59111. minWidth: number;
  59112. /**
  59113. * The maximum width of a line symbol in pixels or points representing features with high data values.
  59114. *
  59115. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemeForPolyline)
  59116. */
  59117. maxWidth: number;
  59118. /**
  59119. * The opacity of the line symbol.
  59120. *
  59121. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemeForPolyline)
  59122. */
  59123. opacity: number;
  59124. }
  59125. /**
  59126. * The return object of the [getSchemes()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#getSchemes) method.
  59127. *
  59128. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemes)
  59129. */
  59130. export interface SizeSchemes {
  59131. /**
  59132. * The size scheme best suited for the given basemap and geometry type.
  59133. *
  59134. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemes)
  59135. */
  59136. primaryScheme: SizeScheme;
  59137. /**
  59138. * Additional size schemes that may be used to visualize data of the given geometry type overlaid on the given basemap.
  59139. *
  59140. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemes)
  59141. */
  59142. secondarySchemes: SizeScheme[];
  59143. /**
  59144. * The ID of the basemap associated with the given schemes.
  59145. *
  59146. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemes)
  59147. */
  59148. basemapId: string;
  59149. /**
  59150. * Indicates whether the average basemap color is `light` or `dark`.
  59151. *
  59152. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemes)
  59153. */
  59154. basemapTheme: string;
  59155. }
  59156. export interface SizeSchemeForPointOutline {
  59157. /**
  59158. * The outline color of the marker symbol.
  59159. *
  59160. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemeForPoint)
  59161. */
  59162. color: Color;
  59163. /**
  59164. * The width of the marker symbol in pixels or points.
  59165. *
  59166. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemeForPoint)
  59167. */
  59168. width: number;
  59169. }
  59170. export interface SizeSchemeForPolygonBackground {
  59171. /**
  59172. * The color of the fill symbol representing the polygon.
  59173. *
  59174. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemeForPolygon)
  59175. */
  59176. color: Color;
  59177. /**
  59178. * Properties for defining the outline of the background fill symbol.
  59179. *
  59180. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemeForPolygon)
  59181. */
  59182. outline: SizeSchemeForPolygonBackgroundOutline;
  59183. }
  59184. export interface SizeSchemeForPolygonBackgroundOutline {
  59185. /**
  59186. * The outline color of the background fill symbol.
  59187. *
  59188. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemeForPolygon)
  59189. */
  59190. color: Color;
  59191. /**
  59192. * The width of the background fill symbol's outline in pixels or points.
  59193. *
  59194. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-size.html#SizeSchemeForPolygon)
  59195. */
  59196. width: number;
  59197. }
  59198. /**
  59199. * This module provides convenience methods for querying color ramps (arrays of colors) used in the smart mapping [color symbology](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html) module.
  59200. *
  59201. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-support-colorRamps.html)
  59202. */
  59203. interface colorRamps {
  59204. /**
  59205. * Returns all color ramps available in smartMapping [color schemes](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html).
  59206. *
  59207. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-support-colorRamps.html#all)
  59208. */
  59209. all(): colorRampsColorRamp[];
  59210. /**
  59211. * Returns the color ramp available in the smartMapping [color schemes](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html) matching the given name.
  59212. *
  59213. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-support-colorRamps.html#byName)
  59214. */
  59215. byName(name: string): colorRampsColorRamp;
  59216. /**
  59217. * Returns the color ramps available in the smartMapping [color schemes](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html) matching the given tags.
  59218. *
  59219. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-support-colorRamps.html#byTag)
  59220. */
  59221. byTag(params: colorRampsByTagParams): colorRampsColorRamp[];
  59222. /**
  59223. * Returns the names of all color ramps available in the smartMapping [color schemes](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-color.html).
  59224. *
  59225. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-support-colorRamps.html#names)
  59226. */
  59227. names(): string[];
  59228. }
  59229. export const colorRamps: colorRamps;
  59230. /**
  59231. * Defines a ramp of colors to use for visualizing data in a chart, [Renderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-Renderer.html), or [ColorVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html).
  59232. *
  59233. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-support-colorRamps.html#ColorRamp)
  59234. */
  59235. export interface colorRampsColorRamp {
  59236. /**
  59237. * The unique name of the color ramp.
  59238. *
  59239. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-support-colorRamps.html#ColorRamp)
  59240. */
  59241. name: string;
  59242. /**
  59243. * Tags associated with the color ramp.
  59244. *
  59245. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-support-colorRamps.html#ColorRamp)
  59246. */
  59247. tags: string[];
  59248. /**
  59249. * An array of five colors intended for displaying a continuous color ramp.
  59250. *
  59251. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-support-colorRamps.html#ColorRamp)
  59252. */
  59253. colors: Color[];
  59254. /**
  59255. * Contains an array of ramps ranging in size from 1 color to 10 colors.
  59256. *
  59257. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-support-colorRamps.html#ColorRamp)
  59258. */
  59259. colorsForClassBreaks: ColorRampColorsForClassBreaks[];
  59260. }
  59261. export interface colorRampsByTagParams {
  59262. /**
  59263. * When provided, only ramps containing all the matching tags will be returned.
  59264. *
  59265. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-support-colorRamps.html#byTag)
  59266. */
  59267. includedTags?: string[];
  59268. /**
  59269. * When provided, only ramps missing all the provided tags will be returned.
  59270. *
  59271. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-support-colorRamps.html#byTag)
  59272. */
  59273. excludedTags?: string[];
  59274. }
  59275. export interface ColorRampColorsForClassBreaks {
  59276. /**
  59277. * An array of 1 to 10 colors intended for displaying as a ramp with distinct or unique colors.
  59278. *
  59279. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-support-colorRamps.html#ColorRamp)
  59280. */
  59281. colors: Color[];
  59282. /**
  59283. * The number of classes or colors used in the ramp of discrete colors.
  59284. *
  59285. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-support-colorRamps.html#ColorRamp)
  59286. */
  59287. numClasses: number;
  59288. }
  59289. /**
  59290. * Object containing helper methods for getting optimal symbol themes used to create data-driven visualizations of unique values or types.
  59291. *
  59292. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html)
  59293. */
  59294. interface symbologyType {
  59295. /**
  59296. * Clones a type scheme object.
  59297. *
  59298. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#cloneScheme)
  59299. */
  59300. cloneScheme(scheme: TypeScheme): TypeScheme;
  59301. /**
  59302. * Returns a type scheme with the provided name.
  59303. *
  59304. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#getSchemeByName)
  59305. */
  59306. getSchemeByName(params: typeGetSchemeByNameParams): TypeScheme;
  59307. /**
  59308. * Returns a primary scheme and secondary schemes defining symbol properties for type-based data-driven visualizations in a [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html).
  59309. *
  59310. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#getSchemes)
  59311. */
  59312. getSchemes(params: typeGetSchemesParams): TypeSchemes;
  59313. /**
  59314. * Returns an array of type schemes with the provided tags.
  59315. *
  59316. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#getSchemesByTag)
  59317. */
  59318. getSchemesByTag(params: typeGetSchemesByTagParams): TypeScheme[];
  59319. /**
  59320. * Returns metadata for the available themes.
  59321. *
  59322. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#getThemes)
  59323. */
  59324. getThemes(basemap?: string | Basemap): Theme[];
  59325. }
  59326. export const symbologyType: symbologyType;
  59327. export interface typeGetSchemeByNameParams {
  59328. /**
  59329. * The name of the scheme to retrieve.
  59330. *
  59331. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#getSchemeByName)
  59332. */
  59333. name: string;
  59334. /**
  59335. * The basemap to pair with the visualization.
  59336. *
  59337. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#getSchemeByName)
  59338. */
  59339. basemap?: string | Basemap;
  59340. /**
  59341. * If you have a non-Esri basemap (e.g.
  59342. *
  59343. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#getSchemeByName)
  59344. */
  59345. basemapTheme?: "light" | "dark";
  59346. /**
  59347. * The geometry type of the features to visualize.
  59348. *
  59349. * [Read more...](global.html#geometryType)
  59350. */
  59351. geometryType: "point" | "multipoint" | "polyline" | "polygon" | "mesh" | "multipatch";
  59352. /**
  59353. * Determines whether to return a standardized unique value scheme for point cloud class renderers (i.e.
  59354. *
  59355. * @default default
  59356. *
  59357. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#getSchemeByName)
  59358. */
  59359. theme?: "point-cloud-class" | "default";
  59360. /**
  59361. * Indicates if the size units of the scheme will be in meters.
  59362. *
  59363. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#getSchemeByName)
  59364. */
  59365. worldScale?: boolean;
  59366. /**
  59367. * The SceneView instance in which the scheme will be used.
  59368. *
  59369. * [Read more...](global.html)
  59370. */
  59371. view?: SceneView;
  59372. }
  59373. export interface typeGetSchemesByTagParams {
  59374. /**
  59375. * When provided, only schemes containing all the matching tags will be returned.
  59376. *
  59377. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#getSchemesByTag)
  59378. */
  59379. includedTags?: string[];
  59380. /**
  59381. * When provided, only schemes missing all the provided tags will be returned.
  59382. *
  59383. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#getSchemesByTag)
  59384. */
  59385. excludedTags?: string[];
  59386. /**
  59387. * The basemap to pair with the visualization.
  59388. *
  59389. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#getSchemesByTag)
  59390. */
  59391. basemap?: string | Basemap;
  59392. /**
  59393. * If you have a non-Esri basemap (e.g.
  59394. *
  59395. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#getSchemesByTag)
  59396. */
  59397. basemapTheme?: "light" | "dark";
  59398. /**
  59399. * The geometry type of the features to visualize.
  59400. *
  59401. * [Read more...](global.html#geometryType)
  59402. */
  59403. geometryType: "point" | "multipoint" | "polyline" | "polygon" | "mesh" | "multipatch";
  59404. /**
  59405. * Determines whether to return a standardized unique value scheme for point cloud class renderers (i.e.
  59406. *
  59407. * @default default
  59408. *
  59409. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#getSchemesByTag)
  59410. */
  59411. theme?: "point-cloud-class" | "default";
  59412. /**
  59413. * Indicates if the size units of the scheme will be in meters.
  59414. *
  59415. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#getSchemesByTag)
  59416. */
  59417. worldScale?: boolean;
  59418. /**
  59419. * The SceneView instance in which the scheme will be used.
  59420. *
  59421. * [Read more...](global.html)
  59422. */
  59423. view?: SceneView;
  59424. }
  59425. export interface typeGetSchemesParams {
  59426. /**
  59427. * The Esri basemap to pair with the visualization.
  59428. *
  59429. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#getSchemes)
  59430. */
  59431. basemap?: string | Basemap;
  59432. /**
  59433. * If you have a non-Esri basemap (e.g.
  59434. *
  59435. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#getSchemes)
  59436. */
  59437. basemapTheme?: "light" | "dark";
  59438. /**
  59439. * The geometry type of the features to visualize.
  59440. *
  59441. * [Read more...](global.html#geometryType)
  59442. */
  59443. geometryType: "point" | "multipoint" | "polyline" | "polygon" | "mesh" | "multipatch";
  59444. /**
  59445. * Determines whether to return a standardized unique value scheme for point cloud class renderers (i.e.
  59446. *
  59447. * @default default
  59448. *
  59449. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#getSchemes)
  59450. */
  59451. theme?: "point-cloud-class" | "default";
  59452. /**
  59453. * Indicates if the size units of the scheme will be in meters.
  59454. *
  59455. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#getSchemes)
  59456. */
  59457. worldScale?: boolean;
  59458. /**
  59459. * The SceneView instance in which the scheme will be used.
  59460. *
  59461. * [Read more...](global.html)
  59462. */
  59463. view?: SceneView;
  59464. }
  59465. /**
  59466. * Properties defining the symbology scheme used to visualize features with attribute data-driven types.
  59467. *
  59468. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeScheme)
  59469. */
  59470. export type TypeScheme = TypeSchemeForPoint | TypeSchemeForPolyline | TypeSchemeForPolygon | TypeSchemeForMesh;
  59471. /**
  59472. * Properties defining the symbology scheme used to visualize mesh features driven by type-based attribute data.
  59473. *
  59474. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForMesh)
  59475. */
  59476. export interface TypeSchemeForMesh {
  59477. /**
  59478. * The unique name of the scheme.
  59479. *
  59480. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForMesh)
  59481. */
  59482. name: string;
  59483. /**
  59484. * Tags associated with the scheme.
  59485. *
  59486. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForMesh)
  59487. */
  59488. tags: string[];
  59489. /**
  59490. * The fill colors of the symbols comprising the theme.
  59491. *
  59492. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForMesh)
  59493. */
  59494. colors: Color[];
  59495. /**
  59496. * The color of the fill symbol used to indicate features with no data.
  59497. *
  59498. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForMesh)
  59499. */
  59500. noDataColor: Color;
  59501. /**
  59502. * The opacity of the symbol (0 - 1).
  59503. *
  59504. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForMesh)
  59505. */
  59506. opacity: number;
  59507. }
  59508. /**
  59509. * Properties defining the symbology scheme used to visualize point features driven by type-based attribute data.
  59510. *
  59511. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForPoint)
  59512. */
  59513. export interface TypeSchemeForPoint {
  59514. /**
  59515. * The unique name of the scheme.
  59516. *
  59517. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForPoint)
  59518. */
  59519. name: string;
  59520. /**
  59521. * Tags associated with the scheme.
  59522. *
  59523. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForPoint)
  59524. */
  59525. tags: string[];
  59526. /**
  59527. * The fill colors of the point symbols comprising the theme.
  59528. *
  59529. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForPoint)
  59530. */
  59531. colors: Color[];
  59532. /**
  59533. * The color of the point symbol used to indicate features with no data.
  59534. *
  59535. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForPoint)
  59536. */
  59537. noDataColor: Color;
  59538. /**
  59539. * Properties for defining the outline of the marker symbol.
  59540. *
  59541. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForPoint)
  59542. */
  59543. outline: TypeSchemeForPointOutline;
  59544. /**
  59545. * The default size of the point symbol in pixels, points, or real-world units.
  59546. *
  59547. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForPoint)
  59548. */
  59549. size: number;
  59550. /**
  59551. * The opacity of the point symbol.
  59552. *
  59553. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForPoint)
  59554. */
  59555. opacity: number;
  59556. }
  59557. /**
  59558. * Properties defining the symbology scheme used to visualize polygon features driven by type-based attribute data.
  59559. *
  59560. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForPolygon)
  59561. */
  59562. export interface TypeSchemeForPolygon {
  59563. /**
  59564. * The unique name of the scheme.
  59565. *
  59566. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForPolygon)
  59567. */
  59568. name: string;
  59569. /**
  59570. * Tags associated with the scheme.
  59571. *
  59572. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForPolygon)
  59573. */
  59574. tags: string[];
  59575. /**
  59576. * The fill colors of the symbols comprising the theme.
  59577. *
  59578. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForPolygon)
  59579. */
  59580. colors: Color[];
  59581. /**
  59582. * The color of the fill symbol used to indicate features with no data.
  59583. *
  59584. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForPolygon)
  59585. */
  59586. noDataColor: Color;
  59587. /**
  59588. * Properties for defining the outline of the fill symbol.
  59589. *
  59590. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForPolygon)
  59591. */
  59592. outline: TypeSchemeForPolygonOutline;
  59593. /**
  59594. * The opacity of the symbol (0 - 1).
  59595. *
  59596. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForPolygon)
  59597. */
  59598. opacity: number;
  59599. }
  59600. /**
  59601. * Properties defining the symbology scheme used to visualize polyline features driven by type-based attribute data.
  59602. *
  59603. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForPolyline)
  59604. */
  59605. export interface TypeSchemeForPolyline {
  59606. /**
  59607. * The unique name of the scheme.
  59608. *
  59609. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForPolyline)
  59610. */
  59611. name: string;
  59612. /**
  59613. * Tags associated with the scheme.
  59614. *
  59615. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForPolyline)
  59616. */
  59617. tags: string[];
  59618. /**
  59619. * The colors of the line symbols comprising the theme.
  59620. *
  59621. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForPolyline)
  59622. */
  59623. colors: Color[];
  59624. /**
  59625. * The color of the line symbol used to indicate features with no data and features that are out of range.
  59626. *
  59627. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForPolyline)
  59628. */
  59629. noDataColor: Color;
  59630. /**
  59631. * The default width of the line symbol in pixels or points.
  59632. *
  59633. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForPolyline)
  59634. */
  59635. width: number;
  59636. /**
  59637. * The opacity of the line symbol (0 - 1).
  59638. *
  59639. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForPolyline)
  59640. */
  59641. opacity: number;
  59642. }
  59643. /**
  59644. * The return object of the [getSchemes()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#getSchemes) method.
  59645. *
  59646. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemes)
  59647. */
  59648. export interface TypeSchemes {
  59649. /**
  59650. * The type scheme best suited for the given basemap and geometry type.
  59651. *
  59652. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemes)
  59653. */
  59654. primaryScheme: TypeScheme;
  59655. /**
  59656. * Additional type schemes that may be used to visualize data of the given geometry type overlaid on the given basemap.
  59657. *
  59658. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemes)
  59659. */
  59660. secondarySchemes: TypeScheme[];
  59661. /**
  59662. * The ID of the basemap associated with the given schemes.
  59663. *
  59664. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemes)
  59665. */
  59666. basemapId: string;
  59667. /**
  59668. * Indicates whether the average basemap color is `light` or `dark`.
  59669. *
  59670. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemes)
  59671. */
  59672. basemapTheme: string;
  59673. }
  59674. export interface TypeSchemeForPointOutline {
  59675. /**
  59676. * The outline color of the marker symbol.
  59677. *
  59678. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForPoint)
  59679. */
  59680. color: Color;
  59681. /**
  59682. * The width of the marker symbol in pixels or points.
  59683. *
  59684. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForPoint)
  59685. */
  59686. width: number;
  59687. }
  59688. export interface TypeSchemeForPolygonOutline {
  59689. /**
  59690. * The outline color of the fill symbol.
  59691. *
  59692. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForPolygon)
  59693. */
  59694. color: Color;
  59695. /**
  59696. * The width of the fill symbol's outline in pixels or points.
  59697. *
  59698. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-symbology-type.html#TypeSchemeForPolygon)
  59699. */
  59700. width: number;
  59701. }
  59702. export interface ActionBase extends Accessor, Identifiable {
  59703. }
  59704. export class ActionBase {
  59705. /**
  59706. * Set this property to `true` to display a spinner icon.
  59707. *
  59708. * @default false
  59709. *
  59710. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionBase.html#active)
  59711. */
  59712. active: boolean;
  59713. /**
  59714. * This adds a CSS class to the [ActionButton's](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionButton.html) node.
  59715. *
  59716. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionBase.html#className)
  59717. */
  59718. className: string;
  59719. /**
  59720. * Indicates whether this action is disabled.
  59721. *
  59722. * @default false
  59723. *
  59724. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionBase.html#disabled)
  59725. */
  59726. disabled: boolean;
  59727. /**
  59728. * The name of the ID assigned to this action.
  59729. *
  59730. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionBase.html#id)
  59731. */
  59732. id: string;
  59733. /**
  59734. * The title of the action.
  59735. *
  59736. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionBase.html#title)
  59737. */
  59738. title: string;
  59739. /**
  59740. * Specifies the type of action.
  59741. *
  59742. * @default null
  59743. *
  59744. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionBase.html#type)
  59745. */
  59746. type: "button" | "slider" | "toggle";
  59747. /**
  59748. * Indicates if the action is visible.
  59749. *
  59750. * @default true
  59751. *
  59752. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionBase.html#visible)
  59753. */
  59754. visible: boolean;
  59755. /**
  59756. * Actions are customizable behavior which can be executed in certain widgets such as [Popups](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html), a [BasemapLayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html), or a [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html).
  59757. *
  59758. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionBase.html)
  59759. */
  59760. constructor(properties?: ActionBaseProperties);
  59761. /**
  59762. * Creates a deep clone of this object.
  59763. *
  59764. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionBase.html#clone)
  59765. */
  59766. clone(): ActionBase;
  59767. }
  59768. /** @deprecated Import the ActionBase class instead. */
  59769. export type ActionBaseConstructor = typeof ActionBase;
  59770. interface ActionBaseProperties {
  59771. /**
  59772. * Set this property to `true` to display a spinner icon.
  59773. *
  59774. * @default false
  59775. *
  59776. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionBase.html#active)
  59777. */
  59778. active?: boolean;
  59779. /**
  59780. * This adds a CSS class to the [ActionButton's](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionButton.html) node.
  59781. *
  59782. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionBase.html#className)
  59783. */
  59784. className?: string;
  59785. /**
  59786. * Indicates whether this action is disabled.
  59787. *
  59788. * @default false
  59789. *
  59790. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionBase.html#disabled)
  59791. */
  59792. disabled?: boolean;
  59793. /**
  59794. * The name of the ID assigned to this action.
  59795. *
  59796. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionBase.html#id)
  59797. */
  59798. id?: string;
  59799. /**
  59800. * The title of the action.
  59801. *
  59802. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionBase.html#title)
  59803. */
  59804. title?: string;
  59805. /**
  59806. * Specifies the type of action.
  59807. *
  59808. * @default null
  59809. *
  59810. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionBase.html#type)
  59811. */
  59812. type?: "button" | "slider" | "toggle";
  59813. /**
  59814. * Indicates if the action is visible.
  59815. *
  59816. * @default true
  59817. *
  59818. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionBase.html#visible)
  59819. */
  59820. visible?: boolean;
  59821. }
  59822. export class ActionButton extends ActionBase {
  59823. /**
  59824. * The URL to an image that will be used to represent the action.
  59825. *
  59826. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionButton.html#image)
  59827. */
  59828. image: string;
  59829. /**
  59830. * Specifies the type of action.
  59831. *
  59832. * @default "button"
  59833. *
  59834. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionButton.html#type)
  59835. */
  59836. readonly type: "button";
  59837. /**
  59838. * A customizable button that performs a specific action(s) used in widgets such as the [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html), [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html), and [BasemapLayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html).
  59839. *
  59840. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionButton.html)
  59841. */
  59842. constructor(properties?: ActionButtonProperties);
  59843. /**
  59844. * Creates a deep clone of this object.
  59845. *
  59846. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionButton.html#clone)
  59847. */
  59848. clone(): ActionButton;
  59849. }
  59850. /** @deprecated Import the ActionButton class instead. */
  59851. export type ActionButtonConstructor = typeof ActionButton;
  59852. interface ActionButtonProperties extends ActionBaseProperties {
  59853. /**
  59854. * The URL to an image that will be used to represent the action.
  59855. *
  59856. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionButton.html#image)
  59857. */
  59858. image?: string;
  59859. }
  59860. export class ActionToggle extends ActionBase {
  59861. /**
  59862. * Specifies the type of action.
  59863. *
  59864. * @default "toggle"
  59865. *
  59866. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionToggle.html#type)
  59867. */
  59868. readonly type: "toggle";
  59869. /**
  59870. * Indicates the value of whether the action is toggled on/off.
  59871. *
  59872. * @default false
  59873. *
  59874. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionToggle.html#value)
  59875. */
  59876. value: boolean;
  59877. /**
  59878. * A customizable toggle used in the [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html) widget that performs a specific action(s) which can be toggled on/off.
  59879. *
  59880. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionToggle.html)
  59881. */
  59882. constructor(properties?: ActionToggleProperties);
  59883. /**
  59884. * Creates a deep clone of this object.
  59885. *
  59886. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionToggle.html#clone)
  59887. */
  59888. clone(): ActionToggle;
  59889. }
  59890. /** @deprecated Import the ActionToggle class instead. */
  59891. export type ActionToggleConstructor = typeof ActionToggle;
  59892. interface ActionToggleProperties extends ActionBaseProperties {
  59893. /**
  59894. * Indicates the value of whether the action is toggled on/off.
  59895. *
  59896. * @default false
  59897. *
  59898. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionToggle.html#value)
  59899. */
  59900. value?: boolean;
  59901. }
  59902. export class LayersMixin {
  59903. /**
  59904. * A collection of operational [layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html).
  59905. *
  59906. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-LayersMixin.html#layers)
  59907. */
  59908. layers: Collection<Layer>;
  59909. /**
  59910. * Adds a layer to the [layers collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-LayersMixin.html#layers).
  59911. *
  59912. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-LayersMixin.html#add)
  59913. */
  59914. add(layer: Layer | Promise<any>, index?: number): void;
  59915. /**
  59916. * Adds a layer or an array of layers to the [layers collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-LayersMixin.html#layers).
  59917. *
  59918. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-LayersMixin.html#addMany)
  59919. */
  59920. addMany(layers: Layer[], index?: number): void;
  59921. /**
  59922. * Returns a layer based on the given layer ID.
  59923. *
  59924. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-LayersMixin.html#findLayerById)
  59925. */
  59926. findLayerById(layerId: string): Layer;
  59927. /**
  59928. * Removes the specified layer from the layers collection.
  59929. *
  59930. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-LayersMixin.html#remove)
  59931. */
  59932. remove(layer: Layer): Layer;
  59933. /**
  59934. * Removes all layers.
  59935. *
  59936. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-LayersMixin.html#removeAll)
  59937. */
  59938. removeAll(): Layer[];
  59939. /**
  59940. * Removes the specified layers.
  59941. *
  59942. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-LayersMixin.html#removeMany)
  59943. */
  59944. removeMany(layers: Layer[]): Layer[];
  59945. /**
  59946. * Changes the layer order.
  59947. *
  59948. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-LayersMixin.html#reorder)
  59949. */
  59950. reorder(layer: Layer, index: number): Layer;
  59951. }
  59952. interface LayersMixinProperties {
  59953. /**
  59954. * A collection of operational [layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html).
  59955. *
  59956. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-LayersMixin.html#layers)
  59957. */
  59958. layers?: CollectionProperties<LayerProperties> | LayerProperties[];
  59959. }
  59960. export interface MapFloorInfo extends Accessor, JSONSupport {
  59961. }
  59962. export class MapFloorInfo {
  59963. /**
  59964. * Contains the facility features of a floor plan, which describe the footprints of managed buildings and other structures.
  59965. *
  59966. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-MapFloorInfo.html#facilityLayer)
  59967. */
  59968. facilityLayer: FacilityLayerInfo;
  59969. /**
  59970. * Contains the level features of a floor plan, which describe the footprint of each occupiable floor contained in a managed facility.
  59971. *
  59972. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-MapFloorInfo.html#levelLayer)
  59973. */
  59974. levelLayer: LevelLayerInfo;
  59975. /**
  59976. * Contains the site features of a floor plan, which describe the boundaries of managed sites and is used for visualization in mapmaking.
  59977. *
  59978. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-MapFloorInfo.html#siteLayer)
  59979. */
  59980. siteLayer: SiteLayerInfo;
  59981. /**
  59982. * Floor-aware maps facilitate visualizing, editing, and analyzing indoor data and they allow for fast navigation of buildings in maps and scenes.
  59983. *
  59984. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-MapFloorInfo.html)
  59985. */
  59986. constructor(properties?: MapFloorInfoProperties);
  59987. static fromJSON(json: any): MapFloorInfo;
  59988. }
  59989. /** @deprecated Import the MapFloorInfo class instead. */
  59990. export type MapFloorInfoConstructor = typeof MapFloorInfo;
  59991. interface MapFloorInfoProperties {
  59992. /**
  59993. * Contains the facility features of a floor plan, which describe the footprints of managed buildings and other structures.
  59994. *
  59995. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-MapFloorInfo.html#facilityLayer)
  59996. */
  59997. facilityLayer?: FacilityLayerInfoProperties;
  59998. /**
  59999. * Contains the level features of a floor plan, which describe the footprint of each occupiable floor contained in a managed facility.
  60000. *
  60001. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-MapFloorInfo.html#levelLayer)
  60002. */
  60003. levelLayer?: LevelLayerInfoProperties;
  60004. /**
  60005. * Contains the site features of a floor plan, which describe the boundaries of managed sites and is used for visualization in mapmaking.
  60006. *
  60007. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-MapFloorInfo.html#siteLayer)
  60008. */
  60009. siteLayer?: SiteLayerInfoProperties;
  60010. }
  60011. /**
  60012. * Various utils for working with [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html) widget functionality.
  60013. *
  60014. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-popupUtils.html)
  60015. */
  60016. interface popupUtils {
  60017. /**
  60018. * Creates an array of [fieldInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-FieldInfo.html) used for populating [FieldsContent](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-FieldsContent.html).
  60019. *
  60020. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-popupUtils.html#createFieldInfos)
  60021. */
  60022. createFieldInfos(config: FieldInfosConfig, options?: CreatePopupTemplateOptions): FieldInfo[];
  60023. /**
  60024. * Creates [fields](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-FieldsContent.html) content used for populating a [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html).
  60025. *
  60026. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-popupUtils.html#createFieldsContent)
  60027. */
  60028. createFieldsContent(config: FieldInfosConfig, options?: CreatePopupTemplateOptions): FieldsContent;
  60029. /**
  60030. * Creates a popup template given the specified [config](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-popupUtils.html#Config) information.
  60031. *
  60032. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-popupUtils.html#createPopupTemplate)
  60033. */
  60034. createPopupTemplate(config: Config, options?: CreatePopupTemplateOptions): PopupTemplate;
  60035. /**
  60036. * Creates a default popup template to use for [FeatureReductionBinning](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionBinning.html) or [FeatureReductionCluster](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html) visualizations.
  60037. *
  60038. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-popupUtils.html#createPopupTemplateForFeatureReduction)
  60039. */
  60040. createPopupTemplateForFeatureReduction(params: popupUtilsCreatePopupTemplateForFeatureReductionParams): PopupTemplate;
  60041. }
  60042. export const popupUtils: popupUtils;
  60043. /**
  60044. * A configuration object containing properties for creating a [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html).
  60045. *
  60046. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-popupUtils.html#Config)
  60047. */
  60048. export interface Config {
  60049. /**
  60050. * The display field.
  60051. *
  60052. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-popupUtils.html#Config)
  60053. */
  60054. displayField?: string;
  60055. /**
  60056. * The title for the [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html).
  60057. *
  60058. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-popupUtils.html#Config)
  60059. */
  60060. title: string;
  60061. /**
  60062. * The fields that record who adds or edits data in the feature service and when the edit is made.
  60063. *
  60064. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-popupUtils.html#Config)
  60065. */
  60066. editFieldsInfo?: EditFieldsInfo;
  60067. /**
  60068. * The fields displayed within the [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html).
  60069. *
  60070. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-popupUtils.html#Config)
  60071. */
  60072. fields: Field[];
  60073. /**
  60074. * The object id field.
  60075. *
  60076. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-popupUtils.html#Config)
  60077. */
  60078. objectIdField?: string;
  60079. }
  60080. /**
  60081. * Options for creating the [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html).
  60082. *
  60083. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-popupUtils.html#CreatePopupTemplateOptions)
  60084. */
  60085. export interface CreatePopupTemplateOptions {
  60086. /**
  60087. * An array of field types to ignore when creating the popup.
  60088. *
  60089. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-popupUtils.html#CreatePopupTemplateOptions)
  60090. */
  60091. ignoreFieldTypes?: string[];
  60092. /**
  60093. * An array of field names set to be visible within the [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html).
  60094. *
  60095. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-popupUtils.html#CreatePopupTemplateOptions)
  60096. */
  60097. visibleFieldNames?: Set<string>;
  60098. }
  60099. /**
  60100. * A configuration object containing field properties for creating [FieldsContent](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-FieldsContent.html) for a [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html).
  60101. *
  60102. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-popupUtils.html#FieldInfosConfig)
  60103. */
  60104. export interface FieldInfosConfig {
  60105. /**
  60106. * The fields that record who adds or edits data in the feature service and when the edit is made.
  60107. *
  60108. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-popupUtils.html#FieldInfosConfig)
  60109. */
  60110. editFieldsInfo?: EditFieldsInfo;
  60111. /**
  60112. * The fields displayed within the [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html).
  60113. *
  60114. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-popupUtils.html#FieldInfosConfig)
  60115. */
  60116. fields: Field[];
  60117. /**
  60118. * The object id field.
  60119. *
  60120. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-popupUtils.html#FieldInfosConfig)
  60121. */
  60122. objectIdField?: string;
  60123. }
  60124. export interface popupUtilsCreatePopupTemplateForFeatureReductionParams {
  60125. /**
  60126. * The FeatureReduction object for which to create a default popup template.
  60127. *
  60128. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-popupUtils.html#createPopupTemplateForFeatureReduction)
  60129. */
  60130. featureReduction: FeatureReductionBinning | FeatureReductionCluster;
  60131. /**
  60132. * The fields of the layer aggregated during the feature reduction process.
  60133. *
  60134. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-popupUtils.html#createPopupTemplateForFeatureReduction)
  60135. */
  60136. fields?: Field[];
  60137. /**
  60138. * The title to display in the popup template.
  60139. *
  60140. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-popupUtils.html#createPopupTemplateForFeatureReduction)
  60141. */
  60142. title?: string;
  60143. }
  60144. export class TablesMixin {
  60145. /**
  60146. * A collection of [layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html) instances that are tables saved in a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) and/or a [WebMap](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html).
  60147. *
  60148. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-TablesMixin.html#tables)
  60149. */
  60150. tables: Collection<Layer>;
  60151. /**
  60152. * Returns a table based on the given table ID.
  60153. *
  60154. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-TablesMixin.html#findTableById)
  60155. */
  60156. findTableById(tableId: string): Layer;
  60157. }
  60158. interface TablesMixinProperties {
  60159. /**
  60160. * A collection of [layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html) instances that are tables saved in a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) and/or a [WebMap](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html).
  60161. *
  60162. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-TablesMixin.html#tables)
  60163. */
  60164. tables?: CollectionProperties<LayerProperties> | LayerProperties[];
  60165. }
  60166. /**
  60167. * Provides utility methods for working with [dates](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date).
  60168. *
  60169. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-timeUtils.html)
  60170. */
  60171. interface timeUtils {
  60172. /**
  60173. * Returns the time extent of all layers.
  60174. *
  60175. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-timeUtils.html#getTimeExtentFromLayers)
  60176. */
  60177. getTimeExtentFromLayers(layers: Layer[] | Collection<Layer>, signal?: AbortSignal): Promise<TimeExtent>;
  60178. }
  60179. export const timeUtils: timeUtils;
  60180. /**
  60181. * A convenience module for importing [Symbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol.html) classes when developing with [TypeScript](https://developers.arcgis.com/javascript/latest/typescript-setup/).
  60182. *
  60183. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html)
  60184. */
  60185. namespace symbols {
  60186. /**
  60187. * CIMSymbol.
  60188. *
  60189. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#CIMSymbol)
  60190. */
  60191. export type CIMSymbol = __esri.CIMSymbol;
  60192. export const CIMSymbol: typeof __esri.CIMSymbol;
  60193. /**
  60194. * ExtrudeSymbol3DLayer.
  60195. *
  60196. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#ExtrudeSymbol3DLayer)
  60197. */
  60198. export type ExtrudeSymbol3DLayer = __esri.ExtrudeSymbol3DLayer;
  60199. export const ExtrudeSymbol3DLayer: typeof __esri.ExtrudeSymbol3DLayer;
  60200. /**
  60201. * FillSymbol3DLayer.
  60202. *
  60203. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#FillSymbol3DLayer)
  60204. */
  60205. export type FillSymbol3DLayer = __esri.FillSymbol3DLayer;
  60206. export const FillSymbol3DLayer: typeof __esri.FillSymbol3DLayer;
  60207. /**
  60208. * WaterSymbol3DLayer.
  60209. *
  60210. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#WaterSymbol3DLayer)
  60211. */
  60212. export type WaterSymbol3DLayer = __esri.WaterSymbol3DLayer;
  60213. export const WaterSymbol3DLayer: typeof __esri.WaterSymbol3DLayer;
  60214. /**
  60215. * Font.
  60216. *
  60217. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#Font)
  60218. */
  60219. export type Font = __esri.Font;
  60220. export const Font: typeof __esri.Font;
  60221. /**
  60222. * IconSymbol3DLayer.
  60223. *
  60224. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#IconSymbol3DLayer)
  60225. */
  60226. export type IconSymbol3DLayer = __esri.IconSymbol3DLayer;
  60227. export const IconSymbol3DLayer: typeof __esri.IconSymbol3DLayer;
  60228. /**
  60229. * LabelSymbol3D.
  60230. *
  60231. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#LabelSymbol3D)
  60232. */
  60233. export type LabelSymbol3D = __esri.LabelSymbol3D;
  60234. export const LabelSymbol3D: typeof __esri.LabelSymbol3D;
  60235. /**
  60236. * LineSymbol3D.
  60237. *
  60238. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#LineSymbol3D)
  60239. */
  60240. export type LineSymbol3D = __esri.LineSymbol3D;
  60241. export const LineSymbol3D: typeof __esri.LineSymbol3D;
  60242. /**
  60243. * LineSymbol3DLayer.
  60244. *
  60245. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#LineSymbol3DLayer)
  60246. */
  60247. export type LineSymbol3DLayer = __esri.LineSymbol3DLayer;
  60248. export const LineSymbol3DLayer: typeof __esri.LineSymbol3DLayer;
  60249. /**
  60250. * MeshSymbol3D.
  60251. *
  60252. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#MeshSymbol3D)
  60253. */
  60254. export type MeshSymbol3D = __esri.MeshSymbol3D;
  60255. export const MeshSymbol3D: typeof __esri.MeshSymbol3D;
  60256. /**
  60257. * ObjectSymbol3DLayer.
  60258. *
  60259. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#ObjectSymbol3DLayer)
  60260. */
  60261. export type ObjectSymbol3DLayer = __esri.ObjectSymbol3DLayer;
  60262. export const ObjectSymbol3DLayer: typeof __esri.ObjectSymbol3DLayer;
  60263. /**
  60264. * PathSymbol3DLayer.
  60265. *
  60266. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#PathSymbol3DLayer)
  60267. */
  60268. export type PathSymbol3DLayer = __esri.PathSymbol3DLayer;
  60269. export const PathSymbol3DLayer: typeof __esri.PathSymbol3DLayer;
  60270. /**
  60271. * PictureFillSymbol.
  60272. *
  60273. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#PictureFillSymbol)
  60274. */
  60275. export type PictureFillSymbol = __esri.PictureFillSymbol;
  60276. export const PictureFillSymbol: typeof __esri.PictureFillSymbol;
  60277. /**
  60278. * PictureMarkerSymbol.
  60279. *
  60280. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#PictureMarkerSymbol)
  60281. */
  60282. export type PictureMarkerSymbol = __esri.PictureMarkerSymbol;
  60283. export const PictureMarkerSymbol: typeof __esri.PictureMarkerSymbol;
  60284. /**
  60285. * PointSymbol3D.
  60286. *
  60287. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#PointSymbol3D)
  60288. */
  60289. export type PointSymbol3D = __esri.PointSymbol3D;
  60290. export const PointSymbol3D: typeof __esri.PointSymbol3D;
  60291. /**
  60292. * PolygonSymbol3D.
  60293. *
  60294. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#PolygonSymbol3D)
  60295. */
  60296. export type PolygonSymbol3D = __esri.PolygonSymbol3D;
  60297. export const PolygonSymbol3D: typeof __esri.PolygonSymbol3D;
  60298. /**
  60299. * SimpleFillSymbol.
  60300. *
  60301. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#SimpleFillSymbol)
  60302. */
  60303. export type SimpleFillSymbol = __esri.SimpleFillSymbol;
  60304. export const SimpleFillSymbol: typeof __esri.SimpleFillSymbol;
  60305. /**
  60306. * SimpleLineSymbol.
  60307. *
  60308. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#SimpleLineSymbol)
  60309. */
  60310. export type SimpleLineSymbol = __esri.SimpleLineSymbol;
  60311. export const SimpleLineSymbol: typeof __esri.SimpleLineSymbol;
  60312. /**
  60313. * SimpleMarkerSymbol.
  60314. *
  60315. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#SimpleMarkerSymbol)
  60316. */
  60317. export type SimpleMarkerSymbol = __esri.SimpleMarkerSymbol;
  60318. export const SimpleMarkerSymbol: typeof __esri.SimpleMarkerSymbol;
  60319. /**
  60320. * TextSymbol.
  60321. *
  60322. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#TextSymbol)
  60323. */
  60324. export type TextSymbol = __esri.TextSymbol;
  60325. export const TextSymbol: typeof __esri.TextSymbol;
  60326. /**
  60327. * TextSymbol3DLayer.
  60328. *
  60329. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#TextSymbol3DLayer)
  60330. */
  60331. export type TextSymbol3DLayer = __esri.TextSymbol3DLayer;
  60332. export const TextSymbol3DLayer: typeof __esri.TextSymbol3DLayer;
  60333. /**
  60334. * WebStyleSymbol.
  60335. *
  60336. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#WebStyleSymbol)
  60337. */
  60338. export type WebStyleSymbol = __esri.WebStyleSymbol;
  60339. export const WebStyleSymbol: typeof __esri.WebStyleSymbol;
  60340. /**
  60341. * FillSymbol types.
  60342. *
  60343. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#FillSymbol)
  60344. */
  60345. export type FillSymbol = __esri.PictureFillSymbol | __esri.SimpleFillSymbol;
  60346. /**
  60347. * MarkerSymbol types.
  60348. *
  60349. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#MarkerSymbol)
  60350. */
  60351. export type MarkerSymbol = __esri.PictureMarkerSymbol | __esri.SimpleMarkerSymbol;
  60352. /**
  60353. * Symbol2D types.
  60354. *
  60355. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#Symbol2D)
  60356. */
  60357. export type Symbol2D = | __esri.PictureFillSymbol
  60358. | __esri.PictureMarkerSymbol
  60359. | __esri.SimpleFillSymbol
  60360. | __esri.SimpleLineSymbol
  60361. | __esri.SimpleMarkerSymbol
  60362. | __esri.TextSymbol
  60363. | __esri.CIMSymbol;
  60364. /**
  60365. * Symbol3DLayer types.
  60366. *
  60367. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#Symbol3DLayer)
  60368. */
  60369. export type Symbol3DLayer = | __esri.ExtrudeSymbol3DLayer
  60370. | __esri.FillSymbol3DLayer
  60371. | __esri.WaterSymbol3DLayer
  60372. | __esri.IconSymbol3DLayer
  60373. | __esri.LineSymbol3DLayer
  60374. | __esri.ObjectSymbol3DLayer
  60375. | __esri.PathSymbol3DLayer
  60376. | __esri.TextSymbol3DLayer
  60377. | __esri.WaterSymbol3DLayer;
  60378. /**
  60379. * Symbol3D types.
  60380. *
  60381. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#Symbol3D)
  60382. */
  60383. export type Symbol3D = | __esri.LabelSymbol3D
  60384. | __esri.LineSymbol3D
  60385. | __esri.MeshSymbol3D
  60386. | __esri.PointSymbol3D
  60387. | __esri.PolygonSymbol3D;
  60388. /**
  60389. * Symbol2D3D types.
  60390. *
  60391. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#Symbol2D3D)
  60392. */
  60393. export type Symbol2D3D = __esri.Symbol2D | __esri.symbolsSymbol3D;
  60394. /**
  60395. * Symbol types.
  60396. *
  60397. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#Symbol)
  60398. */
  60399. export type Symbol = __esri.Symbol2D3D | __esri.WebStyleSymbol;
  60400. }
  60401. export interface Callout3D extends Accessor, JSONSupport {
  60402. }
  60403. export class Callout3D {
  60404. /**
  60405. * When symbols have an offset from their position, it's important to still see what the real location is.
  60406. *
  60407. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-callouts-Callout3D.html)
  60408. */
  60409. constructor(properties?: Callout3DProperties);
  60410. /**
  60411. * Creates a deep clone of the callout.
  60412. *
  60413. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-callouts-Callout3D.html#clone)
  60414. */
  60415. clone(): Callout3D;
  60416. static fromJSON(json: any): Callout3D;
  60417. }
  60418. /** @deprecated Import the Callout3D class instead. */
  60419. export type Callout3DConstructor = typeof Callout3D;
  60420. interface Callout3DProperties {
  60421. }
  60422. export class LineCallout3D extends Callout3D {
  60423. /**
  60424. * The border settings of the callout line.
  60425. *
  60426. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-callouts-LineCallout3D.html#border)
  60427. */
  60428. border: LineCallout3DBorder;
  60429. /**
  60430. * The color of the callout line.
  60431. *
  60432. * @default black
  60433. *
  60434. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-callouts-LineCallout3D.html#color)
  60435. */
  60436. color: Color;
  60437. /**
  60438. * The width of the callout line in points.
  60439. *
  60440. * @default 1px
  60441. *
  60442. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-callouts-LineCallout3D.html#size)
  60443. */
  60444. size: number;
  60445. type: "line";
  60446. /**
  60447. * This type of callout displays a line to connect a symbol or a label with its actual location in the scene.
  60448. *
  60449. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-callouts-LineCallout3D.html)
  60450. */
  60451. constructor(properties?: LineCallout3DProperties);
  60452. /**
  60453. * Creates a deep clone of the callout.
  60454. *
  60455. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-callouts-LineCallout3D.html#clone)
  60456. */
  60457. clone(): LineCallout3D;
  60458. static fromJSON(json: any): LineCallout3D;
  60459. }
  60460. /** @deprecated Import the LineCallout3D class instead. */
  60461. export type LineCallout3DConstructor = typeof LineCallout3D;
  60462. interface LineCallout3DProperties extends Callout3DProperties {
  60463. /**
  60464. * The border settings of the callout line.
  60465. *
  60466. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-callouts-LineCallout3D.html#border)
  60467. */
  60468. border?: LineCallout3DBorderProperties;
  60469. /**
  60470. * The color of the callout line.
  60471. *
  60472. * @default black
  60473. *
  60474. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-callouts-LineCallout3D.html#color)
  60475. */
  60476. color?: Color | number[] | string;
  60477. /**
  60478. * The width of the callout line in points.
  60479. *
  60480. * @default 1px
  60481. *
  60482. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-callouts-LineCallout3D.html#size)
  60483. */
  60484. size?: number | string;
  60485. type?: "line";
  60486. }
  60487. export interface LineCallout3DBorderProperties {
  60488. /**
  60489. * The color of the callout line border.
  60490. *
  60491. * @default white
  60492. *
  60493. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-callouts-LineCallout3D.html#border)
  60494. */
  60495. color?: Color | number[] | string;
  60496. }
  60497. export interface LineCallout3DBorder extends AnonymousAccessor {
  60498. /**
  60499. * The color of the callout line border.
  60500. *
  60501. * @default white
  60502. *
  60503. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-callouts-LineCallout3D.html#border)
  60504. */
  60505. color?: Color;
  60506. }
  60507. export class CIMSymbol extends Symbol {
  60508. /**
  60509. * The JSON payload of the [CIMSymbolReference](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMSymbolReference).
  60510. *
  60511. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#data)
  60512. */
  60513. data: CIMSymbolReference;
  60514. /**
  60515. * The symbol type.
  60516. *
  60517. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#type)
  60518. */
  60519. readonly type: "cim";
  60520. /**
  60521. * CIMSymbols are high quality, scalable, multi-layer vector symbols for features and graphics.
  60522. *
  60523. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html)
  60524. */
  60525. constructor(properties?: CIMSymbolProperties);
  60526. /**
  60527. * Creates a deep clone of the symbol.
  60528. *
  60529. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#clone)
  60530. */
  60531. clone(): CIMSymbol;
  60532. static fromJSON(json: any): CIMSymbol;
  60533. }
  60534. /** @deprecated Import the CIMSymbol class instead. */
  60535. export type CIMSymbolConstructor = typeof CIMSymbol;
  60536. interface CIMSymbolProperties extends SymbolProperties {
  60537. /**
  60538. * The JSON payload of the [CIMSymbolReference](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMSymbolReference).
  60539. *
  60540. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#data)
  60541. */
  60542. data?: CIMSymbolReference;
  60543. }
  60544. /**
  60545. * Represents animated symbol properties, a collection of symbol properties that apply when the symbol layer has animation data.
  60546. *
  60547. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMAnimatedSymbolProperties)
  60548. */
  60549. export interface CIMAnimatedSymbolProperties {
  60550. /**
  60551. * Indicates whether the animated symbol should play its animation.
  60552. *
  60553. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMAnimatedSymbolProperties)
  60554. */
  60555. playAnimation?: boolean;
  60556. /**
  60557. * Indicates whether the animated symbol should play back in reverse.
  60558. *
  60559. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMAnimatedSymbolProperties)
  60560. */
  60561. reverseAnimation?: boolean;
  60562. /**
  60563. * Indicates whether to generate a randomized start offset in seconds to apply to the symbol animation of each feature.
  60564. *
  60565. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMAnimatedSymbolProperties)
  60566. */
  60567. randomizeStartTime?: boolean;
  60568. /**
  60569. * The starting value for generating a random number.
  60570. *
  60571. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMAnimatedSymbolProperties)
  60572. */
  60573. randomizeStartSeed?: number;
  60574. /**
  60575. * The time offset in seconds to use as the starting point of the symbol animation.
  60576. *
  60577. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMAnimatedSymbolProperties)
  60578. */
  60579. startTimeOffset?: number;
  60580. /**
  60581. * The time (in seconds) it take to play through the symbol's animation once.
  60582. *
  60583. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMAnimatedSymbolProperties)
  60584. */
  60585. duration?: number;
  60586. /**
  60587. * Determines how to repeat the animation of a symbol when the animation cycle ends.
  60588. *
  60589. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMAnimatedSymbolProperties)
  60590. */
  60591. repeatType?: "None" | "Loop" | "Oscillate";
  60592. /**
  60593. * The number of seconds to delay before repeating an animation cycle.
  60594. *
  60595. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMAnimatedSymbolProperties)
  60596. */
  60597. repeatDelay?: number;
  60598. }
  60599. /**
  60600. * Represents color substitution, an ordered list of color substitutes.
  60601. *
  60602. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMColorSubstitution)
  60603. */
  60604. export interface CIMColorSubstitution {
  60605. /**
  60606. * The old color (the color that will be substituted).
  60607. *
  60608. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMColorSubstitution)
  60609. */
  60610. oldColor: number[];
  60611. /**
  60612. * The new color that will replace the old color.
  60613. *
  60614. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMColorSubstitution)
  60615. */
  60616. newColor: number[];
  60617. }
  60618. /**
  60619. * Represents a geometric effect.
  60620. *
  60621. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffect)
  60622. */
  60623. export type CIMGeometricEffect = | CIMGeometricEffectArrow
  60624. | CIMGeometricEffectBuffer
  60625. | CIMGeometricEffectControlMeasureLine
  60626. | CIMGeometricEffectCut
  60627. | CIMGeometricEffectDashes
  60628. | CIMGeometricEffectJog
  60629. | CIMGeometricEffectMove
  60630. | CIMGeometricEffectOffset
  60631. | CIMGeometricEffectRotate
  60632. | CIMGeometricEffectScale
  60633. | CIMGeometricEffectWave;
  60634. /**
  60635. * Represents the arrow geometric effect which creates a dynamic line along a line feature with an arrow of a specified arrow type and width.
  60636. *
  60637. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectArrow)
  60638. */
  60639. export interface CIMGeometricEffectArrow {
  60640. type: "CIMGeometricEffectArrow";
  60641. /**
  60642. * The primitive name.
  60643. *
  60644. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectArrow)
  60645. */
  60646. primitiveName?: string;
  60647. /**
  60648. * The type of arrow to be displayed.
  60649. *
  60650. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectArrow)
  60651. */
  60652. geometricEffectArrowType: "OpenEnded" | "Block" | "Crossed";
  60653. /**
  60654. * The distance between the lines that construct the body of the arrow.
  60655. *
  60656. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectArrow)
  60657. */
  60658. width: number;
  60659. }
  60660. /**
  60661. * Represents the buffer geometric effect which creates a dynamic polygon with a specified distance around features.
  60662. *
  60663. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectBuffer)
  60664. */
  60665. export interface CIMGeometricEffectBuffer {
  60666. type: "CIMGeometricEffectBuffer";
  60667. /**
  60668. * The primitive name.
  60669. *
  60670. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectBuffer)
  60671. */
  60672. primitiveName?: string;
  60673. /**
  60674. * The distance from the feature.
  60675. *
  60676. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectBuffer)
  60677. */
  60678. size: number;
  60679. }
  60680. /**
  60681. * Represents the control measure line geometric effect.
  60682. *
  60683. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectControlMeasureLine)
  60684. */
  60685. export interface CIMGeometricEffectControlMeasureLine {
  60686. type: "CIMGeometricEffectControlMeasureLine";
  60687. /**
  60688. * The primitive name.
  60689. *
  60690. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectControlMeasureLine)
  60691. */
  60692. primitiveName?: string;
  60693. /**
  60694. * The style of effect.
  60695. *
  60696. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectControlMeasureLine)
  60697. */
  60698. rule: string;
  60699. }
  60700. /**
  60701. * Represents the cut geometric effect which creates a dynamic line that is shorter on one or both ends than the line feature or polygon outline.
  60702. *
  60703. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectCut)
  60704. */
  60705. export interface CIMGeometricEffectCut {
  60706. type: "CIMGeometricEffectCut";
  60707. /**
  60708. * The primitive name.
  60709. *
  60710. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectCut)
  60711. */
  60712. primitiveName?: string;
  60713. /**
  60714. * The distance from the beginning of a line that the display of the stroke starts.
  60715. *
  60716. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectCut)
  60717. */
  60718. beginCut?: number;
  60719. /**
  60720. * The distance from the end of a line that the display of the stroke ends.
  60721. *
  60722. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectCut)
  60723. */
  60724. endCut?: number;
  60725. /**
  60726. * The distance around the middle of a line that the display of the stroke is interrupted.
  60727. *
  60728. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectCut)
  60729. */
  60730. middleCut?: number;
  60731. /**
  60732. * A value indicating whether the effect should be applied in the opposite manner.
  60733. *
  60734. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectCut)
  60735. */
  60736. invert?: boolean;
  60737. }
  60738. /**
  60739. * Represents the dashes geometric effect which creates a dynamic multipart line geometry from a line feature or the outline of a polygon based on a template.
  60740. *
  60741. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectDashes)
  60742. */
  60743. export interface CIMGeometricEffectDashes {
  60744. type: "CIMGeometricEffectDashes";
  60745. /**
  60746. * The primitive name.
  60747. *
  60748. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectDashes)
  60749. */
  60750. primitiveName?: string;
  60751. /**
  60752. * Where the pattern should end relative to the ending point of the geometry.
  60753. *
  60754. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectDashes)
  60755. */
  60756. customEndingOffset?: number;
  60757. /**
  60758. * The distance for each dash and gap.
  60759. *
  60760. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectDashes)
  60761. */
  60762. dashTemplate: number[];
  60763. /**
  60764. * The setting which determines how the strokes with dash patterns are handled at the end points of the line geometry's segments.
  60765. *
  60766. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectDashes)
  60767. */
  60768. lineDashEnding: "NoConstraint" | "HalfPattern" | "HalfGap" | "FullPattern" | "FullGap" | "Custom";
  60769. /**
  60770. * The position where the pattern should begin relative to the starting point of the geometry.
  60771. *
  60772. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectDashes)
  60773. */
  60774. offsetAlongLine: number;
  60775. }
  60776. /**
  60777. * Represents the jog geometric effect which creates a dynamic line with a jog of a specified angle, position, and width in the line.
  60778. *
  60779. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectJog)
  60780. */
  60781. export interface CIMGeometricEffectJog {
  60782. type: "CIMGeometricEffectJog";
  60783. /**
  60784. * The primitive name.
  60785. *
  60786. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectJog)
  60787. */
  60788. primitiveName?: string;
  60789. /**
  60790. * The angle of the job in the line which is measured in degrees.
  60791. *
  60792. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectJog)
  60793. */
  60794. angle: number;
  60795. /**
  60796. * The length of the segment that forms the jog in the line.
  60797. *
  60798. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectJog)
  60799. */
  60800. length: number;
  60801. /**
  60802. * The location of the center of the jog, as a percentage measured from the start of the input geometry.
  60803. *
  60804. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectJog)
  60805. */
  60806. position: number;
  60807. }
  60808. /**
  60809. * Represents the move geometric effect which creates a point, line or polygon that is offset a specified distance in X and Y.
  60810. *
  60811. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectMove)
  60812. */
  60813. export interface CIMGeometricEffectMove {
  60814. type: "CIMGeometricEffectMove";
  60815. /**
  60816. * The primitive name.
  60817. *
  60818. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectMove)
  60819. */
  60820. primitiveName?: string;
  60821. /**
  60822. * The distance to move the symbol along the X-axis of the feature geometry.
  60823. *
  60824. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectMove)
  60825. */
  60826. offsetX?: number;
  60827. /**
  60828. * The distance to move the symbol along the Y-axis of the feature geometry.
  60829. *
  60830. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectMove)
  60831. */
  60832. offsetY?: number;
  60833. }
  60834. /**
  60835. * Represents the offset geometric effect which creates a dynamic line or polygon offset at a specified distance perpendicularly from a feature.
  60836. *
  60837. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectOffset)
  60838. */
  60839. export interface CIMGeometricEffectOffset {
  60840. type: "CIMGeometricEffectOffset";
  60841. /**
  60842. * The primitive name.
  60843. *
  60844. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectOffset)
  60845. */
  60846. primitiveName?: string;
  60847. /**
  60848. * The way strokes or fills are displayed at corners.
  60849. *
  60850. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectOffset)
  60851. */
  60852. method: "Mitered" | "Bevelled" | "Rounded" | "Square";
  60853. /**
  60854. * The distance of the symbol perpendicular to the feature geometry.
  60855. *
  60856. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectOffset)
  60857. */
  60858. offset: number;
  60859. /**
  60860. * The way the symbol handles complex geometries.
  60861. *
  60862. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectOffset)
  60863. */
  60864. option: "Fast" | "Accurate";
  60865. }
  60866. /**
  60867. * Represents the rotate geometric effect which creates a dynamic line or polygon rotated a specified angle from the feature.
  60868. *
  60869. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectRotate)
  60870. */
  60871. export interface CIMGeometricEffectRotate {
  60872. type: "CIMGeometricEffectRotate";
  60873. /**
  60874. * The primitive name.
  60875. *
  60876. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectRotate)
  60877. */
  60878. primitiveName?: string;
  60879. /**
  60880. * The amount of rotation for the symbol.
  60881. *
  60882. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectRotate)
  60883. */
  60884. angle: number;
  60885. }
  60886. /**
  60887. * Represents the rotate geometric effect which creates a dynamic line or polygon scaled by a specified factor.
  60888. *
  60889. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectScale)
  60890. */
  60891. export interface CIMGeometricEffectScale {
  60892. type: "CIMGeometricEffectScale";
  60893. /**
  60894. * The primitive name.
  60895. *
  60896. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectScale)
  60897. */
  60898. primitiveName?: string;
  60899. /**
  60900. * The amount of change in size of a symbol in the x-axis.
  60901. *
  60902. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectScale)
  60903. */
  60904. XScaleFactor: number;
  60905. /**
  60906. * The amount of change in size of a symbol in the x-axis.
  60907. *
  60908. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectScale)
  60909. */
  60910. YScaleFactor: number;
  60911. }
  60912. /**
  60913. * Represents the wave geometric effect which creates a dynamic line or polygon along a feature with a repeating wave pattern.
  60914. *
  60915. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectWave)
  60916. */
  60917. export interface CIMGeometricEffectWave {
  60918. type: "CIMGeometricEffectWave";
  60919. /**
  60920. * The primitive name.
  60921. *
  60922. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectWave)
  60923. */
  60924. primitiveName?: string;
  60925. /**
  60926. * The distance perpendicular to a feature to display the curves for the symbol.
  60927. *
  60928. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectWave)
  60929. */
  60930. amplitude: number;
  60931. /**
  60932. * The distance along the line or polygon to display the curves for the symbol.
  60933. *
  60934. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectWave)
  60935. */
  60936. period: number;
  60937. /**
  60938. * The starting value for generating a random number.
  60939. *
  60940. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectWave)
  60941. */
  60942. seed?: number;
  60943. /**
  60944. * The shape of the curves to be displayed along the symbol.
  60945. *
  60946. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMGeometricEffectWave)
  60947. */
  60948. waveform: "Sinus" | "Square" | "Triangle" | "Random";
  60949. }
  60950. /**
  60951. * Represents a hatch fill which fills polygonal geometry with a uniform series of parallel line symbols.
  60952. *
  60953. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMHatchFill)
  60954. */
  60955. export interface CIMHatchFill {
  60956. type: "CIMHatchFill";
  60957. /**
  60958. * The geometric effects applied to the symbol layer.
  60959. *
  60960. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMHatchFill)
  60961. */
  60962. effects?: CIMGeometricEffect[];
  60963. /**
  60964. * A value indicating whether the symbol layer is visible.
  60965. *
  60966. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMHatchFill)
  60967. */
  60968. enable: boolean;
  60969. /**
  60970. * A value indicating whether the color can be changed for this symbol layer.
  60971. *
  60972. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMHatchFill)
  60973. */
  60974. colorLocked?: boolean;
  60975. /**
  60976. * The primitive name of the symbol.
  60977. *
  60978. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMHatchFill)
  60979. */
  60980. primitiveName?: string;
  60981. /**
  60982. * The line symbol that is used to draw the hatch lines in the fill.
  60983. *
  60984. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMHatchFill)
  60985. */
  60986. lineSymbol: CIMLineSymbol;
  60987. /**
  60988. * How much to move the stroke to a new X-position.
  60989. *
  60990. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMHatchFill)
  60991. */
  60992. offsetX?: number;
  60993. /**
  60994. * How much to move the stroke to a new Y-position.
  60995. *
  60996. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMHatchFill)
  60997. */
  60998. offsetY?: number;
  60999. /**
  61000. * The angle of rotation for all the strokes, in degrees.
  61001. *
  61002. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMHatchFill)
  61003. */
  61004. rotation?: number;
  61005. /**
  61006. * The distance between the line symbols in the hatch pattern.
  61007. *
  61008. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMHatchFill)
  61009. */
  61010. separation: number;
  61011. }
  61012. /**
  61013. * Represents a line symbol used to draw polyline features and graphics.
  61014. *
  61015. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMLineSymbol)
  61016. */
  61017. export interface CIMLineSymbol {
  61018. type: "CIMLineSymbol";
  61019. /**
  61020. * The symbol layers.
  61021. *
  61022. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMLineSymbol)
  61023. */
  61024. symbolLayers: CIMSymbolLayer[];
  61025. /**
  61026. * The geometric effects applied to the symbol.
  61027. *
  61028. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMLineSymbol)
  61029. */
  61030. effects?: CIMGeometricEffect[];
  61031. /**
  61032. * A value indicating whether the symbol size properties are rendered using real world units or page units.
  61033. *
  61034. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMLineSymbol)
  61035. */
  61036. useRealWorldSymbolSizes?: boolean;
  61037. }
  61038. /**
  61039. * Represents a marker graphic which is used to define vector graphics in a vector marker.
  61040. *
  61041. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerGraphic)
  61042. */
  61043. export interface CIMMarkerGraphic {
  61044. type: "CIMMarkerGraphic";
  61045. /**
  61046. * The geometry of the marker.
  61047. *
  61048. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerGraphic)
  61049. */
  61050. geometry: any;
  61051. /**
  61052. * The symbol used to draw the marker graphic.
  61053. *
  61054. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerGraphic)
  61055. */
  61056. symbol: CIMPointSymbol | CIMLineSymbol | CIMPolygonSymbol | CIMTextSymbol;
  61057. /**
  61058. * The text that is defined within the marker if drawn with a text symbol.
  61059. *
  61060. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerGraphic)
  61061. */
  61062. textString?: string;
  61063. /**
  61064. * The primitive name.
  61065. *
  61066. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerGraphic)
  61067. */
  61068. primitiveName?: string;
  61069. }
  61070. /**
  61071. * Represents marker placement along the line which places markers that are the same size evenly along a line or polygon outline.
  61072. *
  61073. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementAlongLineSameSize)
  61074. */
  61075. export interface CIMMarkerPlacementAlongLineSameSize {
  61076. type: "CIMMarkerPlacementAlongLineSameSize";
  61077. /**
  61078. * The primitive name.
  61079. *
  61080. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementAlongLineSameSize)
  61081. */
  61082. primitiveName?: string;
  61083. /**
  61084. * A value indicating whether to consider individual geometry parts or the whole geometry.
  61085. *
  61086. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementAlongLineSameSize)
  61087. */
  61088. placePerPart?: boolean;
  61089. /**
  61090. * A value indicating whether to angle the marker to the line.
  61091. *
  61092. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementAlongLineSameSize)
  61093. */
  61094. angleToLine?: boolean;
  61095. /**
  61096. * The offset.
  61097. *
  61098. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementAlongLineSameSize)
  61099. */
  61100. offset?: number;
  61101. /**
  61102. * Where the pattern should end relative to the ending point of the geometry.
  61103. *
  61104. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementAlongLineSameSize)
  61105. */
  61106. customEndingOffset?: number;
  61107. /**
  61108. * How markers are placed at the end points of a line.
  61109. *
  61110. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementAlongLineSameSize)
  61111. */
  61112. endings?: "NoConstraint" | "WithMarkers" | "WithFullGap" | "WithHalfGap" | "Custom";
  61113. /**
  61114. * Where the pattern should begin relative to the starting point of the geometry.
  61115. *
  61116. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementAlongLineSameSize)
  61117. */
  61118. offsetAlongLine?: number;
  61119. /**
  61120. * The numeric pattern that defines the sequence of placed markers and the length of space between them.
  61121. *
  61122. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementAlongLineSameSize)
  61123. */
  61124. placementTemplate: number[];
  61125. }
  61126. /**
  61127. * Represents marker placement at extremities which places markers at only one or both endpoints of a line.
  61128. *
  61129. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementAtExtremities)
  61130. */
  61131. export interface CIMMarkerPlacementAtExtremities {
  61132. type: "CIMMarkerPlacementAtExtremities";
  61133. /**
  61134. * The primitive name.
  61135. *
  61136. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementAtExtremities)
  61137. */
  61138. primitiveName?: string;
  61139. /**
  61140. * A value indicating whether to consider individual geometry parts or the whole geometry.
  61141. *
  61142. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementAtExtremities)
  61143. */
  61144. placePerPart?: boolean;
  61145. /**
  61146. * A value indicating whether to angle the marker to the line.
  61147. *
  61148. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementAtExtremities)
  61149. */
  61150. angleToLine?: boolean;
  61151. /**
  61152. * The offset.
  61153. *
  61154. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementAtExtremities)
  61155. */
  61156. offset?: number;
  61157. /**
  61158. * Which ends of the line a marker will be placed.
  61159. *
  61160. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementAtExtremities)
  61161. */
  61162. extremityPlacement?: "Both" | "JustBegin" | "JustEnd" | "None";
  61163. /**
  61164. * The distance from the ends of a line that the marker will be placed.
  61165. *
  61166. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementAtExtremities)
  61167. */
  61168. offsetAlongLine?: number;
  61169. }
  61170. /**
  61171. * Represents marker placement at ratio positions which places a set number of markers along the line or the outline of a polygon.
  61172. *
  61173. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementAtRatioPositions)
  61174. */
  61175. export interface CIMMarkerPlacementAtRatioPositions {
  61176. type: "CIMMarkerPlacementAtRatioPositions";
  61177. /**
  61178. * The primitive name.
  61179. *
  61180. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementAtRatioPositions)
  61181. */
  61182. primitiveName?: string;
  61183. /**
  61184. * A value indicating whether to consider individual geometry parts or the whole geometry.
  61185. *
  61186. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementAtRatioPositions)
  61187. */
  61188. placePerPart?: boolean;
  61189. /**
  61190. * A value indicating whether to angle the marker to the line.
  61191. *
  61192. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementAtRatioPositions)
  61193. */
  61194. angleToLine?: boolean;
  61195. /**
  61196. * The offset.
  61197. *
  61198. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementAtRatioPositions)
  61199. */
  61200. offset?: number;
  61201. /**
  61202. * The distance from the beginning of a line that the marker will be placed.
  61203. *
  61204. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementAtRatioPositions)
  61205. */
  61206. beginPosition?: number;
  61207. /**
  61208. * The distance from the end of a line that the marker will be placed.
  61209. *
  61210. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementAtRatioPositions)
  61211. */
  61212. endPosition?: number;
  61213. /**
  61214. * A value indicating whether only the first marker will be rotated 180 degrees.
  61215. *
  61216. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementAtRatioPositions)
  61217. */
  61218. flipFirst?: boolean;
  61219. /**
  61220. * The array of positions.
  61221. *
  61222. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementAtRatioPositions)
  61223. */
  61224. positionArray: number[];
  61225. }
  61226. /**
  61227. * Represents marker placement inside a polygon which defines how a polygon is filled with a pattern of markers.
  61228. *
  61229. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementInsidePolygon)
  61230. */
  61231. export interface CIMMarkerPlacementInsidePolygon {
  61232. type: "CIMMarkerPlacementInsidePolygon";
  61233. /**
  61234. * The primitive name.
  61235. *
  61236. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementInsidePolygon)
  61237. */
  61238. primitiveName?: string;
  61239. /**
  61240. * A value indicating whether to consider individual geometry parts or the whole geometry.
  61241. *
  61242. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementInsidePolygon)
  61243. */
  61244. placePerPart?: boolean;
  61245. /**
  61246. * The orientation angle that the markers are placed on within the polygon.
  61247. *
  61248. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementInsidePolygon)
  61249. */
  61250. gridAngle?: number;
  61251. /**
  61252. * The grid type which defines how markers are placed.
  61253. *
  61254. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementInsidePolygon)
  61255. */
  61256. gridType?: "Fixed" | "Random";
  61257. /**
  61258. * The marker row offset horizontally.
  61259. *
  61260. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementInsidePolygon)
  61261. */
  61262. offsetX?: number;
  61263. /**
  61264. * The marker row offset vertically.
  61265. *
  61266. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementInsidePolygon)
  61267. */
  61268. offsetY?: number;
  61269. /**
  61270. * A value indicating whether every other row of markers should be shifted to create an offset grid.
  61271. *
  61272. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementInsidePolygon)
  61273. */
  61274. shiftOddRows?: boolean;
  61275. /**
  61276. * The distance between each marker on the X-axis of the grid.
  61277. *
  61278. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementInsidePolygon)
  61279. */
  61280. stepX?: number;
  61281. /**
  61282. * The distance between each marker on the Y-axis of the grid.
  61283. *
  61284. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementInsidePolygon)
  61285. */
  61286. stepY?: number;
  61287. /**
  61288. * _Since 4.24_ A percentage that determines the randomness of markers within the polygon.
  61289. *
  61290. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementInsidePolygon)
  61291. */
  61292. randomness?: number;
  61293. /**
  61294. * _Since 4.24_ The starting value for generating a random pattern.
  61295. *
  61296. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementInsidePolygon)
  61297. */
  61298. seed?: number;
  61299. /**
  61300. * The clipping option which specifies how markers should be clipped at the polygon boundary.
  61301. *
  61302. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementInsidePolygon)
  61303. */
  61304. clipping?: "ClipAtBoundary";
  61305. }
  61306. /**
  61307. * Represents a marker placement on the line.
  61308. *
  61309. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementOnLine)
  61310. */
  61311. export interface CIMMarkerPlacementOnLine {
  61312. type: "CIMMarkerPlacementOnLine";
  61313. /**
  61314. * The primitive name.
  61315. *
  61316. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementOnLine)
  61317. */
  61318. primitiveName?: string;
  61319. /**
  61320. * A value indicating whether to consider individual geometry parts or the whole geometry.
  61321. *
  61322. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementOnLine)
  61323. */
  61324. placePerPart?: boolean;
  61325. /**
  61326. * A value indicating whether to angle the marker to the line.
  61327. *
  61328. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementOnLine)
  61329. */
  61330. angleToLine?: boolean;
  61331. /**
  61332. * The offset.
  61333. *
  61334. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementOnLine)
  61335. */
  61336. offset?: number;
  61337. /**
  61338. * The location on a line where a marker will be placed.
  61339. *
  61340. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementOnLine)
  61341. */
  61342. relativeTo: "LineMiddle" | "LineBeginning" | "LineEnd" | "SegmentMidpoint";
  61343. /**
  61344. * The distances from a specified location on a line that a marker will be placed.
  61345. *
  61346. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementOnLine)
  61347. */
  61348. startPointOffset?: number;
  61349. }
  61350. /**
  61351. * Represents a marker placement on vertices which places a single marker on a line or polygon outline at a set distance from the middle or one of the endpoints.
  61352. *
  61353. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementOnVertices)
  61354. */
  61355. export interface CIMMarkerPlacementOnVertices {
  61356. type: "CIMMarkerPlacementOnVertices";
  61357. /**
  61358. * The primitive name.
  61359. *
  61360. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementOnVertices)
  61361. */
  61362. primitiveName?: string;
  61363. /**
  61364. * A value indicating whether to consider individual geometry parts or the whole geometry.
  61365. *
  61366. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementOnVertices)
  61367. */
  61368. placePerPart?: boolean;
  61369. /**
  61370. * A value indicating whether to angle the marker to the line.
  61371. *
  61372. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementOnVertices)
  61373. */
  61374. angleToLine?: boolean;
  61375. /**
  61376. * The offset.
  61377. *
  61378. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementOnVertices)
  61379. */
  61380. offset?: number;
  61381. /**
  61382. * A value indicating whether a marker will be placed on the control points of the line.
  61383. *
  61384. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementOnVertices)
  61385. */
  61386. placeOnControlPoints?: boolean;
  61387. /**
  61388. * A value indicating whether a marker will be placed on the endpoints of the line.
  61389. *
  61390. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementOnVertices)
  61391. */
  61392. placeOnEndPoints?: boolean;
  61393. /**
  61394. * A value indicating whether a marker will be placed on the vertices of the line.
  61395. *
  61396. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementOnVertices)
  61397. */
  61398. placeOnRegularVertices?: boolean;
  61399. }
  61400. /**
  61401. * Represents marker placement polygon center which defines how a single marker will be placed within the polygon.
  61402. *
  61403. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementPolygonCenter)
  61404. */
  61405. export interface CIMMarkerPlacementPolygonCenter {
  61406. type: "CIMMarkerPlacementPolygonCenter";
  61407. /**
  61408. * The primitive name.
  61409. *
  61410. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementPolygonCenter)
  61411. */
  61412. primitiveName?: string;
  61413. /**
  61414. * A value indicating whether to consider individual geometry parts or the whole geometry.
  61415. *
  61416. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementPolygonCenter)
  61417. */
  61418. placePerPart?: boolean;
  61419. /**
  61420. * The method used to determine the polygon center.
  61421. *
  61422. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementPolygonCenter)
  61423. */
  61424. method?: "OnPolygon" | "CenterOfMass" | "BoundingBoxCenter";
  61425. /**
  61426. * The value which offsets the marker horizontally from the center.
  61427. *
  61428. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementPolygonCenter)
  61429. */
  61430. offsetX?: number;
  61431. /**
  61432. * The value which offsets the marker vertically from the center.
  61433. *
  61434. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementPolygonCenter)
  61435. */
  61436. offsetY?: number;
  61437. /**
  61438. * A value indicating whether the marker should be clipped if it extends pasts the boundary of the polygon.
  61439. *
  61440. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMMarkerPlacementPolygonCenter)
  61441. */
  61442. clipAtBoundary?: boolean;
  61443. }
  61444. /**
  61445. * Represents a picture fill which fills polygonal geometry with a picture.
  61446. *
  61447. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureFill)
  61448. */
  61449. export interface CIMPictureFill {
  61450. type: "CIMPictureFill";
  61451. /**
  61452. * The geometric effects applied to the symbol layer.
  61453. *
  61454. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureFill)
  61455. */
  61456. effects?: CIMGeometricEffect[];
  61457. /**
  61458. * A value indicating whether the symbol layer is visible.
  61459. *
  61460. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureFill)
  61461. */
  61462. enable: boolean;
  61463. /**
  61464. * A value indicating whether the color can be changed for this symbol layer.
  61465. *
  61466. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureFill)
  61467. */
  61468. colorLocked?: boolean;
  61469. /**
  61470. * The primitive name of the symbol.
  61471. *
  61472. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureFill)
  61473. */
  61474. primitiveName?: string;
  61475. /**
  61476. * The url of the image.
  61477. *
  61478. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureFill)
  61479. */
  61480. url: string;
  61481. /**
  61482. * The distance that the image is offset in the horizontal direction.
  61483. *
  61484. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureFill)
  61485. */
  61486. offsetX?: number;
  61487. /**
  61488. * The distance that the image is offset in the vertical direction.
  61489. *
  61490. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureFill)
  61491. */
  61492. offsetY?: number;
  61493. /**
  61494. * The angle of the image within the fill.
  61495. *
  61496. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureFill)
  61497. */
  61498. rotation?: number;
  61499. /**
  61500. * The width of the symbol without changing the height, as a ratio.
  61501. *
  61502. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureFill)
  61503. */
  61504. scaleX?: number;
  61505. /**
  61506. * The height of the image.
  61507. *
  61508. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureFill)
  61509. */
  61510. height?: number;
  61511. /**
  61512. * The color substitutions which allows colors in the image to be substituted with a different color.
  61513. *
  61514. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureFill)
  61515. */
  61516. colorSubstitutions?: CIMColorSubstitution[];
  61517. /**
  61518. * The color that is applied as a tint to the image.
  61519. *
  61520. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureFill)
  61521. */
  61522. tintColor?: number[];
  61523. }
  61524. /**
  61525. * Represents a picture marker created from a raster (bitmapped) image file.
  61526. *
  61527. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureMarker)
  61528. */
  61529. export interface CIMPictureMarker {
  61530. type: "CIMPictureMarker";
  61531. /**
  61532. * A value indicating whether the symbol layer is visible.
  61533. *
  61534. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureMarker)
  61535. */
  61536. enable: boolean;
  61537. /**
  61538. * The url of the image.
  61539. *
  61540. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureMarker)
  61541. */
  61542. url: string;
  61543. /**
  61544. * The height of the marker.
  61545. *
  61546. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureMarker)
  61547. */
  61548. size: number;
  61549. /**
  61550. * A value indicating whether the color can be changed for this symbol layer.
  61551. *
  61552. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureMarker)
  61553. */
  61554. colorLocked?: boolean;
  61555. /**
  61556. * The geometric effects applied to the symbol layer.
  61557. *
  61558. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureMarker)
  61559. */
  61560. effects?: CIMGeometricEffect[];
  61561. /**
  61562. * The primitive name of the symbol.
  61563. *
  61564. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureMarker)
  61565. */
  61566. primitiveName?: string;
  61567. /**
  61568. * The specified location where all transformation property operations originate.
  61569. *
  61570. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureMarker)
  61571. */
  61572. anchorPoint?: CIMPictureMarkerAnchorPoint;
  61573. /**
  61574. * A value which specifies if the anchor point location is considered a percentage of the size or as an absolute distance.
  61575. *
  61576. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureMarker)
  61577. */
  61578. anchorPointUnits?: "Relative" | "Absolute";
  61579. /**
  61580. * The distance that the image is offset in the horizontal direction.
  61581. *
  61582. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureMarker)
  61583. */
  61584. offsetX?: number;
  61585. /**
  61586. * The distance that the image is offset in the vertical direction.
  61587. *
  61588. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureMarker)
  61589. */
  61590. offsetY?: number;
  61591. /**
  61592. * A value indicating whether the rotation is applied clockwise or counterclockwise to the marker layer.
  61593. *
  61594. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureMarker)
  61595. */
  61596. rotateClockwise?: boolean;
  61597. /**
  61598. * The angle of the image within the fill.
  61599. *
  61600. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureMarker)
  61601. */
  61602. rotation?: number;
  61603. /**
  61604. * Determines how markers are placed along a line or within a polygon.
  61605. *
  61606. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureMarker)
  61607. */
  61608. markerPlacement?: MarkerPlacement;
  61609. /**
  61610. * The width of the symbol without changing the height, as a ratio.
  61611. *
  61612. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureMarker)
  61613. */
  61614. scaleX?: number;
  61615. /**
  61616. * The height of the image.
  61617. *
  61618. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureMarker)
  61619. */
  61620. height?: number;
  61621. /**
  61622. * The color substitutions which allows colors in the image to be substituted with a different color.
  61623. *
  61624. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureMarker)
  61625. */
  61626. colorSubstitutions?: CIMColorSubstitution[];
  61627. /**
  61628. * The color that is applied as a tint to the image.
  61629. *
  61630. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureMarker)
  61631. */
  61632. tintColor?: number[];
  61633. /**
  61634. * _Since 4.24_ The collection of symbol properties that apply when the symbol layer has animation data.
  61635. *
  61636. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureMarker)
  61637. */
  61638. animatedSymbolProperties?: CIMAnimatedSymbolProperties;
  61639. }
  61640. /**
  61641. * Represents a picture stroke which draws linear geometry with a repeating image file.
  61642. *
  61643. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureStroke)
  61644. */
  61645. export interface CIMPictureStroke {
  61646. type: "CIMPictureStroke";
  61647. /**
  61648. * The geometric effects applied to the symbol layer.
  61649. *
  61650. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureStroke)
  61651. */
  61652. effects?: CIMGeometricEffect[];
  61653. /**
  61654. * A value indicating whether the symbol layer is visible.
  61655. *
  61656. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureStroke)
  61657. */
  61658. enable: boolean;
  61659. /**
  61660. * A value indicating whether the color can be changed for this symbol layer.
  61661. *
  61662. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureStroke)
  61663. */
  61664. colorLocked?: boolean;
  61665. /**
  61666. * The primitive name of the symbol.
  61667. *
  61668. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureStroke)
  61669. */
  61670. primitiveName?: string;
  61671. /**
  61672. * The url of the image.
  61673. *
  61674. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureStroke)
  61675. */
  61676. url: string;
  61677. /**
  61678. * The color substitutions which allows colors in the image to be substituted with a different color.
  61679. *
  61680. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureStroke)
  61681. */
  61682. colorSubstitutions?: CIMColorSubstitution[];
  61683. /**
  61684. * The color that is applied as a tint to the image.
  61685. *
  61686. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureStroke)
  61687. */
  61688. tintColor?: number[];
  61689. /**
  61690. * The width of the stroke.
  61691. *
  61692. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureStroke)
  61693. */
  61694. width: number;
  61695. /**
  61696. * Determines how the stroke should draw at the ends of the geometries.
  61697. *
  61698. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureStroke)
  61699. */
  61700. capStyle?: "Butt" | "Round" | "Square";
  61701. /**
  61702. * Determines how the symbol is drawn at the stroke segment connections.
  61703. *
  61704. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureStroke)
  61705. */
  61706. joinStyle?: "Bevel" | "Round" | "Miter";
  61707. /**
  61708. * The maximum 'sharpness' that is allowed for miter joins.
  61709. *
  61710. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureStroke)
  61711. */
  61712. miterLimit?: number;
  61713. }
  61714. /**
  61715. * Represents a point symbol used to draw point features and graphics.
  61716. *
  61717. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPointSymbol)
  61718. */
  61719. export interface CIMPointSymbol {
  61720. type: "CIMPointSymbol";
  61721. /**
  61722. * The symbol layers.
  61723. *
  61724. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPointSymbol)
  61725. */
  61726. symbolLayers: CIMSymbolLayer[];
  61727. /**
  61728. * The amount of variation applied to the symbol, measured in degrees, propagated cumulatively to all marker symbols.
  61729. *
  61730. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPointSymbol)
  61731. */
  61732. angle?: number;
  61733. /**
  61734. * Indicates whether point symbols align to the map or to the display when a rotation is applied to the map.
  61735. *
  61736. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPointSymbol)
  61737. */
  61738. angleAlignment?: "Display" | "Map";
  61739. /**
  61740. * The geometric effects applied to the symbol.
  61741. *
  61742. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPointSymbol)
  61743. */
  61744. effects?: CIMGeometricEffect[];
  61745. /**
  61746. * The primitive name of the symbol.
  61747. *
  61748. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPointSymbol)
  61749. */
  61750. primitiveName?: string;
  61751. /**
  61752. * The X scale which changes the width of the symbol without changing the height, as a ratio.
  61753. *
  61754. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPointSymbol)
  61755. */
  61756. scaleX?: number;
  61757. /**
  61758. * A value indicating whether the symbol size properties are rendered using real world units or page units.
  61759. *
  61760. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPointSymbol)
  61761. */
  61762. useRealWorldSymbolSizes?: boolean;
  61763. }
  61764. /**
  61765. * Represents a polygon symbol used to draw polygon features and graphics.
  61766. *
  61767. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPolygonSymbol)
  61768. */
  61769. export interface CIMPolygonSymbol {
  61770. type: "CIMPolygonSymbol";
  61771. /**
  61772. * The symbol layers.
  61773. *
  61774. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPolygonSymbol)
  61775. */
  61776. symbolLayers: CIMSymbolLayer[];
  61777. /**
  61778. * The geometric effects applied to the symbol.
  61779. *
  61780. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPolygonSymbol)
  61781. */
  61782. effects?: CIMGeometricEffect[];
  61783. /**
  61784. * A value indicating whether the symbol size properties are rendered using real world units or page units.
  61785. *
  61786. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPolygonSymbol)
  61787. */
  61788. useRealWorldSymbolSizes?: boolean;
  61789. }
  61790. /**
  61791. * Represents a solid fill which fills polygonal geometry with a single solid color.
  61792. *
  61793. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMSolidFill)
  61794. */
  61795. export interface CIMSolidFill {
  61796. type: "CIMSolidFill";
  61797. /**
  61798. * The geometric effects applied to the symbol layer.
  61799. *
  61800. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMSolidFill)
  61801. */
  61802. effects?: CIMGeometricEffect[];
  61803. /**
  61804. * A value indicating whether the symbol layer is visible.
  61805. *
  61806. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMSolidFill)
  61807. */
  61808. enable: boolean;
  61809. /**
  61810. * A value indicating whether the color can be changed for this symbol layer.
  61811. *
  61812. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMSolidFill)
  61813. */
  61814. colorLocked?: boolean;
  61815. /**
  61816. * The primitive name of the symbol.
  61817. *
  61818. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMSolidFill)
  61819. */
  61820. primitiveName?: string;
  61821. /**
  61822. * The color that is applied to the fill.
  61823. *
  61824. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMSolidFill)
  61825. */
  61826. color: number[];
  61827. }
  61828. /**
  61829. * Represents a solid stroke which draws linear geometry with a single solid color.
  61830. *
  61831. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMSolidStroke)
  61832. */
  61833. export interface CIMSolidStroke {
  61834. type: "CIMSolidStroke";
  61835. /**
  61836. * The geometric effects applied to the symbol layer.
  61837. *
  61838. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMSolidStroke)
  61839. */
  61840. effects?: CIMGeometricEffect[];
  61841. /**
  61842. * A value indicating whether the symbol layer is visible.
  61843. *
  61844. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMSolidStroke)
  61845. */
  61846. enable: boolean;
  61847. /**
  61848. * A value indicating whether the color can be changed for this symbol layer.
  61849. *
  61850. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMSolidStroke)
  61851. */
  61852. colorLocked?: boolean;
  61853. /**
  61854. * The primitive name of the symbol.
  61855. *
  61856. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMSolidStroke)
  61857. */
  61858. primitiveName?: string;
  61859. /**
  61860. * The color that is applied to the fill.
  61861. *
  61862. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMSolidStroke)
  61863. */
  61864. color: number[];
  61865. /**
  61866. * The width of the stroke.
  61867. *
  61868. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMSolidStroke)
  61869. */
  61870. width: number;
  61871. /**
  61872. * Determines how the stroke should draw at the ends of the geometries.
  61873. *
  61874. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMSolidStroke)
  61875. */
  61876. capStyle?: "Butt" | "Round" | "Square";
  61877. /**
  61878. * Determines how the symbol is drawn at the stroke segment connections.
  61879. *
  61880. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMSolidStroke)
  61881. */
  61882. joinStyle?: "Bevel" | "Round" | "Miter";
  61883. /**
  61884. * The maximum 'sharpness' that is allowed for miter joins.
  61885. *
  61886. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMSolidStroke)
  61887. */
  61888. miterLimit?: number;
  61889. }
  61890. /**
  61891. * Represents a symbol layer.
  61892. *
  61893. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMSymbolLayer)
  61894. */
  61895. export type CIMSymbolLayer = | CIMHatchFill
  61896. | CIMPictureFill
  61897. | CIMPictureMarker
  61898. | CIMPictureStroke
  61899. | CIMSolidFill
  61900. | CIMSolidStroke
  61901. | CIMVectorMarker;
  61902. /**
  61903. * Represents a symbol reference from the [data](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#data) property.
  61904. *
  61905. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMSymbolReference)
  61906. */
  61907. export interface CIMSymbolReference {
  61908. type: "CIMSymbolReference";
  61909. /**
  61910. * The primitive overrides.
  61911. *
  61912. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMSymbolReference)
  61913. */
  61914. primitiveOverrides?: PrimitiveOverride[];
  61915. /**
  61916. * The symbol.
  61917. *
  61918. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMSymbolReference)
  61919. */
  61920. symbol: CIMPointSymbol | CIMLineSymbol | CIMPolygonSymbol;
  61921. /**
  61922. * _Since 4.20_ The minimum scale the symbol reference should be displayed.
  61923. *
  61924. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMSymbolReference)
  61925. */
  61926. minScale?: number;
  61927. /**
  61928. * _Since 4.20_ The maximum scale the symbol reference should be displayed.
  61929. *
  61930. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMSymbolReference)
  61931. */
  61932. maxScale?: number;
  61933. }
  61934. /**
  61935. * Represents a text symbol which is used to draw text graphics.
  61936. *
  61937. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMTextSymbol)
  61938. */
  61939. export interface CIMTextSymbol {
  61940. type: "CIMTextSymbol";
  61941. /**
  61942. * The amount of rotation applied to the text symbol, measured in degrees, around the geometry.
  61943. *
  61944. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMTextSymbol)
  61945. */
  61946. angle?: number;
  61947. /**
  61948. * The font family name of the font (e.g.
  61949. *
  61950. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMTextSymbol)
  61951. */
  61952. fontFamilyName: string;
  61953. /**
  61954. * The style name for the font family.
  61955. *
  61956. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMTextSymbol)
  61957. */
  61958. fontStyleName?: "Regular" | "Bold" | "Italic";
  61959. /**
  61960. * The size of the halo that extends beyond the symbol shape.
  61961. *
  61962. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMTextSymbol)
  61963. */
  61964. haloSize?: number;
  61965. /**
  61966. * The polygon symbol that is used to draw the halo for a text symbol.
  61967. *
  61968. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMTextSymbol)
  61969. */
  61970. haloSymbol: CIMPolygonSymbol;
  61971. /**
  61972. * The size of the text in points.
  61973. *
  61974. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMTextSymbol)
  61975. */
  61976. height: number;
  61977. /**
  61978. * The alignment type used to align the text to the geometry horizontally.
  61979. *
  61980. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMTextSymbol)
  61981. */
  61982. horizontalAlignment?: "Left" | "Right" | "Center";
  61983. /**
  61984. * The X offset.
  61985. *
  61986. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMTextSymbol)
  61987. */
  61988. offsetX?: number;
  61989. /**
  61990. * The Y offset.
  61991. *
  61992. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMTextSymbol)
  61993. */
  61994. offsetY?: number;
  61995. /**
  61996. * A value indicating whether to draw the text with a strike through it.
  61997. *
  61998. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMTextSymbol)
  61999. */
  62000. strikethrough?: boolean;
  62001. /**
  62002. * The polygon symbol that is used to draw the glyphs of the text.
  62003. *
  62004. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMTextSymbol)
  62005. */
  62006. symbol: CIMPolygonSymbol;
  62007. /**
  62008. * A value indicating whether to draw the text with an underline.
  62009. *
  62010. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMTextSymbol)
  62011. */
  62012. underline?: boolean;
  62013. /**
  62014. * The vertical alignment of the text.
  62015. *
  62016. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMTextSymbol)
  62017. */
  62018. verticalAlignment?: "Top" | "Center" | "Baseline" | "Bottom";
  62019. }
  62020. /**
  62021. * Represents a vector marker which can represent vector graphics.
  62022. *
  62023. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMVectorMarker)
  62024. */
  62025. export interface CIMVectorMarker {
  62026. type: "CIMVectorMarker";
  62027. /**
  62028. * The geometric effects applied to the symbol layer.
  62029. *
  62030. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMVectorMarker)
  62031. */
  62032. effects?: CIMGeometricEffect[];
  62033. /**
  62034. * A value indicating whether the symbol layer is visible.
  62035. *
  62036. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMVectorMarker)
  62037. */
  62038. enable: boolean;
  62039. /**
  62040. * A value indicating whether the color can be changed for this symbol layer.
  62041. *
  62042. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMVectorMarker)
  62043. */
  62044. colorLocked?: boolean;
  62045. /**
  62046. * The primitive name of the symbol.
  62047. *
  62048. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMVectorMarker)
  62049. */
  62050. primitiveName?: string;
  62051. /**
  62052. * The height of the marker.
  62053. *
  62054. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMVectorMarker)
  62055. */
  62056. size: number;
  62057. /**
  62058. * The specified location where all transformation property operations originate.
  62059. *
  62060. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMVectorMarker)
  62061. */
  62062. anchorPoint?: CIMVectorMarkerAnchorPoint;
  62063. /**
  62064. * A value which specifies if the anchor point location is considered a percentage of the size or as an absolute distance.
  62065. *
  62066. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMVectorMarker)
  62067. */
  62068. anchorPointUnits?: "Relative" | "Absolute";
  62069. /**
  62070. * The distance that the image is offset in the horizontal direction.
  62071. *
  62072. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMVectorMarker)
  62073. */
  62074. offsetX?: number;
  62075. /**
  62076. * The distance that the image is offset in the vertical direction.
  62077. *
  62078. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMVectorMarker)
  62079. */
  62080. offsetY?: number;
  62081. /**
  62082. * A value indicating whether the rotation is applied clockwise or counterclockwise to the marker layer.
  62083. *
  62084. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMVectorMarker)
  62085. */
  62086. rotateClockwise?: boolean;
  62087. /**
  62088. * The angle of the image within the fill.
  62089. *
  62090. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMVectorMarker)
  62091. */
  62092. rotation?: number;
  62093. /**
  62094. * Determines how markers are placed along a line or within a polygon.
  62095. *
  62096. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMVectorMarker)
  62097. */
  62098. markerPlacement?: MarkerPlacement;
  62099. /**
  62100. * The outer boundary of the entire vector marker.
  62101. *
  62102. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMVectorMarker)
  62103. */
  62104. frame: Envelope;
  62105. /**
  62106. * The vector graphics that define the shape of the marker.
  62107. *
  62108. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMVectorMarker)
  62109. */
  62110. markerGraphics: CIMMarkerGraphic[];
  62111. /**
  62112. * A value indicating whether the strokes and or fills of a marker are scaled proportionally when the symbol size is changed.
  62113. *
  62114. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMVectorMarker)
  62115. */
  62116. scaleSymbolsProportionally?: boolean;
  62117. /**
  62118. * A value indicating whether the frame of the vector marker should be honored when drawing the marker.
  62119. *
  62120. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMVectorMarker)
  62121. */
  62122. respectFrame?: boolean;
  62123. }
  62124. /**
  62125. * An envelope is a rectangle defined by a range of values for each coordinate and attribute.
  62126. *
  62127. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#Envelope)
  62128. */
  62129. export interface Envelope {
  62130. /**
  62131. * The minimum X value in the area of the envelope.
  62132. *
  62133. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#Envelope)
  62134. */
  62135. xmin: number;
  62136. /**
  62137. * The maximum X value in the area of the envelope.
  62138. *
  62139. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#Envelope)
  62140. */
  62141. xmax: number;
  62142. /**
  62143. * The minimum Y value in the area of the envelope.
  62144. *
  62145. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#Envelope)
  62146. */
  62147. ymin: number;
  62148. /**
  62149. * The maximum Y value in the area of the envelope.
  62150. *
  62151. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#Envelope)
  62152. */
  62153. ymax: number;
  62154. }
  62155. /**
  62156. * Represents a marker placement.
  62157. *
  62158. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#MarkerPlacement)
  62159. */
  62160. export type MarkerPlacement = | CIMMarkerPlacementAlongLineSameSize
  62161. | CIMMarkerPlacementAtExtremities
  62162. | CIMMarkerPlacementAtRatioPositions
  62163. | CIMMarkerPlacementInsidePolygon
  62164. | CIMMarkerPlacementOnLine
  62165. | CIMMarkerPlacementOnVertices
  62166. | CIMMarkerPlacementPolygonCenter;
  62167. /**
  62168. * Represents a primitive override.
  62169. *
  62170. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#PrimitiveOverride)
  62171. */
  62172. export interface PrimitiveOverride {
  62173. type: "CIMPrimitiveOverride";
  62174. /**
  62175. * The primitive name this override applies to.
  62176. *
  62177. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#PrimitiveOverride)
  62178. */
  62179. primitiveName: string;
  62180. /**
  62181. * The name of the property in the primitive this override applies to (e.g.
  62182. *
  62183. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#PrimitiveOverride)
  62184. */
  62185. propertyName: string;
  62186. /**
  62187. * Contains the Arcade expression that returns a value to be applied to the property on the primitive.
  62188. *
  62189. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#PrimitiveOverride)
  62190. */
  62191. valueExpressionInfo: PrimitiveOverrideValueExpressionInfo;
  62192. }
  62193. export interface CIMPictureMarkerAnchorPoint {
  62194. /**
  62195. * The x coordinate of the anchor point, measured along the east/west axis.
  62196. *
  62197. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureMarker)
  62198. */
  62199. x?: any;
  62200. /**
  62201. * The y coordinate of the anchor point, measured along the north/south axis.
  62202. *
  62203. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMPictureMarker)
  62204. */
  62205. y?: any;
  62206. }
  62207. export interface CIMVectorMarkerAnchorPoint {
  62208. /**
  62209. * The x coordinate of the anchor point, measured along the east/west axis.
  62210. *
  62211. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMVectorMarker)
  62212. */
  62213. x?: any;
  62214. /**
  62215. * The y coordinate of the anchor point, measured along the north/south axis.
  62216. *
  62217. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#CIMVectorMarker)
  62218. */
  62219. y?: any;
  62220. }
  62221. export interface PrimitiveOverrideValueExpressionInfo {
  62222. type: "CIMExpressionInfo";
  62223. /**
  62224. * The human readable text that describes the expression.
  62225. *
  62226. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#PrimitiveOverride)
  62227. */
  62228. title?: string;
  62229. /**
  62230. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Arcade Visualization Profile](https://developers.arcgis.com/javascript/latest/arcade/#visualization).
  62231. *
  62232. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#PrimitiveOverride)
  62233. */
  62234. expression: string;
  62235. /**
  62236. * The name of the expression.
  62237. *
  62238. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#PrimitiveOverride)
  62239. */
  62240. name?: string;
  62241. /**
  62242. * The return type of the expression.
  62243. *
  62244. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html#PrimitiveOverride)
  62245. */
  62246. returnType?: "Default" | "String" | "Numeric";
  62247. }
  62248. export interface Edges3D extends Accessor, JSONSupport {
  62249. }
  62250. export class Edges3D {
  62251. /**
  62252. * The color of the edges.
  62253. *
  62254. * @default black
  62255. *
  62256. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-edges-Edges3D.html#color)
  62257. */
  62258. color: Color;
  62259. /**
  62260. * A size in points by which to extend edges beyond their original end points.
  62261. *
  62262. * @default "0"
  62263. *
  62264. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-edges-Edges3D.html#extensionLength)
  62265. */
  62266. extensionLength: number;
  62267. /**
  62268. * The size of the edges in points.
  62269. *
  62270. * @default 1px
  62271. *
  62272. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-edges-Edges3D.html#size)
  62273. */
  62274. size: number;
  62275. /**
  62276. * Edges3D is the base class for symbol classes that add edge rendering visualization to existing symbols.
  62277. *
  62278. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-edges-Edges3D.html)
  62279. */
  62280. constructor(properties?: Edges3DProperties);
  62281. /**
  62282. * Creates a deep clone of the edges.
  62283. *
  62284. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-edges-Edges3D.html#clone)
  62285. */
  62286. clone(): Edges3D;
  62287. static fromJSON(json: any): Edges3D;
  62288. }
  62289. /** @deprecated Import the Edges3D class instead. */
  62290. export type Edges3DConstructor = typeof Edges3D;
  62291. interface Edges3DProperties {
  62292. /**
  62293. * The color of the edges.
  62294. *
  62295. * @default black
  62296. *
  62297. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-edges-Edges3D.html#color)
  62298. */
  62299. color?: Color | number[] | string;
  62300. /**
  62301. * A size in points by which to extend edges beyond their original end points.
  62302. *
  62303. * @default "0"
  62304. *
  62305. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-edges-Edges3D.html#extensionLength)
  62306. */
  62307. extensionLength?: number | string;
  62308. /**
  62309. * The size of the edges in points.
  62310. *
  62311. * @default 1px
  62312. *
  62313. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-edges-Edges3D.html#size)
  62314. */
  62315. size?: number | string;
  62316. }
  62317. export class SketchEdges3D extends Edges3D {
  62318. /**
  62319. * The symbol type.
  62320. *
  62321. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-edges-SketchEdges3D.html#type)
  62322. */
  62323. type: "sketch";
  62324. /**
  62325. * SketchEdges3D is a symbol type that visualizes edges of [3D Object SceneLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html), extruded polygons or mesh geometries with a sketched line.
  62326. *
  62327. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-edges-SketchEdges3D.html)
  62328. */
  62329. constructor(properties?: SketchEdges3DProperties);
  62330. /**
  62331. * Creates a deep clone of the object.
  62332. *
  62333. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-edges-SketchEdges3D.html#clone)
  62334. */
  62335. clone(): SketchEdges3D;
  62336. static fromJSON(json: any): SketchEdges3D;
  62337. }
  62338. /** @deprecated Import the SketchEdges3D class instead. */
  62339. export type SketchEdges3DConstructor = typeof SketchEdges3D;
  62340. interface SketchEdges3DProperties extends Edges3DProperties {
  62341. /**
  62342. * The symbol type.
  62343. *
  62344. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-edges-SketchEdges3D.html#type)
  62345. */
  62346. type?: "sketch";
  62347. }
  62348. export class SolidEdges3D extends Edges3D {
  62349. /**
  62350. * The symbol type.
  62351. *
  62352. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-edges-SolidEdges3D.html#type)
  62353. */
  62354. type: "solid";
  62355. /**
  62356. * SolidEdges3D is a symbol type that visualizes edges of [3D Object SceneLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html), extruded polygons or mesh geometries with a solid line.
  62357. *
  62358. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-edges-SolidEdges3D.html)
  62359. */
  62360. constructor(properties?: SolidEdges3DProperties);
  62361. /**
  62362. * Creates a deep clone of the object.
  62363. *
  62364. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-edges-SolidEdges3D.html#clone)
  62365. */
  62366. clone(): SolidEdges3D;
  62367. static fromJSON(json: any): SolidEdges3D;
  62368. }
  62369. /** @deprecated Import the SolidEdges3D class instead. */
  62370. export type SolidEdges3DConstructor = typeof SolidEdges3D;
  62371. interface SolidEdges3DProperties extends Edges3DProperties {
  62372. /**
  62373. * The symbol type.
  62374. *
  62375. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-edges-SolidEdges3D.html#type)
  62376. */
  62377. type?: "solid";
  62378. }
  62379. export class ExtrudeSymbol3DLayer extends Symbol3DLayer {
  62380. /**
  62381. * Indicates whether the symbol layer geometry casts shadows in the scene.
  62382. *
  62383. * @default true
  62384. *
  62385. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ExtrudeSymbol3DLayer.html#castShadows)
  62386. */
  62387. castShadows: boolean;
  62388. /**
  62389. * Sets the contour edges on polygons symbolized with ExtrudeSymbol3DLayer.
  62390. *
  62391. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ExtrudeSymbol3DLayer.html#edges)
  62392. */
  62393. edges: Edges3D;
  62394. /**
  62395. * The material used to shade the extrusion.
  62396. *
  62397. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ExtrudeSymbol3DLayer.html#material)
  62398. */
  62399. material: ExtrudeSymbol3DLayerMaterial;
  62400. /**
  62401. * The height of the extrusion in meters.
  62402. *
  62403. * @default 1
  62404. *
  62405. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ExtrudeSymbol3DLayer.html#size)
  62406. */
  62407. size: number;
  62408. /**
  62409. * The symbol type.
  62410. *
  62411. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ExtrudeSymbol3DLayer.html#type)
  62412. */
  62413. readonly type: "extrude";
  62414. /**
  62415. * ExtrudeSymbol3DLayer is used to render [Polygon](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html) geometries by extruding them upward from the ground, creating a 3D volumetric object.
  62416. *
  62417. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ExtrudeSymbol3DLayer.html)
  62418. */
  62419. constructor(properties?: ExtrudeSymbol3DLayerProperties);
  62420. /**
  62421. * Creates a deep clone of the symbol layer.
  62422. *
  62423. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ExtrudeSymbol3DLayer.html#clone)
  62424. */
  62425. clone(): ExtrudeSymbol3DLayer;
  62426. static fromJSON(json: any): ExtrudeSymbol3DLayer;
  62427. }
  62428. /** @deprecated Import the ExtrudeSymbol3DLayer class instead. */
  62429. export type ExtrudeSymbol3DLayerConstructor = typeof ExtrudeSymbol3DLayer;
  62430. interface ExtrudeSymbol3DLayerProperties extends Symbol3DLayerProperties {
  62431. /**
  62432. * Indicates whether the symbol layer geometry casts shadows in the scene.
  62433. *
  62434. * @default true
  62435. *
  62436. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ExtrudeSymbol3DLayer.html#castShadows)
  62437. */
  62438. castShadows?: boolean;
  62439. /**
  62440. * Sets the contour edges on polygons symbolized with ExtrudeSymbol3DLayer.
  62441. *
  62442. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ExtrudeSymbol3DLayer.html#edges)
  62443. */
  62444. edges?: Edges3DProperties;
  62445. /**
  62446. * The material used to shade the extrusion.
  62447. *
  62448. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ExtrudeSymbol3DLayer.html#material)
  62449. */
  62450. material?: ExtrudeSymbol3DLayerMaterialProperties;
  62451. /**
  62452. * The height of the extrusion in meters.
  62453. *
  62454. * @default 1
  62455. *
  62456. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ExtrudeSymbol3DLayer.html#size)
  62457. */
  62458. size?: number;
  62459. }
  62460. export interface ExtrudeSymbol3DLayerMaterialProperties {
  62461. /**
  62462. * The fill color of the extrusion.
  62463. *
  62464. * @default white
  62465. *
  62466. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ExtrudeSymbol3DLayer.html#material)
  62467. */
  62468. color?: Color | number[] | string;
  62469. }
  62470. export interface ExtrudeSymbol3DLayerMaterial extends AnonymousAccessor {
  62471. /**
  62472. * The fill color of the extrusion.
  62473. *
  62474. * @default white
  62475. *
  62476. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ExtrudeSymbol3DLayer.html#material)
  62477. */
  62478. color?: Color;
  62479. }
  62480. export class FillSymbol extends Symbol {
  62481. /**
  62482. * The outline of the polygon.
  62483. *
  62484. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol.html#outline)
  62485. */
  62486. outline: SimpleLineSymbol;
  62487. /**
  62488. * The symbol type.
  62489. *
  62490. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol.html#type)
  62491. */
  62492. type: "simple-fill" | "picture-fill";
  62493. /**
  62494. * Fill symbols are used to draw [Polygon](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html) graphics in a [GraphicsLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html) or a [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) in a 2D [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  62495. *
  62496. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol.html)
  62497. */
  62498. constructor(properties?: FillSymbolProperties);
  62499. static fromJSON(json: any): FillSymbol;
  62500. }
  62501. /** @deprecated Import the FillSymbol class instead. */
  62502. export type FillSymbolConstructor = typeof FillSymbol;
  62503. interface FillSymbolProperties extends SymbolProperties {
  62504. /**
  62505. * The outline of the polygon.
  62506. *
  62507. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol.html#outline)
  62508. */
  62509. outline?: SimpleLineSymbolProperties;
  62510. /**
  62511. * The symbol type.
  62512. *
  62513. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol.html#type)
  62514. */
  62515. type?: "simple-fill" | "picture-fill";
  62516. }
  62517. export class FillSymbol3DLayer extends Symbol3DLayer {
  62518. /**
  62519. * Indicates whether the symbol layer geometry casts shadows in the scene.
  62520. *
  62521. * @default true
  62522. *
  62523. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol3DLayer.html#castShadows)
  62524. */
  62525. castShadows: boolean;
  62526. /**
  62527. * Sets the contour edges on 3D Objects.
  62528. *
  62529. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol3DLayer.html#edges)
  62530. */
  62531. edges: Edges3D;
  62532. /**
  62533. * The material defines the final color of the graphic, by blending the `color` property set in the material with the feature's geometry color/texture information.
  62534. *
  62535. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol3DLayer.html#material)
  62536. */
  62537. material: FillSymbol3DLayerMaterial;
  62538. /**
  62539. * The outline used to draw a line around the filled geometry.
  62540. *
  62541. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol3DLayer.html#outline)
  62542. */
  62543. outline: FillSymbol3DLayerOutline;
  62544. /**
  62545. * The pattern used to render the polygon fill.
  62546. *
  62547. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol3DLayer.html#pattern)
  62548. */
  62549. pattern: StylePattern3D;
  62550. /**
  62551. * The symbol type.
  62552. *
  62553. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol3DLayer.html#type)
  62554. */
  62555. readonly type: "fill";
  62556. /**
  62557. * FillSymbol3DLayer is used to render the surfaces of flat 2D [Polygon](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html) geometries and 3D volumetric meshes in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  62558. *
  62559. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol3DLayer.html)
  62560. */
  62561. constructor(properties?: FillSymbol3DLayerProperties);
  62562. /**
  62563. * Creates a deep clone of the symbol layer.
  62564. *
  62565. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol3DLayer.html#clone)
  62566. */
  62567. clone(): FillSymbol3DLayer;
  62568. static fromJSON(json: any): FillSymbol3DLayer;
  62569. }
  62570. /** @deprecated Import the FillSymbol3DLayer class instead. */
  62571. export type FillSymbol3DLayerConstructor = typeof FillSymbol3DLayer;
  62572. interface FillSymbol3DLayerProperties extends Symbol3DLayerProperties {
  62573. /**
  62574. * Indicates whether the symbol layer geometry casts shadows in the scene.
  62575. *
  62576. * @default true
  62577. *
  62578. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol3DLayer.html#castShadows)
  62579. */
  62580. castShadows?: boolean;
  62581. /**
  62582. * Sets the contour edges on 3D Objects.
  62583. *
  62584. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol3DLayer.html#edges)
  62585. */
  62586. edges?: Edges3DProperties;
  62587. /**
  62588. * The material defines the final color of the graphic, by blending the `color` property set in the material with the feature's geometry color/texture information.
  62589. *
  62590. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol3DLayer.html#material)
  62591. */
  62592. material?: FillSymbol3DLayerMaterialProperties;
  62593. /**
  62594. * The outline used to draw a line around the filled geometry.
  62595. *
  62596. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol3DLayer.html#outline)
  62597. */
  62598. outline?: FillSymbol3DLayerOutlineProperties;
  62599. /**
  62600. * The pattern used to render the polygon fill.
  62601. *
  62602. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol3DLayer.html#pattern)
  62603. */
  62604. pattern?: StylePattern3DProperties;
  62605. }
  62606. export interface FillSymbol3DLayerMaterialProperties {
  62607. /**
  62608. * The color of the fill.
  62609. *
  62610. * @default white
  62611. *
  62612. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol3DLayer.html#material)
  62613. */
  62614. color?: Color | number[] | string;
  62615. /**
  62616. * Specifies how the material `color` is applied to the geometry color/texture information.
  62617. *
  62618. * @default multiply
  62619. *
  62620. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol3DLayer.html#material)
  62621. */
  62622. colorMixMode?: "tint" | "replace" | "multiply";
  62623. }
  62624. export interface FillSymbol3DLayerMaterial extends AnonymousAccessor {
  62625. /**
  62626. * The color of the fill.
  62627. *
  62628. * @default white
  62629. *
  62630. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol3DLayer.html#material)
  62631. */
  62632. color?: Color;
  62633. /**
  62634. * Specifies how the material `color` is applied to the geometry color/texture information.
  62635. *
  62636. * @default multiply
  62637. *
  62638. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol3DLayer.html#material)
  62639. */
  62640. colorMixMode?: "tint" | "replace" | "multiply";
  62641. }
  62642. export interface FillSymbol3DLayerOutlineProperties {
  62643. /**
  62644. * The color of the outline.
  62645. *
  62646. * @default black
  62647. *
  62648. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol3DLayer.html#outline)
  62649. */
  62650. color?: Color | number[] | string;
  62651. /**
  62652. * The width of the outline in points.
  62653. *
  62654. * @default 1px
  62655. *
  62656. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol3DLayer.html#outline)
  62657. */
  62658. size?: number | string;
  62659. /**
  62660. * The stroke pattern used to render the outline.
  62661. *
  62662. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol3DLayer.html#outline)
  62663. */
  62664. pattern?: LineStylePattern3DProperties;
  62665. /**
  62666. * The style applied to the tips of each pattern segment along the line.
  62667. *
  62668. * @default butt
  62669. *
  62670. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol3DLayer.html#outline)
  62671. */
  62672. patternCap?: "butt" | "round" | "square";
  62673. }
  62674. export interface FillSymbol3DLayerOutline extends AnonymousAccessor {
  62675. /**
  62676. * The color of the outline.
  62677. *
  62678. * @default black
  62679. *
  62680. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol3DLayer.html#outline)
  62681. */
  62682. color?: Color;
  62683. /**
  62684. * The width of the outline in points.
  62685. *
  62686. * @default 1px
  62687. *
  62688. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol3DLayer.html#outline)
  62689. */
  62690. size?: number;
  62691. /**
  62692. * The stroke pattern used to render the outline.
  62693. *
  62694. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol3DLayer.html#outline)
  62695. */
  62696. pattern?: LineStylePattern3D;
  62697. /**
  62698. * The style applied to the tips of each pattern segment along the line.
  62699. *
  62700. * @default butt
  62701. *
  62702. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-FillSymbol3DLayer.html#outline)
  62703. */
  62704. patternCap?: "butt" | "round" | "square";
  62705. }
  62706. export interface Font extends Accessor, JSONSupport {
  62707. }
  62708. export class Font {
  62709. /**
  62710. * The text decoration.
  62711. *
  62712. * @default none
  62713. *
  62714. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Font.html#decoration)
  62715. */
  62716. decoration: "underline" | "line-through" | "none";
  62717. /**
  62718. * The font family of the text.
  62719. *
  62720. * @default sans-serif
  62721. *
  62722. * The font family of the text. The possible values are dependent upon the layer type, and if you are working with a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html). See the [Labeling guide page](https://developers.arcgis.com/javascript/latest/labeling/) for detailed explanation, or click the `Read more` below. >>> esri-read-more **Font families for 3D SceneViews** The supported font families for 3D [SceneViews](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) are dependent upon the fonts installed on the user's computer and web browser. If an app uses a font that is not installed, the Font class implements a fallback mechanism that will use the default font family value, which is `sans-serif`. See these references for instructions on how to install a new font on [Windows](https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows) or [Mac](https://support.apple.com/en-us/ht201749). Fonts that are not installed locally can also be loaded from a url by defining a [@font-face](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face) in a css file and referencing it from the `family` property in a symbol layer. **Font families for 2D MapImageLayer** The supported font families for [MapImageLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html) in a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) are dependent upon the fonts installed on the [ArcGIS Server](https://enterprise.arcgis.com/en/server/latest/get-started/windows/what-is-arcgis-for-server-.htm) that published the layer. If an app uses a font that is not installed, the Font class implements a fallback mechanism that will use the default font family value, which is `sans-serif`. **Font families for 2D FeatureLayer**, CSVLayer, StreamLayer, and TextSymbol The supported font families are based on hosted fonts files in `.pbf` format. By default, the fonts available are mostly the same ones used by the Esri Vector Basemaps. These fonts are available via `https://static.arcgis.com/fonts`. The URL can be configured to point to your own font resources by setting the [esriConfig.fontsUrl](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#fontsUrl) property. If an app uses a font that is not installed, the Font class implements a fallback mechanism that will use the default font family value, which is `sans-serif`. This uses the `Arial Unicode MS` font file. > A preview of the fonts listed in the following table are available in the [Labeling](https://developers.arcgis.com/javascript/latest/labeling/) overview page. List of fonts currently supported in a 2D MapView: [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Font.html#family)
  62723. */
  62724. family: string;
  62725. /**
  62726. * The font size in points.
  62727. *
  62728. * @default 9
  62729. *
  62730. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Font.html#size)
  62731. */
  62732. size: number;
  62733. /**
  62734. * The text style.
  62735. *
  62736. * @default normal
  62737. *
  62738. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Font.html#style)
  62739. */
  62740. style: "normal" | "italic" | "oblique";
  62741. /**
  62742. * The text weight.
  62743. *
  62744. * @default normal
  62745. *
  62746. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Font.html#weight)
  62747. */
  62748. weight: "normal" | "bold" | "bolder" | "lighter";
  62749. /**
  62750. * The font used to display [2D text symbols](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html) and [3D text symbols](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html).
  62751. *
  62752. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Font.html)
  62753. */
  62754. constructor(properties?: FontProperties);
  62755. /**
  62756. * Creates a deep clone of the font object.
  62757. *
  62758. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Font.html#clone)
  62759. */
  62760. clone(): Font;
  62761. static fromJSON(json: any): Font;
  62762. }
  62763. /** @deprecated Import the Font class instead. */
  62764. export type FontConstructor = typeof Font;
  62765. interface FontProperties {
  62766. /**
  62767. * The text decoration.
  62768. *
  62769. * @default none
  62770. *
  62771. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Font.html#decoration)
  62772. */
  62773. decoration?: "underline" | "line-through" | "none";
  62774. /**
  62775. * The font family of the text.
  62776. *
  62777. * @default sans-serif
  62778. *
  62779. * The font family of the text. The possible values are dependent upon the layer type, and if you are working with a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html). See the [Labeling guide page](https://developers.arcgis.com/javascript/latest/labeling/) for detailed explanation, or click the `Read more` below. >>> esri-read-more **Font families for 3D SceneViews** The supported font families for 3D [SceneViews](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) are dependent upon the fonts installed on the user's computer and web browser. If an app uses a font that is not installed, the Font class implements a fallback mechanism that will use the default font family value, which is `sans-serif`. See these references for instructions on how to install a new font on [Windows](https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows) or [Mac](https://support.apple.com/en-us/ht201749). Fonts that are not installed locally can also be loaded from a url by defining a [@font-face](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face) in a css file and referencing it from the `family` property in a symbol layer. **Font families for 2D MapImageLayer** The supported font families for [MapImageLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html) in a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) are dependent upon the fonts installed on the [ArcGIS Server](https://enterprise.arcgis.com/en/server/latest/get-started/windows/what-is-arcgis-for-server-.htm) that published the layer. If an app uses a font that is not installed, the Font class implements a fallback mechanism that will use the default font family value, which is `sans-serif`. **Font families for 2D FeatureLayer**, CSVLayer, StreamLayer, and TextSymbol The supported font families are based on hosted fonts files in `.pbf` format. By default, the fonts available are mostly the same ones used by the Esri Vector Basemaps. These fonts are available via `https://static.arcgis.com/fonts`. The URL can be configured to point to your own font resources by setting the [esriConfig.fontsUrl](https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#fontsUrl) property. If an app uses a font that is not installed, the Font class implements a fallback mechanism that will use the default font family value, which is `sans-serif`. This uses the `Arial Unicode MS` font file. > A preview of the fonts listed in the following table are available in the [Labeling](https://developers.arcgis.com/javascript/latest/labeling/) overview page. List of fonts currently supported in a 2D MapView: [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Font.html#family)
  62780. */
  62781. family?: string;
  62782. /**
  62783. * The font size in points.
  62784. *
  62785. * @default 9
  62786. *
  62787. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Font.html#size)
  62788. */
  62789. size?: number | string;
  62790. /**
  62791. * The text style.
  62792. *
  62793. * @default normal
  62794. *
  62795. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Font.html#style)
  62796. */
  62797. style?: "normal" | "italic" | "oblique";
  62798. /**
  62799. * The text weight.
  62800. *
  62801. * @default normal
  62802. *
  62803. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Font.html#weight)
  62804. */
  62805. weight?: "normal" | "bold" | "bolder" | "lighter";
  62806. }
  62807. export class IconSymbol3DLayer extends Symbol3DLayer {
  62808. /**
  62809. * The positioning of the icon relative to the geometry.
  62810. *
  62811. * @default center
  62812. *
  62813. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html#anchor)
  62814. */
  62815. anchor: | "center"
  62816. | "left"
  62817. | "right"
  62818. | "top"
  62819. | "bottom"
  62820. | "top-left"
  62821. | "top-right"
  62822. | "bottom-left"
  62823. | "bottom-right"
  62824. | "relative";
  62825. /**
  62826. * Defines the [anchor](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html#anchor) relative to the center of the icon.
  62827. *
  62828. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html#anchorPosition)
  62829. */
  62830. anchorPosition: IconSymbol3DLayerAnchorPosition;
  62831. /**
  62832. * The material used to shade the icon.
  62833. *
  62834. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html#material)
  62835. */
  62836. material: IconSymbol3DLayerMaterial;
  62837. /**
  62838. * The outline of the icon.
  62839. *
  62840. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html#outline)
  62841. */
  62842. outline: IconSymbol3DLayerOutline;
  62843. /**
  62844. * The shape (`primitive`) or image URL (`href`) used to visualize the features.
  62845. *
  62846. * @default { primitive: "circle" }
  62847. *
  62848. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html#resource)
  62849. */
  62850. resource: IconSymbol3DLayerResource;
  62851. /**
  62852. * The size of the icon in points.
  62853. *
  62854. * @default 12
  62855. *
  62856. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html#size)
  62857. */
  62858. size: number;
  62859. /**
  62860. * The symbol type.
  62861. *
  62862. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html#type)
  62863. */
  62864. readonly type: "icon";
  62865. /**
  62866. * IconSymbol3DLayer is used to render [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) geometries using a flat 2D icon (e.g.
  62867. *
  62868. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html)
  62869. */
  62870. constructor(properties?: IconSymbol3DLayerProperties);
  62871. /**
  62872. * Creates a deep clone of the symbol layer.
  62873. *
  62874. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html#clone)
  62875. */
  62876. clone(): IconSymbol3DLayer;
  62877. static fromJSON(json: any): IconSymbol3DLayer;
  62878. }
  62879. /** @deprecated Import the IconSymbol3DLayer class instead. */
  62880. export type IconSymbol3DLayerConstructor = typeof IconSymbol3DLayer;
  62881. interface IconSymbol3DLayerProperties extends Symbol3DLayerProperties {
  62882. /**
  62883. * The positioning of the icon relative to the geometry.
  62884. *
  62885. * @default center
  62886. *
  62887. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html#anchor)
  62888. */
  62889. anchor?: | "center"
  62890. | "left"
  62891. | "right"
  62892. | "top"
  62893. | "bottom"
  62894. | "top-left"
  62895. | "top-right"
  62896. | "bottom-left"
  62897. | "bottom-right"
  62898. | "relative";
  62899. /**
  62900. * Defines the [anchor](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html#anchor) relative to the center of the icon.
  62901. *
  62902. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html#anchorPosition)
  62903. */
  62904. anchorPosition?: IconSymbol3DLayerAnchorPosition;
  62905. /**
  62906. * The material used to shade the icon.
  62907. *
  62908. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html#material)
  62909. */
  62910. material?: IconSymbol3DLayerMaterialProperties;
  62911. /**
  62912. * The outline of the icon.
  62913. *
  62914. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html#outline)
  62915. */
  62916. outline?: IconSymbol3DLayerOutlineProperties;
  62917. /**
  62918. * The shape (`primitive`) or image URL (`href`) used to visualize the features.
  62919. *
  62920. * @default { primitive: "circle" }
  62921. *
  62922. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html#resource)
  62923. */
  62924. resource?: IconSymbol3DLayerResource;
  62925. /**
  62926. * The size of the icon in points.
  62927. *
  62928. * @default 12
  62929. *
  62930. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html#size)
  62931. */
  62932. size?: number | string;
  62933. }
  62934. export interface IconSymbol3DLayerAnchorPosition {
  62935. /**
  62936. * Value defining the position relative to the icon's width.
  62937. *
  62938. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html#anchorPosition)
  62939. */
  62940. x: number;
  62941. /**
  62942. * Value defining the position relative to the icon's height.
  62943. *
  62944. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html#anchorPosition)
  62945. */
  62946. y: number;
  62947. }
  62948. export interface IconSymbol3DLayerMaterialProperties {
  62949. /**
  62950. * The fill color of the icon.
  62951. *
  62952. * @default white
  62953. *
  62954. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html#material)
  62955. */
  62956. color?: Color | number[] | string;
  62957. }
  62958. export interface IconSymbol3DLayerMaterial extends AnonymousAccessor {
  62959. /**
  62960. * The fill color of the icon.
  62961. *
  62962. * @default white
  62963. *
  62964. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html#material)
  62965. */
  62966. color?: Color;
  62967. }
  62968. export interface IconSymbol3DLayerOutlineProperties {
  62969. /**
  62970. * The color of the outline.
  62971. *
  62972. * @default black
  62973. *
  62974. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html#outline)
  62975. */
  62976. color?: Color | number[] | string;
  62977. /**
  62978. * The width of the outline in points.
  62979. *
  62980. * @default 1.125
  62981. *
  62982. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html#outline)
  62983. */
  62984. size?: number | string;
  62985. }
  62986. export interface IconSymbol3DLayerOutline extends AnonymousAccessor {
  62987. /**
  62988. * The color of the outline.
  62989. *
  62990. * @default black
  62991. *
  62992. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html#outline)
  62993. */
  62994. color?: Color;
  62995. /**
  62996. * The width of the outline in points.
  62997. *
  62998. * @default 1.125
  62999. *
  63000. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html#outline)
  63001. */
  63002. size?: number;
  63003. }
  63004. export interface IconSymbol3DLayerResource {
  63005. /**
  63006. * Uses a built-in shape.
  63007. *
  63008. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html#resource)
  63009. */
  63010. primitive?: string;
  63011. /**
  63012. * The URL or data URI for the image.
  63013. *
  63014. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-IconSymbol3DLayer.html#resource)
  63015. */
  63016. href?: string;
  63017. }
  63018. export class LabelSymbol3D extends Symbol3D {
  63019. /**
  63020. * Settings for adding a callout visualization to the symbol.
  63021. *
  63022. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LabelSymbol3D.html#callout)
  63023. */
  63024. callout: Callout3D;
  63025. /**
  63026. * A Collection of [Symbol3DLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol3DLayer.html) objects used to visualize the graphic or feature.
  63027. *
  63028. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LabelSymbol3D.html#symbolLayers)
  63029. */
  63030. symbolLayers: Collection<TextSymbol3DLayer>;
  63031. /**
  63032. * The symbol type.
  63033. *
  63034. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LabelSymbol3D.html#type)
  63035. */
  63036. readonly type: "label-3d";
  63037. /**
  63038. * Shifts the symbol along the vertical world axis by a given height.
  63039. *
  63040. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LabelSymbol3D.html#verticalOffset)
  63041. */
  63042. verticalOffset: Symbol3DVerticalOffset;
  63043. /**
  63044. * LabelSymbol3D is used to render labels for features from a [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) in a 3D [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  63045. *
  63046. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LabelSymbol3D.html)
  63047. */
  63048. constructor(properties?: LabelSymbol3DProperties);
  63049. /**
  63050. * Creates a deep clone of the symbol.
  63051. *
  63052. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LabelSymbol3D.html#clone)
  63053. */
  63054. clone(): LabelSymbol3D;
  63055. static fromJSON(json: any): LabelSymbol3D;
  63056. }
  63057. /** @deprecated Import the LabelSymbol3D class instead. */
  63058. export type LabelSymbol3DConstructor = typeof LabelSymbol3D;
  63059. interface LabelSymbol3DProperties extends Symbol3DProperties {
  63060. /**
  63061. * Settings for adding a callout visualization to the symbol.
  63062. *
  63063. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LabelSymbol3D.html#callout)
  63064. */
  63065. callout?: Callout3DProperties;
  63066. /**
  63067. * A Collection of [Symbol3DLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol3DLayer.html) objects used to visualize the graphic or feature.
  63068. *
  63069. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LabelSymbol3D.html#symbolLayers)
  63070. */
  63071. symbolLayers?: CollectionProperties<TextSymbol3DLayerProperties>;
  63072. /**
  63073. * Shifts the symbol along the vertical world axis by a given height.
  63074. *
  63075. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LabelSymbol3D.html#verticalOffset)
  63076. */
  63077. verticalOffset?: Symbol3DVerticalOffsetProperties;
  63078. }
  63079. export class LineStyleMarker3D extends Accessor {
  63080. /**
  63081. * The color of the marker.
  63082. *
  63083. * @default null
  63084. *
  63085. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineStyleMarker3D.html#color)
  63086. */
  63087. color: Color;
  63088. /**
  63089. * Indicates where the marker is placed.
  63090. *
  63091. * @default "begin-end"
  63092. *
  63093. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineStyleMarker3D.html#placement)
  63094. */
  63095. placement: "begin" | "end" | "begin-end";
  63096. /**
  63097. * Style of the marker.
  63098. *
  63099. * @default "arrow"
  63100. *
  63101. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineStyleMarker3D.html#style)
  63102. */
  63103. style: "arrow" | "circle" | "square" | "diamond" | "cross" | "x";
  63104. /**
  63105. * The type of marker applied to a line.
  63106. *
  63107. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineStyleMarker3D.html#type)
  63108. */
  63109. readonly type: "style";
  63110. /**
  63111. * LineStyleMarker3D is used for rendering a simple marker graphic on a [LineSymbol3DLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3DLayer.html).
  63112. *
  63113. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineStyleMarker3D.html)
  63114. */
  63115. constructor(properties?: LineStyleMarker3DProperties);
  63116. /**
  63117. * Creates a deep clone of this object.
  63118. *
  63119. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineStyleMarker3D.html#clone)
  63120. */
  63121. clone(): this;
  63122. }
  63123. /** @deprecated Import the LineStyleMarker3D class instead. */
  63124. export type LineStyleMarker3DConstructor = typeof LineStyleMarker3D;
  63125. interface LineStyleMarker3DProperties {
  63126. /**
  63127. * The color of the marker.
  63128. *
  63129. * @default null
  63130. *
  63131. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineStyleMarker3D.html#color)
  63132. */
  63133. color?: Color | number[] | string;
  63134. /**
  63135. * Indicates where the marker is placed.
  63136. *
  63137. * @default "begin-end"
  63138. *
  63139. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineStyleMarker3D.html#placement)
  63140. */
  63141. placement?: "begin" | "end" | "begin-end";
  63142. /**
  63143. * Style of the marker.
  63144. *
  63145. * @default "arrow"
  63146. *
  63147. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineStyleMarker3D.html#style)
  63148. */
  63149. style?: "arrow" | "circle" | "square" | "diamond" | "cross" | "x";
  63150. /**
  63151. * The type of marker applied to a line.
  63152. *
  63153. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineStyleMarker3D.html#type)
  63154. */
  63155. type?: "style";
  63156. }
  63157. export class LineSymbol extends Symbol {
  63158. /**
  63159. * The symbol type.
  63160. *
  63161. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol.html#type)
  63162. */
  63163. type: "simple-line";
  63164. /**
  63165. * The width of the symbol in points.
  63166. *
  63167. * @default 0.75
  63168. *
  63169. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol.html#width)
  63170. */
  63171. width: number;
  63172. /**
  63173. * Line symbols are used to draw [Polyline](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html) features in a [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) in a 2D [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  63174. *
  63175. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol.html)
  63176. */
  63177. constructor(properties?: LineSymbolProperties);
  63178. static fromJSON(json: any): LineSymbol;
  63179. }
  63180. /** @deprecated Import the LineSymbol class instead. */
  63181. export type LineSymbolConstructor = typeof LineSymbol;
  63182. interface LineSymbolProperties extends SymbolProperties {
  63183. /**
  63184. * The symbol type.
  63185. *
  63186. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol.html#type)
  63187. */
  63188. type?: "simple-line";
  63189. /**
  63190. * The width of the symbol in points.
  63191. *
  63192. * @default 0.75
  63193. *
  63194. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol.html#width)
  63195. */
  63196. width?: number | string;
  63197. }
  63198. export class LineSymbol3D extends Symbol3D {
  63199. /**
  63200. * A Collection of [Symbol3DLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol3DLayer.html) objects used to visualize the graphic or feature.
  63201. *
  63202. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3D.html#symbolLayers)
  63203. */
  63204. symbolLayers: Collection<LineSymbol3DLayer | PathSymbol3DLayer>;
  63205. /**
  63206. * The symbol type.
  63207. *
  63208. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3D.html#type)
  63209. */
  63210. readonly type: "line-3d";
  63211. /**
  63212. * LineSymbol3D is used to render features with [Polyline](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html) geometry in a 3D [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  63213. *
  63214. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3D.html)
  63215. */
  63216. constructor(properties?: LineSymbol3DProperties);
  63217. /**
  63218. * Creates a deep clone of the symbol.
  63219. *
  63220. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3D.html#clone)
  63221. */
  63222. clone(): LineSymbol3D;
  63223. static fromJSON(json: any): LineSymbol3D;
  63224. }
  63225. /** @deprecated Import the LineSymbol3D class instead. */
  63226. export type LineSymbol3DConstructor = typeof LineSymbol3D;
  63227. interface LineSymbol3DProperties extends Symbol3DProperties {
  63228. /**
  63229. * A Collection of [Symbol3DLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol3DLayer.html) objects used to visualize the graphic or feature.
  63230. *
  63231. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3D.html#symbolLayers)
  63232. */
  63233. symbolLayers?: CollectionProperties<
  63234. (LineSymbol3DLayerProperties & { type: "line" }) | (PathSymbol3DLayerProperties & { type: "path" })
  63235. >;
  63236. }
  63237. export class LineSymbol3DLayer extends Symbol3DLayer {
  63238. /**
  63239. * The style used to draw the endpoint of a line.
  63240. *
  63241. * @default butt
  63242. *
  63243. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3DLayer.html#cap)
  63244. */
  63245. cap: "butt" | "round" | "square";
  63246. /**
  63247. * The style used to draw the intersection of two line segments within a line geometry.
  63248. *
  63249. * @default miter
  63250. *
  63251. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3DLayer.html#join)
  63252. */
  63253. join: "miter" | "round" | "bevel";
  63254. /**
  63255. * Optional markers to be placed at the start and/or end of each line geometry.
  63256. *
  63257. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3DLayer.html#marker)
  63258. */
  63259. marker: LineStyleMarker3D;
  63260. /**
  63261. * The material used to shade the line.
  63262. *
  63263. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3DLayer.html#material)
  63264. */
  63265. material: LineSymbol3DLayerMaterial;
  63266. /**
  63267. * The pattern used to render the line stroke.
  63268. *
  63269. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3DLayer.html#pattern)
  63270. */
  63271. pattern: LineStylePattern3D;
  63272. /**
  63273. * The width of the line in points.
  63274. *
  63275. * @default "1px"
  63276. *
  63277. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3DLayer.html#size)
  63278. */
  63279. size: number;
  63280. /**
  63281. * The symbol type.
  63282. *
  63283. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3DLayer.html#type)
  63284. */
  63285. readonly type: "line";
  63286. /**
  63287. * LineSymbol3DLayer renders [Polyline](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html) geometries using a flat 2D line with a [LineSymbol3D](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3D.html) in a 3D [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  63288. *
  63289. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3DLayer.html)
  63290. */
  63291. constructor(properties?: LineSymbol3DLayerProperties);
  63292. /**
  63293. * Creates a deep clone of the symbol layer.
  63294. *
  63295. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3DLayer.html#clone)
  63296. */
  63297. clone(): LineSymbol3DLayer;
  63298. static fromJSON(json: any): LineSymbol3DLayer;
  63299. }
  63300. /** @deprecated Import the LineSymbol3DLayer class instead. */
  63301. export type LineSymbol3DLayerConstructor = typeof LineSymbol3DLayer;
  63302. interface LineSymbol3DLayerProperties extends Symbol3DLayerProperties {
  63303. /**
  63304. * The style used to draw the endpoint of a line.
  63305. *
  63306. * @default butt
  63307. *
  63308. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3DLayer.html#cap)
  63309. */
  63310. cap?: "butt" | "round" | "square";
  63311. /**
  63312. * The style used to draw the intersection of two line segments within a line geometry.
  63313. *
  63314. * @default miter
  63315. *
  63316. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3DLayer.html#join)
  63317. */
  63318. join?: "miter" | "round" | "bevel";
  63319. /**
  63320. * Optional markers to be placed at the start and/or end of each line geometry.
  63321. *
  63322. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3DLayer.html#marker)
  63323. */
  63324. marker?: LineStyleMarker3DProperties;
  63325. /**
  63326. * The material used to shade the line.
  63327. *
  63328. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3DLayer.html#material)
  63329. */
  63330. material?: LineSymbol3DLayerMaterialProperties;
  63331. /**
  63332. * The pattern used to render the line stroke.
  63333. *
  63334. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3DLayer.html#pattern)
  63335. */
  63336. pattern?: LineStylePattern3DProperties;
  63337. /**
  63338. * The width of the line in points.
  63339. *
  63340. * @default "1px"
  63341. *
  63342. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3DLayer.html#size)
  63343. */
  63344. size?: number | string;
  63345. }
  63346. export interface LineSymbol3DLayerMaterialProperties {
  63347. /**
  63348. * The color of the line.
  63349. *
  63350. * @default white
  63351. *
  63352. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3DLayer.html#material)
  63353. */
  63354. color?: Color | number[] | string;
  63355. }
  63356. export interface LineSymbol3DLayerMaterial extends AnonymousAccessor {
  63357. /**
  63358. * The color of the line.
  63359. *
  63360. * @default white
  63361. *
  63362. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3DLayer.html#material)
  63363. */
  63364. color?: Color;
  63365. }
  63366. export class LineSymbolMarker extends Accessor {
  63367. /**
  63368. * The color of the marker.
  63369. *
  63370. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbolMarker.html#color)
  63371. */
  63372. color: Color;
  63373. /**
  63374. * The placement of the marker(s) on the line.
  63375. *
  63376. * @default "begin-end"
  63377. *
  63378. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbolMarker.html#placement)
  63379. */
  63380. placement: "begin" | "end" | "begin-end";
  63381. /**
  63382. * The marker style.
  63383. *
  63384. * @default "arrow"
  63385. *
  63386. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbolMarker.html#style)
  63387. */
  63388. style: "arrow" | "circle" | "square" | "diamond" | "cross" | "x";
  63389. /**
  63390. * The symbol type.
  63391. *
  63392. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbolMarker.html#type)
  63393. */
  63394. readonly type: "line-marker";
  63395. /**
  63396. * LineSymbolMarker is used for rendering a simple marker graphic on a [SimpleLineSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html).
  63397. *
  63398. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbolMarker.html)
  63399. */
  63400. constructor(properties?: LineSymbolMarkerProperties);
  63401. }
  63402. /** @deprecated Import the LineSymbolMarker class instead. */
  63403. export type LineSymbolMarkerConstructor = typeof LineSymbolMarker;
  63404. interface LineSymbolMarkerProperties {
  63405. /**
  63406. * The color of the marker.
  63407. *
  63408. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbolMarker.html#color)
  63409. */
  63410. color?: Color | number[] | string;
  63411. /**
  63412. * The placement of the marker(s) on the line.
  63413. *
  63414. * @default "begin-end"
  63415. *
  63416. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbolMarker.html#placement)
  63417. */
  63418. placement?: "begin" | "end" | "begin-end";
  63419. /**
  63420. * The marker style.
  63421. *
  63422. * @default "arrow"
  63423. *
  63424. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbolMarker.html#style)
  63425. */
  63426. style?: "arrow" | "circle" | "square" | "diamond" | "cross" | "x";
  63427. }
  63428. export class MarkerSymbol extends Symbol {
  63429. /**
  63430. * The angle of the marker relative to the screen in degrees.
  63431. *
  63432. * @default 0
  63433. *
  63434. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-MarkerSymbol.html#angle)
  63435. */
  63436. angle: number;
  63437. /**
  63438. * The symbol type.
  63439. *
  63440. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-MarkerSymbol.html#type)
  63441. */
  63442. type: "simple-marker" | "picture-marker";
  63443. /**
  63444. * The offset on the x-axis in points.
  63445. *
  63446. * @default 0
  63447. *
  63448. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-MarkerSymbol.html#xoffset)
  63449. */
  63450. xoffset: number;
  63451. /**
  63452. * The offset on the y-axis in points.
  63453. *
  63454. * @default 0
  63455. *
  63456. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-MarkerSymbol.html#yoffset)
  63457. */
  63458. yoffset: number;
  63459. /**
  63460. * Marker symbols are used to draw [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) graphics in a [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) or individual [graphics](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) in a 2D [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  63461. *
  63462. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-MarkerSymbol.html)
  63463. */
  63464. constructor(properties?: MarkerSymbolProperties);
  63465. static fromJSON(json: any): MarkerSymbol;
  63466. }
  63467. /** @deprecated Import the MarkerSymbol class instead. */
  63468. export type MarkerSymbolConstructor = typeof MarkerSymbol;
  63469. interface MarkerSymbolProperties extends SymbolProperties {
  63470. /**
  63471. * The angle of the marker relative to the screen in degrees.
  63472. *
  63473. * @default 0
  63474. *
  63475. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-MarkerSymbol.html#angle)
  63476. */
  63477. angle?: number;
  63478. /**
  63479. * The symbol type.
  63480. *
  63481. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-MarkerSymbol.html#type)
  63482. */
  63483. type?: "simple-marker" | "picture-marker";
  63484. /**
  63485. * The offset on the x-axis in points.
  63486. *
  63487. * @default 0
  63488. *
  63489. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-MarkerSymbol.html#xoffset)
  63490. */
  63491. xoffset?: number | string;
  63492. /**
  63493. * The offset on the y-axis in points.
  63494. *
  63495. * @default 0
  63496. *
  63497. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-MarkerSymbol.html#yoffset)
  63498. */
  63499. yoffset?: number | string;
  63500. }
  63501. export class MeshSymbol3D extends Symbol3D {
  63502. /**
  63503. * A Collection of [Symbol3DLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol3DLayer.html) objects used to visualize the graphic or feature.
  63504. *
  63505. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-MeshSymbol3D.html#symbolLayers)
  63506. */
  63507. symbolLayers: Collection<FillSymbol3DLayer>;
  63508. /**
  63509. * The symbol type.
  63510. *
  63511. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-MeshSymbol3D.html#type)
  63512. */
  63513. readonly type: "mesh-3d";
  63514. /**
  63515. * MeshSymbol3D is used to render 3D mesh features in a [SceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html) in a 3D [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  63516. *
  63517. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-MeshSymbol3D.html)
  63518. */
  63519. constructor(properties?: MeshSymbol3DProperties);
  63520. /**
  63521. * Creates a deep clone of the symbol.
  63522. *
  63523. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-MeshSymbol3D.html#clone)
  63524. */
  63525. clone(): MeshSymbol3D;
  63526. static fromJSON(json: any): MeshSymbol3D;
  63527. }
  63528. /** @deprecated Import the MeshSymbol3D class instead. */
  63529. export type MeshSymbol3DConstructor = typeof MeshSymbol3D;
  63530. interface MeshSymbol3DProperties extends Symbol3DProperties {
  63531. /**
  63532. * A Collection of [Symbol3DLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol3DLayer.html) objects used to visualize the graphic or feature.
  63533. *
  63534. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-MeshSymbol3D.html#symbolLayers)
  63535. */
  63536. symbolLayers?: CollectionProperties<FillSymbol3DLayerProperties>;
  63537. }
  63538. export class ObjectSymbol3DLayer extends Symbol3DLayer {
  63539. /**
  63540. * The positioning of the symbol relative to the geometry.
  63541. *
  63542. * @default origin
  63543. *
  63544. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#anchor)
  63545. */
  63546. anchor: "center" | "top" | "bottom" | "origin" | "relative";
  63547. /**
  63548. * Defines the [anchor](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#anchor) relative to the center of the [symbol layer resource](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#resource).
  63549. *
  63550. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#anchorPosition)
  63551. */
  63552. anchorPosition: ObjectSymbol3DLayerAnchorPosition;
  63553. /**
  63554. * Indicates whether the symbol layer geometry casts shadows in the scene.
  63555. *
  63556. * @default true
  63557. *
  63558. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#castShadows)
  63559. */
  63560. castShadows: boolean;
  63561. /**
  63562. * The depth, or diameter from north to south, of the object in meters.
  63563. *
  63564. * @default 10
  63565. *
  63566. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#depth)
  63567. */
  63568. depth: number;
  63569. /**
  63570. * The clockwise rotation of the symbol in the horizontal plane (i.e., around the z axis).
  63571. *
  63572. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#heading)
  63573. */
  63574. heading: number;
  63575. /**
  63576. * The height of the object in meters.
  63577. *
  63578. * @default 10
  63579. *
  63580. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#height)
  63581. */
  63582. height: number;
  63583. /**
  63584. * The material used to shade the object.
  63585. *
  63586. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#material)
  63587. */
  63588. material: ObjectSymbol3DLayerMaterial;
  63589. /**
  63590. * The primitive shape (`primitive`) or external 3D model (`href`) used to visualize the points.
  63591. *
  63592. * @default { primitive: "sphere" }
  63593. *
  63594. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#resource)
  63595. */
  63596. resource: ObjectSymbol3DLayerResource;
  63597. /**
  63598. * The rotation of the symbol in the lateral vertical plane (i.e., around the y axis).
  63599. *
  63600. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#roll)
  63601. */
  63602. roll: number;
  63603. /**
  63604. * The rotation of the symbol in the longitudinal vertical plane (i.e., around the x axis).
  63605. *
  63606. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#tilt)
  63607. */
  63608. tilt: number;
  63609. /**
  63610. * The object type.
  63611. *
  63612. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#type)
  63613. */
  63614. readonly type: "object";
  63615. /**
  63616. * The width, or diameter from east to west, of the object in meters.
  63617. *
  63618. * @default 10
  63619. *
  63620. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#width)
  63621. */
  63622. width: number;
  63623. /**
  63624. * ObjectSymbol3DLayer is used to render [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) geometries using a volumetric 3D shape (e.g., a sphere or cylinder) with a [PointSymbol3D](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PointSymbol3D.html) in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  63625. *
  63626. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html)
  63627. */
  63628. constructor(properties?: ObjectSymbol3DLayerProperties);
  63629. /**
  63630. * Creates a deep clone of the symbol layer.
  63631. *
  63632. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#clone)
  63633. */
  63634. clone(): ObjectSymbol3DLayer;
  63635. static fromJSON(json: any): ObjectSymbol3DLayer;
  63636. }
  63637. /** @deprecated Import the ObjectSymbol3DLayer class instead. */
  63638. export type ObjectSymbol3DLayerConstructor = typeof ObjectSymbol3DLayer;
  63639. interface ObjectSymbol3DLayerProperties extends Symbol3DLayerProperties {
  63640. /**
  63641. * The positioning of the symbol relative to the geometry.
  63642. *
  63643. * @default origin
  63644. *
  63645. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#anchor)
  63646. */
  63647. anchor?: "center" | "top" | "bottom" | "origin" | "relative";
  63648. /**
  63649. * Defines the [anchor](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#anchor) relative to the center of the [symbol layer resource](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#resource).
  63650. *
  63651. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#anchorPosition)
  63652. */
  63653. anchorPosition?: ObjectSymbol3DLayerAnchorPosition;
  63654. /**
  63655. * Indicates whether the symbol layer geometry casts shadows in the scene.
  63656. *
  63657. * @default true
  63658. *
  63659. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#castShadows)
  63660. */
  63661. castShadows?: boolean;
  63662. /**
  63663. * The depth, or diameter from north to south, of the object in meters.
  63664. *
  63665. * @default 10
  63666. *
  63667. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#depth)
  63668. */
  63669. depth?: number;
  63670. /**
  63671. * The clockwise rotation of the symbol in the horizontal plane (i.e., around the z axis).
  63672. *
  63673. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#heading)
  63674. */
  63675. heading?: number;
  63676. /**
  63677. * The height of the object in meters.
  63678. *
  63679. * @default 10
  63680. *
  63681. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#height)
  63682. */
  63683. height?: number;
  63684. /**
  63685. * The material used to shade the object.
  63686. *
  63687. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#material)
  63688. */
  63689. material?: ObjectSymbol3DLayerMaterialProperties;
  63690. /**
  63691. * The primitive shape (`primitive`) or external 3D model (`href`) used to visualize the points.
  63692. *
  63693. * @default { primitive: "sphere" }
  63694. *
  63695. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#resource)
  63696. */
  63697. resource?: ObjectSymbol3DLayerResource;
  63698. /**
  63699. * The rotation of the symbol in the lateral vertical plane (i.e., around the y axis).
  63700. *
  63701. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#roll)
  63702. */
  63703. roll?: number;
  63704. /**
  63705. * The rotation of the symbol in the longitudinal vertical plane (i.e., around the x axis).
  63706. *
  63707. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#tilt)
  63708. */
  63709. tilt?: number;
  63710. /**
  63711. * The width, or diameter from east to west, of the object in meters.
  63712. *
  63713. * @default 10
  63714. *
  63715. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#width)
  63716. */
  63717. width?: number;
  63718. }
  63719. export interface ObjectSymbol3DLayerAnchorPosition {
  63720. /**
  63721. * Value defining the position relative to the x axis of the bounding box.
  63722. *
  63723. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#anchorPosition)
  63724. */
  63725. x: number;
  63726. /**
  63727. * Value defining the position relative to the y axis of the bounding box.
  63728. *
  63729. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#anchorPosition)
  63730. */
  63731. y: number;
  63732. /**
  63733. * Value defining the position relative to the z axis of the bounding box.
  63734. *
  63735. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#anchorPosition)
  63736. */
  63737. z: number;
  63738. }
  63739. export interface ObjectSymbol3DLayerMaterialProperties {
  63740. /**
  63741. * The fill color of the object.
  63742. *
  63743. * @default white
  63744. *
  63745. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#material)
  63746. */
  63747. color?: Color | number[] | string;
  63748. }
  63749. export interface ObjectSymbol3DLayerMaterial extends AnonymousAccessor {
  63750. /**
  63751. * The fill color of the object.
  63752. *
  63753. * @default white
  63754. *
  63755. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#material)
  63756. */
  63757. color?: Color;
  63758. }
  63759. export interface ObjectSymbol3DLayerResource {
  63760. /**
  63761. * Uses a built-in shape.
  63762. *
  63763. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#resource)
  63764. */
  63765. primitive?: string;
  63766. /**
  63767. * The URL to the 3D model in [glTF format](https://www.khronos.org/gltf/).
  63768. *
  63769. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ObjectSymbol3DLayer.html#resource)
  63770. */
  63771. href?: string;
  63772. }
  63773. export class PathSymbol3DLayer extends Symbol3DLayer {
  63774. /**
  63775. * Defines offset of the path cross section relative to the [Polyline](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html) geometry.
  63776. *
  63777. * @default "center"
  63778. *
  63779. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#anchor)
  63780. */
  63781. anchor: "center" | "bottom" | "top";
  63782. /**
  63783. * Controls the shape at the start and end point of the path.
  63784. *
  63785. * @default "butt"
  63786. *
  63787. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#cap)
  63788. */
  63789. cap: "none" | "butt" | "square" | "round";
  63790. /**
  63791. * Indicates whether the symbol layer geometry casts shadows in the scene.
  63792. *
  63793. * @default true
  63794. *
  63795. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#castShadows)
  63796. */
  63797. castShadows: boolean;
  63798. /**
  63799. * The vertical dimension of the cross-section of the path in meters.
  63800. *
  63801. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#height)
  63802. */
  63803. height: number;
  63804. /**
  63805. * Controls the shape of the connection between two segments of the path.
  63806. *
  63807. * @default "miter"
  63808. *
  63809. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#join)
  63810. */
  63811. join: "miter" | "bevel" | "round";
  63812. /**
  63813. * The material used to shade the path.
  63814. *
  63815. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#material)
  63816. */
  63817. material: PathSymbol3DLayerMaterial;
  63818. /**
  63819. * Cross-section profile of the path geometry.
  63820. *
  63821. * @default "circle"
  63822. *
  63823. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#profile)
  63824. */
  63825. profile: "circle" | "quad";
  63826. /**
  63827. * Defines how the [profile](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#profile) is rotated as it is extruded along the [Polyline](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html) geometry.
  63828. *
  63829. * @default "all"
  63830. *
  63831. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#profileRotation)
  63832. */
  63833. profileRotation: "heading" | "all";
  63834. /**
  63835. * The symbol type.
  63836. *
  63837. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#type)
  63838. */
  63839. readonly type: "path";
  63840. /**
  63841. * The horizontal dimension of the cross-section of the path in meters.
  63842. *
  63843. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#width)
  63844. */
  63845. width: number;
  63846. /**
  63847. * PathSymbol3DLayer renders [Polyline](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html) geometries by extruding a 2D profile along the line.
  63848. *
  63849. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html)
  63850. */
  63851. constructor(properties?: PathSymbol3DLayerProperties);
  63852. /**
  63853. * Creates a deep clone of the symbol layer.
  63854. *
  63855. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#clone)
  63856. */
  63857. clone(): PathSymbol3DLayer;
  63858. static fromJSON(json: any): PathSymbol3DLayer;
  63859. }
  63860. /** @deprecated Import the PathSymbol3DLayer class instead. */
  63861. export type PathSymbol3DLayerConstructor = typeof PathSymbol3DLayer;
  63862. interface PathSymbol3DLayerProperties extends Symbol3DLayerProperties {
  63863. /**
  63864. * Defines offset of the path cross section relative to the [Polyline](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html) geometry.
  63865. *
  63866. * @default "center"
  63867. *
  63868. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#anchor)
  63869. */
  63870. anchor?: "center" | "bottom" | "top";
  63871. /**
  63872. * Controls the shape at the start and end point of the path.
  63873. *
  63874. * @default "butt"
  63875. *
  63876. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#cap)
  63877. */
  63878. cap?: "none" | "butt" | "square" | "round";
  63879. /**
  63880. * Indicates whether the symbol layer geometry casts shadows in the scene.
  63881. *
  63882. * @default true
  63883. *
  63884. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#castShadows)
  63885. */
  63886. castShadows?: boolean;
  63887. /**
  63888. * The vertical dimension of the cross-section of the path in meters.
  63889. *
  63890. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#height)
  63891. */
  63892. height?: number;
  63893. /**
  63894. * Controls the shape of the connection between two segments of the path.
  63895. *
  63896. * @default "miter"
  63897. *
  63898. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#join)
  63899. */
  63900. join?: "miter" | "bevel" | "round";
  63901. /**
  63902. * The material used to shade the path.
  63903. *
  63904. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#material)
  63905. */
  63906. material?: PathSymbol3DLayerMaterialProperties;
  63907. /**
  63908. * Cross-section profile of the path geometry.
  63909. *
  63910. * @default "circle"
  63911. *
  63912. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#profile)
  63913. */
  63914. profile?: "circle" | "quad";
  63915. /**
  63916. * Defines how the [profile](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#profile) is rotated as it is extruded along the [Polyline](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html) geometry.
  63917. *
  63918. * @default "all"
  63919. *
  63920. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#profileRotation)
  63921. */
  63922. profileRotation?: "heading" | "all";
  63923. /**
  63924. * The horizontal dimension of the cross-section of the path in meters.
  63925. *
  63926. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#width)
  63927. */
  63928. width?: number;
  63929. }
  63930. export interface PathSymbol3DLayerMaterialProperties {
  63931. /**
  63932. * The color of the path.
  63933. *
  63934. * @default white
  63935. *
  63936. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#material)
  63937. */
  63938. color?: Color | number[] | string;
  63939. }
  63940. export interface PathSymbol3DLayerMaterial extends AnonymousAccessor {
  63941. /**
  63942. * The color of the path.
  63943. *
  63944. * @default white
  63945. *
  63946. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PathSymbol3DLayer.html#material)
  63947. */
  63948. color?: Color;
  63949. }
  63950. export interface LineStylePattern3D extends Accessor, JSONSupport {
  63951. }
  63952. export class LineStylePattern3D {
  63953. /**
  63954. * The pattern style.
  63955. *
  63956. * @default solid
  63957. *
  63958. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-patterns-LineStylePattern3D.html#style)
  63959. */
  63960. style: | "dash"
  63961. | "dash-dot"
  63962. | "dot"
  63963. | "long-dash"
  63964. | "long-dash-dot"
  63965. | "long-dash-dot-dot"
  63966. | "none"
  63967. | "short-dash"
  63968. | "short-dash-dot"
  63969. | "short-dash-dot-dot"
  63970. | "short-dot"
  63971. | "solid";
  63972. /**
  63973. * The pattern type.
  63974. *
  63975. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-patterns-LineStylePattern3D.html#type)
  63976. */
  63977. readonly type: "style";
  63978. /**
  63979. * Renders lines with predefined style patterns.
  63980. *
  63981. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-patterns-LineStylePattern3D.html)
  63982. */
  63983. constructor(properties?: LineStylePattern3DProperties);
  63984. /**
  63985. * Creates a deep clone of the pattern.
  63986. *
  63987. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-patterns-LineStylePattern3D.html#clone)
  63988. */
  63989. clone(): LineStylePattern3D;
  63990. static fromJSON(json: any): LineStylePattern3D;
  63991. }
  63992. /** @deprecated Import the LineStylePattern3D class instead. */
  63993. export type LineStylePattern3DConstructor = typeof LineStylePattern3D;
  63994. interface LineStylePattern3DProperties {
  63995. /**
  63996. * The pattern style.
  63997. *
  63998. * @default solid
  63999. *
  64000. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-patterns-LineStylePattern3D.html#style)
  64001. */
  64002. style?: | "dash"
  64003. | "dash-dot"
  64004. | "dot"
  64005. | "long-dash"
  64006. | "long-dash-dot"
  64007. | "long-dash-dot-dot"
  64008. | "none"
  64009. | "short-dash"
  64010. | "short-dash-dot"
  64011. | "short-dash-dot-dot"
  64012. | "short-dot"
  64013. | "solid";
  64014. }
  64015. export interface StylePattern3D extends Accessor, JSONSupport {
  64016. }
  64017. export class StylePattern3D {
  64018. /**
  64019. * The fill style.
  64020. *
  64021. * @default solid
  64022. *
  64023. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-patterns-StylePattern3D.html#style)
  64024. */
  64025. style: | "backward-diagonal"
  64026. | "cross"
  64027. | "diagonal-cross"
  64028. | "forward-diagonal"
  64029. | "horizontal"
  64030. | "none"
  64031. | "solid"
  64032. | "vertical";
  64033. /**
  64034. * The pattern type.
  64035. *
  64036. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-patterns-StylePattern3D.html#type)
  64037. */
  64038. readonly type: "style";
  64039. /**
  64040. * Renders polygons with predefined style pattern fills.
  64041. *
  64042. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-patterns-StylePattern3D.html)
  64043. */
  64044. constructor(properties?: StylePattern3DProperties);
  64045. /**
  64046. * Creates a deep clone of the pattern.
  64047. *
  64048. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-patterns-StylePattern3D.html#clone)
  64049. */
  64050. clone(): StylePattern3D;
  64051. static fromJSON(json: any): StylePattern3D;
  64052. }
  64053. /** @deprecated Import the StylePattern3D class instead. */
  64054. export type StylePattern3DConstructor = typeof StylePattern3D;
  64055. interface StylePattern3DProperties {
  64056. /**
  64057. * The fill style.
  64058. *
  64059. * @default solid
  64060. *
  64061. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-patterns-StylePattern3D.html#style)
  64062. */
  64063. style?: | "backward-diagonal"
  64064. | "cross"
  64065. | "diagonal-cross"
  64066. | "forward-diagonal"
  64067. | "horizontal"
  64068. | "none"
  64069. | "solid"
  64070. | "vertical";
  64071. }
  64072. export class PictureFillSymbol extends FillSymbol {
  64073. /**
  64074. * The height of the image in points.
  64075. *
  64076. * @default 12
  64077. *
  64078. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureFillSymbol.html#height)
  64079. */
  64080. height: number;
  64081. /**
  64082. * The symbol type.
  64083. *
  64084. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureFillSymbol.html#type)
  64085. */
  64086. readonly type: "picture-fill";
  64087. /**
  64088. * The URL to the image.
  64089. *
  64090. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureFillSymbol.html#url)
  64091. */
  64092. url: string;
  64093. /**
  64094. * The width of the image in points.
  64095. *
  64096. * @default 12
  64097. *
  64098. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureFillSymbol.html#width)
  64099. */
  64100. width: number;
  64101. /**
  64102. * The offset on the x-axis in points.
  64103. *
  64104. * @default 0
  64105. *
  64106. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureFillSymbol.html#xoffset)
  64107. */
  64108. xoffset: number;
  64109. /**
  64110. * The scale factor on the x axis of the symbol.
  64111. *
  64112. * @default 1
  64113. *
  64114. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureFillSymbol.html#xscale)
  64115. */
  64116. xscale: number;
  64117. /**
  64118. * The offset on the y-axis in pixels or points.
  64119. *
  64120. * @default 0
  64121. *
  64122. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureFillSymbol.html#yoffset)
  64123. */
  64124. yoffset: number;
  64125. /**
  64126. * The scale factor on the y axis of the symbol.
  64127. *
  64128. * @default 1
  64129. *
  64130. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureFillSymbol.html#yscale)
  64131. */
  64132. yscale: number;
  64133. /**
  64134. * PictureFillSymbol uses an image in a repeating pattern to symbolize polygon features in a 2D [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  64135. *
  64136. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureFillSymbol.html)
  64137. */
  64138. constructor(properties?: PictureFillSymbolProperties);
  64139. /**
  64140. * Creates a deep clone of the symbol.
  64141. *
  64142. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureFillSymbol.html#clone)
  64143. */
  64144. clone(): PictureFillSymbol;
  64145. static fromJSON(json: any): PictureFillSymbol;
  64146. }
  64147. /** @deprecated Import the PictureFillSymbol class instead. */
  64148. export type PictureFillSymbolConstructor = typeof PictureFillSymbol;
  64149. interface PictureFillSymbolProperties extends FillSymbolProperties {
  64150. /**
  64151. * The height of the image in points.
  64152. *
  64153. * @default 12
  64154. *
  64155. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureFillSymbol.html#height)
  64156. */
  64157. height?: number | string;
  64158. /**
  64159. * The URL to the image.
  64160. *
  64161. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureFillSymbol.html#url)
  64162. */
  64163. url?: string;
  64164. /**
  64165. * The width of the image in points.
  64166. *
  64167. * @default 12
  64168. *
  64169. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureFillSymbol.html#width)
  64170. */
  64171. width?: number | string;
  64172. /**
  64173. * The offset on the x-axis in points.
  64174. *
  64175. * @default 0
  64176. *
  64177. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureFillSymbol.html#xoffset)
  64178. */
  64179. xoffset?: number | string;
  64180. /**
  64181. * The scale factor on the x axis of the symbol.
  64182. *
  64183. * @default 1
  64184. *
  64185. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureFillSymbol.html#xscale)
  64186. */
  64187. xscale?: number;
  64188. /**
  64189. * The offset on the y-axis in pixels or points.
  64190. *
  64191. * @default 0
  64192. *
  64193. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureFillSymbol.html#yoffset)
  64194. */
  64195. yoffset?: number | string;
  64196. /**
  64197. * The scale factor on the y axis of the symbol.
  64198. *
  64199. * @default 1
  64200. *
  64201. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureFillSymbol.html#yscale)
  64202. */
  64203. yscale?: number;
  64204. }
  64205. export class PictureMarkerSymbol extends MarkerSymbol {
  64206. /**
  64207. * The height of the image in points.
  64208. *
  64209. * @default 12
  64210. *
  64211. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureMarkerSymbol.html#height)
  64212. */
  64213. height: number;
  64214. /**
  64215. * The symbol type.
  64216. *
  64217. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureMarkerSymbol.html#type)
  64218. */
  64219. readonly type: "picture-marker";
  64220. /**
  64221. * The URL to an image or SVG document.
  64222. *
  64223. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureMarkerSymbol.html#url)
  64224. */
  64225. url: string;
  64226. /**
  64227. * The width of the image in points.
  64228. *
  64229. * @default 12
  64230. *
  64231. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureMarkerSymbol.html#width)
  64232. */
  64233. width: number;
  64234. /**
  64235. * PictureMarkerSymbol renders [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) graphics in either a 2D [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or 3D [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) using an image.
  64236. *
  64237. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureMarkerSymbol.html)
  64238. */
  64239. constructor(properties?: PictureMarkerSymbolProperties);
  64240. /**
  64241. * Creates a deep clone of the symbol.
  64242. *
  64243. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureMarkerSymbol.html#clone)
  64244. */
  64245. clone(): PictureMarkerSymbol;
  64246. static fromJSON(json: any): PictureMarkerSymbol;
  64247. }
  64248. /** @deprecated Import the PictureMarkerSymbol class instead. */
  64249. export type PictureMarkerSymbolConstructor = typeof PictureMarkerSymbol;
  64250. interface PictureMarkerSymbolProperties extends MarkerSymbolProperties {
  64251. /**
  64252. * The height of the image in points.
  64253. *
  64254. * @default 12
  64255. *
  64256. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureMarkerSymbol.html#height)
  64257. */
  64258. height?: number | string;
  64259. /**
  64260. * The URL to an image or SVG document.
  64261. *
  64262. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureMarkerSymbol.html#url)
  64263. */
  64264. url?: string;
  64265. /**
  64266. * The width of the image in points.
  64267. *
  64268. * @default 12
  64269. *
  64270. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureMarkerSymbol.html#width)
  64271. */
  64272. width?: number | string;
  64273. }
  64274. export class PointSymbol3D extends Symbol3D {
  64275. /**
  64276. * Settings for adding a callout visualization to the symbol.
  64277. *
  64278. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PointSymbol3D.html#callout)
  64279. */
  64280. callout: LineCallout3D;
  64281. /**
  64282. * A Collection of [Symbol3DLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol3DLayer.html) objects used to visualize the graphic or feature.
  64283. *
  64284. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PointSymbol3D.html#symbolLayers)
  64285. */
  64286. symbolLayers: Collection<IconSymbol3DLayer | ObjectSymbol3DLayer | TextSymbol3DLayer>;
  64287. /**
  64288. * The symbol type.
  64289. *
  64290. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PointSymbol3D.html#type)
  64291. */
  64292. readonly type: "point-3d";
  64293. /**
  64294. * Shifts the symbol along the vertical world axis by a given height.
  64295. *
  64296. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PointSymbol3D.html#verticalOffset)
  64297. */
  64298. verticalOffset: Symbol3DVerticalOffset;
  64299. /**
  64300. * PointSymbol3D is used to render features with [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) geometry in a 3D [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  64301. *
  64302. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PointSymbol3D.html)
  64303. */
  64304. constructor(properties?: PointSymbol3DProperties);
  64305. /**
  64306. * Creates a deep clone of the symbol.
  64307. *
  64308. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PointSymbol3D.html#clone)
  64309. */
  64310. clone(): PointSymbol3D;
  64311. static fromJSON(json: any): PointSymbol3D;
  64312. }
  64313. /** @deprecated Import the PointSymbol3D class instead. */
  64314. export type PointSymbol3DConstructor = typeof PointSymbol3D;
  64315. interface PointSymbol3DProperties extends Symbol3DProperties {
  64316. /**
  64317. * Settings for adding a callout visualization to the symbol.
  64318. *
  64319. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PointSymbol3D.html#callout)
  64320. */
  64321. callout?: LineCallout3DProperties;
  64322. /**
  64323. * A Collection of [Symbol3DLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol3DLayer.html) objects used to visualize the graphic or feature.
  64324. *
  64325. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PointSymbol3D.html#symbolLayers)
  64326. */
  64327. symbolLayers?: CollectionProperties<
  64328. | (IconSymbol3DLayerProperties & { type: "icon" })
  64329. | (ObjectSymbol3DLayerProperties & { type: "object" })
  64330. | (TextSymbol3DLayerProperties & { type: "text" })
  64331. >;
  64332. /**
  64333. * Shifts the symbol along the vertical world axis by a given height.
  64334. *
  64335. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PointSymbol3D.html#verticalOffset)
  64336. */
  64337. verticalOffset?: Symbol3DVerticalOffsetProperties;
  64338. }
  64339. export class PolygonSymbol3D extends Symbol3D {
  64340. /**
  64341. * A Collection of [Symbol3DLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol3DLayer.html) objects used to visualize the graphic or feature.
  64342. *
  64343. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PolygonSymbol3D.html#symbolLayers)
  64344. */
  64345. symbolLayers: Collection<
  64346. | ExtrudeSymbol3DLayer
  64347. | FillSymbol3DLayer
  64348. | IconSymbol3DLayer
  64349. | LineSymbol3DLayer
  64350. | ObjectSymbol3DLayer
  64351. | TextSymbol3DLayer
  64352. | WaterSymbol3DLayer
  64353. >;
  64354. /**
  64355. * The symbol type.
  64356. *
  64357. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PolygonSymbol3D.html#type)
  64358. */
  64359. readonly type: "polygon-3d";
  64360. /**
  64361. * PolygonSymbol3D is used to render features with [Polygon](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html) geometry in a 3D [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  64362. *
  64363. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PolygonSymbol3D.html)
  64364. */
  64365. constructor(properties?: PolygonSymbol3DProperties);
  64366. /**
  64367. * Creates a deep clone of the symbol.
  64368. *
  64369. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PolygonSymbol3D.html#clone)
  64370. */
  64371. clone(): PolygonSymbol3D;
  64372. static fromJSON(json: any): PolygonSymbol3D;
  64373. }
  64374. /** @deprecated Import the PolygonSymbol3D class instead. */
  64375. export type PolygonSymbol3DConstructor = typeof PolygonSymbol3D;
  64376. interface PolygonSymbol3DProperties extends Symbol3DProperties {
  64377. /**
  64378. * A Collection of [Symbol3DLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol3DLayer.html) objects used to visualize the graphic or feature.
  64379. *
  64380. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PolygonSymbol3D.html#symbolLayers)
  64381. */
  64382. symbolLayers?: CollectionProperties<
  64383. | (ExtrudeSymbol3DLayerProperties & { type: "extrude" })
  64384. | (FillSymbol3DLayerProperties & { type: "fill" })
  64385. | (IconSymbol3DLayerProperties & { type: "icon" })
  64386. | (LineSymbol3DLayerProperties & { type: "line" })
  64387. | (ObjectSymbol3DLayerProperties & { type: "object" })
  64388. | (TextSymbol3DLayerProperties & { type: "text" })
  64389. | (WaterSymbol3DLayerProperties & { type: "water" })
  64390. >;
  64391. }
  64392. export class SimpleFillSymbol extends FillSymbol {
  64393. /**
  64394. * The fill style.
  64395. *
  64396. * @default solid
  64397. *
  64398. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleFillSymbol.html#style)
  64399. */
  64400. style: | "backward-diagonal"
  64401. | "cross"
  64402. | "diagonal-cross"
  64403. | "forward-diagonal"
  64404. | "horizontal"
  64405. | "none"
  64406. | "solid"
  64407. | "vertical";
  64408. /**
  64409. * The symbol type.
  64410. *
  64411. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleFillSymbol.html#type)
  64412. */
  64413. readonly type: "simple-fill";
  64414. /**
  64415. * SimpleFillSymbol is used for rendering 2D polygons in either a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  64416. *
  64417. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleFillSymbol.html)
  64418. */
  64419. constructor(properties?: SimpleFillSymbolProperties);
  64420. /**
  64421. * Creates a deep clone of the symbol.
  64422. *
  64423. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleFillSymbol.html#clone)
  64424. */
  64425. clone(): SimpleFillSymbol;
  64426. static fromJSON(json: any): SimpleFillSymbol;
  64427. }
  64428. /** @deprecated Import the SimpleFillSymbol class instead. */
  64429. export type SimpleFillSymbolConstructor = typeof SimpleFillSymbol;
  64430. interface SimpleFillSymbolProperties extends FillSymbolProperties {
  64431. /**
  64432. * The fill style.
  64433. *
  64434. * @default solid
  64435. *
  64436. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleFillSymbol.html#style)
  64437. */
  64438. style?: | "backward-diagonal"
  64439. | "cross"
  64440. | "diagonal-cross"
  64441. | "forward-diagonal"
  64442. | "horizontal"
  64443. | "none"
  64444. | "solid"
  64445. | "vertical";
  64446. }
  64447. export class SimpleLineSymbol extends LineSymbol {
  64448. /**
  64449. * Specifies the cap style.
  64450. *
  64451. * @default round
  64452. *
  64453. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html#cap)
  64454. */
  64455. cap: "butt" | "round" | "square";
  64456. /**
  64457. * Specifies the join style.
  64458. *
  64459. * @default round
  64460. *
  64461. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html#join)
  64462. */
  64463. join: "miter" | "round" | "bevel";
  64464. /**
  64465. * Specifies the color, style, and placement of a symbol marker on the line.
  64466. *
  64467. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html#marker)
  64468. */
  64469. marker: LineSymbolMarker | null;
  64470. /**
  64471. * Maximum allowed ratio of the width of a miter join to the line width.
  64472. *
  64473. * @default 2
  64474. *
  64475. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html#miterLimit)
  64476. */
  64477. miterLimit: number;
  64478. /**
  64479. * Specifies the line style.
  64480. *
  64481. * @default solid
  64482. *
  64483. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html#style)
  64484. */
  64485. style: | "dash"
  64486. | "dash-dot"
  64487. | "dot"
  64488. | "long-dash"
  64489. | "long-dash-dot"
  64490. | "long-dash-dot-dot"
  64491. | "none"
  64492. | "short-dash"
  64493. | "short-dash-dot"
  64494. | "short-dash-dot-dot"
  64495. | "short-dot"
  64496. | "solid";
  64497. /**
  64498. * SimpleLineSymbol is used for rendering 2D [polyline geometries](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html) in a 2D [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  64499. *
  64500. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html)
  64501. */
  64502. constructor(properties?: SimpleLineSymbolProperties);
  64503. /**
  64504. * Creates a deep clone of the symbol.
  64505. *
  64506. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html#clone)
  64507. */
  64508. clone(): SimpleLineSymbol;
  64509. static fromJSON(json: any): SimpleLineSymbol;
  64510. }
  64511. /** @deprecated Import the SimpleLineSymbol class instead. */
  64512. export type SimpleLineSymbolConstructor = typeof SimpleLineSymbol;
  64513. interface SimpleLineSymbolProperties extends LineSymbolProperties {
  64514. /**
  64515. * Specifies the cap style.
  64516. *
  64517. * @default round
  64518. *
  64519. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html#cap)
  64520. */
  64521. cap?: "butt" | "round" | "square";
  64522. /**
  64523. * Specifies the join style.
  64524. *
  64525. * @default round
  64526. *
  64527. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html#join)
  64528. */
  64529. join?: "miter" | "round" | "bevel";
  64530. /**
  64531. * Specifies the color, style, and placement of a symbol marker on the line.
  64532. *
  64533. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html#marker)
  64534. */
  64535. marker?: (LineSymbolMarkerProperties & { type: "line-marker" }) | null;
  64536. /**
  64537. * Maximum allowed ratio of the width of a miter join to the line width.
  64538. *
  64539. * @default 2
  64540. *
  64541. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html#miterLimit)
  64542. */
  64543. miterLimit?: number;
  64544. /**
  64545. * Specifies the line style.
  64546. *
  64547. * @default solid
  64548. *
  64549. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html#style)
  64550. */
  64551. style?: | "dash"
  64552. | "dash-dot"
  64553. | "dot"
  64554. | "long-dash"
  64555. | "long-dash-dot"
  64556. | "long-dash-dot-dot"
  64557. | "none"
  64558. | "short-dash"
  64559. | "short-dash-dot"
  64560. | "short-dash-dot-dot"
  64561. | "short-dot"
  64562. | "solid";
  64563. }
  64564. export class SimpleMarkerSymbol extends MarkerSymbol {
  64565. /**
  64566. * The outline of the marker symbol.
  64567. *
  64568. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleMarkerSymbol.html#outline)
  64569. */
  64570. outline: SimpleLineSymbol;
  64571. /**
  64572. * The SVG path of the icon.
  64573. *
  64574. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleMarkerSymbol.html#path)
  64575. */
  64576. path: string;
  64577. /**
  64578. * The size of the marker in points.
  64579. *
  64580. * @default 12
  64581. *
  64582. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleMarkerSymbol.html#size)
  64583. */
  64584. size: number;
  64585. /**
  64586. * The marker style.
  64587. *
  64588. * @default circle
  64589. *
  64590. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleMarkerSymbol.html#style)
  64591. */
  64592. style: "circle" | "square" | "cross" | "x" | "diamond" | "triangle" | "path";
  64593. /**
  64594. * The symbol type.
  64595. *
  64596. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleMarkerSymbol.html#type)
  64597. */
  64598. readonly type: "simple-marker";
  64599. /**
  64600. * SimpleMarkerSymbol is used for rendering 2D [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) geometries with a simple shape and [color](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleMarkerSymbol.html#color) in either a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  64601. *
  64602. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleMarkerSymbol.html)
  64603. */
  64604. constructor(properties?: SimpleMarkerSymbolProperties);
  64605. /**
  64606. * Creates a deep clone of the symbol.
  64607. *
  64608. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleMarkerSymbol.html#clone)
  64609. */
  64610. clone(): SimpleMarkerSymbol;
  64611. static fromJSON(json: any): SimpleMarkerSymbol;
  64612. }
  64613. /** @deprecated Import the SimpleMarkerSymbol class instead. */
  64614. export type SimpleMarkerSymbolConstructor = typeof SimpleMarkerSymbol;
  64615. interface SimpleMarkerSymbolProperties extends MarkerSymbolProperties {
  64616. /**
  64617. * The outline of the marker symbol.
  64618. *
  64619. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleMarkerSymbol.html#outline)
  64620. */
  64621. outline?: SimpleLineSymbolProperties;
  64622. /**
  64623. * The SVG path of the icon.
  64624. *
  64625. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleMarkerSymbol.html#path)
  64626. */
  64627. path?: string;
  64628. /**
  64629. * The size of the marker in points.
  64630. *
  64631. * @default 12
  64632. *
  64633. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleMarkerSymbol.html#size)
  64634. */
  64635. size?: number | string;
  64636. /**
  64637. * The marker style.
  64638. *
  64639. * @default circle
  64640. *
  64641. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleMarkerSymbol.html#style)
  64642. */
  64643. style?: "circle" | "square" | "cross" | "x" | "diamond" | "triangle" | "path";
  64644. }
  64645. /**
  64646. * Provides utility functions for [CIMSymbols](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html).
  64647. *
  64648. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-cimSymbolUtils.html)
  64649. */
  64650. interface cimSymbolUtils {
  64651. /**
  64652. * Sets the color of the symbol layers of a CIMSymbol to a given value if the symbol layer is not color locked.
  64653. *
  64654. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-cimSymbolUtils.html#applyCIMSymbolColor)
  64655. */
  64656. applyCIMSymbolColor(symbol: CIMSymbol, color: Color, options?: cimSymbolUtilsApplyCIMSymbolColorOptions): void;
  64657. /**
  64658. * Sets the rotation value of a CIMSymbol.
  64659. *
  64660. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-cimSymbolUtils.html#applyCIMSymbolRotation)
  64661. */
  64662. applyCIMSymbolRotation(symbol: CIMSymbol, rotation: number, clockwise?: boolean): void;
  64663. /**
  64664. * Returns the first color of the symbol layers in a CIMSymbol.
  64665. *
  64666. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-cimSymbolUtils.html#getCIMSymbolColor)
  64667. */
  64668. getCIMSymbolColor(symbol: CIMSymbol): Color;
  64669. /**
  64670. * Returns the rotation value of a CIMSymbol.
  64671. *
  64672. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-cimSymbolUtils.html#getCIMSymbolRotation)
  64673. */
  64674. getCIMSymbolRotation(symbol: CIMSymbol, clockwise?: boolean): number;
  64675. /**
  64676. * Returns the size of a given CIMSymbol.
  64677. *
  64678. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-cimSymbolUtils.html#getCIMSymbolSize)
  64679. */
  64680. getCIMSymbolSize(symbol: CIMSymbol): number;
  64681. /**
  64682. * Scales the largest layer of a CIMSymbol to a given size.
  64683. *
  64684. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-cimSymbolUtils.html#scaleCIMSymbolTo)
  64685. */
  64686. scaleCIMSymbolTo(symbol: CIMSymbol, size: number, options?: cimSymbolUtilsScaleCIMSymbolToOptions): void;
  64687. }
  64688. export const cimSymbolUtils: cimSymbolUtils;
  64689. export interface cimSymbolUtilsApplyCIMSymbolColorOptions {
  64690. /**
  64691. * The symbol layers to apply the color to.
  64692. *
  64693. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-cimSymbolUtils.html#applyCIMSymbolColor)
  64694. */
  64695. layersToColor?: "fill" | "outline" | "fill-and-outline";
  64696. }
  64697. export interface cimSymbolUtilsScaleCIMSymbolToOptions {
  64698. /**
  64699. * When `true`, this property will preserve the outline width of the symbol.
  64700. *
  64701. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-cimSymbolUtils.html#scaleCIMSymbolTo)
  64702. */
  64703. preserveOutlineWidth?: boolean;
  64704. }
  64705. /**
  64706. * Provides a utility method used to deserialize a JSON symbol object returned by the REST API.
  64707. *
  64708. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-jsonUtils.html)
  64709. */
  64710. interface symbolsSupportJsonUtils {
  64711. /**
  64712. * Creates a new instance of an appropriate [Symbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol.html) class and initializes it with values from a JSON object generated from an ArcGIS product.
  64713. *
  64714. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-jsonUtils.html#fromJSON)
  64715. */
  64716. fromJSON(json: any): Symbol;
  64717. }
  64718. export const symbolsSupportJsonUtils: symbolsSupportJsonUtils;
  64719. export class StyleOrigin extends Accessor {
  64720. /**
  64721. * Name of the symbol in the style referenced by styleName or styleUrl.
  64722. *
  64723. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-StyleOrigin.html#name)
  64724. */
  64725. name: string;
  64726. /**
  64727. * The portal of the style origin.
  64728. *
  64729. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-StyleOrigin.html#portal)
  64730. */
  64731. portal: Portal;
  64732. /**
  64733. * The well-known esri-provided style, such as `EsriThematicShapesStyle`.
  64734. *
  64735. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-StyleOrigin.html#styleName)
  64736. */
  64737. styleName: string;
  64738. /**
  64739. * A url to a style definition.
  64740. *
  64741. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-StyleOrigin.html#styleUrl)
  64742. */
  64743. styleUrl: string;
  64744. /**
  64745. * The style origin.
  64746. *
  64747. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-StyleOrigin.html)
  64748. */
  64749. constructor(properties?: StyleOriginProperties);
  64750. /**
  64751. * Creates a deep clone of the style origin.
  64752. *
  64753. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-StyleOrigin.html#clone)
  64754. */
  64755. clone(): StyleOrigin;
  64756. }
  64757. /** @deprecated Import the StyleOrigin class instead. */
  64758. export type StyleOriginConstructor = typeof StyleOrigin;
  64759. interface StyleOriginProperties {
  64760. /**
  64761. * Name of the symbol in the style referenced by styleName or styleUrl.
  64762. *
  64763. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-StyleOrigin.html#name)
  64764. */
  64765. name?: string;
  64766. /**
  64767. * The portal of the style origin.
  64768. *
  64769. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-StyleOrigin.html#portal)
  64770. */
  64771. portal?: PortalProperties;
  64772. /**
  64773. * The well-known esri-provided style, such as `EsriThematicShapesStyle`.
  64774. *
  64775. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-StyleOrigin.html#styleName)
  64776. */
  64777. styleName?: string;
  64778. /**
  64779. * A url to a style definition.
  64780. *
  64781. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-StyleOrigin.html#styleUrl)
  64782. */
  64783. styleUrl?: string;
  64784. }
  64785. export class Symbol3DVerticalOffset extends Accessor {
  64786. /**
  64787. * The maximum vertical symbol offset in world units.
  64788. *
  64789. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-Symbol3DVerticalOffset.html#maxWorldLength)
  64790. */
  64791. maxWorldLength: number;
  64792. /**
  64793. * The minimum vertical symbol offset in world units.
  64794. *
  64795. * @default 0
  64796. *
  64797. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-Symbol3DVerticalOffset.html#minWorldLength)
  64798. */
  64799. minWorldLength: number;
  64800. /**
  64801. * Vertical symbol offset in screen size.
  64802. *
  64803. * @default 0
  64804. *
  64805. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-Symbol3DVerticalOffset.html#screenLength)
  64806. */
  64807. screenLength: number;
  64808. /**
  64809. * Shifts a symbol along the vertical world axis by a given height.
  64810. *
  64811. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-Symbol3DVerticalOffset.html)
  64812. */
  64813. constructor(properties?: Symbol3DVerticalOffsetProperties);
  64814. /**
  64815. * Creates a deep clone of the vertical offset.
  64816. *
  64817. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-Symbol3DVerticalOffset.html#clone)
  64818. */
  64819. clone(): Symbol3DVerticalOffset;
  64820. }
  64821. /** @deprecated Import the Symbol3DVerticalOffset class instead. */
  64822. export type Symbol3DVerticalOffsetConstructor = typeof Symbol3DVerticalOffset;
  64823. interface Symbol3DVerticalOffsetProperties {
  64824. /**
  64825. * The maximum vertical symbol offset in world units.
  64826. *
  64827. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-Symbol3DVerticalOffset.html#maxWorldLength)
  64828. */
  64829. maxWorldLength?: number;
  64830. /**
  64831. * The minimum vertical symbol offset in world units.
  64832. *
  64833. * @default 0
  64834. *
  64835. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-Symbol3DVerticalOffset.html#minWorldLength)
  64836. */
  64837. minWorldLength?: number;
  64838. /**
  64839. * Vertical symbol offset in screen size.
  64840. *
  64841. * @default 0
  64842. *
  64843. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-Symbol3DVerticalOffset.html#screenLength)
  64844. */
  64845. screenLength?: number | string;
  64846. }
  64847. /**
  64848. * Generates small preview images of symbols.
  64849. *
  64850. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html)
  64851. */
  64852. interface symbolUtils {
  64853. /**
  64854. * Returns a color representing the input [graphic's](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) symbol.
  64855. *
  64856. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#getDisplayedColor)
  64857. */
  64858. getDisplayedColor(graphic: Graphic, options?: symbolUtilsGetDisplayedColorOptions): Promise<Color>;
  64859. /**
  64860. * Returns a symbol representing the input [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html).
  64861. *
  64862. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#getDisplayedSymbol)
  64863. */
  64864. getDisplayedSymbol(graphic: Graphic, options?: symbolUtilsGetDisplayedSymbolOptions): Promise<Symbol>;
  64865. /**
  64866. * Generates a preview image of a color ramp to display in a custom widget or other DOM element.
  64867. *
  64868. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#renderColorRampPreviewHTML)
  64869. */
  64870. renderColorRampPreviewHTML(colors: Color[], options?: symbolUtilsRenderColorRampPreviewHTMLOptions): HTMLElement;
  64871. /**
  64872. * Generates a preview image of a given symbol that can be displayed in a custom widget or other DOM element.
  64873. *
  64874. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#renderPreviewHTML)
  64875. */
  64876. renderPreviewHTML(symbol: Symbol, options?: symbolUtilsRenderPreviewHTMLOptions): Promise<HTMLElement>;
  64877. }
  64878. export const symbolUtils: symbolUtils;
  64879. export interface symbolUtilsGetDisplayedColorOptions {
  64880. /**
  64881. * The [view scale](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#scale) at which the graphic is displayed.
  64882. *
  64883. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#getDisplayedColor)
  64884. */
  64885. scale?: number;
  64886. /**
  64887. * The [viewingMode](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#viewingMode) of the view, if the graphic is displayed in a SceneView.
  64888. *
  64889. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#getDisplayedColor)
  64890. */
  64891. viewingMode?: string;
  64892. /**
  64893. * The spatial reference of the view in which the graphic is displayed.
  64894. *
  64895. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#getDisplayedColor)
  64896. */
  64897. spatialReference?: SpatialReference;
  64898. /**
  64899. * The renderer of the layer associated with the `graphic`.
  64900. *
  64901. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#getDisplayedColor)
  64902. */
  64903. renderer?: Renderer;
  64904. /**
  64905. * The [resolution](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#resolution) of the view at which the graphic is displayed.
  64906. *
  64907. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#getDisplayedColor)
  64908. */
  64909. resolution?: number;
  64910. }
  64911. export interface symbolUtilsGetDisplayedSymbolOptions {
  64912. /**
  64913. * The [view scale](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#scale) at which the symbol is displayed.
  64914. *
  64915. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#getDisplayedSymbol)
  64916. */
  64917. scale?: number;
  64918. /**
  64919. * The [viewingMode](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#viewingMode) of the view, if the symbol is displayed in a SceneView.
  64920. *
  64921. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#getDisplayedSymbol)
  64922. */
  64923. viewingMode?: string;
  64924. /**
  64925. * The spatial reference of the view in which the symbol is displayed.
  64926. *
  64927. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#getDisplayedSymbol)
  64928. */
  64929. spatialReference?: SpatialReference;
  64930. /**
  64931. * The renderer of the layer associated with the `graphic`.
  64932. *
  64933. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#getDisplayedSymbol)
  64934. */
  64935. renderer?: Renderer;
  64936. /**
  64937. * The [resolution](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#resolution) of the view at which the symbol is displayed.
  64938. *
  64939. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#getDisplayedSymbol)
  64940. */
  64941. resolution?: number;
  64942. }
  64943. export interface symbolUtilsRenderColorRampPreviewHTMLOptions {
  64944. /**
  64945. * Specifies the alignment of the color ramp.
  64946. *
  64947. * @default vertical
  64948. *
  64949. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#renderColorRampPreviewHTML)
  64950. */
  64951. align?: "horizontal" | "vertical";
  64952. /**
  64953. * Indicates whether to render the color ramp with a continuous gradient.
  64954. *
  64955. * @default true
  64956. *
  64957. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#renderColorRampPreviewHTML)
  64958. */
  64959. gradient?: boolean;
  64960. /**
  64961. * The width of the ramp in pixels.
  64962. *
  64963. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#renderColorRampPreviewHTML)
  64964. */
  64965. width?: number;
  64966. /**
  64967. * The height of the ramp in pixels.
  64968. *
  64969. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#renderColorRampPreviewHTML)
  64970. */
  64971. height?: number;
  64972. }
  64973. export interface symbolUtilsRenderPreviewHTMLOptions {
  64974. /**
  64975. * The parent node to append to the symbol.
  64976. *
  64977. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#renderPreviewHTML)
  64978. */
  64979. node?: HTMLElement;
  64980. /**
  64981. * Use a number to set the size (in points) of the symbol preview for any symbol representing a point.
  64982. *
  64983. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#renderPreviewHTML)
  64984. */
  64985. size?: number | symbolUtilsRenderPreviewHTMLOptionsSize;
  64986. /**
  64987. * The maximum size of the symbol preview in points.
  64988. *
  64989. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#renderPreviewHTML)
  64990. */
  64991. maxSize?: number;
  64992. /**
  64993. * The opacity of the layer represented by the `symbol`.
  64994. *
  64995. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#renderPreviewHTML)
  64996. */
  64997. opacity?: number;
  64998. /**
  64999. * When `true` the size of the symbol preview will include the outline in the measurement of the entire symbol.
  65000. *
  65001. * @default true
  65002. *
  65003. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#renderPreviewHTML)
  65004. */
  65005. scale?: boolean;
  65006. /**
  65007. * Indicates whether to disable upsampling for raster images.
  65008. *
  65009. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#renderPreviewHTML)
  65010. */
  65011. disableUpsampling?: boolean;
  65012. /**
  65013. * Options for setting the shape of a fill symbol preview.
  65014. *
  65015. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#renderPreviewHTML)
  65016. */
  65017. symbolConfig?: "tall" | symbolUtilsRenderPreviewHTMLOptionsSymbolConfig;
  65018. /**
  65019. * The rotation of the symbol.
  65020. *
  65021. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#renderPreviewHTML)
  65022. */
  65023. rotation?: number;
  65024. /**
  65025. * _Since 4.25_ The text that will be displayed in the symbol preview of a TextSymbol.
  65026. *
  65027. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#renderPreviewHTML)
  65028. */
  65029. overrideText?: string;
  65030. }
  65031. export interface symbolUtilsRenderPreviewHTMLOptionsSize {
  65032. /**
  65033. * The width of the symbol preview in points.
  65034. *
  65035. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#renderPreviewHTML)
  65036. */
  65037. width?: number;
  65038. /**
  65039. * The height of the symbol preview in points.
  65040. *
  65041. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#renderPreviewHTML)
  65042. */
  65043. height?: number;
  65044. }
  65045. export interface symbolUtilsRenderPreviewHTMLOptionsSymbolConfig {
  65046. /**
  65047. * Set to `true` for "tall" symbols in portrait view.
  65048. *
  65049. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#renderPreviewHTML)
  65050. */
  65051. isTall?: boolean;
  65052. /**
  65053. * Set to `true` to render the preview as a square instead of a generic polygon shape.
  65054. *
  65055. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#renderPreviewHTML)
  65056. */
  65057. isSquareFill?: boolean;
  65058. }
  65059. export interface Symbol extends Accessor, JSONSupport {
  65060. }
  65061. export class Symbol {
  65062. /**
  65063. * The color of the symbol.
  65064. *
  65065. * @default black
  65066. *
  65067. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol.html#color)
  65068. */
  65069. color: Color;
  65070. /**
  65071. * The symbol type.
  65072. *
  65073. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol.html#type)
  65074. */
  65075. readonly type: | "simple-marker"
  65076. | "picture-marker"
  65077. | "simple-line"
  65078. | "simple-fill"
  65079. | "picture-fill"
  65080. | "text"
  65081. | "shield-label-symbol"
  65082. | "point-3d"
  65083. | "line-3d"
  65084. | "polygon-3d"
  65085. | "web-style"
  65086. | "mesh-3d"
  65087. | "label-3d"
  65088. | "cim";
  65089. /**
  65090. * Symbol is the base class for all symbols.
  65091. *
  65092. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol.html)
  65093. */
  65094. constructor(properties?: SymbolProperties);
  65095. static fromJSON(json: any): Symbol;
  65096. }
  65097. /** @deprecated Import the Symbol class instead. */
  65098. export type SymbolConstructor = typeof Symbol;
  65099. interface SymbolProperties {
  65100. /**
  65101. * The color of the symbol.
  65102. *
  65103. * @default black
  65104. *
  65105. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol.html#color)
  65106. */
  65107. color?: Color | number[] | string;
  65108. }
  65109. export class Symbol3D extends Symbol {
  65110. /**
  65111. * The origin of the style from which the symbol was originally referenced.
  65112. *
  65113. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol3D.html#styleOrigin)
  65114. */
  65115. styleOrigin: StyleOrigin;
  65116. /**
  65117. * A Collection of [Symbol3DLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol3DLayer.html) objects used to visualize the graphic or feature.
  65118. *
  65119. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol3D.html#symbolLayers)
  65120. */
  65121. symbolLayers: Collection<Symbol3DLayer>;
  65122. /**
  65123. * The symbol type.
  65124. *
  65125. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol3D.html#type)
  65126. */
  65127. readonly type: "point-3d" | "line-3d" | "polygon-3d" | "mesh-3d" | "label-3d";
  65128. /**
  65129. * Symbol3D is the base class for all 3D symbols.
  65130. *
  65131. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol3D.html)
  65132. */
  65133. constructor(properties?: Symbol3DProperties);
  65134. static fromJSON(json: any): Symbol3D;
  65135. }
  65136. /** @deprecated Import the Symbol3D class instead. */
  65137. export type Symbol3DConstructor = typeof Symbol3D;
  65138. interface Symbol3DProperties extends SymbolProperties {
  65139. /**
  65140. * The origin of the style from which the symbol was originally referenced.
  65141. *
  65142. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol3D.html#styleOrigin)
  65143. */
  65144. styleOrigin?: StyleOriginProperties;
  65145. /**
  65146. * A Collection of [Symbol3DLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol3DLayer.html) objects used to visualize the graphic or feature.
  65147. *
  65148. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol3D.html#symbolLayers)
  65149. */
  65150. symbolLayers?: CollectionProperties<Symbol3DLayerProperties>;
  65151. }
  65152. export interface Symbol3DLayer extends Accessor, JSONSupport {
  65153. }
  65154. export class Symbol3DLayer {
  65155. /**
  65156. * The 3D symbol layer type.
  65157. *
  65158. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol3DLayer.html#type)
  65159. */
  65160. readonly type: "icon" | "object" | "line" | "path" | "fill" | "water" | "extrude" | "text";
  65161. /**
  65162. * Symbol layers are used to define the visualization of [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html), [Polyline](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html), [Polygon](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html), and mesh geometries rendered with [3D symbols](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol3D.html).
  65163. *
  65164. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol3DLayer.html)
  65165. */
  65166. constructor(properties?: Symbol3DLayerProperties);
  65167. static fromJSON(json: any): Symbol3DLayer;
  65168. }
  65169. /** @deprecated Import the Symbol3DLayer class instead. */
  65170. export type Symbol3DLayerConstructor = typeof Symbol3DLayer;
  65171. interface Symbol3DLayerProperties {
  65172. }
  65173. export class TextSymbol extends Symbol {
  65174. /**
  65175. * The angle of the text.
  65176. *
  65177. * @default 0
  65178. *
  65179. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#angle)
  65180. */
  65181. angle: number;
  65182. /**
  65183. * The background color of the label's bounding box.
  65184. *
  65185. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#backgroundColor)
  65186. */
  65187. backgroundColor: Color;
  65188. /**
  65189. * The border color of the label's bounding box.
  65190. *
  65191. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#borderLineColor)
  65192. */
  65193. borderLineColor: Color;
  65194. /**
  65195. * The border size or width of the label's bounding box.
  65196. *
  65197. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#borderLineSize)
  65198. */
  65199. borderLineSize: number;
  65200. /**
  65201. * The [Font](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Font.html) used to style the text.
  65202. *
  65203. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#font)
  65204. */
  65205. font: Font;
  65206. /**
  65207. * The color of the text symbol's halo.
  65208. *
  65209. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#haloColor)
  65210. */
  65211. haloColor: Color;
  65212. /**
  65213. * The size in points of the text symbol's halo.
  65214. *
  65215. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#haloSize)
  65216. */
  65217. haloSize: number;
  65218. /**
  65219. * Adjusts the horizontal alignment of the text in multi-lines.
  65220. *
  65221. * @default "center"
  65222. *
  65223. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#horizontalAlignment)
  65224. */
  65225. horizontalAlignment: "left" | "right" | "center";
  65226. /**
  65227. * Determines whether to adjust the spacing between characters in the text string.
  65228. *
  65229. * @default true
  65230. *
  65231. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#kerning)
  65232. */
  65233. kerning: boolean;
  65234. /**
  65235. * The height of the space between each line of text.
  65236. *
  65237. * @default 1.0
  65238. *
  65239. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#lineHeight)
  65240. */
  65241. lineHeight: number;
  65242. /**
  65243. * The maximum length in points for each line of text.
  65244. *
  65245. * @default 192
  65246. *
  65247. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#lineWidth)
  65248. */
  65249. lineWidth: number;
  65250. /**
  65251. * Determines whether every character in the text string is rotated.
  65252. *
  65253. * @default false
  65254. *
  65255. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#rotated)
  65256. */
  65257. rotated: boolean;
  65258. /**
  65259. * The text string to display in the view.
  65260. *
  65261. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#text)
  65262. */
  65263. text: string;
  65264. readonly type: "text";
  65265. /**
  65266. * Adjusts the vertical alignment of the text.
  65267. *
  65268. * @default "baseline"
  65269. *
  65270. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#verticalAlignment)
  65271. */
  65272. verticalAlignment: "baseline" | "top" | "middle" | "bottom";
  65273. /**
  65274. * The offset on the x-axis in points.
  65275. *
  65276. * @default 0
  65277. *
  65278. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#xoffset)
  65279. */
  65280. xoffset: number;
  65281. /**
  65282. * The offset on the y-axis in points.
  65283. *
  65284. * @default 0
  65285. *
  65286. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#yoffset)
  65287. */
  65288. yoffset: number;
  65289. /**
  65290. * Text symbols are used to define the graphic for displaying labels on a [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html), [CSVLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html), [Sublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html), and [StreamLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html) in a 2D [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  65291. *
  65292. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html)
  65293. */
  65294. constructor(properties?: TextSymbolProperties);
  65295. /**
  65296. * Creates a deep clone of the symbol.
  65297. *
  65298. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#clone)
  65299. */
  65300. clone(): TextSymbol;
  65301. static fromJSON(json: any): TextSymbol;
  65302. }
  65303. /** @deprecated Import the TextSymbol class instead. */
  65304. export type TextSymbolConstructor = typeof TextSymbol;
  65305. interface TextSymbolProperties extends SymbolProperties {
  65306. /**
  65307. * The angle of the text.
  65308. *
  65309. * @default 0
  65310. *
  65311. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#angle)
  65312. */
  65313. angle?: number;
  65314. /**
  65315. * The background color of the label's bounding box.
  65316. *
  65317. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#backgroundColor)
  65318. */
  65319. backgroundColor?: Color | number[] | string;
  65320. /**
  65321. * The border color of the label's bounding box.
  65322. *
  65323. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#borderLineColor)
  65324. */
  65325. borderLineColor?: Color | number[] | string;
  65326. /**
  65327. * The border size or width of the label's bounding box.
  65328. *
  65329. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#borderLineSize)
  65330. */
  65331. borderLineSize?: number;
  65332. /**
  65333. * The [Font](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Font.html) used to style the text.
  65334. *
  65335. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#font)
  65336. */
  65337. font?: FontProperties;
  65338. /**
  65339. * The color of the text symbol's halo.
  65340. *
  65341. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#haloColor)
  65342. */
  65343. haloColor?: Color | number[] | string;
  65344. /**
  65345. * The size in points of the text symbol's halo.
  65346. *
  65347. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#haloSize)
  65348. */
  65349. haloSize?: number | string;
  65350. /**
  65351. * Adjusts the horizontal alignment of the text in multi-lines.
  65352. *
  65353. * @default "center"
  65354. *
  65355. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#horizontalAlignment)
  65356. */
  65357. horizontalAlignment?: "left" | "right" | "center";
  65358. /**
  65359. * Determines whether to adjust the spacing between characters in the text string.
  65360. *
  65361. * @default true
  65362. *
  65363. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#kerning)
  65364. */
  65365. kerning?: boolean;
  65366. /**
  65367. * The height of the space between each line of text.
  65368. *
  65369. * @default 1.0
  65370. *
  65371. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#lineHeight)
  65372. */
  65373. lineHeight?: number;
  65374. /**
  65375. * The maximum length in points for each line of text.
  65376. *
  65377. * @default 192
  65378. *
  65379. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#lineWidth)
  65380. */
  65381. lineWidth?: number | string;
  65382. /**
  65383. * Determines whether every character in the text string is rotated.
  65384. *
  65385. * @default false
  65386. *
  65387. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#rotated)
  65388. */
  65389. rotated?: boolean;
  65390. /**
  65391. * The text string to display in the view.
  65392. *
  65393. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#text)
  65394. */
  65395. text?: string;
  65396. /**
  65397. * Adjusts the vertical alignment of the text.
  65398. *
  65399. * @default "baseline"
  65400. *
  65401. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#verticalAlignment)
  65402. */
  65403. verticalAlignment?: "baseline" | "top" | "middle" | "bottom";
  65404. /**
  65405. * The offset on the x-axis in points.
  65406. *
  65407. * @default 0
  65408. *
  65409. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#xoffset)
  65410. */
  65411. xoffset?: number | string;
  65412. /**
  65413. * The offset on the y-axis in points.
  65414. *
  65415. * @default 0
  65416. *
  65417. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#yoffset)
  65418. */
  65419. yoffset?: number | string;
  65420. }
  65421. export class TextSymbol3DLayer extends Symbol3DLayer {
  65422. /**
  65423. * The background of the text.
  65424. *
  65425. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#background)
  65426. */
  65427. background: TextSymbol3DLayerBackground;
  65428. /**
  65429. * The font of the text label.
  65430. *
  65431. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#font)
  65432. */
  65433. font: Font;
  65434. /**
  65435. * The halo surrounding the text.
  65436. *
  65437. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#halo)
  65438. */
  65439. halo: TextSymbol3DLayerHalo;
  65440. /**
  65441. * Adjusts the horizontal alignment of the text in multi-lines.
  65442. *
  65443. * @default "center"
  65444. *
  65445. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#horizontalAlignment)
  65446. */
  65447. horizontalAlignment: "left" | "right" | "center";
  65448. /**
  65449. * The height of the space between each line of text.
  65450. *
  65451. * @default 1.0
  65452. *
  65453. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#lineHeight)
  65454. */
  65455. lineHeight: number;
  65456. /**
  65457. * The material used to color the text.
  65458. *
  65459. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#material)
  65460. */
  65461. material: TextSymbol3DLayerMaterial;
  65462. /**
  65463. * Size of the text label in points.
  65464. *
  65465. * @default 9
  65466. *
  65467. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#size)
  65468. */
  65469. size: number;
  65470. /**
  65471. * The text to be displayed.
  65472. *
  65473. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#text)
  65474. */
  65475. text: string;
  65476. /**
  65477. * The symbol type.
  65478. *
  65479. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#type)
  65480. */
  65481. readonly type: "text";
  65482. /**
  65483. * Adjusts the vertical alignment of the text.
  65484. *
  65485. * @default "baseline"
  65486. *
  65487. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#verticalAlignment)
  65488. */
  65489. verticalAlignment: "baseline" | "top" | "middle" | "bottom";
  65490. /**
  65491. * TextSymbol3DLayer is used to draw text labels for features of any geometry type.
  65492. *
  65493. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html)
  65494. */
  65495. constructor(properties?: TextSymbol3DLayerProperties);
  65496. /**
  65497. * Creates a deep clone of the symbol layer.
  65498. *
  65499. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#clone)
  65500. */
  65501. clone(): TextSymbol3DLayer;
  65502. static fromJSON(json: any): TextSymbol3DLayer;
  65503. }
  65504. /** @deprecated Import the TextSymbol3DLayer class instead. */
  65505. export type TextSymbol3DLayerConstructor = typeof TextSymbol3DLayer;
  65506. interface TextSymbol3DLayerProperties extends Symbol3DLayerProperties {
  65507. /**
  65508. * The background of the text.
  65509. *
  65510. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#background)
  65511. */
  65512. background?: TextSymbol3DLayerBackgroundProperties;
  65513. /**
  65514. * The font of the text label.
  65515. *
  65516. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#font)
  65517. */
  65518. font?: FontProperties;
  65519. /**
  65520. * The halo surrounding the text.
  65521. *
  65522. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#halo)
  65523. */
  65524. halo?: TextSymbol3DLayerHaloProperties;
  65525. /**
  65526. * Adjusts the horizontal alignment of the text in multi-lines.
  65527. *
  65528. * @default "center"
  65529. *
  65530. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#horizontalAlignment)
  65531. */
  65532. horizontalAlignment?: "left" | "right" | "center";
  65533. /**
  65534. * The height of the space between each line of text.
  65535. *
  65536. * @default 1.0
  65537. *
  65538. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#lineHeight)
  65539. */
  65540. lineHeight?: number;
  65541. /**
  65542. * The material used to color the text.
  65543. *
  65544. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#material)
  65545. */
  65546. material?: TextSymbol3DLayerMaterialProperties;
  65547. /**
  65548. * Size of the text label in points.
  65549. *
  65550. * @default 9
  65551. *
  65552. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#size)
  65553. */
  65554. size?: number | string;
  65555. /**
  65556. * The text to be displayed.
  65557. *
  65558. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#text)
  65559. */
  65560. text?: string;
  65561. /**
  65562. * Adjusts the vertical alignment of the text.
  65563. *
  65564. * @default "baseline"
  65565. *
  65566. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#verticalAlignment)
  65567. */
  65568. verticalAlignment?: "baseline" | "top" | "middle" | "bottom";
  65569. }
  65570. export interface TextSymbol3DLayerBackgroundProperties {
  65571. /**
  65572. * The color of the background.
  65573. *
  65574. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#background)
  65575. */
  65576. color?: Color | number[] | string;
  65577. }
  65578. export interface TextSymbol3DLayerBackground extends AnonymousAccessor {
  65579. /**
  65580. * The color of the background.
  65581. *
  65582. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#background)
  65583. */
  65584. color?: Color;
  65585. }
  65586. export interface TextSymbol3DLayerHaloProperties {
  65587. /**
  65588. * The color of the halo.
  65589. *
  65590. * @default black
  65591. *
  65592. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#halo)
  65593. */
  65594. color?: Color | number[] | string;
  65595. /**
  65596. * The size of the halo in points.
  65597. *
  65598. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#halo)
  65599. */
  65600. size?: number | string;
  65601. }
  65602. export interface TextSymbol3DLayerHalo extends AnonymousAccessor {
  65603. /**
  65604. * The color of the halo.
  65605. *
  65606. * @default black
  65607. *
  65608. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#halo)
  65609. */
  65610. color?: Color;
  65611. /**
  65612. * The size of the halo in points.
  65613. *
  65614. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#halo)
  65615. */
  65616. size?: number;
  65617. }
  65618. export interface TextSymbol3DLayerMaterialProperties {
  65619. /**
  65620. * The color of the text.
  65621. *
  65622. * @default white
  65623. *
  65624. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#material)
  65625. */
  65626. color?: Color | number[] | string;
  65627. }
  65628. export interface TextSymbol3DLayerMaterial extends AnonymousAccessor {
  65629. /**
  65630. * The color of the text.
  65631. *
  65632. * @default white
  65633. *
  65634. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol3DLayer.html#material)
  65635. */
  65636. color?: Color;
  65637. }
  65638. export class WaterSymbol3DLayer extends Symbol3DLayer {
  65639. /**
  65640. * The dominant color used to shade the water.
  65641. *
  65642. * @default #0077BE
  65643. *
  65644. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WaterSymbol3DLayer.html#color)
  65645. */
  65646. color: Color;
  65647. /**
  65648. * The symbol type.
  65649. *
  65650. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WaterSymbol3DLayer.html#type)
  65651. */
  65652. readonly type: "water";
  65653. /**
  65654. * Indicates the size of the waterbody which is represented by the symbol layer.
  65655. *
  65656. * @default medium
  65657. *
  65658. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WaterSymbol3DLayer.html#waterbodySize)
  65659. */
  65660. waterbodySize: "small" | "medium" | "large";
  65661. /**
  65662. * Indicates the direction in which the waves travel.
  65663. *
  65664. * @default null
  65665. *
  65666. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WaterSymbol3DLayer.html#waveDirection)
  65667. */
  65668. waveDirection: number;
  65669. /**
  65670. * Indicates the shape and intensity of the waves.
  65671. *
  65672. * @default moderate
  65673. *
  65674. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WaterSymbol3DLayer.html#waveStrength)
  65675. */
  65676. waveStrength: "calm" | "rippled" | "slight" | "moderate";
  65677. /**
  65678. * WaterSymbol3DLayer is used to render [Polygon](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html) geometries as realistic, animated water surfaces, therefore it can only be used inside a [PolygonSymbol3D](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PolygonSymbol3D.html).
  65679. *
  65680. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WaterSymbol3DLayer.html)
  65681. */
  65682. constructor(properties?: WaterSymbol3DLayerProperties);
  65683. /**
  65684. * Creates a deep clone of the symbol layer.
  65685. *
  65686. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WaterSymbol3DLayer.html#clone)
  65687. */
  65688. clone(): WaterSymbol3DLayer;
  65689. static fromJSON(json: any): WaterSymbol3DLayer;
  65690. }
  65691. /** @deprecated Import the WaterSymbol3DLayer class instead. */
  65692. export type WaterSymbol3DLayerConstructor = typeof WaterSymbol3DLayer;
  65693. interface WaterSymbol3DLayerProperties extends Symbol3DLayerProperties {
  65694. /**
  65695. * The dominant color used to shade the water.
  65696. *
  65697. * @default #0077BE
  65698. *
  65699. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WaterSymbol3DLayer.html#color)
  65700. */
  65701. color?: Color | number[] | string;
  65702. /**
  65703. * Indicates the size of the waterbody which is represented by the symbol layer.
  65704. *
  65705. * @default medium
  65706. *
  65707. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WaterSymbol3DLayer.html#waterbodySize)
  65708. */
  65709. waterbodySize?: "small" | "medium" | "large";
  65710. /**
  65711. * Indicates the direction in which the waves travel.
  65712. *
  65713. * @default null
  65714. *
  65715. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WaterSymbol3DLayer.html#waveDirection)
  65716. */
  65717. waveDirection?: number;
  65718. /**
  65719. * Indicates the shape and intensity of the waves.
  65720. *
  65721. * @default moderate
  65722. *
  65723. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WaterSymbol3DLayer.html#waveStrength)
  65724. */
  65725. waveStrength?: "calm" | "rippled" | "slight" | "moderate";
  65726. }
  65727. export class WebStyleSymbol extends Symbol {
  65728. /**
  65729. * The name of the symbol within the web style.
  65730. *
  65731. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WebStyleSymbol.html#name)
  65732. */
  65733. name: string;
  65734. /**
  65735. * The portal that contains the web style this symbol refers to.
  65736. *
  65737. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WebStyleSymbol.html#portal)
  65738. */
  65739. portal: Portal;
  65740. /**
  65741. * A registered web style name.
  65742. *
  65743. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WebStyleSymbol.html#styleName)
  65744. */
  65745. styleName: string;
  65746. /**
  65747. * URL that points to the web style definition.
  65748. *
  65749. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WebStyleSymbol.html#styleUrl)
  65750. */
  65751. styleUrl: string;
  65752. readonly type: "web-style";
  65753. /**
  65754. * WebStyleSymbol is a class used to conveniently create vector 2D symbols and realistic and thematic 3D symbols.
  65755. *
  65756. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WebStyleSymbol.html)
  65757. */
  65758. constructor(properties?: WebStyleSymbolProperties);
  65759. /**
  65760. * Creates a deep clone of the symbol.
  65761. *
  65762. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WebStyleSymbol.html#clone)
  65763. */
  65764. clone(): WebStyleSymbol;
  65765. /**
  65766. * Returns the [CIMSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html) instance the WebStyleSymbol refers to.
  65767. *
  65768. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WebStyleSymbol.html#fetchCIMSymbol)
  65769. */
  65770. fetchCIMSymbol(options?: WebStyleSymbolFetchCIMSymbolOptions): Promise<CIMSymbol>;
  65771. /**
  65772. * Downloads and returns the [PointSymbol3D](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PointSymbol3D.html) instance the WebStyleSymbol refers to.
  65773. *
  65774. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WebStyleSymbol.html#fetchSymbol)
  65775. */
  65776. fetchSymbol(options?: WebStyleSymbolFetchSymbolOptions): Promise<PointSymbol3D>;
  65777. static fromJSON(json: any): WebStyleSymbol;
  65778. }
  65779. /** @deprecated Import the WebStyleSymbol class instead. */
  65780. export type WebStyleSymbolConstructor = typeof WebStyleSymbol;
  65781. interface WebStyleSymbolProperties extends SymbolProperties {
  65782. /**
  65783. * The name of the symbol within the web style.
  65784. *
  65785. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WebStyleSymbol.html#name)
  65786. */
  65787. name?: string;
  65788. /**
  65789. * The portal that contains the web style this symbol refers to.
  65790. *
  65791. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WebStyleSymbol.html#portal)
  65792. */
  65793. portal?: PortalProperties;
  65794. /**
  65795. * A registered web style name.
  65796. *
  65797. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WebStyleSymbol.html#styleName)
  65798. */
  65799. styleName?: string;
  65800. /**
  65801. * URL that points to the web style definition.
  65802. *
  65803. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WebStyleSymbol.html#styleUrl)
  65804. */
  65805. styleUrl?: string;
  65806. }
  65807. export interface WebStyleSymbolFetchCIMSymbolOptions {
  65808. /**
  65809. * Signal object that can be used to abort the asynchronous task.
  65810. *
  65811. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WebStyleSymbol.html#fetchCIMSymbol)
  65812. */
  65813. signal?: AbortSignal;
  65814. }
  65815. export interface WebStyleSymbolFetchSymbolOptions {
  65816. /**
  65817. * Signal object that can be used to abort the asynchronous task.
  65818. *
  65819. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WebStyleSymbol.html#fetchSymbol)
  65820. */
  65821. signal?: AbortSignal;
  65822. }
  65823. /**
  65824. * CIMSymbol.
  65825. *
  65826. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#CIMSymbol)
  65827. */
  65828. export type symbolsCIMSymbol = CIMSymbol;
  65829. /**
  65830. * ExtrudeSymbol3DLayer.
  65831. *
  65832. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#ExtrudeSymbol3DLayer)
  65833. */
  65834. export type symbolsExtrudeSymbol3DLayer = ExtrudeSymbol3DLayer;
  65835. /**
  65836. * FillSymbol types.
  65837. *
  65838. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#FillSymbol)
  65839. */
  65840. export type symbolsFillSymbol = PictureFillSymbol | SimpleFillSymbol;
  65841. /**
  65842. * FillSymbol3DLayer.
  65843. *
  65844. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#FillSymbol3DLayer)
  65845. */
  65846. export type symbolsFillSymbol3DLayer = FillSymbol3DLayer;
  65847. /**
  65848. * Font.
  65849. *
  65850. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#Font)
  65851. */
  65852. export type symbolsFont = Font;
  65853. /**
  65854. * IconSymbol3DLayer.
  65855. *
  65856. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#IconSymbol3DLayer)
  65857. */
  65858. export type symbolsIconSymbol3DLayer = IconSymbol3DLayer;
  65859. /**
  65860. * LabelSymbol3D.
  65861. *
  65862. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#LabelSymbol3D)
  65863. */
  65864. export type symbolsLabelSymbol3D = LabelSymbol3D;
  65865. /**
  65866. * LineSymbol3D.
  65867. *
  65868. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#LineSymbol3D)
  65869. */
  65870. export type symbolsLineSymbol3D = LineSymbol3D;
  65871. /**
  65872. * LineSymbol3DLayer.
  65873. *
  65874. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#LineSymbol3DLayer)
  65875. */
  65876. export type symbolsLineSymbol3DLayer = LineSymbol3DLayer;
  65877. /**
  65878. * MarkerSymbol types.
  65879. *
  65880. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#MarkerSymbol)
  65881. */
  65882. export type symbolsMarkerSymbol = PictureMarkerSymbol | SimpleMarkerSymbol;
  65883. /**
  65884. * MeshSymbol3D.
  65885. *
  65886. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#MeshSymbol3D)
  65887. */
  65888. export type symbolsMeshSymbol3D = MeshSymbol3D;
  65889. /**
  65890. * ObjectSymbol3DLayer.
  65891. *
  65892. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#ObjectSymbol3DLayer)
  65893. */
  65894. export type symbolsObjectSymbol3DLayer = ObjectSymbol3DLayer;
  65895. /**
  65896. * PathSymbol3DLayer.
  65897. *
  65898. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#PathSymbol3DLayer)
  65899. */
  65900. export type symbolsPathSymbol3DLayer = PathSymbol3DLayer;
  65901. /**
  65902. * PictureFillSymbol.
  65903. *
  65904. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#PictureFillSymbol)
  65905. */
  65906. export type symbolsPictureFillSymbol = PictureFillSymbol;
  65907. /**
  65908. * PictureMarkerSymbol.
  65909. *
  65910. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#PictureMarkerSymbol)
  65911. */
  65912. export type symbolsPictureMarkerSymbol = PictureMarkerSymbol;
  65913. /**
  65914. * PointSymbol3D.
  65915. *
  65916. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#PointSymbol3D)
  65917. */
  65918. export type symbolsPointSymbol3D = PointSymbol3D;
  65919. /**
  65920. * PolygonSymbol3D.
  65921. *
  65922. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#PolygonSymbol3D)
  65923. */
  65924. export type symbolsPolygonSymbol3D = PolygonSymbol3D;
  65925. /**
  65926. * SimpleFillSymbol.
  65927. *
  65928. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#SimpleFillSymbol)
  65929. */
  65930. export type symbolsSimpleFillSymbol = SimpleFillSymbol;
  65931. /**
  65932. * SimpleLineSymbol.
  65933. *
  65934. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#SimpleLineSymbol)
  65935. */
  65936. export type symbolsSimpleLineSymbol = SimpleLineSymbol;
  65937. /**
  65938. * SimpleMarkerSymbol.
  65939. *
  65940. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#SimpleMarkerSymbol)
  65941. */
  65942. export type symbolsSimpleMarkerSymbol = SimpleMarkerSymbol;
  65943. /**
  65944. * Symbol types.
  65945. *
  65946. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#Symbol)
  65947. */
  65948. export type symbolsSymbol = Symbol2D3D | WebStyleSymbol;
  65949. /**
  65950. * Symbol2D types.
  65951. *
  65952. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#Symbol2D)
  65953. */
  65954. export type Symbol2D = | PictureFillSymbol
  65955. | PictureMarkerSymbol
  65956. | SimpleFillSymbol
  65957. | SimpleLineSymbol
  65958. | SimpleMarkerSymbol
  65959. | TextSymbol
  65960. | CIMSymbol;
  65961. /**
  65962. * Symbol2D3D types.
  65963. *
  65964. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#Symbol2D3D)
  65965. */
  65966. export type Symbol2D3D = Symbol2D | symbolsSymbol3D;
  65967. /**
  65968. * Symbol3D types.
  65969. *
  65970. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#Symbol3D)
  65971. */
  65972. export type symbolsSymbol3D = LabelSymbol3D | LineSymbol3D | MeshSymbol3D | PointSymbol3D | PolygonSymbol3D;
  65973. /**
  65974. * Symbol3DLayer types.
  65975. *
  65976. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#Symbol3DLayer)
  65977. */
  65978. export type symbolsSymbol3DLayer = | ExtrudeSymbol3DLayer
  65979. | FillSymbol3DLayer
  65980. | WaterSymbol3DLayer
  65981. | IconSymbol3DLayer
  65982. | LineSymbol3DLayer
  65983. | ObjectSymbol3DLayer
  65984. | PathSymbol3DLayer
  65985. | TextSymbol3DLayer
  65986. | WaterSymbol3DLayer;
  65987. /**
  65988. * TextSymbol.
  65989. *
  65990. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#TextSymbol)
  65991. */
  65992. export type symbolsTextSymbol = TextSymbol;
  65993. /**
  65994. * TextSymbol3DLayer.
  65995. *
  65996. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#TextSymbol3DLayer)
  65997. */
  65998. export type symbolsTextSymbol3DLayer = TextSymbol3DLayer;
  65999. /**
  66000. * WaterSymbol3DLayer.
  66001. *
  66002. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#WaterSymbol3DLayer)
  66003. */
  66004. export type symbolsWaterSymbol3DLayer = WaterSymbol3DLayer;
  66005. /**
  66006. * WebStyleSymbol.
  66007. *
  66008. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols.html#WebStyleSymbol)
  66009. */
  66010. export type symbolsWebStyleSymbol = WebStyleSymbol;
  66011. export interface TimeExtent extends Accessor, JSONSupport {
  66012. }
  66013. export class TimeExtent {
  66014. /**
  66015. * The end time of the time extent.
  66016. *
  66017. * @default null
  66018. *
  66019. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeExtent.html#end)
  66020. */
  66021. end: Date;
  66022. /**
  66023. * The start time of the time extent.
  66024. *
  66025. * @default null
  66026. *
  66027. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeExtent.html#start)
  66028. */
  66029. start: Date;
  66030. /**
  66031. * A period of time with a definitive [start](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeExtent.html#start) and [end](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeExtent.html#end) date.
  66032. *
  66033. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeExtent.html)
  66034. */
  66035. constructor(properties?: TimeExtentProperties);
  66036. /**
  66037. * Creates a deep clone of TimeExtent object.
  66038. *
  66039. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeExtent.html#clone)
  66040. */
  66041. clone(): TimeExtent;
  66042. /**
  66043. * Expands the TimeExtent so that the start and end dates are rounded down and up, respectively, to the parsed time unit.
  66044. *
  66045. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeExtent.html#expandTo)
  66046. */
  66047. expandTo(unit: | "milliseconds"
  66048. | "seconds"
  66049. | "minutes"
  66050. | "hours"
  66051. | "days"
  66052. | "weeks"
  66053. | "months"
  66054. | "years"
  66055. | "decades"
  66056. | "centuries"): TimeExtent;
  66057. /**
  66058. * Returns the time extent resulting from the intersection of a given time extent and parsed time extent.
  66059. *
  66060. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeExtent.html#intersection)
  66061. */
  66062. intersection(timeExtent: TimeExtent): TimeExtent;
  66063. /**
  66064. * Returns the time extent resulting from the union of the current time extent and a given time extent.
  66065. *
  66066. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeExtent.html#union)
  66067. */
  66068. union(timeExtent: TimeExtent): TimeExtent;
  66069. static fromJSON(json: any): TimeExtent;
  66070. }
  66071. /** @deprecated Import the TimeExtent class instead. */
  66072. export type TimeExtentConstructor = typeof TimeExtent;
  66073. interface TimeExtentProperties {
  66074. /**
  66075. * The end time of the time extent.
  66076. *
  66077. * @default null
  66078. *
  66079. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeExtent.html#end)
  66080. */
  66081. end?: DateProperties;
  66082. /**
  66083. * The start time of the time extent.
  66084. *
  66085. * @default null
  66086. *
  66087. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeExtent.html#start)
  66088. */
  66089. start?: DateProperties;
  66090. }
  66091. export interface TimeInterval extends Accessor, JSONSupport {
  66092. }
  66093. export class TimeInterval {
  66094. /**
  66095. * Temporal units.
  66096. *
  66097. * @default milliseconds
  66098. *
  66099. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeInterval.html#unit)
  66100. */
  66101. unit: | "milliseconds"
  66102. | "seconds"
  66103. | "minutes"
  66104. | "hours"
  66105. | "days"
  66106. | "weeks"
  66107. | "months"
  66108. | "years"
  66109. | "decades"
  66110. | "centuries";
  66111. /**
  66112. * The numerical value of the time extent.
  66113. *
  66114. * @default 0
  66115. *
  66116. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeInterval.html#value)
  66117. */
  66118. value: number;
  66119. /**
  66120. * TimeInterval is a class that describes a length of time in one of ten temporal units such as seconds, days, or years.
  66121. *
  66122. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeInterval.html)
  66123. */
  66124. constructor(properties?: TimeIntervalProperties);
  66125. /**
  66126. * Creates a deep clone of TimeInterval object.
  66127. *
  66128. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeInterval.html#clone)
  66129. */
  66130. clone(): TimeInterval;
  66131. static fromJSON(json: any): TimeInterval;
  66132. }
  66133. /** @deprecated Import the TimeInterval class instead. */
  66134. export type TimeIntervalConstructor = typeof TimeInterval;
  66135. interface TimeIntervalProperties {
  66136. /**
  66137. * Temporal units.
  66138. *
  66139. * @default milliseconds
  66140. *
  66141. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeInterval.html#unit)
  66142. */
  66143. unit?: | "milliseconds"
  66144. | "seconds"
  66145. | "minutes"
  66146. | "hours"
  66147. | "days"
  66148. | "weeks"
  66149. | "months"
  66150. | "years"
  66151. | "decades"
  66152. | "centuries";
  66153. /**
  66154. * The numerical value of the time extent.
  66155. *
  66156. * @default 0
  66157. *
  66158. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeInterval.html#value)
  66159. */
  66160. value?: number;
  66161. }
  66162. export interface Viewpoint extends Accessor, JSONSupport {
  66163. }
  66164. export class Viewpoint {
  66165. /**
  66166. * The viewpoint camera (3D only).
  66167. *
  66168. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html#camera)
  66169. */
  66170. camera: Camera;
  66171. /**
  66172. * The rotation of due north in relation to the top of the view in degrees.
  66173. *
  66174. * @default 0
  66175. *
  66176. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html#rotation)
  66177. */
  66178. rotation: number;
  66179. /**
  66180. * The scale of the viewpoint.
  66181. *
  66182. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html#scale)
  66183. */
  66184. scale: number;
  66185. /**
  66186. * The target geometry framed by the viewpoint.
  66187. *
  66188. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html#targetGeometry)
  66189. */
  66190. targetGeometry: Geometry;
  66191. /**
  66192. * Describes a point of view for a 2D or 3D view.
  66193. *
  66194. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html)
  66195. */
  66196. constructor(properties?: ViewpointProperties);
  66197. /**
  66198. * Create a deep clone of the viewpoint.
  66199. *
  66200. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html#clone)
  66201. */
  66202. clone(): Viewpoint;
  66203. static fromJSON(json: any): Viewpoint;
  66204. }
  66205. /** @deprecated Import the Viewpoint class instead. */
  66206. export type ViewpointConstructor = typeof Viewpoint;
  66207. interface ViewpointProperties {
  66208. /**
  66209. * The viewpoint camera (3D only).
  66210. *
  66211. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html#camera)
  66212. */
  66213. camera?: CameraProperties;
  66214. /**
  66215. * The rotation of due north in relation to the top of the view in degrees.
  66216. *
  66217. * @default 0
  66218. *
  66219. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html#rotation)
  66220. */
  66221. rotation?: number;
  66222. /**
  66223. * The scale of the viewpoint.
  66224. *
  66225. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html#scale)
  66226. */
  66227. scale?: number;
  66228. /**
  66229. * The target geometry framed by the viewpoint.
  66230. *
  66231. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html#targetGeometry)
  66232. */
  66233. targetGeometry?: GeometryProperties;
  66234. }
  66235. export class BaseLayerView2D extends LayerView {
  66236. /**
  66237. * The array of [Tile](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#Tile) objects computed to cover the MapView's visible area.
  66238. *
  66239. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#tiles)
  66240. */
  66241. tiles: Tile[];
  66242. /**
  66243. * References the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) this [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) belongs to.
  66244. *
  66245. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#view)
  66246. */
  66247. view: MapView;
  66248. /**
  66249. * Represents the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) of a [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html) after it has been added to a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) with a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  66250. *
  66251. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html)
  66252. */
  66253. constructor(properties?: BaseLayerView2DProperties);
  66254. /**
  66255. * Method called when after the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) is created and right before it's asked to draw the layer's content.
  66256. *
  66257. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#attach)
  66258. */
  66259. attach(): void;
  66260. /**
  66261. * Method called after the layer is removed and the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) is about to be removed.
  66262. *
  66263. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#detach)
  66264. */
  66265. detach(): void;
  66266. /**
  66267. * Method to implement that is responsible for providing objects hit at the specified screen coordinates.
  66268. *
  66269. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#hitTest)
  66270. */
  66271. hitTest(mapPoint: Point, screenPoint: ScreenPoint): Promise<Graphic[]>;
  66272. /**
  66273. * The method to implement that is responsible of drawing the content of the layer.
  66274. *
  66275. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#render)
  66276. */
  66277. render(renderParameters: BaseLayerView2DRenderRenderParameters): void;
  66278. /**
  66279. * The [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) can call this method to ask the MapView to schedule a new rendering frame.
  66280. *
  66281. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#requestRender)
  66282. */
  66283. requestRender(): void;
  66284. /**
  66285. * Method to implement, which notifies of tiles being added or removed for the current view state.
  66286. *
  66287. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#tilesChanged)
  66288. */
  66289. tilesChanged(added: Tile[], removed: Tile[]): void;
  66290. }
  66291. /** @deprecated Import the BaseLayerView2D class instead. */
  66292. export type BaseLayerView2DConstructor = typeof BaseLayerView2D;
  66293. interface BaseLayerView2DProperties extends LayerViewProperties {
  66294. /**
  66295. * The array of [Tile](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#Tile) objects computed to cover the MapView's visible area.
  66296. *
  66297. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#tiles)
  66298. */
  66299. tiles?: Tile[];
  66300. /**
  66301. * References the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) this [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) belongs to.
  66302. *
  66303. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#view)
  66304. */
  66305. view?: MapViewProperties;
  66306. }
  66307. export interface BaseLayerView2DRenderRenderParameters {
  66308. /**
  66309. * The [canvas 2D context](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D) in which to draw content.
  66310. *
  66311. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#render)
  66312. */
  66313. context: CanvasRenderingContext2D;
  66314. /**
  66315. * The stationary state of the `MapView`.
  66316. *
  66317. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#render)
  66318. */
  66319. stationary: boolean;
  66320. /**
  66321. * The object that describes view state.
  66322. *
  66323. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#render)
  66324. */
  66325. state: ViewState;
  66326. }
  66327. /**
  66328. * An object representing a point on the screen.
  66329. *
  66330. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#ScreenPoint)
  66331. */
  66332. export interface ScreenPoint {
  66333. /**
  66334. * The x coordinate.
  66335. *
  66336. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#ScreenPoint)
  66337. */
  66338. x: number;
  66339. /**
  66340. * The y coordinate.
  66341. *
  66342. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#ScreenPoint)
  66343. */
  66344. y: number;
  66345. }
  66346. /**
  66347. * Represents a tile reference.
  66348. *
  66349. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#Tile)
  66350. */
  66351. export interface Tile {
  66352. /**
  66353. * The tile string identifier in the format `level/row/col/world`
  66354. *
  66355. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#Tile)
  66356. */
  66357. id: string;
  66358. /**
  66359. * The level identifier of the [LOD](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LOD.html) to which the tile belongs
  66360. *
  66361. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#Tile)
  66362. */
  66363. level: number;
  66364. /**
  66365. * The row identifier.
  66366. *
  66367. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#Tile)
  66368. */
  66369. row: number;
  66370. /**
  66371. * The column identifier.
  66372. *
  66373. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#Tile)
  66374. */
  66375. col: number;
  66376. /**
  66377. * When the projection allows world wrapping (e.g.
  66378. *
  66379. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#Tile)
  66380. */
  66381. world: number;
  66382. /**
  66383. * The number of map units per pixel in the tile.
  66384. *
  66385. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#Tile)
  66386. */
  66387. resolution: number;
  66388. /**
  66389. * The map scale at the tile's level.
  66390. *
  66391. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#Tile)
  66392. */
  66393. scale: number;
  66394. /**
  66395. * The coordinates of the top-left corner of the tile as an array of two numbers.
  66396. *
  66397. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#Tile)
  66398. */
  66399. coords: number[];
  66400. /**
  66401. * The bounds of the tile as an array of four numbers that be readily converted to an [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) object.
  66402. *
  66403. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerView2D.html#Tile)
  66404. */
  66405. bounds: number[];
  66406. }
  66407. export class BaseLayerViewGL2D extends LayerView {
  66408. /**
  66409. * The WebGL rendering context associated to this layer view.
  66410. *
  66411. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#context)
  66412. */
  66413. context: WebGLRenderingContext | any;
  66414. /**
  66415. * The array of module:esri/views/2d/layers/BaseLayerViewGL2D#Tile objects computed to cover the MapView's visible area.
  66416. *
  66417. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#tiles)
  66418. */
  66419. tiles: BaseLayerViewGL2DTile[];
  66420. /**
  66421. * References the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) this [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) belongs to.
  66422. *
  66423. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#view)
  66424. */
  66425. view: MapView;
  66426. /**
  66427. * Represents the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) of a [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html) after it has been added to a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) with a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  66428. *
  66429. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html)
  66430. */
  66431. constructor(properties?: BaseLayerViewGL2DProperties);
  66432. /**
  66433. * Method called after the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) is created and right before it starts drawing the layer's content.
  66434. *
  66435. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#attach)
  66436. */
  66437. attach(): void;
  66438. /**
  66439. * Bind the designated rendering output surface and restore the correct viewport.
  66440. *
  66441. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#bindRenderTarget)
  66442. */
  66443. bindRenderTarget(): void;
  66444. /**
  66445. * Method called after the layer is removed and the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) is about to be removed.
  66446. *
  66447. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#detach)
  66448. */
  66449. detach(): void;
  66450. /**
  66451. * Get the designated rendering output surface and corresponding viewport configuration.
  66452. *
  66453. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#getRenderTarget)
  66454. */
  66455. getRenderTarget(): RenderTarget;
  66456. /**
  66457. * Method to implement that is responsible for providing objects hit at the specified screen coordinates.
  66458. *
  66459. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#hitTest)
  66460. */
  66461. hitTest(mapPoint: Point, screenPoint: BaseLayerViewGL2DScreenPoint): Promise<Graphic[]>;
  66462. /**
  66463. * The method to implement that is responsible of drawing the content of the layer.
  66464. *
  66465. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#render)
  66466. */
  66467. render(renderParameters: BaseLayerViewGL2DRenderRenderParameters): void;
  66468. /**
  66469. * The [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) can call this method to ask the MapView to schedule a new rendering frame.
  66470. *
  66471. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#requestRender)
  66472. */
  66473. requestRender(): void;
  66474. /**
  66475. * Tessellate an [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) into a rectangle.
  66476. *
  66477. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#tessellateExtent)
  66478. */
  66479. tessellateExtent(extent: Extent): Promise<TessellatedMesh>;
  66480. /**
  66481. * Tessellate a [Multipoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Multipoint.html) into quads (markers).
  66482. *
  66483. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#tessellateMultipoint)
  66484. */
  66485. tessellateMultipoint(multipoint: Multipoint, footprint: Rect): Promise<TessellatedMesh>;
  66486. /**
  66487. * Tessellate a [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) into a quad (marker).
  66488. *
  66489. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#tessellatePoint)
  66490. */
  66491. tessellatePoint(point: Point, footprint: Rect): Promise<TessellatedMesh>;
  66492. /**
  66493. * Tessellate a [Polygon](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html) into triangles.
  66494. *
  66495. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#tessellatePolygon)
  66496. */
  66497. tessellatePolygon(polygon: Polygon): Promise<TessellatedMesh>;
  66498. /**
  66499. * Tessellate a [Polyline](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html) into triangles.
  66500. *
  66501. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#tessellatePolyline)
  66502. */
  66503. tessellatePolyline(polyline: Polyline, width: number): Promise<TessellatedMesh>;
  66504. /**
  66505. * Method to implement, which notifies of tiles being added or removed for the current view state.
  66506. *
  66507. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#tilesChanged)
  66508. */
  66509. tilesChanged(added: BaseLayerViewGL2DTile[], removed: BaseLayerViewGL2DTile[]): void;
  66510. }
  66511. /** @deprecated Import the BaseLayerViewGL2D class instead. */
  66512. export type BaseLayerViewGL2DConstructor = typeof BaseLayerViewGL2D;
  66513. interface BaseLayerViewGL2DProperties extends LayerViewProperties {
  66514. /**
  66515. * The WebGL rendering context associated to this layer view.
  66516. *
  66517. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#context)
  66518. */
  66519. context?: WebGLRenderingContext | any;
  66520. /**
  66521. * The array of module:esri/views/2d/layers/BaseLayerViewGL2D#Tile objects computed to cover the MapView's visible area.
  66522. *
  66523. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#tiles)
  66524. */
  66525. tiles?: BaseLayerViewGL2DTile[];
  66526. /**
  66527. * References the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) this [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) belongs to.
  66528. *
  66529. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#view)
  66530. */
  66531. view?: MapViewProperties;
  66532. }
  66533. export interface BaseLayerViewGL2DRenderRenderParameters {
  66534. /**
  66535. * The WebGL or WebGL 2 context.
  66536. *
  66537. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#render)
  66538. */
  66539. context: WebGLRenderingContext | any;
  66540. /**
  66541. * The stationary state of the `MapView`.
  66542. *
  66543. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#render)
  66544. */
  66545. stationary: boolean;
  66546. /**
  66547. * The object that describes view state.
  66548. *
  66549. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#render)
  66550. */
  66551. state: ViewState;
  66552. }
  66553. /**
  66554. * A vertex of a tessellated mesh.
  66555. *
  66556. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#MeshVertex)
  66557. */
  66558. export interface MeshVertex {
  66559. /**
  66560. * The `x`-coordinate, expressed in the same units as the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  66561. *
  66562. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#MeshVertex)
  66563. */
  66564. x: number;
  66565. /**
  66566. * The `y`-coordinate, expressed in the same units as the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  66567. *
  66568. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#MeshVertex)
  66569. */
  66570. y: number;
  66571. /**
  66572. * The `x`-offset in screen space; this is used to extrude points (into quads) and polylines, and is 0 for polygons.
  66573. *
  66574. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#MeshVertex)
  66575. */
  66576. xOffset: number;
  66577. /**
  66578. * The `y`-offset in screen space; this is used to extrude points (into quads) and polylines, and is 0 for polygons.
  66579. *
  66580. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#MeshVertex)
  66581. */
  66582. yOffset: number;
  66583. /**
  66584. * The `u`-coordinate for texture mapping.
  66585. *
  66586. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#MeshVertex)
  66587. */
  66588. uTexcoord: number;
  66589. /**
  66590. * The `v`-coordinate for texture mapping.
  66591. *
  66592. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#MeshVertex)
  66593. */
  66594. vTexcoord: number;
  66595. /**
  66596. * The distance parameter for this vertex; this only applies when tessellating polylines.
  66597. *
  66598. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#MeshVertex)
  66599. */
  66600. distance: number;
  66601. }
  66602. /**
  66603. * A rectangle in screen-space.
  66604. *
  66605. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#Rect)
  66606. */
  66607. export interface Rect {
  66608. /**
  66609. * The `x`-coordinate of the upper-left corner of the rectangle, relative to the anchor of the marker.
  66610. *
  66611. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#Rect)
  66612. */
  66613. x: number;
  66614. /**
  66615. * The `y`-coordinate of the upper-left corner of the rectangle, relative to the anchor of the marker.
  66616. *
  66617. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#Rect)
  66618. */
  66619. y: number;
  66620. /**
  66621. * Width of the rectangle.
  66622. *
  66623. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#Rect)
  66624. */
  66625. width: number;
  66626. /**
  66627. * Height of the rectangle.
  66628. *
  66629. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#Rect)
  66630. */
  66631. height: number;
  66632. }
  66633. /**
  66634. * The destination to which [render()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#render) should direct its output.
  66635. *
  66636. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#RenderTarget)
  66637. */
  66638. export interface RenderTarget {
  66639. /**
  66640. * The framebuffer where the [render()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#render) method should direct its output.
  66641. *
  66642. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#RenderTarget)
  66643. */
  66644. framebuffer: any;
  66645. /**
  66646. * A viewport that fully covers `framebuffer`.
  66647. *
  66648. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#RenderTarget)
  66649. */
  66650. viewport: number[];
  66651. }
  66652. /**
  66653. * An object representing a point on the screen.
  66654. *
  66655. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#ScreenPoint)
  66656. */
  66657. export interface BaseLayerViewGL2DScreenPoint {
  66658. /**
  66659. * The x coordinate.
  66660. *
  66661. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#ScreenPoint)
  66662. */
  66663. x: number;
  66664. /**
  66665. * The y coordinate.
  66666. *
  66667. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#ScreenPoint)
  66668. */
  66669. y: number;
  66670. }
  66671. /**
  66672. * The triangle mesh resulting from a tessellation operation.
  66673. *
  66674. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#TessellatedMesh)
  66675. */
  66676. export interface TessellatedMesh {
  66677. /**
  66678. * The vertices that make up the mesh.
  66679. *
  66680. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#TessellatedMesh)
  66681. */
  66682. vertices: MeshVertex[];
  66683. /**
  66684. * The indices of the triangles that connect vertices together; each consecutive triplet of indices denotes a triangle.
  66685. *
  66686. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#TessellatedMesh)
  66687. */
  66688. indices: number[];
  66689. }
  66690. /**
  66691. * Represents a tile reference.
  66692. *
  66693. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#Tile)
  66694. */
  66695. export interface BaseLayerViewGL2DTile {
  66696. /**
  66697. * The tile string identifier in the format `level/row/col/world`
  66698. *
  66699. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#Tile)
  66700. */
  66701. id: string;
  66702. /**
  66703. * The level identifier of the [LOD](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LOD.html) to which the tile belongs
  66704. *
  66705. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#Tile)
  66706. */
  66707. level: number;
  66708. /**
  66709. * The row identifier.
  66710. *
  66711. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#Tile)
  66712. */
  66713. row: number;
  66714. /**
  66715. * The column identifier.
  66716. *
  66717. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#Tile)
  66718. */
  66719. col: number;
  66720. /**
  66721. * When the projection allows world wrapping (e.g.
  66722. *
  66723. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#Tile)
  66724. */
  66725. world: number;
  66726. /**
  66727. * The number of map units per pixel in the tile.
  66728. *
  66729. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#Tile)
  66730. */
  66731. resolution: number;
  66732. /**
  66733. * The map scale at the tile's level.
  66734. *
  66735. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#Tile)
  66736. */
  66737. scale: number;
  66738. /**
  66739. * The coordinates of the top-left corner of the tile as an array of two numbers.
  66740. *
  66741. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#Tile)
  66742. */
  66743. coords: number[];
  66744. /**
  66745. * The bounds of the tile as an array of four numbers that be readily converted to an [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) object.
  66746. *
  66747. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-layers-BaseLayerViewGL2D.html#Tile)
  66748. */
  66749. bounds: number[];
  66750. }
  66751. export interface ViewState extends Accessor, JSONSupport {
  66752. }
  66753. export class ViewState {
  66754. /**
  66755. * Represents the view's center point as an array of two numbers `[x, y]`.
  66756. *
  66757. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-ViewState.html#center)
  66758. */
  66759. readonly center: number[];
  66760. /**
  66761. * The extent represents the visible portion of a map within the view as an instance of Extent.
  66762. *
  66763. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-ViewState.html#extent)
  66764. */
  66765. readonly extent: Extent;
  66766. /**
  66767. * Represents the size of one pixel in map units.
  66768. *
  66769. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-ViewState.html#resolution)
  66770. */
  66771. readonly resolution: number;
  66772. /**
  66773. * The clockwise rotation of due north in relation to the top of the view in degrees.
  66774. *
  66775. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-ViewState.html#rotation)
  66776. */
  66777. readonly rotation: number;
  66778. /**
  66779. * Represents the map scale at the center of the view.
  66780. *
  66781. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-ViewState.html#scale)
  66782. */
  66783. readonly scale: number;
  66784. /**
  66785. * Represents the width and height of the view in pixels, e.g.
  66786. *
  66787. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-ViewState.html#size)
  66788. */
  66789. readonly size: number[];
  66790. /**
  66791. * Object that holds information about the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) state.
  66792. *
  66793. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-ViewState.html)
  66794. */
  66795. constructor(properties?: ViewStateProperties);
  66796. /**
  66797. * Creates a deep clone of ViewState object.
  66798. *
  66799. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-ViewState.html#clone)
  66800. */
  66801. clone(): ViewState;
  66802. /**
  66803. * Copies the properties from a given view state.
  66804. *
  66805. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-ViewState.html#copy)
  66806. */
  66807. copy(state: ViewState): ViewState;
  66808. /**
  66809. * Converts the x and y screen coordinates to map coordinates.
  66810. *
  66811. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-ViewState.html#toMap)
  66812. */
  66813. toMap(out: number[], x: number, y: number): number[];
  66814. /**
  66815. * Converts the x and y map coordinates to screen coordinates.
  66816. *
  66817. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-ViewState.html#toScreen)
  66818. */
  66819. toScreen(out: number[], x: number, y: number): number[];
  66820. /**
  66821. * Converts the x and y map coordinates to screen coordinates.
  66822. *
  66823. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-ViewState.html#toScreenNoRotation)
  66824. */
  66825. toScreenNoRotation(out: number[], x: number, y: number): number[];
  66826. static fromJSON(json: any): ViewState;
  66827. }
  66828. /** @deprecated Import the ViewState class instead. */
  66829. export type ViewStateConstructor = typeof ViewState;
  66830. interface ViewStateProperties {
  66831. }
  66832. export class AreaMeasurementAnalysisView3D {
  66833. /**
  66834. * The area measurement analysis object associated with the analysis view.
  66835. *
  66836. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-AreaMeasurementAnalysisView3D.html#analysis)
  66837. */
  66838. readonly analysis: AreaMeasurementAnalysis;
  66839. /**
  66840. * Result of the area measurement.
  66841. *
  66842. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-AreaMeasurementAnalysisView3D.html#result)
  66843. */
  66844. result: AreaMeasurementAnalysisResult;
  66845. /**
  66846. * The analysis view type.
  66847. *
  66848. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-AreaMeasurementAnalysisView3D.html#type)
  66849. */
  66850. readonly type: "area-measurement-view-3d";
  66851. /**
  66852. * When `true`, the analysis is visualized in the view.
  66853. *
  66854. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-AreaMeasurementAnalysisView3D.html#visible)
  66855. */
  66856. visible: boolean;
  66857. constructor(properties?: any);
  66858. }
  66859. /** @deprecated Import the AreaMeasurementAnalysisView3D class instead. */
  66860. export type AreaMeasurementAnalysisView3DConstructor = typeof AreaMeasurementAnalysisView3D;
  66861. /**
  66862. * Result obtained from an [AreaMeasurementAnalysis](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-AreaMeasurementAnalysis.html).
  66863. *
  66864. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-AreaMeasurementAnalysisView3D.html#AreaMeasurementAnalysisResult)
  66865. */
  66866. export interface AreaMeasurementAnalysisResult {
  66867. /**
  66868. * Describes the mode in which the measurement was taken.
  66869. *
  66870. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-AreaMeasurementAnalysisView3D.html#AreaMeasurementAnalysisResult)
  66871. */
  66872. mode: "euclidean" | "geodesic";
  66873. /**
  66874. * Measured area quantity.
  66875. *
  66876. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-AreaMeasurementAnalysisView3D.html#AreaMeasurementAnalysisResult)
  66877. */
  66878. area: Area;
  66879. /**
  66880. * Measured circumference of the measured area.
  66881. *
  66882. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-AreaMeasurementAnalysisView3D.html#AreaMeasurementAnalysisResult)
  66883. */
  66884. pathLength: Length;
  66885. }
  66886. export class DirectLineMeasurementAnalysisView3D {
  66887. /**
  66888. * The direct line measurement analysis object associated with the analysis view.
  66889. *
  66890. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-DirectLineMeasurementAnalysisView3D.html#analysis)
  66891. */
  66892. readonly analysis: DirectLineMeasurementAnalysis;
  66893. /**
  66894. * Result of the direct line measurement.
  66895. *
  66896. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-DirectLineMeasurementAnalysisView3D.html#result)
  66897. */
  66898. result: DirectLineMeasurementAnalysisResult;
  66899. /**
  66900. * The analysis view type.
  66901. *
  66902. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-DirectLineMeasurementAnalysisView3D.html#type)
  66903. */
  66904. readonly type: "direct-line-measurement-view-3d";
  66905. /**
  66906. * When `true`, the analysis is visualized in the view.
  66907. *
  66908. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-DirectLineMeasurementAnalysisView3D.html#visible)
  66909. */
  66910. visible: boolean;
  66911. constructor(properties?: any);
  66912. }
  66913. /** @deprecated Import the DirectLineMeasurementAnalysisView3D class instead. */
  66914. export type DirectLineMeasurementAnalysisView3DConstructor = typeof DirectLineMeasurementAnalysisView3D;
  66915. /**
  66916. * Result obtained from a [DirectLineMeasurementAnalysis](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DirectLineMeasurementAnalysis.html).
  66917. *
  66918. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-DirectLineMeasurementAnalysisView3D.html#DirectLineMeasurementAnalysisResult)
  66919. */
  66920. export interface DirectLineMeasurementAnalysisResult {
  66921. /**
  66922. * Specifies whether the `distance` measurement uses euclidean or geodesic units.
  66923. *
  66924. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-DirectLineMeasurementAnalysisView3D.html#DirectLineMeasurementAnalysisResult)
  66925. */
  66926. mode: "euclidean" | "geodesic";
  66927. /**
  66928. * Measured distance between start and endpoint.
  66929. *
  66930. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-DirectLineMeasurementAnalysisView3D.html#DirectLineMeasurementAnalysisResult)
  66931. */
  66932. distance: Length;
  66933. /**
  66934. * Horizontal distance measured as the euclidean distance between the point with higher elevation and the other point with its elevation changed to match the first point's elevation (moved along surface normal).
  66935. *
  66936. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-DirectLineMeasurementAnalysisView3D.html#DirectLineMeasurementAnalysisResult)
  66937. */
  66938. horizontalDistance: Length;
  66939. /**
  66940. * Vertical distance measured as the absolute difference of the elevation of the two points.
  66941. *
  66942. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-DirectLineMeasurementAnalysisView3D.html#DirectLineMeasurementAnalysisResult)
  66943. */
  66944. verticalDistance: Length;
  66945. }
  66946. export class LineOfSightAnalysisResult {
  66947. /**
  66948. * The first [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) intersected by the line of sight.
  66949. *
  66950. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-LineOfSightAnalysisResult.html#intersectedGraphic)
  66951. */
  66952. readonly intersectedGraphic: Graphic;
  66953. /**
  66954. * A [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) representing the location where the line of sight first intersects the ground or 3D objects in the scene.
  66955. *
  66956. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-LineOfSightAnalysisResult.html#intersectedLocation)
  66957. */
  66958. readonly intersectedLocation: Point;
  66959. /**
  66960. * Represents a target in a [LineOfSightAnalysis](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysis.html) which is used to calculate the visibility from the [LineOfSightAnalysis](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysis.html#observer).
  66961. *
  66962. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-LineOfSightAnalysisResult.html#target)
  66963. */
  66964. target: LineOfSightAnalysisTarget;
  66965. /**
  66966. * Whether the target is visible from the observer or not.
  66967. *
  66968. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-LineOfSightAnalysisResult.html#visible)
  66969. */
  66970. readonly visible: boolean;
  66971. constructor(properties?: any);
  66972. }
  66973. /** @deprecated Import the LineOfSightAnalysisResult class instead. */
  66974. export type LineOfSightAnalysisResultConstructor = typeof LineOfSightAnalysisResult;
  66975. export class LineOfSightAnalysisView3D {
  66976. /**
  66977. * The line of sight analysis object associated with the analysis view.
  66978. *
  66979. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-LineOfSightAnalysisView3D.html#analysis)
  66980. */
  66981. readonly analysis: LineOfSightAnalysis;
  66982. /**
  66983. * Set to `true` to enable interactivity for the associated [LineOfSightAnalysis](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LineOfSightAnalysis.html).
  66984. *
  66985. * @default false
  66986. *
  66987. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-LineOfSightAnalysisView3D.html#interactive)
  66988. */
  66989. interactive: boolean;
  66990. /**
  66991. * Analysis results for each target.
  66992. *
  66993. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-LineOfSightAnalysisView3D.html#results)
  66994. */
  66995. readonly results: Collection<LineOfSightAnalysisResult>;
  66996. /**
  66997. * The analysis view type.
  66998. *
  66999. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-LineOfSightAnalysisView3D.html#type)
  67000. */
  67001. readonly type: "line-of-sight-view-3d";
  67002. /**
  67003. * When `true`, the [analysis](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-LineOfSightAnalysisView3D.html#analysis) is visualized in the view.
  67004. *
  67005. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-LineOfSightAnalysisView3D.html#visible)
  67006. */
  67007. visible: boolean;
  67008. constructor(properties?: any);
  67009. }
  67010. /** @deprecated Import the LineOfSightAnalysisView3D class instead. */
  67011. export type LineOfSightAnalysisView3DConstructor = typeof LineOfSightAnalysisView3D;
  67012. export class SliceAnalysisView3D {
  67013. /**
  67014. * Only one [SliceAnalysis](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-SliceAnalysis.html) at a time can be active in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  67015. *
  67016. * @default true
  67017. *
  67018. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-SliceAnalysisView3D.html#active)
  67019. */
  67020. active: boolean;
  67021. /**
  67022. * The direct line measurement analysis object associated with the analysis view.
  67023. *
  67024. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-SliceAnalysisView3D.html#analysis)
  67025. */
  67026. readonly analysis: SliceAnalysis;
  67027. /**
  67028. * Set to `true` to enable interactivity for the associated [SliceAnalysis](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-SliceAnalysis.html).
  67029. *
  67030. * @default false
  67031. *
  67032. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-SliceAnalysisView3D.html#interactive)
  67033. */
  67034. interactive: boolean;
  67035. readonly type: "slice-view-3d";
  67036. /**
  67037. * When `true`, the analysis is visualized in the view.
  67038. *
  67039. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-SliceAnalysisView3D.html#visible)
  67040. */
  67041. visible: boolean;
  67042. constructor(properties?: any);
  67043. }
  67044. /** @deprecated Import the SliceAnalysisView3D class instead. */
  67045. export type SliceAnalysisView3DConstructor = typeof SliceAnalysisView3D;
  67046. export class CloudyWeather extends Accessor {
  67047. /**
  67048. * Specifies the amount of cloud cover in the sky for a certain weather type.
  67049. *
  67050. * @default 0.5
  67051. *
  67052. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-CloudyWeather.html#cloudCover)
  67053. */
  67054. cloudCover: number;
  67055. /**
  67056. * The type of weather
  67057. *
  67058. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-CloudyWeather.html#type)
  67059. */
  67060. readonly type: "cloudy";
  67061. /**
  67062. * The CloudyWeather class allows you to change the weather conditions in the scene to cloudy weather.
  67063. *
  67064. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-CloudyWeather.html)
  67065. */
  67066. constructor(properties?: CloudyWeatherProperties);
  67067. /**
  67068. * Creates a deep clone of this object.
  67069. *
  67070. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-CloudyWeather.html#clone)
  67071. */
  67072. clone(): CloudyWeather;
  67073. }
  67074. /** @deprecated Import the CloudyWeather class instead. */
  67075. export type CloudyWeatherConstructor = typeof CloudyWeather;
  67076. interface CloudyWeatherProperties {
  67077. /**
  67078. * Specifies the amount of cloud cover in the sky for a certain weather type.
  67079. *
  67080. * @default 0.5
  67081. *
  67082. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-CloudyWeather.html#cloudCover)
  67083. */
  67084. cloudCover?: number;
  67085. }
  67086. export class FoggyWeather extends Accessor {
  67087. /**
  67088. * Specifies the amount of fog used in the scene.
  67089. *
  67090. * @default 0.5
  67091. *
  67092. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-FoggyWeather.html#fogStrength)
  67093. */
  67094. fogStrength: number;
  67095. /**
  67096. * The type of Weather
  67097. *
  67098. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-FoggyWeather.html#type)
  67099. */
  67100. readonly type: "foggy";
  67101. /**
  67102. * The FoggyWeather class allows you to change the weather conditions in the scene to foggy weather.
  67103. *
  67104. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-FoggyWeather.html)
  67105. */
  67106. constructor(properties?: FoggyWeatherProperties);
  67107. /**
  67108. * Creates a deep clone of this object.
  67109. *
  67110. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-FoggyWeather.html#clone)
  67111. */
  67112. clone(): FoggyWeather;
  67113. }
  67114. /** @deprecated Import the FoggyWeather class instead. */
  67115. export type FoggyWeatherConstructor = typeof FoggyWeather;
  67116. interface FoggyWeatherProperties {
  67117. /**
  67118. * Specifies the amount of fog used in the scene.
  67119. *
  67120. * @default 0.5
  67121. *
  67122. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-FoggyWeather.html#fogStrength)
  67123. */
  67124. fogStrength?: number;
  67125. }
  67126. export class RainyWeather extends Accessor {
  67127. /**
  67128. * Specifies the amount of cloud cover in the sky for a certain weather type.
  67129. *
  67130. * @default 0.5
  67131. *
  67132. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-RainyWeather.html#cloudCover)
  67133. */
  67134. cloudCover: number;
  67135. /**
  67136. * Specifies the amount of falling rain.
  67137. *
  67138. * @default 0.5
  67139. *
  67140. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-RainyWeather.html#precipitation)
  67141. */
  67142. precipitation: number;
  67143. /**
  67144. * The type of Weather
  67145. *
  67146. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-RainyWeather.html#type)
  67147. */
  67148. readonly type: "rainy";
  67149. /**
  67150. * The RainyWeather class allows you to change the weather conditions in the scene to rainy weather.
  67151. *
  67152. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-RainyWeather.html)
  67153. */
  67154. constructor(properties?: RainyWeatherProperties);
  67155. /**
  67156. * Creates a deep clone of this object.
  67157. *
  67158. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-RainyWeather.html#clone)
  67159. */
  67160. clone(): RainyWeather;
  67161. }
  67162. /** @deprecated Import the RainyWeather class instead. */
  67163. export type RainyWeatherConstructor = typeof RainyWeather;
  67164. interface RainyWeatherProperties {
  67165. /**
  67166. * Specifies the amount of cloud cover in the sky for a certain weather type.
  67167. *
  67168. * @default 0.5
  67169. *
  67170. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-RainyWeather.html#cloudCover)
  67171. */
  67172. cloudCover?: number;
  67173. /**
  67174. * Specifies the amount of falling rain.
  67175. *
  67176. * @default 0.5
  67177. *
  67178. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-RainyWeather.html#precipitation)
  67179. */
  67180. precipitation?: number;
  67181. }
  67182. export class SnowyWeather extends Accessor {
  67183. /**
  67184. * Specifies the amount of cloud cover in the sky for a certain weather type.
  67185. *
  67186. * @default 0.5
  67187. *
  67188. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-SnowyWeather.html#cloudCover)
  67189. */
  67190. cloudCover: number;
  67191. /**
  67192. * Specifies the amount of falling snow.
  67193. *
  67194. * @default 0.5
  67195. *
  67196. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-SnowyWeather.html#precipitation)
  67197. */
  67198. precipitation: number;
  67199. /**
  67200. * Display surfaces covered with snow.
  67201. *
  67202. * @default "disabled"
  67203. *
  67204. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-SnowyWeather.html#snowCover)
  67205. */
  67206. snowCover: "enabled" | "disabled";
  67207. /**
  67208. * The type of Weather
  67209. *
  67210. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-SnowyWeather.html#type)
  67211. */
  67212. readonly type: "snowy";
  67213. /**
  67214. * The SnowyWeather class allows you to change the weather conditions in the scene to snowy weather.
  67215. *
  67216. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-SnowyWeather.html)
  67217. */
  67218. constructor(properties?: SnowyWeatherProperties);
  67219. /**
  67220. * Creates a deep clone of this object.
  67221. *
  67222. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-SnowyWeather.html#clone)
  67223. */
  67224. clone(): SnowyWeather;
  67225. }
  67226. /** @deprecated Import the SnowyWeather class instead. */
  67227. export type SnowyWeatherConstructor = typeof SnowyWeather;
  67228. interface SnowyWeatherProperties {
  67229. /**
  67230. * Specifies the amount of cloud cover in the sky for a certain weather type.
  67231. *
  67232. * @default 0.5
  67233. *
  67234. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-SnowyWeather.html#cloudCover)
  67235. */
  67236. cloudCover?: number;
  67237. /**
  67238. * Specifies the amount of falling snow.
  67239. *
  67240. * @default 0.5
  67241. *
  67242. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-SnowyWeather.html#precipitation)
  67243. */
  67244. precipitation?: number;
  67245. /**
  67246. * Display surfaces covered with snow.
  67247. *
  67248. * @default "disabled"
  67249. *
  67250. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-SnowyWeather.html#snowCover)
  67251. */
  67252. snowCover?: "enabled" | "disabled";
  67253. }
  67254. export class SunLighting extends websceneSunLighting {
  67255. /**
  67256. * Indicates whether to show ambient occlusion shading.
  67257. *
  67258. * @default false
  67259. *
  67260. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-SunLighting.html#ambientOcclusionEnabled)
  67261. */
  67262. ambientOcclusionEnabled: boolean;
  67263. /**
  67264. * Indicates whether the date and time of the simulated sun is automatically updated to maintain the current time of day while the camera changes.
  67265. *
  67266. * @default true
  67267. *
  67268. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-SunLighting.html#cameraTrackingEnabled)
  67269. */
  67270. cameraTrackingEnabled: boolean;
  67271. /**
  67272. * Indicates whether [WaterSymbol3DLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WaterSymbol3DLayer.html) display reflections of surrounding terrain, buildings and other 3D objects.
  67273. *
  67274. * @default false
  67275. *
  67276. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-SunLighting.html#waterReflectionEnabled)
  67277. */
  67278. waterReflectionEnabled: boolean;
  67279. /**
  67280. * The SunLighting class allows you to change the lighting in the scene to sunlight.
  67281. *
  67282. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-SunLighting.html)
  67283. */
  67284. constructor(properties?: SunLightingProperties);
  67285. /**
  67286. * Create a clone of this while partially applying the provided webscene lighting settings.
  67287. *
  67288. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-SunLighting.html#cloneWithWebsceneLighting)
  67289. */
  67290. cloneWithWebsceneLighting(): void;
  67291. }
  67292. /** @deprecated Import the SunLighting class instead. */
  67293. export type SunLightingConstructor = typeof SunLighting;
  67294. interface SunLightingProperties extends websceneSunLightingProperties {
  67295. /**
  67296. * Indicates whether to show ambient occlusion shading.
  67297. *
  67298. * @default false
  67299. *
  67300. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-SunLighting.html#ambientOcclusionEnabled)
  67301. */
  67302. ambientOcclusionEnabled?: boolean;
  67303. /**
  67304. * Indicates whether the date and time of the simulated sun is automatically updated to maintain the current time of day while the camera changes.
  67305. *
  67306. * @default true
  67307. *
  67308. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-SunLighting.html#cameraTrackingEnabled)
  67309. */
  67310. cameraTrackingEnabled?: boolean;
  67311. /**
  67312. * Indicates whether [WaterSymbol3DLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WaterSymbol3DLayer.html) display reflections of surrounding terrain, buildings and other 3D objects.
  67313. *
  67314. * @default false
  67315. *
  67316. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-SunLighting.html#waterReflectionEnabled)
  67317. */
  67318. waterReflectionEnabled?: boolean;
  67319. }
  67320. export class SunnyWeather extends Accessor {
  67321. /**
  67322. * Specifies the amount of cloud cover in the sky for a certain weather type.
  67323. *
  67324. * @default 0.5
  67325. *
  67326. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-SunnyWeather.html#cloudCover)
  67327. */
  67328. cloudCover: number;
  67329. /**
  67330. * The type of weather
  67331. *
  67332. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-SunnyWeather.html#type)
  67333. */
  67334. readonly type: "sunny";
  67335. /**
  67336. * The SunnyWeather class allows you to change the weather conditions in the scene to sunny weather.
  67337. *
  67338. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-SunnyWeather.html)
  67339. */
  67340. constructor(properties?: SunnyWeatherProperties);
  67341. /**
  67342. * Creates a deep clone of this object.
  67343. *
  67344. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-SunnyWeather.html#clone)
  67345. */
  67346. clone(): SunnyWeather;
  67347. }
  67348. /** @deprecated Import the SunnyWeather class instead. */
  67349. export type SunnyWeatherConstructor = typeof SunnyWeather;
  67350. interface SunnyWeatherProperties {
  67351. /**
  67352. * Specifies the amount of cloud cover in the sky for a certain weather type.
  67353. *
  67354. * @default 0.5
  67355. *
  67356. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-SunnyWeather.html#cloudCover)
  67357. */
  67358. cloudCover?: number;
  67359. }
  67360. export class VirtualLighting extends websceneVirtualLighting {
  67361. /**
  67362. * Indicates whether to show ambient occlusion shading.
  67363. *
  67364. * @default false
  67365. *
  67366. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-VirtualLighting.html#ambientOcclusionEnabled)
  67367. */
  67368. ambientOcclusionEnabled: boolean;
  67369. /**
  67370. * Indicates whether [WaterSymbol3DLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WaterSymbol3DLayer.html) display reflections of surrounding terrain, buildings and other 3D objects.
  67371. *
  67372. * @default false
  67373. *
  67374. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-VirtualLighting.html#waterReflectionEnabled)
  67375. */
  67376. waterReflectionEnabled: boolean;
  67377. /**
  67378. * The VirtualLighting class allows you to change the lighting in the scene to virtual light.
  67379. *
  67380. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-VirtualLighting.html)
  67381. */
  67382. constructor(properties?: VirtualLightingProperties);
  67383. /**
  67384. * Create a clone of this while partially applying the provided webscene lighting settings.
  67385. *
  67386. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-VirtualLighting.html#cloneWithWebsceneLighting)
  67387. */
  67388. cloneWithWebsceneLighting(): void;
  67389. }
  67390. /** @deprecated Import the VirtualLighting class instead. */
  67391. export type VirtualLightingConstructor = typeof VirtualLighting;
  67392. interface VirtualLightingProperties extends websceneVirtualLightingProperties {
  67393. /**
  67394. * Indicates whether to show ambient occlusion shading.
  67395. *
  67396. * @default false
  67397. *
  67398. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-VirtualLighting.html#ambientOcclusionEnabled)
  67399. */
  67400. ambientOcclusionEnabled?: boolean;
  67401. /**
  67402. * Indicates whether [WaterSymbol3DLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WaterSymbol3DLayer.html) display reflections of surrounding terrain, buildings and other 3D objects.
  67403. *
  67404. * @default false
  67405. *
  67406. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-environment-VirtualLighting.html#waterReflectionEnabled)
  67407. */
  67408. waterReflectionEnabled?: boolean;
  67409. }
  67410. /**
  67411. * map/scene on screen.
  67412. *
  67413. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html)
  67414. */
  67415. interface externalRenderers {
  67416. /**
  67417. * Adds an external renderer to the view.
  67418. *
  67419. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#add)
  67420. */
  67421. add(view: SceneView, renderer: ExternalRenderer): void;
  67422. /**
  67423. * Requests the SceneView to use a specific WebGL verson for rendering.
  67424. *
  67425. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#forceWebGLContext)
  67426. */
  67427. forceWebGLContext(version: number): void;
  67428. /**
  67429. * Transforms positions from the internal rendering coordinate system to the output spatial reference.
  67430. *
  67431. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#fromRenderCoordinates)
  67432. */
  67433. fromRenderCoordinates(view: SceneView, srcCoordinates: number[] | Float32Array, srcStart: number, destCoordinates: number[] | Float32Array, destStart: number, destSpatialReference: SpatialReference, count: number): number[] | Float32Array;
  67434. /**
  67435. * Get the render representation of the current camera of a view.
  67436. *
  67437. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#getRenderCamera)
  67438. */
  67439. getRenderCamera(view: SceneView): RenderCamera;
  67440. /**
  67441. * Removes an external renderer from the view.
  67442. *
  67443. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#remove)
  67444. */
  67445. remove(view: SceneView, renderer: ExternalRenderer): void;
  67446. /**
  67447. * Computes a 4x4 affine transformation matrix that constitutes a linear coordinate transformation from a local Cartesian coordinate system to the virtual world coordinate system.
  67448. *
  67449. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#renderCoordinateTransformAt)
  67450. */
  67451. renderCoordinateTransformAt(view: SceneView, origin: number[] | Float32Array, srcSpatialReference?: SpatialReference, dest?: number[] | Float32Array): number[] | Float32Array;
  67452. /**
  67453. * Requests the view to be redrawn.
  67454. *
  67455. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#requestRender)
  67456. */
  67457. requestRender(view: SceneView): void;
  67458. /**
  67459. * Transforms positions from the given spatial reference to the internal rendering coordinate system.
  67460. *
  67461. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#toRenderCoordinates)
  67462. */
  67463. toRenderCoordinates(view: SceneView, srcCoordinates: number[] | Float32Array, srcStart: number, srcSpatialReference: SpatialReference, destCoordinates: number[] | Float32Array, destStart: number, count: number): number[] | Float32Array;
  67464. }
  67465. export const externalRenderers: externalRenderers;
  67466. /**
  67467. * Tuple of an RGB color value and an intensity value.
  67468. *
  67469. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#ColorAndIntensity)
  67470. */
  67471. export interface ColorAndIntensity {
  67472. /**
  67473. * RGB color with values between 0 and 1.
  67474. *
  67475. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#ColorAndIntensity)
  67476. */
  67477. color: ArrayLike<number>;
  67478. /**
  67479. * Scalar intensity value by which the color should be scaled for compositing.
  67480. *
  67481. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#ColorAndIntensity)
  67482. */
  67483. intensity: number;
  67484. }
  67485. /**
  67486. * Defines an external renderer using callbacks and properties.
  67487. *
  67488. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#ExternalRenderer)
  67489. */
  67490. export interface ExternalRenderer {
  67491. /**
  67492. * Typically called once after adding the external renderer to a view, or whenever the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) becomes [ready](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#ready).
  67493. *
  67494. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#ExternalRenderer)
  67495. */
  67496. setup?: RenderContextCallback;
  67497. /**
  67498. * Called in every frame to execute the state update and draw calls.
  67499. *
  67500. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#ExternalRenderer)
  67501. */
  67502. render?: RenderContextCallback;
  67503. /**
  67504. * Called when the external renderer is removed from a view, or when the [ready](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#ready) state of the view turns false.
  67505. *
  67506. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#ExternalRenderer)
  67507. */
  67508. dispose?: RenderContextCallback;
  67509. }
  67510. /**
  67511. * The camera object passed to renderer callbacks in [RenderContext](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#RenderContext).
  67512. *
  67513. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#RenderCamera)
  67514. */
  67515. export interface RenderCamera {
  67516. /**
  67517. * A 4x4 matrix that transforms coordinates from world space to camera space.
  67518. *
  67519. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#RenderCamera)
  67520. */
  67521. viewMatrix: ArrayLike<number>;
  67522. /**
  67523. * The inverse transpose of `viewMatrix`, used to transform normals from world space to camera space.
  67524. *
  67525. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#RenderCamera)
  67526. */
  67527. viewInverseTransposeMatrix: ArrayLike<number>;
  67528. /**
  67529. * A 4x4 matrix that defines the perspective projection transformation.
  67530. *
  67531. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#RenderCamera)
  67532. */
  67533. projectionMatrix: ArrayLike<number>;
  67534. /**
  67535. * The position of the camera in the internal Cartesian rendering coordinate system.
  67536. *
  67537. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#RenderCamera)
  67538. */
  67539. eye: ArrayLike<number>;
  67540. /**
  67541. * The camera target ("look at") position in the internal Cartesian rendering coordinate system.
  67542. *
  67543. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#RenderCamera)
  67544. */
  67545. center: ArrayLike<number>;
  67546. /**
  67547. * The camera up vector.
  67548. *
  67549. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#RenderCamera)
  67550. */
  67551. up: ArrayLike<number>;
  67552. /**
  67553. * The distance to the near plane.
  67554. *
  67555. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#RenderCamera)
  67556. */
  67557. near: number;
  67558. /**
  67559. * The distance to the far plane.
  67560. *
  67561. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#RenderCamera)
  67562. */
  67563. far: number;
  67564. /**
  67565. * The horizontal field of view.
  67566. *
  67567. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#RenderCamera)
  67568. */
  67569. fovX: number;
  67570. /**
  67571. * The vertical field of view.
  67572. *
  67573. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#RenderCamera)
  67574. */
  67575. fovY: number;
  67576. /**
  67577. * The render pixel ratio.
  67578. *
  67579. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#RenderCamera)
  67580. */
  67581. pixelRatio: number;
  67582. /**
  67583. * The viewport (x, y, width, height).
  67584. *
  67585. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#RenderCamera)
  67586. */
  67587. viewport: any;
  67588. }
  67589. /**
  67590. * The object passed as a parameter to every call to `setup` and `render` the external renderer.
  67591. *
  67592. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#RenderContext)
  67593. */
  67594. export interface RenderContext {
  67595. /**
  67596. * The WebGL rendering context.
  67597. *
  67598. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#RenderContext)
  67599. */
  67600. gl: WebGLRenderingContext;
  67601. /**
  67602. * The camera used to render the current frame.
  67603. *
  67604. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#RenderContext)
  67605. */
  67606. camera: RenderCamera;
  67607. /**
  67608. * The lighting used by [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) to render the current frame.
  67609. *
  67610. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#RenderContext)
  67611. */
  67612. sunLight: SunLight;
  67613. /**
  67614. * A convenience function provided to completely reset the WebGL state after using it.
  67615. *
  67616. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#RenderContext)
  67617. */
  67618. resetWebGLState(): void;
  67619. /**
  67620. * Binds the color and depth buffers an external renderer is supposed to render into.
  67621. *
  67622. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#RenderContext)
  67623. */
  67624. bindRenderTarget(): void;
  67625. }
  67626. export type RenderContextCallback = (context?: RenderContext) => void;
  67627. /**
  67628. * Describes the lighting used by [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html), derived from its sun lighting model.
  67629. *
  67630. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#SunLight)
  67631. */
  67632. export interface SunLight {
  67633. /**
  67634. * The incident light direction in render coordinates.
  67635. *
  67636. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#SunLight)
  67637. */
  67638. direction: ArrayLike<number>;
  67639. /**
  67640. * The diffuse light color and intensity.
  67641. *
  67642. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#SunLight)
  67643. */
  67644. diffuse: ColorAndIntensity;
  67645. /**
  67646. * The ambient light color and intensity.
  67647. *
  67648. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-externalRenderers.html#SunLight)
  67649. */
  67650. ambient: ColorAndIntensity;
  67651. }
  67652. /**
  67653. * This class contains performance information like memory usage and number of features for a specific layer.
  67654. *
  67655. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-support-LayerPerformanceInfo.html)
  67656. */
  67657. interface LayerPerformanceInfo {
  67658. /**
  67659. * The number of features displayed in the SceneView.
  67660. *
  67661. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-support-LayerPerformanceInfo.html#displayedNumberOfFeatures)
  67662. */
  67663. displayedNumberOfFeatures: number;
  67664. /**
  67665. * The layer corresponding to the memory usage information.
  67666. *
  67667. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-support-LayerPerformanceInfo.html#layer)
  67668. */
  67669. layer: Layer;
  67670. /**
  67671. * The maximum number of features that can be displayed in the layer.
  67672. *
  67673. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-support-LayerPerformanceInfo.html#maximumNumberOfFeatures)
  67674. */
  67675. maximumNumberOfFeatures: number;
  67676. /**
  67677. * An estimate of the memory currently in use by the layer, in bytes.
  67678. *
  67679. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-support-LayerPerformanceInfo.html#memory)
  67680. */
  67681. memory: number;
  67682. /**
  67683. * The total number of features contained in the layer.
  67684. *
  67685. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-support-LayerPerformanceInfo.html#totalNumberOfFeatures)
  67686. */
  67687. totalNumberOfFeatures: number;
  67688. }
  67689. export const LayerPerformanceInfo: LayerPerformanceInfo;
  67690. /**
  67691. * This class contains information about performance in the scene like global memory usage and additional details for layers about memory consumption and number of features.
  67692. *
  67693. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-support-SceneViewPerformanceInfo.html)
  67694. */
  67695. interface SceneViewPerformanceInfo {
  67696. /**
  67697. * An estimate of the memory used by the [Edges3D](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-edges-Edges3D.html) feature when added to 3D objects in [SceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html) or to polygons with [ExtrudeSymbol3DLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-ExtrudeSymbol3DLayer.html) symbols.
  67698. *
  67699. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-support-SceneViewPerformanceInfo.html#edgesMemory)
  67700. */
  67701. edgesMemory: number;
  67702. /**
  67703. * An array representing detailed information about memory usage of most layers.
  67704. *
  67705. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-support-SceneViewPerformanceInfo.html#layerPerformanceInfos)
  67706. */
  67707. layerPerformanceInfos: LayerPerformanceInfo[];
  67708. /**
  67709. * Quality level as a number between 0 and 1.
  67710. *
  67711. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-support-SceneViewPerformanceInfo.html#quality)
  67712. */
  67713. quality: number;
  67714. /**
  67715. * An estimate of the memory currently in use by [ElevationLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html) and [tiled layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html), in bytes.
  67716. *
  67717. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-support-SceneViewPerformanceInfo.html#terrainMemory)
  67718. */
  67719. terrainMemory: number;
  67720. /**
  67721. * The total memory available to the SceneView, in bytes.
  67722. *
  67723. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-support-SceneViewPerformanceInfo.html#totalMemory)
  67724. */
  67725. totalMemory: number;
  67726. /**
  67727. * An estimate of the memory that is in use by the SceneView, in bytes.
  67728. *
  67729. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-support-SceneViewPerformanceInfo.html#usedMemory)
  67730. */
  67731. usedMemory: number;
  67732. }
  67733. export const SceneViewPerformanceInfo: SceneViewPerformanceInfo;
  67734. export class DimensionAnalysisView extends Accessor {
  67735. /**
  67736. * The dimension analysis object associated with the analysis view.
  67737. *
  67738. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-DimensionAnalysisView.html#analysis)
  67739. */
  67740. readonly analysis: DimensionAnalysis;
  67741. /**
  67742. * Set to `true` to enable interactivity for the [analysis](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-DimensionAnalysisView.html#analysis).
  67743. *
  67744. * @default false
  67745. *
  67746. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-DimensionAnalysisView.html#interactive)
  67747. */
  67748. interactive: boolean;
  67749. /**
  67750. * Results for each dimension in the [analysis](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-DimensionAnalysisView.html#analysis).
  67751. *
  67752. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-DimensionAnalysisView.html#results)
  67753. */
  67754. readonly results: Collection<LengthDimensionResult>;
  67755. /**
  67756. * The selected dimension.
  67757. *
  67758. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-DimensionAnalysisView.html#selectedDimension)
  67759. */
  67760. selectedDimension: LengthDimension;
  67761. /**
  67762. * When `true`, the [analysis](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-DimensionAnalysisView.html#analysis) is visualized in the view.
  67763. *
  67764. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-DimensionAnalysisView.html#visible)
  67765. */
  67766. visible: boolean;
  67767. /**
  67768. * Represents the analysis view of a [DimensionAnalysis](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-DimensionAnalysis.html) after it has been added to [SceneView.analyses](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#analyses).
  67769. *
  67770. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-DimensionAnalysisView.html)
  67771. */
  67772. constructor(properties?: DimensionAnalysisViewProperties);
  67773. /**
  67774. * Starts the interactive creation of new dimensions and adds them to the [analysis](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-DimensionAnalysisView.html#analysis).
  67775. *
  67776. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-DimensionAnalysisView.html#createLengthDimensions)
  67777. */
  67778. createLengthDimensions(options?: DimensionAnalysisViewCreateLengthDimensionsOptions): Promise<any>;
  67779. }
  67780. /** @deprecated Import the DimensionAnalysisView class instead. */
  67781. export type DimensionAnalysisViewConstructor = typeof DimensionAnalysisView;
  67782. interface DimensionAnalysisViewProperties {
  67783. /**
  67784. * Set to `true` to enable interactivity for the [analysis](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-DimensionAnalysisView.html#analysis).
  67785. *
  67786. * @default false
  67787. *
  67788. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-DimensionAnalysisView.html#interactive)
  67789. */
  67790. interactive?: boolean;
  67791. /**
  67792. * The selected dimension.
  67793. *
  67794. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-DimensionAnalysisView.html#selectedDimension)
  67795. */
  67796. selectedDimension?: LengthDimensionProperties;
  67797. /**
  67798. * When `true`, the [analysis](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-DimensionAnalysisView.html#analysis) is visualized in the view.
  67799. *
  67800. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-DimensionAnalysisView.html#visible)
  67801. */
  67802. visible?: boolean;
  67803. }
  67804. export interface DimensionAnalysisViewCreateLengthDimensionsOptions {
  67805. /**
  67806. * Abort signal which can be used to cancel creation.
  67807. *
  67808. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-DimensionAnalysisView.html#createLengthDimensions)
  67809. */
  67810. signal?: AbortSignal;
  67811. }
  67812. /**
  67813. * Represents the result of a LengthDimension.
  67814. *
  67815. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-LengthDimensionResult.html)
  67816. */
  67817. interface LengthDimensionResult {
  67818. /**
  67819. * The [LengthDimension](https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-LengthDimension.html) that this result corresponds to.
  67820. *
  67821. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-LengthDimensionResult.html#dimension)
  67822. */
  67823. dimension: LengthDimension;
  67824. /**
  67825. * The length currently being measured by the [dimension](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-LengthDimensionResult.html#dimension).
  67826. *
  67827. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-LengthDimensionResult.html#length)
  67828. */
  67829. length: Length;
  67830. }
  67831. export const LengthDimensionResult: LengthDimensionResult;
  67832. export class BasemapView extends Accessor {
  67833. /**
  67834. * A collection containing a hierarchical list of all the created [LayerViews](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) of the base layers in the map.
  67835. *
  67836. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BasemapView.html#baseLayerViews)
  67837. */
  67838. readonly baseLayerViews: Collection<LayerView>;
  67839. /**
  67840. * A collection containing a hierarchical list of all the created [LayerViews](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) of the reference layers in the map.
  67841. *
  67842. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BasemapView.html#referenceLayerViews)
  67843. */
  67844. readonly referenceLayerViews: Collection<LayerView>;
  67845. /**
  67846. * Value is `true` when the basemap is updating; for example, if it is in the process of fetching data.
  67847. *
  67848. * @default false
  67849. *
  67850. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BasemapView.html#updating)
  67851. */
  67852. readonly updating: boolean;
  67853. /**
  67854. * References the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  67855. *
  67856. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BasemapView.html#view)
  67857. */
  67858. view: MapView | SceneView;
  67859. /**
  67860. * Represents the view for a single basemap after it has been added to either a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  67861. *
  67862. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BasemapView.html)
  67863. */
  67864. constructor(properties?: BasemapViewProperties);
  67865. }
  67866. /** @deprecated Import the BasemapView class instead. */
  67867. export type BasemapViewConstructor = typeof BasemapView;
  67868. interface BasemapViewProperties {
  67869. /**
  67870. * References the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  67871. *
  67872. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BasemapView.html#view)
  67873. */
  67874. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  67875. }
  67876. export class BreakpointsOwner {
  67877. /**
  67878. * A convenience property used for defining the breakpoints on the [height](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#height) and [width](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#width) of the view.
  67879. *
  67880. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#breakpoints)
  67881. */
  67882. breakpoints: BreakpointsOwnerBreakpoints;
  67883. /**
  67884. * A convenience property indicating the general size of the view's height.
  67885. *
  67886. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#heightBreakpoint)
  67887. */
  67888. heightBreakpoint: "xsmall" | "small" | "medium" | "large" | "xlarge";
  67889. /**
  67890. * A convenience property indicating the view's orientation.
  67891. *
  67892. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#orientation)
  67893. */
  67894. readonly orientation: "landscape" | "portrait";
  67895. /**
  67896. * A convenience property indicating the general size of the view's width.
  67897. *
  67898. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#widthBreakpoint)
  67899. */
  67900. widthBreakpoint: "xsmall" | "small" | "medium" | "large" | "xlarge";
  67901. }
  67902. interface BreakpointsOwnerProperties {
  67903. /**
  67904. * A convenience property used for defining the breakpoints on the [height](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#height) and [width](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#width) of the view.
  67905. *
  67906. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#breakpoints)
  67907. */
  67908. breakpoints?: BreakpointsOwnerBreakpoints;
  67909. /**
  67910. * A convenience property indicating the general size of the view's height.
  67911. *
  67912. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#heightBreakpoint)
  67913. */
  67914. heightBreakpoint?: "xsmall" | "small" | "medium" | "large" | "xlarge";
  67915. /**
  67916. * A convenience property indicating the general size of the view's width.
  67917. *
  67918. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#widthBreakpoint)
  67919. */
  67920. widthBreakpoint?: "xsmall" | "small" | "medium" | "large" | "xlarge";
  67921. }
  67922. export interface BreakpointsOwnerBreakpoints {
  67923. /**
  67924. * Sets the `xsmall` breakpoint in pixels used by [widthBreakpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#widthBreakpoint) and [heightBreakpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#heightBreakpoint).
  67925. *
  67926. * @default 544
  67927. *
  67928. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#breakpoints)
  67929. */
  67930. xsmall?: number;
  67931. /**
  67932. * Sets the `small` breakpoint in pixels used by [widthBreakpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#widthBreakpoint) and [heightBreakpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#heightBreakpoint).
  67933. *
  67934. * @default 768
  67935. *
  67936. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#breakpoints)
  67937. */
  67938. small?: number;
  67939. /**
  67940. * Sets the `medium` breakpoint in pixels used by [widthBreakpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#widthBreakpoint) and [heightBreakpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#heightBreakpoint).
  67941. *
  67942. * @default 992
  67943. *
  67944. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#breakpoints)
  67945. */
  67946. medium?: number;
  67947. /**
  67948. * Sets the `large` breakpoint in pixels used by [widthBreakpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#widthBreakpoint) and [heightBreakpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#heightBreakpoint).
  67949. *
  67950. * @default 1200
  67951. *
  67952. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#breakpoints)
  67953. */
  67954. large?: number;
  67955. /**
  67956. * Sets the `xlarge` breakpoint in pixels used by [widthBreakpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#widthBreakpoint) and [heightBreakpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#heightBreakpoint).
  67957. *
  67958. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-BreakpointsOwner.html#breakpoints)
  67959. */
  67960. xlarge?: number;
  67961. }
  67962. export class DOMContainer {
  67963. /**
  67964. * The `id` or node representing the DOM element containing the view.
  67965. *
  67966. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-DOMContainer.html#container)
  67967. */
  67968. container: HTMLDivElement;
  67969. /**
  67970. * Indicates if the browser focus is on the view.
  67971. *
  67972. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-DOMContainer.html#focused)
  67973. */
  67974. readonly focused: boolean;
  67975. /**
  67976. * The height of the view in pixels read from the view container element.
  67977. *
  67978. * @default 0
  67979. *
  67980. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-DOMContainer.html#height)
  67981. */
  67982. readonly height: number;
  67983. /**
  67984. * A Popup object that displays general content or attributes from [layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#layers) in the [map](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-DOMContainer.html#map).
  67985. *
  67986. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-DOMContainer.html#popup)
  67987. */
  67988. popup: Popup;
  67989. /**
  67990. * Indicates if the view is being resized.
  67991. *
  67992. * @default false
  67993. *
  67994. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-DOMContainer.html#resizing)
  67995. */
  67996. readonly resizing: boolean;
  67997. /**
  67998. * An array containing the width and height of the view in pixels, e.g.
  67999. *
  68000. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-DOMContainer.html#size)
  68001. */
  68002. readonly size: number[];
  68003. /**
  68004. * Indicates if the view is visible on the page.
  68005. *
  68006. * @default true
  68007. *
  68008. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-DOMContainer.html#suspended)
  68009. */
  68010. readonly suspended: boolean;
  68011. /**
  68012. * Exposes the default widgets available in the view and allows you to toggle them on and off.
  68013. *
  68014. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-DOMContainer.html#ui)
  68015. */
  68016. ui: DefaultUI;
  68017. /**
  68018. * The width of the view in pixels read from the view container element.
  68019. *
  68020. * @default 0
  68021. *
  68022. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-DOMContainer.html#width)
  68023. */
  68024. readonly width: number;
  68025. }
  68026. interface DOMContainerProperties {
  68027. /**
  68028. * The `id` or node representing the DOM element containing the view.
  68029. *
  68030. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-DOMContainer.html#container)
  68031. */
  68032. container?: HTMLDivElement | string;
  68033. /**
  68034. * A Popup object that displays general content or attributes from [layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#layers) in the [map](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-DOMContainer.html#map).
  68035. *
  68036. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-DOMContainer.html#popup)
  68037. */
  68038. popup?: PopupProperties;
  68039. /**
  68040. * Exposes the default widgets available in the view and allows you to toggle them on and off.
  68041. *
  68042. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-DOMContainer.html#ui)
  68043. */
  68044. ui?: DefaultUIProperties;
  68045. }
  68046. export class Draw extends Accessor {
  68047. /**
  68048. * A reference to the active [draw action](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-DrawAction.html).
  68049. *
  68050. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-Draw.html#activeAction)
  68051. */
  68052. activeAction: DrawAction;
  68053. /**
  68054. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  68055. *
  68056. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-Draw.html#view)
  68057. */
  68058. view: MapView;
  68059. /**
  68060. * The Draw class provides advanced drawing capabilities for developers who need complete control over creating temporary graphics with different geometries.
  68061. *
  68062. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-Draw.html)
  68063. */
  68064. constructor(properties?: DrawProperties);
  68065. /**
  68066. * Complete the current active drawing.
  68067. *
  68068. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-Draw.html#complete)
  68069. */
  68070. complete(): void;
  68071. /**
  68072. * Creates an instance of the requested draw action.
  68073. *
  68074. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-Draw.html#create)
  68075. */
  68076. create(drawAction: "point" | "multipoint" | "polyline" | "polygon" | "rectangle" | "circle" | "ellipse", drawOptions?: DrawCreateDrawOptions): DrawAction;
  68077. /**
  68078. * Resets the drawing by clearing the active action.
  68079. *
  68080. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-Draw.html#reset)
  68081. */
  68082. reset(): void;
  68083. }
  68084. /** @deprecated Import the Draw class instead. */
  68085. export type DrawConstructor = typeof Draw;
  68086. interface DrawProperties {
  68087. /**
  68088. * A reference to the active [draw action](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-DrawAction.html).
  68089. *
  68090. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-Draw.html#activeAction)
  68091. */
  68092. activeAction?: DrawActionProperties;
  68093. /**
  68094. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  68095. *
  68096. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-Draw.html#view)
  68097. */
  68098. view?: MapViewProperties;
  68099. }
  68100. export interface DrawCreateDrawOptions {
  68101. /**
  68102. * The drawing mode.
  68103. *
  68104. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-Draw.html#create)
  68105. */
  68106. mode?: "hybrid" | "freehand" | "click";
  68107. }
  68108. export interface DrawAction extends Accessor, Evented {
  68109. }
  68110. export class DrawAction {
  68111. /**
  68112. * Controls whether the created geometry will have z coordinates or not.
  68113. *
  68114. * @default true
  68115. *
  68116. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-DrawAction.html#hasZ)
  68117. */
  68118. hasZ: boolean;
  68119. /**
  68120. * Two-dimensional array of numbers representing the coordinates of each vertex comprising the geometry being drawn.
  68121. *
  68122. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-DrawAction.html#vertices)
  68123. */
  68124. readonly vertices: number[][];
  68125. /**
  68126. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  68127. *
  68128. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-DrawAction.html#view)
  68129. */
  68130. view: MapView;
  68131. /**
  68132. * DrawAction is the base class for all draw actions.
  68133. *
  68134. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-DrawAction.html)
  68135. */
  68136. constructor(properties?: DrawActionProperties);
  68137. /**
  68138. * Indicates if the [redo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-DrawAction.html#redo) method can be called on the action instance.
  68139. *
  68140. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-DrawAction.html#canRedo)
  68141. */
  68142. canRedo(): boolean;
  68143. /**
  68144. * Indicates if the [undo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-DrawAction.html#undo) method can be called on the action instance.
  68145. *
  68146. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-DrawAction.html#canUndo)
  68147. */
  68148. canUndo(): boolean;
  68149. /**
  68150. * Maps the given screen point to a map point.
  68151. *
  68152. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-DrawAction.html#getCoordsAndPointFromScreenPoint)
  68153. */
  68154. getCoordsAndPointFromScreenPoint(screenPoint: DrawActionScreenPoint): FromScreenPointResult | null;
  68155. /**
  68156. * Maps the given screen point to a map point.
  68157. *
  68158. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-DrawAction.html#getCoordsFromScreenPoint)
  68159. */
  68160. getCoordsFromScreenPoint(screenPoint: DrawActionScreenPoint): number[] | null;
  68161. /**
  68162. * Incrementally redo actions recorded in the stack.
  68163. *
  68164. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-DrawAction.html#redo)
  68165. */
  68166. redo(): void;
  68167. /**
  68168. * Maps the given screen point to a map point.
  68169. *
  68170. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-DrawAction.html#screenToMap)
  68171. */
  68172. screenToMap(screenPoint: DrawActionScreenPoint): Point | null;
  68173. /**
  68174. * Incrementally undo actions recorded in the stack.
  68175. *
  68176. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-DrawAction.html#undo)
  68177. */
  68178. undo(): void;
  68179. }
  68180. /** @deprecated Import the DrawAction class instead. */
  68181. export type DrawActionConstructor = typeof DrawAction;
  68182. interface DrawActionProperties {
  68183. /**
  68184. * Controls whether the created geometry will have z coordinates or not.
  68185. *
  68186. * @default true
  68187. *
  68188. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-DrawAction.html#hasZ)
  68189. */
  68190. hasZ?: boolean;
  68191. /**
  68192. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  68193. *
  68194. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-DrawAction.html#view)
  68195. */
  68196. view?: MapViewProperties;
  68197. }
  68198. /**
  68199. * The result object of the [getCoordsAndPointFromScreenPoint()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-DrawAction.html#getCoordsAndPointFromScreenPoint) method.
  68200. *
  68201. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-DrawAction.html#FromScreenPointResult)
  68202. */
  68203. export interface FromScreenPointResult {
  68204. /**
  68205. * Array of x, y, and z component (if hasZ is enabled).
  68206. *
  68207. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-DrawAction.html#FromScreenPointResult)
  68208. */
  68209. vertex: number[];
  68210. /**
  68211. * The map point of the point associated with the given screen point.
  68212. *
  68213. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-DrawAction.html#FromScreenPointResult)
  68214. */
  68215. mapPoint: Point;
  68216. }
  68217. /**
  68218. * An object representing a point on the screen.
  68219. *
  68220. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-DrawAction.html#ScreenPoint)
  68221. */
  68222. export interface DrawActionScreenPoint {
  68223. /**
  68224. * The x coordinate.
  68225. *
  68226. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-DrawAction.html#ScreenPoint)
  68227. */
  68228. x: number;
  68229. /**
  68230. * The y coordinate.
  68231. *
  68232. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-DrawAction.html#ScreenPoint)
  68233. */
  68234. y: number;
  68235. }
  68236. export class MultipointDrawAction extends DrawAction {
  68237. /**
  68238. * This class uses the view events to generate a set of coordinates to create a new [Multipoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Multipoint.html) geometry using [Draw](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-Draw.html).
  68239. *
  68240. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-MultipointDrawAction.html)
  68241. */
  68242. constructor(properties?: MultipointDrawActionProperties);
  68243. /**
  68244. * Completes drawing the [multipoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Multipoint.html) geometry and fires the [draw-complete](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-MultipointDrawAction.html#event-draw-complete) event.
  68245. *
  68246. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-MultipointDrawAction.html#complete)
  68247. */
  68248. complete(): void;
  68249. on(name: "cursor-update", eventHandler: MultipointDrawActionCursorUpdateEventHandler): IHandle;
  68250. on(name: "vertex-add", eventHandler: MultipointDrawActionVertexAddEventHandler): IHandle;
  68251. on(name: "vertex-remove", eventHandler: MultipointDrawActionVertexRemoveEventHandler): IHandle;
  68252. on(name: "draw-complete", eventHandler: MultipointDrawActionDrawCompleteEventHandler): IHandle;
  68253. on(name: "undo", eventHandler: MultipointDrawActionUndoEventHandler): IHandle;
  68254. on(name: "redo", eventHandler: MultipointDrawActionRedoEventHandler): IHandle;
  68255. }
  68256. /** @deprecated Import the MultipointDrawAction class instead. */
  68257. export type MultipointDrawActionConstructor = typeof MultipointDrawAction;
  68258. interface MultipointDrawActionProperties extends DrawActionProperties {
  68259. }
  68260. export interface MultipointDrawActionCursorUpdateEvent {
  68261. defaultPrevented: boolean;
  68262. preventDefault: Function;
  68263. type: "cursor-update";
  68264. vertexIndex: number;
  68265. vertices: number[][];
  68266. }
  68267. export interface MultipointDrawActionDrawCompleteEvent {
  68268. defaultPrevented: boolean;
  68269. preventDefault: Function;
  68270. type: "draw-complete";
  68271. vertices: number[][];
  68272. }
  68273. export interface MultipointDrawActionRedoEvent {
  68274. defaultPrevented: boolean;
  68275. preventDefault: Function;
  68276. type: string;
  68277. vertexIndex: number;
  68278. vertices: number[][];
  68279. }
  68280. export interface MultipointDrawActionUndoEvent {
  68281. defaultPrevented: boolean;
  68282. preventDefault: Function;
  68283. type: string;
  68284. vertexIndex: number;
  68285. vertices: number[][];
  68286. }
  68287. export interface MultipointDrawActionVertexAddEvent {
  68288. defaultPrevented: boolean;
  68289. preventDefault: Function;
  68290. type: "vertex-add";
  68291. vertexIndex: number;
  68292. vertices: number[][];
  68293. }
  68294. export interface MultipointDrawActionVertexRemoveEvent {
  68295. defaultPrevented: boolean;
  68296. preventDefault: Function;
  68297. type: "vertex-remove";
  68298. vertexIndex: number;
  68299. vertices: number[][];
  68300. }
  68301. export class PointDrawAction extends DrawAction {
  68302. /**
  68303. * This class uses the view events to generate a set of coordinates to create a new [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) geometry using [Draw](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-Draw.html).
  68304. *
  68305. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-PointDrawAction.html)
  68306. */
  68307. constructor(properties?: PointDrawActionProperties);
  68308. /**
  68309. * Completes drawing the [point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) geometry and fires the [draw-complete](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-PointDrawAction.html#event-draw-complete) event.
  68310. *
  68311. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-PointDrawAction.html#complete)
  68312. */
  68313. complete(): void;
  68314. on(name: "cursor-update", eventHandler: PointDrawActionCursorUpdateEventHandler): IHandle;
  68315. on(name: "draw-complete", eventHandler: PointDrawActionDrawCompleteEventHandler): IHandle;
  68316. }
  68317. /** @deprecated Import the PointDrawAction class instead. */
  68318. export type PointDrawActionConstructor = typeof PointDrawAction;
  68319. interface PointDrawActionProperties extends DrawActionProperties {
  68320. }
  68321. export interface PointDrawActionCursorUpdateEvent {
  68322. coordinates: number[];
  68323. defaultPrevented: boolean;
  68324. preventDefault: Function;
  68325. type: "cursor-update";
  68326. }
  68327. export interface PointDrawActionDrawCompleteEvent {
  68328. coordinates: number[];
  68329. defaultPrevented: boolean;
  68330. preventDefault: Function;
  68331. type: "draw-complete";
  68332. }
  68333. export class PolygonDrawAction extends DrawAction {
  68334. /**
  68335. * The drawing mode.
  68336. *
  68337. * @default hybrid
  68338. *
  68339. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-PolygonDrawAction.html#mode)
  68340. */
  68341. mode: "hybrid" | "freehand" | "click";
  68342. /**
  68343. * This class uses different [events](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-PolygonDrawAction.html#events-summary) to generate a set of vertices to create a new [Polygon](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html) geometry using [Draw](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-Draw.html).
  68344. *
  68345. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-PolygonDrawAction.html)
  68346. */
  68347. constructor(properties?: PolygonDrawActionProperties);
  68348. /**
  68349. * Completes drawing the polygon geometry and fires the [draw-complete](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-PolygonDrawAction.html#event-draw-complete) event.
  68350. *
  68351. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-PolygonDrawAction.html#complete)
  68352. */
  68353. complete(): void;
  68354. on(name: "cursor-update", eventHandler: PolygonDrawActionCursorUpdateEventHandler): IHandle;
  68355. on(name: "vertex-add", eventHandler: PolygonDrawActionVertexAddEventHandler): IHandle;
  68356. on(name: "vertex-remove", eventHandler: PolygonDrawActionVertexRemoveEventHandler): IHandle;
  68357. on(name: "draw-complete", eventHandler: PolygonDrawActionDrawCompleteEventHandler): IHandle;
  68358. on(name: "undo", eventHandler: PolygonDrawActionUndoEventHandler): IHandle;
  68359. on(name: "redo", eventHandler: PolygonDrawActionRedoEventHandler): IHandle;
  68360. }
  68361. /** @deprecated Import the PolygonDrawAction class instead. */
  68362. export type PolygonDrawActionConstructor = typeof PolygonDrawAction;
  68363. interface PolygonDrawActionProperties extends DrawActionProperties {
  68364. /**
  68365. * The drawing mode.
  68366. *
  68367. * @default hybrid
  68368. *
  68369. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-PolygonDrawAction.html#mode)
  68370. */
  68371. mode?: "hybrid" | "freehand" | "click";
  68372. }
  68373. export interface PolygonDrawActionCursorUpdateEvent {
  68374. defaultPrevented: boolean;
  68375. preventDefault: Function;
  68376. type: "cursor-update";
  68377. vertexIndex: number;
  68378. vertices: number[][];
  68379. }
  68380. export interface PolygonDrawActionDrawCompleteEvent {
  68381. defaultPrevented: boolean;
  68382. preventDefault: Function;
  68383. type: "draw-complete";
  68384. vertices: number[][];
  68385. }
  68386. export interface PolygonDrawActionRedoEvent {
  68387. defaultPrevented: boolean;
  68388. preventDefault: Function;
  68389. type: string;
  68390. vertexIndex: number;
  68391. vertices: number[][];
  68392. }
  68393. export interface PolygonDrawActionUndoEvent {
  68394. defaultPrevented: boolean;
  68395. preventDefault: Function;
  68396. type: string;
  68397. vertexIndex: number;
  68398. vertices: number[][];
  68399. }
  68400. export interface PolygonDrawActionVertexAddEvent {
  68401. defaultPrevented: boolean;
  68402. preventDefault: Function;
  68403. type: "vertex-add";
  68404. vertexIndex: number;
  68405. vertices: number[][];
  68406. }
  68407. export interface PolygonDrawActionVertexRemoveEvent {
  68408. defaultPrevented: boolean;
  68409. preventDefault: Function;
  68410. type: "vertex-remove";
  68411. vertexIndex: number;
  68412. vertices: number[][];
  68413. }
  68414. export class PolylineDrawAction extends DrawAction {
  68415. /**
  68416. * The drawing mode.
  68417. *
  68418. * @default hybrid
  68419. *
  68420. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-PolylineDrawAction.html#mode)
  68421. */
  68422. mode: "hybrid" | "freehand" | "click";
  68423. /**
  68424. * This class uses different [events](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-PolylineDrawAction.html#events-summary) to generate a set of vertices to create a new [Polyline](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html) geometry using [Draw](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-Draw.html).
  68425. *
  68426. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-PolylineDrawAction.html)
  68427. */
  68428. constructor(properties?: PolylineDrawActionProperties);
  68429. /**
  68430. * Completes drawing the polyline geometry and fires the [draw-complete](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-PolylineDrawAction.html#event-draw-complete) event.
  68431. *
  68432. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-PolylineDrawAction.html#complete)
  68433. */
  68434. complete(): void;
  68435. on(name: "cursor-update", eventHandler: PolylineDrawActionCursorUpdateEventHandler): IHandle;
  68436. on(name: "vertex-add", eventHandler: PolylineDrawActionVertexAddEventHandler): IHandle;
  68437. on(name: "vertex-remove", eventHandler: PolylineDrawActionVertexRemoveEventHandler): IHandle;
  68438. on(name: "draw-complete", eventHandler: PolylineDrawActionDrawCompleteEventHandler): IHandle;
  68439. on(name: "undo", eventHandler: PolylineDrawActionUndoEventHandler): IHandle;
  68440. on(name: "redo", eventHandler: PolylineDrawActionRedoEventHandler): IHandle;
  68441. }
  68442. /** @deprecated Import the PolylineDrawAction class instead. */
  68443. export type PolylineDrawActionConstructor = typeof PolylineDrawAction;
  68444. interface PolylineDrawActionProperties extends DrawActionProperties {
  68445. /**
  68446. * The drawing mode.
  68447. *
  68448. * @default hybrid
  68449. *
  68450. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-PolylineDrawAction.html#mode)
  68451. */
  68452. mode?: "hybrid" | "freehand" | "click";
  68453. }
  68454. export interface PolylineDrawActionCursorUpdateEvent {
  68455. defaultPrevented: boolean;
  68456. preventDefault: Function;
  68457. type: "cursor-update";
  68458. vertexIndex: number;
  68459. vertices: number[][];
  68460. }
  68461. export interface PolylineDrawActionDrawCompleteEvent {
  68462. defaultPrevented: boolean;
  68463. preventDefault: Function;
  68464. type: "draw-complete";
  68465. vertices: number[][];
  68466. }
  68467. export interface PolylineDrawActionRedoEvent {
  68468. defaultPrevented: boolean;
  68469. preventDefault: Function;
  68470. type: string;
  68471. vertexIndex: number;
  68472. vertices: number[][];
  68473. }
  68474. export interface PolylineDrawActionUndoEvent {
  68475. defaultPrevented: boolean;
  68476. preventDefault: Function;
  68477. type: string;
  68478. vertexIndex: number;
  68479. vertices: number[][];
  68480. }
  68481. export interface PolylineDrawActionVertexAddEvent {
  68482. defaultPrevented: boolean;
  68483. preventDefault: Function;
  68484. type: "vertex-add";
  68485. vertexIndex: number;
  68486. vertices: number[][];
  68487. }
  68488. export interface PolylineDrawActionVertexRemoveEvent {
  68489. defaultPrevented: boolean;
  68490. preventDefault: Function;
  68491. type: "vertex-remove";
  68492. vertexIndex: number;
  68493. vertices: number[][];
  68494. }
  68495. export class SegmentDrawAction extends DrawAction {
  68496. /**
  68497. * The drawing mode.
  68498. *
  68499. * @default freehand
  68500. *
  68501. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-SegmentDrawAction.html#mode)
  68502. */
  68503. mode: "freehand" | "click";
  68504. /**
  68505. * This class uses different [events](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-SegmentDrawAction.html#events-summary) to generate a set of vertices to create a geometry with [drag mode](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-SegmentDrawAction.html#mode) or with two clicks.
  68506. *
  68507. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-SegmentDrawAction.html)
  68508. */
  68509. constructor(properties?: SegmentDrawActionProperties);
  68510. /**
  68511. * Completes drawing the polygon geometry and fires the [draw-complete](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-SegmentDrawAction.html#event-draw-complete) event.
  68512. *
  68513. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-SegmentDrawAction.html#complete)
  68514. */
  68515. complete(): void;
  68516. on(name: "cursor-update", eventHandler: SegmentDrawActionCursorUpdateEventHandler): IHandle;
  68517. on(name: "draw-complete", eventHandler: SegmentDrawActionDrawCompleteEventHandler): IHandle;
  68518. on(name: "vertex-add", eventHandler: SegmentDrawActionVertexAddEventHandler): IHandle;
  68519. }
  68520. /** @deprecated Import the SegmentDrawAction class instead. */
  68521. export type SegmentDrawActionConstructor = typeof SegmentDrawAction;
  68522. interface SegmentDrawActionProperties extends DrawActionProperties {
  68523. /**
  68524. * The drawing mode.
  68525. *
  68526. * @default freehand
  68527. *
  68528. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-SegmentDrawAction.html#mode)
  68529. */
  68530. mode?: "freehand" | "click";
  68531. }
  68532. export interface SegmentDrawActionCursorUpdateEvent {
  68533. defaultPrevented: boolean;
  68534. preventDefault: Function;
  68535. type: "cursor-update";
  68536. vertexIndex: number;
  68537. vertices: number[][];
  68538. }
  68539. export interface SegmentDrawActionDrawCompleteEvent {
  68540. defaultPrevented: boolean;
  68541. preventDefault: Function;
  68542. type: "draw-complete";
  68543. vertices: number[][];
  68544. }
  68545. export interface SegmentDrawActionVertexAddEvent {
  68546. defaultPrevented: boolean;
  68547. preventDefault: Function;
  68548. type: "vertex-add";
  68549. vertexIndex: number;
  68550. vertices: number[][];
  68551. }
  68552. export class GroundView extends Accessor {
  68553. /**
  68554. * An elevation sampler that may be used to sample and query elevation values from the ground surface that is currently being displayed.
  68555. *
  68556. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-GroundView.html#elevationSampler)
  68557. */
  68558. readonly elevationSampler: ElevationSampler;
  68559. /**
  68560. * A collection containing a hierarchical list of all the created [LayerViews](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) of the [layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#layers) in the ground.
  68561. *
  68562. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-GroundView.html#layerViews)
  68563. */
  68564. readonly layerViews: Collection<LayerView>;
  68565. /**
  68566. * Value is `true` when any of the ground layer views are updating.
  68567. *
  68568. * @default false
  68569. *
  68570. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-GroundView.html#updating)
  68571. */
  68572. readonly updating: boolean;
  68573. /**
  68574. * This class represents the view for the [Ground](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html) of a map.
  68575. *
  68576. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-GroundView.html)
  68577. */
  68578. constructor(properties?: GroundViewProperties);
  68579. }
  68580. /** @deprecated Import the GroundView class instead. */
  68581. export type GroundViewConstructor = typeof GroundView;
  68582. interface GroundViewProperties {
  68583. }
  68584. export class GamepadInputDevice extends Accessor {
  68585. /**
  68586. * The native Gamepad object exposed by the browser.
  68587. *
  68588. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-input-gamepad-GamepadInputDevice.html#native)
  68589. */
  68590. readonly native: Gamepad;
  68591. /**
  68592. * Properties and configuration of a gamepad.
  68593. *
  68594. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-input-gamepad-GamepadInputDevice.html)
  68595. */
  68596. constructor(properties?: GamepadInputDeviceProperties);
  68597. }
  68598. /** @deprecated Import the GamepadInputDevice class instead. */
  68599. export type GamepadInputDeviceConstructor = typeof GamepadInputDevice;
  68600. interface GamepadInputDeviceProperties {
  68601. }
  68602. export class GamepadSettings extends Accessor {
  68603. /**
  68604. * A readonly collection of all gamepads detected.
  68605. *
  68606. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-input-gamepad-GamepadSettings.html#devices)
  68607. */
  68608. readonly devices: Collection<GamepadInputDevice>;
  68609. /**
  68610. * Determines what focus is required for gamepad events to be dispatched.
  68611. *
  68612. * @default document
  68613. *
  68614. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-input-gamepad-GamepadSettings.html#enabledFocusMode)
  68615. */
  68616. enabledFocusMode: "document" | "view" | "none";
  68617. /**
  68618. * Gamepad input specific configuration settings.
  68619. *
  68620. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-input-gamepad-GamepadSettings.html)
  68621. */
  68622. constructor(properties?: GamepadSettingsProperties);
  68623. }
  68624. /** @deprecated Import the GamepadSettings class instead. */
  68625. export type GamepadSettingsConstructor = typeof GamepadSettings;
  68626. interface GamepadSettingsProperties {
  68627. /**
  68628. * Determines what focus is required for gamepad events to be dispatched.
  68629. *
  68630. * @default document
  68631. *
  68632. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-input-gamepad-GamepadSettings.html#enabledFocusMode)
  68633. */
  68634. enabledFocusMode?: "document" | "view" | "none";
  68635. }
  68636. export class Input extends Accessor {
  68637. /**
  68638. * Gamepad input specific configuration settings.
  68639. *
  68640. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-input-Input.html#gamepad)
  68641. */
  68642. readonly gamepad: GamepadSettings;
  68643. /**
  68644. * Input device related configuration settings on the View.
  68645. *
  68646. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-input-Input.html)
  68647. */
  68648. constructor(properties?: InputProperties);
  68649. }
  68650. /** @deprecated Import the Input class instead. */
  68651. export type InputConstructor = typeof Input;
  68652. interface InputProperties {
  68653. }
  68654. export class SketchLabelOptions extends Accessor {
  68655. /**
  68656. * Whether labels are shown next to each segment of the graphic being sketched.
  68657. *
  68658. * @default false
  68659. *
  68660. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-sketch-SketchLabelOptions.html#enabled)
  68661. */
  68662. enabled: boolean;
  68663. /**
  68664. * The `SketchLabelOptions` allows users to configure the labels which are shown next to each segment of a graphic while sketching and editing.
  68665. *
  68666. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-sketch-SketchLabelOptions.html)
  68667. */
  68668. constructor(properties?: SketchLabelOptionsProperties);
  68669. }
  68670. /** @deprecated Import the SketchLabelOptions class instead. */
  68671. export type SketchLabelOptionsConstructor = typeof SketchLabelOptions;
  68672. interface SketchLabelOptionsProperties {
  68673. /**
  68674. * Whether labels are shown next to each segment of the graphic being sketched.
  68675. *
  68676. * @default false
  68677. *
  68678. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-sketch-SketchLabelOptions.html#enabled)
  68679. */
  68680. enabled?: boolean;
  68681. }
  68682. export class SketchTooltipOptions extends Accessor {
  68683. /**
  68684. * Whether tooltips are shown while sketching and editing.
  68685. *
  68686. * @default false
  68687. *
  68688. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-sketch-SketchTooltipOptions.html#enabled)
  68689. */
  68690. enabled: boolean;
  68691. /**
  68692. * The `SketchTooltipOptions` allows users to configure the tooltips which are shown while sketching and editing.
  68693. *
  68694. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-sketch-SketchTooltipOptions.html)
  68695. */
  68696. constructor(properties?: SketchTooltipOptionsProperties);
  68697. }
  68698. /** @deprecated Import the SketchTooltipOptions class instead. */
  68699. export type SketchTooltipOptionsConstructor = typeof SketchTooltipOptions;
  68700. interface SketchTooltipOptionsProperties {
  68701. /**
  68702. * Whether tooltips are shown while sketching and editing.
  68703. *
  68704. * @default false
  68705. *
  68706. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-sketch-SketchTooltipOptions.html#enabled)
  68707. */
  68708. enabled?: boolean;
  68709. }
  68710. export class FeatureSnappingLayerSource extends Accessor {
  68711. /**
  68712. * Indicates whether feature snapping is turned on or off.
  68713. *
  68714. * @default true
  68715. *
  68716. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-FeatureSnappingLayerSource.html#enabled)
  68717. */
  68718. enabled: boolean;
  68719. /**
  68720. * The source layer used for snapping.
  68721. *
  68722. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-FeatureSnappingLayerSource.html#layer)
  68723. */
  68724. readonly layer: | BuildingSceneLayer
  68725. | CSVLayer
  68726. | FeatureLayer
  68727. | GeoJSONLayer
  68728. | GraphicsLayer
  68729. | MapNotesLayer
  68730. | SceneLayer
  68731. | WFSLayer;
  68732. /**
  68733. * The FeatureSnappingLayerSource specifies which layers will be utilized for snapping in the [SnappingOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-SnappingOptions.html).
  68734. *
  68735. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-FeatureSnappingLayerSource.html)
  68736. */
  68737. constructor(properties?: FeatureSnappingLayerSourceProperties);
  68738. }
  68739. /** @deprecated Import the FeatureSnappingLayerSource class instead. */
  68740. export type FeatureSnappingLayerSourceConstructor = typeof FeatureSnappingLayerSource;
  68741. interface FeatureSnappingLayerSourceProperties {
  68742. /**
  68743. * Indicates whether feature snapping is turned on or off.
  68744. *
  68745. * @default true
  68746. *
  68747. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-FeatureSnappingLayerSource.html#enabled)
  68748. */
  68749. enabled?: boolean;
  68750. /**
  68751. * The source layer used for snapping.
  68752. *
  68753. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-FeatureSnappingLayerSource.html#layer)
  68754. */
  68755. layer?: | (BuildingSceneLayerProperties & { type: "building-scene" })
  68756. | (CSVLayerProperties & { type: "csv" })
  68757. | (FeatureLayerProperties & { type: "feature" })
  68758. | (GeoJSONLayerProperties & { type: "geojson" })
  68759. | (GraphicsLayerProperties & { type: "graphics" })
  68760. | (MapNotesLayerProperties & { type: "map-notes" })
  68761. | (SceneLayerProperties & { type: "scene" })
  68762. | (WFSLayerProperties & { type: "wfs" });
  68763. }
  68764. export class SnappingOptions extends Accessor {
  68765. /**
  68766. * Snapping distance for snapping in pixels.
  68767. *
  68768. * @default 5
  68769. *
  68770. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-SnappingOptions.html#distance)
  68771. */
  68772. distance: number;
  68773. /**
  68774. * Global configuration to turn snapping on or off.
  68775. *
  68776. * @default false
  68777. *
  68778. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-SnappingOptions.html#enabled)
  68779. */
  68780. enabled: boolean;
  68781. /**
  68782. * Global configuration option to turn feature snapping on or off.
  68783. *
  68784. * @default true
  68785. *
  68786. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-SnappingOptions.html#featureEnabled)
  68787. */
  68788. featureEnabled: boolean;
  68789. /**
  68790. * List of sources for feature snapping.
  68791. *
  68792. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-SnappingOptions.html#featureSources)
  68793. */
  68794. featureSources: Collection<FeatureSnappingLayerSource>;
  68795. /**
  68796. * Global configuration option to turn self snapping (within one feature while either drawing or reshaping) on or off.
  68797. *
  68798. * @default true
  68799. *
  68800. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-SnappingOptions.html#selfEnabled)
  68801. */
  68802. selfEnabled: boolean;
  68803. /**
  68804. * The `SnappingOptions` allows users to configure snapping for their editing or drawing experience in both the [Sketch](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#snappingOptions) and [Editor](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#snappingOptions) widgets.
  68805. *
  68806. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-SnappingOptions.html)
  68807. */
  68808. constructor(properties?: SnappingOptionsProperties);
  68809. }
  68810. /** @deprecated Import the SnappingOptions class instead. */
  68811. export type SnappingOptionsConstructor = typeof SnappingOptions;
  68812. interface SnappingOptionsProperties {
  68813. /**
  68814. * Snapping distance for snapping in pixels.
  68815. *
  68816. * @default 5
  68817. *
  68818. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-SnappingOptions.html#distance)
  68819. */
  68820. distance?: number;
  68821. /**
  68822. * Global configuration to turn snapping on or off.
  68823. *
  68824. * @default false
  68825. *
  68826. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-SnappingOptions.html#enabled)
  68827. */
  68828. enabled?: boolean;
  68829. /**
  68830. * Global configuration option to turn feature snapping on or off.
  68831. *
  68832. * @default true
  68833. *
  68834. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-SnappingOptions.html#featureEnabled)
  68835. */
  68836. featureEnabled?: boolean;
  68837. /**
  68838. * List of sources for feature snapping.
  68839. *
  68840. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-SnappingOptions.html#featureSources)
  68841. */
  68842. featureSources?: CollectionProperties<FeatureSnappingLayerSourceProperties>;
  68843. /**
  68844. * Global configuration option to turn self snapping (within one feature while either drawing or reshaping) on or off.
  68845. *
  68846. * @default true
  68847. *
  68848. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-SnappingOptions.html#selfEnabled)
  68849. */
  68850. selfEnabled?: boolean;
  68851. }
  68852. export class BuildingComponentSublayerView extends Accessor {
  68853. /**
  68854. * A list of attribute fields fetched for each feature including fields required for layer [rendering](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#renderer) and additional fields defined on the [BuildingComponentSublayer.outFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#outFields) or [BuildingSceneLayer.outFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html#outFields).
  68855. *
  68856. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-BuildingComponentSublayerView.html#availableFields)
  68857. */
  68858. readonly availableFields: string[];
  68859. /**
  68860. * Applies a client-side [FeatureFilter](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html) to the displayed data.
  68861. *
  68862. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-BuildingComponentSublayerView.html#filter)
  68863. */
  68864. filter: FeatureFilter;
  68865. /**
  68866. * The sublayer being viewed.
  68867. *
  68868. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-BuildingComponentSublayerView.html#sublayer)
  68869. */
  68870. readonly sublayer: BuildingComponentSublayer;
  68871. /**
  68872. * Value is `true` if the sublayer is suspended (i.e., sublayer will not redraw or update itself when the extent changes).
  68873. *
  68874. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-BuildingComponentSublayerView.html#suspended)
  68875. */
  68876. readonly suspended: boolean;
  68877. /**
  68878. * Value is `true` when the sublayer is updating; for example, if it is in the process of fetching data.
  68879. *
  68880. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-BuildingComponentSublayerView.html#updating)
  68881. */
  68882. readonly updating: boolean;
  68883. /**
  68884. * Represents the sublayer view of a [BuildingComponentSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html).
  68885. *
  68886. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-BuildingComponentSublayerView.html)
  68887. */
  68888. constructor(properties?: BuildingComponentSublayerViewProperties);
  68889. /**
  68890. * Creates a query parameter object that can be used to fetch features as they are being displayed.
  68891. *
  68892. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-BuildingComponentSublayerView.html#createQuery)
  68893. */
  68894. createQuery(): Query;
  68895. /**
  68896. * Highlights the given feature(s).
  68897. *
  68898. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-BuildingComponentSublayerView.html#highlight)
  68899. */
  68900. highlight(target?: Graphic | Graphic[] | number | number[]): Handle;
  68901. /**
  68902. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features in the layer view and returns the 3D [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) of features that satisfy the query.
  68903. *
  68904. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features in the layer view and returns the 3D [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) of features that satisfy the query. If query parameters are not provided, the extent and count of all loaded features are returned. Read more about queries in the Query section of the [BuildingSceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html) class description. To query for the extent of features directly from a Scene Service rather than those loaded for the current view, you must use the [BuildingComponentSublayer.queryExtent()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#queryExtent) method. For making attribute based queries on a BuildingComponentSublayerView you need to specify the required fields in the [outFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#outFields) property of the BuildingComponentSublayer to ensure that attribute values are available on the client for querying. You can use [availableFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-BuildingComponentSublayerView.html#availableFields) to inspect which fields are available on the client. [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-BuildingComponentSublayerView.html#queryExtent)
  68905. */
  68906. queryExtent(query?: Query | QueryProperties, options?: BuildingComponentSublayerViewQueryExtentOptions): Promise<any>;
  68907. /**
  68908. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features in the layer view and returns the number of features that satisfy the query.
  68909. *
  68910. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features in the layer view and returns the number of features that satisfy the query. If query parameters are not provided, the count of all loaded features is returned. To query for the count of features directly from a Scene Service rather than those loaded for the current view, you must use the [BuildingComponentSublayer.queryFeatureCount()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#queryFeatureCount) method. For making attribute based queries on a BuildingSceneLayerView you need to specify the required fields in the [outFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html#outFields) property of the BuildingComponentSublayer to ensure that attribute values are available on the client for querying. You can use [availableFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-BuildingComponentSublayerView.html#availableFields) to inspect which fields are available on the client. Read more about queries in the Query section of the [BuildingSceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html) class description. [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-BuildingComponentSublayerView.html#queryFeatureCount)
  68911. */
  68912. queryFeatureCount(query?: Query | QueryProperties, options?: BuildingComponentSublayerViewQueryFeatureCountOptions): Promise<number>;
  68913. /**
  68914. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features in the layer view and returns a [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html).
  68915. *
  68916. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-BuildingComponentSublayerView.html#queryFeatures)
  68917. */
  68918. queryFeatures(query?: Query | QueryProperties, options?: BuildingComponentSublayerViewQueryFeaturesOptions): Promise<FeatureSet>;
  68919. /**
  68920. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features in the layer view and returns an array of the ObjectIDs of features that satisfy the input query.
  68921. *
  68922. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-BuildingComponentSublayerView.html#queryObjectIds)
  68923. */
  68924. queryObjectIds(query?: Query | QueryProperties, options?: BuildingComponentSublayerViewQueryObjectIdsOptions): Promise<number[]>;
  68925. }
  68926. /** @deprecated Import the BuildingComponentSublayerView class instead. */
  68927. export type BuildingComponentSublayerViewConstructor = typeof BuildingComponentSublayerView;
  68928. interface BuildingComponentSublayerViewProperties {
  68929. /**
  68930. * Applies a client-side [FeatureFilter](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html) to the displayed data.
  68931. *
  68932. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-BuildingComponentSublayerView.html#filter)
  68933. */
  68934. filter?: FeatureFilterProperties;
  68935. }
  68936. export interface BuildingComponentSublayerViewQueryExtentOptions {
  68937. /**
  68938. * Signal object that can be used to abort the asynchronous task.
  68939. *
  68940. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-BuildingComponentSublayerView.html#queryExtent)
  68941. */
  68942. signal?: AbortSignal;
  68943. }
  68944. export interface BuildingComponentSublayerViewQueryFeatureCountOptions {
  68945. /**
  68946. * Signal object that can be used to abort the asynchronous task.
  68947. *
  68948. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-BuildingComponentSublayerView.html#queryFeatureCount)
  68949. */
  68950. signal?: AbortSignal;
  68951. }
  68952. export interface BuildingComponentSublayerViewQueryFeaturesOptions {
  68953. /**
  68954. * Signal object that can be used to abort the asynchronous task.
  68955. *
  68956. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-BuildingComponentSublayerView.html#queryFeatures)
  68957. */
  68958. signal?: AbortSignal;
  68959. }
  68960. export interface BuildingComponentSublayerViewQueryObjectIdsOptions {
  68961. /**
  68962. * Signal object that can be used to abort the asynchronous task.
  68963. *
  68964. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-BuildingComponentSublayerView.html#queryObjectIds)
  68965. */
  68966. signal?: AbortSignal;
  68967. }
  68968. export class BuildingSceneLayerView extends LayerView {
  68969. /**
  68970. * The layer being viewed.
  68971. *
  68972. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-BuildingSceneLayerView.html#layer)
  68973. */
  68974. readonly layer: BuildingSceneLayer;
  68975. /**
  68976. * Collection of [sublayer views](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-BuildingComponentSublayerView.html) for all the component sublayers of the BuildingSceneLayer.
  68977. *
  68978. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-BuildingSceneLayerView.html#sublayerViews)
  68979. */
  68980. readonly sublayerViews: Collection<BuildingComponentSublayerView>;
  68981. /**
  68982. * Represents the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) of a [BuildingSceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html) after it has been added to a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  68983. *
  68984. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-BuildingSceneLayerView.html)
  68985. */
  68986. constructor(properties?: BuildingSceneLayerViewProperties);
  68987. /**
  68988. * Highlights the given feature(s).
  68989. *
  68990. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-BuildingSceneLayerView.html#highlight)
  68991. */
  68992. highlight(target?: Graphic | Graphic[]): Handle;
  68993. }
  68994. /** @deprecated Import the BuildingSceneLayerView class instead. */
  68995. export type BuildingSceneLayerViewConstructor = typeof BuildingSceneLayerView;
  68996. interface BuildingSceneLayerViewProperties extends LayerViewProperties {
  68997. }
  68998. export class CSVLayerView extends LayerView {
  68999. /**
  69000. * A list of attribute fields fetched for each feature including fields required for layer [rendering](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#renderer), [labeling](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#labelingInfo), [elevation info](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#elevationInfo), and additional fields defined on the [CSVLayer.outFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html#outFields).
  69001. *
  69002. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CSVLayerView.html#availableFields)
  69003. */
  69004. readonly availableFields: string[];
  69005. /**
  69006. * The featureEffect can be used to draw attention features of interest.
  69007. *
  69008. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CSVLayerView.html#featureEffect)
  69009. */
  69010. featureEffect: FeatureEffect;
  69011. /**
  69012. * The [attribute](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#where), [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#geometry), and [time extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#timeExtent) filter.
  69013. *
  69014. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CSVLayerView.html#filter)
  69015. */
  69016. filter: FeatureFilter;
  69017. /**
  69018. * The maximum number of features that can be displayed at a time.
  69019. *
  69020. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CSVLayerView.html#maximumNumberOfFeatures)
  69021. */
  69022. maximumNumberOfFeatures: number;
  69023. /**
  69024. * Signifies whether the maximum number of features has been exceeded.
  69025. *
  69026. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CSVLayerView.html#maximumNumberOfFeaturesExceeded)
  69027. */
  69028. maximumNumberOfFeaturesExceeded: boolean;
  69029. /**
  69030. * Represents the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) of a [CSVLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html) after it has been added to a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) in either a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  69031. *
  69032. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CSVLayerView.html)
  69033. */
  69034. constructor(properties?: CSVLayerViewProperties);
  69035. /**
  69036. * Creates query parameter object that can be used to [fetch aggregate features](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CSVLayerView.html#queryAggregates) as they are being displayed.
  69037. *
  69038. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CSVLayerView.html#createAggregateQuery)
  69039. */
  69040. createAggregateQuery(): Query;
  69041. /**
  69042. * Creates a query parameter object that can be used to fetch features as they are being displayed.
  69043. *
  69044. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CSVLayerView.html#createQuery)
  69045. */
  69046. createQuery(): Query;
  69047. /**
  69048. * Highlights the given feature(s).
  69049. *
  69050. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CSVLayerView.html#highlight)
  69051. */
  69052. highlight(target?: Graphic | Graphic[] | number | number[]): Handle;
  69053. /**
  69054. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against aggregate features (i.e.
  69055. *
  69056. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CSVLayerView.html#queryAggregates)
  69057. */
  69058. queryAggregates(query?: Query | QueryProperties, options?: CSVLayerViewQueryAggregatesOptions): Promise<FeatureSet>;
  69059. /**
  69060. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features available for drawing in the layerView and returns the [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) of features that satisfy the query.
  69061. *
  69062. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CSVLayerView.html#queryExtent)
  69063. */
  69064. queryExtent(query?: Query | QueryProperties, options?: CSVLayerViewQueryExtentOptions): Promise<any>;
  69065. /**
  69066. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features available for drawing in the layerView and returns the number of features that satisfy the query.
  69067. *
  69068. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CSVLayerView.html#queryFeatureCount)
  69069. */
  69070. queryFeatureCount(query?: Query | QueryProperties, options?: CSVLayerViewQueryFeatureCountOptions): Promise<number>;
  69071. /**
  69072. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features available for drawing in the layerView and returns a [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html).
  69073. *
  69074. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CSVLayerView.html#queryFeatures)
  69075. */
  69076. queryFeatures(query?: Query | QueryProperties, options?: CSVLayerViewQueryFeaturesOptions): Promise<FeatureSet>;
  69077. /**
  69078. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features available for drawing in the layerView and returns array of the ObjectIDs of features that satisfy the input query.
  69079. *
  69080. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CSVLayerView.html#queryObjectIds)
  69081. */
  69082. queryObjectIds(query?: Query | QueryProperties, options?: CSVLayerViewQueryObjectIdsOptions): Promise<number[]>;
  69083. }
  69084. /** @deprecated Import the CSVLayerView class instead. */
  69085. export type CSVLayerViewConstructor = typeof CSVLayerView;
  69086. interface CSVLayerViewProperties extends LayerViewProperties {
  69087. /**
  69088. * The featureEffect can be used to draw attention features of interest.
  69089. *
  69090. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CSVLayerView.html#featureEffect)
  69091. */
  69092. featureEffect?: FeatureEffectProperties;
  69093. /**
  69094. * The [attribute](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#where), [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#geometry), and [time extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#timeExtent) filter.
  69095. *
  69096. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CSVLayerView.html#filter)
  69097. */
  69098. filter?: FeatureFilterProperties;
  69099. /**
  69100. * The maximum number of features that can be displayed at a time.
  69101. *
  69102. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CSVLayerView.html#maximumNumberOfFeatures)
  69103. */
  69104. maximumNumberOfFeatures?: number;
  69105. /**
  69106. * Signifies whether the maximum number of features has been exceeded.
  69107. *
  69108. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CSVLayerView.html#maximumNumberOfFeaturesExceeded)
  69109. */
  69110. maximumNumberOfFeaturesExceeded?: boolean;
  69111. }
  69112. export interface CSVLayerViewQueryAggregatesOptions {
  69113. /**
  69114. * Signal object that can be used to abort the asynchronous task.
  69115. *
  69116. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CSVLayerView.html#queryAggregates)
  69117. */
  69118. signal?: AbortSignal;
  69119. }
  69120. export interface CSVLayerViewQueryExtentOptions {
  69121. /**
  69122. * Signal object that can be used to abort the asynchronous task.
  69123. *
  69124. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CSVLayerView.html#queryExtent)
  69125. */
  69126. signal?: AbortSignal;
  69127. }
  69128. export interface CSVLayerViewQueryFeatureCountOptions {
  69129. /**
  69130. * Signal object that can be used to abort the asynchronous task.
  69131. *
  69132. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CSVLayerView.html#queryFeatureCount)
  69133. */
  69134. signal?: AbortSignal;
  69135. }
  69136. export interface CSVLayerViewQueryFeaturesOptions {
  69137. /**
  69138. * Signal object that can be used to abort the asynchronous task.
  69139. *
  69140. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CSVLayerView.html#queryFeatures)
  69141. */
  69142. signal?: AbortSignal;
  69143. }
  69144. export interface CSVLayerViewQueryObjectIdsOptions {
  69145. /**
  69146. * Signal object that can be used to abort the asynchronous task.
  69147. *
  69148. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-CSVLayerView.html#queryObjectIds)
  69149. */
  69150. signal?: AbortSignal;
  69151. }
  69152. export class DimensionLayerView extends LayerView {
  69153. /**
  69154. * Set to `true` to enable interactivity for the [layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-DimensionLayerView.html#layer).
  69155. *
  69156. * @default false
  69157. *
  69158. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-DimensionLayerView.html#interactive)
  69159. */
  69160. interactive: boolean;
  69161. /**
  69162. * The layer being viewed.
  69163. *
  69164. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-DimensionLayerView.html#layer)
  69165. */
  69166. readonly layer: DimensionLayer;
  69167. /**
  69168. * Results for each dimension in the layer [source](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-DimensionLayer.html#source).
  69169. *
  69170. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-DimensionLayerView.html#results)
  69171. */
  69172. readonly results: Collection<LengthDimensionResult>;
  69173. /**
  69174. * The selected dimension.
  69175. *
  69176. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-DimensionLayerView.html#selectedDimension)
  69177. */
  69178. selectedDimension: LengthDimension;
  69179. /**
  69180. * Represents the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) of a [DimensionLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-DimensionLayer.html) after it has been added to a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  69181. *
  69182. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-DimensionLayerView.html)
  69183. */
  69184. constructor(properties?: DimensionLayerViewProperties);
  69185. /**
  69186. * Starts the interactive creation of new dimensions and adds them to the layer [source](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-DimensionLayer.html#source).
  69187. *
  69188. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-DimensionLayerView.html#createLengthDimensions)
  69189. */
  69190. createLengthDimensions(options?: DimensionLayerViewCreateLengthDimensionsOptions): Promise<any>;
  69191. }
  69192. /** @deprecated Import the DimensionLayerView class instead. */
  69193. export type DimensionLayerViewConstructor = typeof DimensionLayerView;
  69194. interface DimensionLayerViewProperties extends LayerViewProperties {
  69195. /**
  69196. * Set to `true` to enable interactivity for the [layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-DimensionLayerView.html#layer).
  69197. *
  69198. * @default false
  69199. *
  69200. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-DimensionLayerView.html#interactive)
  69201. */
  69202. interactive?: boolean;
  69203. /**
  69204. * The selected dimension.
  69205. *
  69206. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-DimensionLayerView.html#selectedDimension)
  69207. */
  69208. selectedDimension?: LengthDimensionProperties;
  69209. }
  69210. export interface DimensionLayerViewCreateLengthDimensionsOptions {
  69211. /**
  69212. * Abort signal which can be used to cancel creation.
  69213. *
  69214. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-DimensionLayerView.html#createLengthDimensions)
  69215. */
  69216. signal?: AbortSignal;
  69217. }
  69218. export class FeatureLayerView extends LayerView {
  69219. /**
  69220. * A list of attribute fields fetched for each feature including fields required for layer [rendering](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#renderer), [labeling](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#labelingInfo), [elevation info](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#elevationInfo), and additional fields defined on the [FeatureLayer.outFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#outFields).
  69221. *
  69222. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#availableFields)
  69223. */
  69224. readonly availableFields: string[];
  69225. /**
  69226. * The featureEffect can be used to draw attention features of interest.
  69227. *
  69228. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#featureEffect)
  69229. */
  69230. featureEffect: FeatureEffect;
  69231. /**
  69232. * The [attribute](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#where), [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#geometry), and [time extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#timeExtent) filter.
  69233. *
  69234. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#filter)
  69235. */
  69236. filter: FeatureFilter;
  69237. /**
  69238. * The layer being viewed.
  69239. *
  69240. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#layer)
  69241. */
  69242. readonly layer: FeatureLayer;
  69243. /**
  69244. * The maximum number of features that can be displayed at a time.
  69245. *
  69246. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#maximumNumberOfFeatures)
  69247. */
  69248. maximumNumberOfFeatures: number;
  69249. /**
  69250. * Signifies whether the maximum number of features has been exceeded.
  69251. *
  69252. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#maximumNumberOfFeaturesExceeded)
  69253. */
  69254. maximumNumberOfFeaturesExceeded: boolean;
  69255. /**
  69256. * Represents the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) of a [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) after it has been added to a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) in either a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  69257. *
  69258. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html)
  69259. */
  69260. constructor(properties?: FeatureLayerViewProperties);
  69261. /**
  69262. * Creates query parameter object that can be used to [fetch aggregate features](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#queryAggregates) as they are being displayed.
  69263. *
  69264. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#createAggregateQuery)
  69265. */
  69266. createAggregateQuery(): Query;
  69267. /**
  69268. * Creates query parameter object that can be used to fetch features as they are being displayed.
  69269. *
  69270. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#createQuery)
  69271. */
  69272. createQuery(): Query;
  69273. /**
  69274. * Highlights the given feature(s).
  69275. *
  69276. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#highlight)
  69277. */
  69278. highlight(target?: Graphic | Graphic[] | number | number[]): Handle;
  69279. /**
  69280. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against aggregate features (i.e.
  69281. *
  69282. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#queryAggregates)
  69283. */
  69284. queryAggregates(query?: Query | QueryProperties, options?: FeatureLayerViewQueryAggregatesOptions): Promise<FeatureSet>;
  69285. /**
  69286. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features available for drawing in the layerView and returns the [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) of features that satisfy the query.
  69287. *
  69288. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#queryExtent)
  69289. */
  69290. queryExtent(query?: Query | QueryProperties, options?: FeatureLayerViewQueryExtentOptions): Promise<any>;
  69291. /**
  69292. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features available for drawing in the layerView and returns the number of features that satisfy the query.
  69293. *
  69294. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#queryFeatureCount)
  69295. */
  69296. queryFeatureCount(query?: Query | QueryProperties, options?: FeatureLayerViewQueryFeatureCountOptions): Promise<number>;
  69297. /**
  69298. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features available for drawing in the layerView and returns a [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html).
  69299. *
  69300. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#queryFeatures)
  69301. */
  69302. queryFeatures(query?: Query | QueryProperties, options?: FeatureLayerViewQueryFeaturesOptions): Promise<FeatureSet>;
  69303. /**
  69304. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features available for drawing in the layerView and returns array of the ObjectIDs of features that satisfy the input query.
  69305. *
  69306. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#queryObjectIds)
  69307. */
  69308. queryObjectIds(query?: Query | QueryProperties, options?: FeatureLayerViewQueryObjectIdsOptions): Promise<number[]>;
  69309. }
  69310. /** @deprecated Import the FeatureLayerView class instead. */
  69311. export type FeatureLayerViewConstructor = typeof FeatureLayerView;
  69312. interface FeatureLayerViewProperties extends LayerViewProperties {
  69313. /**
  69314. * The featureEffect can be used to draw attention features of interest.
  69315. *
  69316. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#featureEffect)
  69317. */
  69318. featureEffect?: FeatureEffectProperties;
  69319. /**
  69320. * The [attribute](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#where), [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#geometry), and [time extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#timeExtent) filter.
  69321. *
  69322. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#filter)
  69323. */
  69324. filter?: FeatureFilterProperties;
  69325. /**
  69326. * The maximum number of features that can be displayed at a time.
  69327. *
  69328. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#maximumNumberOfFeatures)
  69329. */
  69330. maximumNumberOfFeatures?: number;
  69331. /**
  69332. * Signifies whether the maximum number of features has been exceeded.
  69333. *
  69334. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#maximumNumberOfFeaturesExceeded)
  69335. */
  69336. maximumNumberOfFeaturesExceeded?: boolean;
  69337. }
  69338. export interface FeatureLayerViewQueryAggregatesOptions {
  69339. /**
  69340. * Signal object that can be used to abort the asynchronous task.
  69341. *
  69342. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#queryAggregates)
  69343. */
  69344. signal?: AbortSignal;
  69345. }
  69346. export interface FeatureLayerViewQueryExtentOptions {
  69347. /**
  69348. * Signal object that can be used to abort the asynchronous task.
  69349. *
  69350. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#queryExtent)
  69351. */
  69352. signal?: AbortSignal;
  69353. }
  69354. export interface FeatureLayerViewQueryFeatureCountOptions {
  69355. /**
  69356. * Signal object that can be used to abort the asynchronous task.
  69357. *
  69358. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#queryFeatureCount)
  69359. */
  69360. signal?: AbortSignal;
  69361. }
  69362. export interface FeatureLayerViewQueryFeaturesOptions {
  69363. /**
  69364. * Signal object that can be used to abort the asynchronous task.
  69365. *
  69366. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#queryFeatures)
  69367. */
  69368. signal?: AbortSignal;
  69369. }
  69370. export interface FeatureLayerViewQueryObjectIdsOptions {
  69371. /**
  69372. * Signal object that can be used to abort the asynchronous task.
  69373. *
  69374. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#queryObjectIds)
  69375. */
  69376. signal?: AbortSignal;
  69377. }
  69378. export class GeoJSONLayerView extends LayerView {
  69379. /**
  69380. * A list of attribute fields fetched for each feature including fields required for layer [rendering](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#renderer), [labeling](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#labelingInfo), [elevation info](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#elevationInfo), and additional fields defined on the [GeoJSONLayer.outFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html#outFields).
  69381. *
  69382. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoJSONLayerView.html#availableFields)
  69383. */
  69384. readonly availableFields: string[];
  69385. /**
  69386. * The featureEffect can be used to draw attention features of interest.
  69387. *
  69388. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoJSONLayerView.html#featureEffect)
  69389. */
  69390. featureEffect: FeatureEffect;
  69391. /**
  69392. * The [attribute](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#where), [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#geometry), and [time extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#timeExtent) filter.
  69393. *
  69394. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoJSONLayerView.html#filter)
  69395. */
  69396. filter: FeatureFilter;
  69397. /**
  69398. * The maximum number of features that can be displayed at a time.
  69399. *
  69400. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoJSONLayerView.html#maximumNumberOfFeatures)
  69401. */
  69402. maximumNumberOfFeatures: number;
  69403. /**
  69404. * Signifies whether the maximum number of features has been exceeded.
  69405. *
  69406. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoJSONLayerView.html#maximumNumberOfFeaturesExceeded)
  69407. */
  69408. maximumNumberOfFeaturesExceeded: boolean;
  69409. /**
  69410. * Represents the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) of a [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html) after it has been added to a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) in either a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  69411. *
  69412. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoJSONLayerView.html)
  69413. */
  69414. constructor(properties?: GeoJSONLayerViewProperties);
  69415. /**
  69416. * Creates query parameter object that can be used to [fetch aggregate features](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoJSONLayerView.html#queryAggregates) as they are being displayed.
  69417. *
  69418. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoJSONLayerView.html#createAggregateQuery)
  69419. */
  69420. createAggregateQuery(): Query;
  69421. /**
  69422. * Creates a query parameter object that can be used to fetch features as they are being displayed.
  69423. *
  69424. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoJSONLayerView.html#createQuery)
  69425. */
  69426. createQuery(): Query;
  69427. /**
  69428. * Highlights the given feature(s).
  69429. *
  69430. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoJSONLayerView.html#highlight)
  69431. */
  69432. highlight(target?: Graphic | Graphic[] | number | number[]): Handle;
  69433. /**
  69434. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against aggregate features (i.e.
  69435. *
  69436. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoJSONLayerView.html#queryAggregates)
  69437. */
  69438. queryAggregates(query?: Query | QueryProperties, options?: GeoJSONLayerViewQueryAggregatesOptions): Promise<FeatureSet>;
  69439. /**
  69440. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features available for drawing in the layerView and returns the [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) of features that satisfy the query.
  69441. *
  69442. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoJSONLayerView.html#queryExtent)
  69443. */
  69444. queryExtent(query?: Query | QueryProperties, options?: GeoJSONLayerViewQueryExtentOptions): Promise<any>;
  69445. /**
  69446. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features available for drawing in the layerView and returns the number of features that satisfy the query.
  69447. *
  69448. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoJSONLayerView.html#queryFeatureCount)
  69449. */
  69450. queryFeatureCount(query?: Query | QueryProperties, options?: GeoJSONLayerViewQueryFeatureCountOptions): Promise<number>;
  69451. /**
  69452. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features available for drawing in the layerView and returns a [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html).
  69453. *
  69454. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoJSONLayerView.html#queryFeatures)
  69455. */
  69456. queryFeatures(query?: Query | QueryProperties, options?: GeoJSONLayerViewQueryFeaturesOptions): Promise<FeatureSet>;
  69457. /**
  69458. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features available for drawing in the layerView and returns array of the ObjectIDs of features that satisfy the input query.
  69459. *
  69460. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoJSONLayerView.html#queryObjectIds)
  69461. */
  69462. queryObjectIds(query?: Query | QueryProperties, options?: GeoJSONLayerViewQueryObjectIdsOptions): Promise<number[]>;
  69463. }
  69464. /** @deprecated Import the GeoJSONLayerView class instead. */
  69465. export type GeoJSONLayerViewConstructor = typeof GeoJSONLayerView;
  69466. interface GeoJSONLayerViewProperties extends LayerViewProperties {
  69467. /**
  69468. * The featureEffect can be used to draw attention features of interest.
  69469. *
  69470. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoJSONLayerView.html#featureEffect)
  69471. */
  69472. featureEffect?: FeatureEffectProperties;
  69473. /**
  69474. * The [attribute](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#where), [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#geometry), and [time extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#timeExtent) filter.
  69475. *
  69476. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoJSONLayerView.html#filter)
  69477. */
  69478. filter?: FeatureFilterProperties;
  69479. /**
  69480. * The maximum number of features that can be displayed at a time.
  69481. *
  69482. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoJSONLayerView.html#maximumNumberOfFeatures)
  69483. */
  69484. maximumNumberOfFeatures?: number;
  69485. /**
  69486. * Signifies whether the maximum number of features has been exceeded.
  69487. *
  69488. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoJSONLayerView.html#maximumNumberOfFeaturesExceeded)
  69489. */
  69490. maximumNumberOfFeaturesExceeded?: boolean;
  69491. }
  69492. export interface GeoJSONLayerViewQueryAggregatesOptions {
  69493. /**
  69494. * Signal object that can be used to abort the asynchronous task.
  69495. *
  69496. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoJSONLayerView.html#queryAggregates)
  69497. */
  69498. signal?: AbortSignal;
  69499. }
  69500. export interface GeoJSONLayerViewQueryExtentOptions {
  69501. /**
  69502. * Signal object that can be used to abort the asynchronous task.
  69503. *
  69504. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoJSONLayerView.html#queryExtent)
  69505. */
  69506. signal?: AbortSignal;
  69507. }
  69508. export interface GeoJSONLayerViewQueryFeatureCountOptions {
  69509. /**
  69510. * Signal object that can be used to abort the asynchronous task.
  69511. *
  69512. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoJSONLayerView.html#queryFeatureCount)
  69513. */
  69514. signal?: AbortSignal;
  69515. }
  69516. export interface GeoJSONLayerViewQueryFeaturesOptions {
  69517. /**
  69518. * Signal object that can be used to abort the asynchronous task.
  69519. *
  69520. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoJSONLayerView.html#queryFeatures)
  69521. */
  69522. signal?: AbortSignal;
  69523. }
  69524. export interface GeoJSONLayerViewQueryObjectIdsOptions {
  69525. /**
  69526. * Signal object that can be used to abort the asynchronous task.
  69527. *
  69528. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoJSONLayerView.html#queryObjectIds)
  69529. */
  69530. signal?: AbortSignal;
  69531. }
  69532. export class GeoRSSLayerView extends LayerView {
  69533. /**
  69534. * Represents the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) of a [GeoRSSLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoRSSLayer.html) after it has been added to a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) in either a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  69535. *
  69536. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoRSSLayerView.html)
  69537. */
  69538. constructor(properties?: GeoRSSLayerViewProperties);
  69539. /**
  69540. * Highlights the given feature(s).
  69541. *
  69542. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GeoRSSLayerView.html#highlight)
  69543. */
  69544. highlight(target?: Graphic | Graphic[]): Handle;
  69545. }
  69546. /** @deprecated Import the GeoRSSLayerView class instead. */
  69547. export type GeoRSSLayerViewConstructor = typeof GeoRSSLayerView;
  69548. interface GeoRSSLayerViewProperties extends LayerViewProperties {
  69549. }
  69550. export class GraphicsLayerView extends LayerView {
  69551. /**
  69552. * Represents the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) of a [GraphicsLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html) after it has been added to a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) in either a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  69553. *
  69554. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GraphicsLayerView.html)
  69555. */
  69556. constructor(properties?: GraphicsLayerViewProperties);
  69557. /**
  69558. * Highlights the given feature(s).
  69559. *
  69560. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GraphicsLayerView.html#highlight)
  69561. */
  69562. highlight(target?: Graphic | Graphic[] | number | number[]): Handle;
  69563. /**
  69564. * Returns all graphics available for drawing in the layer view as a [collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html).
  69565. *
  69566. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-GraphicsLayerView.html#queryGraphics)
  69567. */
  69568. queryGraphics(): Promise<Collection<Graphic>>;
  69569. }
  69570. /** @deprecated Import the GraphicsLayerView class instead. */
  69571. export type GraphicsLayerViewConstructor = typeof GraphicsLayerView;
  69572. interface GraphicsLayerViewProperties extends LayerViewProperties {
  69573. }
  69574. export class ImageryLayerView extends LayerView {
  69575. /**
  69576. * An object that provides the user access to [pixels](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#pixels) and their values in the layer.
  69577. *
  69578. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-ImageryLayerView.html#pixelData)
  69579. */
  69580. pixelData: PixelData;
  69581. /**
  69582. * Represents the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) of an [ImageryLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html) after it has been added to a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) in either a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  69583. *
  69584. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-ImageryLayerView.html)
  69585. */
  69586. constructor(properties?: ImageryLayerViewProperties);
  69587. /**
  69588. * Highlights the given feature(s).
  69589. *
  69590. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-ImageryLayerView.html#highlight)
  69591. */
  69592. highlight(target?: Graphic | Graphic[]): Handle;
  69593. }
  69594. /** @deprecated Import the ImageryLayerView class instead. */
  69595. export type ImageryLayerViewConstructor = typeof ImageryLayerView;
  69596. interface ImageryLayerViewProperties extends LayerViewProperties {
  69597. /**
  69598. * An object that provides the user access to [pixels](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-PixelBlock.html#pixels) and their values in the layer.
  69599. *
  69600. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-ImageryLayerView.html#pixelData)
  69601. */
  69602. pixelData?: PixelData;
  69603. }
  69604. export class KMLLayerView extends LayerView {
  69605. /**
  69606. * A collection of all the [MapImages](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-KMLLayerView.html#MapImage) from visible sublayers.
  69607. *
  69608. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-KMLLayerView.html#allVisibleMapImages)
  69609. */
  69610. readonly allVisibleMapImages: Collection<KMLLayerViewMapImage>;
  69611. /**
  69612. * A collection of all the points from visible sublayers.
  69613. *
  69614. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-KMLLayerView.html#allVisiblePoints)
  69615. */
  69616. readonly allVisiblePoints: Collection<Point>;
  69617. /**
  69618. * A collection of all the polygons from visible sublayers.
  69619. *
  69620. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-KMLLayerView.html#allVisiblePolygons)
  69621. */
  69622. readonly allVisiblePolygons: Collection<Polygon>;
  69623. /**
  69624. * A collection of all the polylines from visible sublayers.
  69625. *
  69626. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-KMLLayerView.html#allVisiblePolylines)
  69627. */
  69628. readonly allVisiblePolylines: Collection<Polyline>;
  69629. /**
  69630. * Represents the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) of a [KMLLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-KMLLayer.html) after it has been added to a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) in a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  69631. *
  69632. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-KMLLayerView.html)
  69633. */
  69634. constructor(properties?: KMLLayerViewProperties);
  69635. }
  69636. /** @deprecated Import the KMLLayerView class instead. */
  69637. export type KMLLayerViewConstructor = typeof KMLLayerView;
  69638. interface KMLLayerViewProperties extends LayerViewProperties {
  69639. }
  69640. /**
  69641. * **MapImage** represents an image overlay draped onto the terrain.
  69642. *
  69643. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-KMLLayerView.html#MapImage)
  69644. */
  69645. export interface KMLLayerViewMapImage {
  69646. /**
  69647. * Map image id.
  69648. *
  69649. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-KMLLayerView.html#MapImage)
  69650. */
  69651. id: number;
  69652. /**
  69653. * URL to the map image.
  69654. *
  69655. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-KMLLayerView.html#MapImage)
  69656. */
  69657. href: string;
  69658. /**
  69659. * The [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) of the map image.
  69660. *
  69661. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-KMLLayerView.html#MapImage)
  69662. */
  69663. Extent: Extent;
  69664. /**
  69665. * Rotation of the map image about its center, in degrees.
  69666. *
  69667. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-KMLLayerView.html#MapImage)
  69668. */
  69669. rotation: number;
  69670. }
  69671. export interface LayerView extends Accessor, corePromise, Identifiable {
  69672. }
  69673. export class LayerView {
  69674. /**
  69675. * The layer being viewed.
  69676. *
  69677. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html#layer)
  69678. */
  69679. readonly layer: Layer;
  69680. /**
  69681. * Indicates if the [spatialReference](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#spatialReference) of the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) is supported by the layer view.
  69682. *
  69683. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html#spatialReferenceSupported)
  69684. */
  69685. readonly spatialReferenceSupported: boolean;
  69686. /**
  69687. * Value is `true` if the layer is suspended (i.e., layer will not redraw or update itself when the extent changes).
  69688. *
  69689. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html#suspended)
  69690. */
  69691. readonly suspended: boolean;
  69692. /**
  69693. * Value is `true` when the layer is updating; for example, if it is in the process of fetching data.
  69694. *
  69695. * @default false
  69696. *
  69697. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html#updating)
  69698. */
  69699. readonly updating: boolean;
  69700. /**
  69701. * When `true`, the layer is visible in the view.
  69702. *
  69703. * @default true
  69704. *
  69705. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html#visible)
  69706. */
  69707. visible: boolean;
  69708. /**
  69709. * Represents the view for a single layer after it has been added to either a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  69710. *
  69711. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html)
  69712. */
  69713. constructor(properties?: LayerViewProperties);
  69714. }
  69715. /** @deprecated Import the LayerView class instead. */
  69716. export type LayerViewConstructor = typeof LayerView;
  69717. interface LayerViewProperties {
  69718. /**
  69719. * When `true`, the layer is visible in the view.
  69720. *
  69721. * @default true
  69722. *
  69723. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html#visible)
  69724. */
  69725. visible?: boolean;
  69726. }
  69727. export class OGCFeatureLayerView extends LayerView {
  69728. /**
  69729. * A list of attribute fields fetched for each feature including fields required for layer [rendering](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#renderer), [labeling](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#labelingInfo), and [elevation info](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html#elevationInfo).
  69730. *
  69731. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-OGCFeatureLayerView.html#availableFields)
  69732. */
  69733. readonly availableFields: string[];
  69734. /**
  69735. * The featureEffect can be used to draw attention features of interest.
  69736. *
  69737. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-OGCFeatureLayerView.html#featureEffect)
  69738. */
  69739. featureEffect: FeatureEffect;
  69740. /**
  69741. * The [attribute](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#where), [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#geometry), and [time extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#timeExtent) filter.
  69742. *
  69743. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-OGCFeatureLayerView.html#filter)
  69744. */
  69745. filter: FeatureFilter;
  69746. constructor(properties?: OGCFeatureLayerViewProperties);
  69747. /**
  69748. * Creates query parameter object that can be used to [fetch aggregate features](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-OGCFeatureLayerView.html#queryAggregates) as they are being displayed.
  69749. *
  69750. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-OGCFeatureLayerView.html#createAggregateQuery)
  69751. */
  69752. createAggregateQuery(): Query;
  69753. /**
  69754. * Creates a query parameter object that can be used to fetch features as they are being displayed.
  69755. *
  69756. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-OGCFeatureLayerView.html#createQuery)
  69757. */
  69758. createQuery(): Query;
  69759. /**
  69760. * Highlights the given feature(s).
  69761. *
  69762. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-OGCFeatureLayerView.html#highlight)
  69763. */
  69764. highlight(target?: Graphic | Graphic[] | number | number[]): Handle;
  69765. /**
  69766. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against aggregate features (i.e.
  69767. *
  69768. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-OGCFeatureLayerView.html#queryAggregates)
  69769. */
  69770. queryAggregates(query?: Query | QueryProperties, options?: OGCFeatureLayerViewQueryAggregatesOptions): Promise<FeatureSet>;
  69771. /**
  69772. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features available for drawing in the layerView and returns the [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) of features that satisfy the query.
  69773. *
  69774. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-OGCFeatureLayerView.html#queryExtent)
  69775. */
  69776. queryExtent(query?: Query | QueryProperties, options?: OGCFeatureLayerViewQueryExtentOptions): Promise<any>;
  69777. /**
  69778. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features available for drawing in the layerView and returns the number of features that satisfy the query.
  69779. *
  69780. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-OGCFeatureLayerView.html#queryFeatureCount)
  69781. */
  69782. queryFeatureCount(query?: Query | QueryProperties, options?: OGCFeatureLayerViewQueryFeatureCountOptions): Promise<number>;
  69783. /**
  69784. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features available for drawing in the layerView and returns a [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html).
  69785. *
  69786. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-OGCFeatureLayerView.html#queryFeatures)
  69787. */
  69788. queryFeatures(query?: Query | QueryProperties, options?: OGCFeatureLayerViewQueryFeaturesOptions): Promise<FeatureSet>;
  69789. /**
  69790. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features available for drawing in the layerView and returns array of the ObjectIDs of features that satisfy the input query.
  69791. *
  69792. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-OGCFeatureLayerView.html#queryObjectIds)
  69793. */
  69794. queryObjectIds(query?: Query | QueryProperties, options?: OGCFeatureLayerViewQueryObjectIdsOptions): Promise<number[]>;
  69795. }
  69796. /** @deprecated Import the OGCFeatureLayerView class instead. */
  69797. export type OGCFeatureLayerViewConstructor = typeof OGCFeatureLayerView;
  69798. interface OGCFeatureLayerViewProperties extends LayerViewProperties {
  69799. /**
  69800. * The featureEffect can be used to draw attention features of interest.
  69801. *
  69802. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-OGCFeatureLayerView.html#featureEffect)
  69803. */
  69804. featureEffect?: FeatureEffectProperties;
  69805. /**
  69806. * The [attribute](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#where), [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#geometry), and [time extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#timeExtent) filter.
  69807. *
  69808. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-OGCFeatureLayerView.html#filter)
  69809. */
  69810. filter?: FeatureFilterProperties;
  69811. }
  69812. export interface OGCFeatureLayerViewQueryAggregatesOptions {
  69813. /**
  69814. * Signal object that can be used to abort the asynchronous task.
  69815. *
  69816. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-OGCFeatureLayerView.html#queryAggregates)
  69817. */
  69818. signal?: AbortSignal;
  69819. }
  69820. export interface OGCFeatureLayerViewQueryExtentOptions {
  69821. /**
  69822. * Signal object that can be used to abort the asynchronous task.
  69823. *
  69824. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-OGCFeatureLayerView.html#queryExtent)
  69825. */
  69826. signal?: AbortSignal;
  69827. }
  69828. export interface OGCFeatureLayerViewQueryFeatureCountOptions {
  69829. /**
  69830. * Signal object that can be used to abort the asynchronous task.
  69831. *
  69832. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-OGCFeatureLayerView.html#queryFeatureCount)
  69833. */
  69834. signal?: AbortSignal;
  69835. }
  69836. export interface OGCFeatureLayerViewQueryFeaturesOptions {
  69837. /**
  69838. * Signal object that can be used to abort the asynchronous task.
  69839. *
  69840. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-OGCFeatureLayerView.html#queryFeatures)
  69841. */
  69842. signal?: AbortSignal;
  69843. }
  69844. export interface OGCFeatureLayerViewQueryObjectIdsOptions {
  69845. /**
  69846. * Signal object that can be used to abort the asynchronous task.
  69847. *
  69848. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-OGCFeatureLayerView.html#queryObjectIds)
  69849. */
  69850. signal?: AbortSignal;
  69851. }
  69852. export class PointCloudLayerView extends LayerView {
  69853. /**
  69854. * A list of attribute fields fetched for each feature including fields required for layer [rendering](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#renderer) and additional fields defined on the [SceneLayer.outFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#outFields).
  69855. *
  69856. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-PointCloudLayerView.html#availableFields)
  69857. */
  69858. readonly availableFields: string[];
  69859. /**
  69860. * Represents the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) of a [PointCloudLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-PointCloudLayer.html) after it has been added to a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  69861. *
  69862. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-PointCloudLayerView.html)
  69863. */
  69864. constructor(properties?: PointCloudLayerViewProperties);
  69865. /**
  69866. * Highlights the given point(s).
  69867. *
  69868. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-PointCloudLayerView.html#highlight)
  69869. */
  69870. highlight(target?: Graphic | Graphic[]): Handle;
  69871. }
  69872. /** @deprecated Import the PointCloudLayerView class instead. */
  69873. export type PointCloudLayerViewConstructor = typeof PointCloudLayerView;
  69874. interface PointCloudLayerViewProperties extends LayerViewProperties {
  69875. }
  69876. export class SceneLayerView extends LayerView {
  69877. /**
  69878. * A list of attribute fields fetched for each feature including fields required for layer [rendering](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#renderer) and additional fields defined on the [SceneLayer.outFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#outFields).
  69879. *
  69880. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-SceneLayerView.html#availableFields)
  69881. */
  69882. readonly availableFields: string[];
  69883. /**
  69884. * Applies a client-side [FeatureFilter](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html) to the displayed data.
  69885. *
  69886. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-SceneLayerView.html#filter)
  69887. */
  69888. filter: FeatureFilter;
  69889. /**
  69890. * The scene layer being viewed.
  69891. *
  69892. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-SceneLayerView.html#layer)
  69893. */
  69894. readonly layer: SceneLayer;
  69895. /**
  69896. * The maximum number of features that can be displayed at a time.
  69897. *
  69898. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-SceneLayerView.html#maximumNumberOfFeatures)
  69899. */
  69900. maximumNumberOfFeatures: number;
  69901. /**
  69902. * Signifies whether the maximum number of features has been exceeded.
  69903. *
  69904. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-SceneLayerView.html#maximumNumberOfFeaturesExceeded)
  69905. */
  69906. maximumNumberOfFeaturesExceeded: boolean;
  69907. /**
  69908. * Represents the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) of a [SceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html) after it has been added to a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  69909. *
  69910. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-SceneLayerView.html)
  69911. */
  69912. constructor(properties?: SceneLayerViewProperties);
  69913. /**
  69914. * Creates query parameter object that can be used to fetch features as they are being displayed.
  69915. *
  69916. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-SceneLayerView.html#createQuery)
  69917. */
  69918. createQuery(): Query;
  69919. /**
  69920. * Highlights the given feature(s).
  69921. *
  69922. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-SceneLayerView.html#highlight)
  69923. */
  69924. highlight(target?: Graphic | Graphic[] | number | number[]): Handle;
  69925. /**
  69926. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features in the layer view and returns the 3D [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) of features that satisfy the query.
  69927. *
  69928. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features in the layer view and returns the 3D [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) of features that satisfy the query. If query parameters are not provided, the extent and count of all loaded features are returned. Read more about queries in the Query section of the [SceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html) class description. To query for the extent of features directly from a Scene Service rather than those loaded for the current view, you must use the [SceneLayer.queryExtent()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#queryExtent) method. For making attribute based queries on a SceneLayerView you need to specify the required fields in the [outFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#outFields) property of the SceneLayer to ensure that attribute values are available on the client for querying. You can use [availableFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-SceneLayerView.html#availableFields) to inspect which fields are available on the client. [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-SceneLayerView.html#queryExtent)
  69929. */
  69930. queryExtent(query?: Query | QueryProperties, options?: SceneLayerViewQueryExtentOptions): Promise<any>;
  69931. /**
  69932. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features in the layer view and returns the number of features that satisfy the query.
  69933. *
  69934. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features in the layer view and returns the number of features that satisfy the query. If query parameters are not provided, the count of all loaded features is returned. Read more about queries in the Query section of the [SceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html) class description. To query for the count of features directly from a Scene Service rather than those loaded for the current view, you must use the [SceneLayer.queryFeatureCount()](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#queryFeatureCount) method. For making attribute based queries on a SceneLayerView you need to specify the required fields in the [outFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html#outFields) property of the SceneLayer to ensure that attribute values are available on the client for querying. You can use [availableFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-SceneLayerView.html#availableFields) to inspect which fields are available on the client. [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-SceneLayerView.html#queryFeatureCount)
  69935. */
  69936. queryFeatureCount(query?: Query | QueryProperties, options?: SceneLayerViewQueryFeatureCountOptions): Promise<number>;
  69937. /**
  69938. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features in the layer view and returns a [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html).
  69939. *
  69940. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-SceneLayerView.html#queryFeatures)
  69941. */
  69942. queryFeatures(query?: Query | QueryProperties, options?: SceneLayerViewQueryFeaturesOptions): Promise<FeatureSet>;
  69943. /**
  69944. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features in the layer view and returns an array of the ObjectIDs of features that satisfy the input query.
  69945. *
  69946. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-SceneLayerView.html#queryObjectIds)
  69947. */
  69948. queryObjectIds(query?: Query | QueryProperties, options?: SceneLayerViewQueryObjectIdsOptions): Promise<number[]>;
  69949. }
  69950. /** @deprecated Import the SceneLayerView class instead. */
  69951. export type SceneLayerViewConstructor = typeof SceneLayerView;
  69952. interface SceneLayerViewProperties extends LayerViewProperties {
  69953. /**
  69954. * Applies a client-side [FeatureFilter](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html) to the displayed data.
  69955. *
  69956. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-SceneLayerView.html#filter)
  69957. */
  69958. filter?: FeatureFilterProperties;
  69959. /**
  69960. * The maximum number of features that can be displayed at a time.
  69961. *
  69962. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-SceneLayerView.html#maximumNumberOfFeatures)
  69963. */
  69964. maximumNumberOfFeatures?: number;
  69965. /**
  69966. * Signifies whether the maximum number of features has been exceeded.
  69967. *
  69968. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-SceneLayerView.html#maximumNumberOfFeaturesExceeded)
  69969. */
  69970. maximumNumberOfFeaturesExceeded?: boolean;
  69971. }
  69972. export interface SceneLayerViewQueryExtentOptions {
  69973. /**
  69974. * Signal object that can be used to abort the asynchronous task.
  69975. *
  69976. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-SceneLayerView.html#queryExtent)
  69977. */
  69978. signal?: AbortSignal;
  69979. }
  69980. export interface SceneLayerViewQueryFeatureCountOptions {
  69981. /**
  69982. * Signal object that can be used to abort the asynchronous task.
  69983. *
  69984. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-SceneLayerView.html#queryFeatureCount)
  69985. */
  69986. signal?: AbortSignal;
  69987. }
  69988. export interface SceneLayerViewQueryFeaturesOptions {
  69989. /**
  69990. * Signal object that can be used to abort the asynchronous task.
  69991. *
  69992. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-SceneLayerView.html#queryFeatures)
  69993. */
  69994. signal?: AbortSignal;
  69995. }
  69996. export interface SceneLayerViewQueryObjectIdsOptions {
  69997. /**
  69998. * Signal object that can be used to abort the asynchronous task.
  69999. *
  70000. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-SceneLayerView.html#queryObjectIds)
  70001. */
  70002. signal?: AbortSignal;
  70003. }
  70004. export interface StreamLayerView extends LayerView, Evented {
  70005. }
  70006. export class StreamLayerView {
  70007. /**
  70008. * The error that explains an unsuccessful attempt to connect to the stream service or an unexpected disconnection from the stream service.
  70009. *
  70010. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-StreamLayerView.html#connectionError)
  70011. */
  70012. readonly connectionError: Error;
  70013. /**
  70014. * The status of the Web Socket connection with the stream service.
  70015. *
  70016. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-StreamLayerView.html#connectionStatus)
  70017. */
  70018. readonly connectionStatus: "connected" | "disconnected";
  70019. /**
  70020. * The featureEffect can be used to draw attention features of interest.
  70021. *
  70022. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-StreamLayerView.html#featureEffect)
  70023. */
  70024. featureEffect: FeatureEffect;
  70025. /**
  70026. * The [attribute](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#where), [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#geometry), and [time extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#timeExtent) filter.
  70027. *
  70028. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-StreamLayerView.html#filter)
  70029. */
  70030. filter: FeatureFilter;
  70031. /**
  70032. * Represents the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) of a [StreamLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html) after it has been added to a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) in either a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  70033. *
  70034. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-StreamLayerView.html)
  70035. */
  70036. constructor(properties?: StreamLayerViewProperties);
  70037. /**
  70038. * Highlights the given feature(s).
  70039. *
  70040. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-StreamLayerView.html#highlight)
  70041. */
  70042. highlight(target?: Graphic | Graphic[] | number | number[]): Handle;
  70043. /**
  70044. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features available for drawing in the layerView and returns the [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) of features that satisfy the query.
  70045. *
  70046. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-StreamLayerView.html#queryExtent)
  70047. */
  70048. queryExtent(query?: Query | QueryProperties, options?: StreamLayerViewQueryExtentOptions): Promise<any>;
  70049. /**
  70050. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features available for drawing in the layerView and returns the number of features that satisfy the query.
  70051. *
  70052. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-StreamLayerView.html#queryFeatureCount)
  70053. */
  70054. queryFeatureCount(query?: Query | QueryProperties, options?: StreamLayerViewQueryFeatureCountOptions): Promise<number>;
  70055. /**
  70056. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features available for drawing in the layerView and returns a [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html).
  70057. *
  70058. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-StreamLayerView.html#queryFeatures)
  70059. */
  70060. queryFeatures(query?: Query | QueryProperties, options?: StreamLayerViewQueryFeaturesOptions): Promise<FeatureSet>;
  70061. /**
  70062. * If a [trackIdField](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-TimeInfo.html#trackIdField) is specified on the stream service, this method executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features available for drawing in the layerView and returns a [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html) of the latest observations for each `trackId` that satisfy the query.
  70063. *
  70064. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-StreamLayerView.html#queryLatestObservations)
  70065. */
  70066. queryLatestObservations(query?: Query | QueryProperties, options?: StreamLayerViewQueryLatestObservationsOptions): Promise<FeatureSet>;
  70067. /**
  70068. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features available for drawing in the layerView and returns array of the ObjectIDs of features that satisfy the input query.
  70069. *
  70070. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-StreamLayerView.html#queryObjectIds)
  70071. */
  70072. queryObjectIds(query?: Query | QueryProperties, options?: StreamLayerViewQueryObjectIdsOptions): Promise<number[]>;
  70073. on(name: "data-received", eventHandler: StreamLayerViewDataReceivedEventHandler): IHandle;
  70074. on(name: "update-rate", eventHandler: StreamLayerViewUpdateRateEventHandler): IHandle;
  70075. }
  70076. /** @deprecated Import the StreamLayerView class instead. */
  70077. export type StreamLayerViewConstructor = typeof StreamLayerView;
  70078. interface StreamLayerViewProperties extends LayerViewProperties {
  70079. /**
  70080. * The featureEffect can be used to draw attention features of interest.
  70081. *
  70082. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-StreamLayerView.html#featureEffect)
  70083. */
  70084. featureEffect?: FeatureEffectProperties;
  70085. /**
  70086. * The [attribute](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#where), [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#geometry), and [time extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#timeExtent) filter.
  70087. *
  70088. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-StreamLayerView.html#filter)
  70089. */
  70090. filter?: FeatureFilterProperties;
  70091. }
  70092. export interface StreamLayerViewDataReceivedEvent {
  70093. attributes: any;
  70094. geometry: any;
  70095. }
  70096. export interface StreamLayerViewQueryExtentOptions {
  70097. /**
  70098. * Signal object that can be used to abort the asynchronous task.
  70099. *
  70100. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-StreamLayerView.html#queryExtent)
  70101. */
  70102. signal?: AbortSignal;
  70103. }
  70104. export interface StreamLayerViewQueryFeatureCountOptions {
  70105. /**
  70106. * Signal object that can be used to abort the asynchronous task.
  70107. *
  70108. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-StreamLayerView.html#queryFeatureCount)
  70109. */
  70110. signal?: AbortSignal;
  70111. }
  70112. export interface StreamLayerViewQueryFeaturesOptions {
  70113. /**
  70114. * Signal object that can be used to abort the asynchronous task.
  70115. *
  70116. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-StreamLayerView.html#queryFeatures)
  70117. */
  70118. signal?: AbortSignal;
  70119. }
  70120. export interface StreamLayerViewQueryLatestObservationsOptions {
  70121. /**
  70122. * Signal object that can be used to abort the asynchronous task.
  70123. *
  70124. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-StreamLayerView.html#queryLatestObservations)
  70125. */
  70126. signal?: AbortSignal;
  70127. }
  70128. export interface StreamLayerViewQueryObjectIdsOptions {
  70129. /**
  70130. * Signal object that can be used to abort the asynchronous task.
  70131. *
  70132. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-StreamLayerView.html#queryObjectIds)
  70133. */
  70134. signal?: AbortSignal;
  70135. }
  70136. export interface StreamLayerViewUpdateRateEvent {
  70137. client: number;
  70138. websocket: number;
  70139. }
  70140. export class WFSLayerView extends LayerView {
  70141. /**
  70142. * A list of attribute fields fetched for each feature including fields required for layer [rendering](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#renderer), [labeling](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#labelingInfo), [elevation info](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#elevationInfo), and additional fields defined on the [WFSLayer.outFields](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html#outFields).
  70143. *
  70144. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-WFSLayerView.html#availableFields)
  70145. */
  70146. readonly availableFields: string[];
  70147. /**
  70148. * The featureEffect can be used to draw attention features of interest.
  70149. *
  70150. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-WFSLayerView.html#featureEffect)
  70151. */
  70152. featureEffect: FeatureEffect;
  70153. /**
  70154. * The [attribute](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#where), [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#geometry), and [time extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#timeExtent) filter.
  70155. *
  70156. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-WFSLayerView.html#filter)
  70157. */
  70158. filter: FeatureFilter;
  70159. /**
  70160. * The maximum number of features that can be displayed at a time.
  70161. *
  70162. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-WFSLayerView.html#maximumNumberOfFeatures)
  70163. */
  70164. maximumNumberOfFeatures: number;
  70165. /**
  70166. * Signifies whether the maximum number of features has been exceeded.
  70167. *
  70168. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-WFSLayerView.html#maximumNumberOfFeaturesExceeded)
  70169. */
  70170. maximumNumberOfFeaturesExceeded: boolean;
  70171. /**
  70172. * Represents the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) of a [WFSLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html) after it has been added to a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) in either a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  70173. *
  70174. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-WFSLayerView.html)
  70175. */
  70176. constructor(properties?: WFSLayerViewProperties);
  70177. /**
  70178. * Creates query parameter object that can be used to [fetch aggregate features](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-WFSLayerView.html#queryAggregates) as they are being displayed.
  70179. *
  70180. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-WFSLayerView.html#createAggregateQuery)
  70181. */
  70182. createAggregateQuery(): Query;
  70183. /**
  70184. * Creates a query parameter object that can be used to fetch features as they are being displayed.
  70185. *
  70186. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-WFSLayerView.html#createQuery)
  70187. */
  70188. createQuery(): Query;
  70189. /**
  70190. * Highlights the given feature(s).
  70191. *
  70192. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-WFSLayerView.html#highlight)
  70193. */
  70194. highlight(target?: Graphic | Graphic[] | number | number[]): Handle;
  70195. /**
  70196. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against aggregate features (i.e.
  70197. *
  70198. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-WFSLayerView.html#queryAggregates)
  70199. */
  70200. queryAggregates(query?: Query | QueryProperties, options?: WFSLayerViewQueryAggregatesOptions): Promise<FeatureSet>;
  70201. /**
  70202. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features available for drawing in the layerView and returns the [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) of features that satisfy the query.
  70203. *
  70204. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-WFSLayerView.html#queryExtent)
  70205. */
  70206. queryExtent(query?: Query | QueryProperties, options?: WFSLayerViewQueryExtentOptions): Promise<any>;
  70207. /**
  70208. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features available for drawing in the layerView and returns the number of features that satisfy the query.
  70209. *
  70210. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-WFSLayerView.html#queryFeatureCount)
  70211. */
  70212. queryFeatureCount(query?: Query | QueryProperties, options?: WFSLayerViewQueryFeatureCountOptions): Promise<number>;
  70213. /**
  70214. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features available for drawing in the layerView and returns a [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html).
  70215. *
  70216. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-WFSLayerView.html#queryFeatures)
  70217. */
  70218. queryFeatures(query?: Query | QueryProperties, options?: WFSLayerViewQueryFeaturesOptions): Promise<FeatureSet>;
  70219. /**
  70220. * Executes a [Query](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Query.html) against features available for drawing in the layerView and returns array of the ObjectIDs of features that satisfy the input query.
  70221. *
  70222. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-WFSLayerView.html#queryObjectIds)
  70223. */
  70224. queryObjectIds(query?: Query | QueryProperties, options?: WFSLayerViewQueryObjectIdsOptions): Promise<number[]>;
  70225. }
  70226. /** @deprecated Import the WFSLayerView class instead. */
  70227. export type WFSLayerViewConstructor = typeof WFSLayerView;
  70228. interface WFSLayerViewProperties extends LayerViewProperties {
  70229. /**
  70230. * The featureEffect can be used to draw attention features of interest.
  70231. *
  70232. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-WFSLayerView.html#featureEffect)
  70233. */
  70234. featureEffect?: FeatureEffectProperties;
  70235. /**
  70236. * The [attribute](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#where), [geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#geometry), and [time extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureFilter.html#timeExtent) filter.
  70237. *
  70238. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-WFSLayerView.html#filter)
  70239. */
  70240. filter?: FeatureFilterProperties;
  70241. /**
  70242. * The maximum number of features that can be displayed at a time.
  70243. *
  70244. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-WFSLayerView.html#maximumNumberOfFeatures)
  70245. */
  70246. maximumNumberOfFeatures?: number;
  70247. /**
  70248. * Signifies whether the maximum number of features has been exceeded.
  70249. *
  70250. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-WFSLayerView.html#maximumNumberOfFeaturesExceeded)
  70251. */
  70252. maximumNumberOfFeaturesExceeded?: boolean;
  70253. }
  70254. export interface WFSLayerViewQueryAggregatesOptions {
  70255. /**
  70256. * Signal object that can be used to abort the asynchronous task.
  70257. *
  70258. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-WFSLayerView.html#queryAggregates)
  70259. */
  70260. signal?: AbortSignal;
  70261. }
  70262. export interface WFSLayerViewQueryExtentOptions {
  70263. /**
  70264. * Signal object that can be used to abort the asynchronous task.
  70265. *
  70266. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-WFSLayerView.html#queryExtent)
  70267. */
  70268. signal?: AbortSignal;
  70269. }
  70270. export interface WFSLayerViewQueryFeatureCountOptions {
  70271. /**
  70272. * Signal object that can be used to abort the asynchronous task.
  70273. *
  70274. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-WFSLayerView.html#queryFeatureCount)
  70275. */
  70276. signal?: AbortSignal;
  70277. }
  70278. export interface WFSLayerViewQueryFeaturesOptions {
  70279. /**
  70280. * Signal object that can be used to abort the asynchronous task.
  70281. *
  70282. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-WFSLayerView.html#queryFeatures)
  70283. */
  70284. signal?: AbortSignal;
  70285. }
  70286. export interface WFSLayerViewQueryObjectIdsOptions {
  70287. /**
  70288. * Signal object that can be used to abort the asynchronous task.
  70289. *
  70290. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-WFSLayerView.html#queryObjectIds)
  70291. */
  70292. signal?: AbortSignal;
  70293. }
  70294. export class Magnifier extends Accessor {
  70295. /**
  70296. * Controls the amount of magnification to display.
  70297. *
  70298. * @default 1.5
  70299. *
  70300. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-Magnifier.html#factor)
  70301. */
  70302. factor: number;
  70303. /**
  70304. * Indicates whether the mask image is enabled.
  70305. *
  70306. * @default true
  70307. *
  70308. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-Magnifier.html#maskEnabled)
  70309. */
  70310. maskEnabled: boolean;
  70311. /**
  70312. * The mask url points to an image that determines the visible area of the magnified image [(alpha channel)](https://developer.mozilla.org/en-US/docs/Glossary/Alpha).
  70313. *
  70314. * @default null
  70315. *
  70316. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-Magnifier.html#maskUrl)
  70317. */
  70318. maskUrl: string;
  70319. /**
  70320. * The offset of the magnifier in pixels.
  70321. *
  70322. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-Magnifier.html#offset)
  70323. */
  70324. offset: MagnifierScreenPoint;
  70325. /**
  70326. * Indicates whether the overlay image is enabled.
  70327. *
  70328. * @default true
  70329. *
  70330. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-Magnifier.html#overlayEnabled)
  70331. */
  70332. overlayEnabled: boolean;
  70333. /**
  70334. * The overlay url points to an image that is displayed on top of the magnified image.
  70335. *
  70336. * @default null
  70337. *
  70338. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-Magnifier.html#overlayUrl)
  70339. */
  70340. overlayUrl: string;
  70341. /**
  70342. * The position of the magnifier in pixels.
  70343. *
  70344. * @default null
  70345. *
  70346. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-Magnifier.html#position)
  70347. */
  70348. position: MagnifierScreenPoint;
  70349. /**
  70350. * The size of the magnifier in pixels.
  70351. *
  70352. * @default 120
  70353. *
  70354. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-Magnifier.html#size)
  70355. */
  70356. size: number;
  70357. /**
  70358. * Indicates whether the magnifier is visible.
  70359. *
  70360. * @default true
  70361. *
  70362. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-Magnifier.html#visible)
  70363. */
  70364. visible: boolean;
  70365. /**
  70366. * The Magnifier allows end users to show a portion of the view as a magnified image.
  70367. *
  70368. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-Magnifier.html)
  70369. */
  70370. constructor(properties?: MagnifierProperties);
  70371. }
  70372. /** @deprecated Import the Magnifier class instead. */
  70373. export type MagnifierConstructor = typeof Magnifier;
  70374. interface MagnifierProperties {
  70375. /**
  70376. * Controls the amount of magnification to display.
  70377. *
  70378. * @default 1.5
  70379. *
  70380. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-Magnifier.html#factor)
  70381. */
  70382. factor?: number;
  70383. /**
  70384. * Indicates whether the mask image is enabled.
  70385. *
  70386. * @default true
  70387. *
  70388. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-Magnifier.html#maskEnabled)
  70389. */
  70390. maskEnabled?: boolean;
  70391. /**
  70392. * The mask url points to an image that determines the visible area of the magnified image [(alpha channel)](https://developer.mozilla.org/en-US/docs/Glossary/Alpha).
  70393. *
  70394. * @default null
  70395. *
  70396. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-Magnifier.html#maskUrl)
  70397. */
  70398. maskUrl?: string;
  70399. /**
  70400. * The offset of the magnifier in pixels.
  70401. *
  70402. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-Magnifier.html#offset)
  70403. */
  70404. offset?: MagnifierScreenPoint;
  70405. /**
  70406. * Indicates whether the overlay image is enabled.
  70407. *
  70408. * @default true
  70409. *
  70410. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-Magnifier.html#overlayEnabled)
  70411. */
  70412. overlayEnabled?: boolean;
  70413. /**
  70414. * The overlay url points to an image that is displayed on top of the magnified image.
  70415. *
  70416. * @default null
  70417. *
  70418. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-Magnifier.html#overlayUrl)
  70419. */
  70420. overlayUrl?: string;
  70421. /**
  70422. * The position of the magnifier in pixels.
  70423. *
  70424. * @default null
  70425. *
  70426. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-Magnifier.html#position)
  70427. */
  70428. position?: MagnifierScreenPoint;
  70429. /**
  70430. * The size of the magnifier in pixels.
  70431. *
  70432. * @default 120
  70433. *
  70434. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-Magnifier.html#size)
  70435. */
  70436. size?: number;
  70437. /**
  70438. * Indicates whether the magnifier is visible.
  70439. *
  70440. * @default true
  70441. *
  70442. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-Magnifier.html#visible)
  70443. */
  70444. visible?: boolean;
  70445. }
  70446. /**
  70447. * An object representing the location on the screen.
  70448. *
  70449. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-Magnifier.html#ScreenPoint)
  70450. */
  70451. export interface MagnifierScreenPoint {
  70452. /**
  70453. * The x coordinate.
  70454. *
  70455. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-Magnifier.html#ScreenPoint)
  70456. */
  70457. x: number;
  70458. /**
  70459. * The y coordinate.
  70460. *
  70461. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-Magnifier.html#ScreenPoint)
  70462. */
  70463. y: number;
  70464. }
  70465. export interface MapView extends View, BreakpointsOwner {
  70466. }
  70467. export class MapView {
  70468. /**
  70469. * The background color of the MapView.
  70470. *
  70471. * @default null
  70472. *
  70473. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#background)
  70474. */
  70475. background: ColorBackground;
  70476. /**
  70477. * Represents the view's center point; when setting the center, you may pass a [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) instance or an array of numbers representing a longitude/latitude pair (`[-100.4593, 36.9014]`).
  70478. *
  70479. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#center)
  70480. */
  70481. center: Point;
  70482. /**
  70483. * Specifies constraints to [scale](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#scale), [zoom](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#zoom), and [rotation](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#rotation) that may be applied to the MapView.
  70484. *
  70485. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#constraints)
  70486. */
  70487. constraints: MapViewConstraints;
  70488. /**
  70489. * The extent represents the visible portion of a [map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) within the view as an instance of [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html).
  70490. *
  70491. * @default null
  70492. *
  70493. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#extent)
  70494. */
  70495. extent: Extent;
  70496. /**
  70497. * Applies a display filter on the view for a specific set of floor levels.
  70498. *
  70499. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#floors)
  70500. */
  70501. floors: Collection<string>;
  70502. /**
  70503. * Options for configuring the highlight.
  70504. *
  70505. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#highlightOptions)
  70506. */
  70507. highlightOptions: MapViewHighlightOptions;
  70508. /**
  70509. * Defines which anchor stays still while resizing the browser window.
  70510. *
  70511. * @default center
  70512. *
  70513. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#resizeAlign)
  70514. */
  70515. resizeAlign: | "center"
  70516. | "left"
  70517. | "right"
  70518. | "top"
  70519. | "bottom"
  70520. | "top-left"
  70521. | "top-right"
  70522. | "bottom-left"
  70523. | "bottom-right";
  70524. /**
  70525. * The clockwise rotation of due north in relation to the top of the view in degrees.
  70526. *
  70527. * @default 0
  70528. *
  70529. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#rotation)
  70530. */
  70531. rotation: number;
  70532. /**
  70533. * Represents the map scale at the center of the view.
  70534. *
  70535. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#scale)
  70536. */
  70537. scale: number;
  70538. /**
  70539. * Indicates if the MapView's [spatialReference](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#spatialReference) can be changed after it is initialized.
  70540. *
  70541. * @default false
  70542. *
  70543. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#spatialReferenceLocked)
  70544. */
  70545. spatialReferenceLocked: boolean;
  70546. /**
  70547. * The dimension of the view.
  70548. *
  70549. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#type)
  70550. */
  70551. readonly type: "2d";
  70552. /**
  70553. * Represents the current view as a [Viewpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html) or point of observation on the view.
  70554. *
  70555. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#viewpoint)
  70556. */
  70557. viewpoint: Viewpoint;
  70558. /**
  70559. * Represents the level of detail (LOD) at the center of the view.
  70560. *
  70561. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#zoom)
  70562. */
  70563. zoom: number;
  70564. /**
  70565. * A MapView displays a 2D view of a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) instance.
  70566. *
  70567. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html)
  70568. */
  70569. constructor(properties?: MapViewProperties);
  70570. /**
  70571. * Sets the view to a given target.
  70572. *
  70573. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#goTo)
  70574. */
  70575. goTo(target: GoToTarget2D, options?: GoToOptions2D): Promise<any>;
  70576. /**
  70577. * Returns [hit test results](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#HitTestResult) from each layer that intersects the specified screen coordinates.
  70578. *
  70579. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#hitTest)
  70580. */
  70581. hitTest(screenPoint: MapViewScreenPoint | MouseEvent, options?: MapViewHitTestOptions): Promise<HitTestResult>;
  70582. /**
  70583. * Create a screenshot of the current view.
  70584. *
  70585. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#takeScreenshot)
  70586. */
  70587. takeScreenshot(options?: MapViewTakeScreenshotOptions): Promise<Screenshot>;
  70588. /**
  70589. * Converts the given screen point to a [map point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html).
  70590. *
  70591. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#toMap)
  70592. */
  70593. toMap(screenPoint: MapViewScreenPoint | MouseEvent): Point;
  70594. /**
  70595. * Converts the given [map point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) to a screen point.
  70596. *
  70597. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#toScreen)
  70598. */
  70599. toScreen(point: Point): MapViewScreenPoint;
  70600. }
  70601. /** @deprecated Import the MapView class instead. */
  70602. export type MapViewConstructor = typeof MapView;
  70603. interface MapViewProperties extends ViewProperties, BreakpointsOwnerProperties {
  70604. /**
  70605. * The background color of the MapView.
  70606. *
  70607. * @default null
  70608. *
  70609. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#background)
  70610. */
  70611. background?: ColorBackgroundProperties;
  70612. /**
  70613. * Represents the view's center point; when setting the center, you may pass a [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) instance or an array of numbers representing a longitude/latitude pair (`[-100.4593, 36.9014]`).
  70614. *
  70615. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#center)
  70616. */
  70617. center?: (PointProperties & { type: "point" }) | number[];
  70618. /**
  70619. * Specifies constraints to [scale](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#scale), [zoom](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#zoom), and [rotation](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#rotation) that may be applied to the MapView.
  70620. *
  70621. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#constraints)
  70622. */
  70623. constraints?: MapViewConstraints;
  70624. /**
  70625. * The extent represents the visible portion of a [map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) within the view as an instance of [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html).
  70626. *
  70627. * @default null
  70628. *
  70629. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#extent)
  70630. */
  70631. extent?: ExtentProperties;
  70632. /**
  70633. * Applies a display filter on the view for a specific set of floor levels.
  70634. *
  70635. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#floors)
  70636. */
  70637. floors?: CollectionProperties<string>;
  70638. /**
  70639. * Options for configuring the highlight.
  70640. *
  70641. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#highlightOptions)
  70642. */
  70643. highlightOptions?: MapViewHighlightOptionsProperties;
  70644. /**
  70645. * Defines which anchor stays still while resizing the browser window.
  70646. *
  70647. * @default center
  70648. *
  70649. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#resizeAlign)
  70650. */
  70651. resizeAlign?: | "center"
  70652. | "left"
  70653. | "right"
  70654. | "top"
  70655. | "bottom"
  70656. | "top-left"
  70657. | "top-right"
  70658. | "bottom-left"
  70659. | "bottom-right";
  70660. /**
  70661. * The clockwise rotation of due north in relation to the top of the view in degrees.
  70662. *
  70663. * @default 0
  70664. *
  70665. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#rotation)
  70666. */
  70667. rotation?: number;
  70668. /**
  70669. * Represents the map scale at the center of the view.
  70670. *
  70671. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#scale)
  70672. */
  70673. scale?: number;
  70674. /**
  70675. * Indicates if the MapView's [spatialReference](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#spatialReference) can be changed after it is initialized.
  70676. *
  70677. * @default false
  70678. *
  70679. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#spatialReferenceLocked)
  70680. */
  70681. spatialReferenceLocked?: boolean;
  70682. /**
  70683. * Represents the current view as a [Viewpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html) or point of observation on the view.
  70684. *
  70685. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#viewpoint)
  70686. */
  70687. viewpoint?: ViewpointProperties;
  70688. /**
  70689. * Represents the level of detail (LOD) at the center of the view.
  70690. *
  70691. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#zoom)
  70692. */
  70693. zoom?: number;
  70694. }
  70695. /**
  70696. * Animation options for the [goTo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#goTo) method.
  70697. *
  70698. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#GoToOptions2D)
  70699. */
  70700. export interface GoToOptions2D {
  70701. /**
  70702. * Indicates if the transition to the new view should be animated.
  70703. *
  70704. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#GoToOptions2D)
  70705. */
  70706. animate?: boolean;
  70707. /**
  70708. * The duration of the animation in milliseconds.
  70709. *
  70710. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#GoToOptions2D)
  70711. */
  70712. duration?: number;
  70713. /**
  70714. * The easing function used for the animation.
  70715. *
  70716. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#GoToOptions2D)
  70717. */
  70718. easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | Function;
  70719. /**
  70720. * An [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) to abort the animation.
  70721. *
  70722. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#GoToOptions2D)
  70723. */
  70724. signal?: AbortSignal;
  70725. }
  70726. /**
  70727. * The target location/viewpoint to animate to in the [goTo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#goTo) method.
  70728. *
  70729. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#GoToTarget2D)
  70730. */
  70731. export type GoToTarget2D = | number[]
  70732. | Geometry
  70733. | Geometry[]
  70734. | Collection<Geometry>
  70735. | Graphic
  70736. | Graphic[]
  70737. | Collection<Graphic>
  70738. | Viewpoint
  70739. | any;
  70740. /**
  70741. * Object specification for the graphic hit result returned in [HitTestResult](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#HitTestResult) of the [hitTest()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#hitTest) method.
  70742. *
  70743. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#GraphicHit)
  70744. */
  70745. export interface GraphicHit {
  70746. type: "graphic";
  70747. /**
  70748. * A graphic representing a feature in the view that intersects the input screen coordinates.
  70749. *
  70750. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#GraphicHit)
  70751. */
  70752. graphic: Graphic;
  70753. /**
  70754. * The layer that contains the feature/graphic.
  70755. *
  70756. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#GraphicHit)
  70757. */
  70758. layer: Layer;
  70759. /**
  70760. * The point geometry in the spatial reference of the view corresponding with the input screen coordinates.
  70761. *
  70762. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#GraphicHit)
  70763. */
  70764. mapPoint: Point;
  70765. }
  70766. /**
  70767. * A layer, graphic, or collection of layers or graphics to be used in the [hitTest()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#hitTest) filter options.
  70768. *
  70769. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#HitTestItem)
  70770. */
  70771. export type HitTestItem = Layer | Graphic | Collection<Layer> | Collection<Graphic> | Layer[] | Graphic[];
  70772. /**
  70773. * Object specification for the result of the [hitTest()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#hitTest) method.
  70774. *
  70775. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#HitTestResult)
  70776. */
  70777. export interface HitTestResult {
  70778. /**
  70779. * An array of result objects returned from the [hitTest()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#hitTest).
  70780. *
  70781. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#HitTestResult)
  70782. */
  70783. results: ViewHit[];
  70784. /**
  70785. * The screen coordinates (or native mouse event) of the click on the view.
  70786. *
  70787. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#HitTestResult)
  70788. */
  70789. screenPoint: MapViewScreenPoint;
  70790. }
  70791. export interface MapViewConstraints {
  70792. /**
  70793. * An array of [LODs](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LOD.html).
  70794. *
  70795. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#constraints)
  70796. */
  70797. lods?: LOD[];
  70798. /**
  70799. * The area in which the user is allowed to navigate laterally.
  70800. *
  70801. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#constraints)
  70802. */
  70803. geometry?: Geometry;
  70804. /**
  70805. * The minimum [scale](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#scale) the user is allowed to zoom to within the view.
  70806. *
  70807. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#constraints)
  70808. */
  70809. minScale?: number;
  70810. /**
  70811. * The maximum [scale](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#scale) the user is allowed to zoom to within the view.
  70812. *
  70813. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#constraints)
  70814. */
  70815. maxScale?: number;
  70816. /**
  70817. * The minimum [zoom](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#zoom) level the user is allowed to zoom to within the view.
  70818. *
  70819. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#constraints)
  70820. */
  70821. minZoom?: number;
  70822. /**
  70823. * The maximum [zoom](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#zoom) level the user is allowed to zoom to within the view.
  70824. *
  70825. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#constraints)
  70826. */
  70827. maxZoom?: number;
  70828. /**
  70829. * When `true`, the view snaps to the next LOD when zooming in or out.
  70830. *
  70831. * @default true
  70832. *
  70833. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#constraints)
  70834. */
  70835. snapToZoom?: boolean;
  70836. /**
  70837. * Indicates whether the user can rotate the map.
  70838. *
  70839. * @default true
  70840. *
  70841. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#constraints)
  70842. */
  70843. rotationEnabled?: boolean;
  70844. /**
  70845. * A read-only property that specifies the levels of detail (LODs) read from the [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html).
  70846. *
  70847. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#constraints)
  70848. */
  70849. effectiveLODs?: LOD[];
  70850. /**
  70851. * A read-only property that specifies the minimum [zoom](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#zoom) level the user is allowed to zoom to within the view.
  70852. *
  70853. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#constraints)
  70854. */
  70855. effectiveMinZoom?: number;
  70856. /**
  70857. * A read-only property that specifies the maximum [zoom](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#zoom) level the user is allowed to zoom to within the view.
  70858. *
  70859. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#constraints)
  70860. */
  70861. effectiveMaxZoom?: number;
  70862. /**
  70863. * A read-only property that specifies the minimum [scale](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#scale) the user is allowed to zoom to within the view.
  70864. *
  70865. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#constraints)
  70866. */
  70867. effectiveMinScale?: number;
  70868. /**
  70869. * A read-only property that specifies the maximum [scale](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#scale) the user is allowed to zoom to within the view.
  70870. *
  70871. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#constraints)
  70872. */
  70873. effectiveMaxScale?: number;
  70874. }
  70875. export interface MapViewHighlightOptionsProperties {
  70876. /**
  70877. * The color of the highlight fill.
  70878. *
  70879. * @default #00ffff
  70880. *
  70881. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#highlightOptions)
  70882. */
  70883. color?: Color | number[] | string;
  70884. /**
  70885. * The color of the halo surrounding the highlight.
  70886. *
  70887. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#highlightOptions)
  70888. */
  70889. haloColor?: Color | number[] | string;
  70890. /**
  70891. * The opacity of the highlight halo.
  70892. *
  70893. * @default 1
  70894. *
  70895. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#highlightOptions)
  70896. */
  70897. haloOpacity?: number;
  70898. /**
  70899. * The opacity of the fill (area within the halo).
  70900. *
  70901. * @default 0.25
  70902. *
  70903. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#highlightOptions)
  70904. */
  70905. fillOpacity?: number;
  70906. }
  70907. export interface MapViewHighlightOptions extends AnonymousAccessor {
  70908. /**
  70909. * The color of the highlight fill.
  70910. *
  70911. * @default #00ffff
  70912. *
  70913. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#highlightOptions)
  70914. */
  70915. color?: Color;
  70916. /**
  70917. * The color of the halo surrounding the highlight.
  70918. *
  70919. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#highlightOptions)
  70920. */
  70921. haloColor?: Color;
  70922. /**
  70923. * The opacity of the highlight halo.
  70924. *
  70925. * @default 1
  70926. *
  70927. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#highlightOptions)
  70928. */
  70929. haloOpacity?: number;
  70930. /**
  70931. * The opacity of the fill (area within the halo).
  70932. *
  70933. * @default 0.25
  70934. *
  70935. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#highlightOptions)
  70936. */
  70937. fillOpacity?: number;
  70938. }
  70939. export interface MapViewHitTestOptions {
  70940. /**
  70941. * A list of layers and graphics to include in the hitTest.
  70942. *
  70943. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#hitTest)
  70944. */
  70945. include?: HitTestItem[] | Collection<HitTestItem> | Layer | Graphic;
  70946. /**
  70947. * A list of layers and graphics to exclude from the hitTest.
  70948. *
  70949. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#hitTest)
  70950. */
  70951. exclude?: HitTestItem[] | Collection<HitTestItem> | Layer | Graphic;
  70952. }
  70953. export interface MapViewTakeScreenshotOptions {
  70954. /**
  70955. * The format of the resulting encoded data url.
  70956. *
  70957. * @default png
  70958. *
  70959. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#takeScreenshot)
  70960. */
  70961. format?: "jpg" | "png";
  70962. /**
  70963. * When used, only the visible layers in this list will be included in the output.
  70964. *
  70965. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#takeScreenshot)
  70966. */
  70967. layers?: Layer[];
  70968. /**
  70969. * The quality (0 to 100) of the encoded image when encoding as `jpg`.
  70970. *
  70971. * @default 98
  70972. *
  70973. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#takeScreenshot)
  70974. */
  70975. quality?: number;
  70976. /**
  70977. * The width of the screenshot (defaults to the area width).
  70978. *
  70979. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#takeScreenshot)
  70980. */
  70981. width?: number;
  70982. /**
  70983. * The height of the screenshot (defaults to the area height).
  70984. *
  70985. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#takeScreenshot)
  70986. */
  70987. height?: number;
  70988. /**
  70989. * Specifies whether to take a screenshot of a specific area of the view.
  70990. *
  70991. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#takeScreenshot)
  70992. */
  70993. area?: MapViewTakeScreenshotOptionsArea;
  70994. /**
  70995. * Indicates whether to ignore the background color set in the [initial view properties](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#initialViewProperties) of the web map.
  70996. *
  70997. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#takeScreenshot)
  70998. */
  70999. ignoreBackground?: boolean;
  71000. /**
  71001. * Indicates whether view padding should be ignored.
  71002. *
  71003. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#takeScreenshot)
  71004. */
  71005. ignorePadding?: boolean;
  71006. }
  71007. export interface MapViewTakeScreenshotOptionsArea {
  71008. /**
  71009. * The x coordinate of the area.
  71010. *
  71011. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#takeScreenshot)
  71012. */
  71013. x?: number;
  71014. /**
  71015. * The y coordinate of the area.
  71016. *
  71017. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#takeScreenshot)
  71018. */
  71019. y?: number;
  71020. /**
  71021. * The width of the area.
  71022. *
  71023. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#takeScreenshot)
  71024. */
  71025. width?: number;
  71026. /**
  71027. * The height of the area.
  71028. *
  71029. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#takeScreenshot)
  71030. */
  71031. height?: number;
  71032. }
  71033. /**
  71034. * Object specification for the media hit results returned from [MediaLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html) in [HitTestResult](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#HitTestResult) of the [hitTest()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#hitTest) method.
  71035. *
  71036. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#MediaHit)
  71037. */
  71038. export interface MediaHit {
  71039. type: "media";
  71040. /**
  71041. * An element representing a media element in [MediaLayer.source](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html#source) that intersects the input screen coordinates.
  71042. *
  71043. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#MediaHit)
  71044. */
  71045. element: ImageElement | VideoElement;
  71046. /**
  71047. * The media layer that contains the element.
  71048. *
  71049. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#MediaHit)
  71050. */
  71051. layer: MediaLayer;
  71052. /**
  71053. * The point geometry in the spatial reference of the view corresponding with the input screen coordinates.
  71054. *
  71055. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#MediaHit)
  71056. */
  71057. mapPoint: Point;
  71058. }
  71059. /**
  71060. * Object specification for the route hit results returned from [RouteLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html) in [HitTestResult](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#HitTestResult) of the [hitTest()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#hitTest) method.
  71061. *
  71062. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#RouteHit)
  71063. */
  71064. export interface RouteHit {
  71065. type: "route";
  71066. /**
  71067. * The route layer that contains the element.
  71068. *
  71069. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#RouteHit)
  71070. */
  71071. layer: RouteLayer;
  71072. /**
  71073. * The point geometry in the spatial reference of the view corresponding with the input screen coordinates.
  71074. *
  71075. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#RouteHit)
  71076. */
  71077. mapPoint: Point;
  71078. /**
  71079. * The route hit test will contain all intersecting network elements, which includes one of the following: DirectionLine, DirectionPoint, PointBarrier, PolylineBarrier, PolygonBarrier, Stop, or RouteInfo.
  71080. *
  71081. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#RouteHit)
  71082. */
  71083. networkFeature: DirectionLine | DirectionPoint | PointBarrier | PolygonBarrier | PolygonBarrier | RouteInfo | Stop;
  71084. }
  71085. /**
  71086. * An object representing a point on the screen.
  71087. *
  71088. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#ScreenPoint)
  71089. */
  71090. export interface MapViewScreenPoint {
  71091. /**
  71092. * The x coordinate.
  71093. *
  71094. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#ScreenPoint)
  71095. */
  71096. x: number;
  71097. /**
  71098. * The y coordinate.
  71099. *
  71100. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#ScreenPoint)
  71101. */
  71102. y: number;
  71103. }
  71104. /**
  71105. * Object returned when [takeScreenshot()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#takeScreenshot) promise resolves:
  71106. *
  71107. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#Screenshot)
  71108. */
  71109. export interface Screenshot {
  71110. /**
  71111. * A data url representing the screenshot.
  71112. *
  71113. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#Screenshot)
  71114. */
  71115. dataUrl: string;
  71116. /**
  71117. * The raw RGBA image data.
  71118. *
  71119. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#Screenshot)
  71120. */
  71121. data: ImageData;
  71122. }
  71123. /**
  71124. * Object specification for the result returned in [HitTestResult](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#HitTestResult) of the [hitTest()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#hitTest) method.
  71125. *
  71126. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#ViewHit)
  71127. */
  71128. export type ViewHit = GraphicHit | MediaHit | RouteHit;
  71129. export class gamepadGamepadSettings extends Accessor {
  71130. /**
  71131. * Use this property to explicitly select the gamepad device for map and scene navigation.
  71132. *
  71133. * @default null
  71134. *
  71135. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-navigation-gamepad-GamepadSettings.html#device)
  71136. */
  71137. device: GamepadInputDevice;
  71138. /**
  71139. * Whether gamepad navigation is enabled on the View.
  71140. *
  71141. * @default true
  71142. *
  71143. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-navigation-gamepad-GamepadSettings.html#enabled)
  71144. */
  71145. enabled: boolean;
  71146. /**
  71147. * This setting controls the behavior of forward and back movement of the left stick.
  71148. *
  71149. * @default pan
  71150. *
  71151. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-navigation-gamepad-GamepadSettings.html#mode)
  71152. */
  71153. mode: "pan" | "zoom";
  71154. /**
  71155. * Determines whether pressing the tilt axis forwards make the view tilt down (towards the nadir), or up (towards the zenith).
  71156. *
  71157. * @default forward-down
  71158. *
  71159. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-navigation-gamepad-GamepadSettings.html#tiltDirection)
  71160. */
  71161. tiltDirection: "forward-down" | "forward-up";
  71162. /**
  71163. * Gamepad navigation specific configuration settings.
  71164. *
  71165. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-navigation-gamepad-GamepadSettings.html)
  71166. */
  71167. constructor(properties?: gamepadGamepadSettingsProperties);
  71168. }
  71169. /** @deprecated Import the gamepadGamepadSettings class instead. */
  71170. export type gamepadGamepadSettingsConstructor = typeof gamepadGamepadSettings;
  71171. interface gamepadGamepadSettingsProperties {
  71172. /**
  71173. * Use this property to explicitly select the gamepad device for map and scene navigation.
  71174. *
  71175. * @default null
  71176. *
  71177. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-navigation-gamepad-GamepadSettings.html#device)
  71178. */
  71179. device?: GamepadInputDeviceProperties;
  71180. /**
  71181. * Whether gamepad navigation is enabled on the View.
  71182. *
  71183. * @default true
  71184. *
  71185. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-navigation-gamepad-GamepadSettings.html#enabled)
  71186. */
  71187. enabled?: boolean;
  71188. /**
  71189. * This setting controls the behavior of forward and back movement of the left stick.
  71190. *
  71191. * @default pan
  71192. *
  71193. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-navigation-gamepad-GamepadSettings.html#mode)
  71194. */
  71195. mode?: "pan" | "zoom";
  71196. /**
  71197. * Determines whether pressing the tilt axis forwards make the view tilt down (towards the nadir), or up (towards the zenith).
  71198. *
  71199. * @default forward-down
  71200. *
  71201. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-navigation-gamepad-GamepadSettings.html#tiltDirection)
  71202. */
  71203. tiltDirection?: "forward-down" | "forward-up";
  71204. }
  71205. export class Navigation extends Accessor {
  71206. /**
  71207. * Indicates if single finger touch [drag](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#event-drag) events are enabled or disabled.
  71208. *
  71209. * @default true
  71210. *
  71211. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-navigation-Navigation.html#browserTouchPanEnabled)
  71212. */
  71213. browserTouchPanEnabled: boolean;
  71214. /**
  71215. * Gamepad navigation specific configuration settings.
  71216. *
  71217. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-navigation-Navigation.html#gamepad)
  71218. */
  71219. gamepad: gamepadGamepadSettings;
  71220. /**
  71221. * When `true`, the view will temporarily continue to pan after the pointer (e.g.
  71222. *
  71223. * @default true
  71224. *
  71225. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-navigation-Navigation.html#momentumEnabled)
  71226. */
  71227. momentumEnabled: boolean;
  71228. /**
  71229. * Indicates whether the view can be zoomed in or out with the mouse wheel.
  71230. *
  71231. * @default true
  71232. *
  71233. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-navigation-Navigation.html#mouseWheelZoomEnabled)
  71234. */
  71235. mouseWheelZoomEnabled: boolean;
  71236. /**
  71237. * Navigation related configuration settings on the View.
  71238. *
  71239. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-navigation-Navigation.html)
  71240. */
  71241. constructor(properties?: NavigationProperties);
  71242. }
  71243. /** @deprecated Import the Navigation class instead. */
  71244. export type NavigationConstructor = typeof Navigation;
  71245. interface NavigationProperties {
  71246. /**
  71247. * Indicates if single finger touch [drag](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#event-drag) events are enabled or disabled.
  71248. *
  71249. * @default true
  71250. *
  71251. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-navigation-Navigation.html#browserTouchPanEnabled)
  71252. */
  71253. browserTouchPanEnabled?: boolean;
  71254. /**
  71255. * Gamepad navigation specific configuration settings.
  71256. *
  71257. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-navigation-Navigation.html#gamepad)
  71258. */
  71259. gamepad?: gamepadGamepadSettingsProperties;
  71260. /**
  71261. * When `true`, the view will temporarily continue to pan after the pointer (e.g.
  71262. *
  71263. * @default true
  71264. *
  71265. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-navigation-Navigation.html#momentumEnabled)
  71266. */
  71267. momentumEnabled?: boolean;
  71268. /**
  71269. * Indicates whether the view can be zoomed in or out with the mouse wheel.
  71270. *
  71271. * @default true
  71272. *
  71273. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-navigation-Navigation.html#mouseWheelZoomEnabled)
  71274. */
  71275. mouseWheelZoomEnabled?: boolean;
  71276. }
  71277. export interface SceneView extends View, BreakpointsOwner {
  71278. }
  71279. export class SceneView {
  71280. /**
  71281. * Allows the view to be partially or fully transparent when composited with the webpage elements behind it.
  71282. *
  71283. * @default false
  71284. *
  71285. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#alphaCompositingEnabled)
  71286. */
  71287. alphaCompositingEnabled: boolean;
  71288. /**
  71289. * Allows for adding analyses directly to the default analyses in the View.
  71290. *
  71291. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#analyses)
  71292. */
  71293. analyses: Collection<
  71294. DimensionAnalysis | DirectLineMeasurementAnalysis | AreaMeasurementAnalysis | SliceAnalysis | LineOfSightAnalysis
  71295. >;
  71296. /**
  71297. * The observation point from which the visible portion (or perspective) of the SceneView is determined.
  71298. *
  71299. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#camera)
  71300. */
  71301. camera: Camera;
  71302. /**
  71303. * Represents the view's center point; when setting the center you may pass a [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) instance or an array of numbers representing at longitude/latitude pair (`[-100.4593, 36.9014]`).
  71304. *
  71305. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#center)
  71306. */
  71307. center: Point;
  71308. /**
  71309. * Represents an optional clipping area used to define the visible [extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) of a local scene.
  71310. *
  71311. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#clippingArea)
  71312. */
  71313. clippingArea: Extent;
  71314. /**
  71315. * Specifies constraints for [Camera tilt](esri-Camera.html#tilt) and altitude that may be applied to the SceneView.
  71316. *
  71317. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#constraints)
  71318. */
  71319. constraints: SceneViewConstraints;
  71320. /**
  71321. * Specifies various properties of the environment's visualization in the view.
  71322. *
  71323. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#environment)
  71324. */
  71325. environment: SceneViewEnvironment;
  71326. /**
  71327. * The extent represents the visible portion of a [map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) within the view as an instance of [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html).
  71328. *
  71329. * @default null
  71330. *
  71331. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#extent)
  71332. */
  71333. extent: Extent;
  71334. /**
  71335. * Applies a display filter on the view for a specific set of floor levels.
  71336. *
  71337. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#floors)
  71338. */
  71339. floors: Collection<string>;
  71340. /**
  71341. * The view for the ground of the map.
  71342. *
  71343. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#groundView)
  71344. */
  71345. readonly groundView: GroundView;
  71346. /**
  71347. * Options for configuring the highlight.
  71348. *
  71349. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#highlightOptions)
  71350. */
  71351. highlightOptions: SceneViewHighlightOptions;
  71352. /**
  71353. * This property contains performance information in a SceneView like global memory usage and additional details for layers about memory consumption and number of features.
  71354. *
  71355. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#performanceInfo)
  71356. */
  71357. readonly performanceInfo: SceneViewPerformanceInfo;
  71358. /**
  71359. * SceneView can draw scenes in three different quality modes: `high`, `medium` and `low`.
  71360. *
  71361. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#qualityProfile)
  71362. */
  71363. qualityProfile: "low" | "medium" | "high";
  71364. /**
  71365. * Represents an approximation of the map scale at the center of the view.
  71366. *
  71367. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#scale)
  71368. */
  71369. scale: number;
  71370. /**
  71371. * The type of the view.
  71372. *
  71373. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#type)
  71374. */
  71375. readonly type: "3d";
  71376. /**
  71377. * The viewing mode (`local` or `global`).
  71378. *
  71379. * @default global
  71380. *
  71381. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#viewingMode)
  71382. */
  71383. viewingMode: "global" | "local";
  71384. /**
  71385. * Represents the current view as a [Viewpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html) or point of observation on the view.
  71386. *
  71387. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#viewpoint)
  71388. */
  71389. viewpoint: Viewpoint;
  71390. /**
  71391. * Represents the level of detail (LOD) at the center of the view.
  71392. *
  71393. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#zoom)
  71394. */
  71395. zoom: number;
  71396. /**
  71397. * A SceneView displays a 3D view of a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) or [WebScene](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html) instance using WebGL.
  71398. *
  71399. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html)
  71400. */
  71401. constructor(properties?: SceneViewProperties);
  71402. /**
  71403. * Sets the view to a given target.
  71404. *
  71405. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#goTo)
  71406. */
  71407. goTo(target: GoToTarget3D, options?: GoToOptions3D): Promise<any>;
  71408. /**
  71409. * Returns [hit test results](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#HitTestResult) from each layer that intersects the specified screen coordinates.
  71410. *
  71411. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#hitTest)
  71412. */
  71413. hitTest(screenPoint: SceneViewScreenPoint | MouseEvent, options?: SceneViewHitTestOptions): Promise<SceneViewHitTestResult>;
  71414. /**
  71415. * Create a screenshot of the current view.
  71416. *
  71417. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#takeScreenshot)
  71418. */
  71419. takeScreenshot(options?: SceneViewTakeScreenshotOptions): Promise<SceneViewScreenshot>;
  71420. /**
  71421. * Converts the given screen point to a [map point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html).
  71422. *
  71423. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#toMap)
  71424. */
  71425. toMap(screenPoint: SceneViewScreenPoint | MouseEvent, options?: SceneViewToMapOptions): Point;
  71426. /**
  71427. * Converts the given [map point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) to a screen point.
  71428. *
  71429. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#toScreen)
  71430. */
  71431. toScreen(point: Point): SceneViewScreenPoint;
  71432. /**
  71433. * Gets the analysis view created for the given analysis object.
  71434. *
  71435. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#whenAnalysisView)
  71436. */
  71437. whenAnalysisView(analysis: LineOfSightAnalysis): Promise<LineOfSightAnalysisView3D>;
  71438. /**
  71439. * Gets the analysis view created for the given analysis object.
  71440. *
  71441. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#whenAnalysisView)
  71442. */
  71443. whenAnalysisView(analysis: DirectLineMeasurementAnalysis): Promise<DirectLineMeasurementAnalysisView3D>;
  71444. /**
  71445. * Gets the analysis view created for the given analysis object.
  71446. *
  71447. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#whenAnalysisView)
  71448. */
  71449. whenAnalysisView(analysis: AreaMeasurementAnalysis): Promise<AreaMeasurementAnalysisView3D>;
  71450. /**
  71451. * Gets the analysis view created for the given analysis object.
  71452. *
  71453. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#whenAnalysisView)
  71454. */
  71455. whenAnalysisView(analysis: SliceAnalysis): Promise<SliceAnalysisView3D>;
  71456. /**
  71457. * Gets the analysis view created for the given analysis object.
  71458. *
  71459. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#whenAnalysisView)
  71460. */
  71461. whenAnalysisView(analysis: DimensionAnalysis): Promise<DimensionAnalysisView>;
  71462. /**
  71463. * Gets the analysis view created for the given analysis object.
  71464. *
  71465. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#whenAnalysisView)
  71466. */
  71467. whenAnalysisView(analysis: | AreaMeasurementAnalysis
  71468. | DimensionAnalysis
  71469. | DirectLineMeasurementAnalysis
  71470. | LineOfSightAnalysis
  71471. | SliceAnalysis): Promise<
  71472. | AreaMeasurementAnalysisView3D
  71473. | any
  71474. | DirectLineMeasurementAnalysisView3D
  71475. | LineOfSightAnalysisView3D
  71476. | SliceAnalysisView3D
  71477. >;
  71478. }
  71479. /** @deprecated Import the SceneView class instead. */
  71480. export type SceneViewConstructor = typeof SceneView;
  71481. interface SceneViewProperties extends ViewProperties, BreakpointsOwnerProperties {
  71482. /**
  71483. * Allows the view to be partially or fully transparent when composited with the webpage elements behind it.
  71484. *
  71485. * @default false
  71486. *
  71487. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#alphaCompositingEnabled)
  71488. */
  71489. alphaCompositingEnabled?: boolean;
  71490. /**
  71491. * Allows for adding analyses directly to the default analyses in the View.
  71492. *
  71493. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#analyses)
  71494. */
  71495. analyses?: CollectionProperties<
  71496. | DimensionAnalysisProperties
  71497. | DirectLineMeasurementAnalysisProperties
  71498. | AreaMeasurementAnalysisProperties
  71499. | (SliceAnalysisProperties & { type: "slice" })
  71500. | LineOfSightAnalysisProperties
  71501. >;
  71502. /**
  71503. * The observation point from which the visible portion (or perspective) of the SceneView is determined.
  71504. *
  71505. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#camera)
  71506. */
  71507. camera?: CameraProperties;
  71508. /**
  71509. * Represents the view's center point; when setting the center you may pass a [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) instance or an array of numbers representing at longitude/latitude pair (`[-100.4593, 36.9014]`).
  71510. *
  71511. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#center)
  71512. */
  71513. center?: (PointProperties & { type: "point" }) | number[];
  71514. /**
  71515. * Represents an optional clipping area used to define the visible [extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) of a local scene.
  71516. *
  71517. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#clippingArea)
  71518. */
  71519. clippingArea?: ExtentProperties;
  71520. /**
  71521. * Specifies constraints for [Camera tilt](esri-Camera.html#tilt) and altitude that may be applied to the SceneView.
  71522. *
  71523. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#constraints)
  71524. */
  71525. constraints?: SceneViewConstraintsProperties;
  71526. /**
  71527. * Specifies various properties of the environment's visualization in the view.
  71528. *
  71529. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#environment)
  71530. */
  71531. environment?: SceneViewEnvironmentProperties;
  71532. /**
  71533. * The extent represents the visible portion of a [map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) within the view as an instance of [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html).
  71534. *
  71535. * @default null
  71536. *
  71537. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#extent)
  71538. */
  71539. extent?: ExtentProperties;
  71540. /**
  71541. * Applies a display filter on the view for a specific set of floor levels.
  71542. *
  71543. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#floors)
  71544. */
  71545. floors?: CollectionProperties<string>;
  71546. /**
  71547. * Options for configuring the highlight.
  71548. *
  71549. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#highlightOptions)
  71550. */
  71551. highlightOptions?: SceneViewHighlightOptionsProperties;
  71552. /**
  71553. * SceneView can draw scenes in three different quality modes: `high`, `medium` and `low`.
  71554. *
  71555. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#qualityProfile)
  71556. */
  71557. qualityProfile?: "low" | "medium" | "high";
  71558. /**
  71559. * Represents an approximation of the map scale at the center of the view.
  71560. *
  71561. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#scale)
  71562. */
  71563. scale?: number;
  71564. /**
  71565. * The viewing mode (`local` or `global`).
  71566. *
  71567. * @default global
  71568. *
  71569. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#viewingMode)
  71570. */
  71571. viewingMode?: "global" | "local";
  71572. /**
  71573. * Represents the current view as a [Viewpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html) or point of observation on the view.
  71574. *
  71575. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#viewpoint)
  71576. */
  71577. viewpoint?: ViewpointProperties;
  71578. /**
  71579. * Represents the level of detail (LOD) at the center of the view.
  71580. *
  71581. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#zoom)
  71582. */
  71583. zoom?: number;
  71584. }
  71585. export type EasingFunction = (t: number, duration: number) => number;
  71586. /**
  71587. * Animation options for the [goTo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#goTo) method.
  71588. *
  71589. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#GoToOptions3D)
  71590. */
  71591. export interface GoToOptions3D {
  71592. /**
  71593. * Indicates if the transition to the new view should be animated.
  71594. *
  71595. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#GoToOptions3D)
  71596. */
  71597. animate?: boolean;
  71598. /**
  71599. * Increases or decreases the animation speed by the specified factor.
  71600. *
  71601. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#GoToOptions3D)
  71602. */
  71603. speedFactor?: number;
  71604. /**
  71605. * Set the exact duration (in milliseconds) of the animation.
  71606. *
  71607. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#GoToOptions3D)
  71608. */
  71609. duration?: number;
  71610. /**
  71611. * The maximum allowed duration (in milliseconds) of the animation.
  71612. *
  71613. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#GoToOptions3D)
  71614. */
  71615. maxDuration?: number;
  71616. /**
  71617. * The easing function to use for the animation.
  71618. *
  71619. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#GoToOptions3D)
  71620. */
  71621. easing?: | "linear"
  71622. | "in-cubic"
  71623. | "out-cubic"
  71624. | "in-out-cubic"
  71625. | "in-expo"
  71626. | "out-expo"
  71627. | "in-out-expo"
  71628. | "in-out-coast-quadratic"
  71629. | EasingFunction;
  71630. /**
  71631. * An [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) to abort the animation.
  71632. *
  71633. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#GoToOptions3D)
  71634. */
  71635. signal?: AbortSignal;
  71636. }
  71637. /**
  71638. * The target location/viewpoint to animate to in the [goTo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#goTo) method.
  71639. *
  71640. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#GoToTarget3D)
  71641. */
  71642. export type GoToTarget3D = | number[]
  71643. | Geometry
  71644. | Geometry[]
  71645. | Collection<Geometry>
  71646. | Graphic
  71647. | Graphic[]
  71648. | Collection<Graphic>
  71649. | Camera
  71650. | Viewpoint
  71651. | any;
  71652. /**
  71653. * Object specification for the graphic hit result returned in [HitTestResult](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#HitTestResult) of the [hitTest()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#hitTest) method.
  71654. *
  71655. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#GraphicHit)
  71656. */
  71657. export interface SceneViewGraphicHit {
  71658. type: "graphic";
  71659. /**
  71660. * A graphic present in the view that intersects the input screen coordinates.
  71661. *
  71662. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#GraphicHit)
  71663. */
  71664. graphic: Graphic;
  71665. /**
  71666. * The distance from the camera position to the point geometry hit on this graphic.
  71667. *
  71668. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#GraphicHit)
  71669. */
  71670. distance: number;
  71671. /**
  71672. * The layer that contains the feature/graphic.
  71673. *
  71674. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#GraphicHit)
  71675. */
  71676. layer: Layer;
  71677. /**
  71678. * The point geometry in the spatial reference of the view corresponding with the input screen coordinates.
  71679. *
  71680. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#GraphicHit)
  71681. */
  71682. mapPoint: Point;
  71683. }
  71684. /**
  71685. * Object specification for the result of the [hitTest()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#hitTest) method.
  71686. *
  71687. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#HitTestResult)
  71688. */
  71689. export interface SceneViewHitTestResult {
  71690. /**
  71691. * An array of result objects returned from the [hitTest()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#hitTest) when the location of the input screen coordinates intersect features in the view.
  71692. *
  71693. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#HitTestResult)
  71694. */
  71695. results: SceneViewViewHit[];
  71696. /**
  71697. * Ground intersection result.
  71698. *
  71699. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#HitTestResult)
  71700. */
  71701. ground: HitTestResultGround;
  71702. /**
  71703. * The screen coordinates (or native mouse event) of the click on the view.
  71704. *
  71705. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#HitTestResult)
  71706. */
  71707. screenPoint: SceneViewScreenPoint | MouseEvent;
  71708. }
  71709. /**
  71710. * A layer or graphic to be used in [toMap](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#toMap) and [hitTest](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#hitTest) filter options.
  71711. *
  71712. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#IntersectItem)
  71713. */
  71714. export type IntersectItem = Graphic | Layer | BuildingSublayer;
  71715. /**
  71716. * Object specification for the media hit results returned from [MediaLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html) in [HitTestResult](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#HitTestResult) of the [hitTest()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#hitTest) method.
  71717. *
  71718. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#MediaHit)
  71719. */
  71720. export interface SceneViewMediaHit {
  71721. type: "media";
  71722. /**
  71723. * An element representing a media element in [MediaLayer.source](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MediaLayer.html#source) that intersects the input screen coordinates.
  71724. *
  71725. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#MediaHit)
  71726. */
  71727. element: ImageElement | VideoElement;
  71728. /**
  71729. * The distance from the camera position to the point geometry hit on this graphic.
  71730. *
  71731. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#MediaHit)
  71732. */
  71733. distance: number;
  71734. /**
  71735. * The media layer that contains the element.
  71736. *
  71737. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#MediaHit)
  71738. */
  71739. layer: MediaLayer;
  71740. /**
  71741. * The point geometry in the spatial reference of the view corresponding with the input screen coordinates.
  71742. *
  71743. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#MediaHit)
  71744. */
  71745. mapPoint: Point;
  71746. }
  71747. /**
  71748. * Object specification for the route hit results returned from [RouteLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html) in [HitTestResult](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#HitTestResult) of the [hitTest()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#hitTest) method.
  71749. *
  71750. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#RouteHit)
  71751. */
  71752. export interface SceneViewRouteHit {
  71753. type: "route";
  71754. /**
  71755. * The route layer that contains the element.
  71756. *
  71757. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#RouteHit)
  71758. */
  71759. layer: RouteLayer;
  71760. /**
  71761. * The point geometry in the spatial reference of the view corresponding with the input screen coordinates.
  71762. *
  71763. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#RouteHit)
  71764. */
  71765. mapPoint: Point;
  71766. /**
  71767. * The route hit test will contain all intersecting network elements which, includes one of the following: DirectionLine, DirectionPoint, PointBarrier, PolylineBarrier, PolygonBarrier, Stop, or RouteInfo.
  71768. *
  71769. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#RouteHit)
  71770. */
  71771. networkFeature: DirectionLine | DirectionPoint | PointBarrier | PolygonBarrier | PolygonBarrier | RouteInfo | Stop;
  71772. }
  71773. export interface SceneViewConstraintsProperties {
  71774. /**
  71775. * Specifies a constraint on the minimum and maximum allowed camera altitude.
  71776. *
  71777. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#constraints)
  71778. */
  71779. altitude?: SceneViewConstraintsAltitudeProperties;
  71780. /**
  71781. * Specifies the near and far webgl clip distances.
  71782. *
  71783. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#constraints)
  71784. */
  71785. clipDistance?: SceneViewConstraintsClipDistanceProperties;
  71786. /**
  71787. * Specifies a constraint on the amount of allowed tilting of the view.
  71788. *
  71789. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#constraints)
  71790. */
  71791. tilt?: SceneViewConstraintsTiltProperties;
  71792. }
  71793. export interface SceneViewConstraints extends AnonymousAccessor {
  71794. /**
  71795. * Specifies a constraint on the minimum and maximum allowed camera altitude.
  71796. *
  71797. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#constraints)
  71798. */
  71799. altitude?: SceneViewConstraintsAltitude;
  71800. /**
  71801. * Specifies the near and far webgl clip distances.
  71802. *
  71803. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#constraints)
  71804. */
  71805. clipDistance?: SceneViewConstraintsClipDistance;
  71806. /**
  71807. * Specifies a constraint on the amount of allowed tilting of the view.
  71808. *
  71809. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#constraints)
  71810. */
  71811. tilt?: SceneViewConstraintsTilt;
  71812. }
  71813. export interface SceneViewConstraintsAltitudeProperties {
  71814. /**
  71815. * The minimum allowed camera altitude (in meters).
  71816. *
  71817. * @default -∞
  71818. *
  71819. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#constraints)
  71820. */
  71821. min?: number;
  71822. /**
  71823. * The maximum allowed camera altitude (in meters).
  71824. *
  71825. * @default EARTH_RADIUS * 4
  71826. *
  71827. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#constraints)
  71828. */
  71829. max?: number;
  71830. }
  71831. export interface SceneViewConstraintsAltitude extends AnonymousAccessor {
  71832. /**
  71833. * The minimum allowed camera altitude (in meters).
  71834. *
  71835. * @default -∞
  71836. *
  71837. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#constraints)
  71838. */
  71839. min?: number;
  71840. /**
  71841. * The maximum allowed camera altitude (in meters).
  71842. *
  71843. * @default EARTH_RADIUS * 4
  71844. *
  71845. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#constraints)
  71846. */
  71847. max?: number;
  71848. }
  71849. export interface SceneViewConstraintsClipDistanceProperties {
  71850. /**
  71851. * The near clip distance.
  71852. *
  71853. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#constraints)
  71854. */
  71855. near?: number;
  71856. /**
  71857. * The far clip distance.
  71858. *
  71859. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#constraints)
  71860. */
  71861. far?: number;
  71862. /**
  71863. * Specifies the mode of the constraint which is either `auto` or `manual`.
  71864. *
  71865. * @default auto
  71866. *
  71867. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#constraints)
  71868. */
  71869. mode?: "auto" | "manual";
  71870. }
  71871. export interface SceneViewConstraintsClipDistance extends AnonymousAccessor {
  71872. /**
  71873. * The near clip distance.
  71874. *
  71875. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#constraints)
  71876. */
  71877. near?: number;
  71878. /**
  71879. * The far clip distance.
  71880. *
  71881. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#constraints)
  71882. */
  71883. far?: number;
  71884. /**
  71885. * Specifies the mode of the constraint which is either `auto` or `manual`.
  71886. *
  71887. * @default auto
  71888. *
  71889. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#constraints)
  71890. */
  71891. mode?: "auto" | "manual";
  71892. }
  71893. export interface SceneViewConstraintsTiltProperties {
  71894. /**
  71895. * Specifies the maximum amount of tilt (in degrees) allowed in the view and may range from 0.5 to 179.5 degrees.
  71896. *
  71897. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#constraints)
  71898. */
  71899. max?: number;
  71900. /**
  71901. * Specifies the mode of the constraint.
  71902. *
  71903. * @default auto
  71904. *
  71905. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#constraints)
  71906. */
  71907. mode?: "auto" | "manual";
  71908. }
  71909. export interface SceneViewConstraintsTilt extends AnonymousAccessor {
  71910. /**
  71911. * Specifies the maximum amount of tilt (in degrees) allowed in the view and may range from 0.5 to 179.5 degrees.
  71912. *
  71913. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#constraints)
  71914. */
  71915. max?: number;
  71916. /**
  71917. * Specifies the mode of the constraint.
  71918. *
  71919. * @default auto
  71920. *
  71921. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#constraints)
  71922. */
  71923. mode?: "auto" | "manual";
  71924. }
  71925. export interface SceneViewEnvironmentProperties {
  71926. /**
  71927. * Specifies how the background of the scene (which lies behind sky, stars and atmosphere) should be displayed.
  71928. *
  71929. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#environment)
  71930. */
  71931. background?: BackgroundProperties;
  71932. /**
  71933. * Indicates the type of lighting in the scene.
  71934. *
  71935. * @default SunLighting
  71936. *
  71937. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#environment)
  71938. */
  71939. lighting?: (SunLightingProperties & { type?: "sun" }) | (VirtualLightingProperties & { type: "virtual" });
  71940. /**
  71941. * Indicates whether atmosphere visualization is enabled.
  71942. *
  71943. * @default true
  71944. *
  71945. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#environment)
  71946. */
  71947. atmosphereEnabled?: boolean;
  71948. /**
  71949. * Atmosphere conditions of the scene.
  71950. *
  71951. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#environment)
  71952. */
  71953. atmosphere?: SceneViewEnvironmentAtmosphereProperties;
  71954. /**
  71955. * Indicates the type of weather visualization in the scene.
  71956. *
  71957. * @default SunnyWeather
  71958. *
  71959. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#environment)
  71960. */
  71961. weather?: | (SunnyWeatherProperties & { type: "sunny" })
  71962. | (CloudyWeatherProperties & { type: "cloudy" })
  71963. | (RainyWeatherProperties & { type: "rainy" })
  71964. | (SnowyWeatherProperties & { type: "snowy" })
  71965. | (FoggyWeatherProperties & { type: "foggy" });
  71966. /**
  71967. * Indicates whether stars visualization is enabled.
  71968. *
  71969. * @default true
  71970. *
  71971. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#environment)
  71972. */
  71973. starsEnabled?: boolean;
  71974. }
  71975. export interface SceneViewEnvironment extends AnonymousAccessor {
  71976. /**
  71977. * Specifies how the background of the scene (which lies behind sky, stars and atmosphere) should be displayed.
  71978. *
  71979. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#environment)
  71980. */
  71981. background?: Background;
  71982. /**
  71983. * Indicates the type of lighting in the scene.
  71984. *
  71985. * @default SunLighting
  71986. *
  71987. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#environment)
  71988. */
  71989. lighting?: SunLighting | VirtualLighting;
  71990. /**
  71991. * Indicates whether atmosphere visualization is enabled.
  71992. *
  71993. * @default true
  71994. *
  71995. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#environment)
  71996. */
  71997. atmosphereEnabled?: boolean;
  71998. /**
  71999. * Atmosphere conditions of the scene.
  72000. *
  72001. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#environment)
  72002. */
  72003. atmosphere?: SceneViewEnvironmentAtmosphere;
  72004. /**
  72005. * Indicates the type of weather visualization in the scene.
  72006. *
  72007. * @default SunnyWeather
  72008. *
  72009. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#environment)
  72010. */
  72011. weather?: SunnyWeather | CloudyWeather | RainyWeather | SnowyWeather | FoggyWeather;
  72012. /**
  72013. * Indicates whether stars visualization is enabled.
  72014. *
  72015. * @default true
  72016. *
  72017. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#environment)
  72018. */
  72019. starsEnabled?: boolean;
  72020. }
  72021. export interface SceneViewEnvironmentAtmosphereProperties {
  72022. /**
  72023. * Indicates the quality of the atmosphere visualization.
  72024. *
  72025. * @default low
  72026. *
  72027. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#environment)
  72028. */
  72029. quality?: "low" | "high";
  72030. }
  72031. export interface SceneViewEnvironmentAtmosphere extends AnonymousAccessor {
  72032. /**
  72033. * Indicates the quality of the atmosphere visualization.
  72034. *
  72035. * @default low
  72036. *
  72037. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#environment)
  72038. */
  72039. quality?: "low" | "high";
  72040. }
  72041. export interface SceneViewHighlightOptionsProperties {
  72042. /**
  72043. * The color of the highlight.
  72044. *
  72045. * @default #00ffff
  72046. *
  72047. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#highlightOptions)
  72048. */
  72049. color?: Color | number[] | string;
  72050. /**
  72051. * An optional color for the halo of the highlight.
  72052. *
  72053. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#highlightOptions)
  72054. */
  72055. haloColor?: Color;
  72056. /**
  72057. * The opacity of the highlight halo.
  72058. *
  72059. * @default 1
  72060. *
  72061. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#highlightOptions)
  72062. */
  72063. haloOpacity?: number;
  72064. /**
  72065. * The opacity of the fill (area within the halo).
  72066. *
  72067. * @default 0.25
  72068. *
  72069. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#highlightOptions)
  72070. */
  72071. fillOpacity?: number;
  72072. /**
  72073. * The color of the highlighted feature's shadow.
  72074. *
  72075. * @default #000000
  72076. *
  72077. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#highlightOptions)
  72078. */
  72079. shadowColor?: Color;
  72080. /**
  72081. * The opacity of the highlighted feature's shadow.
  72082. *
  72083. * @default 0.4
  72084. *
  72085. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#highlightOptions)
  72086. */
  72087. shadowOpacity?: number;
  72088. /**
  72089. * Defines the intensity of the shadow area obtained by overlapping the shadow of the highlighted feature and the shadow of other objects in the scene.
  72090. *
  72091. * @default 0.375
  72092. *
  72093. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#highlightOptions)
  72094. */
  72095. shadowDifference?: number;
  72096. }
  72097. export interface SceneViewHighlightOptions extends AnonymousAccessor {
  72098. /**
  72099. * The color of the highlight.
  72100. *
  72101. * @default #00ffff
  72102. *
  72103. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#highlightOptions)
  72104. */
  72105. color?: Color;
  72106. /**
  72107. * An optional color for the halo of the highlight.
  72108. *
  72109. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#highlightOptions)
  72110. */
  72111. haloColor?: Color;
  72112. /**
  72113. * The opacity of the highlight halo.
  72114. *
  72115. * @default 1
  72116. *
  72117. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#highlightOptions)
  72118. */
  72119. haloOpacity?: number;
  72120. /**
  72121. * The opacity of the fill (area within the halo).
  72122. *
  72123. * @default 0.25
  72124. *
  72125. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#highlightOptions)
  72126. */
  72127. fillOpacity?: number;
  72128. /**
  72129. * The color of the highlighted feature's shadow.
  72130. *
  72131. * @default #000000
  72132. *
  72133. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#highlightOptions)
  72134. */
  72135. shadowColor?: Color;
  72136. /**
  72137. * The opacity of the highlighted feature's shadow.
  72138. *
  72139. * @default 0.4
  72140. *
  72141. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#highlightOptions)
  72142. */
  72143. shadowOpacity?: number;
  72144. /**
  72145. * Defines the intensity of the shadow area obtained by overlapping the shadow of the highlighted feature and the shadow of other objects in the scene.
  72146. *
  72147. * @default 0.375
  72148. *
  72149. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#highlightOptions)
  72150. */
  72151. shadowDifference?: number;
  72152. }
  72153. export interface SceneViewHitTestOptions {
  72154. /**
  72155. * A list of layers and graphics to include for intersection testing.
  72156. *
  72157. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#hitTest)
  72158. */
  72159. include?: | (IntersectItem | Collection<IntersectItem> | IntersectItem[] | Ground)[]
  72160. | Collection<IntersectItem>
  72161. | IntersectItem;
  72162. /**
  72163. * A list of layers and graphics to include for intersection testing.
  72164. *
  72165. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#hitTest)
  72166. */
  72167. exclude?: | (IntersectItem | Collection<IntersectItem> | IntersectItem[] | Ground)[]
  72168. | Collection<IntersectItem>
  72169. | IntersectItem;
  72170. }
  72171. export interface SceneViewTakeScreenshotOptions {
  72172. /**
  72173. * The format of the resulting encoded data url.
  72174. *
  72175. * @default png
  72176. *
  72177. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#takeScreenshot)
  72178. */
  72179. format?: "jpg" | "png";
  72180. /**
  72181. * The quality (0 to 100) of the encoded image when format is `jpg`.
  72182. *
  72183. * @default 98
  72184. *
  72185. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#takeScreenshot)
  72186. */
  72187. quality?: number;
  72188. /**
  72189. * The width of the screenshot (defaults to the area width).
  72190. *
  72191. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#takeScreenshot)
  72192. */
  72193. width?: number;
  72194. /**
  72195. * The height of the screenshot (defaults to the area height).
  72196. *
  72197. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#takeScreenshot)
  72198. */
  72199. height?: number;
  72200. /**
  72201. * Specifies whether to take a screenshot of a specific area of the view.
  72202. *
  72203. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#takeScreenshot)
  72204. */
  72205. area?: SceneViewTakeScreenshotOptionsArea;
  72206. /**
  72207. * Indicates whether view padding should be ignored.
  72208. *
  72209. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#takeScreenshot)
  72210. */
  72211. ignorePadding?: boolean;
  72212. }
  72213. export interface SceneViewTakeScreenshotOptionsArea {
  72214. /**
  72215. * The x coordinate of the area.
  72216. *
  72217. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#takeScreenshot)
  72218. */
  72219. x?: number;
  72220. /**
  72221. * The y coordinate of the area.
  72222. *
  72223. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#takeScreenshot)
  72224. */
  72225. y?: number;
  72226. /**
  72227. * The width of the area.
  72228. *
  72229. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#takeScreenshot)
  72230. */
  72231. width?: number;
  72232. /**
  72233. * The height of the area.
  72234. *
  72235. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#takeScreenshot)
  72236. */
  72237. height?: number;
  72238. }
  72239. export interface SceneViewToMapOptions {
  72240. /**
  72241. * A list of layers and graphics to include for intersection testing.
  72242. *
  72243. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#toMap)
  72244. */
  72245. include?: | (IntersectItem | Collection<IntersectItem> | IntersectItem[] | Ground)[]
  72246. | Collection<IntersectItem>
  72247. | IntersectItem;
  72248. /**
  72249. * A list of layers and graphics to include for intersection testing.
  72250. *
  72251. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#toMap)
  72252. */
  72253. exclude?: | (IntersectItem | Collection<IntersectItem> | IntersectItem[] | Ground)[]
  72254. | Collection<IntersectItem>
  72255. | IntersectItem;
  72256. }
  72257. /**
  72258. * An object representing a point on the screen.
  72259. *
  72260. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#ScreenPoint)
  72261. */
  72262. export interface SceneViewScreenPoint {
  72263. /**
  72264. * The x coordinate.
  72265. *
  72266. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#ScreenPoint)
  72267. */
  72268. x: number;
  72269. /**
  72270. * The y coordinate.
  72271. *
  72272. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#ScreenPoint)
  72273. */
  72274. y: number;
  72275. }
  72276. /**
  72277. * Object returned when [takeScreenshot()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#takeScreenshot) promise resolves:
  72278. *
  72279. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#Screenshot)
  72280. */
  72281. export interface SceneViewScreenshot {
  72282. /**
  72283. * A data url representing the screenshot.
  72284. *
  72285. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#Screenshot)
  72286. */
  72287. dataUrl: string;
  72288. /**
  72289. * The raw RGBA image data.
  72290. *
  72291. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#Screenshot)
  72292. */
  72293. data: ImageData;
  72294. }
  72295. /**
  72296. * Object specification for the result returned in [HitTestResult](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#HitTestResult) of the [hitTest()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#hitTest) method.
  72297. *
  72298. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#ViewHit)
  72299. */
  72300. export type SceneViewViewHit = SceneViewGraphicHit | SceneViewMediaHit | SceneViewRouteHit;
  72301. export interface HitTestResultGround {
  72302. /**
  72303. * The point at which the ground was hit while performing the hitTest.
  72304. *
  72305. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#HitTestResult)
  72306. */
  72307. mapPoint: Point;
  72308. /**
  72309. * The distance from camera position to the ground hit.
  72310. *
  72311. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#HitTestResult)
  72312. */
  72313. distance: number;
  72314. }
  72315. /**
  72316. * Contains utilities for working with colors in the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html).
  72317. *
  72318. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-support-colorUtils.html)
  72319. */
  72320. interface colorUtils {
  72321. /**
  72322. * Returns the average color of the view's background within the view's [extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#extent).
  72323. *
  72324. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-support-colorUtils.html#getBackgroundColor)
  72325. */
  72326. getBackgroundColor(view: MapView): Promise<Color>;
  72327. /**
  72328. * This method inspects the basemap and background of a MapView and returns either `light` or `dark` as the theme of the background depending on if the average color of the basemap and the view's background is light or dark.
  72329. *
  72330. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-support-colorUtils.html#getBackgroundColorTheme)
  72331. */
  72332. getBackgroundColorTheme(view: MapView): Promise<string>;
  72333. }
  72334. export const colorUtils: colorUtils;
  72335. export class DefaultUI extends UI {
  72336. /**
  72337. * An array of strings representing the default widgets visible when a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) is created.
  72338. *
  72339. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-DefaultUI.html#components)
  72340. */
  72341. components: string[];
  72342. /**
  72343. * The DefaultUI class exposes the default [widget](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Widget.html) [components](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-DefaultUI.html#components) available in either a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  72344. *
  72345. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-DefaultUI.html)
  72346. */
  72347. constructor(properties?: DefaultUIProperties);
  72348. }
  72349. /** @deprecated Import the DefaultUI class instead. */
  72350. export type DefaultUIConstructor = typeof DefaultUI;
  72351. interface DefaultUIProperties extends UIProperties {
  72352. /**
  72353. * An array of strings representing the default widgets visible when a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) is created.
  72354. *
  72355. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-DefaultUI.html#components)
  72356. */
  72357. components?: string[];
  72358. }
  72359. export class UI extends Accessor {
  72360. /**
  72361. * The HTML Element that contains the view.
  72362. *
  72363. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#container)
  72364. */
  72365. container: HTMLElement;
  72366. /**
  72367. * The height of the UI container.
  72368. *
  72369. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#height)
  72370. */
  72371. readonly height: number;
  72372. /**
  72373. * Defines the padding for the UI from the top, left, right, and bottom sides of the container or [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html).
  72374. *
  72375. * @default { left: 15, top: 15, right: 15, bottom: 15 }
  72376. *
  72377. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#padding)
  72378. */
  72379. padding: any | number;
  72380. /**
  72381. * The view associated with the UI components.
  72382. *
  72383. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#view)
  72384. */
  72385. view: MapView | SceneView;
  72386. /**
  72387. * The width of the UI container.
  72388. *
  72389. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#width)
  72390. */
  72391. readonly width: number;
  72392. /**
  72393. * This class provides a simple interface for [adding](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#add), [moving](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#move) and [removing](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#remove) components from a view's user interface (UI).
  72394. *
  72395. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html)
  72396. */
  72397. constructor(properties?: UIProperties);
  72398. /**
  72399. * Adds one or more HTML component(s) or [widgets](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Widget.html) to the UI.
  72400. *
  72401. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#add)
  72402. */
  72403. add(component: Widget | HTMLElement | string | any[] | UIAddComponent, position?: string | UIAddPosition): void;
  72404. /**
  72405. * Removes all components from a given position.
  72406. *
  72407. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#empty)
  72408. */
  72409. empty(position?: | "bottom-leading"
  72410. | "bottom-left"
  72411. | "bottom-right"
  72412. | "bottom-trailing"
  72413. | "top-leading"
  72414. | "top-left"
  72415. | "top-right"
  72416. | "top-trailing"
  72417. | "manual"): void;
  72418. /**
  72419. * Find a component by widget or DOM ID.
  72420. *
  72421. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#find)
  72422. */
  72423. find(id: string): HTMLElement | Widget;
  72424. /**
  72425. * Moves one or more UI component(s) to the specified position.
  72426. *
  72427. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#move)
  72428. */
  72429. move(component: Widget | HTMLElement | string | any[] | UIMoveComponent, position?: string | UIMovePosition): void;
  72430. /**
  72431. * Removes one or more HTML component(s) or [widgets](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Widget.html) from the UI.
  72432. *
  72433. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#remove)
  72434. */
  72435. remove(component: Widget | HTMLElement | string | any[]): void;
  72436. }
  72437. /** @deprecated Import the UI class instead. */
  72438. export type UIConstructor = typeof UI;
  72439. interface UIProperties {
  72440. /**
  72441. * The HTML Element that contains the view.
  72442. *
  72443. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#container)
  72444. */
  72445. container?: HTMLElement;
  72446. /**
  72447. * Defines the padding for the UI from the top, left, right, and bottom sides of the container or [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html).
  72448. *
  72449. * @default { left: 15, top: 15, right: 15, bottom: 15 }
  72450. *
  72451. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#padding)
  72452. */
  72453. padding?: any | number;
  72454. /**
  72455. * The view associated with the UI components.
  72456. *
  72457. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#view)
  72458. */
  72459. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  72460. }
  72461. export interface UIAddComponent {
  72462. /**
  72463. * The component to add to the UI.
  72464. *
  72465. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#add)
  72466. */
  72467. component: Widget | HTMLElement | string;
  72468. /**
  72469. * The position in the view at which to add the component.
  72470. *
  72471. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#add)
  72472. */
  72473. position?: | "bottom-leading"
  72474. | "bottom-left"
  72475. | "bottom-right"
  72476. | "bottom-trailing"
  72477. | "top-leading"
  72478. | "top-left"
  72479. | "top-right"
  72480. | "top-trailing"
  72481. | "manual";
  72482. /**
  72483. * The placement index of the component.
  72484. *
  72485. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#add)
  72486. */
  72487. index?: number;
  72488. }
  72489. export interface UIAddPosition {
  72490. /**
  72491. * The position in the view at which to add the component.
  72492. *
  72493. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#add)
  72494. */
  72495. position?: | "bottom-leading"
  72496. | "bottom-left"
  72497. | "bottom-right"
  72498. | "bottom-trailing"
  72499. | "top-leading"
  72500. | "top-left"
  72501. | "top-right"
  72502. | "top-trailing"
  72503. | "manual";
  72504. /**
  72505. * The placement index of the component(s).
  72506. *
  72507. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#add)
  72508. */
  72509. index?: number;
  72510. }
  72511. export interface UIMoveComponent {
  72512. /**
  72513. * The component to move.
  72514. *
  72515. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#move)
  72516. */
  72517. component: Widget | HTMLElement | string;
  72518. /**
  72519. * The destination position.
  72520. *
  72521. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#move)
  72522. */
  72523. position?: | "bottom-leading"
  72524. | "bottom-left"
  72525. | "bottom-right"
  72526. | "bottom-trailing"
  72527. | "top-leading"
  72528. | "top-left"
  72529. | "top-right"
  72530. | "top-trailing"
  72531. | "manual";
  72532. /**
  72533. * The placement index of the component.
  72534. *
  72535. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#move)
  72536. */
  72537. index?: number;
  72538. }
  72539. export interface UIMovePosition {
  72540. /**
  72541. * The position in the view at which to add the component.
  72542. *
  72543. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#move)
  72544. */
  72545. position?: | "bottom-leading"
  72546. | "bottom-left"
  72547. | "bottom-right"
  72548. | "bottom-trailing"
  72549. | "top-leading"
  72550. | "top-left"
  72551. | "top-right"
  72552. | "top-trailing"
  72553. | "manual";
  72554. /**
  72555. * The placement index of the component(s).
  72556. *
  72557. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#move)
  72558. */
  72559. index?: number;
  72560. }
  72561. export interface View extends Accessor, corePromise, Evented, DOMContainer {
  72562. }
  72563. export class View {
  72564. /**
  72565. * Collection containing a flat list of all the created [LayerViews](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) related to the basemap, operational layers, and group layers in this view.
  72566. *
  72567. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#allLayerViews)
  72568. */
  72569. allLayerViews: Collection<LayerView>;
  72570. /**
  72571. * Represents an ongoing view animation initialized by [goTo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#goTo).
  72572. *
  72573. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#animation)
  72574. */
  72575. animation: ViewAnimation;
  72576. /**
  72577. * Represents the view for a single basemap after it has been added to the map.
  72578. *
  72579. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#basemapView)
  72580. */
  72581. basemapView: BasemapView;
  72582. /**
  72583. * A fatal [error](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Error.html) returned when the view loses its WebGL context.
  72584. *
  72585. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#fatalError)
  72586. */
  72587. fatalError: Error;
  72588. /**
  72589. * Allows for adding [graphics](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) directly to the default graphics in the View.
  72590. *
  72591. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#graphics)
  72592. */
  72593. graphics: Collection<Graphic>;
  72594. /**
  72595. * Options to configure input handling of the View.
  72596. *
  72597. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#input)
  72598. */
  72599. readonly input: Input;
  72600. /**
  72601. * Indication whether the view is being interacted with (for example when panning or by an interactive tool).
  72602. *
  72603. * @default false
  72604. *
  72605. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#interacting)
  72606. */
  72607. readonly interacting: boolean;
  72608. /**
  72609. * A collection containing a hierarchical list of all the created [LayerViews](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) of the [operational layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#layers) in the map.
  72610. *
  72611. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#layerViews)
  72612. */
  72613. layerViews: Collection<LayerView>;
  72614. /**
  72615. * The magnifier allows for showing a portion of the view as a magnifier image on top of the view.
  72616. *
  72617. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#magnifier)
  72618. */
  72619. readonly magnifier: Magnifier;
  72620. /**
  72621. * An instance of a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) object to display in the view.
  72622. *
  72623. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#map)
  72624. */
  72625. map: Map;
  72626. /**
  72627. * Indication whether the view is being navigated (for example when panning).
  72628. *
  72629. * @default false
  72630. *
  72631. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#navigating)
  72632. */
  72633. readonly navigating: boolean;
  72634. /**
  72635. * Options to configure the navigation behavior of the View.
  72636. *
  72637. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#navigation)
  72638. */
  72639. navigation: Navigation;
  72640. /**
  72641. * Use the padding property to make the [center](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#center), and [extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#extent), etc.
  72642. *
  72643. * @default {left: 0, top: 0, right: 0, bottom: 0}
  72644. *
  72645. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#padding)
  72646. */
  72647. padding: ViewPadding;
  72648. /**
  72649. * When `true`, this property indicates whether the view successfully satisfied all dependencies, signaling that the following conditions are met.
  72650. *
  72651. * @default false
  72652. *
  72653. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#ready)
  72654. */
  72655. readonly ready: boolean;
  72656. /**
  72657. * Represents the current value of one pixel in the unit of the view's [spatialReference](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#spatialReference).
  72658. *
  72659. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#resolution)
  72660. */
  72661. readonly resolution: number;
  72662. /**
  72663. * The spatial reference of the view.
  72664. *
  72665. * @default null
  72666. *
  72667. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#spatialReference)
  72668. */
  72669. spatialReference: SpatialReference;
  72670. /**
  72671. * Indication whether the view is animating, being navigated with or resizing.
  72672. *
  72673. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#stationary)
  72674. */
  72675. readonly stationary: boolean;
  72676. /**
  72677. * The view's time extent.
  72678. *
  72679. * @default null
  72680. *
  72681. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#timeExtent)
  72682. */
  72683. timeExtent: TimeExtent;
  72684. /**
  72685. * The type of the view is either `2d` (indicating a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html)) or `3d` (indicating a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html)).
  72686. *
  72687. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#type)
  72688. */
  72689. readonly type: string;
  72690. /**
  72691. * Indicates whether the view is being updated by additional data requests to the network, or by processing received data.
  72692. *
  72693. * @default false
  72694. *
  72695. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#updating)
  72696. */
  72697. readonly updating: boolean;
  72698. /**
  72699. * Contains the collection of active views on the page.
  72700. *
  72701. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#views)
  72702. */
  72703. static readonly views: Collection<View>;
  72704. /**
  72705. * A view provides the means of viewing and interacting with the components of a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html).
  72706. *
  72707. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html)
  72708. */
  72709. constructor(properties?: ViewProperties);
  72710. /**
  72711. * Destroys the view, and any associated resources, including its [map](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#map), [popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#popup), and [UI](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#ui) elements.
  72712. *
  72713. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#destroy)
  72714. */
  72715. destroy(): void;
  72716. /**
  72717. * Sets the focus on the view.
  72718. *
  72719. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#focus)
  72720. */
  72721. focus(): void;
  72722. /**
  72723. * Call this method to clear any [fatal errors](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#fatalError) resulting from a lost WebGL context.
  72724. *
  72725. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#tryFatalErrorRecovery)
  72726. */
  72727. tryFatalErrorRecovery(): void;
  72728. /**
  72729. * Gets the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) created on the view for the given layer.
  72730. *
  72731. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView)
  72732. */
  72733. whenLayerView(layer: PointCloudLayer): Promise<PointCloudLayerView>;
  72734. /**
  72735. * Gets the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) created on the view for the given layer.
  72736. *
  72737. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView)
  72738. */
  72739. whenLayerView(layer: StreamLayer): Promise<StreamLayerView>;
  72740. /**
  72741. * Gets the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) created on the view for the given layer.
  72742. *
  72743. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView)
  72744. */
  72745. whenLayerView(layer: FeatureLayer): Promise<FeatureLayerView>;
  72746. /**
  72747. * Gets the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) created on the view for the given layer.
  72748. *
  72749. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView)
  72750. */
  72751. whenLayerView(layer: CSVLayer): Promise<CSVLayerView>;
  72752. /**
  72753. * Gets the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) created on the view for the given layer.
  72754. *
  72755. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView)
  72756. */
  72757. whenLayerView(layer: GeoJSONLayer): Promise<GeoJSONLayerView>;
  72758. /**
  72759. * Gets the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) created on the view for the given layer.
  72760. *
  72761. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView)
  72762. */
  72763. whenLayerView(layer: GeoRSSLayer): Promise<GeoRSSLayerView>;
  72764. /**
  72765. * Gets the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) created on the view for the given layer.
  72766. *
  72767. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView)
  72768. */
  72769. whenLayerView(layer: GraphicsLayer): Promise<GraphicsLayerView>;
  72770. /**
  72771. * Gets the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) created on the view for the given layer.
  72772. *
  72773. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView)
  72774. */
  72775. whenLayerView(layer: ImageryLayer): Promise<ImageryLayerView>;
  72776. /**
  72777. * Gets the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) created on the view for the given layer.
  72778. *
  72779. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView)
  72780. */
  72781. whenLayerView(layer: KMLLayer): Promise<KMLLayerView>;
  72782. /**
  72783. * Gets the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) created on the view for the given layer.
  72784. *
  72785. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView)
  72786. */
  72787. whenLayerView(layer: SceneLayer): Promise<SceneLayerView>;
  72788. /**
  72789. * Gets the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) created on the view for the given layer.
  72790. *
  72791. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView)
  72792. */
  72793. whenLayerView(layer: DimensionLayer): Promise<DimensionLayerView>;
  72794. /**
  72795. * Gets the [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) created on the view for the given layer.
  72796. *
  72797. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#whenLayerView)
  72798. */
  72799. whenLayerView(layer: Layer): Promise<LayerView>;
  72800. on(name: "resize", eventHandler: ViewResizeEventHandler): IHandle;
  72801. on(name: "layerview-create", eventHandler: ViewLayerviewCreateEventHandler): IHandle;
  72802. on(name: "layerview-create-error", eventHandler: ViewLayerviewCreateErrorEventHandler): IHandle;
  72803. on(name: "layerview-destroy", eventHandler: ViewLayerviewDestroyEventHandler): IHandle;
  72804. on(name: "click", eventHandler: ViewClickEventHandler): IHandle;
  72805. on(name: "click", modifiers: string[], eventHandler: ViewClickEventHandler): IHandle;
  72806. on(name: "double-click", eventHandler: ViewDoubleClickEventHandler): IHandle;
  72807. on(name: "double-click", modifiers: string[], eventHandler: ViewDoubleClickEventHandler): IHandle;
  72808. on(name: "immediate-double-click", eventHandler: ViewImmediateDoubleClickEventHandler): IHandle;
  72809. on(name: "immediate-double-click", modifiers: string[], eventHandler: ViewImmediateDoubleClickEventHandler): IHandle;
  72810. on(name: "immediate-click", eventHandler: ViewImmediateClickEventHandler): IHandle;
  72811. on(name: "immediate-click", modifiers: string[], eventHandler: ViewImmediateClickEventHandler): IHandle;
  72812. on(name: "hold", eventHandler: ViewHoldEventHandler): IHandle;
  72813. on(name: "hold", modifiers: string[], eventHandler: ViewHoldEventHandler): IHandle;
  72814. on(name: "drag", eventHandler: ViewDragEventHandler): IHandle;
  72815. on(name: "drag", modifiers: string[], eventHandler: ViewDragEventHandler): IHandle;
  72816. on(name: "mouse-wheel", eventHandler: ViewMouseWheelEventHandler): IHandle;
  72817. on(name: "mouse-wheel", modifiers: string[], eventHandler: ViewMouseWheelEventHandler): IHandle;
  72818. on(name: "key-down", eventHandler: ViewKeyDownEventHandler): IHandle;
  72819. on(name: "key-down", modifiers: string[], eventHandler: ViewKeyDownEventHandler): IHandle;
  72820. on(name: "key-up", eventHandler: ViewKeyUpEventHandler): IHandle;
  72821. on(name: "key-up", modifiers: string[], eventHandler: ViewKeyUpEventHandler): IHandle;
  72822. on(name: "pointer-down", eventHandler: ViewPointerDownEventHandler): IHandle;
  72823. on(name: "pointer-down", modifiers: string[], eventHandler: ViewPointerDownEventHandler): IHandle;
  72824. on(name: "pointer-move", eventHandler: ViewPointerMoveEventHandler): IHandle;
  72825. on(name: "pointer-move", modifiers: string[], eventHandler: ViewPointerMoveEventHandler): IHandle;
  72826. on(name: "pointer-up", eventHandler: ViewPointerUpEventHandler): IHandle;
  72827. on(name: "pointer-up", modifiers: string[], eventHandler: ViewPointerUpEventHandler): IHandle;
  72828. on(name: "pointer-enter", eventHandler: ViewPointerEnterEventHandler): IHandle;
  72829. on(name: "pointer-enter", modifiers: string[], eventHandler: ViewPointerEnterEventHandler): IHandle;
  72830. on(name: "pointer-leave", eventHandler: ViewPointerLeaveEventHandler): IHandle;
  72831. on(name: "pointer-leave", modifiers: string[], eventHandler: ViewPointerLeaveEventHandler): IHandle;
  72832. on(name: "focus", eventHandler: ViewFocusEventHandler): IHandle;
  72833. on(name: "blur", eventHandler: ViewBlurEventHandler): IHandle;
  72834. }
  72835. /** @deprecated Import the View class instead. */
  72836. export type ViewConstructor = typeof View;
  72837. interface ViewProperties extends DOMContainerProperties {
  72838. /**
  72839. * Collection containing a flat list of all the created [LayerViews](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) related to the basemap, operational layers, and group layers in this view.
  72840. *
  72841. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#allLayerViews)
  72842. */
  72843. allLayerViews?: CollectionProperties<LayerViewProperties>;
  72844. /**
  72845. * Represents an ongoing view animation initialized by [goTo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#goTo).
  72846. *
  72847. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#animation)
  72848. */
  72849. animation?: ViewAnimationProperties;
  72850. /**
  72851. * Represents the view for a single basemap after it has been added to the map.
  72852. *
  72853. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#basemapView)
  72854. */
  72855. basemapView?: BasemapViewProperties;
  72856. /**
  72857. * A fatal [error](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Error.html) returned when the view loses its WebGL context.
  72858. *
  72859. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#fatalError)
  72860. */
  72861. fatalError?: Error;
  72862. /**
  72863. * Allows for adding [graphics](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) directly to the default graphics in the View.
  72864. *
  72865. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#graphics)
  72866. */
  72867. graphics?: CollectionProperties<GraphicProperties>;
  72868. /**
  72869. * A collection containing a hierarchical list of all the created [LayerViews](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) of the [operational layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#layers) in the map.
  72870. *
  72871. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#layerViews)
  72872. */
  72873. layerViews?: CollectionProperties<LayerViewProperties>;
  72874. /**
  72875. * An instance of a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) object to display in the view.
  72876. *
  72877. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#map)
  72878. */
  72879. map?: MapProperties;
  72880. /**
  72881. * Options to configure the navigation behavior of the View.
  72882. *
  72883. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#navigation)
  72884. */
  72885. navigation?: NavigationProperties;
  72886. /**
  72887. * Use the padding property to make the [center](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#center), and [extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#extent), etc.
  72888. *
  72889. * @default {left: 0, top: 0, right: 0, bottom: 0}
  72890. *
  72891. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#padding)
  72892. */
  72893. padding?: ViewPadding;
  72894. /**
  72895. * The spatial reference of the view.
  72896. *
  72897. * @default null
  72898. *
  72899. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#spatialReference)
  72900. */
  72901. spatialReference?: SpatialReferenceProperties;
  72902. /**
  72903. * The view's time extent.
  72904. *
  72905. * @default null
  72906. *
  72907. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#timeExtent)
  72908. */
  72909. timeExtent?: TimeExtentProperties;
  72910. }
  72911. export interface ViewBlurEvent {
  72912. native: any;
  72913. target: View;
  72914. }
  72915. export interface ViewClickEvent {
  72916. button: number;
  72917. buttons: 0 | 1 | 2;
  72918. mapPoint: Point;
  72919. native: any;
  72920. stopPropagation: Function;
  72921. timestamp: number;
  72922. type: "click";
  72923. x: number;
  72924. y: number;
  72925. }
  72926. export interface ViewDoubleClickEvent {
  72927. button: number;
  72928. buttons: 0 | 1 | 2;
  72929. mapPoint: Point;
  72930. native: any;
  72931. stopPropagation: Function;
  72932. timestamp: number;
  72933. type: "double-click";
  72934. x: number;
  72935. y: number;
  72936. }
  72937. export interface ViewDragEvent {
  72938. action: "start" | "added" | "update" | "removed" | "end";
  72939. angle: number;
  72940. button: 0 | 1 | 2;
  72941. buttons: number;
  72942. native: any;
  72943. origin: ViewDragEventOrigin;
  72944. radius: number;
  72945. stopPropagation: Function;
  72946. timestamp: number;
  72947. type: "drag";
  72948. x: number;
  72949. y: number;
  72950. }
  72951. export interface ViewFocusEvent {
  72952. native: any;
  72953. target: View;
  72954. }
  72955. export interface ViewHoldEvent {
  72956. button: 0 | 1 | 2;
  72957. buttons: number;
  72958. mapPoint: Point;
  72959. native: any;
  72960. stopPropagation: Function;
  72961. timestamp: number;
  72962. type: "hold";
  72963. x: number;
  72964. y: number;
  72965. }
  72966. export interface ViewImmediateClickEvent {
  72967. button: 0 | 1 | 2;
  72968. buttons: number;
  72969. mapPoint: Point;
  72970. native: any;
  72971. stopPropagation: Function;
  72972. timestamp: number;
  72973. type: "immediate-click";
  72974. x: number;
  72975. y: number;
  72976. }
  72977. export interface ViewImmediateDoubleClickEvent {
  72978. button: 0 | 1 | 2;
  72979. buttons: number;
  72980. mapPoint: Point;
  72981. native: any;
  72982. stopPropagation: Function;
  72983. timestamp: number;
  72984. type: "immediate-double-click";
  72985. x: number;
  72986. y: number;
  72987. }
  72988. export interface ViewKeyDownEvent {
  72989. key: string;
  72990. native: any;
  72991. repeat: boolean;
  72992. stopPropagation: Function;
  72993. timestamp: number;
  72994. type: "key-down";
  72995. }
  72996. export interface ViewKeyUpEvent {
  72997. key: string;
  72998. native: any;
  72999. stopPropagation: Function;
  73000. timestamp: number;
  73001. type: "key-up";
  73002. }
  73003. export interface ViewLayerviewCreateErrorEvent {
  73004. error: Error;
  73005. layer: Layer;
  73006. }
  73007. export interface ViewLayerviewCreateEvent {
  73008. layer: Layer;
  73009. layerView: LayerView;
  73010. }
  73011. export interface ViewLayerviewDestroyEvent {
  73012. layer: Layer;
  73013. layerView: LayerView;
  73014. }
  73015. export interface ViewMouseWheelEvent {
  73016. deltaY: number;
  73017. native: any;
  73018. stopPropagation: Function;
  73019. timestamp: number;
  73020. type: "mouse-wheel";
  73021. x: number;
  73022. y: number;
  73023. }
  73024. export interface ViewPointerDownEvent {
  73025. button: number;
  73026. buttons: number;
  73027. native: any;
  73028. pointerId: number;
  73029. pointerType: "mouse" | "touch";
  73030. stopPropagation: Function;
  73031. timestamp: number;
  73032. type: "pointer-down";
  73033. x: number;
  73034. y: number;
  73035. }
  73036. export interface ViewPointerEnterEvent {
  73037. button: number;
  73038. buttons: number;
  73039. native: any;
  73040. pointerId: number;
  73041. pointerType: "mouse" | "touch";
  73042. stopPropagation: Function;
  73043. timestamp: number;
  73044. type: "pointer-enter";
  73045. x: number;
  73046. y: number;
  73047. }
  73048. export interface ViewPointerLeaveEvent {
  73049. button: number;
  73050. buttons: number;
  73051. native: any;
  73052. pointerId: number;
  73053. pointerType: "mouse" | "touch";
  73054. stopPropagation: Function;
  73055. timestamp: number;
  73056. type: "pointer-leave";
  73057. x: number;
  73058. y: number;
  73059. }
  73060. export interface ViewPointerMoveEvent {
  73061. button: number;
  73062. buttons: number;
  73063. native: any;
  73064. pointerId: number;
  73065. pointerType: "mouse" | "touch";
  73066. stopPropagation: Function;
  73067. timestamp: number;
  73068. type: "pointer-move";
  73069. x: number;
  73070. y: number;
  73071. }
  73072. export interface ViewPointerUpEvent {
  73073. button: number;
  73074. buttons: number;
  73075. native: any;
  73076. pointerId: number;
  73077. pointerType: "mouse" | "touch";
  73078. stopPropagation: Function;
  73079. timestamp: number;
  73080. type: "pointer-up";
  73081. x: number;
  73082. y: number;
  73083. }
  73084. export interface ViewResizeEvent {
  73085. height: number;
  73086. oldHeight: number;
  73087. oldWidth: number;
  73088. width: number;
  73089. }
  73090. export interface ViewPadding {
  73091. /**
  73092. * The left padding (in pixels).
  73093. *
  73094. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#padding)
  73095. */
  73096. left?: number;
  73097. /**
  73098. * The top padding (in pixels).
  73099. *
  73100. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#padding)
  73101. */
  73102. top?: number;
  73103. /**
  73104. * The right padding (in pixels).
  73105. *
  73106. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#padding)
  73107. */
  73108. right?: number;
  73109. /**
  73110. * The bottom padding (in pixels).
  73111. *
  73112. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#padding)
  73113. */
  73114. bottom?: number;
  73115. }
  73116. export interface ViewAnimation extends Accessor, corePromise {
  73117. }
  73118. export class ViewAnimation {
  73119. /**
  73120. * The state of the animation.
  73121. *
  73122. * @default running
  73123. *
  73124. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ViewAnimation.html#state)
  73125. */
  73126. readonly state: "running" | "finished" | "stopped" | "waiting-for-target";
  73127. /**
  73128. * The target of the animation.
  73129. *
  73130. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ViewAnimation.html#target)
  73131. */
  73132. target: Viewpoint;
  73133. /**
  73134. * Contains a [state](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ViewAnimation.html#state) property used for checking the state of the animation.
  73135. *
  73136. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ViewAnimation.html)
  73137. */
  73138. constructor(properties?: ViewAnimationProperties);
  73139. /**
  73140. * Finishes the view animation by immediately going to the target and sets the state of the animation to `finished`.
  73141. *
  73142. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ViewAnimation.html#finish)
  73143. */
  73144. finish(): void;
  73145. /**
  73146. * Stops the view animation at its current state and sets the state of the animation to `stopped`.
  73147. *
  73148. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ViewAnimation.html#stop)
  73149. */
  73150. stop(): void;
  73151. }
  73152. /** @deprecated Import the ViewAnimation class instead. */
  73153. export type ViewAnimationConstructor = typeof ViewAnimation;
  73154. interface ViewAnimationProperties {
  73155. /**
  73156. * The target of the animation.
  73157. *
  73158. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ViewAnimation.html#target)
  73159. */
  73160. target?: ViewpointProperties;
  73161. }
  73162. export interface ViewDragEventOrigin {
  73163. x: number;
  73164. y: number;
  73165. }
  73166. export class Search extends Accessor {
  73167. /**
  73168. * Indicates whether the place finder is enabled in the web scene or the web map.
  73169. *
  73170. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-Search.html#addressSearchEnabled)
  73171. */
  73172. addressSearchEnabled: boolean;
  73173. /**
  73174. * Whether search functionality is enabled in the web scene or the web map.
  73175. *
  73176. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-Search.html#enabled)
  73177. */
  73178. enabled: boolean;
  73179. /**
  73180. * The hint provided with the search dialog.
  73181. *
  73182. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-Search.html#hintText)
  73183. */
  73184. hintText: string;
  73185. /**
  73186. * A collection of layers to be included in search.
  73187. *
  73188. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-Search.html#layers)
  73189. */
  73190. layers: Collection<SearchLayer>;
  73191. /**
  73192. * A collection of tables to be included in search.
  73193. *
  73194. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-Search.html#tables)
  73195. */
  73196. tables: Collection<SearchTable>;
  73197. /**
  73198. * Represents the search parameters set within the web scene or the web map.
  73199. *
  73200. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-Search.html)
  73201. */
  73202. constructor(properties?: SearchProperties);
  73203. /**
  73204. * Creates a deep clone of this object.
  73205. *
  73206. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-Search.html#clone)
  73207. */
  73208. clone(): Search;
  73209. }
  73210. /** @deprecated Import the Search class instead. */
  73211. export type SearchConstructor = typeof Search;
  73212. interface SearchProperties {
  73213. /**
  73214. * Indicates whether the place finder is enabled in the web scene or the web map.
  73215. *
  73216. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-Search.html#addressSearchEnabled)
  73217. */
  73218. addressSearchEnabled?: boolean;
  73219. /**
  73220. * Whether search functionality is enabled in the web scene or the web map.
  73221. *
  73222. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-Search.html#enabled)
  73223. */
  73224. enabled?: boolean;
  73225. /**
  73226. * The hint provided with the search dialog.
  73227. *
  73228. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-Search.html#hintText)
  73229. */
  73230. hintText?: string;
  73231. /**
  73232. * A collection of layers to be included in search.
  73233. *
  73234. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-Search.html#layers)
  73235. */
  73236. layers?: CollectionProperties<SearchLayerProperties>;
  73237. /**
  73238. * A collection of tables to be included in search.
  73239. *
  73240. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-Search.html#tables)
  73241. */
  73242. tables?: CollectionProperties<SearchTableProperties>;
  73243. }
  73244. export class SearchLayer extends Accessor {
  73245. /**
  73246. * The field to use for search.
  73247. *
  73248. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchLayer.html#field)
  73249. */
  73250. field: SearchLayerField;
  73251. /**
  73252. * The id of the layer.
  73253. *
  73254. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchLayer.html#id)
  73255. */
  73256. id: string;
  73257. /**
  73258. * The sub layer index.
  73259. *
  73260. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchLayer.html#subLayer)
  73261. */
  73262. subLayer: number;
  73263. /**
  73264. * Represents a layer to be included in search.
  73265. *
  73266. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchLayer.html)
  73267. */
  73268. constructor(properties?: SearchLayerProperties);
  73269. /**
  73270. * Creates a deep clone of this object.
  73271. *
  73272. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchLayer.html#clone)
  73273. */
  73274. clone(): SearchLayer;
  73275. }
  73276. /** @deprecated Import the SearchLayer class instead. */
  73277. export type SearchLayerConstructor = typeof SearchLayer;
  73278. interface SearchLayerProperties {
  73279. /**
  73280. * The field to use for search.
  73281. *
  73282. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchLayer.html#field)
  73283. */
  73284. field?: SearchLayerFieldProperties;
  73285. /**
  73286. * The id of the layer.
  73287. *
  73288. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchLayer.html#id)
  73289. */
  73290. id?: string;
  73291. /**
  73292. * The sub layer index.
  73293. *
  73294. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchLayer.html#subLayer)
  73295. */
  73296. subLayer?: number;
  73297. }
  73298. export class SearchLayerField extends Accessor {
  73299. /**
  73300. * Whether or not the field is an exact match.
  73301. *
  73302. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchLayerField.html#exactMatch)
  73303. */
  73304. exactMatch: boolean;
  73305. /**
  73306. * The name of the field.
  73307. *
  73308. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchLayerField.html#name)
  73309. */
  73310. name: string;
  73311. /**
  73312. * The data type of the field.
  73313. *
  73314. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchLayerField.html#type)
  73315. */
  73316. type: | "small-integer"
  73317. | "integer"
  73318. | "single"
  73319. | "double"
  73320. | "long"
  73321. | "string"
  73322. | "date"
  73323. | "oid"
  73324. | "geometry"
  73325. | "blob"
  73326. | "raster"
  73327. | "guid"
  73328. | "global-id"
  73329. | "xml";
  73330. /**
  73331. * Represents the field of a layer to use for search.
  73332. *
  73333. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchLayerField.html)
  73334. */
  73335. constructor(properties?: SearchLayerFieldProperties);
  73336. /**
  73337. * Creates a deep clone of this object.
  73338. *
  73339. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchLayerField.html#clone)
  73340. */
  73341. clone(): SearchLayerField;
  73342. }
  73343. /** @deprecated Import the SearchLayerField class instead. */
  73344. export type SearchLayerFieldConstructor = typeof SearchLayerField;
  73345. interface SearchLayerFieldProperties {
  73346. /**
  73347. * Whether or not the field is an exact match.
  73348. *
  73349. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchLayerField.html#exactMatch)
  73350. */
  73351. exactMatch?: boolean;
  73352. /**
  73353. * The name of the field.
  73354. *
  73355. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchLayerField.html#name)
  73356. */
  73357. name?: string;
  73358. /**
  73359. * The data type of the field.
  73360. *
  73361. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchLayerField.html#type)
  73362. */
  73363. type?: | "small-integer"
  73364. | "integer"
  73365. | "single"
  73366. | "double"
  73367. | "long"
  73368. | "string"
  73369. | "date"
  73370. | "oid"
  73371. | "geometry"
  73372. | "blob"
  73373. | "raster"
  73374. | "guid"
  73375. | "global-id"
  73376. | "xml";
  73377. }
  73378. export class SearchTable extends Accessor {
  73379. /**
  73380. * The field to use for search.
  73381. *
  73382. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchTable.html#field)
  73383. */
  73384. field: SearchTableField;
  73385. /**
  73386. * The id of the table.
  73387. *
  73388. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchTable.html#id)
  73389. */
  73390. id: string;
  73391. /**
  73392. * Represents a table to be included in search.
  73393. *
  73394. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchTable.html)
  73395. */
  73396. constructor(properties?: SearchTableProperties);
  73397. /**
  73398. * Creates a deep clone of this object.
  73399. *
  73400. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchTable.html#clone)
  73401. */
  73402. clone(): SearchTable;
  73403. }
  73404. /** @deprecated Import the SearchTable class instead. */
  73405. export type SearchTableConstructor = typeof SearchTable;
  73406. interface SearchTableProperties {
  73407. /**
  73408. * The field to use for search.
  73409. *
  73410. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchTable.html#field)
  73411. */
  73412. field?: SearchTableFieldProperties;
  73413. /**
  73414. * The id of the table.
  73415. *
  73416. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchTable.html#id)
  73417. */
  73418. id?: string;
  73419. }
  73420. export class SearchTableField extends Accessor {
  73421. /**
  73422. * Whether or not the field is an exact match.
  73423. *
  73424. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchTableField.html#exactMatch)
  73425. */
  73426. exactMatch: boolean;
  73427. /**
  73428. * The name of the field.
  73429. *
  73430. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchTableField.html#name)
  73431. */
  73432. name: string;
  73433. /**
  73434. * The data type of the field.
  73435. *
  73436. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchTableField.html#type)
  73437. */
  73438. type: | "small-integer"
  73439. | "integer"
  73440. | "single"
  73441. | "double"
  73442. | "long"
  73443. | "string"
  73444. | "date"
  73445. | "oid"
  73446. | "geometry"
  73447. | "blob"
  73448. | "raster"
  73449. | "guid"
  73450. | "global-id"
  73451. | "xml";
  73452. /**
  73453. * Represents the field of a table to use for search.
  73454. *
  73455. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchTableField.html)
  73456. */
  73457. constructor(properties?: SearchTableFieldProperties);
  73458. /**
  73459. * Creates a deep clone of this object.
  73460. *
  73461. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchTableField.html#clone)
  73462. */
  73463. clone(): SearchTableField;
  73464. }
  73465. /** @deprecated Import the SearchTableField class instead. */
  73466. export type SearchTableFieldConstructor = typeof SearchTableField;
  73467. interface SearchTableFieldProperties {
  73468. /**
  73469. * Whether or not the field is an exact match.
  73470. *
  73471. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchTableField.html#exactMatch)
  73472. */
  73473. exactMatch?: boolean;
  73474. /**
  73475. * The name of the field.
  73476. *
  73477. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchTableField.html#name)
  73478. */
  73479. name?: string;
  73480. /**
  73481. * The data type of the field.
  73482. *
  73483. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchTableField.html#type)
  73484. */
  73485. type?: | "small-integer"
  73486. | "integer"
  73487. | "single"
  73488. | "double"
  73489. | "long"
  73490. | "string"
  73491. | "date"
  73492. | "oid"
  73493. | "geometry"
  73494. | "blob"
  73495. | "raster"
  73496. | "guid"
  73497. | "global-id"
  73498. | "xml";
  73499. }
  73500. export class Viewing extends Accessor {
  73501. /**
  73502. * An object specifying the search parameters set within the web scene or web map.
  73503. *
  73504. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-Viewing.html#search)
  73505. */
  73506. search: Search;
  73507. /**
  73508. * Represents view-specific properties of application and UI elements for the web map or web scene.
  73509. *
  73510. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-Viewing.html)
  73511. */
  73512. constructor(properties?: ViewingProperties);
  73513. /**
  73514. * Creates a deep clone of this object.
  73515. *
  73516. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-Viewing.html#clone)
  73517. */
  73518. clone(): Viewing;
  73519. }
  73520. /** @deprecated Import the Viewing class instead. */
  73521. export type ViewingConstructor = typeof Viewing;
  73522. interface ViewingProperties {
  73523. /**
  73524. * An object specifying the search parameters set within the web scene or web map.
  73525. *
  73526. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-Viewing.html#search)
  73527. */
  73528. search?: SearchProperties;
  73529. }
  73530. export interface GeotriggersInfo extends Accessor, JSONSupport {
  73531. }
  73532. export class GeotriggersInfo {
  73533. /**
  73534. * A list of Geotriggers.
  73535. *
  73536. * @default null
  73537. *
  73538. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-GeotriggersInfo.html#geotriggers)
  73539. */
  73540. geotriggers: Geotrigger[];
  73541. /**
  73542. * Information relating to a list of Geotriggers.
  73543. *
  73544. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-GeotriggersInfo.html)
  73545. */
  73546. constructor(properties?: GeotriggersInfoProperties);
  73547. /**
  73548. * Creates a deep clone of this object.
  73549. *
  73550. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-GeotriggersInfo.html#clone)
  73551. */
  73552. clone(): this;
  73553. static fromJSON(json: any): GeotriggersInfo;
  73554. }
  73555. /** @deprecated Import the GeotriggersInfo class instead. */
  73556. export type GeotriggersInfoConstructor = typeof GeotriggersInfo;
  73557. interface GeotriggersInfoProperties {
  73558. /**
  73559. * A list of Geotriggers.
  73560. *
  73561. * @default null
  73562. *
  73563. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-GeotriggersInfo.html#geotriggers)
  73564. */
  73565. geotriggers?: GeotriggerProperties[];
  73566. }
  73567. export interface DeviceLocationFeed extends Accessor, JSONSupport {
  73568. }
  73569. export class DeviceLocationFeed {
  73570. /**
  73571. * An optional Arcade expression that controls whether a location update will be used by a geotrigger.
  73572. *
  73573. * @default null
  73574. *
  73575. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-DeviceLocationFeed.html#filterExpression)
  73576. */
  73577. filterExpression: geotriggersInfoExpressionInfo;
  73578. /**
  73579. * String indicating the type of Geotrigger feed.
  73580. *
  73581. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-DeviceLocationFeed.html#type)
  73582. */
  73583. readonly type: "device-location";
  73584. /**
  73585. * A Geotrigger feed which uses the device location to provide updates.
  73586. *
  73587. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-DeviceLocationFeed.html)
  73588. */
  73589. constructor(properties?: DeviceLocationFeedProperties);
  73590. /**
  73591. * Creates a deep clone of this object.
  73592. *
  73593. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-DeviceLocationFeed.html#clone)
  73594. */
  73595. clone(): this;
  73596. static fromJSON(json: any): DeviceLocationFeed;
  73597. }
  73598. /** @deprecated Import the DeviceLocationFeed class instead. */
  73599. export type DeviceLocationFeedConstructor = typeof DeviceLocationFeed;
  73600. interface DeviceLocationFeedProperties {
  73601. /**
  73602. * An optional Arcade expression that controls whether a location update will be used by a geotrigger.
  73603. *
  73604. * @default null
  73605. *
  73606. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-DeviceLocationFeed.html#filterExpression)
  73607. */
  73608. filterExpression?: geotriggersInfoExpressionInfoProperties;
  73609. }
  73610. export interface geotriggersInfoExpressionInfo extends Accessor, JSONSupport {
  73611. }
  73612. export class geotriggersInfoExpressionInfo {
  73613. /**
  73614. * Optional expression in the [Arcade expression](https://developers.arcgis.com/arcade/) language.
  73615. *
  73616. * @default null
  73617. *
  73618. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-ExpressionInfo.html#expression)
  73619. */
  73620. expression: string;
  73621. /**
  73622. * Optional return type of the Arcade expression.
  73623. *
  73624. * @default string
  73625. *
  73626. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-ExpressionInfo.html#returnType)
  73627. */
  73628. returnType: "number" | "string";
  73629. /**
  73630. * Optional title of the expression.
  73631. *
  73632. * @default null
  73633. *
  73634. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-ExpressionInfo.html#title)
  73635. */
  73636. title: string;
  73637. /**
  73638. * Defines a script expression that can be used to compute values.
  73639. *
  73640. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-ExpressionInfo.html)
  73641. */
  73642. constructor(properties?: geotriggersInfoExpressionInfoProperties);
  73643. /**
  73644. * Creates a deep clone of this object.
  73645. *
  73646. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-ExpressionInfo.html#clone)
  73647. */
  73648. clone(): this;
  73649. static fromJSON(json: any): geotriggersInfoExpressionInfo;
  73650. }
  73651. /** @deprecated Import the geotriggersInfoExpressionInfo class instead. */
  73652. export type geotriggersInfoExpressionInfoConstructor = typeof geotriggersInfoExpressionInfo;
  73653. interface geotriggersInfoExpressionInfoProperties {
  73654. /**
  73655. * Optional expression in the [Arcade expression](https://developers.arcgis.com/arcade/) language.
  73656. *
  73657. * @default null
  73658. *
  73659. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-ExpressionInfo.html#expression)
  73660. */
  73661. expression?: string;
  73662. /**
  73663. * Optional return type of the Arcade expression.
  73664. *
  73665. * @default string
  73666. *
  73667. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-ExpressionInfo.html#returnType)
  73668. */
  73669. returnType?: "number" | "string";
  73670. /**
  73671. * Optional title of the expression.
  73672. *
  73673. * @default null
  73674. *
  73675. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-ExpressionInfo.html#title)
  73676. */
  73677. title?: string;
  73678. }
  73679. export interface FeatureFenceParameters extends Accessor, JSONSupport {
  73680. }
  73681. export class FeatureFenceParameters {
  73682. /**
  73683. * An optional buffer distance to apply to fence features in meters.
  73684. *
  73685. * @default null
  73686. *
  73687. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FeatureFenceParameters.html#bufferDistance)
  73688. */
  73689. bufferDistance: number;
  73690. /**
  73691. * An object defining the source for a feature layer to be used as fences.
  73692. *
  73693. * @default null
  73694. *
  73695. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FeatureFenceParameters.html#fenceSource)
  73696. */
  73697. fenceSource: FeatureLayerSource;
  73698. /**
  73699. * An optional filter to reduce the features used for the parameters.
  73700. *
  73701. * @default null
  73702. *
  73703. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FeatureFenceParameters.html#filter)
  73704. */
  73705. filter: geotriggersInfoFeatureFilter;
  73706. /**
  73707. * String indicating the fence parameters type.
  73708. *
  73709. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FeatureFenceParameters.html#type)
  73710. */
  73711. readonly type: "features";
  73712. /**
  73713. * Fence parameters for a Geotrigger that uses feature data from an online feature service.
  73714. *
  73715. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FeatureFenceParameters.html)
  73716. */
  73717. constructor(properties?: FeatureFenceParametersProperties);
  73718. /**
  73719. * Creates a deep clone of this object.
  73720. *
  73721. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FeatureFenceParameters.html#clone)
  73722. */
  73723. clone(): this;
  73724. static fromJSON(json: any): FeatureFenceParameters;
  73725. }
  73726. /** @deprecated Import the FeatureFenceParameters class instead. */
  73727. export type FeatureFenceParametersConstructor = typeof FeatureFenceParameters;
  73728. interface FeatureFenceParametersProperties {
  73729. /**
  73730. * An optional buffer distance to apply to fence features in meters.
  73731. *
  73732. * @default null
  73733. *
  73734. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FeatureFenceParameters.html#bufferDistance)
  73735. */
  73736. bufferDistance?: number;
  73737. /**
  73738. * An object defining the source for a feature layer to be used as fences.
  73739. *
  73740. * @default null
  73741. *
  73742. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FeatureFenceParameters.html#fenceSource)
  73743. */
  73744. fenceSource?: FeatureLayerSourceProperties;
  73745. /**
  73746. * An optional filter to reduce the features used for the parameters.
  73747. *
  73748. * @default null
  73749. *
  73750. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FeatureFenceParameters.html#filter)
  73751. */
  73752. filter?: geotriggersInfoFeatureFilterProperties;
  73753. }
  73754. export interface geotriggersInfoFeatureFilter extends Accessor, JSONSupport {
  73755. }
  73756. export class geotriggersInfoFeatureFilter {
  73757. /**
  73758. * An optional geometry used to filter the features from a feature table.
  73759. *
  73760. * @default null
  73761. *
  73762. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FeatureFilter.html#geometry)
  73763. */
  73764. geometry: Geometry;
  73765. /**
  73766. * An optional SQL-based definition expression string that narrows the data to be used.
  73767. *
  73768. * @default null
  73769. *
  73770. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FeatureFilter.html#where)
  73771. */
  73772. where: string;
  73773. /**
  73774. * Description of spatial and attribute filters that will be applied to Feature data.
  73775. *
  73776. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FeatureFilter.html)
  73777. */
  73778. constructor(properties?: geotriggersInfoFeatureFilterProperties);
  73779. /**
  73780. * Creates a deep clone of this object.
  73781. *
  73782. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FeatureFilter.html#clone)
  73783. */
  73784. clone(): this;
  73785. static fromJSON(json: any): geotriggersInfoFeatureFilter;
  73786. }
  73787. /** @deprecated Import the geotriggersInfoFeatureFilter class instead. */
  73788. export type geotriggersInfoFeatureFilterConstructor = typeof geotriggersInfoFeatureFilter;
  73789. interface geotriggersInfoFeatureFilterProperties {
  73790. /**
  73791. * An optional geometry used to filter the features from a feature table.
  73792. *
  73793. * @default null
  73794. *
  73795. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FeatureFilter.html#geometry)
  73796. */
  73797. geometry?: GeometryProperties;
  73798. /**
  73799. * An optional SQL-based definition expression string that narrows the data to be used.
  73800. *
  73801. * @default null
  73802. *
  73803. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FeatureFilter.html#where)
  73804. */
  73805. where?: string;
  73806. }
  73807. export interface FeatureLayerSource extends Accessor, JSONSupport {
  73808. }
  73809. export class FeatureLayerSource {
  73810. /**
  73811. * A unique identifying string that must match the `id` property of a feature layer in an associated map.
  73812. *
  73813. * @default null
  73814. *
  73815. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FeatureLayerSource.html#layerId)
  73816. */
  73817. layerId: string;
  73818. /**
  73819. * A URL to a service that will be used for all queries against the layer.
  73820. *
  73821. * @default null
  73822. *
  73823. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FeatureLayerSource.html#layerUrl)
  73824. */
  73825. layerUrl: string;
  73826. /**
  73827. * String indicating the type of source.
  73828. *
  73829. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FeatureLayerSource.html#type)
  73830. */
  73831. readonly type: "feature-layer";
  73832. /**
  73833. * The source for a feature layer to be used as fences for Geotriggers.
  73834. *
  73835. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FeatureLayerSource.html)
  73836. */
  73837. constructor(properties?: FeatureLayerSourceProperties);
  73838. /**
  73839. * Creates a deep clone of this object.
  73840. *
  73841. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FeatureLayerSource.html#clone)
  73842. */
  73843. clone(): this;
  73844. static fromJSON(json: any): FeatureLayerSource;
  73845. }
  73846. /** @deprecated Import the FeatureLayerSource class instead. */
  73847. export type FeatureLayerSourceConstructor = typeof FeatureLayerSource;
  73848. interface FeatureLayerSourceProperties {
  73849. /**
  73850. * A unique identifying string that must match the `id` property of a feature layer in an associated map.
  73851. *
  73852. * @default null
  73853. *
  73854. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FeatureLayerSource.html#layerId)
  73855. */
  73856. layerId?: string;
  73857. /**
  73858. * A URL to a service that will be used for all queries against the layer.
  73859. *
  73860. * @default null
  73861. *
  73862. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FeatureLayerSource.html#layerUrl)
  73863. */
  73864. layerUrl?: string;
  73865. }
  73866. export class FenceGeotrigger extends Accessor {
  73867. /**
  73868. * The rule that determines whether a fence polygon has been entered or exited by the geometry from a feed.
  73869. *
  73870. * @default enter-contains-and-exit-does-not-intersect
  73871. *
  73872. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FenceGeotrigger.html#enterExitRule)
  73873. */
  73874. enterExitRule: | "enter-contains-and-exit-does-not-contain"
  73875. | "enter-contains-and-exit-does-not-intersect"
  73876. | "enter-intersects-and-exit-does-not-intersect";
  73877. /**
  73878. * The feed for this Geotrigger.
  73879. *
  73880. * @default null
  73881. *
  73882. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FenceGeotrigger.html#feed)
  73883. */
  73884. feed: DeviceLocationFeed;
  73885. /**
  73886. * Indicates how the geotrigger will use accuracy information from a feed.
  73887. *
  73888. * @default use-geometry
  73889. *
  73890. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FenceGeotrigger.html#feedAccuracyMode)
  73891. */
  73892. feedAccuracyMode: "use-geometry" | "use-geometry-with-accuracy";
  73893. /**
  73894. * Indicates the type of event that will trigger notifications for the Fence Geotrigger.
  73895. *
  73896. * @default null
  73897. *
  73898. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FenceGeotrigger.html#fenceNotificationRule)
  73899. */
  73900. fenceNotificationRule: "enter" | "enter-or-exit" | "exit";
  73901. /**
  73902. * An object defining the fences to use for this Geotrigger.
  73903. *
  73904. * @default null
  73905. *
  73906. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FenceGeotrigger.html#fenceParameters)
  73907. */
  73908. fenceParameters: FeatureFenceParameters;
  73909. /**
  73910. * The name for this Geotrigger.
  73911. *
  73912. * @default null
  73913. *
  73914. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FenceGeotrigger.html#name)
  73915. */
  73916. name: string;
  73917. /**
  73918. * Options that control the notification information sent to a client app when a Geotrigger condition is met.
  73919. *
  73920. * @default null
  73921. *
  73922. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FenceGeotrigger.html#notificationOptions)
  73923. */
  73924. notificationOptions: GeotriggerNotificationOptions;
  73925. /**
  73926. * String indicating the Geotrigger condition type.
  73927. *
  73928. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FenceGeotrigger.html#type)
  73929. */
  73930. readonly type: "fence";
  73931. /**
  73932. * A condition which monitors the dynamic elements of the geotrigger feed for enter/exit against the fences defined by the Fence Parameters.
  73933. *
  73934. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FenceGeotrigger.html)
  73935. */
  73936. constructor(properties?: FenceGeotriggerProperties);
  73937. }
  73938. /** @deprecated Import the FenceGeotrigger class instead. */
  73939. export type FenceGeotriggerConstructor = typeof FenceGeotrigger;
  73940. interface FenceGeotriggerProperties {
  73941. /**
  73942. * The rule that determines whether a fence polygon has been entered or exited by the geometry from a feed.
  73943. *
  73944. * @default enter-contains-and-exit-does-not-intersect
  73945. *
  73946. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FenceGeotrigger.html#enterExitRule)
  73947. */
  73948. enterExitRule?: | "enter-contains-and-exit-does-not-contain"
  73949. | "enter-contains-and-exit-does-not-intersect"
  73950. | "enter-intersects-and-exit-does-not-intersect";
  73951. /**
  73952. * The feed for this Geotrigger.
  73953. *
  73954. * @default null
  73955. *
  73956. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FenceGeotrigger.html#feed)
  73957. */
  73958. feed?: DeviceLocationFeedProperties;
  73959. /**
  73960. * Indicates how the geotrigger will use accuracy information from a feed.
  73961. *
  73962. * @default use-geometry
  73963. *
  73964. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FenceGeotrigger.html#feedAccuracyMode)
  73965. */
  73966. feedAccuracyMode?: "use-geometry" | "use-geometry-with-accuracy";
  73967. /**
  73968. * Indicates the type of event that will trigger notifications for the Fence Geotrigger.
  73969. *
  73970. * @default null
  73971. *
  73972. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FenceGeotrigger.html#fenceNotificationRule)
  73973. */
  73974. fenceNotificationRule?: "enter" | "enter-or-exit" | "exit";
  73975. /**
  73976. * An object defining the fences to use for this Geotrigger.
  73977. *
  73978. * @default null
  73979. *
  73980. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FenceGeotrigger.html#fenceParameters)
  73981. */
  73982. fenceParameters?: FeatureFenceParametersProperties;
  73983. /**
  73984. * The name for this Geotrigger.
  73985. *
  73986. * @default null
  73987. *
  73988. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FenceGeotrigger.html#name)
  73989. */
  73990. name?: string;
  73991. /**
  73992. * Options that control the notification information sent to a client app when a Geotrigger condition is met.
  73993. *
  73994. * @default null
  73995. *
  73996. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-FenceGeotrigger.html#notificationOptions)
  73997. */
  73998. notificationOptions?: GeotriggerNotificationOptionsProperties;
  73999. }
  74000. export interface Geotrigger extends Accessor, JSONSupport {
  74001. }
  74002. export class Geotrigger {
  74003. /**
  74004. * String indicating the Geotrigger condition type.
  74005. *
  74006. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-Geotrigger.html#type)
  74007. */
  74008. readonly type: "fence";
  74009. /**
  74010. * A Geotrigger is a condition that will be monitored against dynamic GIS data - for example using a spatial operation to check for enter/exit.
  74011. *
  74012. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-Geotrigger.html)
  74013. */
  74014. constructor(properties?: GeotriggerProperties);
  74015. /**
  74016. * Creates a deep clone of this object.
  74017. *
  74018. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-Geotrigger.html#clone)
  74019. */
  74020. clone(): this;
  74021. static fromJSON(json: any): Geotrigger;
  74022. }
  74023. /** @deprecated Import the Geotrigger class instead. */
  74024. export type GeotriggerConstructor = typeof Geotrigger;
  74025. interface GeotriggerProperties {
  74026. }
  74027. export interface GeotriggerNotificationOptions extends Accessor, JSONSupport {
  74028. }
  74029. export class GeotriggerNotificationOptions {
  74030. /**
  74031. * An optional Arcade expression which can be used to configure notification information when the Geotrigger condition is met.
  74032. *
  74033. * @default null
  74034. *
  74035. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-GeotriggerNotificationOptions.html#expressionInfo)
  74036. */
  74037. expressionInfo: geotriggersInfoExpressionInfo;
  74038. /**
  74039. * An optional list of strings indicating the set of possible actions resulting from this Geotrigger.
  74040. *
  74041. * @default null
  74042. *
  74043. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-GeotriggerNotificationOptions.html#requestedActions)
  74044. */
  74045. requestedActions: string[];
  74046. /**
  74047. * Options that control the notification information sent to a client app client when a Geotrigger condition is met.
  74048. *
  74049. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-GeotriggerNotificationOptions.html)
  74050. */
  74051. constructor(properties?: GeotriggerNotificationOptionsProperties);
  74052. /**
  74053. * Creates a deep clone of this object.
  74054. *
  74055. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-GeotriggerNotificationOptions.html#clone)
  74056. */
  74057. clone(): this;
  74058. static fromJSON(json: any): GeotriggerNotificationOptions;
  74059. }
  74060. /** @deprecated Import the GeotriggerNotificationOptions class instead. */
  74061. export type GeotriggerNotificationOptionsConstructor = typeof GeotriggerNotificationOptions;
  74062. interface GeotriggerNotificationOptionsProperties {
  74063. /**
  74064. * An optional Arcade expression which can be used to configure notification information when the Geotrigger condition is met.
  74065. *
  74066. * @default null
  74067. *
  74068. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-GeotriggerNotificationOptions.html#expressionInfo)
  74069. */
  74070. expressionInfo?: geotriggersInfoExpressionInfoProperties;
  74071. /**
  74072. * An optional list of strings indicating the set of possible actions resulting from this Geotrigger.
  74073. *
  74074. * @default null
  74075. *
  74076. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-geotriggersInfo-GeotriggerNotificationOptions.html#requestedActions)
  74077. */
  74078. requestedActions?: string[];
  74079. }
  74080. export interface WebMap extends Map, corePromise {
  74081. }
  74082. export class WebMap {
  74083. /**
  74084. * The applicationProperties contains the viewing properties of the WebMap.
  74085. *
  74086. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#applicationProperties)
  74087. */
  74088. applicationProperties: ApplicationProperties;
  74089. /**
  74090. * The name of the application that authored the WebMap.
  74091. *
  74092. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#authoringApp)
  74093. */
  74094. authoringApp: string;
  74095. /**
  74096. * The version of the application that authored the WebMap.
  74097. *
  74098. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#authoringAppVersion)
  74099. */
  74100. authoringAppVersion: string;
  74101. /**
  74102. * An array of saved geographic extents that allow end users to quickly navigate to a particular area of interest.
  74103. *
  74104. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#bookmarks)
  74105. */
  74106. bookmarks: Collection<Bookmark>;
  74107. /**
  74108. * When a web map is configured as floor-aware, it has a floorInfo property defined.
  74109. *
  74110. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#floorInfo)
  74111. */
  74112. floorInfo: MapFloorInfo;
  74113. /**
  74114. * Information relating to a list of Geotriggers.
  74115. *
  74116. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#geotriggersInfo)
  74117. */
  74118. geotriggersInfo: GeotriggersInfo;
  74119. /**
  74120. * The initial view of the WebMap.
  74121. *
  74122. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#initialViewProperties)
  74123. */
  74124. initialViewProperties: InitialViewProperties;
  74125. /**
  74126. * Indicates whether the instance has loaded.
  74127. *
  74128. * @default false
  74129. *
  74130. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#loaded)
  74131. */
  74132. readonly loaded: boolean;
  74133. /**
  74134. * The Error object returned if an error occurred while loading.
  74135. *
  74136. * @default null
  74137. *
  74138. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#loadError)
  74139. */
  74140. readonly loadError: Error;
  74141. /**
  74142. * Represents the status of a [load](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#load) operation.
  74143. *
  74144. * @default not-loaded
  74145. *
  74146. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#loadStatus)
  74147. */
  74148. readonly loadStatus: "not-loaded" | "loading" | "failed" | "loaded";
  74149. /**
  74150. * The portal item from which the WebMap is loaded.
  74151. *
  74152. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#portalItem)
  74153. */
  74154. portalItem: PortalItem;
  74155. /**
  74156. * Provides multiple slides.
  74157. *
  74158. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#presentation)
  74159. */
  74160. presentation: any;
  74161. /**
  74162. * The version of the source document from which the WebMap was read.
  74163. *
  74164. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#sourceVersion)
  74165. */
  74166. readonly sourceVersion: WebMapSourceVersion;
  74167. /**
  74168. * The URL to the thumbnail used for the webmap.
  74169. *
  74170. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#thumbnailUrl)
  74171. */
  74172. thumbnailUrl: string;
  74173. /**
  74174. * The utilityNetworks object contains a collection of [UtilityNetworks](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-UtilityNetwork.html) saved on the web map.
  74175. *
  74176. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#utilityNetworks)
  74177. */
  74178. utilityNetworks: Collection<UtilityNetwork>;
  74179. /**
  74180. * The widgets object contains widgets that are exposed to the user.
  74181. *
  74182. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#widgets)
  74183. */
  74184. widgets: Widgets;
  74185. /**
  74186. * Loads a [WebMap](https://doc.arcgis.com/en/arcgis-online/create-maps/make-your-first-map.htm) from [ArcGIS Online](https://www.arcgis.com/home/) or [ArcGIS Enterprise portal](https://enterprise.arcgis.com/en/portal/latest/administer/windows/what-is-portal-for-arcgis-.htm) into a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  74187. *
  74188. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html)
  74189. */
  74190. constructor(properties?: WebMapProperties);
  74191. /**
  74192. * Triggers the loading of the WebMap instance.
  74193. *
  74194. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#load)
  74195. */
  74196. load(): Promise<any>;
  74197. /**
  74198. * Loads all the externally loadable resources associated with the webmap.
  74199. *
  74200. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#loadAll)
  74201. */
  74202. loadAll(): Promise<WebMap>;
  74203. /**
  74204. * Saves the webmap to its associated portal item.
  74205. *
  74206. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#save)
  74207. */
  74208. save(options?: WebMapSaveOptions): Promise<PortalItem>;
  74209. /**
  74210. * Saves the webmap to a new [portal item](https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalItem.html).
  74211. *
  74212. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#saveAs)
  74213. */
  74214. saveAs(portalItem: PortalItem | PortalItemProperties, options?: WebMapSaveAsOptions): Promise<PortalItem>;
  74215. /**
  74216. * Update properties of the WebMap related to the view.
  74217. *
  74218. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#updateFrom)
  74219. */
  74220. updateFrom(view: MapView, options?: WebMapUpdateFromOptions): Promise<any>;
  74221. /**
  74222. * Creates a new instance of this class and initializes it with values from a JSON object generated from an ArcGIS product.
  74223. *
  74224. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#fromJSON)
  74225. */
  74226. static fromJSON(json: any): any;
  74227. }
  74228. /** @deprecated Import the WebMap class instead. */
  74229. export type WebMapConstructor = typeof WebMap;
  74230. interface WebMapProperties extends MapProperties {
  74231. /**
  74232. * The applicationProperties contains the viewing properties of the WebMap.
  74233. *
  74234. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#applicationProperties)
  74235. */
  74236. applicationProperties?: ApplicationPropertiesProperties;
  74237. /**
  74238. * The name of the application that authored the WebMap.
  74239. *
  74240. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#authoringApp)
  74241. */
  74242. authoringApp?: string;
  74243. /**
  74244. * The version of the application that authored the WebMap.
  74245. *
  74246. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#authoringAppVersion)
  74247. */
  74248. authoringAppVersion?: string;
  74249. /**
  74250. * An array of saved geographic extents that allow end users to quickly navigate to a particular area of interest.
  74251. *
  74252. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#bookmarks)
  74253. */
  74254. bookmarks?: CollectionProperties<BookmarkProperties>;
  74255. /**
  74256. * When a web map is configured as floor-aware, it has a floorInfo property defined.
  74257. *
  74258. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#floorInfo)
  74259. */
  74260. floorInfo?: MapFloorInfoProperties;
  74261. /**
  74262. * Information relating to a list of Geotriggers.
  74263. *
  74264. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#geotriggersInfo)
  74265. */
  74266. geotriggersInfo?: GeotriggersInfoProperties;
  74267. /**
  74268. * The initial view of the WebMap.
  74269. *
  74270. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#initialViewProperties)
  74271. */
  74272. initialViewProperties?: InitialViewPropertiesProperties;
  74273. /**
  74274. * The portal item from which the WebMap is loaded.
  74275. *
  74276. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#portalItem)
  74277. */
  74278. portalItem?: PortalItemProperties;
  74279. /**
  74280. * Provides multiple slides.
  74281. *
  74282. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#presentation)
  74283. */
  74284. presentation?: any;
  74285. /**
  74286. * The URL to the thumbnail used for the webmap.
  74287. *
  74288. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#thumbnailUrl)
  74289. */
  74290. thumbnailUrl?: string;
  74291. /**
  74292. * The utilityNetworks object contains a collection of [UtilityNetworks](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-UtilityNetwork.html) saved on the web map.
  74293. *
  74294. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#utilityNetworks)
  74295. */
  74296. utilityNetworks?: CollectionProperties<UtilityNetworkProperties>;
  74297. /**
  74298. * The widgets object contains widgets that are exposed to the user.
  74299. *
  74300. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#widgets)
  74301. */
  74302. widgets?: Widgets;
  74303. }
  74304. export class ApplicationProperties extends Accessor {
  74305. /**
  74306. * View-specific properties of application and UI elements for the web map.
  74307. *
  74308. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-ApplicationProperties.html#viewing)
  74309. */
  74310. viewing: Viewing;
  74311. /**
  74312. * Represents configuration of application and UI elements of the [WebMap](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html).
  74313. *
  74314. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-ApplicationProperties.html)
  74315. */
  74316. constructor(properties?: ApplicationPropertiesProperties);
  74317. }
  74318. /** @deprecated Import the ApplicationProperties class instead. */
  74319. export type ApplicationPropertiesConstructor = typeof ApplicationProperties;
  74320. interface ApplicationPropertiesProperties {
  74321. /**
  74322. * View-specific properties of application and UI elements for the web map.
  74323. *
  74324. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-ApplicationProperties.html#viewing)
  74325. */
  74326. viewing?: ViewingProperties;
  74327. }
  74328. export interface ColorBackground extends Accessor, JSONSupport {
  74329. }
  74330. export class ColorBackground {
  74331. /**
  74332. * The color of the background.
  74333. *
  74334. * @default black
  74335. *
  74336. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-background-ColorBackground.html#color)
  74337. */
  74338. color: Color;
  74339. /**
  74340. * Represents the background color of the [WebMap](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html) when displayed in a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  74341. *
  74342. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-background-ColorBackground.html)
  74343. */
  74344. constructor(properties?: ColorBackgroundProperties);
  74345. /**
  74346. * Creates a deep clone of the object.
  74347. *
  74348. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-background-ColorBackground.html#clone)
  74349. */
  74350. clone(): ColorBackground;
  74351. static fromJSON(json: any): ColorBackground;
  74352. }
  74353. /** @deprecated Import the ColorBackground class instead. */
  74354. export type ColorBackgroundConstructor = typeof ColorBackground;
  74355. interface ColorBackgroundProperties {
  74356. /**
  74357. * The color of the background.
  74358. *
  74359. * @default black
  74360. *
  74361. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-background-ColorBackground.html#color)
  74362. */
  74363. color?: Color | number[] | string;
  74364. }
  74365. export interface Bookmark extends Accessor, Identifiable {
  74366. }
  74367. export class Bookmark {
  74368. /**
  74369. * The name of the bookmark item.
  74370. *
  74371. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-Bookmark.html#name)
  74372. */
  74373. name: string;
  74374. /**
  74375. * The URL for a thumbnail image.
  74376. *
  74377. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-Bookmark.html#thumbnail)
  74378. */
  74379. thumbnail: BookmarkThumbnail;
  74380. /**
  74381. * The time extent of the bookmark item.
  74382. *
  74383. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-Bookmark.html#timeExtent)
  74384. */
  74385. timeExtent: TimeExtent;
  74386. /**
  74387. * The viewpoint of the bookmark item.
  74388. *
  74389. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-Bookmark.html#viewpoint)
  74390. */
  74391. viewpoint: Viewpoint;
  74392. /**
  74393. * A bookmark is a saved map extent that allows end users to quickly navigate to a particular area of interest using the [Bookmarks](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html) widget.
  74394. *
  74395. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-Bookmark.html)
  74396. */
  74397. constructor(properties?: BookmarkProperties);
  74398. }
  74399. /** @deprecated Import the Bookmark class instead. */
  74400. export type BookmarkConstructor = typeof Bookmark;
  74401. interface BookmarkProperties {
  74402. /**
  74403. * The name of the bookmark item.
  74404. *
  74405. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-Bookmark.html#name)
  74406. */
  74407. name?: string;
  74408. /**
  74409. * The URL for a thumbnail image.
  74410. *
  74411. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-Bookmark.html#thumbnail)
  74412. */
  74413. thumbnail?: BookmarkThumbnail;
  74414. /**
  74415. * The time extent of the bookmark item.
  74416. *
  74417. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-Bookmark.html#timeExtent)
  74418. */
  74419. timeExtent?: TimeExtentProperties;
  74420. /**
  74421. * The viewpoint of the bookmark item.
  74422. *
  74423. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-Bookmark.html#viewpoint)
  74424. */
  74425. viewpoint?: ViewpointProperties;
  74426. }
  74427. export interface BookmarkThumbnail {
  74428. /**
  74429. * URL to a thumbnail to display.
  74430. *
  74431. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-Bookmark.html#thumbnail)
  74432. */
  74433. url?: string;
  74434. }
  74435. export interface InitialViewProperties extends Accessor, corePromise {
  74436. }
  74437. export class InitialViewProperties {
  74438. /**
  74439. * The background color of the [WebMap](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html).
  74440. *
  74441. * @default null
  74442. *
  74443. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-InitialViewProperties.html#background)
  74444. */
  74445. background: ColorBackground;
  74446. /**
  74447. * The spatial reference of the [WebMap](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html).
  74448. *
  74449. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-InitialViewProperties.html#spatialReference)
  74450. */
  74451. spatialReference: SpatialReference;
  74452. /**
  74453. * The initial viewpoint of the [WebMap](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html).
  74454. *
  74455. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-InitialViewProperties.html#viewpoint)
  74456. */
  74457. viewpoint: Viewpoint;
  74458. /**
  74459. * Represents the initial viewing state of the [WebMap](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html) when displayed in a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  74460. *
  74461. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-InitialViewProperties.html)
  74462. */
  74463. constructor(properties?: InitialViewPropertiesProperties);
  74464. /**
  74465. * Creates a deep clone of this object.
  74466. *
  74467. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-InitialViewProperties.html#clone)
  74468. */
  74469. clone(): InitialViewProperties;
  74470. }
  74471. /** @deprecated Import the InitialViewProperties class instead. */
  74472. export type InitialViewPropertiesConstructor = typeof InitialViewProperties;
  74473. interface InitialViewPropertiesProperties {
  74474. /**
  74475. * The background color of the [WebMap](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html).
  74476. *
  74477. * @default null
  74478. *
  74479. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-InitialViewProperties.html#background)
  74480. */
  74481. background?: ColorBackgroundProperties;
  74482. /**
  74483. * The spatial reference of the [WebMap](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html).
  74484. *
  74485. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-InitialViewProperties.html#spatialReference)
  74486. */
  74487. spatialReference?: SpatialReferenceProperties;
  74488. /**
  74489. * The initial viewpoint of the [WebMap](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html).
  74490. *
  74491. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-InitialViewProperties.html#viewpoint)
  74492. */
  74493. viewpoint?: ViewpointProperties;
  74494. }
  74495. /**
  74496. * Floor filtering is controlled by a configurable [floor filter](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter.html).
  74497. *
  74498. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#FloorFilter)
  74499. */
  74500. export interface WebMapFloorFilter {
  74501. /**
  74502. * Indicates whether the FloorFilter is active and filtering the displayed content according to the [FloorFilter](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter.html) selection.
  74503. *
  74504. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#FloorFilter)
  74505. */
  74506. enabled: boolean;
  74507. /**
  74508. * Indicates whether the levels list is showing the long names from longNameField.
  74509. *
  74510. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#FloorFilter)
  74511. */
  74512. longNames: boolean;
  74513. /**
  74514. * Indicates whether the floor filter has been minimized to show only the levels list.
  74515. *
  74516. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#FloorFilter)
  74517. */
  74518. minimized: boolean;
  74519. /**
  74520. * Indicates whether the levels portion of the floor filter has been pinned to show the levels list.
  74521. *
  74522. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#FloorFilter)
  74523. */
  74524. pinnedLevels: boolean;
  74525. /**
  74526. * Contains the site ID for the initially selected [site](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter.html#site) in the floor filter.
  74527. *
  74528. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#FloorFilter)
  74529. */
  74530. site: string;
  74531. /**
  74532. * Contains the facility ID for the initially selected [facility](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter.html#facility) in the floor filter.
  74533. *
  74534. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#FloorFilter)
  74535. */
  74536. facility: string;
  74537. /**
  74538. * Contains the level ID for the initially selected floor, which is used when filtering layers by their configured floor-aware properties.
  74539. *
  74540. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#FloorFilter)
  74541. */
  74542. level: string;
  74543. }
  74544. /**
  74545. * Time animation is controlled by a configurable [time slider](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html).
  74546. *
  74547. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#TimeSlider)
  74548. */
  74549. export interface WebMapTimeSlider {
  74550. /**
  74551. * The current time extent of the time slider.
  74552. *
  74553. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#TimeSlider)
  74554. */
  74555. currentTimeExtent: TimeExtent;
  74556. /**
  74557. * The temporal extent for the entire slider.
  74558. *
  74559. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#TimeSlider)
  74560. */
  74561. fullTimeExtent: TimeExtent;
  74562. /**
  74563. * When `true`, the time slider will play its animation in a loop.
  74564. *
  74565. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#TimeSlider)
  74566. */
  74567. loop: boolean;
  74568. /**
  74569. * The number of stops.
  74570. *
  74571. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#TimeSlider)
  74572. */
  74573. numStops: number;
  74574. /**
  74575. * The thumb count.
  74576. *
  74577. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#TimeSlider)
  74578. */
  74579. numThumbs: number;
  74580. /**
  74581. * An array of dates for the time slider widget.
  74582. *
  74583. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#TimeSlider)
  74584. */
  74585. stops: Date[];
  74586. /**
  74587. * The time rate in milliseconds between animation steps.
  74588. *
  74589. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#TimeSlider)
  74590. */
  74591. stopDelay: number;
  74592. /**
  74593. * Defines regularly spaced stops on the time slider from a [TimeInterval](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeInterval.html) object.
  74594. *
  74595. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#TimeSlider)
  74596. */
  74597. stopInterval: TimeInterval;
  74598. }
  74599. export interface WebMapSaveAsOptions {
  74600. /**
  74601. * The folder in which to save the item.
  74602. *
  74603. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#saveAs)
  74604. */
  74605. folder?: PortalFolder;
  74606. /**
  74607. * Allow the webmap to be saved even in the case it contains unsupported content (layers, renderers, symbols).
  74608. *
  74609. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#saveAs)
  74610. */
  74611. ignoreUnsupported?: boolean;
  74612. }
  74613. export interface WebMapSaveOptions {
  74614. /**
  74615. * When `true`, the webmap will save even if it contains unsupported content (layers, renderers, symbols).
  74616. *
  74617. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#save)
  74618. */
  74619. ignoreUnsupported?: boolean;
  74620. }
  74621. export interface WebMapSourceVersion {
  74622. /**
  74623. * The major version of the WebMap.
  74624. *
  74625. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#sourceVersion)
  74626. */
  74627. major: number;
  74628. /**
  74629. * The minor version of the WebMap.
  74630. *
  74631. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#sourceVersion)
  74632. */
  74633. minor: number;
  74634. }
  74635. export interface WebMapUpdateFromOptions {
  74636. /**
  74637. * When `true`, the view's background will not be updated for the webmap.
  74638. *
  74639. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#updateFrom)
  74640. */
  74641. backgroundExcluded?: boolean;
  74642. /**
  74643. * When `true`, the initial [viewpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-InitialViewProperties.html#viewpoint) of the view will not be updated for the webmap.
  74644. *
  74645. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#updateFrom)
  74646. */
  74647. viewpointExcluded?: boolean;
  74648. /**
  74649. * When `true`, the view's scale will be updated for the webmap.
  74650. *
  74651. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#updateFrom)
  74652. */
  74653. scalePreserved?: boolean;
  74654. /**
  74655. * When `true`, the thumbnail will not be updated for the webmap.
  74656. *
  74657. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#updateFrom)
  74658. */
  74659. thumbnailExcluded?: boolean;
  74660. /**
  74661. * The size of the thumbnail.
  74662. *
  74663. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#updateFrom)
  74664. */
  74665. thumbnailSize?: WebMapUpdateFromOptionsThumbnailSize;
  74666. /**
  74667. * When `true`, the webmap's [widgets](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#widgets) property will not be updated.
  74668. *
  74669. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#updateFrom)
  74670. */
  74671. widgetsExcluded?: boolean;
  74672. }
  74673. export interface WebMapUpdateFromOptionsThumbnailSize {
  74674. /**
  74675. * The width of the thumbnail.
  74676. *
  74677. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#updateFrom)
  74678. */
  74679. width: number;
  74680. /**
  74681. * The height of the thumbnail.
  74682. *
  74683. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#updateFrom)
  74684. */
  74685. height: number;
  74686. }
  74687. /**
  74688. * The widgets object contains widgets that are exposed to the user.
  74689. *
  74690. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#Widgets)
  74691. */
  74692. export interface Widgets {
  74693. /**
  74694. * Time animation is controlled by a configurable [time slider](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html).
  74695. *
  74696. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#Widgets)
  74697. */
  74698. timeSlider: WebMapTimeSlider;
  74699. /**
  74700. * Floor filtering is controlled by a configurable [floor filter](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter.html).
  74701. *
  74702. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#Widgets)
  74703. */
  74704. floorFilter: WebMapFloorFilter;
  74705. }
  74706. export interface WebScene extends Map, corePromise {
  74707. }
  74708. export class WebScene {
  74709. /**
  74710. * Configuration of application and UI elements.
  74711. *
  74712. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#applicationProperties)
  74713. */
  74714. applicationProperties: websceneApplicationProperties;
  74715. /**
  74716. * The name of the application that authored the WebScene.
  74717. *
  74718. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#authoringApp)
  74719. */
  74720. authoringApp: string;
  74721. /**
  74722. * The version of the application that authored the WebScene.
  74723. *
  74724. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#authoringAppVersion)
  74725. */
  74726. authoringAppVersion: string;
  74727. /**
  74728. * *This property only applies to local scenes.* Represents an optional clipping area used to define the bounds or [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) of a local scene.
  74729. *
  74730. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#clippingArea)
  74731. */
  74732. clippingArea: Extent;
  74733. /**
  74734. * *This property only applies to local scenes.* Determines whether clipping using the [clippingArea](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#clippingArea) is enabled.
  74735. *
  74736. * @default false
  74737. *
  74738. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#clippingEnabled)
  74739. */
  74740. clippingEnabled: boolean;
  74741. /**
  74742. * When a web scene is configured as floor-aware, it has a floorInfo property defined.
  74743. *
  74744. * @default null
  74745. *
  74746. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#floorInfo)
  74747. */
  74748. floorInfo: MapFloorInfo;
  74749. /**
  74750. * The height model info of the [WebScene](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html).
  74751. *
  74752. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#heightModelInfo)
  74753. */
  74754. heightModelInfo: HeightModelInfo;
  74755. /**
  74756. * The initial view of the WebScene.
  74757. *
  74758. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#initialViewProperties)
  74759. */
  74760. initialViewProperties: websceneInitialViewProperties;
  74761. /**
  74762. * Indicates whether the instance has loaded.
  74763. *
  74764. * @default false
  74765. *
  74766. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#loaded)
  74767. */
  74768. readonly loaded: boolean;
  74769. /**
  74770. * The Error object returned if an error occurred while loading.
  74771. *
  74772. * @default null
  74773. *
  74774. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#loadError)
  74775. */
  74776. readonly loadError: Error;
  74777. /**
  74778. * Represents the status of a [load](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#load) operation.
  74779. *
  74780. * @default not-loaded
  74781. *
  74782. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#loadStatus)
  74783. */
  74784. readonly loadStatus: "not-loaded" | "loading" | "failed" | "loaded";
  74785. /**
  74786. * The portal item from which the WebScene is loaded.
  74787. *
  74788. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#portalItem)
  74789. */
  74790. portalItem: PortalItem;
  74791. /**
  74792. * Provides a [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of slides that act as bookmarks for saving predefined [viewpoints](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html) and visible layers.
  74793. *
  74794. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#presentation)
  74795. */
  74796. presentation: Presentation;
  74797. /**
  74798. * The version of the source document from which the WebScene was read.
  74799. *
  74800. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#sourceVersion)
  74801. */
  74802. readonly sourceVersion: WebSceneSourceVersion;
  74803. /**
  74804. * The URL to the thumbnail used for the web scene.
  74805. *
  74806. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#thumbnailUrl)
  74807. */
  74808. thumbnailUrl: string;
  74809. /**
  74810. * The latest supported webscene spec version.
  74811. *
  74812. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#version)
  74813. */
  74814. static readonly version: string;
  74815. /**
  74816. * The web scene is the core element of 3D mapping across ArcGIS.
  74817. *
  74818. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html)
  74819. */
  74820. constructor(properties?: WebSceneProperties);
  74821. /**
  74822. * Triggers the loading of the WebScene instance.
  74823. *
  74824. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#load)
  74825. */
  74826. load(): Promise<any>;
  74827. /**
  74828. * Loads all the externally loadable resources associated with the webscene.
  74829. *
  74830. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#loadAll)
  74831. */
  74832. loadAll(): Promise<WebScene>;
  74833. /**
  74834. * Saves the webscene to its associated portal item.
  74835. *
  74836. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#save)
  74837. */
  74838. save(options?: WebSceneSaveOptions): Promise<PortalItem>;
  74839. /**
  74840. * Saves the webscene to a new portal item.
  74841. *
  74842. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#saveAs)
  74843. */
  74844. saveAs(portalItem: PortalItem | PortalItemProperties, options?: WebSceneSaveAsOptions): Promise<PortalItem>;
  74845. /**
  74846. * Converts an instance of this class to its ArcGIS portal JSON representation.
  74847. *
  74848. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#toJSON)
  74849. */
  74850. toJSON(): any;
  74851. /**
  74852. * Update properties of the WebScene related to the view.
  74853. *
  74854. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#updateFrom)
  74855. */
  74856. updateFrom(view: SceneView, options?: WebSceneUpdateFromOptions): Promise<any>;
  74857. /**
  74858. * Creates a new instance of this class and initializes it with values from a JSON object generated from an ArcGIS product.
  74859. *
  74860. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#fromJSON)
  74861. */
  74862. static fromJSON(json: any): WebScene;
  74863. }
  74864. /** @deprecated Import the WebScene class instead. */
  74865. export type WebSceneConstructor = typeof WebScene;
  74866. interface WebSceneProperties extends MapProperties {
  74867. /**
  74868. * Configuration of application and UI elements.
  74869. *
  74870. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#applicationProperties)
  74871. */
  74872. applicationProperties?: websceneApplicationPropertiesProperties;
  74873. /**
  74874. * The name of the application that authored the WebScene.
  74875. *
  74876. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#authoringApp)
  74877. */
  74878. authoringApp?: string;
  74879. /**
  74880. * The version of the application that authored the WebScene.
  74881. *
  74882. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#authoringAppVersion)
  74883. */
  74884. authoringAppVersion?: string;
  74885. /**
  74886. * *This property only applies to local scenes.* Represents an optional clipping area used to define the bounds or [Extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Extent.html) of a local scene.
  74887. *
  74888. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#clippingArea)
  74889. */
  74890. clippingArea?: ExtentProperties;
  74891. /**
  74892. * *This property only applies to local scenes.* Determines whether clipping using the [clippingArea](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#clippingArea) is enabled.
  74893. *
  74894. * @default false
  74895. *
  74896. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#clippingEnabled)
  74897. */
  74898. clippingEnabled?: boolean;
  74899. /**
  74900. * When a web scene is configured as floor-aware, it has a floorInfo property defined.
  74901. *
  74902. * @default null
  74903. *
  74904. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#floorInfo)
  74905. */
  74906. floorInfo?: MapFloorInfoProperties;
  74907. /**
  74908. * The height model info of the [WebScene](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html).
  74909. *
  74910. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#heightModelInfo)
  74911. */
  74912. heightModelInfo?: HeightModelInfoProperties;
  74913. /**
  74914. * The initial view of the WebScene.
  74915. *
  74916. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#initialViewProperties)
  74917. */
  74918. initialViewProperties?: websceneInitialViewPropertiesProperties;
  74919. /**
  74920. * The portal item from which the WebScene is loaded.
  74921. *
  74922. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#portalItem)
  74923. */
  74924. portalItem?: PortalItemProperties;
  74925. /**
  74926. * Provides a [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of slides that act as bookmarks for saving predefined [viewpoints](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html) and visible layers.
  74927. *
  74928. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#presentation)
  74929. */
  74930. presentation?: PresentationProperties;
  74931. /**
  74932. * The URL to the thumbnail used for the web scene.
  74933. *
  74934. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#thumbnailUrl)
  74935. */
  74936. thumbnailUrl?: string;
  74937. }
  74938. export class websceneApplicationProperties extends Accessor {
  74939. /**
  74940. * View-specific properties of application and UI elements.
  74941. *
  74942. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-ApplicationProperties.html#viewing)
  74943. */
  74944. viewing: Viewing;
  74945. /**
  74946. * Represents configuration of application and UI elements.
  74947. *
  74948. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-ApplicationProperties.html)
  74949. */
  74950. constructor(properties?: websceneApplicationPropertiesProperties);
  74951. /**
  74952. * Creates a deep clone of this object.
  74953. *
  74954. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-ApplicationProperties.html#clone)
  74955. */
  74956. clone(): websceneApplicationProperties;
  74957. }
  74958. /** @deprecated Import the websceneApplicationProperties class instead. */
  74959. export type websceneApplicationPropertiesConstructor = typeof websceneApplicationProperties;
  74960. interface websceneApplicationPropertiesProperties {
  74961. /**
  74962. * View-specific properties of application and UI elements.
  74963. *
  74964. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-ApplicationProperties.html#viewing)
  74965. */
  74966. viewing?: ViewingProperties;
  74967. }
  74968. export interface Background extends Accessor, JSONSupport {
  74969. }
  74970. export class Background {
  74971. /**
  74972. * The background of a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) that lies behind the sky, atmosphere and stars.
  74973. *
  74974. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-background-Background.html)
  74975. */
  74976. constructor(properties?: BackgroundProperties);
  74977. /**
  74978. * Creates a deep clone of the Background.
  74979. *
  74980. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-background-Background.html#clone)
  74981. */
  74982. clone(): Background;
  74983. static fromJSON(json: any): Background;
  74984. }
  74985. /** @deprecated Import the Background class instead. */
  74986. export type BackgroundConstructor = typeof Background;
  74987. interface BackgroundProperties {
  74988. }
  74989. export interface backgroundColorBackground extends Background, JSONSupport {
  74990. }
  74991. export class backgroundColorBackground {
  74992. /**
  74993. * The color of the background.
  74994. *
  74995. * @default black
  74996. *
  74997. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-background-ColorBackground.html#color)
  74998. */
  74999. color: Color;
  75000. /**
  75001. * This type of [Background](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-background-Background.html) allows to set a [Color](https://developers.arcgis.com/javascript/latest/api-reference/esri-Color.html) as the background of a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  75002. *
  75003. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-background-ColorBackground.html)
  75004. */
  75005. constructor(properties?: backgroundColorBackgroundProperties);
  75006. /**
  75007. * Creates a deep clone of the object.
  75008. *
  75009. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-background-ColorBackground.html#clone)
  75010. */
  75011. clone(): backgroundColorBackground;
  75012. static fromJSON(json: any): backgroundColorBackground;
  75013. }
  75014. /** @deprecated Import the backgroundColorBackground class instead. */
  75015. export type backgroundColorBackgroundConstructor = typeof backgroundColorBackground;
  75016. interface backgroundColorBackgroundProperties extends BackgroundProperties {
  75017. /**
  75018. * The color of the background.
  75019. *
  75020. * @default black
  75021. *
  75022. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-background-ColorBackground.html#color)
  75023. */
  75024. color?: Color | number[] | string;
  75025. }
  75026. export class Environment extends Accessor {
  75027. /**
  75028. * Specifies whether the atmosphere should be displayed.
  75029. *
  75030. * @default true
  75031. *
  75032. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Environment.html#atmosphereEnabled)
  75033. */
  75034. atmosphereEnabled: boolean;
  75035. /**
  75036. * Specifies how the background of the scene (which lies behind sky, stars and atmosphere) should be displayed.
  75037. *
  75038. * @default null
  75039. *
  75040. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Environment.html#background)
  75041. */
  75042. background: Background;
  75043. /**
  75044. * Settings for defining the lighting of the scene.
  75045. *
  75046. * @default SunLighting
  75047. *
  75048. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Environment.html#lighting)
  75049. */
  75050. lighting: SunLighting | VirtualLighting;
  75051. /**
  75052. * Specifies whether stars should be displayed in the sky.
  75053. *
  75054. * @default true
  75055. *
  75056. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Environment.html#starsEnabled)
  75057. */
  75058. starsEnabled: boolean;
  75059. /**
  75060. * Indicates the type of weather visualization in the scene.
  75061. *
  75062. * @default SunnyWeather
  75063. *
  75064. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Environment.html#weather)
  75065. */
  75066. weather: SunnyWeather | CloudyWeather | RainyWeather | SnowyWeather | FoggyWeather;
  75067. /**
  75068. * Represents settings that affect the environment in which the [WebScene](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html) is displayed (such as lighting).
  75069. *
  75070. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Environment.html)
  75071. */
  75072. constructor(properties?: EnvironmentProperties);
  75073. /**
  75074. * Creates a deep clone of this object.
  75075. *
  75076. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Environment.html#clone)
  75077. */
  75078. clone(): Environment;
  75079. }
  75080. /** @deprecated Import the Environment class instead. */
  75081. export type EnvironmentConstructor = typeof Environment;
  75082. interface EnvironmentProperties {
  75083. /**
  75084. * Specifies whether the atmosphere should be displayed.
  75085. *
  75086. * @default true
  75087. *
  75088. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Environment.html#atmosphereEnabled)
  75089. */
  75090. atmosphereEnabled?: boolean;
  75091. /**
  75092. * Specifies how the background of the scene (which lies behind sky, stars and atmosphere) should be displayed.
  75093. *
  75094. * @default null
  75095. *
  75096. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Environment.html#background)
  75097. */
  75098. background?: BackgroundProperties;
  75099. /**
  75100. * Settings for defining the lighting of the scene.
  75101. *
  75102. * @default SunLighting
  75103. *
  75104. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Environment.html#lighting)
  75105. */
  75106. lighting?: (SunLightingProperties & { type?: "sun" }) | (VirtualLightingProperties & { type: "virtual" });
  75107. /**
  75108. * Specifies whether stars should be displayed in the sky.
  75109. *
  75110. * @default true
  75111. *
  75112. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Environment.html#starsEnabled)
  75113. */
  75114. starsEnabled?: boolean;
  75115. /**
  75116. * Indicates the type of weather visualization in the scene.
  75117. *
  75118. * @default SunnyWeather
  75119. *
  75120. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Environment.html#weather)
  75121. */
  75122. weather?: | (SunnyWeatherProperties & { type: "sunny" })
  75123. | (CloudyWeatherProperties & { type: "cloudy" })
  75124. | (RainyWeatherProperties & { type: "rainy" })
  75125. | (SnowyWeatherProperties & { type: "snowy" })
  75126. | (FoggyWeatherProperties & { type: "foggy" });
  75127. }
  75128. export class websceneInitialViewProperties extends Accessor {
  75129. /**
  75130. * The initial environment settings of the [WebScene](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html).
  75131. *
  75132. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-InitialViewProperties.html#environment)
  75133. */
  75134. environment: Environment;
  75135. /**
  75136. * The spatial reference of the [WebScene](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html).
  75137. *
  75138. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-InitialViewProperties.html#spatialReference)
  75139. */
  75140. spatialReference: SpatialReference;
  75141. /**
  75142. * The viewing mode of the scene.
  75143. *
  75144. * @default global
  75145. *
  75146. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-InitialViewProperties.html#viewingMode)
  75147. */
  75148. viewingMode: "global" | "local";
  75149. /**
  75150. * The initial viewpoint of the [WebScene](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html).
  75151. *
  75152. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-InitialViewProperties.html#viewpoint)
  75153. */
  75154. viewpoint: Viewpoint;
  75155. /**
  75156. * Represents the initial viewing state of the [WebScene](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html) when displayed in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  75157. *
  75158. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-InitialViewProperties.html)
  75159. */
  75160. constructor(properties?: websceneInitialViewPropertiesProperties);
  75161. /**
  75162. * Creates a deep clone of this object.
  75163. *
  75164. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-InitialViewProperties.html#clone)
  75165. */
  75166. clone(): websceneInitialViewProperties;
  75167. }
  75168. /** @deprecated Import the websceneInitialViewProperties class instead. */
  75169. export type websceneInitialViewPropertiesConstructor = typeof websceneInitialViewProperties;
  75170. interface websceneInitialViewPropertiesProperties {
  75171. /**
  75172. * The initial environment settings of the [WebScene](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html).
  75173. *
  75174. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-InitialViewProperties.html#environment)
  75175. */
  75176. environment?: EnvironmentProperties;
  75177. /**
  75178. * The spatial reference of the [WebScene](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html).
  75179. *
  75180. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-InitialViewProperties.html#spatialReference)
  75181. */
  75182. spatialReference?: SpatialReferenceProperties;
  75183. /**
  75184. * The viewing mode of the scene.
  75185. *
  75186. * @default global
  75187. *
  75188. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-InitialViewProperties.html#viewingMode)
  75189. */
  75190. viewingMode?: "global" | "local";
  75191. /**
  75192. * The initial viewpoint of the [WebScene](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html).
  75193. *
  75194. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-InitialViewProperties.html#viewpoint)
  75195. */
  75196. viewpoint?: ViewpointProperties;
  75197. }
  75198. export class Lighting extends websceneSunLighting {
  75199. /**
  75200. * The lighting object is part of the [webscene/Environment](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Environment.html) and contains information relating to how a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) is lit.
  75201. *
  75202. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Lighting.html)
  75203. */
  75204. constructor(properties?: LightingProperties);
  75205. /**
  75206. * Creates a deep clone of this object.
  75207. *
  75208. * @deprecated since version 4.24
  75209. *
  75210. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Lighting.html#clone)
  75211. */
  75212. clone(): Lighting;
  75213. }
  75214. /** @deprecated Import the Lighting class instead. */
  75215. export type LightingConstructor = typeof Lighting;
  75216. interface LightingProperties extends websceneSunLightingProperties {
  75217. }
  75218. export class Presentation extends Accessor {
  75219. /**
  75220. * A collection of [slides](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html) that bookmark [viewpoints](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html), visible layers, and other settings previously defined in a [WebScene](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html).
  75221. *
  75222. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Presentation.html#slides)
  75223. */
  75224. slides: Collection<Slide>;
  75225. /**
  75226. * A presentation contains a [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of [slides](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html) that allows users to quickly navigate to predefined settings of a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  75227. *
  75228. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Presentation.html)
  75229. */
  75230. constructor(properties?: PresentationProperties);
  75231. /**
  75232. * Creates a deep clone of this object.
  75233. *
  75234. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Presentation.html#clone)
  75235. */
  75236. clone(): Presentation;
  75237. }
  75238. /** @deprecated Import the Presentation class instead. */
  75239. export type PresentationConstructor = typeof Presentation;
  75240. interface PresentationProperties {
  75241. /**
  75242. * A collection of [slides](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html) that bookmark [viewpoints](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html), visible layers, and other settings previously defined in a [WebScene](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html).
  75243. *
  75244. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Presentation.html#slides)
  75245. */
  75246. slides?: CollectionProperties<SlideProperties>;
  75247. }
  75248. export class Slide extends Accessor {
  75249. /**
  75250. * The basemap of the scene.
  75251. *
  75252. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#basemap)
  75253. */
  75254. basemap: Basemap;
  75255. /**
  75256. * The description of the slide.
  75257. *
  75258. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#description)
  75259. */
  75260. description: SlideDescription;
  75261. /**
  75262. * Represents settings that affect the environment in which the WebScene is displayed (such as lighting).
  75263. *
  75264. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#environment)
  75265. */
  75266. environment: SlideEnvironment;
  75267. /**
  75268. * Ground properties for this slide.
  75269. *
  75270. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#ground)
  75271. */
  75272. ground: SlideGround;
  75273. /**
  75274. * The unique id of a slide within the [slides property](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Presentation.html#slides) of a [Presentation](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Presentation.html).
  75275. *
  75276. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#id)
  75277. */
  75278. id: string;
  75279. /**
  75280. * A data URI encoded thumbnail.
  75281. *
  75282. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#thumbnail)
  75283. */
  75284. thumbnail: SlideThumbnail;
  75285. /**
  75286. * The title of the slide.
  75287. *
  75288. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#title)
  75289. */
  75290. title: SlideTitle;
  75291. /**
  75292. * The viewpoint of the slide.
  75293. *
  75294. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#viewpoint)
  75295. */
  75296. viewpoint: Viewpoint;
  75297. /**
  75298. * The visible layers of the scene.
  75299. *
  75300. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#visibleLayers)
  75301. */
  75302. visibleLayers: Collection<SlideVisibleLayers>;
  75303. /**
  75304. * A slide stores a snapshot of several pre-set properties of the [WebScene](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html) and [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html), such as the [basemap](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#basemap), [viewpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#viewpoint) and [visible layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#visibleLayers).
  75305. *
  75306. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html)
  75307. */
  75308. constructor(properties?: SlideProperties);
  75309. /**
  75310. * Applies a slide's settings to a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  75311. *
  75312. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#applyTo)
  75313. */
  75314. applyTo(view: SceneView, options?: SlideApplyToOptions): Promise<Slide>;
  75315. /**
  75316. * Creates a deep clone of this object.
  75317. *
  75318. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#clone)
  75319. */
  75320. clone(): Slide;
  75321. /**
  75322. * Updates a slide from a [WebScene's slides](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Presentation.html#slides).
  75323. *
  75324. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#updateFrom)
  75325. */
  75326. updateFrom(view: SceneView, options?: SlideUpdateFromOptions): Promise<Slide>;
  75327. /**
  75328. * Creates a slide from a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html), which may be added to the [slides](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Presentation.html#slides) in the WebScene's [presentation](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#presentation).
  75329. *
  75330. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#createFrom)
  75331. */
  75332. static createFrom(view: SceneView, options?: SlideCreateFromOptions): Promise<Slide>;
  75333. }
  75334. /** @deprecated Import the Slide class instead. */
  75335. export type SlideConstructor = typeof Slide;
  75336. interface SlideProperties {
  75337. /**
  75338. * The basemap of the scene.
  75339. *
  75340. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#basemap)
  75341. */
  75342. basemap?: BasemapProperties | string;
  75343. /**
  75344. * The description of the slide.
  75345. *
  75346. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#description)
  75347. */
  75348. description?: SlideDescriptionProperties | string;
  75349. /**
  75350. * Represents settings that affect the environment in which the WebScene is displayed (such as lighting).
  75351. *
  75352. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#environment)
  75353. */
  75354. environment?: SlideEnvironmentProperties;
  75355. /**
  75356. * Ground properties for this slide.
  75357. *
  75358. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#ground)
  75359. */
  75360. ground?: SlideGroundProperties;
  75361. /**
  75362. * The unique id of a slide within the [slides property](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Presentation.html#slides) of a [Presentation](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Presentation.html).
  75363. *
  75364. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#id)
  75365. */
  75366. id?: string;
  75367. /**
  75368. * A data URI encoded thumbnail.
  75369. *
  75370. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#thumbnail)
  75371. */
  75372. thumbnail?: SlideThumbnailProperties | string;
  75373. /**
  75374. * The title of the slide.
  75375. *
  75376. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#title)
  75377. */
  75378. title?: SlideTitleProperties | string;
  75379. /**
  75380. * The viewpoint of the slide.
  75381. *
  75382. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#viewpoint)
  75383. */
  75384. viewpoint?: ViewpointProperties;
  75385. /**
  75386. * The visible layers of the scene.
  75387. *
  75388. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#visibleLayers)
  75389. */
  75390. visibleLayers?: CollectionProperties<SlideVisibleLayersProperties>;
  75391. }
  75392. export interface SlideApplyToOptions {
  75393. /**
  75394. * Indicates whether to animate the slide transition.
  75395. *
  75396. * @default true
  75397. *
  75398. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#applyTo)
  75399. */
  75400. animate?: boolean;
  75401. /**
  75402. * Increases or decreases the animation speed by the specified factor.
  75403. *
  75404. * @default 1
  75405. *
  75406. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#applyTo)
  75407. */
  75408. speedFactor?: number;
  75409. /**
  75410. * Set the exact duration (in milliseconds) of the animation.
  75411. *
  75412. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#applyTo)
  75413. */
  75414. duration?: number;
  75415. /**
  75416. * The maximum allowed duration (in milliseconds) of the animation.
  75417. *
  75418. * @default 8000
  75419. *
  75420. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#applyTo)
  75421. */
  75422. maxDuration?: number;
  75423. /**
  75424. * The easing function to use for the animation.
  75425. *
  75426. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#applyTo)
  75427. */
  75428. easing?: string | EasingFunction;
  75429. /**
  75430. * Signal object that can be used to abort the asynchronous task.
  75431. *
  75432. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#applyTo)
  75433. */
  75434. signal?: AbortSignal;
  75435. }
  75436. export interface SlideCreateFromOptions {
  75437. /**
  75438. * Screenshot options to use.
  75439. *
  75440. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#createFrom)
  75441. */
  75442. screenshot?: SlideCreateFromOptionsScreenshot;
  75443. }
  75444. export interface SlideCreateFromOptionsScreenshot {
  75445. /**
  75446. * The image format.
  75447. *
  75448. * @default png
  75449. *
  75450. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#createFrom)
  75451. */
  75452. format?: string;
  75453. /**
  75454. * The image quality (due to compression).
  75455. *
  75456. * @default 80
  75457. *
  75458. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#createFrom)
  75459. */
  75460. quality?: number;
  75461. /**
  75462. * The image width.
  75463. *
  75464. * @default 120
  75465. *
  75466. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#createFrom)
  75467. */
  75468. width?: number;
  75469. /**
  75470. * The image height.
  75471. *
  75472. * @default 75
  75473. *
  75474. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#createFrom)
  75475. */
  75476. height?: number;
  75477. }
  75478. export interface SlideDescriptionProperties {
  75479. /**
  75480. * The description.
  75481. *
  75482. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#description)
  75483. */
  75484. text?: string;
  75485. }
  75486. export interface SlideDescription extends AnonymousAccessor {
  75487. /**
  75488. * The description.
  75489. *
  75490. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#description)
  75491. */
  75492. text?: string;
  75493. }
  75494. export interface SlideEnvironmentProperties {
  75495. /**
  75496. * Settings for defining the lighting of the scene.
  75497. *
  75498. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#environment)
  75499. */
  75500. lighting?: | (websceneSunLightingProperties & { type?: "sun" })
  75501. | (websceneVirtualLightingProperties & { type: "virtual" });
  75502. }
  75503. export interface SlideEnvironment extends AnonymousAccessor {
  75504. /**
  75505. * Settings for defining the lighting of the scene.
  75506. *
  75507. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#environment)
  75508. */
  75509. lighting?: websceneSunLighting | websceneVirtualLighting;
  75510. }
  75511. export interface SlideGroundProperties {
  75512. /**
  75513. * Ground opacity
  75514. *
  75515. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#ground)
  75516. */
  75517. opacity?: number;
  75518. }
  75519. export interface SlideGround extends AnonymousAccessor {
  75520. /**
  75521. * Ground opacity
  75522. *
  75523. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#ground)
  75524. */
  75525. opacity?: number;
  75526. }
  75527. export interface SlideThumbnailProperties {
  75528. /**
  75529. * The URI pointing to the thumbnail image representing the slide.
  75530. *
  75531. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#thumbnail)
  75532. */
  75533. url?: string;
  75534. }
  75535. export interface SlideThumbnail extends AnonymousAccessor {
  75536. /**
  75537. * The URI pointing to the thumbnail image representing the slide.
  75538. *
  75539. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#thumbnail)
  75540. */
  75541. url?: string;
  75542. }
  75543. export interface SlideTitleProperties {
  75544. /**
  75545. * The title.
  75546. *
  75547. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#title)
  75548. */
  75549. text?: string;
  75550. }
  75551. export interface SlideTitle extends AnonymousAccessor {
  75552. /**
  75553. * The title.
  75554. *
  75555. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#title)
  75556. */
  75557. text?: string;
  75558. }
  75559. export interface SlideUpdateFromOptions {
  75560. /**
  75561. * Screenshot options to use.
  75562. *
  75563. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#updateFrom)
  75564. */
  75565. screenshot: SlideUpdateFromOptionsScreenshot;
  75566. }
  75567. export interface SlideUpdateFromOptionsScreenshot {
  75568. /**
  75569. * The image format.
  75570. *
  75571. * @default png
  75572. *
  75573. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#updateFrom)
  75574. */
  75575. format?: string;
  75576. /**
  75577. * The image quality (due to compression).
  75578. *
  75579. * @default 80
  75580. *
  75581. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#updateFrom)
  75582. */
  75583. quality?: number;
  75584. /**
  75585. * The image width.
  75586. *
  75587. * @default 120
  75588. *
  75589. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#updateFrom)
  75590. */
  75591. width?: number;
  75592. /**
  75593. * The image height.
  75594. *
  75595. * @default 75
  75596. *
  75597. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#updateFrom)
  75598. */
  75599. height?: number;
  75600. }
  75601. export interface SlideVisibleLayersProperties {
  75602. /**
  75603. * The ID of a [layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#id) in the [WebScene](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#layers) or [Ground](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#layers) that is made `visible` in the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) when the slide is applied to the view.
  75604. *
  75605. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#visibleLayers)
  75606. */
  75607. id?: string;
  75608. /**
  75609. * The service ids of the visible sublayers on the layer specified by the layer id.
  75610. *
  75611. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#visibleLayers)
  75612. */
  75613. sublayerIds?: number[];
  75614. }
  75615. export interface SlideVisibleLayers extends AnonymousAccessor {
  75616. /**
  75617. * The ID of a [layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html#id) in the [WebScene](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#layers) or [Ground](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#layers) that is made `visible` in the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) when the slide is applied to the view.
  75618. *
  75619. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#visibleLayers)
  75620. */
  75621. id: string;
  75622. /**
  75623. * The service ids of the visible sublayers on the layer specified by the layer id.
  75624. *
  75625. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Slide.html#visibleLayers)
  75626. */
  75627. sublayerIds: number[];
  75628. }
  75629. export class websceneSunLighting extends Accessor {
  75630. /**
  75631. * The current date and time of the simulated sun.
  75632. *
  75633. * @default null
  75634. *
  75635. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-SunLighting.html#date)
  75636. */
  75637. date: Date;
  75638. /**
  75639. * Indicates whether to show shadows cast by the sun.
  75640. *
  75641. * @default false
  75642. *
  75643. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-SunLighting.html#directShadowsEnabled)
  75644. */
  75645. directShadowsEnabled: boolean;
  75646. /**
  75647. * The UTC time zone offset in hours that should be displayed in the UI to represent the date.
  75648. *
  75649. * @default null
  75650. *
  75651. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-SunLighting.html#displayUTCOffset)
  75652. */
  75653. displayUTCOffset: number;
  75654. /**
  75655. * Indicates that the light source is simulated position of the sun.
  75656. *
  75657. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-SunLighting.html#type)
  75658. */
  75659. readonly type: "sun";
  75660. /**
  75661. * The sun lighting object is part of the [webscene/Environment](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Environment.html) and contains information relating to how a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) is lit by the sun.
  75662. *
  75663. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-SunLighting.html)
  75664. */
  75665. constructor(properties?: websceneSunLightingProperties);
  75666. /**
  75667. * Creates a deep clone of this object.
  75668. *
  75669. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-SunLighting.html#clone)
  75670. */
  75671. clone(): websceneSunLighting;
  75672. }
  75673. /** @deprecated Import the websceneSunLighting class instead. */
  75674. export type websceneSunLightingConstructor = typeof websceneSunLighting;
  75675. interface websceneSunLightingProperties {
  75676. /**
  75677. * The current date and time of the simulated sun.
  75678. *
  75679. * @default null
  75680. *
  75681. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-SunLighting.html#date)
  75682. */
  75683. date?: DateProperties;
  75684. /**
  75685. * Indicates whether to show shadows cast by the sun.
  75686. *
  75687. * @default false
  75688. *
  75689. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-SunLighting.html#directShadowsEnabled)
  75690. */
  75691. directShadowsEnabled?: boolean;
  75692. /**
  75693. * The UTC time zone offset in hours that should be displayed in the UI to represent the date.
  75694. *
  75695. * @default null
  75696. *
  75697. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-SunLighting.html#displayUTCOffset)
  75698. */
  75699. displayUTCOffset?: number;
  75700. }
  75701. export class websceneVirtualLighting extends Accessor {
  75702. /**
  75703. * Indicates whether to show shadows cast by the light source.
  75704. *
  75705. * @default false
  75706. *
  75707. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-VirtualLighting.html#directShadowsEnabled)
  75708. */
  75709. directShadowsEnabled: boolean;
  75710. /**
  75711. * Indicates that the light source is virtual light.
  75712. *
  75713. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-VirtualLighting.html#type)
  75714. */
  75715. readonly type: "virtual";
  75716. /**
  75717. * The virtual lighting object is part of the [webscene/Environment](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-Environment.html) and contains information relating to how a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) is lit with a virtual light.
  75718. *
  75719. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-VirtualLighting.html)
  75720. */
  75721. constructor(properties?: websceneVirtualLightingProperties);
  75722. /**
  75723. * Creates a deep clone of this object.
  75724. *
  75725. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-VirtualLighting.html#clone)
  75726. */
  75727. clone(): websceneVirtualLighting;
  75728. }
  75729. /** @deprecated Import the websceneVirtualLighting class instead. */
  75730. export type websceneVirtualLightingConstructor = typeof websceneVirtualLighting;
  75731. interface websceneVirtualLightingProperties {
  75732. /**
  75733. * Indicates whether to show shadows cast by the light source.
  75734. *
  75735. * @default false
  75736. *
  75737. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-webscene-VirtualLighting.html#directShadowsEnabled)
  75738. */
  75739. directShadowsEnabled?: boolean;
  75740. }
  75741. export interface WebSceneSaveAsOptions {
  75742. /**
  75743. * the folder in which to save the item.
  75744. *
  75745. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#saveAs)
  75746. */
  75747. folder?: PortalFolder;
  75748. /**
  75749. * allow the scene to be saved even in the case it contains unsupported content (layers, renderers, symbols).
  75750. *
  75751. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#saveAs)
  75752. */
  75753. ignoreUnsupported?: boolean;
  75754. }
  75755. export interface WebSceneSaveOptions {
  75756. /**
  75757. * When `true`, the scene will save even if it contains unsupported content (layers, renderers, symbols).
  75758. *
  75759. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#save)
  75760. */
  75761. ignoreUnsupported?: boolean;
  75762. }
  75763. export interface WebSceneSourceVersion {
  75764. /**
  75765. * The major version of the WebScene.
  75766. *
  75767. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#sourceVersion)
  75768. */
  75769. major: number;
  75770. /**
  75771. * The minor version of the WebScene.
  75772. *
  75773. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#sourceVersion)
  75774. */
  75775. minor: number;
  75776. }
  75777. export interface WebSceneUpdateFromOptions {
  75778. /**
  75779. * Do not update the initial environment from the view, defaults to false.
  75780. *
  75781. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#updateFrom)
  75782. */
  75783. environmentExcluded?: boolean;
  75784. /**
  75785. * Do not update the initial viewpoint from the view, defaults to false.
  75786. *
  75787. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#updateFrom)
  75788. */
  75789. viewpointExcluded?: boolean;
  75790. /**
  75791. * Do not update the thumbnail from the view.
  75792. *
  75793. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#updateFrom)
  75794. */
  75795. thumbnailExcluded?: boolean;
  75796. /**
  75797. * The size of the thumbnail.
  75798. *
  75799. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#updateFrom)
  75800. */
  75801. thumbnailSize?: WebSceneUpdateFromOptionsThumbnailSize;
  75802. }
  75803. export interface WebSceneUpdateFromOptionsThumbnailSize {
  75804. /**
  75805. * The width of the thumbnail.
  75806. *
  75807. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#updateFrom)
  75808. */
  75809. width: number;
  75810. /**
  75811. * The height of the thumbnail.
  75812. *
  75813. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebScene.html#updateFrom)
  75814. */
  75815. height: number;
  75816. }
  75817. export class AreaMeasurement2D extends Widget {
  75818. /**
  75819. * The widget's default CSS icon class.
  75820. *
  75821. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D.html#iconClass)
  75822. */
  75823. iconClass: string;
  75824. /**
  75825. * Unit system (imperial, metric) or specific unit used for displaying the area values.
  75826. *
  75827. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D.html#unit)
  75828. */
  75829. unit: SystemOrAreaUnit;
  75830. /**
  75831. * List of available units and unit systems (imperial, metric) for displaying the area values.
  75832. *
  75833. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D.html#unitOptions)
  75834. */
  75835. unitOptions: SystemOrAreaUnit[];
  75836. /**
  75837. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  75838. *
  75839. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D.html#view)
  75840. */
  75841. view: MapView;
  75842. /**
  75843. * The view model for this widget.
  75844. *
  75845. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D.html#viewModel)
  75846. */
  75847. viewModel: AreaMeasurement2DViewModel;
  75848. /**
  75849. * The AreaMeasurement2D widget calculates and displays the area and perimeter of a polygon in a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  75850. *
  75851. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D.html)
  75852. */
  75853. constructor(properties?: AreaMeasurement2DProperties);
  75854. }
  75855. /** @deprecated Import the AreaMeasurement2D class instead. */
  75856. export type AreaMeasurement2DConstructor = typeof AreaMeasurement2D;
  75857. interface AreaMeasurement2DProperties extends WidgetProperties {
  75858. /**
  75859. * The widget's default CSS icon class.
  75860. *
  75861. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D.html#iconClass)
  75862. */
  75863. iconClass?: string;
  75864. /**
  75865. * Unit system (imperial, metric) or specific unit used for displaying the area values.
  75866. *
  75867. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D.html#unit)
  75868. */
  75869. unit?: | "imperial"
  75870. | "metric"
  75871. | "square-millimeters"
  75872. | "square-centimeters"
  75873. | "square-decimeters"
  75874. | "square-meters"
  75875. | "square-kilometers"
  75876. | "square-inches"
  75877. | "square-feet"
  75878. | "square-yards"
  75879. | "square-miles"
  75880. | "square-us-feet"
  75881. | "acres"
  75882. | "ares"
  75883. | "hectares";
  75884. /**
  75885. * List of available units and unit systems (imperial, metric) for displaying the area values.
  75886. *
  75887. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D.html#unitOptions)
  75888. */
  75889. unitOptions?: (
  75890. | "imperial"
  75891. | "metric"
  75892. | "square-millimeters"
  75893. | "square-centimeters"
  75894. | "square-decimeters"
  75895. | "square-meters"
  75896. | "square-kilometers"
  75897. | "square-inches"
  75898. | "square-feet"
  75899. | "square-yards"
  75900. | "square-miles"
  75901. | "square-us-feet"
  75902. | "acres"
  75903. | "ares"
  75904. | "hectares"
  75905. )[];
  75906. /**
  75907. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  75908. *
  75909. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D.html#view)
  75910. */
  75911. view?: MapViewProperties;
  75912. /**
  75913. * The view model for this widget.
  75914. *
  75915. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D.html#viewModel)
  75916. */
  75917. viewModel?: AreaMeasurement2DViewModel;
  75918. }
  75919. export class AreaMeasurement2DViewModel {
  75920. /**
  75921. * When the coordinate system is projected (other than web mercator) then perimeters less than this threshold will be computed planimetrically.
  75922. *
  75923. * @default 100000
  75924. *
  75925. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D-AreaMeasurement2DViewModel.html#geodesicDistanceThreshold)
  75926. */
  75927. geodesicDistanceThreshold: number;
  75928. /**
  75929. * The area and perimeter of the measurement polygon in square meters and meters respectively.
  75930. *
  75931. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D-AreaMeasurement2DViewModel.html#measurement)
  75932. */
  75933. readonly measurement: AreaMeasurement2DViewModelMeasurement;
  75934. /**
  75935. * This property returns the locale specific representation of the area and perimeter.
  75936. *
  75937. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D-AreaMeasurement2DViewModel.html#measurementLabel)
  75938. */
  75939. readonly measurementLabel: AreaMeasurement2DViewModelMeasurementLabel;
  75940. /**
  75941. * The ViewModel's state.
  75942. *
  75943. * @default disabled
  75944. *
  75945. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D-AreaMeasurement2DViewModel.html#state)
  75946. */
  75947. readonly state: "disabled" | "ready" | "measuring" | "measured";
  75948. /**
  75949. * Unit system (imperial, metric) or specific unit used for displaying the area values.
  75950. *
  75951. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D-AreaMeasurement2DViewModel.html#unit)
  75952. */
  75953. unit: SystemOrAreaUnit;
  75954. /**
  75955. * List of available units and unit systems (imperial, metric) for displaying the area values.
  75956. *
  75957. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D-AreaMeasurement2DViewModel.html#unitOptions)
  75958. */
  75959. unitOptions: SystemOrAreaUnit[];
  75960. /**
  75961. * The view from which the widget will operate.
  75962. *
  75963. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D-AreaMeasurement2DViewModel.html#view)
  75964. */
  75965. view: MapView;
  75966. constructor(properties?: any);
  75967. /**
  75968. * Clears the current measurement.
  75969. *
  75970. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D-AreaMeasurement2DViewModel.html#clear)
  75971. */
  75972. clear(): void;
  75973. /**
  75974. * Starts a new measurement.
  75975. *
  75976. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D-AreaMeasurement2DViewModel.html#start)
  75977. */
  75978. start(): void;
  75979. }
  75980. /** @deprecated Import the AreaMeasurement2DViewModel class instead. */
  75981. export type AreaMeasurement2DViewModelConstructor = typeof AreaMeasurement2DViewModel;
  75982. export interface AreaMeasurement2DViewModelMeasurement {
  75983. /**
  75984. * The area (m²).
  75985. *
  75986. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D-AreaMeasurement2DViewModel.html#measurement)
  75987. */
  75988. area: number;
  75989. /**
  75990. * The perimeter (m).
  75991. *
  75992. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D-AreaMeasurement2DViewModel.html#measurement)
  75993. */
  75994. perimeter: number;
  75995. /**
  75996. * Measurement area.
  75997. *
  75998. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D-AreaMeasurement2DViewModel.html#measurement)
  75999. */
  76000. geometry: any;
  76001. }
  76002. export interface AreaMeasurement2DViewModelMeasurementLabel {
  76003. /**
  76004. * The area (m²).
  76005. *
  76006. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D-AreaMeasurement2DViewModel.html#measurementLabel)
  76007. */
  76008. area: number;
  76009. /**
  76010. * The perimeter (m).
  76011. *
  76012. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement2D-AreaMeasurement2DViewModel.html#measurementLabel)
  76013. */
  76014. perimeter: number;
  76015. }
  76016. export class AreaMeasurement3D extends Widget {
  76017. /**
  76018. * The area measurement analysis object being created or modified by the widget.
  76019. *
  76020. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D.html#analysis)
  76021. */
  76022. readonly analysis: AreaMeasurementAnalysis;
  76023. /**
  76024. * The widget's default CSS icon class.
  76025. *
  76026. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D.html#iconClass)
  76027. */
  76028. iconClass: string;
  76029. /**
  76030. * Unit system (imperial, metric) or specific unit used for displaying the area values.
  76031. *
  76032. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D.html#unit)
  76033. */
  76034. unit: SystemOrAreaUnit;
  76035. /**
  76036. * List of available units and unit systems (imperial, metric) for displaying the area values.
  76037. *
  76038. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D.html#unitOptions)
  76039. */
  76040. unitOptions: SystemOrAreaUnit[];
  76041. /**
  76042. * A reference to the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  76043. *
  76044. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D.html#view)
  76045. */
  76046. view: SceneView;
  76047. /**
  76048. * The view model for this widget.
  76049. *
  76050. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D.html#viewModel)
  76051. */
  76052. viewModel: AreaMeasurement3DViewModel;
  76053. /**
  76054. * The AreaMeasurement3D widget calculates and displays the area and perimeter of a polygon.
  76055. *
  76056. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D.html)
  76057. */
  76058. constructor(properties?: AreaMeasurement3DProperties);
  76059. }
  76060. /** @deprecated Import the AreaMeasurement3D class instead. */
  76061. export type AreaMeasurement3DConstructor = typeof AreaMeasurement3D;
  76062. interface AreaMeasurement3DProperties extends WidgetProperties {
  76063. /**
  76064. * The area measurement analysis object being created or modified by the widget.
  76065. *
  76066. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D.html#analysis)
  76067. */
  76068. analysis?: AreaMeasurementAnalysisProperties;
  76069. /**
  76070. * The widget's default CSS icon class.
  76071. *
  76072. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D.html#iconClass)
  76073. */
  76074. iconClass?: string;
  76075. /**
  76076. * Unit system (imperial, metric) or specific unit used for displaying the area values.
  76077. *
  76078. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D.html#unit)
  76079. */
  76080. unit?: | "imperial"
  76081. | "metric"
  76082. | "square-millimeters"
  76083. | "square-centimeters"
  76084. | "square-decimeters"
  76085. | "square-meters"
  76086. | "square-kilometers"
  76087. | "square-inches"
  76088. | "square-feet"
  76089. | "square-yards"
  76090. | "square-miles"
  76091. | "square-us-feet"
  76092. | "acres"
  76093. | "ares"
  76094. | "hectares";
  76095. /**
  76096. * List of available units and unit systems (imperial, metric) for displaying the area values.
  76097. *
  76098. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D.html#unitOptions)
  76099. */
  76100. unitOptions?: (
  76101. | "imperial"
  76102. | "metric"
  76103. | "square-millimeters"
  76104. | "square-centimeters"
  76105. | "square-decimeters"
  76106. | "square-meters"
  76107. | "square-kilometers"
  76108. | "square-inches"
  76109. | "square-feet"
  76110. | "square-yards"
  76111. | "square-miles"
  76112. | "square-us-feet"
  76113. | "acres"
  76114. | "ares"
  76115. | "hectares"
  76116. )[];
  76117. /**
  76118. * A reference to the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  76119. *
  76120. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D.html#view)
  76121. */
  76122. view?: SceneViewProperties;
  76123. /**
  76124. * The view model for this widget.
  76125. *
  76126. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D.html#viewModel)
  76127. */
  76128. viewModel?: AreaMeasurement3DViewModelProperties;
  76129. }
  76130. export class AreaMeasurement3DViewModel extends Accessor {
  76131. /**
  76132. * The area measurement analysis object being created or modified by the view model.
  76133. *
  76134. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D-AreaMeasurement3DViewModel.html#analysis)
  76135. */
  76136. readonly analysis: AreaMeasurementAnalysis;
  76137. /**
  76138. * The current measurement of the area.
  76139. *
  76140. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D-AreaMeasurement3DViewModel.html#measurement)
  76141. */
  76142. readonly measurement: AreaMeasurement3DViewModelMeasurement;
  76143. /**
  76144. * The view model's state.
  76145. *
  76146. * @default disabled
  76147. *
  76148. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D-AreaMeasurement3DViewModel.html#state)
  76149. */
  76150. readonly state: "disabled" | "ready" | "measuring" | "measured";
  76151. /**
  76152. * Unit system (imperial, metric) or specific unit used for displaying the area values.
  76153. *
  76154. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D-AreaMeasurement3DViewModel.html#unit)
  76155. */
  76156. unit: SystemOrAreaUnit;
  76157. /**
  76158. * List of available units and unit systems (imperial, metric) for displaying the area values.
  76159. *
  76160. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D-AreaMeasurement3DViewModel.html#unitOptions)
  76161. */
  76162. unitOptions: SystemOrAreaUnit[];
  76163. /**
  76164. * The view from which the widget will operate.
  76165. *
  76166. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D-AreaMeasurement3DViewModel.html#view)
  76167. */
  76168. view: SceneView;
  76169. /**
  76170. * Provides the logic for the [AreaMeasurement3D](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D.html) widget.
  76171. *
  76172. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D-AreaMeasurement3DViewModel.html)
  76173. */
  76174. constructor(properties?: AreaMeasurement3DViewModelProperties);
  76175. /**
  76176. * Clears the current measurement.
  76177. *
  76178. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D-AreaMeasurement3DViewModel.html#clear)
  76179. */
  76180. clear(): void;
  76181. /**
  76182. * Starts a new measurement.
  76183. *
  76184. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D-AreaMeasurement3DViewModel.html#start)
  76185. */
  76186. start(): void;
  76187. }
  76188. /** @deprecated Import the AreaMeasurement3DViewModel class instead. */
  76189. export type AreaMeasurement3DViewModelConstructor = typeof AreaMeasurement3DViewModel;
  76190. interface AreaMeasurement3DViewModelProperties {
  76191. /**
  76192. * The area measurement analysis object being created or modified by the view model.
  76193. *
  76194. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D-AreaMeasurement3DViewModel.html#analysis)
  76195. */
  76196. analysis?: AreaMeasurementAnalysisProperties;
  76197. /**
  76198. * Unit system (imperial, metric) or specific unit used for displaying the area values.
  76199. *
  76200. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D-AreaMeasurement3DViewModel.html#unit)
  76201. */
  76202. unit?: | "imperial"
  76203. | "metric"
  76204. | "square-millimeters"
  76205. | "square-centimeters"
  76206. | "square-decimeters"
  76207. | "square-meters"
  76208. | "square-kilometers"
  76209. | "square-inches"
  76210. | "square-feet"
  76211. | "square-yards"
  76212. | "square-miles"
  76213. | "square-us-feet"
  76214. | "acres"
  76215. | "ares"
  76216. | "hectares";
  76217. /**
  76218. * List of available units and unit systems (imperial, metric) for displaying the area values.
  76219. *
  76220. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D-AreaMeasurement3DViewModel.html#unitOptions)
  76221. */
  76222. unitOptions?: (
  76223. | "imperial"
  76224. | "metric"
  76225. | "square-millimeters"
  76226. | "square-centimeters"
  76227. | "square-decimeters"
  76228. | "square-meters"
  76229. | "square-kilometers"
  76230. | "square-inches"
  76231. | "square-feet"
  76232. | "square-yards"
  76233. | "square-miles"
  76234. | "square-us-feet"
  76235. | "acres"
  76236. | "ares"
  76237. | "hectares"
  76238. )[];
  76239. /**
  76240. * The view from which the widget will operate.
  76241. *
  76242. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D-AreaMeasurement3DViewModel.html#view)
  76243. */
  76244. view?: SceneViewProperties;
  76245. }
  76246. export interface AreaMeasurement3DViewModelMeasurement {
  76247. /**
  76248. * Describes the mode in which the measurement was taken.
  76249. *
  76250. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D-AreaMeasurement3DViewModel.html#measurement)
  76251. */
  76252. mode: "euclidean" | "geodesic";
  76253. /**
  76254. * The area of the polygon.
  76255. *
  76256. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D-AreaMeasurement3DViewModel.html#measurement)
  76257. */
  76258. area: MeasurementValue;
  76259. /**
  76260. * The perimeter length of the polygon.
  76261. *
  76262. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D-AreaMeasurement3DViewModel.html#measurement)
  76263. */
  76264. perimeterLength: MeasurementValue;
  76265. }
  76266. /**
  76267. * Measurement value.
  76268. *
  76269. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D-AreaMeasurement3DViewModel.html#MeasurementValue)
  76270. */
  76271. export interface MeasurementValue {
  76272. /**
  76273. * Textual representation of the measured value.
  76274. *
  76275. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D-AreaMeasurement3DViewModel.html#MeasurementValue)
  76276. */
  76277. text: string;
  76278. /**
  76279. * State of the measured value.
  76280. *
  76281. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D-AreaMeasurement3DViewModel.html#MeasurementValue)
  76282. */
  76283. state: string;
  76284. }
  76285. export class Attachments extends Widget {
  76286. /**
  76287. * A string value indicating how to display an attachment.
  76288. *
  76289. * @default "auto"
  76290. *
  76291. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attachments.html#displayType)
  76292. */
  76293. displayType: "auto" | "preview" | "list";
  76294. /**
  76295. * The graphic for the attachments.
  76296. *
  76297. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attachments.html#graphic)
  76298. */
  76299. graphic: Graphic;
  76300. /**
  76301. * The view model for this widget.
  76302. *
  76303. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attachments.html#viewModel)
  76304. */
  76305. viewModel: AttachmentsViewModel;
  76306. /**
  76307. * This widget allows users to view and edit attachments associated with a feature and is considered a standalone experience that can be utilized in widgets such [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html) and [Editor](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html).
  76308. *
  76309. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attachments.html)
  76310. */
  76311. constructor(properties?: AttachmentsProperties);
  76312. }
  76313. /** @deprecated Import the Attachments class instead. */
  76314. export type AttachmentsConstructor = typeof Attachments;
  76315. interface AttachmentsProperties extends WidgetProperties {
  76316. /**
  76317. * A string value indicating how to display an attachment.
  76318. *
  76319. * @default "auto"
  76320. *
  76321. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attachments.html#displayType)
  76322. */
  76323. displayType?: "auto" | "preview" | "list";
  76324. /**
  76325. * The graphic for the attachments.
  76326. *
  76327. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attachments.html#graphic)
  76328. */
  76329. graphic?: GraphicProperties;
  76330. /**
  76331. * The view model for this widget.
  76332. *
  76333. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attachments.html#viewModel)
  76334. */
  76335. viewModel?: AttachmentsViewModelProperties;
  76336. }
  76337. export class AttachmentsViewModel extends Accessor {
  76338. /**
  76339. * The current [AttachmentInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html) being edited.
  76340. *
  76341. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attachments-AttachmentsViewModel.html#activeAttachmentInfo)
  76342. */
  76343. activeAttachmentInfo: AttachmentInfo;
  76344. /**
  76345. * A collection of [AttachmentInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html) defined on a feature.
  76346. *
  76347. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attachments-AttachmentsViewModel.html#attachmentInfos)
  76348. */
  76349. readonly attachmentInfos: AttachmentInfo[];
  76350. /**
  76351. * The graphic for the attachments.
  76352. *
  76353. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attachments-AttachmentsViewModel.html#graphic)
  76354. */
  76355. graphic: Graphic;
  76356. /**
  76357. * The current mode performed by the user.
  76358. *
  76359. * @default "view"
  76360. *
  76361. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attachments-AttachmentsViewModel.html#mode)
  76362. */
  76363. mode: "view" | "add" | "edit";
  76364. /**
  76365. * The current state of the widget.
  76366. *
  76367. * @default "ready"
  76368. *
  76369. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attachments-AttachmentsViewModel.html#state)
  76370. */
  76371. readonly state: "ready" | "disabled" | "loading";
  76372. /**
  76373. * Defines whether or not the feature supports resizing attachments.
  76374. *
  76375. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attachments-AttachmentsViewModel.html#supportsResizeAttachments)
  76376. */
  76377. supportsResizeAttachments: boolean;
  76378. /**
  76379. * Provides the logic for the [Attachments](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attachments.html) widget.
  76380. *
  76381. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attachments-AttachmentsViewModel.html)
  76382. */
  76383. constructor(properties?: AttachmentsViewModelProperties);
  76384. /**
  76385. * Queries for the attachments on a feature.
  76386. *
  76387. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attachments-AttachmentsViewModel.html#getAttachments)
  76388. */
  76389. getAttachments(): Promise<AttachmentInfo[]>;
  76390. }
  76391. /** @deprecated Import the AttachmentsViewModel class instead. */
  76392. export type AttachmentsViewModelConstructor = typeof AttachmentsViewModel;
  76393. interface AttachmentsViewModelProperties {
  76394. /**
  76395. * The current [AttachmentInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-query-support-AttachmentInfo.html) being edited.
  76396. *
  76397. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attachments-AttachmentsViewModel.html#activeAttachmentInfo)
  76398. */
  76399. activeAttachmentInfo?: AttachmentInfoProperties;
  76400. /**
  76401. * The graphic for the attachments.
  76402. *
  76403. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attachments-AttachmentsViewModel.html#graphic)
  76404. */
  76405. graphic?: GraphicProperties;
  76406. /**
  76407. * The current mode performed by the user.
  76408. *
  76409. * @default "view"
  76410. *
  76411. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attachments-AttachmentsViewModel.html#mode)
  76412. */
  76413. mode?: "view" | "add" | "edit";
  76414. /**
  76415. * Defines whether or not the feature supports resizing attachments.
  76416. *
  76417. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attachments-AttachmentsViewModel.html#supportsResizeAttachments)
  76418. */
  76419. supportsResizeAttachments?: boolean;
  76420. }
  76421. export class Attribution extends Widget {
  76422. /**
  76423. * Full attribution text.
  76424. *
  76425. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attribution.html#attributionText)
  76426. */
  76427. readonly attributionText: string;
  76428. /**
  76429. * The widget's default CSS icon class.
  76430. *
  76431. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attribution.html#iconClass)
  76432. */
  76433. iconClass: string;
  76434. /**
  76435. * Text used to split attribution by [layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html)
  76436. *
  76437. * @default |
  76438. *
  76439. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attribution.html#itemDelimiter)
  76440. */
  76441. itemDelimiter: string;
  76442. /**
  76443. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  76444. *
  76445. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attribution.html#view)
  76446. */
  76447. view: MapView | SceneView;
  76448. /**
  76449. * The view model for this widget.
  76450. *
  76451. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attribution.html#viewModel)
  76452. */
  76453. viewModel: AttributionViewModel;
  76454. /**
  76455. * The Attribution widget displays attribution text for the layers in a map.
  76456. *
  76457. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attribution.html)
  76458. */
  76459. constructor(properties?: AttributionProperties);
  76460. }
  76461. /** @deprecated Import the Attribution class instead. */
  76462. export type AttributionConstructor = typeof Attribution;
  76463. interface AttributionProperties extends WidgetProperties {
  76464. /**
  76465. * The widget's default CSS icon class.
  76466. *
  76467. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attribution.html#iconClass)
  76468. */
  76469. iconClass?: string;
  76470. /**
  76471. * Text used to split attribution by [layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html)
  76472. *
  76473. * @default |
  76474. *
  76475. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attribution.html#itemDelimiter)
  76476. */
  76477. itemDelimiter?: string;
  76478. /**
  76479. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  76480. *
  76481. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attribution.html#view)
  76482. */
  76483. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  76484. /**
  76485. * The view model for this widget.
  76486. *
  76487. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attribution.html#viewModel)
  76488. */
  76489. viewModel?: AttributionViewModelProperties;
  76490. }
  76491. export class AttributionViewModel extends Accessor {
  76492. /**
  76493. * A collection of [AttributionItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attribution-AttributionViewModel.html#AttributionItem)s.
  76494. *
  76495. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attribution-AttributionViewModel.html#items)
  76496. */
  76497. readonly items: Collection<AttributionItem>;
  76498. /**
  76499. * The view model's state.
  76500. *
  76501. * @default disabled
  76502. *
  76503. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attribution-AttributionViewModel.html#state)
  76504. */
  76505. readonly state: "disabled" | "ready" | "loading";
  76506. /**
  76507. * The view from which the view model will operate.
  76508. *
  76509. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attribution-AttributionViewModel.html#view)
  76510. */
  76511. view: MapView | SceneView;
  76512. /**
  76513. * Provides the logic for the [Attribution](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attribution.html) widget.
  76514. *
  76515. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attribution-AttributionViewModel.html)
  76516. */
  76517. constructor(properties?: AttributionViewModelProperties);
  76518. }
  76519. /** @deprecated Import the AttributionViewModel class instead. */
  76520. export type AttributionViewModelConstructor = typeof AttributionViewModel;
  76521. interface AttributionViewModelProperties {
  76522. /**
  76523. * The view from which the view model will operate.
  76524. *
  76525. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attribution-AttributionViewModel.html#view)
  76526. */
  76527. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  76528. }
  76529. /**
  76530. * The following properties define an attribution item that contains the attribution text for a layer.
  76531. *
  76532. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attribution-AttributionViewModel.html#AttributionItem)
  76533. */
  76534. export interface AttributionItem {
  76535. /**
  76536. * The attribution text.
  76537. *
  76538. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attribution-AttributionViewModel.html#AttributionItem)
  76539. */
  76540. text: string;
  76541. /**
  76542. * The layer that has the attribution text.
  76543. *
  76544. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attribution-AttributionViewModel.html#AttributionItem)
  76545. */
  76546. layer: Layer;
  76547. }
  76548. export class BasemapGallery extends Widget {
  76549. /**
  76550. * The map's [basemap](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#basemap).
  76551. *
  76552. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html#activeBasemap)
  76553. */
  76554. activeBasemap: Basemap;
  76555. /**
  76556. * When `true`, sets the widget to a disabled state so the user cannot interact with it.
  76557. *
  76558. * @default false
  76559. *
  76560. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html#disabled)
  76561. */
  76562. disabled: boolean;
  76563. /**
  76564. * Indicates the heading level to use for the message "No basemaps available" when no basemaps are available in the BasemapGallery.
  76565. *
  76566. * @default 2
  76567. *
  76568. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html#headingLevel)
  76569. */
  76570. headingLevel: number;
  76571. /**
  76572. * The widget's default CSS icon class.
  76573. *
  76574. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html#iconClass)
  76575. */
  76576. iconClass: string;
  76577. /**
  76578. * The source for basemaps that the widget will display.
  76579. *
  76580. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html#source)
  76581. */
  76582. source: LocalBasemapsSource | PortalBasemapsSource;
  76583. /**
  76584. * The view from which the widget will operate.
  76585. *
  76586. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html#view)
  76587. */
  76588. view: MapView | SceneView;
  76589. /**
  76590. * The view model for this widget.
  76591. *
  76592. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html#viewModel)
  76593. */
  76594. viewModel: BasemapGalleryViewModel;
  76595. /**
  76596. * The BasemapGallery widget displays a collection images representing basemaps from ArcGIS.com or a user-defined set of map or image services.
  76597. *
  76598. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html)
  76599. */
  76600. constructor(properties?: BasemapGalleryProperties);
  76601. }
  76602. /** @deprecated Import the BasemapGallery class instead. */
  76603. export type BasemapGalleryConstructor = typeof BasemapGallery;
  76604. interface BasemapGalleryProperties extends WidgetProperties {
  76605. /**
  76606. * The map's [basemap](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#basemap).
  76607. *
  76608. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html#activeBasemap)
  76609. */
  76610. activeBasemap?: BasemapProperties;
  76611. /**
  76612. * When `true`, sets the widget to a disabled state so the user cannot interact with it.
  76613. *
  76614. * @default false
  76615. *
  76616. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html#disabled)
  76617. */
  76618. disabled?: boolean;
  76619. /**
  76620. * Indicates the heading level to use for the message "No basemaps available" when no basemaps are available in the BasemapGallery.
  76621. *
  76622. * @default 2
  76623. *
  76624. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html#headingLevel)
  76625. */
  76626. headingLevel?: number;
  76627. /**
  76628. * The widget's default CSS icon class.
  76629. *
  76630. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html#iconClass)
  76631. */
  76632. iconClass?: string;
  76633. /**
  76634. * The source for basemaps that the widget will display.
  76635. *
  76636. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html#source)
  76637. */
  76638. source?: | LocalBasemapsSourceProperties
  76639. | PortalBasemapsSourceProperties
  76640. | CollectionProperties<BasemapProperties>
  76641. | BasemapProperties[]
  76642. | PortalProperties;
  76643. /**
  76644. * The view from which the widget will operate.
  76645. *
  76646. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html#view)
  76647. */
  76648. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  76649. /**
  76650. * The view model for this widget.
  76651. *
  76652. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html#viewModel)
  76653. */
  76654. viewModel?: BasemapGalleryViewModelProperties;
  76655. }
  76656. export class BasemapGalleryViewModel extends Accessor {
  76657. /**
  76658. * The map's [basemap](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#basemap).
  76659. *
  76660. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-BasemapGalleryViewModel.html#activeBasemap)
  76661. */
  76662. activeBasemap: Basemap;
  76663. /**
  76664. * A collection of [BasemapGalleryItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-BasemapGalleryItem.html)s representing basemaps.
  76665. *
  76666. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-BasemapGalleryViewModel.html#items)
  76667. */
  76668. items: Collection<BasemapGalleryItem>;
  76669. /**
  76670. * The source for basemaps that the widget will display.
  76671. *
  76672. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-BasemapGalleryViewModel.html#source)
  76673. */
  76674. source: LocalBasemapsSource | PortalBasemapsSource;
  76675. /**
  76676. * The view model's state.
  76677. *
  76678. * @default disabled
  76679. *
  76680. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-BasemapGalleryViewModel.html#state)
  76681. */
  76682. readonly state: "ready" | "disabled";
  76683. /**
  76684. * The view from which the widget will operate.
  76685. *
  76686. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-BasemapGalleryViewModel.html#view)
  76687. */
  76688. view: MapView | SceneView;
  76689. /**
  76690. * Provides the logic for the [BasemapGallery](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html) widget.
  76691. *
  76692. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-BasemapGalleryViewModel.html)
  76693. */
  76694. constructor(properties?: BasemapGalleryViewModelProperties);
  76695. /**
  76696. * A convenience function to check basemap equality.
  76697. *
  76698. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-BasemapGalleryViewModel.html#basemapEquals)
  76699. */
  76700. basemapEquals(basemap1: Basemap, basemap2: Basemap): boolean;
  76701. }
  76702. /** @deprecated Import the BasemapGalleryViewModel class instead. */
  76703. export type BasemapGalleryViewModelConstructor = typeof BasemapGalleryViewModel;
  76704. interface BasemapGalleryViewModelProperties {
  76705. /**
  76706. * The map's [basemap](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#basemap).
  76707. *
  76708. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-BasemapGalleryViewModel.html#activeBasemap)
  76709. */
  76710. activeBasemap?: BasemapProperties;
  76711. /**
  76712. * A collection of [BasemapGalleryItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-BasemapGalleryItem.html)s representing basemaps.
  76713. *
  76714. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-BasemapGalleryViewModel.html#items)
  76715. */
  76716. items?: CollectionProperties<BasemapGalleryItemProperties>;
  76717. /**
  76718. * The source for basemaps that the widget will display.
  76719. *
  76720. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-BasemapGalleryViewModel.html#source)
  76721. */
  76722. source?: | LocalBasemapsSourceProperties
  76723. | PortalBasemapsSourceProperties
  76724. | CollectionProperties<BasemapProperties>
  76725. | BasemapProperties[]
  76726. | PortalProperties;
  76727. /**
  76728. * The view from which the widget will operate.
  76729. *
  76730. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-BasemapGalleryViewModel.html#view)
  76731. */
  76732. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  76733. }
  76734. export class BasemapGalleryItem extends Accessor {
  76735. /**
  76736. * The item's associated basemap.
  76737. *
  76738. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-BasemapGalleryItem.html#basemap)
  76739. */
  76740. basemap: Basemap;
  76741. /**
  76742. * The Error object returned if an error occurred.
  76743. *
  76744. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-BasemapGalleryItem.html#error)
  76745. */
  76746. readonly error: Error;
  76747. /**
  76748. * The item's state.
  76749. *
  76750. * @default loading
  76751. *
  76752. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-BasemapGalleryItem.html#state)
  76753. */
  76754. readonly state: "loading" | "ready" | "error";
  76755. /**
  76756. * The view associated with this item.
  76757. *
  76758. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-BasemapGalleryItem.html#view)
  76759. */
  76760. view: MapView | SceneView;
  76761. /**
  76762. * The BasemapGalleryItem class represents one of the [items](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-BasemapGalleryViewModel.html#items) in the [BasemapGallery](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html).
  76763. *
  76764. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-BasemapGalleryItem.html)
  76765. */
  76766. constructor(properties?: BasemapGalleryItemProperties);
  76767. }
  76768. /** @deprecated Import the BasemapGalleryItem class instead. */
  76769. export type BasemapGalleryItemConstructor = typeof BasemapGalleryItem;
  76770. interface BasemapGalleryItemProperties {
  76771. /**
  76772. * The item's associated basemap.
  76773. *
  76774. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-BasemapGalleryItem.html#basemap)
  76775. */
  76776. basemap?: BasemapProperties;
  76777. /**
  76778. * The view associated with this item.
  76779. *
  76780. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-BasemapGalleryItem.html#view)
  76781. */
  76782. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  76783. }
  76784. export class LocalBasemapsSource extends Accessor {
  76785. /**
  76786. * A collection of [Basemap](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html)s.
  76787. *
  76788. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-LocalBasemapsSource.html#basemaps)
  76789. */
  76790. basemaps: Collection<Basemap>;
  76791. /**
  76792. * The source's state.
  76793. *
  76794. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-LocalBasemapsSource.html#state)
  76795. */
  76796. readonly state: string;
  76797. /**
  76798. * The LocalBasemapsSource class is a Collection-driven [Basemap](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html) [source](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-BasemapGalleryViewModel.html#source) in the [BasemapGalleryViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-BasemapGalleryViewModel.html) or [BasemapGallery](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html) widget.
  76799. *
  76800. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-LocalBasemapsSource.html)
  76801. */
  76802. constructor(properties?: LocalBasemapsSourceProperties);
  76803. }
  76804. /** @deprecated Import the LocalBasemapsSource class instead. */
  76805. export type LocalBasemapsSourceConstructor = typeof LocalBasemapsSource;
  76806. interface LocalBasemapsSourceProperties {
  76807. /**
  76808. * A collection of [Basemap](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html)s.
  76809. *
  76810. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-LocalBasemapsSource.html#basemaps)
  76811. */
  76812. basemaps?: CollectionProperties<BasemapProperties>;
  76813. }
  76814. export class PortalBasemapsSource extends LocalBasemapsSource {
  76815. /**
  76816. * Function used to filter basemaps after being fetched from the Portal.
  76817. *
  76818. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-PortalBasemapsSource.html#filterFunction)
  76819. */
  76820. filterFunction: BasemapFilter;
  76821. /**
  76822. * The Portal from which to fetch basemaps.
  76823. *
  76824. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-PortalBasemapsSource.html#portal)
  76825. */
  76826. portal: Portal;
  76827. /**
  76828. * An object with key-value pairs used to create a custom basemap gallery group query.
  76829. *
  76830. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-PortalBasemapsSource.html#query)
  76831. */
  76832. query: any | string;
  76833. /**
  76834. * The source's state.
  76835. *
  76836. * @default not-loaded
  76837. *
  76838. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-PortalBasemapsSource.html#state)
  76839. */
  76840. readonly state: "not-loaded" | "loading" | "ready";
  76841. /**
  76842. * Callback for updating basemaps after being fetched and filtered.
  76843. *
  76844. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-PortalBasemapsSource.html#updateBasemapsCallback)
  76845. */
  76846. updateBasemapsCallback: UpdateBasemapsCallback;
  76847. /**
  76848. * The PortalBasemapsSource class is a Portal-driven [Basemap](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html) [source](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-BasemapGalleryViewModel.html#source) in the [BasemapGalleryViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-BasemapGalleryViewModel.html) or [BasemapGallery](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery.html) widget.
  76849. *
  76850. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-PortalBasemapsSource.html)
  76851. */
  76852. constructor(properties?: PortalBasemapsSourceProperties);
  76853. /**
  76854. * Refreshes basemaps by fetching them from the Portal.
  76855. *
  76856. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-PortalBasemapsSource.html#refresh)
  76857. */
  76858. refresh(): Promise<any>;
  76859. }
  76860. /** @deprecated Import the PortalBasemapsSource class instead. */
  76861. export type PortalBasemapsSourceConstructor = typeof PortalBasemapsSource;
  76862. interface PortalBasemapsSourceProperties extends LocalBasemapsSourceProperties {
  76863. /**
  76864. * Function used to filter basemaps after being fetched from the Portal.
  76865. *
  76866. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-PortalBasemapsSource.html#filterFunction)
  76867. */
  76868. filterFunction?: BasemapFilter;
  76869. /**
  76870. * The Portal from which to fetch basemaps.
  76871. *
  76872. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-PortalBasemapsSource.html#portal)
  76873. */
  76874. portal?: PortalProperties;
  76875. /**
  76876. * An object with key-value pairs used to create a custom basemap gallery group query.
  76877. *
  76878. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-PortalBasemapsSource.html#query)
  76879. */
  76880. query?: any | string;
  76881. /**
  76882. * Callback for updating basemaps after being fetched and filtered.
  76883. *
  76884. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-PortalBasemapsSource.html#updateBasemapsCallback)
  76885. */
  76886. updateBasemapsCallback?: UpdateBasemapsCallback;
  76887. }
  76888. export type BasemapFilter = (item: Basemap, index: number, array: Basemap[]) => boolean;
  76889. export type UpdateBasemapsCallback = (items: Basemap[]) => Basemap[];
  76890. export class BasemapLayerList extends Widget {
  76891. /**
  76892. * A collection of [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html)s representing the [baseLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#baseLayers).
  76893. *
  76894. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#baseItems)
  76895. */
  76896. readonly baseItems: Collection<ListItem>;
  76897. /**
  76898. * Specifies a function that accesses each [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html) representing a base layer.
  76899. *
  76900. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#baseListItemCreatedFunction)
  76901. */
  76902. baseListItemCreatedFunction: ListItemCreatedHandler;
  76903. /**
  76904. * The current basemap's title.
  76905. *
  76906. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#basemapTitle)
  76907. */
  76908. basemapTitle: string;
  76909. /**
  76910. * Indicates whether the basemap’s title, layer order and layer grouping can be edited by the user.
  76911. *
  76912. * @default false
  76913. *
  76914. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#editingEnabled)
  76915. */
  76916. editingEnabled: boolean;
  76917. /**
  76918. * Indicates the heading level to use for the widget title (i.e.
  76919. *
  76920. * @default 2
  76921. *
  76922. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#headingLevel)
  76923. */
  76924. headingLevel: number;
  76925. /**
  76926. * The widget's default CSS icon class.
  76927. *
  76928. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#iconClass)
  76929. */
  76930. iconClass: string;
  76931. /**
  76932. * Indicates whether more than one list item may be selected by the user at a single time.
  76933. *
  76934. * @default false
  76935. *
  76936. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#multipleSelectionEnabled)
  76937. */
  76938. multipleSelectionEnabled: boolean;
  76939. /**
  76940. * A collection of [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html)s representing the [referenceLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#referenceLayers).
  76941. *
  76942. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#referenceItems)
  76943. */
  76944. readonly referenceItems: Collection<ListItem>;
  76945. /**
  76946. * Specifies a function that accesses each [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html) representing a reference layer.
  76947. *
  76948. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#referenceListItemCreatedFunction)
  76949. */
  76950. referenceListItemCreatedFunction: ListItemCreatedHandler;
  76951. /**
  76952. * A collection of selected [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html)s representing basemap layers selected by the user.
  76953. *
  76954. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#selectedItems)
  76955. */
  76956. selectedItems: Collection<ListItem>;
  76957. /**
  76958. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  76959. *
  76960. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#view)
  76961. */
  76962. view: MapView | SceneView;
  76963. /**
  76964. * The view model for this widget.
  76965. *
  76966. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#viewModel)
  76967. */
  76968. viewModel: BasemapLayerListViewModel;
  76969. /**
  76970. * The visible elements that are displayed within the widget.
  76971. *
  76972. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#visibleElements)
  76973. */
  76974. visibleElements: VisibleElements;
  76975. /**
  76976. * The BasemapLayerList widget provides a way to display a list of [Basemap](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html) layers and switch on/off their visibility.
  76977. *
  76978. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html)
  76979. */
  76980. constructor(properties?: BasemapLayerListProperties);
  76981. /**
  76982. * Triggers the [trigger-action](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#event-trigger-action) event and executes the given [action](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionButton.html) or [action toggle](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionToggle.html).
  76983. *
  76984. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#triggerAction)
  76985. */
  76986. triggerAction(action: ActionButton | ActionToggle, item: ListItem): void;
  76987. on(name: "trigger-action", eventHandler: BasemapLayerListTriggerActionEventHandler): IHandle;
  76988. }
  76989. /** @deprecated Import the BasemapLayerList class instead. */
  76990. export type BasemapLayerListConstructor = typeof BasemapLayerList;
  76991. interface BasemapLayerListProperties extends WidgetProperties {
  76992. /**
  76993. * Specifies a function that accesses each [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html) representing a base layer.
  76994. *
  76995. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#baseListItemCreatedFunction)
  76996. */
  76997. baseListItemCreatedFunction?: ListItemCreatedHandler;
  76998. /**
  76999. * The current basemap's title.
  77000. *
  77001. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#basemapTitle)
  77002. */
  77003. basemapTitle?: string;
  77004. /**
  77005. * Indicates whether the basemap’s title, layer order and layer grouping can be edited by the user.
  77006. *
  77007. * @default false
  77008. *
  77009. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#editingEnabled)
  77010. */
  77011. editingEnabled?: boolean;
  77012. /**
  77013. * Indicates the heading level to use for the widget title (i.e.
  77014. *
  77015. * @default 2
  77016. *
  77017. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#headingLevel)
  77018. */
  77019. headingLevel?: number;
  77020. /**
  77021. * The widget's default CSS icon class.
  77022. *
  77023. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#iconClass)
  77024. */
  77025. iconClass?: string;
  77026. /**
  77027. * Indicates whether more than one list item may be selected by the user at a single time.
  77028. *
  77029. * @default false
  77030. *
  77031. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#multipleSelectionEnabled)
  77032. */
  77033. multipleSelectionEnabled?: boolean;
  77034. /**
  77035. * Specifies a function that accesses each [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html) representing a reference layer.
  77036. *
  77037. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#referenceListItemCreatedFunction)
  77038. */
  77039. referenceListItemCreatedFunction?: ListItemCreatedHandler;
  77040. /**
  77041. * A collection of selected [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html)s representing basemap layers selected by the user.
  77042. *
  77043. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#selectedItems)
  77044. */
  77045. selectedItems?: CollectionProperties<ListItemProperties>;
  77046. /**
  77047. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  77048. *
  77049. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#view)
  77050. */
  77051. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  77052. /**
  77053. * The view model for this widget.
  77054. *
  77055. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#viewModel)
  77056. */
  77057. viewModel?: BasemapLayerListViewModelProperties;
  77058. /**
  77059. * The visible elements that are displayed within the widget.
  77060. *
  77061. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#visibleElements)
  77062. */
  77063. visibleElements?: VisibleElements;
  77064. }
  77065. export class BasemapLayerListViewModel extends Accessor {
  77066. /**
  77067. * A collection of [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html)s representing the [baseLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#baseLayers).
  77068. *
  77069. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList-BasemapLayerListViewModel.html#baseItems)
  77070. */
  77071. readonly baseItems: Collection<ListItem>;
  77072. /**
  77073. * Specifies a function that accesses each [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html).
  77074. *
  77075. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList-BasemapLayerListViewModel.html#baseListItemCreatedFunction)
  77076. */
  77077. baseListItemCreatedFunction: ListItemCreatedHandler;
  77078. /**
  77079. * The current basemap's title.
  77080. *
  77081. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList-BasemapLayerListViewModel.html#basemapTitle)
  77082. */
  77083. basemapTitle: string;
  77084. /**
  77085. * Whether to provide an indication if a layer is being published in the [BasemapLayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html).
  77086. *
  77087. * @default false
  77088. *
  77089. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList-BasemapLayerListViewModel.html#checkPublishStatusEnabled)
  77090. */
  77091. checkPublishStatusEnabled: boolean;
  77092. /**
  77093. * A collection of [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html)s representing the [referenceLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html#referenceLayers).
  77094. *
  77095. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList-BasemapLayerListViewModel.html#referenceItems)
  77096. */
  77097. readonly referenceItems: Collection<ListItem>;
  77098. /**
  77099. * Specifies a function that accesses each [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html) representing reference layers.
  77100. *
  77101. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList-BasemapLayerListViewModel.html#referenceListItemCreatedFunction)
  77102. */
  77103. referenceListItemCreatedFunction: ListItemCreatedHandler;
  77104. /**
  77105. * The view model's state.
  77106. *
  77107. * @default disabled
  77108. *
  77109. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList-BasemapLayerListViewModel.html#state)
  77110. */
  77111. readonly state: "ready" | "loading" | "disabled";
  77112. /**
  77113. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  77114. *
  77115. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList-BasemapLayerListViewModel.html#view)
  77116. */
  77117. view: MapView | SceneView;
  77118. /**
  77119. * Provides logic for the [BasemapLayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html) widget.
  77120. *
  77121. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList-BasemapLayerListViewModel.html)
  77122. */
  77123. constructor(properties?: BasemapLayerListViewModelProperties);
  77124. /**
  77125. * Triggers the [trigger-action](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList-BasemapLayerListViewModel.html#event-trigger-action) event and executes the given [action](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionButton.html) or [action toggle](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionToggle.html).
  77126. *
  77127. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList-BasemapLayerListViewModel.html#triggerAction)
  77128. */
  77129. triggerAction(action: ActionButton | ActionToggle, item: ListItem): void;
  77130. }
  77131. /** @deprecated Import the BasemapLayerListViewModel class instead. */
  77132. export type BasemapLayerListViewModelConstructor = typeof BasemapLayerListViewModel;
  77133. interface BasemapLayerListViewModelProperties {
  77134. /**
  77135. * Specifies a function that accesses each [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html).
  77136. *
  77137. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList-BasemapLayerListViewModel.html#baseListItemCreatedFunction)
  77138. */
  77139. baseListItemCreatedFunction?: ListItemCreatedHandler;
  77140. /**
  77141. * The current basemap's title.
  77142. *
  77143. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList-BasemapLayerListViewModel.html#basemapTitle)
  77144. */
  77145. basemapTitle?: string;
  77146. /**
  77147. * Whether to provide an indication if a layer is being published in the [BasemapLayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html).
  77148. *
  77149. * @default false
  77150. *
  77151. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList-BasemapLayerListViewModel.html#checkPublishStatusEnabled)
  77152. */
  77153. checkPublishStatusEnabled?: boolean;
  77154. /**
  77155. * Specifies a function that accesses each [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html) representing reference layers.
  77156. *
  77157. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList-BasemapLayerListViewModel.html#referenceListItemCreatedFunction)
  77158. */
  77159. referenceListItemCreatedFunction?: ListItemCreatedHandler;
  77160. /**
  77161. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  77162. *
  77163. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList-BasemapLayerListViewModel.html#view)
  77164. */
  77165. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  77166. }
  77167. export type ListItemCreatedHandler = (event: any) => void;
  77168. export interface BasemapLayerListTriggerActionEvent {
  77169. action: ActionButton | ActionToggle;
  77170. item: ListItem;
  77171. }
  77172. /**
  77173. * The visible elements that are displayed within the widget.
  77174. *
  77175. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#VisibleElements)
  77176. */
  77177. export interface VisibleElements {
  77178. /**
  77179. * Indicates whether to the status indicators will be displayed.
  77180. *
  77181. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#VisibleElements)
  77182. */
  77183. statusIndicators?: boolean;
  77184. /**
  77185. * Indicates whether to the base layers will be displayed.
  77186. *
  77187. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#VisibleElements)
  77188. */
  77189. baseLayers?: boolean;
  77190. /**
  77191. * Indicates whether to the reference layers will be displayed.
  77192. *
  77193. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#VisibleElements)
  77194. */
  77195. referenceLayers?: boolean;
  77196. /**
  77197. * _Since 4.25_ Indicates whether layer load errors will be displayed.
  77198. *
  77199. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapLayerList.html#VisibleElements)
  77200. */
  77201. errors?: boolean;
  77202. }
  77203. export class BasemapToggle extends Widget {
  77204. /**
  77205. * The map's [basemap](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#basemap).
  77206. *
  77207. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle.html#activeBasemap)
  77208. */
  77209. readonly activeBasemap: Basemap;
  77210. /**
  77211. * The next basemap for toggling.
  77212. *
  77213. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle.html#nextBasemap)
  77214. */
  77215. nextBasemap: Basemap;
  77216. /**
  77217. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  77218. *
  77219. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle.html#view)
  77220. */
  77221. view: MapView | SceneView;
  77222. /**
  77223. * The view model for this widget.
  77224. *
  77225. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle.html#viewModel)
  77226. */
  77227. viewModel: BasemapToggleViewModel;
  77228. /**
  77229. * The visible elements that are displayed within the widget.
  77230. *
  77231. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle.html#visibleElements)
  77232. */
  77233. visibleElements: BasemapToggleVisibleElements;
  77234. /**
  77235. * The BasemapToggle provides a widget which allows an end-user to switch between two basemaps.
  77236. *
  77237. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle.html)
  77238. */
  77239. constructor(properties?: BasemapToggleProperties);
  77240. /**
  77241. * Toggles to the [next basemap](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle.html#nextBasemap).
  77242. *
  77243. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle.html#toggle)
  77244. */
  77245. toggle(): Promise<any>;
  77246. }
  77247. /** @deprecated Import the BasemapToggle class instead. */
  77248. export type BasemapToggleConstructor = typeof BasemapToggle;
  77249. interface BasemapToggleProperties extends WidgetProperties {
  77250. /**
  77251. * The next basemap for toggling.
  77252. *
  77253. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle.html#nextBasemap)
  77254. */
  77255. nextBasemap?: BasemapProperties | string;
  77256. /**
  77257. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  77258. *
  77259. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle.html#view)
  77260. */
  77261. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  77262. /**
  77263. * The view model for this widget.
  77264. *
  77265. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle.html#viewModel)
  77266. */
  77267. viewModel?: BasemapToggleViewModelProperties;
  77268. /**
  77269. * The visible elements that are displayed within the widget.
  77270. *
  77271. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle.html#visibleElements)
  77272. */
  77273. visibleElements?: BasemapToggleVisibleElements;
  77274. }
  77275. export class BasemapToggleViewModel extends Accessor {
  77276. /**
  77277. * The map's [basemap](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#basemap).
  77278. *
  77279. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle-BasemapToggleViewModel.html#activeBasemap)
  77280. */
  77281. readonly activeBasemap: Basemap;
  77282. /**
  77283. * The next basemap for toggling.
  77284. *
  77285. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle-BasemapToggleViewModel.html#nextBasemap)
  77286. */
  77287. nextBasemap: Basemap;
  77288. /**
  77289. * The view model's state.
  77290. *
  77291. * @default disabled
  77292. *
  77293. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle-BasemapToggleViewModel.html#state)
  77294. */
  77295. readonly state: "ready" | "disabled";
  77296. /**
  77297. * The view from which the widget will operate.
  77298. *
  77299. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle-BasemapToggleViewModel.html#view)
  77300. */
  77301. view: MapView | SceneView;
  77302. /**
  77303. * Provides the logic for the [BasemapToggle](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle.html) widget.
  77304. *
  77305. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle-BasemapToggleViewModel.html)
  77306. */
  77307. constructor(properties?: BasemapToggleViewModelProperties);
  77308. /**
  77309. * Helper method to find a basemap's thumbnail URL.
  77310. *
  77311. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle-BasemapToggleViewModel.html#getThumbnailUrl)
  77312. */
  77313. getThumbnailUrl(basemap: Basemap): string;
  77314. /**
  77315. * Toggles to the [next basemap](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle-BasemapToggleViewModel.html#nextBasemap).
  77316. *
  77317. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle-BasemapToggleViewModel.html#toggle)
  77318. */
  77319. toggle(): Promise<any>;
  77320. }
  77321. /** @deprecated Import the BasemapToggleViewModel class instead. */
  77322. export type BasemapToggleViewModelConstructor = typeof BasemapToggleViewModel;
  77323. interface BasemapToggleViewModelProperties {
  77324. /**
  77325. * The next basemap for toggling.
  77326. *
  77327. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle-BasemapToggleViewModel.html#nextBasemap)
  77328. */
  77329. nextBasemap?: BasemapProperties | string;
  77330. /**
  77331. * The view from which the widget will operate.
  77332. *
  77333. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle-BasemapToggleViewModel.html#view)
  77334. */
  77335. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  77336. }
  77337. /**
  77338. * The visible elements that are displayed within the widget.
  77339. *
  77340. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle.html#VisibleElements)
  77341. */
  77342. export interface BasemapToggleVisibleElements {
  77343. /**
  77344. * Indicates whether to the title will be displayed.
  77345. *
  77346. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapToggle.html#VisibleElements)
  77347. */
  77348. title?: boolean;
  77349. }
  77350. export interface Bookmarks extends Widget, GoTo {
  77351. }
  77352. export class Bookmarks {
  77353. /**
  77354. * A collection of [Bookmark](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-Bookmark.html)s.
  77355. *
  77356. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#bookmarks)
  77357. */
  77358. bookmarks: Collection<Bookmark>;
  77359. /**
  77360. * Specifies how new bookmarks will be created if [editingEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#editingEnabled) is set to `true`.
  77361. *
  77362. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#defaultCreateOptions)
  77363. */
  77364. defaultCreateOptions: BookmarkOptions;
  77365. /**
  77366. * Specifies how bookmarks will be edited, if [editingEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#editingEnabled) is set to `true`.
  77367. *
  77368. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#defaultEditOptions)
  77369. */
  77370. defaultEditOptions: BookmarkOptions;
  77371. /**
  77372. * When true, the widget is visually withdrawn and cannot be interacted with.
  77373. *
  77374. * @default false
  77375. *
  77376. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#disabled)
  77377. */
  77378. disabled: boolean;
  77379. /**
  77380. * Indicates whether the bookmarks are able to be edited.
  77381. *
  77382. * @default false
  77383. *
  77384. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#editingEnabled)
  77385. */
  77386. editingEnabled: boolean;
  77387. /**
  77388. * Indicates the heading level to use for the message "No bookmarks" when no bookmarks are available in this widget.
  77389. *
  77390. * @default 2
  77391. *
  77392. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#headingLevel)
  77393. */
  77394. headingLevel: number;
  77395. /**
  77396. * The widget's default CSS icon class.
  77397. *
  77398. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#iconClass)
  77399. */
  77400. iconClass: string;
  77401. /**
  77402. * The view from which the widget will operate.
  77403. *
  77404. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#view)
  77405. */
  77406. view: MapView | SceneView;
  77407. /**
  77408. * The view model for this widget.
  77409. *
  77410. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#viewModel)
  77411. */
  77412. viewModel: BookmarksViewModel;
  77413. /**
  77414. * The visible elements that are displayed within the widget.
  77415. *
  77416. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#visibleElements)
  77417. */
  77418. visibleElements: BookmarksVisibleElements;
  77419. /**
  77420. * The Bookmarks widget allows end users to quickly navigate to a particular area of interest.
  77421. *
  77422. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html)
  77423. */
  77424. constructor(properties?: BookmarksProperties);
  77425. /**
  77426. * Zoom to a specific bookmark.
  77427. *
  77428. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#goTo)
  77429. */
  77430. goTo(Bookmark: Bookmark): Promise<any>;
  77431. on(name: "bookmark-select", eventHandler: BookmarksBookmarkSelectEventHandler): IHandle;
  77432. on(name: "bookmark-edit", eventHandler: BookmarksBookmarkEditEventHandler): IHandle;
  77433. }
  77434. /** @deprecated Import the Bookmarks class instead. */
  77435. export type BookmarksConstructor = typeof Bookmarks;
  77436. interface BookmarksProperties extends WidgetProperties, GoToProperties {
  77437. /**
  77438. * A collection of [Bookmark](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-Bookmark.html)s.
  77439. *
  77440. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#bookmarks)
  77441. */
  77442. bookmarks?: CollectionProperties<BookmarkProperties>;
  77443. /**
  77444. * Specifies how new bookmarks will be created if [editingEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#editingEnabled) is set to `true`.
  77445. *
  77446. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#defaultCreateOptions)
  77447. */
  77448. defaultCreateOptions?: BookmarkOptions;
  77449. /**
  77450. * Specifies how bookmarks will be edited, if [editingEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#editingEnabled) is set to `true`.
  77451. *
  77452. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#defaultEditOptions)
  77453. */
  77454. defaultEditOptions?: BookmarkOptions;
  77455. /**
  77456. * When true, the widget is visually withdrawn and cannot be interacted with.
  77457. *
  77458. * @default false
  77459. *
  77460. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#disabled)
  77461. */
  77462. disabled?: boolean;
  77463. /**
  77464. * Indicates whether the bookmarks are able to be edited.
  77465. *
  77466. * @default false
  77467. *
  77468. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#editingEnabled)
  77469. */
  77470. editingEnabled?: boolean;
  77471. /**
  77472. * Indicates the heading level to use for the message "No bookmarks" when no bookmarks are available in this widget.
  77473. *
  77474. * @default 2
  77475. *
  77476. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#headingLevel)
  77477. */
  77478. headingLevel?: number;
  77479. /**
  77480. * The widget's default CSS icon class.
  77481. *
  77482. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#iconClass)
  77483. */
  77484. iconClass?: string;
  77485. /**
  77486. * The view from which the widget will operate.
  77487. *
  77488. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#view)
  77489. */
  77490. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  77491. /**
  77492. * The view model for this widget.
  77493. *
  77494. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#viewModel)
  77495. */
  77496. viewModel?: BookmarksViewModelProperties;
  77497. /**
  77498. * The visible elements that are displayed within the widget.
  77499. *
  77500. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#visibleElements)
  77501. */
  77502. visibleElements?: BookmarksVisibleElements;
  77503. }
  77504. export interface BookmarksViewModel extends Accessor, GoTo {
  77505. }
  77506. export class BookmarksViewModel {
  77507. /**
  77508. * Defines the abilities of the widget.
  77509. *
  77510. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#abilities)
  77511. */
  77512. abilities: Abilities;
  77513. /**
  77514. * The [Bookmark](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-Bookmark.html) that is being navigated to.
  77515. *
  77516. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#activeBookmark)
  77517. */
  77518. readonly activeBookmark: Bookmark;
  77519. /**
  77520. * A collection of [Bookmark](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-Bookmark.html)s.
  77521. *
  77522. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#bookmarks)
  77523. */
  77524. bookmarks: Collection<Bookmark>;
  77525. /**
  77526. * Specifies how new bookmarks will be created.
  77527. *
  77528. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#defaultCreateOptions)
  77529. */
  77530. defaultCreateOptions: BookmarkOptions;
  77531. /**
  77532. * Specifies how bookmarks will be edited.
  77533. *
  77534. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#defaultEditOptions)
  77535. */
  77536. defaultEditOptions: BookmarkOptions;
  77537. /**
  77538. * The view model's state.
  77539. *
  77540. * @default ready
  77541. *
  77542. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#state)
  77543. */
  77544. readonly state: "loading" | "ready";
  77545. /**
  77546. * The view from which the widget will operate.
  77547. *
  77548. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#view)
  77549. */
  77550. view: MapView | SceneView;
  77551. /**
  77552. * Provides the logic for the [Bookmarks](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html) widget.
  77553. *
  77554. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html)
  77555. */
  77556. constructor(properties?: BookmarksViewModelProperties);
  77557. /**
  77558. * Creates a new bookmark from the [defaultCreateOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#defaultCreateOptions), unless otherwise specified.
  77559. *
  77560. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#createBookmark)
  77561. */
  77562. createBookmark(options?: BookmarkOptions): Promise<Bookmark>;
  77563. /**
  77564. * Edits the given bookmark.
  77565. *
  77566. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#editBookmark)
  77567. */
  77568. editBookmark(bookmark: Bookmark, options?: BookmarkOptions): Promise<Bookmark>;
  77569. /**
  77570. * Zoom to a specific bookmark.
  77571. *
  77572. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#goTo)
  77573. */
  77574. goTo(bookmark: Bookmark): Promise<any>;
  77575. }
  77576. /** @deprecated Import the BookmarksViewModel class instead. */
  77577. export type BookmarksViewModelConstructor = typeof BookmarksViewModel;
  77578. interface BookmarksViewModelProperties extends GoToProperties {
  77579. /**
  77580. * Defines the abilities of the widget.
  77581. *
  77582. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#abilities)
  77583. */
  77584. abilities?: Abilities;
  77585. /**
  77586. * A collection of [Bookmark](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-Bookmark.html)s.
  77587. *
  77588. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#bookmarks)
  77589. */
  77590. bookmarks?: CollectionProperties<BookmarkProperties>;
  77591. /**
  77592. * Specifies how new bookmarks will be created.
  77593. *
  77594. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#defaultCreateOptions)
  77595. */
  77596. defaultCreateOptions?: BookmarkOptions;
  77597. /**
  77598. * Specifies how bookmarks will be edited.
  77599. *
  77600. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#defaultEditOptions)
  77601. */
  77602. defaultEditOptions?: BookmarkOptions;
  77603. /**
  77604. * The view from which the widget will operate.
  77605. *
  77606. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#view)
  77607. */
  77608. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  77609. }
  77610. /**
  77611. * Specifies the abilities for the Bookmarks widget.
  77612. *
  77613. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#Abilities)
  77614. */
  77615. export interface Abilities {
  77616. /**
  77617. * Indicates whether the time ability is enabled in the Bookmarks widget.
  77618. *
  77619. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#Abilities)
  77620. */
  77621. time?: boolean;
  77622. }
  77623. /**
  77624. * Specifies how bookmarks will be created or modified.
  77625. *
  77626. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#BookmarkOptions)
  77627. */
  77628. export interface BookmarkOptions {
  77629. /**
  77630. * Indicates whether a screenshot is taken when a new bookmark is created.
  77631. *
  77632. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#BookmarkOptions)
  77633. */
  77634. takeScreenshot?: boolean;
  77635. /**
  77636. * _Since 4.17_ Indicates whether the viewpoint of the current view will become the [viewpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-Bookmark.html#viewpoint) of a newly created or modified bookmark.
  77637. *
  77638. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#BookmarkOptions)
  77639. */
  77640. captureViewpoint?: boolean;
  77641. /**
  77642. * _Since 4.17_ Indicates whether the rotation of the current view will be saved in the [viewpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-Bookmark.html#viewpoint) of a newly created or modified bookmark.
  77643. *
  77644. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#BookmarkOptions)
  77645. */
  77646. captureRotation?: boolean;
  77647. /**
  77648. * _Since 4.17_ Indicates whether the scale of the current view will be saved in the [viewpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-Bookmark.html#viewpoint) of a newly created or modified bookmark.
  77649. *
  77650. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#BookmarkOptions)
  77651. */
  77652. captureScale?: boolean;
  77653. /**
  77654. * _Since 4.22_ Indicates whether the time extent of the current view will be saved in the [timeExtent](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-Bookmark.html#timeExtent) of a newly created or modified bookmark.
  77655. *
  77656. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#BookmarkOptions)
  77657. */
  77658. captureTimeExtent?: boolean;
  77659. /**
  77660. * An object that specifies the settings of the screenshot that will be used to create the bookmark's [thumbnail](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-Bookmark.html#thumbnail).
  77661. *
  77662. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#BookmarkOptions)
  77663. */
  77664. screenshotSettings?: BookmarkOptionsScreenshotSettings;
  77665. }
  77666. export interface BookmarkOptionsScreenshotSettings {
  77667. /**
  77668. * The width (in pixels) of the screenshot.
  77669. *
  77670. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#BookmarkOptions)
  77671. */
  77672. width?: number;
  77673. /**
  77674. * The height (in pixels) of the screenshot.
  77675. *
  77676. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#BookmarkOptions)
  77677. */
  77678. height?: number;
  77679. /**
  77680. * Used to take a screenshot of a subregion of the view.
  77681. *
  77682. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#BookmarkOptions)
  77683. */
  77684. area?: BookmarkOptionsScreenshotSettingsArea;
  77685. /**
  77686. * An optional list of layers to be included in the screenshot.
  77687. *
  77688. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#BookmarkOptions)
  77689. */
  77690. layers?: Layer[];
  77691. }
  77692. export interface BookmarkOptionsScreenshotSettingsArea {
  77693. /**
  77694. * The x value of the screenshot area.
  77695. *
  77696. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#BookmarkOptions)
  77697. */
  77698. x?: number;
  77699. /**
  77700. * The y value of the screenshot area.
  77701. *
  77702. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#BookmarkOptions)
  77703. */
  77704. y?: number;
  77705. /**
  77706. * The width of the screenshot area.
  77707. *
  77708. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#BookmarkOptions)
  77709. */
  77710. width?: number;
  77711. /**
  77712. * The height of the screenshot area.
  77713. *
  77714. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks-BookmarksViewModel.html#BookmarkOptions)
  77715. */
  77716. height?: number;
  77717. }
  77718. export interface BookmarksBookmarkEditEvent {
  77719. bookmark: Bookmark;
  77720. }
  77721. export interface BookmarksBookmarkSelectEvent {
  77722. bookmark: Bookmark;
  77723. }
  77724. /**
  77725. * The visible elements that are displayed within the widget.
  77726. *
  77727. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#VisibleElements)
  77728. */
  77729. export interface BookmarksVisibleElements {
  77730. /**
  77731. * Indicates whether to button to add a new bookmark displays.
  77732. *
  77733. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#VisibleElements)
  77734. */
  77735. addBookmark?: boolean;
  77736. /**
  77737. * Indicates whether the thumbnail associated with the bookmark displays.
  77738. *
  77739. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#VisibleElements)
  77740. */
  77741. thumbnail?: boolean;
  77742. /**
  77743. * _Since 4.22_ Indicates whether the time (`h:m:s`) is displayed alongside the date if the bookmark has a [time extent](https://developers.arcgis.com/javascript/latest/api-reference/esri-webmap-Bookmark.html#timeExtent) defined.
  77744. *
  77745. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Bookmarks.html#VisibleElements)
  77746. */
  77747. time?: boolean;
  77748. }
  77749. export class BuildingExplorer extends Widget {
  77750. /**
  77751. * Indicates the heading level to use for the headings in the widget.
  77752. *
  77753. * @default 3
  77754. *
  77755. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer.html#headingLevel)
  77756. */
  77757. headingLevel: number;
  77758. /**
  77759. * The widget's default CSS icon class.
  77760. *
  77761. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer.html#iconClass)
  77762. */
  77763. iconClass: string;
  77764. /**
  77765. * A [collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of layers of type [BuildingSceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html) that are added to the widget for exploration.
  77766. *
  77767. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer.html#layers)
  77768. */
  77769. layers: Collection<BuildingSceneLayer>;
  77770. /**
  77771. * A reference to the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  77772. *
  77773. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer.html#view)
  77774. */
  77775. view: SceneView;
  77776. /**
  77777. * The view model for this widget.
  77778. *
  77779. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer.html#viewModel)
  77780. */
  77781. viewModel: BuildingExplorerViewModel;
  77782. /**
  77783. * This property provides the ability to display or hide the individual elements of the widget.
  77784. *
  77785. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer.html#visibleElements)
  77786. */
  77787. visibleElements: BuildingExplorerVisibleElements;
  77788. /**
  77789. * The BuildingExplorer widget is used to filter and explore the various components of [BuildingSceneLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html).
  77790. *
  77791. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer.html)
  77792. */
  77793. constructor(properties?: BuildingExplorerProperties);
  77794. }
  77795. /** @deprecated Import the BuildingExplorer class instead. */
  77796. export type BuildingExplorerConstructor = typeof BuildingExplorer;
  77797. interface BuildingExplorerProperties extends WidgetProperties {
  77798. /**
  77799. * Indicates the heading level to use for the headings in the widget.
  77800. *
  77801. * @default 3
  77802. *
  77803. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer.html#headingLevel)
  77804. */
  77805. headingLevel?: number;
  77806. /**
  77807. * The widget's default CSS icon class.
  77808. *
  77809. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer.html#iconClass)
  77810. */
  77811. iconClass?: string;
  77812. /**
  77813. * A [collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of layers of type [BuildingSceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html) that are added to the widget for exploration.
  77814. *
  77815. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer.html#layers)
  77816. */
  77817. layers?: CollectionProperties<BuildingSceneLayerProperties>;
  77818. /**
  77819. * A reference to the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  77820. *
  77821. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer.html#view)
  77822. */
  77823. view?: SceneViewProperties;
  77824. /**
  77825. * The view model for this widget.
  77826. *
  77827. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer.html#viewModel)
  77828. */
  77829. viewModel?: BuildingExplorerViewModelProperties;
  77830. /**
  77831. * This property provides the ability to display or hide the individual elements of the widget.
  77832. *
  77833. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer.html#visibleElements)
  77834. */
  77835. visibleElements?: BuildingExplorerVisibleElements;
  77836. }
  77837. export class BuildingExplorerViewModel extends Accessor {
  77838. /**
  77839. * A collection of layers of type [BuildingSceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html) that are added to the widget for exploration.
  77840. *
  77841. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingExplorerViewModel.html#layers)
  77842. */
  77843. layers: Collection<BuildingSceneLayer>;
  77844. /**
  77845. * Contains information about the level filter, such as the value selected by the user in the Level element or the minimum and maximum allowed values.
  77846. *
  77847. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingExplorerViewModel.html#level)
  77848. */
  77849. readonly level: BuildingLevel;
  77850. /**
  77851. * Contains information about the construction phase filter, such as the value selected by the user in the Construction phases element and the minimum and maximum allowed values.
  77852. *
  77853. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingExplorerViewModel.html#phase)
  77854. */
  77855. readonly phase: BuildingPhase;
  77856. /**
  77857. * The current state of the view model that can be used for rendering the UI of the widget.
  77858. *
  77859. * @default disabled
  77860. *
  77861. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingExplorerViewModel.html#state)
  77862. */
  77863. readonly state: "disabled" | "loading" | "ready" | "failed";
  77864. /**
  77865. * The view in which the BuildingExplorer is used.
  77866. *
  77867. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingExplorerViewModel.html#view)
  77868. */
  77869. view: SceneView;
  77870. /**
  77871. * Provides the logic for the [BuildingExplorer](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer.html) widget.
  77872. *
  77873. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingExplorerViewModel.html)
  77874. */
  77875. constructor(properties?: BuildingExplorerViewModelProperties);
  77876. }
  77877. /** @deprecated Import the BuildingExplorerViewModel class instead. */
  77878. export type BuildingExplorerViewModelConstructor = typeof BuildingExplorerViewModel;
  77879. interface BuildingExplorerViewModelProperties {
  77880. /**
  77881. * A collection of layers of type [BuildingSceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BuildingSceneLayer.html) that are added to the widget for exploration.
  77882. *
  77883. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingExplorerViewModel.html#layers)
  77884. */
  77885. layers?: CollectionProperties<BuildingSceneLayerProperties>;
  77886. /**
  77887. * The view in which the BuildingExplorer is used.
  77888. *
  77889. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingExplorerViewModel.html#view)
  77890. */
  77891. view?: SceneViewProperties;
  77892. }
  77893. export class BuildingLevel extends Accessor {
  77894. /**
  77895. * List of all the values which are allowed for the filter.
  77896. *
  77897. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingLevel.html#allowedValues)
  77898. */
  77899. readonly allowedValues: number[];
  77900. /**
  77901. * Whether the filter is enabled.
  77902. *
  77903. * @default false
  77904. *
  77905. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingLevel.html#enabled)
  77906. */
  77907. readonly enabled: boolean;
  77908. /**
  77909. * Whether the next value can be selected.
  77910. *
  77911. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingLevel.html#hasNext)
  77912. */
  77913. readonly hasNext: boolean;
  77914. /**
  77915. * Whether the previous value can be selected.
  77916. *
  77917. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingLevel.html#hasPrevious)
  77918. */
  77919. readonly hasPrevious: boolean;
  77920. /**
  77921. * The maximum value allowed for the filter.
  77922. *
  77923. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingLevel.html#max)
  77924. */
  77925. readonly max: number;
  77926. /**
  77927. * The minimum value allowed for the filter.
  77928. *
  77929. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingLevel.html#min)
  77930. */
  77931. readonly min: number;
  77932. /**
  77933. * The value which is currently set on the filter.
  77934. *
  77935. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingLevel.html#value)
  77936. */
  77937. readonly value: number;
  77938. /**
  77939. * Provides information for the building level filter, such as the value selected by the user or the minimum and maximum allowed values.
  77940. *
  77941. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingLevel.html)
  77942. */
  77943. constructor(properties?: BuildingLevelProperties);
  77944. /**
  77945. * Removes the filter by setting [enabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingLevel.html#enabled) to `false`.
  77946. *
  77947. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingLevel.html#clear)
  77948. */
  77949. clear(): void;
  77950. /**
  77951. * If the field that is used for filtering has a coded value domain, the label for the value can be used to be displayed in a tooltip or in the widget UI.
  77952. *
  77953. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingLevel.html#getValueLabel)
  77954. */
  77955. getValueLabel(value: number): string | null;
  77956. /**
  77957. * Selects the next value, if available.
  77958. *
  77959. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingLevel.html#next)
  77960. */
  77961. next(): void;
  77962. /**
  77963. * Selects the previous value, if available.
  77964. *
  77965. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingLevel.html#previous)
  77966. */
  77967. previous(): void;
  77968. /**
  77969. * Selects the specified value for the filter.
  77970. *
  77971. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingLevel.html#select)
  77972. */
  77973. select(value: number): void;
  77974. }
  77975. /** @deprecated Import the BuildingLevel class instead. */
  77976. export type BuildingLevelConstructor = typeof BuildingLevel;
  77977. interface BuildingLevelProperties {
  77978. }
  77979. export class BuildingPhase extends Accessor {
  77980. /**
  77981. * List of all the values which are allowed for the filter.
  77982. *
  77983. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingPhase.html#allowedValues)
  77984. */
  77985. readonly allowedValues: number[];
  77986. /**
  77987. * Whether the filter is enabled.
  77988. *
  77989. * @default false
  77990. *
  77991. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingPhase.html#enabled)
  77992. */
  77993. readonly enabled: boolean;
  77994. /**
  77995. * Whether the next value can be selected.
  77996. *
  77997. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingPhase.html#hasNext)
  77998. */
  77999. readonly hasNext: boolean;
  78000. /**
  78001. * Whether the previous value can be selected.
  78002. *
  78003. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingPhase.html#hasPrevious)
  78004. */
  78005. readonly hasPrevious: boolean;
  78006. /**
  78007. * The maximum value allowed for the filter.
  78008. *
  78009. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingPhase.html#max)
  78010. */
  78011. readonly max: number;
  78012. /**
  78013. * The minimum value allowed for the filter.
  78014. *
  78015. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingPhase.html#min)
  78016. */
  78017. readonly min: number;
  78018. /**
  78019. * The value which is currently set on the filter.
  78020. *
  78021. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingPhase.html#value)
  78022. */
  78023. readonly value: number;
  78024. /**
  78025. * BuildingPhase provides information for the construction phase filter, such as the value selected by the user or the minimum and maximum allowed values.
  78026. *
  78027. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingPhase.html)
  78028. */
  78029. constructor(properties?: BuildingPhaseProperties);
  78030. /**
  78031. * Removes the filter by setting [enabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingPhase.html#enabled) to `false`.
  78032. *
  78033. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingPhase.html#clear)
  78034. */
  78035. clear(): void;
  78036. /**
  78037. * If the field that is used for filtering has a coded value domain, the label for the value can be used to be displayed in a tooltip or in the widget UI.
  78038. *
  78039. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingPhase.html#getValueLabel)
  78040. */
  78041. getValueLabel(value: number): string | null;
  78042. /**
  78043. * Selects the next value, if available.
  78044. *
  78045. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingPhase.html#next)
  78046. */
  78047. next(): void;
  78048. /**
  78049. * Selects the previous value, if available.
  78050. *
  78051. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingPhase.html#previous)
  78052. */
  78053. previous(): void;
  78054. /**
  78055. * Selects the specified value for the filter.
  78056. *
  78057. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer-BuildingPhase.html#select)
  78058. */
  78059. select(value: number): void;
  78060. }
  78061. /** @deprecated Import the BuildingPhase class instead. */
  78062. export type BuildingPhaseConstructor = typeof BuildingPhase;
  78063. interface BuildingPhaseProperties {
  78064. }
  78065. /**
  78066. * The visible elements that are displayed within the widget.
  78067. *
  78068. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer.html#VisibleElements)
  78069. */
  78070. export interface BuildingExplorerVisibleElements {
  78071. /**
  78072. * When set to `false`, the building levels filter is not displayed.
  78073. *
  78074. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer.html#VisibleElements)
  78075. */
  78076. levels?: boolean;
  78077. /**
  78078. * When set to `false`, the construction phases filter is not displayed.
  78079. *
  78080. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer.html#VisibleElements)
  78081. */
  78082. phases?: boolean;
  78083. /**
  78084. * When set to `false`, the disciplines and categories sublayer list is not displayed.
  78085. *
  78086. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BuildingExplorer.html#VisibleElements)
  78087. */
  78088. disciplines?: boolean;
  78089. }
  78090. export interface Compass extends Widget, GoTo {
  78091. }
  78092. export class Compass {
  78093. /**
  78094. * The widget's default CSS icon class.
  78095. *
  78096. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Compass.html#iconClass)
  78097. */
  78098. iconClass: string;
  78099. /**
  78100. * The view in which the Compass obtains and indicates camera [heading](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html#heading), using a (SceneView) or rotation (MapView).
  78101. *
  78102. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Compass.html#view)
  78103. */
  78104. view: MapView | SceneView;
  78105. /**
  78106. * The view model for this widget.
  78107. *
  78108. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Compass.html#viewModel)
  78109. */
  78110. viewModel: CompassViewModel;
  78111. /**
  78112. * The Compass widget indicates where north is in relation to the current view [rotation](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#rotation) or [camera heading](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html#heading).
  78113. *
  78114. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Compass.html)
  78115. */
  78116. constructor(properties?: CompassProperties);
  78117. /**
  78118. * If working in a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html), sets the view's [rotation](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#rotation) to `0`.
  78119. *
  78120. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Compass.html#reset)
  78121. */
  78122. reset(): void;
  78123. }
  78124. /** @deprecated Import the Compass class instead. */
  78125. export type CompassConstructor = typeof Compass;
  78126. interface CompassProperties extends WidgetProperties, GoToProperties {
  78127. /**
  78128. * The widget's default CSS icon class.
  78129. *
  78130. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Compass.html#iconClass)
  78131. */
  78132. iconClass?: string;
  78133. /**
  78134. * The view in which the Compass obtains and indicates camera [heading](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html#heading), using a (SceneView) or rotation (MapView).
  78135. *
  78136. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Compass.html#view)
  78137. */
  78138. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  78139. /**
  78140. * The view model for this widget.
  78141. *
  78142. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Compass.html#viewModel)
  78143. */
  78144. viewModel?: CompassViewModelProperties;
  78145. }
  78146. export interface CompassViewModel extends Accessor, GoTo {
  78147. }
  78148. export class CompassViewModel {
  78149. /**
  78150. * The orientation axes (x, y, z).
  78151. *
  78152. * @default { x: 0, y: 0, z: 0 }
  78153. *
  78154. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Compass-CompassViewModel.html#orientation)
  78155. */
  78156. orientation: any;
  78157. /**
  78158. * The view model's state.
  78159. *
  78160. * @default disabled
  78161. *
  78162. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Compass-CompassViewModel.html#state)
  78163. */
  78164. readonly state: "compass" | "rotation" | "disabled";
  78165. /**
  78166. * The view in which the Compass obtains and indicates camera [heading](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html#heading), using a (SceneView) or rotation (MapView).
  78167. *
  78168. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Compass-CompassViewModel.html#view)
  78169. */
  78170. view: MapView | SceneView;
  78171. /**
  78172. * Provides the logic for the [Compass](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Compass.html) widget.
  78173. *
  78174. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Compass-CompassViewModel.html)
  78175. */
  78176. constructor(properties?: CompassViewModelProperties);
  78177. /**
  78178. * If working in a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html), sets the view's [rotation](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#rotation) is to `0`.
  78179. *
  78180. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Compass-CompassViewModel.html#reset)
  78181. */
  78182. reset(): void;
  78183. }
  78184. /** @deprecated Import the CompassViewModel class instead. */
  78185. export type CompassViewModelConstructor = typeof CompassViewModel;
  78186. interface CompassViewModelProperties extends GoToProperties {
  78187. /**
  78188. * The orientation axes (x, y, z).
  78189. *
  78190. * @default { x: 0, y: 0, z: 0 }
  78191. *
  78192. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Compass-CompassViewModel.html#orientation)
  78193. */
  78194. orientation?: any;
  78195. /**
  78196. * The view in which the Compass obtains and indicates camera [heading](https://developers.arcgis.com/javascript/latest/api-reference/esri-Camera.html#heading), using a (SceneView) or rotation (MapView).
  78197. *
  78198. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Compass-CompassViewModel.html#view)
  78199. */
  78200. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  78201. }
  78202. export interface CoordinateConversion extends Widget, GoTo {
  78203. }
  78204. export class CoordinateConversion {
  78205. /**
  78206. * A [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) containing every [Conversion](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Conversion.html) that the widget is currently displaying.
  78207. *
  78208. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#conversions)
  78209. */
  78210. conversions: Collection<Conversion>;
  78211. /**
  78212. * Describes the location of the coordinates currently displayed by the widget as a [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html).
  78213. *
  78214. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#currentLocation)
  78215. */
  78216. readonly currentLocation: Point;
  78217. /**
  78218. * A [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) containing every [Format](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html) that the widget is capable of displaying.
  78219. *
  78220. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#formats)
  78221. */
  78222. formats: Collection<Format>;
  78223. /**
  78224. * Indicates the heading level to use for the coordinate input and coordinate settings headings.
  78225. *
  78226. * @default 4
  78227. *
  78228. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#headingLevel)
  78229. */
  78230. headingLevel: number;
  78231. /**
  78232. * This symbol is used to visualize the location currently described by the widget when `capture` mode is active.
  78233. *
  78234. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#locationSymbol)
  78235. */
  78236. locationSymbol: SimpleMarkerSymbol | PictureMarkerSymbol;
  78237. /**
  78238. * Describes the current mode of the widget.
  78239. *
  78240. * @default live
  78241. *
  78242. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#mode)
  78243. */
  78244. mode: "live" | "capture";
  78245. /**
  78246. * If this property is set to `true`, multiple conversions can be displayed.
  78247. *
  78248. * @default true
  78249. *
  78250. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#multipleConversions)
  78251. */
  78252. multipleConversions: boolean;
  78253. /**
  78254. * Determines whether the widget should expand up or down.
  78255. *
  78256. * @default auto
  78257. *
  78258. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#orientation)
  78259. */
  78260. orientation: "auto" | "expand-up" | "expand-down";
  78261. /**
  78262. * If this property is set to `true`, sessionStorage or localStorage (depending on [storageType](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#storageType)) will be used to hydrate and persist the CoordinateConversion widget's state.
  78263. *
  78264. * @default true
  78265. *
  78266. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#storageEnabled)
  78267. */
  78268. storageEnabled: boolean;
  78269. /**
  78270. * This property determines whether sessionStorage or localStorage will be used to store widget state.
  78271. *
  78272. * @default "session"
  78273. *
  78274. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#storageType)
  78275. */
  78276. storageType: "session" | "local";
  78277. /**
  78278. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  78279. *
  78280. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#view)
  78281. */
  78282. view: MapView | SceneView;
  78283. /**
  78284. * The view model for this widget.
  78285. *
  78286. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#viewModel)
  78287. */
  78288. viewModel: CoordinateConversionViewModel;
  78289. /**
  78290. * The visible elements that are displayed within the widget.
  78291. *
  78292. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#visibleElements)
  78293. */
  78294. visibleElements: CoordinateConversionVisibleElements;
  78295. /**
  78296. * The CoordinateConversion widget provides a way to display user cursor position either as map coordinates or as any of several popular coordinate notations.
  78297. *
  78298. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html)
  78299. */
  78300. constructor(properties?: CoordinateConversionProperties);
  78301. /**
  78302. * Attempt to convert a string into a [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html).
  78303. *
  78304. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#reverseConvert)
  78305. */
  78306. reverseConvert(coordinate: string, format: Format): Promise<Point>;
  78307. }
  78308. /** @deprecated Import the CoordinateConversion class instead. */
  78309. export type CoordinateConversionConstructor = typeof CoordinateConversion;
  78310. interface CoordinateConversionProperties extends WidgetProperties, GoToProperties {
  78311. /**
  78312. * A [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) containing every [Conversion](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Conversion.html) that the widget is currently displaying.
  78313. *
  78314. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#conversions)
  78315. */
  78316. conversions?: CollectionProperties<ConversionProperties>;
  78317. /**
  78318. * A [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) containing every [Format](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html) that the widget is capable of displaying.
  78319. *
  78320. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#formats)
  78321. */
  78322. formats?: CollectionProperties<FormatProperties>;
  78323. /**
  78324. * Indicates the heading level to use for the coordinate input and coordinate settings headings.
  78325. *
  78326. * @default 4
  78327. *
  78328. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#headingLevel)
  78329. */
  78330. headingLevel?: number;
  78331. /**
  78332. * This symbol is used to visualize the location currently described by the widget when `capture` mode is active.
  78333. *
  78334. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#locationSymbol)
  78335. */
  78336. locationSymbol?: | (SimpleMarkerSymbolProperties & { type: "simple-marker" })
  78337. | (PictureMarkerSymbolProperties & { type: "picture-marker" });
  78338. /**
  78339. * Describes the current mode of the widget.
  78340. *
  78341. * @default live
  78342. *
  78343. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#mode)
  78344. */
  78345. mode?: "live" | "capture";
  78346. /**
  78347. * If this property is set to `true`, multiple conversions can be displayed.
  78348. *
  78349. * @default true
  78350. *
  78351. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#multipleConversions)
  78352. */
  78353. multipleConversions?: boolean;
  78354. /**
  78355. * Determines whether the widget should expand up or down.
  78356. *
  78357. * @default auto
  78358. *
  78359. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#orientation)
  78360. */
  78361. orientation?: "auto" | "expand-up" | "expand-down";
  78362. /**
  78363. * If this property is set to `true`, sessionStorage or localStorage (depending on [storageType](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#storageType)) will be used to hydrate and persist the CoordinateConversion widget's state.
  78364. *
  78365. * @default true
  78366. *
  78367. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#storageEnabled)
  78368. */
  78369. storageEnabled?: boolean;
  78370. /**
  78371. * This property determines whether sessionStorage or localStorage will be used to store widget state.
  78372. *
  78373. * @default "session"
  78374. *
  78375. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#storageType)
  78376. */
  78377. storageType?: "session" | "local";
  78378. /**
  78379. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  78380. *
  78381. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#view)
  78382. */
  78383. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  78384. /**
  78385. * The view model for this widget.
  78386. *
  78387. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#viewModel)
  78388. */
  78389. viewModel?: CoordinateConversionViewModelProperties;
  78390. /**
  78391. * The visible elements that are displayed within the widget.
  78392. *
  78393. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#visibleElements)
  78394. */
  78395. visibleElements?: CoordinateConversionVisibleElements;
  78396. }
  78397. export interface CoordinateConversionViewModel extends Accessor, GoTo {
  78398. }
  78399. export class CoordinateConversionViewModel {
  78400. /**
  78401. * A [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) containing every [Conversion](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Conversion.html) that the widget is currently displaying.
  78402. *
  78403. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html#conversions)
  78404. */
  78405. conversions: Collection<Conversion>;
  78406. /**
  78407. * Describes the location of the coordinates currently displayed by the widget as a [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html).
  78408. *
  78409. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html#currentLocation)
  78410. */
  78411. currentLocation: Point;
  78412. /**
  78413. * A [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) containing every [Format](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html) that the widget is capable of displaying.
  78414. *
  78415. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html#formats)
  78416. */
  78417. formats: Collection<Format>;
  78418. /**
  78419. * This symbol is used to visualize the location currently described by the widget when `capture` mode is active.
  78420. *
  78421. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html#locationSymbol)
  78422. */
  78423. locationSymbol: SimpleMarkerSymbol | PictureMarkerSymbol;
  78424. /**
  78425. * Describes the current mode of the widget.
  78426. *
  78427. * @default live
  78428. *
  78429. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html#mode)
  78430. */
  78431. mode: "live" | "capture";
  78432. /**
  78433. * The view model's state.
  78434. *
  78435. * @default disabled
  78436. *
  78437. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html#state)
  78438. */
  78439. readonly state: "ready" | "loading" | "disabled";
  78440. /**
  78441. * If this property is set to `true`, sessionStorage or localStorage (depending on [storageType](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html#storageType)) will be used to hydrate and persist the CoordinateConversion widget's state.
  78442. *
  78443. * @default true
  78444. *
  78445. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html#storageEnabled)
  78446. */
  78447. storageEnabled: boolean;
  78448. /**
  78449. * This property determines whether sessionStorage or localStorage will be used to store widget state.
  78450. *
  78451. * @default "session"
  78452. *
  78453. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html#storageType)
  78454. */
  78455. storageType: "session" | "local";
  78456. /**
  78457. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  78458. *
  78459. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html#view)
  78460. */
  78461. view: MapView | SceneView;
  78462. /**
  78463. * Provides the logic for the [CoordinateConversion](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html) widget.
  78464. *
  78465. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html)
  78466. */
  78467. constructor(properties?: CoordinateConversionViewModelProperties);
  78468. /**
  78469. * Attempt to convert a point into a [Position](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html#Position).
  78470. *
  78471. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html#convert)
  78472. */
  78473. convert(point: Point, format: Format): Promise<Position>;
  78474. /**
  78475. * Attempt to convert a string into a [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html).
  78476. *
  78477. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html#reverseConvert)
  78478. */
  78479. reverseConvert(coordinate: string, format: Format): Promise<Point>;
  78480. /**
  78481. * Update the input conversions based on the input point.
  78482. *
  78483. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html#updateConversions)
  78484. */
  78485. updateConversions(conversions: Conversion[], location: Point): Promise<Conversion[]>;
  78486. }
  78487. /** @deprecated Import the CoordinateConversionViewModel class instead. */
  78488. export type CoordinateConversionViewModelConstructor = typeof CoordinateConversionViewModel;
  78489. interface CoordinateConversionViewModelProperties extends GoToProperties {
  78490. /**
  78491. * A [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) containing every [Conversion](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Conversion.html) that the widget is currently displaying.
  78492. *
  78493. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html#conversions)
  78494. */
  78495. conversions?: CollectionProperties<ConversionProperties>;
  78496. /**
  78497. * Describes the location of the coordinates currently displayed by the widget as a [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html).
  78498. *
  78499. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html#currentLocation)
  78500. */
  78501. currentLocation?: PointProperties;
  78502. /**
  78503. * A [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) containing every [Format](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html) that the widget is capable of displaying.
  78504. *
  78505. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html#formats)
  78506. */
  78507. formats?: CollectionProperties<FormatProperties>;
  78508. /**
  78509. * This symbol is used to visualize the location currently described by the widget when `capture` mode is active.
  78510. *
  78511. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html#locationSymbol)
  78512. */
  78513. locationSymbol?: | (SimpleMarkerSymbolProperties & { type: "simple-marker" })
  78514. | (PictureMarkerSymbolProperties & { type: "picture-marker" });
  78515. /**
  78516. * Describes the current mode of the widget.
  78517. *
  78518. * @default live
  78519. *
  78520. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html#mode)
  78521. */
  78522. mode?: "live" | "capture";
  78523. /**
  78524. * If this property is set to `true`, sessionStorage or localStorage (depending on [storageType](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html#storageType)) will be used to hydrate and persist the CoordinateConversion widget's state.
  78525. *
  78526. * @default true
  78527. *
  78528. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html#storageEnabled)
  78529. */
  78530. storageEnabled?: boolean;
  78531. /**
  78532. * This property determines whether sessionStorage or localStorage will be used to store widget state.
  78533. *
  78534. * @default "session"
  78535. *
  78536. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html#storageType)
  78537. */
  78538. storageType?: "session" | "local";
  78539. /**
  78540. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  78541. *
  78542. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html#view)
  78543. */
  78544. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  78545. }
  78546. /**
  78547. * Describes a point in terms of a location, a [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html), and a coordinate, a string.
  78548. *
  78549. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html#Position)
  78550. */
  78551. export interface Position {
  78552. /**
  78553. * A point geometry representing the location described by the conversion.
  78554. *
  78555. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html#Position)
  78556. */
  78557. location: Point;
  78558. /**
  78559. * A string representing the location.
  78560. *
  78561. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-CoordinateConversionViewModel.html#Position)
  78562. */
  78563. coordinate: string;
  78564. }
  78565. export class Conversion extends Accessor {
  78566. /**
  78567. * A formatted string based on the current [position](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Conversion.html#position) and display information on the [format](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Conversion.html#format).
  78568. *
  78569. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Conversion.html#displayCoordinate)
  78570. */
  78571. readonly displayCoordinate: string;
  78572. /**
  78573. * The [Format](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html) for this conversion.
  78574. *
  78575. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Conversion.html#format)
  78576. */
  78577. format: Format;
  78578. /**
  78579. * The position property contains the location information for this conversion.
  78580. *
  78581. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Conversion.html#position)
  78582. */
  78583. position: ConversionPosition;
  78584. /**
  78585. * The Conversion class represents one of the [conversions](esri-widgets-CoordinateConversion.html#conversions) in the [Coordinate Conversion widget](esri-widgets-CoordinateConversion.html).
  78586. *
  78587. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Conversion.html)
  78588. */
  78589. constructor(properties?: ConversionProperties);
  78590. }
  78591. /** @deprecated Import the Conversion class instead. */
  78592. export type ConversionConstructor = typeof Conversion;
  78593. interface ConversionProperties {
  78594. /**
  78595. * The [Format](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html) for this conversion.
  78596. *
  78597. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Conversion.html#format)
  78598. */
  78599. format?: FormatProperties;
  78600. /**
  78601. * The position property contains the location information for this conversion.
  78602. *
  78603. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Conversion.html#position)
  78604. */
  78605. position?: ConversionPosition;
  78606. }
  78607. /**
  78608. * Describes a point in terms of a location, a [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html), and a coordinate, a string.
  78609. *
  78610. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Conversion.html#Position)
  78611. */
  78612. export interface ConversionPosition {
  78613. /**
  78614. * A point geometry representing the location described by the conversion.
  78615. *
  78616. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Conversion.html#Position)
  78617. */
  78618. location: Point;
  78619. /**
  78620. * A string representing the location.
  78621. *
  78622. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Conversion.html#Position)
  78623. */
  78624. coordinate: string;
  78625. }
  78626. export class Format extends Accessor {
  78627. /**
  78628. * Contains information that describes how this Format should be converted.
  78629. *
  78630. * @default null
  78631. *
  78632. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#conversionInfo)
  78633. */
  78634. conversionInfo: ConversionInfo;
  78635. /**
  78636. * A array of [Coordinate Segments](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#CoordinateSegment).
  78637. *
  78638. * @default null
  78639. *
  78640. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#coordinateSegments)
  78641. */
  78642. coordinateSegments: CoordinateSegment[];
  78643. /**
  78644. * A string that serves as a pattern describing how this Format should be displayed.
  78645. *
  78646. * @default null
  78647. *
  78648. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#currentPattern)
  78649. */
  78650. currentPattern: string;
  78651. /**
  78652. * The default pattern describing how this Format should be displayed.
  78653. *
  78654. * @default null
  78655. *
  78656. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#defaultPattern)
  78657. */
  78658. defaultPattern: string;
  78659. /**
  78660. * A string that is used to label this Format in the UI.
  78661. *
  78662. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#label)
  78663. */
  78664. label: string;
  78665. /**
  78666. * The name of the coordinate.
  78667. *
  78668. * @default null
  78669. *
  78670. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#name)
  78671. */
  78672. name: string;
  78673. /**
  78674. * The [SpatialReference](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html) for this format.
  78675. *
  78676. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#spatialReference)
  78677. */
  78678. spatialReference: SpatialReference;
  78679. /**
  78680. * The view model of the [CoordinateConversion](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html) widget that is utilizing this format.
  78681. *
  78682. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#viewModel)
  78683. */
  78684. viewModel: CoordinateConversionViewModel;
  78685. /**
  78686. * The Format class represents one of the [formats](esri-widgets-CoordinateConversion.html#formats) in the [Coordinate Conversion widget](esri-widgets-CoordinateConversion.html).
  78687. *
  78688. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html)
  78689. */
  78690. constructor(properties?: FormatProperties);
  78691. }
  78692. /** @deprecated Import the Format class instead. */
  78693. export type FormatConstructor = typeof Format;
  78694. interface FormatProperties {
  78695. /**
  78696. * Contains information that describes how this Format should be converted.
  78697. *
  78698. * @default null
  78699. *
  78700. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#conversionInfo)
  78701. */
  78702. conversionInfo?: ConversionInfo;
  78703. /**
  78704. * A array of [Coordinate Segments](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#CoordinateSegment).
  78705. *
  78706. * @default null
  78707. *
  78708. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#coordinateSegments)
  78709. */
  78710. coordinateSegments?: CoordinateSegment[];
  78711. /**
  78712. * A string that serves as a pattern describing how this Format should be displayed.
  78713. *
  78714. * @default null
  78715. *
  78716. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#currentPattern)
  78717. */
  78718. currentPattern?: string;
  78719. /**
  78720. * The default pattern describing how this Format should be displayed.
  78721. *
  78722. * @default null
  78723. *
  78724. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#defaultPattern)
  78725. */
  78726. defaultPattern?: string;
  78727. /**
  78728. * A string that is used to label this Format in the UI.
  78729. *
  78730. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#label)
  78731. */
  78732. label?: string;
  78733. /**
  78734. * The name of the coordinate.
  78735. *
  78736. * @default null
  78737. *
  78738. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#name)
  78739. */
  78740. name?: string;
  78741. /**
  78742. * The [SpatialReference](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html) for this format.
  78743. *
  78744. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#spatialReference)
  78745. */
  78746. spatialReference?: SpatialReferenceProperties;
  78747. /**
  78748. * The view model of the [CoordinateConversion](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html) widget that is utilizing this format.
  78749. *
  78750. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#viewModel)
  78751. */
  78752. viewModel?: CoordinateConversionViewModelProperties;
  78753. }
  78754. /**
  78755. * This object describes how a Format should be projected and formatted for display.
  78756. *
  78757. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#ConversionInfo)
  78758. */
  78759. export interface ConversionInfo {
  78760. /**
  78761. * A function that takes a point and returns a [position](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#Position).
  78762. *
  78763. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#ConversionInfo)
  78764. */
  78765. convert(): void;
  78766. /**
  78767. * A function that takes a string and returns a Point.
  78768. *
  78769. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#ConversionInfo)
  78770. */
  78771. reverseConvert(): void;
  78772. }
  78773. /**
  78774. * A coordinate segment represents one piece of a coordinate string.
  78775. *
  78776. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#CoordinateSegment)
  78777. */
  78778. export interface CoordinateSegment {
  78779. /**
  78780. * A string that provides the name for this segment of a coordinate string.
  78781. *
  78782. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#CoordinateSegment)
  78783. */
  78784. alias: string;
  78785. /**
  78786. * A string that describes the role of this segment.
  78787. *
  78788. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#CoordinateSegment)
  78789. */
  78790. description: string;
  78791. /**
  78792. * A regular expression that should extract this segment from the complete coordinate.
  78793. *
  78794. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#CoordinateSegment)
  78795. */
  78796. searchPattern: RegExp;
  78797. }
  78798. /**
  78799. * Describes a point in terms of a location, a [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html), and a coordinate, a string.
  78800. *
  78801. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#Position)
  78802. */
  78803. export interface FormatPosition {
  78804. /**
  78805. * A point geometry representing the location described by the conversion.
  78806. *
  78807. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#Position)
  78808. */
  78809. location: Point;
  78810. /**
  78811. * A string representing the location.
  78812. *
  78813. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion-support-Format.html#Position)
  78814. */
  78815. coordinate: string;
  78816. }
  78817. /**
  78818. * The visible elements that are displayed within the widget.
  78819. *
  78820. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#VisibleElements)
  78821. */
  78822. export interface CoordinateConversionVisibleElements {
  78823. /**
  78824. * Indicates whether the settings button will be displayed.
  78825. *
  78826. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#VisibleElements)
  78827. */
  78828. settingsButton?: boolean;
  78829. /**
  78830. * Indicates whether the input coordinate button will be displayed.
  78831. *
  78832. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#VisibleElements)
  78833. */
  78834. editButton?: boolean;
  78835. /**
  78836. * Indicates whether the expand and retract buttons will be displayed.
  78837. *
  78838. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#VisibleElements)
  78839. */
  78840. expandButton?: boolean;
  78841. /**
  78842. * Indicates whether the capture mode button will be displayed.
  78843. *
  78844. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-CoordinateConversion.html#VisibleElements)
  78845. */
  78846. captureButton?: boolean;
  78847. }
  78848. export class Daylight extends Widget {
  78849. /**
  78850. * Controls whether the widget displays a date or a season picker.
  78851. *
  78852. * @default "date"
  78853. *
  78854. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html#dateOrSeason)
  78855. */
  78856. dateOrSeason: "season" | "date";
  78857. /**
  78858. * Indicates the heading level to use for the widget title.
  78859. *
  78860. * @default 3
  78861. *
  78862. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html#headingLevel)
  78863. */
  78864. headingLevel: number;
  78865. /**
  78866. * The widget's default CSS icon class.
  78867. *
  78868. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html#iconClass)
  78869. */
  78870. iconClass: string;
  78871. /**
  78872. * Controls the speed of the daytime and date animation.
  78873. *
  78874. * @default 1.0
  78875. *
  78876. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html#playSpeedMultiplier)
  78877. */
  78878. playSpeedMultiplier: number;
  78879. /**
  78880. * Sets steps, or intervals, on the time slider to restrict the times of the day that can be selected when dragging the thumb.
  78881. *
  78882. * @default 5
  78883. *
  78884. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html#timeSliderSteps)
  78885. */
  78886. timeSliderSteps: number | number[];
  78887. /**
  78888. * A reference to the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  78889. *
  78890. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html#view)
  78891. */
  78892. view: SceneView;
  78893. /**
  78894. * The view model for the Daylight widget.
  78895. *
  78896. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html#viewModel)
  78897. */
  78898. viewModel: DaylightViewModel;
  78899. /**
  78900. * This property provides the ability to display or hide the individual elements of the widget.
  78901. *
  78902. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html#visibleElements)
  78903. */
  78904. visibleElements: DaylightVisibleElements;
  78905. /**
  78906. * The Daylight widget can be used to manipulate the lighting conditions of a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  78907. *
  78908. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html)
  78909. */
  78910. constructor(properties?: DaylightProperties);
  78911. }
  78912. /** @deprecated Import the Daylight class instead. */
  78913. export type DaylightConstructor = typeof Daylight;
  78914. interface DaylightProperties extends WidgetProperties {
  78915. /**
  78916. * Controls whether the widget displays a date or a season picker.
  78917. *
  78918. * @default "date"
  78919. *
  78920. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html#dateOrSeason)
  78921. */
  78922. dateOrSeason?: "season" | "date";
  78923. /**
  78924. * Indicates the heading level to use for the widget title.
  78925. *
  78926. * @default 3
  78927. *
  78928. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html#headingLevel)
  78929. */
  78930. headingLevel?: number;
  78931. /**
  78932. * The widget's default CSS icon class.
  78933. *
  78934. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html#iconClass)
  78935. */
  78936. iconClass?: string;
  78937. /**
  78938. * Controls the speed of the daytime and date animation.
  78939. *
  78940. * @default 1.0
  78941. *
  78942. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html#playSpeedMultiplier)
  78943. */
  78944. playSpeedMultiplier?: number;
  78945. /**
  78946. * Sets steps, or intervals, on the time slider to restrict the times of the day that can be selected when dragging the thumb.
  78947. *
  78948. * @default 5
  78949. *
  78950. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html#timeSliderSteps)
  78951. */
  78952. timeSliderSteps?: number | number[];
  78953. /**
  78954. * A reference to the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  78955. *
  78956. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html#view)
  78957. */
  78958. view?: SceneViewProperties;
  78959. /**
  78960. * The view model for the Daylight widget.
  78961. *
  78962. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html#viewModel)
  78963. */
  78964. viewModel?: DaylightViewModelProperties;
  78965. /**
  78966. * This property provides the ability to display or hide the individual elements of the widget.
  78967. *
  78968. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html#visibleElements)
  78969. */
  78970. visibleElements?: DaylightVisibleElements;
  78971. }
  78972. export class DaylightViewModel extends Accessor {
  78973. /**
  78974. * A season can be set instead of a date.
  78975. *
  78976. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight-DaylightViewModel.html#currentSeason)
  78977. */
  78978. currentSeason: "spring" | "summer" | "fall" | "winter";
  78979. /**
  78980. * Starts or pauses the daytime animation cycling through the minutes of the day.
  78981. *
  78982. * @default false
  78983. *
  78984. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight-DaylightViewModel.html#dayPlaying)
  78985. */
  78986. dayPlaying: boolean;
  78987. /**
  78988. * Indicates whether to show shadows cast by the sun.
  78989. *
  78990. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight-DaylightViewModel.html#directShadowsEnabled)
  78991. */
  78992. directShadowsEnabled: boolean;
  78993. /**
  78994. * The calendar date in the timezone given by [utcOffset](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight-DaylightViewModel.html#utcOffset).
  78995. *
  78996. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight-DaylightViewModel.html#localDate)
  78997. */
  78998. localDate: Date;
  78999. /**
  79000. * Controls the daytime and date animation speed.
  79001. *
  79002. * @default 1.0
  79003. *
  79004. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight-DaylightViewModel.html#playSpeedMultiplier)
  79005. */
  79006. playSpeedMultiplier: number;
  79007. /**
  79008. * Indicates whether date and time are used to determine position of the light source.
  79009. *
  79010. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight-DaylightViewModel.html#sunLightingEnabled)
  79011. */
  79012. sunLightingEnabled: boolean;
  79013. /**
  79014. * Slider position for the time of day in the timezone given by [utcOffset](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight-DaylightViewModel.html#utcOffset).
  79015. *
  79016. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight-DaylightViewModel.html#timeSliderPosition)
  79017. */
  79018. timeSliderPosition: number;
  79019. /**
  79020. * The difference in hours between UTC time and the time displayed in the widget.
  79021. *
  79022. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight-DaylightViewModel.html#utcOffset)
  79023. */
  79024. utcOffset: number;
  79025. /**
  79026. * The view from which the widget will operate.
  79027. *
  79028. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight-DaylightViewModel.html#view)
  79029. */
  79030. view: SceneView;
  79031. /**
  79032. * Starts or pauses the date animation cycling through the months of the year.
  79033. *
  79034. * @default false
  79035. *
  79036. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight-DaylightViewModel.html#yearPlaying)
  79037. */
  79038. yearPlaying: boolean;
  79039. /**
  79040. * Provides the logic for the [Daylight](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html) widget.
  79041. *
  79042. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight-DaylightViewModel.html)
  79043. */
  79044. constructor(properties?: DaylightViewModelProperties);
  79045. }
  79046. /** @deprecated Import the DaylightViewModel class instead. */
  79047. export type DaylightViewModelConstructor = typeof DaylightViewModel;
  79048. interface DaylightViewModelProperties {
  79049. /**
  79050. * A season can be set instead of a date.
  79051. *
  79052. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight-DaylightViewModel.html#currentSeason)
  79053. */
  79054. currentSeason?: "spring" | "summer" | "fall" | "winter";
  79055. /**
  79056. * Starts or pauses the daytime animation cycling through the minutes of the day.
  79057. *
  79058. * @default false
  79059. *
  79060. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight-DaylightViewModel.html#dayPlaying)
  79061. */
  79062. dayPlaying?: boolean;
  79063. /**
  79064. * Indicates whether to show shadows cast by the sun.
  79065. *
  79066. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight-DaylightViewModel.html#directShadowsEnabled)
  79067. */
  79068. directShadowsEnabled?: boolean;
  79069. /**
  79070. * The calendar date in the timezone given by [utcOffset](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight-DaylightViewModel.html#utcOffset).
  79071. *
  79072. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight-DaylightViewModel.html#localDate)
  79073. */
  79074. localDate?: DateProperties;
  79075. /**
  79076. * Controls the daytime and date animation speed.
  79077. *
  79078. * @default 1.0
  79079. *
  79080. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight-DaylightViewModel.html#playSpeedMultiplier)
  79081. */
  79082. playSpeedMultiplier?: number;
  79083. /**
  79084. * Indicates whether date and time are used to determine position of the light source.
  79085. *
  79086. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight-DaylightViewModel.html#sunLightingEnabled)
  79087. */
  79088. sunLightingEnabled?: boolean;
  79089. /**
  79090. * Slider position for the time of day in the timezone given by [utcOffset](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight-DaylightViewModel.html#utcOffset).
  79091. *
  79092. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight-DaylightViewModel.html#timeSliderPosition)
  79093. */
  79094. timeSliderPosition?: number;
  79095. /**
  79096. * The difference in hours between UTC time and the time displayed in the widget.
  79097. *
  79098. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight-DaylightViewModel.html#utcOffset)
  79099. */
  79100. utcOffset?: number;
  79101. /**
  79102. * The view from which the widget will operate.
  79103. *
  79104. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight-DaylightViewModel.html#view)
  79105. */
  79106. view?: SceneViewProperties;
  79107. /**
  79108. * Starts or pauses the date animation cycling through the months of the year.
  79109. *
  79110. * @default false
  79111. *
  79112. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight-DaylightViewModel.html#yearPlaying)
  79113. */
  79114. yearPlaying?: boolean;
  79115. }
  79116. /**
  79117. * The visible elements that are displayed within the widget.
  79118. *
  79119. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html#VisibleElements)
  79120. */
  79121. export interface DaylightVisibleElements {
  79122. /**
  79123. * When set to `false`, the header is not displayed.
  79124. *
  79125. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html#VisibleElements)
  79126. */
  79127. header?: boolean;
  79128. /**
  79129. * When set to `false`, neither of the play buttons are displayed.
  79130. *
  79131. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html#VisibleElements)
  79132. */
  79133. playButtons?: boolean;
  79134. /**
  79135. * When set to `false`, neither the date nor the season picker are displayed.
  79136. *
  79137. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html#VisibleElements)
  79138. */
  79139. datePicker?: boolean;
  79140. /**
  79141. * When set to `false`, the timezone selector is not displayed.
  79142. *
  79143. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html#VisibleElements)
  79144. */
  79145. timezone?: boolean;
  79146. /**
  79147. * When set to `false`, the sun lighting checkbox is not displayed.
  79148. *
  79149. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html#VisibleElements)
  79150. */
  79151. sunLightingToggle?: boolean;
  79152. /**
  79153. * When set to `false`, the shadows checkbox is not displayed.
  79154. *
  79155. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html#VisibleElements)
  79156. */
  79157. shadowsToggle?: boolean;
  79158. }
  79159. export interface Directions extends Widget, GoTo {
  79160. }
  79161. export class Directions {
  79162. /**
  79163. * An authorization string used to access a resource or service.
  79164. *
  79165. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#apiKey)
  79166. */
  79167. apiKey: string;
  79168. /**
  79169. * Indicates the heading level to use for the origin and destination addresses (i.e.
  79170. *
  79171. * @default 2
  79172. *
  79173. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#headingLevel)
  79174. */
  79175. headingLevel: number;
  79176. /**
  79177. * The widget's default CSS icon class.
  79178. *
  79179. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#iconClass)
  79180. */
  79181. iconClass: string;
  79182. /**
  79183. * The most recent route result.
  79184. *
  79185. * @default null
  79186. *
  79187. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#lastRoute)
  79188. */
  79189. readonly lastRoute: DirectionsLastRoute;
  79190. /**
  79191. * The [RouteLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html) associated with the Directions widget.
  79192. *
  79193. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#layer)
  79194. */
  79195. layer: RouteLayer;
  79196. /**
  79197. * The maximum number of stops allowed for routing.
  79198. *
  79199. * @default 50
  79200. *
  79201. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#maxStops)
  79202. */
  79203. maxStops: number;
  79204. /**
  79205. * The URL of the REST endpoint of the Route service.
  79206. *
  79207. * @deprecated since version 4.24. Use {@link module:esri/layers/RouteLayer#url url} from [layer](#layer) instead.
  79208. *
  79209. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#routeServiceUrl)
  79210. */
  79211. routeServiceUrl: string;
  79212. /**
  79213. * Defines the symbol used to draw the route on the map.
  79214. *
  79215. * @deprecated since version 4.24. Use {@link module:esri/layers/support/RouteSymbols#directionLines directionLines} from [layer](#layer) instead.
  79216. *
  79217. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#routeSymbol)
  79218. */
  79219. routeSymbol: SimpleLineSymbol;
  79220. /**
  79221. * Controls the default properties used when [searching](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html).
  79222. *
  79223. * @default null
  79224. *
  79225. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#searchProperties)
  79226. */
  79227. searchProperties: DirectionsSearchProperties;
  79228. /**
  79229. * The default stop symbols used to display locations between the origin and final destination.
  79230. *
  79231. * @deprecated since version 4.24. Use {@link module:esri/layers/support/RouteStopSymbols} from [layer](#layer) instead.
  79232. *
  79233. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#stopSymbols)
  79234. */
  79235. stopSymbols: DirectionsStopSymbols;
  79236. /**
  79237. * Unit system (imperial, metric) or specific unit used for displaying the distance values.
  79238. *
  79239. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#unit)
  79240. */
  79241. unit: | "imperial"
  79242. | "metric"
  79243. | "centimeters"
  79244. | "decimeters"
  79245. | "feet"
  79246. | "inches"
  79247. | "kilometers"
  79248. | "meters"
  79249. | "miles"
  79250. | "millimeters"
  79251. | "nautical-miles"
  79252. | "yards";
  79253. /**
  79254. * The view from which the widget will operate.
  79255. *
  79256. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#view)
  79257. */
  79258. view: MapView | SceneView;
  79259. /**
  79260. * The view model for this widget.
  79261. *
  79262. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#viewModel)
  79263. */
  79264. viewModel: DirectionsViewModel;
  79265. /**
  79266. * The visible elements that are displayed within the widget.
  79267. *
  79268. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#visibleElements)
  79269. */
  79270. visibleElements: DirectionsVisibleElements;
  79271. /**
  79272. * The Directions widget provides a way to calculate directions, between two or more input locations with a [RouteLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html), using ArcGIS Online and custom Network Analysis Route services.
  79273. *
  79274. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html)
  79275. */
  79276. constructor(properties?: DirectionsProperties);
  79277. /**
  79278. * Computes a route and directions.
  79279. *
  79280. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#getDirections)
  79281. */
  79282. getDirections(): Promise<RouteLayerSolveResult>;
  79283. /**
  79284. * Saves the RouteLayer associated with the view model.
  79285. *
  79286. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#save)
  79287. */
  79288. save(): Promise<PortalItem>;
  79289. /**
  79290. * Saves the RouteLayer associated with the view model as a new portal item.
  79291. *
  79292. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#saveAs)
  79293. */
  79294. saveAs(portalItem: Promise<PortalItem>, options?: DirectionsSaveAsOptions): Promise<PortalItem>;
  79295. /**
  79296. * Zoom so that the full route is displayed within the current map extent.
  79297. *
  79298. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#zoomToRoute)
  79299. */
  79300. zoomToRoute(): void;
  79301. }
  79302. /** @deprecated Import the Directions class instead. */
  79303. export type DirectionsConstructor = typeof Directions;
  79304. interface DirectionsProperties extends WidgetProperties, GoToProperties {
  79305. /**
  79306. * An authorization string used to access a resource or service.
  79307. *
  79308. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#apiKey)
  79309. */
  79310. apiKey?: string;
  79311. /**
  79312. * Indicates the heading level to use for the origin and destination addresses (i.e.
  79313. *
  79314. * @default 2
  79315. *
  79316. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#headingLevel)
  79317. */
  79318. headingLevel?: number;
  79319. /**
  79320. * The widget's default CSS icon class.
  79321. *
  79322. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#iconClass)
  79323. */
  79324. iconClass?: string;
  79325. /**
  79326. * The [RouteLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html) associated with the Directions widget.
  79327. *
  79328. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#layer)
  79329. */
  79330. layer?: RouteLayerProperties;
  79331. /**
  79332. * The maximum number of stops allowed for routing.
  79333. *
  79334. * @default 50
  79335. *
  79336. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#maxStops)
  79337. */
  79338. maxStops?: number;
  79339. /**
  79340. * The URL of the REST endpoint of the Route service.
  79341. *
  79342. * @deprecated since version 4.24. Use {@link module:esri/layers/RouteLayer#url url} from [layer](#layer) instead.
  79343. *
  79344. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#routeServiceUrl)
  79345. */
  79346. routeServiceUrl?: string;
  79347. /**
  79348. * Defines the symbol used to draw the route on the map.
  79349. *
  79350. * @deprecated since version 4.24. Use {@link module:esri/layers/support/RouteSymbols#directionLines directionLines} from [layer](#layer) instead.
  79351. *
  79352. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#routeSymbol)
  79353. */
  79354. routeSymbol?: SimpleLineSymbolProperties;
  79355. /**
  79356. * Controls the default properties used when [searching](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html).
  79357. *
  79358. * @default null
  79359. *
  79360. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#searchProperties)
  79361. */
  79362. searchProperties?: DirectionsSearchProperties;
  79363. /**
  79364. * The default stop symbols used to display locations between the origin and final destination.
  79365. *
  79366. * @deprecated since version 4.24. Use {@link module:esri/layers/support/RouteStopSymbols} from [layer](#layer) instead.
  79367. *
  79368. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#stopSymbols)
  79369. */
  79370. stopSymbols?: DirectionsStopSymbols;
  79371. /**
  79372. * Unit system (imperial, metric) or specific unit used for displaying the distance values.
  79373. *
  79374. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#unit)
  79375. */
  79376. unit?: | "imperial"
  79377. | "metric"
  79378. | "centimeters"
  79379. | "decimeters"
  79380. | "feet"
  79381. | "inches"
  79382. | "kilometers"
  79383. | "meters"
  79384. | "miles"
  79385. | "millimeters"
  79386. | "nautical-miles"
  79387. | "yards";
  79388. /**
  79389. * The view from which the widget will operate.
  79390. *
  79391. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#view)
  79392. */
  79393. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  79394. /**
  79395. * The view model for this widget.
  79396. *
  79397. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#viewModel)
  79398. */
  79399. viewModel?: DirectionsViewModelProperties;
  79400. /**
  79401. * The visible elements that are displayed within the widget.
  79402. *
  79403. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#visibleElements)
  79404. */
  79405. visibleElements?: DirectionsVisibleElements;
  79406. }
  79407. export interface DirectionsViewModel extends Accessor, GoTo {
  79408. }
  79409. export class DirectionsViewModel {
  79410. /**
  79411. * An authorization string used to access a resource or service.
  79412. *
  79413. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#apiKey)
  79414. */
  79415. apiKey: string;
  79416. /**
  79417. * The network attribute name to be used as the impedance attribute in the analysis.
  79418. *
  79419. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#impedanceAttribute)
  79420. */
  79421. readonly impedanceAttribute: DirectionsViewModelImpedanceAttribute;
  79422. /**
  79423. * The most recent route result.
  79424. *
  79425. * @default null
  79426. *
  79427. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#lastRoute)
  79428. */
  79429. readonly lastRoute: DirectionsViewModelLastRoute;
  79430. /**
  79431. * The [RouteLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html) associated with the DirectionsViewModel.
  79432. *
  79433. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#layer)
  79434. */
  79435. layer: RouteLayer;
  79436. /**
  79437. * The maximum number of stops allowed for routing.
  79438. *
  79439. * @default 50
  79440. *
  79441. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#maxStops)
  79442. */
  79443. maxStops: number;
  79444. /**
  79445. * Route Parameters object used to call the service.
  79446. *
  79447. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#routeParameters)
  79448. */
  79449. routeParameters: RouteParameters;
  79450. /**
  79451. * The URL of the REST endpoint of the Route service.
  79452. *
  79453. * @deprecated since version 4.24. Use {@link module:esri/layers/RouteLayer#url url} from [layer](#layer) instead.
  79454. *
  79455. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#routeServiceUrl)
  79456. */
  79457. routeServiceUrl: string;
  79458. /**
  79459. * Defines the symbol used to draw the route on the map.
  79460. *
  79461. * @deprecated since version 4.24. Use {@link module:esri/layers/support/RouteSymbols#directionLines directionLines} from [layer](#layer) instead.
  79462. *
  79463. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#routeSymbol)
  79464. */
  79465. routeSymbol: SimpleLineSymbol;
  79466. /**
  79467. * The selected travel mode.
  79468. *
  79469. * @default null
  79470. *
  79471. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#selectedTravelMode)
  79472. */
  79473. selectedTravelMode: TravelMode;
  79474. /**
  79475. * The Service Description object returned by the Route REST Endpoint.
  79476. *
  79477. * @default null
  79478. *
  79479. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#serviceDescription)
  79480. */
  79481. readonly serviceDescription: DirectionsViewModelServiceDescription;
  79482. /**
  79483. * The current state of the view model.
  79484. *
  79485. * @default disabled
  79486. *
  79487. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#state)
  79488. */
  79489. readonly state: "disabled" | "ready";
  79490. /**
  79491. * A [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of [Stop](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html)s that define the stop locations along the route.
  79492. *
  79493. * @deprecated since version 4.24. Use {@link module:esri/layers/RouteLayer#stops stops} from [layer](#layer) instead.
  79494. *
  79495. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#stops)
  79496. */
  79497. stops: Collection<Stop>;
  79498. /**
  79499. * The default stop symbols used to display locations between the origin and final destination.
  79500. *
  79501. * @deprecated since version 4.24. Use {@link module:esri/layers/support/RouteStopSymbols} from [layer](#layer) instead.
  79502. *
  79503. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#stopSymbols)
  79504. */
  79505. stopSymbols: DirectionsViewModelStopSymbols;
  79506. /**
  79507. * The name of the network attribute to use for the drive time when computing directions.
  79508. *
  79509. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#timeAttribute)
  79510. */
  79511. readonly timeAttribute: DirectionsViewModelTimeAttribute;
  79512. /**
  79513. * Array of objects containing properties specific to either an ArcGIS service or organization's travel modes.
  79514. *
  79515. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#travelModes)
  79516. */
  79517. readonly travelModes: TravelMode[];
  79518. /**
  79519. * The view from which the widget will operate.
  79520. *
  79521. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#view)
  79522. */
  79523. view: MapView | SceneView;
  79524. /**
  79525. * Provides the communication and data manipulation logic for the [Directions](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html) widget.
  79526. *
  79527. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html)
  79528. */
  79529. constructor(properties?: DirectionsViewModelProperties);
  79530. /**
  79531. * Centers the map at the specified maneuver or stop.
  79532. *
  79533. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#centerAt)
  79534. */
  79535. centerAt(stopOrManeuver: Graphic): void;
  79536. /**
  79537. * Clears any highlighted route segments.
  79538. *
  79539. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#clearHighlights)
  79540. */
  79541. clearHighlights(): void;
  79542. /**
  79543. * Removes the route directions from the directions list, leaving the inputs untouched.
  79544. *
  79545. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#clearResults)
  79546. */
  79547. clearResults(): void;
  79548. /**
  79549. * Returns the cost attribute associated with the parsed name.
  79550. *
  79551. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#getCostAttribute)
  79552. */
  79553. getCostAttribute(attributeName: string): any;
  79554. /**
  79555. * Computes a route and directions.
  79556. *
  79557. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#getDirections)
  79558. */
  79559. getDirections(): Promise<RouteLayerSolveResult>;
  79560. /**
  79561. * Highlights the specified network feature.
  79562. *
  79563. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#highlight)
  79564. */
  79565. highlight(networkFeature: | DirectionLine
  79566. | DirectionPoint
  79567. | PointBarrier
  79568. | PolygonBarrier
  79569. | PolylineBarrier
  79570. | RouteInfo
  79571. | Stop): Promise<any>;
  79572. /**
  79573. * Highlights the specified route segment on the map.
  79574. *
  79575. * @deprecated since version 4.24. Use [highlight](#highlight) instead.
  79576. *
  79577. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#highlightSegment)
  79578. */
  79579. highlightSegment(maneuver: Graphic): void;
  79580. /**
  79581. * This method should be called to load the view model's routing resources.
  79582. *
  79583. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#load)
  79584. */
  79585. load(): Promise<any>;
  79586. /**
  79587. * Resets the state of the ViewModel, clearing all the input stops and results in the widget and in the map.
  79588. *
  79589. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#reset)
  79590. */
  79591. reset(): void;
  79592. /**
  79593. * Saves the RouteLayer associated with the view model.
  79594. *
  79595. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#save)
  79596. */
  79597. save(): Promise<PortalItem>;
  79598. /**
  79599. * Saves the RouteLayer associated with the view model as a new portal item.
  79600. *
  79601. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#saveAs)
  79602. */
  79603. saveAs(portalItem: Promise<PortalItem>, options?: DirectionsViewModelSaveAsOptions): Promise<PortalItem>;
  79604. /**
  79605. * Zoom so that the full route is displayed within the current map extent.
  79606. *
  79607. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#zoomToRoute)
  79608. */
  79609. zoomToRoute(): void;
  79610. }
  79611. /** @deprecated Import the DirectionsViewModel class instead. */
  79612. export type DirectionsViewModelConstructor = typeof DirectionsViewModel;
  79613. interface DirectionsViewModelProperties extends GoToProperties {
  79614. /**
  79615. * An authorization string used to access a resource or service.
  79616. *
  79617. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#apiKey)
  79618. */
  79619. apiKey?: string;
  79620. /**
  79621. * The [RouteLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html) associated with the DirectionsViewModel.
  79622. *
  79623. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#layer)
  79624. */
  79625. layer?: RouteLayerProperties;
  79626. /**
  79627. * The maximum number of stops allowed for routing.
  79628. *
  79629. * @default 50
  79630. *
  79631. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#maxStops)
  79632. */
  79633. maxStops?: number;
  79634. /**
  79635. * Route Parameters object used to call the service.
  79636. *
  79637. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#routeParameters)
  79638. */
  79639. routeParameters?: RouteParametersProperties;
  79640. /**
  79641. * The URL of the REST endpoint of the Route service.
  79642. *
  79643. * @deprecated since version 4.24. Use {@link module:esri/layers/RouteLayer#url url} from [layer](#layer) instead.
  79644. *
  79645. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#routeServiceUrl)
  79646. */
  79647. routeServiceUrl?: string;
  79648. /**
  79649. * Defines the symbol used to draw the route on the map.
  79650. *
  79651. * @deprecated since version 4.24. Use {@link module:esri/layers/support/RouteSymbols#directionLines directionLines} from [layer](#layer) instead.
  79652. *
  79653. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#routeSymbol)
  79654. */
  79655. routeSymbol?: SimpleLineSymbolProperties;
  79656. /**
  79657. * The selected travel mode.
  79658. *
  79659. * @default null
  79660. *
  79661. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#selectedTravelMode)
  79662. */
  79663. selectedTravelMode?: TravelModeProperties;
  79664. /**
  79665. * A [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of [Stop](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-Stop.html)s that define the stop locations along the route.
  79666. *
  79667. * @deprecated since version 4.24. Use {@link module:esri/layers/RouteLayer#stops stops} from [layer](#layer) instead.
  79668. *
  79669. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#stops)
  79670. */
  79671. stops?: | CollectionProperties<StopProperties>
  79672. | CollectionProperties<GraphicProperties>
  79673. | GraphicProperties[]
  79674. | StopProperties[];
  79675. /**
  79676. * The default stop symbols used to display locations between the origin and final destination.
  79677. *
  79678. * @deprecated since version 4.24. Use {@link module:esri/layers/support/RouteStopSymbols} from [layer](#layer) instead.
  79679. *
  79680. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#stopSymbols)
  79681. */
  79682. stopSymbols?: DirectionsViewModelStopSymbols;
  79683. /**
  79684. * The view from which the widget will operate.
  79685. *
  79686. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#view)
  79687. */
  79688. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  79689. }
  79690. export interface DirectionsViewModelImpedanceAttribute {
  79691. /**
  79692. * Name of the impedance network attribute.
  79693. *
  79694. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#impedanceAttribute)
  79695. */
  79696. name: string;
  79697. /**
  79698. * Units of this network attribute.
  79699. *
  79700. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#impedanceAttribute)
  79701. */
  79702. units: string;
  79703. }
  79704. export interface DirectionsViewModelLastRoute extends RouteLayerSolveResult {
  79705. /**
  79706. * Collection of direction polylines associated with line segments between turns.
  79707. *
  79708. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#lastRoute)
  79709. */
  79710. directionLines: Collection<DirectionLine>;
  79711. /**
  79712. * Collection of direction items as points with various display information.
  79713. *
  79714. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#lastRoute)
  79715. */
  79716. directionPoints: Collection<DirectionPoint>;
  79717. /**
  79718. * Collection of point barriers.
  79719. *
  79720. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#lastRoute)
  79721. */
  79722. pointBarriers: Collection<PointBarrier>;
  79723. /**
  79724. * Collection of polygon barriers.
  79725. *
  79726. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#lastRoute)
  79727. */
  79728. polygonBarriers: Collection<PolygonBarrier>;
  79729. /**
  79730. * Collection of polyline barriers.
  79731. *
  79732. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#lastRoute)
  79733. */
  79734. polylineBarriers: Collection<PolylineBarrier>;
  79735. /**
  79736. * Information about a solved route including the route's geometry and overall distance and time.
  79737. *
  79738. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#lastRoute)
  79739. */
  79740. routeInfo: RouteInfo;
  79741. /**
  79742. * Collection of stops.
  79743. *
  79744. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#lastRoute)
  79745. */
  79746. stops: Collection<Stop>;
  79747. }
  79748. export interface DirectionsViewModelSaveAsOptions {
  79749. /**
  79750. * The folder in which to save the item.
  79751. *
  79752. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#saveAs)
  79753. */
  79754. folder?: PortalFolder;
  79755. }
  79756. export interface DirectionsViewModelServiceDescription {
  79757. /**
  79758. * Server version.
  79759. *
  79760. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#serviceDescription)
  79761. */
  79762. currentVersion: number;
  79763. /**
  79764. * Id of the default travel mode.
  79765. *
  79766. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#serviceDescription)
  79767. */
  79768. defaultTravelMode: string;
  79769. /**
  79770. * Available travel modes.
  79771. *
  79772. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#serviceDescription)
  79773. */
  79774. supportedTravelModes: TravelMode[];
  79775. }
  79776. export interface DirectionsViewModelStopSymbols extends RouteStopSymbols {
  79777. /**
  79778. * The first stop symbol.
  79779. *
  79780. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#stopSymbols)
  79781. */
  79782. first: SimpleMarkerSymbol | PictureMarkerSymbol | PointSymbol3D | CIMSymbol;
  79783. /**
  79784. * The middle stop symbol.
  79785. *
  79786. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#stopSymbols)
  79787. */
  79788. middle: SimpleMarkerSymbol | PictureMarkerSymbol | PointSymbol3D | CIMSymbol;
  79789. /**
  79790. * The last stop symbol.
  79791. *
  79792. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#stopSymbols)
  79793. */
  79794. last: SimpleMarkerSymbol | PictureMarkerSymbol | PointSymbol3D | CIMSymbol;
  79795. /**
  79796. * An unlocated stop symbol.
  79797. *
  79798. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#stopSymbols)
  79799. */
  79800. unlocated: SimpleMarkerSymbol | PictureMarkerSymbol | PointSymbol3D | CIMSymbol;
  79801. /**
  79802. * A waypoint stop symbol.
  79803. *
  79804. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#stopSymbols)
  79805. */
  79806. waypoint: SimpleMarkerSymbol | PictureMarkerSymbol | PointSymbol3D | CIMSymbol;
  79807. }
  79808. export interface DirectionsViewModelTimeAttribute {
  79809. /**
  79810. * The name of the network attribute to use for the drive time when computing directions.
  79811. *
  79812. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#timeAttribute)
  79813. */
  79814. name: string;
  79815. /**
  79816. * The units to use when calculating drive time for directions.
  79817. *
  79818. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsViewModel.html#timeAttribute)
  79819. */
  79820. units: string;
  79821. }
  79822. export interface DirectionsLastRoute extends RouteLayerSolveResult {
  79823. /**
  79824. * Collection of direction polylines associated with line segments between turns.
  79825. *
  79826. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#lastRoute)
  79827. */
  79828. directionLines: Collection<DirectionLine>;
  79829. /**
  79830. * Collection of direction items as points with various display information.
  79831. *
  79832. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#lastRoute)
  79833. */
  79834. directionPoints: Collection<DirectionPoint>;
  79835. /**
  79836. * Collection of point barriers.
  79837. *
  79838. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#lastRoute)
  79839. */
  79840. pointBarriers: Collection<PointBarrier>;
  79841. /**
  79842. * Collection of polygon barriers.
  79843. *
  79844. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#lastRoute)
  79845. */
  79846. polygonBarriers: Collection<PolygonBarrier>;
  79847. /**
  79848. * Collection of polyline barriers.
  79849. *
  79850. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#lastRoute)
  79851. */
  79852. polylineBarriers: Collection<PolylineBarrier>;
  79853. /**
  79854. * Information about a solved route including the route's geometry and overall distance and time.
  79855. *
  79856. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#lastRoute)
  79857. */
  79858. routeInfo: RouteInfo;
  79859. /**
  79860. * Collection of stops.
  79861. *
  79862. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#lastRoute)
  79863. */
  79864. stops: Collection<Stop>;
  79865. }
  79866. export interface DirectionsSaveAsOptions {
  79867. /**
  79868. * The folder in which to save the item.
  79869. *
  79870. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#saveAs)
  79871. */
  79872. folder?: PortalFolder;
  79873. }
  79874. export interface DirectionsStopSymbols {
  79875. /**
  79876. * The first stop symbol.
  79877. *
  79878. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#stopSymbols)
  79879. */
  79880. first?: Symbol;
  79881. /**
  79882. * The middle stop symbol.
  79883. *
  79884. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#stopSymbols)
  79885. */
  79886. middle?: Symbol;
  79887. /**
  79888. * The last stop symbol.
  79889. *
  79890. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#stopSymbols)
  79891. */
  79892. last?: Symbol;
  79893. /**
  79894. * An unlocated stop symbol.
  79895. *
  79896. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#stopSymbols)
  79897. */
  79898. unlocated?: Symbol;
  79899. /**
  79900. * A waypoint stop symbol.
  79901. *
  79902. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#stopSymbols)
  79903. */
  79904. waypoint?: Symbol;
  79905. }
  79906. /**
  79907. * Configurable Search properties of the widget.
  79908. *
  79909. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#SearchProperties)
  79910. */
  79911. export interface DirectionsSearchProperties {
  79912. /**
  79913. * Number index indicating the current selected source.
  79914. *
  79915. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#SearchProperties)
  79916. */
  79917. activeSourceIndex?: number;
  79918. /**
  79919. * String value used as a hint for input text when searching on multiple sources.
  79920. *
  79921. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#SearchProperties)
  79922. */
  79923. allPlaceholder?: string;
  79924. /**
  79925. * Indicates whether to automatically navigate to the selected result once selected.
  79926. *
  79927. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#SearchProperties)
  79928. */
  79929. autoNavigate?: boolean;
  79930. /**
  79931. * Indicates whether to automatically select and zoom to the first geocoded result.
  79932. *
  79933. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#SearchProperties)
  79934. */
  79935. autoSelect?: boolean;
  79936. /**
  79937. * Indicates whether or not to include [defaultSources](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#defaultSources) in the Search UI.
  79938. *
  79939. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#SearchProperties)
  79940. */
  79941. includeDefaultSources?: boolean | Function;
  79942. /**
  79943. * Define the type of location, either `"street"` or `"rooftop"`.
  79944. *
  79945. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#SearchProperties)
  79946. */
  79947. locationType?: string;
  79948. /**
  79949. * Indicates the maximum number of search results to return.
  79950. *
  79951. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#SearchProperties)
  79952. */
  79953. maxResults?: number;
  79954. /**
  79955. * Indicates the maximum number of suggestions to return for the widget's input.
  79956. *
  79957. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#SearchProperties)
  79958. */
  79959. maxSuggestions?: number;
  79960. /**
  79961. * Indicates the minimum number of characters required before querying for a suggestion.
  79962. *
  79963. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#SearchProperties)
  79964. */
  79965. minSuggestCharacters?: number;
  79966. /**
  79967. * Indicates whether to display a [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html) when a selected result is clicked.
  79968. *
  79969. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#SearchProperties)
  79970. */
  79971. popupEnabled?: boolean;
  79972. /**
  79973. * A customized PopupTemplate for the selected feature.
  79974. *
  79975. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#SearchProperties)
  79976. */
  79977. popupTemplate?: PopupTemplate;
  79978. /**
  79979. * Indicates whether to show a graphic on the map for the selected source.
  79980. *
  79981. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#SearchProperties)
  79982. */
  79983. resultGraphicEnabled?: boolean;
  79984. /**
  79985. * Indicates whether to display the option to search all sources.
  79986. *
  79987. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#SearchProperties)
  79988. */
  79989. searchAllEnabled?: boolean;
  79990. /**
  79991. * The value of the search box input text string.
  79992. *
  79993. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#SearchProperties)
  79994. */
  79995. searchTerm?: string;
  79996. /**
  79997. * Specifies the sources to search in the [view](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#view).
  79998. *
  79999. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#SearchProperties)
  80000. */
  80001. sources?: Collection<LayerSearchSource | LocatorSearchSource>;
  80002. /**
  80003. * Indicates whether to display suggestions as the user enters input text in the widget.
  80004. *
  80005. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#SearchProperties)
  80006. */
  80007. suggestionsEnabled?: boolean;
  80008. /**
  80009. * The view of the widget.
  80010. *
  80011. * [Read more...](global.html)
  80012. */
  80013. view?: MapView | SceneView;
  80014. /**
  80015. * The Search widget's view model.
  80016. *
  80017. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#SearchProperties)
  80018. */
  80019. viewModel?: SearchViewModel;
  80020. }
  80021. /**
  80022. * The visible elements that are displayed within the widget.
  80023. *
  80024. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#VisibleElements)
  80025. */
  80026. export interface DirectionsVisibleElements {
  80027. /**
  80028. * Indicates whether to a link to the route layer portal-item (if any) will be displayed.
  80029. *
  80030. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#VisibleElements)
  80031. */
  80032. layerDetails?: boolean;
  80033. /**
  80034. * Indicates whether to the Save As button will be displayed.
  80035. *
  80036. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#VisibleElements)
  80037. */
  80038. saveAsButton?: boolean;
  80039. /**
  80040. * Indicates whether to the Save button will be displayed.
  80041. *
  80042. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#VisibleElements)
  80043. */
  80044. saveButton?: boolean;
  80045. }
  80046. export class DirectLineMeasurement3D extends Widget {
  80047. /**
  80048. * The direct line measurement analysis object being created or modified by the widget.
  80049. *
  80050. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D.html#analysis)
  80051. */
  80052. readonly analysis: DirectLineMeasurementAnalysis;
  80053. /**
  80054. * The widget's default CSS icon class.
  80055. *
  80056. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D.html#iconClass)
  80057. */
  80058. iconClass: string;
  80059. /**
  80060. * Unit system (imperial, metric) or specific unit used for displaying the distance values.
  80061. *
  80062. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D.html#unit)
  80063. */
  80064. unit: SystemOrLengthUnit;
  80065. /**
  80066. * List of unit systems (imperial, metric) and specific units for displaying the distance values.
  80067. *
  80068. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D.html#unitOptions)
  80069. */
  80070. unitOptions: SystemOrLengthUnit[];
  80071. /**
  80072. * A reference to the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  80073. *
  80074. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D.html#view)
  80075. */
  80076. view: SceneView;
  80077. /**
  80078. * The view model for this widget.
  80079. *
  80080. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D.html#viewModel)
  80081. */
  80082. viewModel: DirectLineMeasurement3DViewModel;
  80083. /**
  80084. * The DirectLineMeasurement3D widget calculates and displays the 3D distance between two points.
  80085. *
  80086. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D.html)
  80087. */
  80088. constructor(properties?: DirectLineMeasurement3DProperties);
  80089. }
  80090. /** @deprecated Import the DirectLineMeasurement3D class instead. */
  80091. export type DirectLineMeasurement3DConstructor = typeof DirectLineMeasurement3D;
  80092. interface DirectLineMeasurement3DProperties extends WidgetProperties {
  80093. /**
  80094. * The direct line measurement analysis object being created or modified by the widget.
  80095. *
  80096. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D.html#analysis)
  80097. */
  80098. analysis?: DirectLineMeasurementAnalysisProperties;
  80099. /**
  80100. * The widget's default CSS icon class.
  80101. *
  80102. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D.html#iconClass)
  80103. */
  80104. iconClass?: string;
  80105. /**
  80106. * Unit system (imperial, metric) or specific unit used for displaying the distance values.
  80107. *
  80108. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D.html#unit)
  80109. */
  80110. unit?: | "imperial"
  80111. | "metric"
  80112. | "millimeters"
  80113. | "centimeters"
  80114. | "decimeters"
  80115. | "meters"
  80116. | "kilometers"
  80117. | "inches"
  80118. | "feet"
  80119. | "yards"
  80120. | "miles"
  80121. | "nautical-miles"
  80122. | "us-feet";
  80123. /**
  80124. * List of unit systems (imperial, metric) and specific units for displaying the distance values.
  80125. *
  80126. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D.html#unitOptions)
  80127. */
  80128. unitOptions?: (
  80129. | "imperial"
  80130. | "metric"
  80131. | "millimeters"
  80132. | "centimeters"
  80133. | "decimeters"
  80134. | "meters"
  80135. | "kilometers"
  80136. | "inches"
  80137. | "feet"
  80138. | "yards"
  80139. | "miles"
  80140. | "nautical-miles"
  80141. | "us-feet"
  80142. )[];
  80143. /**
  80144. * A reference to the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  80145. *
  80146. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D.html#view)
  80147. */
  80148. view?: SceneViewProperties;
  80149. /**
  80150. * The view model for this widget.
  80151. *
  80152. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D.html#viewModel)
  80153. */
  80154. viewModel?: DirectLineMeasurement3DViewModelProperties;
  80155. }
  80156. export class DirectLineMeasurement3DViewModel extends Accessor {
  80157. /**
  80158. * The direct line measurement analysis object being created or modified by the view model.
  80159. *
  80160. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D-DirectLineMeasurement3DViewModel.html#analysis)
  80161. */
  80162. readonly analysis: DirectLineMeasurementAnalysis;
  80163. /**
  80164. * The current measurement calculated between the two points.
  80165. *
  80166. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D-DirectLineMeasurement3DViewModel.html#measurement)
  80167. */
  80168. readonly measurement: DirectLineMeasurement3DViewModelMeasurement;
  80169. /**
  80170. * The view model's state.
  80171. *
  80172. * @default disabled
  80173. *
  80174. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D-DirectLineMeasurement3DViewModel.html#state)
  80175. */
  80176. readonly state: "disabled" | "ready" | "measuring" | "measured";
  80177. /**
  80178. * Unit system (imperial, metric) or specific unit used for displaying the distance values.
  80179. *
  80180. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D-DirectLineMeasurement3DViewModel.html#unit)
  80181. */
  80182. unit: SystemOrLengthUnit;
  80183. /**
  80184. * List of unit systems (imperial, metric) and specific units for displaying the distance values.
  80185. *
  80186. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D-DirectLineMeasurement3DViewModel.html#unitOptions)
  80187. */
  80188. unitOptions: SystemOrLengthUnit[];
  80189. /**
  80190. * The view from which the widget will operate.
  80191. *
  80192. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D-DirectLineMeasurement3DViewModel.html#view)
  80193. */
  80194. view: SceneView;
  80195. /**
  80196. * Provides the logic for the [DirectLineMeasurement3D](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D.html) widget.
  80197. *
  80198. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D-DirectLineMeasurement3DViewModel.html)
  80199. */
  80200. constructor(properties?: DirectLineMeasurement3DViewModelProperties);
  80201. /**
  80202. * Clears the current measurement.
  80203. *
  80204. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D-DirectLineMeasurement3DViewModel.html#clear)
  80205. */
  80206. clear(): void;
  80207. /**
  80208. * Starts a new measurement.
  80209. *
  80210. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D-DirectLineMeasurement3DViewModel.html#start)
  80211. */
  80212. start(): void;
  80213. }
  80214. /** @deprecated Import the DirectLineMeasurement3DViewModel class instead. */
  80215. export type DirectLineMeasurement3DViewModelConstructor = typeof DirectLineMeasurement3DViewModel;
  80216. interface DirectLineMeasurement3DViewModelProperties {
  80217. /**
  80218. * The direct line measurement analysis object being created or modified by the view model.
  80219. *
  80220. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D-DirectLineMeasurement3DViewModel.html#analysis)
  80221. */
  80222. analysis?: DirectLineMeasurementAnalysisProperties;
  80223. /**
  80224. * Unit system (imperial, metric) or specific unit used for displaying the distance values.
  80225. *
  80226. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D-DirectLineMeasurement3DViewModel.html#unit)
  80227. */
  80228. unit?: | "imperial"
  80229. | "metric"
  80230. | "millimeters"
  80231. | "centimeters"
  80232. | "decimeters"
  80233. | "meters"
  80234. | "kilometers"
  80235. | "inches"
  80236. | "feet"
  80237. | "yards"
  80238. | "miles"
  80239. | "nautical-miles"
  80240. | "us-feet";
  80241. /**
  80242. * List of unit systems (imperial, metric) and specific units for displaying the distance values.
  80243. *
  80244. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D-DirectLineMeasurement3DViewModel.html#unitOptions)
  80245. */
  80246. unitOptions?: (
  80247. | "imperial"
  80248. | "metric"
  80249. | "millimeters"
  80250. | "centimeters"
  80251. | "decimeters"
  80252. | "meters"
  80253. | "kilometers"
  80254. | "inches"
  80255. | "feet"
  80256. | "yards"
  80257. | "miles"
  80258. | "nautical-miles"
  80259. | "us-feet"
  80260. )[];
  80261. /**
  80262. * The view from which the widget will operate.
  80263. *
  80264. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D-DirectLineMeasurement3DViewModel.html#view)
  80265. */
  80266. view?: SceneViewProperties;
  80267. }
  80268. export interface DirectLineMeasurement3DViewModelMeasurement {
  80269. /**
  80270. * Describes the mode in which the measurement was taken.
  80271. *
  80272. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D-DirectLineMeasurement3DViewModel.html#measurement)
  80273. */
  80274. measurementMode: "euclidean" | "geodesic";
  80275. /**
  80276. * The direct distance between the two points, only available in `euclidean` mode.
  80277. *
  80278. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D-DirectLineMeasurement3DViewModel.html#measurement)
  80279. */
  80280. directDistance: DirectLineMeasurement3DViewModelMeasurementValue;
  80281. /**
  80282. * The horizontal distance between the two points.
  80283. *
  80284. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D-DirectLineMeasurement3DViewModel.html#measurement)
  80285. */
  80286. horizontalDistance: DirectLineMeasurement3DViewModelMeasurementValue;
  80287. /**
  80288. * The vertical distance between the two points.
  80289. *
  80290. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D-DirectLineMeasurement3DViewModel.html#measurement)
  80291. */
  80292. verticalDistance: DirectLineMeasurement3DViewModelMeasurementValue;
  80293. }
  80294. /**
  80295. * Measurement value.
  80296. *
  80297. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D-DirectLineMeasurement3DViewModel.html#MeasurementValue)
  80298. */
  80299. export interface DirectLineMeasurement3DViewModelMeasurementValue {
  80300. /**
  80301. * Textual representation of the measured value.
  80302. *
  80303. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D-DirectLineMeasurement3DViewModel.html#MeasurementValue)
  80304. */
  80305. text: string;
  80306. /**
  80307. * State of the measured value.
  80308. *
  80309. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DirectLineMeasurement3D-DirectLineMeasurement3DViewModel.html#MeasurementValue)
  80310. */
  80311. state: string;
  80312. }
  80313. export class DistanceMeasurement2D extends Widget {
  80314. /**
  80315. * The widget's default CSS icon class.
  80316. *
  80317. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D.html#iconClass)
  80318. */
  80319. iconClass: string;
  80320. /**
  80321. * Unit system (imperial, metric) or specific unit used for displaying the distance values.
  80322. *
  80323. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D.html#unit)
  80324. */
  80325. unit: SystemOrLengthUnit;
  80326. /**
  80327. * List of available units and unit systems (imperial, metric) for displaying the distance values.
  80328. *
  80329. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D.html#unitOptions)
  80330. */
  80331. unitOptions: SystemOrLengthUnit[];
  80332. /**
  80333. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  80334. *
  80335. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D.html#view)
  80336. */
  80337. view: MapView;
  80338. /**
  80339. * The view model for this widget.
  80340. *
  80341. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D.html#viewModel)
  80342. */
  80343. viewModel: DistanceMeasurement2DViewModel;
  80344. /**
  80345. * The DistanceMeasurement2D widget calculates and displays the distance between two or more points in a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  80346. *
  80347. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D.html)
  80348. */
  80349. constructor(properties?: DistanceMeasurement2DProperties);
  80350. }
  80351. /** @deprecated Import the DistanceMeasurement2D class instead. */
  80352. export type DistanceMeasurement2DConstructor = typeof DistanceMeasurement2D;
  80353. interface DistanceMeasurement2DProperties extends WidgetProperties {
  80354. /**
  80355. * The widget's default CSS icon class.
  80356. *
  80357. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D.html#iconClass)
  80358. */
  80359. iconClass?: string;
  80360. /**
  80361. * Unit system (imperial, metric) or specific unit used for displaying the distance values.
  80362. *
  80363. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D.html#unit)
  80364. */
  80365. unit?: | "imperial"
  80366. | "metric"
  80367. | "millimeters"
  80368. | "centimeters"
  80369. | "decimeters"
  80370. | "meters"
  80371. | "kilometers"
  80372. | "inches"
  80373. | "feet"
  80374. | "yards"
  80375. | "miles"
  80376. | "nautical-miles"
  80377. | "us-feet";
  80378. /**
  80379. * List of available units and unit systems (imperial, metric) for displaying the distance values.
  80380. *
  80381. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D.html#unitOptions)
  80382. */
  80383. unitOptions?: (
  80384. | "imperial"
  80385. | "metric"
  80386. | "millimeters"
  80387. | "centimeters"
  80388. | "decimeters"
  80389. | "meters"
  80390. | "kilometers"
  80391. | "inches"
  80392. | "feet"
  80393. | "yards"
  80394. | "miles"
  80395. | "nautical-miles"
  80396. | "us-feet"
  80397. )[];
  80398. /**
  80399. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  80400. *
  80401. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D.html#view)
  80402. */
  80403. view?: MapViewProperties;
  80404. /**
  80405. * The view model for this widget.
  80406. *
  80407. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D.html#viewModel)
  80408. */
  80409. viewModel?: DistanceMeasurement2DViewModelProperties;
  80410. }
  80411. export class DistanceMeasurement2DViewModel extends Accessor {
  80412. /**
  80413. * When the coordinate sustem is projected (other than web mercator) then distances less than this threshold will be computed planimetrically.
  80414. *
  80415. * @default 100000
  80416. *
  80417. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D-DistanceMeasurement2DViewModel.html#geodesicDistanceThreshold)
  80418. */
  80419. geodesicDistanceThreshold: number;
  80420. /**
  80421. * The length and geometry of the measurement polyline in meters.
  80422. *
  80423. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D-DistanceMeasurement2DViewModel.html#measurement)
  80424. */
  80425. readonly measurement: DistanceMeasurement2DViewModelMeasurement;
  80426. /**
  80427. * This property returns the locale specific representation of the length.
  80428. *
  80429. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D-DistanceMeasurement2DViewModel.html#measurementLabel)
  80430. */
  80431. readonly measurementLabel: string;
  80432. /**
  80433. * The view model's state.
  80434. *
  80435. * @default disabled
  80436. *
  80437. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D-DistanceMeasurement2DViewModel.html#state)
  80438. */
  80439. readonly state: "disabled" | "ready" | "measuring" | "measured";
  80440. /**
  80441. * Unit system (imperial, metric) or specific unit used for displaying the distance values.
  80442. *
  80443. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D-DistanceMeasurement2DViewModel.html#unit)
  80444. */
  80445. unit: SystemOrLengthUnit;
  80446. /**
  80447. * List of available units and unit systems (imperial, metric) for displaying the distance values.
  80448. *
  80449. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D-DistanceMeasurement2DViewModel.html#unitOptions)
  80450. */
  80451. unitOptions: SystemOrLengthUnit[];
  80452. /**
  80453. * The view from which the widget will operate.
  80454. *
  80455. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D-DistanceMeasurement2DViewModel.html#view)
  80456. */
  80457. view: MapView;
  80458. /**
  80459. * Provides the logic for the [DistanceMeasurement2D](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D.html) widget.
  80460. *
  80461. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D-DistanceMeasurement2DViewModel.html)
  80462. */
  80463. constructor(properties?: DistanceMeasurement2DViewModelProperties);
  80464. /**
  80465. * Clears the current measurement.
  80466. *
  80467. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D-DistanceMeasurement2DViewModel.html#clear)
  80468. */
  80469. clear(): void;
  80470. /**
  80471. * Starts a new measurement.
  80472. *
  80473. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D-DistanceMeasurement2DViewModel.html#start)
  80474. */
  80475. start(): void;
  80476. }
  80477. /** @deprecated Import the DistanceMeasurement2DViewModel class instead. */
  80478. export type DistanceMeasurement2DViewModelConstructor = typeof DistanceMeasurement2DViewModel;
  80479. interface DistanceMeasurement2DViewModelProperties {
  80480. /**
  80481. * When the coordinate sustem is projected (other than web mercator) then distances less than this threshold will be computed planimetrically.
  80482. *
  80483. * @default 100000
  80484. *
  80485. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D-DistanceMeasurement2DViewModel.html#geodesicDistanceThreshold)
  80486. */
  80487. geodesicDistanceThreshold?: number;
  80488. /**
  80489. * Unit system (imperial, metric) or specific unit used for displaying the distance values.
  80490. *
  80491. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D-DistanceMeasurement2DViewModel.html#unit)
  80492. */
  80493. unit?: | "imperial"
  80494. | "metric"
  80495. | "millimeters"
  80496. | "centimeters"
  80497. | "decimeters"
  80498. | "meters"
  80499. | "kilometers"
  80500. | "inches"
  80501. | "feet"
  80502. | "yards"
  80503. | "miles"
  80504. | "nautical-miles"
  80505. | "us-feet";
  80506. /**
  80507. * List of available units and unit systems (imperial, metric) for displaying the distance values.
  80508. *
  80509. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D-DistanceMeasurement2DViewModel.html#unitOptions)
  80510. */
  80511. unitOptions?: (
  80512. | "imperial"
  80513. | "metric"
  80514. | "millimeters"
  80515. | "centimeters"
  80516. | "decimeters"
  80517. | "meters"
  80518. | "kilometers"
  80519. | "inches"
  80520. | "feet"
  80521. | "yards"
  80522. | "miles"
  80523. | "nautical-miles"
  80524. | "us-feet"
  80525. )[];
  80526. /**
  80527. * The view from which the widget will operate.
  80528. *
  80529. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D-DistanceMeasurement2DViewModel.html#view)
  80530. */
  80531. view?: MapViewProperties;
  80532. }
  80533. export interface DistanceMeasurement2DViewModelMeasurement {
  80534. /**
  80535. * Line length (m).
  80536. *
  80537. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D-DistanceMeasurement2DViewModel.html#measurement)
  80538. */
  80539. length: number;
  80540. /**
  80541. * Measurement line.
  80542. *
  80543. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-DistanceMeasurement2D-DistanceMeasurement2DViewModel.html#measurement)
  80544. */
  80545. geometry: any;
  80546. }
  80547. export class Editor extends Widget {
  80548. /**
  80549. * A property indicating the current active workflow.
  80550. *
  80551. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#activeWorkflow)
  80552. */
  80553. readonly activeWorkflow: CreateWorkflow | CreateFeaturesWorkflow | UpdateWorkflow;
  80554. /**
  80555. * An array of string values which specifies what end users are allowed to edit.
  80556. *
  80557. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#allowedWorkflows)
  80558. */
  80559. allowedWorkflows: "create-features" | "create" | "update";
  80560. /**
  80561. * Indicates the heading level to use for title of the widget.
  80562. *
  80563. * @default 4
  80564. *
  80565. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#headingLevel)
  80566. */
  80567. headingLevel: number;
  80568. /**
  80569. * The widget's default CSS icon class.
  80570. *
  80571. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#iconClass)
  80572. */
  80573. readonly iconClass: string;
  80574. /**
  80575. * Options to configure the labels shown next to each segment of the geometry being created or updated.
  80576. *
  80577. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#labelOptions)
  80578. */
  80579. labelOptions: SketchLabelOptions;
  80580. /**
  80581. * An array of editing configurations for individual layers.
  80582. *
  80583. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#layerInfos)
  80584. */
  80585. layerInfos: LayerInfo[];
  80586. /**
  80587. * The [SnappingOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-SnappingOptions.html) for editing.
  80588. *
  80589. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#snappingOptions)
  80590. */
  80591. snappingOptions: SnappingOptions;
  80592. /**
  80593. * This property allows customization of supporting Editor widgets and their default behavior.
  80594. *
  80595. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#supportingWidgetDefaults)
  80596. */
  80597. supportingWidgetDefaults: SupportingWidgetDefaults;
  80598. /**
  80599. * Options to configure the tooltip shown next to the cursor when creating or updating graphics.
  80600. *
  80601. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#tooltipOptions)
  80602. */
  80603. tooltipOptions: SketchTooltipOptions;
  80604. /**
  80605. * Indicates whether the Editor should default to use the deprecated [CreateWorkflow](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateWorkflow.html).
  80606. *
  80607. * @default false
  80608. * @deprecated since version 4.23. Although new at 4.23, this property was introduced to help migrate from the legacy {@link module:esri/widgets/Editor/CreateWorkflow} to the updated {@link module:esri/widgets/Editor/CreateFeaturesWorkflow}. Once {@link module:esri/widgets/Editor/CreateWorkflow} is fully removed, this property will no longer be necessary.
  80609. *
  80610. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#useDeprecatedCreateWorkflow)
  80611. */
  80612. useDeprecatedCreateWorkflow: boolean;
  80613. /**
  80614. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  80615. *
  80616. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#view)
  80617. */
  80618. view: MapView | SceneView;
  80619. /**
  80620. * The view model for this widget.
  80621. *
  80622. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#viewModel)
  80623. */
  80624. viewModel: EditorViewModel;
  80625. /**
  80626. * The visible elements that are displayed within the widget.
  80627. *
  80628. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#visibleElements)
  80629. */
  80630. visibleElements: EditorVisibleElements;
  80631. /**
  80632. * This widget provides an out-of-the-box editing experience to help streamline the editing experience within a web application.
  80633. *
  80634. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html)
  80635. */
  80636. constructor(properties?: EditorProperties);
  80637. /**
  80638. * Cancels any active workflow.
  80639. *
  80640. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#cancelWorkflow)
  80641. */
  80642. cancelWorkflow(): Promise<void>;
  80643. /**
  80644. * This is applicable if there is an active [UpdateWorkflow](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-UpdateWorkflow.html).
  80645. *
  80646. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#deleteFeatureFromWorkflow)
  80647. */
  80648. deleteFeatureFromWorkflow(): Promise<void>;
  80649. /**
  80650. * Initiates the [CreateFeaturesWorkflow](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateFeaturesWorkflow.html) by displaying the panel where feature(s) creation begins.
  80651. *
  80652. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#startCreateFeaturesWorkflowAtFeatureCreation)
  80653. */
  80654. startCreateFeaturesWorkflowAtFeatureCreation(creationInfo: CreationInfo): Promise<void>;
  80655. /**
  80656. * Initiates the [CreateFeaturesWorkflow](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateFeaturesWorkflow.html) by displaying the [FeatureTemplates](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html) panel.
  80657. *
  80658. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#startCreateFeaturesWorkflowAtFeatureTypeSelection)
  80659. */
  80660. startCreateFeaturesWorkflowAtFeatureTypeSelection(): Promise<void>;
  80661. /**
  80662. * Initiates the [CreateFeaturesWorkflow](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateFeaturesWorkflow.html) by displaying the panel where feature creation begins.
  80663. *
  80664. * @deprecated since version 4.23. Instead use [startCreateFeaturesWorkflowAtFeatureCreation](#startCreateFeaturesWorkflowAtFeatureCreation)
  80665. *
  80666. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#startCreateWorkflowAtFeatureCreation)
  80667. */
  80668. startCreateWorkflowAtFeatureCreation(creationInfo: CreationInfo): Promise<void>;
  80669. /**
  80670. * This method starts the [CreateWorkflow](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateWorkflow.html) where it waits for the feature to be selected.
  80671. *
  80672. * @deprecated since 4.23
  80673. *
  80674. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#startCreateWorkflowAtFeatureEdit)
  80675. */
  80676. startCreateWorkflowAtFeatureEdit(feature: Graphic): Promise<void>;
  80677. /**
  80678. * Initiates the [CreateWorkflow](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateWorkflow.html) by displaying the [FeatureTemplates](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html) panel.
  80679. *
  80680. * @deprecated since version 4.23. Instead use [startCreateFeaturesWorkflowAtFeatureTypeSelection](#startCreateFeaturesWorkflowAtFeatureTypeSelection) instead.
  80681. *
  80682. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#startCreateWorkflowAtFeatureTypeSelection)
  80683. */
  80684. startCreateWorkflowAtFeatureTypeSelection(): Promise<void>;
  80685. /**
  80686. * Starts the [UpdateWorkflow](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-UpdateWorkflow.html) at the attribute editing panel.
  80687. *
  80688. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#startUpdateWorkflowAtFeatureEdit)
  80689. */
  80690. startUpdateWorkflowAtFeatureEdit(feature: Graphic): Promise<void>;
  80691. /**
  80692. * Starts the [UpdateWorkflow](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-UpdateWorkflow.html) using the current selected feature.
  80693. *
  80694. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#startUpdateWorkflowAtFeatureSelection)
  80695. */
  80696. startUpdateWorkflowAtFeatureSelection(): Promise<void>;
  80697. /**
  80698. * This method starts the [UpdateWorkflow](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-UpdateWorkflow.html) where it waits for multiple features to be selected.
  80699. *
  80700. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#startUpdateWorkflowAtMultipleFeatureSelection)
  80701. */
  80702. startUpdateWorkflowAtMultipleFeatureSelection(candidates: Graphic[]): Promise<void>;
  80703. }
  80704. /** @deprecated Import the Editor class instead. */
  80705. export type EditorConstructor = typeof Editor;
  80706. interface EditorProperties extends WidgetProperties {
  80707. /**
  80708. * An array of string values which specifies what end users are allowed to edit.
  80709. *
  80710. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#allowedWorkflows)
  80711. */
  80712. allowedWorkflows?: "create-features" | "create" | "update";
  80713. /**
  80714. * Indicates the heading level to use for title of the widget.
  80715. *
  80716. * @default 4
  80717. *
  80718. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#headingLevel)
  80719. */
  80720. headingLevel?: number;
  80721. /**
  80722. * Options to configure the labels shown next to each segment of the geometry being created or updated.
  80723. *
  80724. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#labelOptions)
  80725. */
  80726. labelOptions?: SketchLabelOptionsProperties;
  80727. /**
  80728. * An array of editing configurations for individual layers.
  80729. *
  80730. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#layerInfos)
  80731. */
  80732. layerInfos?: LayerInfo[];
  80733. /**
  80734. * The [SnappingOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-SnappingOptions.html) for editing.
  80735. *
  80736. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#snappingOptions)
  80737. */
  80738. snappingOptions?: SnappingOptionsProperties;
  80739. /**
  80740. * This property allows customization of supporting Editor widgets and their default behavior.
  80741. *
  80742. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#supportingWidgetDefaults)
  80743. */
  80744. supportingWidgetDefaults?: SupportingWidgetDefaults;
  80745. /**
  80746. * Options to configure the tooltip shown next to the cursor when creating or updating graphics.
  80747. *
  80748. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#tooltipOptions)
  80749. */
  80750. tooltipOptions?: SketchTooltipOptionsProperties;
  80751. /**
  80752. * Indicates whether the Editor should default to use the deprecated [CreateWorkflow](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateWorkflow.html).
  80753. *
  80754. * @default false
  80755. * @deprecated since version 4.23. Although new at 4.23, this property was introduced to help migrate from the legacy {@link module:esri/widgets/Editor/CreateWorkflow} to the updated {@link module:esri/widgets/Editor/CreateFeaturesWorkflow}. Once {@link module:esri/widgets/Editor/CreateWorkflow} is fully removed, this property will no longer be necessary.
  80756. *
  80757. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#useDeprecatedCreateWorkflow)
  80758. */
  80759. useDeprecatedCreateWorkflow?: boolean;
  80760. /**
  80761. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  80762. *
  80763. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#view)
  80764. */
  80765. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  80766. /**
  80767. * The view model for this widget.
  80768. *
  80769. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#viewModel)
  80770. */
  80771. viewModel?: EditorViewModelProperties;
  80772. /**
  80773. * The visible elements that are displayed within the widget.
  80774. *
  80775. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#visibleElements)
  80776. */
  80777. visibleElements?: EditorVisibleElements;
  80778. }
  80779. export class CreateFeaturesWorkflow extends Workflow {
  80780. /**
  80781. * Indicates the current feature state during creation.
  80782. *
  80783. * @default "create-new"
  80784. *
  80785. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateFeaturesWorkflow.html#createFeatureState)
  80786. */
  80787. createFeatureState: "create-new" | "update-pending";
  80788. /**
  80789. * Returns the number of pending features of an active [CreateWorkflow](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateWorkflow.html).
  80790. *
  80791. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateFeaturesWorkflow.html#numPendingFeatures)
  80792. */
  80793. numPendingFeatures: number;
  80794. /**
  80795. * Returns a collection of [graphics](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) representing features that are currently pending in the active [CreateWorkflow](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateWorkflow.html).
  80796. *
  80797. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateFeaturesWorkflow.html#pendingFeatures)
  80798. */
  80799. pendingFeatures: Collection<Graphic>;
  80800. /**
  80801. * A read-only class containing the logic used when creating features using the [Editor](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html) widget.
  80802. *
  80803. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateFeaturesWorkflow.html)
  80804. */
  80805. constructor(properties?: CreateFeaturesWorkflowProperties);
  80806. /**
  80807. * Moves the pending feature into update mode.
  80808. *
  80809. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateFeaturesWorkflow.html#updatePendingFeature)
  80810. */
  80811. updatePendingFeature(feature: Graphic): Promise<void>;
  80812. }
  80813. /** @deprecated Import the CreateFeaturesWorkflow class instead. */
  80814. export type CreateFeaturesWorkflowConstructor = typeof CreateFeaturesWorkflow;
  80815. interface CreateFeaturesWorkflowProperties extends WorkflowProperties {
  80816. /**
  80817. * Indicates the current feature state during creation.
  80818. *
  80819. * @default "create-new"
  80820. *
  80821. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateFeaturesWorkflow.html#createFeatureState)
  80822. */
  80823. createFeatureState?: "create-new" | "update-pending";
  80824. /**
  80825. * Returns the number of pending features of an active [CreateWorkflow](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateWorkflow.html).
  80826. *
  80827. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateFeaturesWorkflow.html#numPendingFeatures)
  80828. */
  80829. numPendingFeatures?: number;
  80830. /**
  80831. * Returns a collection of [graphics](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) representing features that are currently pending in the active [CreateWorkflow](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateWorkflow.html).
  80832. *
  80833. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateFeaturesWorkflow.html#pendingFeatures)
  80834. */
  80835. pendingFeatures?: CollectionProperties<GraphicProperties>;
  80836. }
  80837. export class CreateFeaturesWorkflowData extends Accessor {
  80838. /**
  80839. * This provides the feature template and layer when creating a new feature.
  80840. *
  80841. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateFeaturesWorkflowData.html#creationInfo)
  80842. */
  80843. creationInfo: CreationInfo;
  80844. /**
  80845. * The associated [EditorViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html) for this workflow.
  80846. *
  80847. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateFeaturesWorkflowData.html#viewModel)
  80848. */
  80849. viewModel: EditorViewModel;
  80850. /**
  80851. * This object supports the [Editor](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html) widget.
  80852. *
  80853. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateFeaturesWorkflowData.html)
  80854. */
  80855. constructor(properties?: CreateFeaturesWorkflowDataProperties);
  80856. }
  80857. /** @deprecated Import the CreateFeaturesWorkflowData class instead. */
  80858. export type CreateFeaturesWorkflowDataConstructor = typeof CreateFeaturesWorkflowData;
  80859. interface CreateFeaturesWorkflowDataProperties {
  80860. /**
  80861. * This provides the feature template and layer when creating a new feature.
  80862. *
  80863. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateFeaturesWorkflowData.html#creationInfo)
  80864. */
  80865. creationInfo?: CreationInfo;
  80866. /**
  80867. * The associated [EditorViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html) for this workflow.
  80868. *
  80869. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateFeaturesWorkflowData.html#viewModel)
  80870. */
  80871. viewModel?: EditorViewModelProperties;
  80872. }
  80873. export class CreateWorkflow extends Workflow {
  80874. /**
  80875. * The type of workflow.
  80876. *
  80877. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateWorkflow.html#type)
  80878. */
  80879. readonly type: "create";
  80880. /**
  80881. * A read-only class containing the logic used when creating features using the [Editor](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html) widget.
  80882. *
  80883. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateWorkflow.html)
  80884. */
  80885. constructor(properties?: CreateWorkflowProperties);
  80886. }
  80887. /** @deprecated Import the CreateWorkflow class instead. */
  80888. export type CreateWorkflowConstructor = typeof CreateWorkflow;
  80889. interface CreateWorkflowProperties extends WorkflowProperties {
  80890. }
  80891. export class CreateWorkflowData extends Accessor {
  80892. /**
  80893. * This provides the feature template and layer when creating a new feature.
  80894. *
  80895. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateWorkflowData.html#creationInfo)
  80896. */
  80897. creationInfo: CreationInfo;
  80898. /**
  80899. * The [edits](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-Edits.html) used to keep track of a feature being modified.
  80900. *
  80901. * @deprecated since 4.23. Use {@link module:esri/widgets/Editor/CreateFeaturesWorkflow#pendingFeatures CreateFeaturesWorkflow.pendingFeatures} to access edits made to the workflow data.
  80902. *
  80903. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateWorkflowData.html#edits)
  80904. */
  80905. edits: Edits;
  80906. /**
  80907. * The associated [EditorViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html) for this workflow.
  80908. *
  80909. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateWorkflowData.html#viewModel)
  80910. */
  80911. viewModel: EditorViewModel;
  80912. /**
  80913. * This object supports the [Editor](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html) widget.
  80914. *
  80915. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateWorkflowData.html)
  80916. */
  80917. constructor(properties?: CreateWorkflowDataProperties);
  80918. }
  80919. /** @deprecated Import the CreateWorkflowData class instead. */
  80920. export type CreateWorkflowDataConstructor = typeof CreateWorkflowData;
  80921. interface CreateWorkflowDataProperties {
  80922. /**
  80923. * This provides the feature template and layer when creating a new feature.
  80924. *
  80925. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateWorkflowData.html#creationInfo)
  80926. */
  80927. creationInfo?: CreationInfo;
  80928. /**
  80929. * The [edits](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-Edits.html) used to keep track of a feature being modified.
  80930. *
  80931. * @deprecated since 4.23. Use {@link module:esri/widgets/Editor/CreateFeaturesWorkflow#pendingFeatures CreateFeaturesWorkflow.pendingFeatures} to access edits made to the workflow data.
  80932. *
  80933. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateWorkflowData.html#edits)
  80934. */
  80935. edits?: EditsProperties;
  80936. /**
  80937. * The associated [EditorViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html) for this workflow.
  80938. *
  80939. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateWorkflowData.html#viewModel)
  80940. */
  80941. viewModel?: EditorViewModelProperties;
  80942. }
  80943. export class EditorViewModel extends Accessor {
  80944. /**
  80945. * A property indicating the current active workflow.
  80946. *
  80947. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#activeWorkflow)
  80948. */
  80949. readonly activeWorkflow: CreateWorkflow | CreateFeaturesWorkflow | UpdateWorkflow;
  80950. /**
  80951. * An array of string values which specifies what end users are allowed to edit.
  80952. *
  80953. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#allowedWorkflows)
  80954. */
  80955. allowedWorkflows: "create-features" | "create" | "update";
  80956. /**
  80957. * The [AttachmentsViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attachments-AttachmentsViewModel.html) for supporting the editor widget.
  80958. *
  80959. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#attachmentsViewModel)
  80960. */
  80961. attachmentsViewModel: AttachmentsViewModel;
  80962. /**
  80963. * Convenience property that reads whether there are any editable layers that support the `create-features` workflow.
  80964. *
  80965. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#canCreate)
  80966. */
  80967. readonly canCreate: boolean;
  80968. /**
  80969. * Convenience property that reads whether there are any editable layers that support the `update` workflow.
  80970. *
  80971. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#canUpdate)
  80972. */
  80973. readonly canUpdate: boolean;
  80974. /**
  80975. * A collection of editable item objects that match the feature being updated.
  80976. *
  80977. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#editableItems)
  80978. */
  80979. readonly editableItems: Collection<EditableItem>;
  80980. /**
  80981. * An array of objects containing information specific to any failed editing operations.
  80982. *
  80983. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#failures)
  80984. */
  80985. readonly failures: EditorViewModelFailures[];
  80986. /**
  80987. * The [FeatureFormViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html) for supporting the editor widget.
  80988. *
  80989. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#featureFormViewModel)
  80990. */
  80991. featureFormViewModel: FeatureFormViewModel;
  80992. /**
  80993. * The [FeatureTemplatesViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-FeatureTemplatesViewModel.html) for supporting the editor widget.
  80994. *
  80995. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#featureTemplatesViewModel)
  80996. */
  80997. featureTemplatesViewModel: FeatureTemplatesViewModel;
  80998. /**
  80999. * Options to configure the labels shown next to each segment of the geometry being created or updated.
  81000. *
  81001. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#labelOptions)
  81002. */
  81003. labelOptions: SketchLabelOptions;
  81004. /**
  81005. * An array of editing configurations for individual layers.
  81006. *
  81007. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#layerInfos)
  81008. */
  81009. layerInfos: LayerInfo[];
  81010. /**
  81011. * The [SketchViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html) for supporting the editor widget.
  81012. *
  81013. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#sketchViewModel)
  81014. */
  81015. sketchViewModel: SketchViewModel;
  81016. /**
  81017. * The [SnappingOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-SnappingOptions.html) for sketching.
  81018. *
  81019. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#snappingOptions)
  81020. */
  81021. snappingOptions: SnappingOptions;
  81022. /**
  81023. * The widget's state.
  81024. *
  81025. * @default disabled
  81026. *
  81027. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#state)
  81028. */
  81029. readonly state: | "ready"
  81030. | "disabled"
  81031. | "editing-new-feature"
  81032. | "editing-existing-feature"
  81033. | "awaiting-update-feature-candidate"
  81034. | "awaiting-feature-creation-info"
  81035. | "awaiting-feature-to-update"
  81036. | "awaiting-feature-to-create"
  81037. | "adding-attachment"
  81038. | "editing-attachment"
  81039. | "creating-features";
  81040. /**
  81041. * When `true`, there is at least one edit request being processed.
  81042. *
  81043. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#syncing)
  81044. */
  81045. readonly syncing: boolean;
  81046. /**
  81047. * Options to configure the tooltip shown next to the cursor when creating or updating graphics.
  81048. *
  81049. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#tooltipOptions)
  81050. */
  81051. tooltipOptions: SketchTooltipOptions;
  81052. /**
  81053. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  81054. *
  81055. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#view)
  81056. */
  81057. view: MapView | SceneView;
  81058. /**
  81059. * Provides the logic for the [Editor](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html) widget.
  81060. *
  81061. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html)
  81062. */
  81063. constructor(properties?: EditorViewModelProperties);
  81064. /**
  81065. * Cancels any active workflow.
  81066. *
  81067. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#cancelWorkflow)
  81068. */
  81069. cancelWorkflow(): Promise<void>;
  81070. /**
  81071. * This is applicable if there is an active update workflow.
  81072. *
  81073. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#deleteFeatureFromWorkflow)
  81074. */
  81075. deleteFeatureFromWorkflow(): Promise<void>;
  81076. /**
  81077. * Initiates the [CreateFeaturesWorkflow](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateFeaturesWorkflow.html) by displaying the panel where feature creation begins.
  81078. *
  81079. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#startCreateFeaturesWorkflowAtFeatureCreation)
  81080. */
  81081. startCreateFeaturesWorkflowAtFeatureCreation(creationInfo: CreationInfo): Promise<void>;
  81082. /**
  81083. * Initiates the [CreateFeaturesWorkflow](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateFeaturesWorkflow.html) by displaying the [FeatureTemplates](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html) panel.
  81084. *
  81085. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#startCreateFeaturesWorkflowAtFeatureTypeSelection)
  81086. */
  81087. startCreateFeaturesWorkflowAtFeatureTypeSelection(): Promise<void>;
  81088. /**
  81089. * Initiates the [CreateWorkflow](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateWorkflow.html) by displaying the panel where feature creation begins.
  81090. *
  81091. * @deprecated since version 4.23. Instead use {@link module:esri/widgets/Editor#startCreateFeaturesWorkflowAtFeatureCreation startCreateFeaturesWorkflowAtFeatureCreation}.
  81092. *
  81093. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#startCreateWorkflowAtFeatureCreation)
  81094. */
  81095. startCreateWorkflowAtFeatureCreation(creationInfo: CreationInfo): Promise<void>;
  81096. /**
  81097. * This method starts the [CreateWorkflow](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateWorkflow.html) where it waits for the feature to be selected.
  81098. *
  81099. * @deprecated since 4.23
  81100. *
  81101. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#startCreateWorkflowAtFeatureEdit)
  81102. */
  81103. startCreateWorkflowAtFeatureEdit(feature: Graphic): Promise<void>;
  81104. /**
  81105. * Initiates the [CreateWorkflow](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-CreateWorkflow.html) by displaying the [FeatureTemplates](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html) panel.
  81106. *
  81107. * @deprecated since version 4.23. Instead use {@link module:esri/widgets/Editor#startCreateFeaturesWorkflowAtFeatureTypeSelection startCreateFeaturesWorkflowAtFeatureTypeSelection}.
  81108. *
  81109. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#startCreateWorkflowAtFeatureTypeSelection)
  81110. */
  81111. startCreateWorkflowAtFeatureTypeSelection(): Promise<void>;
  81112. /**
  81113. * Starts the update workflow at the feature geometry and attribute editing panel.
  81114. *
  81115. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#startUpdateWorkflowAtFeatureEdit)
  81116. */
  81117. startUpdateWorkflowAtFeatureEdit(feature: Graphic): Promise<void>;
  81118. /**
  81119. * Starts the `update` workflow using the current selected feature.
  81120. *
  81121. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#startUpdateWorkflowAtFeatureSelection)
  81122. */
  81123. startUpdateWorkflowAtFeatureSelection(): Promise<void>;
  81124. /**
  81125. * Starts the Editor workflow where it waits for multiple features to be selected.
  81126. *
  81127. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#startUpdateWorkflowAtMultipleFeatureSelection)
  81128. */
  81129. startUpdateWorkflowAtMultipleFeatureSelection(): Promise<void>;
  81130. }
  81131. /** @deprecated Import the EditorViewModel class instead. */
  81132. export type EditorViewModelConstructor = typeof EditorViewModel;
  81133. interface EditorViewModelProperties {
  81134. /**
  81135. * An array of string values which specifies what end users are allowed to edit.
  81136. *
  81137. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#allowedWorkflows)
  81138. */
  81139. allowedWorkflows?: "create-features" | "create" | "update";
  81140. /**
  81141. * The [AttachmentsViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Attachments-AttachmentsViewModel.html) for supporting the editor widget.
  81142. *
  81143. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#attachmentsViewModel)
  81144. */
  81145. attachmentsViewModel?: AttachmentsViewModelProperties;
  81146. /**
  81147. * The [FeatureFormViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html) for supporting the editor widget.
  81148. *
  81149. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#featureFormViewModel)
  81150. */
  81151. featureFormViewModel?: FeatureFormViewModelProperties;
  81152. /**
  81153. * The [FeatureTemplatesViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-FeatureTemplatesViewModel.html) for supporting the editor widget.
  81154. *
  81155. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#featureTemplatesViewModel)
  81156. */
  81157. featureTemplatesViewModel?: FeatureTemplatesViewModelProperties;
  81158. /**
  81159. * Options to configure the labels shown next to each segment of the geometry being created or updated.
  81160. *
  81161. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#labelOptions)
  81162. */
  81163. labelOptions?: SketchLabelOptionsProperties;
  81164. /**
  81165. * An array of editing configurations for individual layers.
  81166. *
  81167. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#layerInfos)
  81168. */
  81169. layerInfos?: LayerInfo[];
  81170. /**
  81171. * The [SketchViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html) for supporting the editor widget.
  81172. *
  81173. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#sketchViewModel)
  81174. */
  81175. sketchViewModel?: SketchViewModelProperties;
  81176. /**
  81177. * The [SnappingOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-SnappingOptions.html) for sketching.
  81178. *
  81179. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#snappingOptions)
  81180. */
  81181. snappingOptions?: SnappingOptionsProperties;
  81182. /**
  81183. * Options to configure the tooltip shown next to the cursor when creating or updating graphics.
  81184. *
  81185. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#tooltipOptions)
  81186. */
  81187. tooltipOptions?: SketchTooltipOptionsProperties;
  81188. /**
  81189. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  81190. *
  81191. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#view)
  81192. */
  81193. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  81194. }
  81195. /**
  81196. * The editable item available within the map.
  81197. *
  81198. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#EditableItem)
  81199. */
  81200. export interface EditableItem {
  81201. /**
  81202. * *Read-only* The feature layer associated with the editable item.
  81203. *
  81204. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#EditableItem)
  81205. */
  81206. layer: FeatureLayer;
  81207. /**
  81208. * *Read-only* The workflow type that this item supports.
  81209. *
  81210. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#EditableItem)
  81211. */
  81212. supports: string;
  81213. }
  81214. export interface EditorViewModelFailures {
  81215. /**
  81216. * The readonly error message.
  81217. *
  81218. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html#failures)
  81219. */
  81220. error: Error;
  81221. }
  81222. export class Edits extends Accessor {
  81223. /**
  81224. * The feature to be edited.
  81225. *
  81226. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-Edits.html#feature)
  81227. */
  81228. readonly feature: Graphic;
  81229. /**
  81230. * When true, the edited feature has been modified from its original state.
  81231. *
  81232. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-Edits.html#modified)
  81233. */
  81234. readonly modified: boolean;
  81235. /**
  81236. * This class supports the [Editor](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html) widget.
  81237. *
  81238. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-Edits.html)
  81239. */
  81240. constructor(properties?: EditsProperties);
  81241. }
  81242. /** @deprecated Import the Edits class instead. */
  81243. export type EditsConstructor = typeof Edits;
  81244. interface EditsProperties {
  81245. }
  81246. export class UpdateWorkflow extends Workflow {
  81247. /**
  81248. * The type of workflow.
  81249. *
  81250. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-UpdateWorkflow.html#type)
  81251. */
  81252. readonly type: "update";
  81253. /**
  81254. * A read-only class containing the logic used when updating and/or deleting features using the [Editor](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html) widget.
  81255. *
  81256. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-UpdateWorkflow.html)
  81257. */
  81258. constructor(properties?: UpdateWorkflowProperties);
  81259. }
  81260. /** @deprecated Import the UpdateWorkflow class instead. */
  81261. export type UpdateWorkflowConstructor = typeof UpdateWorkflow;
  81262. interface UpdateWorkflowProperties extends WorkflowProperties {
  81263. }
  81264. export class UpdateWorkflowData extends Accessor {
  81265. /**
  81266. * An array of features to be updated.
  81267. *
  81268. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-UpdateWorkflowData.html#candidates)
  81269. */
  81270. candidates: Graphic[];
  81271. /**
  81272. * The object that matches the feature being updated.
  81273. *
  81274. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-UpdateWorkflowData.html#editableItem)
  81275. */
  81276. editableItem: EditableItem;
  81277. /**
  81278. * The [edits](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-Edits.html) used to keep track of a feature being updated.
  81279. *
  81280. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-UpdateWorkflowData.html#edits)
  81281. */
  81282. edits: Edits;
  81283. /**
  81284. * The associated [EditorViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html) for this workflow.
  81285. *
  81286. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-UpdateWorkflowData.html#viewModel)
  81287. */
  81288. viewModel: EditorViewModel;
  81289. /**
  81290. * This object supports the [Editor](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html) widget.
  81291. *
  81292. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-UpdateWorkflowData.html)
  81293. */
  81294. constructor(properties?: UpdateWorkflowDataProperties);
  81295. }
  81296. /** @deprecated Import the UpdateWorkflowData class instead. */
  81297. export type UpdateWorkflowDataConstructor = typeof UpdateWorkflowData;
  81298. interface UpdateWorkflowDataProperties {
  81299. /**
  81300. * An array of features to be updated.
  81301. *
  81302. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-UpdateWorkflowData.html#candidates)
  81303. */
  81304. candidates?: GraphicProperties[];
  81305. /**
  81306. * The object that matches the feature being updated.
  81307. *
  81308. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-UpdateWorkflowData.html#editableItem)
  81309. */
  81310. editableItem?: EditableItem;
  81311. /**
  81312. * The [edits](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-Edits.html) used to keep track of a feature being updated.
  81313. *
  81314. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-UpdateWorkflowData.html#edits)
  81315. */
  81316. edits?: EditsProperties;
  81317. /**
  81318. * The associated [EditorViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-EditorViewModel.html) for this workflow.
  81319. *
  81320. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-UpdateWorkflowData.html#viewModel)
  81321. */
  81322. viewModel?: EditorViewModelProperties;
  81323. }
  81324. export class Workflow extends Accessor {
  81325. /**
  81326. * The shared workflow data.
  81327. *
  81328. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-Workflow.html#data)
  81329. */
  81330. readonly data: CreateWorkflowData | CreateFeaturesWorkflowData | UpdateWorkflowData;
  81331. /**
  81332. * This property indicates whether there is a next step in the workflow.
  81333. *
  81334. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-Workflow.html#hasNextStep)
  81335. */
  81336. readonly hasNextStep: boolean;
  81337. /**
  81338. * This property indicates if there is a previous step in the workflow.
  81339. *
  81340. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-Workflow.html#hasPreviousStep)
  81341. */
  81342. readonly hasPreviousStep: boolean;
  81343. /**
  81344. * Indicates whether the workflow is considered active.
  81345. *
  81346. * @default false
  81347. *
  81348. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-Workflow.html#started)
  81349. */
  81350. readonly started: boolean;
  81351. /**
  81352. * The name of the current step in the workflow.
  81353. *
  81354. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-Workflow.html#stepId)
  81355. */
  81356. readonly stepId: string;
  81357. /**
  81358. * Value indicating the workflow type.
  81359. *
  81360. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-Workflow.html#type)
  81361. */
  81362. readonly type: "create" | "create-features" | "update";
  81363. /**
  81364. * A Workflow helps manage different stages of an [editing](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html) workflow.
  81365. *
  81366. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-Workflow.html)
  81367. */
  81368. constructor(properties?: WorkflowProperties);
  81369. /**
  81370. * Cancels the active workflow.
  81371. *
  81372. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-Workflow.html#cancel)
  81373. */
  81374. cancel(): Promise<void>;
  81375. /**
  81376. * Call this method when the workflow is considered finished.
  81377. *
  81378. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-Workflow.html#commit)
  81379. */
  81380. commit(): Promise<void>;
  81381. /**
  81382. * Moves to the next step in the workflow.
  81383. *
  81384. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-Workflow.html#next)
  81385. */
  81386. next(): Promise<void>;
  81387. /**
  81388. * Moves to the previous step in the workflow.
  81389. *
  81390. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-Workflow.html#previous)
  81391. */
  81392. previous(options?: WorkflowPreviousOptions): Promise<void>;
  81393. /**
  81394. * Resets the workflow.
  81395. *
  81396. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-Workflow.html#reset)
  81397. */
  81398. reset(): Promise<void>;
  81399. /**
  81400. * Starts the workflow.
  81401. *
  81402. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-Workflow.html#start)
  81403. */
  81404. start(): Promise<void>;
  81405. }
  81406. /** @deprecated Import the Workflow class instead. */
  81407. export type WorkflowConstructor = typeof Workflow;
  81408. interface WorkflowProperties {
  81409. }
  81410. export interface WorkflowPreviousOptions {
  81411. /**
  81412. * Cancels the current workflow when calling this method.
  81413. *
  81414. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor-Workflow.html#previous)
  81415. */
  81416. cancelCurrentStep: boolean;
  81417. }
  81418. /**
  81419. * This object provides the feature template and layer for creating a new feature or features.
  81420. *
  81421. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#CreationInfo)
  81422. */
  81423. export interface CreationInfo {
  81424. /**
  81425. * The associated feature layer for newly-created feature(s).
  81426. *
  81427. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#CreationInfo)
  81428. */
  81429. layer: FeatureLayer;
  81430. /**
  81431. * The associated feature template used to create new feature(s).
  81432. *
  81433. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#CreationInfo)
  81434. */
  81435. template: FeatureTemplate;
  81436. }
  81437. /**
  81438. * Configurations used for setting the layer's editable preferences within the Editor.
  81439. *
  81440. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#LayerInfo)
  81441. */
  81442. export interface LayerInfo {
  81443. /**
  81444. * The associated feature layer containing the editable fields.
  81445. *
  81446. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#LayerInfo)
  81447. */
  81448. layer: FeatureLayer;
  81449. /**
  81450. * Indicates whether to display the attachments widget in the Editor's UI.
  81451. *
  81452. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#LayerInfo)
  81453. */
  81454. allowAttachments?: boolean;
  81455. /**
  81456. * Indicates whether to enable editing on the layer.
  81457. *
  81458. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#LayerInfo)
  81459. */
  81460. enabled?: boolean;
  81461. /**
  81462. * Indicates whether to enable the ability to create new features.
  81463. *
  81464. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#LayerInfo)
  81465. */
  81466. addEnabled?: boolean;
  81467. /**
  81468. * Indicates whether to enable the ability to update existing features.
  81469. *
  81470. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#LayerInfo)
  81471. */
  81472. updateEnabled?: boolean;
  81473. /**
  81474. * Indicates whether to enable the ability to delete features.
  81475. *
  81476. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#LayerInfo)
  81477. */
  81478. deleteEnabled?: boolean;
  81479. /**
  81480. * A template that defines the feature's form content.
  81481. *
  81482. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#LayerInfo)
  81483. */
  81484. formTemplate?: FormTemplate;
  81485. /**
  81486. * Indicates whether to enable or disable attribute update from the feature's form.
  81487. *
  81488. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#LayerInfo)
  81489. */
  81490. attributeUpdatesEnabled?: boolean;
  81491. /**
  81492. * Indicates whether to enable or disable geometry updates.
  81493. *
  81494. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#LayerInfo)
  81495. */
  81496. geometryUpdatesEnabled?: boolean;
  81497. }
  81498. /**
  81499. * Set this to customize any supporting Editor widget's default behavior.
  81500. *
  81501. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#SupportingWidgetDefaults)
  81502. */
  81503. export interface SupportingWidgetDefaults {
  81504. /**
  81505. * An object containing properties specific for customizing the [FeatureForm](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html) widget.
  81506. *
  81507. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#SupportingWidgetDefaults)
  81508. */
  81509. featureForm?: SupportingWidgetDefaultsFeatureForm;
  81510. /**
  81511. * An object containing properties specific for customizing the [FeatureTemplates](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html) widget.
  81512. *
  81513. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#SupportingWidgetDefaults)
  81514. */
  81515. featureTemplates?: SupportingWidgetDefaultsFeatureTemplates;
  81516. /**
  81517. * An object containing properties specific for customizing the [Sketch](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html) widget.
  81518. *
  81519. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#SupportingWidgetDefaults)
  81520. */
  81521. sketch?: SupportingWidgetDefaultsSketch;
  81522. }
  81523. /**
  81524. * The visible elements that are displayed within the widget.
  81525. *
  81526. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#VisibleElements)
  81527. */
  81528. export interface EditorVisibleElements {
  81529. /**
  81530. * Indicates whether snapping controls will be displayed.
  81531. *
  81532. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#VisibleElements)
  81533. */
  81534. snappingControls?: boolean;
  81535. /**
  81536. * The elements contained within the snapping controls.
  81537. *
  81538. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#VisibleElements)
  81539. */
  81540. snappingControlsElements?: VisibleElementsSnappingControlsElements;
  81541. /**
  81542. * Indicates whether to display snapping controls' `Snapping layers`.
  81543. *
  81544. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#VisibleElements)
  81545. */
  81546. layerList?: boolean;
  81547. }
  81548. export interface SupportingWidgetDefaultsFeatureForm {
  81549. /**
  81550. * String indicating the [groupDisplay](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#groupDisplay) and how they will be displayed to the end user.
  81551. *
  81552. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#SupportingWidgetDefaults)
  81553. */
  81554. groupDisplay?: string;
  81555. }
  81556. export interface SupportingWidgetDefaultsFeatureTemplates {
  81557. /**
  81558. * Aids in managing various template items and how they display within the widget.
  81559. *
  81560. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#SupportingWidgetDefaults)
  81561. */
  81562. groupBy?: string | GroupByFunction;
  81563. visibleElements: SupportingWidgetDefaultsFeatureTemplatesVisibleElements;
  81564. }
  81565. export interface SupportingWidgetDefaultsFeatureTemplatesVisibleElements {
  81566. /**
  81567. * Indicates whether the [templates filter](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html#visibleElements) displays.
  81568. *
  81569. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#SupportingWidgetDefaults)
  81570. */
  81571. filter?: boolean;
  81572. }
  81573. export interface SupportingWidgetDefaultsSketch {
  81574. /**
  81575. * An object containing the `defaultUpdateOptions` for the [Sketch](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html) widget.
  81576. *
  81577. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#SupportingWidgetDefaults)
  81578. */
  81579. defaultUpdateOptions?: any;
  81580. /**
  81581. * The marker symbol used to symbolize any point feature updates.
  81582. *
  81583. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#SupportingWidgetDefaults)
  81584. */
  81585. markerSymbol?: SimpleMarkerSymbol;
  81586. /**
  81587. * The polygon symbol used to symbolize any polygon feature updates.
  81588. *
  81589. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#SupportingWidgetDefaults)
  81590. */
  81591. polygonSymbol?: SimpleFillSymbol;
  81592. /**
  81593. * The line symbol used to symbolize any line feature updates.
  81594. *
  81595. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#SupportingWidgetDefaults)
  81596. */
  81597. polylineSymbol?: SimpleLineSymbol;
  81598. }
  81599. export interface VisibleElementsSnappingControlsElements {
  81600. /**
  81601. * Indicates whether to display the snapping controls' header.
  81602. *
  81603. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#VisibleElements)
  81604. */
  81605. header?: boolean;
  81606. /**
  81607. * Indicates whether to display the snapping controls' toggle to entirely enable/disable snapping.
  81608. *
  81609. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#VisibleElements)
  81610. */
  81611. enabledToggle?: boolean;
  81612. /**
  81613. * Indicates whether to display the snapping controls' toggle to enable/disable `Geometry guides`.
  81614. *
  81615. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#VisibleElements)
  81616. */
  81617. selfEnabledToggle?: boolean;
  81618. /**
  81619. * Indicates whether to display the snapping controls' toggle to enable/disable `Feature to feature` snapping.
  81620. *
  81621. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#VisibleElements)
  81622. */
  81623. featureEnabledToggle?: boolean;
  81624. }
  81625. export class ElevationProfile extends Widget {
  81626. /**
  81627. * When the spatial reference is projected (other than web mercator) and the path is shorter than this threshold, distances will be computed planimetrically.
  81628. *
  81629. * @default 100000
  81630. *
  81631. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#geodesicDistanceThreshold)
  81632. */
  81633. geodesicDistanceThreshold: number;
  81634. /**
  81635. * The widget's default CSS icon class.
  81636. *
  81637. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#iconClass)
  81638. */
  81639. iconClass: string;
  81640. /**
  81641. * The input line graphic along which elevation will be queried in order to generate an elevation profile.
  81642. *
  81643. * @default null
  81644. *
  81645. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#input)
  81646. */
  81647. input: Graphic;
  81648. /**
  81649. * Collection of elevation profile lines which are to be generated and displayed in the widget's chart.
  81650. *
  81651. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#profiles)
  81652. */
  81653. profiles: Collection<
  81654. ElevationProfileLineGround | ElevationProfileLineInput | ElevationProfileLineQuery | ElevationProfileLineView
  81655. >;
  81656. /**
  81657. * Unit system (imperial, metric) or specific unit used for displaying the elevation and distance values.
  81658. *
  81659. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#unit)
  81660. */
  81661. unit: SystemOrLengthUnit;
  81662. /**
  81663. * List of available units and unit systems (imperial, metric) for displaying the elevation and distance values.
  81664. *
  81665. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#unitOptions)
  81666. */
  81667. unitOptions: SystemOrLengthUnit[];
  81668. /**
  81669. * A reference to the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) or the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  81670. *
  81671. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#view)
  81672. */
  81673. view: SceneView | MapView;
  81674. /**
  81675. * The view model for this widget.
  81676. *
  81677. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#viewModel)
  81678. */
  81679. viewModel: ElevationProfileViewModel;
  81680. /**
  81681. * This property provides the ability to display or hide the individual elements of the widget.
  81682. *
  81683. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#visibleElements)
  81684. */
  81685. visibleElements: ElevationProfileVisibleElements;
  81686. /**
  81687. * The ElevationProfile widget is used to generate and display an elevation profile from an [input line graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#input).
  81688. *
  81689. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html)
  81690. */
  81691. constructor(properties?: ElevationProfileProperties);
  81692. }
  81693. /** @deprecated Import the ElevationProfile class instead. */
  81694. export type ElevationProfileConstructor = typeof ElevationProfile;
  81695. interface ElevationProfileProperties extends WidgetProperties {
  81696. /**
  81697. * When the spatial reference is projected (other than web mercator) and the path is shorter than this threshold, distances will be computed planimetrically.
  81698. *
  81699. * @default 100000
  81700. *
  81701. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#geodesicDistanceThreshold)
  81702. */
  81703. geodesicDistanceThreshold?: number;
  81704. /**
  81705. * The widget's default CSS icon class.
  81706. *
  81707. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#iconClass)
  81708. */
  81709. iconClass?: string;
  81710. /**
  81711. * The input line graphic along which elevation will be queried in order to generate an elevation profile.
  81712. *
  81713. * @default null
  81714. *
  81715. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#input)
  81716. */
  81717. input?: GraphicProperties;
  81718. /**
  81719. * Collection of elevation profile lines which are to be generated and displayed in the widget's chart.
  81720. *
  81721. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#profiles)
  81722. */
  81723. profiles?: CollectionProperties<
  81724. | (ElevationProfileLineGroundProperties & { type: "ground" })
  81725. | (ElevationProfileLineInputProperties & { type: "input" })
  81726. | (ElevationProfileLineQueryProperties & { type: "query" })
  81727. | (ElevationProfileLineViewProperties & { type: "view" })
  81728. >;
  81729. /**
  81730. * Unit system (imperial, metric) or specific unit used for displaying the elevation and distance values.
  81731. *
  81732. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#unit)
  81733. */
  81734. unit?: | "imperial"
  81735. | "metric"
  81736. | "millimeters"
  81737. | "centimeters"
  81738. | "decimeters"
  81739. | "meters"
  81740. | "kilometers"
  81741. | "inches"
  81742. | "feet"
  81743. | "yards"
  81744. | "miles"
  81745. | "nautical-miles"
  81746. | "us-feet";
  81747. /**
  81748. * List of available units and unit systems (imperial, metric) for displaying the elevation and distance values.
  81749. *
  81750. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#unitOptions)
  81751. */
  81752. unitOptions?: (
  81753. | "imperial"
  81754. | "metric"
  81755. | "millimeters"
  81756. | "centimeters"
  81757. | "decimeters"
  81758. | "meters"
  81759. | "kilometers"
  81760. | "inches"
  81761. | "feet"
  81762. | "yards"
  81763. | "miles"
  81764. | "nautical-miles"
  81765. | "us-feet"
  81766. )[];
  81767. /**
  81768. * A reference to the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html) or the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  81769. *
  81770. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#view)
  81771. */
  81772. view?: (SceneViewProperties & { type: "3d" }) | (MapViewProperties & { type: "2d" });
  81773. /**
  81774. * The view model for this widget.
  81775. *
  81776. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#viewModel)
  81777. */
  81778. viewModel?: ElevationProfileViewModelProperties;
  81779. /**
  81780. * This property provides the ability to display or hide the individual elements of the widget.
  81781. *
  81782. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#visibleElements)
  81783. */
  81784. visibleElements?: ElevationProfileVisibleElements;
  81785. }
  81786. export class ElevationProfileLine extends Accessor {
  81787. /**
  81788. * Color of the line on the chart and the hovered points in the view.
  81789. *
  81790. * @default #000000
  81791. *
  81792. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#color)
  81793. */
  81794. color: Color;
  81795. /**
  81796. * Point being hovered in the chart, in the view's spatial reference.
  81797. *
  81798. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#hoveredPoint)
  81799. */
  81800. readonly hoveredPoint: Point;
  81801. /**
  81802. * Unique identifier for the profile line.
  81803. *
  81804. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#id)
  81805. */
  81806. id: string;
  81807. /**
  81808. * How far along the generation of this profile is.
  81809. *
  81810. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#progress)
  81811. */
  81812. readonly progress: number;
  81813. /**
  81814. * List of samples that make up the elevation profile.
  81815. *
  81816. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#samples)
  81817. */
  81818. readonly samples: ElevationProfileSample[];
  81819. /**
  81820. * Statistics about the generated elevation profile, if available.
  81821. *
  81822. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#statistics)
  81823. */
  81824. readonly statistics: ElevationProfileStatistics;
  81825. /**
  81826. * Title of the line, to be displayed in the chart tooltip and in the chart legend.
  81827. *
  81828. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#title)
  81829. */
  81830. title: string;
  81831. /**
  81832. * The line type.
  81833. *
  81834. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#type)
  81835. */
  81836. readonly type: "ground" | "input" | "query" | "view";
  81837. /**
  81838. * Whether a line visualization representing [elevationSamples](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#samples) should be added to the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  81839. *
  81840. * @default true
  81841. *
  81842. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#viewVisualizationEnabled)
  81843. */
  81844. viewVisualizationEnabled: boolean;
  81845. /**
  81846. * Whether the line should be computed and shown in the chart.
  81847. *
  81848. * @default true
  81849. *
  81850. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#visible)
  81851. */
  81852. visible: boolean;
  81853. /**
  81854. * Common interface for all the elevation profile lines.
  81855. *
  81856. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html)
  81857. */
  81858. constructor(properties?: ElevationProfileLineProperties);
  81859. }
  81860. /** @deprecated Import the ElevationProfileLine class instead. */
  81861. export type ElevationProfileLineConstructor = typeof ElevationProfileLine;
  81862. interface ElevationProfileLineProperties {
  81863. /**
  81864. * Color of the line on the chart and the hovered points in the view.
  81865. *
  81866. * @default #000000
  81867. *
  81868. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#color)
  81869. */
  81870. color?: Color | number[] | string;
  81871. /**
  81872. * Unique identifier for the profile line.
  81873. *
  81874. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#id)
  81875. */
  81876. id?: string;
  81877. /**
  81878. * Title of the line, to be displayed in the chart tooltip and in the chart legend.
  81879. *
  81880. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#title)
  81881. */
  81882. title?: string;
  81883. /**
  81884. * Whether a line visualization representing [elevationSamples](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#samples) should be added to the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  81885. *
  81886. * @default true
  81887. *
  81888. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#viewVisualizationEnabled)
  81889. */
  81890. viewVisualizationEnabled?: boolean;
  81891. /**
  81892. * Whether the line should be computed and shown in the chart.
  81893. *
  81894. * @default true
  81895. *
  81896. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#visible)
  81897. */
  81898. visible?: boolean;
  81899. }
  81900. /**
  81901. * Represents an elevation sample in the profile.
  81902. *
  81903. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#ElevationProfileSample)
  81904. */
  81905. export interface ElevationProfileSample {
  81906. /**
  81907. * The x coordinate of the sample, in the spatial reference of the view.
  81908. *
  81909. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#ElevationProfileSample)
  81910. */
  81911. x: number;
  81912. /**
  81913. * The y coordinate of the sample, in the spatial reference of the view.
  81914. *
  81915. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#ElevationProfileSample)
  81916. */
  81917. y: number;
  81918. /**
  81919. * The z coordinate of the sample, in the spatial reference of the view.
  81920. *
  81921. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#ElevationProfileSample)
  81922. */
  81923. z?: number;
  81924. /**
  81925. * Distance from the beginning of the path, in the effective selected by the user.
  81926. *
  81927. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#ElevationProfileSample)
  81928. */
  81929. distance: number;
  81930. /**
  81931. * The elevation of the sample, in the effective units selected by the user.
  81932. *
  81933. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#ElevationProfileSample)
  81934. */
  81935. elevation?: number;
  81936. }
  81937. /**
  81938. * Represents the statistics for the generated profile line.
  81939. *
  81940. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#ElevationProfileStatistics)
  81941. */
  81942. export interface ElevationProfileStatistics {
  81943. /**
  81944. * The maximum distance or length of the path.
  81945. *
  81946. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#ElevationProfileStatistics)
  81947. */
  81948. maxDistance: number;
  81949. /**
  81950. * The minimum elevation along the path.
  81951. *
  81952. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#ElevationProfileStatistics)
  81953. */
  81954. minElevation: number;
  81955. /**
  81956. * The maximum elevation along the path.
  81957. *
  81958. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#ElevationProfileStatistics)
  81959. */
  81960. maxElevation: number;
  81961. /**
  81962. * The average elevation along the path.
  81963. *
  81964. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#ElevationProfileStatistics)
  81965. */
  81966. avgElevation: number;
  81967. /**
  81968. * The cumulative elevation gain along the path.
  81969. *
  81970. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#ElevationProfileStatistics)
  81971. */
  81972. elevationGain: number;
  81973. /**
  81974. * The cumulative elevation loss along the path.
  81975. *
  81976. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#ElevationProfileStatistics)
  81977. */
  81978. elevationLoss: number;
  81979. /**
  81980. * The maximum slope along the path.
  81981. *
  81982. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#ElevationProfileStatistics)
  81983. */
  81984. maxSlope: number;
  81985. /**
  81986. * The average slope along the path.
  81987. *
  81988. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#ElevationProfileStatistics)
  81989. */
  81990. avgSlope: number;
  81991. }
  81992. export class ElevationProfileLineGround extends ElevationProfileLine {
  81993. /**
  81994. * The line type.
  81995. *
  81996. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLineGround.html#type)
  81997. */
  81998. readonly type: "ground";
  81999. /**
  82000. * Profile line which samples elevation from the [Ground](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html) of the [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) currently set in the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html).
  82001. *
  82002. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLineGround.html)
  82003. */
  82004. constructor(properties?: ElevationProfileLineGroundProperties);
  82005. }
  82006. /** @deprecated Import the ElevationProfileLineGround class instead. */
  82007. export type ElevationProfileLineGroundConstructor = typeof ElevationProfileLineGround;
  82008. interface ElevationProfileLineGroundProperties extends ElevationProfileLineProperties {
  82009. }
  82010. export class ElevationProfileLineInput extends ElevationProfileLine {
  82011. /**
  82012. * The line type.
  82013. *
  82014. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLineInput.html#type)
  82015. */
  82016. readonly type: "input";
  82017. /**
  82018. * Profile line which samples elevation from the geometry of the input [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) itself, typically used on input lines with z values.
  82019. *
  82020. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLineInput.html)
  82021. */
  82022. constructor(properties?: ElevationProfileLineInputProperties);
  82023. }
  82024. /** @deprecated Import the ElevationProfileLineInput class instead. */
  82025. export type ElevationProfileLineInputConstructor = typeof ElevationProfileLineInput;
  82026. interface ElevationProfileLineInputProperties extends ElevationProfileLineProperties {
  82027. }
  82028. export class ElevationProfileLineQuery extends ElevationProfileLine {
  82029. /**
  82030. * Elevation source used to sample elevation when generating the profile, for example an [ElevationLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html).
  82031. *
  82032. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLineQuery.html#source)
  82033. */
  82034. source: ElevationProfileLineQuerySource;
  82035. /**
  82036. * The line type.
  82037. *
  82038. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLineQuery.html#type)
  82039. */
  82040. readonly type: "query";
  82041. /**
  82042. * Profile line which samples elevation from a custom elevation source, for example by creating a new [ElevationLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html), or by using an elevation layer from [ground.layers](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html#layers).
  82043. *
  82044. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLineQuery.html)
  82045. */
  82046. constructor(properties?: ElevationProfileLineQueryProperties);
  82047. }
  82048. /** @deprecated Import the ElevationProfileLineQuery class instead. */
  82049. export type ElevationProfileLineQueryConstructor = typeof ElevationProfileLineQuery;
  82050. interface ElevationProfileLineQueryProperties extends ElevationProfileLineProperties {
  82051. /**
  82052. * Elevation source used to sample elevation when generating the profile, for example an [ElevationLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ElevationLayer.html).
  82053. *
  82054. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLineQuery.html#source)
  82055. */
  82056. source?: ElevationProfileLineQuerySource;
  82057. }
  82058. export interface ElevationProfileLineQuerySource {
  82059. /**
  82060. * Function used to query elevation values for a geometry ([Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html), [Multipoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Multipoint.html) or [Polyline](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html)).
  82061. *
  82062. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLineQuery.html#source)
  82063. */
  82064. queryElevation: QueryElevation;
  82065. }
  82066. export type QueryElevation = (
  82067. geometry: Point | Multipoint | Polyline,
  82068. options?: any
  82069. ) => Promise<ElevationLayerElevationQueryResult>;
  82070. export class ElevationProfileLineView extends ElevationProfileLine {
  82071. /**
  82072. * Items which are to be excluded when querying elevation from view.
  82073. *
  82074. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLineView.html#exclude)
  82075. */
  82076. exclude: | (IntersectItem | Collection<IntersectItem> | IntersectItem[] | Ground)[]
  82077. | Collection<IntersectItem>
  82078. | IntersectItem;
  82079. /**
  82080. * Items which are to be hit when querying elevation from view.
  82081. *
  82082. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLineView.html#include)
  82083. */
  82084. include: | (IntersectItem | Collection<IntersectItem> | IntersectItem[] | Ground)[]
  82085. | Collection<IntersectItem>
  82086. | IntersectItem;
  82087. /**
  82088. * The line type.
  82089. *
  82090. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLineView.html#type)
  82091. */
  82092. readonly type: "view";
  82093. /**
  82094. * Profile line which samples elevation directly from the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  82095. *
  82096. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLineView.html)
  82097. */
  82098. constructor(properties?: ElevationProfileLineViewProperties);
  82099. }
  82100. /** @deprecated Import the ElevationProfileLineView class instead. */
  82101. export type ElevationProfileLineViewConstructor = typeof ElevationProfileLineView;
  82102. interface ElevationProfileLineViewProperties extends ElevationProfileLineProperties {
  82103. /**
  82104. * Items which are to be excluded when querying elevation from view.
  82105. *
  82106. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLineView.html#exclude)
  82107. */
  82108. exclude?: | (
  82109. | GraphicProperties
  82110. | LayerProperties
  82111. | BuildingSublayerProperties
  82112. | CollectionProperties<GraphicProperties | LayerProperties | BuildingSublayerProperties>
  82113. | (GraphicProperties | LayerProperties | BuildingSublayerProperties)[]
  82114. | GroundProperties
  82115. )[]
  82116. | CollectionProperties<GraphicProperties | LayerProperties | BuildingSublayerProperties>
  82117. | GraphicProperties
  82118. | LayerProperties
  82119. | BuildingSublayerProperties;
  82120. /**
  82121. * Items which are to be hit when querying elevation from view.
  82122. *
  82123. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLineView.html#include)
  82124. */
  82125. include?: | (
  82126. | GraphicProperties
  82127. | LayerProperties
  82128. | BuildingSublayerProperties
  82129. | CollectionProperties<GraphicProperties | LayerProperties | BuildingSublayerProperties>
  82130. | (GraphicProperties | LayerProperties | BuildingSublayerProperties)[]
  82131. | GroundProperties
  82132. )[]
  82133. | CollectionProperties<GraphicProperties | LayerProperties | BuildingSublayerProperties>
  82134. | GraphicProperties
  82135. | LayerProperties
  82136. | BuildingSublayerProperties;
  82137. }
  82138. export class ElevationProfileViewModel extends Accessor {
  82139. /**
  82140. * Units which have been selected according to the magnitude of the elevations and distances that are to be displayed in the widget, according to the selected unit or unit system.
  82141. *
  82142. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#effectiveUnits)
  82143. */
  82144. readonly effectiveUnits: EffectiveUnits;
  82145. /**
  82146. * When the spatial reference is projected (other than web mercator) and the path is shorter than this threshold, distances will be computed planimetrically.
  82147. *
  82148. * @default 100000
  82149. *
  82150. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#geodesicDistanceThreshold)
  82151. */
  82152. geodesicDistanceThreshold: number;
  82153. /**
  82154. * Whether the graphic used as [input](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#input) is highlighted.
  82155. *
  82156. * @default true
  82157. *
  82158. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#highlightEnabled)
  82159. */
  82160. highlightEnabled: boolean;
  82161. /**
  82162. * The position, in the range [0, 1], being hovered in the graph.
  82163. *
  82164. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#hoveredChartPosition)
  82165. */
  82166. hoveredChartPosition: number;
  82167. /**
  82168. * The input path along which elevation will be queried in order to generate an elevation profile.
  82169. *
  82170. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#input)
  82171. */
  82172. input: Graphic;
  82173. /**
  82174. * Collection of elevation profile lines which are to be generated and displayed in the widget's chart.
  82175. *
  82176. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#profiles)
  82177. */
  82178. profiles: Collection<
  82179. ElevationProfileLineGround | ElevationProfileLineInput | ElevationProfileLineQuery | ElevationProfileLineView
  82180. >;
  82181. /**
  82182. * The progress, between 0 and 1 of generating all the configured elevation profiles.
  82183. *
  82184. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#progress)
  82185. */
  82186. readonly progress: number;
  82187. /**
  82188. * The current state of the view model that can be used for rendering the UI of the widget.
  82189. *
  82190. * @default disabled
  82191. *
  82192. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#state)
  82193. */
  82194. readonly state: "disabled" | "ready" | "creating" | "created" | "selecting" | "selected";
  82195. /**
  82196. * Whether the chart should use a uniform scale for the X and Y axes.
  82197. *
  82198. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#uniformChartScaling)
  82199. */
  82200. uniformChartScaling: boolean;
  82201. /**
  82202. * Unit system (imperial, metric) or specific unit used for displaying the elevation and distance values.
  82203. *
  82204. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#unit)
  82205. */
  82206. unit: SystemOrLengthUnit;
  82207. /**
  82208. * List of available units and unit systems (imperial, metric) for displaying the elevation and distance values.
  82209. *
  82210. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#unitOptions)
  82211. */
  82212. unitOptions: SystemOrLengthUnit[];
  82213. /**
  82214. * A reference to the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html).
  82215. *
  82216. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#view)
  82217. */
  82218. view: SceneView | MapView;
  82219. /**
  82220. * Provides the logic for the [ElevationProfile](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html) widget.
  82221. *
  82222. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html)
  82223. */
  82224. constructor(properties?: ElevationProfileViewModelProperties);
  82225. /**
  82226. * Stops a creation/selection operation and restores the previously configured input path.
  82227. *
  82228. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#cancel)
  82229. */
  82230. cancel(): void;
  82231. /**
  82232. * Clears the existing profile and stops any interaction.
  82233. *
  82234. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#clear)
  82235. */
  82236. clear(): void;
  82237. /**
  82238. * If mode is "sketch" (the default), switches to the "creating" state in which the user can draw a new line.
  82239. *
  82240. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#start)
  82241. */
  82242. start(options?: ElevationProfileViewModelStartOptions): void;
  82243. /**
  82244. * Stops a creation/selection operation.
  82245. *
  82246. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#stop)
  82247. */
  82248. stop(): void;
  82249. }
  82250. /** @deprecated Import the ElevationProfileViewModel class instead. */
  82251. export type ElevationProfileViewModelConstructor = typeof ElevationProfileViewModel;
  82252. interface ElevationProfileViewModelProperties {
  82253. /**
  82254. * When the spatial reference is projected (other than web mercator) and the path is shorter than this threshold, distances will be computed planimetrically.
  82255. *
  82256. * @default 100000
  82257. *
  82258. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#geodesicDistanceThreshold)
  82259. */
  82260. geodesicDistanceThreshold?: number;
  82261. /**
  82262. * Whether the graphic used as [input](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#input) is highlighted.
  82263. *
  82264. * @default true
  82265. *
  82266. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#highlightEnabled)
  82267. */
  82268. highlightEnabled?: boolean;
  82269. /**
  82270. * The position, in the range [0, 1], being hovered in the graph.
  82271. *
  82272. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#hoveredChartPosition)
  82273. */
  82274. hoveredChartPosition?: number;
  82275. /**
  82276. * The input path along which elevation will be queried in order to generate an elevation profile.
  82277. *
  82278. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#input)
  82279. */
  82280. input?: GraphicProperties;
  82281. /**
  82282. * Collection of elevation profile lines which are to be generated and displayed in the widget's chart.
  82283. *
  82284. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#profiles)
  82285. */
  82286. profiles?: CollectionProperties<
  82287. | (ElevationProfileLineGroundProperties & { type: "ground" })
  82288. | (ElevationProfileLineInputProperties & { type: "input" })
  82289. | (ElevationProfileLineQueryProperties & { type: "query" })
  82290. | (ElevationProfileLineViewProperties & { type: "view" })
  82291. >;
  82292. /**
  82293. * Whether the chart should use a uniform scale for the X and Y axes.
  82294. *
  82295. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#uniformChartScaling)
  82296. */
  82297. uniformChartScaling?: boolean;
  82298. /**
  82299. * Unit system (imperial, metric) or specific unit used for displaying the elevation and distance values.
  82300. *
  82301. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#unit)
  82302. */
  82303. unit?: | "imperial"
  82304. | "metric"
  82305. | "millimeters"
  82306. | "centimeters"
  82307. | "decimeters"
  82308. | "meters"
  82309. | "kilometers"
  82310. | "inches"
  82311. | "feet"
  82312. | "yards"
  82313. | "miles"
  82314. | "nautical-miles"
  82315. | "us-feet";
  82316. /**
  82317. * List of available units and unit systems (imperial, metric) for displaying the elevation and distance values.
  82318. *
  82319. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#unitOptions)
  82320. */
  82321. unitOptions?: (
  82322. | "imperial"
  82323. | "metric"
  82324. | "millimeters"
  82325. | "centimeters"
  82326. | "decimeters"
  82327. | "meters"
  82328. | "kilometers"
  82329. | "inches"
  82330. | "feet"
  82331. | "yards"
  82332. | "miles"
  82333. | "nautical-miles"
  82334. | "us-feet"
  82335. )[];
  82336. /**
  82337. * A reference to the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html).
  82338. *
  82339. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#view)
  82340. */
  82341. view?: (SceneViewProperties & { type: "3d" }) | (MapViewProperties & { type: "2d" });
  82342. }
  82343. /**
  82344. * The units which have been selected according to the magnitude of the elevations and distances that are to be displayed in the widget, according to the selected unit or unit system.
  82345. *
  82346. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#EffectiveUnits)
  82347. */
  82348. export interface EffectiveUnits {
  82349. /**
  82350. * Units used for displaying distance or length values.
  82351. *
  82352. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#EffectiveUnits)
  82353. */
  82354. distance: LengthUnit;
  82355. /**
  82356. * Units used for displaying elevation values.
  82357. *
  82358. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#EffectiveUnits)
  82359. */
  82360. elevation: LengthUnit;
  82361. }
  82362. export interface ElevationProfileViewModelStartOptions {
  82363. /**
  82364. * The mode that the widget will start with.
  82365. *
  82366. * @default "sketch"
  82367. *
  82368. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileViewModel.html#start)
  82369. */
  82370. mode?: "sketch" | "select";
  82371. }
  82372. /**
  82373. * The visible elements that are displayed within the widget.
  82374. *
  82375. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#VisibleElements)
  82376. */
  82377. export interface ElevationProfileVisibleElements {
  82378. /**
  82379. * When set to `false`, the legend (which includes statistics) is not displayed.
  82380. *
  82381. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#VisibleElements)
  82382. */
  82383. legend?: boolean;
  82384. /**
  82385. * When set to `false`, the chart is not displayed.
  82386. *
  82387. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#VisibleElements)
  82388. */
  82389. chart?: boolean;
  82390. /**
  82391. * When set to `false` the button used to clear the current elevation profile is not displayed.
  82392. *
  82393. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#VisibleElements)
  82394. */
  82395. clearButton?: boolean;
  82396. /**
  82397. * When set to `false`, the button used to open the settings popup is not displayed.
  82398. *
  82399. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#VisibleElements)
  82400. */
  82401. settingsButton?: boolean;
  82402. /**
  82403. * When set to `false`, the button used to start drawing/sketchinng is not displayed.
  82404. *
  82405. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#VisibleElements)
  82406. */
  82407. sketchButton?: boolean;
  82408. /**
  82409. * When set to `false`, the button used to select a path is not displayed.
  82410. *
  82411. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#VisibleElements)
  82412. */
  82413. selectButton?: boolean;
  82414. /**
  82415. * When set to `false`, the dropdown used to select the units is not displayed.
  82416. *
  82417. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#VisibleElements)
  82418. */
  82419. unitSelector?: boolean;
  82420. /**
  82421. * When set to `false`, the element used to toggle uniform chart scaling on or off is not displayed.
  82422. *
  82423. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#VisibleElements)
  82424. */
  82425. uniformChartScalingToggle?: boolean;
  82426. }
  82427. export class Expand extends Widget {
  82428. /**
  82429. * Automatically collapses the expand widget instance when the view's viewpoint updates.
  82430. *
  82431. * @default false
  82432. *
  82433. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#autoCollapse)
  82434. */
  82435. autoCollapse: boolean;
  82436. /**
  82437. * When true, the Expand widget will close after the Escape key is pressed when the keyboard focus is within its content.
  82438. *
  82439. * @default true
  82440. *
  82441. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#closeOnEsc)
  82442. */
  82443. closeOnEsc: boolean | Function;
  82444. /**
  82445. * Icon font used to style the Expand button.
  82446. *
  82447. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#collapseIconClass)
  82448. */
  82449. collapseIconClass: string;
  82450. /**
  82451. * Tooltip to display to indicate Expand widget can be collapsed.
  82452. *
  82453. * @default "Collapse" (English locale)
  82454. *
  82455. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#collapseTooltip)
  82456. */
  82457. collapseTooltip: string;
  82458. /**
  82459. * The content to display within the expanded Expand widget.
  82460. *
  82461. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#content)
  82462. */
  82463. content: Node | string | Widget;
  82464. /**
  82465. * Indicates whether the widget is currently expanded or not.
  82466. *
  82467. * @default false
  82468. *
  82469. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#expanded)
  82470. */
  82471. expanded: boolean;
  82472. /**
  82473. * Icon font used to style the Expand button.
  82474. *
  82475. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#expandIconClass)
  82476. */
  82477. expandIconClass: string;
  82478. /**
  82479. * Tooltip to display to indicate Expand widget can be expanded.
  82480. *
  82481. * @default "Expand" (English locale)
  82482. *
  82483. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#expandTooltip)
  82484. */
  82485. expandTooltip: string;
  82486. /**
  82487. * This value associates two or more Expand widget instances with each other, allowing one instance to auto collapse when another instance in the same group is expanded.
  82488. *
  82489. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#group)
  82490. */
  82491. group: string;
  82492. /**
  82493. * A number to display at the corner of the widget to indicate the number of, for example, open issues or unread notices.
  82494. *
  82495. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#iconNumber)
  82496. */
  82497. iconNumber: number;
  82498. /**
  82499. * The mode in which the widget displays.
  82500. *
  82501. * @default "auto"
  82502. *
  82503. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#mode)
  82504. */
  82505. mode: "auto" | "floating" | "drawer";
  82506. /**
  82507. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  82508. *
  82509. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#view)
  82510. */
  82511. view: MapView | SceneView;
  82512. /**
  82513. * The view model for this widget.
  82514. *
  82515. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#viewModel)
  82516. */
  82517. viewModel: ExpandViewModel;
  82518. /**
  82519. * The Expand widget acts as a clickable button for opening a widget.
  82520. *
  82521. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html)
  82522. */
  82523. constructor(properties?: ExpandProperties);
  82524. /**
  82525. * Collapse the widget.
  82526. *
  82527. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#collapse)
  82528. */
  82529. collapse(): void;
  82530. /**
  82531. * Expand the widget.
  82532. *
  82533. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#expand)
  82534. */
  82535. expand(): void;
  82536. /**
  82537. * Toggle the widget by expanding it if it's collapsed, or collapsing it if it's expanded.
  82538. *
  82539. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#toggle)
  82540. */
  82541. toggle(): void;
  82542. }
  82543. /** @deprecated Import the Expand class instead. */
  82544. export type ExpandConstructor = typeof Expand;
  82545. interface ExpandProperties extends WidgetProperties {
  82546. /**
  82547. * Automatically collapses the expand widget instance when the view's viewpoint updates.
  82548. *
  82549. * @default false
  82550. *
  82551. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#autoCollapse)
  82552. */
  82553. autoCollapse?: boolean;
  82554. /**
  82555. * When true, the Expand widget will close after the Escape key is pressed when the keyboard focus is within its content.
  82556. *
  82557. * @default true
  82558. *
  82559. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#closeOnEsc)
  82560. */
  82561. closeOnEsc?: boolean | Function;
  82562. /**
  82563. * Icon font used to style the Expand button.
  82564. *
  82565. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#collapseIconClass)
  82566. */
  82567. collapseIconClass?: string;
  82568. /**
  82569. * Tooltip to display to indicate Expand widget can be collapsed.
  82570. *
  82571. * @default "Collapse" (English locale)
  82572. *
  82573. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#collapseTooltip)
  82574. */
  82575. collapseTooltip?: string;
  82576. /**
  82577. * The content to display within the expanded Expand widget.
  82578. *
  82579. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#content)
  82580. */
  82581. content?: Node | string | WidgetProperties;
  82582. /**
  82583. * Indicates whether the widget is currently expanded or not.
  82584. *
  82585. * @default false
  82586. *
  82587. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#expanded)
  82588. */
  82589. expanded?: boolean;
  82590. /**
  82591. * Icon font used to style the Expand button.
  82592. *
  82593. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#expandIconClass)
  82594. */
  82595. expandIconClass?: string;
  82596. /**
  82597. * Tooltip to display to indicate Expand widget can be expanded.
  82598. *
  82599. * @default "Expand" (English locale)
  82600. *
  82601. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#expandTooltip)
  82602. */
  82603. expandTooltip?: string;
  82604. /**
  82605. * This value associates two or more Expand widget instances with each other, allowing one instance to auto collapse when another instance in the same group is expanded.
  82606. *
  82607. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#group)
  82608. */
  82609. group?: string;
  82610. /**
  82611. * A number to display at the corner of the widget to indicate the number of, for example, open issues or unread notices.
  82612. *
  82613. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#iconNumber)
  82614. */
  82615. iconNumber?: number;
  82616. /**
  82617. * The mode in which the widget displays.
  82618. *
  82619. * @default "auto"
  82620. *
  82621. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#mode)
  82622. */
  82623. mode?: "auto" | "floating" | "drawer";
  82624. /**
  82625. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  82626. *
  82627. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#view)
  82628. */
  82629. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  82630. /**
  82631. * The view model for this widget.
  82632. *
  82633. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html#viewModel)
  82634. */
  82635. viewModel?: ExpandViewModelProperties;
  82636. }
  82637. export class ExpandViewModel extends Accessor {
  82638. /**
  82639. * Automatically collapses the expand widget instance when the view's viewpoint updates.
  82640. *
  82641. * @default false
  82642. *
  82643. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand-ExpandViewModel.html#autoCollapse)
  82644. */
  82645. autoCollapse: boolean;
  82646. /**
  82647. * Whether the widget is currently expanded or not.
  82648. *
  82649. * @default false
  82650. *
  82651. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand-ExpandViewModel.html#expanded)
  82652. */
  82653. expanded: boolean;
  82654. /**
  82655. * This value associates two or more Expand widget instances with each other, allowing one instance to auto collapse when another instance in the same group is expanded.
  82656. *
  82657. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand-ExpandViewModel.html#group)
  82658. */
  82659. group: string;
  82660. /**
  82661. * The view model's state.
  82662. *
  82663. * @default disabled
  82664. *
  82665. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand-ExpandViewModel.html#state)
  82666. */
  82667. readonly state: "ready" | "disabled";
  82668. /**
  82669. * The view in which the Expand is used.
  82670. *
  82671. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand-ExpandViewModel.html#view)
  82672. */
  82673. view: MapView | SceneView;
  82674. /**
  82675. * Provides the logic for the [Expand](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand.html) widget.
  82676. *
  82677. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand-ExpandViewModel.html)
  82678. */
  82679. constructor(properties?: ExpandViewModelProperties);
  82680. }
  82681. /** @deprecated Import the ExpandViewModel class instead. */
  82682. export type ExpandViewModelConstructor = typeof ExpandViewModel;
  82683. interface ExpandViewModelProperties {
  82684. /**
  82685. * Automatically collapses the expand widget instance when the view's viewpoint updates.
  82686. *
  82687. * @default false
  82688. *
  82689. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand-ExpandViewModel.html#autoCollapse)
  82690. */
  82691. autoCollapse?: boolean;
  82692. /**
  82693. * Whether the widget is currently expanded or not.
  82694. *
  82695. * @default false
  82696. *
  82697. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand-ExpandViewModel.html#expanded)
  82698. */
  82699. expanded?: boolean;
  82700. /**
  82701. * This value associates two or more Expand widget instances with each other, allowing one instance to auto collapse when another instance in the same group is expanded.
  82702. *
  82703. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand-ExpandViewModel.html#group)
  82704. */
  82705. group?: string;
  82706. /**
  82707. * The view in which the Expand is used.
  82708. *
  82709. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Expand-ExpandViewModel.html#view)
  82710. */
  82711. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  82712. }
  82713. export class Feature extends Widget {
  82714. /**
  82715. * Enables automatic creation of a popup template for layers that have popups enabled but no popupTemplate defined.
  82716. *
  82717. * @default false
  82718. *
  82719. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#defaultPopupTemplateEnabled)
  82720. */
  82721. defaultPopupTemplateEnabled: boolean;
  82722. /**
  82723. * The [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) used to represent the feature.
  82724. *
  82725. * @default null
  82726. *
  82727. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#graphic)
  82728. */
  82729. graphic: Graphic;
  82730. /**
  82731. * Indicates the heading level to use for the [title](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#title) of the feature widget.
  82732. *
  82733. * @default 2
  82734. *
  82735. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#headingLevel)
  82736. */
  82737. headingLevel: number;
  82738. /**
  82739. * A reference to the [view's](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html) [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html).
  82740. *
  82741. * @default null
  82742. *
  82743. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#map)
  82744. */
  82745. map: Map;
  82746. /**
  82747. * The spatial reference used for [Arcade](https://developers.arcgis.com/arcade) operations.
  82748. *
  82749. * @default null
  82750. *
  82751. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#spatialReference)
  82752. */
  82753. spatialReference: SpatialReference;
  82754. /**
  82755. * The title for the feature.
  82756. *
  82757. * @default null
  82758. *
  82759. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#title)
  82760. */
  82761. readonly title: string;
  82762. /**
  82763. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  82764. *
  82765. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#view)
  82766. */
  82767. view: MapView | SceneView;
  82768. /**
  82769. * The view model for this widget.
  82770. *
  82771. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#viewModel)
  82772. */
  82773. viewModel: FeatureViewModel;
  82774. /**
  82775. * The visible elements that are displayed within the widget's [graphic.popupTemplate.content](esri-PopupTemplate.html#content).
  82776. *
  82777. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#visibleElements)
  82778. */
  82779. visibleElements: FeatureVisibleElements;
  82780. /**
  82781. * The Feature widget displays a graphic according to its [PopupTemplate](esri-PopupTemplate.html).
  82782. *
  82783. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html)
  82784. */
  82785. constructor(properties?: FeatureProperties);
  82786. /**
  82787. * Paginates to the next [media](esri-popup-content-MediaContent.html) info.
  82788. *
  82789. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#nextMedia)
  82790. */
  82791. nextMedia(contentElementIndex: number): void;
  82792. /**
  82793. * Paginates to the previous [media](esri-popup-content-MediaContent.html) info in the specified [media](esri-popup-content-MediaContent.html) content element.
  82794. *
  82795. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#previousMedia)
  82796. */
  82797. previousMedia(contentElementIndex: number): void;
  82798. /**
  82799. * Paginates to a specified [media](esri-popup-content-MediaContent.html) info object.
  82800. *
  82801. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#setActiveMedia)
  82802. */
  82803. setActiveMedia(contentElementIndex: number, mediaInfoIndex: number): void;
  82804. }
  82805. /** @deprecated Import the Feature class instead. */
  82806. export type FeatureConstructor = typeof Feature;
  82807. interface FeatureProperties extends WidgetProperties {
  82808. /**
  82809. * Enables automatic creation of a popup template for layers that have popups enabled but no popupTemplate defined.
  82810. *
  82811. * @default false
  82812. *
  82813. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#defaultPopupTemplateEnabled)
  82814. */
  82815. defaultPopupTemplateEnabled?: boolean;
  82816. /**
  82817. * The [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) used to represent the feature.
  82818. *
  82819. * @default null
  82820. *
  82821. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#graphic)
  82822. */
  82823. graphic?: GraphicProperties;
  82824. /**
  82825. * Indicates the heading level to use for the [title](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#title) of the feature widget.
  82826. *
  82827. * @default 2
  82828. *
  82829. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#headingLevel)
  82830. */
  82831. headingLevel?: number;
  82832. /**
  82833. * A reference to the [view's](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html) [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html).
  82834. *
  82835. * @default null
  82836. *
  82837. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#map)
  82838. */
  82839. map?: MapProperties;
  82840. /**
  82841. * The spatial reference used for [Arcade](https://developers.arcgis.com/arcade) operations.
  82842. *
  82843. * @default null
  82844. *
  82845. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#spatialReference)
  82846. */
  82847. spatialReference?: SpatialReferenceProperties;
  82848. /**
  82849. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  82850. *
  82851. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#view)
  82852. */
  82853. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  82854. /**
  82855. * The view model for this widget.
  82856. *
  82857. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#viewModel)
  82858. */
  82859. viewModel?: FeatureViewModelProperties;
  82860. /**
  82861. * The visible elements that are displayed within the widget's [graphic.popupTemplate.content](esri-PopupTemplate.html#content).
  82862. *
  82863. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#visibleElements)
  82864. */
  82865. visibleElements?: FeatureVisibleElements;
  82866. }
  82867. export class FeatureViewModel extends Accessor {
  82868. /**
  82869. * Defines the specific [abilities](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#Abilities) that the [Feature](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html) and [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html) widgets should use when querying and displaying its content.
  82870. *
  82871. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#abilities)
  82872. */
  82873. abilities: FeatureViewModelAbilities;
  82874. /**
  82875. * The [content](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#content) of the feature.
  82876. *
  82877. * @default null
  82878. *
  82879. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#content)
  82880. */
  82881. readonly content: Content[] | Widget | HTMLElement | string;
  82882. /**
  82883. * Enables automatic creation of a popup template for layers that have popups enabled but no popupTemplate defined.
  82884. *
  82885. * @default false
  82886. *
  82887. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#defaultPopupTemplateEnabled)
  82888. */
  82889. defaultPopupTemplateEnabled: boolean;
  82890. /**
  82891. * The formatted attributes calculated from `fieldInfo` [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html) content.
  82892. *
  82893. * @default null
  82894. *
  82895. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#formattedAttributes)
  82896. */
  82897. readonly formattedAttributes: FeatureViewModelFormattedAttributes;
  82898. /**
  82899. * The [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) used to represent the feature.
  82900. *
  82901. * @default null
  82902. *
  82903. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#graphic)
  82904. */
  82905. graphic: Graphic;
  82906. /**
  82907. * A read-only property containing metadata regarding the last edit performed on a feature.
  82908. *
  82909. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#lastEditInfo)
  82910. */
  82911. readonly lastEditInfo: FeatureViewModelLastEditInfo;
  82912. /**
  82913. * A reference to the [view's](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html) [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html).
  82914. *
  82915. * @default null
  82916. *
  82917. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#map)
  82918. */
  82919. map: Map;
  82920. /**
  82921. * The spatial reference used for [Arcade](https://developers.arcgis.com/arcade) operations.
  82922. *
  82923. * @default null
  82924. *
  82925. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#spatialReference)
  82926. */
  82927. spatialReference: SpatialReference;
  82928. /**
  82929. * The view model's state.
  82930. *
  82931. * @default disabled
  82932. *
  82933. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#state)
  82934. */
  82935. readonly state: "ready" | "disabled" | "error" | "loading";
  82936. /**
  82937. * The title for the feature.
  82938. *
  82939. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#title)
  82940. */
  82941. readonly title: string;
  82942. /**
  82943. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  82944. *
  82945. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#view)
  82946. */
  82947. view: MapView | SceneView;
  82948. /**
  82949. * Indicates whether the feature is currently waiting for all of its content to finish loading.
  82950. *
  82951. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#waitingForContent)
  82952. */
  82953. readonly waitingForContent: boolean;
  82954. /**
  82955. * Provides the logic for the [Feature](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html) widget.
  82956. *
  82957. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html)
  82958. */
  82959. constructor(properties?: FeatureViewModelProperties);
  82960. /**
  82961. * Paginates to the next [media](esri-popup-content-MediaContent.html) info.
  82962. *
  82963. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#nextMedia)
  82964. */
  82965. nextMedia(contentElementIndex: number): void;
  82966. /**
  82967. * Paginates to the previous [media](esri-popup-content-MediaContent.html) info in the specified [media](esri-popup-content-MediaContent.html) content element.
  82968. *
  82969. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#previousMedia)
  82970. */
  82971. previousMedia(contentElementIndex: number): void;
  82972. /**
  82973. * Paginates to a specified [media](esri-popup-content-MediaContent.html) info object.
  82974. *
  82975. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#setActiveMedia)
  82976. */
  82977. setActiveMedia(contentElementIndex: number, mediaInfoIndex: number): void;
  82978. }
  82979. /** @deprecated Import the FeatureViewModel class instead. */
  82980. export type FeatureViewModelConstructor = typeof FeatureViewModel;
  82981. interface FeatureViewModelProperties {
  82982. /**
  82983. * Defines the specific [abilities](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#Abilities) that the [Feature](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html) and [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html) widgets should use when querying and displaying its content.
  82984. *
  82985. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#abilities)
  82986. */
  82987. abilities?: FeatureViewModelAbilities;
  82988. /**
  82989. * Enables automatic creation of a popup template for layers that have popups enabled but no popupTemplate defined.
  82990. *
  82991. * @default false
  82992. *
  82993. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#defaultPopupTemplateEnabled)
  82994. */
  82995. defaultPopupTemplateEnabled?: boolean;
  82996. /**
  82997. * The [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) used to represent the feature.
  82998. *
  82999. * @default null
  83000. *
  83001. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#graphic)
  83002. */
  83003. graphic?: GraphicProperties;
  83004. /**
  83005. * A reference to the [view's](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html) [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html).
  83006. *
  83007. * @default null
  83008. *
  83009. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#map)
  83010. */
  83011. map?: MapProperties;
  83012. /**
  83013. * The spatial reference used for [Arcade](https://developers.arcgis.com/arcade) operations.
  83014. *
  83015. * @default null
  83016. *
  83017. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#spatialReference)
  83018. */
  83019. spatialReference?: SpatialReferenceProperties;
  83020. /**
  83021. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  83022. *
  83023. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#view)
  83024. */
  83025. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  83026. }
  83027. /**
  83028. * This object defines specific abilities for the [Feature](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html) and [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html) widgets.
  83029. *
  83030. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#Abilities)
  83031. */
  83032. export interface FeatureViewModelAbilities {
  83033. /**
  83034. * Indicate whether the widget should query and display [attachments](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-AttachmentsContent.html) associated with the feature.
  83035. *
  83036. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#Abilities)
  83037. */
  83038. attachmentsContent?: boolean;
  83039. /**
  83040. * Indicate whether the widget should display animations for charts residing in [media content elements](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-MediaContent.html).
  83041. *
  83042. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#Abilities)
  83043. */
  83044. chartAnimation?: boolean;
  83045. /**
  83046. * Indicate whether the widget should display any [custom content elements](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-CustomContent.html).
  83047. *
  83048. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#Abilities)
  83049. */
  83050. customContent?: boolean;
  83051. /**
  83052. * Indicate whether the widget should display any [fields content elements](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-FieldsContent.html).
  83053. *
  83054. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#Abilities)
  83055. */
  83056. fieldsContent?: boolean;
  83057. /**
  83058. * Indicate whether the widget should display any [media content elements](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-MediaContent.html).
  83059. *
  83060. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#Abilities)
  83061. */
  83062. mediaContent?: boolean;
  83063. /**
  83064. * Indicate whether the widget should display any [text content elements](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-TextContent.html).
  83065. *
  83066. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#Abilities)
  83067. */
  83068. textContent?: boolean;
  83069. }
  83070. export interface FeatureViewModelFormattedAttributes {
  83071. /**
  83072. * The formatted attributes specified at the root level of the [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html) using the [PopupTemplate.fieldInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#fieldInfos) property.
  83073. *
  83074. * [Read more...](global.html)
  83075. */
  83076. global?: any;
  83077. /**
  83078. * The formatted attributes for an individual content element.
  83079. *
  83080. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#formattedAttributes)
  83081. */
  83082. content?: any;
  83083. }
  83084. export interface FeatureViewModelLastEditInfo {
  83085. /**
  83086. * User who performed the last edit on a feature.
  83087. *
  83088. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#lastEditInfo)
  83089. */
  83090. user: string;
  83091. /**
  83092. * Date that the edit was performed.
  83093. *
  83094. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#lastEditInfo)
  83095. */
  83096. date: string;
  83097. /**
  83098. * The type of edit that was performed on the feature.
  83099. *
  83100. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#lastEditInfo)
  83101. */
  83102. type: "edit" | "create";
  83103. }
  83104. export interface VisibleContentElements {
  83105. /**
  83106. * Indicates whether to display any [AttachmentsContent](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-AttachmentsContent.html) elements.
  83107. *
  83108. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#VisibleContentElements)
  83109. */
  83110. attachments?: boolean;
  83111. /**
  83112. * Indicates whether to display any [FieldsContent](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-FieldsContent.html) elements.
  83113. *
  83114. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#VisibleContentElements)
  83115. */
  83116. fields?: boolean;
  83117. /**
  83118. * Indicates whether to display any [MediaContent](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-MediaContent.html) elements.
  83119. *
  83120. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#VisibleContentElements)
  83121. */
  83122. media?: boolean;
  83123. /**
  83124. * Indicates whether to display any [TextContent](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-TextContent.html) elements.
  83125. *
  83126. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#VisibleContentElements)
  83127. */
  83128. text?: boolean;
  83129. /**
  83130. * Indicates whether to display any [ExpressionContent](https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-ExpressionContent.html) elements.
  83131. *
  83132. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#VisibleContentElements)
  83133. */
  83134. expression?: boolean;
  83135. }
  83136. export interface FeatureVisibleElements {
  83137. /**
  83138. * Indicates whether the title associated with the feature displays.
  83139. *
  83140. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#VisibleElements)
  83141. */
  83142. title?: boolean;
  83143. /**
  83144. * Indicates whether content for the Feature displays, can also indicate the specific types of content elements by setting it via [VisibleContentElements](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#VisibleContentElements).
  83145. *
  83146. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#VisibleElements)
  83147. */
  83148. content?: boolean | VisibleContentElements;
  83149. /**
  83150. * Indicates whether [lastEditInfo](esri-widgets-Feature-FeatureViewModel.html#lastEditInfo) is displayed within the feature.
  83151. *
  83152. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html#VisibleElements)
  83153. */
  83154. lastEditInfo?: boolean;
  83155. }
  83156. export class FeatureForm extends Widget {
  83157. /**
  83158. * When `true`, sets the widget to a disabled state so the user cannot interact with it.
  83159. *
  83160. * @default false
  83161. *
  83162. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#disabled)
  83163. */
  83164. disabled: boolean;
  83165. /**
  83166. * The associated feature containing the editable attributes.
  83167. *
  83168. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#feature)
  83169. */
  83170. feature: Graphic;
  83171. /**
  83172. * The associated [template](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html) used for the form.
  83173. *
  83174. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#formTemplate)
  83175. */
  83176. formTemplate: FormTemplate;
  83177. /**
  83178. * Defines how groups will be displayed to the user.
  83179. *
  83180. * @default all
  83181. *
  83182. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#groupDisplay)
  83183. */
  83184. groupDisplay: "all" | "sequential";
  83185. /**
  83186. * Indicates the heading level to use for the [title](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#title) of the form.
  83187. *
  83188. * @default 2
  83189. *
  83190. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#headingLevel)
  83191. */
  83192. headingLevel: number;
  83193. /**
  83194. * Layer containing the editable feature attributes.
  83195. *
  83196. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#layer)
  83197. */
  83198. layer: FeatureLayer;
  83199. /**
  83200. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  83201. *
  83202. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#view)
  83203. */
  83204. view: MapView | SceneView;
  83205. /**
  83206. * The view model for this widget.
  83207. *
  83208. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#viewModel)
  83209. */
  83210. viewModel: FeatureFormViewModel;
  83211. /**
  83212. * The FeatureForm widget displays attributes of a feature.
  83213. *
  83214. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html)
  83215. */
  83216. constructor(properties?: FeatureFormProperties);
  83217. /**
  83218. * Returns all of the field values, regardless of whether or not they were updated.
  83219. *
  83220. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#getValues)
  83221. */
  83222. getValues(): any;
  83223. /**
  83224. * Fires the [submit](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#event-submit) event.
  83225. *
  83226. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#submit)
  83227. */
  83228. submit(): void;
  83229. on(name: "value-change", eventHandler: FeatureFormValueChangeEventHandler): IHandle;
  83230. on(name: "submit", eventHandler: FeatureFormSubmitEventHandler): IHandle;
  83231. }
  83232. /** @deprecated Import the FeatureForm class instead. */
  83233. export type FeatureFormConstructor = typeof FeatureForm;
  83234. interface FeatureFormProperties extends WidgetProperties {
  83235. /**
  83236. * When `true`, sets the widget to a disabled state so the user cannot interact with it.
  83237. *
  83238. * @default false
  83239. *
  83240. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#disabled)
  83241. */
  83242. disabled?: boolean;
  83243. /**
  83244. * The associated feature containing the editable attributes.
  83245. *
  83246. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#feature)
  83247. */
  83248. feature?: GraphicProperties;
  83249. /**
  83250. * The associated [template](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html) used for the form.
  83251. *
  83252. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#formTemplate)
  83253. */
  83254. formTemplate?: FormTemplateProperties;
  83255. /**
  83256. * Defines how groups will be displayed to the user.
  83257. *
  83258. * @default all
  83259. *
  83260. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#groupDisplay)
  83261. */
  83262. groupDisplay?: "all" | "sequential";
  83263. /**
  83264. * Indicates the heading level to use for the [title](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#title) of the form.
  83265. *
  83266. * @default 2
  83267. *
  83268. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#headingLevel)
  83269. */
  83270. headingLevel?: number;
  83271. /**
  83272. * Layer containing the editable feature attributes.
  83273. *
  83274. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#layer)
  83275. */
  83276. layer?: FeatureLayerProperties;
  83277. /**
  83278. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  83279. *
  83280. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#view)
  83281. */
  83282. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  83283. /**
  83284. * The view model for this widget.
  83285. *
  83286. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#viewModel)
  83287. */
  83288. viewModel?: FeatureFormViewModelProperties;
  83289. }
  83290. export interface FeatureFormViewModel extends Accessor, Evented {
  83291. }
  83292. export class FeatureFormViewModel {
  83293. /**
  83294. * The associated feature containing the editable attributes.
  83295. *
  83296. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#feature)
  83297. */
  83298. feature: Graphic;
  83299. /**
  83300. * The associated [template](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html) used for the form.
  83301. *
  83302. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#formTemplate)
  83303. */
  83304. formTemplate: FormTemplate;
  83305. /**
  83306. * The input fields and/or grouped field rendered by the [FeatureForm](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html) widget.
  83307. *
  83308. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#inputFields)
  83309. */
  83310. readonly inputFields: InputField[] | InputFieldGroup[];
  83311. /**
  83312. * Layer containing the editable feature attributes.
  83313. *
  83314. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#layer)
  83315. */
  83316. layer: FeatureLayer | SceneLayer;
  83317. /**
  83318. * The widget's state.
  83319. *
  83320. * @default disabled
  83321. *
  83322. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#state)
  83323. */
  83324. readonly state: "ready" | "disabled";
  83325. /**
  83326. * When true, this form can be submitted without _introducing_ data validation issues.
  83327. *
  83328. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#submittable)
  83329. */
  83330. submittable: boolean;
  83331. /**
  83332. * Indicates whether all input fields are valid.
  83333. *
  83334. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#valid)
  83335. */
  83336. valid: boolean;
  83337. /**
  83338. * Provides the logic for the [FeatureForm](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html) widget.
  83339. *
  83340. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html)
  83341. */
  83342. constructor(properties?: FeatureFormViewModelProperties);
  83343. /**
  83344. * Convenience method to find input fields.
  83345. *
  83346. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#findField)
  83347. */
  83348. findField(fieldName: string): InputField;
  83349. /**
  83350. * Returns all of the field values, regardless of whether or not they were updated.
  83351. *
  83352. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#getValues)
  83353. */
  83354. getValues(): any;
  83355. /**
  83356. * Updates the geometry on _featureClone and triggers re-evaluation of expressions that depend on the feature's geometry
  83357. *
  83358. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#notifyFeatureGeometryChanged)
  83359. */
  83360. notifyFeatureGeometryChanged(): void;
  83361. /**
  83362. * Used to set the updated field value.
  83363. *
  83364. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#setValue)
  83365. */
  83366. setValue(fieldName: string, value: number | string | null): void;
  83367. /**
  83368. * Fires the [submit](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#event-submit) event.
  83369. *
  83370. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#submit)
  83371. */
  83372. submit(): void;
  83373. validateContingencyConstraints(values: string, options?: FeatureFormViewModelValidateContingencyConstraintsOptions): any[];
  83374. on(name: "value-change", eventHandler: FeatureFormViewModelValueChangeEventHandler): IHandle;
  83375. on(name: "submit", eventHandler: FeatureFormViewModelSubmitEventHandler): IHandle;
  83376. }
  83377. /** @deprecated Import the FeatureFormViewModel class instead. */
  83378. export type FeatureFormViewModelConstructor = typeof FeatureFormViewModel;
  83379. interface FeatureFormViewModelProperties {
  83380. /**
  83381. * The associated feature containing the editable attributes.
  83382. *
  83383. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#feature)
  83384. */
  83385. feature?: GraphicProperties;
  83386. /**
  83387. * The associated [template](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html) used for the form.
  83388. *
  83389. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#formTemplate)
  83390. */
  83391. formTemplate?: FormTemplateProperties;
  83392. /**
  83393. * Layer containing the editable feature attributes.
  83394. *
  83395. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#layer)
  83396. */
  83397. layer?: (FeatureLayerProperties & { type: "feature" }) | (SceneLayerProperties & { type: "scene" });
  83398. /**
  83399. * When true, this form can be submitted without _introducing_ data validation issues.
  83400. *
  83401. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#submittable)
  83402. */
  83403. submittable?: boolean;
  83404. /**
  83405. * Indicates whether all input fields are valid.
  83406. *
  83407. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#valid)
  83408. */
  83409. valid?: boolean;
  83410. }
  83411. export interface FeatureFormViewModelValidateContingencyConstraintsOptions {
  83412. /**
  83413. * If `true`, return contingency violations for field groups that are invalid because values have not yet been specified for all their fields.
  83414. *
  83415. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#validateContingencyConstraints)
  83416. */
  83417. includeIncompleteViolations?: boolean;
  83418. }
  83419. export interface FeatureFormViewModelSubmitEvent {
  83420. invalid: string[];
  83421. valid: string[];
  83422. values: any;
  83423. }
  83424. export interface FeatureFormViewModelValueChangeEvent {
  83425. feature: Graphic;
  83426. fieldName: string;
  83427. layer: FeatureLayer;
  83428. valid: boolean;
  83429. value: number | string | null;
  83430. }
  83431. export class FieldConfig extends Accessor {
  83432. /**
  83433. * The field's description.
  83434. *
  83435. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#description)
  83436. */
  83437. description: string;
  83438. /**
  83439. * The field's domain.
  83440. *
  83441. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#domain)
  83442. */
  83443. domain: CodedValueDomain | RangeDomain;
  83444. /**
  83445. * Indicates whether the field can be edited.
  83446. *
  83447. * @default true
  83448. *
  83449. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#editable)
  83450. */
  83451. editable: boolean;
  83452. /**
  83453. * This property is rendered as a tooltip in the [FeatureForm](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html) widget.
  83454. *
  83455. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#hint)
  83456. */
  83457. hint: string;
  83458. /**
  83459. * Indicates whether date fields should display input for editing time.
  83460. *
  83461. * @default true
  83462. *
  83463. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#includeTime)
  83464. */
  83465. includeTime: boolean;
  83466. /**
  83467. * The field's label.
  83468. *
  83469. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#label)
  83470. */
  83471. label: string;
  83472. /**
  83473. * Restricts the input length.
  83474. *
  83475. * @default -1
  83476. *
  83477. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#maxLength)
  83478. */
  83479. maxLength: number;
  83480. /**
  83481. * Restricts the input length.
  83482. *
  83483. * @default -1
  83484. *
  83485. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#minLength)
  83486. */
  83487. minLength: number;
  83488. /**
  83489. * The field name.
  83490. *
  83491. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#name)
  83492. */
  83493. name: string;
  83494. /**
  83495. * Indicates whether the field is required.
  83496. *
  83497. * @default false
  83498. *
  83499. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#required)
  83500. */
  83501. required: boolean;
  83502. /**
  83503. * A reference to the [name](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-ExpressionInfo.html#name) of an [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression defined in the [expressionInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#expressionInfos) of the FeatureForm.
  83504. *
  83505. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#requiredExpression)
  83506. */
  83507. requiredExpression: string;
  83508. /**
  83509. * A reference to the [name](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-ExpressionInfo.html#name) of an [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression defined in the [expressionInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#expressionInfos) of the FeatureForm.
  83510. *
  83511. * @default null
  83512. *
  83513. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#visibilityExpression)
  83514. */
  83515. visibilityExpression: string;
  83516. /**
  83517. * Configuration options for configuring an individual field within the [FeatureTable](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html).
  83518. *
  83519. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html)
  83520. */
  83521. constructor(properties?: FieldConfigProperties);
  83522. }
  83523. /** @deprecated Import the FieldConfig class instead. */
  83524. export type FieldConfigConstructor = typeof FieldConfig;
  83525. interface FieldConfigProperties {
  83526. /**
  83527. * The field's description.
  83528. *
  83529. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#description)
  83530. */
  83531. description?: string;
  83532. /**
  83533. * The field's domain.
  83534. *
  83535. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#domain)
  83536. */
  83537. domain?: (CodedValueDomainProperties & { type: "coded-value" }) | (RangeDomainProperties & { type: "range" });
  83538. /**
  83539. * Indicates whether the field can be edited.
  83540. *
  83541. * @default true
  83542. *
  83543. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#editable)
  83544. */
  83545. editable?: boolean;
  83546. /**
  83547. * This property is rendered as a tooltip in the [FeatureForm](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html) widget.
  83548. *
  83549. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#hint)
  83550. */
  83551. hint?: string;
  83552. /**
  83553. * Indicates whether date fields should display input for editing time.
  83554. *
  83555. * @default true
  83556. *
  83557. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#includeTime)
  83558. */
  83559. includeTime?: boolean;
  83560. /**
  83561. * The field's label.
  83562. *
  83563. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#label)
  83564. */
  83565. label?: string;
  83566. /**
  83567. * Restricts the input length.
  83568. *
  83569. * @default -1
  83570. *
  83571. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#maxLength)
  83572. */
  83573. maxLength?: number;
  83574. /**
  83575. * Restricts the input length.
  83576. *
  83577. * @default -1
  83578. *
  83579. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#minLength)
  83580. */
  83581. minLength?: number;
  83582. /**
  83583. * The field name.
  83584. *
  83585. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#name)
  83586. */
  83587. name?: string;
  83588. /**
  83589. * Indicates whether the field is required.
  83590. *
  83591. * @default false
  83592. *
  83593. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#required)
  83594. */
  83595. required?: boolean;
  83596. /**
  83597. * A reference to the [name](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-ExpressionInfo.html#name) of an [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression defined in the [expressionInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#expressionInfos) of the FeatureForm.
  83598. *
  83599. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#requiredExpression)
  83600. */
  83601. requiredExpression?: string;
  83602. /**
  83603. * A reference to the [name](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-ExpressionInfo.html#name) of an [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression defined in the [expressionInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-form-FormTemplate.html#expressionInfos) of the FeatureForm.
  83604. *
  83605. * @default null
  83606. *
  83607. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldConfig.html#visibilityExpression)
  83608. */
  83609. visibilityExpression?: string;
  83610. }
  83611. export class FieldGroupConfig extends Accessor {
  83612. /**
  83613. * The field's description.
  83614. *
  83615. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldGroupConfig.html#description)
  83616. */
  83617. description: string;
  83618. /**
  83619. * An array of field configurations belonging to a group.
  83620. *
  83621. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldGroupConfig.html#fieldConfig)
  83622. */
  83623. fieldConfig: FieldConfig[];
  83624. /**
  83625. * The field's label.
  83626. *
  83627. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldGroupConfig.html#label)
  83628. */
  83629. label: string;
  83630. /**
  83631. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Constraint Arcade Profile](https://developers.arcgis.com/javascript/latest/arcade/#forms).
  83632. *
  83633. * @default null
  83634. * @deprecated since version 4.23. Set fields via the {@link module:esri/form/elements/GroupElement#visibilityExpression GroupElement.visibilityExpression}
  83635. *
  83636. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldGroupConfig.html#visibilityExpression)
  83637. */
  83638. visibilityExpression: string;
  83639. /**
  83640. * Configuration options for configuring grouped fields.
  83641. *
  83642. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldGroupConfig.html)
  83643. */
  83644. constructor(properties?: FieldGroupConfigProperties);
  83645. }
  83646. /** @deprecated Import the FieldGroupConfig class instead. */
  83647. export type FieldGroupConfigConstructor = typeof FieldGroupConfig;
  83648. interface FieldGroupConfigProperties {
  83649. /**
  83650. * The field's description.
  83651. *
  83652. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldGroupConfig.html#description)
  83653. */
  83654. description?: string;
  83655. /**
  83656. * An array of field configurations belonging to a group.
  83657. *
  83658. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldGroupConfig.html#fieldConfig)
  83659. */
  83660. fieldConfig?: FieldConfigProperties[];
  83661. /**
  83662. * The field's label.
  83663. *
  83664. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldGroupConfig.html#label)
  83665. */
  83666. label?: string;
  83667. /**
  83668. * An [Arcade](https://developers.arcgis.com/javascript/latest/arcade/) expression following the specification defined by the [Constraint Arcade Profile](https://developers.arcgis.com/javascript/latest/arcade/#forms).
  83669. *
  83670. * @default null
  83671. * @deprecated since version 4.23. Set fields via the {@link module:esri/form/elements/GroupElement#visibilityExpression GroupElement.visibilityExpression}
  83672. *
  83673. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FieldGroupConfig.html#visibilityExpression)
  83674. */
  83675. visibilityExpression?: string;
  83676. }
  83677. export class InputField extends Accessor {
  83678. /**
  83679. * The field's description.
  83680. *
  83681. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputField.html#description)
  83682. */
  83683. readonly description: string;
  83684. /**
  83685. * The input value's domain.
  83686. *
  83687. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputField.html#domain)
  83688. */
  83689. readonly domain: CodedValueDomain | RangeDomain;
  83690. /**
  83691. * When true, the field can be edited.
  83692. *
  83693. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputField.html#editable)
  83694. */
  83695. readonly editable: boolean;
  83696. /**
  83697. * The type of editor used when working with `string` fields.
  83698. *
  83699. * @default text-box
  83700. *
  83701. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputField.html#editorType)
  83702. */
  83703. readonly editorType: "text-box" | "text-area";
  83704. /**
  83705. * If the input field's value is invalid, this property returns validation error code.
  83706. *
  83707. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputField.html#error)
  83708. */
  83709. readonly error: string;
  83710. /**
  83711. * A user-friendly formatted error message based on the [validation error code](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputField.html#error).
  83712. *
  83713. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputField.html#errorMessage)
  83714. */
  83715. readonly errorMessage: string;
  83716. /**
  83717. * The group this input field belongs to.
  83718. *
  83719. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputField.html#group)
  83720. */
  83721. readonly group: InputFieldGroup;
  83722. /**
  83723. * A hint for the field's value.
  83724. *
  83725. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputField.html#hint)
  83726. */
  83727. readonly hint: string;
  83728. /**
  83729. * For date inputs, this enables the time input part.
  83730. *
  83731. * @default {true}
  83732. *
  83733. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputField.html#includeTime)
  83734. */
  83735. readonly includeTime: string;
  83736. /**
  83737. * The field's label.
  83738. *
  83739. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputField.html#label)
  83740. */
  83741. readonly label: string;
  83742. /**
  83743. * Restricts the input length.
  83744. *
  83745. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputField.html#maxLength)
  83746. */
  83747. readonly maxLength: number;
  83748. /**
  83749. * Restricts the input length.
  83750. *
  83751. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputField.html#minLength)
  83752. */
  83753. readonly minLength: number;
  83754. /**
  83755. * The associated field name.
  83756. *
  83757. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputField.html#name)
  83758. */
  83759. readonly name: string;
  83760. /**
  83761. * Indicates whether the field is required.
  83762. *
  83763. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputField.html#required)
  83764. */
  83765. readonly required: boolean;
  83766. /**
  83767. * When true, this value can be submitted without _introducing_ data validation issues.
  83768. *
  83769. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputField.html#submittable)
  83770. */
  83771. readonly submittable: boolean;
  83772. /**
  83773. * The type of input field.
  83774. *
  83775. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputField.html#type)
  83776. */
  83777. readonly type: "number" | "text" | "date" | "unsupported";
  83778. /**
  83779. * If this `InputField` has a value defined for `valueExpression` or `editableExpression`, this property will be true whenever one or both of these expressions is currently being executed; otherwise, it will be false.
  83780. *
  83781. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputField.html#updating)
  83782. */
  83783. readonly updating: boolean;
  83784. /**
  83785. * When `true`, the input value is valid.
  83786. *
  83787. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputField.html#valid)
  83788. */
  83789. readonly valid: boolean;
  83790. /**
  83791. * The input's value.
  83792. *
  83793. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputField.html#value)
  83794. */
  83795. readonly value: number | string | null;
  83796. /**
  83797. * When `true`, the field is displayed.
  83798. *
  83799. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputField.html#visible)
  83800. */
  83801. readonly visible: boolean;
  83802. /**
  83803. * This is a read-only support class that represents an input field.
  83804. *
  83805. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputField.html)
  83806. */
  83807. constructor(properties?: InputFieldProperties);
  83808. }
  83809. /** @deprecated Import the InputField class instead. */
  83810. export type InputFieldConstructor = typeof InputField;
  83811. interface InputFieldProperties {
  83812. }
  83813. export class InputFieldGroup extends Accessor {
  83814. /**
  83815. * The group's description.
  83816. *
  83817. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputFieldGroup.html#description)
  83818. */
  83819. description: string;
  83820. /**
  83821. * The result of `visibilityExpression`.
  83822. *
  83823. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputFieldGroup.html#evaluatedVisibilityExpression)
  83824. */
  83825. readonly evaluatedVisibilityExpression: boolean;
  83826. /**
  83827. * The input fields belonging to this group.
  83828. *
  83829. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputFieldGroup.html#inputFields)
  83830. */
  83831. readonly inputFields: InputField[];
  83832. /**
  83833. * The group's label.
  83834. *
  83835. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputFieldGroup.html#label)
  83836. */
  83837. readonly label: string;
  83838. state: "expanded" | "collapsed";
  83839. /**
  83840. * Arcade expression to determine whether this group is visible or not.
  83841. *
  83842. * @default null
  83843. * @deprecated Since 4.23. Use {@link esri/form/elements/GroupElement#visibilityExpression groupElement.visibilityExpression}
  83844. *
  83845. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputFieldGroup.html#visibilityExpression)
  83846. */
  83847. visibilityExpression: string;
  83848. /**
  83849. * The group's visibility.
  83850. *
  83851. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputFieldGroup.html#visible)
  83852. */
  83853. readonly visible: boolean;
  83854. /**
  83855. * This is a read-only support class that represents a group of input fields.
  83856. *
  83857. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputFieldGroup.html)
  83858. */
  83859. constructor(properties?: InputFieldGroupProperties);
  83860. }
  83861. /** @deprecated Import the InputFieldGroup class instead. */
  83862. export type InputFieldGroupConstructor = typeof InputFieldGroup;
  83863. interface InputFieldGroupProperties {
  83864. /**
  83865. * The group's description.
  83866. *
  83867. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputFieldGroup.html#description)
  83868. */
  83869. description?: string;
  83870. state?: "expanded" | "collapsed";
  83871. /**
  83872. * Arcade expression to determine whether this group is visible or not.
  83873. *
  83874. * @default null
  83875. * @deprecated Since 4.23. Use {@link esri/form/elements/GroupElement#visibilityExpression groupElement.visibilityExpression}
  83876. *
  83877. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-InputFieldGroup.html#visibilityExpression)
  83878. */
  83879. visibilityExpression?: string;
  83880. }
  83881. export interface FeatureFormSubmitEvent {
  83882. invalid: string[];
  83883. valid: string[];
  83884. values: any;
  83885. }
  83886. export interface FeatureFormValueChangeEvent {
  83887. feature: Graphic;
  83888. fieldName: string;
  83889. layer: FeatureLayer;
  83890. valid: boolean;
  83891. value: number | string | null;
  83892. }
  83893. export class FeatureTable extends Widget {
  83894. /**
  83895. * A read-only property indicating the type of filter used by the table.
  83896. *
  83897. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#activeFilters)
  83898. */
  83899. readonly activeFilters: Collection<GeometryFilter | SelectionFilter>;
  83900. /**
  83901. * Use this read-only property if needing to query features while retaining a column's sort order.
  83902. *
  83903. * @default []
  83904. *
  83905. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#activeSortOrders)
  83906. */
  83907. readonly activeSortOrders: ColumnSortOrder[];
  83908. /**
  83909. * Indicates whether to display the `Attachments` field in the table.
  83910. *
  83911. * @default false
  83912. *
  83913. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#attachmentsEnabled)
  83914. */
  83915. attachmentsEnabled: boolean;
  83916. /**
  83917. * Automatically refreshes the table when its associated layer has been updated.
  83918. *
  83919. * @default true
  83920. *
  83921. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#autoRefreshEnabled)
  83922. */
  83923. autoRefreshEnabled: boolean;
  83924. /**
  83925. * When `true`, columns can be reordered by dragging a column's header.
  83926. *
  83927. * @default true
  83928. *
  83929. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#columnReorderingEnabled)
  83930. */
  83931. columnReorderingEnabled: boolean;
  83932. /**
  83933. * A read-only collection of [field columns](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumn.html) and/or [grouped field columns](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-GroupColumn.html) within the table.
  83934. *
  83935. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#columns)
  83936. */
  83937. readonly columns: Collection<FieldColumn | GroupColumn>;
  83938. /**
  83939. * Indicates whether editing is enabled on the data within the feature table.
  83940. *
  83941. * @default false
  83942. *
  83943. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#editingEnabled)
  83944. */
  83945. editingEnabled: boolean;
  83946. /**
  83947. * An array of individual field configuration objects.
  83948. *
  83949. * @default All fields except for `CreationDate`, `Creator`, `EditDate`, `Editor`, and `GlobalID`
  83950. * @deprecated since version 4.24. Use {@link module:esri/widgets/FeatureTable/support/FieldColumnTemplate} via the FeatureTable's {@link module:esri/widgets/FeatureTable/support/TableTemplate tableTemplate}.
  83951. *
  83952. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#fieldConfigs)
  83953. */
  83954. fieldConfigs: FieldColumnConfig[];
  83955. /**
  83956. * Set this property to filter the features displayed in the table.
  83957. *
  83958. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#filterGeometry)
  83959. */
  83960. filterGeometry: Geometry;
  83961. /**
  83962. * A collection of string [field.names](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html) that are to remain hidden within the table.
  83963. *
  83964. * @default true
  83965. *
  83966. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#hiddenFields)
  83967. */
  83968. hiddenFields: Collection<string>;
  83969. /**
  83970. * Indicates whether to highlight the associated feature when a row is selected.
  83971. *
  83972. * @default true
  83973. *
  83974. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#highlightEnabled)
  83975. */
  83976. highlightEnabled: boolean;
  83977. /**
  83978. * This property accepts and returns a collection of feature ObjectId's.
  83979. *
  83980. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#highlightIds)
  83981. */
  83982. highlightIds: Collection<number>;
  83983. /**
  83984. * Indicates whether to highlight the associated feature when a row is selected.
  83985. *
  83986. * @default true
  83987. * @deprecated since version 4.25. Use {@link module:esri/widgets/FeatureTable#highlightEnabled highlightEnabled} instead.
  83988. *
  83989. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#highlightOnRowSelectEnabled)
  83990. */
  83991. highlightOnRowSelectEnabled: boolean;
  83992. /**
  83993. * The associated [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html), [SceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html), [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html), [CSVLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html), [ImageryLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html), or [WFSLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html) containing the fields and attributes to display within the widget.
  83994. *
  83995. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#layer)
  83996. */
  83997. layer: FeatureLayer | SceneLayer | GeoJSONLayer | CSVLayer | WFSLayer | ImageryLayer;
  83998. /**
  83999. * Reference to the FeatureTable's menu.
  84000. *
  84001. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#menu)
  84002. */
  84003. readonly menu: ButtonMenu;
  84004. /**
  84005. * Set this object to customize the feature table's menu content.
  84006. *
  84007. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#menuConfig)
  84008. */
  84009. menuConfig: ButtonMenuConfig;
  84010. /**
  84011. * Indicates whether sorting multiple columns is supported within the table.
  84012. *
  84013. * @default false
  84014. *
  84015. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#multiSortEnabled)
  84016. */
  84017. multiSortEnabled: boolean;
  84018. /**
  84019. * The default page size used when displaying features within the table.
  84020. *
  84021. * @default 50
  84022. *
  84023. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#pageSize)
  84024. */
  84025. pageSize: number;
  84026. /**
  84027. * The state of the widget.
  84028. *
  84029. * @default disabled
  84030. *
  84031. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#state)
  84032. */
  84033. readonly state: "disabled" | "loading" | "loaded" | "ready";
  84034. /**
  84035. * The associated [template](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-TableTemplate.html) used for the feature table.
  84036. *
  84037. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#tableTemplate)
  84038. */
  84039. tableTemplate: TableTemplate;
  84040. /**
  84041. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  84042. *
  84043. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#view)
  84044. */
  84045. view: MapView | SceneView;
  84046. /**
  84047. * The view model for this widget.
  84048. *
  84049. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#viewModel)
  84050. */
  84051. viewModel: FeatureTableViewModel;
  84052. /**
  84053. * The visible elements that are displayed within the widget.
  84054. *
  84055. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#visibleElements)
  84056. */
  84057. visibleElements: FeatureTableVisibleElements;
  84058. /**
  84059. * This widget provides an interactive tabular view of each feature's attributes in a feature layer.
  84060. *
  84061. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html)
  84062. */
  84063. constructor(properties?: FeatureTableProperties);
  84064. /**
  84065. * This clears any highlighted features.
  84066. *
  84067. * @deprecated since version 4.25. Use {@link module:esri/core/Collection#removeAll highlightIds.removeAll()} instead.
  84068. *
  84069. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#clearHighlights)
  84070. */
  84071. clearHighlights(): void;
  84072. /**
  84073. * Clears the current selection within the table.
  84074. *
  84075. * @deprecated since version 4.25. Use {@link module:esri/core/Collection#removeAll highlightIds.removeAll()} instead.
  84076. *
  84077. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#clearSelection)
  84078. */
  84079. clearSelection(): void;
  84080. /**
  84081. * Clears the current selection filter within the table.
  84082. *
  84083. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#clearSelectionFilter)
  84084. */
  84085. clearSelectionFilter(): void;
  84086. /**
  84087. * Deletes all the selected rows from the table.
  84088. *
  84089. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#deleteSelection)
  84090. */
  84091. deleteSelection(showWarningPrompt?: boolean): Promise<void>;
  84092. /**
  84093. * Unselects the specified rows within the table.
  84094. *
  84095. * @deprecated since 4.25. Use {@link module:esri/widgets/FeatureTable#highlightIds highlightIds.remove()} instead.
  84096. *
  84097. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#deselectRows)
  84098. */
  84099. deselectRows(params: number | Graphic | (number | Graphic)[]): void;
  84100. /**
  84101. * Filters the table by the current selection.
  84102. *
  84103. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#filterBySelection)
  84104. */
  84105. filterBySelection(): void;
  84106. /**
  84107. * Finds the specified column within the feature table.
  84108. *
  84109. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#findColumn)
  84110. */
  84111. findColumn(fieldName: string): Column | GroupColumn;
  84112. /**
  84113. * Hides the specified column from the feature table.
  84114. *
  84115. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#hideColumn)
  84116. */
  84117. hideColumn(fieldName: string): void;
  84118. /**
  84119. * Refreshes the table contents while maintaining the current scroll position.
  84120. *
  84121. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#refresh)
  84122. */
  84123. refresh(): Promise<void>;
  84124. /**
  84125. * Scrolls the table to a row based on a specified index.
  84126. *
  84127. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#scrollToIndex)
  84128. */
  84129. scrollToIndex(index: number): void;
  84130. /**
  84131. * Selects the specified rows within the table.
  84132. *
  84133. * @deprecated since 4.25. Use {@link module:esri/widgets/FeatureTable#highlightIds highlightIds.add()} instead.
  84134. *
  84135. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#selectRows)
  84136. */
  84137. selectRows(params: number | Graphic | (number | Graphic)[]): void;
  84138. /**
  84139. * Shows all of the columns in the table.
  84140. *
  84141. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#showAllColumns)
  84142. */
  84143. showAllColumns(): void;
  84144. /**
  84145. * Shows the specified column within the feature table.
  84146. *
  84147. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#showColumn)
  84148. */
  84149. showColumn(fieldName: string): void;
  84150. /**
  84151. * Sorts the column in either ascending ("asc") or descending ("desc") order.
  84152. *
  84153. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#sortColumn)
  84154. */
  84155. sortColumn(path: string, direction: "asc" | "desc"): void;
  84156. /**
  84157. * Zooms the view to the extent of the current row selection.
  84158. *
  84159. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#zoomToSelection)
  84160. */
  84161. zoomToSelection(): void;
  84162. on(name: "selection-change", eventHandler: FeatureTableSelectionChangeEventHandler): IHandle;
  84163. }
  84164. /** @deprecated Import the FeatureTable class instead. */
  84165. export type FeatureTableConstructor = typeof FeatureTable;
  84166. interface FeatureTableProperties extends WidgetProperties {
  84167. /**
  84168. * Indicates whether to display the `Attachments` field in the table.
  84169. *
  84170. * @default false
  84171. *
  84172. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#attachmentsEnabled)
  84173. */
  84174. attachmentsEnabled?: boolean;
  84175. /**
  84176. * Automatically refreshes the table when its associated layer has been updated.
  84177. *
  84178. * @default true
  84179. *
  84180. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#autoRefreshEnabled)
  84181. */
  84182. autoRefreshEnabled?: boolean;
  84183. /**
  84184. * When `true`, columns can be reordered by dragging a column's header.
  84185. *
  84186. * @default true
  84187. *
  84188. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#columnReorderingEnabled)
  84189. */
  84190. columnReorderingEnabled?: boolean;
  84191. /**
  84192. * Indicates whether editing is enabled on the data within the feature table.
  84193. *
  84194. * @default false
  84195. *
  84196. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#editingEnabled)
  84197. */
  84198. editingEnabled?: boolean;
  84199. /**
  84200. * An array of individual field configuration objects.
  84201. *
  84202. * @default All fields except for `CreationDate`, `Creator`, `EditDate`, `Editor`, and `GlobalID`
  84203. * @deprecated since version 4.24. Use {@link module:esri/widgets/FeatureTable/support/FieldColumnTemplate} via the FeatureTable's {@link module:esri/widgets/FeatureTable/support/TableTemplate tableTemplate}.
  84204. *
  84205. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#fieldConfigs)
  84206. */
  84207. fieldConfigs?: FieldColumnConfigProperties[];
  84208. /**
  84209. * Set this property to filter the features displayed in the table.
  84210. *
  84211. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#filterGeometry)
  84212. */
  84213. filterGeometry?: GeometryProperties;
  84214. /**
  84215. * A collection of string [field.names](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html) that are to remain hidden within the table.
  84216. *
  84217. * @default true
  84218. *
  84219. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#hiddenFields)
  84220. */
  84221. hiddenFields?: CollectionProperties<string>;
  84222. /**
  84223. * Indicates whether to highlight the associated feature when a row is selected.
  84224. *
  84225. * @default true
  84226. *
  84227. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#highlightEnabled)
  84228. */
  84229. highlightEnabled?: boolean;
  84230. /**
  84231. * This property accepts and returns a collection of feature ObjectId's.
  84232. *
  84233. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#highlightIds)
  84234. */
  84235. highlightIds?: CollectionProperties<number>;
  84236. /**
  84237. * Indicates whether to highlight the associated feature when a row is selected.
  84238. *
  84239. * @default true
  84240. * @deprecated since version 4.25. Use {@link module:esri/widgets/FeatureTable#highlightEnabled highlightEnabled} instead.
  84241. *
  84242. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#highlightOnRowSelectEnabled)
  84243. */
  84244. highlightOnRowSelectEnabled?: boolean;
  84245. /**
  84246. * The associated [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html), [SceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html), [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html), [CSVLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html), [ImageryLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html), or [WFSLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html) containing the fields and attributes to display within the widget.
  84247. *
  84248. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#layer)
  84249. */
  84250. layer?: | (FeatureLayerProperties & { type: "feature" })
  84251. | (SceneLayerProperties & { type: "scene" })
  84252. | (GeoJSONLayerProperties & { type: "geojson" })
  84253. | (CSVLayerProperties & { type: "csv" })
  84254. | (WFSLayerProperties & { type: "wfs" })
  84255. | (ImageryLayerProperties & { type: "imagery" });
  84256. /**
  84257. * Set this object to customize the feature table's menu content.
  84258. *
  84259. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#menuConfig)
  84260. */
  84261. menuConfig?: ButtonMenuConfig;
  84262. /**
  84263. * Indicates whether sorting multiple columns is supported within the table.
  84264. *
  84265. * @default false
  84266. *
  84267. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#multiSortEnabled)
  84268. */
  84269. multiSortEnabled?: boolean;
  84270. /**
  84271. * The default page size used when displaying features within the table.
  84272. *
  84273. * @default 50
  84274. *
  84275. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#pageSize)
  84276. */
  84277. pageSize?: number;
  84278. /**
  84279. * The associated [template](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-TableTemplate.html) used for the feature table.
  84280. *
  84281. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#tableTemplate)
  84282. */
  84283. tableTemplate?: TableTemplateProperties;
  84284. /**
  84285. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  84286. *
  84287. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#view)
  84288. */
  84289. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  84290. /**
  84291. * The view model for this widget.
  84292. *
  84293. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#viewModel)
  84294. */
  84295. viewModel?: FeatureTableViewModelProperties;
  84296. /**
  84297. * The visible elements that are displayed within the widget.
  84298. *
  84299. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#visibleElements)
  84300. */
  84301. visibleElements?: FeatureTableVisibleElements;
  84302. }
  84303. export class FeatureTableViewModel extends Accessor {
  84304. /**
  84305. * A read-only property indicating the type of filter used by the table.
  84306. *
  84307. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#activeFilters)
  84308. */
  84309. readonly activeFilters: Collection<GeometryFilter | SelectionFilter>;
  84310. /**
  84311. * Use this read-only property if needing to query features while retaining a column's sort order.
  84312. *
  84313. * @default []
  84314. *
  84315. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#activeSortOrders)
  84316. */
  84317. readonly activeSortOrders: ColumnSortOrder[];
  84318. /**
  84319. * Indicates whether to display the `Attachments` field in the table.
  84320. *
  84321. * @default false
  84322. *
  84323. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#attachmentsEnabled)
  84324. */
  84325. attachmentsEnabled: boolean;
  84326. /**
  84327. * Indicates whether to refresh the table when the layer is refreshed.
  84328. *
  84329. * @default true
  84330. *
  84331. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#autoRefreshEnabled)
  84332. */
  84333. autoRefreshEnabled: boolean;
  84334. /**
  84335. * Indicates whether editing is enabled on the data within the feature table.
  84336. *
  84337. * @default false
  84338. *
  84339. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#editingEnabled)
  84340. */
  84341. editingEnabled: boolean;
  84342. /**
  84343. * An array of individual configuration objects.
  84344. *
  84345. * @default All fields except for `CreationDate`, `Creator`, `EditDate`, `Editor`, and `GlobalID`
  84346. * @deprecated since version 4.24. Use {@link module:esri/widgets/FeatureTable/support/FieldColumnTemplate} via the FeatureTable's {@link module:esri/widgets/FeatureTable/support/TableTemplate tableTemplate}.
  84347. *
  84348. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#fieldConfigs)
  84349. */
  84350. fieldConfigs: FieldColumnConfig[];
  84351. /**
  84352. * Set this property to filter the features displayed in the table.
  84353. *
  84354. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#filterGeometry)
  84355. */
  84356. filterGeometry: Geometry;
  84357. /**
  84358. * A collection of string [field.names](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html) that are to remain hidden within the table.
  84359. *
  84360. * @default true
  84361. *
  84362. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#hiddenFields)
  84363. */
  84364. hiddenFields: Collection<string>;
  84365. /**
  84366. * Indicates whether to highlight the associated feature when a row is selected.
  84367. *
  84368. * @default true
  84369. *
  84370. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#highlightEnabled)
  84371. */
  84372. highlightEnabled: boolean;
  84373. /**
  84374. * This property accepts and returns a collection of feature ObjectId's.
  84375. *
  84376. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#highlightIds)
  84377. */
  84378. highlightIds: Collection<number>;
  84379. /**
  84380. * Indicates whether to highlight the associated feature when a row is selected.
  84381. *
  84382. * @default true
  84383. * @deprecated since version 4.25. Use {@link module:esri/widgets/FeatureTable/FeatureTableViewModel#highlightEnabled highlightEnabled} instead.
  84384. *
  84385. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#highlightOnRowSelectEnabled)
  84386. */
  84387. highlightOnRowSelectEnabled: boolean;
  84388. /**
  84389. * The associated [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html), [SceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html), [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html), [CSVLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html), [ImageryLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html), or [WFSLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html) containing the fields and attributes to display within the widget.
  84390. *
  84391. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#layer)
  84392. */
  84393. layer: FeatureLayer | SceneLayer | GeoJSONLayer | CSVLayer | WFSLayer | ImageryLayer;
  84394. /**
  84395. * The [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) displaying data for the table's associated [layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#layer).
  84396. *
  84397. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#layerView)
  84398. */
  84399. readonly layerView: LayerView;
  84400. /**
  84401. * Indicates whether sorting multiple columns is supported within the table.
  84402. *
  84403. * @default false
  84404. *
  84405. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#multiSortEnabled)
  84406. */
  84407. multiSortEnabled: boolean;
  84408. /**
  84409. * The view model's state.
  84410. *
  84411. * @default disabled
  84412. *
  84413. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#state)
  84414. */
  84415. readonly state: "disabled" | "loading" | "loaded" | "ready";
  84416. /**
  84417. * The associated [template](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-TableTemplate.html) used for the feature table.
  84418. *
  84419. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#tableTemplate)
  84420. */
  84421. tableTemplate: TableTemplate;
  84422. /**
  84423. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  84424. *
  84425. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#view)
  84426. */
  84427. view: MapView | SceneView;
  84428. /**
  84429. * Provides the logic for the [FeatureTable](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html) widget, which allows users to view content from feature attributes in a tabular format.
  84430. *
  84431. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html)
  84432. */
  84433. constructor(properties?: FeatureTableViewModelProperties);
  84434. /**
  84435. * This clears any highlighted features.
  84436. *
  84437. * @deprecated since version 4.25. Use {@link module:esri/widgets/FeatureTable/FeatureTableViewModel#highlightEnabled highlightEnabled} instead.
  84438. *
  84439. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#clearHighlights)
  84440. */
  84441. clearHighlights(): void;
  84442. /**
  84443. * Clears the current selection within the table.
  84444. *
  84445. * @deprecated since version 4.25. Use {@link module:esri/widgets/FeatureTable/FeatureTableViewModel#highlightEnabled highlightEnabled} instead.
  84446. *
  84447. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#clearSelection)
  84448. */
  84449. clearSelection(): void;
  84450. /**
  84451. * Clears the current [filterBySelection](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#filterBySelection) so that the table displays all of the table rows.
  84452. *
  84453. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#clearSelectionFilter)
  84454. */
  84455. clearSelectionFilter(): void;
  84456. /**
  84457. * Deletes all the selected rows from the table.
  84458. *
  84459. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#deleteSelection)
  84460. */
  84461. deleteSelection(showWarningPrompt?: boolean): Promise<void>;
  84462. /**
  84463. * Unselects the specified rows within the table.
  84464. *
  84465. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#deselectRows)
  84466. */
  84467. deselectRows(params: number | Graphic | (number | Graphic)[]): void;
  84468. /**
  84469. * Filters the table using the current row selection and displays only those selected table rows.
  84470. *
  84471. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#filterBySelection)
  84472. */
  84473. filterBySelection(): void;
  84474. /**
  84475. * Returns the current row index for the associated feature.
  84476. *
  84477. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#getObjectIdIndex)
  84478. */
  84479. getObjectIdIndex(objectId: number): number;
  84480. /**
  84481. * Returns a field value given the specified feature `ObjectId` and an associated `fieldName`.
  84482. *
  84483. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#getValue)
  84484. */
  84485. getValue(objectId: number, fieldName: string): string | number | null;
  84486. /**
  84487. * Refreshes the table contents while maintaining the current scroll position.
  84488. *
  84489. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#refresh)
  84490. */
  84491. refresh(): void;
  84492. /**
  84493. * Performs a full reset of the entire table resulting in the table scrolling to the top-most row.
  84494. *
  84495. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#reset)
  84496. */
  84497. reset(): void;
  84498. /**
  84499. * Scrolls the table to a row based on a specified index.
  84500. *
  84501. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#scrollToIndex)
  84502. */
  84503. scrollToIndex(index: number): void;
  84504. /**
  84505. * Selects the specified rows within the table.
  84506. *
  84507. * @deprecated since 4.25. Use {@link module:esri/widgets/FeatureTable#highlightIds highlightIds.add()} instead.
  84508. *
  84509. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#selectRows)
  84510. */
  84511. selectRows(params: number | Graphic | (number | Graphic)[]): void;
  84512. /**
  84513. * Zooms the view to the extent of the current row selection.
  84514. *
  84515. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#zoomToSelection)
  84516. */
  84517. zoomToSelection(): void;
  84518. }
  84519. /** @deprecated Import the FeatureTableViewModel class instead. */
  84520. export type FeatureTableViewModelConstructor = typeof FeatureTableViewModel;
  84521. interface FeatureTableViewModelProperties {
  84522. /**
  84523. * Indicates whether to display the `Attachments` field in the table.
  84524. *
  84525. * @default false
  84526. *
  84527. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#attachmentsEnabled)
  84528. */
  84529. attachmentsEnabled?: boolean;
  84530. /**
  84531. * Indicates whether to refresh the table when the layer is refreshed.
  84532. *
  84533. * @default true
  84534. *
  84535. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#autoRefreshEnabled)
  84536. */
  84537. autoRefreshEnabled?: boolean;
  84538. /**
  84539. * Indicates whether editing is enabled on the data within the feature table.
  84540. *
  84541. * @default false
  84542. *
  84543. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#editingEnabled)
  84544. */
  84545. editingEnabled?: boolean;
  84546. /**
  84547. * An array of individual configuration objects.
  84548. *
  84549. * @default All fields except for `CreationDate`, `Creator`, `EditDate`, `Editor`, and `GlobalID`
  84550. * @deprecated since version 4.24. Use {@link module:esri/widgets/FeatureTable/support/FieldColumnTemplate} via the FeatureTable's {@link module:esri/widgets/FeatureTable/support/TableTemplate tableTemplate}.
  84551. *
  84552. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#fieldConfigs)
  84553. */
  84554. fieldConfigs?: FieldColumnConfigProperties[];
  84555. /**
  84556. * Set this property to filter the features displayed in the table.
  84557. *
  84558. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#filterGeometry)
  84559. */
  84560. filterGeometry?: GeometryProperties;
  84561. /**
  84562. * A collection of string [field.names](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html) that are to remain hidden within the table.
  84563. *
  84564. * @default true
  84565. *
  84566. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#hiddenFields)
  84567. */
  84568. hiddenFields?: CollectionProperties<string>;
  84569. /**
  84570. * Indicates whether to highlight the associated feature when a row is selected.
  84571. *
  84572. * @default true
  84573. *
  84574. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#highlightEnabled)
  84575. */
  84576. highlightEnabled?: boolean;
  84577. /**
  84578. * This property accepts and returns a collection of feature ObjectId's.
  84579. *
  84580. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#highlightIds)
  84581. */
  84582. highlightIds?: CollectionProperties<number>;
  84583. /**
  84584. * Indicates whether to highlight the associated feature when a row is selected.
  84585. *
  84586. * @default true
  84587. * @deprecated since version 4.25. Use {@link module:esri/widgets/FeatureTable/FeatureTableViewModel#highlightEnabled highlightEnabled} instead.
  84588. *
  84589. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#highlightOnRowSelectEnabled)
  84590. */
  84591. highlightOnRowSelectEnabled?: boolean;
  84592. /**
  84593. * The associated [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html), [SceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html), [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html), [CSVLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html), [ImageryLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-ImageryLayer.html), or [WFSLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WFSLayer.html) containing the fields and attributes to display within the widget.
  84594. *
  84595. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#layer)
  84596. */
  84597. layer?: | (FeatureLayerProperties & { type: "feature" })
  84598. | (SceneLayerProperties & { type: "scene" })
  84599. | (GeoJSONLayerProperties & { type: "geojson" })
  84600. | (CSVLayerProperties & { type: "csv" })
  84601. | (WFSLayerProperties & { type: "wfs" })
  84602. | (ImageryLayerProperties & { type: "imagery" });
  84603. /**
  84604. * Indicates whether sorting multiple columns is supported within the table.
  84605. *
  84606. * @default false
  84607. *
  84608. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#multiSortEnabled)
  84609. */
  84610. multiSortEnabled?: boolean;
  84611. /**
  84612. * The associated [template](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-TableTemplate.html) used for the feature table.
  84613. *
  84614. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#tableTemplate)
  84615. */
  84616. tableTemplate?: TableTemplateProperties;
  84617. /**
  84618. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  84619. *
  84620. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#view)
  84621. */
  84622. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  84623. }
  84624. /**
  84625. * An array of objects containing a column's name and sort direction.
  84626. *
  84627. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#ColumnSortOrder)
  84628. */
  84629. export interface ColumnSortOrder {
  84630. /**
  84631. * The field name as defined by the layer.
  84632. *
  84633. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#ColumnSortOrder)
  84634. */
  84635. fieldName: string;
  84636. /**
  84637. * Controls the sort order of the column given the set `fieldName`.
  84638. *
  84639. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#ColumnSortOrder)
  84640. */
  84641. direction: "asc" | "desc" | null;
  84642. }
  84643. /**
  84644. * Use this for spatial filtering, it is the [Geometry](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Geometry.html) used to filter out data within the table.
  84645. *
  84646. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#GeometryFilter)
  84647. */
  84648. export interface GeometryFilter {
  84649. /**
  84650. * The type of the filter used.
  84651. *
  84652. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#GeometryFilter)
  84653. */
  84654. type: string;
  84655. /**
  84656. * The geometry used to filter out the table's data.
  84657. *
  84658. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#GeometryFilter)
  84659. */
  84660. geometry: Geometry;
  84661. }
  84662. /**
  84663. * Use this for selecting rows within the table based off of their ObjectId.
  84664. *
  84665. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#SelectionFilter)
  84666. */
  84667. export interface SelectionFilter {
  84668. /**
  84669. * The type of the filter used.
  84670. *
  84671. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#SelectionFilter)
  84672. */
  84673. type: string;
  84674. /**
  84675. * An array of numbers indicating the row's ObjectId's.
  84676. *
  84677. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FeatureTableViewModel.html#SelectionFilter)
  84678. */
  84679. objectIds: number[];
  84680. }
  84681. export interface FieldColumn extends Accessor, Column {
  84682. }
  84683. export class FieldColumn {
  84684. /**
  84685. * The display name for the field.
  84686. *
  84687. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumn.html#alias)
  84688. */
  84689. readonly alias: string;
  84690. /**
  84691. * The field configuration for the column.
  84692. *
  84693. * @deprecated since version 4.24. Use {@link module:esri/widgets/FeatureTable/support/FieldColumnTemplate} via the FeatureTable's {@link module:esri/widgets/FeatureTable/support/TableTemplate tableTemplate}.
  84694. *
  84695. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumn.html#config)
  84696. */
  84697. config: FieldColumnConfig;
  84698. /**
  84699. * The default value set for the field.
  84700. *
  84701. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumn.html#defaultValue)
  84702. */
  84703. readonly defaultValue: number | string | null | undefined;
  84704. /**
  84705. * Contains information describing the purpose of each field.
  84706. *
  84707. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumn.html#description)
  84708. */
  84709. readonly description: string;
  84710. /**
  84711. * Indicates whether the field is editable.
  84712. *
  84713. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumn.html#editable)
  84714. */
  84715. readonly editable: boolean;
  84716. /**
  84717. * The [Field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html) associated with this column.
  84718. *
  84719. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumn.html#field)
  84720. */
  84721. field: Field;
  84722. /**
  84723. * If applicable, the associated [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) or [SceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html) tied to the column.
  84724. *
  84725. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumn.html#layer)
  84726. */
  84727. layer: FeatureLayer | SceneLayer;
  84728. /**
  84729. * Restricts the input length for the column.
  84730. *
  84731. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumn.html#maxLength)
  84732. */
  84733. readonly maxLength: number;
  84734. /**
  84735. * The [Object](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#ButtonMenuConfig) used to customize the column's menu content.
  84736. *
  84737. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumn.html#menuConfig)
  84738. */
  84739. readonly menuConfig: ButtonMenuConfig;
  84740. /**
  84741. * Restricts the input length for the column.
  84742. *
  84743. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumn.html#minLength)
  84744. */
  84745. readonly minLength: number;
  84746. /**
  84747. * The name of the field.
  84748. *
  84749. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumn.html#name)
  84750. */
  84751. readonly name: string;
  84752. /**
  84753. * Indicates if the field can accept `null` values.
  84754. *
  84755. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumn.html#nullable)
  84756. */
  84757. readonly nullable: boolean;
  84758. /**
  84759. * Indicates whether the field is required.
  84760. *
  84761. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumn.html#required)
  84762. */
  84763. readonly required: boolean;
  84764. /**
  84765. * Indicates whether the field is sortable.
  84766. *
  84767. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumn.html#sortable)
  84768. */
  84769. readonly sortable: boolean;
  84770. /**
  84771. * The [FieldColumn](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumn.html) class works with the [FeatureTable](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html) and provides the underlying logic for column behavior.
  84772. *
  84773. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumn.html)
  84774. */
  84775. constructor(properties?: FieldColumnProperties);
  84776. }
  84777. /** @deprecated Import the FieldColumn class instead. */
  84778. export type FieldColumnConstructor = typeof FieldColumn;
  84779. interface FieldColumnProperties extends ColumnProperties {
  84780. /**
  84781. * The field configuration for the column.
  84782. *
  84783. * @deprecated since version 4.24. Use {@link module:esri/widgets/FeatureTable/support/FieldColumnTemplate} via the FeatureTable's {@link module:esri/widgets/FeatureTable/support/TableTemplate tableTemplate}.
  84784. *
  84785. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumn.html#config)
  84786. */
  84787. config?: FieldColumnConfigProperties;
  84788. /**
  84789. * The [Field](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html) associated with this column.
  84790. *
  84791. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumn.html#field)
  84792. */
  84793. field?: FieldProperties;
  84794. /**
  84795. * If applicable, the associated [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) or [SceneLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html) tied to the column.
  84796. *
  84797. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumn.html#layer)
  84798. */
  84799. layer?: (FeatureLayerProperties & { type: "feature" }) | (SceneLayerProperties & { type: "scene" });
  84800. }
  84801. export class FieldColumnConfig extends FieldConfig {
  84802. /**
  84803. * Controls the sort order of the column.
  84804. *
  84805. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumnConfig.html#direction)
  84806. */
  84807. direction: "asc" | "desc" | null;
  84808. /**
  84809. * Use this in combination with [FeatureTable.multiSortEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#multiSortEnabled) and FeatureTable.direction properties to set sorting functionality on multiple columns.
  84810. *
  84811. * @default null
  84812. *
  84813. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumnConfig.html#initialSortPriority)
  84814. */
  84815. initialSortPriority: number;
  84816. /**
  84817. * Set this object to customize the field column's menu content.
  84818. *
  84819. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumnConfig.html#menuConfig)
  84820. */
  84821. menuConfig: ButtonMenuConfig;
  84822. /**
  84823. * Indicates whether the field column can be sorted.
  84824. *
  84825. * @default true
  84826. *
  84827. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumnConfig.html#sortable)
  84828. */
  84829. sortable: boolean;
  84830. /**
  84831. * Aligns the columns cell content horizontally.
  84832. *
  84833. * @default start
  84834. *
  84835. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumnConfig.html#textAlign)
  84836. */
  84837. textAlign: "start" | "center" | "end";
  84838. /**
  84839. * Indicates whether the field column is visible.
  84840. *
  84841. * @default true
  84842. *
  84843. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumnConfig.html#visible)
  84844. */
  84845. visible: boolean;
  84846. /**
  84847. * The configuration options for displaying an individual field within the [FeatureTable](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html) widget.
  84848. *
  84849. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumnConfig.html)
  84850. */
  84851. constructor(properties?: FieldColumnConfigProperties);
  84852. }
  84853. /** @deprecated Import the FieldColumnConfig class instead. */
  84854. export type FieldColumnConfigConstructor = typeof FieldColumnConfig;
  84855. interface FieldColumnConfigProperties extends FieldConfigProperties {
  84856. /**
  84857. * Controls the sort order of the column.
  84858. *
  84859. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumnConfig.html#direction)
  84860. */
  84861. direction?: "asc" | "desc" | null;
  84862. /**
  84863. * Use this in combination with [FeatureTable.multiSortEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#multiSortEnabled) and FeatureTable.direction properties to set sorting functionality on multiple columns.
  84864. *
  84865. * @default null
  84866. *
  84867. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumnConfig.html#initialSortPriority)
  84868. */
  84869. initialSortPriority?: number;
  84870. /**
  84871. * Set this object to customize the field column's menu content.
  84872. *
  84873. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumnConfig.html#menuConfig)
  84874. */
  84875. menuConfig?: ButtonMenuConfig;
  84876. /**
  84877. * Indicates whether the field column can be sorted.
  84878. *
  84879. * @default true
  84880. *
  84881. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumnConfig.html#sortable)
  84882. */
  84883. sortable?: boolean;
  84884. /**
  84885. * Aligns the columns cell content horizontally.
  84886. *
  84887. * @default start
  84888. *
  84889. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumnConfig.html#textAlign)
  84890. */
  84891. textAlign?: "start" | "center" | "end";
  84892. /**
  84893. * Indicates whether the field column is visible.
  84894. *
  84895. * @default true
  84896. *
  84897. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumnConfig.html#visible)
  84898. */
  84899. visible?: boolean;
  84900. }
  84901. export class Column {
  84902. /**
  84903. * The object to customize the feature table column's menu content.
  84904. *
  84905. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-Column.html#menu)
  84906. */
  84907. readonly menu: ButtonMenu;
  84908. /**
  84909. * Indicates whether the column is resizable.
  84910. *
  84911. * @default true
  84912. *
  84913. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-Column.html#resizable)
  84914. */
  84915. readonly resizable: boolean;
  84916. /**
  84917. * Returns any associated menu items on the column.
  84918. *
  84919. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-Column.html#getMenuItems)
  84920. */
  84921. getMenuItems(): ButtonMenuItemConfig;
  84922. }
  84923. interface ColumnProperties {
  84924. }
  84925. export interface GroupColumn extends Accessor, Column {
  84926. }
  84927. export class GroupColumn {
  84928. constructor(properties?: GroupColumnProperties);
  84929. }
  84930. /** @deprecated Import the GroupColumn class instead. */
  84931. export type GroupColumnConstructor = typeof GroupColumn;
  84932. interface GroupColumnProperties extends ColumnProperties {
  84933. }
  84934. export class ButtonMenu extends Widget {
  84935. /**
  84936. * When true, the widget is visually withdrawn and cannot be interacted with.
  84937. *
  84938. * @default false
  84939. *
  84940. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenu.html#disabled)
  84941. */
  84942. disabled: boolean;
  84943. /**
  84944. * Adds a CSS class to the menu button's DOM node.
  84945. *
  84946. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenu.html#iconClass)
  84947. */
  84948. iconClass: string;
  84949. /**
  84950. * An array of individual [menu items](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuItem.html).
  84951. *
  84952. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenu.html#items)
  84953. */
  84954. items: ButtonMenuItem[];
  84955. /**
  84956. * Indicates if the menu content is open and visible.
  84957. *
  84958. * @default false
  84959. *
  84960. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenu.html#open)
  84961. */
  84962. open: boolean;
  84963. /**
  84964. * The view model for this widget.
  84965. *
  84966. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenu.html#viewModel)
  84967. */
  84968. viewModel: ButtonMenuViewModel;
  84969. /**
  84970. * This widget provides the underlying menu functionality when working with the [FeatureTable](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html) widget.
  84971. *
  84972. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenu.html)
  84973. */
  84974. constructor(properties?: ButtonMenuProperties);
  84975. }
  84976. /** @deprecated Import the ButtonMenu class instead. */
  84977. export type ButtonMenuConstructor = typeof ButtonMenu;
  84978. interface ButtonMenuProperties extends WidgetProperties {
  84979. /**
  84980. * When true, the widget is visually withdrawn and cannot be interacted with.
  84981. *
  84982. * @default false
  84983. *
  84984. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenu.html#disabled)
  84985. */
  84986. disabled?: boolean;
  84987. /**
  84988. * Adds a CSS class to the menu button's DOM node.
  84989. *
  84990. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenu.html#iconClass)
  84991. */
  84992. iconClass?: string;
  84993. /**
  84994. * An array of individual [menu items](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuItem.html).
  84995. *
  84996. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenu.html#items)
  84997. */
  84998. items?: ButtonMenuItemProperties[];
  84999. /**
  85000. * Indicates if the menu content is open and visible.
  85001. *
  85002. * @default false
  85003. *
  85004. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenu.html#open)
  85005. */
  85006. open?: boolean;
  85007. /**
  85008. * The view model for this widget.
  85009. *
  85010. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenu.html#viewModel)
  85011. */
  85012. viewModel?: ButtonMenuViewModelProperties;
  85013. }
  85014. export class ButtonMenuItem extends Accessor {
  85015. /**
  85016. * Indicates whether to automatically close the menu's item.
  85017. *
  85018. * @default false
  85019. *
  85020. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuItem.html#autoCloseMenu)
  85021. */
  85022. autoCloseMenu: boolean;
  85023. /**
  85024. * A function that executes on the ButtonMenuItem's `click` event.
  85025. *
  85026. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuItem.html#clickFunction)
  85027. */
  85028. clickFunction: ButtonMenuItemClickFunction;
  85029. /**
  85030. * Adds a CSS class to the menu button's DOM node.
  85031. *
  85032. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuItem.html#iconClass)
  85033. */
  85034. iconClass: string;
  85035. /**
  85036. * An array of individual [menu items](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuItem.html).
  85037. *
  85038. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuItem.html#items)
  85039. */
  85040. items: ButtonMenuItem[];
  85041. /**
  85042. * The label of the menu item.
  85043. *
  85044. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuItem.html#label)
  85045. */
  85046. label: string;
  85047. /**
  85048. * Indicates if the menu content is visible.
  85049. *
  85050. * @default false
  85051. *
  85052. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuItem.html#open)
  85053. */
  85054. open: boolean;
  85055. /**
  85056. * Indicates whether the menu item is selected.
  85057. *
  85058. * @default false
  85059. *
  85060. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuItem.html#selected)
  85061. */
  85062. selected: boolean;
  85063. /**
  85064. * Indicates whether a toggled state should be applied to individual menu items.
  85065. *
  85066. * @default false
  85067. *
  85068. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuItem.html#selectionEnabled)
  85069. */
  85070. selectionEnabled: boolean;
  85071. /**
  85072. * The `ButtonMenuItem` class provides the underlying menu functionality to create and customize new menu items within the [FeatureTable](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html) widget's [ButtonMenu](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenu.html).
  85073. *
  85074. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuItem.html)
  85075. */
  85076. constructor(properties?: ButtonMenuItemProperties);
  85077. }
  85078. /** @deprecated Import the ButtonMenuItem class instead. */
  85079. export type ButtonMenuItemConstructor = typeof ButtonMenuItem;
  85080. interface ButtonMenuItemProperties {
  85081. /**
  85082. * Indicates whether to automatically close the menu's item.
  85083. *
  85084. * @default false
  85085. *
  85086. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuItem.html#autoCloseMenu)
  85087. */
  85088. autoCloseMenu?: boolean;
  85089. /**
  85090. * A function that executes on the ButtonMenuItem's `click` event.
  85091. *
  85092. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuItem.html#clickFunction)
  85093. */
  85094. clickFunction?: ButtonMenuItemClickFunction;
  85095. /**
  85096. * Adds a CSS class to the menu button's DOM node.
  85097. *
  85098. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuItem.html#iconClass)
  85099. */
  85100. iconClass?: string;
  85101. /**
  85102. * An array of individual [menu items](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuItem.html).
  85103. *
  85104. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuItem.html#items)
  85105. */
  85106. items?: ButtonMenuItemProperties[];
  85107. /**
  85108. * The label of the menu item.
  85109. *
  85110. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuItem.html#label)
  85111. */
  85112. label?: string;
  85113. /**
  85114. * Indicates if the menu content is visible.
  85115. *
  85116. * @default false
  85117. *
  85118. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuItem.html#open)
  85119. */
  85120. open?: boolean;
  85121. /**
  85122. * Indicates whether the menu item is selected.
  85123. *
  85124. * @default false
  85125. *
  85126. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuItem.html#selected)
  85127. */
  85128. selected?: boolean;
  85129. /**
  85130. * Indicates whether a toggled state should be applied to individual menu items.
  85131. *
  85132. * @default false
  85133. *
  85134. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuItem.html#selectionEnabled)
  85135. */
  85136. selectionEnabled?: boolean;
  85137. }
  85138. export type ButtonMenuItemClickFunction = (event: any) => void;
  85139. export class ButtonMenuViewModel extends Accessor {
  85140. /**
  85141. * An array of individual [menu items](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuItem.html).
  85142. *
  85143. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuViewModel.html#items)
  85144. */
  85145. items: ButtonMenuItem[];
  85146. /**
  85147. * Indicates if the menu content is visible.
  85148. *
  85149. * @default false
  85150. *
  85151. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuViewModel.html#open)
  85152. */
  85153. open: boolean;
  85154. /**
  85155. * Provides the logic for the module:esri/widgets/ButtonMenuItemConfig widget.
  85156. *
  85157. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuViewModel.html)
  85158. */
  85159. constructor(properties?: ButtonMenuViewModelProperties);
  85160. }
  85161. /** @deprecated Import the ButtonMenuViewModel class instead. */
  85162. export type ButtonMenuViewModelConstructor = typeof ButtonMenuViewModel;
  85163. interface ButtonMenuViewModelProperties {
  85164. /**
  85165. * An array of individual [menu items](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuItem.html).
  85166. *
  85167. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuViewModel.html#items)
  85168. */
  85169. items?: ButtonMenuItemProperties[];
  85170. /**
  85171. * Indicates if the menu content is visible.
  85172. *
  85173. * @default false
  85174. *
  85175. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuViewModel.html#open)
  85176. */
  85177. open?: boolean;
  85178. }
  85179. export class ColumnTemplate extends ColumnTemplateBase {
  85180. /**
  85181. * Indicates whether the field is editable.
  85182. *
  85183. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-ColumnTemplate.html#editable)
  85184. */
  85185. editable: boolean;
  85186. /**
  85187. * Indicates whether a field requires a value.
  85188. *
  85189. * @default false
  85190. *
  85191. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-ColumnTemplate.html#required)
  85192. */
  85193. required: boolean;
  85194. /**
  85195. * The 'type' of column that the template represents.
  85196. *
  85197. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-ColumnTemplate.html#type)
  85198. */
  85199. readonly type: "column";
  85200. /**
  85201. * A ColumnTemplate formats and defines the structure of a [Column](module-esri-widgets-FeatureTable-Grid-Column.html) within a [FeatureTable](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html) widget.
  85202. *
  85203. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-ColumnTemplate.html)
  85204. */
  85205. constructor(properties?: ColumnTemplateProperties);
  85206. static fromJSON(json: any): ColumnTemplate;
  85207. }
  85208. /** @deprecated Import the ColumnTemplate class instead. */
  85209. export type ColumnTemplateConstructor = typeof ColumnTemplate;
  85210. interface ColumnTemplateProperties extends ColumnTemplateBaseProperties {
  85211. /**
  85212. * Indicates whether the field is editable.
  85213. *
  85214. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-ColumnTemplate.html#editable)
  85215. */
  85216. editable?: boolean;
  85217. /**
  85218. * Indicates whether a field requires a value.
  85219. *
  85220. * @default false
  85221. *
  85222. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-ColumnTemplate.html#required)
  85223. */
  85224. required?: boolean;
  85225. }
  85226. export interface ColumnTemplateBase extends Accessor, JSONSupport {
  85227. }
  85228. export class ColumnTemplateBase {
  85229. /**
  85230. * Controls the sort order of the column.
  85231. *
  85232. * @default null
  85233. *
  85234. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-ColumnTemplateBase.html#direction)
  85235. */
  85236. direction: "asc" | "desc" | null;
  85237. /**
  85238. * Use this in combination with [FeatureTable.multiSortEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#multiSortEnabled) and FeatureTable.direction properties to set sorting functionality on multiple columns.
  85239. *
  85240. * @default null
  85241. *
  85242. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-ColumnTemplateBase.html#initialSortPriority)
  85243. */
  85244. initialSortPriority: number;
  85245. /**
  85246. * A string value containing the column alias.
  85247. *
  85248. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-ColumnTemplateBase.html#label)
  85249. */
  85250. label: string;
  85251. /**
  85252. * Set this object to customize the column's menu content.
  85253. *
  85254. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-ColumnTemplateBase.html#menuConfig)
  85255. */
  85256. menuConfig: ButtonMenuConfig;
  85257. /**
  85258. * Indicates whether the field column can be sorted.
  85259. *
  85260. * @default true
  85261. *
  85262. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-ColumnTemplateBase.html#sortable)
  85263. */
  85264. sortable: boolean;
  85265. /**
  85266. * Aligns the columns cell content horizontally.
  85267. *
  85268. * @default start
  85269. *
  85270. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-ColumnTemplateBase.html#textAlign)
  85271. */
  85272. textAlign: "start" | "center" | "end";
  85273. /**
  85274. * The 'type' of column that the template represents.
  85275. *
  85276. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-ColumnTemplateBase.html#type)
  85277. */
  85278. readonly type: "column" | "field" | "group";
  85279. /**
  85280. * Indicates whether the column is visible.
  85281. *
  85282. * @default true
  85283. *
  85284. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-ColumnTemplateBase.html#visible)
  85285. */
  85286. visible: boolean;
  85287. /**
  85288. * The base class for all column templates used by the [tableTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-TableTemplate.html) within the [FeatureTable](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html) widget.
  85289. *
  85290. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-ColumnTemplateBase.html)
  85291. */
  85292. constructor(properties?: ColumnTemplateBaseProperties);
  85293. static fromJSON(json: any): ColumnTemplateBase;
  85294. }
  85295. /** @deprecated Import the ColumnTemplateBase class instead. */
  85296. export type ColumnTemplateBaseConstructor = typeof ColumnTemplateBase;
  85297. interface ColumnTemplateBaseProperties {
  85298. /**
  85299. * Controls the sort order of the column.
  85300. *
  85301. * @default null
  85302. *
  85303. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-ColumnTemplateBase.html#direction)
  85304. */
  85305. direction?: "asc" | "desc" | null;
  85306. /**
  85307. * Use this in combination with [FeatureTable.multiSortEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#multiSortEnabled) and FeatureTable.direction properties to set sorting functionality on multiple columns.
  85308. *
  85309. * @default null
  85310. *
  85311. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-ColumnTemplateBase.html#initialSortPriority)
  85312. */
  85313. initialSortPriority?: number;
  85314. /**
  85315. * A string value containing the column alias.
  85316. *
  85317. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-ColumnTemplateBase.html#label)
  85318. */
  85319. label?: string;
  85320. /**
  85321. * Set this object to customize the column's menu content.
  85322. *
  85323. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-ColumnTemplateBase.html#menuConfig)
  85324. */
  85325. menuConfig?: ButtonMenuConfig;
  85326. /**
  85327. * Indicates whether the field column can be sorted.
  85328. *
  85329. * @default true
  85330. *
  85331. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-ColumnTemplateBase.html#sortable)
  85332. */
  85333. sortable?: boolean;
  85334. /**
  85335. * Aligns the columns cell content horizontally.
  85336. *
  85337. * @default start
  85338. *
  85339. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-ColumnTemplateBase.html#textAlign)
  85340. */
  85341. textAlign?: "start" | "center" | "end";
  85342. /**
  85343. * Indicates whether the column is visible.
  85344. *
  85345. * @default true
  85346. *
  85347. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-ColumnTemplateBase.html#visible)
  85348. */
  85349. visible?: boolean;
  85350. }
  85351. export class FieldColumnTemplate extends ColumnTemplateBase {
  85352. /**
  85353. * The [coded value domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-CodedValueDomain.html) or a [range domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RangeDomain.html) of the associated field.
  85354. *
  85355. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-FieldColumnTemplate.html#domain)
  85356. */
  85357. domain: CodedValueDomain | RangeDomain;
  85358. /**
  85359. * Indicates whether the field is editable.
  85360. *
  85361. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-FieldColumnTemplate.html#editable)
  85362. */
  85363. editable: boolean;
  85364. /**
  85365. * The field name as defined by the feature layer.
  85366. *
  85367. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-FieldColumnTemplate.html#fieldName)
  85368. */
  85369. fieldName: string;
  85370. /**
  85371. * Indicates whether a field requires a value.
  85372. *
  85373. * @default false
  85374. *
  85375. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-FieldColumnTemplate.html#required)
  85376. */
  85377. required: boolean;
  85378. /**
  85379. * The 'type' of column that the template represents.
  85380. *
  85381. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-FieldColumnTemplate.html#type)
  85382. */
  85383. readonly type: "field";
  85384. /**
  85385. * A FieldColumnTemplate formats and defines the structure of a [FieldColumn](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumn.html) within a [FeatureTable](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html) widget.
  85386. *
  85387. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-FieldColumnTemplate.html)
  85388. */
  85389. constructor(properties?: FieldColumnTemplateProperties);
  85390. static fromJSON(json: any): FieldColumnTemplate;
  85391. }
  85392. /** @deprecated Import the FieldColumnTemplate class instead. */
  85393. export type FieldColumnTemplateConstructor = typeof FieldColumnTemplate;
  85394. interface FieldColumnTemplateProperties extends ColumnTemplateBaseProperties {
  85395. /**
  85396. * The [coded value domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-CodedValueDomain.html) or a [range domain](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-RangeDomain.html) of the associated field.
  85397. *
  85398. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-FieldColumnTemplate.html#domain)
  85399. */
  85400. domain?: (CodedValueDomainProperties & { type: "coded-value" }) | (RangeDomainProperties & { type: "range" });
  85401. /**
  85402. * Indicates whether the field is editable.
  85403. *
  85404. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-FieldColumnTemplate.html#editable)
  85405. */
  85406. editable?: boolean;
  85407. /**
  85408. * The field name as defined by the feature layer.
  85409. *
  85410. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-FieldColumnTemplate.html#fieldName)
  85411. */
  85412. fieldName?: string;
  85413. /**
  85414. * Indicates whether a field requires a value.
  85415. *
  85416. * @default false
  85417. *
  85418. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-FieldColumnTemplate.html#required)
  85419. */
  85420. required?: boolean;
  85421. }
  85422. export class GroupColumnTemplate extends ColumnTemplateBase {
  85423. /**
  85424. * A collection of [field column templates](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-FieldColumnTemplate.html) and/or [group column templates](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-GroupColumnTemplate.html) that represent an ordered list of column templates.
  85425. *
  85426. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-GroupColumnTemplate.html#columnTemplates)
  85427. */
  85428. columnTemplates: (FieldColumnTemplate | GroupColumnTemplate)[];
  85429. /**
  85430. * The 'type' of column that the template represents.
  85431. *
  85432. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-GroupColumnTemplate.html#type)
  85433. */
  85434. readonly type: "group";
  85435. /**
  85436. * A GroupColumnTemplate formats and defines the structure of a [GroupColumn](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-GroupColumn.html) within a [FeatureTable](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html) widget.
  85437. *
  85438. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-GroupColumnTemplate.html)
  85439. */
  85440. constructor(properties?: GroupColumnTemplateProperties);
  85441. static fromJSON(json: any): GroupColumnTemplate;
  85442. }
  85443. /** @deprecated Import the GroupColumnTemplate class instead. */
  85444. export type GroupColumnTemplateConstructor = typeof GroupColumnTemplate;
  85445. interface GroupColumnTemplateProperties extends ColumnTemplateBaseProperties {
  85446. /**
  85447. * A collection of [field column templates](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-FieldColumnTemplate.html) and/or [group column templates](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-GroupColumnTemplate.html) that represent an ordered list of column templates.
  85448. *
  85449. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-GroupColumnTemplate.html#columnTemplates)
  85450. */
  85451. columnTemplates?: (
  85452. | (FieldColumnTemplateProperties & { type: "field" })
  85453. | (GroupColumnTemplateProperties & { type: "group" })
  85454. )[];
  85455. }
  85456. export interface TableTemplate extends Accessor, JSONSupport {
  85457. }
  85458. export class TableTemplate {
  85459. /**
  85460. * A collection of [field column templates](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-FieldColumnTemplate.html) and/or [group column templates](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-GroupColumnTemplate.html) that represent an ordered list of column templates.
  85461. *
  85462. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-TableTemplate.html#columnTemplates)
  85463. */
  85464. columnTemplates: (FieldColumnTemplate | GroupColumnTemplate)[];
  85465. /**
  85466. * A TableTemplate formats and defines the content of a [FeatureTable](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html).
  85467. *
  85468. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-TableTemplate.html)
  85469. */
  85470. constructor(properties?: TableTemplateProperties);
  85471. /**
  85472. * Creates a deep clone of the TableTemplate class.
  85473. *
  85474. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-TableTemplate.html#clone)
  85475. */
  85476. clone(): TableTemplate;
  85477. static fromJSON(json: any): TableTemplate;
  85478. }
  85479. /** @deprecated Import the TableTemplate class instead. */
  85480. export type TableTemplateConstructor = typeof TableTemplate;
  85481. interface TableTemplateProperties {
  85482. /**
  85483. * A collection of [field column templates](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-FieldColumnTemplate.html) and/or [group column templates](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-GroupColumnTemplate.html) that represent an ordered list of column templates.
  85484. *
  85485. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-support-TableTemplate.html#columnTemplates)
  85486. */
  85487. columnTemplates?: (
  85488. | (FieldColumnTemplateProperties & { type: "field" })
  85489. | (GroupColumnTemplateProperties & { type: "group" })
  85490. )[];
  85491. }
  85492. /**
  85493. * The configurable options to customize either the feature table or [column](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-FieldColumn.html) menu via the [menuConfig](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#menuConfig) property.
  85494. *
  85495. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#ButtonMenuConfig)
  85496. */
  85497. export interface ButtonMenuConfig {
  85498. /**
  85499. * The DOM Element containing the menu.
  85500. *
  85501. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#ButtonMenuConfig)
  85502. */
  85503. container?: HTMLElement;
  85504. /**
  85505. * Adds a CSS class to the menu button's DOM node.
  85506. *
  85507. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#ButtonMenuConfig)
  85508. */
  85509. iconClass?: string;
  85510. /**
  85511. * An array of [ButtonMenuItems](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenuItem.html).
  85512. *
  85513. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#ButtonMenuConfig)
  85514. */
  85515. items?: ButtonMenuItem[];
  85516. /**
  85517. * Indicates if the menu content is visible.
  85518. *
  85519. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#ButtonMenuConfig)
  85520. */
  85521. open?: boolean;
  85522. /**
  85523. * The associated viewModel for the [ButtonMenu](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable-Grid-support-ButtonMenu.html).
  85524. *
  85525. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#ButtonMenuConfig)
  85526. */
  85527. viewModel?: ButtonMenuViewModel;
  85528. }
  85529. /**
  85530. * The configurable options to customize either the feature table or column menu via the [menuConfig](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#menuConfig) item property.
  85531. *
  85532. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#ButtonMenuItemConfig)
  85533. */
  85534. export interface ButtonMenuItemConfig {
  85535. /**
  85536. * Indicates whether to automatically close the menu's item.
  85537. *
  85538. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#ButtonMenuItemConfig)
  85539. */
  85540. autoCloseMenu?: boolean;
  85541. /**
  85542. * A function that executes on the ButtonMenuItem's `click` event.
  85543. *
  85544. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#ButtonMenuItemConfig)
  85545. */
  85546. clickFunction?: ButtonMenuItemClickFunction;
  85547. /**
  85548. * Adds a CSS class to the menu button's DOM node.
  85549. *
  85550. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#ButtonMenuItemConfig)
  85551. */
  85552. iconClass?: string;
  85553. /**
  85554. * An array of individual menu items.
  85555. *
  85556. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#ButtonMenuItemConfig)
  85557. */
  85558. items?: ButtonMenuItem[];
  85559. /**
  85560. * The label of the menu item.
  85561. *
  85562. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#ButtonMenuItemConfig)
  85563. */
  85564. label?: string;
  85565. /**
  85566. * Indicates if the menu content is visible.
  85567. *
  85568. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#ButtonMenuItemConfig)
  85569. */
  85570. open?: boolean;
  85571. /**
  85572. * Indicates whether a toggled state should be applied to individual menu items.
  85573. *
  85574. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#ButtonMenuItemConfig)
  85575. */
  85576. selectionEnabled?: boolean;
  85577. /**
  85578. * Indicates whether the menu item is selected.
  85579. *
  85580. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#ButtonMenuItemConfig)
  85581. */
  85582. selected?: boolean;
  85583. }
  85584. export interface FeatureTableSelectionChangeEvent {
  85585. added: FeatureTableSelectionChangeEventAdded[];
  85586. removed: FeatureTableSelectionChangeEventRemoved[];
  85587. }
  85588. /**
  85589. * The visible elements that are displayed within the widget.
  85590. *
  85591. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#VisibleElements)
  85592. */
  85593. export interface FeatureTableVisibleElements {
  85594. /**
  85595. * Indicates whether to display the feature table's header information.
  85596. *
  85597. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#VisibleElements)
  85598. */
  85599. header?: boolean;
  85600. /**
  85601. * Indicates whether to display the feature table's menu.
  85602. *
  85603. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#VisibleElements)
  85604. */
  85605. menu?: boolean;
  85606. /**
  85607. * Indicates whether to display the selection column in the table.
  85608. *
  85609. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#VisibleElements)
  85610. */
  85611. selectionColumn?: boolean;
  85612. /**
  85613. * _(Since 4.23)_ Indicates whether to display the menu items within the individual columns.
  85614. *
  85615. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#VisibleElements)
  85616. */
  85617. columnMenus?: boolean;
  85618. /**
  85619. * The menu items within the feature table menu.
  85620. *
  85621. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#VisibleElements)
  85622. */
  85623. menuItems?: VisibleElementsMenuItems;
  85624. }
  85625. export interface FeatureTableSelectionChangeEventAdded {
  85626. feature: Graphic;
  85627. attachments: AttachmentInfo[];
  85628. objectId: number;
  85629. relatedRecords: Graphic[];
  85630. }
  85631. export interface FeatureTableSelectionChangeEventRemoved {
  85632. feature: Graphic;
  85633. attachments: AttachmentInfo[];
  85634. objectId: number;
  85635. relatedRecords: Graphic[];
  85636. }
  85637. export interface VisibleElementsMenuItems {
  85638. /**
  85639. * Indicates whether to display the `Clear selection` menu item.
  85640. *
  85641. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#VisibleElements)
  85642. */
  85643. clearSelection?: boolean;
  85644. /**
  85645. * _(Since 4.25)_ Indicates whether to display the `Delete Selection` menu item.
  85646. *
  85647. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#VisibleElements)
  85648. */
  85649. deleteSelection?: boolean;
  85650. /**
  85651. * Indicates whether to display the `Refresh data` menu item.
  85652. *
  85653. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#VisibleElements)
  85654. */
  85655. refreshData?: boolean;
  85656. /**
  85657. * _(Since 4.23)_ Indicates whether to toggle between showing only selected records in the table to showing all of the records.
  85658. *
  85659. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#VisibleElements)
  85660. */
  85661. selectedRecordsShowAllToggle?: boolean;
  85662. /**
  85663. * _(Since 4.23)_ Indicates whether to display the `Show selected records` menu item.
  85664. *
  85665. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#VisibleElements)
  85666. */
  85667. showSelectedToggle?: boolean;
  85668. /**
  85669. * Indicates whether to enable toggling column visibility within the menu.
  85670. *
  85671. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#VisibleElements)
  85672. */
  85673. toggleColumns?: any;
  85674. /**
  85675. * _(Since 4.23)_ Indicates whether to display the `Zoom to selected` menu item.
  85676. *
  85677. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTable.html#VisibleElements)
  85678. */
  85679. zoomToSelection?: any;
  85680. }
  85681. export class FeatureTemplates extends Widget {
  85682. /**
  85683. * Specifies whether or not the list should be forced to scroll within its containing element
  85684. *
  85685. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html#enableListScroll)
  85686. */
  85687. enableListScroll: void;
  85688. /**
  85689. * [Function](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html#FilterFunction) can be defined to help filter [template items](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html) within the widget.
  85690. *
  85691. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html#filterFunction)
  85692. */
  85693. filterFunction: FilterFunction;
  85694. /**
  85695. * Text used to filter items.
  85696. *
  85697. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html#filterText)
  85698. */
  85699. filterText: string;
  85700. /**
  85701. * It is possible to group [template items](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html).
  85702. *
  85703. * @default layer
  85704. *
  85705. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html#groupBy)
  85706. */
  85707. groupBy: string | GroupByFunction;
  85708. /**
  85709. * Indicates the heading level to use for the labels of grouped feature templates.
  85710. *
  85711. * @default 4
  85712. *
  85713. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html#headingLevel)
  85714. */
  85715. headingLevel: number;
  85716. /**
  85717. * An array of [Featurelayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) to display within the widget.
  85718. *
  85719. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html#layers)
  85720. */
  85721. layers: FeatureLayer[];
  85722. /**
  85723. * The view model for this widget.
  85724. *
  85725. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html#viewModel)
  85726. */
  85727. viewModel: FeatureTemplatesViewModel;
  85728. /**
  85729. * The visible elements that are displayed within the widget.
  85730. *
  85731. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html#visibleElements)
  85732. */
  85733. visibleElements: FeatureTemplatesVisibleElements;
  85734. /**
  85735. * The FeatureTemplates widget is part of the overall editing workflow.
  85736. *
  85737. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html)
  85738. */
  85739. constructor(properties?: FeatureTemplatesProperties);
  85740. on(name: "select", eventHandler: FeatureTemplatesSelectEventHandler): IHandle;
  85741. }
  85742. /** @deprecated Import the FeatureTemplates class instead. */
  85743. export type FeatureTemplatesConstructor = typeof FeatureTemplates;
  85744. interface FeatureTemplatesProperties extends WidgetProperties {
  85745. /**
  85746. * Specifies whether or not the list should be forced to scroll within its containing element
  85747. *
  85748. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html#enableListScroll)
  85749. */
  85750. enableListScroll?: void;
  85751. /**
  85752. * [Function](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html#FilterFunction) can be defined to help filter [template items](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html) within the widget.
  85753. *
  85754. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html#filterFunction)
  85755. */
  85756. filterFunction?: FilterFunction;
  85757. /**
  85758. * Text used to filter items.
  85759. *
  85760. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html#filterText)
  85761. */
  85762. filterText?: string;
  85763. /**
  85764. * It is possible to group [template items](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html).
  85765. *
  85766. * @default layer
  85767. *
  85768. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html#groupBy)
  85769. */
  85770. groupBy?: string | GroupByFunction;
  85771. /**
  85772. * Indicates the heading level to use for the labels of grouped feature templates.
  85773. *
  85774. * @default 4
  85775. *
  85776. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html#headingLevel)
  85777. */
  85778. headingLevel?: number;
  85779. /**
  85780. * An array of [Featurelayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) to display within the widget.
  85781. *
  85782. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html#layers)
  85783. */
  85784. layers?: FeatureLayerProperties[];
  85785. /**
  85786. * The view model for this widget.
  85787. *
  85788. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html#viewModel)
  85789. */
  85790. viewModel?: FeatureTemplatesViewModelProperties;
  85791. /**
  85792. * The visible elements that are displayed within the widget.
  85793. *
  85794. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html#visibleElements)
  85795. */
  85796. visibleElements?: FeatureTemplatesVisibleElements;
  85797. }
  85798. export interface FeatureTemplatesViewModel extends Accessor, Evented {
  85799. }
  85800. export class FeatureTemplatesViewModel {
  85801. /**
  85802. * [Function](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html#FilterFunction) can be defined to help filter [template items](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html) within the widget.
  85803. *
  85804. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-FeatureTemplatesViewModel.html#filterFunction)
  85805. */
  85806. filterFunction: FilterFunction;
  85807. /**
  85808. * It is possible to group [template items](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html).
  85809. *
  85810. * @default layer
  85811. *
  85812. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-FeatureTemplatesViewModel.html#groupBy)
  85813. */
  85814. groupBy: string | GroupByFunction;
  85815. /**
  85816. * The template items or grouped template items.
  85817. *
  85818. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-FeatureTemplatesViewModel.html#items)
  85819. */
  85820. readonly items: TemplateItem[] | TemplateItemGroup[];
  85821. /**
  85822. * An array of [Featurelayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) that are associated with the widget.
  85823. *
  85824. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-FeatureTemplatesViewModel.html#layers)
  85825. */
  85826. layers: FeatureLayer[];
  85827. /**
  85828. * The widget's state.
  85829. *
  85830. * @default disabled
  85831. *
  85832. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-FeatureTemplatesViewModel.html#state)
  85833. */
  85834. readonly state: "ready" | "loading" | "disabled";
  85835. /**
  85836. * Provides the logic for the [FeatureTemplates](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html) widget.
  85837. *
  85838. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-FeatureTemplatesViewModel.html)
  85839. */
  85840. constructor(properties?: FeatureTemplatesViewModelProperties);
  85841. /**
  85842. * This method updates the [template items](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html) with the provided filter.
  85843. *
  85844. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-FeatureTemplatesViewModel.html#refresh)
  85845. */
  85846. refresh(): void;
  85847. /**
  85848. * Selects the [template item](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html) to use.
  85849. *
  85850. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-FeatureTemplatesViewModel.html#select)
  85851. */
  85852. select(item?: TemplateItem): void;
  85853. on(name: "select", eventHandler: FeatureTemplatesViewModelSelectEventHandler): IHandle;
  85854. }
  85855. /** @deprecated Import the FeatureTemplatesViewModel class instead. */
  85856. export type FeatureTemplatesViewModelConstructor = typeof FeatureTemplatesViewModel;
  85857. interface FeatureTemplatesViewModelProperties {
  85858. /**
  85859. * [Function](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html#FilterFunction) can be defined to help filter [template items](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html) within the widget.
  85860. *
  85861. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-FeatureTemplatesViewModel.html#filterFunction)
  85862. */
  85863. filterFunction?: FilterFunction;
  85864. /**
  85865. * It is possible to group [template items](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html).
  85866. *
  85867. * @default layer
  85868. *
  85869. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-FeatureTemplatesViewModel.html#groupBy)
  85870. */
  85871. groupBy?: string | GroupByFunction;
  85872. /**
  85873. * An array of [Featurelayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) that are associated with the widget.
  85874. *
  85875. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-FeatureTemplatesViewModel.html#layers)
  85876. */
  85877. layers?: FeatureLayerProperties[];
  85878. }
  85879. export interface FeatureTemplatesViewModelSelectEvent {
  85880. item: TemplateItem;
  85881. template: FeatureTemplate;
  85882. }
  85883. export class TemplateItem extends Accessor {
  85884. /**
  85885. * The description that is displayed for the template item.
  85886. *
  85887. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html#description)
  85888. */
  85889. description: string;
  85890. /**
  85891. * The label that is displayed for the template item.
  85892. *
  85893. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html#label)
  85894. */
  85895. label: string;
  85896. /**
  85897. * The [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) associated with the template item.
  85898. *
  85899. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html#layer)
  85900. */
  85901. layer: FeatureLayer;
  85902. /**
  85903. * The associated [FeatureTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html) for the item.
  85904. *
  85905. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html#template)
  85906. */
  85907. template: FeatureTemplate;
  85908. /**
  85909. * An object used to create a thumbnail image that represents a feature type in the feature template.
  85910. *
  85911. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html#thumbnail)
  85912. */
  85913. readonly thumbnail: HTMLElement;
  85914. /**
  85915. * The item displayed within the [FeatureTemplates](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html) widget.
  85916. *
  85917. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html)
  85918. */
  85919. constructor(properties?: TemplateItemProperties);
  85920. /**
  85921. * Creates a deep clone of the template item object.
  85922. *
  85923. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html#clone)
  85924. */
  85925. clone(): TemplateItem;
  85926. /**
  85927. * Fetches the thumbnail used to display the template item.
  85928. *
  85929. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html#fetchThumbnail)
  85930. */
  85931. static fetchThumbnail(): Promise<any>;
  85932. }
  85933. /** @deprecated Import the TemplateItem class instead. */
  85934. export type TemplateItemConstructor = typeof TemplateItem;
  85935. interface TemplateItemProperties {
  85936. /**
  85937. * The description that is displayed for the template item.
  85938. *
  85939. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html#description)
  85940. */
  85941. description?: string;
  85942. /**
  85943. * The label that is displayed for the template item.
  85944. *
  85945. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html#label)
  85946. */
  85947. label?: string;
  85948. /**
  85949. * The [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) associated with the template item.
  85950. *
  85951. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html#layer)
  85952. */
  85953. layer?: FeatureLayerProperties;
  85954. /**
  85955. * The associated [FeatureTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureTemplate.html) for the item.
  85956. *
  85957. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html#template)
  85958. */
  85959. template?: FeatureTemplateProperties;
  85960. }
  85961. export interface TemplateItemGroup extends Accessor, Identifiable {
  85962. }
  85963. export class TemplateItemGroup {
  85964. /**
  85965. * An array of [TemplateItems](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html) grouped to display in the [FeatureTemplates](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html) widget.
  85966. *
  85967. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItemGroup.html#items)
  85968. */
  85969. readonly items: TemplateItem[];
  85970. /**
  85971. * The label displayed in the [FeatureTemplates](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html) widget indicating the grouped [TemplateItems](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItem.html).
  85972. *
  85973. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItemGroup.html#label)
  85974. */
  85975. readonly label: string;
  85976. /**
  85977. * This is a read-only support class that represents a group of items displayed within the [FeatureTemplates](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html) widget.
  85978. *
  85979. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates-TemplateItemGroup.html)
  85980. */
  85981. constructor(properties?: TemplateItemGroupProperties);
  85982. }
  85983. /** @deprecated Import the TemplateItemGroup class instead. */
  85984. export type TemplateItemGroupConstructor = typeof TemplateItemGroup;
  85985. interface TemplateItemGroupProperties {
  85986. }
  85987. export type FilterFunction = (filterName: any) => boolean;
  85988. export type GroupByFunction = (grouping: any) => string | any;
  85989. export interface FeatureTemplatesSelectEvent {
  85990. item: TemplateItem;
  85991. template: FeatureTemplate;
  85992. }
  85993. /**
  85994. * The visible elements that are displayed within the widget.
  85995. *
  85996. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html#VisibleElements)
  85997. */
  85998. export interface FeatureTemplatesVisibleElements {
  85999. /**
  86000. * Indicates whether to the filter will be displayed.
  86001. *
  86002. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureTemplates.html#VisibleElements)
  86003. */
  86004. filter?: boolean;
  86005. }
  86006. export class FloorFilter extends Widget {
  86007. /**
  86008. * The currently selected facility.
  86009. *
  86010. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter.html#facility)
  86011. */
  86012. facility: string;
  86013. /**
  86014. * Indicates the heading level to use for the headings separating floors in buildings.
  86015. *
  86016. * @default 2
  86017. *
  86018. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter.html#headingLevel)
  86019. */
  86020. headingLevel: number;
  86021. /**
  86022. * The currently selected floor level.
  86023. *
  86024. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter.html#level)
  86025. */
  86026. level: string;
  86027. /**
  86028. * Determines if the widget is expanded or collapsed.
  86029. *
  86030. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter.html#longNames)
  86031. */
  86032. longNames: boolean;
  86033. /**
  86034. * The currently selected site.
  86035. *
  86036. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter.html#site)
  86037. */
  86038. site: string;
  86039. /**
  86040. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  86041. *
  86042. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter.html#view)
  86043. */
  86044. view: MapView | SceneView;
  86045. /**
  86046. * The view model for this widget.
  86047. *
  86048. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter.html#viewModel)
  86049. */
  86050. viewModel: FloorFilterViewModel;
  86051. /**
  86052. * The FloorFilter widget simplifies visualization of GIS data for a specific floor of a building in your application.
  86053. *
  86054. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter.html)
  86055. */
  86056. constructor(properties?: FloorFilterProperties);
  86057. /**
  86058. * Updates the [floorFilter](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#FloorFilter) widget definition in the provided [WebMap](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html).
  86059. *
  86060. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter.html#updateWebDocument)
  86061. */
  86062. updateWebDocument(webmap: WebMap): void;
  86063. }
  86064. /** @deprecated Import the FloorFilter class instead. */
  86065. export type FloorFilterConstructor = typeof FloorFilter;
  86066. interface FloorFilterProperties extends WidgetProperties {
  86067. /**
  86068. * The currently selected facility.
  86069. *
  86070. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter.html#facility)
  86071. */
  86072. facility?: string;
  86073. /**
  86074. * Indicates the heading level to use for the headings separating floors in buildings.
  86075. *
  86076. * @default 2
  86077. *
  86078. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter.html#headingLevel)
  86079. */
  86080. headingLevel?: number;
  86081. /**
  86082. * The currently selected floor level.
  86083. *
  86084. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter.html#level)
  86085. */
  86086. level?: string;
  86087. /**
  86088. * Determines if the widget is expanded or collapsed.
  86089. *
  86090. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter.html#longNames)
  86091. */
  86092. longNames?: boolean;
  86093. /**
  86094. * The currently selected site.
  86095. *
  86096. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter.html#site)
  86097. */
  86098. site?: string;
  86099. /**
  86100. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  86101. *
  86102. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter.html#view)
  86103. */
  86104. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  86105. /**
  86106. * The view model for this widget.
  86107. *
  86108. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter.html#viewModel)
  86109. */
  86110. viewModel?: FloorFilterViewModelProperties;
  86111. }
  86112. export interface FloorFilterViewModel extends Accessor, GoTo {
  86113. }
  86114. export class FloorFilterViewModel {
  86115. /**
  86116. * The currently selected facility.
  86117. *
  86118. * @default undefined
  86119. *
  86120. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter-FloorFilterViewModel.html#facility)
  86121. */
  86122. facility: string;
  86123. /**
  86124. * The currently selected level.
  86125. *
  86126. * @default undefined
  86127. *
  86128. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter-FloorFilterViewModel.html#level)
  86129. */
  86130. level: string;
  86131. /**
  86132. * Determines if the widget is expanded or collapsed.
  86133. *
  86134. * @default false
  86135. *
  86136. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter-FloorFilterViewModel.html#longNames)
  86137. */
  86138. longNames: boolean;
  86139. /**
  86140. * The currently selected site.
  86141. *
  86142. * @default undefined
  86143. *
  86144. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter-FloorFilterViewModel.html#site)
  86145. */
  86146. site: string;
  86147. /**
  86148. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  86149. *
  86150. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter-FloorFilterViewModel.html#view)
  86151. */
  86152. view: MapView | SceneView;
  86153. /**
  86154. * Provides the logic for the [FloorFilter](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter.html) widget.
  86155. *
  86156. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter-FloorFilterViewModel.html)
  86157. */
  86158. constructor(properties?: FloorFilterViewModelProperties);
  86159. }
  86160. /** @deprecated Import the FloorFilterViewModel class instead. */
  86161. export type FloorFilterViewModelConstructor = typeof FloorFilterViewModel;
  86162. interface FloorFilterViewModelProperties extends GoToProperties {
  86163. /**
  86164. * The currently selected facility.
  86165. *
  86166. * @default undefined
  86167. *
  86168. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter-FloorFilterViewModel.html#facility)
  86169. */
  86170. facility?: string;
  86171. /**
  86172. * The currently selected level.
  86173. *
  86174. * @default undefined
  86175. *
  86176. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter-FloorFilterViewModel.html#level)
  86177. */
  86178. level?: string;
  86179. /**
  86180. * Determines if the widget is expanded or collapsed.
  86181. *
  86182. * @default false
  86183. *
  86184. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter-FloorFilterViewModel.html#longNames)
  86185. */
  86186. longNames?: boolean;
  86187. /**
  86188. * The currently selected site.
  86189. *
  86190. * @default undefined
  86191. *
  86192. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter-FloorFilterViewModel.html#site)
  86193. */
  86194. site?: string;
  86195. /**
  86196. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  86197. *
  86198. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FloorFilter-FloorFilterViewModel.html#view)
  86199. */
  86200. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  86201. }
  86202. export class Fullscreen extends Widget {
  86203. /**
  86204. * The [HTMLElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement) to present in fullscreen mode.
  86205. *
  86206. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Fullscreen.html#element)
  86207. */
  86208. element: HTMLElement;
  86209. /**
  86210. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  86211. *
  86212. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Fullscreen.html#view)
  86213. */
  86214. view: MapView | SceneView;
  86215. /**
  86216. * The view model for this widget.
  86217. *
  86218. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Fullscreen.html#viewModel)
  86219. */
  86220. viewModel: FullscreenViewModel;
  86221. /**
  86222. * Provides a simple widget to present the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html) or a user-defined [HTMLElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement) using the entire screen.
  86223. *
  86224. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Fullscreen.html)
  86225. */
  86226. constructor(properties?: FullscreenProperties);
  86227. }
  86228. /** @deprecated Import the Fullscreen class instead. */
  86229. export type FullscreenConstructor = typeof Fullscreen;
  86230. interface FullscreenProperties extends WidgetProperties {
  86231. /**
  86232. * The [HTMLElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement) to present in fullscreen mode.
  86233. *
  86234. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Fullscreen.html#element)
  86235. */
  86236. element?: HTMLElement;
  86237. /**
  86238. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  86239. *
  86240. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Fullscreen.html#view)
  86241. */
  86242. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  86243. /**
  86244. * The view model for this widget.
  86245. *
  86246. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Fullscreen.html#viewModel)
  86247. */
  86248. viewModel?: FullscreenViewModelProperties;
  86249. }
  86250. export class FullscreenViewModel extends Accessor {
  86251. /**
  86252. * The [HTMLElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement) to present in fullscreen mode.
  86253. *
  86254. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Fullscreen-FullscreenViewModel.html#element)
  86255. */
  86256. element: HTMLElement;
  86257. /**
  86258. * The view model's state.
  86259. *
  86260. * @default disabled
  86261. *
  86262. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Fullscreen-FullscreenViewModel.html#state)
  86263. */
  86264. readonly state: "active" | "ready" | "feature-unsupported" | "disabled";
  86265. /**
  86266. * The view associated with the widget instance.
  86267. *
  86268. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Fullscreen-FullscreenViewModel.html#view)
  86269. */
  86270. view: MapView | SceneView;
  86271. /**
  86272. * Provides the logic for the [Fullscreen](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Fullscreen.html) widget.
  86273. *
  86274. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Fullscreen-FullscreenViewModel.html)
  86275. */
  86276. constructor(properties?: FullscreenViewModelProperties);
  86277. /**
  86278. * Enter fullscreen
  86279. *
  86280. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Fullscreen-FullscreenViewModel.html#enter)
  86281. */
  86282. enter(): void;
  86283. /**
  86284. * Exit fullscreen
  86285. *
  86286. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Fullscreen-FullscreenViewModel.html#exit)
  86287. */
  86288. exit(): void;
  86289. /**
  86290. * Toggle fullscreen
  86291. *
  86292. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Fullscreen-FullscreenViewModel.html#toggle)
  86293. */
  86294. toggle(): void;
  86295. }
  86296. /** @deprecated Import the FullscreenViewModel class instead. */
  86297. export type FullscreenViewModelConstructor = typeof FullscreenViewModel;
  86298. interface FullscreenViewModelProperties {
  86299. /**
  86300. * The [HTMLElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement) to present in fullscreen mode.
  86301. *
  86302. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Fullscreen-FullscreenViewModel.html#element)
  86303. */
  86304. element?: HTMLElement;
  86305. /**
  86306. * The view associated with the widget instance.
  86307. *
  86308. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Fullscreen-FullscreenViewModel.html#view)
  86309. */
  86310. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  86311. }
  86312. export class Histogram extends Widget {
  86313. /**
  86314. * The statistical average of the data in the histogram.
  86315. *
  86316. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#average)
  86317. */
  86318. average: number;
  86319. /**
  86320. * Function for styling bars representing histogram bins.
  86321. *
  86322. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#barCreatedFunction)
  86323. */
  86324. barCreatedFunction: BarCreatedFunction;
  86325. /**
  86326. * An array of objects representing each bin in the histogram.
  86327. *
  86328. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#bins)
  86329. */
  86330. bins: Bin[];
  86331. /**
  86332. * Function that fires each time a data line is created.
  86333. *
  86334. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#dataLineCreatedFunction)
  86335. */
  86336. dataLineCreatedFunction: DataLineCreatedFunction;
  86337. /**
  86338. * When set, renders lines on the histogram that indicate important or meaningful values to the end user.
  86339. *
  86340. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#dataLines)
  86341. */
  86342. dataLines: HistogramDataLines[];
  86343. /**
  86344. * A function used to format labels on the histogram.
  86345. *
  86346. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#labelFormatFunction)
  86347. */
  86348. labelFormatFunction: LabelFormatter;
  86349. /**
  86350. * Determines the orientation of the Histogram widget.
  86351. *
  86352. * @default horizontal
  86353. *
  86354. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#layout)
  86355. */
  86356. layout: "vertical" | "horizontal";
  86357. /**
  86358. * The maximum value or bound of the entire histogram.
  86359. *
  86360. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#max)
  86361. */
  86362. max: number;
  86363. /**
  86364. * The minimum value or bound of the entire histogram.
  86365. *
  86366. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#min)
  86367. */
  86368. min: number;
  86369. /**
  86370. * The state of the widget.
  86371. *
  86372. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#state)
  86373. */
  86374. readonly state: "ready" | "disabled";
  86375. /**
  86376. * The view model for the Histogram widget.
  86377. *
  86378. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#viewModel)
  86379. */
  86380. viewModel: HistogramViewModel;
  86381. /**
  86382. * Renders a histogram to visualize the spread of a dataset based on [bins](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#bins) representing buckets, or sub-ranges, of data.
  86383. *
  86384. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html)
  86385. */
  86386. constructor(properties?: HistogramProperties);
  86387. /**
  86388. * A convenience function used to create a Histogram widget instance from the result of the [histogram](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-statistics-histogram.html) statistics function.
  86389. *
  86390. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#fromHistogramResult)
  86391. */
  86392. static fromHistogramResult(result: HistogramResult): Histogram;
  86393. }
  86394. /** @deprecated Import the Histogram class instead. */
  86395. export type HistogramConstructor = typeof Histogram;
  86396. interface HistogramProperties extends WidgetProperties {
  86397. /**
  86398. * The statistical average of the data in the histogram.
  86399. *
  86400. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#average)
  86401. */
  86402. average?: number;
  86403. /**
  86404. * Function for styling bars representing histogram bins.
  86405. *
  86406. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#barCreatedFunction)
  86407. */
  86408. barCreatedFunction?: BarCreatedFunction;
  86409. /**
  86410. * An array of objects representing each bin in the histogram.
  86411. *
  86412. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#bins)
  86413. */
  86414. bins?: Bin[];
  86415. /**
  86416. * Function that fires each time a data line is created.
  86417. *
  86418. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#dataLineCreatedFunction)
  86419. */
  86420. dataLineCreatedFunction?: DataLineCreatedFunction;
  86421. /**
  86422. * When set, renders lines on the histogram that indicate important or meaningful values to the end user.
  86423. *
  86424. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#dataLines)
  86425. */
  86426. dataLines?: HistogramDataLines[];
  86427. /**
  86428. * A function used to format labels on the histogram.
  86429. *
  86430. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#labelFormatFunction)
  86431. */
  86432. labelFormatFunction?: LabelFormatter;
  86433. /**
  86434. * Determines the orientation of the Histogram widget.
  86435. *
  86436. * @default horizontal
  86437. *
  86438. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#layout)
  86439. */
  86440. layout?: "vertical" | "horizontal";
  86441. /**
  86442. * The maximum value or bound of the entire histogram.
  86443. *
  86444. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#max)
  86445. */
  86446. max?: number;
  86447. /**
  86448. * The minimum value or bound of the entire histogram.
  86449. *
  86450. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#min)
  86451. */
  86452. min?: number;
  86453. /**
  86454. * The view model for the Histogram widget.
  86455. *
  86456. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#viewModel)
  86457. */
  86458. viewModel?: HistogramViewModelProperties;
  86459. }
  86460. export class HistogramViewModel extends Accessor {
  86461. /**
  86462. * The statistical average of the data in the histogram.
  86463. *
  86464. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram-HistogramViewModel.html#average)
  86465. */
  86466. average: number;
  86467. /**
  86468. * The range of values for the histogram calculated from the bins.
  86469. *
  86470. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram-HistogramViewModel.html#binRange)
  86471. */
  86472. readonly binRange: number;
  86473. /**
  86474. * An array of objects representing each bin in the histogram.
  86475. *
  86476. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram-HistogramViewModel.html#bins)
  86477. */
  86478. bins: Bin[];
  86479. /**
  86480. * A function used to format labels.
  86481. *
  86482. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram-HistogramViewModel.html#labelFormatFunction)
  86483. */
  86484. labelFormatFunction: LabelFormatter;
  86485. /**
  86486. * The maximum value or bound of the entire histogram.
  86487. *
  86488. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram-HistogramViewModel.html#max)
  86489. */
  86490. max: number;
  86491. /**
  86492. * The minimum value or bound of the entire histogram.
  86493. *
  86494. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram-HistogramViewModel.html#min)
  86495. */
  86496. min: number;
  86497. /**
  86498. * The range of values for the histogram.
  86499. *
  86500. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram-HistogramViewModel.html#range)
  86501. */
  86502. readonly range: number;
  86503. /**
  86504. * The current state of the view model.
  86505. *
  86506. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram-HistogramViewModel.html#state)
  86507. */
  86508. readonly state: "ready" | "disabled";
  86509. /**
  86510. * Provides the logic for the [Histogram](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html) widget.
  86511. *
  86512. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram-HistogramViewModel.html)
  86513. */
  86514. constructor(properties?: HistogramViewModelProperties);
  86515. }
  86516. /** @deprecated Import the HistogramViewModel class instead. */
  86517. export type HistogramViewModelConstructor = typeof HistogramViewModel;
  86518. interface HistogramViewModelProperties {
  86519. /**
  86520. * The statistical average of the data in the histogram.
  86521. *
  86522. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram-HistogramViewModel.html#average)
  86523. */
  86524. average?: number;
  86525. /**
  86526. * An array of objects representing each bin in the histogram.
  86527. *
  86528. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram-HistogramViewModel.html#bins)
  86529. */
  86530. bins?: Bin[];
  86531. /**
  86532. * A function used to format labels.
  86533. *
  86534. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram-HistogramViewModel.html#labelFormatFunction)
  86535. */
  86536. labelFormatFunction?: LabelFormatter;
  86537. /**
  86538. * The maximum value or bound of the entire histogram.
  86539. *
  86540. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram-HistogramViewModel.html#max)
  86541. */
  86542. max?: number;
  86543. /**
  86544. * The minimum value or bound of the entire histogram.
  86545. *
  86546. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram-HistogramViewModel.html#min)
  86547. */
  86548. min?: number;
  86549. }
  86550. export type BarCreatedFunction = (index: number, element: any) => void;
  86551. /**
  86552. * Represents the bin of a histogram.
  86553. *
  86554. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#Bin)
  86555. */
  86556. export interface Bin {
  86557. /**
  86558. * The number of values in a dataset that are contained between the indicated `minValue` and `maxValue`.
  86559. *
  86560. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#Bin)
  86561. */
  86562. count: number;
  86563. /**
  86564. * The minimum value (or bound) of the bin.
  86565. *
  86566. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#Bin)
  86567. */
  86568. minValue: number;
  86569. /**
  86570. * The maximum value (or bound) of the bin.
  86571. *
  86572. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#Bin)
  86573. */
  86574. maxValue: number;
  86575. }
  86576. export type DataLineCreatedFunction = (lineElement: any, labelElement?: any, index?: number) => void;
  86577. export interface HistogramDataLines {
  86578. /**
  86579. * The value on the data axis of the histogram where a line will be rendered.
  86580. *
  86581. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#dataLines)
  86582. */
  86583. value: number;
  86584. /**
  86585. * The label associated with the line.
  86586. *
  86587. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html#dataLines)
  86588. */
  86589. label?: string | number;
  86590. }
  86591. export type LabelFormatter = (value: number, type?: string, index?: number) => string;
  86592. export class HistogramRangeSlider extends Widget {
  86593. /**
  86594. * The statistical average of the data in the histogram.
  86595. *
  86596. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#average)
  86597. */
  86598. average: number;
  86599. /**
  86600. * Function for styling bars representing histogram bins.
  86601. *
  86602. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#barCreatedFunction)
  86603. */
  86604. barCreatedFunction: BarCreatedFunction;
  86605. /**
  86606. * An array of objects representing each bin in the histogram.
  86607. *
  86608. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#bins)
  86609. */
  86610. bins: Bin[];
  86611. /**
  86612. * Function that fires each time a data line is created.
  86613. *
  86614. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#dataLineCreatedFunction)
  86615. */
  86616. dataLineCreatedFunction: DataLineCreatedFunction;
  86617. /**
  86618. * When set, renders lines on the histogram that indicate important or meaningful values to the end user.
  86619. *
  86620. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#dataLines)
  86621. */
  86622. dataLines: HistogramRangeSliderDataLines[];
  86623. /**
  86624. * Sets the color of the histogram bars that are excluded based on the specified [rangeType](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#rangeType).
  86625. *
  86626. * @default #d7e5f0
  86627. *
  86628. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#excludedBarColor)
  86629. */
  86630. excludedBarColor: Color;
  86631. /**
  86632. * Sets the color of the histogram bars that are included in the specified [rangeType](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#rangeType).
  86633. *
  86634. * @default #599dd4
  86635. *
  86636. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#includedBarColor)
  86637. */
  86638. includedBarColor: Color;
  86639. /**
  86640. * A function used to format labels.
  86641. *
  86642. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#labelFormatFunction)
  86643. */
  86644. labelFormatFunction: SliderLabelFormatter;
  86645. /**
  86646. * The maximum value or upper bound of the slider.
  86647. *
  86648. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#max)
  86649. */
  86650. max: number;
  86651. /**
  86652. * The minimum value or lower bound of the slider.
  86653. *
  86654. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#min)
  86655. */
  86656. min: number;
  86657. /**
  86658. * Defines how slider thumb values should be rounded.
  86659. *
  86660. * @default 4
  86661. *
  86662. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#precision)
  86663. */
  86664. precision: number;
  86665. /**
  86666. * Indicates how the histogram bins should be rendered as the user slides the thumbs.
  86667. *
  86668. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#rangeType)
  86669. */
  86670. rangeType: | "equal"
  86671. | "not-equal"
  86672. | "less-than"
  86673. | "greater-than"
  86674. | "at-most"
  86675. | "at-least"
  86676. | "between"
  86677. | "not-between";
  86678. /**
  86679. * Indicates the standard deviation of the dataset.
  86680. *
  86681. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#standardDeviation)
  86682. */
  86683. standardDeviation: number;
  86684. /**
  86685. * Indicates the number of standard deviation lines to render on the histogram from the [average].
  86686. *
  86687. * @default 1
  86688. *
  86689. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#standardDeviationCount)
  86690. */
  86691. standardDeviationCount: number;
  86692. /**
  86693. * An array of either one or two numbers representing thumb positions on the slider.
  86694. *
  86695. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#values)
  86696. */
  86697. values: number[];
  86698. /**
  86699. * The view model for the widget.
  86700. *
  86701. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#viewModel)
  86702. */
  86703. viewModel: HistogramRangeSliderViewModel;
  86704. /**
  86705. * A slider widget that can be used for filtering data or gathering numeric input from a user for a range of data.
  86706. *
  86707. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html)
  86708. */
  86709. constructor(properties?: HistogramRangeSliderProperties);
  86710. /**
  86711. * Generates a SQL where clause based on a given field and the slider's [rangeType](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#rangeType).
  86712. *
  86713. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#generateWhereClause)
  86714. */
  86715. generateWhereClause(field: string): string;
  86716. on(name: "max-change", eventHandler: HistogramRangeSliderMaxChangeEventHandler): IHandle;
  86717. on(name: "min-change", eventHandler: HistogramRangeSliderMinChangeEventHandler): IHandle;
  86718. on(name: "segment-drag", eventHandler: HistogramRangeSliderSegmentDragEventHandler): IHandle;
  86719. on(name: "thumb-change", eventHandler: HistogramRangeSliderThumbChangeEventHandler): IHandle;
  86720. on(name: "thumb-drag", eventHandler: HistogramRangeSliderThumbDragEventHandler): IHandle;
  86721. }
  86722. /** @deprecated Import the HistogramRangeSlider class instead. */
  86723. export type HistogramRangeSliderConstructor = typeof HistogramRangeSlider;
  86724. interface HistogramRangeSliderProperties extends WidgetProperties {
  86725. /**
  86726. * The statistical average of the data in the histogram.
  86727. *
  86728. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#average)
  86729. */
  86730. average?: number;
  86731. /**
  86732. * Function for styling bars representing histogram bins.
  86733. *
  86734. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#barCreatedFunction)
  86735. */
  86736. barCreatedFunction?: BarCreatedFunction;
  86737. /**
  86738. * An array of objects representing each bin in the histogram.
  86739. *
  86740. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#bins)
  86741. */
  86742. bins?: Bin[];
  86743. /**
  86744. * Function that fires each time a data line is created.
  86745. *
  86746. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#dataLineCreatedFunction)
  86747. */
  86748. dataLineCreatedFunction?: DataLineCreatedFunction;
  86749. /**
  86750. * When set, renders lines on the histogram that indicate important or meaningful values to the end user.
  86751. *
  86752. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#dataLines)
  86753. */
  86754. dataLines?: HistogramRangeSliderDataLines[];
  86755. /**
  86756. * Sets the color of the histogram bars that are excluded based on the specified [rangeType](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#rangeType).
  86757. *
  86758. * @default #d7e5f0
  86759. *
  86760. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#excludedBarColor)
  86761. */
  86762. excludedBarColor?: Color | number[] | string;
  86763. /**
  86764. * Sets the color of the histogram bars that are included in the specified [rangeType](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#rangeType).
  86765. *
  86766. * @default #599dd4
  86767. *
  86768. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#includedBarColor)
  86769. */
  86770. includedBarColor?: Color | number[] | string;
  86771. /**
  86772. * A function used to format labels.
  86773. *
  86774. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#labelFormatFunction)
  86775. */
  86776. labelFormatFunction?: SliderLabelFormatter;
  86777. /**
  86778. * The maximum value or upper bound of the slider.
  86779. *
  86780. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#max)
  86781. */
  86782. max?: number;
  86783. /**
  86784. * The minimum value or lower bound of the slider.
  86785. *
  86786. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#min)
  86787. */
  86788. min?: number;
  86789. /**
  86790. * Defines how slider thumb values should be rounded.
  86791. *
  86792. * @default 4
  86793. *
  86794. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#precision)
  86795. */
  86796. precision?: number;
  86797. /**
  86798. * Indicates how the histogram bins should be rendered as the user slides the thumbs.
  86799. *
  86800. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#rangeType)
  86801. */
  86802. rangeType?: | "equal"
  86803. | "not-equal"
  86804. | "less-than"
  86805. | "greater-than"
  86806. | "at-most"
  86807. | "at-least"
  86808. | "between"
  86809. | "not-between";
  86810. /**
  86811. * Indicates the standard deviation of the dataset.
  86812. *
  86813. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#standardDeviation)
  86814. */
  86815. standardDeviation?: number;
  86816. /**
  86817. * Indicates the number of standard deviation lines to render on the histogram from the [average].
  86818. *
  86819. * @default 1
  86820. *
  86821. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#standardDeviationCount)
  86822. */
  86823. standardDeviationCount?: number;
  86824. /**
  86825. * An array of either one or two numbers representing thumb positions on the slider.
  86826. *
  86827. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#values)
  86828. */
  86829. values?: number[];
  86830. /**
  86831. * The view model for the widget.
  86832. *
  86833. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#viewModel)
  86834. */
  86835. viewModel?: HistogramRangeSliderViewModelProperties;
  86836. }
  86837. export class HistogramRangeSliderViewModel extends SliderViewModel {
  86838. /**
  86839. * The statistical average of the data in the histogram.
  86840. *
  86841. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider-HistogramRangeSliderViewModel.html#average)
  86842. */
  86843. average: number;
  86844. /**
  86845. * An array of objects representing each bin in the histogram.
  86846. *
  86847. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider-HistogramRangeSliderViewModel.html#bins)
  86848. */
  86849. bins: Bin[];
  86850. /**
  86851. * Determines the SQL where clause generated in [generateWhereClause()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider-HistogramRangeSliderViewModel.html#generateWhereClause) for filtering purposes.
  86852. *
  86853. * @default equal
  86854. *
  86855. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider-HistogramRangeSliderViewModel.html#rangeType)
  86856. */
  86857. rangeType: | "equal"
  86858. | "not-equal"
  86859. | "less-than"
  86860. | "greater-than"
  86861. | "at-most"
  86862. | "at-least"
  86863. | "between"
  86864. | "not-between";
  86865. /**
  86866. * Indicates the standard deviation of the dataset above and below the `average`.
  86867. *
  86868. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider-HistogramRangeSliderViewModel.html#standardDeviation)
  86869. */
  86870. standardDeviation: number;
  86871. /**
  86872. * Provides the logic for the [HistogramRangeSlider](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html) widget.
  86873. *
  86874. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider-HistogramRangeSliderViewModel.html)
  86875. */
  86876. constructor(properties?: HistogramRangeSliderViewModelProperties);
  86877. /**
  86878. * Generates a SQL where clause based on a given field and the slider's [rangeType](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider-HistogramRangeSliderViewModel.html#rangeType).
  86879. *
  86880. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider-HistogramRangeSliderViewModel.html#generateWhereClause)
  86881. */
  86882. generateWhereClause(field: string): string;
  86883. }
  86884. /** @deprecated Import the HistogramRangeSliderViewModel class instead. */
  86885. export type HistogramRangeSliderViewModelConstructor = typeof HistogramRangeSliderViewModel;
  86886. interface HistogramRangeSliderViewModelProperties extends SliderViewModelProperties {
  86887. /**
  86888. * The statistical average of the data in the histogram.
  86889. *
  86890. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider-HistogramRangeSliderViewModel.html#average)
  86891. */
  86892. average?: number;
  86893. /**
  86894. * An array of objects representing each bin in the histogram.
  86895. *
  86896. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider-HistogramRangeSliderViewModel.html#bins)
  86897. */
  86898. bins?: Bin[];
  86899. /**
  86900. * Determines the SQL where clause generated in [generateWhereClause()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider-HistogramRangeSliderViewModel.html#generateWhereClause) for filtering purposes.
  86901. *
  86902. * @default equal
  86903. *
  86904. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider-HistogramRangeSliderViewModel.html#rangeType)
  86905. */
  86906. rangeType?: | "equal"
  86907. | "not-equal"
  86908. | "less-than"
  86909. | "greater-than"
  86910. | "at-most"
  86911. | "at-least"
  86912. | "between"
  86913. | "not-between";
  86914. /**
  86915. * Indicates the standard deviation of the dataset above and below the `average`.
  86916. *
  86917. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider-HistogramRangeSliderViewModel.html#standardDeviation)
  86918. */
  86919. standardDeviation?: number;
  86920. }
  86921. export interface HistogramRangeSliderDataLines {
  86922. /**
  86923. * The value on the data axis of the histogram where a line will be rendered.
  86924. *
  86925. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#dataLines)
  86926. */
  86927. value: number;
  86928. /**
  86929. * The label associated with the line.
  86930. *
  86931. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-HistogramRangeSlider.html#dataLines)
  86932. */
  86933. label?: string | number;
  86934. }
  86935. export interface HistogramRangeSliderMaxChangeEvent {
  86936. oldValue: number;
  86937. type: "max-change";
  86938. value: number;
  86939. }
  86940. export interface HistogramRangeSliderMinChangeEvent {
  86941. oldValue: number;
  86942. type: "min-change";
  86943. value: number;
  86944. }
  86945. export interface HistogramRangeSliderSegmentDragEvent {
  86946. index: number;
  86947. state: "start" | "drag";
  86948. thumbIndices: number[];
  86949. type: "segment-drag";
  86950. }
  86951. export interface HistogramRangeSliderThumbChangeEvent {
  86952. index: number;
  86953. oldValue: number;
  86954. type: "thumb-change";
  86955. value: number;
  86956. }
  86957. export interface HistogramRangeSliderThumbDragEvent {
  86958. index: number;
  86959. state: "start" | "drag";
  86960. type: "thumb-drag";
  86961. value: number;
  86962. }
  86963. export interface Home extends Widget, GoTo {
  86964. }
  86965. export class Home {
  86966. /**
  86967. * The widget's default CSS icon class.
  86968. *
  86969. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Home.html#iconClass)
  86970. */
  86971. iconClass: string;
  86972. /**
  86973. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  86974. *
  86975. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Home.html#view)
  86976. */
  86977. view: MapView | SceneView;
  86978. /**
  86979. * The view model for this widget.
  86980. *
  86981. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Home.html#viewModel)
  86982. */
  86983. viewModel: HomeViewModel;
  86984. /**
  86985. * The [Viewpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html), or point of view, to zoom to when going home.
  86986. *
  86987. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Home.html#viewpoint)
  86988. */
  86989. viewpoint: Viewpoint;
  86990. /**
  86991. * Provides a simple widget that switches the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html) to its initial [Viewpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html) or a previously defined [viewpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Home.html#viewpoint).
  86992. *
  86993. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Home.html)
  86994. */
  86995. constructor(properties?: HomeProperties);
  86996. /**
  86997. * This function provides the ability to interrupt and cancel the process of navigating the view back to the view's initial extent.
  86998. *
  86999. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Home.html#cancelGo)
  87000. */
  87001. cancelGo(): void;
  87002. /**
  87003. * Animates the view to the initial Viewpoint of the view or the value of [viewpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Home.html#viewpoint).
  87004. *
  87005. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Home.html#go)
  87006. */
  87007. go(): void;
  87008. on(name: "go", eventHandler: HomeGoEventHandler): IHandle;
  87009. }
  87010. /** @deprecated Import the Home class instead. */
  87011. export type HomeConstructor = typeof Home;
  87012. interface HomeProperties extends WidgetProperties, GoToProperties {
  87013. /**
  87014. * The widget's default CSS icon class.
  87015. *
  87016. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Home.html#iconClass)
  87017. */
  87018. iconClass?: string;
  87019. /**
  87020. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  87021. *
  87022. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Home.html#view)
  87023. */
  87024. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  87025. /**
  87026. * The view model for this widget.
  87027. *
  87028. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Home.html#viewModel)
  87029. */
  87030. viewModel?: HomeViewModelProperties;
  87031. /**
  87032. * The [Viewpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html), or point of view, to zoom to when going home.
  87033. *
  87034. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Home.html#viewpoint)
  87035. */
  87036. viewpoint?: ViewpointProperties;
  87037. }
  87038. export interface HomeViewModel extends Accessor, Evented, GoTo {
  87039. }
  87040. export class HomeViewModel {
  87041. /**
  87042. * The current state of the widget.
  87043. *
  87044. * @default disabled
  87045. *
  87046. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Home-HomeViewModel.html#state)
  87047. */
  87048. readonly state: "disabled" | "ready" | "going-home";
  87049. /**
  87050. * The view associated with the widget instance.
  87051. *
  87052. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Home-HomeViewModel.html#view)
  87053. */
  87054. view: MapView | SceneView;
  87055. /**
  87056. * The [Viewpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html), or point of view, to zoom to when going home.
  87057. *
  87058. * @default null
  87059. *
  87060. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Home-HomeViewModel.html#viewpoint)
  87061. */
  87062. viewpoint: Viewpoint;
  87063. /**
  87064. * Provides the logic for the [Home](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Home.html) widget that animates the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html) to its initial [Viewpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html) or a previously defined [viewpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Home-HomeViewModel.html#viewpoint).
  87065. *
  87066. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Home-HomeViewModel.html)
  87067. */
  87068. constructor(properties?: HomeViewModelProperties);
  87069. /**
  87070. * This function provides the ability to interrupt and cancel the process of navigating the view back to the view's initial extent.
  87071. *
  87072. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Home-HomeViewModel.html#cancelGo)
  87073. */
  87074. cancelGo(): void;
  87075. /**
  87076. * Animates the view to the initial [Viewpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html) of the view or the value of [viewpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Home-HomeViewModel.html#viewpoint).
  87077. *
  87078. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Home-HomeViewModel.html#go)
  87079. */
  87080. go(): void;
  87081. on(name: "go", eventHandler: HomeViewModelGoEventHandler): IHandle;
  87082. }
  87083. /** @deprecated Import the HomeViewModel class instead. */
  87084. export type HomeViewModelConstructor = typeof HomeViewModel;
  87085. interface HomeViewModelProperties extends GoToProperties {
  87086. /**
  87087. * The view associated with the widget instance.
  87088. *
  87089. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Home-HomeViewModel.html#view)
  87090. */
  87091. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  87092. /**
  87093. * The [Viewpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html), or point of view, to zoom to when going home.
  87094. *
  87095. * @default null
  87096. *
  87097. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Home-HomeViewModel.html#viewpoint)
  87098. */
  87099. viewpoint?: ViewpointProperties;
  87100. }
  87101. export interface HomeViewModelGoEvent {
  87102. }
  87103. export interface HomeGoEvent {
  87104. }
  87105. export class LayerList extends Widget {
  87106. /**
  87107. * The widget's default CSS icon class.
  87108. *
  87109. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#iconClass)
  87110. */
  87111. iconClass: string;
  87112. /**
  87113. * A function that executes each time a [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html) is created.
  87114. *
  87115. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#listItemCreatedFunction)
  87116. */
  87117. listItemCreatedFunction: LayerListListItemCreatedHandler;
  87118. /**
  87119. * Indicates whether more than one list item may be selected by the user at a single time.
  87120. *
  87121. * @default false
  87122. *
  87123. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#multipleSelectionEnabled)
  87124. */
  87125. multipleSelectionEnabled: boolean;
  87126. /**
  87127. * A collection of [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html)s representing operational layers.
  87128. *
  87129. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#operationalItems)
  87130. */
  87131. readonly operationalItems: Collection<ListItem>;
  87132. /**
  87133. * A collection of selected [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html)s representing operational layers selected by the user.
  87134. *
  87135. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#selectedItems)
  87136. */
  87137. selectedItems: Collection<ListItem>;
  87138. /**
  87139. * Indicates whether list items may be selected by the user.
  87140. *
  87141. * @default false
  87142. *
  87143. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#selectionEnabled)
  87144. */
  87145. selectionEnabled: boolean;
  87146. /**
  87147. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  87148. *
  87149. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#view)
  87150. */
  87151. view: MapView | SceneView;
  87152. /**
  87153. * The view model for this widget.
  87154. *
  87155. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#viewModel)
  87156. */
  87157. viewModel: LayerListViewModel;
  87158. /**
  87159. * The visible elements that are displayed within the widget.
  87160. *
  87161. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#visibleElements)
  87162. */
  87163. visibleElements: LayerListVisibleElements;
  87164. /**
  87165. * The LayerList widget provides a way to display a list of layers, and switch on/off their visibility.
  87166. *
  87167. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html)
  87168. */
  87169. constructor(properties?: LayerListProperties);
  87170. /**
  87171. * Triggers the [trigger-action](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#event-trigger-action) event and executes the given [action](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionButton.html) or [action toggle](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionToggle.html).
  87172. *
  87173. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#triggerAction)
  87174. */
  87175. triggerAction(action: ActionButton | ActionToggle, item: ListItem): void;
  87176. on(name: "trigger-action", eventHandler: LayerListTriggerActionEventHandler): IHandle;
  87177. }
  87178. /** @deprecated Import the LayerList class instead. */
  87179. export type LayerListConstructor = typeof LayerList;
  87180. interface LayerListProperties extends WidgetProperties {
  87181. /**
  87182. * The widget's default CSS icon class.
  87183. *
  87184. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#iconClass)
  87185. */
  87186. iconClass?: string;
  87187. /**
  87188. * A function that executes each time a [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html) is created.
  87189. *
  87190. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#listItemCreatedFunction)
  87191. */
  87192. listItemCreatedFunction?: LayerListListItemCreatedHandler;
  87193. /**
  87194. * Indicates whether more than one list item may be selected by the user at a single time.
  87195. *
  87196. * @default false
  87197. *
  87198. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#multipleSelectionEnabled)
  87199. */
  87200. multipleSelectionEnabled?: boolean;
  87201. /**
  87202. * A collection of selected [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html)s representing operational layers selected by the user.
  87203. *
  87204. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#selectedItems)
  87205. */
  87206. selectedItems?: CollectionProperties<ListItemProperties>;
  87207. /**
  87208. * Indicates whether list items may be selected by the user.
  87209. *
  87210. * @default false
  87211. *
  87212. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#selectionEnabled)
  87213. */
  87214. selectionEnabled?: boolean;
  87215. /**
  87216. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  87217. *
  87218. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#view)
  87219. */
  87220. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  87221. /**
  87222. * The view model for this widget.
  87223. *
  87224. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#viewModel)
  87225. */
  87226. viewModel?: LayerListViewModelProperties;
  87227. /**
  87228. * The visible elements that are displayed within the widget.
  87229. *
  87230. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#visibleElements)
  87231. */
  87232. visibleElements?: LayerListVisibleElements;
  87233. }
  87234. export class LayerListViewModel extends Accessor {
  87235. /**
  87236. * Whether to provide an indication if a layer is being published in the [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html).
  87237. *
  87238. * @default false
  87239. *
  87240. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-LayerListViewModel.html#checkPublishStatusEnabled)
  87241. */
  87242. checkPublishStatusEnabled: boolean;
  87243. /**
  87244. * Specifies a function that accesses each [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html).
  87245. *
  87246. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-LayerListViewModel.html#listItemCreatedFunction)
  87247. */
  87248. listItemCreatedFunction: LayerListListItemCreatedHandler;
  87249. /**
  87250. * A collection of [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html)s representing operational layers.
  87251. *
  87252. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-LayerListViewModel.html#operationalItems)
  87253. */
  87254. readonly operationalItems: Collection<ListItem>;
  87255. /**
  87256. * The view model's state.
  87257. *
  87258. * @default disabled
  87259. *
  87260. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-LayerListViewModel.html#state)
  87261. */
  87262. readonly state: "loading" | "ready" | "disabled";
  87263. /**
  87264. * The view from which the widget will operate.
  87265. *
  87266. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-LayerListViewModel.html#view)
  87267. */
  87268. view: MapView | SceneView;
  87269. /**
  87270. * Provides the logic for the [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html) widget.
  87271. *
  87272. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-LayerListViewModel.html)
  87273. */
  87274. constructor(properties?: LayerListViewModelProperties);
  87275. /**
  87276. * Moves a list item from one position to another in the LayerList widget.
  87277. *
  87278. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-LayerListViewModel.html#moveListItem)
  87279. */
  87280. moveListItem(targetItem: ListItem, fromParentItem: ListItem, toParentItem: ListItem, newIndex: number): void;
  87281. /**
  87282. * Triggers the [trigger-action](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-LayerListViewModel.html#event-trigger-action) event and executes the given [action](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionButton.html) or [action toggle](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionToggle.html).
  87283. *
  87284. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-LayerListViewModel.html#triggerAction)
  87285. */
  87286. triggerAction(action: ActionButton | ActionToggle, item: ListItem): void;
  87287. on(name: "trigger-action", eventHandler: LayerListViewModelTriggerActionEventHandler): IHandle;
  87288. }
  87289. /** @deprecated Import the LayerListViewModel class instead. */
  87290. export type LayerListViewModelConstructor = typeof LayerListViewModel;
  87291. interface LayerListViewModelProperties {
  87292. /**
  87293. * Whether to provide an indication if a layer is being published in the [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html).
  87294. *
  87295. * @default false
  87296. *
  87297. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-LayerListViewModel.html#checkPublishStatusEnabled)
  87298. */
  87299. checkPublishStatusEnabled?: boolean;
  87300. /**
  87301. * Specifies a function that accesses each [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html).
  87302. *
  87303. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-LayerListViewModel.html#listItemCreatedFunction)
  87304. */
  87305. listItemCreatedFunction?: LayerListListItemCreatedHandler;
  87306. /**
  87307. * The view from which the widget will operate.
  87308. *
  87309. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-LayerListViewModel.html#view)
  87310. */
  87311. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  87312. }
  87313. export interface LayerListViewModelTriggerActionEvent {
  87314. action: ActionButton | ActionToggle;
  87315. item: ListItem;
  87316. }
  87317. export interface ListItem extends Accessor, Identifiable {
  87318. }
  87319. export class ListItem {
  87320. /**
  87321. * Whether the actions panel is open in the LayerList.
  87322. *
  87323. * @default false
  87324. *
  87325. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#actionsOpen)
  87326. */
  87327. actionsOpen: boolean;
  87328. /**
  87329. * A nested 2-dimensional collection of actions that could be triggered on the item.
  87330. *
  87331. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#actionsSections)
  87332. */
  87333. actionsSections: Collection<Collection<ActionButton | ActionToggle>>;
  87334. /**
  87335. * When a layer contains sublayers, this property is a Collection of ListItem objects belonging to the given layer.
  87336. *
  87337. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#children)
  87338. */
  87339. children: Collection<ListItem>;
  87340. /**
  87341. * Indicates if the children of a list item (or sublayers in a GroupLayer) can be sorted or moved/reordered.
  87342. *
  87343. * @default true
  87344. *
  87345. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#childrenSortable)
  87346. */
  87347. childrenSortable: boolean;
  87348. /**
  87349. * Only valid when the list item represents a [StreamLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-StreamLayer.html).
  87350. *
  87351. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#connectionStatus)
  87352. */
  87353. readonly connectionStatus: "connected" | "disconnected";
  87354. /**
  87355. * The Error object returned if an error occurred.
  87356. *
  87357. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#error)
  87358. */
  87359. readonly error: Error;
  87360. /**
  87361. * When `true`, hides the layer from the LayerList instance.
  87362. *
  87363. * @default false
  87364. *
  87365. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#hidden)
  87366. */
  87367. hidden: boolean;
  87368. /**
  87369. * The layer associated with the triggered action.
  87370. *
  87371. * @default null
  87372. *
  87373. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#layer)
  87374. */
  87375. layer: Layer;
  87376. /**
  87377. * The [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) displaying data for the associated [layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#layer).
  87378. *
  87379. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#layerView)
  87380. */
  87381. readonly layerView: LayerView;
  87382. /**
  87383. * Whether the layer is open in the LayerList.
  87384. *
  87385. * @default false
  87386. *
  87387. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#open)
  87388. */
  87389. open: boolean;
  87390. /**
  87391. * Allows you to display custom content for each ListItem in the [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html) widget.
  87392. *
  87393. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#panel)
  87394. */
  87395. panel: ListItemPanel;
  87396. /**
  87397. * The parent of this item
  87398. *
  87399. * @default null
  87400. *
  87401. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#parent)
  87402. */
  87403. parent: ListItem;
  87404. /**
  87405. * Value is `true` when the [layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#layer) is being published.
  87406. *
  87407. * @default false
  87408. *
  87409. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#publishing)
  87410. */
  87411. readonly publishing: boolean;
  87412. /**
  87413. * Indicates if the list item (or layer in the map) can be sorted or moved/reordered.
  87414. *
  87415. * @default true
  87416. *
  87417. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#sortable)
  87418. */
  87419. sortable: boolean;
  87420. /**
  87421. * The title of the layer.
  87422. *
  87423. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#title)
  87424. */
  87425. title: string;
  87426. /**
  87427. * Value is `true` when the layer is updating; for example, if it is in the process of fetching data.
  87428. *
  87429. * @default false
  87430. *
  87431. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#updating)
  87432. */
  87433. readonly updating: boolean;
  87434. /**
  87435. * The view from which the widget will operate.
  87436. *
  87437. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#view)
  87438. */
  87439. view: MapView | SceneView;
  87440. /**
  87441. * Indicates how to manage the visibility of the children layers.
  87442. *
  87443. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#visibilityMode)
  87444. */
  87445. readonly visibilityMode: string;
  87446. /**
  87447. * Indicates if the ListItem is visible.
  87448. *
  87449. * @default true
  87450. *
  87451. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#visible)
  87452. */
  87453. visible: boolean;
  87454. /**
  87455. * Whether the layer is visible at the current scale or not.
  87456. *
  87457. * @default true
  87458. *
  87459. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#visibleAtCurrentScale)
  87460. */
  87461. readonly visibleAtCurrentScale: boolean;
  87462. /**
  87463. * The ListItem class represents one of the [operationalItems](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-LayerListViewModel.html#operationalItems) in the [LayerListViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-LayerListViewModel.html).
  87464. *
  87465. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html)
  87466. */
  87467. constructor(properties?: ListItemProperties);
  87468. /**
  87469. * Creates a deep clone of this object.
  87470. *
  87471. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#clone)
  87472. */
  87473. clone(): ListItem;
  87474. }
  87475. /** @deprecated Import the ListItem class instead. */
  87476. export type ListItemConstructor = typeof ListItem;
  87477. interface ListItemProperties {
  87478. /**
  87479. * Whether the actions panel is open in the LayerList.
  87480. *
  87481. * @default false
  87482. *
  87483. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#actionsOpen)
  87484. */
  87485. actionsOpen?: boolean;
  87486. /**
  87487. * A nested 2-dimensional collection of actions that could be triggered on the item.
  87488. *
  87489. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#actionsSections)
  87490. */
  87491. actionsSections?: | CollectionProperties<
  87492. CollectionProperties<
  87493. (ActionButtonProperties & { type: "button" }) | (ActionToggleProperties & { type: "toggle" })
  87494. >
  87495. >
  87496. | any[][];
  87497. /**
  87498. * When a layer contains sublayers, this property is a Collection of ListItem objects belonging to the given layer.
  87499. *
  87500. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#children)
  87501. */
  87502. children?: CollectionProperties<ListItemProperties>;
  87503. /**
  87504. * Indicates if the children of a list item (or sublayers in a GroupLayer) can be sorted or moved/reordered.
  87505. *
  87506. * @default true
  87507. *
  87508. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#childrenSortable)
  87509. */
  87510. childrenSortable?: boolean;
  87511. /**
  87512. * When `true`, hides the layer from the LayerList instance.
  87513. *
  87514. * @default false
  87515. *
  87516. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#hidden)
  87517. */
  87518. hidden?: boolean;
  87519. /**
  87520. * The layer associated with the triggered action.
  87521. *
  87522. * @default null
  87523. *
  87524. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#layer)
  87525. */
  87526. layer?: LayerProperties;
  87527. /**
  87528. * Whether the layer is open in the LayerList.
  87529. *
  87530. * @default false
  87531. *
  87532. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#open)
  87533. */
  87534. open?: boolean;
  87535. /**
  87536. * Allows you to display custom content for each ListItem in the [LayerList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html) widget.
  87537. *
  87538. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#panel)
  87539. */
  87540. panel?: ListItemPanel;
  87541. /**
  87542. * The parent of this item
  87543. *
  87544. * @default null
  87545. *
  87546. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#parent)
  87547. */
  87548. parent?: ListItemProperties;
  87549. /**
  87550. * Indicates if the list item (or layer in the map) can be sorted or moved/reordered.
  87551. *
  87552. * @default true
  87553. *
  87554. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#sortable)
  87555. */
  87556. sortable?: boolean;
  87557. /**
  87558. * The title of the layer.
  87559. *
  87560. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#title)
  87561. */
  87562. title?: string;
  87563. /**
  87564. * The view from which the widget will operate.
  87565. *
  87566. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#view)
  87567. */
  87568. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  87569. /**
  87570. * Indicates if the ListItem is visible.
  87571. *
  87572. * @default true
  87573. *
  87574. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItem.html#visible)
  87575. */
  87576. visible?: boolean;
  87577. }
  87578. export class ListItemPanel extends Identifiable {
  87579. /**
  87580. * Adds a CSS class used to style a node that represents the panel.
  87581. *
  87582. * @default esri-icon-layer-list
  87583. *
  87584. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItemPanel.html#className)
  87585. */
  87586. className: string;
  87587. /**
  87588. * The content displayed in the ListItem panel.
  87589. *
  87590. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItemPanel.html#content)
  87591. */
  87592. content: Widget | HTMLElement | string | any[];
  87593. /**
  87594. * If `true`, disables the ListItem's panel so the user cannot open or interact with it.
  87595. *
  87596. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItemPanel.html#disabled)
  87597. */
  87598. disabled: boolean;
  87599. /**
  87600. * The URL or data URI of an image used to represent the panel.
  87601. *
  87602. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItemPanel.html#image)
  87603. */
  87604. image: string;
  87605. /**
  87606. * The panel's parent ListItem that represents a layer in the map.
  87607. *
  87608. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItemPanel.html#listItem)
  87609. */
  87610. listItem: ListItem;
  87611. /**
  87612. * Indicates if the panel's content is open and visible to the user.
  87613. *
  87614. * @default false
  87615. *
  87616. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItemPanel.html#open)
  87617. */
  87618. open: boolean;
  87619. /**
  87620. * The title of the panel.
  87621. *
  87622. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItemPanel.html#title)
  87623. */
  87624. title: string;
  87625. /**
  87626. * Indicates if the node containing the [image](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItemPanel.html#image) or [icon font](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItemPanel.html#className) is visible to the user.
  87627. *
  87628. * @default true
  87629. *
  87630. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList-ListItemPanel.html#visible)
  87631. */
  87632. visible: boolean;
  87633. constructor();
  87634. }
  87635. /** @deprecated Import the ListItemPanel class instead. */
  87636. export type ListItemPanelConstructor = typeof ListItemPanel;
  87637. export type LayerListListItemCreatedHandler = (event: any) => void;
  87638. export interface LayerListTriggerActionEvent {
  87639. action: ActionButton | ActionToggle;
  87640. item: ListItem;
  87641. }
  87642. /**
  87643. * The visible elements that are displayed within the widget.
  87644. *
  87645. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#VisibleElements)
  87646. */
  87647. export interface LayerListVisibleElements {
  87648. /**
  87649. * Indicates whether the status indicators will be displayed.
  87650. *
  87651. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#VisibleElements)
  87652. */
  87653. statusIndicators?: boolean;
  87654. /**
  87655. * _Since 4.25_ Indicates whether layer load errors will be displayed.
  87656. *
  87657. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#VisibleElements)
  87658. */
  87659. errors?: boolean;
  87660. }
  87661. export class Legend extends Widget {
  87662. /**
  87663. * Collection of [ActiveLayerInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html) objects used by the legend view to display data in the legend.
  87664. *
  87665. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#activeLayerInfos)
  87666. */
  87667. activeLayerInfos: Collection<ActiveLayerInfo>;
  87668. /**
  87669. * Indicates whether to show the [Basemap](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html) layers in the Legend.
  87670. *
  87671. * @default false
  87672. *
  87673. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#basemapLegendVisible)
  87674. */
  87675. basemapLegendVisible: boolean;
  87676. /**
  87677. * Indicates the heading level to use for the legend title.
  87678. *
  87679. * @default 3
  87680. *
  87681. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#headingLevel)
  87682. */
  87683. headingLevel: number;
  87684. /**
  87685. * When `true`, layers will only be shown in the legend if they are visible in the view's extent.
  87686. *
  87687. * @default false
  87688. *
  87689. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#hideLayersNotInCurrentView)
  87690. */
  87691. hideLayersNotInCurrentView: boolean;
  87692. /**
  87693. * The widget's default CSS icon class.
  87694. *
  87695. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#iconClass)
  87696. */
  87697. iconClass: string;
  87698. /**
  87699. * Specifies a subset of the layers to display in the legend.
  87700. *
  87701. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#layerInfos)
  87702. */
  87703. layerInfos: LegendLayerInfos[];
  87704. /**
  87705. * Determines whether to respect the properties of the layers in the map that control the legend's visibility (`minScale`, `maxScale`, `legendEnabled`).
  87706. *
  87707. * @default true
  87708. *
  87709. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#respectLayerVisibility)
  87710. */
  87711. respectLayerVisibility: boolean;
  87712. /**
  87713. * Indicates the style of the legend.
  87714. *
  87715. * @default classic
  87716. *
  87717. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#style)
  87718. */
  87719. style: string | LegendStyle;
  87720. /**
  87721. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  87722. *
  87723. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#view)
  87724. */
  87725. view: MapView | SceneView;
  87726. /**
  87727. * The view model for this widget.
  87728. *
  87729. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#viewModel)
  87730. */
  87731. viewModel: LegendViewModel;
  87732. /**
  87733. * The Legend widget describes the symbols used to represent layers in a map.
  87734. *
  87735. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html)
  87736. */
  87737. constructor(properties?: LegendProperties);
  87738. }
  87739. /** @deprecated Import the Legend class instead. */
  87740. export type LegendConstructor = typeof Legend;
  87741. interface LegendProperties extends WidgetProperties {
  87742. /**
  87743. * Collection of [ActiveLayerInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html) objects used by the legend view to display data in the legend.
  87744. *
  87745. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#activeLayerInfos)
  87746. */
  87747. activeLayerInfos?: CollectionProperties<ActiveLayerInfoProperties>;
  87748. /**
  87749. * Indicates whether to show the [Basemap](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html) layers in the Legend.
  87750. *
  87751. * @default false
  87752. *
  87753. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#basemapLegendVisible)
  87754. */
  87755. basemapLegendVisible?: boolean;
  87756. /**
  87757. * Indicates the heading level to use for the legend title.
  87758. *
  87759. * @default 3
  87760. *
  87761. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#headingLevel)
  87762. */
  87763. headingLevel?: number;
  87764. /**
  87765. * When `true`, layers will only be shown in the legend if they are visible in the view's extent.
  87766. *
  87767. * @default false
  87768. *
  87769. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#hideLayersNotInCurrentView)
  87770. */
  87771. hideLayersNotInCurrentView?: boolean;
  87772. /**
  87773. * The widget's default CSS icon class.
  87774. *
  87775. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#iconClass)
  87776. */
  87777. iconClass?: string;
  87778. /**
  87779. * Specifies a subset of the layers to display in the legend.
  87780. *
  87781. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#layerInfos)
  87782. */
  87783. layerInfos?: LegendLayerInfos[];
  87784. /**
  87785. * Determines whether to respect the properties of the layers in the map that control the legend's visibility (`minScale`, `maxScale`, `legendEnabled`).
  87786. *
  87787. * @default true
  87788. *
  87789. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#respectLayerVisibility)
  87790. */
  87791. respectLayerVisibility?: boolean;
  87792. /**
  87793. * Indicates the style of the legend.
  87794. *
  87795. * @default classic
  87796. *
  87797. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#style)
  87798. */
  87799. style?: string | LegendStyle;
  87800. /**
  87801. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  87802. *
  87803. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#view)
  87804. */
  87805. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  87806. /**
  87807. * The view model for this widget.
  87808. *
  87809. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#viewModel)
  87810. */
  87811. viewModel?: LegendViewModelProperties;
  87812. }
  87813. export class LegendViewModel extends Accessor {
  87814. /**
  87815. * Collection of [ActiveLayerInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html) objects used by the legend view to display data in the legend.
  87816. *
  87817. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-LegendViewModel.html#activeLayerInfos)
  87818. */
  87819. activeLayerInfos: Collection<ActiveLayerInfo>;
  87820. /**
  87821. * Indicates whether to show the [Basemap](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html) layers in the Legend.
  87822. *
  87823. * @default filterBasemaps
  87824. *
  87825. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-LegendViewModel.html#basemapLegendVisible)
  87826. */
  87827. basemapLegendVisible: boolean;
  87828. /**
  87829. * When `true`, layers will only be shown in the legend if they are visible in the view's extent.
  87830. *
  87831. * @default false
  87832. *
  87833. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-LegendViewModel.html#hideLayersNotInCurrentView)
  87834. */
  87835. hideLayersNotInCurrentView: boolean;
  87836. /**
  87837. * Specifies a subset of the layers in the map to display in the legend.
  87838. *
  87839. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-LegendViewModel.html#layerInfos)
  87840. */
  87841. layerInfos: LegendViewModelLayerInfos[];
  87842. /**
  87843. * Determines whether to respect the properties of the layers in the map that control the legend's visibility (`minScale`, `maxScale`, `legendEnabled`).
  87844. *
  87845. * @default true
  87846. *
  87847. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-LegendViewModel.html#respectLayerVisibility)
  87848. */
  87849. respectLayerVisibility: boolean;
  87850. /**
  87851. * The view model's state.
  87852. *
  87853. * @default disabled
  87854. *
  87855. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-LegendViewModel.html#state)
  87856. */
  87857. readonly state: "ready" | "disabled";
  87858. /**
  87859. * The view from which the widget will operate.
  87860. *
  87861. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-LegendViewModel.html#view)
  87862. */
  87863. view: MapView | SceneView;
  87864. /**
  87865. * Provides the logic for the [Legend](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html) widget, which displays a label and symbol for interpreting the [Renderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-Renderer.html) of each layer in a map.
  87866. *
  87867. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-LegendViewModel.html)
  87868. */
  87869. constructor(properties?: LegendViewModelProperties);
  87870. }
  87871. /** @deprecated Import the LegendViewModel class instead. */
  87872. export type LegendViewModelConstructor = typeof LegendViewModel;
  87873. interface LegendViewModelProperties {
  87874. /**
  87875. * Collection of [ActiveLayerInfo](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html) objects used by the legend view to display data in the legend.
  87876. *
  87877. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-LegendViewModel.html#activeLayerInfos)
  87878. */
  87879. activeLayerInfos?: CollectionProperties<ActiveLayerInfoProperties>;
  87880. /**
  87881. * Indicates whether to show the [Basemap](https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html) layers in the Legend.
  87882. *
  87883. * @default filterBasemaps
  87884. *
  87885. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-LegendViewModel.html#basemapLegendVisible)
  87886. */
  87887. basemapLegendVisible?: boolean;
  87888. /**
  87889. * When `true`, layers will only be shown in the legend if they are visible in the view's extent.
  87890. *
  87891. * @default false
  87892. *
  87893. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-LegendViewModel.html#hideLayersNotInCurrentView)
  87894. */
  87895. hideLayersNotInCurrentView?: boolean;
  87896. /**
  87897. * Specifies a subset of the layers in the map to display in the legend.
  87898. *
  87899. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-LegendViewModel.html#layerInfos)
  87900. */
  87901. layerInfos?: LegendViewModelLayerInfos[];
  87902. /**
  87903. * Determines whether to respect the properties of the layers in the map that control the legend's visibility (`minScale`, `maxScale`, `legendEnabled`).
  87904. *
  87905. * @default true
  87906. *
  87907. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-LegendViewModel.html#respectLayerVisibility)
  87908. */
  87909. respectLayerVisibility?: boolean;
  87910. /**
  87911. * The view from which the widget will operate.
  87912. *
  87913. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-LegendViewModel.html#view)
  87914. */
  87915. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  87916. }
  87917. export interface LegendViewModelLayerInfos {
  87918. /**
  87919. * Specify a title for the layer.
  87920. *
  87921. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-LegendViewModel.html#layerInfos)
  87922. */
  87923. title?: string;
  87924. /**
  87925. * A layer to add to the legend.
  87926. *
  87927. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-LegendViewModel.html#layerInfos)
  87928. */
  87929. layer?: Layer;
  87930. }
  87931. export class ActiveLayerInfo extends Accessor {
  87932. /**
  87933. * A collection of child activeLayerInfos.
  87934. *
  87935. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#children)
  87936. */
  87937. children: Collection<ActiveLayerInfo>;
  87938. /**
  87939. * When `true`, layers will only be shown in the legend if they are visible in the view's extent.
  87940. *
  87941. * @default false
  87942. *
  87943. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#hideLayersNotInCurrentView)
  87944. */
  87945. hideLayersNotInCurrentView: boolean;
  87946. /**
  87947. * Indicates if the legend's display of the layer's renderer is driven by the scale of the view.
  87948. *
  87949. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#isScaleDriven)
  87950. */
  87951. isScaleDriven: boolean;
  87952. /**
  87953. * The layer represented by the ActiveLayerInfo object.
  87954. *
  87955. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#layer)
  87956. */
  87957. layer: Layer;
  87958. /**
  87959. * The layerView represented by the ActiveLayerInfo object's layer.
  87960. *
  87961. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#layerView)
  87962. */
  87963. layerView: LayerView;
  87964. /**
  87965. * The legendElements is constructed using the layer [Renderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-Renderer.html).
  87966. *
  87967. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#legendElements)
  87968. */
  87969. legendElements: LegendElement[];
  87970. /**
  87971. * The opacity of the layer or parent element.
  87972. *
  87973. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#opacity)
  87974. */
  87975. readonly opacity: number;
  87976. /**
  87977. * The ActiveLayerInfo of the parent module:esri/layers/support/ISublayer or [GroupLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GroupLayer.html).
  87978. *
  87979. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#parent)
  87980. */
  87981. parent: ActiveLayerInfo;
  87982. /**
  87983. * Indicates if the activeLayerInfo is ready.
  87984. *
  87985. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#ready)
  87986. */
  87987. ready: boolean;
  87988. /**
  87989. * Determines whether to respect the properties of the layers in the map that control the legend's visibility (`minScale`, `maxScale`, `legendEnabled`).
  87990. *
  87991. * @default true
  87992. *
  87993. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#respectLayerVisibility)
  87994. */
  87995. respectLayerVisibility: boolean;
  87996. /**
  87997. * The scale of the view instance in which the Legend is rendered.
  87998. *
  87999. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#scale)
  88000. */
  88001. scale: number;
  88002. /**
  88003. * Only applies if the [layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#layer) is a [MapImageLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html).
  88004. *
  88005. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#sublayerIds)
  88006. */
  88007. sublayerIds: number[];
  88008. /**
  88009. * The text string that represents the legend's title.
  88010. *
  88011. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#title)
  88012. */
  88013. title: string;
  88014. /**
  88015. * The version of the ActiveLayerInfo.
  88016. *
  88017. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#version)
  88018. */
  88019. version: number;
  88020. /**
  88021. * The view in which the Legend is rendered.
  88022. *
  88023. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#view)
  88024. */
  88025. view: View;
  88026. /**
  88027. * ActiveLayerInfo is added to or removed from the collection of activeLayerInfos as layers become visible or invisible in the view.
  88028. *
  88029. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html)
  88030. */
  88031. constructor(properties?: ActiveLayerInfoProperties);
  88032. }
  88033. /** @deprecated Import the ActiveLayerInfo class instead. */
  88034. export type ActiveLayerInfoConstructor = typeof ActiveLayerInfo;
  88035. interface ActiveLayerInfoProperties {
  88036. /**
  88037. * A collection of child activeLayerInfos.
  88038. *
  88039. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#children)
  88040. */
  88041. children?: CollectionProperties<ActiveLayerInfoProperties>;
  88042. /**
  88043. * When `true`, layers will only be shown in the legend if they are visible in the view's extent.
  88044. *
  88045. * @default false
  88046. *
  88047. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#hideLayersNotInCurrentView)
  88048. */
  88049. hideLayersNotInCurrentView?: boolean;
  88050. /**
  88051. * Indicates if the legend's display of the layer's renderer is driven by the scale of the view.
  88052. *
  88053. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#isScaleDriven)
  88054. */
  88055. isScaleDriven?: boolean;
  88056. /**
  88057. * The layer represented by the ActiveLayerInfo object.
  88058. *
  88059. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#layer)
  88060. */
  88061. layer?: LayerProperties;
  88062. /**
  88063. * The layerView represented by the ActiveLayerInfo object's layer.
  88064. *
  88065. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#layerView)
  88066. */
  88067. layerView?: LayerViewProperties;
  88068. /**
  88069. * The legendElements is constructed using the layer [Renderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-Renderer.html).
  88070. *
  88071. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#legendElements)
  88072. */
  88073. legendElements?: (
  88074. | SymbolTableElement
  88075. | ColorRampElement
  88076. | OpacityRampElement
  88077. | SizeRampElement
  88078. | HeatmapRampElement
  88079. | RelationshipRampElement
  88080. )[];
  88081. /**
  88082. * The ActiveLayerInfo of the parent module:esri/layers/support/ISublayer or [GroupLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GroupLayer.html).
  88083. *
  88084. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#parent)
  88085. */
  88086. parent?: ActiveLayerInfoProperties;
  88087. /**
  88088. * Indicates if the activeLayerInfo is ready.
  88089. *
  88090. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#ready)
  88091. */
  88092. ready?: boolean;
  88093. /**
  88094. * Determines whether to respect the properties of the layers in the map that control the legend's visibility (`minScale`, `maxScale`, `legendEnabled`).
  88095. *
  88096. * @default true
  88097. *
  88098. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#respectLayerVisibility)
  88099. */
  88100. respectLayerVisibility?: boolean;
  88101. /**
  88102. * The scale of the view instance in which the Legend is rendered.
  88103. *
  88104. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#scale)
  88105. */
  88106. scale?: number;
  88107. /**
  88108. * Only applies if the [layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#layer) is a [MapImageLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html).
  88109. *
  88110. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#sublayerIds)
  88111. */
  88112. sublayerIds?: number[];
  88113. /**
  88114. * The text string that represents the legend's title.
  88115. *
  88116. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#title)
  88117. */
  88118. title?: string;
  88119. /**
  88120. * The version of the ActiveLayerInfo.
  88121. *
  88122. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#version)
  88123. */
  88124. version?: number;
  88125. /**
  88126. * The view in which the Legend is rendered.
  88127. *
  88128. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#view)
  88129. */
  88130. view?: ViewProperties;
  88131. }
  88132. /**
  88133. * Describes the schema of the ColorRampElement used as a [legendElement](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#legendElement).
  88134. *
  88135. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#ColorRampElement)
  88136. */
  88137. export interface ColorRampElement {
  88138. /**
  88139. * The type of this element is always `color-ramp`.
  88140. *
  88141. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#ColorRampElement)
  88142. */
  88143. type: string;
  88144. /**
  88145. * The title of the color ramp as displayed in the legend.
  88146. *
  88147. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#ColorRampElement)
  88148. */
  88149. title: string | RampTitle;
  88150. /**
  88151. * The individual color stops rendered in the legend that correspond to the color visual variable in the renderer.
  88152. *
  88153. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#ColorRampElement)
  88154. */
  88155. infos: ColorRampStop[];
  88156. }
  88157. /**
  88158. * Describes the schema of the ColorRampStop element.
  88159. *
  88160. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#ColorRampStop)
  88161. */
  88162. export interface ColorRampStop {
  88163. /**
  88164. * The label in the legend describing features with the given `color` and `value`.
  88165. *
  88166. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#ColorRampStop)
  88167. */
  88168. label: string;
  88169. /**
  88170. * The value of the color visual variable [stop](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html#stops).
  88171. *
  88172. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#ColorRampStop)
  88173. */
  88174. value: number;
  88175. /**
  88176. * The color of the visual variable [stop](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html#stops).
  88177. *
  88178. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#ColorRampStop)
  88179. */
  88180. color: Color;
  88181. /**
  88182. * A number between `0` and `1` describing the position of the label on the color ramp.
  88183. *
  88184. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#ColorRampStop)
  88185. */
  88186. offset: number;
  88187. }
  88188. /**
  88189. * Describes the schema of the HeatmapRampElement used as a [legendElement](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#legendElement).
  88190. *
  88191. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#HeatmapRampElement)
  88192. */
  88193. export interface HeatmapRampElement {
  88194. /**
  88195. * The type of this element is always `heatmap-ramp`.
  88196. *
  88197. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#HeatmapRampElement)
  88198. */
  88199. type: string;
  88200. /**
  88201. * The title of the heatmap ramp as displayed in the legend.
  88202. *
  88203. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#HeatmapRampElement)
  88204. */
  88205. title?: string | RampTitle;
  88206. /**
  88207. * The individual color stops rendered in the legend that correspond to the heatmap colorStops in the renderer.
  88208. *
  88209. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#HeatmapRampElement)
  88210. */
  88211. infos: HeatmapRampStop[];
  88212. }
  88213. /**
  88214. * Describes the schema of the HeatmapRampStop element.
  88215. *
  88216. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#HeatmapRampStop)
  88217. */
  88218. export interface HeatmapRampStop {
  88219. /**
  88220. * The label of the color stop displayed in the legend.
  88221. *
  88222. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#HeatmapRampStop)
  88223. */
  88224. label: string;
  88225. /**
  88226. * The ratio of a pixel's intensity value to the minPixelIntensity of the renderer.
  88227. *
  88228. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#HeatmapRampStop)
  88229. */
  88230. ratio: number;
  88231. /**
  88232. * The color of the pixel corresponding to the appropriate pixel `ratio`.
  88233. *
  88234. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#HeatmapRampStop)
  88235. */
  88236. color: Color;
  88237. /**
  88238. * A number between `0` and `1` describing the position of the label on the ramp.
  88239. *
  88240. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#HeatmapRampStop)
  88241. */
  88242. offset: number;
  88243. }
  88244. /**
  88245. * Properties defining the scheme of each of the ImageSymbolTableElementInfo.
  88246. *
  88247. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#ImageSymbolTableElementInfo)
  88248. */
  88249. export interface ImageSymbolTableElementInfo {
  88250. /**
  88251. * The label of the category corresponding to the given image.
  88252. *
  88253. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#ImageSymbolTableElementInfo)
  88254. */
  88255. label?: string;
  88256. /**
  88257. * The data URI of the image representing a colored pixel in the renderer.
  88258. *
  88259. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#ImageSymbolTableElementInfo)
  88260. */
  88261. src: string;
  88262. /**
  88263. * The opacity of the image (`0` to `1`).
  88264. *
  88265. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#ImageSymbolTableElementInfo)
  88266. */
  88267. opacity: number;
  88268. /**
  88269. * The width of the image in pixels.
  88270. *
  88271. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#ImageSymbolTableElementInfo)
  88272. */
  88273. width?: number;
  88274. /**
  88275. * The height of the image in pixels.
  88276. *
  88277. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#ImageSymbolTableElementInfo)
  88278. */
  88279. height?: number;
  88280. }
  88281. /**
  88282. * Properties defining the scheme of each of the supported [legendElements](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#legendElements).
  88283. *
  88284. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#LegendElement)
  88285. */
  88286. export type LegendElement = | SymbolTableElement
  88287. | ColorRampElement
  88288. | OpacityRampElement
  88289. | SizeRampElement
  88290. | HeatmapRampElement
  88291. | RelationshipRampElement;
  88292. /**
  88293. * Describes the schema of the OpacityRampElement used as a [legendElement](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#legendElement).
  88294. *
  88295. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#OpacityRampElement)
  88296. */
  88297. export interface OpacityRampElement {
  88298. /**
  88299. * The type of this element is always `opacity-ramp`.
  88300. *
  88301. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#OpacityRampElement)
  88302. */
  88303. type: string;
  88304. /**
  88305. * The title of the opacity ramp as displayed in the legend.
  88306. *
  88307. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#OpacityRampElement)
  88308. */
  88309. title?: string | RampTitle;
  88310. /**
  88311. * The individual opacity stops rendered in the legend that correspond to the opacity visual variable in the renderer.
  88312. *
  88313. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#OpacityRampElement)
  88314. */
  88315. infos: OpacityRampStop[];
  88316. }
  88317. /**
  88318. * Describes the schema of the OpacityRampStop element.
  88319. *
  88320. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#OpacityRampStop)
  88321. */
  88322. export interface OpacityRampStop {
  88323. /**
  88324. * The label in the legend describing features with the given `color` and `value`.
  88325. *
  88326. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#OpacityRampStop)
  88327. */
  88328. label: string;
  88329. /**
  88330. * The value of the opacity visual variable [stop](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-OpacityVariable.html#stops).
  88331. *
  88332. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#OpacityRampStop)
  88333. */
  88334. value: number;
  88335. /**
  88336. * The color of the visual variable [stop](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-OpacityVariable.html#stops).
  88337. *
  88338. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#OpacityRampStop)
  88339. */
  88340. color: Color;
  88341. /**
  88342. * A number between `0` and `1` describing the position of the label on the ramp.
  88343. *
  88344. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#OpacityRampStop)
  88345. */
  88346. offset: number;
  88347. }
  88348. /**
  88349. * Describes the schema of the RampTitle element.
  88350. *
  88351. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#RampTitle)
  88352. */
  88353. export interface RampTitle {
  88354. /**
  88355. * The field name used in a visual variable of a renderer.
  88356. *
  88357. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#RampTitle)
  88358. */
  88359. field: string;
  88360. /**
  88361. * If provided, the normalization field name used in a visual variable of a renderer.
  88362. *
  88363. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#RampTitle)
  88364. */
  88365. normField: string;
  88366. /**
  88367. * If `true`, the legend formats to display the field and normalization field as a ratio.
  88368. *
  88369. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#RampTitle)
  88370. */
  88371. ratio: boolean;
  88372. /**
  88373. * If `true`, the legend formats to display the field and normalization field as a percentage.
  88374. *
  88375. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#RampTitle)
  88376. */
  88377. ratioPercent: boolean;
  88378. /**
  88379. * If `true`, the legend formats to display the field and normalization field as a percentage of total.
  88380. *
  88381. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#RampTitle)
  88382. */
  88383. ratioPercentTotal: boolean;
  88384. }
  88385. /**
  88386. * Describes the schema of the RelationshipLabels element.
  88387. *
  88388. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#RelationshipLabels)
  88389. */
  88390. export interface RelationshipLabels {
  88391. /**
  88392. * The label corresponding with the top corner of the legend if the focus is set to `HH`.
  88393. *
  88394. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#RelationshipLabels)
  88395. */
  88396. top: string;
  88397. /**
  88398. * The label corresponding with the bottom corner of the legend if the focus is set to `HH`.
  88399. *
  88400. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#RelationshipLabels)
  88401. */
  88402. bottom: string;
  88403. /**
  88404. * The label corresponding with the left corner of the legend (if the focus is set to `HH`).
  88405. *
  88406. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#RelationshipLabels)
  88407. */
  88408. left: string;
  88409. /**
  88410. * The label corresponding with the right corner of the legend (if the focus is set to `HH`).
  88411. *
  88412. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#RelationshipLabels)
  88413. */
  88414. right: string;
  88415. }
  88416. /**
  88417. * Describes the schema of the RelationshipRampElement used as a [legendElement](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#legendElement).
  88418. *
  88419. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#RelationshipRampElement)
  88420. */
  88421. export interface RelationshipRampElement {
  88422. /**
  88423. * The type of this element is always `relationship-ramp`.
  88424. *
  88425. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#RelationshipRampElement)
  88426. */
  88427. type: string;
  88428. /**
  88429. * The number of classes for each field comprising the renderer.
  88430. *
  88431. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#RelationshipRampElement)
  88432. */
  88433. numClasses: number;
  88434. /**
  88435. * Determines the orientation of the Legend.
  88436. *
  88437. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#RelationshipRampElement)
  88438. */
  88439. focus: string;
  88440. /**
  88441. * A 2-dimensional array of colors as displayed in the legend grid.
  88442. *
  88443. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#RelationshipRampElement)
  88444. */
  88445. colors: Color[][];
  88446. /**
  88447. * The labels for each corner of the legend.
  88448. *
  88449. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#RelationshipRampElement)
  88450. */
  88451. labels: RelationshipLabels;
  88452. /**
  88453. * The rotation of the legend in degrees (0-360).
  88454. *
  88455. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#RelationshipRampElement)
  88456. */
  88457. rotation: number;
  88458. /**
  88459. * The title of the renderer as displayed in the legend.
  88460. *
  88461. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#RelationshipRampElement)
  88462. */
  88463. title?: string;
  88464. /**
  88465. * Info objects associated with the relationship renderer.
  88466. *
  88467. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#RelationshipRampElement)
  88468. */
  88469. infos?: any[];
  88470. }
  88471. /**
  88472. * Describes the schema of the RendererTitle element.
  88473. *
  88474. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#RendererTitle)
  88475. */
  88476. export interface RendererTitle {
  88477. /**
  88478. * The title of the renderer as displayed in the legend.
  88479. *
  88480. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#RendererTitle)
  88481. */
  88482. title?: string;
  88483. /**
  88484. * The field name used in the renderer.
  88485. *
  88486. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#RendererTitle)
  88487. */
  88488. field: string;
  88489. /**
  88490. * If a normalization field is provided to the renderer, this field is also used in the generated title for the renderer in the legend.
  88491. *
  88492. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#RendererTitle)
  88493. */
  88494. normField: string;
  88495. /**
  88496. * Indicates if a percentage is used in the normalization of the renderer.
  88497. *
  88498. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#RendererTitle)
  88499. */
  88500. normByPct: boolean;
  88501. }
  88502. /**
  88503. * Describes the schema of the SizeRampElement used as a [legendElement](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#legendElement).
  88504. *
  88505. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#SizeRampElement)
  88506. */
  88507. export interface SizeRampElement {
  88508. /**
  88509. * The type of this element is always `size-ramp`.
  88510. *
  88511. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#SizeRampElement)
  88512. */
  88513. type: string;
  88514. /**
  88515. * The title of the size ramp as displayed in the legend.
  88516. *
  88517. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#SizeRampElement)
  88518. */
  88519. title?: string | RampTitle;
  88520. /**
  88521. * The individual size stops rendered in the legend that correspond to the size visual variable in the renderer.
  88522. *
  88523. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#SizeRampElement)
  88524. */
  88525. infos: SizeRampStop[];
  88526. }
  88527. /**
  88528. * Describes the schema of the SizeRampStop element.
  88529. *
  88530. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#SizeRampStop)
  88531. */
  88532. export interface SizeRampStop {
  88533. /**
  88534. * The label in the legend describing features with the given `symbol` and `value`.
  88535. *
  88536. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#SizeRampStop)
  88537. */
  88538. label: string;
  88539. /**
  88540. * The value of the size visual variable [stop](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html#stops).
  88541. *
  88542. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#SizeRampStop)
  88543. */
  88544. value?: any;
  88545. /**
  88546. * The symbol corresponding to the value of the stop in the renderer.
  88547. *
  88548. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#SizeRampStop)
  88549. */
  88550. symbol: Symbol;
  88551. /**
  88552. * The size of the visual variable [stop](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html#stops) in points.
  88553. *
  88554. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#SizeRampStop)
  88555. */
  88556. size?: number;
  88557. /**
  88558. * The width of the outline in points.
  88559. *
  88560. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#SizeRampStop)
  88561. */
  88562. outlineSize?: number;
  88563. /**
  88564. * The HTML element rendered in the legend representing features with the given value.
  88565. *
  88566. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#SizeRampStop)
  88567. */
  88568. preview?: HTMLElement;
  88569. }
  88570. /**
  88571. * Describes the schema of the SymbolTableElement used as a [legendElement](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#legendElement).
  88572. *
  88573. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#SymbolTableElement)
  88574. */
  88575. export interface SymbolTableElement {
  88576. /**
  88577. * The type of this element is always `symbol-table`.
  88578. *
  88579. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#SymbolTableElement)
  88580. */
  88581. type: string;
  88582. /**
  88583. * The title of the renderer as displayed in the legend.
  88584. *
  88585. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#SymbolTableElement)
  88586. */
  88587. title?: string | RendererTitle;
  88588. /**
  88589. * Only used for renderers set to ImageryLayers.
  88590. *
  88591. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#SymbolTableElement)
  88592. */
  88593. legendType?: string;
  88594. /**
  88595. * An array of each symbol/category/break rendered for the symbol table.
  88596. *
  88597. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#SymbolTableElement)
  88598. */
  88599. infos: SymbolTableElementType[];
  88600. }
  88601. /**
  88602. * Properties defining the scheme of the SymbolTableElementInfo.
  88603. *
  88604. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#SymbolTableElementInfo)
  88605. */
  88606. export interface SymbolTableElementInfo {
  88607. /**
  88608. * The title of the renderer as displayed in the Legend.
  88609. *
  88610. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#SymbolTableElementInfo)
  88611. */
  88612. label: string | RampTitle;
  88613. /**
  88614. * The value corresponding with the given `symbol` in the legend.
  88615. *
  88616. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#SymbolTableElementInfo)
  88617. */
  88618. value?: any;
  88619. /**
  88620. * The symbol for the corresponding `value` in the legend.
  88621. *
  88622. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#SymbolTableElementInfo)
  88623. */
  88624. symbol: Symbol;
  88625. /**
  88626. * The size of the symbol in points.
  88627. *
  88628. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#SymbolTableElementInfo)
  88629. */
  88630. size?: number;
  88631. /**
  88632. * A preview of the symbol element as displayed in the legend.
  88633. *
  88634. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#SymbolTableElementInfo)
  88635. */
  88636. preview?: HTMLElement;
  88637. }
  88638. /**
  88639. * Properties defining the scheme of each SymbolTableElementType.
  88640. *
  88641. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend-support-ActiveLayerInfo.html#SymbolTableElementType)
  88642. */
  88643. export type SymbolTableElementType = ImageSymbolTableElementInfo | SymbolTableElementInfo;
  88644. export interface LegendLayerInfos {
  88645. /**
  88646. * Specifies a title for the layer to display above its symbols and descriptions.
  88647. *
  88648. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#layerInfos)
  88649. */
  88650. title?: string;
  88651. /**
  88652. * A layer to display in the legend.
  88653. *
  88654. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#layerInfos)
  88655. */
  88656. layer: Layer;
  88657. /**
  88658. * Only applicable if the `layer` is a [MapImageLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html).
  88659. *
  88660. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#layerInfos)
  88661. */
  88662. sublayerIds?: number[];
  88663. }
  88664. export interface LegendStyle {
  88665. /**
  88666. * Specifies the style of the legend.
  88667. *
  88668. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#style)
  88669. */
  88670. type: "classic" | "card";
  88671. /**
  88672. * When a `card` type is specified, you can specify one of the following layout options.
  88673. *
  88674. * @default stack
  88675. *
  88676. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Legend.html#style)
  88677. */
  88678. layout?: "auto" | "side-by-side" | "stack";
  88679. }
  88680. export class LineOfSight extends Widget {
  88681. /**
  88682. * The line of sight analysis object being created or modified by the widget.
  88683. *
  88684. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight.html#analysis)
  88685. */
  88686. readonly analysis: LineOfSightAnalysis;
  88687. /**
  88688. * The widget's default CSS icon class.
  88689. *
  88690. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight.html#iconClass)
  88691. */
  88692. iconClass: string;
  88693. /**
  88694. * A reference to the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  88695. *
  88696. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight.html#view)
  88697. */
  88698. view: SceneView;
  88699. /**
  88700. * The view model for this widget.
  88701. *
  88702. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight.html#viewModel)
  88703. */
  88704. viewModel: LineOfSightViewModel;
  88705. /**
  88706. * The LineOfSight widget is a 3D analysis tool that allows you to perform visibility analysis in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  88707. *
  88708. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight.html)
  88709. */
  88710. constructor(properties?: LineOfSightProperties);
  88711. }
  88712. /** @deprecated Import the LineOfSight class instead. */
  88713. export type LineOfSightConstructor = typeof LineOfSight;
  88714. interface LineOfSightProperties extends WidgetProperties {
  88715. /**
  88716. * The line of sight analysis object being created or modified by the widget.
  88717. *
  88718. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight.html#analysis)
  88719. */
  88720. analysis?: LineOfSightAnalysisProperties;
  88721. /**
  88722. * The widget's default CSS icon class.
  88723. *
  88724. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight.html#iconClass)
  88725. */
  88726. iconClass?: string;
  88727. /**
  88728. * A reference to the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  88729. *
  88730. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight.html#view)
  88731. */
  88732. view?: SceneViewProperties;
  88733. /**
  88734. * The view model for this widget.
  88735. *
  88736. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight.html#viewModel)
  88737. */
  88738. viewModel?: LineOfSightViewModelProperties;
  88739. }
  88740. export class LineOfSightTarget extends Accessor {
  88741. /**
  88742. * The first [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) intersected by the line of sight.
  88743. *
  88744. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight-LineOfSightTarget.html#intersectedGraphic)
  88745. */
  88746. readonly intersectedGraphic: Graphic;
  88747. /**
  88748. * A [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) representing the location where the line of sight first intersects the ground or 3D objects in the scene.
  88749. *
  88750. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight-LineOfSightTarget.html#intersectedLocation)
  88751. */
  88752. readonly intersectedLocation: Point;
  88753. /**
  88754. * A [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) representing the location of the target.
  88755. *
  88756. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight-LineOfSightTarget.html#location)
  88757. */
  88758. location: Point;
  88759. /**
  88760. * Whether the target is visible from the observer or not.
  88761. *
  88762. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight-LineOfSightTarget.html#visible)
  88763. */
  88764. readonly visible: boolean;
  88765. /**
  88766. * This class represents a target point for a [LineOfSight](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight.html) analysis.
  88767. *
  88768. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight-LineOfSightTarget.html)
  88769. */
  88770. constructor(properties?: LineOfSightTargetProperties);
  88771. }
  88772. /** @deprecated Import the LineOfSightTarget class instead. */
  88773. export type LineOfSightTargetConstructor = typeof LineOfSightTarget;
  88774. interface LineOfSightTargetProperties {
  88775. /**
  88776. * A [Point](https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html) representing the location of the target.
  88777. *
  88778. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight-LineOfSightTarget.html#location)
  88779. */
  88780. location?: PointProperties;
  88781. }
  88782. export class LineOfSightViewModel extends Accessor {
  88783. /**
  88784. * The line of sight analysis object being created or modified by the view model.
  88785. *
  88786. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight-LineOfSightViewModel.html#analysis)
  88787. */
  88788. readonly analysis: LineOfSightAnalysis;
  88789. /**
  88790. * The observer's viewpoint from which lines of sight will be drawn towards the targets.
  88791. *
  88792. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight-LineOfSightViewModel.html#observer)
  88793. */
  88794. observer: Point;
  88795. /**
  88796. * The view model's state.
  88797. *
  88798. * @default disabled
  88799. *
  88800. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight-LineOfSightViewModel.html#state)
  88801. */
  88802. readonly state: "disabled" | "ready" | "creating" | "created";
  88803. /**
  88804. * A collection of [LineOfSightTarget](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight-LineOfSightTarget.html) containing the target location and the analysis results.
  88805. *
  88806. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight-LineOfSightViewModel.html#targets)
  88807. */
  88808. targets: Collection<LineOfSightTarget>;
  88809. /**
  88810. * The view from which the widget will operate.
  88811. *
  88812. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight-LineOfSightViewModel.html#view)
  88813. */
  88814. view: SceneView;
  88815. /**
  88816. * Provides the logic for the [LineOfSight](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight.html) widget.
  88817. *
  88818. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight-LineOfSightViewModel.html)
  88819. */
  88820. constructor(properties?: LineOfSightViewModelProperties);
  88821. /**
  88822. * Clears the current analysis results.
  88823. *
  88824. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight-LineOfSightViewModel.html#clear)
  88825. */
  88826. clear(): void;
  88827. /**
  88828. * If stopped, this method continues the line of sight analysis and the user can add more targets.
  88829. *
  88830. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight-LineOfSightViewModel.html#continue)
  88831. */
  88832. continue(): void;
  88833. /**
  88834. * Starts a new line of sight analysis.
  88835. *
  88836. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight-LineOfSightViewModel.html#start)
  88837. */
  88838. start(): void;
  88839. /**
  88840. * Stops the current line of sight analysis, keeping the results in the view.
  88841. *
  88842. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight-LineOfSightViewModel.html#stop)
  88843. */
  88844. stop(): void;
  88845. }
  88846. /** @deprecated Import the LineOfSightViewModel class instead. */
  88847. export type LineOfSightViewModelConstructor = typeof LineOfSightViewModel;
  88848. interface LineOfSightViewModelProperties {
  88849. /**
  88850. * The line of sight analysis object being created or modified by the view model.
  88851. *
  88852. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight-LineOfSightViewModel.html#analysis)
  88853. */
  88854. analysis?: LineOfSightAnalysisProperties;
  88855. /**
  88856. * The observer's viewpoint from which lines of sight will be drawn towards the targets.
  88857. *
  88858. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight-LineOfSightViewModel.html#observer)
  88859. */
  88860. observer?: PointProperties;
  88861. /**
  88862. * A collection of [LineOfSightTarget](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight-LineOfSightTarget.html) containing the target location and the analysis results.
  88863. *
  88864. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight-LineOfSightViewModel.html#targets)
  88865. */
  88866. targets?: CollectionProperties<LineOfSightTargetProperties>;
  88867. /**
  88868. * The view from which the widget will operate.
  88869. *
  88870. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-LineOfSight-LineOfSightViewModel.html#view)
  88871. */
  88872. view?: SceneViewProperties;
  88873. }
  88874. export interface Locate extends Widget, GoTo {
  88875. }
  88876. export class Locate {
  88877. /**
  88878. * The HTML5 Geolocation Position options for locating.
  88879. *
  88880. * @default { maximumAge: 0, timeout: 15000, enableHighAccuracy: true }
  88881. *
  88882. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#geolocationOptions)
  88883. */
  88884. geolocationOptions: any;
  88885. /**
  88886. * Indicates whether the widget should navigate the view to the position and scale of the geolocated result.
  88887. *
  88888. * @default true
  88889. *
  88890. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#goToLocationEnabled)
  88891. */
  88892. goToLocationEnabled: boolean;
  88893. /**
  88894. * The graphic used to show the user's location on the map.
  88895. *
  88896. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#graphic)
  88897. */
  88898. graphic: Graphic;
  88899. /**
  88900. * The widget's default CSS icon class.
  88901. *
  88902. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#iconClass)
  88903. */
  88904. iconClass: string;
  88905. /**
  88906. * Indicates whether to display the [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html) of the result graphic from the [locate()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate-LocateViewModel.html#locate) method.
  88907. *
  88908. * @default true
  88909. *
  88910. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#popupEnabled)
  88911. */
  88912. popupEnabled: boolean;
  88913. /**
  88914. * Indicates the scale to set on the view when navigating to the position of the geolocated result once a location is returned from the [track](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#event-track) event.
  88915. *
  88916. * @default null
  88917. *
  88918. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#scale)
  88919. */
  88920. scale: number;
  88921. /**
  88922. * Indicates whether the widget will automatically [rotate to user's direction](https://www.w3.org/TR/geolocation-API/#coordinates_interface).
  88923. *
  88924. * @default true
  88925. *
  88926. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#useHeadingEnabled)
  88927. */
  88928. useHeadingEnabled: boolean;
  88929. /**
  88930. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  88931. *
  88932. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#view)
  88933. */
  88934. view: MapView | SceneView;
  88935. /**
  88936. * The view model for this widget.
  88937. *
  88938. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#viewModel)
  88939. */
  88940. viewModel: LocateViewModel;
  88941. /**
  88942. * Provides a simple widget that animates the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html) to the user's current location.
  88943. *
  88944. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html)
  88945. */
  88946. constructor(properties?: LocateProperties);
  88947. /**
  88948. * This function provides the ability to interrupt and cancel the process of programmatically obtaining the location of the user's device.
  88949. *
  88950. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#cancelLocate)
  88951. */
  88952. cancelLocate(): void;
  88953. /**
  88954. * Animates the view to the user's location.
  88955. *
  88956. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#locate)
  88957. */
  88958. locate(): Promise<any>;
  88959. on(name: "locate", eventHandler: LocateLocateEventHandler): IHandle;
  88960. on(name: "locate-error", eventHandler: LocateLocateErrorEventHandler): IHandle;
  88961. }
  88962. /** @deprecated Import the Locate class instead. */
  88963. export type LocateConstructor = typeof Locate;
  88964. interface LocateProperties extends WidgetProperties, GoToProperties {
  88965. /**
  88966. * The HTML5 Geolocation Position options for locating.
  88967. *
  88968. * @default { maximumAge: 0, timeout: 15000, enableHighAccuracy: true }
  88969. *
  88970. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#geolocationOptions)
  88971. */
  88972. geolocationOptions?: any;
  88973. /**
  88974. * Indicates whether the widget should navigate the view to the position and scale of the geolocated result.
  88975. *
  88976. * @default true
  88977. *
  88978. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#goToLocationEnabled)
  88979. */
  88980. goToLocationEnabled?: boolean;
  88981. /**
  88982. * The graphic used to show the user's location on the map.
  88983. *
  88984. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#graphic)
  88985. */
  88986. graphic?: GraphicProperties;
  88987. /**
  88988. * The widget's default CSS icon class.
  88989. *
  88990. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#iconClass)
  88991. */
  88992. iconClass?: string;
  88993. /**
  88994. * Indicates whether to display the [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html) of the result graphic from the [locate()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate-LocateViewModel.html#locate) method.
  88995. *
  88996. * @default true
  88997. *
  88998. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#popupEnabled)
  88999. */
  89000. popupEnabled?: boolean;
  89001. /**
  89002. * Indicates the scale to set on the view when navigating to the position of the geolocated result once a location is returned from the [track](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#event-track) event.
  89003. *
  89004. * @default null
  89005. *
  89006. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#scale)
  89007. */
  89008. scale?: number;
  89009. /**
  89010. * Indicates whether the widget will automatically [rotate to user's direction](https://www.w3.org/TR/geolocation-API/#coordinates_interface).
  89011. *
  89012. * @default true
  89013. *
  89014. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#useHeadingEnabled)
  89015. */
  89016. useHeadingEnabled?: boolean;
  89017. /**
  89018. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  89019. *
  89020. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#view)
  89021. */
  89022. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  89023. /**
  89024. * The view model for this widget.
  89025. *
  89026. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html#viewModel)
  89027. */
  89028. viewModel?: LocateViewModelProperties;
  89029. }
  89030. export interface LocateViewModel extends Accessor, Evented, GeolocationPositioning, GoTo {
  89031. }
  89032. export class LocateViewModel {
  89033. /**
  89034. * Indicates whether to display the [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html) of the result graphic from the [locate()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate-LocateViewModel.html#locate) method.
  89035. *
  89036. * @default true
  89037. *
  89038. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate-LocateViewModel.html#popupEnabled)
  89039. */
  89040. popupEnabled: boolean;
  89041. /**
  89042. * The current state of the widget.
  89043. *
  89044. * @default disabled
  89045. *
  89046. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate-LocateViewModel.html#state)
  89047. */
  89048. readonly state: "disabled" | "ready" | "locating";
  89049. /**
  89050. * Provides the logic for the [Locate](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate.html) widget, which animates the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html) to the user's current location.
  89051. *
  89052. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate-LocateViewModel.html)
  89053. */
  89054. constructor(properties?: LocateViewModelProperties);
  89055. /**
  89056. * This function provides the ability to interrupt and cancel the process of programmatically obtaining the location of the user's device.
  89057. *
  89058. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate-LocateViewModel.html#cancelLocate)
  89059. */
  89060. cancelLocate(): void;
  89061. /**
  89062. * Animates the view to the user's location.
  89063. *
  89064. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate-LocateViewModel.html#locate)
  89065. */
  89066. locate(): Promise<any>;
  89067. on(name: "locate-error", eventHandler: LocateViewModelLocateErrorEventHandler): IHandle;
  89068. }
  89069. /** @deprecated Import the LocateViewModel class instead. */
  89070. export type LocateViewModelConstructor = typeof LocateViewModel;
  89071. interface LocateViewModelProperties extends GeolocationPositioningProperties, GoToProperties {
  89072. /**
  89073. * Indicates whether to display the [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html) of the result graphic from the [locate()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate-LocateViewModel.html#locate) method.
  89074. *
  89075. * @default true
  89076. *
  89077. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Locate-LocateViewModel.html#popupEnabled)
  89078. */
  89079. popupEnabled?: boolean;
  89080. }
  89081. export interface LocateViewModelLocateErrorEvent {
  89082. error: Error;
  89083. }
  89084. export interface LocateLocateErrorEvent {
  89085. error: Error;
  89086. }
  89087. export interface LocateLocateEvent {
  89088. position: any;
  89089. }
  89090. export class Measurement extends Widget {
  89091. /**
  89092. * Specifies the current measurement tool to display.
  89093. *
  89094. * @default null
  89095. *
  89096. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement.html#activeTool)
  89097. */
  89098. activeTool: "area" | "distance" | "direct-line";
  89099. /**
  89100. * The measurement widget that is currently being used.
  89101. *
  89102. * @default null
  89103. *
  89104. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement.html#activeWidget)
  89105. */
  89106. readonly activeWidget: AreaMeasurement2D | AreaMeasurement3D | DirectLineMeasurement3D | DistanceMeasurement2D;
  89107. /**
  89108. * Unit system (imperial, metric) or specific unit used for displaying the area values.
  89109. *
  89110. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement.html#areaUnit)
  89111. */
  89112. areaUnit: SystemOrAreaUnit;
  89113. /**
  89114. * The widget's default CSS icon class.
  89115. *
  89116. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement.html#iconClass)
  89117. */
  89118. readonly iconClass: string;
  89119. /**
  89120. * Unit system (imperial, metric) or specific unit used for displaying the distance values.
  89121. *
  89122. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement.html#linearUnit)
  89123. */
  89124. linearUnit: SystemOrLengthUnit;
  89125. /**
  89126. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  89127. *
  89128. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement.html#view)
  89129. */
  89130. view: MapView | SceneView;
  89131. /**
  89132. * The view model for this widget.
  89133. *
  89134. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement.html#viewModel)
  89135. */
  89136. viewModel: MeasurementViewModel;
  89137. /**
  89138. * The Measurement widget groups and manages multiple measurement tools and allows you to easily switch between them using the [activeTool](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement.html#activeTool) property.
  89139. *
  89140. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement.html)
  89141. */
  89142. constructor(properties?: MeasurementProperties);
  89143. /**
  89144. * Removes all measurement widgets and associated graphics.
  89145. *
  89146. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement.html#clear)
  89147. */
  89148. clear(): void;
  89149. /**
  89150. * Starts a new measurement for the active measurement widget.
  89151. *
  89152. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement.html#startMeasurement)
  89153. */
  89154. startMeasurement(): void;
  89155. }
  89156. /** @deprecated Import the Measurement class instead. */
  89157. export type MeasurementConstructor = typeof Measurement;
  89158. interface MeasurementProperties extends WidgetProperties {
  89159. /**
  89160. * Specifies the current measurement tool to display.
  89161. *
  89162. * @default null
  89163. *
  89164. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement.html#activeTool)
  89165. */
  89166. activeTool?: "area" | "distance" | "direct-line";
  89167. /**
  89168. * Unit system (imperial, metric) or specific unit used for displaying the area values.
  89169. *
  89170. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement.html#areaUnit)
  89171. */
  89172. areaUnit?: | "imperial"
  89173. | "metric"
  89174. | "square-millimeters"
  89175. | "square-centimeters"
  89176. | "square-decimeters"
  89177. | "square-meters"
  89178. | "square-kilometers"
  89179. | "square-inches"
  89180. | "square-feet"
  89181. | "square-yards"
  89182. | "square-miles"
  89183. | "square-us-feet"
  89184. | "acres"
  89185. | "ares"
  89186. | "hectares";
  89187. /**
  89188. * Unit system (imperial, metric) or specific unit used for displaying the distance values.
  89189. *
  89190. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement.html#linearUnit)
  89191. */
  89192. linearUnit?: | "imperial"
  89193. | "metric"
  89194. | "millimeters"
  89195. | "centimeters"
  89196. | "decimeters"
  89197. | "meters"
  89198. | "kilometers"
  89199. | "inches"
  89200. | "feet"
  89201. | "yards"
  89202. | "miles"
  89203. | "nautical-miles"
  89204. | "us-feet";
  89205. /**
  89206. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  89207. *
  89208. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement.html#view)
  89209. */
  89210. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  89211. /**
  89212. * The view model for this widget.
  89213. *
  89214. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement.html#viewModel)
  89215. */
  89216. viewModel?: MeasurementViewModelProperties;
  89217. }
  89218. export class MeasurementViewModel extends Accessor {
  89219. /**
  89220. * Specifies the current measurement tool to display.
  89221. *
  89222. * @default null
  89223. *
  89224. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement-MeasurementViewModel.html#activeTool)
  89225. */
  89226. activeTool: "area" | "distance" | "direct-line";
  89227. /**
  89228. * View model of the active measurement widget.
  89229. *
  89230. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement-MeasurementViewModel.html#activeViewModel)
  89231. */
  89232. activeViewModel: | AreaMeasurement2DViewModel
  89233. | AreaMeasurement3DViewModel
  89234. | DirectLineMeasurement3DViewModel
  89235. | DistanceMeasurement2DViewModel;
  89236. /**
  89237. * Unit system (imperial, metric) or specific unit used for displaying the area values.
  89238. *
  89239. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement-MeasurementViewModel.html#areaUnit)
  89240. */
  89241. areaUnit: SystemOrAreaUnit;
  89242. /**
  89243. * Unit system (imperial, metric) or specific unit used for displaying the distance values.
  89244. *
  89245. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement-MeasurementViewModel.html#linearUnit)
  89246. */
  89247. linearUnit: SystemOrLengthUnit;
  89248. /**
  89249. * The ViewModel's state.
  89250. *
  89251. * @default disabled
  89252. *
  89253. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement-MeasurementViewModel.html#state)
  89254. */
  89255. readonly state: "disabled" | "ready" | "measuring" | "measured";
  89256. /**
  89257. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  89258. *
  89259. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement-MeasurementViewModel.html#view)
  89260. */
  89261. view: MapView | SceneView;
  89262. /**
  89263. * Provides the logic for the [Measurement](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement.html) widget.
  89264. *
  89265. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement-MeasurementViewModel.html)
  89266. */
  89267. constructor(properties?: MeasurementViewModelProperties);
  89268. }
  89269. /** @deprecated Import the MeasurementViewModel class instead. */
  89270. export type MeasurementViewModelConstructor = typeof MeasurementViewModel;
  89271. interface MeasurementViewModelProperties {
  89272. /**
  89273. * Specifies the current measurement tool to display.
  89274. *
  89275. * @default null
  89276. *
  89277. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement-MeasurementViewModel.html#activeTool)
  89278. */
  89279. activeTool?: "area" | "distance" | "direct-line";
  89280. /**
  89281. * View model of the active measurement widget.
  89282. *
  89283. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement-MeasurementViewModel.html#activeViewModel)
  89284. */
  89285. activeViewModel?: | AreaMeasurement2DViewModel
  89286. | AreaMeasurement3DViewModelProperties
  89287. | DirectLineMeasurement3DViewModelProperties
  89288. | DistanceMeasurement2DViewModelProperties;
  89289. /**
  89290. * Unit system (imperial, metric) or specific unit used for displaying the area values.
  89291. *
  89292. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement-MeasurementViewModel.html#areaUnit)
  89293. */
  89294. areaUnit?: | "imperial"
  89295. | "metric"
  89296. | "square-millimeters"
  89297. | "square-centimeters"
  89298. | "square-decimeters"
  89299. | "square-meters"
  89300. | "square-kilometers"
  89301. | "square-inches"
  89302. | "square-feet"
  89303. | "square-yards"
  89304. | "square-miles"
  89305. | "square-us-feet"
  89306. | "acres"
  89307. | "ares"
  89308. | "hectares";
  89309. /**
  89310. * Unit system (imperial, metric) or specific unit used for displaying the distance values.
  89311. *
  89312. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement-MeasurementViewModel.html#linearUnit)
  89313. */
  89314. linearUnit?: | "imperial"
  89315. | "metric"
  89316. | "millimeters"
  89317. | "centimeters"
  89318. | "decimeters"
  89319. | "meters"
  89320. | "kilometers"
  89321. | "inches"
  89322. | "feet"
  89323. | "yards"
  89324. | "miles"
  89325. | "nautical-miles"
  89326. | "us-feet";
  89327. /**
  89328. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  89329. *
  89330. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Measurement-MeasurementViewModel.html#view)
  89331. */
  89332. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  89333. }
  89334. export class NavigationToggle extends Widget {
  89335. /**
  89336. * The widget's default CSS icon class.
  89337. *
  89338. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-NavigationToggle.html#iconClass)
  89339. */
  89340. iconClass: string;
  89341. /**
  89342. * Sets the layout of the widget to either `horizontal` or `vertical`.
  89343. *
  89344. * @default vertical
  89345. *
  89346. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-NavigationToggle.html#layout)
  89347. */
  89348. layout: "vertical" | "horizontal";
  89349. /**
  89350. * A reference to the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  89351. *
  89352. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-NavigationToggle.html#view)
  89353. */
  89354. view: SceneView;
  89355. /**
  89356. * The view model for this widget.
  89357. *
  89358. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-NavigationToggle.html#viewModel)
  89359. */
  89360. viewModel: NavigationToggleViewModel;
  89361. /**
  89362. * Provides two simple buttons for toggling the [navigation mode](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-NavigationToggle-NavigationToggleViewModel.html#navigationMode) of a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  89363. *
  89364. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-NavigationToggle.html)
  89365. */
  89366. constructor(properties?: NavigationToggleProperties);
  89367. /**
  89368. * Toggles the navigation mode of the [view](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-NavigationToggle.html#view) from `pan` to `rotate` or vice versa.
  89369. *
  89370. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-NavigationToggle.html#toggle)
  89371. */
  89372. toggle(): void;
  89373. }
  89374. /** @deprecated Import the NavigationToggle class instead. */
  89375. export type NavigationToggleConstructor = typeof NavigationToggle;
  89376. interface NavigationToggleProperties extends WidgetProperties {
  89377. /**
  89378. * The widget's default CSS icon class.
  89379. *
  89380. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-NavigationToggle.html#iconClass)
  89381. */
  89382. iconClass?: string;
  89383. /**
  89384. * Sets the layout of the widget to either `horizontal` or `vertical`.
  89385. *
  89386. * @default vertical
  89387. *
  89388. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-NavigationToggle.html#layout)
  89389. */
  89390. layout?: "vertical" | "horizontal";
  89391. /**
  89392. * A reference to the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  89393. *
  89394. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-NavigationToggle.html#view)
  89395. */
  89396. view?: SceneViewProperties;
  89397. /**
  89398. * The view model for this widget.
  89399. *
  89400. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-NavigationToggle.html#viewModel)
  89401. */
  89402. viewModel?: NavigationToggleViewModelProperties;
  89403. }
  89404. export class NavigationToggleViewModel extends Accessor {
  89405. /**
  89406. * The navigation mode of the [view](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-NavigationToggle-NavigationToggleViewModel.html#view).
  89407. *
  89408. * @default pan
  89409. *
  89410. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-NavigationToggle-NavigationToggleViewModel.html#navigationMode)
  89411. */
  89412. navigationMode: "pan" | "rotate";
  89413. /**
  89414. * The state of the widget.
  89415. *
  89416. * @default disabled
  89417. *
  89418. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-NavigationToggle-NavigationToggleViewModel.html#state)
  89419. */
  89420. readonly state: "disabled" | "ready";
  89421. /**
  89422. * The view associated with the widget.
  89423. *
  89424. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-NavigationToggle-NavigationToggleViewModel.html#view)
  89425. */
  89426. view: SceneView;
  89427. /**
  89428. * Provides the logic for the [NavigationToggle](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-NavigationToggle.html) widget, which provides two simple buttons for toggling the [navigation mode](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-NavigationToggle-NavigationToggleViewModel.html#navigationMode) of a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  89429. *
  89430. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-NavigationToggle-NavigationToggleViewModel.html)
  89431. */
  89432. constructor(properties?: NavigationToggleViewModelProperties);
  89433. /**
  89434. * Toggles the navigation mode of the [view](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-NavigationToggle-NavigationToggleViewModel.html#view) from `pan` to `rotate` or vice versa.
  89435. *
  89436. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-NavigationToggle-NavigationToggleViewModel.html#toggle)
  89437. */
  89438. toggle(): void;
  89439. }
  89440. /** @deprecated Import the NavigationToggleViewModel class instead. */
  89441. export type NavigationToggleViewModelConstructor = typeof NavigationToggleViewModel;
  89442. interface NavigationToggleViewModelProperties {
  89443. /**
  89444. * The navigation mode of the [view](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-NavigationToggle-NavigationToggleViewModel.html#view).
  89445. *
  89446. * @default pan
  89447. *
  89448. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-NavigationToggle-NavigationToggleViewModel.html#navigationMode)
  89449. */
  89450. navigationMode?: "pan" | "rotate";
  89451. /**
  89452. * The view associated with the widget.
  89453. *
  89454. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-NavigationToggle-NavigationToggleViewModel.html#view)
  89455. */
  89456. view?: SceneViewProperties;
  89457. }
  89458. export interface Popup extends Widget, GoTo, Evented {
  89459. }
  89460. export class Popup {
  89461. /**
  89462. * Defines actions that may be executed by clicking the icon or image symbolizing them in the popup.
  89463. *
  89464. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#actions)
  89465. */
  89466. actions: Collection<ActionButton | ActionToggle>;
  89467. /**
  89468. * Position of the popup in relation to the selected feature.
  89469. *
  89470. * @default auto
  89471. *
  89472. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#alignment)
  89473. */
  89474. alignment: "auto" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | Function;
  89475. /**
  89476. * This closes the popup when the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html) camera or [Viewpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html) changes.
  89477. *
  89478. * @default false
  89479. *
  89480. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#autoCloseEnabled)
  89481. */
  89482. autoCloseEnabled: boolean;
  89483. /**
  89484. * This property indicates to the `Popup` that it needs to allow or disallow the click event propagation.
  89485. *
  89486. * @default true
  89487. *
  89488. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#autoOpenEnabled)
  89489. */
  89490. autoOpenEnabled: boolean;
  89491. /**
  89492. * Indicates whether the popup displays its content.
  89493. *
  89494. * @default false
  89495. *
  89496. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#collapsed)
  89497. */
  89498. collapsed: boolean;
  89499. /**
  89500. * Indicates whether to enable collapse functionality for the popup.
  89501. *
  89502. * @default true
  89503. *
  89504. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#collapseEnabled)
  89505. */
  89506. collapseEnabled: boolean;
  89507. /**
  89508. * The content of the popup.
  89509. *
  89510. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#content)
  89511. */
  89512. content: string | HTMLElement | Widget;
  89513. /**
  89514. * Dock position in the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html).
  89515. *
  89516. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#currentDockPosition)
  89517. */
  89518. readonly currentDockPosition: | "auto"
  89519. | "top-center"
  89520. | "top-right"
  89521. | "top-left"
  89522. | "bottom-left"
  89523. | "bottom-center"
  89524. | "bottom-right";
  89525. /**
  89526. * Enables automatic creation of a popup template for layers that have popups enabled but no popupTemplate defined.
  89527. *
  89528. * @default false
  89529. *
  89530. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#defaultPopupTemplateEnabled)
  89531. */
  89532. defaultPopupTemplateEnabled: boolean;
  89533. /**
  89534. * Indicates whether the placement of the popup is docked to the side of the view.
  89535. *
  89536. * @default false
  89537. *
  89538. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#dockEnabled)
  89539. */
  89540. dockEnabled: boolean;
  89541. /**
  89542. * Docking the popup allows for a better user experience, particularly when opening popups in apps on mobile devices.
  89543. *
  89544. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#dockOptions)
  89545. */
  89546. dockOptions: PopupDockOptions;
  89547. /**
  89548. * The number of selected [features](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#features) available to the popup.
  89549. *
  89550. * @default 0
  89551. *
  89552. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#featureCount)
  89553. */
  89554. readonly featureCount: number;
  89555. /**
  89556. * An array of features associated with the popup.
  89557. *
  89558. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#features)
  89559. */
  89560. features: Graphic[];
  89561. /**
  89562. * Indicates the heading level to use for the [title](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#title) of the popup.
  89563. *
  89564. * @default 2
  89565. *
  89566. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#headingLevel)
  89567. */
  89568. headingLevel: number;
  89569. /**
  89570. * Highlight the selected popup feature using the [highlightOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#highlightOptions) set on the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or the [highlightOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#highlightOptions) set on the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  89571. *
  89572. * @default true
  89573. *
  89574. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#highlightEnabled)
  89575. */
  89576. highlightEnabled: boolean;
  89577. /**
  89578. * Point used to position the popup.
  89579. *
  89580. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#location)
  89581. */
  89582. location: Point;
  89583. /**
  89584. * Defines the maximum icons displayed at one time in the action area.
  89585. *
  89586. * @default 3
  89587. *
  89588. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#maxInlineActions)
  89589. */
  89590. maxInlineActions: number | null;
  89591. /**
  89592. * An array of pending Promises that have not yet been fulfilled.
  89593. *
  89594. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#promises)
  89595. */
  89596. promises: Promise<any>[];
  89597. /**
  89598. * The selected feature accessed by the popup.
  89599. *
  89600. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#selectedFeature)
  89601. */
  89602. readonly selectedFeature: Graphic;
  89603. /**
  89604. * Index of the feature that is [selected](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#selectedFeature).
  89605. *
  89606. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#selectedFeatureIndex)
  89607. */
  89608. selectedFeatureIndex: number;
  89609. /**
  89610. * Returns a reference to the current [Feature](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html) that the Popup is using.
  89611. *
  89612. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#selectedFeatureWidget)
  89613. */
  89614. readonly selectedFeatureWidget: Feature;
  89615. /**
  89616. * Indicates whether to display a spinner at the popup location prior to its display when it has pending promises.
  89617. *
  89618. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#spinnerEnabled)
  89619. */
  89620. spinnerEnabled: boolean;
  89621. /**
  89622. * The title of the popup.
  89623. *
  89624. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#title)
  89625. */
  89626. title: string;
  89627. /**
  89628. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  89629. *
  89630. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#view)
  89631. */
  89632. view: MapView | SceneView;
  89633. /**
  89634. * This is a class that contains all the logic (properties and methods) that controls this widget's behavior.
  89635. *
  89636. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#viewModel)
  89637. */
  89638. viewModel: PopupViewModel;
  89639. /**
  89640. * The visible elements that are displayed within the widget.
  89641. *
  89642. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#visibleElements)
  89643. */
  89644. visibleElements: PopupVisibleElements;
  89645. /**
  89646. * The Popup widget allows users to view content from feature attributes.
  89647. *
  89648. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html)
  89649. */
  89650. constructor(properties?: PopupProperties);
  89651. /**
  89652. * Use this method to remove focus from the Widget.
  89653. *
  89654. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#blur)
  89655. */
  89656. blur(): void;
  89657. /**
  89658. * Removes [promises](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#promises), [features](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#features), [content](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#content), [title](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#title) and [location](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#location) from the Popup.
  89659. *
  89660. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#clear)
  89661. */
  89662. clear(): void;
  89663. /**
  89664. * Closes the popup by setting its [visible](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#visible) property to `false`.
  89665. *
  89666. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#close)
  89667. */
  89668. close(): void;
  89669. /**
  89670. * Use this method to return feature(s) at a given screen location.
  89671. *
  89672. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#fetchFeatures)
  89673. */
  89674. fetchFeatures(screenPoint: PopupFetchFeaturesScreenPoint, options?: FetchFeaturesOptions): Promise<FetchPopupFeaturesResult>;
  89675. /**
  89676. * Use this method to give focus to the Widget if the widget is able to be focused.
  89677. *
  89678. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#focus)
  89679. */
  89680. focus(): void;
  89681. /**
  89682. * Selects the feature at the next index in relation to the selected feature.
  89683. *
  89684. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#next)
  89685. */
  89686. next(): PopupViewModel;
  89687. /**
  89688. * Opens the popup at the given location with content defined either explicitly with `content` or driven from the [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html) of input features.
  89689. *
  89690. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#open)
  89691. */
  89692. open(options?: PopupOpenOptions): void;
  89693. /**
  89694. * Selects the feature at the previous index in relation to the selected feature.
  89695. *
  89696. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#previous)
  89697. */
  89698. previous(): PopupViewModel;
  89699. /**
  89700. * Positions the popup on the view.
  89701. *
  89702. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#reposition)
  89703. */
  89704. reposition(): void;
  89705. /**
  89706. * Triggers the [trigger-action](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#event-trigger-action) event and executes the [action](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#actions) at the specified index in the [actions](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#actions) array.
  89707. *
  89708. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#triggerAction)
  89709. */
  89710. triggerAction(actionIndex: number): void;
  89711. on(name: "trigger-action", eventHandler: PopupTriggerActionEventHandler): IHandle;
  89712. }
  89713. /** @deprecated Import the Popup class instead. */
  89714. export type PopupConstructor = typeof Popup;
  89715. interface PopupProperties extends WidgetProperties, GoToProperties {
  89716. /**
  89717. * Defines actions that may be executed by clicking the icon or image symbolizing them in the popup.
  89718. *
  89719. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#actions)
  89720. */
  89721. actions?: CollectionProperties<
  89722. (ActionButtonProperties & { type: "button" }) | (ActionToggleProperties & { type: "toggle" })
  89723. >;
  89724. /**
  89725. * Position of the popup in relation to the selected feature.
  89726. *
  89727. * @default auto
  89728. *
  89729. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#alignment)
  89730. */
  89731. alignment?: "auto" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | Function;
  89732. /**
  89733. * This closes the popup when the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html) camera or [Viewpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html) changes.
  89734. *
  89735. * @default false
  89736. *
  89737. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#autoCloseEnabled)
  89738. */
  89739. autoCloseEnabled?: boolean;
  89740. /**
  89741. * This property indicates to the `Popup` that it needs to allow or disallow the click event propagation.
  89742. *
  89743. * @default true
  89744. *
  89745. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#autoOpenEnabled)
  89746. */
  89747. autoOpenEnabled?: boolean;
  89748. /**
  89749. * Indicates whether the popup displays its content.
  89750. *
  89751. * @default false
  89752. *
  89753. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#collapsed)
  89754. */
  89755. collapsed?: boolean;
  89756. /**
  89757. * Indicates whether to enable collapse functionality for the popup.
  89758. *
  89759. * @default true
  89760. *
  89761. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#collapseEnabled)
  89762. */
  89763. collapseEnabled?: boolean;
  89764. /**
  89765. * The content of the popup.
  89766. *
  89767. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#content)
  89768. */
  89769. content?: string | HTMLElement | WidgetProperties;
  89770. /**
  89771. * Enables automatic creation of a popup template for layers that have popups enabled but no popupTemplate defined.
  89772. *
  89773. * @default false
  89774. *
  89775. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#defaultPopupTemplateEnabled)
  89776. */
  89777. defaultPopupTemplateEnabled?: boolean;
  89778. /**
  89779. * Indicates whether the placement of the popup is docked to the side of the view.
  89780. *
  89781. * @default false
  89782. *
  89783. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#dockEnabled)
  89784. */
  89785. dockEnabled?: boolean;
  89786. /**
  89787. * Docking the popup allows for a better user experience, particularly when opening popups in apps on mobile devices.
  89788. *
  89789. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#dockOptions)
  89790. */
  89791. dockOptions?: PopupDockOptions;
  89792. /**
  89793. * An array of features associated with the popup.
  89794. *
  89795. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#features)
  89796. */
  89797. features?: GraphicProperties[];
  89798. /**
  89799. * Indicates the heading level to use for the [title](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#title) of the popup.
  89800. *
  89801. * @default 2
  89802. *
  89803. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#headingLevel)
  89804. */
  89805. headingLevel?: number;
  89806. /**
  89807. * Highlight the selected popup feature using the [highlightOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#highlightOptions) set on the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or the [highlightOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#highlightOptions) set on the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  89808. *
  89809. * @default true
  89810. *
  89811. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#highlightEnabled)
  89812. */
  89813. highlightEnabled?: boolean;
  89814. /**
  89815. * Point used to position the popup.
  89816. *
  89817. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#location)
  89818. */
  89819. location?: PointProperties;
  89820. /**
  89821. * Defines the maximum icons displayed at one time in the action area.
  89822. *
  89823. * @default 3
  89824. *
  89825. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#maxInlineActions)
  89826. */
  89827. maxInlineActions?: number | null;
  89828. /**
  89829. * An array of pending Promises that have not yet been fulfilled.
  89830. *
  89831. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#promises)
  89832. */
  89833. promises?: Promise<any>[];
  89834. /**
  89835. * Index of the feature that is [selected](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#selectedFeature).
  89836. *
  89837. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#selectedFeatureIndex)
  89838. */
  89839. selectedFeatureIndex?: number;
  89840. /**
  89841. * Indicates whether to display a spinner at the popup location prior to its display when it has pending promises.
  89842. *
  89843. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#spinnerEnabled)
  89844. */
  89845. spinnerEnabled?: boolean;
  89846. /**
  89847. * The title of the popup.
  89848. *
  89849. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#title)
  89850. */
  89851. title?: string;
  89852. /**
  89853. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  89854. *
  89855. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#view)
  89856. */
  89857. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  89858. /**
  89859. * This is a class that contains all the logic (properties and methods) that controls this widget's behavior.
  89860. *
  89861. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#viewModel)
  89862. */
  89863. viewModel?: PopupViewModelProperties;
  89864. /**
  89865. * The visible elements that are displayed within the widget.
  89866. *
  89867. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#visibleElements)
  89868. */
  89869. visibleElements?: PopupVisibleElements;
  89870. }
  89871. export interface PopupViewModel extends Accessor, Evented, GoTo {
  89872. }
  89873. export class PopupViewModel {
  89874. /**
  89875. * [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of [action](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionButton.html) or [action toggle](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionToggle.html) objects.
  89876. *
  89877. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#actions)
  89878. */
  89879. actions: Collection<ActionButton | ActionToggle>;
  89880. /**
  89881. * Indicates if the Popup is active when it is visible and is not [waiting for results](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#waitingForResult).
  89882. *
  89883. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#active)
  89884. */
  89885. readonly active: boolean;
  89886. /**
  89887. * A collection of [actions](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionButton.html) or [action toggles](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionToggle.html) used within the [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html).
  89888. *
  89889. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#allActions)
  89890. */
  89891. readonly allActions: Collection<ActionButton | ActionToggle>;
  89892. /**
  89893. * This closes the popup when the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html) camera or [Viewpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html) changes.
  89894. *
  89895. * @default false
  89896. *
  89897. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#autoCloseEnabled)
  89898. */
  89899. autoCloseEnabled: boolean;
  89900. /**
  89901. * This property indicates to the `Popup` that it needs to allow or disallow the click event propagation.
  89902. *
  89903. * @default true
  89904. *
  89905. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#autoOpenEnabled)
  89906. */
  89907. autoOpenEnabled: boolean;
  89908. /**
  89909. * Indicates if the "Browse features" experience is active in a [cluster](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html) popup.
  89910. *
  89911. * @default false
  89912. *
  89913. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#browseClusterEnabled)
  89914. */
  89915. browseClusterEnabled: boolean;
  89916. /**
  89917. * The content of the popup.
  89918. *
  89919. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#content)
  89920. */
  89921. content: string | HTMLElement | Widget;
  89922. /**
  89923. * A read-only property that specifies a [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of action [buttons](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionButton.html) and/or [toggles](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionToggle.html) within the popup.
  89924. *
  89925. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#defaultActions)
  89926. */
  89927. readonly defaultActions: Collection<ActionButton | ActionToggle>;
  89928. /**
  89929. * Enables automatic creation of a popup template for layers that have popups enabled but no popupTemplate defined.
  89930. *
  89931. * @default false
  89932. *
  89933. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#defaultPopupTemplateEnabled)
  89934. */
  89935. defaultPopupTemplateEnabled: boolean;
  89936. /**
  89937. * The number of selected [features](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#features) available to the popup.
  89938. *
  89939. * @default 0
  89940. *
  89941. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#featureCount)
  89942. */
  89943. readonly featureCount: number;
  89944. /**
  89945. * An array of features associated with the popup.
  89946. *
  89947. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#features)
  89948. */
  89949. features: Graphic[];
  89950. /**
  89951. * The number of features to fetch at one time.
  89952. *
  89953. * @default 20
  89954. *
  89955. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#featuresPerPage)
  89956. */
  89957. featuresPerPage: number;
  89958. /**
  89959. * Defines the specific [abilities](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#Abilities) that the [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html) widget should use when querying and displaying its content.
  89960. *
  89961. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#featureViewModelAbilities)
  89962. */
  89963. featureViewModelAbilities: FeatureViewModelAbilities;
  89964. /**
  89965. * An array of [feature view model(s)](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html) used by the [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html) widget.
  89966. *
  89967. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#featureViewModels)
  89968. */
  89969. readonly featureViewModels: FeatureViewModel[];
  89970. /**
  89971. * Highlight the selected popup feature using the [highlightOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#highlightOptions) set on the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or the [highlightOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#highlightOptions) set on the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  89972. *
  89973. * @default true
  89974. *
  89975. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#highlightEnabled)
  89976. */
  89977. highlightEnabled: boolean;
  89978. /**
  89979. * Indicates whether or not to include [defaultActions](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#defaultActions) in the Popup's UI.
  89980. *
  89981. * @default true
  89982. *
  89983. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#includeDefaultActions)
  89984. */
  89985. includeDefaultActions: boolean;
  89986. /**
  89987. * Geometry used to position the popup.
  89988. *
  89989. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#location)
  89990. */
  89991. location: Point;
  89992. /**
  89993. * The number of [promises](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#promises) remaining to be resolved.
  89994. *
  89995. * @default 0
  89996. *
  89997. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#pendingPromisesCount)
  89998. */
  89999. readonly pendingPromisesCount: number;
  90000. /**
  90001. * The number of selected [promises](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#promises) available to the popup.
  90002. *
  90003. * @default 0
  90004. *
  90005. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#promiseCount)
  90006. */
  90007. readonly promiseCount: number;
  90008. /**
  90009. * An array of pending Promises that have not yet been fulfilled.
  90010. *
  90011. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#promises)
  90012. */
  90013. promises: Promise<any>[];
  90014. /**
  90015. * The graphic used to represent the cluster extent when the `Browse features` action is active in a cluster popup.
  90016. *
  90017. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#selectedClusterBoundaryFeature)
  90018. */
  90019. readonly selectedClusterBoundaryFeature: Graphic;
  90020. /**
  90021. * The selected feature accessed by the popup.
  90022. *
  90023. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#selectedFeature)
  90024. */
  90025. readonly selectedFeature: Graphic;
  90026. /**
  90027. * Index of the feature that is [selected](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#selectedFeature).
  90028. *
  90029. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#selectedFeatureIndex)
  90030. */
  90031. selectedFeatureIndex: number;
  90032. /**
  90033. * The view model's state.
  90034. *
  90035. * @default disabled
  90036. *
  90037. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#state)
  90038. */
  90039. readonly state: "ready" | "disabled";
  90040. /**
  90041. * The title of the popup.
  90042. *
  90043. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#title)
  90044. */
  90045. title: string;
  90046. /**
  90047. * The view associated with the Popup instance.
  90048. *
  90049. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#view)
  90050. */
  90051. view: MapView | SceneView;
  90052. /**
  90053. * Indicates whether the popup is visible.
  90054. *
  90055. * @default false
  90056. *
  90057. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#visible)
  90058. */
  90059. visible: boolean;
  90060. /**
  90061. * Indicates whether the popup has found a feature while resolving [promises](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#promises).
  90062. *
  90063. * @default false
  90064. *
  90065. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#waitingForResult)
  90066. */
  90067. readonly waitingForResult: boolean;
  90068. /**
  90069. * Provides the logic for the [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html) widget, which allows users to view content from feature attributes.
  90070. *
  90071. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html)
  90072. */
  90073. constructor(properties?: PopupViewModelProperties);
  90074. /**
  90075. * Removes [promises](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#promises), [features](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#features), [content](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#content), [title](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#title) and [location](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#location) from the Popup.
  90076. *
  90077. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#clear)
  90078. */
  90079. clear(): void;
  90080. /**
  90081. * Use this method to return feature(s) at a given screen location.
  90082. *
  90083. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#fetchFeatures)
  90084. */
  90085. fetchFeatures(screenPoint: PopupViewModelFetchFeaturesScreenPoint, options?: FetchFeaturesOptions): Promise<FetchPopupFeaturesResult>;
  90086. /**
  90087. * Selects the feature at the next index in relation to the selected feature.
  90088. *
  90089. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#next)
  90090. */
  90091. next(): PopupViewModel;
  90092. /**
  90093. * Opens the popup at the given location with content defined either explicitly with `content` or driven from the [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html) of input features.
  90094. *
  90095. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#open)
  90096. */
  90097. open(options?: PopupViewModelOpenOptions): void;
  90098. /**
  90099. * Selects the feature at the previous index in relation to the selected feature.
  90100. *
  90101. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#previous)
  90102. */
  90103. previous(): PopupViewModel;
  90104. /**
  90105. * Triggers the [trigger-action](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#event-trigger-action) event and executes the [action](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#actions) at the specified index in the [actions](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#actions) array.
  90106. *
  90107. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#triggerAction)
  90108. */
  90109. triggerAction(actionIndex: number): void;
  90110. on(name: "trigger-action", eventHandler: PopupViewModelTriggerActionEventHandler): IHandle;
  90111. }
  90112. /** @deprecated Import the PopupViewModel class instead. */
  90113. export type PopupViewModelConstructor = typeof PopupViewModel;
  90114. interface PopupViewModelProperties extends GoToProperties {
  90115. /**
  90116. * [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of [action](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionButton.html) or [action toggle](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionToggle.html) objects.
  90117. *
  90118. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#actions)
  90119. */
  90120. actions?: CollectionProperties<
  90121. (ActionButtonProperties & { type: "button" }) | (ActionToggleProperties & { type: "toggle" })
  90122. >;
  90123. /**
  90124. * This closes the popup when the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html) camera or [Viewpoint](https://developers.arcgis.com/javascript/latest/api-reference/esri-Viewpoint.html) changes.
  90125. *
  90126. * @default false
  90127. *
  90128. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#autoCloseEnabled)
  90129. */
  90130. autoCloseEnabled?: boolean;
  90131. /**
  90132. * This property indicates to the `Popup` that it needs to allow or disallow the click event propagation.
  90133. *
  90134. * @default true
  90135. *
  90136. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#autoOpenEnabled)
  90137. */
  90138. autoOpenEnabled?: boolean;
  90139. /**
  90140. * Indicates if the "Browse features" experience is active in a [cluster](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html) popup.
  90141. *
  90142. * @default false
  90143. *
  90144. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#browseClusterEnabled)
  90145. */
  90146. browseClusterEnabled?: boolean;
  90147. /**
  90148. * The content of the popup.
  90149. *
  90150. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#content)
  90151. */
  90152. content?: string | HTMLElement | WidgetProperties;
  90153. /**
  90154. * Enables automatic creation of a popup template for layers that have popups enabled but no popupTemplate defined.
  90155. *
  90156. * @default false
  90157. *
  90158. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#defaultPopupTemplateEnabled)
  90159. */
  90160. defaultPopupTemplateEnabled?: boolean;
  90161. /**
  90162. * An array of features associated with the popup.
  90163. *
  90164. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#features)
  90165. */
  90166. features?: GraphicProperties[];
  90167. /**
  90168. * The number of features to fetch at one time.
  90169. *
  90170. * @default 20
  90171. *
  90172. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#featuresPerPage)
  90173. */
  90174. featuresPerPage?: number;
  90175. /**
  90176. * Defines the specific [abilities](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature-FeatureViewModel.html#Abilities) that the [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html) widget should use when querying and displaying its content.
  90177. *
  90178. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#featureViewModelAbilities)
  90179. */
  90180. featureViewModelAbilities?: FeatureViewModelAbilities;
  90181. /**
  90182. * Highlight the selected popup feature using the [highlightOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#highlightOptions) set on the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or the [highlightOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#highlightOptions) set on the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  90183. *
  90184. * @default true
  90185. *
  90186. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#highlightEnabled)
  90187. */
  90188. highlightEnabled?: boolean;
  90189. /**
  90190. * Indicates whether or not to include [defaultActions](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#defaultActions) in the Popup's UI.
  90191. *
  90192. * @default true
  90193. *
  90194. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#includeDefaultActions)
  90195. */
  90196. includeDefaultActions?: boolean;
  90197. /**
  90198. * Geometry used to position the popup.
  90199. *
  90200. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#location)
  90201. */
  90202. location?: PointProperties;
  90203. /**
  90204. * An array of pending Promises that have not yet been fulfilled.
  90205. *
  90206. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#promises)
  90207. */
  90208. promises?: Promise<any>[];
  90209. /**
  90210. * Index of the feature that is [selected](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#selectedFeature).
  90211. *
  90212. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#selectedFeatureIndex)
  90213. */
  90214. selectedFeatureIndex?: number;
  90215. /**
  90216. * The title of the popup.
  90217. *
  90218. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#title)
  90219. */
  90220. title?: string;
  90221. /**
  90222. * The view associated with the Popup instance.
  90223. *
  90224. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#view)
  90225. */
  90226. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  90227. /**
  90228. * Indicates whether the popup is visible.
  90229. *
  90230. * @default false
  90231. *
  90232. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#visible)
  90233. */
  90234. visible?: boolean;
  90235. }
  90236. export interface PopupViewModelFetchFeaturesScreenPoint {
  90237. /**
  90238. * The x coordinate.
  90239. *
  90240. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#fetchFeatures)
  90241. */
  90242. x: number;
  90243. /**
  90244. * The y coordinate.
  90245. *
  90246. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#fetchFeatures)
  90247. */
  90248. y: number;
  90249. }
  90250. export interface PopupViewModelOpenOptions {
  90251. /**
  90252. * Sets the [title](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#title) of the popup.
  90253. *
  90254. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#open)
  90255. */
  90256. title?: string;
  90257. /**
  90258. * Sets the [content](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#content) of the popup.
  90259. *
  90260. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#open)
  90261. */
  90262. content?: string;
  90263. /**
  90264. * **Since:** 4.12 When `true`, indicates the popup should fetch the content of this feature and display it.
  90265. *
  90266. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#open)
  90267. */
  90268. fetchFeatures?: boolean;
  90269. /**
  90270. * Sets the popup's [location](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#location), which is the geometry used to position the popup.
  90271. *
  90272. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#open)
  90273. */
  90274. location?: Geometry;
  90275. /**
  90276. * Sets the popup's [features](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#features), which populate the title and content of the popup based on each graphic's [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html).
  90277. *
  90278. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#open)
  90279. */
  90280. features?: Graphic[];
  90281. /**
  90282. * Sets pending [promises](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#promises) on the popup.
  90283. *
  90284. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#open)
  90285. */
  90286. promises?: Promise<any>[];
  90287. /**
  90288. * When `true`, indicates the popup should update its [location](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#location) for each paginated feature based on the [selected feature's](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#selectedFeature) geometry.
  90289. *
  90290. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup-PopupViewModel.html#open)
  90291. */
  90292. updateLocationEnabled?: boolean;
  90293. }
  90294. export interface PopupViewModelTriggerActionEvent {
  90295. action: ActionButton | ActionToggle;
  90296. }
  90297. /**
  90298. * Optional properties to use with the [fetchFeatures](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#fetchFeatures) method.
  90299. *
  90300. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#FetchFeaturesOptions)
  90301. */
  90302. export interface FetchFeaturesOptions {
  90303. /**
  90304. * The `click` event for either the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  90305. *
  90306. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#FetchFeaturesOptions)
  90307. */
  90308. event?: any;
  90309. /**
  90310. * The signal object that can be used to abort the asynchronous task.
  90311. *
  90312. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#FetchFeaturesOptions)
  90313. */
  90314. signal?: AbortSignal;
  90315. }
  90316. /**
  90317. * An object containing popup features for a specific location in addition to its associated [layerview](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html).
  90318. *
  90319. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#FetchPopupFeaturesPromisesPerLayerView)
  90320. */
  90321. export interface FetchPopupFeaturesPromisesPerLayerView {
  90322. /**
  90323. * The associated [layerview](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html) in which the features are fetched.
  90324. *
  90325. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#FetchPopupFeaturesPromisesPerLayerView)
  90326. */
  90327. layerView: LayerView;
  90328. /**
  90329. * A promise containing an array of [graphics](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) for the selected location associated with a specific [layerview](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html).
  90330. *
  90331. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#FetchPopupFeaturesPromisesPerLayerView)
  90332. */
  90333. promise: Promise<Graphic[]>;
  90334. }
  90335. /**
  90336. * The resulting features returned from the [fetchFeatures](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#fetchFeatures) method.
  90337. *
  90338. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#FetchPopupFeaturesResult)
  90339. */
  90340. export interface FetchPopupFeaturesResult {
  90341. /**
  90342. * An array of promises containing graphics from the selected location.
  90343. *
  90344. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#FetchPopupFeaturesResult)
  90345. */
  90346. allGraphicsPromise?: Promise<Graphic[]>;
  90347. /**
  90348. * An array of [graphics](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) that do not have any associated [LayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-LayerView.html), ie.
  90349. *
  90350. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#FetchPopupFeaturesResult)
  90351. */
  90352. clientOnlyGraphics?: Graphic[];
  90353. /**
  90354. * The resulting location of the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#hitTest) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#hitTest)'s' `hitTest`.
  90355. *
  90356. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#FetchPopupFeaturesResult)
  90357. */
  90358. location?: Point;
  90359. /**
  90360. * An array of [FetchPopupFeaturesPromisesPerLayerView](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#FetchPopupFeaturesPromisesPerLayerView).
  90361. *
  90362. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#FetchPopupFeaturesResult)
  90363. */
  90364. promisesPerLayerView?: FetchPopupFeaturesPromisesPerLayerView[];
  90365. }
  90366. export interface PopupDockOptions {
  90367. /**
  90368. * Defines the dimensions of the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html) at which to dock the popup.
  90369. *
  90370. * @default true
  90371. *
  90372. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#dockOptions)
  90373. */
  90374. breakpoint?: boolean | PopupDockOptionsBreakpoint;
  90375. /**
  90376. * If `true`, displays the dock button.
  90377. *
  90378. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#dockOptions)
  90379. */
  90380. buttonEnabled?: boolean;
  90381. /**
  90382. * The position in the view at which to dock the popup.
  90383. *
  90384. * @default auto
  90385. *
  90386. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#dockOptions)
  90387. */
  90388. position?: string | Function;
  90389. }
  90390. export interface PopupDockOptionsBreakpoint {
  90391. /**
  90392. * The maximum width of the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html) at which the popup will be set to dockEnabled automatically.
  90393. *
  90394. * @default 544
  90395. *
  90396. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#dockOptions)
  90397. */
  90398. width?: number;
  90399. /**
  90400. * The maximum height of the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html) at which the popup will be set to dockEnabled automatically.
  90401. *
  90402. * @default 544
  90403. *
  90404. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#dockOptions)
  90405. */
  90406. height?: number;
  90407. }
  90408. export interface PopupFetchFeaturesScreenPoint {
  90409. /**
  90410. * The x coordinate.
  90411. *
  90412. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#fetchFeatures)
  90413. */
  90414. x: number;
  90415. /**
  90416. * The y coordinate.
  90417. *
  90418. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#fetchFeatures)
  90419. */
  90420. y: number;
  90421. }
  90422. export interface PopupOpenOptions {
  90423. /**
  90424. * Sets the [title](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#title) of the popup.
  90425. *
  90426. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#open)
  90427. */
  90428. title?: string;
  90429. /**
  90430. * Sets the [content](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#content) of the popup.
  90431. *
  90432. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#open)
  90433. */
  90434. content?: string | HTMLElement | Widget;
  90435. /**
  90436. * Sets the popup's [location](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#location), which is the geometry used to position the popup.
  90437. *
  90438. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#open)
  90439. */
  90440. location?: Geometry;
  90441. /**
  90442. * When `true`, indicates the popup should fetch the content of this feature and display it.
  90443. *
  90444. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#open)
  90445. */
  90446. fetchFeatures?: boolean;
  90447. /**
  90448. * Sets the popup's [features](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#features), which populate the title and content of the popup based on each graphic's [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html).
  90449. *
  90450. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#open)
  90451. */
  90452. features?: Graphic[];
  90453. /**
  90454. * Sets pending [promises](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#promises) on the popup.
  90455. *
  90456. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#open)
  90457. */
  90458. promises?: Promise<any>[];
  90459. /**
  90460. * **Since:** 4.5 This property enables multiple features in a popup to display in a list rather than displaying the first selected feature.
  90461. *
  90462. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#open)
  90463. */
  90464. featureMenuOpen?: boolean;
  90465. /**
  90466. * When `true` indicates the popup should update its [location](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#location) for each paginated feature based on the [selected feature's](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#selectedFeature) geometry.
  90467. *
  90468. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#open)
  90469. */
  90470. updateLocationEnabled?: boolean;
  90471. /**
  90472. * **Since:** 4.5 When `true`, indicates that only the popup header will display.
  90473. *
  90474. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#open)
  90475. */
  90476. collapsed?: boolean;
  90477. /**
  90478. * **Since:** 4.23 When `true`, indicates that the focus should be on the popup after it has been opened.
  90479. *
  90480. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#open)
  90481. */
  90482. shouldFocus?: boolean;
  90483. }
  90484. export interface PopupTriggerActionEvent {
  90485. action: ActionButton | ActionToggle;
  90486. }
  90487. /**
  90488. * The visible elements that are displayed within the widget.
  90489. *
  90490. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#VisibleElements)
  90491. */
  90492. export interface PopupVisibleElements {
  90493. /**
  90494. * Indicates whether pagination for feature navigation will be displayed.
  90495. *
  90496. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#VisibleElements)
  90497. */
  90498. featureNavigation?: boolean;
  90499. /**
  90500. * Indicates whether to display a close button on the popup dialog.
  90501. *
  90502. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#VisibleElements)
  90503. */
  90504. closeButton?: boolean;
  90505. }
  90506. export class Print extends Widget {
  90507. /**
  90508. * Specify the print output file format(s) that the user can select based on the options available from the print service.
  90509. *
  90510. * @default "all"
  90511. *
  90512. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#allowedFormats)
  90513. */
  90514. allowedFormats: string | string[];
  90515. /**
  90516. * Specify the print output layout(s) that the user can select based on the options available from the print service.
  90517. *
  90518. * @default "all"
  90519. *
  90520. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#allowedLayouts)
  90521. */
  90522. allowedLayouts: string | string[];
  90523. /**
  90524. * The collection of links exported from the Print widget.
  90525. *
  90526. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#exportedLinks)
  90527. */
  90528. readonly exportedLinks: Collection<FileLink>;
  90529. /**
  90530. * This option allows passing extra parameters (in addition to [templateOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#templateOptions)) to the print (export webmap) requests.
  90531. *
  90532. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#extraParameters)
  90533. */
  90534. extraParameters: any;
  90535. /**
  90536. * Indicates the heading level to use for the "Exported files" text where users can access the exported map printout.
  90537. *
  90538. * @default 3
  90539. *
  90540. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#headingLevel)
  90541. */
  90542. headingLevel: number;
  90543. /**
  90544. * The widget's default CSS icon class.
  90545. *
  90546. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#iconClass)
  90547. */
  90548. iconClass: string;
  90549. /**
  90550. * Indicates whether or not to include [defaultTemplates](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#defaultTemplates).
  90551. *
  90552. * @default true
  90553. *
  90554. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#includeDefaultTemplates)
  90555. */
  90556. includeDefaultTemplates: boolean;
  90557. /**
  90558. * It is possible to search a specified portal instance's [locator services](https://enterprise.arcgis.com/en/portal/latest/administer/windows/configure-portal-to-geocode-addresses.htm).
  90559. *
  90560. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#portal)
  90561. */
  90562. portal: Portal;
  90563. /**
  90564. * The URL of the REST endpoint of the Export Web Map Task.
  90565. *
  90566. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#printServiceUrl)
  90567. */
  90568. printServiceUrl: string;
  90569. /**
  90570. * An object containing an array of `customTextElements` name-value pair objects for each print template in a custom print service.
  90571. *
  90572. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#templateCustomTextElements)
  90573. */
  90574. templateCustomTextElements: any[];
  90575. /**
  90576. * Defines the layout template options used by the [Print](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html) widget to generate the print page.
  90577. *
  90578. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#templateOptions)
  90579. */
  90580. templateOptions: TemplateOptions;
  90581. /**
  90582. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  90583. *
  90584. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#view)
  90585. */
  90586. view: MapView;
  90587. /**
  90588. * The view model for this widget.
  90589. *
  90590. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#viewModel)
  90591. */
  90592. viewModel: PrintViewModel;
  90593. /**
  90594. * The Print widget connects your application with a [printing service](https://enterprise.arcgis.com/en/portal/latest/administer/windows/configure-the-portal-to-print-maps.htm) to allow the map to be printed.
  90595. *
  90596. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html)
  90597. */
  90598. constructor(properties?: PrintProperties);
  90599. on(name: "complete", eventHandler: PrintCompleteEventHandler): IHandle;
  90600. on(name: "submit", eventHandler: PrintSubmitEventHandler): IHandle;
  90601. }
  90602. /** @deprecated Import the Print class instead. */
  90603. export type PrintConstructor = typeof Print;
  90604. interface PrintProperties extends WidgetProperties {
  90605. /**
  90606. * Specify the print output file format(s) that the user can select based on the options available from the print service.
  90607. *
  90608. * @default "all"
  90609. *
  90610. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#allowedFormats)
  90611. */
  90612. allowedFormats?: string | string[];
  90613. /**
  90614. * Specify the print output layout(s) that the user can select based on the options available from the print service.
  90615. *
  90616. * @default "all"
  90617. *
  90618. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#allowedLayouts)
  90619. */
  90620. allowedLayouts?: string | string[];
  90621. /**
  90622. * This option allows passing extra parameters (in addition to [templateOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#templateOptions)) to the print (export webmap) requests.
  90623. *
  90624. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#extraParameters)
  90625. */
  90626. extraParameters?: any;
  90627. /**
  90628. * Indicates the heading level to use for the "Exported files" text where users can access the exported map printout.
  90629. *
  90630. * @default 3
  90631. *
  90632. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#headingLevel)
  90633. */
  90634. headingLevel?: number;
  90635. /**
  90636. * The widget's default CSS icon class.
  90637. *
  90638. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#iconClass)
  90639. */
  90640. iconClass?: string;
  90641. /**
  90642. * Indicates whether or not to include [defaultTemplates](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#defaultTemplates).
  90643. *
  90644. * @default true
  90645. *
  90646. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#includeDefaultTemplates)
  90647. */
  90648. includeDefaultTemplates?: boolean;
  90649. /**
  90650. * It is possible to search a specified portal instance's [locator services](https://enterprise.arcgis.com/en/portal/latest/administer/windows/configure-portal-to-geocode-addresses.htm).
  90651. *
  90652. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#portal)
  90653. */
  90654. portal?: PortalProperties;
  90655. /**
  90656. * The URL of the REST endpoint of the Export Web Map Task.
  90657. *
  90658. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#printServiceUrl)
  90659. */
  90660. printServiceUrl?: string;
  90661. /**
  90662. * An object containing an array of `customTextElements` name-value pair objects for each print template in a custom print service.
  90663. *
  90664. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#templateCustomTextElements)
  90665. */
  90666. templateCustomTextElements?: any[];
  90667. /**
  90668. * Defines the layout template options used by the [Print](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html) widget to generate the print page.
  90669. *
  90670. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#templateOptions)
  90671. */
  90672. templateOptions?: TemplateOptionsProperties;
  90673. /**
  90674. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  90675. *
  90676. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#view)
  90677. */
  90678. view?: MapViewProperties;
  90679. /**
  90680. * The view model for this widget.
  90681. *
  90682. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#viewModel)
  90683. */
  90684. viewModel?: PrintViewModelProperties;
  90685. }
  90686. export class CustomTemplate extends Accessor {
  90687. /**
  90688. * The template's description.
  90689. *
  90690. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-CustomTemplate.html#description)
  90691. */
  90692. readonly description: string;
  90693. /**
  90694. * The output format for the printed map.
  90695. *
  90696. * @default pdf
  90697. *
  90698. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-CustomTemplate.html#format)
  90699. */
  90700. format: "pdf" | "png32" | "png8" | "jpg" | "gif" | "eps" | "svg" | "svgz";
  90701. /**
  90702. * The text that appears inside the [Print Widget's](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html) `Select template` button.
  90703. *
  90704. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-CustomTemplate.html#label)
  90705. */
  90706. readonly label: string;
  90707. /**
  90708. * The layout used for the print output.
  90709. *
  90710. * @default letter-ansi-a-landscape
  90711. *
  90712. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-CustomTemplate.html#layout)
  90713. */
  90714. readonly layout: | "map-only"
  90715. | "a3-landscape"
  90716. | "a3-portrait"
  90717. | "a4-landscape"
  90718. | "a4-portrait"
  90719. | "letter-ansi-a-landscape"
  90720. | "letter-ansi-a-portrait"
  90721. | "tabloid-ansi-b-landscape"
  90722. | "tabloid-ansi-b-portrait";
  90723. /**
  90724. * Defines the layout elements.
  90725. *
  90726. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-CustomTemplate.html#layoutOptions)
  90727. */
  90728. readonly layoutOptions: CustomTemplateLayoutOptions;
  90729. /**
  90730. * Defines the custom layout template options used by the [Print](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html) widget to generate the print page.
  90731. *
  90732. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-CustomTemplate.html)
  90733. */
  90734. constructor(properties?: CustomTemplateProperties);
  90735. }
  90736. /** @deprecated Import the CustomTemplate class instead. */
  90737. export type CustomTemplateConstructor = typeof CustomTemplate;
  90738. interface CustomTemplateProperties {
  90739. /**
  90740. * The output format for the printed map.
  90741. *
  90742. * @default pdf
  90743. *
  90744. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-CustomTemplate.html#format)
  90745. */
  90746. format?: "pdf" | "png32" | "png8" | "jpg" | "gif" | "eps" | "svg" | "svgz";
  90747. }
  90748. export interface CustomTemplateLayoutOptions {
  90749. /**
  90750. * Indicates whether the legend will be included in the print-out.
  90751. *
  90752. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-CustomTemplate.html#layoutOptions)
  90753. */
  90754. legend?: boolean;
  90755. }
  90756. export class PrintViewModel extends Accessor {
  90757. /**
  90758. * Specify the print output file format(s) that the user can select based on the options available from the print service.
  90759. *
  90760. * @default "all"
  90761. *
  90762. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#allowedFormats)
  90763. */
  90764. allowedFormats: string | string[];
  90765. /**
  90766. * Specify the print output layout(s) that the user can select based on the options available from the print service.
  90767. *
  90768. * @default "all"
  90769. *
  90770. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#allowedLayouts)
  90771. */
  90772. allowedLayouts: string | string[];
  90773. /**
  90774. * A collection of print templates defined on the Portal.
  90775. *
  90776. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#defaultTemplates)
  90777. */
  90778. readonly defaultTemplates: Collection<CustomTemplate>;
  90779. /**
  90780. * The effective URL of the REST endpoint of the Export Web Map Task.
  90781. *
  90782. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#effectivePrintServiceUrl)
  90783. */
  90784. readonly effectivePrintServiceUrl: string;
  90785. /**
  90786. * Returns an array of objects of all print templates available on the custom print service to see which templates were published with `customTextElements`.
  90787. *
  90788. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#effectiveTemplateCustomTextElements)
  90789. */
  90790. readonly effectiveTemplateCustomTextElements: any[];
  90791. /**
  90792. * This option allows passing extra parameters to the print (export webmap) requests.
  90793. *
  90794. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#extraParameters)
  90795. */
  90796. extraParameters: any;
  90797. /**
  90798. * Indicates whether or not to include [defaultTemplates](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#defaultTemplates).
  90799. *
  90800. * @default true
  90801. *
  90802. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#includeDefaultTemplates)
  90803. */
  90804. includeDefaultTemplates: boolean;
  90805. /**
  90806. * It is possible to search a specified portal instance's [locator services](https://enterprise.arcgis.com/en/portal/latest/administer/windows/configure-portal-to-geocode-addresses.htm).
  90807. *
  90808. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#portal)
  90809. */
  90810. portal: Portal;
  90811. /**
  90812. * The URL of the REST endpoint of the Export Web Map Task.
  90813. *
  90814. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#printServiceUrl)
  90815. */
  90816. printServiceUrl: string;
  90817. /**
  90818. * The view model's state.
  90819. *
  90820. * @default disabled
  90821. *
  90822. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#state)
  90823. */
  90824. readonly state: "disabled" | "initializing" | "ready" | "error";
  90825. /**
  90826. * An object containing an array of `customTextElements` name-value pair objects for each print template in a custom print service.
  90827. *
  90828. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#templateCustomTextElements)
  90829. */
  90830. templateCustomTextElements: any[];
  90831. /**
  90832. * The service metadata that contains the [format](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#format) and [layout](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#layout) information for the printout.
  90833. *
  90834. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#templatesInfo)
  90835. */
  90836. readonly templatesInfo: any;
  90837. /**
  90838. * The time interval in milliseconds between each job status request sent to an asynchronous GP task.
  90839. *
  90840. * @default 1000
  90841. *
  90842. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#updateDelay)
  90843. */
  90844. updateDelay: number;
  90845. /**
  90846. * The view from which the widget will operate.
  90847. *
  90848. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#view)
  90849. */
  90850. view: MapView;
  90851. /**
  90852. * Provides the logic for the [Print](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html) widget.
  90853. *
  90854. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html)
  90855. */
  90856. constructor(properties?: PrintViewModelProperties);
  90857. /**
  90858. * This method should be called to load the view model's printing resources.
  90859. *
  90860. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#load)
  90861. */
  90862. load(): Promise<any>;
  90863. /**
  90864. * Prints (exports) the current MapView according to selected options.
  90865. *
  90866. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#print)
  90867. */
  90868. print(printTemplate: PrintTemplate): Promise<any>;
  90869. }
  90870. /** @deprecated Import the PrintViewModel class instead. */
  90871. export type PrintViewModelConstructor = typeof PrintViewModel;
  90872. interface PrintViewModelProperties {
  90873. /**
  90874. * Specify the print output file format(s) that the user can select based on the options available from the print service.
  90875. *
  90876. * @default "all"
  90877. *
  90878. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#allowedFormats)
  90879. */
  90880. allowedFormats?: string | string[];
  90881. /**
  90882. * Specify the print output layout(s) that the user can select based on the options available from the print service.
  90883. *
  90884. * @default "all"
  90885. *
  90886. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#allowedLayouts)
  90887. */
  90888. allowedLayouts?: string | string[];
  90889. /**
  90890. * This option allows passing extra parameters to the print (export webmap) requests.
  90891. *
  90892. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#extraParameters)
  90893. */
  90894. extraParameters?: any;
  90895. /**
  90896. * Indicates whether or not to include [defaultTemplates](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#defaultTemplates).
  90897. *
  90898. * @default true
  90899. *
  90900. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#includeDefaultTemplates)
  90901. */
  90902. includeDefaultTemplates?: boolean;
  90903. /**
  90904. * It is possible to search a specified portal instance's [locator services](https://enterprise.arcgis.com/en/portal/latest/administer/windows/configure-portal-to-geocode-addresses.htm).
  90905. *
  90906. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#portal)
  90907. */
  90908. portal?: PortalProperties;
  90909. /**
  90910. * The URL of the REST endpoint of the Export Web Map Task.
  90911. *
  90912. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#printServiceUrl)
  90913. */
  90914. printServiceUrl?: string;
  90915. /**
  90916. * An object containing an array of `customTextElements` name-value pair objects for each print template in a custom print service.
  90917. *
  90918. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#templateCustomTextElements)
  90919. */
  90920. templateCustomTextElements?: any[];
  90921. /**
  90922. * The time interval in milliseconds between each job status request sent to an asynchronous GP task.
  90923. *
  90924. * @default 1000
  90925. *
  90926. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#updateDelay)
  90927. */
  90928. updateDelay?: number;
  90929. /**
  90930. * The view from which the widget will operate.
  90931. *
  90932. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-PrintViewModel.html#view)
  90933. */
  90934. view?: MapViewProperties;
  90935. }
  90936. export class TemplateOptions extends Accessor {
  90937. /**
  90938. * When `false`, the attribution is not displayed on the printout.
  90939. *
  90940. * @default true
  90941. *
  90942. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#attributionEnabled)
  90943. */
  90944. attributionEnabled: boolean;
  90945. /**
  90946. * The text used for the author if the specified layout contains an author text element.
  90947. *
  90948. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#author)
  90949. */
  90950. author: string;
  90951. /**
  90952. * The text used for the copyright if the specified layout contains an copyright text element.
  90953. *
  90954. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#copyright)
  90955. */
  90956. copyright: string;
  90957. /**
  90958. * Use this prop to display text fields for custom text elements from the print service.
  90959. *
  90960. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#customTextElements)
  90961. */
  90962. customTextElements: any[];
  90963. /**
  90964. * Resolution in dots per inch.
  90965. *
  90966. * @default 96
  90967. *
  90968. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#dpi)
  90969. */
  90970. dpi: string;
  90971. /**
  90972. * This property only applies when the [layout](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#layout) value is `map-only`.
  90973. *
  90974. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#fileName)
  90975. */
  90976. fileName: string;
  90977. /**
  90978. * When true, the feature's attributes are included in feature collection layers even when they are not needed for rendering.
  90979. *
  90980. * @default false
  90981. *
  90982. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#forceFeatureAttributes)
  90983. */
  90984. forceFeatureAttributes: boolean;
  90985. /**
  90986. * The output format for the printed map.
  90987. *
  90988. * @default pdf
  90989. *
  90990. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#format)
  90991. */
  90992. format: "pdf" | "png32" | "png8" | "jpg" | "gif" | "eps" | "svg" | "svgz";
  90993. /**
  90994. * Map height.
  90995. *
  90996. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#height)
  90997. */
  90998. height: number;
  90999. /**
  91000. * The layout used for the print output.
  91001. *
  91002. * @default letter-ansi-a-landscape
  91003. *
  91004. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#layout)
  91005. */
  91006. layout: | "map-only"
  91007. | "a3-landscape"
  91008. | "a3-portrait"
  91009. | "a4-landscape"
  91010. | "a4-portrait"
  91011. | "letter-ansi-a-landscape"
  91012. | "letter-ansi-a-portrait"
  91013. | "tabloid-ansi-b-landscape"
  91014. | "tabloid-ansi-b-portrait";
  91015. /**
  91016. * When `false`, the legend is not displayed on the printout.
  91017. *
  91018. * @default true
  91019. *
  91020. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#legendEnabled)
  91021. */
  91022. legendEnabled: boolean;
  91023. /**
  91024. * When `true`, the north arrow will be included on the printout.
  91025. *
  91026. * @default false
  91027. *
  91028. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#northArrowEnabled)
  91029. */
  91030. northArrowEnabled: boolean;
  91031. /**
  91032. * The map scale of the printed map.
  91033. *
  91034. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#scale)
  91035. */
  91036. scale: number;
  91037. /**
  91038. * Define whether the printed map should preserve map scale or map extent.
  91039. *
  91040. * @default false
  91041. *
  91042. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#scaleEnabled)
  91043. */
  91044. scaleEnabled: boolean;
  91045. /**
  91046. * The text used for the map title if the specified layout contains a title text element.
  91047. *
  91048. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#title)
  91049. */
  91050. title: string;
  91051. /**
  91052. * Map width.
  91053. *
  91054. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#width)
  91055. */
  91056. width: number;
  91057. /**
  91058. * Defines the layout template options used by the [Print](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html) widget to generate the print page.
  91059. *
  91060. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html)
  91061. */
  91062. constructor(properties?: TemplateOptionsProperties);
  91063. }
  91064. /** @deprecated Import the TemplateOptions class instead. */
  91065. export type TemplateOptionsConstructor = typeof TemplateOptions;
  91066. interface TemplateOptionsProperties {
  91067. /**
  91068. * When `false`, the attribution is not displayed on the printout.
  91069. *
  91070. * @default true
  91071. *
  91072. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#attributionEnabled)
  91073. */
  91074. attributionEnabled?: boolean;
  91075. /**
  91076. * The text used for the author if the specified layout contains an author text element.
  91077. *
  91078. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#author)
  91079. */
  91080. author?: string;
  91081. /**
  91082. * The text used for the copyright if the specified layout contains an copyright text element.
  91083. *
  91084. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#copyright)
  91085. */
  91086. copyright?: string;
  91087. /**
  91088. * Use this prop to display text fields for custom text elements from the print service.
  91089. *
  91090. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#customTextElements)
  91091. */
  91092. customTextElements?: any[];
  91093. /**
  91094. * Resolution in dots per inch.
  91095. *
  91096. * @default 96
  91097. *
  91098. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#dpi)
  91099. */
  91100. dpi?: string;
  91101. /**
  91102. * This property only applies when the [layout](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#layout) value is `map-only`.
  91103. *
  91104. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#fileName)
  91105. */
  91106. fileName?: string;
  91107. /**
  91108. * When true, the feature's attributes are included in feature collection layers even when they are not needed for rendering.
  91109. *
  91110. * @default false
  91111. *
  91112. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#forceFeatureAttributes)
  91113. */
  91114. forceFeatureAttributes?: boolean;
  91115. /**
  91116. * The output format for the printed map.
  91117. *
  91118. * @default pdf
  91119. *
  91120. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#format)
  91121. */
  91122. format?: "pdf" | "png32" | "png8" | "jpg" | "gif" | "eps" | "svg" | "svgz";
  91123. /**
  91124. * Map height.
  91125. *
  91126. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#height)
  91127. */
  91128. height?: number;
  91129. /**
  91130. * The layout used for the print output.
  91131. *
  91132. * @default letter-ansi-a-landscape
  91133. *
  91134. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#layout)
  91135. */
  91136. layout?: | "map-only"
  91137. | "a3-landscape"
  91138. | "a3-portrait"
  91139. | "a4-landscape"
  91140. | "a4-portrait"
  91141. | "letter-ansi-a-landscape"
  91142. | "letter-ansi-a-portrait"
  91143. | "tabloid-ansi-b-landscape"
  91144. | "tabloid-ansi-b-portrait";
  91145. /**
  91146. * When `false`, the legend is not displayed on the printout.
  91147. *
  91148. * @default true
  91149. *
  91150. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#legendEnabled)
  91151. */
  91152. legendEnabled?: boolean;
  91153. /**
  91154. * When `true`, the north arrow will be included on the printout.
  91155. *
  91156. * @default false
  91157. *
  91158. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#northArrowEnabled)
  91159. */
  91160. northArrowEnabled?: boolean;
  91161. /**
  91162. * The map scale of the printed map.
  91163. *
  91164. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#scale)
  91165. */
  91166. scale?: number;
  91167. /**
  91168. * Define whether the printed map should preserve map scale or map extent.
  91169. *
  91170. * @default false
  91171. *
  91172. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#scaleEnabled)
  91173. */
  91174. scaleEnabled?: boolean;
  91175. /**
  91176. * The text used for the map title if the specified layout contains a title text element.
  91177. *
  91178. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#title)
  91179. */
  91180. title?: string;
  91181. /**
  91182. * Map width.
  91183. *
  91184. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#width)
  91185. */
  91186. width?: number;
  91187. }
  91188. export interface PrintCompleteEvent {
  91189. results: PrintCompleteEventResults;
  91190. }
  91191. /**
  91192. * Represents an exported map request from the result of the Print widget.
  91193. *
  91194. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#FileLink)
  91195. */
  91196. export interface FileLink {
  91197. /**
  91198. * The location of the FileLink element in the array.
  91199. *
  91200. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#FileLink)
  91201. */
  91202. count: number;
  91203. /**
  91204. * The [error](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Error.html) from the Print widget, if any.
  91205. *
  91206. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#FileLink)
  91207. */
  91208. error: string;
  91209. /**
  91210. * The [file](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#format) type of the print-out.
  91211. *
  91212. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#FileLink)
  91213. */
  91214. extension: string;
  91215. /**
  91216. * The [fileName](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#fileName) or [title](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print-TemplateOptions.html#title) of the print-out.
  91217. *
  91218. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#FileLink)
  91219. */
  91220. name: string;
  91221. /**
  91222. * The state of the print-out.
  91223. *
  91224. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#FileLink)
  91225. */
  91226. state: string;
  91227. /**
  91228. * The [printServiceUrl](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#printServiceUrl) of the print-out.
  91229. *
  91230. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Print.html#FileLink)
  91231. */
  91232. url: string;
  91233. }
  91234. export interface PrintSubmitEvent {
  91235. results: PrintSubmitEventResults;
  91236. }
  91237. export interface PrintCompleteEventResults {
  91238. link: Collection<FileLink>;
  91239. }
  91240. export interface PrintSubmitEventResults {
  91241. link: Collection<FileLink>;
  91242. }
  91243. export class ScaleBar extends Widget {
  91244. /**
  91245. * The style for the scale bar.
  91246. *
  91247. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleBar.html#style)
  91248. */
  91249. style: "ruler" | "line";
  91250. /**
  91251. * Units to use for the scale bar.
  91252. *
  91253. * @default non-metric
  91254. *
  91255. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleBar.html#unit)
  91256. */
  91257. unit: "non-metric" | "metric" | "dual";
  91258. /**
  91259. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  91260. *
  91261. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleBar.html#view)
  91262. */
  91263. view: MapView;
  91264. /**
  91265. * The view model for this widget.
  91266. *
  91267. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleBar.html#viewModel)
  91268. */
  91269. viewModel: ScaleBarViewModel;
  91270. /**
  91271. * The ScaleBar widget displays a scale bar on the map or in a specified HTML node.
  91272. *
  91273. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleBar.html)
  91274. */
  91275. constructor(properties?: ScaleBarProperties);
  91276. }
  91277. /** @deprecated Import the ScaleBar class instead. */
  91278. export type ScaleBarConstructor = typeof ScaleBar;
  91279. interface ScaleBarProperties extends WidgetProperties {
  91280. /**
  91281. * The style for the scale bar.
  91282. *
  91283. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleBar.html#style)
  91284. */
  91285. style?: "ruler" | "line";
  91286. /**
  91287. * Units to use for the scale bar.
  91288. *
  91289. * @default non-metric
  91290. *
  91291. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleBar.html#unit)
  91292. */
  91293. unit?: "non-metric" | "metric" | "dual";
  91294. /**
  91295. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  91296. *
  91297. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleBar.html#view)
  91298. */
  91299. view?: MapViewProperties;
  91300. /**
  91301. * The view model for this widget.
  91302. *
  91303. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleBar.html#viewModel)
  91304. */
  91305. viewModel?: ScaleBarViewModelProperties;
  91306. }
  91307. export class ScaleBarViewModel extends Accessor {
  91308. /**
  91309. * The view from which the widget will operate.
  91310. *
  91311. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleBar-ScaleBarViewModel.html#view)
  91312. */
  91313. view: MapView;
  91314. /**
  91315. * Provides the logic for the [ScaleBar](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleBar.html) widget.
  91316. *
  91317. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleBar-ScaleBarViewModel.html)
  91318. */
  91319. constructor(properties?: ScaleBarViewModelProperties);
  91320. }
  91321. /** @deprecated Import the ScaleBarViewModel class instead. */
  91322. export type ScaleBarViewModelConstructor = typeof ScaleBarViewModel;
  91323. interface ScaleBarViewModelProperties {
  91324. /**
  91325. * The view from which the widget will operate.
  91326. *
  91327. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleBar-ScaleBarViewModel.html#view)
  91328. */
  91329. view?: MapViewProperties;
  91330. }
  91331. export class ScaleRangeSlider extends Widget {
  91332. /**
  91333. * When `true`, sets the widget to a disabled state so the user cannot interact with it.
  91334. *
  91335. * @default false
  91336. *
  91337. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#disabled)
  91338. */
  91339. disabled: boolean;
  91340. /**
  91341. * When provided, the initial [minScale](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#minScale) and [maxScale](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#maxScale) values will match the layer's.
  91342. *
  91343. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#layer)
  91344. */
  91345. layer: Layer;
  91346. /**
  91347. * The maximum scale of the active scale range.
  91348. *
  91349. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#maxScale)
  91350. */
  91351. maxScale: number;
  91352. /**
  91353. * The lowest possible maximum scale value on the slider.
  91354. *
  91355. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#maxScaleLimit)
  91356. */
  91357. maxScaleLimit: number;
  91358. /**
  91359. * The minimum scale of the active scale range.
  91360. *
  91361. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#minScale)
  91362. */
  91363. minScale: number;
  91364. /**
  91365. * The highest possible minimum scale value on the slider.
  91366. *
  91367. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#minScaleLimit)
  91368. */
  91369. minScaleLimit: number;
  91370. /**
  91371. * The region that the scale thumbnails will focus on.
  91372. *
  91373. * @default "US"
  91374. *
  91375. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#region)
  91376. */
  91377. region: SupportedRegion;
  91378. /**
  91379. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  91380. *
  91381. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#view)
  91382. */
  91383. view: MapView | SceneView;
  91384. /**
  91385. * The view model for this widget.
  91386. *
  91387. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#viewModel)
  91388. */
  91389. viewModel: ScaleRangeSliderViewModel;
  91390. /**
  91391. * The visible elements that are displayed within the widget.
  91392. *
  91393. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#visibleElements)
  91394. */
  91395. visibleElements: ScaleRangeSliderVisibleElements;
  91396. /**
  91397. * The ScaleRangeSlider widget allows the user to set a minimum and maximum scale based on named scale ranges.
  91398. *
  91399. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html)
  91400. */
  91401. constructor(properties?: ScaleRangeSliderProperties);
  91402. }
  91403. /** @deprecated Import the ScaleRangeSlider class instead. */
  91404. export type ScaleRangeSliderConstructor = typeof ScaleRangeSlider;
  91405. interface ScaleRangeSliderProperties extends WidgetProperties {
  91406. /**
  91407. * When `true`, sets the widget to a disabled state so the user cannot interact with it.
  91408. *
  91409. * @default false
  91410. *
  91411. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#disabled)
  91412. */
  91413. disabled?: boolean;
  91414. /**
  91415. * When provided, the initial [minScale](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#minScale) and [maxScale](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#maxScale) values will match the layer's.
  91416. *
  91417. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#layer)
  91418. */
  91419. layer?: LayerProperties;
  91420. /**
  91421. * The maximum scale of the active scale range.
  91422. *
  91423. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#maxScale)
  91424. */
  91425. maxScale?: number;
  91426. /**
  91427. * The lowest possible maximum scale value on the slider.
  91428. *
  91429. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#maxScaleLimit)
  91430. */
  91431. maxScaleLimit?: number;
  91432. /**
  91433. * The minimum scale of the active scale range.
  91434. *
  91435. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#minScale)
  91436. */
  91437. minScale?: number;
  91438. /**
  91439. * The highest possible minimum scale value on the slider.
  91440. *
  91441. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#minScaleLimit)
  91442. */
  91443. minScaleLimit?: number;
  91444. /**
  91445. * The region that the scale thumbnails will focus on.
  91446. *
  91447. * @default "US"
  91448. *
  91449. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#region)
  91450. */
  91451. region?: | "AE"
  91452. | "AR"
  91453. | "AT"
  91454. | "AU"
  91455. | "BE"
  91456. | "BG"
  91457. | "BO"
  91458. | "BR"
  91459. | "CA"
  91460. | "CH"
  91461. | "CI"
  91462. | "CL"
  91463. | "CN"
  91464. | "CO"
  91465. | "CR"
  91466. | "CZ"
  91467. | "DE"
  91468. | "DK"
  91469. | "EE"
  91470. | "EG"
  91471. | "ES"
  91472. | "FI"
  91473. | "FR"
  91474. | "GB"
  91475. | "GL"
  91476. | "GR"
  91477. | "GT"
  91478. | "HK"
  91479. | "ID"
  91480. | "IE"
  91481. | "IL"
  91482. | "IN"
  91483. | "IQ"
  91484. | "IS"
  91485. | "IT"
  91486. | "JP"
  91487. | "KE"
  91488. | "KR"
  91489. | "KW"
  91490. | "LI"
  91491. | "LT"
  91492. | "LU"
  91493. | "LV"
  91494. | "MA"
  91495. | "MG"
  91496. | "ML"
  91497. | "MO"
  91498. | "MX"
  91499. | "MY"
  91500. | "NI"
  91501. | "NL"
  91502. | "NO"
  91503. | "NZ"
  91504. | "PE"
  91505. | "PL"
  91506. | "PR"
  91507. | "PT"
  91508. | "RO"
  91509. | "RU"
  91510. | "RW"
  91511. | "SE"
  91512. | "SG"
  91513. | "SK"
  91514. | "SR"
  91515. | "SV"
  91516. | "TH"
  91517. | "TN"
  91518. | "TW"
  91519. | "US"
  91520. | "VE"
  91521. | "VI"
  91522. | "ZA";
  91523. /**
  91524. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  91525. *
  91526. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#view)
  91527. */
  91528. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  91529. /**
  91530. * The view model for this widget.
  91531. *
  91532. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#viewModel)
  91533. */
  91534. viewModel?: ScaleRangeSliderViewModelProperties;
  91535. /**
  91536. * The visible elements that are displayed within the widget.
  91537. *
  91538. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#visibleElements)
  91539. */
  91540. visibleElements?: ScaleRangeSliderVisibleElements;
  91541. }
  91542. export class ScaleRanges extends Accessor {
  91543. /**
  91544. * The ScaleRanges class represents the ranges of scales for the [ScaleRangeSlider](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html) widget.
  91545. *
  91546. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRanges.html)
  91547. */
  91548. constructor(properties?: ScaleRangesProperties);
  91549. /**
  91550. * Clamps the scale to the closest minScale or maxScale on the scale range.
  91551. *
  91552. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRanges.html#clampScale)
  91553. */
  91554. clampScale(scale: number): number;
  91555. /**
  91556. * Determines whether the given scale is within the current scale range.
  91557. *
  91558. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRanges.html#contains)
  91559. */
  91560. contains(scale: number): boolean;
  91561. /**
  91562. * Finds the scale range name at a given index.
  91563. *
  91564. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRanges.html#findScaleRangeByIndex)
  91565. */
  91566. findScaleRangeByIndex(index: number): NamedScaleRange;
  91567. /**
  91568. * Helper to create a ScaleRanges object from a minimum and maximum scale.
  91569. *
  91570. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRanges.html#fromScaleRange)
  91571. */
  91572. fromScaleRange(minScale: number, maxScale: number): ScaleRanges;
  91573. /**
  91574. * Determines if the input scale value can be considered to be at the smallest scale range edge.
  91575. *
  91576. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRanges.html#isMaxScaleEdge)
  91577. */
  91578. isMaxScaleEdge(scale: void): boolean;
  91579. /**
  91580. * Determines if the input scale value can be considered to be at the largest scale range edge.
  91581. *
  91582. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRanges.html#isMinScaleEdge)
  91583. */
  91584. isMinScaleEdge(scale: void): boolean;
  91585. }
  91586. /** @deprecated Import the ScaleRanges class instead. */
  91587. export type ScaleRangesConstructor = typeof ScaleRanges;
  91588. interface ScaleRangesProperties {
  91589. }
  91590. /**
  91591. * The NamedScaleRange provides the minimum and maximum scale of an named scale id.
  91592. *
  91593. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRanges.html#NamedScaleRange)
  91594. */
  91595. export interface NamedScaleRange {
  91596. /**
  91597. * The named scale range, such as "room" or "metropolitan area".
  91598. *
  91599. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRanges.html#NamedScaleRange)
  91600. */
  91601. id: string;
  91602. /**
  91603. * The minimum scale.
  91604. *
  91605. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRanges.html#NamedScaleRange)
  91606. */
  91607. minScale: number;
  91608. /**
  91609. * The maximum scale.
  91610. *
  91611. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRanges.html#NamedScaleRange)
  91612. */
  91613. maxScale: number;
  91614. }
  91615. export class ScaleRangeSliderViewModel extends Accessor {
  91616. /**
  91617. * When provided, the initial [minScale](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRangeSliderViewModel.html#minScale) and [maxScale](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRangeSliderViewModel.html#maxScale) values will match the layer's.
  91618. *
  91619. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRangeSliderViewModel.html#layer)
  91620. */
  91621. layer: Layer;
  91622. /**
  91623. * The maximum scale of the active scale range.
  91624. *
  91625. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRangeSliderViewModel.html#maxScale)
  91626. */
  91627. maxScale: number;
  91628. /**
  91629. * The lowest possible maximum scale value from the slider.
  91630. *
  91631. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRangeSliderViewModel.html#maxScaleLimit)
  91632. */
  91633. maxScaleLimit: number;
  91634. /**
  91635. * The minimum scale of the active scale range.
  91636. *
  91637. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRangeSliderViewModel.html#minScale)
  91638. */
  91639. minScale: number;
  91640. /**
  91641. * The highest possible minimum scale value from the slider.
  91642. *
  91643. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRangeSliderViewModel.html#minScaleLimit)
  91644. */
  91645. minScaleLimit: number;
  91646. /**
  91647. * The valid scale ranges available based on the slider position.
  91648. *
  91649. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRangeSliderViewModel.html#scaleRanges)
  91650. */
  91651. readonly scaleRanges: ScaleRanges;
  91652. /**
  91653. * The [SliderViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html) for supporting the scale range slider widget.
  91654. *
  91655. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRangeSliderViewModel.html#sliderViewModel)
  91656. */
  91657. sliderViewModel: SliderViewModel;
  91658. /**
  91659. * The current state of the widget.
  91660. *
  91661. * @default disabled
  91662. *
  91663. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRangeSliderViewModel.html#state)
  91664. */
  91665. readonly state: "disabled" | "ready";
  91666. /**
  91667. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  91668. *
  91669. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRangeSliderViewModel.html#view)
  91670. */
  91671. view: MapView | SceneView;
  91672. /**
  91673. * Provides the logic for the [ScaleRangeSlider](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html) widget.
  91674. *
  91675. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRangeSliderViewModel.html)
  91676. */
  91677. constructor(properties?: ScaleRangeSliderViewModelProperties);
  91678. /**
  91679. * Utility method for converting scale-to-slider values.
  91680. *
  91681. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRangeSliderViewModel.html#mapScaleToSlider)
  91682. */
  91683. mapScaleToSlider(scale: number): number;
  91684. /**
  91685. * Utility method for converting slider-to-scale values.
  91686. *
  91687. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRangeSliderViewModel.html#mapSliderToScale)
  91688. */
  91689. mapSliderToScale(value: number): number;
  91690. }
  91691. /** @deprecated Import the ScaleRangeSliderViewModel class instead. */
  91692. export type ScaleRangeSliderViewModelConstructor = typeof ScaleRangeSliderViewModel;
  91693. interface ScaleRangeSliderViewModelProperties {
  91694. /**
  91695. * When provided, the initial [minScale](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRangeSliderViewModel.html#minScale) and [maxScale](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRangeSliderViewModel.html#maxScale) values will match the layer's.
  91696. *
  91697. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRangeSliderViewModel.html#layer)
  91698. */
  91699. layer?: LayerProperties;
  91700. /**
  91701. * The maximum scale of the active scale range.
  91702. *
  91703. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRangeSliderViewModel.html#maxScale)
  91704. */
  91705. maxScale?: number;
  91706. /**
  91707. * The lowest possible maximum scale value from the slider.
  91708. *
  91709. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRangeSliderViewModel.html#maxScaleLimit)
  91710. */
  91711. maxScaleLimit?: number;
  91712. /**
  91713. * The minimum scale of the active scale range.
  91714. *
  91715. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRangeSliderViewModel.html#minScale)
  91716. */
  91717. minScale?: number;
  91718. /**
  91719. * The highest possible minimum scale value from the slider.
  91720. *
  91721. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRangeSliderViewModel.html#minScaleLimit)
  91722. */
  91723. minScaleLimit?: number;
  91724. /**
  91725. * The [SliderViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html) for supporting the scale range slider widget.
  91726. *
  91727. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRangeSliderViewModel.html#sliderViewModel)
  91728. */
  91729. sliderViewModel?: SliderViewModelProperties;
  91730. /**
  91731. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  91732. *
  91733. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider-ScaleRangeSliderViewModel.html#view)
  91734. */
  91735. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  91736. }
  91737. /**
  91738. * The region that the scale thumbnails will focus on.
  91739. *
  91740. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#SupportedRegion)
  91741. */
  91742. export type SupportedRegion = | "AE"
  91743. | "AR"
  91744. | "AT"
  91745. | "AU"
  91746. | "BE"
  91747. | "BG"
  91748. | "BO"
  91749. | "BR"
  91750. | "CA"
  91751. | "CH"
  91752. | "CI"
  91753. | "CL"
  91754. | "CN"
  91755. | "CO"
  91756. | "CR"
  91757. | "CZ"
  91758. | "DE"
  91759. | "DK"
  91760. | "EE"
  91761. | "EG"
  91762. | "ES"
  91763. | "FI"
  91764. | "FR"
  91765. | "GB"
  91766. | "GL"
  91767. | "GR"
  91768. | "GT"
  91769. | "HK"
  91770. | "ID"
  91771. | "IE"
  91772. | "IL"
  91773. | "IN"
  91774. | "IQ"
  91775. | "IS"
  91776. | "IT"
  91777. | "JP"
  91778. | "KE"
  91779. | "KR"
  91780. | "KW"
  91781. | "LI"
  91782. | "LT"
  91783. | "LU"
  91784. | "LV"
  91785. | "MA"
  91786. | "MG"
  91787. | "ML"
  91788. | "MO"
  91789. | "MX"
  91790. | "MY"
  91791. | "NI"
  91792. | "NL"
  91793. | "NO"
  91794. | "NZ"
  91795. | "PE"
  91796. | "PL"
  91797. | "PR"
  91798. | "PT"
  91799. | "RO"
  91800. | "RU"
  91801. | "RW"
  91802. | "SE"
  91803. | "SG"
  91804. | "SK"
  91805. | "SR"
  91806. | "SV"
  91807. | "TH"
  91808. | "TN"
  91809. | "TW"
  91810. | "US"
  91811. | "VE"
  91812. | "VI"
  91813. | "ZA";
  91814. /**
  91815. * The visible elements that are displayed within the widget.
  91816. *
  91817. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#VisibleElements)
  91818. */
  91819. export interface ScaleRangeSliderVisibleElements {
  91820. /**
  91821. * Indicates whether the preview thumbnail of the scale is visible.
  91822. *
  91823. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#VisibleElements)
  91824. */
  91825. preview?: boolean;
  91826. /**
  91827. * _Since 4.24_ Indicates whether the scale dropdown menus are visible.
  91828. *
  91829. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#VisibleElements)
  91830. */
  91831. scaleMenus?: boolean | VisibleElementsScaleMenus;
  91832. }
  91833. export interface VisibleElementsScaleMenus {
  91834. /**
  91835. * Indicates whether the minimum scale dropdown menu is visible.
  91836. *
  91837. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#VisibleElements)
  91838. */
  91839. minScaleMenu?: boolean;
  91840. /**
  91841. * Indicates whether the maximum scale dropdown menu is visible.
  91842. *
  91843. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ScaleRangeSlider.html#VisibleElements)
  91844. */
  91845. maxScaleMenu?: boolean;
  91846. }
  91847. export interface widgetsSearch extends Widget, GoTo {
  91848. }
  91849. export class widgetsSearch {
  91850. /**
  91851. * The current active menu of the Search widget.
  91852. *
  91853. * @default none
  91854. *
  91855. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#activeMenu)
  91856. */
  91857. activeMenu: "none" | "suggestion" | "source" | "warning";
  91858. /**
  91859. * The [source](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#sources) object currently selected.
  91860. *
  91861. * @default null
  91862. *
  91863. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#activeSource)
  91864. */
  91865. readonly activeSource: LayerSearchSource | LocatorSearchSource;
  91866. /**
  91867. * The selected source's index.
  91868. *
  91869. * @default 0
  91870. *
  91871. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#activeSourceIndex)
  91872. */
  91873. activeSourceIndex: number;
  91874. /**
  91875. * String value used as a hint for input text when searching on multiple sources.
  91876. *
  91877. * @default "Find address or place"
  91878. *
  91879. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#allPlaceholder)
  91880. */
  91881. allPlaceholder: string;
  91882. /**
  91883. * The combined collection of [defaultSources](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#defaultSources) and [sources](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#sources).
  91884. *
  91885. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#allSources)
  91886. */
  91887. readonly allSources: Collection<LayerSearchSource | LocatorSearchSource>;
  91888. /**
  91889. * Indicates whether to automatically select and zoom to the first geocoded result.
  91890. *
  91891. * @default true
  91892. *
  91893. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#autoSelect)
  91894. */
  91895. autoSelect: boolean;
  91896. /**
  91897. * A read-only property that is a [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of [LayerSearchSource](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html) and/or [LocatorSearchSource](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSource.html).
  91898. *
  91899. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#defaultSources)
  91900. */
  91901. readonly defaultSources: Collection<LayerSearchSource | LocatorSearchSource>;
  91902. /**
  91903. * When true, the widget is visually withdrawn and cannot be interacted with.
  91904. *
  91905. * @default false
  91906. *
  91907. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#disabled)
  91908. */
  91909. disabled: boolean;
  91910. /**
  91911. * The widget's default CSS icon class.
  91912. *
  91913. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#iconClass)
  91914. */
  91915. iconClass: string;
  91916. /**
  91917. * Indicates whether or not to include [defaultSources](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#defaultSources) in the Search UI.
  91918. *
  91919. * @default true
  91920. *
  91921. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#includeDefaultSources)
  91922. */
  91923. includeDefaultSources: boolean | Function;
  91924. /**
  91925. * Enables location services within the widget.
  91926. *
  91927. * @default true
  91928. *
  91929. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#locationEnabled)
  91930. */
  91931. locationEnabled: boolean;
  91932. /**
  91933. * The maximum number of results returned by the widget if not specified by the source.
  91934. *
  91935. * @default 6
  91936. *
  91937. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#maxResults)
  91938. */
  91939. maxResults: number;
  91940. /**
  91941. * The maximum number of suggestions returned by the widget if not specified by the source.
  91942. *
  91943. * @default 6
  91944. *
  91945. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#maxSuggestions)
  91946. */
  91947. maxSuggestions: number;
  91948. /**
  91949. * The minimum number of characters needed for the search if not specified by the source.
  91950. *
  91951. * @default 3
  91952. *
  91953. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#minSuggestCharacters)
  91954. */
  91955. minSuggestCharacters: number;
  91956. /**
  91957. * Indicates whether to display the [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html) on feature click.
  91958. *
  91959. * @default true
  91960. *
  91961. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#popupEnabled)
  91962. */
  91963. popupEnabled: boolean;
  91964. /**
  91965. * A customized [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html) for the selected feature.
  91966. *
  91967. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#popupTemplate)
  91968. */
  91969. popupTemplate: PopupTemplate;
  91970. /**
  91971. * It is possible to search a specified portal instance's [locator services](http://enterprise.arcgis.com/en/portal/latest/administer/windows/configure-portal-to-geocode-addresses.htm) Use this property to set this [ArcGIS Portal](https://enterprise.arcgis.com/en/portal/) instance to search.
  91972. *
  91973. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#portal)
  91974. */
  91975. portal: Portal;
  91976. /**
  91977. * The graphic used to highlight the resulting feature or location.
  91978. *
  91979. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#resultGraphic)
  91980. */
  91981. readonly resultGraphic: Graphic;
  91982. /**
  91983. * Indicates if the [resultGraphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#resultGraphic) will display at the location of the selected feature.
  91984. *
  91985. * @default true
  91986. *
  91987. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#resultGraphicEnabled)
  91988. */
  91989. resultGraphicEnabled: boolean;
  91990. /**
  91991. * An array of objects, each containing a [SearchResult](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SearchResult) from the search.
  91992. *
  91993. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#results)
  91994. */
  91995. readonly results: any[];
  91996. /**
  91997. * Indicates whether to display the option to search all sources.
  91998. *
  91999. * @default true
  92000. *
  92001. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#searchAllEnabled)
  92002. */
  92003. searchAllEnabled: boolean;
  92004. /**
  92005. * The value of the search box input text string.
  92006. *
  92007. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#searchTerm)
  92008. */
  92009. searchTerm: string;
  92010. /**
  92011. * The result selected from a search.
  92012. *
  92013. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#selectedResult)
  92014. */
  92015. readonly selectedResult: SearchResult;
  92016. /**
  92017. * The Search widget may be used to search features in a [map](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html)/[feature](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) service feature layer(s), [SceneLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html) with an associated feature layer, [BuildingComponentSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html) with an associated feature layer, [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html), [CSVLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html) or [OGCFeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html), or [table](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchTable.html), or geocode locations with a [locator](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html).
  92018. *
  92019. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#sources)
  92020. */
  92021. sources: Collection<SearchSource>;
  92022. /**
  92023. * An array of results from the [suggest method](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#suggest).
  92024. *
  92025. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#suggestions)
  92026. */
  92027. readonly suggestions: SuggestResult[];
  92028. /**
  92029. * Enable suggestions for the widget.
  92030. *
  92031. * @default true
  92032. *
  92033. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#suggestionsEnabled)
  92034. */
  92035. suggestionsEnabled: boolean;
  92036. /**
  92037. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  92038. *
  92039. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#view)
  92040. */
  92041. view: MapView | SceneView;
  92042. /**
  92043. * The view model for this widget.
  92044. *
  92045. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#viewModel)
  92046. */
  92047. viewModel: SearchViewModel;
  92048. /**
  92049. * The Search widget provides a way to perform search operations on [locator service(s)](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html), [map](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html)/[feature](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) service feature layer(s), [SceneLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html) with an associated feature layer, [BuildingComponentSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html) with an associated feature layer, [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html), [CSVLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html), [OGCFeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html), and/or [table(s)](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchTable.html).
  92050. *
  92051. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html)
  92052. */
  92053. constructor(properties?: widgetsSearchProperties);
  92054. /**
  92055. * Unfocuses the widget's text input.
  92056. *
  92057. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#blur)
  92058. */
  92059. blur(): void;
  92060. /**
  92061. * Clears the current searchTerm, search results, suggest results, graphic, and graphics layer.
  92062. *
  92063. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#clear)
  92064. */
  92065. clear(): void;
  92066. /**
  92067. * Brings focus to the widget's text input.
  92068. *
  92069. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#focus)
  92070. */
  92071. focus(): void;
  92072. /**
  92073. * Depending on the sources specified, search() queries the feature layer(s) and/or performs address matching using any specified [locator(s)](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html) and returns any applicable results.
  92074. *
  92075. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#search)
  92076. */
  92077. search(searchTerm?: string | Geometry | SuggestResult | number[][]): Promise<SearchResponse>;
  92078. /**
  92079. * Performs a suggest() request on the active Locator.
  92080. *
  92081. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#suggest)
  92082. */
  92083. suggest(value?: string): Promise<SuggestResponse>;
  92084. on(name: "search-blur", eventHandler: SearchSearchBlurEventHandler): IHandle;
  92085. on(name: "search-focus", eventHandler: SearchSearchFocusEventHandler): IHandle;
  92086. on(name: "search-clear", eventHandler: SearchSearchClearEventHandler): IHandle;
  92087. on(name: "search-start", eventHandler: SearchSearchStartEventHandler): IHandle;
  92088. on(name: "suggest-start", eventHandler: SearchSuggestStartEventHandler): IHandle;
  92089. on(name: "search-complete", eventHandler: SearchSearchCompleteEventHandler): IHandle;
  92090. on(name: "select-result", eventHandler: SearchSelectResultEventHandler): IHandle;
  92091. on(name: "suggest-complete", eventHandler: SearchSuggestCompleteEventHandler): IHandle;
  92092. }
  92093. /** @deprecated Import the widgetsSearch class instead. */
  92094. export type widgetsSearchConstructor = typeof widgetsSearch;
  92095. interface widgetsSearchProperties extends WidgetProperties, GoToProperties {
  92096. /**
  92097. * The current active menu of the Search widget.
  92098. *
  92099. * @default none
  92100. *
  92101. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#activeMenu)
  92102. */
  92103. activeMenu?: "none" | "suggestion" | "source" | "warning";
  92104. /**
  92105. * The selected source's index.
  92106. *
  92107. * @default 0
  92108. *
  92109. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#activeSourceIndex)
  92110. */
  92111. activeSourceIndex?: number;
  92112. /**
  92113. * String value used as a hint for input text when searching on multiple sources.
  92114. *
  92115. * @default "Find address or place"
  92116. *
  92117. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#allPlaceholder)
  92118. */
  92119. allPlaceholder?: string;
  92120. /**
  92121. * Indicates whether to automatically select and zoom to the first geocoded result.
  92122. *
  92123. * @default true
  92124. *
  92125. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#autoSelect)
  92126. */
  92127. autoSelect?: boolean;
  92128. /**
  92129. * When true, the widget is visually withdrawn and cannot be interacted with.
  92130. *
  92131. * @default false
  92132. *
  92133. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#disabled)
  92134. */
  92135. disabled?: boolean;
  92136. /**
  92137. * The widget's default CSS icon class.
  92138. *
  92139. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#iconClass)
  92140. */
  92141. iconClass?: string;
  92142. /**
  92143. * Indicates whether or not to include [defaultSources](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#defaultSources) in the Search UI.
  92144. *
  92145. * @default true
  92146. *
  92147. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#includeDefaultSources)
  92148. */
  92149. includeDefaultSources?: boolean | Function;
  92150. /**
  92151. * Enables location services within the widget.
  92152. *
  92153. * @default true
  92154. *
  92155. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#locationEnabled)
  92156. */
  92157. locationEnabled?: boolean;
  92158. /**
  92159. * The maximum number of results returned by the widget if not specified by the source.
  92160. *
  92161. * @default 6
  92162. *
  92163. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#maxResults)
  92164. */
  92165. maxResults?: number;
  92166. /**
  92167. * The maximum number of suggestions returned by the widget if not specified by the source.
  92168. *
  92169. * @default 6
  92170. *
  92171. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#maxSuggestions)
  92172. */
  92173. maxSuggestions?: number;
  92174. /**
  92175. * The minimum number of characters needed for the search if not specified by the source.
  92176. *
  92177. * @default 3
  92178. *
  92179. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#minSuggestCharacters)
  92180. */
  92181. minSuggestCharacters?: number;
  92182. /**
  92183. * Indicates whether to display the [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html) on feature click.
  92184. *
  92185. * @default true
  92186. *
  92187. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#popupEnabled)
  92188. */
  92189. popupEnabled?: boolean;
  92190. /**
  92191. * A customized [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html) for the selected feature.
  92192. *
  92193. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#popupTemplate)
  92194. */
  92195. popupTemplate?: PopupTemplateProperties;
  92196. /**
  92197. * It is possible to search a specified portal instance's [locator services](http://enterprise.arcgis.com/en/portal/latest/administer/windows/configure-portal-to-geocode-addresses.htm) Use this property to set this [ArcGIS Portal](https://enterprise.arcgis.com/en/portal/) instance to search.
  92198. *
  92199. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#portal)
  92200. */
  92201. portal?: PortalProperties;
  92202. /**
  92203. * Indicates if the [resultGraphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#resultGraphic) will display at the location of the selected feature.
  92204. *
  92205. * @default true
  92206. *
  92207. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#resultGraphicEnabled)
  92208. */
  92209. resultGraphicEnabled?: boolean;
  92210. /**
  92211. * Indicates whether to display the option to search all sources.
  92212. *
  92213. * @default true
  92214. *
  92215. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#searchAllEnabled)
  92216. */
  92217. searchAllEnabled?: boolean;
  92218. /**
  92219. * The value of the search box input text string.
  92220. *
  92221. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#searchTerm)
  92222. */
  92223. searchTerm?: string;
  92224. /**
  92225. * The Search widget may be used to search features in a [map](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html)/[feature](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) service feature layer(s), [SceneLayers](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-SceneLayer.html) with an associated feature layer, [BuildingComponentSublayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-buildingSublayers-BuildingComponentSublayer.html) with an associated feature layer, [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GeoJSONLayer.html), [CSVLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-CSVLayer.html) or [OGCFeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-OGCFeatureLayer.html), or [table](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchTable.html), or geocode locations with a [locator](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html).
  92226. *
  92227. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#sources)
  92228. */
  92229. sources?: CollectionProperties<SearchSourceProperties>;
  92230. /**
  92231. * Enable suggestions for the widget.
  92232. *
  92233. * @default true
  92234. *
  92235. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#suggestionsEnabled)
  92236. */
  92237. suggestionsEnabled?: boolean;
  92238. /**
  92239. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  92240. *
  92241. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#view)
  92242. */
  92243. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  92244. /**
  92245. * The view model for this widget.
  92246. *
  92247. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#viewModel)
  92248. */
  92249. viewModel?: SearchViewModelProperties;
  92250. }
  92251. export interface LayerSearchSource extends SearchSource, JSONSupport {
  92252. }
  92253. export class LayerSearchSource {
  92254. /**
  92255. * The results are displayed using this field.
  92256. *
  92257. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html#displayField)
  92258. */
  92259. displayField: string;
  92260. /**
  92261. * Indicates to only return results that match the search value exactly.
  92262. *
  92263. * @default false
  92264. *
  92265. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html#exactMatch)
  92266. */
  92267. exactMatch: boolean;
  92268. /**
  92269. * The layer queried in the search.
  92270. *
  92271. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html#layer)
  92272. */
  92273. layer: Layer;
  92274. /**
  92275. * The name of the source for display.
  92276. *
  92277. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html#name)
  92278. */
  92279. name: string;
  92280. /**
  92281. * One or more field names used to order the query results.
  92282. *
  92283. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html#orderByFields)
  92284. */
  92285. orderByFields: string[];
  92286. /**
  92287. * An array of string values representing the names of fields in the feature layer to search.
  92288. *
  92289. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html#searchFields)
  92290. */
  92291. searchFields: string[];
  92292. /**
  92293. * A template string used to display multiple fields in a defined order when results are displayed.
  92294. *
  92295. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html#searchTemplate)
  92296. */
  92297. searchTemplate: string;
  92298. /**
  92299. * A template string used to display multiple fields in a defined order when suggestions are displayed.
  92300. *
  92301. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html#suggestionTemplate)
  92302. */
  92303. suggestionTemplate: string;
  92304. /**
  92305. * The following properties define a [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html)-based [source](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#sources) whose features may be searched by a [Search](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html) widget instance.
  92306. *
  92307. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html)
  92308. */
  92309. constructor(properties?: LayerSearchSourceProperties);
  92310. /**
  92311. * Creates a deep clone of this object.
  92312. *
  92313. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html#clone)
  92314. */
  92315. clone(): LayerSearchSource;
  92316. static fromJSON(json: any): LayerSearchSource;
  92317. }
  92318. /** @deprecated Import the LayerSearchSource class instead. */
  92319. export type LayerSearchSourceConstructor = typeof LayerSearchSource;
  92320. interface LayerSearchSourceProperties extends SearchSourceProperties {
  92321. /**
  92322. * The results are displayed using this field.
  92323. *
  92324. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html#displayField)
  92325. */
  92326. displayField?: string;
  92327. /**
  92328. * Indicates to only return results that match the search value exactly.
  92329. *
  92330. * @default false
  92331. *
  92332. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html#exactMatch)
  92333. */
  92334. exactMatch?: boolean;
  92335. /**
  92336. * The layer queried in the search.
  92337. *
  92338. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html#layer)
  92339. */
  92340. layer?: LayerProperties;
  92341. /**
  92342. * The name of the source for display.
  92343. *
  92344. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html#name)
  92345. */
  92346. name?: string;
  92347. /**
  92348. * One or more field names used to order the query results.
  92349. *
  92350. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html#orderByFields)
  92351. */
  92352. orderByFields?: string[];
  92353. /**
  92354. * An array of string values representing the names of fields in the feature layer to search.
  92355. *
  92356. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html#searchFields)
  92357. */
  92358. searchFields?: string[];
  92359. /**
  92360. * A template string used to display multiple fields in a defined order when results are displayed.
  92361. *
  92362. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html#searchTemplate)
  92363. */
  92364. searchTemplate?: string;
  92365. /**
  92366. * A template string used to display multiple fields in a defined order when suggestions are displayed.
  92367. *
  92368. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html#suggestionTemplate)
  92369. */
  92370. suggestionTemplate?: string;
  92371. }
  92372. export interface LocatorSearchSource extends SearchSource, JSONSupport {
  92373. }
  92374. export class LocatorSearchSource {
  92375. /**
  92376. * An authorization string used to access a resource or service.
  92377. *
  92378. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSource.html#apiKey)
  92379. */
  92380. apiKey: string;
  92381. /**
  92382. * A string array which limits the results to one or more categories.
  92383. *
  92384. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSource.html#categories)
  92385. */
  92386. categories: string[];
  92387. /**
  92388. * Constricts search results to a specified country code.
  92389. *
  92390. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSource.html#countryCode)
  92391. */
  92392. countryCode: string;
  92393. /**
  92394. * Sets the scale of the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#scale) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#scale) for the resulting search result, if the locator service doesn’t return an extent with a scale.
  92395. *
  92396. * @default null
  92397. *
  92398. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSource.html#defaultZoomScale)
  92399. */
  92400. defaultZoomScale: number;
  92401. /**
  92402. * This property controls prioritization of [Search](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html) widget result candidates depending on the view scale.
  92403. *
  92404. * @default false
  92405. *
  92406. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSource.html#localSearchDisabled)
  92407. */
  92408. localSearchDisabled: boolean;
  92409. /**
  92410. * Defines the type of location, either `street` or `rooftop`, of the point returned from the [World Geocoding Service](https://developers.arcgis.com/rest/geocode/api-reference/geocoding-category-filtering.htm).
  92411. *
  92412. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSource.html#locationType)
  92413. */
  92414. locationType: "rooftop" | "street";
  92415. /**
  92416. * The name of the source for display.
  92417. *
  92418. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSource.html#name)
  92419. */
  92420. name: string;
  92421. /**
  92422. * A template string used to display multiple fields in a defined order when results are displayed.
  92423. *
  92424. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSource.html#searchTemplate)
  92425. */
  92426. searchTemplate: string;
  92427. /**
  92428. * The field name of the Single Line Address Field in the REST services directory for the locator service.
  92429. *
  92430. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSource.html#singleLineFieldName)
  92431. */
  92432. singleLineFieldName: string;
  92433. /**
  92434. * URL to the ArcGIS Server REST resource that represents a locator service.
  92435. *
  92436. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSource.html#url)
  92437. */
  92438. url: string;
  92439. /**
  92440. * The following properties define a [source](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#sources) pointing to a [url](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSource.html#url) that represents a locator service, which may be used to geocode locations with a [Search](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html) widget instance.
  92441. *
  92442. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSource.html)
  92443. */
  92444. constructor(properties?: LocatorSearchSourceProperties);
  92445. /**
  92446. * Creates a deep clone of this object.
  92447. *
  92448. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSource.html#clone)
  92449. */
  92450. clone(): LocatorSearchSource;
  92451. static fromJSON(json: any): LocatorSearchSource;
  92452. }
  92453. /** @deprecated Import the LocatorSearchSource class instead. */
  92454. export type LocatorSearchSourceConstructor = typeof LocatorSearchSource;
  92455. interface LocatorSearchSourceProperties extends SearchSourceProperties {
  92456. /**
  92457. * An authorization string used to access a resource or service.
  92458. *
  92459. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSource.html#apiKey)
  92460. */
  92461. apiKey?: string;
  92462. /**
  92463. * A string array which limits the results to one or more categories.
  92464. *
  92465. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSource.html#categories)
  92466. */
  92467. categories?: string[];
  92468. /**
  92469. * Constricts search results to a specified country code.
  92470. *
  92471. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSource.html#countryCode)
  92472. */
  92473. countryCode?: string;
  92474. /**
  92475. * Sets the scale of the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#scale) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#scale) for the resulting search result, if the locator service doesn’t return an extent with a scale.
  92476. *
  92477. * @default null
  92478. *
  92479. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSource.html#defaultZoomScale)
  92480. */
  92481. defaultZoomScale?: number;
  92482. /**
  92483. * This property controls prioritization of [Search](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html) widget result candidates depending on the view scale.
  92484. *
  92485. * @default false
  92486. *
  92487. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSource.html#localSearchDisabled)
  92488. */
  92489. localSearchDisabled?: boolean;
  92490. /**
  92491. * Defines the type of location, either `street` or `rooftop`, of the point returned from the [World Geocoding Service](https://developers.arcgis.com/rest/geocode/api-reference/geocoding-category-filtering.htm).
  92492. *
  92493. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSource.html#locationType)
  92494. */
  92495. locationType?: "rooftop" | "street";
  92496. /**
  92497. * The name of the source for display.
  92498. *
  92499. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSource.html#name)
  92500. */
  92501. name?: string;
  92502. /**
  92503. * A template string used to display multiple fields in a defined order when results are displayed.
  92504. *
  92505. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSource.html#searchTemplate)
  92506. */
  92507. searchTemplate?: string;
  92508. /**
  92509. * The field name of the Single Line Address Field in the REST services directory for the locator service.
  92510. *
  92511. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSource.html#singleLineFieldName)
  92512. */
  92513. singleLineFieldName?: string;
  92514. /**
  92515. * URL to the ArcGIS Server REST resource that represents a locator service.
  92516. *
  92517. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSource.html#url)
  92518. */
  92519. url?: string;
  92520. }
  92521. export class SearchResultRenderer extends Widget {
  92522. /**
  92523. * Indicates whether to display the `Show more results` link within the search result's popup.
  92524. *
  92525. * @default false
  92526. *
  92527. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchResultRenderer.html#showMoreResultsOpen)
  92528. */
  92529. showMoreResultsOpen: boolean;
  92530. /**
  92531. * The view model for this Search widget.
  92532. *
  92533. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchResultRenderer.html#viewModel)
  92534. */
  92535. viewModel: SearchViewModel;
  92536. /**
  92537. * The `SearchResultRenderer` renders the [Search](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html) widget results and allows expanding a DOM element to show alternative matches.
  92538. *
  92539. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchResultRenderer.html)
  92540. */
  92541. constructor(properties?: SearchResultRendererProperties);
  92542. }
  92543. /** @deprecated Import the SearchResultRenderer class instead. */
  92544. export type SearchResultRendererConstructor = typeof SearchResultRenderer;
  92545. interface SearchResultRendererProperties extends WidgetProperties {
  92546. /**
  92547. * Indicates whether to display the `Show more results` link within the search result's popup.
  92548. *
  92549. * @default false
  92550. *
  92551. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchResultRenderer.html#showMoreResultsOpen)
  92552. */
  92553. showMoreResultsOpen?: boolean;
  92554. /**
  92555. * The view model for this Search widget.
  92556. *
  92557. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchResultRenderer.html#viewModel)
  92558. */
  92559. viewModel?: SearchViewModelProperties;
  92560. }
  92561. export interface SearchSource extends Accessor, JSONSupport, Identifiable {
  92562. }
  92563. export class SearchSource {
  92564. /**
  92565. * Indicates whether to automatically navigate to the selected result once selected.
  92566. *
  92567. * @default true
  92568. *
  92569. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#autoNavigate)
  92570. */
  92571. autoNavigate: boolean;
  92572. /**
  92573. * For filtering suggests or search results.
  92574. *
  92575. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#filter)
  92576. */
  92577. filter: SearchSourceFilter;
  92578. /**
  92579. * Function used to get search results.
  92580. *
  92581. * @default null
  92582. *
  92583. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#getResults)
  92584. */
  92585. getResults: GetResultsHandler;
  92586. /**
  92587. * Function used to get search suggestions.
  92588. *
  92589. * @default null
  92590. *
  92591. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#getSuggestions)
  92592. */
  92593. getSuggestions: GetSuggestionsParameters;
  92594. /**
  92595. * Indicates the maximum number of search results to return.
  92596. *
  92597. * @default 6
  92598. *
  92599. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#maxResults)
  92600. */
  92601. maxResults: number;
  92602. /**
  92603. * Indicates the maximum number of suggestions to return for the widget's input.
  92604. *
  92605. * @default 6
  92606. *
  92607. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#maxSuggestions)
  92608. */
  92609. maxSuggestions: number;
  92610. /**
  92611. * Indicates the minimum number of characters required before querying for a suggestion.
  92612. *
  92613. * @default 1
  92614. *
  92615. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#minSuggestCharacters)
  92616. */
  92617. minSuggestCharacters: number;
  92618. /**
  92619. * Specifies the fields returned with the search results.
  92620. *
  92621. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#outFields)
  92622. */
  92623. outFields: string[];
  92624. /**
  92625. * Used as a hint for the source input text.
  92626. *
  92627. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#placeholder)
  92628. */
  92629. placeholder: string;
  92630. /**
  92631. * Indicates whether to display a [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html) when a selected result is clicked.
  92632. *
  92633. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#popupEnabled)
  92634. */
  92635. popupEnabled: boolean;
  92636. /**
  92637. * The popup template used to display search results.
  92638. *
  92639. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#popupTemplate)
  92640. */
  92641. popupTemplate: PopupTemplate;
  92642. /**
  92643. * Specify this to prefix the user's input of the search text.
  92644. *
  92645. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#prefix)
  92646. */
  92647. prefix: string;
  92648. /**
  92649. * Indicates whether to show a graphic on the map for the selected source using the [resultSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#resultSymbol).
  92650. *
  92651. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#resultGraphicEnabled)
  92652. */
  92653. resultGraphicEnabled: boolean;
  92654. /**
  92655. * The symbol used to display the result.
  92656. *
  92657. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#resultSymbol)
  92658. */
  92659. resultSymbol: Symbol;
  92660. /**
  92661. * Specify this to add a suffix to the user's input for the search value.
  92662. *
  92663. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#suffix)
  92664. */
  92665. suffix: string;
  92666. /**
  92667. * Indicates whether to display suggestions as the user enters input text in the widget.
  92668. *
  92669. * @default true
  92670. *
  92671. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#suggestionsEnabled)
  92672. */
  92673. suggestionsEnabled: boolean;
  92674. /**
  92675. * Indicates whether to constrain the search results to the view's extent.
  92676. *
  92677. * @default false
  92678. *
  92679. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#withinViewEnabled)
  92680. */
  92681. withinViewEnabled: boolean;
  92682. /**
  92683. * The set zoom scale for the resulting search result.
  92684. *
  92685. * @default null
  92686. *
  92687. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#zoomScale)
  92688. */
  92689. zoomScale: number;
  92690. /**
  92691. * The following properties define generic [sources](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#sources) properties for use in the [Search](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html) widget.
  92692. *
  92693. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html)
  92694. */
  92695. constructor(properties?: SearchSourceProperties);
  92696. static fromJSON(json: any): SearchSource;
  92697. }
  92698. /** @deprecated Import the SearchSource class instead. */
  92699. export type SearchSourceConstructor = typeof SearchSource;
  92700. interface SearchSourceProperties {
  92701. /**
  92702. * Indicates whether to automatically navigate to the selected result once selected.
  92703. *
  92704. * @default true
  92705. *
  92706. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#autoNavigate)
  92707. */
  92708. autoNavigate?: boolean;
  92709. /**
  92710. * For filtering suggests or search results.
  92711. *
  92712. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#filter)
  92713. */
  92714. filter?: SearchSourceFilter;
  92715. /**
  92716. * Function used to get search results.
  92717. *
  92718. * @default null
  92719. *
  92720. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#getResults)
  92721. */
  92722. getResults?: GetResultsHandler;
  92723. /**
  92724. * Function used to get search suggestions.
  92725. *
  92726. * @default null
  92727. *
  92728. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#getSuggestions)
  92729. */
  92730. getSuggestions?: GetSuggestionsParameters;
  92731. /**
  92732. * Indicates the maximum number of search results to return.
  92733. *
  92734. * @default 6
  92735. *
  92736. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#maxResults)
  92737. */
  92738. maxResults?: number;
  92739. /**
  92740. * Indicates the maximum number of suggestions to return for the widget's input.
  92741. *
  92742. * @default 6
  92743. *
  92744. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#maxSuggestions)
  92745. */
  92746. maxSuggestions?: number;
  92747. /**
  92748. * Indicates the minimum number of characters required before querying for a suggestion.
  92749. *
  92750. * @default 1
  92751. *
  92752. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#minSuggestCharacters)
  92753. */
  92754. minSuggestCharacters?: number;
  92755. /**
  92756. * Specifies the fields returned with the search results.
  92757. *
  92758. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#outFields)
  92759. */
  92760. outFields?: string[];
  92761. /**
  92762. * Used as a hint for the source input text.
  92763. *
  92764. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#placeholder)
  92765. */
  92766. placeholder?: string;
  92767. /**
  92768. * Indicates whether to display a [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html) when a selected result is clicked.
  92769. *
  92770. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#popupEnabled)
  92771. */
  92772. popupEnabled?: boolean;
  92773. /**
  92774. * The popup template used to display search results.
  92775. *
  92776. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#popupTemplate)
  92777. */
  92778. popupTemplate?: PopupTemplateProperties;
  92779. /**
  92780. * Specify this to prefix the user's input of the search text.
  92781. *
  92782. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#prefix)
  92783. */
  92784. prefix?: string;
  92785. /**
  92786. * Indicates whether to show a graphic on the map for the selected source using the [resultSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#resultSymbol).
  92787. *
  92788. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#resultGraphicEnabled)
  92789. */
  92790. resultGraphicEnabled?: boolean;
  92791. /**
  92792. * The symbol used to display the result.
  92793. *
  92794. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#resultSymbol)
  92795. */
  92796. resultSymbol?: SymbolProperties;
  92797. /**
  92798. * Specify this to add a suffix to the user's input for the search value.
  92799. *
  92800. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#suffix)
  92801. */
  92802. suffix?: string;
  92803. /**
  92804. * Indicates whether to display suggestions as the user enters input text in the widget.
  92805. *
  92806. * @default true
  92807. *
  92808. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#suggestionsEnabled)
  92809. */
  92810. suggestionsEnabled?: boolean;
  92811. /**
  92812. * Indicates whether to constrain the search results to the view's extent.
  92813. *
  92814. * @default false
  92815. *
  92816. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#withinViewEnabled)
  92817. */
  92818. withinViewEnabled?: boolean;
  92819. /**
  92820. * The set zoom scale for the resulting search result.
  92821. *
  92822. * @default null
  92823. *
  92824. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#zoomScale)
  92825. */
  92826. zoomScale?: number;
  92827. }
  92828. export type GetResultsHandler = (params: any) => Promise<SearchResult[]>;
  92829. export type GetSuggestionsParameters = (params: any) => Promise<SuggestResult[]>;
  92830. export interface SearchSourceFilter {
  92831. /**
  92832. * The where clause specified for filtering suggests or search results.
  92833. *
  92834. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#filter)
  92835. */
  92836. where?: string;
  92837. /**
  92838. * The filter geometry for suggests or search results.
  92839. *
  92840. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#filter)
  92841. */
  92842. geometry?: Geometry;
  92843. }
  92844. export interface SearchViewModel extends Accessor, Evented, GoTo {
  92845. }
  92846. export class SearchViewModel {
  92847. /**
  92848. * The [source](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#sources) object currently selected.
  92849. *
  92850. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#activeSource)
  92851. */
  92852. readonly activeSource: LayerSearchSource | LocatorSearchSource;
  92853. /**
  92854. * The selected source's index.
  92855. *
  92856. * @default 0
  92857. *
  92858. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#activeSourceIndex)
  92859. */
  92860. activeSourceIndex: number;
  92861. /**
  92862. * String value used as a hint for input text when searching on multiple sources.
  92863. *
  92864. * @default "Find address or place"
  92865. *
  92866. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#allPlaceholder)
  92867. */
  92868. allPlaceholder: string;
  92869. /**
  92870. * The combined collection of [defaultSources](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#defaultSources) and [sources](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#sources).
  92871. *
  92872. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#allSources)
  92873. */
  92874. readonly allSources: Collection<LayerSearchSource | LocatorSearchSource>;
  92875. /**
  92876. * Indicates whether to automatically select and zoom to the first geocoded result.
  92877. *
  92878. * @default true
  92879. *
  92880. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#autoSelect)
  92881. */
  92882. autoSelect: boolean;
  92883. /**
  92884. * A read-only property that is a [Collection](https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html) of [LayerSearchSource](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LayerSearchSource.html) and/or [LocatorSearchSource](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-LocatorSearchSource.html).
  92885. *
  92886. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#defaultSources)
  92887. */
  92888. readonly defaultSources: Collection<LayerSearchSource | LocatorSearchSource>;
  92889. /**
  92890. * The default [symbol(s)](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol.html) for the search result.
  92891. *
  92892. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#defaultSymbols)
  92893. */
  92894. defaultSymbols: SearchViewModelDefaultSymbols;
  92895. /**
  92896. * Indicates whether or not to include [defaultSources](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#defaultSources) in the Search UI.
  92897. *
  92898. * @default true
  92899. *
  92900. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#includeDefaultSources)
  92901. */
  92902. includeDefaultSources: boolean | Function;
  92903. /**
  92904. * Indicates whether location services are enabled within the widget.
  92905. *
  92906. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#locationEnabled)
  92907. */
  92908. locationEnabled: boolean;
  92909. /**
  92910. * The maximum character length of the search text.
  92911. *
  92912. * @default 128
  92913. *
  92914. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#maxInputLength)
  92915. */
  92916. maxInputLength: number;
  92917. /**
  92918. * The maximum number of results returned by the widget if not specified by the source.
  92919. *
  92920. * @default 6
  92921. *
  92922. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#maxResults)
  92923. */
  92924. maxResults: number;
  92925. /**
  92926. * The maximum number of suggestions returned by the widget if not specified by the source.
  92927. *
  92928. * @default 6
  92929. *
  92930. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#maxSuggestions)
  92931. */
  92932. maxSuggestions: number;
  92933. /**
  92934. * The minimum number of characters needed for the search if not specified by the source.
  92935. *
  92936. * @default 1
  92937. *
  92938. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#minSuggestCharacters)
  92939. */
  92940. minSuggestCharacters: number;
  92941. /**
  92942. * The placeholder used by the [activeSource](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#activeSource).
  92943. *
  92944. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#placeholder)
  92945. */
  92946. readonly placeholder: string;
  92947. /**
  92948. * Indicates whether to display the [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html) on feature click.
  92949. *
  92950. * @default true
  92951. *
  92952. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#popupEnabled)
  92953. */
  92954. popupEnabled: boolean;
  92955. /**
  92956. * A customized [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html) for the selected feature.
  92957. *
  92958. * @default null
  92959. *
  92960. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#popupTemplate)
  92961. */
  92962. popupTemplate: PopupTemplate;
  92963. /**
  92964. * It is possible to search a specified portal instance's [locator services](https://enterprise.arcgis.com/en/portal/latest/administer/windows/configure-portal-to-geocode-addresses.htm) Use this property to set this [ArcGIS Portal](https://enterprise.arcgis.com/en/portal/) instance to search.
  92965. *
  92966. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#portal)
  92967. */
  92968. portal: Portal;
  92969. /**
  92970. * The graphic used to highlight the resulting feature or location.
  92971. *
  92972. * @default null
  92973. *
  92974. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#resultGraphic)
  92975. */
  92976. readonly resultGraphic: Graphic;
  92977. /**
  92978. * Indicates if the [resultGraphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#resultGraphic) will display at the location of the selected feature.
  92979. *
  92980. * @default true
  92981. *
  92982. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#resultGraphicEnabled)
  92983. */
  92984. resultGraphicEnabled: boolean;
  92985. /**
  92986. * An array of current results from the search.
  92987. *
  92988. * @default null
  92989. *
  92990. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#results)
  92991. */
  92992. readonly results: any[];
  92993. /**
  92994. * Indicates whether to display the option to search all sources.
  92995. *
  92996. * @default true
  92997. *
  92998. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#searchAllEnabled)
  92999. */
  93000. searchAllEnabled: boolean;
  93001. /**
  93002. * The value of the search box input text string.
  93003. *
  93004. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#searchTerm)
  93005. */
  93006. searchTerm: string;
  93007. /**
  93008. * The result selected from a search.
  93009. *
  93010. * @default null
  93011. *
  93012. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#selectedResult)
  93013. */
  93014. readonly selectedResult: any;
  93015. /**
  93016. * The selected SuggestResult.
  93017. *
  93018. * @default null
  93019. *
  93020. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#selectedSuggestion)
  93021. */
  93022. readonly selectedSuggestion: Geometry | SearchViewModelSuggestResult;
  93023. /**
  93024. * The Search widget may be used to search features in a [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) or [table](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchTable.html), or geocode locations with a [locator](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html).
  93025. *
  93026. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#sources)
  93027. */
  93028. sources: Collection<LayerSearchSource | LocatorSearchSource>;
  93029. /**
  93030. * The current state of the widget.
  93031. *
  93032. * @default ready
  93033. *
  93034. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#state)
  93035. */
  93036. readonly state: "ready" | "disabled" | "searching" | "loading";
  93037. /**
  93038. * The millisecond delay after keyup and before making a [suggest](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#suggest) network request.
  93039. *
  93040. * @default 350
  93041. *
  93042. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#suggestionDelay)
  93043. */
  93044. suggestionDelay: number;
  93045. /**
  93046. * An array of results from the [suggest method](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#suggest).
  93047. *
  93048. * @default null
  93049. *
  93050. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#suggestions)
  93051. */
  93052. readonly suggestions: SearchViewModelSuggestResult[];
  93053. /**
  93054. * Enable suggestions for the widget.
  93055. *
  93056. * @default true
  93057. *
  93058. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#suggestionsEnabled)
  93059. */
  93060. suggestionsEnabled: boolean;
  93061. /**
  93062. * Indicates whether the `View` or `Portal` is loading resources prior to use.
  93063. *
  93064. * @default false
  93065. *
  93066. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#updating)
  93067. */
  93068. readonly updating: boolean;
  93069. /**
  93070. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  93071. *
  93072. * @default null
  93073. *
  93074. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#view)
  93075. */
  93076. view: MapView | SceneView;
  93077. /**
  93078. * Provides the logic for the [Search](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html) widget, which performs search operations on [locator service(s)](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html), [map](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html)/[feature](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) service feature layer(s), and/or [table(s)](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchTable.html).
  93079. *
  93080. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html)
  93081. */
  93082. constructor(properties?: SearchViewModelProperties);
  93083. /**
  93084. * Clears the current value, search results, suggest results, graphic, and graphics layer.
  93085. *
  93086. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#clear)
  93087. */
  93088. clear(): void;
  93089. /**
  93090. * Depending on the sources specified, `search()` queries the feature layer(s) and/or performs address matching using any specified [Locator(s)](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html) and returns the applicable results.
  93091. *
  93092. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#search)
  93093. */
  93094. search(searchTerm?: string | Geometry | SearchViewModelSuggestResult | number[][]): Promise<SearchViewModelSearchResponse>;
  93095. /**
  93096. * Returns search results near your current location.
  93097. *
  93098. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#searchNearby)
  93099. */
  93100. searchNearby(): Promise<SearchViewModelSearchResponse>;
  93101. /**
  93102. * Performs a suggest() request on the active Locator.
  93103. *
  93104. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#suggest)
  93105. */
  93106. suggest(value?: string): Promise<SearchViewModelSuggestResponse>;
  93107. on(name: "search-clear", eventHandler: SearchViewModelSearchClearEventHandler): IHandle;
  93108. on(name: "search-start", eventHandler: SearchViewModelSearchStartEventHandler): IHandle;
  93109. on(name: "suggest-start", eventHandler: SearchViewModelSuggestStartEventHandler): IHandle;
  93110. on(name: "search-complete", eventHandler: SearchViewModelSearchCompleteEventHandler): IHandle;
  93111. on(name: "select-result", eventHandler: SearchViewModelSelectResultEventHandler): IHandle;
  93112. on(name: "suggest-complete", eventHandler: SearchViewModelSuggestCompleteEventHandler): IHandle;
  93113. }
  93114. /** @deprecated Import the SearchViewModel class instead. */
  93115. export type SearchViewModelConstructor = typeof SearchViewModel;
  93116. interface SearchViewModelProperties extends GoToProperties {
  93117. /**
  93118. * The selected source's index.
  93119. *
  93120. * @default 0
  93121. *
  93122. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#activeSourceIndex)
  93123. */
  93124. activeSourceIndex?: number;
  93125. /**
  93126. * String value used as a hint for input text when searching on multiple sources.
  93127. *
  93128. * @default "Find address or place"
  93129. *
  93130. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#allPlaceholder)
  93131. */
  93132. allPlaceholder?: string;
  93133. /**
  93134. * Indicates whether to automatically select and zoom to the first geocoded result.
  93135. *
  93136. * @default true
  93137. *
  93138. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#autoSelect)
  93139. */
  93140. autoSelect?: boolean;
  93141. /**
  93142. * The default [symbol(s)](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol.html) for the search result.
  93143. *
  93144. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#defaultSymbols)
  93145. */
  93146. defaultSymbols?: SearchViewModelDefaultSymbols;
  93147. /**
  93148. * Indicates whether or not to include [defaultSources](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#defaultSources) in the Search UI.
  93149. *
  93150. * @default true
  93151. *
  93152. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#includeDefaultSources)
  93153. */
  93154. includeDefaultSources?: boolean | Function;
  93155. /**
  93156. * Indicates whether location services are enabled within the widget.
  93157. *
  93158. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#locationEnabled)
  93159. */
  93160. locationEnabled?: boolean;
  93161. /**
  93162. * The maximum character length of the search text.
  93163. *
  93164. * @default 128
  93165. *
  93166. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#maxInputLength)
  93167. */
  93168. maxInputLength?: number;
  93169. /**
  93170. * The maximum number of results returned by the widget if not specified by the source.
  93171. *
  93172. * @default 6
  93173. *
  93174. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#maxResults)
  93175. */
  93176. maxResults?: number;
  93177. /**
  93178. * The maximum number of suggestions returned by the widget if not specified by the source.
  93179. *
  93180. * @default 6
  93181. *
  93182. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#maxSuggestions)
  93183. */
  93184. maxSuggestions?: number;
  93185. /**
  93186. * The minimum number of characters needed for the search if not specified by the source.
  93187. *
  93188. * @default 1
  93189. *
  93190. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#minSuggestCharacters)
  93191. */
  93192. minSuggestCharacters?: number;
  93193. /**
  93194. * Indicates whether to display the [Popup](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html) on feature click.
  93195. *
  93196. * @default true
  93197. *
  93198. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#popupEnabled)
  93199. */
  93200. popupEnabled?: boolean;
  93201. /**
  93202. * A customized [PopupTemplate](https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html) for the selected feature.
  93203. *
  93204. * @default null
  93205. *
  93206. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#popupTemplate)
  93207. */
  93208. popupTemplate?: PopupTemplateProperties;
  93209. /**
  93210. * It is possible to search a specified portal instance's [locator services](https://enterprise.arcgis.com/en/portal/latest/administer/windows/configure-portal-to-geocode-addresses.htm) Use this property to set this [ArcGIS Portal](https://enterprise.arcgis.com/en/portal/) instance to search.
  93211. *
  93212. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#portal)
  93213. */
  93214. portal?: PortalProperties;
  93215. /**
  93216. * Indicates if the [resultGraphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#resultGraphic) will display at the location of the selected feature.
  93217. *
  93218. * @default true
  93219. *
  93220. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#resultGraphicEnabled)
  93221. */
  93222. resultGraphicEnabled?: boolean;
  93223. /**
  93224. * Indicates whether to display the option to search all sources.
  93225. *
  93226. * @default true
  93227. *
  93228. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#searchAllEnabled)
  93229. */
  93230. searchAllEnabled?: boolean;
  93231. /**
  93232. * The value of the search box input text string.
  93233. *
  93234. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#searchTerm)
  93235. */
  93236. searchTerm?: string;
  93237. /**
  93238. * The Search widget may be used to search features in a [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) or [table](https://developers.arcgis.com/javascript/latest/api-reference/esri-webdoc-applicationProperties-SearchTable.html), or geocode locations with a [locator](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-locator.html).
  93239. *
  93240. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#sources)
  93241. */
  93242. sources?: CollectionProperties<LayerSearchSourceProperties | LocatorSearchSourceProperties>;
  93243. /**
  93244. * The millisecond delay after keyup and before making a [suggest](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#suggest) network request.
  93245. *
  93246. * @default 350
  93247. *
  93248. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#suggestionDelay)
  93249. */
  93250. suggestionDelay?: number;
  93251. /**
  93252. * Enable suggestions for the widget.
  93253. *
  93254. * @default true
  93255. *
  93256. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#suggestionsEnabled)
  93257. */
  93258. suggestionsEnabled?: boolean;
  93259. /**
  93260. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  93261. *
  93262. * @default null
  93263. *
  93264. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#view)
  93265. */
  93266. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  93267. }
  93268. export interface SearchViewModelSearchClearEvent {
  93269. }
  93270. export interface SearchViewModelSearchCompleteEvent {
  93271. activeSourceIndex: number;
  93272. errors: Error[];
  93273. numResults: number;
  93274. results: SearchViewModelSearchCompleteEventResults[];
  93275. searchTerm: string;
  93276. }
  93277. /**
  93278. * When resolved, returns this response after calling [search](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#search).
  93279. *
  93280. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#SearchResponse)
  93281. */
  93282. export interface SearchViewModelSearchResponse {
  93283. /**
  93284. * The index of the source from which the search result was obtained.
  93285. *
  93286. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#SearchResponse)
  93287. */
  93288. activeSourceIndex: number;
  93289. /**
  93290. * An array of error objects returned from the search results.
  93291. *
  93292. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#SearchResponse)
  93293. */
  93294. errors: Error[];
  93295. /**
  93296. * The number of search results.
  93297. *
  93298. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#SearchResponse)
  93299. */
  93300. numResults: number;
  93301. /**
  93302. * The searched expression
  93303. *
  93304. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#SearchResponse)
  93305. */
  93306. searchTerm: string;
  93307. /**
  93308. * An array of objects representing the results of search.
  93309. *
  93310. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#SearchResponse)
  93311. */
  93312. results: SearchViewModelSearchResponseResults[];
  93313. }
  93314. /**
  93315. * The result object returned from the [search](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#search).
  93316. *
  93317. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#SearchResult)
  93318. */
  93319. export interface SearchViewModelSearchResult {
  93320. /**
  93321. * The extent, or bounding box, of the returned feature.
  93322. *
  93323. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#SearchResult)
  93324. */
  93325. extent: Extent;
  93326. /**
  93327. * The resulting feature or location obtained from the search.
  93328. *
  93329. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#SearchResult)
  93330. */
  93331. feature: Graphic;
  93332. /**
  93333. * The name of the result.
  93334. *
  93335. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#SearchResult)
  93336. */
  93337. name: string;
  93338. }
  93339. export interface SearchViewModelSearchStartEvent {
  93340. }
  93341. export interface SearchViewModelDefaultSymbols {
  93342. /**
  93343. * A [SimpleMarkerSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleMarkerSymbol.html), [PointSymbol3D](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PointSymbol3D.html), [TextSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html), [CIMSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html), or [WebStyleSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WebStyleSymbol.html) used for representing the point geometry that is being drawn for the search result.
  93344. *
  93345. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#defaultSymbols)
  93346. */
  93347. point?: SimpleMarkerSymbol | PointSymbol3D | TextSymbol | CIMSymbol | WebStyleSymbol;
  93348. /**
  93349. * A [SimpleFillSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleFillSymbol.html), [PolygonSymbol3D](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PolygonSymbol3D.html), or [CIMSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html) used for representing the polygon geometry that is being drawn for the search result.
  93350. *
  93351. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#defaultSymbols)
  93352. */
  93353. polygon?: SimpleFillSymbol | PolygonSymbol3D | CIMSymbol;
  93354. /**
  93355. * A [SimpleLineSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html), [LineSymbol3D](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3D.html), or [CIMSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html) used for representing the polyline geometry that is being drawn for the search result.
  93356. *
  93357. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#defaultSymbols)
  93358. */
  93359. polyline?: SimpleLineSymbol | LineSymbol3D | CIMSymbol;
  93360. }
  93361. export interface SearchViewModelSelectResultEvent {
  93362. result: SearchViewModelSelectResultEventResult;
  93363. source: any;
  93364. sourceIndex: number;
  93365. }
  93366. export interface SearchViewModelSuggestCompleteEvent {
  93367. activeSourceIndex: number;
  93368. errors: Error[];
  93369. numResults: number;
  93370. results: SearchViewModelSuggestCompleteEventResults[];
  93371. searchTerm: string;
  93372. }
  93373. /**
  93374. * When resolved, returns this response after calling [suggest](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#suggest).
  93375. *
  93376. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#SuggestResponse)
  93377. */
  93378. export interface SearchViewModelSuggestResponse {
  93379. /**
  93380. * The index of the source from which suggestions are obtained.
  93381. *
  93382. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#SuggestResponse)
  93383. */
  93384. activeSourceIndex: number;
  93385. /**
  93386. * An array of error objects returned from the suggest results.
  93387. *
  93388. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#SuggestResponse)
  93389. */
  93390. errors: Error[];
  93391. /**
  93392. * The number of suggest results.
  93393. *
  93394. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#SuggestResponse)
  93395. */
  93396. numResults: number;
  93397. /**
  93398. * The search expression used for the suggest.
  93399. *
  93400. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#SuggestResponse)
  93401. */
  93402. searchTerm: string;
  93403. /**
  93404. * An array of objects representing the results of suggest.
  93405. *
  93406. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#SuggestResponse)
  93407. */
  93408. results: SearchViewModelSuggestResponseResults[];
  93409. }
  93410. /**
  93411. * The result object returned from a [suggest](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#suggest).
  93412. *
  93413. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#SuggestResult)
  93414. */
  93415. export interface SearchViewModelSuggestResult {
  93416. /**
  93417. * The key related to the suggest result.
  93418. *
  93419. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#SuggestResult)
  93420. */
  93421. key: string;
  93422. /**
  93423. * The string name of the suggested location to geocode.
  93424. *
  93425. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#SuggestResult)
  93426. */
  93427. text: string;
  93428. /**
  93429. * The index of the currently selected result.
  93430. *
  93431. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#SuggestResult)
  93432. */
  93433. sourceIndex: number;
  93434. }
  93435. export interface SearchViewModelSuggestStartEvent {
  93436. }
  93437. export interface SearchViewModelSearchCompleteEventResults {
  93438. results: SearchResult[];
  93439. sourceIndex: number;
  93440. source: any[];
  93441. }
  93442. export interface SearchViewModelSearchResponseResults {
  93443. /**
  93444. * An array of search results.
  93445. *
  93446. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#SearchResponse)
  93447. */
  93448. results: SearchViewModelSearchResult[];
  93449. /**
  93450. * The index of the currently selected source.
  93451. *
  93452. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#SearchResponse)
  93453. */
  93454. sourceIndex: number;
  93455. /**
  93456. * The [source](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#sources) of the selected result.
  93457. *
  93458. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#SearchResponse)
  93459. */
  93460. source: any;
  93461. }
  93462. export interface SearchViewModelSelectResultEventResult {
  93463. extent: Extent;
  93464. feature: Graphic;
  93465. name: string;
  93466. }
  93467. export interface SearchViewModelSuggestCompleteEventResults {
  93468. results: SearchViewModelSuggestResult[];
  93469. sourceIndex: number;
  93470. source: any;
  93471. }
  93472. export interface SearchViewModelSuggestResponseResults {
  93473. /**
  93474. * An array of suggest results.
  93475. *
  93476. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#SuggestResponse)
  93477. */
  93478. results: SearchViewModelSuggestResult[];
  93479. /**
  93480. * The index of the currently selected source.
  93481. *
  93482. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#SuggestResponse)
  93483. */
  93484. sourceIndex: number;
  93485. /**
  93486. * The [source](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#sources) of the selected result.
  93487. *
  93488. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchViewModel.html#SuggestResponse)
  93489. */
  93490. source: any;
  93491. }
  93492. export interface SearchSearchBlurEvent {
  93493. }
  93494. export interface SearchSearchClearEvent {
  93495. }
  93496. export interface SearchSearchCompleteEvent {
  93497. activeSourceIndex: number;
  93498. errors: Error[];
  93499. numResults: number;
  93500. results: SearchSearchCompleteEventResults[];
  93501. searchTerm: string;
  93502. }
  93503. export interface SearchSearchFocusEvent {
  93504. }
  93505. /**
  93506. * When resolved, returns this response after calling [search](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#search).
  93507. *
  93508. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SearchResponse)
  93509. */
  93510. export interface SearchResponse {
  93511. /**
  93512. * The index of the source from which the search result was obtained.
  93513. *
  93514. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SearchResponse)
  93515. */
  93516. activeSourceIndex: number;
  93517. /**
  93518. * An array of error objects returned from the search results.
  93519. *
  93520. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SearchResponse)
  93521. */
  93522. errors: Error[];
  93523. /**
  93524. * The number of search results.
  93525. *
  93526. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SearchResponse)
  93527. */
  93528. numResults: number;
  93529. /**
  93530. * The searched expression
  93531. *
  93532. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SearchResponse)
  93533. */
  93534. searchTerm: string;
  93535. /**
  93536. * An array of objects representing the results of search.
  93537. *
  93538. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SearchResponse)
  93539. */
  93540. results: SearchResponseResults[];
  93541. }
  93542. /**
  93543. * The result object returned from a [search()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#search).
  93544. *
  93545. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SearchResult)
  93546. */
  93547. export interface SearchResult {
  93548. /**
  93549. * The extent, or bounding box, of the returned feature.
  93550. *
  93551. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SearchResult)
  93552. */
  93553. extent: Extent;
  93554. /**
  93555. * The resulting feature or location obtained from the search.
  93556. *
  93557. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SearchResult)
  93558. */
  93559. feature: Graphic;
  93560. /**
  93561. * The name of the result.
  93562. *
  93563. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SearchResult)
  93564. */
  93565. name: string;
  93566. /**
  93567. * The target of the result, which is a [Graphic](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) used for either [MapView goTo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#goTo) or [SceneView goTo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#goTo) navigation.
  93568. *
  93569. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SearchResult)
  93570. */
  93571. target: Graphic;
  93572. }
  93573. export interface SearchSearchStartEvent {
  93574. }
  93575. export interface SearchSelectResultEvent {
  93576. result: SearchSelectResultEventResult;
  93577. source: any;
  93578. sourceIndex: number;
  93579. }
  93580. export interface SearchSuggestCompleteEvent {
  93581. activeSourceIndex: number;
  93582. errors: Error[];
  93583. numResults: number;
  93584. results: SearchSuggestCompleteEventResults[];
  93585. searchTerm: string;
  93586. }
  93587. /**
  93588. * When resolved, returns this response after calling [suggest](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#suggest).
  93589. *
  93590. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SuggestResponse)
  93591. */
  93592. export interface SuggestResponse {
  93593. /**
  93594. * The index of the source from which suggestions are obtained.
  93595. *
  93596. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SuggestResponse)
  93597. */
  93598. activeSourceIndex: number;
  93599. /**
  93600. * An array of error objects returned from the suggest results.
  93601. *
  93602. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SuggestResponse)
  93603. */
  93604. errors: Error[];
  93605. /**
  93606. * The number of suggest results.
  93607. *
  93608. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SuggestResponse)
  93609. */
  93610. numResults: number;
  93611. /**
  93612. * The search expression used for the suggest.
  93613. *
  93614. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SuggestResponse)
  93615. */
  93616. searchTerm: string;
  93617. /**
  93618. * An array of objects representing the results of suggest.
  93619. *
  93620. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SuggestResponse)
  93621. */
  93622. results: SuggestResponseResults[];
  93623. }
  93624. /**
  93625. * The result object returned from a [suggest()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#suggest).
  93626. *
  93627. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SuggestResult)
  93628. */
  93629. export interface SuggestResult {
  93630. /**
  93631. * The key related to the suggest result.
  93632. *
  93633. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SuggestResult)
  93634. */
  93635. key: string;
  93636. /**
  93637. * The string name of the suggested location to geocode.
  93638. *
  93639. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SuggestResult)
  93640. */
  93641. text: string;
  93642. /**
  93643. * The index of the currently selected result.
  93644. *
  93645. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SuggestResult)
  93646. */
  93647. sourceIndex: number;
  93648. }
  93649. export interface SearchSuggestStartEvent {
  93650. }
  93651. export interface SearchSearchCompleteEventResults {
  93652. results: SearchResult[];
  93653. sourceIndex: number;
  93654. source: any;
  93655. }
  93656. export interface SearchResponseResults {
  93657. /**
  93658. * An array of search results.
  93659. *
  93660. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SearchResponse)
  93661. */
  93662. results: SearchResult[];
  93663. /**
  93664. * The index of the currently selected source.
  93665. *
  93666. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SearchResponse)
  93667. */
  93668. sourceIndex: number;
  93669. /**
  93670. * The [source](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#sources) of the selected result.
  93671. *
  93672. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SearchResponse)
  93673. */
  93674. source: any;
  93675. }
  93676. export interface SearchSelectResultEventResult {
  93677. extent: Extent;
  93678. feature: Graphic;
  93679. name: string;
  93680. }
  93681. export interface SearchSuggestCompleteEventResults {
  93682. results: SuggestResult[];
  93683. sourceIndex: number;
  93684. source: any;
  93685. }
  93686. export interface SuggestResponseResults {
  93687. /**
  93688. * An array of suggest results.
  93689. *
  93690. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SuggestResponse)
  93691. */
  93692. results: SuggestResult[];
  93693. /**
  93694. * The index of the currently selected source.
  93695. *
  93696. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SuggestResponse)
  93697. */
  93698. sourceIndex: number;
  93699. /**
  93700. * The [source](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#sources) of the selected result.
  93701. *
  93702. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SuggestResponse)
  93703. */
  93704. source: any;
  93705. }
  93706. export class ShadowCast extends Widget {
  93707. /**
  93708. * Indicates the heading level to use for the titles "Time range" and "Visualization".
  93709. *
  93710. * @default 4
  93711. *
  93712. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast.html#headingLevel)
  93713. */
  93714. headingLevel: number;
  93715. /**
  93716. * The widget's default CSS icon class.
  93717. *
  93718. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast.html#iconClass)
  93719. */
  93720. iconClass: string;
  93721. /**
  93722. * A reference to the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html).
  93723. *
  93724. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast.html#view)
  93725. */
  93726. view: SceneView;
  93727. /**
  93728. * The view model for this widget.
  93729. *
  93730. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast.html#viewModel)
  93731. */
  93732. viewModel: ShadowCastViewModel;
  93733. /**
  93734. * This property provides the ability to display or hide the individual elements of the widget.
  93735. *
  93736. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast.html#visibleElements)
  93737. */
  93738. visibleElements: ShadowCastVisibleElements;
  93739. /**
  93740. * The ShadowCast widget displays the cumulative shadows of 3D features in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  93741. *
  93742. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast.html)
  93743. */
  93744. constructor(properties?: ShadowCastProperties);
  93745. }
  93746. /** @deprecated Import the ShadowCast class instead. */
  93747. export type ShadowCastConstructor = typeof ShadowCast;
  93748. interface ShadowCastProperties extends WidgetProperties {
  93749. /**
  93750. * Indicates the heading level to use for the titles "Time range" and "Visualization".
  93751. *
  93752. * @default 4
  93753. *
  93754. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast.html#headingLevel)
  93755. */
  93756. headingLevel?: number;
  93757. /**
  93758. * The widget's default CSS icon class.
  93759. *
  93760. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast.html#iconClass)
  93761. */
  93762. iconClass?: string;
  93763. /**
  93764. * A reference to the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html).
  93765. *
  93766. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast.html#view)
  93767. */
  93768. view?: SceneViewProperties;
  93769. /**
  93770. * The view model for this widget.
  93771. *
  93772. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast.html#viewModel)
  93773. */
  93774. viewModel?: ShadowCastViewModelProperties;
  93775. /**
  93776. * This property provides the ability to display or hide the individual elements of the widget.
  93777. *
  93778. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast.html#visibleElements)
  93779. */
  93780. visibleElements?: ShadowCastVisibleElements;
  93781. }
  93782. export class ShadowCastViewModel extends Accessor {
  93783. /**
  93784. * The calendar date used to calculate the shadow cast.
  93785. *
  93786. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#date)
  93787. */
  93788. date: Date;
  93789. /**
  93790. * The configuration used when the widget's [visualizationType](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#visualizationType) is set to "discrete".
  93791. *
  93792. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#discreteOptions)
  93793. */
  93794. discreteOptions: ShadowCastViewModelDiscreteOptions;
  93795. /**
  93796. * The configuration used when the widget's [visualizationType](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#visualizationType) is set to "duration".
  93797. *
  93798. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#durationOptions)
  93799. */
  93800. durationOptions: ShadowCastViewModelDurationOptions;
  93801. /**
  93802. * Time (in milliseconds from midnight of the [date](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#date)) when the shadow cast computation should stop.
  93803. *
  93804. * @default 16 * 3600 * 1000
  93805. *
  93806. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#endTimeOfDay)
  93807. */
  93808. endTimeOfDay: number;
  93809. /**
  93810. * Time (in milliseconds from midnight of the [date](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#date)) when the shadow cast computation should start.
  93811. *
  93812. * @default 10 * 3600 * 1000
  93813. *
  93814. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#startTimeOfDay)
  93815. */
  93816. startTimeOfDay: number;
  93817. /**
  93818. * The current state of the view model that can be used for rendering the UI of the widget.
  93819. *
  93820. * @default disabled
  93821. *
  93822. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#state)
  93823. */
  93824. readonly state: "disabled" | "ready";
  93825. /**
  93826. * The configuration used when the widget's [visualizationType](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#visualizationType) is set to "threshold".
  93827. *
  93828. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#thresholdOptions)
  93829. */
  93830. thresholdOptions: ShadowCastViewModelThresholdOptions;
  93831. /**
  93832. * The difference in hours between UTC time and the times displayed in the widget.
  93833. *
  93834. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#utcOffset)
  93835. */
  93836. utcOffset: number;
  93837. /**
  93838. * A reference to the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html).
  93839. *
  93840. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#view)
  93841. */
  93842. view: SceneView;
  93843. /**
  93844. * Type of visualization to use when showing the shadows.
  93845. *
  93846. * @default "threshold"
  93847. *
  93848. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#visualizationType)
  93849. */
  93850. visualizationType: "threshold" | "duration" | "discrete";
  93851. /**
  93852. * Provides the logic for the [ShadowCast](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast.html) widget.
  93853. *
  93854. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html)
  93855. */
  93856. constructor(properties?: ShadowCastViewModelProperties);
  93857. /**
  93858. * Returns the time (in milliseconds) spent in shadow for a certain point on the screen.
  93859. *
  93860. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#getDuration)
  93861. */
  93862. getDuration(point: SceneViewScreenPoint): number;
  93863. /**
  93864. * Starts the widget.
  93865. *
  93866. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#start)
  93867. */
  93868. start(): void;
  93869. /**
  93870. * Stops the widget.
  93871. *
  93872. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#stop)
  93873. */
  93874. stop(): void;
  93875. }
  93876. /** @deprecated Import the ShadowCastViewModel class instead. */
  93877. export type ShadowCastViewModelConstructor = typeof ShadowCastViewModel;
  93878. interface ShadowCastViewModelProperties {
  93879. /**
  93880. * The calendar date used to calculate the shadow cast.
  93881. *
  93882. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#date)
  93883. */
  93884. date?: DateProperties;
  93885. /**
  93886. * The configuration used when the widget's [visualizationType](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#visualizationType) is set to "discrete".
  93887. *
  93888. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#discreteOptions)
  93889. */
  93890. discreteOptions?: ShadowCastViewModelDiscreteOptionsProperties;
  93891. /**
  93892. * The configuration used when the widget's [visualizationType](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#visualizationType) is set to "duration".
  93893. *
  93894. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#durationOptions)
  93895. */
  93896. durationOptions?: ShadowCastViewModelDurationOptionsProperties;
  93897. /**
  93898. * Time (in milliseconds from midnight of the [date](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#date)) when the shadow cast computation should stop.
  93899. *
  93900. * @default 16 * 3600 * 1000
  93901. *
  93902. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#endTimeOfDay)
  93903. */
  93904. endTimeOfDay?: number;
  93905. /**
  93906. * Time (in milliseconds from midnight of the [date](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#date)) when the shadow cast computation should start.
  93907. *
  93908. * @default 10 * 3600 * 1000
  93909. *
  93910. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#startTimeOfDay)
  93911. */
  93912. startTimeOfDay?: number;
  93913. /**
  93914. * The configuration used when the widget's [visualizationType](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#visualizationType) is set to "threshold".
  93915. *
  93916. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#thresholdOptions)
  93917. */
  93918. thresholdOptions?: ShadowCastViewModelThresholdOptionsProperties;
  93919. /**
  93920. * The difference in hours between UTC time and the times displayed in the widget.
  93921. *
  93922. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#utcOffset)
  93923. */
  93924. utcOffset?: number;
  93925. /**
  93926. * A reference to the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html).
  93927. *
  93928. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#view)
  93929. */
  93930. view?: SceneViewProperties;
  93931. /**
  93932. * Type of visualization to use when showing the shadows.
  93933. *
  93934. * @default "threshold"
  93935. *
  93936. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#visualizationType)
  93937. */
  93938. visualizationType?: "threshold" | "duration" | "discrete";
  93939. }
  93940. export interface ShadowCastViewModelDiscreteOptionsProperties {
  93941. /**
  93942. * Color of the shadow visualization.
  93943. *
  93944. * @default [50, 50, 50, 0.7]
  93945. *
  93946. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#discreteOptions)
  93947. */
  93948. color?: Color;
  93949. /**
  93950. * Individual shadows are displayed at this time interval, starting with the [startTimeOfDay](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#startTimeOfDay).
  93951. *
  93952. * @default 15 * 60 * 1000
  93953. *
  93954. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#discreteOptions)
  93955. */
  93956. interval?: number;
  93957. /**
  93958. * Values (in milliseconds) selectable in the UI for the interval used to display shadows.
  93959. *
  93960. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#discreteOptions)
  93961. */
  93962. intervalOptions?: CollectionProperties<number>;
  93963. }
  93964. export interface ShadowCastViewModelDiscreteOptions extends AnonymousAccessor {
  93965. /**
  93966. * Color of the shadow visualization.
  93967. *
  93968. * @default [50, 50, 50, 0.7]
  93969. *
  93970. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#discreteOptions)
  93971. */
  93972. color?: Color;
  93973. /**
  93974. * Individual shadows are displayed at this time interval, starting with the [startTimeOfDay](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#startTimeOfDay).
  93975. *
  93976. * @default 15 * 60 * 1000
  93977. *
  93978. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#discreteOptions)
  93979. */
  93980. interval?: number;
  93981. /**
  93982. * Values (in milliseconds) selectable in the UI for the interval used to display shadows.
  93983. *
  93984. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#discreteOptions)
  93985. */
  93986. intervalOptions?: Collection<number>;
  93987. }
  93988. export interface ShadowCastViewModelDurationOptionsProperties {
  93989. /**
  93990. * Color of the shadow cast.
  93991. *
  93992. * @default [50, 50, 50, 0.7]
  93993. *
  93994. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#durationOptions)
  93995. */
  93996. color?: Color;
  93997. /**
  93998. * Mode in which the cumulative shadow duration should be displayed: as a continuous surface or as an hourly aggregation of values.
  93999. *
  94000. * @default "continuous"
  94001. *
  94002. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#durationOptions)
  94003. */
  94004. mode?: "continuous" | "hourly";
  94005. }
  94006. export interface ShadowCastViewModelDurationOptions extends AnonymousAccessor {
  94007. /**
  94008. * Color of the shadow cast.
  94009. *
  94010. * @default [50, 50, 50, 0.7]
  94011. *
  94012. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#durationOptions)
  94013. */
  94014. color?: Color;
  94015. /**
  94016. * Mode in which the cumulative shadow duration should be displayed: as a continuous surface or as an hourly aggregation of values.
  94017. *
  94018. * @default "continuous"
  94019. *
  94020. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#durationOptions)
  94021. */
  94022. mode?: "continuous" | "hourly";
  94023. }
  94024. export interface ShadowCastViewModelThresholdOptionsProperties {
  94025. /**
  94026. * Color of the shadow visualization.
  94027. *
  94028. * @default [255, 0 , 0, 0.7]
  94029. *
  94030. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#thresholdOptions)
  94031. */
  94032. color?: Color;
  94033. /**
  94034. * Time period in milliseconds.
  94035. *
  94036. * @default 4 * 3600 * 1000
  94037. *
  94038. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#thresholdOptions)
  94039. */
  94040. value?: number;
  94041. /**
  94042. * The minimum time period (in milliseconds) selectable in the UI for the threshold value.
  94043. *
  94044. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#thresholdOptions)
  94045. */
  94046. minValue?: number;
  94047. /**
  94048. * The maximum time period (in milliseconds) selectable in the UI for the threshold value.
  94049. *
  94050. * @default 8 * 3600 * 1000
  94051. *
  94052. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#thresholdOptions)
  94053. */
  94054. maxValue?: number;
  94055. }
  94056. export interface ShadowCastViewModelThresholdOptions extends AnonymousAccessor {
  94057. /**
  94058. * Color of the shadow visualization.
  94059. *
  94060. * @default [255, 0 , 0, 0.7]
  94061. *
  94062. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#thresholdOptions)
  94063. */
  94064. color?: Color;
  94065. /**
  94066. * Time period in milliseconds.
  94067. *
  94068. * @default 4 * 3600 * 1000
  94069. *
  94070. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#thresholdOptions)
  94071. */
  94072. value?: number;
  94073. /**
  94074. * The minimum time period (in milliseconds) selectable in the UI for the threshold value.
  94075. *
  94076. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#thresholdOptions)
  94077. */
  94078. minValue?: number;
  94079. /**
  94080. * The maximum time period (in milliseconds) selectable in the UI for the threshold value.
  94081. *
  94082. * @default 8 * 3600 * 1000
  94083. *
  94084. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast-ShadowCastViewModel.html#thresholdOptions)
  94085. */
  94086. maxValue?: number;
  94087. }
  94088. /**
  94089. * The visible elements that are displayed within the widget.
  94090. *
  94091. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast.html#VisibleElements)
  94092. */
  94093. export interface ShadowCastVisibleElements {
  94094. /**
  94095. * When set to `false`, the slider used to select a time range for the analysis is not displayed.
  94096. *
  94097. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast.html#VisibleElements)
  94098. */
  94099. timeRangeSlider?: boolean;
  94100. /**
  94101. * When set to `false`, the dropdown used to select a timezone for the time range is not displayed.
  94102. *
  94103. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast.html#VisibleElements)
  94104. */
  94105. timezone?: boolean;
  94106. /**
  94107. * When set to `false`, the date picker is not displayed.
  94108. *
  94109. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast.html#VisibleElements)
  94110. */
  94111. datePicker?: boolean;
  94112. /**
  94113. * When set to `false`, the options for the various visualization modes are not displayed.
  94114. *
  94115. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast.html#VisibleElements)
  94116. */
  94117. visualizationOptions?: boolean;
  94118. /**
  94119. * When set to `false`, the color picker is not displayed in the options for any of the visualization modes.
  94120. *
  94121. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast.html#VisibleElements)
  94122. */
  94123. colorPicker?: boolean;
  94124. /**
  94125. * When set to `false`, the tooltip with the accumulated shadow time is not displayed when hovering the view.
  94126. *
  94127. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ShadowCast.html#VisibleElements)
  94128. */
  94129. tooltip?: boolean;
  94130. }
  94131. export class Sketch extends Widget {
  94132. /**
  94133. * When creating new graphics (for example after [create()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#create) has been called), this property reflects the create tool being used.
  94134. *
  94135. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#activeTool)
  94136. */
  94137. readonly activeTool: | "point"
  94138. | "polyline"
  94139. | "polygon"
  94140. | "circle"
  94141. | "rectangle"
  94142. | "move"
  94143. | "transform"
  94144. | "reshape"
  94145. | "rectangle-selection"
  94146. | "lasso-selection";
  94147. /**
  94148. * Property controlling the visibility and order of create tool buttons.
  94149. *
  94150. * @default ["point", "polyline", "polygon", "rectangle", "circle"]
  94151. *
  94152. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#availableCreateTools)
  94153. */
  94154. availableCreateTools: string[];
  94155. /**
  94156. * The graphic that is being created.
  94157. *
  94158. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#createGraphic)
  94159. */
  94160. readonly createGraphic: Graphic;
  94161. /**
  94162. * Defines the default behavior once the [create](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#create) operation is completed.
  94163. *
  94164. * @default continuous
  94165. *
  94166. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#creationMode)
  94167. */
  94168. creationMode: "single" | "continuous" | "update";
  94169. /**
  94170. * Default create options set for the Sketch widget.
  94171. *
  94172. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#defaultCreateOptions)
  94173. */
  94174. defaultCreateOptions: SketchDefaultCreateOptions;
  94175. /**
  94176. * Default update options set for the Sketch widget.
  94177. *
  94178. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#defaultUpdateOptions)
  94179. */
  94180. defaultUpdateOptions: SketchDefaultUpdateOptions;
  94181. /**
  94182. * The Sketch widget's default CSS icon class.
  94183. *
  94184. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#iconClass)
  94185. */
  94186. iconClass: string;
  94187. /**
  94188. * Options to configure the labels shown next to each segment of the geometry being created or updated.
  94189. *
  94190. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#labelOptions)
  94191. */
  94192. labelOptions: SketchLabelOptions;
  94193. /**
  94194. * The [GraphicsLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html) associated with the Sketch widget.
  94195. *
  94196. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#layer)
  94197. */
  94198. layer: GraphicsLayer;
  94199. /**
  94200. * Determines the layout/orientation of the Sketch widget.
  94201. *
  94202. * @default horizontal
  94203. *
  94204. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#layout)
  94205. */
  94206. layout: "vertical" | "horizontal";
  94207. /**
  94208. * The [SnappingOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-SnappingOptions.html) for sketching.
  94209. *
  94210. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#snappingOptions)
  94211. */
  94212. snappingOptions: SnappingOptions;
  94213. /**
  94214. * The Sketch widget's state.
  94215. *
  94216. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#state)
  94217. */
  94218. readonly state: "ready" | "disabled" | "active";
  94219. /**
  94220. * Options to configure the tooltip shown next to the cursor when creating or updating graphics.
  94221. *
  94222. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#tooltipOptions)
  94223. */
  94224. tooltipOptions: SketchTooltipOptions;
  94225. /**
  94226. * An array of [graphics](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) that are being updated by the Sketch widget.
  94227. *
  94228. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#updateGraphics)
  94229. */
  94230. readonly updateGraphics: Collection<Graphic>;
  94231. /**
  94232. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  94233. *
  94234. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#view)
  94235. */
  94236. view: MapView | SceneView;
  94237. /**
  94238. * The view model for the Sketch widget.
  94239. *
  94240. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#viewModel)
  94241. */
  94242. viewModel: SketchViewModel;
  94243. /**
  94244. * The visible elements that are displayed within the widget.
  94245. *
  94246. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#visibleElements)
  94247. */
  94248. visibleElements: SketchVisibleElements;
  94249. /**
  94250. * Sketch widget provides a simple UI for creating and updating graphics on a [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  94251. *
  94252. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html)
  94253. */
  94254. constructor(properties?: SketchProperties);
  94255. /**
  94256. * Cancels the active operation and fires the [create](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#event-create) or [update](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#event-update) event.
  94257. *
  94258. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#cancel)
  94259. */
  94260. cancel(): void;
  94261. /**
  94262. * Completes the active operation and fires the [create](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#event-create) or [update](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#event-update) event and changes the event's state to `complete`.
  94263. *
  94264. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#complete)
  94265. */
  94266. complete(): void;
  94267. /**
  94268. * Create a graphic with the geometry specified in the `tool` parameter.
  94269. *
  94270. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#create)
  94271. */
  94272. create(tool: "point" | "polyline" | "polygon" | "rectangle" | "circle", createOptions?: SketchCreateCreateOptions): void;
  94273. /**
  94274. * Deletes the selected graphics used in the update workflow.
  94275. *
  94276. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#delete)
  94277. */
  94278. delete(): void;
  94279. /**
  94280. * Incrementally redo actions recorded in the stack.
  94281. *
  94282. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#redo)
  94283. */
  94284. redo(): void;
  94285. /**
  94286. * Incrementally undo actions recorded in the stack.
  94287. *
  94288. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#undo)
  94289. */
  94290. undo(): void;
  94291. /**
  94292. * Initializes an update operation for the specified graphic(s) and fires [update](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#event-update) event.
  94293. *
  94294. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#update)
  94295. */
  94296. update(graphics: Graphic | Graphic[], updateOptions?: SketchUpdateUpdateOptions): Promise<void>;
  94297. on(name: "delete", eventHandler: SketchDeleteEventHandler): IHandle;
  94298. on(name: "create", eventHandler: SketchCreateEventHandler): IHandle;
  94299. on(name: "update", eventHandler: SketchUpdateEventHandler): IHandle;
  94300. on(name: "redo", eventHandler: SketchRedoEventHandler): IHandle;
  94301. on(name: "undo", eventHandler: SketchUndoEventHandler): IHandle;
  94302. }
  94303. /** @deprecated Import the Sketch class instead. */
  94304. export type SketchConstructor = typeof Sketch;
  94305. interface SketchProperties extends WidgetProperties {
  94306. /**
  94307. * Property controlling the visibility and order of create tool buttons.
  94308. *
  94309. * @default ["point", "polyline", "polygon", "rectangle", "circle"]
  94310. *
  94311. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#availableCreateTools)
  94312. */
  94313. availableCreateTools?: string[];
  94314. /**
  94315. * Defines the default behavior once the [create](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#create) operation is completed.
  94316. *
  94317. * @default continuous
  94318. *
  94319. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#creationMode)
  94320. */
  94321. creationMode?: "single" | "continuous" | "update";
  94322. /**
  94323. * Default create options set for the Sketch widget.
  94324. *
  94325. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#defaultCreateOptions)
  94326. */
  94327. defaultCreateOptions?: SketchDefaultCreateOptions;
  94328. /**
  94329. * Default update options set for the Sketch widget.
  94330. *
  94331. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#defaultUpdateOptions)
  94332. */
  94333. defaultUpdateOptions?: SketchDefaultUpdateOptions;
  94334. /**
  94335. * The Sketch widget's default CSS icon class.
  94336. *
  94337. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#iconClass)
  94338. */
  94339. iconClass?: string;
  94340. /**
  94341. * Options to configure the labels shown next to each segment of the geometry being created or updated.
  94342. *
  94343. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#labelOptions)
  94344. */
  94345. labelOptions?: SketchLabelOptionsProperties;
  94346. /**
  94347. * The [GraphicsLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html) associated with the Sketch widget.
  94348. *
  94349. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#layer)
  94350. */
  94351. layer?: GraphicsLayerProperties;
  94352. /**
  94353. * Determines the layout/orientation of the Sketch widget.
  94354. *
  94355. * @default horizontal
  94356. *
  94357. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#layout)
  94358. */
  94359. layout?: "vertical" | "horizontal";
  94360. /**
  94361. * The [SnappingOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-SnappingOptions.html) for sketching.
  94362. *
  94363. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#snappingOptions)
  94364. */
  94365. snappingOptions?: SnappingOptionsProperties;
  94366. /**
  94367. * Options to configure the tooltip shown next to the cursor when creating or updating graphics.
  94368. *
  94369. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#tooltipOptions)
  94370. */
  94371. tooltipOptions?: SketchTooltipOptionsProperties;
  94372. /**
  94373. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  94374. *
  94375. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#view)
  94376. */
  94377. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  94378. /**
  94379. * The view model for the Sketch widget.
  94380. *
  94381. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#viewModel)
  94382. */
  94383. viewModel?: SketchViewModelProperties;
  94384. /**
  94385. * The visible elements that are displayed within the widget.
  94386. *
  94387. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#visibleElements)
  94388. */
  94389. visibleElements?: SketchVisibleElements;
  94390. }
  94391. export interface SketchViewModel extends Accessor, Evented {
  94392. }
  94393. export class SketchViewModel {
  94394. /**
  94395. * The [SimpleFillSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleFillSymbol.html) displayed when actively creating a new `polygon` graphic using the [`polygon`](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#activeTool) tool.
  94396. *
  94397. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#activeFillSymbol)
  94398. */
  94399. activeFillSymbol: SimpleFillSymbol;
  94400. /**
  94401. * When creating new graphics (for example after [create()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#create) has been called), this property reflects the create tool being used.
  94402. *
  94403. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#activeTool)
  94404. */
  94405. readonly activeTool: | "point"
  94406. | "multipoint"
  94407. | "polyline"
  94408. | "polygon"
  94409. | "circle"
  94410. | "rectangle"
  94411. | "move"
  94412. | "transform"
  94413. | "reshape";
  94414. /**
  94415. * The graphic that is being created.
  94416. *
  94417. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#createGraphic)
  94418. */
  94419. readonly createGraphic: Graphic;
  94420. /**
  94421. * Default create options set for the SketchViewModel.
  94422. *
  94423. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#defaultCreateOptions)
  94424. */
  94425. defaultCreateOptions: SketchViewModelDefaultCreateOptions;
  94426. /**
  94427. * Default update options set for the SketchViewModel.
  94428. *
  94429. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#defaultUpdateOptions)
  94430. */
  94431. defaultUpdateOptions: SketchViewModelDefaultUpdateOptions;
  94432. /**
  94433. * Options to configure the labels shown next to each segment of the geometry being created or updated.
  94434. *
  94435. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#labelOptions)
  94436. */
  94437. labelOptions: SketchLabelOptions;
  94438. /**
  94439. * The [GraphicsLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html) associated with the SketchViewModel.
  94440. *
  94441. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#layer)
  94442. */
  94443. layer: GraphicsLayer;
  94444. /**
  94445. * A [SimpleMarkerSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleMarkerSymbol.html), [PointSymbol3D](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PointSymbol3D.html), [TextSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html), [CIMSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html), or [WebStyleSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WebStyleSymbol.html) used for representing the point geometry that is being drawn.
  94446. *
  94447. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#pointSymbol)
  94448. */
  94449. pointSymbol: SimpleMarkerSymbol | PointSymbol3D | TextSymbol | CIMSymbol | WebStyleSymbol;
  94450. /**
  94451. * A [SimpleFillSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleFillSymbol.html), [PolygonSymbol3D](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PolygonSymbol3D.html), or [CIMSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html) used for representing the polygon geometry that is being drawn.
  94452. *
  94453. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#polygonSymbol)
  94454. */
  94455. polygonSymbol: SimpleFillSymbol | PolygonSymbol3D | CIMSymbol;
  94456. /**
  94457. * A [SimpleLineSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html), [LineSymbol3D](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3D.html), or [CIMSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html) used for representing the polyline geometry that is being drawn.
  94458. *
  94459. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#polylineSymbol)
  94460. */
  94461. polylineSymbol: SimpleLineSymbol | LineSymbol3D | CIMSymbol;
  94462. /**
  94463. * The [SnappingOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-SnappingOptions.html) for sketching.
  94464. *
  94465. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#snappingOptions)
  94466. */
  94467. snappingOptions: SnappingOptions;
  94468. /**
  94469. * The sketch view model's state.
  94470. *
  94471. * @default disabled
  94472. *
  94473. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#state)
  94474. */
  94475. readonly state: "ready" | "disabled" | "active";
  94476. /**
  94477. * Options to configure the tooltip shown next to the cursor when creating or updating graphics.
  94478. *
  94479. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#tooltipOptions)
  94480. */
  94481. tooltipOptions: SketchTooltipOptions;
  94482. /**
  94483. * An array of graphics that are being updated by the SketchViewModel.
  94484. *
  94485. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#updateGraphics)
  94486. */
  94487. readonly updateGraphics: Collection<Graphic>;
  94488. /**
  94489. * Indicates if a graphic can be selected to be updated.
  94490. *
  94491. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#updateOnGraphicClick)
  94492. */
  94493. updateOnGraphicClick: boolean;
  94494. /**
  94495. * The view in which geometries will be sketched by the user.
  94496. *
  94497. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#view)
  94498. */
  94499. view: MapView | SceneView;
  94500. /**
  94501. * Provides the logic for the [Sketch](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html) widget.
  94502. *
  94503. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html)
  94504. */
  94505. constructor(properties?: SketchViewModelProperties);
  94506. /**
  94507. * Cancels the active operation and fires the [create](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#event-create) or [update](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#event-update) event If called in the middle of a create operation, `cancel()` discards the partially created graphic.
  94508. *
  94509. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#cancel)
  94510. */
  94511. cancel(): void;
  94512. /**
  94513. * Indicates if it is possible to perform a [redo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#redo) action in the current update session.
  94514. *
  94515. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#canRedo)
  94516. */
  94517. canRedo(): boolean;
  94518. /**
  94519. * Indicates if it is possible to perform an [undo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#undo) action in the current update session.
  94520. *
  94521. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#canUndo)
  94522. */
  94523. canUndo(): boolean;
  94524. /**
  94525. * Completes the active operation and fires the [create](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#event-create) or [update](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#event-update) event and changes the event's state to `complete`.
  94526. *
  94527. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#complete)
  94528. */
  94529. complete(): void;
  94530. /**
  94531. * Create a graphic with the geometry specified in the `tool` parameter.
  94532. *
  94533. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#create)
  94534. */
  94535. create(tool: "point" | "multipoint" | "polyline" | "polygon" | "rectangle" | "circle", createOptions?: SketchViewModelCreateCreateOptions): void;
  94536. /**
  94537. * Deletes the selected graphics used in the update workflow.
  94538. *
  94539. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#delete)
  94540. */
  94541. delete(): void;
  94542. /**
  94543. * Destroys the view model instance.
  94544. *
  94545. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#destroy)
  94546. */
  94547. destroy(): void;
  94548. /**
  94549. * Incrementally redo actions recorded in the stack.
  94550. *
  94551. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#redo)
  94552. */
  94553. redo(): void;
  94554. /**
  94555. * Incrementally undo actions recorded in the stack.
  94556. *
  94557. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#undo)
  94558. */
  94559. undo(): void;
  94560. /**
  94561. * Initializes an update operation for the specified graphic(s) and fires [update](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#event-update) event.
  94562. *
  94563. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#update)
  94564. */
  94565. update(graphics: Graphic | Graphic[], updateOptions?: SketchViewModelUpdateUpdateOptions): Promise<void>;
  94566. on(name: "delete", eventHandler: SketchViewModelDeleteEventHandler): IHandle;
  94567. on(name: "create", eventHandler: SketchViewModelCreateEventHandler): IHandle;
  94568. on(name: "update", eventHandler: SketchViewModelUpdateEventHandler): IHandle;
  94569. on(name: "redo", eventHandler: SketchViewModelRedoEventHandler): IHandle;
  94570. on(name: "undo", eventHandler: SketchViewModelUndoEventHandler): IHandle;
  94571. }
  94572. /** @deprecated Import the SketchViewModel class instead. */
  94573. export type SketchViewModelConstructor = typeof SketchViewModel;
  94574. interface SketchViewModelProperties {
  94575. /**
  94576. * The [SimpleFillSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleFillSymbol.html) displayed when actively creating a new `polygon` graphic using the [`polygon`](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#activeTool) tool.
  94577. *
  94578. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#activeFillSymbol)
  94579. */
  94580. activeFillSymbol?: SimpleFillSymbolProperties;
  94581. /**
  94582. * Default create options set for the SketchViewModel.
  94583. *
  94584. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#defaultCreateOptions)
  94585. */
  94586. defaultCreateOptions?: SketchViewModelDefaultCreateOptions;
  94587. /**
  94588. * Default update options set for the SketchViewModel.
  94589. *
  94590. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#defaultUpdateOptions)
  94591. */
  94592. defaultUpdateOptions?: SketchViewModelDefaultUpdateOptions;
  94593. /**
  94594. * Options to configure the labels shown next to each segment of the geometry being created or updated.
  94595. *
  94596. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#labelOptions)
  94597. */
  94598. labelOptions?: SketchLabelOptionsProperties;
  94599. /**
  94600. * The [GraphicsLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html) associated with the SketchViewModel.
  94601. *
  94602. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#layer)
  94603. */
  94604. layer?: GraphicsLayerProperties;
  94605. /**
  94606. * A [SimpleMarkerSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleMarkerSymbol.html), [PointSymbol3D](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PointSymbol3D.html), [TextSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html), [CIMSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html), or [WebStyleSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-WebStyleSymbol.html) used for representing the point geometry that is being drawn.
  94607. *
  94608. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#pointSymbol)
  94609. */
  94610. pointSymbol?: | (SimpleMarkerSymbolProperties & { type: "simple-marker" })
  94611. | (PointSymbol3DProperties & { type: "point-3d" })
  94612. | (TextSymbolProperties & { type: "text" })
  94613. | (CIMSymbolProperties & { type: "cim" })
  94614. | (WebStyleSymbolProperties & { type: "web-style" });
  94615. /**
  94616. * A [SimpleFillSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleFillSymbol.html), [PolygonSymbol3D](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PolygonSymbol3D.html), or [CIMSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html) used for representing the polygon geometry that is being drawn.
  94617. *
  94618. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#polygonSymbol)
  94619. */
  94620. polygonSymbol?: | (SimpleFillSymbolProperties & { type: "simple-fill" })
  94621. | (PolygonSymbol3DProperties & { type: "polygon-3d" })
  94622. | (CIMSymbolProperties & { type: "cim" });
  94623. /**
  94624. * A [SimpleLineSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html), [LineSymbol3D](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-LineSymbol3D.html), or [CIMSymbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html) used for representing the polyline geometry that is being drawn.
  94625. *
  94626. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#polylineSymbol)
  94627. */
  94628. polylineSymbol?: | (SimpleLineSymbolProperties & { type: "simple-line" })
  94629. | (LineSymbol3DProperties & { type: "line-3d" })
  94630. | (CIMSymbolProperties & { type: "cim" });
  94631. /**
  94632. * The [SnappingOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-SnappingOptions.html) for sketching.
  94633. *
  94634. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#snappingOptions)
  94635. */
  94636. snappingOptions?: SnappingOptionsProperties;
  94637. /**
  94638. * Options to configure the tooltip shown next to the cursor when creating or updating graphics.
  94639. *
  94640. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#tooltipOptions)
  94641. */
  94642. tooltipOptions?: SketchTooltipOptionsProperties;
  94643. /**
  94644. * Indicates if a graphic can be selected to be updated.
  94645. *
  94646. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#updateOnGraphicClick)
  94647. */
  94648. updateOnGraphicClick?: boolean;
  94649. /**
  94650. * The view in which geometries will be sketched by the user.
  94651. *
  94652. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#view)
  94653. */
  94654. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  94655. }
  94656. export interface SketchViewModelCreateEvent {
  94657. graphic: Graphic;
  94658. state: "start" | "active" | "complete" | "cancel";
  94659. tool: "point" | "multipoint" | "polyline" | "polygon" | "rectangle" | "circle";
  94660. toolEventInfo: CreateToolEventInfo;
  94661. type: "create";
  94662. }
  94663. export interface SketchViewModelDeleteEvent {
  94664. graphics: Graphic[];
  94665. tool: "move" | "reshape" | "transform";
  94666. type: "delete";
  94667. }
  94668. export interface SketchViewModelRedoEvent {
  94669. graphics: Graphic[];
  94670. tool: "point" | "multipoint" | "polyline" | "polygon" | "rectangle" | "circle" | "move" | "transform" | "reshape";
  94671. type: "redo";
  94672. }
  94673. export interface SketchViewModelCreateCreateOptions {
  94674. /**
  94675. * Specifies how the graphic can be created.
  94676. *
  94677. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#create)
  94678. */
  94679. mode?: "hybrid" | "freehand" | "click";
  94680. /**
  94681. * Controls whether the created geometry has z-values or not.
  94682. *
  94683. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#create)
  94684. */
  94685. hasZ?: boolean;
  94686. /**
  94687. * The default z-value of the newly created geometry.
  94688. *
  94689. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#create)
  94690. */
  94691. defaultZ?: number;
  94692. }
  94693. export interface SketchViewModelDefaultCreateOptions {
  94694. /**
  94695. * Create operation mode how the graphic can be created.
  94696. *
  94697. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#defaultCreateOptions)
  94698. */
  94699. mode?: "hybrid" | "freehand" | "click";
  94700. /**
  94701. * Controls whether the created geometry has z-values or not.
  94702. *
  94703. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#defaultCreateOptions)
  94704. */
  94705. hasZ?: boolean;
  94706. /**
  94707. * The default z-value of the newly created geometry.
  94708. *
  94709. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#defaultCreateOptions)
  94710. */
  94711. defaultZ?: number;
  94712. }
  94713. export interface SketchViewModelDefaultUpdateOptions {
  94714. /**
  94715. * Name of the update tool.
  94716. *
  94717. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#defaultUpdateOptions)
  94718. */
  94719. tool?: "move" | "transform" | "reshape";
  94720. /**
  94721. * Indicates if the `rotation` operation will be enabled when updating graphics.
  94722. *
  94723. * @default true
  94724. *
  94725. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#defaultUpdateOptions)
  94726. */
  94727. enableRotation?: boolean;
  94728. /**
  94729. * Indicates if the `scale` operation will be enabled when updating graphics.
  94730. *
  94731. * @default true
  94732. *
  94733. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#defaultUpdateOptions)
  94734. */
  94735. enableScaling?: boolean;
  94736. /**
  94737. * Indicates if z-values can be modified when updating the graphic.
  94738. *
  94739. * @default true
  94740. *
  94741. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#defaultUpdateOptions)
  94742. */
  94743. enableZ?: boolean;
  94744. /**
  94745. * Indicates whether more than one selection can be made at once.
  94746. *
  94747. * @default true
  94748. *
  94749. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#defaultUpdateOptions)
  94750. */
  94751. multipleSelectionEnabled?: boolean;
  94752. /**
  94753. * Indicates if the uniform scale operation will be enabled when updating graphics.
  94754. *
  94755. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#defaultUpdateOptions)
  94756. */
  94757. preserveAspectRatio?: boolean;
  94758. /**
  94759. * Indicates if the graphic being updated can be toggled between `transform` and `reshape` update options.
  94760. *
  94761. * @default true
  94762. *
  94763. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#defaultUpdateOptions)
  94764. */
  94765. toggleToolOnClick?: boolean;
  94766. /**
  94767. * Changes the behavior for the `reshape` tool.
  94768. *
  94769. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#defaultUpdateOptions)
  94770. */
  94771. reshapeOptions?: SketchViewModelDefaultUpdateOptionsReshapeOptions;
  94772. }
  94773. export interface SketchViewModelDefaultUpdateOptionsReshapeOptions {
  94774. /**
  94775. * Sets the reshape operation on the edge.
  94776. *
  94777. * @default "split"
  94778. *
  94779. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#defaultUpdateOptions)
  94780. */
  94781. edgeOperation?: "none" | "split" | "offset";
  94782. /**
  94783. * Sets the move constraints for the whole shape.
  94784. *
  94785. * @default "move"
  94786. *
  94787. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#defaultUpdateOptions)
  94788. */
  94789. shapeOperation?: "none" | "move" | "move-xy";
  94790. /**
  94791. * Sets the move constraints for the vertex.
  94792. *
  94793. * @default "move"
  94794. *
  94795. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#defaultUpdateOptions)
  94796. */
  94797. vertexOperation?: "move" | "move-xy";
  94798. }
  94799. export interface SketchViewModelUpdateUpdateOptions {
  94800. /**
  94801. * Name of the update tool.
  94802. *
  94803. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#update)
  94804. */
  94805. tool?: "transform" | "reshape" | "move";
  94806. /**
  94807. * Indicates if the `rotation` operation will be enabled when updating graphics.
  94808. *
  94809. * @default true
  94810. *
  94811. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#update)
  94812. */
  94813. enableRotation?: boolean;
  94814. /**
  94815. * Indicates if the `scale` operation will be enabled when updating graphics.
  94816. *
  94817. * @default true
  94818. *
  94819. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#update)
  94820. */
  94821. enableScaling?: boolean;
  94822. /**
  94823. * Indicates if z-values can be modified when updating the graphic.
  94824. *
  94825. * @default true
  94826. *
  94827. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#update)
  94828. */
  94829. enableZ?: boolean;
  94830. /**
  94831. * Indicates whether more than one selection can be made at once.
  94832. *
  94833. * @default true
  94834. *
  94835. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#update)
  94836. */
  94837. multipleSelectionEnabled?: boolean;
  94838. /**
  94839. * Indicates if the uniform scale operation will be enabled when updating graphics.
  94840. *
  94841. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#update)
  94842. */
  94843. preserveAspectRatio?: boolean;
  94844. /**
  94845. * Indicates if the graphic being updated can be toggled between `transform` and `reshape` update options.
  94846. *
  94847. * @default true
  94848. *
  94849. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#update)
  94850. */
  94851. toggleToolOnClick?: boolean;
  94852. }
  94853. export interface SketchViewModelUndoEvent {
  94854. graphics: Graphic[];
  94855. tool: "point" | "multipoint" | "polyline" | "polygon" | "rectangle" | "circle" | "move" | "transform" | "reshape";
  94856. type: "undo";
  94857. }
  94858. export interface SketchViewModelUpdateEvent {
  94859. aborted: boolean;
  94860. graphics: Graphic[];
  94861. state: "start" | "active" | "complete";
  94862. tool: "move" | "transform" | "reshape";
  94863. toolEventInfo: UpdateToolEventInfo;
  94864. type: "update";
  94865. }
  94866. export interface SketchCreateEvent {
  94867. graphic: Graphic;
  94868. state: "start" | "active" | "complete" | "cancel";
  94869. tool: "point" | "polyline" | "polygon" | "rectangle" | "circle";
  94870. toolEventInfo: CreateToolEventInfo;
  94871. type: "create";
  94872. }
  94873. /**
  94874. * This information is returned as `toolEventInfo` parameter for the [create](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#event-create) event when the graphic is being created.
  94875. *
  94876. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#CreateToolEventInfo)
  94877. */
  94878. export type CreateToolEventInfo = VertexAddEventInfo | CursorUpdateEventInfo;
  94879. /**
  94880. * This information is returned as `toolEventInfo` parameter for the [create](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#event-create) event when the user moves the cursor on the view while the graphic is being created.
  94881. *
  94882. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#CursorUpdateEventInfo)
  94883. */
  94884. export interface CursorUpdateEventInfo {
  94885. /**
  94886. * Type is always `cursor-update`.
  94887. *
  94888. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#CursorUpdateEventInfo)
  94889. */
  94890. type: "cursor-update";
  94891. /**
  94892. * An array of numbers representing the coordinates of the cursor location.
  94893. *
  94894. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#CursorUpdateEventInfo)
  94895. */
  94896. coordinates: number[];
  94897. }
  94898. export interface SketchDeleteEvent {
  94899. graphics: Graphic[];
  94900. tool: "move" | "reshape" | "transform";
  94901. type: "delete";
  94902. }
  94903. /**
  94904. * This information is returned as `toolEventInfo` parameter for the [update](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#event-update) event while the user is moving the graphics.
  94905. *
  94906. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#MoveEventInfo)
  94907. */
  94908. export interface MoveEventInfo {
  94909. /**
  94910. * Returns information indicating the stage of the move operation.
  94911. *
  94912. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#MoveEventInfo)
  94913. */
  94914. type: "move-start" | "move" | "move-stop";
  94915. /**
  94916. * Number of pixels moved on the x-axis from the last known position.
  94917. *
  94918. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#MoveEventInfo)
  94919. */
  94920. dx: number;
  94921. /**
  94922. * Number of pixels moved on the y-axis from the last known position.
  94923. *
  94924. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#MoveEventInfo)
  94925. */
  94926. dy: number;
  94927. /**
  94928. * The instance of the graphic that is being moved.
  94929. *
  94930. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#MoveEventInfo)
  94931. */
  94932. mover: Graphic;
  94933. }
  94934. export interface SketchRedoEvent {
  94935. graphics: Graphic[];
  94936. tool: "point" | "polyline" | "polygon" | "rectangle" | "circle" | "move" | "transform" | "reshape";
  94937. type: "redo";
  94938. }
  94939. /**
  94940. * This information is returned as `toolEventInfo` parameter for the [update](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#event-update) event while the user is reshaping the graphics.
  94941. *
  94942. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#ReshapeEventInfo)
  94943. */
  94944. export interface ReshapeEventInfo {
  94945. /**
  94946. * Returns information indicating the stage of the reshape operation.
  94947. *
  94948. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#ReshapeEventInfo)
  94949. */
  94950. type: "reshape-start" | "reshape" | "reshape-stop";
  94951. }
  94952. /**
  94953. * This information is returned as `toolEventInfo` parameter for the [update](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#event-update) event while the user is rotating the graphics.
  94954. *
  94955. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#RotateEventInfo)
  94956. */
  94957. export interface RotateEventInfo {
  94958. /**
  94959. * Returns information indicating the stage of the rotate operation.
  94960. *
  94961. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#RotateEventInfo)
  94962. */
  94963. type: "rotate-start" | "rotate" | "rotate-stop";
  94964. /**
  94965. * Angle of rotation in degrees.
  94966. *
  94967. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#RotateEventInfo)
  94968. */
  94969. angle: number;
  94970. }
  94971. /**
  94972. * This information is returned as `toolEventInfo` parameter for the [update](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#event-update) event while the user is scaling or resizing the graphics.
  94973. *
  94974. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#ScaleEventInfo)
  94975. */
  94976. export interface ScaleEventInfo {
  94977. /**
  94978. * Returns information indicating the stage of the scale operation.
  94979. *
  94980. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#ScaleEventInfo)
  94981. */
  94982. type: "scale-start" | "scale" | "scale-stop";
  94983. /**
  94984. * The x scale factor used to enlarge or shrink the geometry.
  94985. *
  94986. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#ScaleEventInfo)
  94987. */
  94988. xScale: number;
  94989. /**
  94990. * The y scale factor used to enlarge or shrink the geometry.
  94991. *
  94992. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#ScaleEventInfo)
  94993. */
  94994. yScale: number;
  94995. }
  94996. /**
  94997. * This information is returned as `toolEventInfo` parameter for the [update](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#event-update) event while the user is selecting or deselecting graphics using `Shift+Left-click`.
  94998. *
  94999. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#SelectionChangeEventInfo)
  95000. */
  95001. export interface SelectionChangeEventInfo {
  95002. /**
  95003. * Type is always `selection-change`.
  95004. *
  95005. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#SelectionChangeEventInfo)
  95006. */
  95007. type: "selection-change";
  95008. /**
  95009. * An array of [graphics](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) representing the latest graphic selected.
  95010. *
  95011. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#SelectionChangeEventInfo)
  95012. */
  95013. added: Graphic[];
  95014. /**
  95015. * An array of [graphics](https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html) representing the latest graphic deselected.
  95016. *
  95017. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#SelectionChangeEventInfo)
  95018. */
  95019. removed: Graphic[];
  95020. }
  95021. export interface SketchCreateCreateOptions {
  95022. /**
  95023. * Specifies how the graphic can be created.
  95024. *
  95025. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#create)
  95026. */
  95027. mode?: "hybrid" | "freehand" | "click";
  95028. /**
  95029. * Controls whether the created geometry has z-values or not.
  95030. *
  95031. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#create)
  95032. */
  95033. hasZ?: boolean;
  95034. /**
  95035. * The default z-value of the newly created geometry.
  95036. *
  95037. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#create)
  95038. */
  95039. defaultZ?: number;
  95040. }
  95041. export interface SketchDefaultCreateOptions {
  95042. /**
  95043. * Create operation mode how the graphic can be created.
  95044. *
  95045. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#defaultCreateOptions)
  95046. */
  95047. mode?: "hybrid" | "freehand" | "click";
  95048. /**
  95049. * Controls whether the created geometry has z-values or not.
  95050. *
  95051. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#defaultCreateOptions)
  95052. */
  95053. hasZ?: boolean;
  95054. /**
  95055. * The default z-value of the newly created geometry.
  95056. *
  95057. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#defaultCreateOptions)
  95058. */
  95059. defaultZ?: number;
  95060. }
  95061. export interface SketchDefaultUpdateOptions {
  95062. /**
  95063. * Name of the update tool.
  95064. *
  95065. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#defaultUpdateOptions)
  95066. */
  95067. tool?: "move" | "transform" | "reshape";
  95068. /**
  95069. * Indicates if the `rotation` operation will be enabled when updating graphics.
  95070. *
  95071. * @default true
  95072. *
  95073. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#defaultUpdateOptions)
  95074. */
  95075. enableRotation?: boolean;
  95076. /**
  95077. * Indicates if the `scale` operation will be enabled when updating graphics.
  95078. *
  95079. * @default true
  95080. *
  95081. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#defaultUpdateOptions)
  95082. */
  95083. enableScaling?: boolean;
  95084. /**
  95085. * Indicates if z-values can be modified when updating the graphic.
  95086. *
  95087. * @default true
  95088. *
  95089. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#defaultUpdateOptions)
  95090. */
  95091. enableZ?: boolean;
  95092. /**
  95093. * Indicates whether more than one selection can be made at once.
  95094. *
  95095. * @default true
  95096. *
  95097. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#defaultUpdateOptions)
  95098. */
  95099. multipleSelectionEnabled?: boolean;
  95100. /**
  95101. * Indicates if the uniform scale operation will be enabled when updating graphics.
  95102. *
  95103. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#defaultUpdateOptions)
  95104. */
  95105. preserveAspectRatio?: boolean;
  95106. /**
  95107. * Indicates if the graphic being updated can be toggled between `transform` and `reshape` update options.
  95108. *
  95109. * @default true
  95110. *
  95111. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#defaultUpdateOptions)
  95112. */
  95113. toggleToolOnClick?: boolean;
  95114. /**
  95115. * Changes the behavior for the `reshape` tool.
  95116. *
  95117. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#defaultUpdateOptions)
  95118. */
  95119. reshapeOptions?: SketchDefaultUpdateOptionsReshapeOptions;
  95120. }
  95121. export interface SketchDefaultUpdateOptionsReshapeOptions {
  95122. /**
  95123. * Sets the reshape operation on the edge.
  95124. *
  95125. * @default "split"
  95126. *
  95127. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#defaultUpdateOptions)
  95128. */
  95129. edgeOperation?: "none" | "split" | "offset";
  95130. /**
  95131. * Sets the move constraints for the whole shape.
  95132. *
  95133. * @default "move"
  95134. *
  95135. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#defaultUpdateOptions)
  95136. */
  95137. shapeOperation?: "none" | "move" | "move-xy";
  95138. /**
  95139. * Sets the move constraints for the vertex.
  95140. *
  95141. * @default "move"
  95142. *
  95143. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#defaultUpdateOptions)
  95144. */
  95145. vertexOperation?: "move" | "move-xy";
  95146. }
  95147. export interface SketchUpdateUpdateOptions {
  95148. /**
  95149. * Name of the update tool.
  95150. *
  95151. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#update)
  95152. */
  95153. tool?: "transform" | "reshape" | "move";
  95154. /**
  95155. * Indicates if the `rotation` operation will be enabled when updating graphics.
  95156. *
  95157. * @default true
  95158. *
  95159. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#update)
  95160. */
  95161. enableRotation?: boolean;
  95162. /**
  95163. * Indicates if the `scale` operation will be enabled when updating graphics.
  95164. *
  95165. * @default true
  95166. *
  95167. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#update)
  95168. */
  95169. enableScaling?: boolean;
  95170. /**
  95171. * Indicates if z-values can be modified when updating the graphic.
  95172. *
  95173. * @default true
  95174. *
  95175. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#update)
  95176. */
  95177. enableZ?: boolean;
  95178. /**
  95179. * Indicates whether more than one selection can be made at once.
  95180. *
  95181. * @default true
  95182. *
  95183. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#update)
  95184. */
  95185. multipleSelectionEnabled?: boolean;
  95186. /**
  95187. * Indicates if the uniform scale operation will be enabled when updating graphics.
  95188. *
  95189. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#update)
  95190. */
  95191. preserveAspectRatio?: boolean;
  95192. /**
  95193. * Indicates if the graphic being updated can be toggled between `transform` and `reshape` update options.
  95194. *
  95195. * @default true
  95196. *
  95197. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#update)
  95198. */
  95199. toggleToolOnClick?: boolean;
  95200. }
  95201. export interface SketchUndoEvent {
  95202. graphics: Graphic[];
  95203. tool: "point" | "polyline" | "polygon" | "rectangle" | "circle" | "move" | "transform" | "reshape";
  95204. type: "undo";
  95205. }
  95206. export interface SketchUpdateEvent {
  95207. aborted: boolean;
  95208. graphics: Graphic[];
  95209. state: "start" | "active" | "complete";
  95210. tool: "move" | "transform" | "reshape";
  95211. toolEventInfo: UpdateToolEventInfo;
  95212. type: "update";
  95213. }
  95214. /**
  95215. * This information is returned as `toolEventInfo` parameter for the [update](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#event-update) event when the user is updating graphics.
  95216. *
  95217. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#UpdateToolEventInfo)
  95218. */
  95219. export type UpdateToolEventInfo = | MoveEventInfo
  95220. | ReshapeEventInfo
  95221. | RotateEventInfo
  95222. | ScaleEventInfo
  95223. | SelectionChangeEventInfo
  95224. | VertexAddEventInfo
  95225. | VertexRemoveEventInfo;
  95226. /**
  95227. * This information is returned as `toolEventInfo` parameter for the [create](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#event-create) or [update](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#event-update) event when the user adds vertices to the graphic being created or updated.
  95228. *
  95229. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VertexAddEventInfo)
  95230. */
  95231. export interface VertexAddEventInfo {
  95232. /**
  95233. * Type is always `vertex-add`.
  95234. *
  95235. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VertexAddEventInfo)
  95236. */
  95237. type: "vertex-add";
  95238. /**
  95239. * An array of x,y coordinates representing the vertices added.
  95240. *
  95241. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VertexAddEventInfo)
  95242. */
  95243. added: number[];
  95244. /**
  95245. * Contains the details of the added vertices to track changes in topology of the geometry.
  95246. *
  95247. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VertexAddEventInfo)
  95248. */
  95249. vertices: VertexAddEventInfoVertices[];
  95250. }
  95251. /**
  95252. * This information is returned as `toolEventInfo` parameter for the [update](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#event-update) event when the user is removing vertices from the graphic.
  95253. *
  95254. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VertexRemoveEventInfo)
  95255. */
  95256. export interface VertexRemoveEventInfo {
  95257. /**
  95258. * Type is always `vertex-remove`.
  95259. *
  95260. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VertexRemoveEventInfo)
  95261. */
  95262. type: "vertex-remove";
  95263. /**
  95264. * An array of x,y coordinates representing the vertices removed.
  95265. *
  95266. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VertexRemoveEventInfo)
  95267. */
  95268. removed: number[];
  95269. /**
  95270. * Contains the details of the removed vertices to track changes in topology of the geometry.
  95271. *
  95272. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VertexRemoveEventInfo)
  95273. */
  95274. vertices: VertexRemoveEventInfoVertices[];
  95275. }
  95276. /**
  95277. * The visible elements that are displayed within the widget.
  95278. *
  95279. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VisibleElements)
  95280. */
  95281. export interface SketchVisibleElements {
  95282. /**
  95283. * The available sketch tools within the widget.
  95284. *
  95285. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VisibleElements)
  95286. */
  95287. createTools?: VisibleElementsCreateTools;
  95288. /**
  95289. * The available selection tools within the widget.
  95290. *
  95291. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VisibleElements)
  95292. */
  95293. selectionTools?: VisibleElementsSelectionTools;
  95294. /**
  95295. * The available [SnappingControls](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SnappingControls.html) elements within the widget.
  95296. *
  95297. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VisibleElements)
  95298. */
  95299. snappingControlsElements?: SketchVisibleElementsSnappingControlsElements;
  95300. /**
  95301. * Indicates whether to display the undo/redo menu within the widget.
  95302. *
  95303. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VisibleElements)
  95304. */
  95305. undoRedoMenu?: boolean;
  95306. /**
  95307. * Indicates whether to display the settings menu.
  95308. *
  95309. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VisibleElements)
  95310. */
  95311. settingsMenu?: boolean;
  95312. /**
  95313. * Indicates whether to display the `SnappingControls` widget.
  95314. *
  95315. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VisibleElements)
  95316. */
  95317. snappingControls?: boolean;
  95318. }
  95319. export interface VertexAddEventInfoVertices {
  95320. /**
  95321. * An array of x,y coordinates representing the vertices added.
  95322. *
  95323. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VertexAddEventInfo)
  95324. */
  95325. coordinates: number[];
  95326. /**
  95327. * The ring/path index of the added vertex.
  95328. *
  95329. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VertexAddEventInfo)
  95330. */
  95331. componentIndex: number;
  95332. /**
  95333. * The index of the vertex position.
  95334. *
  95335. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VertexAddEventInfo)
  95336. */
  95337. vertexIndex: number;
  95338. }
  95339. export interface VertexRemoveEventInfoVertices {
  95340. /**
  95341. * An array of x,y coordinates representing the vertices removed.
  95342. *
  95343. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VertexRemoveEventInfo)
  95344. */
  95345. coordinates: number[];
  95346. /**
  95347. * The ring/path index of the removed vertex.
  95348. *
  95349. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VertexRemoveEventInfo)
  95350. */
  95351. componentIndex: number;
  95352. /**
  95353. * The index of the vertex position.
  95354. *
  95355. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VertexRemoveEventInfo)
  95356. */
  95357. vertexIndex: number;
  95358. }
  95359. export interface VisibleElementsCreateTools {
  95360. /**
  95361. * Indicates whether to display the point sketch tool.
  95362. *
  95363. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VisibleElements)
  95364. */
  95365. point?: boolean;
  95366. /**
  95367. * Indicates whether to display the polyline sketch tool.
  95368. *
  95369. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VisibleElements)
  95370. */
  95371. polyline?: boolean;
  95372. /**
  95373. * Indicates whether to display the polygon sketch tool.
  95374. *
  95375. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VisibleElements)
  95376. */
  95377. polygon?: boolean;
  95378. /**
  95379. * Indicates whether to display the rectangle sketch tool.
  95380. *
  95381. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VisibleElements)
  95382. */
  95383. rectangle?: boolean;
  95384. /**
  95385. * Indicates whether to display the circle sketch tool.
  95386. *
  95387. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VisibleElements)
  95388. */
  95389. circle?: boolean;
  95390. }
  95391. export interface VisibleElementsSelectionTools {
  95392. /**
  95393. * Indicates whether to display the `"rectangle-selection"` tool.
  95394. *
  95395. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VisibleElements)
  95396. */
  95397. "rectangle-selection"?: boolean;
  95398. /**
  95399. * Indicates whether to display the `"lasso-selection"` tool.
  95400. *
  95401. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VisibleElements)
  95402. */
  95403. "lasso-selection"?: boolean;
  95404. }
  95405. export interface SketchVisibleElementsSnappingControlsElements {
  95406. /**
  95407. * Indicates whether to display the header.
  95408. *
  95409. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VisibleElements)
  95410. */
  95411. header?: boolean;
  95412. /**
  95413. * Indicates whether to display the `enabledToggle` (Enable snapping).
  95414. *
  95415. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VisibleElements)
  95416. */
  95417. enabledToggle?: boolean;
  95418. /**
  95419. * Indicates whether to display the `selfEnabledToggle` (Geometry guides).
  95420. *
  95421. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VisibleElements)
  95422. */
  95423. selfEnabledToggle?: boolean;
  95424. /**
  95425. * Indicates whether to display the `featureEnabledToggle` (Feature to feature).
  95426. *
  95427. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VisibleElements)
  95428. */
  95429. featureEnabledToggle?: boolean;
  95430. /**
  95431. * Indicates whether to display the [FeatureSnappingLayerSource](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-FeatureSnappingLayerSource.html) layerList.
  95432. *
  95433. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#VisibleElements)
  95434. */
  95435. layerList?: boolean;
  95436. }
  95437. export class Slice extends Widget {
  95438. /**
  95439. * The slice analysis object being created or modified by the widget.
  95440. *
  95441. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice.html#analysis)
  95442. */
  95443. readonly analysis: SliceAnalysis;
  95444. /**
  95445. * Indicates the heading level to use for the "Excluded layers" heading.
  95446. *
  95447. * @default 3
  95448. *
  95449. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice.html#headingLevel)
  95450. */
  95451. headingLevel: number;
  95452. /**
  95453. * The widget's default CSS icon class.
  95454. *
  95455. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice.html#iconClass)
  95456. */
  95457. iconClass: string;
  95458. /**
  95459. * A reference to the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  95460. *
  95461. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice.html#view)
  95462. */
  95463. view: SceneView;
  95464. /**
  95465. * The view model for this widget.
  95466. *
  95467. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice.html#viewModel)
  95468. */
  95469. viewModel: SliceViewModel;
  95470. /**
  95471. * The Slice widget is a 3D analysis tool that can be used to reveal occluded content in a {@link module:esri/views/SceneView}.
  95472. *
  95473. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice.html)
  95474. */
  95475. constructor(properties?: SliceProperties);
  95476. }
  95477. /** @deprecated Import the Slice class instead. */
  95478. export type SliceConstructor = typeof Slice;
  95479. interface SliceProperties extends WidgetProperties {
  95480. /**
  95481. * The slice analysis object being created or modified by the widget.
  95482. *
  95483. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice.html#analysis)
  95484. */
  95485. analysis?: SliceAnalysisProperties;
  95486. /**
  95487. * Indicates the heading level to use for the "Excluded layers" heading.
  95488. *
  95489. * @default 3
  95490. *
  95491. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice.html#headingLevel)
  95492. */
  95493. headingLevel?: number;
  95494. /**
  95495. * The widget's default CSS icon class.
  95496. *
  95497. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice.html#iconClass)
  95498. */
  95499. iconClass?: string;
  95500. /**
  95501. * A reference to the [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  95502. *
  95503. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice.html#view)
  95504. */
  95505. view?: SceneViewProperties;
  95506. /**
  95507. * The view model for this widget.
  95508. *
  95509. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice.html#viewModel)
  95510. */
  95511. viewModel?: SliceViewModelProperties;
  95512. }
  95513. export interface SliceSlicePlane extends Accessor, JSONSupport {
  95514. }
  95515. export class SliceSlicePlane {
  95516. /**
  95517. * The heading angle (in degrees) of the slice plane.
  95518. *
  95519. * @default 0
  95520. *
  95521. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SlicePlane.html#heading)
  95522. */
  95523. heading: number;
  95524. /**
  95525. * The height of the slice plane.
  95526. *
  95527. * @default 10
  95528. *
  95529. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SlicePlane.html#height)
  95530. */
  95531. height: number;
  95532. /**
  95533. * A point specifying the position of the center of the plane.
  95534. *
  95535. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SlicePlane.html#position)
  95536. */
  95537. position: Point;
  95538. /**
  95539. * The tilt angle (in degrees) of the slice plane.
  95540. *
  95541. * @default 0
  95542. *
  95543. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SlicePlane.html#tilt)
  95544. */
  95545. tilt: number;
  95546. /**
  95547. * The string value representing the type of the slice shape.
  95548. *
  95549. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SlicePlane.html#type)
  95550. */
  95551. readonly type: "plane";
  95552. /**
  95553. * The width of the slice plane.
  95554. *
  95555. * @default 10
  95556. *
  95557. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SlicePlane.html#width)
  95558. */
  95559. width: number;
  95560. /**
  95561. * Provides the shape definition of a slice plane for the [Slice](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice.html) widget.
  95562. *
  95563. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SlicePlane.html)
  95564. */
  95565. constructor(properties?: SliceSlicePlaneProperties);
  95566. /**
  95567. * Creates a deep clone of this object.
  95568. *
  95569. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SlicePlane.html#clone)
  95570. */
  95571. clone(): this;
  95572. static fromJSON(json: any): SliceSlicePlane;
  95573. }
  95574. /** @deprecated Import the SliceSlicePlane class instead. */
  95575. export type SliceSlicePlaneConstructor = typeof SliceSlicePlane;
  95576. interface SliceSlicePlaneProperties {
  95577. /**
  95578. * The heading angle (in degrees) of the slice plane.
  95579. *
  95580. * @default 0
  95581. *
  95582. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SlicePlane.html#heading)
  95583. */
  95584. heading?: number;
  95585. /**
  95586. * The height of the slice plane.
  95587. *
  95588. * @default 10
  95589. *
  95590. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SlicePlane.html#height)
  95591. */
  95592. height?: number;
  95593. /**
  95594. * A point specifying the position of the center of the plane.
  95595. *
  95596. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SlicePlane.html#position)
  95597. */
  95598. position?: PointProperties;
  95599. /**
  95600. * The tilt angle (in degrees) of the slice plane.
  95601. *
  95602. * @default 0
  95603. *
  95604. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SlicePlane.html#tilt)
  95605. */
  95606. tilt?: number;
  95607. /**
  95608. * The width of the slice plane.
  95609. *
  95610. * @default 10
  95611. *
  95612. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SlicePlane.html#width)
  95613. */
  95614. width?: number;
  95615. }
  95616. export class SliceViewModel extends Accessor {
  95617. /**
  95618. * The slice analysis object being created or modified by the view model.
  95619. *
  95620. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SliceViewModel.html#analysis)
  95621. */
  95622. readonly analysis: SliceAnalysis;
  95623. /**
  95624. * Add layers to this collection to exclude them from the slice.
  95625. *
  95626. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SliceViewModel.html#excludedLayers)
  95627. */
  95628. excludedLayers: Collection<Layer | BuildingComponentSublayer>;
  95629. /**
  95630. * Indicates whether the [Ground](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html) and layers that are draped on the ground surface are excluded from the slice.
  95631. *
  95632. * @default false
  95633. *
  95634. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SliceViewModel.html#excludeGroundSurface)
  95635. */
  95636. excludeGroundSurface: boolean;
  95637. /**
  95638. * The shape used to slice elements in a 3D scene.
  95639. *
  95640. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SliceViewModel.html#shape)
  95641. */
  95642. shape: SlicePlane;
  95643. /**
  95644. * The view model's state.
  95645. *
  95646. * @default disabled
  95647. *
  95648. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SliceViewModel.html#state)
  95649. */
  95650. readonly state: "disabled" | "ready" | "slicing" | "sliced";
  95651. /**
  95652. * Enable tilting the slice shape.
  95653. *
  95654. * @default false
  95655. *
  95656. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SliceViewModel.html#tiltEnabled)
  95657. */
  95658. tiltEnabled: boolean;
  95659. /**
  95660. * The view from which the widget will operate.
  95661. *
  95662. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SliceViewModel.html#view)
  95663. */
  95664. view: SceneView;
  95665. /**
  95666. * Provides the logic for the [Slice](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice.html) widget.
  95667. *
  95668. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SliceViewModel.html)
  95669. */
  95670. constructor(properties?: SliceViewModelProperties);
  95671. /**
  95672. * Clears the [shape](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SliceViewModel.html#shape) of the slice, effectively removing it from the view.
  95673. *
  95674. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SliceViewModel.html#clear)
  95675. */
  95676. clear(): void;
  95677. /**
  95678. * Starts the interactive placement of a new slice, clearing the previous [shape](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SliceViewModel.html#shape).
  95679. *
  95680. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SliceViewModel.html#start)
  95681. */
  95682. start(): void;
  95683. }
  95684. /** @deprecated Import the SliceViewModel class instead. */
  95685. export type SliceViewModelConstructor = typeof SliceViewModel;
  95686. interface SliceViewModelProperties {
  95687. /**
  95688. * The slice analysis object being created or modified by the view model.
  95689. *
  95690. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SliceViewModel.html#analysis)
  95691. */
  95692. analysis?: SliceAnalysisProperties;
  95693. /**
  95694. * Add layers to this collection to exclude them from the slice.
  95695. *
  95696. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SliceViewModel.html#excludedLayers)
  95697. */
  95698. excludedLayers?: CollectionProperties<
  95699. LayerProperties | (BuildingComponentSublayerProperties & { type: "building-component" })
  95700. >;
  95701. /**
  95702. * Indicates whether the [Ground](https://developers.arcgis.com/javascript/latest/api-reference/esri-Ground.html) and layers that are draped on the ground surface are excluded from the slice.
  95703. *
  95704. * @default false
  95705. *
  95706. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SliceViewModel.html#excludeGroundSurface)
  95707. */
  95708. excludeGroundSurface?: boolean;
  95709. /**
  95710. * The shape used to slice elements in a 3D scene.
  95711. *
  95712. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SliceViewModel.html#shape)
  95713. */
  95714. shape?: SlicePlaneProperties;
  95715. /**
  95716. * Enable tilting the slice shape.
  95717. *
  95718. * @default false
  95719. *
  95720. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SliceViewModel.html#tiltEnabled)
  95721. */
  95722. tiltEnabled?: boolean;
  95723. /**
  95724. * The view from which the widget will operate.
  95725. *
  95726. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slice-SliceViewModel.html#view)
  95727. */
  95728. view?: SceneViewProperties;
  95729. }
  95730. export class Slider extends Widget {
  95731. /**
  95732. * When `true`, sets the slider to a disabled state so the user cannot interact with it.
  95733. *
  95734. * @default false
  95735. *
  95736. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#disabled)
  95737. */
  95738. disabled: boolean;
  95739. /**
  95740. * Indicates if the user can drag the segment between thumbs to update thumb positions.
  95741. *
  95742. * @default true
  95743. *
  95744. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#draggableSegmentsEnabled)
  95745. */
  95746. draggableSegmentsEnabled: boolean;
  95747. /**
  95748. * When set, the user is restricted from moving slider thumbs to positions higher than this value.
  95749. *
  95750. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#effectiveMax)
  95751. */
  95752. effectiveMax: number;
  95753. /**
  95754. * When set, the user is restricted from moving slider thumbs to positions less than this value.
  95755. *
  95756. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#effectiveMin)
  95757. */
  95758. effectiveMin: number;
  95759. /**
  95760. * The HTML Element nodes representing the slider segment between the [min](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#min) and [effectiveMin](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#effectiveMin), and the segment between the [effectiveMax](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#effectiveMax) and [max](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#max).
  95761. *
  95762. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#effectiveSegmentElements)
  95763. */
  95764. readonly effectiveSegmentElements: Collection<HTMLElement>;
  95765. /**
  95766. * A function that provides the developer with access to the input elements when [rangeLabelInputsEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#rangeLabelInputsEnabled) and/or [labelInputsEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#labelInputsEnabled) are set to `true`.
  95767. *
  95768. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#inputCreatedFunction)
  95769. */
  95770. inputCreatedFunction: InputCreatedFunction;
  95771. /**
  95772. * A function used to format user inputs.
  95773. *
  95774. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#inputFormatFunction)
  95775. */
  95776. inputFormatFunction: SliderLabelFormatter;
  95777. /**
  95778. * Function used to parse slider inputs formatted by the [inputFormatFunction](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#inputFormatFunction).
  95779. *
  95780. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#inputParseFunction)
  95781. */
  95782. inputParseFunction: InputParser;
  95783. /**
  95784. * The HTML Element nodes representing [labels](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#labels) attached to slider thumbs.
  95785. *
  95786. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#labelElements)
  95787. */
  95788. readonly labelElements: Collection<HTMLElement>;
  95789. /**
  95790. * A function used to format labels.
  95791. *
  95792. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#labelFormatFunction)
  95793. */
  95794. labelFormatFunction: SliderLabelFormatter;
  95795. /**
  95796. * Indicates whether to enable editing input values via keyboard input when the user clicks a label.
  95797. *
  95798. * @default false
  95799. *
  95800. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#labelInputsEnabled)
  95801. */
  95802. labelInputsEnabled: boolean;
  95803. /**
  95804. * An array of strings associated with 'values' generated using an internal label formatter or the values returned from [labelFormatFunction](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#labelFormatFunction).
  95805. *
  95806. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#labels)
  95807. */
  95808. readonly labels: string[];
  95809. /**
  95810. * Determines the layout/orientation of the Slider widget.
  95811. *
  95812. * @default horizontal
  95813. *
  95814. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#layout)
  95815. */
  95816. layout: "horizontal" | "horizontal-reversed" | "vertical" | "vertical-reversed";
  95817. /**
  95818. * The maximum possible data/thumb value of the slider.
  95819. *
  95820. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#max)
  95821. */
  95822. max: number;
  95823. /**
  95824. * The HTML Element node representing the [max](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#max) value label.
  95825. *
  95826. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#maxLabelElement)
  95827. */
  95828. readonly maxLabelElement: HTMLElement;
  95829. /**
  95830. * The minimum possible data/thumb value of the slider.
  95831. *
  95832. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#min)
  95833. */
  95834. min: number;
  95835. /**
  95836. * The HTML Element node representing the [min](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#min) value label.
  95837. *
  95838. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#minLabelElement)
  95839. */
  95840. readonly minLabelElement: HTMLElement;
  95841. /**
  95842. * Defines how slider thumb values should be rounded.
  95843. *
  95844. * @default 4
  95845. *
  95846. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#precision)
  95847. */
  95848. precision: number;
  95849. /**
  95850. * Indicates whether to enable editing range values via keyboard input when the user clicks a [min](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#min) or [max](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#max) label.
  95851. *
  95852. * @default false
  95853. *
  95854. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#rangeLabelInputsEnabled)
  95855. */
  95856. rangeLabelInputsEnabled: boolean;
  95857. /**
  95858. * The HTML Element nodes representing interactive slider segments.
  95859. *
  95860. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#segmentElements)
  95861. */
  95862. readonly segmentElements: Collection<HTMLElement>;
  95863. /**
  95864. * Indicates if the closest thumb will snap to the clicked location on the track.
  95865. *
  95866. * @default true
  95867. *
  95868. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#snapOnClickEnabled)
  95869. */
  95870. snapOnClickEnabled: boolean;
  95871. /**
  95872. * The current state of the widget.
  95873. *
  95874. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#state)
  95875. */
  95876. readonly state: "ready" | "disabled" | "editing" | "dragging";
  95877. /**
  95878. * Sets steps, or intervals, on the slider that restrict user input to specific values.
  95879. *
  95880. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#steps)
  95881. */
  95882. steps: number | number[];
  95883. /**
  95884. * When `true`, all segments will sync together in updating thumb values when the user drags any segment.
  95885. *
  95886. * @default false
  95887. *
  95888. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#syncedSegmentsEnabled)
  95889. */
  95890. syncedSegmentsEnabled: boolean;
  95891. /**
  95892. * Function that executes each time a thumb is created on the slider.
  95893. *
  95894. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#thumbCreatedFunction)
  95895. */
  95896. thumbCreatedFunction: ThumbCreatedFunction;
  95897. /**
  95898. * The HTML Element nodes representing slider thumbs.
  95899. *
  95900. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#thumbElements)
  95901. */
  95902. readonly thumbElements: Collection<HTMLElement>;
  95903. /**
  95904. * When `false`, the user can freely move any slider thumb to any position along the track.
  95905. *
  95906. * @default true
  95907. *
  95908. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#thumbsConstrained)
  95909. */
  95910. thumbsConstrained: boolean;
  95911. /**
  95912. * When set, renders ticks along the slider track.
  95913. *
  95914. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#tickConfigs)
  95915. */
  95916. tickConfigs: TickConfig[];
  95917. /**
  95918. * The HTML Element nodes representing slider ticks and their associated labels.
  95919. *
  95920. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#tickElements)
  95921. */
  95922. readonly tickElements: Collection<Collection<TickElementGroup>>;
  95923. /**
  95924. * The HTML Element node representing the slider track.
  95925. *
  95926. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#trackElement)
  95927. */
  95928. trackElement: HTMLElement;
  95929. /**
  95930. * An array of numbers representing absolute thumb positions on the slider.
  95931. *
  95932. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#values)
  95933. */
  95934. values: number[];
  95935. /**
  95936. * The view model for the Slider widget.
  95937. *
  95938. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#viewModel)
  95939. */
  95940. viewModel: SliderViewModel;
  95941. /**
  95942. * The visible elements that are displayed within the widget.
  95943. *
  95944. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#visibleElements)
  95945. */
  95946. visibleElements: SliderVisibleElements;
  95947. /**
  95948. * A slider widget that can be used for filtering data, or gathering numeric input from a user.
  95949. *
  95950. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html)
  95951. */
  95952. constructor(properties?: SliderProperties);
  95953. on(name: "max-change", eventHandler: SliderMaxChangeEventHandler): IHandle;
  95954. on(name: "min-change", eventHandler: SliderMinChangeEventHandler): IHandle;
  95955. on(name: "segment-click", eventHandler: SliderSegmentClickEventHandler): IHandle;
  95956. on(name: "segment-drag", eventHandler: SliderSegmentDragEventHandler): IHandle;
  95957. on(name: "thumb-change", eventHandler: SliderThumbChangeEventHandler): IHandle;
  95958. on(name: "thumb-click", eventHandler: SliderThumbClickEventHandler): IHandle;
  95959. on(name: "thumb-drag", eventHandler: SliderThumbDragEventHandler): IHandle;
  95960. on(name: "track-click", eventHandler: SliderTrackClickEventHandler): IHandle;
  95961. on(name: "max-click", eventHandler: SliderMaxClickEventHandler): IHandle;
  95962. on(name: "min-click", eventHandler: SliderMinClickEventHandler): IHandle;
  95963. on(name: "tick-click", eventHandler: SliderTickClickEventHandler): IHandle;
  95964. }
  95965. /** @deprecated Import the Slider class instead. */
  95966. export type SliderConstructor = typeof Slider;
  95967. interface SliderProperties extends WidgetProperties {
  95968. /**
  95969. * When `true`, sets the slider to a disabled state so the user cannot interact with it.
  95970. *
  95971. * @default false
  95972. *
  95973. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#disabled)
  95974. */
  95975. disabled?: boolean;
  95976. /**
  95977. * Indicates if the user can drag the segment between thumbs to update thumb positions.
  95978. *
  95979. * @default true
  95980. *
  95981. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#draggableSegmentsEnabled)
  95982. */
  95983. draggableSegmentsEnabled?: boolean;
  95984. /**
  95985. * When set, the user is restricted from moving slider thumbs to positions higher than this value.
  95986. *
  95987. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#effectiveMax)
  95988. */
  95989. effectiveMax?: number;
  95990. /**
  95991. * When set, the user is restricted from moving slider thumbs to positions less than this value.
  95992. *
  95993. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#effectiveMin)
  95994. */
  95995. effectiveMin?: number;
  95996. /**
  95997. * A function that provides the developer with access to the input elements when [rangeLabelInputsEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#rangeLabelInputsEnabled) and/or [labelInputsEnabled](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#labelInputsEnabled) are set to `true`.
  95998. *
  95999. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#inputCreatedFunction)
  96000. */
  96001. inputCreatedFunction?: InputCreatedFunction;
  96002. /**
  96003. * A function used to format user inputs.
  96004. *
  96005. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#inputFormatFunction)
  96006. */
  96007. inputFormatFunction?: SliderLabelFormatter;
  96008. /**
  96009. * Function used to parse slider inputs formatted by the [inputFormatFunction](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#inputFormatFunction).
  96010. *
  96011. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#inputParseFunction)
  96012. */
  96013. inputParseFunction?: InputParser;
  96014. /**
  96015. * A function used to format labels.
  96016. *
  96017. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#labelFormatFunction)
  96018. */
  96019. labelFormatFunction?: SliderLabelFormatter;
  96020. /**
  96021. * Indicates whether to enable editing input values via keyboard input when the user clicks a label.
  96022. *
  96023. * @default false
  96024. *
  96025. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#labelInputsEnabled)
  96026. */
  96027. labelInputsEnabled?: boolean;
  96028. /**
  96029. * Determines the layout/orientation of the Slider widget.
  96030. *
  96031. * @default horizontal
  96032. *
  96033. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#layout)
  96034. */
  96035. layout?: "horizontal" | "horizontal-reversed" | "vertical" | "vertical-reversed";
  96036. /**
  96037. * The maximum possible data/thumb value of the slider.
  96038. *
  96039. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#max)
  96040. */
  96041. max?: number;
  96042. /**
  96043. * The minimum possible data/thumb value of the slider.
  96044. *
  96045. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#min)
  96046. */
  96047. min?: number;
  96048. /**
  96049. * Defines how slider thumb values should be rounded.
  96050. *
  96051. * @default 4
  96052. *
  96053. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#precision)
  96054. */
  96055. precision?: number;
  96056. /**
  96057. * Indicates whether to enable editing range values via keyboard input when the user clicks a [min](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#min) or [max](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#max) label.
  96058. *
  96059. * @default false
  96060. *
  96061. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#rangeLabelInputsEnabled)
  96062. */
  96063. rangeLabelInputsEnabled?: boolean;
  96064. /**
  96065. * Indicates if the closest thumb will snap to the clicked location on the track.
  96066. *
  96067. * @default true
  96068. *
  96069. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#snapOnClickEnabled)
  96070. */
  96071. snapOnClickEnabled?: boolean;
  96072. /**
  96073. * Sets steps, or intervals, on the slider that restrict user input to specific values.
  96074. *
  96075. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#steps)
  96076. */
  96077. steps?: number | number[];
  96078. /**
  96079. * When `true`, all segments will sync together in updating thumb values when the user drags any segment.
  96080. *
  96081. * @default false
  96082. *
  96083. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#syncedSegmentsEnabled)
  96084. */
  96085. syncedSegmentsEnabled?: boolean;
  96086. /**
  96087. * Function that executes each time a thumb is created on the slider.
  96088. *
  96089. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#thumbCreatedFunction)
  96090. */
  96091. thumbCreatedFunction?: ThumbCreatedFunction;
  96092. /**
  96093. * When `false`, the user can freely move any slider thumb to any position along the track.
  96094. *
  96095. * @default true
  96096. *
  96097. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#thumbsConstrained)
  96098. */
  96099. thumbsConstrained?: boolean;
  96100. /**
  96101. * When set, renders ticks along the slider track.
  96102. *
  96103. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#tickConfigs)
  96104. */
  96105. tickConfigs?: TickConfig[];
  96106. /**
  96107. * The HTML Element node representing the slider track.
  96108. *
  96109. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#trackElement)
  96110. */
  96111. trackElement?: HTMLElement;
  96112. /**
  96113. * An array of numbers representing absolute thumb positions on the slider.
  96114. *
  96115. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#values)
  96116. */
  96117. values?: number[];
  96118. /**
  96119. * The view model for the Slider widget.
  96120. *
  96121. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#viewModel)
  96122. */
  96123. viewModel?: SliderViewModelProperties;
  96124. /**
  96125. * The visible elements that are displayed within the widget.
  96126. *
  96127. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#visibleElements)
  96128. */
  96129. visibleElements?: SliderVisibleElements;
  96130. }
  96131. export interface SliderViewModel extends Accessor, Evented {
  96132. }
  96133. export class SliderViewModel {
  96134. /**
  96135. * When set, the user is restricted from moving slider thumbs to positions higher than this value.
  96136. *
  96137. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#effectiveMax)
  96138. */
  96139. effectiveMax: number;
  96140. /**
  96141. * When set, the user is restricted from moving slider thumbs to positions less than this value.
  96142. *
  96143. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#effectiveMin)
  96144. */
  96145. effectiveMin: number;
  96146. /**
  96147. * A function used to format user inputs.
  96148. *
  96149. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#inputFormatFunction)
  96150. */
  96151. inputFormatFunction: SliderLabelFormatter;
  96152. /**
  96153. * Function used to parse slider inputs formatted by the [inputFormatFunction](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#inputFormatFunction).
  96154. *
  96155. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#inputParseFunction)
  96156. */
  96157. inputParseFunction: InputParser;
  96158. /**
  96159. * A function used to format labels.
  96160. *
  96161. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#labelFormatFunction)
  96162. */
  96163. labelFormatFunction: SliderLabelFormatter;
  96164. /**
  96165. * An array of strings associated with [values](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#values) generated using an internal label formatter or the values returned from [labelFormatFunction](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#labelFormatFunction).
  96166. *
  96167. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#labels)
  96168. */
  96169. readonly labels: string[];
  96170. /**
  96171. * The maximum possible data/thumb value of the slider.
  96172. *
  96173. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#max)
  96174. */
  96175. max: number;
  96176. /**
  96177. * The minimum possible data/thumb value of the slider.
  96178. *
  96179. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#min)
  96180. */
  96181. min: number;
  96182. /**
  96183. * Defines how slider values should be rounded.
  96184. *
  96185. * @default 4
  96186. *
  96187. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#precision)
  96188. */
  96189. precision: number;
  96190. /**
  96191. * The state of the view model.
  96192. *
  96193. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#state)
  96194. */
  96195. readonly state: "ready" | "disabled";
  96196. /**
  96197. * When `false`, the user can freely move any slider thumb to any position along the track.
  96198. *
  96199. * @default true
  96200. *
  96201. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#thumbsConstrained)
  96202. */
  96203. thumbsConstrained: boolean;
  96204. /**
  96205. * An array of numbers representing absolute thumb positions on the slider.
  96206. *
  96207. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#values)
  96208. */
  96209. values: number[];
  96210. /**
  96211. * Provides the logic for the [Slider](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html) widget.
  96212. *
  96213. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html)
  96214. */
  96215. constructor(properties?: SliderViewModelProperties);
  96216. /**
  96217. * The default input format function available for use as a fallback in custom formatting implementations.
  96218. *
  96219. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#defaultInputFormatFunction)
  96220. */
  96221. defaultInputFormatFunction(value: number): string;
  96222. /**
  96223. * The default input parsing function available for use as a fallback in custom parsing implementations.
  96224. *
  96225. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#defaultInputParseFunction)
  96226. */
  96227. defaultInputParseFunction(value: string): number;
  96228. /**
  96229. * The default label format function, available for use as a fallback in custom formatting implementations.
  96230. *
  96231. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#defaultLabelFormatFunction)
  96232. */
  96233. defaultLabelFormatFunction(value: number): string;
  96234. /**
  96235. * Returns the effective bounds of the slider.
  96236. *
  96237. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#getBounds)
  96238. */
  96239. getBounds(): Bounds;
  96240. /**
  96241. * Returns the min and max bounds for a 'value' at the provided index.
  96242. *
  96243. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#getBoundsForValueAtIndex)
  96244. */
  96245. getBoundsForValueAtIndex(index: number): any;
  96246. /**
  96247. * Returns the formatted label for a provided value.
  96248. *
  96249. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#getLabelForValue)
  96250. */
  96251. getLabelForValue(value: number, type?: "min" | "max" | "tick" | "values", index?: number): string;
  96252. /**
  96253. * Updates a thumb [value](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#values) based on the provided index.
  96254. *
  96255. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#setValue)
  96256. */
  96257. setValue(index: number, value: number): void;
  96258. /**
  96259. * Rounds the given value to the number of decimal places specified in the [precision](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#precision) property set on the view model.
  96260. *
  96261. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#toPrecision)
  96262. */
  96263. toPrecision(value: number): string;
  96264. on(name: "max-change", eventHandler: SliderViewModelMaxChangeEventHandler): IHandle;
  96265. on(name: "min-change", eventHandler: SliderViewModelMinChangeEventHandler): IHandle;
  96266. }
  96267. /** @deprecated Import the SliderViewModel class instead. */
  96268. export type SliderViewModelConstructor = typeof SliderViewModel;
  96269. interface SliderViewModelProperties {
  96270. /**
  96271. * When set, the user is restricted from moving slider thumbs to positions higher than this value.
  96272. *
  96273. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#effectiveMax)
  96274. */
  96275. effectiveMax?: number;
  96276. /**
  96277. * When set, the user is restricted from moving slider thumbs to positions less than this value.
  96278. *
  96279. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#effectiveMin)
  96280. */
  96281. effectiveMin?: number;
  96282. /**
  96283. * A function used to format user inputs.
  96284. *
  96285. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#inputFormatFunction)
  96286. */
  96287. inputFormatFunction?: SliderLabelFormatter;
  96288. /**
  96289. * Function used to parse slider inputs formatted by the [inputFormatFunction](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#inputFormatFunction).
  96290. *
  96291. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#inputParseFunction)
  96292. */
  96293. inputParseFunction?: InputParser;
  96294. /**
  96295. * A function used to format labels.
  96296. *
  96297. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#labelFormatFunction)
  96298. */
  96299. labelFormatFunction?: SliderLabelFormatter;
  96300. /**
  96301. * The maximum possible data/thumb value of the slider.
  96302. *
  96303. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#max)
  96304. */
  96305. max?: number;
  96306. /**
  96307. * The minimum possible data/thumb value of the slider.
  96308. *
  96309. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#min)
  96310. */
  96311. min?: number;
  96312. /**
  96313. * Defines how slider values should be rounded.
  96314. *
  96315. * @default 4
  96316. *
  96317. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#precision)
  96318. */
  96319. precision?: number;
  96320. /**
  96321. * When `false`, the user can freely move any slider thumb to any position along the track.
  96322. *
  96323. * @default true
  96324. *
  96325. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#thumbsConstrained)
  96326. */
  96327. thumbsConstrained?: boolean;
  96328. /**
  96329. * An array of numbers representing absolute thumb positions on the slider.
  96330. *
  96331. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider-SliderViewModel.html#values)
  96332. */
  96333. values?: number[];
  96334. }
  96335. export interface SliderViewModelMaxChangeEvent {
  96336. oldValue: number;
  96337. type: "max";
  96338. value: number;
  96339. }
  96340. export interface SliderViewModelMinChangeEvent {
  96341. oldValue: number;
  96342. type: "min";
  96343. value: number;
  96344. }
  96345. /**
  96346. * Represents the effective bounds of the slider.
  96347. *
  96348. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#Bounds)
  96349. */
  96350. export interface Bounds {
  96351. /**
  96352. * The effective min value of the slider, or the minimum value a user can set a thumb on the slider.
  96353. *
  96354. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#Bounds)
  96355. */
  96356. min: number;
  96357. /**
  96358. * The effective max value of the slider, or the maximum value a user can set a thumb on the slider.
  96359. *
  96360. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#Bounds)
  96361. */
  96362. max: number;
  96363. }
  96364. export type InputCreatedFunction = (inputElement: any, type: "max" | "min" | "thumb", thumbIndex?: number) => void;
  96365. export type InputParser = (
  96366. value: string,
  96367. type?: "average" | "min" | "max" | "tick" | "value",
  96368. index?: number
  96369. ) => number;
  96370. export type SliderLabelFormatter = (
  96371. value: number,
  96372. type?: "average" | "min" | "max" | "tick" | "value",
  96373. index?: number
  96374. ) => string;
  96375. export interface SliderMaxChangeEvent {
  96376. oldValue: number;
  96377. type: "max-change";
  96378. value: number;
  96379. }
  96380. export interface SliderMaxClickEvent {
  96381. type: "max-click";
  96382. value: number;
  96383. }
  96384. export interface SliderMinChangeEvent {
  96385. oldValue: number;
  96386. type: "min-change";
  96387. value: number;
  96388. }
  96389. export interface SliderMinClickEvent {
  96390. type: "min-click";
  96391. value: number;
  96392. }
  96393. export interface SliderSegmentClickEvent {
  96394. index: number;
  96395. thumbIndices: number[];
  96396. type: "segment-click";
  96397. value: number;
  96398. }
  96399. export interface SliderSegmentDragEvent {
  96400. index: number;
  96401. state: "start" | "drag";
  96402. thumbIndices: number[];
  96403. type: "segment-drag";
  96404. }
  96405. export interface SliderThumbChangeEvent {
  96406. index: number;
  96407. oldValue: number;
  96408. type: "thumb-change";
  96409. value: number;
  96410. }
  96411. export interface SliderThumbClickEvent {
  96412. index: number;
  96413. type: "thumb-click";
  96414. value: number;
  96415. }
  96416. export type ThumbCreatedFunction = (
  96417. index: number,
  96418. value: number,
  96419. thumbElement: HTMLElement,
  96420. labelElement?: HTMLElement
  96421. ) => void;
  96422. export interface SliderThumbDragEvent {
  96423. index: number;
  96424. state: "drag" | "start" | "stop";
  96425. type: "thumb-drag";
  96426. value: number;
  96427. }
  96428. export interface SliderTickClickEvent {
  96429. configIndex: number;
  96430. groupIndex: number;
  96431. type: "tick-click";
  96432. value: number;
  96433. }
  96434. /**
  96435. * Object specification for configuring ticks on the slider.
  96436. *
  96437. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#TickConfig)
  96438. */
  96439. export interface TickConfig {
  96440. /**
  96441. * The mode or method of positioning ticks along the slider track.
  96442. *
  96443. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#TickConfig)
  96444. */
  96445. mode: "count" | "percent" | "position";
  96446. /**
  96447. * Indicates where ticks will be rendered below the track.
  96448. *
  96449. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#TickConfig)
  96450. */
  96451. values: number | number[];
  96452. /**
  96453. * Indicates whether to render labels for the ticks.
  96454. *
  96455. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#TickConfig)
  96456. */
  96457. labelsVisible?: boolean;
  96458. /**
  96459. * Callback that fires for each tick.
  96460. *
  96461. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#TickConfig)
  96462. */
  96463. tickCreatedFunction?: TickCreatedFunction;
  96464. /**
  96465. * Callback for formatting tick labels.
  96466. *
  96467. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#TickConfig)
  96468. */
  96469. labelFormatFunction?: SliderLabelFormatter;
  96470. }
  96471. export type TickCreatedFunction = (value: number, tickElement: HTMLElement, labelElement?: HTMLElement) => void;
  96472. /**
  96473. * The HTML Element nodes representing a single slider tick and its associated label.
  96474. *
  96475. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#TickElementGroup)
  96476. */
  96477. export interface TickElementGroup {
  96478. /**
  96479. * The HTMLElement representing a tick.
  96480. *
  96481. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#TickElementGroup)
  96482. */
  96483. tickElement?: HTMLElement;
  96484. /**
  96485. * The HTMLElement representing the label associated with the tick element.
  96486. *
  96487. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#TickElementGroup)
  96488. */
  96489. labelElement?: HTMLElement;
  96490. }
  96491. export interface SliderTrackClickEvent {
  96492. type: "track-click";
  96493. value: number;
  96494. }
  96495. /**
  96496. * The visible elements that are displayed within the widget.
  96497. *
  96498. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#VisibleElements)
  96499. */
  96500. export interface SliderVisibleElements {
  96501. /**
  96502. * Indicates whether to display labels for slider thumbs.
  96503. *
  96504. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#VisibleElements)
  96505. */
  96506. labels?: boolean;
  96507. /**
  96508. * Indicates whether to display [min](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#min) or [max](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#max) range values on the slider.
  96509. *
  96510. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#VisibleElements)
  96511. */
  96512. rangeLabels?: boolean;
  96513. }
  96514. export class ClassedColorSlider extends SmartMappingSliderBase {
  96515. /**
  96516. * An array of class breaks with associated colors.
  96517. *
  96518. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedColorSlider.html#breaks)
  96519. */
  96520. breaks: ClassedColorSliderBreaks[];
  96521. /**
  96522. * The view model for the ClassedColorSlider widget.
  96523. *
  96524. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedColorSlider.html#viewModel)
  96525. */
  96526. viewModel: ClassedColorSliderViewModel;
  96527. /**
  96528. * The ClassedColorSlider widget is designed for authoring and exploring data-driven visualizations in any layer that can be rendered with color in a [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html).
  96529. *
  96530. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedColorSlider.html)
  96531. */
  96532. constructor(properties?: ClassedColorSliderProperties);
  96533. /**
  96534. * A convenience function used to update the [classBreakInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#classBreakInfos) of a [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html) associated with this slider.
  96535. *
  96536. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedColorSlider.html#updateClassBreakInfos)
  96537. */
  96538. updateClassBreakInfos(breakInfos: ClassBreakInfo[]): ClassBreakInfo[];
  96539. /**
  96540. * A convenience function used to update the properties a ClassedColorSlider from the result of the [createClassBreaksRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer) method.
  96541. *
  96542. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedColorSlider.html#updateFromRendererResult)
  96543. */
  96544. updateFromRendererResult(rendererResult: ClassBreaksRendererResult, histogramResult?: HistogramResult): void;
  96545. /**
  96546. * A convenience function used to create a ClassedColorSlider widget from the result of the [createClassBreaksRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createClassBreaksRenderer) method.
  96547. *
  96548. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedColorSlider.html#fromRendererResult)
  96549. */
  96550. static fromRendererResult(rendererResult: ClassBreaksRendererResult, histogramResult?: HistogramResult): ClassedColorSlider;
  96551. }
  96552. /** @deprecated Import the ClassedColorSlider class instead. */
  96553. export type ClassedColorSliderConstructor = typeof ClassedColorSlider;
  96554. interface ClassedColorSliderProperties extends SmartMappingSliderBaseProperties {
  96555. /**
  96556. * An array of class breaks with associated colors.
  96557. *
  96558. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedColorSlider.html#breaks)
  96559. */
  96560. breaks?: ClassedColorSliderBreaks[];
  96561. /**
  96562. * The view model for the ClassedColorSlider widget.
  96563. *
  96564. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedColorSlider.html#viewModel)
  96565. */
  96566. viewModel?: ClassedColorSliderViewModelProperties;
  96567. }
  96568. export class ClassedColorSliderViewModel extends SmartMappingSliderViewModel {
  96569. /**
  96570. * An array of class breaks with associated colors.
  96571. *
  96572. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedColorSlider-ClassedColorSliderViewModel.html#breaks)
  96573. */
  96574. breaks: ClassedColorSliderViewModelBreaks[];
  96575. /**
  96576. * Provides the logic for the [ClassedColorSlider](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedColorSlider.html) widget.
  96577. *
  96578. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedColorSlider-ClassedColorSliderViewModel.html)
  96579. */
  96580. constructor(properties?: ClassedColorSliderViewModelProperties);
  96581. /**
  96582. * Generates the color ramp rendered on the slider.
  96583. *
  96584. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedColorSlider-ClassedColorSliderViewModel.html#getStopInfo)
  96585. */
  96586. getStopInfo(): StopInfo[];
  96587. }
  96588. /** @deprecated Import the ClassedColorSliderViewModel class instead. */
  96589. export type ClassedColorSliderViewModelConstructor = typeof ClassedColorSliderViewModel;
  96590. interface ClassedColorSliderViewModelProperties extends SmartMappingSliderViewModelProperties {
  96591. /**
  96592. * An array of class breaks with associated colors.
  96593. *
  96594. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedColorSlider-ClassedColorSliderViewModel.html#breaks)
  96595. */
  96596. breaks?: ClassedColorSliderViewModelBreaks[];
  96597. }
  96598. export interface ClassedColorSliderViewModelBreaks {
  96599. /**
  96600. * Features with values within the provided `min` and `max` will be rendered with this color.
  96601. *
  96602. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedColorSlider-ClassedColorSliderViewModel.html#breaks)
  96603. */
  96604. color: Color;
  96605. /**
  96606. * The max value of the break.
  96607. *
  96608. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedColorSlider-ClassedColorSliderViewModel.html#breaks)
  96609. */
  96610. max: number;
  96611. /**
  96612. * The min value of the break.
  96613. *
  96614. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedColorSlider-ClassedColorSliderViewModel.html#breaks)
  96615. */
  96616. min: number;
  96617. }
  96618. /**
  96619. * The return object of the [getStopInfo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedColorSlider-ClassedColorSliderViewModel.html#getStopInfo) method.
  96620. *
  96621. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedColorSlider-ClassedColorSliderViewModel.html#StopInfo)
  96622. */
  96623. export interface StopInfo {
  96624. /**
  96625. * The color of the break.
  96626. *
  96627. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedColorSlider-ClassedColorSliderViewModel.html#StopInfo)
  96628. */
  96629. color: Color;
  96630. /**
  96631. * The offset of the stop.
  96632. *
  96633. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedColorSlider-ClassedColorSliderViewModel.html#StopInfo)
  96634. */
  96635. offset: number;
  96636. }
  96637. export interface ClassedColorSliderBreaks {
  96638. /**
  96639. * Features with values within the provided `min` and `max` will be rendered with this color.
  96640. *
  96641. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedColorSlider.html#breaks)
  96642. */
  96643. color: Color;
  96644. /**
  96645. * The max value of the break.
  96646. *
  96647. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedColorSlider.html#breaks)
  96648. */
  96649. max: number;
  96650. /**
  96651. * The min value of the break.
  96652. *
  96653. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedColorSlider.html#breaks)
  96654. */
  96655. min: number;
  96656. }
  96657. export class ClassedSizeSlider extends SmartMappingSliderBase {
  96658. /**
  96659. * An array of class breaks with associated sizes.
  96660. *
  96661. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider.html#breaks)
  96662. */
  96663. breaks: ClassedSizeSliderBreaks[];
  96664. /**
  96665. * Exposes various properties of the widget that can be styled.
  96666. *
  96667. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider.html#style)
  96668. */
  96669. style: ClassedSizeSliderStyle;
  96670. /**
  96671. * The view model for the ClassedSizeSlider widget.
  96672. *
  96673. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider.html#viewModel)
  96674. */
  96675. viewModel: ClassedSizeSliderViewModel;
  96676. /**
  96677. * The ClassedSizeSlider widget is designed for authoring and exploring data-driven visualizations in any layer that can be rendered with size in a [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html).
  96678. *
  96679. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider.html)
  96680. */
  96681. constructor(properties?: ClassedSizeSliderProperties);
  96682. /**
  96683. * A convenience function used to update the [classBreakInfos](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html#classBreakInfos) of a [ClassBreaksRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-ClassBreaksRenderer.html) associated with this slider.
  96684. *
  96685. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider.html#updateClassBreakInfos)
  96686. */
  96687. updateClassBreakInfos(breakInfos: ClassBreakInfo[]): ClassBreakInfo[];
  96688. /**
  96689. * A convenience function used to update the properties a ClassedSizeSlider from the result of the [createClassBreaksRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer) method.
  96690. *
  96691. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider.html#updateClassBreakInfos)
  96692. */
  96693. updateClassBreakInfos(rendererResult: sizeClassBreaksRendererResult, histogramResult?: HistogramResult): void;
  96694. /**
  96695. * A convenience function used to create a ClassedSizeSlider widget from the result of the [createClassBreaksRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createClassBreaksRenderer) method.
  96696. *
  96697. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider.html#fromRendererResult)
  96698. */
  96699. static fromRendererResult(rendererResult: sizeClassBreaksRendererResult, histogramResult?: HistogramResult): ClassedSizeSlider;
  96700. }
  96701. /** @deprecated Import the ClassedSizeSlider class instead. */
  96702. export type ClassedSizeSliderConstructor = typeof ClassedSizeSlider;
  96703. interface ClassedSizeSliderProperties extends SmartMappingSliderBaseProperties {
  96704. /**
  96705. * An array of class breaks with associated sizes.
  96706. *
  96707. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider.html#breaks)
  96708. */
  96709. breaks?: ClassedSizeSliderBreaks[];
  96710. /**
  96711. * Exposes various properties of the widget that can be styled.
  96712. *
  96713. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider.html#style)
  96714. */
  96715. style?: ClassedSizeSliderStyleProperties;
  96716. /**
  96717. * The view model for the ClassedSizeSlider widget.
  96718. *
  96719. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider.html#viewModel)
  96720. */
  96721. viewModel?: ClassedSizeSliderViewModelProperties;
  96722. }
  96723. export class ClassedSizeSliderViewModel extends SmartMappingSliderViewModel {
  96724. /**
  96725. * An array of class breaks with associated sizes.
  96726. *
  96727. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider-ClassedSizeSliderViewModel.html#breaks)
  96728. */
  96729. breaks: ClassedSizeSliderViewModelBreaks[];
  96730. /**
  96731. * Provides the logic for the [ClassedSizeSlider](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider.html) widget.
  96732. *
  96733. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider-ClassedSizeSliderViewModel.html)
  96734. */
  96735. constructor(properties?: ClassedSizeSliderViewModelProperties);
  96736. }
  96737. /** @deprecated Import the ClassedSizeSliderViewModel class instead. */
  96738. export type ClassedSizeSliderViewModelConstructor = typeof ClassedSizeSliderViewModel;
  96739. interface ClassedSizeSliderViewModelProperties extends SmartMappingSliderViewModelProperties {
  96740. /**
  96741. * An array of class breaks with associated sizes.
  96742. *
  96743. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider-ClassedSizeSliderViewModel.html#breaks)
  96744. */
  96745. breaks?: ClassedSizeSliderViewModelBreaks[];
  96746. }
  96747. export interface ClassedSizeSliderViewModelBreaks {
  96748. /**
  96749. * The size in points of the symbol representing features with values within the given `min` and `max`.
  96750. *
  96751. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider-ClassedSizeSliderViewModel.html#breaks)
  96752. */
  96753. size: number;
  96754. /**
  96755. * The max value of the break.
  96756. *
  96757. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider-ClassedSizeSliderViewModel.html#breaks)
  96758. */
  96759. max: number;
  96760. /**
  96761. * The min value of the break.
  96762. *
  96763. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider-ClassedSizeSliderViewModel.html#breaks)
  96764. */
  96765. min: number;
  96766. }
  96767. export interface ClassedSizeSliderBreaks {
  96768. /**
  96769. * The size in points of the symbol representing features with values within the given `min` and `max`.
  96770. *
  96771. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider.html#breaks)
  96772. */
  96773. size: number;
  96774. /**
  96775. * The max value of the break.
  96776. *
  96777. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider.html#breaks)
  96778. */
  96779. max: number;
  96780. /**
  96781. * The min value of the break.
  96782. *
  96783. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider.html#breaks)
  96784. */
  96785. min: number;
  96786. }
  96787. export interface ClassedSizeSliderStyleProperties {
  96788. /**
  96789. * The color of the slider's track.
  96790. *
  96791. * @default new Color([149, 149, 149])
  96792. *
  96793. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider.html#style)
  96794. */
  96795. trackFillColor?: Color | number[] | string;
  96796. /**
  96797. * The background color of the slider's track.
  96798. *
  96799. * @default new Color([224, 224, 224])
  96800. *
  96801. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider.html#style)
  96802. */
  96803. trackBackgroundColor?: Color | number[] | string;
  96804. }
  96805. export interface ClassedSizeSliderStyle extends AnonymousAccessor {
  96806. /**
  96807. * The color of the slider's track.
  96808. *
  96809. * @default new Color([149, 149, 149])
  96810. *
  96811. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider.html#style)
  96812. */
  96813. trackFillColor?: Color;
  96814. /**
  96815. * The background color of the slider's track.
  96816. *
  96817. * @default new Color([224, 224, 224])
  96818. *
  96819. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ClassedSizeSlider.html#style)
  96820. */
  96821. trackBackgroundColor?: Color;
  96822. }
  96823. export class ColorSizeSlider extends SmartMappingSliderBase {
  96824. /**
  96825. * Only applicable when three thumbs (i.e.
  96826. *
  96827. * @default true
  96828. *
  96829. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSizeSlider.html#handlesSyncedToPrimary)
  96830. */
  96831. handlesSyncedToPrimary: boolean;
  96832. /**
  96833. * Only applicable when three thumbs (i.e.
  96834. *
  96835. * @default false
  96836. *
  96837. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSizeSlider.html#persistSizeRangeEnabled)
  96838. */
  96839. persistSizeRangeEnabled: boolean;
  96840. /**
  96841. * When `true`, the slider will render a third handle between the two handles already provided by default.
  96842. *
  96843. * @default false
  96844. *
  96845. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSizeSlider.html#primaryHandleEnabled)
  96846. */
  96847. primaryHandleEnabled: boolean;
  96848. /**
  96849. * The colors and sizes corresponding with data values in the [ColorVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html) and [SizeVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html) of the renderer associated with the slider.
  96850. *
  96851. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSizeSlider.html#stops)
  96852. */
  96853. stops: ColorSizeStop[];
  96854. /**
  96855. * The view model for the ColorSizeSlider widget.
  96856. *
  96857. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSizeSlider.html#viewModel)
  96858. */
  96859. viewModel: ColorSizeSliderViewModel;
  96860. /**
  96861. * The ColorSizeSlider widget is intended for authoring and exploring data-driven visualizations in any layer that can be rendered with a [ColorVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html) and a [SizeVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html).
  96862. *
  96863. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSizeSlider.html)
  96864. */
  96865. constructor(properties?: ColorSizeSliderProperties);
  96866. /**
  96867. * A convenience function used to update the properties of a ColorSizeSlider widget instance from the [result](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#ContinuousRendererResult) of the [univariateColorSize.createContinuousRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer) method.
  96868. *
  96869. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSizeSlider.html#updateFromRendererResult)
  96870. */
  96871. updateFromRendererResult(rendererResult: univariateColorSizeContinuousRendererResult, histogramResult?: HistogramResult): void;
  96872. /**
  96873. * A convenience function used to update a renderer generated with the [univariateColorSize.createContinuousRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer) method with the values obtained from the slider.
  96874. *
  96875. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSizeSlider.html#updateRenderer)
  96876. */
  96877. updateRenderer(renderer: ClassBreaksRenderer): ClassBreaksRenderer;
  96878. /**
  96879. * A convenience function used to update the visual variables of a renderer generated with the [univariateColorSize.createContinuousRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer) method with the values obtained from the slider.
  96880. *
  96881. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSizeSlider.html#updateVisualVariables)
  96882. */
  96883. updateVisualVariables(variables: (ColorVariable | SizeVariable)[]): (ColorVariable | SizeVariable)[];
  96884. /**
  96885. * A convenience function used to create a ColorSizeSlider widget instance from the [result](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#ContinuousRendererResult) of the [univariateColorSize.createContinuousRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-univariateColorSize.html#createContinuousRenderer) method.
  96886. *
  96887. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSizeSlider.html#fromRendererResult)
  96888. */
  96889. static fromRendererResult(rendererResult: univariateColorSizeContinuousRendererResult, histogramResult?: HistogramResult): ColorSizeSlider;
  96890. }
  96891. /** @deprecated Import the ColorSizeSlider class instead. */
  96892. export type ColorSizeSliderConstructor = typeof ColorSizeSlider;
  96893. interface ColorSizeSliderProperties extends SmartMappingSliderBaseProperties {
  96894. /**
  96895. * Only applicable when three thumbs (i.e.
  96896. *
  96897. * @default true
  96898. *
  96899. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSizeSlider.html#handlesSyncedToPrimary)
  96900. */
  96901. handlesSyncedToPrimary?: boolean;
  96902. /**
  96903. * Only applicable when three thumbs (i.e.
  96904. *
  96905. * @default false
  96906. *
  96907. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSizeSlider.html#persistSizeRangeEnabled)
  96908. */
  96909. persistSizeRangeEnabled?: boolean;
  96910. /**
  96911. * When `true`, the slider will render a third handle between the two handles already provided by default.
  96912. *
  96913. * @default false
  96914. *
  96915. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSizeSlider.html#primaryHandleEnabled)
  96916. */
  96917. primaryHandleEnabled?: boolean;
  96918. /**
  96919. * The colors and sizes corresponding with data values in the [ColorVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html) and [SizeVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html) of the renderer associated with the slider.
  96920. *
  96921. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSizeSlider.html#stops)
  96922. */
  96923. stops?: ColorSizeStopProperties[];
  96924. /**
  96925. * The view model for the ColorSizeSlider widget.
  96926. *
  96927. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSizeSlider.html#viewModel)
  96928. */
  96929. viewModel?: ColorSizeSliderViewModelProperties;
  96930. }
  96931. export class ColorSizeSliderViewModel extends SizeSliderViewModel {
  96932. /**
  96933. * The colors and sizes corresponding with data values in the [ColorVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html) and [SizeVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html) of the renderer associated with the slider.
  96934. *
  96935. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSizeSlider-ColorSizeSliderViewModel.html#stops)
  96936. */
  96937. stops: ColorSizeStop[];
  96938. /**
  96939. * Provides the logic for the [ColorSizeSlider](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSizeSlider.html) widget.
  96940. *
  96941. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSizeSlider-ColorSizeSliderViewModel.html)
  96942. */
  96943. constructor(properties?: ColorSizeSliderViewModelProperties);
  96944. /**
  96945. * Generates the color ramp gradient rendered on the slider.
  96946. *
  96947. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSizeSlider-ColorSizeSliderViewModel.html#getStopInfo)
  96948. */
  96949. getStopInfo(): ColorSizeSliderViewModelStopInfo[];
  96950. }
  96951. /** @deprecated Import the ColorSizeSliderViewModel class instead. */
  96952. export type ColorSizeSliderViewModelConstructor = typeof ColorSizeSliderViewModel;
  96953. interface ColorSizeSliderViewModelProperties extends SizeSliderViewModelProperties {
  96954. /**
  96955. * The colors and sizes corresponding with data values in the [ColorVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html) and [SizeVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html) of the renderer associated with the slider.
  96956. *
  96957. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSizeSlider-ColorSizeSliderViewModel.html#stops)
  96958. */
  96959. stops?: ColorSizeStopProperties[];
  96960. }
  96961. /**
  96962. * The return object of the [getStopInfo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSizeSlider-ColorSizeSliderViewModel.html#getStopInfo) method.
  96963. *
  96964. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSizeSlider-ColorSizeSliderViewModel.html#StopInfo)
  96965. */
  96966. export interface ColorSizeSliderViewModelStopInfo {
  96967. /**
  96968. * The color of the stop.
  96969. *
  96970. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSizeSlider-ColorSizeSliderViewModel.html#StopInfo)
  96971. */
  96972. color: Color;
  96973. /**
  96974. * The offset of the stop.
  96975. *
  96976. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSizeSlider-ColorSizeSliderViewModel.html#StopInfo)
  96977. */
  96978. offset: number;
  96979. }
  96980. export class ColorSlider extends SmartMappingSliderBase {
  96981. /**
  96982. * Only applicable when three thumbs (i.e.
  96983. *
  96984. * @default true
  96985. *
  96986. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSlider.html#handlesSyncedToPrimary)
  96987. */
  96988. handlesSyncedToPrimary: boolean;
  96989. /**
  96990. * When `true`, the slider will render a third handle between the two handles already provided by default.
  96991. *
  96992. * @default false
  96993. *
  96994. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSlider.html#primaryHandleEnabled)
  96995. */
  96996. primaryHandleEnabled: boolean;
  96997. /**
  96998. * The color stops from the [ColorVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html) to link to the slider.
  96999. *
  97000. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSlider.html#stops)
  97001. */
  97002. stops: ColorStop[];
  97003. /**
  97004. * The view model for the ColorSlider widget.
  97005. *
  97006. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSlider.html#viewModel)
  97007. */
  97008. viewModel: ColorSliderViewModel;
  97009. /**
  97010. * The ColorSlider widget is intended for authoring and exploring data-driven visualizations in any layer that can be rendered with a [ColorVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html).
  97011. *
  97012. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSlider.html)
  97013. */
  97014. constructor(properties?: ColorSliderProperties);
  97015. /**
  97016. * A convenience function used to update the properties of a ColorSlider widget instance from the [result](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#ContinuousRendererResult) of the [createContinuousRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer) method.
  97017. *
  97018. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSlider.html#updateFromRendererResult)
  97019. */
  97020. updateFromRendererResult(rendererResult: ContinuousRendererResult, histogramResult?: HistogramResult): void;
  97021. /**
  97022. * A convenience function used to create a ColorSlider widget instance from the [result](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#ContinuousRendererResult) of the [createContinuousRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-color.html#createContinuousRenderer) method.
  97023. *
  97024. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSlider.html#fromRendererResult)
  97025. */
  97026. static fromRendererResult(rendererResult: ContinuousRendererResult, histogramResult?: HistogramResult): ColorSlider;
  97027. }
  97028. /** @deprecated Import the ColorSlider class instead. */
  97029. export type ColorSliderConstructor = typeof ColorSlider;
  97030. interface ColorSliderProperties extends SmartMappingSliderBaseProperties {
  97031. /**
  97032. * Only applicable when three thumbs (i.e.
  97033. *
  97034. * @default true
  97035. *
  97036. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSlider.html#handlesSyncedToPrimary)
  97037. */
  97038. handlesSyncedToPrimary?: boolean;
  97039. /**
  97040. * When `true`, the slider will render a third handle between the two handles already provided by default.
  97041. *
  97042. * @default false
  97043. *
  97044. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSlider.html#primaryHandleEnabled)
  97045. */
  97046. primaryHandleEnabled?: boolean;
  97047. /**
  97048. * The color stops from the [ColorVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html) to link to the slider.
  97049. *
  97050. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSlider.html#stops)
  97051. */
  97052. stops?: ColorStopProperties[];
  97053. /**
  97054. * The view model for the ColorSlider widget.
  97055. *
  97056. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSlider.html#viewModel)
  97057. */
  97058. viewModel?: ColorSliderViewModelProperties;
  97059. }
  97060. export class ColorSliderViewModel extends SmartMappingPrimaryHandleSliderViewModel {
  97061. /**
  97062. * The color stops from the [ColorVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html) to link to the slider.
  97063. *
  97064. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSlider-ColorSliderViewModel.html#stops)
  97065. */
  97066. stops: ColorStop[];
  97067. /**
  97068. * Provides the logic for the [ColorSlider](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSlider.html) widget.
  97069. *
  97070. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSlider-ColorSliderViewModel.html)
  97071. */
  97072. constructor(properties?: ColorSliderViewModelProperties);
  97073. /**
  97074. * Generates the color ramp gradient rendered on the slider track.
  97075. *
  97076. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSlider-ColorSliderViewModel.html#getStopInfo)
  97077. */
  97078. getStopInfo(): ColorSliderViewModelStopInfo[];
  97079. }
  97080. /** @deprecated Import the ColorSliderViewModel class instead. */
  97081. export type ColorSliderViewModelConstructor = typeof ColorSliderViewModel;
  97082. interface ColorSliderViewModelProperties extends SmartMappingPrimaryHandleSliderViewModelProperties {
  97083. /**
  97084. * The color stops from the [ColorVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-ColorVariable.html) to link to the slider.
  97085. *
  97086. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSlider-ColorSliderViewModel.html#stops)
  97087. */
  97088. stops?: ColorStopProperties[];
  97089. }
  97090. /**
  97091. * The return object of the [getStopInfo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSlider-ColorSliderViewModel.html#getStopInfo) method.
  97092. *
  97093. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSlider-ColorSliderViewModel.html#StopInfo)
  97094. */
  97095. export interface ColorSliderViewModelStopInfo {
  97096. /**
  97097. * The color of the stop.
  97098. *
  97099. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSlider-ColorSliderViewModel.html#StopInfo)
  97100. */
  97101. color: Color;
  97102. /**
  97103. * The offset of the stop.
  97104. *
  97105. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-ColorSlider-ColorSliderViewModel.html#StopInfo)
  97106. */
  97107. offset: number;
  97108. }
  97109. export class HeatmapSlider extends Widget {
  97110. /**
  97111. * The colorStops of the [HeatmapRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html) to associate with the slider.
  97112. *
  97113. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-HeatmapSlider.html#stops)
  97114. */
  97115. stops: HeatmapColorStop[];
  97116. /**
  97117. * The view model for the Heatmap widget.
  97118. *
  97119. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-HeatmapSlider.html#viewModel)
  97120. */
  97121. viewModel: HeatmapSliderViewModel;
  97122. /**
  97123. * The HeatmapSlider widget is intended for authoring and exploring data-driven visualizations in any layer that can be rendered with a [HeatmapRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html).
  97124. *
  97125. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-HeatmapSlider.html)
  97126. */
  97127. constructor(properties?: HeatmapSliderProperties);
  97128. on(name: "thumb-change", eventHandler: HeatmapSliderThumbChangeEventHandler): IHandle;
  97129. on(name: "thumb-drag", eventHandler: HeatmapSliderThumbDragEventHandler): IHandle;
  97130. /**
  97131. * A convenience function used to create a HeatmapSlider widget instance from the [result](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html#HeatmapRendererResult) of the [heatmapRendererCreator.createRenderer()](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-heatmap.html#createRenderer) method.
  97132. *
  97133. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-HeatmapSlider.html#fromHeatmapRendererResult)
  97134. */
  97135. static fromHeatmapRendererResult(rendererResult: HeatmapRendererResult): HeatmapSlider;
  97136. }
  97137. /** @deprecated Import the HeatmapSlider class instead. */
  97138. export type HeatmapSliderConstructor = typeof HeatmapSlider;
  97139. interface HeatmapSliderProperties extends WidgetProperties {
  97140. /**
  97141. * The colorStops of the [HeatmapRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html) to associate with the slider.
  97142. *
  97143. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-HeatmapSlider.html#stops)
  97144. */
  97145. stops?: HeatmapColorStopProperties[];
  97146. /**
  97147. * The view model for the Heatmap widget.
  97148. *
  97149. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-HeatmapSlider.html#viewModel)
  97150. */
  97151. viewModel?: HeatmapSliderViewModelProperties;
  97152. }
  97153. export class HeatmapSliderViewModel extends SmartMappingSliderViewModel {
  97154. /**
  97155. * The colorStops of the [HeatmapRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html) to associate with the slider.
  97156. *
  97157. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-HeatmapSlider-HeatmapSliderViewModel.html#stops)
  97158. */
  97159. stops: HeatmapColorStop[];
  97160. /**
  97161. * Provides the logic for the [HeatmapSlider](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-HeatmapSlider.html) widget.
  97162. *
  97163. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-HeatmapSlider-HeatmapSliderViewModel.html)
  97164. */
  97165. constructor(properties?: HeatmapSliderViewModelProperties);
  97166. /**
  97167. * Generates the color ramp gradient rendered on the slider.
  97168. *
  97169. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-HeatmapSlider-HeatmapSliderViewModel.html#getStopInfo)
  97170. */
  97171. getStopInfo(): HeatmapSliderViewModelStopInfo[];
  97172. }
  97173. /** @deprecated Import the HeatmapSliderViewModel class instead. */
  97174. export type HeatmapSliderViewModelConstructor = typeof HeatmapSliderViewModel;
  97175. interface HeatmapSliderViewModelProperties extends SmartMappingSliderViewModelProperties {
  97176. /**
  97177. * The colorStops of the [HeatmapRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-HeatmapRenderer.html) to associate with the slider.
  97178. *
  97179. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-HeatmapSlider-HeatmapSliderViewModel.html#stops)
  97180. */
  97181. stops?: HeatmapColorStopProperties[];
  97182. }
  97183. /**
  97184. * The return object of the [getColorStopInfo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-HeatmapSlider-HeatmapSliderViewModel.html#getColorStopInfo) method.
  97185. *
  97186. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-HeatmapSlider-HeatmapSliderViewModel.html#StopInfo)
  97187. */
  97188. export interface HeatmapSliderViewModelStopInfo {
  97189. /**
  97190. * The color of the stop.
  97191. *
  97192. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-HeatmapSlider-HeatmapSliderViewModel.html#StopInfo)
  97193. */
  97194. color: Color;
  97195. /**
  97196. * The offset of the stop.
  97197. *
  97198. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-HeatmapSlider-HeatmapSliderViewModel.html#StopInfo)
  97199. */
  97200. offset: number;
  97201. }
  97202. export interface HeatmapSliderThumbChangeEvent {
  97203. index: number;
  97204. oldValue: number;
  97205. type: "thumb-change";
  97206. value: number;
  97207. }
  97208. export interface HeatmapSliderThumbDragEvent {
  97209. index: number;
  97210. state: "start" | "drag";
  97211. type: "thumb-drag";
  97212. value: number;
  97213. }
  97214. export class OpacitySlider extends SmartMappingSliderBase {
  97215. /**
  97216. * The opacity stops from the [OpacityVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-OpacityVariable.html) to link to the slider.
  97217. *
  97218. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-OpacitySlider.html#stops)
  97219. */
  97220. stops: OpacityStop[];
  97221. /**
  97222. * Exposes various properties of the widget that can be styled.
  97223. *
  97224. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-OpacitySlider.html#style)
  97225. */
  97226. style: OpacitySliderStyle;
  97227. /**
  97228. * The view model for the OpacitySlider widget.
  97229. *
  97230. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-OpacitySlider.html#viewModel)
  97231. */
  97232. viewModel: OpacitySliderViewModel;
  97233. /**
  97234. * The OpacitySlider widget is intended for authoring and exploring data-driven visualizations in any layer that can be rendered with an [OpacityVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-OpacityVariable.html).
  97235. *
  97236. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-OpacitySlider.html)
  97237. */
  97238. constructor(properties?: OpacitySliderProperties);
  97239. /**
  97240. * A convenience function used to update the properties of an OpacitySlider widget instance from the [result](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#VisualVariableResult) of the [createVisualVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#createVisualVariable) method.
  97241. *
  97242. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-OpacitySlider.html#updateFromVisualVariableResult)
  97243. */
  97244. updateFromVisualVariableResult(visualVariableResult: opacityVisualVariableResult, histogramResult?: HistogramResult): void;
  97245. /**
  97246. * A convenience function used to create an OpacitySlider widget instance from the [result](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#VisualVariableResult) of the [createVisualVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-opacity.html#createVisualVariable) method.
  97247. *
  97248. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-OpacitySlider.html#fromVisualVariableResult)
  97249. */
  97250. static fromVisualVariableResult(visualVariableResult: opacityVisualVariableResult, histogramResult?: HistogramResult): OpacitySlider;
  97251. }
  97252. /** @deprecated Import the OpacitySlider class instead. */
  97253. export type OpacitySliderConstructor = typeof OpacitySlider;
  97254. interface OpacitySliderProperties extends SmartMappingSliderBaseProperties {
  97255. /**
  97256. * The opacity stops from the [OpacityVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-OpacityVariable.html) to link to the slider.
  97257. *
  97258. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-OpacitySlider.html#stops)
  97259. */
  97260. stops?: OpacityStopProperties[];
  97261. /**
  97262. * Exposes various properties of the widget that can be styled.
  97263. *
  97264. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-OpacitySlider.html#style)
  97265. */
  97266. style?: OpacitySliderStyleProperties;
  97267. /**
  97268. * The view model for the OpacitySlider widget.
  97269. *
  97270. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-OpacitySlider.html#viewModel)
  97271. */
  97272. viewModel?: OpacitySliderViewModelProperties;
  97273. }
  97274. export class OpacitySliderViewModel extends SmartMappingSliderViewModel {
  97275. /**
  97276. * The opacity stops from the [OpacityVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-OpacityVariable.html) to link to the slider.
  97277. *
  97278. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-OpacitySlider-OpacitySliderViewModel.html#stops)
  97279. */
  97280. stops: OpacityStop[];
  97281. /**
  97282. * Provides the logic for the [OpacitySlider](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-OpacitySlider.html) widget.
  97283. *
  97284. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-OpacitySlider-OpacitySliderViewModel.html)
  97285. */
  97286. constructor(properties?: OpacitySliderViewModelProperties);
  97287. /**
  97288. * Generates the opacity ramp gradient rendered on the slider.
  97289. *
  97290. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-OpacitySlider-OpacitySliderViewModel.html#getStopInfo)
  97291. */
  97292. getStopInfo(): OpacitySliderViewModelStopInfo[];
  97293. }
  97294. /** @deprecated Import the OpacitySliderViewModel class instead. */
  97295. export type OpacitySliderViewModelConstructor = typeof OpacitySliderViewModel;
  97296. interface OpacitySliderViewModelProperties extends SmartMappingSliderViewModelProperties {
  97297. /**
  97298. * The opacity stops from the [OpacityVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-OpacityVariable.html) to link to the slider.
  97299. *
  97300. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-OpacitySlider-OpacitySliderViewModel.html#stops)
  97301. */
  97302. stops?: OpacityStopProperties[];
  97303. }
  97304. /**
  97305. * The return object of the [getStopInfo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-OpacitySlider-OpacitySliderViewModel.html#getStopInfo) method.
  97306. *
  97307. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-OpacitySlider-OpacitySliderViewModel.html#StopInfo)
  97308. */
  97309. export interface OpacitySliderViewModelStopInfo {
  97310. /**
  97311. * The color of the stop.
  97312. *
  97313. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-OpacitySlider-OpacitySliderViewModel.html#StopInfo)
  97314. */
  97315. color: Color;
  97316. /**
  97317. * The offset of the stop.
  97318. *
  97319. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-OpacitySlider-OpacitySliderViewModel.html#StopInfo)
  97320. */
  97321. offset: number;
  97322. }
  97323. export interface OpacitySliderStyleProperties {
  97324. /**
  97325. * The color of the slider's track.
  97326. *
  97327. * @default new Color([0, 121, 193])
  97328. *
  97329. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-OpacitySlider.html#style)
  97330. */
  97331. trackFillColor?: Color | number[] | string;
  97332. }
  97333. export interface OpacitySliderStyle extends AnonymousAccessor {
  97334. /**
  97335. * The color of the slider's track.
  97336. *
  97337. * @default new Color([0, 121, 193])
  97338. *
  97339. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-OpacitySlider.html#style)
  97340. */
  97341. trackFillColor?: Color;
  97342. }
  97343. export class SizeSlider extends SmartMappingSliderBase {
  97344. /**
  97345. * Only applicable when three thumbs (i.e.
  97346. *
  97347. * @default true
  97348. *
  97349. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider.html#handlesSyncedToPrimary)
  97350. */
  97351. handlesSyncedToPrimary: boolean;
  97352. /**
  97353. * Only applicable when three thumbs (i.e.
  97354. *
  97355. * @default false
  97356. *
  97357. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider.html#persistSizeRangeEnabled)
  97358. */
  97359. persistSizeRangeEnabled: boolean;
  97360. /**
  97361. * When `true`, the slider will render a third handle between the two handles already provided by default.
  97362. *
  97363. * @default false
  97364. *
  97365. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider.html#primaryHandleEnabled)
  97366. */
  97367. primaryHandleEnabled: boolean;
  97368. /**
  97369. * The size stops from the [SizeVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html) to link to the slider.
  97370. *
  97371. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider.html#stops)
  97372. */
  97373. stops: SizeStop[];
  97374. /**
  97375. * Exposes various properties of the widget that can be styled.
  97376. *
  97377. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider.html#style)
  97378. */
  97379. style: SizeSliderStyle;
  97380. /**
  97381. * The view model for the SizeSlider widget.
  97382. *
  97383. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider.html#viewModel)
  97384. */
  97385. viewModel: SizeSliderViewModel;
  97386. /**
  97387. * The SizeSlider widget is intended for authoring and exploring data-driven visualizations in any layer that can be rendered with a [SizeVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html).
  97388. *
  97389. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider.html)
  97390. */
  97391. constructor(properties?: SizeSliderProperties);
  97392. /**
  97393. * A convenience function used to update the properties of a SizeSlider widget instance from the [result](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#ContinuousRendererResult) of the [createContinuousRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer) method.
  97394. *
  97395. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider.html#updateFromRendererResult)
  97396. */
  97397. updateFromRendererResult(rendererResult: sizeContinuousRendererResult, histogramResult?: HistogramResult): void;
  97398. /**
  97399. * A convenience function used to update the [SizeVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html) to match the values of the [stops](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider.html#stops) on the slider.
  97400. *
  97401. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider.html#updateVisualVariable)
  97402. */
  97403. updateVisualVariable(sizeVariable: SizeVariable): SizeVariable;
  97404. /**
  97405. * A convenience function used to create a SizeSlider widget instance from the [result](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#ContinuousRendererResult) of the [createContinuousRenderer](https://developers.arcgis.com/javascript/latest/api-reference/esri-smartMapping-renderers-size.html#createContinuousRenderer) method.
  97406. *
  97407. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider.html#fromRendererResult)
  97408. */
  97409. static fromRendererResult(rendererResult: sizeContinuousRendererResult, histogramResult?: HistogramResult): SizeSlider;
  97410. }
  97411. /** @deprecated Import the SizeSlider class instead. */
  97412. export type SizeSliderConstructor = typeof SizeSlider;
  97413. interface SizeSliderProperties extends SmartMappingSliderBaseProperties {
  97414. /**
  97415. * Only applicable when three thumbs (i.e.
  97416. *
  97417. * @default true
  97418. *
  97419. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider.html#handlesSyncedToPrimary)
  97420. */
  97421. handlesSyncedToPrimary?: boolean;
  97422. /**
  97423. * Only applicable when three thumbs (i.e.
  97424. *
  97425. * @default false
  97426. *
  97427. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider.html#persistSizeRangeEnabled)
  97428. */
  97429. persistSizeRangeEnabled?: boolean;
  97430. /**
  97431. * When `true`, the slider will render a third handle between the two handles already provided by default.
  97432. *
  97433. * @default false
  97434. *
  97435. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider.html#primaryHandleEnabled)
  97436. */
  97437. primaryHandleEnabled?: boolean;
  97438. /**
  97439. * The size stops from the [SizeVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html) to link to the slider.
  97440. *
  97441. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider.html#stops)
  97442. */
  97443. stops?: SizeStopProperties[];
  97444. /**
  97445. * Exposes various properties of the widget that can be styled.
  97446. *
  97447. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider.html#style)
  97448. */
  97449. style?: SizeSliderStyleProperties;
  97450. /**
  97451. * The view model for the SizeSlider widget.
  97452. *
  97453. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider.html#viewModel)
  97454. */
  97455. viewModel?: SizeSliderViewModelProperties;
  97456. }
  97457. export class SizeSliderViewModel extends SmartMappingPrimaryHandleSliderViewModel {
  97458. /**
  97459. * This property is typically used in diverging, or `above-and-below` renderer configurations.
  97460. *
  97461. * @default false
  97462. *
  97463. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider-SizeSliderViewModel.html#persistSizeRangeEnabled)
  97464. */
  97465. persistSizeRangeEnabled: boolean;
  97466. /**
  97467. * The size stops from the [SizeVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html) to link to the slider.
  97468. *
  97469. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider-SizeSliderViewModel.html#stops)
  97470. */
  97471. stops: SizeStop[];
  97472. /**
  97473. * Provides the logic for the [SizeSlider](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider.html) widget.
  97474. *
  97475. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider-SizeSliderViewModel.html)
  97476. */
  97477. constructor(properties?: SizeSliderViewModelProperties);
  97478. }
  97479. /** @deprecated Import the SizeSliderViewModel class instead. */
  97480. export type SizeSliderViewModelConstructor = typeof SizeSliderViewModel;
  97481. interface SizeSliderViewModelProperties extends SmartMappingPrimaryHandleSliderViewModelProperties {
  97482. /**
  97483. * This property is typically used in diverging, or `above-and-below` renderer configurations.
  97484. *
  97485. * @default false
  97486. *
  97487. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider-SizeSliderViewModel.html#persistSizeRangeEnabled)
  97488. */
  97489. persistSizeRangeEnabled?: boolean;
  97490. /**
  97491. * The size stops from the [SizeVariable](https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-SizeVariable.html) to link to the slider.
  97492. *
  97493. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider-SizeSliderViewModel.html#stops)
  97494. */
  97495. stops?: SizeStopProperties[];
  97496. }
  97497. export interface SizeSliderStyleProperties {
  97498. /**
  97499. * The color of the slider's track.
  97500. *
  97501. * @default new Color([149, 149, 149])
  97502. *
  97503. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider.html#style)
  97504. */
  97505. trackFillColor?: Color | number[] | string;
  97506. /**
  97507. * The background color of the slider's track.
  97508. *
  97509. * @default new Color([224, 224, 224])
  97510. *
  97511. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider.html#style)
  97512. */
  97513. trackBackgroundColor?: Color | number[] | string;
  97514. }
  97515. export interface SizeSliderStyle extends AnonymousAccessor {
  97516. /**
  97517. * The color of the slider's track.
  97518. *
  97519. * @default new Color([149, 149, 149])
  97520. *
  97521. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider.html#style)
  97522. */
  97523. trackFillColor?: Color;
  97524. /**
  97525. * The background color of the slider's track.
  97526. *
  97527. * @default new Color([224, 224, 224])
  97528. *
  97529. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SizeSlider.html#style)
  97530. */
  97531. trackBackgroundColor?: Color;
  97532. }
  97533. export class SmartMappingPrimaryHandleSliderViewModel extends SmartMappingSliderViewModel {
  97534. /**
  97535. * Only applicable when three thumbs (i.e.
  97536. *
  97537. * @default true
  97538. *
  97539. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingPrimaryHandleSliderViewModel.html#handlesSyncedToPrimary)
  97540. */
  97541. handlesSyncedToPrimary: boolean;
  97542. /**
  97543. * When `true`, the slider will render a third handle between the two handles already provided by default.
  97544. *
  97545. * @default false
  97546. *
  97547. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingPrimaryHandleSliderViewModel.html#primaryHandleEnabled)
  97548. */
  97549. primaryHandleEnabled: boolean;
  97550. /**
  97551. * Shared properties for sliders that have a [primaryHandle](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingPrimaryHandleSliderViewModel.html#primaryHandleEnabled) option.
  97552. *
  97553. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingPrimaryHandleSliderViewModel.html)
  97554. */
  97555. constructor(properties?: SmartMappingPrimaryHandleSliderViewModelProperties);
  97556. }
  97557. /** @deprecated Import the SmartMappingPrimaryHandleSliderViewModel class instead. */
  97558. export type SmartMappingPrimaryHandleSliderViewModelConstructor = typeof SmartMappingPrimaryHandleSliderViewModel;
  97559. interface SmartMappingPrimaryHandleSliderViewModelProperties extends SmartMappingSliderViewModelProperties {
  97560. /**
  97561. * Only applicable when three thumbs (i.e.
  97562. *
  97563. * @default true
  97564. *
  97565. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingPrimaryHandleSliderViewModel.html#handlesSyncedToPrimary)
  97566. */
  97567. handlesSyncedToPrimary?: boolean;
  97568. /**
  97569. * When `true`, the slider will render a third handle between the two handles already provided by default.
  97570. *
  97571. * @default false
  97572. *
  97573. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingPrimaryHandleSliderViewModel.html#primaryHandleEnabled)
  97574. */
  97575. primaryHandleEnabled?: boolean;
  97576. }
  97577. export class SmartMappingSliderBase extends Widget {
  97578. /**
  97579. * The [Histogram](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html) associated with the data represented on the slider.
  97580. *
  97581. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#histogramConfig)
  97582. */
  97583. histogramConfig: HistogramConfig;
  97584. /**
  97585. * A function used to format user inputs.
  97586. *
  97587. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#inputFormatFunction)
  97588. */
  97589. inputFormatFunction: SmartMappingSliderBaseLabelFormatter;
  97590. /**
  97591. * Function used to parse slider inputs formatted by the [inputFormatFunction](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#inputFormatFunction).
  97592. *
  97593. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#inputParseFunction)
  97594. */
  97595. inputParseFunction: InputParser;
  97596. /**
  97597. * A modified version of [Slider.labelFormatFunction](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#labelFormatFunction), which is a custom function used to format labels on the thumbs, min, max, and average values.
  97598. *
  97599. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#labelFormatFunction)
  97600. */
  97601. labelFormatFunction: SmartMappingSliderBaseLabelFormatter;
  97602. /**
  97603. * The maximum value or upper bound of the slider.
  97604. *
  97605. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#max)
  97606. */
  97607. max: number;
  97608. /**
  97609. * The minimum value or lower bound of the slider.
  97610. *
  97611. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#min)
  97612. */
  97613. min: number;
  97614. /**
  97615. * Defines how slider thumb values should be rounded.
  97616. *
  97617. * @default 4
  97618. *
  97619. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#precision)
  97620. */
  97621. precision: number;
  97622. /**
  97623. * The state of the view model.
  97624. *
  97625. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#state)
  97626. */
  97627. readonly state: "ready" | "disabled";
  97628. /**
  97629. * When `true`, all segments will sync together in updating thumb values when the user drags any segment.
  97630. *
  97631. * @default false
  97632. *
  97633. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#syncedSegmentsEnabled)
  97634. */
  97635. syncedSegmentsEnabled: boolean;
  97636. /**
  97637. * The visible elements that are displayed within the widget.
  97638. *
  97639. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#visibleElements)
  97640. */
  97641. visibleElements: SmartMappingSliderBaseVisibleElements;
  97642. /**
  97643. * Zooms the slider track to the bounds provided in this property.
  97644. *
  97645. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#zoomOptions)
  97646. */
  97647. zoomOptions: SmartMappingSliderBaseZoomOptions;
  97648. /**
  97649. * The base class for all Smart Mapping slider widgets.
  97650. *
  97651. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html)
  97652. */
  97653. constructor(properties?: SmartMappingSliderBaseProperties);
  97654. on(name: "max-change", eventHandler: SmartMappingSliderBaseMaxChangeEventHandler): IHandle;
  97655. on(name: "min-change", eventHandler: SmartMappingSliderBaseMinChangeEventHandler): IHandle;
  97656. on(name: "segment-drag", eventHandler: SmartMappingSliderBaseSegmentDragEventHandler): IHandle;
  97657. on(name: "thumb-change", eventHandler: SmartMappingSliderBaseThumbChangeEventHandler): IHandle;
  97658. on(name: "thumb-drag", eventHandler: SmartMappingSliderBaseThumbDragEventHandler): IHandle;
  97659. }
  97660. /** @deprecated Import the SmartMappingSliderBase class instead. */
  97661. export type SmartMappingSliderBaseConstructor = typeof SmartMappingSliderBase;
  97662. interface SmartMappingSliderBaseProperties extends WidgetProperties {
  97663. /**
  97664. * The [Histogram](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html) associated with the data represented on the slider.
  97665. *
  97666. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#histogramConfig)
  97667. */
  97668. histogramConfig?: HistogramConfig;
  97669. /**
  97670. * A function used to format user inputs.
  97671. *
  97672. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#inputFormatFunction)
  97673. */
  97674. inputFormatFunction?: SmartMappingSliderBaseLabelFormatter;
  97675. /**
  97676. * Function used to parse slider inputs formatted by the [inputFormatFunction](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#inputFormatFunction).
  97677. *
  97678. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#inputParseFunction)
  97679. */
  97680. inputParseFunction?: InputParser;
  97681. /**
  97682. * A modified version of [Slider.labelFormatFunction](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Slider.html#labelFormatFunction), which is a custom function used to format labels on the thumbs, min, max, and average values.
  97683. *
  97684. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#labelFormatFunction)
  97685. */
  97686. labelFormatFunction?: SmartMappingSliderBaseLabelFormatter;
  97687. /**
  97688. * The maximum value or upper bound of the slider.
  97689. *
  97690. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#max)
  97691. */
  97692. max?: number;
  97693. /**
  97694. * The minimum value or lower bound of the slider.
  97695. *
  97696. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#min)
  97697. */
  97698. min?: number;
  97699. /**
  97700. * Defines how slider thumb values should be rounded.
  97701. *
  97702. * @default 4
  97703. *
  97704. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#precision)
  97705. */
  97706. precision?: number;
  97707. /**
  97708. * When `true`, all segments will sync together in updating thumb values when the user drags any segment.
  97709. *
  97710. * @default false
  97711. *
  97712. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#syncedSegmentsEnabled)
  97713. */
  97714. syncedSegmentsEnabled?: boolean;
  97715. /**
  97716. * The visible elements that are displayed within the widget.
  97717. *
  97718. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#visibleElements)
  97719. */
  97720. visibleElements?: SmartMappingSliderBaseVisibleElements;
  97721. /**
  97722. * Zooms the slider track to the bounds provided in this property.
  97723. *
  97724. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#zoomOptions)
  97725. */
  97726. zoomOptions?: SmartMappingSliderBaseZoomOptions;
  97727. }
  97728. /**
  97729. * Configuration options for defining the slider's [Histogram](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Histogram.html).
  97730. *
  97731. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#HistogramConfig)
  97732. */
  97733. export interface HistogramConfig {
  97734. /**
  97735. * Indicates the average value of the dataset.
  97736. *
  97737. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#HistogramConfig)
  97738. */
  97739. average?: number;
  97740. /**
  97741. * Function for styling bars representing histogram bins.
  97742. *
  97743. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#HistogramConfig)
  97744. */
  97745. barCreatedFunction?: BarCreatedFunction;
  97746. /**
  97747. * The bins of the histogram.
  97748. *
  97749. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#HistogramConfig)
  97750. */
  97751. bins?: Bin[];
  97752. /**
  97753. * When set, renders lines on the histogram that indicate important or meaningful values to the end user.
  97754. *
  97755. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#HistogramConfig)
  97756. */
  97757. dataLines?: HistogramConfigDataLines[];
  97758. /**
  97759. * Function that fires each time a data line is created.
  97760. *
  97761. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#HistogramConfig)
  97762. */
  97763. dataLineCreatedFunction?: DataLineCreatedFunction;
  97764. /**
  97765. * Indicates the standard deviation of the dataset.
  97766. *
  97767. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#HistogramConfig)
  97768. */
  97769. standardDeviation?: number;
  97770. /**
  97771. * Indicates the standard deviation of the dataset.
  97772. *
  97773. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#HistogramConfig)
  97774. */
  97775. standardDeviationCount?: number;
  97776. }
  97777. export type SmartMappingSliderBaseLabelFormatter = (
  97778. value: number,
  97779. type?: "average" | "min" | "max" | "value",
  97780. index?: number
  97781. ) => string;
  97782. export interface SmartMappingSliderBaseMaxChangeEvent {
  97783. oldValue: number;
  97784. type: "max-change";
  97785. value: number;
  97786. }
  97787. export interface SmartMappingSliderBaseMinChangeEvent {
  97788. oldValue: number;
  97789. type: "min-change";
  97790. value: number;
  97791. }
  97792. export interface SmartMappingSliderBaseSegmentDragEvent {
  97793. index: number;
  97794. state: "start" | "drag";
  97795. thumbIndices: number[];
  97796. type: "segment-drag";
  97797. }
  97798. export interface SmartMappingSliderBaseVisibleElements {
  97799. /**
  97800. * When `true`, displays interactive segments on the track that maintain the interval between two slider thumbs/handles.
  97801. *
  97802. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#visibleElements)
  97803. */
  97804. interactiveTrack?: boolean;
  97805. }
  97806. export interface SmartMappingSliderBaseZoomOptions {
  97807. /**
  97808. * The lower bound of the zoom.
  97809. *
  97810. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#zoomOptions)
  97811. */
  97812. min?: number;
  97813. /**
  97814. * The upper bound of the zoom.
  97815. *
  97816. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#zoomOptions)
  97817. */
  97818. max?: number;
  97819. }
  97820. export interface SmartMappingSliderBaseThumbChangeEvent {
  97821. index: number;
  97822. oldValue: number;
  97823. type: "thumb-change";
  97824. value: number;
  97825. }
  97826. export interface SmartMappingSliderBaseThumbDragEvent {
  97827. index: number;
  97828. state: "start" | "drag";
  97829. type: "thumb-drag";
  97830. value: number;
  97831. }
  97832. export interface HistogramConfigDataLines {
  97833. /**
  97834. * The value on the data axis of the histogram where a line will be rendered.
  97835. *
  97836. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#HistogramConfig)
  97837. */
  97838. value?: number;
  97839. /**
  97840. * The label associated with the line.
  97841. *
  97842. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderBase.html#HistogramConfig)
  97843. */
  97844. label?: string | number;
  97845. }
  97846. export class SmartMappingSliderViewModel extends SliderViewModel {
  97847. /**
  97848. * Enables zooming on the slider.
  97849. *
  97850. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderViewModel.html#zoomingEnabled)
  97851. */
  97852. zoomingEnabled: boolean;
  97853. /**
  97854. * Zooms the slider track to the bounds provided in this property.
  97855. *
  97856. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderViewModel.html#zoomOptions)
  97857. */
  97858. zoomOptions: SmartMappingSliderViewModelZoomOptions;
  97859. /**
  97860. * Provides the shared base logic for the smart mapping slider view models.
  97861. *
  97862. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderViewModel.html)
  97863. */
  97864. constructor(properties?: SmartMappingSliderViewModelProperties);
  97865. /**
  97866. * Gets the [max](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderViewModel.html#max) value of the slider.
  97867. *
  97868. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderViewModel.html#getUnzoomedMax)
  97869. */
  97870. getUnzoomedMax(): void;
  97871. /**
  97872. * Gets the [min](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderViewModel.html#min) value of the slider.
  97873. *
  97874. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderViewModel.html#getUnzoomedMin)
  97875. */
  97876. getUnzoomedMin(): void;
  97877. }
  97878. /** @deprecated Import the SmartMappingSliderViewModel class instead. */
  97879. export type SmartMappingSliderViewModelConstructor = typeof SmartMappingSliderViewModel;
  97880. interface SmartMappingSliderViewModelProperties extends SliderViewModelProperties {
  97881. /**
  97882. * Enables zooming on the slider.
  97883. *
  97884. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderViewModel.html#zoomingEnabled)
  97885. */
  97886. zoomingEnabled?: boolean;
  97887. /**
  97888. * Zooms the slider track to the bounds provided in this property.
  97889. *
  97890. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderViewModel.html#zoomOptions)
  97891. */
  97892. zoomOptions?: SmartMappingSliderViewModelZoomOptions;
  97893. }
  97894. export interface SmartMappingSliderViewModelZoomOptions {
  97895. /**
  97896. * The lower bound of the zoom.
  97897. *
  97898. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderViewModel.html#zoomOptions)
  97899. */
  97900. min?: number;
  97901. /**
  97902. * The upper bound of the zoom.
  97903. *
  97904. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-SmartMappingSliderViewModel.html#zoomOptions)
  97905. */
  97906. max?: number;
  97907. }
  97908. /**
  97909. * Various utils for tying Smart Mapping renderers to the Smart Mapping slider widgets.
  97910. *
  97911. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-support-utils.html)
  97912. */
  97913. interface supportUtils {
  97914. /**
  97915. * Formats a UNIX timestamp to a basic date string.
  97916. *
  97917. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-support-utils.html#formatDateLabel)
  97918. */
  97919. formatDateLabel(value: number): string;
  97920. /**
  97921. * Formats a numeric value for display as a label based on the current locale.
  97922. *
  97923. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-support-utils.html#formatNumberLabel)
  97924. */
  97925. formatNumberLabel(value: number): string;
  97926. /**
  97927. * Computes and returns standard deviation values based on the given average and standard deviation.
  97928. *
  97929. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-smartMapping-support-utils.html#getDeviationValues)
  97930. */
  97931. getDeviationValues(standardDeviation: number, average: number, count: number): number[];
  97932. }
  97933. export const supportUtils: supportUtils;
  97934. export class DatePicker extends Widget {
  97935. /**
  97936. * Indicates whether the date gets updated when the user changes the month in the drop-down.
  97937. *
  97938. * @default false
  97939. *
  97940. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-DatePicker.html#commitOnMonthChange)
  97941. */
  97942. commitOnMonthChange: boolean;
  97943. /**
  97944. * The input value for the widget.
  97945. *
  97946. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-DatePicker.html#value)
  97947. */
  97948. value: Date;
  97949. /**
  97950. * The view model for this widget.
  97951. *
  97952. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-DatePicker.html#viewModel)
  97953. */
  97954. viewModel: DatePickerViewModel;
  97955. /**
  97956. * The `DatePicker` class provides functionality to easily choose an input date.
  97957. *
  97958. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-DatePicker.html)
  97959. */
  97960. constructor(properties?: DatePickerProperties);
  97961. }
  97962. /** @deprecated Import the DatePicker class instead. */
  97963. export type DatePickerConstructor = typeof DatePicker;
  97964. interface DatePickerProperties extends WidgetProperties {
  97965. /**
  97966. * Indicates whether the date gets updated when the user changes the month in the drop-down.
  97967. *
  97968. * @default false
  97969. *
  97970. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-DatePicker.html#commitOnMonthChange)
  97971. */
  97972. commitOnMonthChange?: boolean;
  97973. /**
  97974. * The input value for the widget.
  97975. *
  97976. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-DatePicker.html#value)
  97977. */
  97978. value?: DateProperties;
  97979. /**
  97980. * The view model for this widget.
  97981. *
  97982. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-DatePicker.html#viewModel)
  97983. */
  97984. viewModel?: DatePickerViewModelProperties;
  97985. }
  97986. export interface DatePickerViewModel extends Accessor, DateTimeElementViewModel {
  97987. }
  97988. export class DatePickerViewModel {
  97989. /**
  97990. * Provides the logic for the [DatePicker](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-DatePicker.html) widget.
  97991. *
  97992. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-DatePickerViewModel.html)
  97993. */
  97994. constructor(properties?: DatePickerViewModelProperties);
  97995. }
  97996. /** @deprecated Import the DatePickerViewModel class instead. */
  97997. export type DatePickerViewModelConstructor = typeof DatePickerViewModel;
  97998. interface DatePickerViewModelProperties extends DateTimeElementViewModelProperties {
  97999. }
  98000. export class DateTimeElementViewModel {
  98001. /**
  98002. * The current state of the widget.
  98003. *
  98004. * @default ready
  98005. *
  98006. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-DateTimeElementViewModel.html#state)
  98007. */
  98008. state: "ready";
  98009. /**
  98010. * The selected date.
  98011. *
  98012. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-DateTimeElementViewModel.html#value)
  98013. */
  98014. value: Date;
  98015. }
  98016. interface DateTimeElementViewModelProperties {
  98017. /**
  98018. * The current state of the widget.
  98019. *
  98020. * @default ready
  98021. *
  98022. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-DateTimeElementViewModel.html#state)
  98023. */
  98024. state?: "ready";
  98025. /**
  98026. * The selected date.
  98027. *
  98028. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-DateTimeElementViewModel.html#value)
  98029. */
  98030. value?: DateProperties;
  98031. }
  98032. export class GeolocationPositioning {
  98033. /**
  98034. * An object used for setting optional position parameters.
  98035. *
  98036. * @default null
  98037. *
  98038. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-GeolocationPositioning.html#geolocationOptions)
  98039. */
  98040. geolocationOptions: any;
  98041. /**
  98042. * Indicates whether to navigate the view to the position and scale of the geolocated result.
  98043. *
  98044. * @default true
  98045. *
  98046. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-GeolocationPositioning.html#goToLocationEnabled)
  98047. */
  98048. goToLocationEnabled: boolean;
  98049. /**
  98050. * The graphic used to show the user's location on the map.
  98051. *
  98052. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-GeolocationPositioning.html#graphic)
  98053. */
  98054. graphic: Graphic;
  98055. /**
  98056. * Indicates the scale to set on the view when navigating to the position of the geolocated result, after a location is returned from the [track](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-GeolocationPositioning.html#event-track) event.
  98057. *
  98058. * @default null
  98059. *
  98060. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-GeolocationPositioning.html#scale)
  98061. */
  98062. scale: number;
  98063. /**
  98064. * The view associated with the widget.
  98065. *
  98066. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-GeolocationPositioning.html#view)
  98067. */
  98068. view: MapView | SceneView;
  98069. }
  98070. interface GeolocationPositioningProperties {
  98071. /**
  98072. * An object used for setting optional position parameters.
  98073. *
  98074. * @default null
  98075. *
  98076. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-GeolocationPositioning.html#geolocationOptions)
  98077. */
  98078. geolocationOptions?: any;
  98079. /**
  98080. * Indicates whether to navigate the view to the position and scale of the geolocated result.
  98081. *
  98082. * @default true
  98083. *
  98084. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-GeolocationPositioning.html#goToLocationEnabled)
  98085. */
  98086. goToLocationEnabled?: boolean;
  98087. /**
  98088. * The graphic used to show the user's location on the map.
  98089. *
  98090. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-GeolocationPositioning.html#graphic)
  98091. */
  98092. graphic?: GraphicProperties;
  98093. /**
  98094. * Indicates the scale to set on the view when navigating to the position of the geolocated result, after a location is returned from the [track](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-GeolocationPositioning.html#event-track) event.
  98095. *
  98096. * @default null
  98097. *
  98098. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-GeolocationPositioning.html#scale)
  98099. */
  98100. scale?: number;
  98101. /**
  98102. * The view associated with the widget.
  98103. *
  98104. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-GeolocationPositioning.html#view)
  98105. */
  98106. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  98107. }
  98108. export class GoTo {
  98109. /**
  98110. * This function provides the ability to override either the [MapView goTo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#goTo) or [SceneView goTo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#goTo) methods.
  98111. *
  98112. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-GoTo.html#goToOverride)
  98113. */
  98114. goToOverride: GoToOverride;
  98115. }
  98116. interface GoToProperties {
  98117. /**
  98118. * This function provides the ability to override either the [MapView goTo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#goTo) or [SceneView goTo()](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#goTo) methods.
  98119. *
  98120. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-GoTo.html#goToOverride)
  98121. */
  98122. goToOverride?: GoToOverride;
  98123. }
  98124. export class SnappingControls extends Widget {
  98125. /**
  98126. * The [SnappingOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-SnappingOptions.html) for sketching.
  98127. *
  98128. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SnappingControls.html#snappingOptions)
  98129. */
  98130. snappingOptions: SnappingOptions;
  98131. /**
  98132. * The view from which the widget will operate.
  98133. *
  98134. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SnappingControls.html#view)
  98135. */
  98136. view: MapView | SceneView;
  98137. /**
  98138. * The view model for the SnappingControls widget.
  98139. *
  98140. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SnappingControls.html#viewModel)
  98141. */
  98142. viewModel: SnappingControlsViewModel;
  98143. /**
  98144. * The visible elements that are displayed within the widget.
  98145. *
  98146. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SnappingControls.html#visibleElements)
  98147. */
  98148. visibleElements: SnappingControlsVisibleElements;
  98149. /**
  98150. * The SnappingControls widget provides a user interface to use alongside the [SnappingOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-SnappingOptions.html) class.
  98151. *
  98152. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SnappingControls.html)
  98153. */
  98154. constructor(properties?: SnappingControlsProperties);
  98155. }
  98156. /** @deprecated Import the SnappingControls class instead. */
  98157. export type SnappingControlsConstructor = typeof SnappingControls;
  98158. interface SnappingControlsProperties extends WidgetProperties {
  98159. /**
  98160. * The [SnappingOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-SnappingOptions.html) for sketching.
  98161. *
  98162. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SnappingControls.html#snappingOptions)
  98163. */
  98164. snappingOptions?: SnappingOptionsProperties;
  98165. /**
  98166. * The view from which the widget will operate.
  98167. *
  98168. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SnappingControls.html#view)
  98169. */
  98170. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  98171. /**
  98172. * The view model for the SnappingControls widget.
  98173. *
  98174. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SnappingControls.html#viewModel)
  98175. */
  98176. viewModel?: SnappingControlsViewModelProperties;
  98177. /**
  98178. * The visible elements that are displayed within the widget.
  98179. *
  98180. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SnappingControls.html#visibleElements)
  98181. */
  98182. visibleElements?: SnappingControlsVisibleElements;
  98183. }
  98184. export class SnappingControlsViewModel extends Accessor {
  98185. /**
  98186. * The [SnappingOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-SnappingOptions.html) for sketching.
  98187. *
  98188. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SnappingControls-SnappingControlsViewModel.html#snappingOptions)
  98189. */
  98190. snappingOptions: SnappingOptions;
  98191. /**
  98192. * The current state of the view model.
  98193. *
  98194. * @default disabled
  98195. *
  98196. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SnappingControls-SnappingControlsViewModel.html#state)
  98197. */
  98198. readonly state: "ready" | "disabled";
  98199. /**
  98200. * The view associated with the SnappingControls widget instance.
  98201. *
  98202. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SnappingControls-SnappingControlsViewModel.html#view)
  98203. */
  98204. view: MapView | SceneView;
  98205. /**
  98206. * Provides the logic for the [SnappingControls](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SnappingControls.html) widget.
  98207. *
  98208. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SnappingControls-SnappingControlsViewModel.html)
  98209. */
  98210. constructor(properties?: SnappingControlsViewModelProperties);
  98211. }
  98212. /** @deprecated Import the SnappingControlsViewModel class instead. */
  98213. export type SnappingControlsViewModelConstructor = typeof SnappingControlsViewModel;
  98214. interface SnappingControlsViewModelProperties {
  98215. /**
  98216. * The [SnappingOptions](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-SnappingOptions.html) for sketching.
  98217. *
  98218. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SnappingControls-SnappingControlsViewModel.html#snappingOptions)
  98219. */
  98220. snappingOptions?: SnappingOptionsProperties;
  98221. /**
  98222. * The view associated with the SnappingControls widget instance.
  98223. *
  98224. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SnappingControls-SnappingControlsViewModel.html#view)
  98225. */
  98226. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  98227. }
  98228. /**
  98229. * The visible elements that are displayed within the widget.
  98230. *
  98231. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SnappingControls.html#VisibleElements)
  98232. */
  98233. export interface SnappingControlsVisibleElements {
  98234. /**
  98235. * Indicates whether to display the header.
  98236. *
  98237. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SnappingControls.html#VisibleElements)
  98238. */
  98239. header?: boolean;
  98240. /**
  98241. * Indicates whether to display the `enabledToggle` (Enable snapping).
  98242. *
  98243. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SnappingControls.html#VisibleElements)
  98244. */
  98245. enabledToggle?: boolean;
  98246. /**
  98247. * Indicates whether to display the `selfEnabledToggle` (Geometry guides).
  98248. *
  98249. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SnappingControls.html#VisibleElements)
  98250. */
  98251. selfEnabledToggle?: boolean;
  98252. /**
  98253. * Indicates whether to display the `featureEnabledToggle` (Feature to feature).
  98254. *
  98255. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SnappingControls.html#VisibleElements)
  98256. */
  98257. featureEnabledToggle?: boolean;
  98258. /**
  98259. * Indicates whether to display the [FeatureSnappingLayerSource](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-interactive-snapping-FeatureSnappingLayerSource.html) layerList.
  98260. *
  98261. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-SnappingControls.html#VisibleElements)
  98262. */
  98263. layerList?: boolean;
  98264. }
  98265. export class TimePicker extends Widget {
  98266. /**
  98267. * The input value for the widget.
  98268. *
  98269. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-TimePicker.html#value)
  98270. */
  98271. value: Date;
  98272. /**
  98273. * The view model for this widget.
  98274. *
  98275. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-TimePicker.html#viewModel)
  98276. */
  98277. viewModel: TimePickerViewModel;
  98278. /**
  98279. * The `TimePicker` class provides functionality to easily choose an input date.
  98280. *
  98281. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-TimePicker.html)
  98282. */
  98283. constructor(properties?: TimePickerProperties);
  98284. }
  98285. /** @deprecated Import the TimePicker class instead. */
  98286. export type TimePickerConstructor = typeof TimePicker;
  98287. interface TimePickerProperties extends WidgetProperties {
  98288. /**
  98289. * The input value for the widget.
  98290. *
  98291. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-TimePicker.html#value)
  98292. */
  98293. value?: DateProperties;
  98294. /**
  98295. * The view model for this widget.
  98296. *
  98297. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-TimePicker.html#viewModel)
  98298. */
  98299. viewModel?: TimePickerViewModelProperties;
  98300. }
  98301. export interface TimePickerViewModel extends Accessor, DateTimeElementViewModel {
  98302. }
  98303. export class TimePickerViewModel {
  98304. /**
  98305. * Provides the logic for the [TimePicker](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-TimePicker.html) widget.
  98306. *
  98307. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-TimePickerViewModel.html)
  98308. */
  98309. constructor(properties?: TimePickerViewModelProperties);
  98310. }
  98311. /** @deprecated Import the TimePickerViewModel class instead. */
  98312. export type TimePickerViewModelConstructor = typeof TimePickerViewModel;
  98313. interface TimePickerViewModelProperties extends DateTimeElementViewModelProperties {
  98314. }
  98315. namespace widget {
  98316. /**
  98317. * This convenience decorator is used to help simplify accessibility within the widget keyboard events.
  98318. *
  98319. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-widget.html#accessibleHandler)
  98320. */
  98321. function accessibleHandler(): Function;
  98322. /**
  98323. * Utility method used for creating CSS animation/transition functions.
  98324. *
  98325. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-widget.html#cssTransition)
  98326. */
  98327. function cssTransition(type: "enter" | "exit", className: string): Function;
  98328. /**
  98329. * Utility method used to determine if a pressed key should activate button behavior.
  98330. *
  98331. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-widget.html#isActivationKey)
  98332. */
  98333. function isActivationKey(key: string): boolean;
  98334. /**
  98335. * Utility method used to determine if the directionality of the text of the document is right-to-left.
  98336. *
  98337. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-widget.html#isRTL)
  98338. */
  98339. function isRTL(): boolean;
  98340. /**
  98341. * This convenience decorator is used to help simplify localization of the widget.
  98342. *
  98343. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-widget.html#messageBundle)
  98344. */
  98345. function messageBundle(bundleId?: string): Function;
  98346. /**
  98347. * This convenience method is used to assign an [HTMLElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement) DOM node reference to a variable.
  98348. *
  98349. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-widget.html#storeNode)
  98350. */
  98351. function storeNode(node: HTMLElement): void;
  98352. /**
  98353. * This convenience decorator helps dispatch view model events on the widget instance.
  98354. *
  98355. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-widget.html#vmEvent)
  98356. */
  98357. function vmEvent(eventNames: string | string[]): Function;
  98358. namespace tsx {
  98359. /**
  98360. * This convenience method is used to render the JSX in the [widget.render()](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Widget.html#render) method.
  98361. *
  98362. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-widget.html#tsx)
  98363. */
  98364. function tsx(selector: string, properties?: any, children?: any): any;
  98365. namespace JSX {
  98366. interface IntrinsicElements {
  98367. [elementName: string]: any;
  98368. }
  98369. interface Element {
  98370. }
  98371. }
  98372. }
  98373. }
  98374. export type GoToOverride = (view: MapView | SceneView, goToParameters: any) => void;
  98375. export class Swipe extends Widget {
  98376. /**
  98377. * The direction the Swipe widget moves across the view.
  98378. *
  98379. * @default "horizontal"
  98380. *
  98381. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html#direction)
  98382. */
  98383. direction: "horizontal" | "vertical";
  98384. /**
  98385. * When `true`, sets the widget to a disabled state so the user cannot interact with it.
  98386. *
  98387. * @default false
  98388. *
  98389. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html#disabled)
  98390. */
  98391. disabled: boolean;
  98392. /**
  98393. * The text that shows in a tooltip when hovering over the handle of the Swipe widget.
  98394. *
  98395. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html#dragLabel)
  98396. */
  98397. dragLabel: string;
  98398. /**
  98399. * The widget's default CSS icon class.
  98400. *
  98401. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html#iconClass)
  98402. */
  98403. iconClass: string;
  98404. /**
  98405. * A collection of [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html)s that will show on the left or top side of the Swipe widget.
  98406. *
  98407. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html#leadingLayers)
  98408. */
  98409. leadingLayers: Collection<Layer>;
  98410. /**
  98411. * The position of the Swipe widget.
  98412. *
  98413. * @default 25
  98414. *
  98415. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html#position)
  98416. */
  98417. position: number;
  98418. /**
  98419. * A collection of [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html)s that will show on the right or bottom side of the Swipe widget.
  98420. *
  98421. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html#trailingLayers)
  98422. */
  98423. trailingLayers: Collection<Layer>;
  98424. /**
  98425. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  98426. *
  98427. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html#view)
  98428. */
  98429. view: MapView;
  98430. /**
  98431. * The view model for this widget.
  98432. *
  98433. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html#viewModel)
  98434. */
  98435. viewModel: SwipeViewModel;
  98436. /**
  98437. * The visible elements that are displayed within the widget.
  98438. *
  98439. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html#visibleElements)
  98440. */
  98441. visibleElements: widgetsSwipeVisibleElements;
  98442. /**
  98443. * The Swipe widget provides a tool to show a portion of a layer or layers on top of a map.
  98444. *
  98445. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html)
  98446. */
  98447. constructor(properties?: SwipeProperties);
  98448. }
  98449. /** @deprecated Import the Swipe class instead. */
  98450. export type SwipeConstructor = typeof Swipe;
  98451. interface SwipeProperties extends WidgetProperties {
  98452. /**
  98453. * The direction the Swipe widget moves across the view.
  98454. *
  98455. * @default "horizontal"
  98456. *
  98457. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html#direction)
  98458. */
  98459. direction?: "horizontal" | "vertical";
  98460. /**
  98461. * When `true`, sets the widget to a disabled state so the user cannot interact with it.
  98462. *
  98463. * @default false
  98464. *
  98465. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html#disabled)
  98466. */
  98467. disabled?: boolean;
  98468. /**
  98469. * The text that shows in a tooltip when hovering over the handle of the Swipe widget.
  98470. *
  98471. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html#dragLabel)
  98472. */
  98473. dragLabel?: string;
  98474. /**
  98475. * The widget's default CSS icon class.
  98476. *
  98477. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html#iconClass)
  98478. */
  98479. iconClass?: string;
  98480. /**
  98481. * A collection of [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html)s that will show on the left or top side of the Swipe widget.
  98482. *
  98483. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html#leadingLayers)
  98484. */
  98485. leadingLayers?: CollectionProperties<LayerProperties>;
  98486. /**
  98487. * The position of the Swipe widget.
  98488. *
  98489. * @default 25
  98490. *
  98491. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html#position)
  98492. */
  98493. position?: number;
  98494. /**
  98495. * A collection of [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html)s that will show on the right or bottom side of the Swipe widget.
  98496. *
  98497. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html#trailingLayers)
  98498. */
  98499. trailingLayers?: CollectionProperties<LayerProperties>;
  98500. /**
  98501. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  98502. *
  98503. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html#view)
  98504. */
  98505. view?: MapViewProperties;
  98506. /**
  98507. * The view model for this widget.
  98508. *
  98509. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html#viewModel)
  98510. */
  98511. viewModel?: SwipeViewModelProperties;
  98512. /**
  98513. * The visible elements that are displayed within the widget.
  98514. *
  98515. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html#visibleElements)
  98516. */
  98517. visibleElements?: widgetsSwipeVisibleElements;
  98518. }
  98519. export class SwipeViewModel extends Accessor {
  98520. /**
  98521. * The direction the Swipe widget moves across the view.
  98522. *
  98523. * @default "horizontal"
  98524. *
  98525. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe-SwipeViewModel.html#direction)
  98526. */
  98527. direction: "horizontal" | "vertical";
  98528. /**
  98529. * A collection of [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html)s that will show on the left or top side of Swipe widget.
  98530. *
  98531. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe-SwipeViewModel.html#leadingLayers)
  98532. */
  98533. leadingLayers: Collection<Layer>;
  98534. /**
  98535. * The position of the Swipe widget.
  98536. *
  98537. * @default 25
  98538. *
  98539. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe-SwipeViewModel.html#position)
  98540. */
  98541. position: number;
  98542. /**
  98543. * The current state of the widget.
  98544. *
  98545. * @default disabled
  98546. *
  98547. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe-SwipeViewModel.html#state)
  98548. */
  98549. readonly state: "disabled" | "ready";
  98550. /**
  98551. * A collection of [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html)s that will show on the right or bottom side of Swipe widget.
  98552. *
  98553. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe-SwipeViewModel.html#trailingLayers)
  98554. */
  98555. trailingLayers: Collection<Layer>;
  98556. /**
  98557. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  98558. *
  98559. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe-SwipeViewModel.html#view)
  98560. */
  98561. view: MapView;
  98562. /**
  98563. * Provides the logic for the [Swipe](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html) widget.
  98564. *
  98565. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe-SwipeViewModel.html)
  98566. */
  98567. constructor(properties?: SwipeViewModelProperties);
  98568. }
  98569. /** @deprecated Import the SwipeViewModel class instead. */
  98570. export type SwipeViewModelConstructor = typeof SwipeViewModel;
  98571. interface SwipeViewModelProperties {
  98572. /**
  98573. * The direction the Swipe widget moves across the view.
  98574. *
  98575. * @default "horizontal"
  98576. *
  98577. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe-SwipeViewModel.html#direction)
  98578. */
  98579. direction?: "horizontal" | "vertical";
  98580. /**
  98581. * A collection of [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html)s that will show on the left or top side of Swipe widget.
  98582. *
  98583. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe-SwipeViewModel.html#leadingLayers)
  98584. */
  98585. leadingLayers?: CollectionProperties<LayerProperties>;
  98586. /**
  98587. * The position of the Swipe widget.
  98588. *
  98589. * @default 25
  98590. *
  98591. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe-SwipeViewModel.html#position)
  98592. */
  98593. position?: number;
  98594. /**
  98595. * A collection of [Layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-Layer.html)s that will show on the right or bottom side of Swipe widget.
  98596. *
  98597. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe-SwipeViewModel.html#trailingLayers)
  98598. */
  98599. trailingLayers?: CollectionProperties<LayerProperties>;
  98600. /**
  98601. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html).
  98602. *
  98603. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe-SwipeViewModel.html#view)
  98604. */
  98605. view?: MapViewProperties;
  98606. }
  98607. export interface widgetsSwipeVisibleElements extends SwipeVisibleElements {
  98608. /**
  98609. * Indicates whether the handle from which you drag the widget is visible.
  98610. *
  98611. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html#visibleElements)
  98612. */
  98613. handle: boolean;
  98614. /**
  98615. * Indicates whether the divider between the leading and trailing layers is visible.
  98616. *
  98617. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html#visibleElements)
  98618. */
  98619. divider: boolean;
  98620. }
  98621. /**
  98622. * The visible elements that are displayed within the widget.
  98623. *
  98624. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html#VisibleElements)
  98625. */
  98626. export interface SwipeVisibleElements {
  98627. /**
  98628. * Indicates whether the handle from which you drag the widget is visible.
  98629. *
  98630. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html#VisibleElements)
  98631. */
  98632. handle: boolean;
  98633. /**
  98634. * Indicates whether the divider between the leading and trailing layers is visible.
  98635. *
  98636. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Swipe.html#VisibleElements)
  98637. */
  98638. divider: boolean;
  98639. }
  98640. export class TableList extends Widget {
  98641. /**
  98642. * The widget's default CSS icon class.
  98643. *
  98644. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#iconClass)
  98645. */
  98646. iconClass: string;
  98647. /**
  98648. * Specifies a function that accesses each [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html).
  98649. *
  98650. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#listItemCreatedFunction)
  98651. */
  98652. listItemCreatedFunction: TableListListItemCreatedHandler;
  98653. /**
  98654. * A reference to a [map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) containing the tables.
  98655. *
  98656. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#map)
  98657. */
  98658. map: Map | WebMap;
  98659. /**
  98660. * Indicates whether more than one [list item](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html) can be selected by a user at a single time.
  98661. *
  98662. * @default false
  98663. *
  98664. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#multipleSelectionEnabled)
  98665. */
  98666. multipleSelectionEnabled: boolean;
  98667. /**
  98668. * A collection of selected [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html)s representing table list items selected by the user.
  98669. *
  98670. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#selectedItems)
  98671. */
  98672. selectedItems: Collection<TableListListItem>;
  98673. /**
  98674. * Indicates whether [list items](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html) may be selected by the user.
  98675. *
  98676. * @default false
  98677. *
  98678. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#selectionEnabled)
  98679. */
  98680. selectionEnabled: boolean;
  98681. /**
  98682. * The collection of table [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html)s displayed within the widget.
  98683. *
  98684. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#tableItems)
  98685. */
  98686. readonly tableItems: Collection<TableListListItem>;
  98687. /**
  98688. * The view model for this widget.
  98689. *
  98690. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#viewModel)
  98691. */
  98692. viewModel: TableListViewModel;
  98693. /**
  98694. * The visible elements that are displayed within the widget.
  98695. *
  98696. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#visibleElements)
  98697. */
  98698. visibleElements: TableListVisibleElements;
  98699. /**
  98700. * The TableList widget provides a way to display a list of tables associated with a [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html).
  98701. *
  98702. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html)
  98703. */
  98704. constructor(properties?: TableListProperties);
  98705. /**
  98706. * Triggers the [trigger-action](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#event-trigger-action) event and executes the given [action](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionButton.html) or [action toggle](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionToggle.html).
  98707. *
  98708. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#triggerAction)
  98709. */
  98710. triggerAction(action: ActionButton | ActionToggle, item: TableListListItem): void;
  98711. on(name: "trigger-action", eventHandler: TableListTriggerActionEventHandler): IHandle;
  98712. }
  98713. /** @deprecated Import the TableList class instead. */
  98714. export type TableListConstructor = typeof TableList;
  98715. interface TableListProperties extends WidgetProperties {
  98716. /**
  98717. * The widget's default CSS icon class.
  98718. *
  98719. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#iconClass)
  98720. */
  98721. iconClass?: string;
  98722. /**
  98723. * Specifies a function that accesses each [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html).
  98724. *
  98725. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#listItemCreatedFunction)
  98726. */
  98727. listItemCreatedFunction?: TableListListItemCreatedHandler;
  98728. /**
  98729. * A reference to a [map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) containing the tables.
  98730. *
  98731. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#map)
  98732. */
  98733. map?: MapProperties | WebMapProperties;
  98734. /**
  98735. * Indicates whether more than one [list item](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html) can be selected by a user at a single time.
  98736. *
  98737. * @default false
  98738. *
  98739. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#multipleSelectionEnabled)
  98740. */
  98741. multipleSelectionEnabled?: boolean;
  98742. /**
  98743. * A collection of selected [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html)s representing table list items selected by the user.
  98744. *
  98745. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#selectedItems)
  98746. */
  98747. selectedItems?: CollectionProperties<TableListListItem>;
  98748. /**
  98749. * Indicates whether [list items](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html) may be selected by the user.
  98750. *
  98751. * @default false
  98752. *
  98753. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#selectionEnabled)
  98754. */
  98755. selectionEnabled?: boolean;
  98756. /**
  98757. * The view model for this widget.
  98758. *
  98759. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#viewModel)
  98760. */
  98761. viewModel?: TableListViewModel;
  98762. /**
  98763. * The visible elements that are displayed within the widget.
  98764. *
  98765. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#visibleElements)
  98766. */
  98767. visibleElements?: TableListVisibleElements;
  98768. }
  98769. export class TableListListItem extends Identifiable {
  98770. /**
  98771. * Indicates whether the actions panel is open in the TableList.
  98772. *
  98773. * @default false
  98774. *
  98775. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html#actionsOpen)
  98776. */
  98777. actionsOpen: boolean;
  98778. /**
  98779. * A nested 2-dimensional collection of actions that could be triggered on the item.
  98780. *
  98781. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html#actionsSections)
  98782. */
  98783. actionsSections: Collection<Collection<ActionButton | ActionToggle>>;
  98784. /**
  98785. * The Error object returned if an error occurred.
  98786. *
  98787. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html#error)
  98788. */
  98789. readonly error: Error;
  98790. /**
  98791. * When `true`, hides the layer from the TableList instance.
  98792. *
  98793. * @default false
  98794. *
  98795. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html#hidden)
  98796. */
  98797. hidden: boolean;
  98798. /**
  98799. * The layer associated with the triggered action.
  98800. *
  98801. * @default null
  98802. *
  98803. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html#layer)
  98804. */
  98805. layer: Layer;
  98806. /**
  98807. * Value is `true` when the [layer](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html#layer) is being published.
  98808. *
  98809. * @default false
  98810. *
  98811. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html#publishing)
  98812. */
  98813. readonly publishing: boolean;
  98814. /**
  98815. * The title of the table.
  98816. *
  98817. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html#title)
  98818. */
  98819. title: string;
  98820. constructor();
  98821. /**
  98822. * Creates a deep clone of this object.
  98823. *
  98824. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html#clone)
  98825. */
  98826. clone(): TableListListItem;
  98827. }
  98828. /** @deprecated Import the TableListListItem class instead. */
  98829. export type TableListListItemConstructor = typeof TableListListItem;
  98830. /**
  98831. * Provides the logic for the [TableList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html) widget.
  98832. *
  98833. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-TableListViewModel.html)
  98834. */
  98835. interface TableListViewModel {
  98836. /**
  98837. * Whether to provide an indication if a layer is being published in the [TableList](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html).
  98838. *
  98839. * @default false
  98840. *
  98841. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-TableListViewModel.html#checkPublishStatusEnabled)
  98842. */
  98843. checkPublishStatusEnabled: boolean;
  98844. /**
  98845. * Specifies a function that accesses each [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html).
  98846. *
  98847. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-TableListViewModel.html#listItemCreatedFunction)
  98848. */
  98849. listItemCreatedFunction: TableListViewModelListItemCreatedHandler;
  98850. /**
  98851. * A reference to the [map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html) containing the tables.
  98852. *
  98853. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-TableListViewModel.html#map)
  98854. */
  98855. map: Map | WebMap;
  98856. /**
  98857. * The view model's state.
  98858. *
  98859. * @default disabled
  98860. *
  98861. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-TableListViewModel.html#state)
  98862. */
  98863. readonly state: "loading" | "ready" | "disabled";
  98864. /**
  98865. * The collection of table [ListItem](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-ListItem.html)s displayed within the widget.
  98866. *
  98867. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList-TableListViewModel.html#tableItems)
  98868. */
  98869. readonly tableItems: Collection<TableListListItem>;
  98870. }
  98871. export const TableListViewModel: TableListViewModel;
  98872. export type TableListViewModelListItemCreatedHandler = (event: any) => void;
  98873. export interface TableListViewModelTriggerActionEvent {
  98874. action: ActionButton | ActionToggle;
  98875. item: TableListListItem;
  98876. }
  98877. export type TableListListItemCreatedHandler = (event: any) => void;
  98878. export interface TableListTriggerActionEvent {
  98879. action: ActionButton | ActionToggle;
  98880. item: TableListListItem;
  98881. }
  98882. /**
  98883. * The visible elements that are displayed within the widget.
  98884. *
  98885. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#VisibleElements)
  98886. */
  98887. export interface TableListVisibleElements {
  98888. /**
  98889. * Indicates whether the status indicators will be displayed.
  98890. *
  98891. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#VisibleElements)
  98892. */
  98893. statusIndicators?: boolean;
  98894. /**
  98895. * Indicates whether layer load errors will be displayed.
  98896. *
  98897. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TableList.html#VisibleElements)
  98898. */
  98899. errors?: boolean;
  98900. }
  98901. export class TimeSlider extends Widget {
  98902. /**
  98903. * Defines actions that will appear in a menu when the user clicks the ellipsis button ![timeSlider-actions-menu](https://developers.arcgis.com/javascript/latest/assets/img/apiref/widgets/timeslider/ellipsis.png) in the widget.
  98904. *
  98905. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#actions)
  98906. */
  98907. actions: Collection<Action>;
  98908. /**
  98909. * When `true`, sets the widget to a disabled state so the user cannot interact with it.
  98910. *
  98911. * @default false
  98912. *
  98913. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#disabled)
  98914. */
  98915. disabled: boolean;
  98916. /**
  98917. * Lists the specific locations on the timeline where handle(s) will snap to when manipulated.
  98918. *
  98919. * @default null
  98920. *
  98921. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#effectiveStops)
  98922. */
  98923. readonly effectiveStops: Date[];
  98924. /**
  98925. * The temporal extent of the entire slider.
  98926. *
  98927. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#fullTimeExtent)
  98928. */
  98929. fullTimeExtent: TimeExtent;
  98930. /**
  98931. * The widget's default CSS icon class.
  98932. *
  98933. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#iconClass)
  98934. */
  98935. readonly iconClass: string;
  98936. /**
  98937. * A function used to specify custom formatting and styling of the min, max, and extent labels of the TimeSlider.
  98938. *
  98939. * @default null
  98940. *
  98941. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#labelFormatFunction)
  98942. */
  98943. labelFormatFunction: DateLabelFormatter;
  98944. /**
  98945. * Determines the layout used by the TimeSlider widget.
  98946. *
  98947. * @default auto
  98948. *
  98949. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#layout)
  98950. */
  98951. layout: "auto" | "compact" | "wide";
  98952. /**
  98953. * When `true`, the time slider will play its animation in a loop.
  98954. *
  98955. * @default false
  98956. *
  98957. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#loop)
  98958. */
  98959. loop: boolean;
  98960. /**
  98961. * The time slider mode.
  98962. *
  98963. * @default "time-window"
  98964. *
  98965. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#mode)
  98966. */
  98967. mode: "instant" | "time-window" | "cumulative-from-start" | "cumulative-from-end";
  98968. /**
  98969. * The time (in milliseconds) between animation steps.
  98970. *
  98971. * @default 1000
  98972. *
  98973. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#playRate)
  98974. */
  98975. playRate: number;
  98976. /**
  98977. * Defines specific locations on the time slider where thumbs will snap to when manipulated.
  98978. *
  98979. * @default { count : 10 }
  98980. *
  98981. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#stops)
  98982. */
  98983. stops: StopsByDates | StopsByCount | StopsByInterval;
  98984. /**
  98985. * When set, overrides the default TimeSlider ticks labelling system.
  98986. *
  98987. * @default null
  98988. *
  98989. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#tickConfigs)
  98990. */
  98991. tickConfigs: TickConfig[];
  98992. /**
  98993. * The current time extent of the time slider.
  98994. *
  98995. * @default null
  98996. *
  98997. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#timeExtent)
  98998. */
  98999. timeExtent: TimeExtent;
  99000. /**
  99001. * Shows/hides time in the display.
  99002. *
  99003. * @default false
  99004. *
  99005. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#timeVisible)
  99006. */
  99007. timeVisible: boolean;
  99008. /**
  99009. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  99010. *
  99011. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#view)
  99012. */
  99013. view: MapView | SceneView;
  99014. /**
  99015. * The view model for this widget.
  99016. *
  99017. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#viewModel)
  99018. */
  99019. viewModel: TimeSliderViewModel;
  99020. /**
  99021. * The TimeSlider widget simplifies visualization of temporal data in your application.
  99022. *
  99023. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html)
  99024. */
  99025. constructor(properties?: TimeSliderProperties);
  99026. /**
  99027. * Incrementally moves the time extent forward one stop.
  99028. *
  99029. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#next)
  99030. */
  99031. next(): void;
  99032. /**
  99033. * Initiates the time slider's temporal playback.
  99034. *
  99035. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#play)
  99036. */
  99037. play(): void;
  99038. /**
  99039. * Incrementally moves the time extent back one stop.
  99040. *
  99041. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#previous)
  99042. */
  99043. previous(): void;
  99044. /**
  99045. * Stops the time slider's temporal playback.
  99046. *
  99047. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#stop)
  99048. */
  99049. stop(): void;
  99050. /**
  99051. * Updates the [time slider](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#TimeSlider) widget definition in the provided [WebMap](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html).
  99052. *
  99053. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#updateWebDocument)
  99054. */
  99055. updateWebDocument(webmap: WebMap): void;
  99056. on(name: "trigger-action", eventHandler: TimeSliderTriggerActionEventHandler): IHandle;
  99057. /**
  99058. * Extracts time slider settings from a [WebMap](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html) if the webmap contains a [time slider widget](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#TimeSlider) definition.
  99059. *
  99060. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#getPropertiesFromWebMap)
  99061. */
  99062. static getPropertiesFromWebMap(webMap: WebMap, signal?: AbortSignal): Promise<any>;
  99063. }
  99064. /** @deprecated Import the TimeSlider class instead. */
  99065. export type TimeSliderConstructor = typeof TimeSlider;
  99066. interface TimeSliderProperties extends WidgetProperties {
  99067. /**
  99068. * Defines actions that will appear in a menu when the user clicks the ellipsis button ![timeSlider-actions-menu](https://developers.arcgis.com/javascript/latest/assets/img/apiref/widgets/timeslider/ellipsis.png) in the widget.
  99069. *
  99070. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#actions)
  99071. */
  99072. actions?: CollectionProperties<Action>;
  99073. /**
  99074. * When `true`, sets the widget to a disabled state so the user cannot interact with it.
  99075. *
  99076. * @default false
  99077. *
  99078. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#disabled)
  99079. */
  99080. disabled?: boolean;
  99081. /**
  99082. * The temporal extent of the entire slider.
  99083. *
  99084. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#fullTimeExtent)
  99085. */
  99086. fullTimeExtent?: TimeExtentProperties;
  99087. /**
  99088. * A function used to specify custom formatting and styling of the min, max, and extent labels of the TimeSlider.
  99089. *
  99090. * @default null
  99091. *
  99092. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#labelFormatFunction)
  99093. */
  99094. labelFormatFunction?: DateLabelFormatter;
  99095. /**
  99096. * Determines the layout used by the TimeSlider widget.
  99097. *
  99098. * @default auto
  99099. *
  99100. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#layout)
  99101. */
  99102. layout?: "auto" | "compact" | "wide";
  99103. /**
  99104. * When `true`, the time slider will play its animation in a loop.
  99105. *
  99106. * @default false
  99107. *
  99108. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#loop)
  99109. */
  99110. loop?: boolean;
  99111. /**
  99112. * The time slider mode.
  99113. *
  99114. * @default "time-window"
  99115. *
  99116. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#mode)
  99117. */
  99118. mode?: "instant" | "time-window" | "cumulative-from-start" | "cumulative-from-end";
  99119. /**
  99120. * The time (in milliseconds) between animation steps.
  99121. *
  99122. * @default 1000
  99123. *
  99124. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#playRate)
  99125. */
  99126. playRate?: number;
  99127. /**
  99128. * Defines specific locations on the time slider where thumbs will snap to when manipulated.
  99129. *
  99130. * @default { count : 10 }
  99131. *
  99132. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#stops)
  99133. */
  99134. stops?: StopsByDates | StopsByCount | StopsByInterval;
  99135. /**
  99136. * When set, overrides the default TimeSlider ticks labelling system.
  99137. *
  99138. * @default null
  99139. *
  99140. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#tickConfigs)
  99141. */
  99142. tickConfigs?: TickConfig[];
  99143. /**
  99144. * The current time extent of the time slider.
  99145. *
  99146. * @default null
  99147. *
  99148. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#timeExtent)
  99149. */
  99150. timeExtent?: TimeExtentProperties;
  99151. /**
  99152. * Shows/hides time in the display.
  99153. *
  99154. * @default false
  99155. *
  99156. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#timeVisible)
  99157. */
  99158. timeVisible?: boolean;
  99159. /**
  99160. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  99161. *
  99162. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#view)
  99163. */
  99164. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  99165. /**
  99166. * The view model for this widget.
  99167. *
  99168. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#viewModel)
  99169. */
  99170. viewModel?: TimeSliderViewModelProperties;
  99171. }
  99172. export class TimeSliderViewModel extends Accessor {
  99173. /**
  99174. * Defines actions that will appear in a menu when the user clicks the ellipsis button ![timeSlider-actions-menu](https://developers.arcgis.com/javascript/latest/assets/img/apiref/widgets/timeslider/ellipsis.png) in the widget.
  99175. *
  99176. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#actions)
  99177. */
  99178. actions: Collection<Action>;
  99179. /**
  99180. * Defined specific locations on the timeline that the handles will snap to when manipulated.
  99181. *
  99182. * @default null
  99183. *
  99184. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#effectiveStops)
  99185. */
  99186. readonly effectiveStops: Date[];
  99187. /**
  99188. * The temporal extent of the entire slider.
  99189. *
  99190. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#fullTimeExtent)
  99191. */
  99192. fullTimeExtent: TimeExtent;
  99193. /**
  99194. * If animating, the time indicator(s) will restart if they reach the edge.
  99195. *
  99196. * @default false
  99197. *
  99198. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#loop)
  99199. */
  99200. loop: boolean;
  99201. /**
  99202. * The time slider mode.
  99203. *
  99204. * @default time-window
  99205. *
  99206. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#mode)
  99207. */
  99208. mode: "instant" | "time-window" | "cumulative-from-start" | "cumulative-from-end";
  99209. /**
  99210. * The time (in milliseconds) between animation steps.
  99211. *
  99212. * @default 1000
  99213. *
  99214. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#playRate)
  99215. */
  99216. playRate: number;
  99217. /**
  99218. * The view model's state.
  99219. *
  99220. * @default disabled
  99221. *
  99222. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#state)
  99223. */
  99224. readonly state: "disabled" | "ready" | "playing";
  99225. /**
  99226. * Defines specific locations on the time slider where thumbs will snap to when manipulated.
  99227. *
  99228. * @default { count : 10 }
  99229. *
  99230. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#stops)
  99231. */
  99232. stops: StopsByDates | StopsByCount | StopsByInterval;
  99233. /**
  99234. * The current time extent of the time slider.
  99235. *
  99236. * @default null
  99237. *
  99238. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#timeExtent)
  99239. */
  99240. timeExtent: TimeExtent;
  99241. /**
  99242. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  99243. *
  99244. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#view)
  99245. */
  99246. view: MapView | SceneView;
  99247. /**
  99248. * Provides the logic for the [TimeSlider](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html) widget.
  99249. *
  99250. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html)
  99251. */
  99252. constructor(properties?: TimeSliderViewModelProperties);
  99253. /**
  99254. * Incrementally moves the time extent forward one stop
  99255. *
  99256. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#next)
  99257. */
  99258. next(): void;
  99259. /**
  99260. * Initiates the time slider's temporal playback.
  99261. *
  99262. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#play)
  99263. */
  99264. play(): void;
  99265. /**
  99266. * Incrementally moves the time extent back one stop.
  99267. *
  99268. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#previous)
  99269. */
  99270. previous(): void;
  99271. /**
  99272. * Stops the time slider's temporal playback.
  99273. *
  99274. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#stop)
  99275. */
  99276. stop(): void;
  99277. /**
  99278. * Updates the [time slider](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#TimeSlider) widget definition in the provided [WebMap](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html).
  99279. *
  99280. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#updateWebDocument)
  99281. */
  99282. updateWebDocument(webmap: WebMap): void;
  99283. on(name: "trigger-action", eventHandler: TimeSliderViewModelTriggerActionEventHandler): IHandle;
  99284. /**
  99285. * Extracts time slider settings from a [WebMap](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html) if the webmap contains a [time slider widget](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#TimeSlider) definition.
  99286. *
  99287. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#getPropertiesFromWebMap)
  99288. */
  99289. static getPropertiesFromWebMap(webMap: WebMap, signal?: AbortSignal): Promise<any>;
  99290. }
  99291. /** @deprecated Import the TimeSliderViewModel class instead. */
  99292. export type TimeSliderViewModelConstructor = typeof TimeSliderViewModel;
  99293. interface TimeSliderViewModelProperties {
  99294. /**
  99295. * Defines actions that will appear in a menu when the user clicks the ellipsis button ![timeSlider-actions-menu](https://developers.arcgis.com/javascript/latest/assets/img/apiref/widgets/timeslider/ellipsis.png) in the widget.
  99296. *
  99297. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#actions)
  99298. */
  99299. actions?: CollectionProperties<Action>;
  99300. /**
  99301. * The temporal extent of the entire slider.
  99302. *
  99303. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#fullTimeExtent)
  99304. */
  99305. fullTimeExtent?: TimeExtentProperties;
  99306. /**
  99307. * If animating, the time indicator(s) will restart if they reach the edge.
  99308. *
  99309. * @default false
  99310. *
  99311. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#loop)
  99312. */
  99313. loop?: boolean;
  99314. /**
  99315. * The time slider mode.
  99316. *
  99317. * @default time-window
  99318. *
  99319. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#mode)
  99320. */
  99321. mode?: "instant" | "time-window" | "cumulative-from-start" | "cumulative-from-end";
  99322. /**
  99323. * The time (in milliseconds) between animation steps.
  99324. *
  99325. * @default 1000
  99326. *
  99327. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#playRate)
  99328. */
  99329. playRate?: number;
  99330. /**
  99331. * Defines specific locations on the time slider where thumbs will snap to when manipulated.
  99332. *
  99333. * @default { count : 10 }
  99334. *
  99335. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#stops)
  99336. */
  99337. stops?: StopsByDates | StopsByCount | StopsByInterval;
  99338. /**
  99339. * The current time extent of the time slider.
  99340. *
  99341. * @default null
  99342. *
  99343. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#timeExtent)
  99344. */
  99345. timeExtent?: TimeExtentProperties;
  99346. /**
  99347. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  99348. *
  99349. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#view)
  99350. */
  99351. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  99352. }
  99353. /**
  99354. * Definition of an action that can be assigned to the [actions](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#actions) property on the [TimeSlider](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#actions) or the [TimeSliderViewModel](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#actions).
  99355. *
  99356. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#action)
  99357. */
  99358. export interface Action {
  99359. /**
  99360. * The name of the icon to display.
  99361. *
  99362. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#action)
  99363. */
  99364. icon: string;
  99365. /**
  99366. * Unique identifier of the action.
  99367. *
  99368. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#action)
  99369. */
  99370. id: string;
  99371. /**
  99372. * The title of the action that will be displayed in the menu.
  99373. *
  99374. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider-TimeSliderViewModel.html#action)
  99375. */
  99376. title: string;
  99377. }
  99378. export interface TimeSliderViewModelTriggerActionEvent {
  99379. action: Action;
  99380. }
  99381. export type DateLabelFormatter = (
  99382. value: Date | Date[],
  99383. type?: "min" | "max" | "extent",
  99384. element?: HTMLElement,
  99385. layout?: "compact" | "wide"
  99386. ) => void;
  99387. /**
  99388. * Divides the time slider's [fullTimeExtent](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#fullTimeExtent) into equal parts.
  99389. *
  99390. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#StopsByCount)
  99391. */
  99392. export interface StopsByCount {
  99393. /**
  99394. * Number of evenly spaced divisions.
  99395. *
  99396. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#StopsByCount)
  99397. */
  99398. count: number;
  99399. /**
  99400. * The time period to divide.
  99401. *
  99402. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#StopsByCount)
  99403. */
  99404. timeExtent?: TimeExtent;
  99405. }
  99406. /**
  99407. * Specifies an array of dates for the time slider widget.
  99408. *
  99409. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#StopsByDates)
  99410. */
  99411. export interface StopsByDates {
  99412. /**
  99413. * Array of dates.
  99414. *
  99415. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#StopsByDates)
  99416. */
  99417. dates: Date[];
  99418. }
  99419. /**
  99420. * Defines regularly spaced stops on the time slider from a [TimeInterval](https://developers.arcgis.com/javascript/latest/api-reference/esri-TimeInterval.html).
  99421. *
  99422. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#StopsByInterval)
  99423. */
  99424. export interface StopsByInterval {
  99425. /**
  99426. * Specifies a granularity of temporal data and allows you to visualize the data at specified intervals.
  99427. *
  99428. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#StopsByInterval)
  99429. */
  99430. interval: TimeInterval;
  99431. /**
  99432. * A period of time with definitive start and end dates.
  99433. *
  99434. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-TimeSlider.html#StopsByInterval)
  99435. */
  99436. timeExtent?: TimeExtent;
  99437. }
  99438. export interface TimeSliderTriggerActionEvent {
  99439. action: Action;
  99440. }
  99441. export interface Track extends Widget, GoTo {
  99442. }
  99443. export class Track {
  99444. /**
  99445. * An object used for setting optional position parameters.
  99446. *
  99447. * @default null
  99448. *
  99449. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#geolocationOptions)
  99450. */
  99451. geolocationOptions: any;
  99452. /**
  99453. * Indicates whether the widget will automatically navigate the view to the user's position when a geolocation result is found.
  99454. *
  99455. * @default true
  99456. *
  99457. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#goToLocationEnabled)
  99458. */
  99459. goToLocationEnabled: boolean;
  99460. /**
  99461. * The graphic used to show the user's location on the map.
  99462. *
  99463. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#graphic)
  99464. */
  99465. graphic: Graphic;
  99466. /**
  99467. * The widget's default CSS icon class.
  99468. *
  99469. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#iconClass)
  99470. */
  99471. iconClass: string;
  99472. /**
  99473. * Indicates the [scale](https://developers.arcgis.com/documentation/mapping-apis-and-services/reference/zoom-levels-and-scale/) to set on the view when navigating to the position of the geolocated result, after a location is returned from the [track](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#event-track) event.
  99474. *
  99475. * @default null
  99476. *
  99477. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#scale)
  99478. */
  99479. scale: number;
  99480. /**
  99481. * Indicates whether the widget is watching for new positions.
  99482. *
  99483. * @default false
  99484. *
  99485. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#tracking)
  99486. */
  99487. readonly tracking: boolean;
  99488. /**
  99489. * Indicates whether the widget will automatically rotate to the device heading based on the Geolocation APIs [`GeolocationCoordinates.heading`](https://developer.mozilla.org/en-US/docs/Web/API/GeolocationCoordinates/heading) property.
  99490. *
  99491. * @default true
  99492. *
  99493. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#useHeadingEnabled)
  99494. */
  99495. useHeadingEnabled: boolean;
  99496. /**
  99497. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  99498. *
  99499. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#view)
  99500. */
  99501. view: MapView | SceneView;
  99502. /**
  99503. * The viewModel for this widget.
  99504. *
  99505. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#viewModel)
  99506. */
  99507. viewModel: TrackViewModel;
  99508. /**
  99509. * Provides a simple button that animates the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html) to the user's location when clicked.
  99510. *
  99511. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html)
  99512. */
  99513. constructor(properties?: TrackProperties);
  99514. /**
  99515. * When executed, the widget will start [tracking](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#tracking) the user's location.
  99516. *
  99517. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#start)
  99518. */
  99519. start(): void;
  99520. /**
  99521. * Stops tracking the user's location when executed.
  99522. *
  99523. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#stop)
  99524. */
  99525. stop(): void;
  99526. on(name: "track", eventHandler: TrackTrackEventHandler): IHandle;
  99527. on(name: "track-error", eventHandler: TrackTrackErrorEventHandler): IHandle;
  99528. }
  99529. /** @deprecated Import the Track class instead. */
  99530. export type TrackConstructor = typeof Track;
  99531. interface TrackProperties extends WidgetProperties, GoToProperties {
  99532. /**
  99533. * An object used for setting optional position parameters.
  99534. *
  99535. * @default null
  99536. *
  99537. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#geolocationOptions)
  99538. */
  99539. geolocationOptions?: any;
  99540. /**
  99541. * Indicates whether the widget will automatically navigate the view to the user's position when a geolocation result is found.
  99542. *
  99543. * @default true
  99544. *
  99545. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#goToLocationEnabled)
  99546. */
  99547. goToLocationEnabled?: boolean;
  99548. /**
  99549. * The graphic used to show the user's location on the map.
  99550. *
  99551. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#graphic)
  99552. */
  99553. graphic?: GraphicProperties;
  99554. /**
  99555. * The widget's default CSS icon class.
  99556. *
  99557. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#iconClass)
  99558. */
  99559. iconClass?: string;
  99560. /**
  99561. * Indicates the [scale](https://developers.arcgis.com/documentation/mapping-apis-and-services/reference/zoom-levels-and-scale/) to set on the view when navigating to the position of the geolocated result, after a location is returned from the [track](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#event-track) event.
  99562. *
  99563. * @default null
  99564. *
  99565. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#scale)
  99566. */
  99567. scale?: number;
  99568. /**
  99569. * Indicates whether the widget will automatically rotate to the device heading based on the Geolocation APIs [`GeolocationCoordinates.heading`](https://developer.mozilla.org/en-US/docs/Web/API/GeolocationCoordinates/heading) property.
  99570. *
  99571. * @default true
  99572. *
  99573. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#useHeadingEnabled)
  99574. */
  99575. useHeadingEnabled?: boolean;
  99576. /**
  99577. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  99578. *
  99579. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#view)
  99580. */
  99581. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  99582. /**
  99583. * The viewModel for this widget.
  99584. *
  99585. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#viewModel)
  99586. */
  99587. viewModel?: TrackViewModelProperties;
  99588. }
  99589. export interface TrackViewModel extends Accessor, Evented, GeolocationPositioning, GoTo {
  99590. }
  99591. export class TrackViewModel {
  99592. /**
  99593. * The current state of the widget.
  99594. *
  99595. * @default disabled
  99596. *
  99597. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track-TrackViewModel.html#state)
  99598. */
  99599. readonly state: "disabled" | "ready" | "tracking" | "waiting";
  99600. /**
  99601. * Indicates whether new positions are being watched.
  99602. *
  99603. * @default false
  99604. *
  99605. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track-TrackViewModel.html#tracking)
  99606. */
  99607. readonly tracking: boolean;
  99608. /**
  99609. * Provides the logic for the [Track](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html) widget, which animates the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html) to the user's location when clicked and tracks it as the location is updated.
  99610. *
  99611. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track-TrackViewModel.html)
  99612. */
  99613. constructor(properties?: TrackViewModelProperties);
  99614. /**
  99615. * When executed, [tracking](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track-TrackViewModel.html#tracking) starts at the user's location.
  99616. *
  99617. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track-TrackViewModel.html#start)
  99618. */
  99619. start(): void;
  99620. /**
  99621. * Stops tracking the user's location when executed.
  99622. *
  99623. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track-TrackViewModel.html#stop)
  99624. */
  99625. stop(): void;
  99626. on(name: "track", eventHandler: TrackViewModelTrackEventHandler): IHandle;
  99627. on(name: "track-error", eventHandler: TrackViewModelTrackErrorEventHandler): IHandle;
  99628. }
  99629. /** @deprecated Import the TrackViewModel class instead. */
  99630. export type TrackViewModelConstructor = typeof TrackViewModel;
  99631. interface TrackViewModelProperties extends GeolocationPositioningProperties, GoToProperties {
  99632. }
  99633. export interface TrackViewModelTrackErrorEvent {
  99634. error: Error;
  99635. }
  99636. export interface TrackViewModelTrackEvent {
  99637. position: any;
  99638. }
  99639. export interface TrackTrackErrorEvent {
  99640. error: Error;
  99641. }
  99642. export interface TrackTrackEvent {
  99643. position: any;
  99644. }
  99645. export class UtilityNetworkTrace extends Widget {
  99646. /**
  99647. * The default color to assign the aggregated geometry of a trace result.
  99648. *
  99649. * @default {
  99650. * color: [255, 255, 0, 0.6],
  99651. * haloOpacity: 0.9,
  99652. * fillOpacity: 0.2,
  99653. * hex: "#FFFF00"
  99654. * }
  99655. *
  99656. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#defaultGraphicColor)
  99657. */
  99658. defaultGraphicColor: GraphicColor;
  99659. /**
  99660. * When true, the widget is visually withdrawn and cannot be interacted with.
  99661. *
  99662. * @default true
  99663. *
  99664. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#disabled)
  99665. */
  99666. disabled: boolean;
  99667. /**
  99668. * An array of map points to load into the widget to lookup flags.
  99669. *
  99670. * @default []
  99671. *
  99672. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#flags)
  99673. */
  99674. flags: FlagProperty[];
  99675. /**
  99676. * The Geodatabase version to pass into the trace.
  99677. *
  99678. * @default "sde.DEFAULT"
  99679. *
  99680. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#gdbVersion)
  99681. */
  99682. gdbVersion: string;
  99683. /**
  99684. * The widget's default CSS icon class.
  99685. *
  99686. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#iconClass)
  99687. */
  99688. iconClass: string;
  99689. /**
  99690. * Custom labels, descriptions, and symbol for the input [flags](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#flags).
  99691. *
  99692. * @default []
  99693. *
  99694. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#inputSettings)
  99695. */
  99696. inputSettings: InputSetting[];
  99697. /**
  99698. * A list of global Ids of traces to select on load
  99699. *
  99700. * @default []
  99701. *
  99702. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#selectedTraces)
  99703. */
  99704. selectedTraces: string[];
  99705. /**
  99706. * When true, the utility network elements are selected in the view when traces are completed.
  99707. *
  99708. * @default true
  99709. *
  99710. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#selectOnComplete)
  99711. */
  99712. selectOnComplete: boolean;
  99713. /**
  99714. * When true, a graphic layer is added to the view to highlight the utility network elements when traces are completed.
  99715. *
  99716. * @default true
  99717. *
  99718. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#showGraphicsOnComplete)
  99719. */
  99720. showGraphicsOnComplete: boolean;
  99721. /**
  99722. * Determines whether to show list of selection attributes
  99723. *
  99724. * @default true
  99725. *
  99726. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#showSelectionAttributes)
  99727. */
  99728. showSelectionAttributes: boolean;
  99729. /**
  99730. * The view from which the widget will operate.
  99731. *
  99732. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#view)
  99733. */
  99734. view: MapView;
  99735. /**
  99736. * The view model for this widget.
  99737. *
  99738. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#viewModel)
  99739. */
  99740. viewModel: UtilityNetworkTraceViewModel;
  99741. /**
  99742. * The UtilityNetworkTrace widget provides a way to run traces in a Utility Network based on connectivity or traversability from set input flags.
  99743. *
  99744. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html)
  99745. */
  99746. constructor(properties?: UtilityNetworkTraceProperties);
  99747. /**
  99748. * Checks if the requirements to execute a trace are met.
  99749. *
  99750. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#checkCanTrace)
  99751. */
  99752. checkCanTrace(): Promise<void>;
  99753. /**
  99754. * Prompts to clear all input flags, selected trace types, and the trace results.
  99755. *
  99756. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#confirmReset)
  99757. */
  99758. confirmReset(): void;
  99759. on(name: "add-flag", eventHandler: UtilityNetworkTraceAddFlagEventHandler): IHandle;
  99760. on(name: "add-flag-complete", eventHandler: UtilityNetworkTraceAddFlagCompleteEventHandler): IHandle;
  99761. on(name: "add-flag-error", eventHandler: UtilityNetworkTraceAddFlagErrorEventHandler): IHandle;
  99762. }
  99763. /** @deprecated Import the UtilityNetworkTrace class instead. */
  99764. export type UtilityNetworkTraceConstructor = typeof UtilityNetworkTrace;
  99765. interface UtilityNetworkTraceProperties extends WidgetProperties {
  99766. /**
  99767. * The default color to assign the aggregated geometry of a trace result.
  99768. *
  99769. * @default {
  99770. * color: [255, 255, 0, 0.6],
  99771. * haloOpacity: 0.9,
  99772. * fillOpacity: 0.2,
  99773. * hex: "#FFFF00"
  99774. * }
  99775. *
  99776. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#defaultGraphicColor)
  99777. */
  99778. defaultGraphicColor?: GraphicColor;
  99779. /**
  99780. * When true, the widget is visually withdrawn and cannot be interacted with.
  99781. *
  99782. * @default true
  99783. *
  99784. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#disabled)
  99785. */
  99786. disabled?: boolean;
  99787. /**
  99788. * An array of map points to load into the widget to lookup flags.
  99789. *
  99790. * @default []
  99791. *
  99792. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#flags)
  99793. */
  99794. flags?: FlagProperty[];
  99795. /**
  99796. * The Geodatabase version to pass into the trace.
  99797. *
  99798. * @default "sde.DEFAULT"
  99799. *
  99800. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#gdbVersion)
  99801. */
  99802. gdbVersion?: string;
  99803. /**
  99804. * The widget's default CSS icon class.
  99805. *
  99806. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#iconClass)
  99807. */
  99808. iconClass?: string;
  99809. /**
  99810. * Custom labels, descriptions, and symbol for the input [flags](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#flags).
  99811. *
  99812. * @default []
  99813. *
  99814. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#inputSettings)
  99815. */
  99816. inputSettings?: InputSetting[];
  99817. /**
  99818. * A list of global Ids of traces to select on load
  99819. *
  99820. * @default []
  99821. *
  99822. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#selectedTraces)
  99823. */
  99824. selectedTraces?: string[];
  99825. /**
  99826. * When true, the utility network elements are selected in the view when traces are completed.
  99827. *
  99828. * @default true
  99829. *
  99830. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#selectOnComplete)
  99831. */
  99832. selectOnComplete?: boolean;
  99833. /**
  99834. * When true, a graphic layer is added to the view to highlight the utility network elements when traces are completed.
  99835. *
  99836. * @default true
  99837. *
  99838. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#showGraphicsOnComplete)
  99839. */
  99840. showGraphicsOnComplete?: boolean;
  99841. /**
  99842. * Determines whether to show list of selection attributes
  99843. *
  99844. * @default true
  99845. *
  99846. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#showSelectionAttributes)
  99847. */
  99848. showSelectionAttributes?: boolean;
  99849. /**
  99850. * The view from which the widget will operate.
  99851. *
  99852. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#view)
  99853. */
  99854. view?: MapViewProperties;
  99855. /**
  99856. * The view model for this widget.
  99857. *
  99858. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#viewModel)
  99859. */
  99860. viewModel?: UtilityNetworkTraceViewModelProperties;
  99861. }
  99862. export interface UtilityNetworkTraceViewModel extends Accessor, GoTo {
  99863. }
  99864. export class UtilityNetworkTraceViewModel {
  99865. /**
  99866. * The default color to assign the aggregated geometry of a trace result.
  99867. *
  99868. * @default {
  99869. * color: [255, 255, 0, 0.6],
  99870. * haloOpacity: 0.9,
  99871. * fillOpacity: 0.2,
  99872. * hex: "#FFFF00"
  99873. * }
  99874. *
  99875. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#defaultGraphicColor)
  99876. */
  99877. defaultGraphicColor: GraphicColor;
  99878. /**
  99879. * An array of map points to load into the widget to lookup flags.
  99880. *
  99881. * @default []
  99882. *
  99883. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#flags)
  99884. */
  99885. flags: FlagProperty[];
  99886. /**
  99887. * The Geodatabase version to pass into the trace.
  99888. *
  99889. * @default "sde.DEFAULT"
  99890. *
  99891. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#gdbVersion)
  99892. */
  99893. gdbVersion: string;
  99894. /**
  99895. * An array of global Ids of traces to select on initial load.
  99896. *
  99897. * @default []
  99898. *
  99899. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#selectedTraces)
  99900. */
  99901. selectedTraces: string[];
  99902. /**
  99903. * When true, the utility network elements are selected in the view when traces are completed.
  99904. *
  99905. * @default true
  99906. *
  99907. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#selectOnComplete)
  99908. */
  99909. selectOnComplete: boolean;
  99910. /**
  99911. * When true, a graphic layer is added to the view to highlight the utility network elements when traces are completed.
  99912. *
  99913. * @default true
  99914. *
  99915. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#showGraphicsOnComplete)
  99916. */
  99917. showGraphicsOnComplete: boolean;
  99918. /**
  99919. * Determines whether to show the list of selected features from completed traces.
  99920. *
  99921. * @default true
  99922. *
  99923. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#showSelectionAttributes)
  99924. */
  99925. showSelectionAttributes: boolean;
  99926. /**
  99927. * The view model's state.
  99928. *
  99929. * @default ready
  99930. *
  99931. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#state)
  99932. */
  99933. readonly state: "loading" | "ready";
  99934. /**
  99935. * The view from which the widget will operate.
  99936. *
  99937. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#view)
  99938. */
  99939. view: MapView;
  99940. /**
  99941. * Provides the logic for the [UtilityNetworkTrace](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html) widget.
  99942. *
  99943. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html)
  99944. */
  99945. constructor(properties?: UtilityNetworkTraceViewModelProperties);
  99946. /**
  99947. * Adds a flag point graphic for the click event on the view if there is a feature to query.
  99948. *
  99949. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#addFlagByHit)
  99950. */
  99951. addFlagByHit(type: string): Promise<boolean>;
  99952. /**
  99953. * Create a graphic on the view’s [graphics](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#graphics) for the aggregated results of all the features returned by the trace.
  99954. *
  99955. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#addResultGraphicToView)
  99956. */
  99957. addResultGraphicToView(trace: TraceResultExtend, color: GraphicColor): Promise<any>;
  99958. /**
  99959. * Adds the selected terminal to a flag point.
  99960. *
  99961. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#addTerminal)
  99962. */
  99963. addTerminal(selectedTerminal: string, feature: FlagProperty): void;
  99964. /**
  99965. * Get all parameters for the trace type selected to be run before executing the trace.
  99966. *
  99967. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#callTrace)
  99968. */
  99969. callTrace(): Promise<boolean>;
  99970. /**
  99971. * Change the graphic color for the aggregated results of a trace.
  99972. *
  99973. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#changeResultGraphicColor)
  99974. */
  99975. changeResultGraphicColor(color: GraphicColor, trace: TraceResultExtend): void;
  99976. /**
  99977. * May be used to verify if all requirements are met to execute a trace (at least 1 starting point and at least 1 trace type selected).
  99978. *
  99979. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#checkCanTrace)
  99980. */
  99981. checkCanTrace(): ValidSetup;
  99982. /**
  99983. * Indicates if any selection exists on the view.
  99984. *
  99985. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#checkSelectionExist)
  99986. */
  99987. checkSelectionExist(): boolean;
  99988. /**
  99989. * Removes a specific trace from the results.
  99990. *
  99991. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#clearResult)
  99992. */
  99993. clearResult(trace: TraceItem): void;
  99994. /**
  99995. * Executes the trace and returns all trace results as graphics and/or feature selections and functions.
  99996. *
  99997. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#executeTrace)
  99998. */
  99999. executeTrace(traceItem: TraceItem, url: string, params: TraceParameters): Promise<TraceResultExtend>;
  100000. /**
  100001. * Gets the valid edge and junction layers within the view that are part of the Utility Network and can be used for placing flags in the view.
  100002. *
  100003. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#getValidSources)
  100004. */
  100005. getValidSources(): (EdgeSourceJSON | JunctionSourceJSON)[];
  100006. /**
  100007. * Reads the web map and loads the [UtilityNetwork](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-UtilityNetwork.html) if it exists.
  100008. *
  100009. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#loadUtilityNetwork)
  100010. */
  100011. loadUtilityNetwork(): Promise<UtilityNetwork>;
  100012. /**
  100013. * Enables or disables the filter barrier setting on barrier flags.
  100014. *
  100015. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#manageFilterBarrier)
  100016. */
  100017. manageFilterBarrier(status: boolean, feature: FlagProperty): void;
  100018. /**
  100019. * Is used to merge the feature selections in the layer views when multiple traces are run.
  100020. *
  100021. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#mergeSelection)
  100022. */
  100023. mergeSelection(status: boolean, trace: TraceItem): void;
  100024. /**
  100025. * Query the layers by ObjectID for more attributes not present on the trace result elements.
  100026. *
  100027. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#queryFeaturesById)
  100028. */
  100029. queryFeaturesById(dataItems: NetworkElement[]): Promise<FeatureSetInfo[]>;
  100030. /**
  100031. * Takes the result of a hit test to lookup the asset to create a flag for the trace.
  100032. *
  100033. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#queryFlagByHitTest)
  100034. */
  100035. queryFlagByHitTest(e: any, flagType: string): Promise<boolean>;
  100036. /**
  100037. * Removes the selected flag from the view.
  100038. *
  100039. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#removeFlag)
  100040. */
  100041. removeFlag(flag: FlagProperty): void;
  100042. /**
  100043. * Removes a specific trace result graphic from the view’s [graphics](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#graphics).
  100044. *
  100045. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#removeResultGraphicFromView)
  100046. */
  100047. removeResultGraphicFromView(trace: TraceResultExtend): void;
  100048. /**
  100049. * Removes the selection from the layer view.
  100050. *
  100051. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#removeSelection)
  100052. */
  100053. removeSelection(): void;
  100054. /**
  100055. * Removes the selected terminal from the flag.
  100056. *
  100057. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#removeTerminal)
  100058. */
  100059. removeTerminal(selectedTerminal: string, feature: FlagProperty): void;
  100060. /**
  100061. * Clears all inputs (flags, trace types) and all results (selections, graphics) in the view.
  100062. *
  100063. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#reset)
  100064. */
  100065. reset(): void;
  100066. /**
  100067. * Performs a selection on a layer view based on a list of ObjectIDs.
  100068. *
  100069. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#selectFeaturesById)
  100070. */
  100071. selectFeaturesById(resultSet: NetworkElement[]): void;
  100072. /**
  100073. * Loops through the trace result elements to group them by network source id and selects them on the layer view.
  100074. *
  100075. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#selectResults)
  100076. */
  100077. selectResults(resultSet: NetworkElement[]): void;
  100078. /**
  100079. * Set the trace type to be run from the available trace configurations in the [WebMap](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html).
  100080. *
  100081. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#selectTraces)
  100082. */
  100083. selectTraces(state: boolean, traceId: string): void;
  100084. /**
  100085. * Preset a trace type to be run from the available [trace configurations](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-UtilityNetwork.html#sharedNamedTraceConfigurations) in the [WebMap](https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html) when the widget loads.
  100086. *
  100087. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#selectTracesOnLoad)
  100088. */
  100089. selectTracesOnLoad(): void;
  100090. /**
  100091. * Zoom to a flag's feature or a result feature in the view.
  100092. *
  100093. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#zoomToAsset)
  100094. */
  100095. zoomToAsset(geometry: GoToTarget2D | GoToTarget3D): void;
  100096. }
  100097. /** @deprecated Import the UtilityNetworkTraceViewModel class instead. */
  100098. export type UtilityNetworkTraceViewModelConstructor = typeof UtilityNetworkTraceViewModel;
  100099. interface UtilityNetworkTraceViewModelProperties extends GoToProperties {
  100100. /**
  100101. * The default color to assign the aggregated geometry of a trace result.
  100102. *
  100103. * @default {
  100104. * color: [255, 255, 0, 0.6],
  100105. * haloOpacity: 0.9,
  100106. * fillOpacity: 0.2,
  100107. * hex: "#FFFF00"
  100108. * }
  100109. *
  100110. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#defaultGraphicColor)
  100111. */
  100112. defaultGraphicColor?: GraphicColor;
  100113. /**
  100114. * An array of map points to load into the widget to lookup flags.
  100115. *
  100116. * @default []
  100117. *
  100118. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#flags)
  100119. */
  100120. flags?: FlagProperty[];
  100121. /**
  100122. * The Geodatabase version to pass into the trace.
  100123. *
  100124. * @default "sde.DEFAULT"
  100125. *
  100126. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#gdbVersion)
  100127. */
  100128. gdbVersion?: string;
  100129. /**
  100130. * An array of global Ids of traces to select on initial load.
  100131. *
  100132. * @default []
  100133. *
  100134. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#selectedTraces)
  100135. */
  100136. selectedTraces?: string[];
  100137. /**
  100138. * When true, the utility network elements are selected in the view when traces are completed.
  100139. *
  100140. * @default true
  100141. *
  100142. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#selectOnComplete)
  100143. */
  100144. selectOnComplete?: boolean;
  100145. /**
  100146. * When true, a graphic layer is added to the view to highlight the utility network elements when traces are completed.
  100147. *
  100148. * @default true
  100149. *
  100150. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#showGraphicsOnComplete)
  100151. */
  100152. showGraphicsOnComplete?: boolean;
  100153. /**
  100154. * Determines whether to show the list of selected features from completed traces.
  100155. *
  100156. * @default true
  100157. *
  100158. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#showSelectionAttributes)
  100159. */
  100160. showSelectionAttributes?: boolean;
  100161. /**
  100162. * The view from which the widget will operate.
  100163. *
  100164. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#view)
  100165. */
  100166. view?: MapViewProperties;
  100167. }
  100168. /**
  100169. * AssetGroupJSON represents the [asset group](https://pro.arcgis.com/en/pro-app/latest/help/data/utility-network/utility-feature-classification.htm#GUID-A4CCEB96-C4F8-459B-A763-FF6A5791F663).
  100170. *
  100171. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#AssetGroupJSON)
  100172. */
  100173. export interface AssetGroupJSON {
  100174. /**
  100175. * The asset group code.
  100176. *
  100177. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#AssetGroupJSON)
  100178. */
  100179. assetGroupCode: number;
  100180. /**
  100181. * The asset group name.
  100182. *
  100183. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#AssetGroupJSON)
  100184. */
  100185. assetGroupName: string;
  100186. /**
  100187. * The asset type.
  100188. *
  100189. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#AssetGroupJSON)
  100190. */
  100191. assetTypes: AssetTypeJSON[];
  100192. }
  100193. /**
  100194. * AssetTypeJSON represents [asset type](https://pro.arcgis.com/en/pro-app/latest/help/data/utility-network/utility-feature-classification.htm#GUID-A4CCEB96-C4F8-459B-A763-FF6A5791F663).
  100195. *
  100196. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#AssetTypeJSON)
  100197. */
  100198. export interface AssetTypeJSON {
  100199. /**
  100200. * The asset type code.
  100201. *
  100202. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#AssetTypeJSON)
  100203. */
  100204. assetTypeCode: number;
  100205. /**
  100206. * The asset type name.
  100207. *
  100208. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#AssetTypeJSON)
  100209. */
  100210. assetTypeName: string;
  100211. /**
  100212. * The id of the terminal configuration.
  100213. *
  100214. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#AssetTypeJSON)
  100215. */
  100216. terminalConfigurationId: number;
  100217. }
  100218. /**
  100219. * DisplayField represents the attribute field used as a display label for flags and selected features.
  100220. *
  100221. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#DisplayField)
  100222. */
  100223. export interface DisplayField {
  100224. /**
  100225. * The feature's display field.
  100226. *
  100227. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#DisplayField)
  100228. */
  100229. field: string;
  100230. /**
  100231. * The value of the field.
  100232. *
  100233. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#DisplayField)
  100234. */
  100235. value: string;
  100236. }
  100237. /**
  100238. * EdgeSourceJSON represents the line layers that participate in the utility network service.
  100239. *
  100240. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#EdgeSourceJSON)
  100241. */
  100242. export interface EdgeSourceJSON {
  100243. /**
  100244. * The layer id of the line layer.
  100245. *
  100246. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#EdgeSourceJSON)
  100247. */
  100248. layerId: number;
  100249. /**
  100250. * The asset group attribute values for the line layer.
  100251. *
  100252. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#EdgeSourceJSON)
  100253. */
  100254. assetGroups: AssetGroupJSON[];
  100255. /**
  100256. * The network source id of the line layer.
  100257. *
  100258. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#EdgeSourceJSON)
  100259. */
  100260. sourceId: number;
  100261. }
  100262. /**
  100263. * FeatureSetInfo represents the information for the results in the featureset.
  100264. *
  100265. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#FeatureSetInfo)
  100266. */
  100267. export interface FeatureSetInfo {
  100268. /**
  100269. * The [FeatureLayer](https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html) of the dataset.
  100270. *
  100271. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#FeatureSetInfo)
  100272. */
  100273. layer: FeatureLayer;
  100274. /**
  100275. * The [FeatureSet](https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-FeatureSet.html).
  100276. *
  100277. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#FeatureSetInfo)
  100278. */
  100279. featureSet: FeatureSet;
  100280. }
  100281. /**
  100282. * FlagProperty represents the properties to define each flag point (starting points and barriers).
  100283. *
  100284. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#FlagProperty)
  100285. */
  100286. export interface FlagProperty {
  100287. /**
  100288. * The available [terminals](https://developers.arcgis.com/javascript/latest/api-reference/esri-networks-support-Terminal.html) to define the permissible paths based on the terminal configurations.
  100289. *
  100290. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#FlagProperty)
  100291. */
  100292. allTerminals: TerminalConfiguration;
  100293. /**
  100294. * All the information returned by the hitTest.
  100295. *
  100296. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#FlagProperty)
  100297. */
  100298. details: any;
  100299. /**
  100300. * The display field of the flag.
  100301. *
  100302. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#FlagProperty)
  100303. */
  100304. displayField: DisplayField;
  100305. /**
  100306. * The id of the flag.
  100307. *
  100308. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#FlagProperty)
  100309. */
  100310. id: number;
  100311. /**
  100312. * The flag graphic.
  100313. *
  100314. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#FlagProperty)
  100315. */
  100316. mapGraphic: Graphic;
  100317. /**
  100318. * The geometry point of the flag.
  100319. *
  100320. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#FlagProperty)
  100321. */
  100322. mapPoint: Point;
  100323. /**
  100324. * The terminals that are selected for the flag (this can be the default terminal or terminals selected by the end-user).
  100325. *
  100326. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#FlagProperty)
  100327. */
  100328. selectedTerminals: number[];
  100329. /**
  100330. * The flag type being set.
  100331. *
  100332. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#FlagProperty)
  100333. */
  100334. type: string;
  100335. }
  100336. /**
  100337. * GraphicColor represents the color for the trace result graphic in the graphics layer.
  100338. *
  100339. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#GraphicColor)
  100340. */
  100341. export interface GraphicColor {
  100342. /**
  100343. * The color of the trace result graphic in the view.
  100344. *
  100345. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#GraphicColor)
  100346. */
  100347. color: number[];
  100348. /**
  100349. * The opacity of the graphic symbol's halo.
  100350. *
  100351. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#GraphicColor)
  100352. */
  100353. haloOpacity: number;
  100354. /**
  100355. * The color of the trace result graphic in the color picker.
  100356. *
  100357. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#GraphicColor)
  100358. */
  100359. hex: string;
  100360. }
  100361. /**
  100362. * JunctionSourceJSON represents the point layers that participate in the utility network service.
  100363. *
  100364. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#JunctionSourceJSON)
  100365. */
  100366. export interface JunctionSourceJSON {
  100367. /**
  100368. * The layer id of the point layer.
  100369. *
  100370. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#JunctionSourceJSON)
  100371. */
  100372. layerId: number;
  100373. /**
  100374. * The asset group attribute values for the point layer.
  100375. *
  100376. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#JunctionSourceJSON)
  100377. */
  100378. assetGroups: AssetGroupJSON[];
  100379. /**
  100380. * The network source id of the point layer.
  100381. *
  100382. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#JunctionSourceJSON)
  100383. */
  100384. sourceId: number;
  100385. }
  100386. /**
  100387. * TraceItem extends the named trace configuration and adds a property to manage the selection on the view.
  100388. *
  100389. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#TraceItem)
  100390. */
  100391. export interface TraceItem {
  100392. /**
  100393. * Returns `true` if there is a selection on the view for a trace.
  100394. *
  100395. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#TraceItem)
  100396. */
  100397. selected: boolean;
  100398. }
  100399. /**
  100400. * TraceResultExtend organizes the results based on the trace configuration and the trace results.
  100401. *
  100402. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#TraceResultExtend)
  100403. */
  100404. export interface TraceResultExtend {
  100405. /**
  100406. * TraceItem extends the named trace configuration and adds a property to manage the selection on the view.
  100407. *
  100408. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#TraceResultExtend)
  100409. */
  100410. TraceItem: TraceItem;
  100411. /**
  100412. * The collection of results returned from the trace.
  100413. *
  100414. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#TraceResultExtend)
  100415. */
  100416. TraceResult: TraceResult;
  100417. /**
  100418. * Returns true if selection is enabled.
  100419. *
  100420. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#TraceResultExtend)
  100421. */
  100422. selectionEnabled: boolean;
  100423. /**
  100424. * Returns true if graphic is enabled.
  100425. *
  100426. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#TraceResultExtend)
  100427. */
  100428. graphicEnabled: boolean;
  100429. /**
  100430. * The color for the graphic of the trace results in the graphics layer.
  100431. *
  100432. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#TraceResultExtend)
  100433. */
  100434. graphicColor: GraphicColor;
  100435. /**
  100436. * The current status of the trace to return errors from the server.
  100437. *
  100438. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#TraceResultExtend)
  100439. */
  100440. status: string;
  100441. }
  100442. /**
  100443. * ValidSetup verifies whether a trace meets all the requirements before it can execute.
  100444. *
  100445. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#ValidSetup)
  100446. */
  100447. export interface ValidSetup {
  100448. /**
  100449. * Is `true` if the requirements are met.
  100450. *
  100451. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#ValidSetup)
  100452. */
  100453. status: boolean;
  100454. /**
  100455. * An array of error messages for the missing requirements.
  100456. *
  100457. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace-UtilityNetworkTraceViewModel.html#ValidSetup)
  100458. */
  100459. issues: string[];
  100460. }
  100461. export interface UtilityNetworkTraceAddFlagCompleteEvent {
  100462. symbol: SimpleMarkerSymbol | PictureMarkerSymbol;
  100463. type: "starting-point" | "barrier";
  100464. }
  100465. export interface UtilityNetworkTraceAddFlagErrorEvent {
  100466. symbol: SimpleMarkerSymbol | PictureMarkerSymbol;
  100467. type: "starting-point" | "barrier";
  100468. }
  100469. export interface UtilityNetworkTraceAddFlagEvent {
  100470. type: "starting-point" | "barrier";
  100471. }
  100472. /**
  100473. * InputSetting represents the labels, descriptions, and symbols that can be overridden for the [flags](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#flags) user interface (UI) in the UtilityNetworkTrace widget.
  100474. *
  100475. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#InputSetting)
  100476. */
  100477. export interface InputSetting {
  100478. /**
  100479. * The flag type indicates which section will have its settings overridden.
  100480. *
  100481. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#InputSetting)
  100482. */
  100483. type: "starting-point" | "barrier";
  100484. /**
  100485. * The label that replaces either the default "Starting points" or "Barriers" headings depending on what flag type is passed.
  100486. *
  100487. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#InputSetting)
  100488. */
  100489. label: string;
  100490. /**
  100491. * The description that replaces the default sub-headings for either the starting points or barriers.
  100492. *
  100493. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#InputSetting)
  100494. */
  100495. description: string;
  100496. /**
  100497. * The symbol displayed next to either the "Starting points" or "Barriers" headings.
  100498. *
  100499. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-UtilityNetworkTrace.html#InputSetting)
  100500. */
  100501. symbol: SimpleMarkerSymbol | PictureMarkerSymbol;
  100502. }
  100503. export class Weather extends Widget {
  100504. /**
  100505. * Indicates the heading level to use for the title of the widget.
  100506. *
  100507. * @default 4
  100508. *
  100509. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Weather.html#headingLevel)
  100510. */
  100511. headingLevel: number;
  100512. /**
  100513. * The widget's default CSS icon class.
  100514. *
  100515. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Weather.html#iconClass)
  100516. */
  100517. iconClass: string;
  100518. /**
  100519. * A reference to the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html).
  100520. *
  100521. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Weather.html#view)
  100522. */
  100523. view: SceneView;
  100524. /**
  100525. * The view model for this widget.
  100526. *
  100527. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Weather.html#viewModel)
  100528. */
  100529. viewModel: WeatherViewModel;
  100530. /**
  100531. * This property provides the ability to display or hide the individual elements of the widget.
  100532. *
  100533. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Weather.html#visibleElements)
  100534. */
  100535. visibleElements: WeatherVisibleElements;
  100536. /**
  100537. * The Weather widget provides an interface for easily selecting and configuring the weather effects in a [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  100538. *
  100539. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Weather.html)
  100540. */
  100541. constructor(properties?: WeatherProperties);
  100542. }
  100543. /** @deprecated Import the Weather class instead. */
  100544. export type WeatherConstructor = typeof Weather;
  100545. interface WeatherProperties extends WidgetProperties {
  100546. /**
  100547. * Indicates the heading level to use for the title of the widget.
  100548. *
  100549. * @default 4
  100550. *
  100551. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Weather.html#headingLevel)
  100552. */
  100553. headingLevel?: number;
  100554. /**
  100555. * The widget's default CSS icon class.
  100556. *
  100557. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Weather.html#iconClass)
  100558. */
  100559. iconClass?: string;
  100560. /**
  100561. * A reference to the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html).
  100562. *
  100563. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Weather.html#view)
  100564. */
  100565. view?: SceneViewProperties;
  100566. /**
  100567. * The view model for this widget.
  100568. *
  100569. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Weather.html#viewModel)
  100570. */
  100571. viewModel?: WeatherViewModelProperties;
  100572. /**
  100573. * This property provides the ability to display or hide the individual elements of the widget.
  100574. *
  100575. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Weather.html#visibleElements)
  100576. */
  100577. visibleElements?: WeatherVisibleElements;
  100578. }
  100579. export class WeatherViewModel extends Accessor {
  100580. /**
  100581. * The current state of the view model that can be used for rendering the UI of the widget.
  100582. *
  100583. * @default disabled
  100584. *
  100585. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Weather-WeatherViewModel.html#state)
  100586. */
  100587. readonly state: "disabled" | "ready";
  100588. /**
  100589. * A reference to the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html).
  100590. *
  100591. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Weather-WeatherViewModel.html#view)
  100592. */
  100593. view: SceneView;
  100594. /**
  100595. * Provides the logic for the [Weather](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Weather.html) widget.
  100596. *
  100597. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Weather-WeatherViewModel.html)
  100598. */
  100599. constructor(properties?: WeatherViewModelProperties);
  100600. /**
  100601. * Sets the weather to the specified type.
  100602. *
  100603. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Weather-WeatherViewModel.html#setWeatherByType)
  100604. */
  100605. setWeatherByType(type: "sunny" | "cloudy" | "rainy" | "snowy" | "foggy"): void;
  100606. }
  100607. /** @deprecated Import the WeatherViewModel class instead. */
  100608. export type WeatherViewModelConstructor = typeof WeatherViewModel;
  100609. interface WeatherViewModelProperties {
  100610. /**
  100611. * A reference to the [View](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html).
  100612. *
  100613. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Weather-WeatherViewModel.html#view)
  100614. */
  100615. view?: SceneViewProperties;
  100616. }
  100617. /**
  100618. * The visible elements that are displayed within the widget.
  100619. *
  100620. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Weather.html#VisibleElements)
  100621. */
  100622. export interface WeatherVisibleElements {
  100623. /**
  100624. * When set to `false`, the header is not displayed.
  100625. *
  100626. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Weather.html#VisibleElements)
  100627. */
  100628. header?: boolean;
  100629. }
  100630. export interface Widget extends Accessor, Evented {
  100631. }
  100632. export class Widget {
  100633. /**
  100634. * The ID or node representing the DOM element containing the widget.
  100635. *
  100636. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Widget.html#container)
  100637. */
  100638. container: string | HTMLElement;
  100639. /**
  100640. * The unique ID assigned to the widget when the widget is created.
  100641. *
  100642. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Widget.html#id)
  100643. */
  100644. id: string;
  100645. /**
  100646. * The widget's label.
  100647. *
  100648. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Widget.html#label)
  100649. */
  100650. label: string;
  100651. /**
  100652. * Indicates whether the widget is visible.
  100653. *
  100654. * @default true
  100655. *
  100656. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Widget.html#visible)
  100657. */
  100658. visible: boolean;
  100659. /**
  100660. * The base class for widgets.
  100661. *
  100662. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Widget.html)
  100663. */
  100664. constructor(properties?: WidgetProperties);
  100665. /**
  100666. * A utility method used for building the value for a widget's `class` property.
  100667. *
  100668. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Widget.html#classes)
  100669. */
  100670. classes(...classNames: (string | string[] | any)[]): string;
  100671. /**
  100672. * Destroys the widget instance.
  100673. *
  100674. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Widget.html#destroy)
  100675. */
  100676. destroy(): void;
  100677. /**
  100678. * `isFulfilled()` may be used to verify if creating an instance of the class is fulfilled (either resolved or rejected).
  100679. *
  100680. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Widget.html#isFulfilled)
  100681. */
  100682. isFulfilled(): boolean;
  100683. /**
  100684. * `isRejected()` may be used to verify if creating an instance of the class is rejected.
  100685. *
  100686. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Widget.html#isRejected)
  100687. */
  100688. isRejected(): boolean;
  100689. /**
  100690. * `isResolved()` may be used to verify if creating an instance of the class is resolved.
  100691. *
  100692. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Widget.html#isResolved)
  100693. */
  100694. isResolved(): boolean;
  100695. /**
  100696. * Adds one or more handles which are to be tied to the lifecycle of the widget.
  100697. *
  100698. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Widget.html#own)
  100699. */
  100700. own(handleOrHandles: WatchHandle | WatchHandle[]): void;
  100701. /**
  100702. * *This method is primarily used by developers when implementing custom widgets.* Executes after widget is ready for rendering.
  100703. *
  100704. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Widget.html#postInitialize)
  100705. */
  100706. postInitialize(): void;
  100707. /**
  100708. * *This method is primarily used by developers when implementing custom widgets.* It must be implemented by subclasses for rendering.
  100709. *
  100710. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Widget.html#render)
  100711. */
  100712. render(): any;
  100713. /**
  100714. * Renders widget to the DOM immediately.
  100715. *
  100716. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Widget.html#renderNow)
  100717. */
  100718. renderNow(): void;
  100719. /**
  100720. * *This method is primarily used by developers when implementing custom widgets.* Schedules widget rendering.
  100721. *
  100722. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Widget.html#scheduleRender)
  100723. */
  100724. scheduleRender(): void;
  100725. /**
  100726. * `when()` may be leveraged once an instance of the class is created.
  100727. *
  100728. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Widget.html#when)
  100729. */
  100730. when(callback?: Function, errback?: Function): Promise<any>;
  100731. }
  100732. /** @deprecated Import the Widget class instead. */
  100733. export type WidgetConstructor = typeof Widget;
  100734. interface WidgetProperties {
  100735. /**
  100736. * The ID or node representing the DOM element containing the widget.
  100737. *
  100738. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Widget.html#container)
  100739. */
  100740. container?: string | HTMLElement;
  100741. /**
  100742. * The unique ID assigned to the widget when the widget is created.
  100743. *
  100744. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Widget.html#id)
  100745. */
  100746. id?: string;
  100747. /**
  100748. * The widget's label.
  100749. *
  100750. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Widget.html#label)
  100751. */
  100752. label?: string;
  100753. /**
  100754. * Indicates whether the widget is visible.
  100755. *
  100756. * @default true
  100757. *
  100758. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Widget.html#visible)
  100759. */
  100760. visible?: boolean;
  100761. }
  100762. export class Zoom extends Widget {
  100763. /**
  100764. * The widget's default CSS icon class.
  100765. *
  100766. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Zoom.html#iconClass)
  100767. */
  100768. iconClass: string;
  100769. /**
  100770. * Determines the layout/orientation of the Zoom widget.
  100771. *
  100772. * @default vertical
  100773. *
  100774. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Zoom.html#layout)
  100775. */
  100776. layout: "vertical" | "horizontal";
  100777. /**
  100778. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  100779. *
  100780. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Zoom.html#view)
  100781. */
  100782. view: MapView | SceneView;
  100783. /**
  100784. * The view model for this widget.
  100785. *
  100786. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Zoom.html#viewModel)
  100787. */
  100788. viewModel: ZoomViewModel;
  100789. /**
  100790. * The Zoom widget allows users to zoom in/out within a view.
  100791. *
  100792. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Zoom.html)
  100793. */
  100794. constructor(properties?: ZoomProperties);
  100795. /**
  100796. * Zooms the view in by an LOD factor of 0.5.
  100797. *
  100798. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Zoom.html#zoomIn)
  100799. */
  100800. zoomIn(): void;
  100801. /**
  100802. * Zooms the view out by an LOD factor of 2.
  100803. *
  100804. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Zoom.html#zoomOut)
  100805. */
  100806. zoomOut(): void;
  100807. }
  100808. /** @deprecated Import the Zoom class instead. */
  100809. export type ZoomConstructor = typeof Zoom;
  100810. interface ZoomProperties extends WidgetProperties {
  100811. /**
  100812. * The widget's default CSS icon class.
  100813. *
  100814. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Zoom.html#iconClass)
  100815. */
  100816. iconClass?: string;
  100817. /**
  100818. * Determines the layout/orientation of the Zoom widget.
  100819. *
  100820. * @default vertical
  100821. *
  100822. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Zoom.html#layout)
  100823. */
  100824. layout?: "vertical" | "horizontal";
  100825. /**
  100826. * A reference to the [MapView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html) or [SceneView](https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html).
  100827. *
  100828. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Zoom.html#view)
  100829. */
  100830. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  100831. /**
  100832. * The view model for this widget.
  100833. *
  100834. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Zoom.html#viewModel)
  100835. */
  100836. viewModel?: ZoomViewModelProperties;
  100837. }
  100838. export class ZoomViewModel extends Accessor {
  100839. /**
  100840. * Indicates if the view can zoom in.
  100841. *
  100842. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Zoom-ZoomViewModel.html#canZoomIn)
  100843. */
  100844. canZoomIn: boolean;
  100845. /**
  100846. * Indicates if the view can zoom out.
  100847. *
  100848. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Zoom-ZoomViewModel.html#canZoomOut)
  100849. */
  100850. canZoomOut: boolean;
  100851. /**
  100852. * The current state of the widget.
  100853. *
  100854. * @default disabled
  100855. *
  100856. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Zoom-ZoomViewModel.html#state)
  100857. */
  100858. readonly state: "disabled" | "ready";
  100859. /**
  100860. * The view from which to operate.
  100861. *
  100862. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Zoom-ZoomViewModel.html#view)
  100863. */
  100864. view: MapView | SceneView;
  100865. /**
  100866. * Provides the logic for the [Zoom](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Zoom.html) widget.
  100867. *
  100868. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Zoom-ZoomViewModel.html)
  100869. */
  100870. constructor(properties?: ZoomViewModelProperties);
  100871. /**
  100872. * Zooms the view in by an LOD factor of 0.5.
  100873. *
  100874. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Zoom-ZoomViewModel.html#zoomIn)
  100875. */
  100876. zoomIn(): void;
  100877. /**
  100878. * Zooms the view out by an LOD factor of 2.
  100879. *
  100880. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Zoom-ZoomViewModel.html#zoomOut)
  100881. */
  100882. zoomOut(): void;
  100883. }
  100884. /** @deprecated Import the ZoomViewModel class instead. */
  100885. export type ZoomViewModelConstructor = typeof ZoomViewModel;
  100886. interface ZoomViewModelProperties {
  100887. /**
  100888. * Indicates if the view can zoom in.
  100889. *
  100890. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Zoom-ZoomViewModel.html#canZoomIn)
  100891. */
  100892. canZoomIn?: boolean;
  100893. /**
  100894. * Indicates if the view can zoom out.
  100895. *
  100896. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Zoom-ZoomViewModel.html#canZoomOut)
  100897. */
  100898. canZoomOut?: boolean;
  100899. /**
  100900. * The view from which to operate.
  100901. *
  100902. * [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Zoom-ZoomViewModel.html#view)
  100903. */
  100904. view?: (MapViewProperties & { type: "2d" }) | (SceneViewProperties & { type: "3d" });
  100905. }
  100906. export type MultipointDrawActionCursorUpdateEventHandler = (event: MultipointDrawActionCursorUpdateEvent) => void;
  100907. export type MultipointDrawActionDrawCompleteEventHandler = (event: MultipointDrawActionDrawCompleteEvent) => void;
  100908. export type MultipointDrawActionRedoEventHandler = (event: MultipointDrawActionRedoEvent) => void;
  100909. export type MultipointDrawActionUndoEventHandler = (event: MultipointDrawActionUndoEvent) => void;
  100910. export type MultipointDrawActionVertexAddEventHandler = (event: MultipointDrawActionVertexAddEvent) => void;
  100911. export type MultipointDrawActionVertexRemoveEventHandler = (event: MultipointDrawActionVertexRemoveEvent) => void;
  100912. export type OGCFeatureLayerLayerviewCreateErrorEventHandler = (
  100913. event: OGCFeatureLayerLayerviewCreateErrorEvent
  100914. ) => void;
  100915. export type OGCFeatureLayerLayerviewCreateEventHandler = (event: OGCFeatureLayerLayerviewCreateEvent) => void;
  100916. export type OGCFeatureLayerLayerviewDestroyEventHandler = (event: OGCFeatureLayerLayerviewDestroyEvent) => void;
  100917. export type OGCFeatureLayerRefreshEventHandler = (event: OGCFeatureLayerRefreshEvent) => void;
  100918. export type PointDrawActionCursorUpdateEventHandler = (event: PointDrawActionCursorUpdateEvent) => void;
  100919. export type PointDrawActionDrawCompleteEventHandler = (event: PointDrawActionDrawCompleteEvent) => void;
  100920. export type PolygonDrawActionCursorUpdateEventHandler = (event: PolygonDrawActionCursorUpdateEvent) => void;
  100921. export type PolygonDrawActionDrawCompleteEventHandler = (event: PolygonDrawActionDrawCompleteEvent) => void;
  100922. export type PolygonDrawActionRedoEventHandler = (event: PolygonDrawActionRedoEvent) => void;
  100923. export type PolygonDrawActionUndoEventHandler = (event: PolygonDrawActionUndoEvent) => void;
  100924. export type PolygonDrawActionVertexAddEventHandler = (event: PolygonDrawActionVertexAddEvent) => void;
  100925. export type PolygonDrawActionVertexRemoveEventHandler = (event: PolygonDrawActionVertexRemoveEvent) => void;
  100926. export type PolylineDrawActionCursorUpdateEventHandler = (event: PolylineDrawActionCursorUpdateEvent) => void;
  100927. export type PolylineDrawActionDrawCompleteEventHandler = (event: PolylineDrawActionDrawCompleteEvent) => void;
  100928. export type PolylineDrawActionRedoEventHandler = (event: PolylineDrawActionRedoEvent) => void;
  100929. export type PolylineDrawActionUndoEventHandler = (event: PolylineDrawActionUndoEvent) => void;
  100930. export type PolylineDrawActionVertexAddEventHandler = (event: PolylineDrawActionVertexAddEvent) => void;
  100931. export type PolylineDrawActionVertexRemoveEventHandler = (event: PolylineDrawActionVertexRemoveEvent) => void;
  100932. export type PopupTriggerActionEventHandler = (event: PopupTriggerActionEvent) => void;
  100933. export type PopupViewModelTriggerActionEventHandler = (event: PopupViewModelTriggerActionEvent) => void;
  100934. export type PrintCompleteEventHandler = (event: PrintCompleteEvent) => void;
  100935. export type PrintSubmitEventHandler = (event: PrintSubmitEvent) => void;
  100936. export type SearchSearchBlurEventHandler = (event: SearchSearchBlurEvent) => void;
  100937. export type SearchSearchClearEventHandler = (event: SearchSearchClearEvent) => void;
  100938. export type SearchSearchCompleteEventHandler = (event: SearchSearchCompleteEvent) => void;
  100939. export type SearchSearchFocusEventHandler = (event: SearchSearchFocusEvent) => void;
  100940. export type SearchSearchStartEventHandler = (event: SearchSearchStartEvent) => void;
  100941. export type SearchSelectResultEventHandler = (event: SearchSelectResultEvent) => void;
  100942. export type SearchSuggestCompleteEventHandler = (event: SearchSuggestCompleteEvent) => void;
  100943. export type SearchSuggestStartEventHandler = (event: SearchSuggestStartEvent) => void;
  100944. export type SearchViewModelSearchClearEventHandler = (event: SearchViewModelSearchClearEvent) => void;
  100945. export type SearchViewModelSearchCompleteEventHandler = (event: SearchViewModelSearchCompleteEvent) => void;
  100946. export type SearchViewModelSearchStartEventHandler = (event: SearchViewModelSearchStartEvent) => void;
  100947. export type SearchViewModelSelectResultEventHandler = (event: SearchViewModelSelectResultEvent) => void;
  100948. export type SearchViewModelSuggestCompleteEventHandler = (event: SearchViewModelSuggestCompleteEvent) => void;
  100949. export type SearchViewModelSuggestStartEventHandler = (event: SearchViewModelSuggestStartEvent) => void;
  100950. export type SegmentDrawActionCursorUpdateEventHandler = (event: SegmentDrawActionCursorUpdateEvent) => void;
  100951. export type SegmentDrawActionDrawCompleteEventHandler = (event: SegmentDrawActionDrawCompleteEvent) => void;
  100952. export type SegmentDrawActionVertexAddEventHandler = (event: SegmentDrawActionVertexAddEvent) => void;
  100953. export type SketchCreateEventHandler = (event: SketchCreateEvent) => void;
  100954. export type SketchDeleteEventHandler = (event: SketchDeleteEvent) => void;
  100955. export type SketchRedoEventHandler = (event: SketchRedoEvent) => void;
  100956. export type SketchUndoEventHandler = (event: SketchUndoEvent) => void;
  100957. export type SketchUpdateEventHandler = (event: SketchUpdateEvent) => void;
  100958. export type SketchViewModelCreateEventHandler = (event: SketchViewModelCreateEvent) => void;
  100959. export type SketchViewModelDeleteEventHandler = (event: SketchViewModelDeleteEvent) => void;
  100960. export type SketchViewModelRedoEventHandler = (event: SketchViewModelRedoEvent) => void;
  100961. export type SketchViewModelUndoEventHandler = (event: SketchViewModelUndoEvent) => void;
  100962. export type SketchViewModelUpdateEventHandler = (event: SketchViewModelUpdateEvent) => void;
  100963. export type SliderMaxChangeEventHandler = (event: SliderMaxChangeEvent) => void;
  100964. export type SliderMaxClickEventHandler = (event: SliderMaxClickEvent) => void;
  100965. export type SliderMinChangeEventHandler = (event: SliderMinChangeEvent) => void;
  100966. export type SliderMinClickEventHandler = (event: SliderMinClickEvent) => void;
  100967. export type SliderSegmentClickEventHandler = (event: SliderSegmentClickEvent) => void;
  100968. export type SliderSegmentDragEventHandler = (event: SliderSegmentDragEvent) => void;
  100969. export type SliderThumbChangeEventHandler = (event: SliderThumbChangeEvent) => void;
  100970. export type SliderThumbClickEventHandler = (event: SliderThumbClickEvent) => void;
  100971. export type SliderThumbDragEventHandler = (event: SliderThumbDragEvent) => void;
  100972. export type SliderTickClickEventHandler = (event: SliderTickClickEvent) => void;
  100973. export type SliderTrackClickEventHandler = (event: SliderTrackClickEvent) => void;
  100974. export type SliderViewModelMaxChangeEventHandler = (event: SliderViewModelMaxChangeEvent) => void;
  100975. export type SliderViewModelMinChangeEventHandler = (event: SliderViewModelMinChangeEvent) => void;
  100976. export type SmartMappingSliderBaseMaxChangeEventHandler = (event: SmartMappingSliderBaseMaxChangeEvent) => void;
  100977. export type SmartMappingSliderBaseMinChangeEventHandler = (event: SmartMappingSliderBaseMinChangeEvent) => void;
  100978. export type SmartMappingSliderBaseSegmentDragEventHandler = (event: SmartMappingSliderBaseSegmentDragEvent) => void;
  100979. export type SmartMappingSliderBaseThumbChangeEventHandler = (event: SmartMappingSliderBaseThumbChangeEvent) => void;
  100980. export type SmartMappingSliderBaseThumbDragEventHandler = (event: SmartMappingSliderBaseThumbDragEvent) => void;
  100981. export type StreamConnectionDataReceivedEventHandler = (event: StreamConnectionDataReceivedEvent) => void;
  100982. export type StreamLayerViewDataReceivedEventHandler = (event: StreamLayerViewDataReceivedEvent) => void;
  100983. export type StreamLayerViewUpdateRateEventHandler = (event: StreamLayerViewUpdateRateEvent) => void;
  100984. export type SubtypeGroupLayerEditsEventHandler = (event: SubtypeGroupLayerEditsEvent) => void;
  100985. export type SubtypeGroupLayerLayerviewCreateErrorEventHandler = (
  100986. event: SubtypeGroupLayerLayerviewCreateErrorEvent
  100987. ) => void;
  100988. export type SubtypeGroupLayerLayerviewCreateEventHandler = (event: SubtypeGroupLayerLayerviewCreateEvent) => void;
  100989. export type SubtypeGroupLayerLayerviewDestroyEventHandler = (event: SubtypeGroupLayerLayerviewDestroyEvent) => void;
  100990. export type SubtypeGroupLayerRefreshEventHandler = (event: SubtypeGroupLayerRefreshEvent) => void;
  100991. export type TableListTriggerActionEventHandler = (event: TableListTriggerActionEvent) => void;
  100992. export type TableListViewModelTriggerActionEventHandler = (event: TableListViewModelTriggerActionEvent) => void;
  100993. export type TileLayerLayerviewCreateErrorEventHandler = (event: TileLayerLayerviewCreateErrorEvent) => void;
  100994. export type TileLayerLayerviewCreateEventHandler = (event: TileLayerLayerviewCreateEvent) => void;
  100995. export type TileLayerLayerviewDestroyEventHandler = (event: TileLayerLayerviewDestroyEvent) => void;
  100996. export type TileLayerRefreshEventHandler = (event: TileLayerRefreshEvent) => void;
  100997. export type TimeSliderTriggerActionEventHandler = (event: TimeSliderTriggerActionEvent) => void;
  100998. export type TimeSliderViewModelTriggerActionEventHandler = (event: TimeSliderViewModelTriggerActionEvent) => void;
  100999. export type TrackTrackErrorEventHandler = (event: TrackTrackErrorEvent) => void;
  101000. export type TrackTrackEventHandler = (event: TrackTrackEvent) => void;
  101001. export type TrackViewModelTrackErrorEventHandler = (event: TrackViewModelTrackErrorEvent) => void;
  101002. export type TrackViewModelTrackEventHandler = (event: TrackViewModelTrackEvent) => void;
  101003. export type UtilityNetworkTraceAddFlagCompleteEventHandler = (event: UtilityNetworkTraceAddFlagCompleteEvent) => void;
  101004. export type UtilityNetworkTraceAddFlagErrorEventHandler = (event: UtilityNetworkTraceAddFlagErrorEvent) => void;
  101005. export type UtilityNetworkTraceAddFlagEventHandler = (event: UtilityNetworkTraceAddFlagEvent) => void;
  101006. export type ViewBlurEventHandler = (event: ViewBlurEvent) => void;
  101007. export type ViewClickEventHandler = (event: ViewClickEvent) => void;
  101008. export type ViewDoubleClickEventHandler = (event: ViewDoubleClickEvent) => void;
  101009. export type ViewDragEventHandler = (event: ViewDragEvent) => void;
  101010. export type ViewFocusEventHandler = (event: ViewFocusEvent) => void;
  101011. export type ViewHoldEventHandler = (event: ViewHoldEvent) => void;
  101012. export type ViewImmediateClickEventHandler = (event: ViewImmediateClickEvent) => void;
  101013. export type ViewImmediateDoubleClickEventHandler = (event: ViewImmediateDoubleClickEvent) => void;
  101014. export type ViewKeyDownEventHandler = (event: ViewKeyDownEvent) => void;
  101015. export type ViewKeyUpEventHandler = (event: ViewKeyUpEvent) => void;
  101016. export type ViewLayerviewCreateErrorEventHandler = (event: ViewLayerviewCreateErrorEvent) => void;
  101017. export type ViewLayerviewCreateEventHandler = (event: ViewLayerviewCreateEvent) => void;
  101018. export type ViewLayerviewDestroyEventHandler = (event: ViewLayerviewDestroyEvent) => void;
  101019. export type ViewMouseWheelEventHandler = (event: ViewMouseWheelEvent) => void;
  101020. export type ViewPointerDownEventHandler = (event: ViewPointerDownEvent) => void;
  101021. export type ViewPointerEnterEventHandler = (event: ViewPointerEnterEvent) => void;
  101022. export type ViewPointerLeaveEventHandler = (event: ViewPointerLeaveEvent) => void;
  101023. export type ViewPointerMoveEventHandler = (event: ViewPointerMoveEvent) => void;
  101024. export type ViewPointerUpEventHandler = (event: ViewPointerUpEvent) => void;
  101025. export type ViewResizeEventHandler = (event: ViewResizeEvent) => void;
  101026. export type WFSLayerLayerviewCreateErrorEventHandler = (event: WFSLayerLayerviewCreateErrorEvent) => void;
  101027. export type WFSLayerLayerviewCreateEventHandler = (event: WFSLayerLayerviewCreateEvent) => void;
  101028. export type WFSLayerLayerviewDestroyEventHandler = (event: WFSLayerLayerviewDestroyEvent) => void;
  101029. export type WFSLayerRefreshEventHandler = (event: WFSLayerRefreshEvent) => void;
  101030. export type WMSLayerLayerviewCreateErrorEventHandler = (event: WMSLayerLayerviewCreateErrorEvent) => void;
  101031. export type WMSLayerLayerviewCreateEventHandler = (event: WMSLayerLayerviewCreateEvent) => void;
  101032. export type WMSLayerLayerviewDestroyEventHandler = (event: WMSLayerLayerviewDestroyEvent) => void;
  101033. export type WMSLayerRefreshEventHandler = (event: WMSLayerRefreshEvent) => void;
  101034. export namespace CIM {
  101035. /**
  101036. * Represents the properties required for authoring an Arcade expression.
  101037. *
  101038. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMRenderers.md#enumberation-ExpressionReturnType)
  101039. */
  101040. export enum ExpressionReturnType {
  101041. /**
  101042. * The return type of the expression is determined by the consumer using the expression.
  101043. */
  101044. Default = "Default",
  101045. /**
  101046. * The return type of the expression is treated as a string by all consumers.
  101047. */
  101048. String = "String",
  101049. /**
  101050. * The return type of the expression is treated as a numeric value by all consumers.
  101051. */
  101052. Numeric = "Numeric"
  101053. }
  101054. /**
  101055. * Represents 3D symbol properties, a collection of symbol properties that apply when the symbol is used in a 3D context.
  101056. *
  101057. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-AngleAlignment)
  101058. */
  101059. export enum AngleAlignment {
  101060. /**
  101061. * Points remain aligned to the display when the map is rotated.
  101062. */
  101063. Display = "Display",
  101064. /**
  101065. * Points are rotated with the map.
  101066. */
  101067. Map = "Map"
  101068. }
  101069. /**
  101070. * Represents a balloon callout. Balloon callouts are a filled background that is placed behind text. They may or may not have a leader line connecting the callout to an anchor point.
  101071. *
  101072. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-BalloonCalloutStyle)
  101073. */
  101074. export enum BalloonCalloutStyle {
  101075. /**
  101076. * Rectangle style.
  101077. */
  101078. Rectangle = "Rectangle",
  101079. /**
  101080. * Rounded rectangle style.
  101081. */
  101082. RoundedRectangle = "RoundedRectangle",
  101083. /**
  101084. * Oval style.
  101085. */
  101086. Oval = "Oval"
  101087. }
  101088. /**
  101089. * Represents a bar chart marker, a chart made of vertical bars displaying values.
  101090. *
  101091. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-BlendingMode)
  101092. */
  101093. export enum BlendingMode {
  101094. /**
  101095. * No blending.
  101096. */
  101097. None = "None",
  101098. /**
  101099. * Alpha blending.
  101100. */
  101101. Alpha = "Alpha",
  101102. /**
  101103. * Screen.
  101104. */
  101105. Screen = "Screen",
  101106. /**
  101107. * Multiply.
  101108. */
  101109. Multiply = "Multiply",
  101110. /**
  101111. * Add.
  101112. */
  101113. Add = "Add"
  101114. }
  101115. /**
  101116. * Represents a bar chart marker, a chart made of vertical bars displaying values.
  101117. *
  101118. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-BlockProgression)
  101119. */
  101120. export enum BlockProgression {
  101121. /**
  101122. * Top To Bottom.
  101123. */
  101124. TTB = "TTB",
  101125. /**
  101126. * Right To Left (vertical text).
  101127. */
  101128. RTL = "RTL",
  101129. /**
  101130. * Bottom To Top.
  101131. */
  101132. BTT = "BTT"
  101133. }
  101134. /**
  101135. * Represents a CGA attribute, the symbol attribute as specified by the CGA code in the rule package.
  101136. *
  101137. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-CGAAttributeType)
  101138. */
  101139. export enum CGAAttributeType {
  101140. /**
  101141. * Float - Attribute is a numeric attribute that is a float value
  101142. */
  101143. Float = "Float",
  101144. /**
  101145. * String - Attribute is a string
  101146. */
  101147. String = "String",
  101148. /**
  101149. * Boolean - Attribute is a boolean
  101150. */
  101151. Boolean = "Boolean"
  101152. }
  101153. /**
  101154. * Represents a vector marker clipping path.
  101155. *
  101156. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-ClippingType)
  101157. */
  101158. export enum ClippingType {
  101159. /**
  101160. * Intersect.
  101161. */
  101162. Intersect = "Intersect",
  101163. /**
  101164. * Subtract.
  101165. */
  101166. Subtract = "Subtract"
  101167. }
  101168. /**
  101169. * Represents the text part position properties on a callout part.
  101170. *
  101171. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-ExternalColorMixMode)
  101172. */
  101173. export enum ExternalColorMixMode {
  101174. /**
  101175. * Tint using external color.
  101176. */
  101177. Tint = "Tint",
  101178. /**
  101179. * Ignore external color.
  101180. */
  101181. Ignore = "Ignore",
  101182. /**
  101183. * Multiply components by components of external color.
  101184. */
  101185. Multiply = "Multiply"
  101186. }
  101187. /**
  101188. * Represents the text part position properties on a callout part.
  101189. *
  101190. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-ExtremityPlacement)
  101191. */
  101192. export enum ExtremityPlacement {
  101193. /**
  101194. * Both - marker is placed at the beginning and end of the line.
  101195. */
  101196. Both = "Both",
  101197. /**
  101198. * JustBegin - marker is placed at the beginning of the line, determined by the direction that the line was digitized.
  101199. */
  101200. JustBegin = "JustBegin",
  101201. /**
  101202. * JustEnd - marker is placed at the end of the line, determined by the direction that the line was digitized.
  101203. */
  101204. JustEnd = "JustEnd",
  101205. /**
  101206. * None - no marker is placed at either end of the marker.
  101207. */
  101208. None = "None"
  101209. }
  101210. /**
  101211. * Represents the text part position properties on a callout part.
  101212. *
  101213. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-FillMode)
  101214. */
  101215. export enum FillMode {
  101216. /**
  101217. * Mosaic fill.
  101218. */
  101219. Mosaic = "Mosaic",
  101220. /**
  101221. * Centered fill.
  101222. */
  101223. Centered = "Centered"
  101224. }
  101225. /**
  101226. * Represents the text part position properties on a callout part.
  101227. *
  101228. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-FontEffects)
  101229. */
  101230. export enum FontEffects {
  101231. /**
  101232. * Normal text.
  101233. */
  101234. Normal = "Normal",
  101235. /**
  101236. * Superscript text.
  101237. */
  101238. Superscript = "Superscript",
  101239. /**
  101240. * Subscript text
  101241. */
  101242. Subscript = "Subscript"
  101243. }
  101244. /**
  101245. * Represents the text part position properties on a callout part.
  101246. *
  101247. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-FontEncoding)
  101248. */
  101249. export enum FontEncoding {
  101250. /**
  101251. * Symbol encoding.
  101252. */
  101253. MSSymbol = "MSSymbol",
  101254. /**
  101255. * Unicode.
  101256. */
  101257. Unicode = "Unicode"
  101258. }
  101259. /**
  101260. * Represents the text part position properties on a callout part.
  101261. *
  101262. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-FontType)
  101263. */
  101264. export enum FontType {
  101265. /**
  101266. * Unspecified.
  101267. */
  101268. Unspecified = "Unspecified",
  101269. /**
  101270. * TrueType.
  101271. */
  101272. TrueType = "TrueType",
  101273. /**
  101274. * OpenType with CFF outlines.
  101275. */
  101276. PSOpenType = "PSOpenType",
  101277. /**
  101278. * OpenType with TrueType outlines.
  101279. */
  101280. TTOpenType = "TTOpenType",
  101281. /**
  101282. * Adobe Type 1.
  101283. */
  101284. Type1 = "Type1"
  101285. }
  101286. /**
  101287. * Represents the arrow geometric effect which creates a dynamic line along a line feature with an arrow of a specified arrow type and width.
  101288. *
  101289. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-GeometricEffectArrowType)
  101290. */
  101291. export enum GeometricEffectArrowType {
  101292. /**
  101293. * An open ended arrow.
  101294. */
  101295. OpenEnded = "OpenEnded",
  101296. /**
  101297. * A block arrow.
  101298. */
  101299. Block = "Block",
  101300. /**
  101301. * A crossed arrow.
  101302. */
  101303. Crossed = "Crossed"
  101304. }
  101305. /**
  101306. * Represents the donut geometric effect which creates a dynamic polygon ring of a specified width in relation to the outline of polygon features.
  101307. *
  101308. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-GeometricEffectDonutMethod)
  101309. */
  101310. export enum GeometricEffectDonutMethod {
  101311. /**
  101312. * Mitered - matches the exact shape around a convex corner of the polygon.
  101313. */
  101314. Mitered = "Mitered",
  101315. /**
  101316. * Bevelled - follows the shortest straight path across a convex corner of the polygon.
  101317. */
  101318. Bevelled = "Bevelled",
  101319. /**
  101320. * Rounded - follows a path of equal distance around a convex corner of the polygon.
  101321. */
  101322. Rounded = "Rounded",
  101323. /**
  101324. * Square - follows a straight path across the corner of a line or polygon.
  101325. */
  101326. Square = "Square",
  101327. /**
  101328. * TrueBuffer - uses the buffer algorithm to follow a path around convex corners.
  101329. */
  101330. TrueBuffer = "TrueBuffer"
  101331. }
  101332. /**
  101333. * Represents the enclosing polygon geometric effect which creates a dynamic polygon from the spatial extent of a line or polygon feature.
  101334. *
  101335. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-GeometricEffectEnclosingPolygonMethod)
  101336. */
  101337. export enum GeometricEffectEnclosingPolygonMethod {
  101338. /**
  101339. * ClosePath - for polygon input, it generates a polygon that matches the geometry of a polygon feature. For line input, it generates a polygon that connects both ends of the line to each other.
  101340. */
  101341. ClosePath = "ClosePath",
  101342. /**
  101343. * ConvexHull - for polygon input, it generates a polygon with a minimum number of sides to surround the feature. For line input, it generates a polygon that approximates the shape of the line.
  101344. */
  101345. ConvexHull = "ConvexHull",
  101346. /**
  101347. * RectangularBox - generates a polygon equal to the spatial envelope of the feature.
  101348. */
  101349. RectangularBox = "RectangularBox"
  101350. }
  101351. /**
  101352. * Represents the extension geometric effect which creates a dynamic line that is extended from either the beginning or the end of the line feature at a specified deflection angle and length.
  101353. *
  101354. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-GeometricEffectExtensionOrigin)
  101355. */
  101356. export enum GeometricEffectExtensionOrigin {
  101357. /**
  101358. * BeginningOfLine - extension is added to the end of the line.
  101359. */
  101360. BeginningOfLine = "BeginningOfLine",
  101361. /**
  101362. * EndOfLine - extension is added to the end of the line.
  101363. */
  101364. EndOfLine = "EndOfLine"
  101365. }
  101366. /**
  101367. * Represents a geometric effect which creates a localizer feather for aeronautical charts.
  101368. *
  101369. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-GeometricEffectLocalizerFeatherStyle)
  101370. */
  101371. export enum GeometricEffectLocalizerFeatherStyle {
  101372. /**
  101373. * Displays a complete localizer feather.
  101374. */
  101375. Complete = "Complete",
  101376. /**
  101377. * Displays the left side of a localizer feather.
  101378. */
  101379. Left = "Left",
  101380. /**
  101381. * Displays the right side of a localizer feather.
  101382. */
  101383. Right = "Right"
  101384. }
  101385. /**
  101386. * Represents a geometric effect which creates a hatch pattern to depict special use airspace for aeronautical charts.
  101387. *
  101388. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-GeometricEffectOffsetMethod)
  101389. */
  101390. export enum GeometricEffectOffsetMethod {
  101391. /**
  101392. * Mitered - matches the exact shape around a corner of the line or polygon.
  101393. */
  101394. Mitered = "Mitered",
  101395. /**
  101396. * Bevelled - follows the shortest straight path across a corner of the line or polygon.
  101397. */
  101398. Bevelled = "Bevelled",
  101399. /**
  101400. * Rounded - follows a path of equal distance around a corner of the line or polygon.
  101401. */
  101402. Rounded = "Rounded",
  101403. /**
  101404. * Square - follows a straight path across the corner of a line or polygon.
  101405. */
  101406. Square = "Square"
  101407. }
  101408. /**
  101409. * Represents a geometric effect which creates a hatch pattern to depict special use airspace for aeronautical charts.
  101410. *
  101411. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-GeometricEffectOffsetOption)
  101412. */
  101413. export enum GeometricEffectOffsetOption {
  101414. /**
  101415. * Fast - ignores complex geometries and applies a best fit to the symbol.
  101416. */
  101417. Fast = "Fast",
  101418. /**
  101419. * Accurate - accommodates complex geometries and applied a true fit to the symbol.
  101420. */
  101421. Accurate = "Accurate"
  101422. }
  101423. /**
  101424. * Represents the offset tangent geometric effect which creates a dynamic line along a line feature offset in the direction defined by either the beginning or the end of the line.
  101425. *
  101426. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-GeometricEffectOffsetTangentMethod)
  101427. */
  101428. export enum GeometricEffectOffsetTangentMethod {
  101429. /**
  101430. * BeginningOfLine - the tangent offset is applied from the beginning of the line.
  101431. */
  101432. BeginningOfLine = "BeginningOfLine",
  101433. /**
  101434. * EndOfLine - the tangent offset is applied from the end of the line.
  101435. */
  101436. EndOfLine = "EndOfLine"
  101437. }
  101438. /**
  101439. * Represents the wave geometric effect which creates a dynamic line or polygon along a feature with a repeating wave pattern.
  101440. *
  101441. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-GeometricEffectWaveform)
  101442. */
  101443. export enum GeometricEffectWaveform {
  101444. /**
  101445. * Sinus - displays a sinusoidal curve.
  101446. */
  101447. Sinus = "Sinus",
  101448. /**
  101449. * Square - displays a three-sided rectangular shape.
  101450. */
  101451. Square = "Square",
  101452. /**
  101453. * Triangle - displays a two-sided triangular shape.
  101454. */
  101455. Triangle = "Triangle",
  101456. /**
  101457. * Random - displays a sine curve with random variations in the period and amplitude
  101458. */
  101459. Random = "Random"
  101460. }
  101461. /**
  101462. * Represents the wave geometric effect which creates a dynamic line or polygon along a feature with a repeating wave pattern.
  101463. *
  101464. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-GlyphHinting)
  101465. */
  101466. export enum GlyphHinting {
  101467. /**
  101468. * No glyph hinting.
  101469. */
  101470. None = "None",
  101471. /**
  101472. * Default glyph hinting according to the font's settings.
  101473. */
  101474. Default = "Default",
  101475. /**
  101476. * Force glyph hinting.
  101477. */
  101478. Force = "Force"
  101479. }
  101480. /**
  101481. * Represents the wave geometric effect which creates a dynamic line or polygon along a feature with a repeating wave pattern.
  101482. *
  101483. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-GradientAlignment)
  101484. */
  101485. export enum GradientAlignment {
  101486. /**
  101487. * Buffered - Distributes the color ramp along the line's geometry from the outside in (similar to the effect of creating a buffer of the line, then using the "buffer" fill type).
  101488. */
  101489. Buffered = "Buffered",
  101490. /**
  101491. * Left - Progresses the color ramp from the line's centerline to the outside edge on the left. The gradient will follow any curvature in the line's geometry.
  101492. */
  101493. Left = "Left",
  101494. /**
  101495. * Right - Progresses the color ramp from the line's centerline to the outside edge on the right. The gradient will follow any curvature in the line's geometry.
  101496. */
  101497. Right = "Right",
  101498. /**
  101499. * Along line - Distributes the color ramp linearly along the line, following the curvature of the line.
  101500. */
  101501. AlongLine = "AlongLine"
  101502. }
  101503. /**
  101504. * Represents a gradient fill which fills polygonal geometry with a specified color scheme.
  101505. *
  101506. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-GradientFillMethod)
  101507. */
  101508. export enum GradientFillMethod {
  101509. /**
  101510. * Linear - Change from one color to the next is linear across the geometry.
  101511. */
  101512. Linear = "Linear",
  101513. /**
  101514. * Rectangular - Change from one color to the next is rectangular, from the extent of the geometry.
  101515. */
  101516. Rectangular = "Rectangular",
  101517. /**
  101518. * Circular - Change from one color to the next is circular, from the extent of the geometry
  101519. */
  101520. Circular = "Circular",
  101521. /**
  101522. * Buffered - Color changes based on an internal buffering of the geometry outline
  101523. */
  101524. Buffered = "Buffered"
  101525. }
  101526. /**
  101527. * Represents a gradient stroke which draws linear geometry with a specified color scheme.
  101528. *
  101529. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-GradientStrokeType)
  101530. */
  101531. export enum GradientStrokeType {
  101532. /**
  101533. * Discrete gradient types have distinct lines of separation between each color.
  101534. */
  101535. Discrete = "Discrete",
  101536. /**
  101537. * Continuous gradients vary continuously along the color change with no distinct boundary between the colors.
  101538. */
  101539. Continuous = "Continuous"
  101540. }
  101541. /**
  101542. * Represents a hatch fill which fills polygonal geometry with a uniform series of parallel line symbols.
  101543. *
  101544. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-HorizontalAlignment)
  101545. */
  101546. export enum HorizontalAlignment {
  101547. /**
  101548. * Left aligned.
  101549. */
  101550. Left = "Left",
  101551. /**
  101552. * Right aligned.
  101553. */
  101554. Right = "Right",
  101555. /**
  101556. * Centered.
  101557. */
  101558. Center = "Center",
  101559. /**
  101560. * Justified alignment.
  101561. */
  101562. Justify = "Justify"
  101563. }
  101564. /**
  101565. * Represents a hatch fill which fills polygonal geometry with a uniform series of parallel line symbols.
  101566. *
  101567. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-LeaderLineStyle)
  101568. */
  101569. export enum LeaderLineStyle {
  101570. /**
  101571. * The line callout leader is a single line originating from the closest corner of the text box with the gap applied. If the callout has an accent bar it is connected to the closest point at the either top or bottom of the accent bar.
  101572. */
  101573. Base = "Base",
  101574. /**
  101575. * The line callout leader is a single line originating from the midpoint of the left or right side of the text box with the gap applied or from the midpoint of the accent bar if the callout has one.
  101576. */
  101577. MidPoint = "MidPoint",
  101578. /**
  101579. * The line callout leader is a 3-point line originating from the midpoint of the left or right side of the text box with the gap applied or the midpoint of the accent bar if the callout has one.
  101580. */
  101581. ThreePoint = "ThreePoint",
  101582. /**
  101583. * The line callout leader is a 4-point line originating from the midpoint of the left or right side of the text box with the gap applied or the midpoint of the accent bar if the callout has one.
  101584. */
  101585. FourPoint = "FourPoint",
  101586. /**
  101587. * The line callout draws a line that connects to the closest of the four corners of the text with the gap applied. If the callout has an accent bar it is connected to the closest point at either the top or bottom of the accent bar. Additionally, either and underline or an "overline" is drawn along the closest side (bottom or top) of the text.
  101588. */
  101589. Underline = "Underline",
  101590. /**
  101591. * The line callout leader is curved (clockwise) from the anchor point to the closest corner of the text box with the gap applied. If the callout has an accent bar it is connected to the closest point at the either top or bottom of the accent bar.
  101592. */
  101593. CircularCW = "CircularCW",
  101594. /**
  101595. * The line callout leader is curved (counter-clockwise) from the anchor point to the closest corner of the text box with the gap applied. If the callout has an accent bar it is connected to the closest point at the either top or bottom of the accent bar.
  101596. */
  101597. CircularCCW = "CircularCCW"
  101598. }
  101599. /**
  101600. * Represents a hatch fill which fills polygonal geometry with a uniform series of parallel line symbols.
  101601. *
  101602. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-LineCapStyle)
  101603. */
  101604. export enum LineCapStyle {
  101605. /**
  101606. * Stroke ends in butt caps.
  101607. */
  101608. Butt = "Butt",
  101609. /**
  101610. * Stroke ends in round caps.
  101611. */
  101612. Round = "Round",
  101613. /**
  101614. * Stroke ends in square caps.
  101615. */
  101616. Square = "Square"
  101617. }
  101618. /**
  101619. * Represents a hatch fill which fills polygonal geometry with a uniform series of parallel line symbols.
  101620. *
  101621. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-LineDashEnding)
  101622. */
  101623. export enum LineDashEnding {
  101624. /**
  101625. * No Constraint - no constraint is applied to how the dash is placed.
  101626. */
  101627. NoConstraint = "NoConstraint",
  101628. /**
  101629. * Half Pattern - a half dash will be placed on either side of control points.
  101630. */
  101631. HalfPattern = "HalfPattern",
  101632. /**
  101633. * Half Gap - a space equal to the half the gap value will be placed on either side of control points.
  101634. */
  101635. HalfGap = "HalfGap",
  101636. /**
  101637. * Full Pattern - a full dash will be placed on either side of control points.
  101638. */
  101639. FullPattern = "FullPattern",
  101640. /**
  101641. * Full Gap - a space equal to the gap value will be placed on either side of control points.
  101642. */
  101643. FullGap = "FullGap",
  101644. /**
  101645. * Custom - the pattern is fit to the length of the feature by adjusting the gaps slightly.
  101646. */
  101647. Custom = "Custom"
  101648. }
  101649. /**
  101650. * Represents a hatch fill which fills polygonal geometry with a uniform series of parallel line symbols.
  101651. *
  101652. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-LineDecorationStyle)
  101653. */
  101654. export enum LineDecorationStyle {
  101655. /**
  101656. * No decoration.
  101657. */
  101658. None = "None",
  101659. /**
  101660. * The decoration is defined in the Layers property as a set of SymbolReferences.
  101661. */
  101662. Custom = "Custom",
  101663. /**
  101664. * A circle is added at the end of the line.
  101665. */
  101666. Circle = "Circle",
  101667. /**
  101668. * An open arrow is added to the end of the line.
  101669. */
  101670. OpenArrow = "OpenArrow",
  101671. /**
  101672. * A closed arrow is added to the end of the line.
  101673. */
  101674. ClosedArrow = "ClosedArrow",
  101675. /**
  101676. * A diamond is added at the end of the line.
  101677. */
  101678. Diamond = "Diamond"
  101679. }
  101680. /**
  101681. * Represents a hatch fill which fills polygonal geometry with a uniform series of parallel line symbols.
  101682. *
  101683. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-LineGapType)
  101684. */
  101685. export enum LineGapType {
  101686. /**
  101687. * Extra Leading - Adds the specified value to the line spacing that accommodates the largest font in the line
  101688. */
  101689. ExtraLeading = "ExtraLeading",
  101690. /**
  101691. * Multiple - Sets the line spacing based on a multiple of the line.
  101692. */
  101693. Multiple = "Multiple",
  101694. /**
  101695. * Exact - Sets a fixed line spacing
  101696. */
  101697. Exact = "Exact"
  101698. }
  101699. /**
  101700. * Represents a hatch fill which fills polygonal geometry with a uniform series of parallel line symbols.
  101701. *
  101702. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-LineJoinStyle)
  101703. */
  101704. export enum LineJoinStyle {
  101705. /**
  101706. * The stroke join is beveled.
  101707. */
  101708. Bevel = "Bevel",
  101709. /**
  101710. * The line join is round.
  101711. */
  101712. Round = "Round",
  101713. /**
  101714. * The line join is mitered.
  101715. */
  101716. Miter = "Miter"
  101717. }
  101718. /**
  101719. * Represents marker placement polygon center which defines how a single marker will be placed within the polygon.
  101720. *
  101721. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-MarkerPlacementType)
  101722. */
  101723. export enum MarkerPlacementType {
  101724. /**
  101725. * Place inside the polygon.
  101726. */
  101727. InsidePolygon = "InsidePolygon",
  101728. /**
  101729. * Place inside the polygon at the center.
  101730. */
  101731. PolygonCenter = "PolygonCenter",
  101732. /**
  101733. * Place randomly inside the polygon.
  101734. */
  101735. RandomlyInsidePolygon = "RandomlyInsidePolygon"
  101736. }
  101737. /**
  101738. * Represents marker placement polygon center which defines how a single marker will be placed within the polygon.
  101739. *
  101740. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-MaterialMode)
  101741. */
  101742. export enum MaterialMode {
  101743. /**
  101744. * Tint materials and textures with color property.
  101745. */
  101746. Tint = "Tint",
  101747. /**
  101748. * Replace materials and textures with color property.
  101749. */
  101750. Replace = "Replace",
  101751. /**
  101752. * Multiply materials and textures with color property.
  101753. */
  101754. Multiply = "Multiply"
  101755. }
  101756. /**
  101757. * Represents a pie chart marker which is a marker that draws numeric values arranged in a circle.
  101758. *
  101759. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-PlacementClip)
  101760. */
  101761. export enum PlacementClip {
  101762. /**
  101763. * Markers are clipped at the boundary of the polygon.
  101764. */
  101765. ClipAtBoundary = "ClipAtBoundary",
  101766. /**
  101767. * Markers are not drawn if their center falls outside of the polygon.
  101768. */
  101769. RemoveIfCenterOutsideBoundary = "RemoveIfCenterOutsideBoundary",
  101770. /**
  101771. * Markers are not drawn if they touch the boundary of the polygon.
  101772. */
  101773. DoNotTouchBoundary = "DoNotTouchBoundary",
  101774. /**
  101775. * Markers are not clipped and may extend past the boundary of the polygon.
  101776. */
  101777. DoNotClip = "DoNotClip"
  101778. }
  101779. /**
  101780. * Represents a pie chart marker which is a marker that draws numeric values arranged in a circle.
  101781. *
  101782. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-PlacementEndings)
  101783. */
  101784. export enum PlacementEndings {
  101785. /**
  101786. * No constraint on how the markers are placed.
  101787. */
  101788. NoConstraint = "NoConstraint",
  101789. /**
  101790. * A marker is placed at the control point.
  101791. */
  101792. WithMarkers = "WithMarkers",
  101793. /**
  101794. * A space equal to the placement template will be placed at the control point.
  101795. */
  101796. WithFullGap = "WithFullGap",
  101797. /**
  101798. * A space equal to half the placement template will be placed at the control point.
  101799. */
  101800. WithHalfGap = "WithHalfGap",
  101801. /**
  101802. * Will fit the pattern to the length of the features by adjusting the gaps slightly.
  101803. */
  101804. Custom = "Custom"
  101805. }
  101806. /**
  101807. * Represents a pie chart marker which is a marker that draws numeric values arranged in a circle.
  101808. *
  101809. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-PlacementGridType)
  101810. */
  101811. export enum PlacementGridType {
  101812. /**
  101813. * Markers are placed on a uniform grid.
  101814. */
  101815. Fixed = "Fixed",
  101816. /**
  101817. * Markers are placed randomly in the polygon.
  101818. */
  101819. Random = "Random",
  101820. /**
  101821. * Markers are placed randomly with a fixed quantity (dot density).
  101822. */
  101823. RandomFixedQuantity = "RandomFixedQuantity"
  101824. }
  101825. /**
  101826. * Represents a pie chart marker which is a marker that draws numeric values arranged in a circle.
  101827. *
  101828. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-PlacementOnLineRelativeTo)
  101829. */
  101830. export enum PlacementOnLineRelativeTo {
  101831. /**
  101832. * Marker is placed in the middle of the line.
  101833. */
  101834. LineMiddle = "LineMiddle",
  101835. /**
  101836. * Marker is placed at the beginning of the line.
  101837. */
  101838. LineBeginning = "LineBeginning",
  101839. /**
  101840. * Marker is placed at the end of the line.
  101841. */
  101842. LineEnd = "LineEnd",
  101843. /**
  101844. * Marker is at the midpoint of each segment in a line feature.
  101845. */
  101846. SegmentMidpoint = "SegmentMidpoint"
  101847. }
  101848. /**
  101849. * Represents a pie chart marker which is a marker that draws numeric values arranged in a circle.
  101850. *
  101851. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-PlacementPolygonCenterMethod)
  101852. */
  101853. export enum PlacementPolygonCenterMethod {
  101854. /**
  101855. * Place on the polygon.
  101856. */
  101857. OnPolygon = "OnPolygon",
  101858. /**
  101859. * The centroid of the polygon is used.
  101860. */
  101861. CenterOfMass = "CenterOfMass",
  101862. /**
  101863. * The bounding box of the polygon is used.
  101864. */
  101865. BoundingBoxCenter = "BoundingBoxCenter"
  101866. }
  101867. /**
  101868. * Represents a pie chart marker which is a marker that draws numeric values arranged in a circle.
  101869. *
  101870. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-PlacementRandomlyAlongLineRandomization)
  101871. */
  101872. export enum PlacementRandomlyAlongLineRandomization {
  101873. /**
  101874. * A low amount of randomness is applied
  101875. */
  101876. Low = "Low",
  101877. /**
  101878. * A medium amount of randomness is applied
  101879. */
  101880. Medium = "Medium",
  101881. /**
  101882. * A high amount of randomness is applied
  101883. */
  101884. High = "High"
  101885. }
  101886. /**
  101887. * Represents a pie chart marker which is a marker that draws numeric values arranged in a circle.
  101888. *
  101889. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-PlacementStepPosition)
  101890. */
  101891. export enum PlacementStepPosition {
  101892. /**
  101893. * The marker center.
  101894. */
  101895. MarkerCenter = "MarkerCenter",
  101896. /**
  101897. * The marker bounds.
  101898. */
  101899. MarkerBounds = "MarkerBounds"
  101900. }
  101901. /**
  101902. * Represents a point symbol callout which draws a point symbol as the background and a line symbol for leaders. Often used for highway shields.
  101903. *
  101904. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-PointSymbolCalloutScale)
  101905. */
  101906. export enum PointSymbolCalloutScale {
  101907. /**
  101908. * No scaling.
  101909. */
  101910. None = "None",
  101911. /**
  101912. * Uniform scaling.
  101913. */
  101914. PropUniform = "PropUniform",
  101915. /**
  101916. * Non-uniform scaling.
  101917. */
  101918. PropNonuniform = "PropNonuniform",
  101919. /**
  101920. * Uniform scaling.
  101921. */
  101922. DifUniform = "DifUniform",
  101923. /**
  101924. * Non-uniform scaling.
  101925. */
  101926. DifNonuniform = "DifNonuniform"
  101927. }
  101928. /**
  101929. * Represents shape vertices.
  101930. *
  101931. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-Simple3DLineStyle)
  101932. */
  101933. export enum Simple3DLineStyle {
  101934. /**
  101935. * Stroke draws as a tube where the width determines the diameter of the tube.
  101936. */
  101937. Tube = "Tube",
  101938. /**
  101939. * Stroke draws flat upon the surface.
  101940. */
  101941. Strip = "Strip",
  101942. /**
  101943. * Stroke is vertically oriented where Width determines the height of the wall.
  101944. */
  101945. Wall = "Wall"
  101946. }
  101947. /**
  101948. * Represents a simple line callout for drawing basic leader lines.
  101949. *
  101950. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-SizeVariationMethod)
  101951. */
  101952. export enum SizeVariationMethod {
  101953. /**
  101954. * Change in size is applied randomly.
  101955. */
  101956. Random = "Random",
  101957. /**
  101958. * Markers are drawn with a pattern where the markers increase in size.
  101959. */
  101960. Increasing = "Increasing",
  101961. /**
  101962. * Markers are drawn in a pattern where the markers decrease in size.
  101963. */
  101964. Decreasing = "Decreasing",
  101965. /**
  101966. * Markers are drawn in a pattern where the size increase and then decrease.
  101967. */
  101968. IncreasingThenDecreasing = "IncreasingThenDecreasing"
  101969. }
  101970. /**
  101971. * Represents a stacked bar chart marker which is a chart made of vertical stacked bars displaying values.
  101972. *
  101973. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-SymbolUnits)
  101974. */
  101975. export enum SymbolUnits {
  101976. /**
  101977. * Relative units.
  101978. */
  101979. Relative = "Relative",
  101980. /**
  101981. * Absolute units.
  101982. */
  101983. Absolute = "Absolute"
  101984. }
  101985. /**
  101986. * Represents a stacked bar chart marker which is a chart made of vertical stacked bars displaying values.
  101987. *
  101988. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-TextCase)
  101989. */
  101990. export enum TextCase {
  101991. /**
  101992. * Text is proper/mixed case.
  101993. */
  101994. Normal = "Normal",
  101995. /**
  101996. * Text is all lower case.
  101997. */
  101998. LowerCase = "LowerCase",
  101999. /**
  102000. * Text is all upper case.
  102001. */
  102002. Allcaps = "Allcaps"
  102003. }
  102004. /**
  102005. * Represents a text margin which defines the margin to apply around text.
  102006. *
  102007. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-TextReadingDirection)
  102008. */
  102009. export enum TextReadingDirection {
  102010. /**
  102011. * Text is drawn from left-to-right.
  102012. */
  102013. LTR = "LTR",
  102014. /**
  102015. * Text is drawn from right-to-left.
  102016. */
  102017. RTL = "RTL"
  102018. }
  102019. /**
  102020. * Represents a text symbol which is used to draw text graphics, bleeds, and annotation. Text symbols do not contain any symbol layers but can have callouts.
  102021. *
  102022. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-TextureFilter)
  102023. */
  102024. export enum TextureFilter {
  102025. /**
  102026. * Low draft quality.
  102027. */
  102028. Draft = "Draft",
  102029. /**
  102030. * Higher quality, recommended for pictures.
  102031. */
  102032. Picture = "Picture",
  102033. /**
  102034. * Higher quality, recommended when it is important to preserve edges for zoomed in images.
  102035. */
  102036. Text = "Text"
  102037. }
  102038. /**
  102039. * Represents a vector marker which can represent vector graphics. It's constructed from MarkerGraphics which are geometries and symbols used as building blocks for the marker.
  102040. *
  102041. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-VerticalAlignment)
  102042. */
  102043. export enum VerticalAlignment {
  102044. /**
  102045. * Top of the highest ascender in the text symbol is used to align the text.
  102046. */
  102047. Top = "Top",
  102048. /**
  102049. * Text is centered on the geometry.
  102050. */
  102051. Center = "Center",
  102052. /**
  102053. * Text is aligned so that the geometry lines up with the baseline of the text symbol. Descenders will go past the baseline.
  102054. */
  102055. Baseline = "Baseline",
  102056. /**
  102057. * Bottom of the lowest descender is used to align the text.
  102058. */
  102059. Bottom = "Bottom"
  102060. }
  102061. /**
  102062. * Represents a vector marker which can represent vector graphics. It's constructed from MarkerGraphics which are geometries and symbols used as building blocks for the marker.
  102063. *
  102064. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-VerticalGlyphOrientation)
  102065. */
  102066. export enum VerticalGlyphOrientation {
  102067. /**
  102068. * Align right.
  102069. */
  102070. Right = "Right",
  102071. /**
  102072. * Align upright.
  102073. */
  102074. Upright = "Upright"
  102075. }
  102076. /**
  102077. * Represents a water fill which fills polygonal geometry with animated water.
  102078. *
  102079. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-WaterbodySize)
  102080. */
  102081. export enum WaterbodySize {
  102082. /**
  102083. * Small water body.
  102084. */
  102085. Small = "Small",
  102086. /**
  102087. * Medium water body.
  102088. */
  102089. Medium = "Medium",
  102090. /**
  102091. * Large water body.
  102092. */
  102093. Large = "Large"
  102094. }
  102095. /**
  102096. * Represents a water fill which fills polygonal geometry with animated water.
  102097. *
  102098. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#enumberation-WaveStrength)
  102099. */
  102100. export enum WaveStrength {
  102101. /**
  102102. * Calm glassy water with no waves.
  102103. */
  102104. Calm = "Calm",
  102105. /**
  102106. * Rippled water.
  102107. */
  102108. Rippled = "Rippled",
  102109. /**
  102110. * Slightly wavy water.
  102111. */
  102112. Slight = "Slight",
  102113. /**
  102114. * Moderately wavy water.
  102115. */
  102116. Moderate = "Moderate"
  102117. }
  102118. /**
  102119. * Relative to the ground.
  102120. *
  102121. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMEnumerations.md#enumberation-BillboardMode)
  102122. */
  102123. export enum BillboardMode {
  102124. /**
  102125. * Not billboarded.
  102126. */
  102127. None = "None",
  102128. /**
  102129. * The symbol always faces toward the viewer as though spinning on a vertical signpost. Viewed from above, the symbol does not face you; you see the top of the symbol.
  102130. */
  102131. SignPost = "SignPost",
  102132. /**
  102133. * The symbol always faces the viewer directly, regardless of view angle.
  102134. */
  102135. FaceNearPlane = "FaceNearPlane"
  102136. }
  102137. /**
  102138. * Relative to the ground.
  102139. *
  102140. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMEnumerations.md#enumberation-DominantSizeAxis)
  102141. */
  102142. export enum DominantSizeAxis {
  102143. /**
  102144. * Dominant on the Z axis.
  102145. */
  102146. Z = "Z",
  102147. /**
  102148. * Dominant on the X axis.
  102149. */
  102150. X = "X",
  102151. /**
  102152. * Dominant on the Y axis.
  102153. */
  102154. Y = "Y"
  102155. }
  102156. /**
  102157. * Relative to the ground.
  102158. *
  102159. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMEnumerations.md#enumberation-GradientStrokeMethod)
  102160. */
  102161. export enum GradientStrokeMethod {
  102162. /**
  102163. * A gradient across the line.
  102164. */
  102165. AcrossLine = "AcrossLine",
  102166. /**
  102167. * A gradient along the line.
  102168. */
  102169. AlongLine = "AlongLine"
  102170. }
  102171. /**
  102172. * Relative to the ground.
  102173. *
  102174. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMEnumerations.md#enumberation-RotationOrder)
  102175. */
  102176. export enum RotationOrder {
  102177. /**
  102178. * Rotate in XYZ order.
  102179. */
  102180. XYZ = "XYZ",
  102181. /**
  102182. * Rotate in ZYX order.
  102183. */
  102184. ZXY = "ZXY",
  102185. /**
  102186. * Rotate in YXZ order.
  102187. */
  102188. YXZ = "YXZ"
  102189. }
  102190. /**
  102191. * Represents the properties required for authoring an Arcade expression.
  102192. *
  102193. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMRenderers.md#CIMExpressionInfo)
  102194. */
  102195. export interface CIMExpressionInfo {
  102196. type: "CIMExpressionInfo";
  102197. /**
  102198. * The human readable text that describes the expression.
  102199. */
  102200. title?: string;
  102201. /**
  102202. * The Arcade expression used to evaluate and return the value that a property expects.
  102203. */
  102204. expression?: string;
  102205. /**
  102206. * The Name of the expression.
  102207. */
  102208. name?: string;
  102209. /**
  102210. * The ReturnType of the expression.
  102211. */
  102212. returnType?: keyof typeof ExpressionReturnType;
  102213. }
  102214. /**
  102215. * Represents a primitive override.
  102216. *
  102217. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMRenderers.md#CIMPrimitiveOverride)
  102218. */
  102219. export interface CIMPrimitiveOverride {
  102220. type: "CIMPrimitiveOverride";
  102221. /**
  102222. * The primitive name this override applies to.
  102223. */
  102224. primitiveName?: string;
  102225. /**
  102226. * The property name in the primitive this override applies to.
  102227. */
  102228. propertyName?: string;
  102229. /**
  102230. * The expression.
  102231. */
  102232. expression?: string;
  102233. /**
  102234. * ExpressionInfo that contains the Arcade expression that returns value as a number or a string depending on the PropertyName.
  102235. */
  102236. valueExpressionInfo?: CIMExpressionInfo;
  102237. }
  102238. /**
  102239. * Represents the scale dependent size variations for a symbol reference. Applies to point symbols, line symbols and the outline of polygon symbols. When the symbol reference is rendered at an intermediate scale a linearly scaled size is used.
  102240. *
  102241. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMRenderers.md#CIMScaleDependentSizeVariation)
  102242. */
  102243. export interface CIMScaleDependentSizeVariation {
  102244. type: "CIMScaleDependentSizeVariation";
  102245. /**
  102246. * The scale the size is associated with.
  102247. */
  102248. scale?: number;
  102249. /**
  102250. * The size for the associated scale.
  102251. */
  102252. size?: number;
  102253. }
  102254. /**
  102255. * Represents a symbol reference. Symbol references currently store the symbol in-line in the symbol property. Overrides here are used primarily by renderers to pass overrides through the drawing pipeline.
  102256. *
  102257. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMRenderers.md#CIMSymbolReference)
  102258. */
  102259. export interface CIMSymbolReference {
  102260. type: "CIMSymbolReference";
  102261. /**
  102262. * The primitive overrides. Typically set by renderers at draw time.
  102263. */
  102264. primitiveOverrides?: CIMPrimitiveOverride[];
  102265. /**
  102266. * The style path. Reserved for future use.
  102267. */
  102268. stylePath?: string;
  102269. /**
  102270. * The symbol.
  102271. */
  102272. symbol?: CIMSymbolType;
  102273. /**
  102274. * The symbol name.
  102275. */
  102276. symbolName?: string;
  102277. /**
  102278. * The minimum scale range the symbol reference should be displayed at.
  102279. */
  102280. minScale?: number;
  102281. /**
  102282. * The maximum scale range the symbol reference should be displayed at.
  102283. */
  102284. maxScale?: number;
  102285. /**
  102286. * An array of scale dependent sizes.
  102287. */
  102288. scaleDependentSizeVariation?: CIMScaleDependentSizeVariation[];
  102289. /**
  102290. * The minimum distance at which symbols are visible. Objects closer than this don't get rendered.
  102291. */
  102292. minDistance?: number;
  102293. /**
  102294. * The maximum distance at which symbols are visible. Objects beyond this point don't get rendered.
  102295. */
  102296. maxDistance?: number;
  102297. }
  102298. /**
  102299. * Represents 3D symbol properties, a collection of symbol properties that apply when the symbol is used in a 3D context.
  102300. *
  102301. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIM3DSymbolProperties)
  102302. */
  102303. export interface CIM3DSymbolProperties {
  102304. type: "CIM3DSymbolProperties";
  102305. /**
  102306. * The dominant size axis.
  102307. */
  102308. dominantSizeAxis3D?: keyof typeof DominantSizeAxis;
  102309. /**
  102310. * The rotation order 3D.
  102311. */
  102312. rotationOrder3D?: keyof typeof RotationOrder;
  102313. /**
  102314. * The scale Z.
  102315. */
  102316. scaleZ?: number;
  102317. /**
  102318. * The scale Y.
  102319. */
  102320. scaleY?: number;
  102321. }
  102322. /**
  102323. * CIMCalloutBase
  102324. *
  102325. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMCallout)
  102326. */
  102327. export interface CIMCalloutBase {
  102328. type: string;
  102329. /**
  102330. * The leader tolerance which is the closest distance (in points) to the text the anchor point can be for the callout to draw.
  102331. */
  102332. leaderTolerance?: number;
  102333. /**
  102334. * The leader offset which is an offset value defining the distance (in points) between the anchor point and the beginning of the drawn leader.
  102335. */
  102336. leaderOffset?: number;
  102337. }
  102338. /**
  102339. * CIMLineCallout
  102340. *
  102341. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMLineCallout)
  102342. */
  102343. export interface CIMLineCallout extends CIMCalloutBase {
  102344. /**
  102345. * The line symbol to draw leaders with.
  102346. */
  102347. leaderLineSymbol?: CIMLineSymbol;
  102348. /**
  102349. * The gap (in points) between the point symbol and the beginning of the leader line.
  102350. */
  102351. gap?: number;
  102352. /**
  102353. * The style of line to generate when a Point leader is drawn defined by an enumeration value. Line leaders will always be drawn with their own geometry.
  102354. */
  102355. lineStyle?: keyof typeof LeaderLineStyle;
  102356. }
  102357. /**
  102358. * CIMSymbolLayerBase
  102359. *
  102360. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMSymbolLayer)
  102361. */
  102362. export interface CIMSymbolLayerBase {
  102363. type: string;
  102364. /**
  102365. * Whether the geometric effects that are applied to the symbol layer. Effects dynamically alter the feature geometry when the symbology is applied. Multiple effects applied to a symbol layer are rendered sequentially.
  102366. */
  102367. effects?: CIMGeometricEffectType[];
  102368. /**
  102369. * A value indicating whether the symbol layer is visible. The symbol layer draws only when enabled. Currently, an invisible layer is not considered in any transformations when in a 3D context.
  102370. */
  102371. enable?: boolean;
  102372. /**
  102373. * The internal name of the symbol layer used for symbol level drawing.
  102374. */
  102375. name?: string;
  102376. /**
  102377. * A value indicating whether the color set at the basic properties level is applied to the symbol layer. If the symbol layer is color locked then changes made to the color in the basic properties will not be applied to the symbol layer.
  102378. */
  102379. colorLocked?: boolean;
  102380. /**
  102381. * The primitive name.
  102382. */
  102383. primitiveName?: string;
  102384. /**
  102385. * A value indicating whether or not the symbol layer should overprint in press printing.
  102386. */
  102387. overprint?: boolean;
  102388. }
  102389. /**
  102390. * CIMMarker
  102391. *
  102392. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMMarker)
  102393. */
  102394. export interface CIMMarker extends CIMSymbolLayerBase {
  102395. /**
  102396. * The specified location where all transformation property operations originate.
  102397. */
  102398. anchorPoint?: ExternalReferencePoint;
  102399. /**
  102400. * A value which specifies if the anchor point location is considered a percentage of the size or as an absolute distance.
  102401. */
  102402. anchorPointUnits?: keyof typeof SymbolUnits;
  102403. /**
  102404. * The angle the marker is rotated around the X axis. This type of rotation is also referred to as tilt and is only applied in 3D. The order of how this is applied with respect to other rotations depends on the RotationOrder3D. The name in the user interface is Tilt.
  102405. */
  102406. angleX?: number;
  102407. /**
  102408. * The angle the marker is rotated around the Y axis. This type of rotation is also referred to as roll and is only applied in 3D. The order of how this is applied with respect to other rotations depends on the RotationOrder3D. The name in the user interface is Roll.
  102409. */
  102410. angleY?: number;
  102411. /**
  102412. * Which axis is considered as the Size in 3D. Only applicable when the marker layer is a 3DShapeMarker.
  102413. */
  102414. dominantSizeAxis3D?: keyof typeof DominantSizeAxis;
  102415. /**
  102416. * The value the marker is moved along the X axis from the anchor point. This is applied after all rotation, as opposed to anchor point which is applied before the rotation.
  102417. */
  102418. offsetX?: number;
  102419. /**
  102420. * The value the marker is moved along the Y axis from the anchor point. This is applied after all rotation, as opposed to anchor point which is applied before the rotation.
  102421. */
  102422. offsetY?: number;
  102423. /**
  102424. * The value the marker is moved along the Z axis from the anchor point. This is applied after all rotation, as opposed to anchor point which is applied before the rotation.
  102425. */
  102426. offsetZ?: number;
  102427. /**
  102428. * A value indicating whether the rotation is applied clockwise or counterclockwise to the marker layer.
  102429. */
  102430. rotateClockwise?: boolean;
  102431. /**
  102432. * The angle that the marker is rotated around the anchor point, in degrees.
  102433. */
  102434. rotation?: number;
  102435. /**
  102436. * The height of the marker. Modifying Size changes the marker's height to the specified size and the width is updated proportionally.
  102437. */
  102438. size?: number;
  102439. /**
  102440. * The billboard mode of the marker.
  102441. */
  102442. billboardMode3D?: keyof typeof BillboardMode;
  102443. /**
  102444. * Marker placements which determine how markers are placed along a line or within a polygon.
  102445. */
  102446. markerPlacement?: CIMMarkerPlacementType;
  102447. }
  102448. /**
  102449. * Represents a CGA attribute, the symbol attribute as specified by the CGA code in the rule package.
  102450. *
  102451. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMCGAAttribute)
  102452. */
  102453. export interface CIMCGAAttribute {
  102454. type: "CIMCGAAttribute";
  102455. /**
  102456. * The name.
  102457. */
  102458. name?: string;
  102459. /**
  102460. * The CGA attribute type.
  102461. */
  102462. CGAAttributeType?: keyof typeof CGAAttributeType;
  102463. /**
  102464. * The value.
  102465. */
  102466. value?: any;
  102467. }
  102468. /**
  102469. * Represents a character marker. The shape of a marker is defined by a glyph in a font. The marker is drawn using the specified size and color. Each marker has a defined frame around the glyph that is considered when the size is applied. As a result, character markers of the same size may appear different sizes if the glyphs frames are different sizes.
  102470. *
  102471. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMCharacterMarker)
  102472. */
  102473. export interface CIMCharacterMarker extends CIMMarker {
  102474. type: "CIMCharacterMarker";
  102475. /**
  102476. * The Unicode decimal value for the individual glyph of the font that defines the shape of the marker.
  102477. */
  102478. characterIndex?: number;
  102479. /**
  102480. * The depth of the marker when drawn in 3D.
  102481. */
  102482. depth3D?: number;
  102483. /**
  102484. * The font family name of the font. e.g. Comic Sans.
  102485. */
  102486. fontFamilyName?: string;
  102487. /**
  102488. * The style name for the font family. e.g. Regular, Bold, or Italic.
  102489. */
  102490. fontStyleName?: string;
  102491. /**
  102492. * The font type.
  102493. */
  102494. fontType?: keyof typeof FontType;
  102495. /**
  102496. * The width of the symbol without changing the height (or depth in 3D), as a ratio.
  102497. */
  102498. scaleX?: number;
  102499. /**
  102500. * The polygon symbol that is used to renderer the marker.
  102501. */
  102502. symbol?: CIMPolygonSymbol;
  102503. /**
  102504. * A value indicating whether the marker stands a marker upright as though locked in place. The marker can be viewed from all angles.
  102505. */
  102506. verticalOrientation3D?: boolean;
  102507. /**
  102508. * A value indicating whether the strokes and/or fills of a marker are scaled proportionally when the symbol size is changed. When enabled, the strokes for the outline or fill of the polygon symbol used to draw the marker will be scaled proportionally with changes to the symbol size. If this property is not enabled, the stroke will draw with the specified width regardless of the marker size.
  102509. */
  102510. scaleSymbolsProportionally?: boolean;
  102511. /**
  102512. * A value indicating whether the frame of the character marker should be honored when transforming the marker.
  102513. */
  102514. respectFrame?: boolean;
  102515. }
  102516. /**
  102517. * Represents a vector marker clipping path.
  102518. *
  102519. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMClippingPath)
  102520. */
  102521. export interface CIMClippingPath {
  102522. type: "CIMClippingPath";
  102523. /**
  102524. * The clipping type.
  102525. */
  102526. clippingType?: keyof typeof ClippingType;
  102527. /**
  102528. * The clipping path.
  102529. */
  102530. path?: ExternalReferencePolygon;
  102531. }
  102532. /**
  102533. * Represents color substitution, an ordered list of color substitutes.
  102534. *
  102535. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMColorSubstitution)
  102536. */
  102537. export interface CIMColorSubstitution {
  102538. type: "CIMColorSubstitution";
  102539. /**
  102540. * The old color (the color that will be substituted).
  102541. */
  102542. oldColor?: number[];
  102543. /**
  102544. * The new color that will replace the old color.
  102545. */
  102546. newColor?: number[];
  102547. }
  102548. /**
  102549. * CIMGeometricEffectBase
  102550. *
  102551. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMGeometricEffect)
  102552. */
  102553. export interface CIMGeometricEffectBase {
  102554. type: string;
  102555. /**
  102556. * The primitive name.
  102557. */
  102558. primitiveName?: string;
  102559. }
  102560. /**
  102561. * Represents the add control points geometric effect. Dynamically adds geometry control points to a feature to dictate the placement of markers or other effect properties that leverage control points. Control points are placed at angles or deflection based on the AngleTolerance value.
  102562. *
  102563. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMGeometricEffectAddControlPoints)
  102564. */
  102565. export interface CIMGeometricEffectAddControlPoints extends CIMGeometricEffectBase {
  102566. type: "CIMGeometricEffectAddControlPoints";
  102567. /**
  102568. * The value below which a control point will be placed. The maximum amount of deflection from one segment to another at a vertex. Angle values between 180 and 360 are interpreted the same as values between 0 and 180. Angle values of 180 and 360 are the same as 0.
  102569. */
  102570. angleTolerance?: number;
  102571. }
  102572. /**
  102573. * Represents the arrow geometric effect which creates a dynamic line along a line feature with an arrow of a specified arrow type and width.
  102574. *
  102575. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMGeometricEffectArrow)
  102576. */
  102577. export interface CIMGeometricEffectArrow extends CIMGeometricEffectBase {
  102578. type: "CIMGeometricEffectArrow";
  102579. /**
  102580. * The type of arrow to be displayed.
  102581. */
  102582. geometricEffectArrowType?: keyof typeof GeometricEffectArrowType;
  102583. /**
  102584. * The distance between the lines that construct the body of the arrow.
  102585. */
  102586. width?: number;
  102587. }
  102588. /**
  102589. * Represents the buffer geometric effect which creates a dynamic polygon with a specified distance around features.
  102590. *
  102591. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMGeometricEffectBuffer)
  102592. */
  102593. export interface CIMGeometricEffectBuffer extends CIMGeometricEffectBase {
  102594. type: "CIMGeometricEffectBuffer";
  102595. /**
  102596. * The distance from the feature. This distance is either from the edge of the marker, the edge of the stroke or the edge of the polygon outline.
  102597. */
  102598. size?: number;
  102599. }
  102600. /**
  102601. * Represents the cut geometric effect which creates a dynamic line that is shorter on one or both ends than the line feature or polygon outline.
  102602. *
  102603. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMGeometricEffectCut)
  102604. */
  102605. export interface CIMGeometricEffectCut extends CIMGeometricEffectBase {
  102606. type: "CIMGeometricEffectCut";
  102607. /**
  102608. * The distance from the beginning of a line that the display of the stroke starts. The beginning of the line is determined by the direction in which the line was digitized.
  102609. */
  102610. beginCut?: number;
  102611. /**
  102612. * The distance from the end of a line that the display of the stroke ends. The end of the line is determined by the direction in which the line was digitized.
  102613. */
  102614. endCut?: number;
  102615. /**
  102616. * The distance around the middle of a line that the display of the stroke is interrupted.
  102617. */
  102618. middleCut?: number;
  102619. /**
  102620. * A value indicating whether the effect should be applied in the opposite manner. This displays the stroke symbol only at the ends of the line and leaves the rest of the line unsymbolized.
  102621. */
  102622. invert?: boolean;
  102623. }
  102624. /**
  102625. * Represents the dashes geometric effect which creates a dynamic multipart line geometry from a line feature or the outline of a polygon based on a template.
  102626. *
  102627. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMGeometricEffectDashes)
  102628. */
  102629. export interface CIMGeometricEffectDashes extends CIMGeometricEffectBase {
  102630. type: "CIMGeometricEffectDashes";
  102631. /**
  102632. * Where the pattern should end relative to the ending point of the geometry. Negative numbers indicate a shift to the left and positive numbers a shift to the right. This property is only applied if the LineDashEnding is set to Custom.
  102633. */
  102634. customEndingOffset?: number;
  102635. /**
  102636. * The distance for each dash and gap. There can be multiple dash and gap values to form a complex pattern.
  102637. */
  102638. dashTemplate?: number[];
  102639. /**
  102640. * The setting which determines how the strokes with dash patterns and other patterns (pictures, placement effects) are handled at the end points of the line geometry's segments.
  102641. */
  102642. lineDashEnding?: keyof typeof LineDashEnding;
  102643. /**
  102644. * The position where the pattern should begin relative to the starting point of the geometry. It shifts the entire pattern along the line the specified distance. Negative values indicate a shift to the left and positive numbers a shift to the right. This property is only applied if LineDashEnding is set to NoConstraint or Custom.
  102645. */
  102646. offsetAlongLine?: number;
  102647. /**
  102648. * The line dash ending position.
  102649. */
  102650. controlPointEnding?: keyof typeof LineDashEnding;
  102651. }
  102652. /**
  102653. * Represents the donut geometric effect which creates a dynamic polygon ring of a specified width in relation to the outline of polygon features.
  102654. *
  102655. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMGeometricEffectDonut)
  102656. */
  102657. export interface CIMGeometricEffectDonut extends CIMGeometricEffectBase {
  102658. type: "CIMGeometricEffectDonut";
  102659. /**
  102660. * The method which specifies the way the strokes are displayed at convex corners of the polygon.
  102661. */
  102662. method?: keyof typeof GeometricEffectDonutMethod;
  102663. /**
  102664. * The option for the way the symbol handles complex geometries.
  102665. */
  102666. option?: keyof typeof GeometricEffectOffsetOption;
  102667. /**
  102668. * The distance from the edge of the polygon that the fill symbol is to be displayed.
  102669. */
  102670. width?: number;
  102671. }
  102672. /**
  102673. * Represents the enclosing polygon geometric effect which creates a dynamic polygon from the spatial extent of a line or polygon feature.
  102674. *
  102675. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMGeometricEffectEnclosingPolygon)
  102676. */
  102677. export interface CIMGeometricEffectEnclosingPolygon extends CIMGeometricEffectBase {
  102678. type: "CIMGeometricEffectEnclosingPolygon";
  102679. /**
  102680. * The method which specifies the way in which the polygon geometry is generated around the feature geometry.
  102681. */
  102682. method?: keyof typeof GeometricEffectEnclosingPolygonMethod;
  102683. }
  102684. /**
  102685. * Represents the extension geometric effect which creates a dynamic line that is extended from either the beginning or the end of the line feature at a specified deflection angle and length.
  102686. *
  102687. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMGeometricEffectExtension)
  102688. */
  102689. export interface CIMGeometricEffectExtension extends CIMGeometricEffectBase {
  102690. type: "CIMGeometricEffectExtension";
  102691. /**
  102692. * The deflection angle used for the extension. A value of 0 indicates no deflection.
  102693. */
  102694. deflection?: number;
  102695. /**
  102696. * The origin of the extension to add to the line. The beginning and end of the line is defined by the direction the line was digitized.
  102697. */
  102698. origin?: keyof typeof GeometricEffectExtensionOrigin;
  102699. /**
  102700. * The length of the extension that is dynamically created.
  102701. */
  102702. length?: number;
  102703. }
  102704. /**
  102705. * Represents the jog geometric effect which creates a dynamic line with a jog of a specified angle, position, and width in the line.
  102706. *
  102707. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMGeometricEffectJog)
  102708. */
  102709. export interface CIMGeometricEffectJog extends CIMGeometricEffectBase {
  102710. type: "CIMGeometricEffectJog";
  102711. /**
  102712. * The angle of the jog in the line which is measured in degrees.
  102713. */
  102714. angle?: number;
  102715. /**
  102716. * The length of the segment that forms the jog in the line.
  102717. */
  102718. length?: number;
  102719. /**
  102720. * The location of the center of the jog, as a percentage measured from the start of the input geometry.
  102721. */
  102722. position?: number;
  102723. }
  102724. /**
  102725. * Represents a geometric effect which creates a localizer feather for aeronautical charts.
  102726. *
  102727. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMGeometricEffectLocalizerFeather)
  102728. */
  102729. export interface CIMGeometricEffectLocalizerFeather extends CIMGeometricEffectBase {
  102730. type: "CIMGeometricEffectLocalizerFeather";
  102731. /**
  102732. * The localizer feather style.
  102733. */
  102734. style?: keyof typeof GeometricEffectLocalizerFeatherStyle;
  102735. /**
  102736. * The length of the localizer feather.
  102737. */
  102738. length?: number;
  102739. /**
  102740. * The width of the localizer feather.
  102741. */
  102742. width?: number;
  102743. /**
  102744. * The angle of the localizer feather.
  102745. */
  102746. angle?: number;
  102747. }
  102748. /**
  102749. * Represents the move geometric effect which creates a point, line or polygon that is offset a specified distance in X and Y.
  102750. *
  102751. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMGeometricEffectMove)
  102752. */
  102753. export interface CIMGeometricEffectMove extends CIMGeometricEffectBase {
  102754. type: "CIMGeometricEffectMove";
  102755. /**
  102756. * The distance to move the symbol along the X-axis of the feature geometry.
  102757. */
  102758. offsetX?: number;
  102759. /**
  102760. * The distance to move the symbol along the Y-axis of the feature geometry.
  102761. */
  102762. offsetY?: number;
  102763. }
  102764. /**
  102765. * Represents the offset geometric effect which creates a dynamic line or polygon offset at a specified distance perpendicularly from a feature.
  102766. *
  102767. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMGeometricEffectOffset)
  102768. */
  102769. export interface CIMGeometricEffectOffset extends CIMGeometricEffectBase {
  102770. type: "CIMGeometricEffectOffset";
  102771. /**
  102772. * The way the strokes or fills are displayed at corners.
  102773. */
  102774. method?: keyof typeof GeometricEffectOffsetMethod;
  102775. /**
  102776. * The distance of the symbol perpendicular to the feature geometry.
  102777. */
  102778. offset?: number;
  102779. /**
  102780. * The way the symbol handles complex geometries.
  102781. */
  102782. option?: keyof typeof GeometricEffectOffsetOption;
  102783. }
  102784. /**
  102785. * Represents a geometric effect which creates a hatch pattern to depict special use airspace for aeronautical charts.
  102786. *
  102787. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMGeometricEffectOffsetHatch)
  102788. */
  102789. export interface CIMGeometricEffectOffsetHatch extends CIMGeometricEffectBase {
  102790. type: "CIMGeometricEffectOffsetHatch";
  102791. /**
  102792. * The length of the offset hatch.
  102793. */
  102794. length?: number;
  102795. /**
  102796. * The spacing of the offset hatch.
  102797. */
  102798. spacing?: number;
  102799. }
  102800. /**
  102801. * Represents the offset tangent geometric effect which creates a dynamic line along a line feature offset in the direction defined by either the beginning or the end of the line.
  102802. *
  102803. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMGeometricEffectOffsetTangent)
  102804. */
  102805. export interface CIMGeometricEffectOffsetTangent extends CIMGeometricEffectBase {
  102806. type: "CIMGeometricEffectOffsetTangent";
  102807. /**
  102808. * The origin of the tangent offset for the line. The beginning and end of the lines are defined by how the line was digitized.
  102809. */
  102810. method?: keyof typeof GeometricEffectOffsetTangentMethod;
  102811. /**
  102812. * The distance the geometry is moved tangent.
  102813. */
  102814. offset?: number;
  102815. }
  102816. /**
  102817. * Represents the radial geometric effect which creates a dynamic line of a specified length and angle originating from a point feature.
  102818. *
  102819. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMGeometricEffectRadial)
  102820. */
  102821. export interface CIMGeometricEffectRadial extends CIMGeometricEffectBase {
  102822. type: "CIMGeometricEffectRadial";
  102823. /**
  102824. * The orientation of the line from the marker. The angle is calculated in a counterclockwise manner with 0 degrees equal to due east.
  102825. */
  102826. angle?: number;
  102827. /**
  102828. * The distance of the line from end to end.
  102829. */
  102830. length?: number;
  102831. }
  102832. /**
  102833. * Represents the regular polygon geometric effect which creates a dynamic polygon around a point feature with a specified number of edges. All edges are equal in length and all angles are equal.
  102834. *
  102835. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMGeometricEffectRegularPolygon)
  102836. */
  102837. export interface CIMGeometricEffectRegularPolygon extends CIMGeometricEffectBase {
  102838. type: "CIMGeometricEffectRegularPolygon";
  102839. /**
  102840. * The amount of rotation for the polygon.
  102841. */
  102842. angle?: number;
  102843. /**
  102844. * The number of sides for the polygon. Specifying a value less than 3 produces a circle.
  102845. */
  102846. edges?: number;
  102847. /**
  102848. * The distance from the center of the polygon.
  102849. */
  102850. radius?: number;
  102851. }
  102852. /**
  102853. * Represents the reverse geometric effect which creates a dynamic polygon around a point feature with a specified number of edges. All edges are equal in length and all angles are equal.
  102854. *
  102855. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMGeometricEffectReverse)
  102856. */
  102857. export interface CIMGeometricEffectReverse extends CIMGeometricEffectBase {
  102858. type: "CIMGeometricEffectReverse";
  102859. /**
  102860. * A value indicating whether the dynamic output of a previous geometric effect is to be flipped or not.
  102861. */
  102862. reverse?: boolean;
  102863. }
  102864. /**
  102865. * Represents the rotate geometric effect which creates a dynamic line or polygon rotated a specified angle from the feature.
  102866. *
  102867. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMGeometricEffectRotate)
  102868. */
  102869. export interface CIMGeometricEffectRotate extends CIMGeometricEffectBase {
  102870. type: "CIMGeometricEffectRotate";
  102871. /**
  102872. * The amount of rotation for the symbol.
  102873. */
  102874. angle?: number;
  102875. }
  102876. /**
  102877. * Represents the rotate geometric effect which creates a dynamic line or polygon scaled by a specified factor. Vertices are moved in relation to the center point of a feature envelope. Values greater than 1 move vertices away from the center point. Values between 0 and 1 move vertices toward the center point. Values less than 0 draw an inverse dynamic line or polygon where the vertices have crossed to the other side of the center point.
  102878. *
  102879. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMGeometricEffectScale)
  102880. */
  102881. export interface CIMGeometricEffectScale extends CIMGeometricEffectBase {
  102882. type: "CIMGeometricEffectScale";
  102883. /**
  102884. * The amount of change in size of a symbol in the x-axis. The value is expressed in terms of a ratio/percentage.
  102885. */
  102886. XScaleFactor?: number;
  102887. /**
  102888. * The amount of change in size of a symbol in the y-axis. The value is expressed in terms of a ratio/percentage.
  102889. */
  102890. YScaleFactor?: number;
  102891. }
  102892. /**
  102893. * Represents the suppress geometric effect which creates a dynamic line that hides sections of a stroke between pairs control points.
  102894. *
  102895. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMGeometricEffectSuppress)
  102896. */
  102897. export interface CIMGeometricEffectSuppress extends CIMGeometricEffectBase {
  102898. type: "CIMGeometricEffectSuppress";
  102899. /**
  102900. * A value indicating whether the portion of the stroke symbol between control points should be suppressed. Sections that are suppressed draw with no symbol.
  102901. */
  102902. suppress?: boolean;
  102903. /**
  102904. * A value indicating whether to invert the suppression process. If this value is true, portions of the stroke symbol between control points are kept and all other portions are suppressed.
  102905. */
  102906. invert?: boolean;
  102907. }
  102908. /**
  102909. * Represents the tapered polygon geometric effect which creates a dynamic polygon along a line feature, whose width varies by two specified amounts along its length, as defined by a percentage of the line feature's length.
  102910. *
  102911. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMGeometricEffectTaperedPolygon)
  102912. */
  102913. export interface CIMGeometricEffectTaperedPolygon extends CIMGeometricEffectBase {
  102914. type: "CIMGeometricEffectTaperedPolygon";
  102915. /**
  102916. * The width at the start of the line to be used to generate a polygon.
  102917. */
  102918. fromWidth?: number;
  102919. /**
  102920. * The distance along the line to be used to generate the polygon.
  102921. */
  102922. length?: number;
  102923. /**
  102924. * The width at the end of the line to be used to generate the polygon.
  102925. */
  102926. toWidth?: number;
  102927. }
  102928. /**
  102929. * Represents the wave geometric effect which creates a dynamic line or polygon along a feature with a repeating wave pattern.
  102930. *
  102931. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMGeometricEffectWave)
  102932. */
  102933. export interface CIMGeometricEffectWave extends CIMGeometricEffectBase {
  102934. type: "CIMGeometricEffectWave";
  102935. /**
  102936. * The distance perpendicular to a feature to display the curves for the symbol.
  102937. */
  102938. amplitude?: number;
  102939. /**
  102940. * The distance along the line or polygon to display the curves for the symbol.
  102941. */
  102942. period?: number;
  102943. /**
  102944. * The staring value for generating a random number. This is only used when the Waveform is set to Random.
  102945. */
  102946. seed?: number;
  102947. /**
  102948. * The shape of the curves to be displayed along the symbol.
  102949. */
  102950. waveform?: keyof typeof GeometricEffectWaveform;
  102951. }
  102952. /**
  102953. * CIMFill
  102954. *
  102955. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMFill)
  102956. */
  102957. export interface CIMFill extends CIMSymbolLayerBase {
  102958. }
  102959. /**
  102960. * Represents a gradient fill which fills polygonal geometry with a specified color scheme.
  102961. *
  102962. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMGradientFill)
  102963. */
  102964. export interface CIMGradientFill extends CIMFill {
  102965. type: "CIMGradientFill";
  102966. /**
  102967. * The angle of the gradient when the GradientMethod is set to Linear or Rectangular.
  102968. */
  102969. angle?: number;
  102970. /**
  102971. * The color scheme that is applied to the fill.
  102972. */
  102973. colorRamp?: any;
  102974. /**
  102975. * A value which specifies how the gradient is applied within the fill.
  102976. */
  102977. gradientMethod?: keyof typeof GradientFillMethod;
  102978. /**
  102979. * A value which determines how much of the feature is covered by the color scheme. This is either a percentage of the total area which the color scheme spans or the number of page units from the starting point at which the gradient displays.
  102980. */
  102981. gradientSize?: number;
  102982. /**
  102983. * A value which specifies whether GradientSize is applied with an absolute distance or a relative percentage.
  102984. */
  102985. gradientSizeUnits?: keyof typeof SymbolUnits;
  102986. /**
  102987. * A value which specifies if the gradient is applied with discrete intervals or if it is continuous.
  102988. */
  102989. gradientType?: keyof typeof GradientStrokeType;
  102990. /**
  102991. * How many bands draw when the GradientType is set to Discrete.
  102992. */
  102993. interval?: number;
  102994. }
  102995. /**
  102996. * CIMStroke
  102997. *
  102998. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMStroke)
  102999. */
  103000. export interface CIMStroke extends CIMSymbolLayerBase {
  103001. /**
  103002. * How the stroke should draw at the ends of the geometries.
  103003. */
  103004. capStyle?: keyof typeof LineCapStyle;
  103005. /**
  103006. * How the symbol is drawn at the stroke segment connections.
  103007. */
  103008. joinStyle?: keyof typeof LineJoinStyle;
  103009. /**
  103010. * How strokes will be rendered in 3D.
  103011. */
  103012. lineStyle3D?: keyof typeof Simple3DLineStyle;
  103013. /**
  103014. * The maximum 'sharpness' that is allowed for Miter joins. If the spike created by the miter join exceeds the miter limit times the width of the stroke, the sharp angle will be clipped and rendered with a bevel join. This property is only applied to the symbol layer when the JoinType is set to Miter.
  103015. */
  103016. miterLimit?: number;
  103017. /**
  103018. * The width of the stroke.
  103019. */
  103020. width?: number;
  103021. /**
  103022. * A value indicating whether to close caps when drawing them in 3D. When set to false, the caps are hollow.
  103023. */
  103024. closeCaps3D?: boolean;
  103025. }
  103026. /**
  103027. * Represents a gradient stroke which draws linear geometry with a specified color scheme.
  103028. *
  103029. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMGradientStroke)
  103030. */
  103031. export interface CIMGradientStroke extends CIMStroke {
  103032. type: "CIMGradientStroke";
  103033. /**
  103034. * The color scheme that is applied to the stroke.
  103035. */
  103036. colorRamp?: any;
  103037. /**
  103038. * How the gradient is applied along the stroke.
  103039. */
  103040. gradientMethod?: keyof typeof GradientStrokeMethod;
  103041. /**
  103042. * How much of the feature is covered by the color scheme. This is either a percentage of the total area which the color scheme spans or the number of page units from the starting point at which the gradient displays.
  103043. */
  103044. gradientSize?: number;
  103045. /**
  103046. * Whether GradientSize is applied with an absolute distance or a relative percentage.
  103047. */
  103048. gradientSizeUnits?: keyof typeof SymbolUnits;
  103049. /**
  103050. * Whether the gradient is applied with discrete or continuous intervals.
  103051. */
  103052. gradientType?: keyof typeof GradientStrokeType;
  103053. /**
  103054. * How many bands draw when the GradientType is set to Discrete.
  103055. */
  103056. interval?: number;
  103057. }
  103058. /**
  103059. * Represents a hatch fill which fills polygonal geometry with a uniform series of parallel line symbols.
  103060. *
  103061. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMHatchFill)
  103062. */
  103063. export interface CIMHatchFill extends CIMFill {
  103064. type: "CIMHatchFill";
  103065. /**
  103066. * The line symbol that is used to draw the hatch lines in the fill.
  103067. */
  103068. lineSymbol?: CIMLineSymbol;
  103069. /**
  103070. * How much to move the stroke to a new X-position.
  103071. */
  103072. offsetX?: number;
  103073. /**
  103074. * The angle of rotation for all the strokes, in degrees.
  103075. */
  103076. rotation?: number;
  103077. /**
  103078. * The distance between the line symbols in the hatch pattern.
  103079. */
  103080. separation?: number;
  103081. /**
  103082. * How much to move the stroke to a new Y-position.
  103083. */
  103084. offsetY?: number;
  103085. }
  103086. /**
  103087. * CIMSymbolBase
  103088. *
  103089. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMSymbol)
  103090. */
  103091. export interface CIMSymbolBase {
  103092. type: string;
  103093. }
  103094. /**
  103095. * CIMMultiLayerSymbol
  103096. *
  103097. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMMultiLayerSymbol)
  103098. */
  103099. export interface CIMMultiLayerSymbol extends CIMSymbolBase {
  103100. /**
  103101. * The geometric effects that are applied to the symbol.
  103102. */
  103103. effects?: CIMGeometricEffectType[];
  103104. /**
  103105. * The symbol layers. Symbol layers are the components that make up a symbol. A symbol layer is represented by a stroke, fill, marker, or procedural symbol layer.
  103106. */
  103107. symbolLayers?: CIMSymbolLayerType[];
  103108. /**
  103109. * The representative image of the symbol.
  103110. */
  103111. thumbnailURI?: string;
  103112. /**
  103113. * A value indicating whether the symbol size properties are rendered using real world units or page units. When set to true the symbol will draw using real world units (e.g. meters).
  103114. */
  103115. useRealWorldSymbolSizes?: boolean;
  103116. }
  103117. /**
  103118. * Represents a line symbol which is used to draw polyline features or graphics.
  103119. *
  103120. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMLineSymbol)
  103121. */
  103122. export interface CIMLineSymbol extends CIMMultiLayerSymbol {
  103123. type: "CIMLineSymbol";
  103124. }
  103125. /**
  103126. * Represents a marker graphic which is used to define vector graphics in a vector marker.
  103127. *
  103128. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMMarkerGraphic)
  103129. */
  103130. export interface CIMMarkerGraphic {
  103131. type: "CIMMarkerGraphic";
  103132. /**
  103133. * The geometry of the marker.
  103134. */
  103135. geometry?: ExternalReferenceGeometry;
  103136. /**
  103137. * The symbol used to draw the marker graphic, can be a point, line, polygon, or text symbol.
  103138. */
  103139. symbol?: CIMSymbolType;
  103140. /**
  103141. * The text that is defined within the marker if drawn with a text symbol.
  103142. */
  103143. textString?: string;
  103144. /**
  103145. * The primitive name.
  103146. */
  103147. primitiveName?: string;
  103148. }
  103149. /**
  103150. * CIMMarkerPlacementBase
  103151. *
  103152. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMMarkerPlacement)
  103153. */
  103154. export interface CIMMarkerPlacementBase {
  103155. type: string;
  103156. /**
  103157. * The primitive name.
  103158. */
  103159. primitiveName?: string;
  103160. }
  103161. /**
  103162. * CIMMarkerStrokePlacement
  103163. *
  103164. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMMarkerStrokePlacement)
  103165. */
  103166. export interface CIMMarkerStrokePlacement extends CIMMarkerPlacementBase {
  103167. /**
  103168. * A value indicating whether to angle the marker to the line.
  103169. */
  103170. angleToLine?: boolean;
  103171. /**
  103172. * The offset.
  103173. */
  103174. offset?: number;
  103175. }
  103176. /**
  103177. * CIMMarkerPlacementAlongLine
  103178. *
  103179. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMMarkerPlacementAlongLine)
  103180. */
  103181. export interface CIMMarkerPlacementAlongLine extends CIMMarkerStrokePlacement {
  103182. /**
  103183. * How markers are placed at control points.
  103184. */
  103185. controlPointPlacement?: keyof typeof PlacementEndings;
  103186. /**
  103187. * Where the pattern should end relative to the ending point of the geometry. The entire pattern is shifted along the line for the specified distance. Negative numbers shift to the left and positive numbers shift to the right. This is only applied if the Endings property is set to Custom.
  103188. */
  103189. customEndingOffset?: number;
  103190. /**
  103191. * How markers are placed at the end points of a line.
  103192. */
  103193. endings?: keyof typeof PlacementEndings;
  103194. /**
  103195. * Where the pattern should begin relative to the starting point of the geometry. The entire pattern is shifted along the line for the specified distance. Negative numbers shift to the left and positive numbers shift to the right. This is only applied if the Endings property is set to No Constraint or Custom.
  103196. */
  103197. offsetAlongLine?: number;
  103198. /**
  103199. * The numeric pattern that defines the sequence of placed markers and the length of space between them.
  103200. */
  103201. placementTemplate?: number[];
  103202. }
  103203. /**
  103204. * Represents marker placement along the line which places randomly sized markers evenly along a line or polygon outline.
  103205. *
  103206. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMMarkerPlacementAlongLineRandomSize)
  103207. */
  103208. export interface CIMMarkerPlacementAlongLineRandomSize extends CIMMarkerPlacementAlongLine {
  103209. type: "CIMMarkerPlacementAlongLineRandomSize";
  103210. /**
  103211. * The amount of randomness to be used for the size and rotation of the markers on the line. The size and rotation of the marker will vary for individual markers.
  103212. */
  103213. randomization?: keyof typeof PlacementRandomlyAlongLineRandomization;
  103214. /**
  103215. * The starting value for generating a random number. This random number is used by the Randomization property to determine the marker shape.
  103216. */
  103217. seed?: number;
  103218. }
  103219. /**
  103220. * Represents marker placement along the line which places markers that are the same size evenly along a line or polygon outline.
  103221. *
  103222. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMMarkerPlacementAlongLineSameSize)
  103223. */
  103224. export interface CIMMarkerPlacementAlongLineSameSize extends CIMMarkerPlacementAlongLine {
  103225. type: "CIMMarkerPlacementAlongLineSameSize";
  103226. }
  103227. /**
  103228. * Represents marker placement along the line which places markers in either increasing, decreasing or alternating gradations along a line or polygon outline.
  103229. *
  103230. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMMarkerPlacementAlongLineVariableSize)
  103231. */
  103232. export interface CIMMarkerPlacementAlongLineVariableSize extends CIMMarkerPlacementAlongLine {
  103233. type: "CIMMarkerPlacementAlongLineVariableSize";
  103234. /**
  103235. * The maximum random offset.
  103236. */
  103237. maxRandomOffset?: number;
  103238. /**
  103239. * The largest size of the marker to be placed on the line. The value is expressed as a ratio.
  103240. */
  103241. maxZoom?: number;
  103242. /**
  103243. * The smallest size of the marker to be placed on the line. The value is expressed as a ratio.
  103244. */
  103245. minZoom?: number;
  103246. /**
  103247. * The number of different sizes of markers to be placed on the line.
  103248. */
  103249. numberOfSizes?: number;
  103250. /**
  103251. * The starting value for generating a random number. This random number is used by the Randomization property to determine which size a marker will receive. This is only used if the VariationMethod is set to Random.
  103252. */
  103253. seed?: number;
  103254. /**
  103255. * The order in which the change of size in the markers should occur.
  103256. */
  103257. variationMethod?: keyof typeof SizeVariationMethod;
  103258. }
  103259. /**
  103260. * Represents marker placement at extremities which places markers at only one or both endpoints of a line.
  103261. *
  103262. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMMarkerPlacementAtExtremities)
  103263. */
  103264. export interface CIMMarkerPlacementAtExtremities extends CIMMarkerStrokePlacement {
  103265. type: "CIMMarkerPlacementAtExtremities";
  103266. /**
  103267. * Which ends of the line a marker will be placed.
  103268. */
  103269. extremityPlacement?: keyof typeof ExtremityPlacement;
  103270. /**
  103271. * The distance from the ends of a line that the marker will be placed.
  103272. */
  103273. offsetAlongLine?: number;
  103274. }
  103275. /**
  103276. * Represents marker placement at geometry M values.
  103277. *
  103278. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMMarkerPlacementAtMeasuredUnits)
  103279. */
  103280. export interface CIMMarkerPlacementAtMeasuredUnits extends CIMMarkerStrokePlacement {
  103281. type: "CIMMarkerPlacementAtMeasuredUnits";
  103282. /**
  103283. * The interval of measured units used to place markers.
  103284. */
  103285. interval?: number;
  103286. /**
  103287. * The rate of markers to skip.
  103288. */
  103289. skipMarkerRate?: number;
  103290. /**
  103291. * A value indicating whether markers should be placed at extremities.
  103292. */
  103293. placeAtExtremities?: boolean;
  103294. }
  103295. /**
  103296. * Represents marker placement at ratio positions which places a set number of markers along the line or the outline of a polygon.
  103297. *
  103298. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMMarkerPlacementAtRatioPositions)
  103299. */
  103300. export interface CIMMarkerPlacementAtRatioPositions extends CIMMarkerStrokePlacement {
  103301. type: "CIMMarkerPlacementAtRatioPositions";
  103302. /**
  103303. * The distance from the beginning of a line that the marker will be placed.
  103304. */
  103305. beginPosition?: number;
  103306. /**
  103307. * The distance from the end of a line that the marker will be placed. The ending of a line is determined by the direction in which the line was digitized.
  103308. */
  103309. endPosition?: number;
  103310. /**
  103311. * A value indicating whether only the first marker will be rotated 180 degrees.
  103312. */
  103313. flipFirst?: boolean;
  103314. /**
  103315. * The array of positions.
  103316. */
  103317. positionArray?: number[];
  103318. }
  103319. /**
  103320. * CIMMarkerFillPlacement
  103321. *
  103322. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMMarkerFillPlacement)
  103323. */
  103324. export interface CIMMarkerFillPlacement extends CIMMarkerPlacementBase {
  103325. }
  103326. /**
  103327. * Represents marker placement inside a polygon which defines how a polygon is filled with a pattern of markers.
  103328. *
  103329. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMMarkerPlacementInsidePolygon)
  103330. */
  103331. export interface CIMMarkerPlacementInsidePolygon extends CIMMarkerFillPlacement {
  103332. type: "CIMMarkerPlacementInsidePolygon";
  103333. /**
  103334. * The orientation angle that the markers are placed on within the polygon.
  103335. */
  103336. gridAngle?: number;
  103337. /**
  103338. * The grid type which defines how markers are placed.
  103339. */
  103340. gridType?: keyof typeof PlacementGridType;
  103341. /**
  103342. * The marker row offset horizontally.
  103343. */
  103344. offsetX?: number;
  103345. /**
  103346. * The randomness of the pattern when markers are placed randomly in a polygon.
  103347. */
  103348. randomness?: number;
  103349. /**
  103350. * The starting value for generating a random pattern.
  103351. */
  103352. seed?: number;
  103353. /**
  103354. * A value indicating whether every other row of markers should be shifted to create an offset grid.
  103355. */
  103356. shiftOddRows?: boolean;
  103357. /**
  103358. * The distance between each marker on the X-axis of the grid.
  103359. */
  103360. stepX?: number;
  103361. /**
  103362. * The distance between each marker on the Y-axis of the grid.
  103363. */
  103364. stepY?: number;
  103365. /**
  103366. * The marker row offset vertically.
  103367. */
  103368. offsetY?: number;
  103369. /**
  103370. * The clipping option which specifies how markers should be clipped at the polygon boundary.
  103371. */
  103372. clipping?: keyof typeof PlacementClip;
  103373. }
  103374. /**
  103375. * Represents a marker placement on the line.
  103376. *
  103377. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMMarkerPlacementOnLine)
  103378. */
  103379. export interface CIMMarkerPlacementOnLine extends CIMMarkerStrokePlacement {
  103380. type: "CIMMarkerPlacementOnLine";
  103381. /**
  103382. * The location on a line where a marker will be placed. The direction of the line is determined by the direction in which the line was digitized.
  103383. */
  103384. relativeTo?: keyof typeof PlacementOnLineRelativeTo;
  103385. /**
  103386. * The distances from a specified location on a line that a marker will be placed.
  103387. */
  103388. startPointOffset?: number;
  103389. }
  103390. /**
  103391. * Represents a marker placement on vertices which places a single marker on a line or polygon outline at a set distance from the middle or one of the endpoints.
  103392. *
  103393. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMMarkerPlacementOnVertices)
  103394. */
  103395. export interface CIMMarkerPlacementOnVertices extends CIMMarkerStrokePlacement {
  103396. type: "CIMMarkerPlacementOnVertices";
  103397. /**
  103398. * A value indicating whether a marker will be placed on the control points of the line.
  103399. */
  103400. placeOnControlPoints?: boolean;
  103401. /**
  103402. * A value indicating whether a marker will be placed on the endpoints of the line.
  103403. */
  103404. placeOnEndPoints?: boolean;
  103405. /**
  103406. * A value indicating whether a marker will be placed on the vertices of the line.
  103407. */
  103408. placeOnRegularVertices?: boolean;
  103409. }
  103410. /**
  103411. * Represents marker placement polygon center which defines how a single marker will be placed within the polygon.
  103412. *
  103413. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMMarkerPlacementPolygonCenter)
  103414. */
  103415. export interface CIMMarkerPlacementPolygonCenter extends CIMMarkerFillPlacement {
  103416. type: "CIMMarkerPlacementPolygonCenter";
  103417. /**
  103418. * The method used to determine the polygon center.
  103419. */
  103420. method?: keyof typeof PlacementPolygonCenterMethod;
  103421. /**
  103422. * The value which offsets the marker horizontally from the center.
  103423. */
  103424. offsetX?: number;
  103425. /**
  103426. * The value which offsets the marker vertically from the center.
  103427. */
  103428. offsetY?: number;
  103429. /**
  103430. * A value indicating whether the marker should be clipped if it extends pasts the boundary of the polygon.
  103431. */
  103432. clipAtBoundary?: boolean;
  103433. }
  103434. /**
  103435. * Represents material properties.
  103436. *
  103437. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMMaterialProperties)
  103438. */
  103439. export interface CIMMaterialProperties {
  103440. type: "CIMMaterialProperties";
  103441. /**
  103442. * The specular color.
  103443. */
  103444. specularColor?: number[];
  103445. /**
  103446. * The shininess.
  103447. */
  103448. shininess?: number;
  103449. /**
  103450. * How this material combines with externally defined colors.
  103451. */
  103452. externalColorMixMode?: keyof typeof ExternalColorMixMode;
  103453. }
  103454. /**
  103455. * Represents a material which defines how the multipatch or mesh is drawn.
  103456. *
  103457. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMMaterialSymbolLayer)
  103458. */
  103459. export interface CIMMaterialSymbolLayer extends CIMSymbolLayerBase {
  103460. type: "CIMMaterialSymbolLayer";
  103461. /**
  103462. * The material color.
  103463. */
  103464. color?: number[];
  103465. /**
  103466. * The mode in which the material is applied.
  103467. */
  103468. materialMode?: keyof typeof MaterialMode;
  103469. }
  103470. /**
  103471. * Represents a marker symbol for 3D objects.
  103472. *
  103473. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMObjectMarker3D)
  103474. */
  103475. export interface CIMObjectMarker3D extends CIMMarker {
  103476. type: "CIMObjectMarker3D";
  103477. /**
  103478. * The URI of the binary reference containing the "web resource".
  103479. */
  103480. modelURI?: string;
  103481. /**
  103482. * The marker width.
  103483. */
  103484. width?: number;
  103485. /**
  103486. * The marker depth.
  103487. */
  103488. depth?: number;
  103489. /**
  103490. * The color which defines the color that is applied to the marker.
  103491. */
  103492. tintColor?: number[];
  103493. /**
  103494. * A value indicating whether the model can be exported.
  103495. */
  103496. isRestricted?: boolean;
  103497. /**
  103498. * The representative image of the marker.
  103499. */
  103500. thumbnail?: string;
  103501. /**
  103502. * A value indicating whether or not to ignore the marker anchor point and insert the model directly at the data point.
  103503. */
  103504. useAnchorPoint?: boolean;
  103505. /**
  103506. * The array of levels of detail.
  103507. */
  103508. LODs?: CIMObjectMarker3DLOD[];
  103509. }
  103510. /**
  103511. * Represents a level of detail of an object marker 3D.
  103512. *
  103513. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMObjectMarker3DLOD)
  103514. */
  103515. export interface CIMObjectMarker3DLOD {
  103516. type: "CIMObjectMarker3DLOD";
  103517. /**
  103518. * The total number of triangles in the geometry of this level of detail.
  103519. */
  103520. faceCount?: number;
  103521. /**
  103522. * The URI of the binary reference containing the "web resource" for this level of detail.
  103523. */
  103524. modelURI?: string;
  103525. }
  103526. /**
  103527. * Represents a picture fill which fills polygonal geometry with a picture. Supported file types are .bmp, .jpg, .png, and .gif.
  103528. *
  103529. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMPictureFill)
  103530. */
  103531. export interface CIMPictureFill extends CIMFill {
  103532. type: "CIMPictureFill";
  103533. /**
  103534. * The URL of the image. Typically a base64 encoded image.
  103535. */
  103536. url?: string;
  103537. /**
  103538. * The distance that the image is offset in the horizontal direction.
  103539. */
  103540. offsetX?: number;
  103541. /**
  103542. * The distance that the image is offset in the vertical direction.
  103543. */
  103544. offsetY?: number;
  103545. /**
  103546. * Angle of the image within the fill.
  103547. */
  103548. rotation?: number;
  103549. /**
  103550. * The width of the symbol without changing the height (or depth in 3D), as a ratio.
  103551. */
  103552. scaleX?: number;
  103553. /**
  103554. * The height of the image.
  103555. */
  103556. height?: number;
  103557. /**
  103558. * How the image is resampled.
  103559. */
  103560. textureFilter?: keyof typeof TextureFilter;
  103561. /**
  103562. * The color substitutions which allows colors in the image to be substituted with a different color.
  103563. */
  103564. colorSubstitutions?: CIMColorSubstitution[];
  103565. /**
  103566. * The color that is applied as a tint to the image. The color is applied to the whole image. When the tint is set to white the image appears with its native colors.
  103567. */
  103568. tintColor?: number[];
  103569. }
  103570. /**
  103571. * Represents a picture marker created from a raster (bitmapped) image file. The image can have color substitutions to replace one or more colors in the image or it can have a tint applied to the whole image depending on the picture type. Supported formats are .bmp, .jpg, .png, and .gif.
  103572. *
  103573. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMPictureMarker)
  103574. */
  103575. export interface CIMPictureMarker extends CIMMarker {
  103576. type: "CIMPictureMarker";
  103577. /**
  103578. * The color substitutions for the picture.
  103579. */
  103580. colorSubstitutions?: CIMColorSubstitution[];
  103581. /**
  103582. * The depth of the image when drawn in 3D.
  103583. */
  103584. depth3D?: number;
  103585. /**
  103586. * A value indicating whether the image is right-reading when viewed from behind.
  103587. */
  103588. invertBackfaceTexture?: boolean;
  103589. /**
  103590. * The scale X which changes the width of the symbol without changing the height (or depth in 3D), as a ratio.
  103591. */
  103592. scaleX?: number;
  103593. /**
  103594. * How the image is resampled.
  103595. */
  103596. textureFilter?: keyof typeof TextureFilter;
  103597. /**
  103598. * The color that is applied as a tint to the image. The color is applied to the whole image. When the tint is set to white the image appears with its native colors.
  103599. */
  103600. tintColor?: number[];
  103601. /**
  103602. * The image that is used in the symbol layer. Typically a base64 encoded image.
  103603. */
  103604. url?: string;
  103605. /**
  103606. * A value indicating whether the marker stands upright as though locked in place. The marker can be viewed from all angles.
  103607. */
  103608. verticalOrientation3D?: boolean;
  103609. }
  103610. /**
  103611. * Represents a picture stroke which draws linear geometry with a repeating image file. Supported file types are .bmp, .jpg, .png, and .gif.
  103612. *
  103613. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMPictureStroke)
  103614. */
  103615. export interface CIMPictureStroke extends CIMStroke {
  103616. type: "CIMPictureStroke";
  103617. /**
  103618. * The color substitutions for the picture.
  103619. */
  103620. colorSubstitutions?: CIMColorSubstitution[];
  103621. /**
  103622. * How the image is resampled.
  103623. */
  103624. textureFilter?: keyof typeof TextureFilter;
  103625. /**
  103626. * The image that is used in the symbol layer. Typically a base64 encoded image.
  103627. */
  103628. url?: string;
  103629. /**
  103630. * The color that is applied as a tint to the image. The color is applied to the whole image. When the tint is set to white the image appears with its native colors.
  103631. */
  103632. tintColor?: number[];
  103633. }
  103634. /**
  103635. * Represents a point symbol used to draw point features and point graphics.
  103636. *
  103637. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMPointSymbol)
  103638. */
  103639. export interface CIMPointSymbol extends CIMMultiLayerSymbol {
  103640. type: "CIMPointSymbol";
  103641. /**
  103642. * The callout of the point symbol.
  103643. */
  103644. callout?: CIMCalloutType;
  103645. /**
  103646. * The size of the halo that extends beyond the symbol shape.
  103647. */
  103648. haloSize?: number;
  103649. /**
  103650. * The polygon symbol that is used to draw the halo for a point symbol.
  103651. */
  103652. haloSymbol?: CIMPolygonSymbol;
  103653. /**
  103654. * The primitive name.
  103655. */
  103656. primitiveName?: string;
  103657. /**
  103658. * The X scale which changes the width of the symbol without changing the height (or depth in 3D), as a ratio.
  103659. */
  103660. scaleX?: number;
  103661. /**
  103662. * The collection of symbol properties that apply when the symbol is used in a 3D context.
  103663. */
  103664. symbol3DProperties?: CIM3DSymbolProperties;
  103665. /**
  103666. * The amount of variation applied to the symbol, measured in degrees, propagated cumulatively to all marker symbols.
  103667. */
  103668. angle?: number;
  103669. /**
  103670. * Whether point symbols align to the map or to the display when a rotation is applied to the map.
  103671. */
  103672. angleAlignment?: keyof typeof AngleAlignment;
  103673. }
  103674. /**
  103675. * Represents a polygon symbol which is used to draw polygon features or polygon graphics.
  103676. *
  103677. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMPolygonSymbol)
  103678. */
  103679. export interface CIMPolygonSymbol extends CIMMultiLayerSymbol {
  103680. type: "CIMPolygonSymbol";
  103681. }
  103682. /**
  103683. * Represents shape vertices.
  103684. *
  103685. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMShapeVertices)
  103686. */
  103687. export interface CIMShapeVertices {
  103688. type: "CIMShapeVertices";
  103689. /**
  103690. * The indices.
  103691. */
  103692. indices?: number;
  103693. /**
  103694. * The shape.
  103695. */
  103696. shapes?: string;
  103697. }
  103698. /**
  103699. * Represents a solid fill which fills polygonal geometry with a single solid color.
  103700. *
  103701. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMSolidFill)
  103702. */
  103703. export interface CIMSolidFill extends CIMFill {
  103704. type: "CIMSolidFill";
  103705. /**
  103706. * The color that is applied to the fill.
  103707. */
  103708. color?: number[];
  103709. }
  103710. /**
  103711. * Represents a solid stroke which draws linear geometry with a single solid color.
  103712. *
  103713. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMSolidStroke)
  103714. */
  103715. export interface CIMSolidStroke extends CIMStroke {
  103716. type: "CIMSolidStroke";
  103717. /**
  103718. * The color that is applied to the stroke.
  103719. */
  103720. color?: number[];
  103721. }
  103722. /**
  103723. * Represents a text margin which defines the margin to apply around text.
  103724. *
  103725. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMTextMargin)
  103726. */
  103727. export interface CIMTextMargin {
  103728. type: "CIMTextMargin";
  103729. /**
  103730. * The left margin.
  103731. */
  103732. left?: number;
  103733. /**
  103734. * The right margin.
  103735. */
  103736. right?: number;
  103737. /**
  103738. * The top margin.
  103739. */
  103740. top?: number;
  103741. /**
  103742. * The bottom margin.
  103743. */
  103744. bottom?: number;
  103745. }
  103746. /**
  103747. * Represents a text symbol which is used to draw text graphics, bleeds, and annotation. Text symbols do not contain any symbol layers but can have callouts.
  103748. *
  103749. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMTextSymbol)
  103750. */
  103751. export interface CIMTextSymbol extends CIMSymbolBase {
  103752. type: "CIMTextSymbol";
  103753. /**
  103754. * The amount of rotation applied to the text symbol, measured in degrees, around the geometry.
  103755. */
  103756. angle?: number;
  103757. /**
  103758. * The amount of rotation of the text symbol around the X axis, measured in degrees, around the geometry. This type of rotation is also referred to as tilt. It is applied in 3D.
  103759. */
  103760. angleX?: number;
  103761. /**
  103762. * The amount of rotation of the text symbol around the Y axis, measured in degrees, around the geometry. This type of rotation is also referred to as roll. It is applied in 3D.
  103763. */
  103764. angleY?: number;
  103765. /**
  103766. * The direction in which multi-line text is stacked.
  103767. */
  103768. blockProgression?: keyof typeof BlockProgression;
  103769. /**
  103770. * The callout or background of the text with optional leader lines.
  103771. */
  103772. callout?: CIMCalloutType;
  103773. /**
  103774. * A value indicating whether to draw the text in a fashion compatible with ArcMap.
  103775. */
  103776. compatibilityMode?: boolean;
  103777. /**
  103778. * The ISO code for the base country of the text.
  103779. */
  103780. countryISO?: string;
  103781. /**
  103782. * The depth of the glyph when drawn in 3D. This is an extrusion of the characters of the text in the Z axis.
  103783. */
  103784. depth3D?: number;
  103785. /**
  103786. * A value indicating whether fonts that are drawn as rasters at some scales to draw as vectors instead.
  103787. */
  103788. drawGlyphsAsGeometry?: boolean;
  103789. /**
  103790. * A value indicating whether soft hyphens should be drawn. Soft hyphens are invisible markers that indicate where a hyphenated break is allowed within the text. They are only drawn if there is word wrapping at the end of a line.
  103791. */
  103792. drawSoftHyphen?: boolean;
  103793. /**
  103794. * A value indicating whether the baseline of the text geometry should be expanded in the same manner as the existing geometry if the text extends beyond the baseline.
  103795. */
  103796. extrapolateBaselines?: boolean;
  103797. /**
  103798. * The angle (in degrees from vertical) at which point rotated text is flipped (mirrored) in place.
  103799. */
  103800. flipAngle?: number;
  103801. /**
  103802. * Whether the text is drawn as subscript or superscript.
  103803. */
  103804. fontEffects?: keyof typeof FontEffects;
  103805. /**
  103806. * The font encoding.
  103807. */
  103808. fontEncoding?: keyof typeof FontEncoding;
  103809. /**
  103810. * The font family name of the font. e.g. Comic Sans.
  103811. */
  103812. fontFamilyName?: string;
  103813. /**
  103814. * The style name for the font family. e.g. Regular, Bold, or Italic.
  103815. */
  103816. fontStyleName?: string;
  103817. /**
  103818. * The type of font that the font family/style name reference.
  103819. */
  103820. fontType?: keyof typeof FontType;
  103821. /**
  103822. * An additional rotation that is applied to the individual glyphs contained in the text. This is applied to the individual glyphs whereas Angle, AngleX and AngleY are affect how the entire text string is oriented.
  103823. */
  103824. glyphRotation?: number;
  103825. /**
  103826. * The size of the halo that extends beyond the symbol shape.
  103827. */
  103828. haloSize?: number;
  103829. /**
  103830. * The polygon symbol that is used to draw the halo for a text symbol.
  103831. */
  103832. haloSymbol?: CIMPolygonSymbol;
  103833. /**
  103834. * The size of the text in points.
  103835. */
  103836. height?: number;
  103837. /**
  103838. * If hinting from the font is used for text rendering. Hinting is information included with most fonts to effectively fit the vector glyphs of the font into the raster grid onto which they are displayed.
  103839. */
  103840. hinting?: keyof typeof GlyphHinting;
  103841. /**
  103842. * The alignment type used to align the text to the geometry horizontally. Affects which side of a point geometry the point text is drawn or which end of a line it is drawn close to. Commonly used to define how stacked text appears.
  103843. */
  103844. horizontalAlignment?: keyof typeof HorizontalAlignment;
  103845. /**
  103846. * How many points to indent the text back from the end of the baseline.
  103847. */
  103848. indentAfter?: number;
  103849. /**
  103850. * How many points to indent the text from the beginning of the baseline.
  103851. */
  103852. indentBefore?: number;
  103853. /**
  103854. * How many points to indent the text from the beginning of the baseline for the first line only.
  103855. */
  103856. indentFirstLine?: number;
  103857. /**
  103858. * A value indicating whether the text is drawn with metric kerning, which adjusts the spacing between individual letter forms.
  103859. */
  103860. kerning?: boolean;
  103861. /**
  103862. * Whether the ISO code for the base language of the text.
  103863. */
  103864. languageISO?: string;
  103865. /**
  103866. * The additional spacing that is added to each glyph beyond what is defined by its character box in the font. Value indicates the percentage of a glyph's width. Also known as tracking.
  103867. */
  103868. letterSpacing?: number;
  103869. /**
  103870. * The width that is added to each glyph beyond what is defined by its character box in its font. This is a percentage of the original glyph.
  103871. */
  103872. letterWidth?: number;
  103873. /**
  103874. * A value indicating whether text is to be drawn with ligatures, which occur when two or more letters or portions of letters are joined to form a single glyph.
  103875. */
  103876. ligatures?: boolean;
  103877. /**
  103878. * The spacing between lines of text. This is also known as leading or line spacing.
  103879. */
  103880. lineGap?: number;
  103881. /**
  103882. * The type of line gap that is applied.
  103883. */
  103884. lineGapType?: keyof typeof LineGapType;
  103885. /**
  103886. * The X offset.
  103887. */
  103888. offsetX?: number;
  103889. /**
  103890. * The Y offset.
  103891. */
  103892. offsetY?: number;
  103893. /**
  103894. * The Z offset.
  103895. */
  103896. offsetZ?: number;
  103897. /**
  103898. * The color of the shadow that is defined for the text symbol. The shadow is drawn as an offset copy of the text.
  103899. */
  103900. shadowColor?: number[];
  103901. /**
  103902. * The shadow offset from the text symbol in the horizontal direction. If X and Y are zero, no shadow is drawn.
  103903. */
  103904. shadowOffsetX?: number;
  103905. /**
  103906. * The shadow offset from the text symbol in the vertical direction. If X and Y are zero, no shadow is drawn.
  103907. */
  103908. shadowOffsetY?: number;
  103909. /**
  103910. * A value indicating whether the text should be drawn as Small Capitals, where lower case text is converted to small caps and upper case text is left as upper case.
  103911. */
  103912. smallCaps?: boolean;
  103913. /**
  103914. * A value indicating whether to draw the text with a strike through it.
  103915. */
  103916. strikethrough?: boolean;
  103917. /**
  103918. * The polygon symbol that is used to draw the glyphs of the text.
  103919. */
  103920. symbol?: CIMPolygonSymbol;
  103921. /**
  103922. * The collection of properties that are applied to the text symbol only in a 3D context.
  103923. */
  103924. symbol3DProperties?: CIM3DSymbolProperties;
  103925. /**
  103926. * The letter case used to draw the text.
  103927. */
  103928. textCase?: keyof typeof TextCase;
  103929. /**
  103930. * The base text direction to draw the text.
  103931. */
  103932. textDirection?: keyof typeof TextReadingDirection;
  103933. /**
  103934. * A value indicating whether to draw the text with an underline.
  103935. */
  103936. underline?: boolean;
  103937. /**
  103938. * The vertical alignment of the text.
  103939. */
  103940. verticalAlignment?: keyof typeof VerticalAlignment;
  103941. /**
  103942. * The orientation for the non-vertical text in a vertical layout. For example, an English fragment in a Japanese text.
  103943. */
  103944. verticalGlyphOrientation?: keyof typeof VerticalGlyphOrientation;
  103945. /**
  103946. * The additional spacing that is added to between the words of the text string. 100% indicates that regular spacing is used.
  103947. */
  103948. wordSpacing?: number;
  103949. /**
  103950. * The billboard mode of the text symbol.
  103951. */
  103952. billboardMode3D?: keyof typeof BillboardMode;
  103953. /**
  103954. * A value indicating whether or not the symbol should overprint in press printing.
  103955. */
  103956. overprint?: boolean;
  103957. }
  103958. /**
  103959. * Represents a vector marker which can represent vector graphics. It's constructed from MarkerGraphics which are geometries and symbols used as building blocks for the marker.
  103960. *
  103961. * [Read more...](https://github.com/Esri/cim-spec/blob/master/docs/v2/CIMSymbols.md#CIMVectorMarker)
  103962. */
  103963. export interface CIMVectorMarker extends CIMMarker {
  103964. type: "CIMVectorMarker";
  103965. /**
  103966. * The depth of the marker when drawn in 3D.
  103967. */
  103968. depth3D?: number;
  103969. /**
  103970. * The outer boundary of the entire vector marker.
  103971. */
  103972. frame?: ExternalReferenceEnvelope;
  103973. /**
  103974. * The vector graphics that define the shape of the marker.
  103975. */
  103976. markerGraphics?: CIMMarkerGraphic[];
  103977. /**
  103978. * A value indicating whether the marker stands upright as though locked in place. The marker can be viewed from all angles.
  103979. */
  103980. verticalOrientation3D?: boolean;
  103981. /**
  103982. * A value indicating whether the strokes and or fills of a marker are scaled proportionally when the symbol size is changed. When enabled, the strokes for the outline or fill of the polygon symbol used to draw the marker will be scaled proportionally with changes to the symbol size. If this property is not enabled, then the stroke will draw with the specified width regardless of the marker size.
  103983. */
  103984. scaleSymbolsProportionally?: boolean;
  103985. /**
  103986. * A value indicating whether the frame of the vector marker should be honored when drawing the marker.
  103987. */
  103988. respectFrame?: boolean;
  103989. /**
  103990. * A clipping path for the vector marker graphics.
  103991. */
  103992. clippingPath?: CIMClippingPath;
  103993. }
  103994. export type CIMMarkerPlacementType = | CIMMarkerPlacementAlongLineRandomSize
  103995. | CIMMarkerPlacementAlongLineSameSize
  103996. | CIMMarkerPlacementAlongLineVariableSize
  103997. | CIMMarkerPlacementAtExtremities
  103998. | CIMMarkerPlacementAtMeasuredUnits
  103999. | CIMMarkerPlacementAtRatioPositions
  104000. | CIMMarkerPlacementOnLine
  104001. | CIMMarkerPlacementOnVertices
  104002. | CIMMarkerPlacementInsidePolygon
  104003. | CIMMarkerPlacementPolygonCenter;
  104004. export type CIMSymbolType = CIMLineSymbol | CIMPointSymbol | CIMPolygonSymbol | CIMTextSymbol;
  104005. export type CIMGeometricEffectType = | CIMGeometricEffectAddControlPoints
  104006. | CIMGeometricEffectArrow
  104007. | CIMGeometricEffectBuffer
  104008. | CIMGeometricEffectCut
  104009. | CIMGeometricEffectDashes
  104010. | CIMGeometricEffectDonut
  104011. | CIMGeometricEffectEnclosingPolygon
  104012. | CIMGeometricEffectExtension
  104013. | CIMGeometricEffectJog
  104014. | CIMGeometricEffectLocalizerFeather
  104015. | CIMGeometricEffectMove
  104016. | CIMGeometricEffectOffset
  104017. | CIMGeometricEffectOffsetHatch
  104018. | CIMGeometricEffectOffsetTangent
  104019. | CIMGeometricEffectRadial
  104020. | CIMGeometricEffectRegularPolygon
  104021. | CIMGeometricEffectReverse
  104022. | CIMGeometricEffectRotate
  104023. | CIMGeometricEffectScale
  104024. | CIMGeometricEffectSuppress
  104025. | CIMGeometricEffectTaperedPolygon
  104026. | CIMGeometricEffectWave;
  104027. export type CIMSymbolLayerType = | CIMCharacterMarker
  104028. | CIMObjectMarker3D
  104029. | CIMPictureMarker
  104030. | CIMVectorMarker
  104031. | CIMGradientFill
  104032. | CIMHatchFill
  104033. | CIMPictureFill
  104034. | CIMSolidFill
  104035. | CIMGradientStroke
  104036. | CIMPictureStroke
  104037. | CIMSolidStroke
  104038. | CIMMaterialSymbolLayer;
  104039. export type CIMCalloutType = CIMLineCallout;
  104040. export interface ExternalReferencePoint {
  104041. x?: number;
  104042. y?: number;
  104043. z?: number;
  104044. m?: number;
  104045. spatialReference?: ExternalReferenceSpatialReference;
  104046. }
  104047. export interface ExternalReferencePolyline {
  104048. hasM?: boolean;
  104049. hasZ?: boolean;
  104050. paths?: number[][][];
  104051. curvePath?: number[][][];
  104052. spatialReference?: ExternalReferenceSpatialReference;
  104053. }
  104054. export interface ExternalReferencePolygon {
  104055. hasM?: boolean;
  104056. hasZ?: boolean;
  104057. rings?: number[][][];
  104058. curveRings?: number[][][];
  104059. spatialReference?: ExternalReferenceSpatialReference;
  104060. }
  104061. export interface ExternalReferenceEnvelope {
  104062. mmax?: number;
  104063. mmin?: number;
  104064. xmax?: number;
  104065. xmin?: number;
  104066. ymax?: number;
  104067. ymin?: number;
  104068. zmax?: number;
  104069. zmin?: number;
  104070. spatialReference?: ExternalReferenceSpatialReference;
  104071. }
  104072. export interface ExternalReferenceSpatialReference {
  104073. wkid?: number;
  104074. latestWkid?: number;
  104075. vcsWkid?: number;
  104076. latestVcsWkid?: number;
  104077. }
  104078. export type ExternalReferenceGeometry = | ExternalReferencePoint
  104079. | ExternalReferencePolyline
  104080. | ExternalReferencePolygon
  104081. | ExternalReferenceEnvelope;
  104082. }
  104083. }