UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

3 lines (2 loc) 613 B
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.19/LICENSE.txt */ import{createTypeReader as e}from"../../core/accessorSupport/extensions/serializableProperty/reader.js";import{rendererTypes as r}from"./typeUtils.js";import{addUnsupportedMessage as n}from"../../webdoc/support/unsupportedErrors.js";function t(e,r){return u(e,null,r)}const o=e({types:r});function u(e,r,t){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?(n(t,"warning","renderer",`Only UniqueValueRenderer can be referenced from a web style, but found '${e.type}'`,{definition:e}),null):o(e,r,t):null}export{t as fromJSON,u as read};