@vertigis/arcgis-extensions 48.3.5 → 48.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AppConfig.schema.json +29 -21
- package/data/FeatureSettings.js +1 -1
- package/data/FeatureSourceBase.js +1 -1
- package/data/Schema.js +1 -1
- package/data/_TableExtension.d.ts +1 -1
- package/docs/html/assets/navigation.js +1 -1
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/data__TableExtension.TableSchema.html +2 -2
- package/docs/html/classes/mapping_WMSLayerExtension.WMSLayerExtension.html +4 -4
- package/docs/html/classes/tasks_identify_IdentifyProviderBase.IdentifyProviderBase.html +1 -1
- package/docs/html/classes/tasks_identify_WMSLayerFeatureInfoIdentifyProvider.WMSLayerFeatureInfoIdentifyProvider.html +62 -0
- package/docs/html/classes/utilities_ObservableSet.ObservableSet.html +1 -1
- package/docs/html/classes/utilities_ObservableWeakSet.ObservableWeakSet.html +1 -1
- package/docs/html/classes/utilities_log.ConsoleLogger.html +7 -7
- package/docs/html/classes/utilities_log.LoggerBase.html +7 -7
- package/docs/html/functions/utilities__gml.esriToGml.html +2 -2
- package/docs/html/functions/utilities__layers.getEquivalencyTypeForLayers.html +1 -0
- package/docs/html/functions/utilities__layers.getLayerUrl.html +2 -2
- package/docs/html/functions/utilities_geometry.buffer.html +5 -5
- package/docs/html/functions/utilities_geometry.esriToGml.html +2 -2
- package/docs/html/functions/utilities_iterable.find.html +2 -2
- package/docs/html/functions/utilities_iterable.first.html +2 -2
- package/docs/html/functions/utilities_mapping.getMapSpatialReference.html +2 -2
- package/docs/html/functions/utilities_object.deepSearchAndTransform.html +6 -4
- package/docs/html/functions/utilities_object.deepSearchAndTransformAsync.html +6 -4
- package/docs/html/functions/utilities_object.getPropertyDescriptor.html +2 -2
- package/docs/html/functions/utilities_object.isEmpty.html +1 -1
- package/docs/html/functions/utilities_object.map.html +1 -1
- package/docs/html/functions/utilities_object.toJSON.html +1 -1
- package/docs/html/functions/utilities_portal.getPortalItemHtmlUrl.html +2 -2
- package/docs/html/functions/utilities_portal.toPortalItem.html +4 -1
- package/docs/html/functions/utilities_set.find.html +2 -2
- package/docs/html/hierarchy.html +1 -1
- package/docs/html/interfaces/data_FieldExtension.FieldProperties.html +4 -2
- package/docs/html/interfaces/json_AnnotationLayerJson.AnnotationLayerJson.html +2 -2
- package/docs/html/interfaces/json_BasemapLayerJson.BasemapLayerJsonBase.html +2 -2
- package/docs/html/interfaces/json_BingLayerJson.BingLayerJson.html +2 -2
- package/docs/html/interfaces/json_BuildingSceneLayerJson.BuildingSceneLayerJson.html +2 -2
- package/docs/html/interfaces/json_CSVLayerJson.CSVLayerJson.html +2 -2
- package/docs/html/interfaces/json_FeatureLayerJson.FeatureLayerJson.html +5 -3
- package/docs/html/interfaces/json_FeatureSetJson.FeatureSetJson.html +4 -2
- package/docs/html/interfaces/json_FieldJson.FieldJson.html +4 -2
- package/docs/html/interfaces/json_GeoJSONLayerJson.GeoJSONLayerJson.html +2 -2
- package/docs/html/interfaces/json_GeoRSSLayerJson.GeoRSSLayerJson.html +2 -2
- package/docs/html/interfaces/json_GroupLayerJson.GroupLayerJson.html +2 -2
- package/docs/html/interfaces/json_ImageServiceLayerJson.ImageServiceLayerJson.html +2 -2
- package/docs/html/interfaces/json_ImageServiceVectorLayerJson.ImageServiceVectorLayerJson.html +2 -2
- package/docs/html/interfaces/json_IntegratedMeshLayerJson.IntegratedMeshLayerJson.html +2 -2
- package/docs/html/interfaces/json_ItemJson.ItemJson.html +5 -2
- package/docs/html/interfaces/json_KMLLayerJson.KMLLayerJson.html +2 -2
- package/docs/html/interfaces/json_LayerDefinitionJson.LayerDefinitionJson.html +2 -2
- package/docs/html/interfaces/json_LayerJson.LayerJsonBase.html +2 -2
- package/docs/html/interfaces/json_MapServiceLayerJson.MapServiceLayerJson.html +2 -2
- package/docs/html/interfaces/json_OpenStreetMapLayerJson.OpenStreetMapLayerJson.html +2 -2
- package/docs/html/interfaces/json_OperationalLayerJson.OperationalLayerJsonBase.html +2 -2
- package/docs/html/interfaces/json_PointCloudLayerJson.PointCloudLayerJson.html +2 -2
- package/docs/html/interfaces/json_RasterDataElevationLayerJson.RasterDataElevationLayerJson.html +2 -2
- package/docs/html/interfaces/json_SceneLayerJson.SceneLayerJson.html +2 -2
- package/docs/html/interfaces/json_StreamLayerJson.StreamLayerJson.html +6 -4
- package/docs/html/interfaces/json_SubtypeGroupLayerJson.SubtypeGroupLayerJson.html +10 -5
- package/docs/html/interfaces/json_SubtypeGroupLayerJson.SubtypeSubtypeGroupLayerJson.html +10 -5
- package/docs/html/interfaces/json_SubtypeSublayerJson.SubtypeSublayerJson.html +9 -6
- package/docs/html/interfaces/json_SymbolJson.TextSymbolJson.html +2 -2
- package/docs/html/interfaces/json_TiledElevationServiceLayerJson.TiledElevationServiceLayerJson.html +2 -2
- package/docs/html/interfaces/json_TiledImageServiceLayerJson.TiledImageServiceLayerJson.html +2 -2
- package/docs/html/interfaces/json_TiledMapServiceLayerJson.TiledMapServiceLayerJson.html +2 -2
- package/docs/html/interfaces/json_VectorTileLayerJson.VectorTileLayerJson.html +2 -2
- package/docs/html/interfaces/json_WFSLayerJson.WFSLayerJson.html +2 -2
- package/docs/html/interfaces/json_WMSLayerJson.WMSLayerJson.html +2 -2
- package/docs/html/interfaces/json_WebTileLayerJson.TileInfoJson.html +2 -2
- package/docs/html/interfaces/json_WebTileLayerJson.WebTileLayerJson.html +2 -2
- package/docs/html/interfaces/mapping_BuildingSceneLayerExtension.BuildingSceneLayerProperties.html +2 -2
- package/docs/html/interfaces/mapping_FeatureLayerExtension.FeatureLayerProperties.html +6 -4
- package/docs/html/interfaces/mapping_FeatureLayerExtensionBase.FeatureLayerBaseProperties.html +6 -4
- package/docs/html/interfaces/mapping_MapImageLayerExtension.MapImageLayerExtensionProperties.html +3 -3
- package/docs/html/interfaces/mapping_PointCloudLayerExtension.PointCloudLayerProperties.html +2 -2
- package/docs/html/interfaces/utilities_format_FormatSettings.FormatSettings.html +1 -1
- package/docs/html/interfaces/utilities_log.LogMessageOptions.html +30 -0
- package/docs/html/interfaces/utilities_log.LogMessageResourceOptions.html +33 -0
- package/docs/html/interfaces/utilities_log.Logger.html +8 -8
- package/docs/html/modules/support_esri.html +1 -0
- package/docs/html/modules/tasks_identify_WMSLayerFeatureInfoIdentifyProvider.html +2 -0
- package/docs/html/modules/tasks_identify_defaultProviders.html +2 -1
- package/docs/html/modules/utilities_log.html +3 -1
- package/docs/html/modules.html +1 -0
- package/docs/html/types/support_esri.RequestResponse.html +1 -0
- package/docs/html/types/utilities_log.LogOptions.html +2 -0
- package/docs/html/variables/version.version.html +1 -1
- package/json/AnnotationLayerJson.d.ts +7 -7
- package/json/BasemapJson.d.ts +4 -4
- package/json/BasemapJson.js +1 -1
- package/json/BasemapLayerJson.d.ts +1 -1
- package/json/BingLayerJson.d.ts +1 -1
- package/json/BuildingSceneLayerJson.d.ts +18 -18
- package/json/BuildingSceneSublayerJson.d.ts +8 -8
- package/json/CSVLayerJson.d.ts +12 -12
- package/json/DefinitionEditorJson.d.ts +9 -9
- package/json/DrawingInfoJson.d.ts +29 -29
- package/json/EnvironmentJson.d.ts +19 -19
- package/json/FeatureCollectionJson.d.ts +1 -1
- package/json/FeatureJson.d.ts +4 -4
- package/json/FeatureJson.js +1 -1
- package/json/FeatureLayerJson.d.ts +20 -16
- package/json/FeatureLayerJson.js +1 -1
- package/json/FeatureSetJson.d.ts +5 -0
- package/json/FieldJson.d.ts +11 -7
- package/json/FormInfoJson.d.ts +48 -48
- package/json/GeoJSONLayerJson.d.ts +6 -6
- package/json/GeoRSSLayerJson.d.ts +4 -4
- package/json/GeometryJson.d.ts +12 -12
- package/json/GroundJson.d.ts +4 -4
- package/json/GroupLayerJson.d.ts +3 -3
- package/json/ImageServiceLayerJson.d.ts +20 -20
- package/json/ImageServiceVectorLayerJson.d.ts +6 -6
- package/json/IntegratedMeshLayerJson.d.ts +2 -2
- package/json/ItemJson.d.ts +51 -46
- package/json/KMLLayerJson.d.ts +3 -3
- package/json/LayerDefinitionJson.d.ts +102 -102
- package/json/LayerJson.d.ts +21 -21
- package/json/LayerJson.js +1 -1
- package/json/MapServiceLayerJson.d.ts +6 -6
- package/json/MosaicRuleJson.d.ts +14 -14
- package/json/OpenStreetMapLayerJson.d.ts +1 -1
- package/json/OperationalLayerJson.d.ts +2 -2
- package/json/PointCloudLayerJson.d.ts +4 -4
- package/json/PopupInfoJson.d.ts +47 -47
- package/json/RasterDataElevationLayerJson.d.ts +1 -1
- package/json/RendererJson.d.ts +113 -113
- package/json/SceneLayerJson.d.ts +7 -7
- package/json/SpatialReferenceJson.d.ts +5 -5
- package/json/SublayerJson.d.ts +17 -17
- package/json/SublayerJson.js +1 -1
- package/json/SubtypeGroupLayerJson.d.ts +14 -5
- package/json/SubtypeSublayerJson.d.ts +13 -8
- package/json/SymbolJson.d.ts +122 -122
- package/json/TableJson.d.ts +10 -10
- package/json/TableJson.js +1 -1
- package/json/TemplateJson.d.ts +4 -4
- package/json/TiledElevationServiceLayerJson.d.ts +3 -3
- package/json/TiledImageServiceLayerJson.d.ts +3 -3
- package/json/TiledMapServiceLayerJson.d.ts +12 -12
- package/json/TypeJson.d.ts +4 -4
- package/json/VectorTileLayerJson.d.ts +4 -4
- package/json/ViewpointJson.d.ts +6 -6
- package/json/WFSLayerJson.d.ts +16 -16
- package/json/WMSLayerJson.d.ts +16 -16
- package/json/WMSSublayerJson.d.ts +5 -5
- package/json/WebMapJson.d.ts +134 -133
- package/json/WebMapJson.js +1 -1
- package/json/WebSceneJson.d.ts +6 -6
- package/json/WebTileLayerJson.d.ts +26 -26
- package/mapping/ImageryLayerExtension.js +1 -1
- package/mapping/MapExtension.js +1 -1
- package/mapping/WMSLayerExtension.d.ts +1 -0
- package/mapping/WMSLayerExtension.js +1 -1
- package/mapping/support/ogc.js +1 -1
- package/package.json +1 -1
- package/support/esri.d.ts +1 -0
- package/tasks/identify/IdentifyService.js +1 -1
- package/tasks/identify/WMSLayerFeatureInfoIdentifyProvider.d.ts +38 -0
- package/tasks/identify/WMSLayerFeatureInfoIdentifyProvider.js +1 -0
- package/tasks/identify/defaultProviders.d.ts +1 -0
- package/tasks/identify/defaultProviders.js +1 -1
- package/utilities/ObservableSet.d.ts +1 -1
- package/utilities/ObservableSet.js +1 -1
- package/utilities/ObservableWeakSet.d.ts +1 -1
- package/utilities/ObservableWeakSet.js +1 -1
- package/utilities/_gml.d.ts +1 -1
- package/utilities/_gml.js +1 -1
- package/utilities/_layers.d.ts +5 -3
- package/utilities/_layers.js +1 -1
- package/utilities/_wkt.js +1 -1
- package/utilities/array.js +1 -1
- package/utilities/asyncIterable.js +1 -1
- package/utilities/checkArg.js +1 -1
- package/utilities/esri.js +1 -1
- package/utilities/format/date.d.ts +8 -8
- package/utilities/format/date.js +1 -1
- package/utilities/format/number.d.ts +9 -9
- package/utilities/format/number.js +1 -1
- package/utilities/format/string.d.ts +12 -12
- package/utilities/format/string.js +1 -1
- package/utilities/geometry.d.ts +4 -3
- package/utilities/geometry.js +1 -1
- package/utilities/iterable.d.ts +2 -2
- package/utilities/log.d.ts +26 -7
- package/utilities/log.js +1 -1
- package/utilities/mapping.d.ts +1 -1
- package/utilities/mapping.js +1 -1
- package/utilities/object.d.ts +10 -6
- package/utilities/object.js +1 -1
- package/utilities/portal.d.ts +4 -1
- package/utilities/portal.js +1 -1
- package/utilities/query.js +1 -1
- package/utilities/set.d.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/docs/html/interfaces/utilities_log.LogOptions.html +0 -33
package/utilities/log.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FormatSettings } from "./FormatSettings.js";
|
|
1
|
+
import type { FormatSettings } from "./format/FormatSettings.js";
|
|
2
2
|
/**
|
|
3
3
|
* Log levels are available in ascending order of severity.
|
|
4
4
|
*/
|
|
@@ -19,18 +19,36 @@ export type LoggerFactory = (name: string, logManager: LogManager) => Logger;
|
|
|
19
19
|
/**
|
|
20
20
|
* Options supported by {@link Logger}.
|
|
21
21
|
*/
|
|
22
|
-
export
|
|
22
|
+
export type LogOptions = LogMessageOptions | LogMessageResourceOptions;
|
|
23
|
+
/**
|
|
24
|
+
* Options with a generic message supported by {@link Logger}.
|
|
25
|
+
*/
|
|
26
|
+
export interface LogMessageOptions extends BaseLogOptions {
|
|
23
27
|
/**
|
|
24
28
|
* A string representing the log message. The format is the same as the
|
|
25
29
|
* syntax for {@link utilities/format/string!StringFormatter.format},
|
|
26
30
|
* allowing for positional arguments.
|
|
27
31
|
*/
|
|
28
|
-
message
|
|
32
|
+
message: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Options that support a language resource message supported by {@link Logger}.
|
|
36
|
+
*/
|
|
37
|
+
export interface LogMessageResourceOptions extends BaseLogOptions {
|
|
29
38
|
/**
|
|
30
|
-
* A language key corresponding to the message to log.
|
|
31
|
-
* messageResource should be specified, but not both.
|
|
39
|
+
* A language key corresponding to the message to log.
|
|
32
40
|
*/
|
|
33
|
-
messageResource
|
|
41
|
+
messageResource: string;
|
|
42
|
+
/**
|
|
43
|
+
* Fallback message to use if the message resource lookup fails.
|
|
44
|
+
*
|
|
45
|
+
* A string representing the log message. The format is the same as the
|
|
46
|
+
* syntax for {@link utilities/format/string!StringFormatter.format},
|
|
47
|
+
* allowing for positional arguments.
|
|
48
|
+
*/
|
|
49
|
+
message?: string;
|
|
50
|
+
}
|
|
51
|
+
interface BaseLogOptions extends FormatSettings {
|
|
34
52
|
/**
|
|
35
53
|
* The error related to the log.
|
|
36
54
|
*/
|
|
@@ -114,7 +132,7 @@ export declare class LogManager {
|
|
|
114
132
|
* A custom factory used to create new loggers. By default, the log manager
|
|
115
133
|
* will create instances of {@link ConsoleLogger}.
|
|
116
134
|
*/
|
|
117
|
-
factory: LoggerFactory;
|
|
135
|
+
factory: LoggerFactory | undefined;
|
|
118
136
|
/**
|
|
119
137
|
* A cache for loggers.
|
|
120
138
|
*/
|
|
@@ -283,3 +301,4 @@ export declare class ConsoleLogger extends LoggerBase {
|
|
|
283
301
|
*/
|
|
284
302
|
protected _log(entry: LogEntry): void;
|
|
285
303
|
}
|
|
304
|
+
export {};
|
package/utilities/log.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isRegisteredLanguageResource as e,translate as o}from"../locale/language.js";import{checkArg as
|
|
1
|
+
import{isRegisteredLanguageResource as e,translate as o}from"../locale/language.js";import{checkArg as r}from"./checkArg.js";import{format as s}from"./format/string.js";export var LogLevel;!function(e){e[e.ALL=0]="ALL",e[e.TRACE=1]="TRACE",e[e.DEBUG=2]="DEBUG",e[e.INFO=3]="INFO",e[e.WARN=4]="WARN",e[e.ERROR=5]="ERROR",e[e.FATAL=6]="FATAL",e[e.OFF=7]="OFF"}(LogLevel||(LogLevel={}));export class LogManager{factory;_loggers=new Map;_logLevels=new Map;getLogger(e){if(r("name",e).isNotMissing(),this._loggers.has(e))return this._loggers.get(e);{const o=this.factory?this.factory(e,this):new ConsoleLogger(e,this);return this._loggers.set(e,o),o}}getLogLevel(e){let o=Array.from(this._logLevels.keys());return o=o.filter((o=>e.startsWith(o))),o=o.sort(((e,o)=>o.length-e.length)),o.length?this._logLevels.get(o[0]):this._logLevels.has("root")?this._logLevels.get("root"):LogLevel.DEBUG}setLogLevel(e,o){this._logLevels.set(e,o)}}let g=new LogManager;export function getLogger(e){return g.getLogger(e)}export function setLogLevel(e,o){r("name",e).isNotMissing(),r("logLevel",o).isNotMissing(),g.setLogLevel(e,o)}export function setLoggerFactory(e){g.factory=e}export function reset(){g=new LogManager}export class LoggerBase{name;get level(){return this._logManager.getLogLevel(this.name)}set level(e){this._logManager.setLogLevel(this.name,e)}_logManager;constructor(e,o){this.name=e,this._logManager=o}log(g,t,...l){if(r("level",g).satisfies((e=>e!==LogLevel.ALL&&e!==LogLevel.OFF),"Invalid log level."),!this._shouldLog(g))return;let a,n,L,i=g;try{"string"==typeof t?e(t)?(a=o({key:t},...l),n=t):a=s(t,...l):(L=t.error,"messageResource"in t?(n=t.messageResource,a=n,e(n)?a=o({key:n,locale:t.locale},...l):null!=t.message&&(a=s({...t,format:t.message},...l))):a=s({...t,format:t.message},...l))}catch(e){const o="string"==typeof t?t:"message"in t?t.message:t.messageResource;let r="";try{r=JSON.stringify(l)}catch(e){r=e.message}a=`Error occurred while formatting log message: "${e.message}". Original log message "${o}"${l.length>0?` with parameters: ${r}`:""}`,i=LogLevel.ERROR}this._log({level:i,time:new Date,message:a,messageResource:n,messageArgs:l,error:L})}trace(e,...o){this.log(LogLevel.TRACE,e,...o)}debug(e,...o){this.log(LogLevel.DEBUG,e,...o)}info(e,...o){this.log(LogLevel.INFO,e,...o)}warn(e,...o){this.log(LogLevel.WARN,e,...o)}error(e,...o){this.log(LogLevel.ERROR,e,...o)}fatal(e,...o){this.log(LogLevel.FATAL,e,...o)}_shouldLog(e){return e>=this.level}}export class ConsoleLogger extends LoggerBase{_log(e){const o=`[${this.name}]: ${e.message}`;switch(e.level){case LogLevel.ERROR:case LogLevel.FATAL:console.error(o),e.error&&(console.error(e.error),e.error.hasOwnProperty("errors")&&console.error(e.error.errors));break;case LogLevel.INFO:console.info(o),e.error&&console.info(e.error);break;case LogLevel.WARN:console.warn(o),e.error&&console.warn(e.error);break;default:console.log(o),e.error&&console.log(e.error)}}}
|
package/utilities/mapping.d.ts
CHANGED
|
@@ -39,4 +39,4 @@ export declare function isGround(ground: unknown): ground is Ground;
|
|
|
39
39
|
*
|
|
40
40
|
* @param map The map for which to retrieve the SpatialReference from.
|
|
41
41
|
*/
|
|
42
|
-
export declare function getMapSpatialReference(map: EsriMap): SpatialReference;
|
|
42
|
+
export declare function getMapSpatialReference(map: EsriMap): SpatialReference | undefined;
|
package/utilities/mapping.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"@arcgis/core/core/Collection";import r from"@arcgis/core/geometry/SpatialReference";export function isMap(e){return"esri.Map"===e?.declaredClass}export function isWebMap(e){return"esri.WebMap"===e?.declaredClass}export function isWebScene(e){return"esri.WebScene"===e?.declaredClass}export function isBasemap(e){return"esri.Basemap"===e?.declaredClass}export function isGround(e){return"esri.Ground"===e?.declaredClass}export function getMapSpatialReference(
|
|
1
|
+
import e from"@arcgis/core/core/Collection";import r from"@arcgis/core/geometry/SpatialReference";import{isGroupLayer as a}from"./_layers.js";export function isMap(e){return"esri.Map"===e?.declaredClass}export function isWebMap(e){return"esri.WebMap"===e?.declaredClass}export function isWebScene(e){return"esri.WebScene"===e?.declaredClass}export function isBasemap(e){return"esri.Basemap"===e?.declaredClass}export function isGround(e){return"esri.Ground"===e?.declaredClass}export function getMapSpatialReference(i){if((isWebScene(i)||isWebMap(i))&&i.initialViewProperties?.spatialReference)return i.initialViewProperties.spatialReference;let n=new e;i.basemap&&(n=n.concat(i.basemap.baseLayers)),n=n.concat(i.layers.flatten((e=>a(e)?e.layers:[]))),i.ground&&(n=n.concat(i.ground.layers));const t=n.find((e=>e.loaded));return t?"spatialReference"in t?t.spatialReference:r.WebMercator:void 0}
|
package/utilities/object.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare function isPlainObject(value: unknown): value is Record<string, u
|
|
|
15
15
|
* @returns An object containing the new values produced by the callback
|
|
16
16
|
* function.
|
|
17
17
|
*/
|
|
18
|
-
export declare function map<T, K extends keyof T, V>(obj: T, callback: (value: T[K], key: K, obj: T) => V): {
|
|
18
|
+
export declare function map<T extends object, K extends keyof T, V>(obj: T, callback: (value: T[K], key: K, obj: T) => V): {
|
|
19
19
|
[K in keyof T]: V;
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
@@ -119,13 +119,13 @@ export declare function deepAssign<T, U, V, W>(target: T, source1: U, source2: V
|
|
|
119
119
|
*
|
|
120
120
|
* @param obj The object to check.
|
|
121
121
|
*/
|
|
122
|
-
export declare function isEmpty<T =
|
|
122
|
+
export declare function isEmpty<T extends object = object>(obj: T): boolean;
|
|
123
123
|
/**
|
|
124
124
|
* Converts a value to its serializable representation (plain JSON).
|
|
125
125
|
*
|
|
126
126
|
* @param value The value to convert.
|
|
127
127
|
*/
|
|
128
|
-
export declare function toJSON<T =
|
|
128
|
+
export declare function toJSON<T extends object | number = object>(value: T | null | undefined): unknown;
|
|
129
129
|
/**
|
|
130
130
|
* Clone the object properties as well as any descendant objects.
|
|
131
131
|
*
|
|
@@ -140,7 +140,7 @@ export declare function deepClone<T>(obj: T): T;
|
|
|
140
140
|
* @param property The name of the property whose description is to be
|
|
141
141
|
* retrieved.
|
|
142
142
|
*/
|
|
143
|
-
export declare function getPropertyDescriptor<T = unknown>(obj: T, property: string | symbol | number): PropertyDescriptor;
|
|
143
|
+
export declare function getPropertyDescriptor<T = unknown>(obj: T, property: string | symbol | number): PropertyDescriptor | undefined;
|
|
144
144
|
/**
|
|
145
145
|
* Traverses the entirety of an object, searching for property names that match
|
|
146
146
|
* the provided propName and transforming their values with the provided
|
|
@@ -150,10 +150,12 @@ export declare function getPropertyDescriptor<T = unknown>(obj: T, property: str
|
|
|
150
150
|
* throughout the given object.
|
|
151
151
|
* @param object The object that will be searched within.
|
|
152
152
|
* @param transformer The callback used to alter the values of found properties.
|
|
153
|
+
* The transformer will receive the current value of the property and should
|
|
154
|
+
* return the new value.
|
|
153
155
|
* @param ignoreTransformedValues Do not deep search and transform values
|
|
154
156
|
* created by the transformer. Defaults to true.
|
|
155
157
|
*/
|
|
156
|
-
export declare function deepSearchAndTransform<T extends object = object
|
|
158
|
+
export declare function deepSearchAndTransform<T extends object = object>(propName: string | RegExp, object: T, transformer: (prop: unknown) => unknown, ignoreTransformedValues?: boolean): boolean;
|
|
157
159
|
/**
|
|
158
160
|
* Traverses the entirety of an object, searching for property names that match
|
|
159
161
|
* the provided propName and transforming their values with the provided
|
|
@@ -163,7 +165,9 @@ export declare function deepSearchAndTransform<T extends object = object, U = un
|
|
|
163
165
|
* throughout the given object.
|
|
164
166
|
* @param object The object that will be searched within.
|
|
165
167
|
* @param transformer The callback used to alter the values of found properties.
|
|
168
|
+
* The transformer will receive the current value of the property and should
|
|
169
|
+
* return the new value.
|
|
166
170
|
* @param ignoreTransformedValues Do not deep search and transform values
|
|
167
171
|
* created by the transformer. Defaults to true.
|
|
168
172
|
*/
|
|
169
|
-
export declare function deepSearchAndTransformAsync<T extends object = object
|
|
173
|
+
export declare function deepSearchAndTransformAsync<T extends object = object>(propName: string | RegExp, object: T, transformer: (prop: unknown) => Promise<unknown>, ignoreTransformedValues?: boolean): Promise<boolean>;
|
package/utilities/object.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{checkArg as t}from"./checkArg.js";import{parallelEach as e}from"./promise.js";export function isPlainObject(t){return"object"==typeof t&&!Array.isArray(t)&&t&&Object.getPrototypeOf(t)===Object.prototype}export function map(e,r){t("obj",e).isNotMissing(),t("callback",r).isNotMissing();const o={};for(const t of Object.keys(e))o[t]=r(e[t],t,e);return o}export function filter(e,r){t("obj",e).isNotMissing(),t("callback",r).isNotMissing();const o={},n=Object.keys(e);for(const t of n)r(e[t],t,e)&&(o[t]=e[t]);return o}export const objectKeys=Object.keys;export const objectEntries=Object.entries;export function deepAssign(t,...e){return function(t,...e){if(null==t)throw new TypeError("Cannot convert undefined or null to object.");const r=Object(t);return e.forEach((t=>{if(!t)return;const e=Object(t);if("function"!=typeof r.assignProperties)for(const t of Object.keys(e))r[t]&&"object"==typeof r[t]?deepAssign(r[t],e[t]):n(r,t)&&(r[t]=e[t]);else r.assignProperties(e)})),r}(t,...e)}export function isEmpty(t){return!Object.keys(t).length}export function toJSON(t){return JSON.parse(JSON.stringify(t,((t,e)=>e&&"string"==typeof e.declaredClass&&e.declaredClass.includes("Collection")&&"function"==typeof e.toArray?e.toArray():void 0===e?null:e)))}export function deepClone(t){return JSON.parse(JSON.stringify(t))}export function getPropertyDescriptor(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");let r=t;for(;r;){const t=Object.getOwnPropertyDescriptor(r,e);if(t)return t;r=Object.getPrototypeOf(r)}}export function deepSearchAndTransform(t,e,o,n=!0){return r(t,e,o,n)}export async function deepSearchAndTransformAsync(t,e,r,n=!0){return o(t,e,r,n)}function r(t,e,o,n=!0,s=new Set){let c=!1;if(s.has(e))return c;s.add(e);for(const i of objectKeys(e)){("string"==typeof t?i===t:t.test(i))&&(e[i]=o(e[i]),c=!0,n)||e[i]&&"object"==typeof e[i]&&(c=r(t,e[i],o,n,s)||c)}return c}async function o(t,r,n,s=!0,c=new Set){let i=!1;if(c.has(r))return i;c.add(r);const f=Object.keys(r);return await e(f,(async e=>{("string"==typeof t?e===t:t.test(e))&&(r[e]=await n(r[e]),i=!0,s)||r[e]&&"object"==typeof r[e]&&(i=await o(t,r[e],n,s,c)||i)})),i}function n(t,e){const r=getPropertyDescriptor(t,e);return!r||r.writable&&!(r.get&&!r.set)}
|
|
1
|
+
import{checkArg as t}from"./checkArg.js";import{parallelEach as e}from"./promise.js";export function isPlainObject(t){return"object"==typeof t&&!Array.isArray(t)&&null!=t&&Object.getPrototypeOf(t)===Object.prototype}export function map(e,r){t("obj",e).isNotMissing(),t("callback",r).isNotMissing();const o={};for(const t of Object.keys(e))o[t]=r(e[t],t,e);return o}export function filter(e,r){t("obj",e).isNotMissing(),t("callback",r).isNotMissing();const o={},n=Object.keys(e);for(const t of n)r(e[t],t,e)&&(o[t]=e[t]);return o}export const objectKeys=Object.keys;export const objectEntries=Object.entries;export function deepAssign(t,...e){return function(t,...e){if(null==t)throw new TypeError("Cannot convert undefined or null to object.");const r=Object(t);return e.forEach((t=>{if(!t)return;const e=Object(t);if("function"!=typeof r.assignProperties)for(const t of Object.keys(e))r[t]&&"object"==typeof r[t]?deepAssign(r[t],e[t]):n(r,t)&&(r[t]=e[t]);else r.assignProperties(e)})),r}(t,...e)}export function isEmpty(t){return!Object.keys(t).length}export function toJSON(t){return JSON.parse(JSON.stringify(t,((t,e)=>e&&"string"==typeof e.declaredClass&&e.declaredClass.includes("Collection")&&"function"==typeof e.toArray?e.toArray():void 0===e?null:e)))}export function deepClone(t){return JSON.parse(JSON.stringify(t))}export function getPropertyDescriptor(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");let r=t;for(;r;){const t=Object.getOwnPropertyDescriptor(r,e);if(t)return t;r=Object.getPrototypeOf(r)}}export function deepSearchAndTransform(t,e,o,n=!0){return r(t,e,o,n)}export async function deepSearchAndTransformAsync(t,e,r,n=!0){return o(t,e,r,n)}function r(t,e,o,n=!0,s=new Set){let c=!1;if(s.has(e))return c;s.add(e);for(const i of objectKeys(e)){("string"==typeof t?i===t:t.test(i.toString()))&&(e[i]=o(e[i]),c=!0,n)||e[i]&&"object"==typeof e[i]&&(c=r(t,e[i],o,n,s)||c)}return c}async function o(t,r,n,s=!0,c=new Set){let i=!1;if(c.has(r))return i;c.add(r);const f=Object.keys(r);return await e(f,(async e=>{("string"==typeof t?e===t:t.test(e.toString()))&&(r[e]=await n(r[e]),i=!0,s)||r[e]&&"object"==typeof r[e]&&(i=await o(t,r[e],n,s,c)||i)})),i}function n(t,e){const r=getPropertyDescriptor(t,e);return!r||(r.writable??!1)&&!(r.get&&!r.set)}
|
package/utilities/portal.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export declare function isPortalItemId(input: string): boolean;
|
|
|
26
26
|
*
|
|
27
27
|
* @param itemLike PortalItem.
|
|
28
28
|
*/
|
|
29
|
-
export declare function getPortalItemHtmlUrl(itemLike: PortalItemLike): string;
|
|
29
|
+
export declare function getPortalItemHtmlUrl(itemLike: PortalItemLike): string | undefined;
|
|
30
30
|
/**
|
|
31
31
|
* Determines whether the input is a valid URL to a Portal item.
|
|
32
32
|
*
|
|
@@ -44,6 +44,9 @@ export declare function isPortalItemLike(input: unknown): input is PortalItemLik
|
|
|
44
44
|
* Converts the input to a PortalItem object.
|
|
45
45
|
*
|
|
46
46
|
* @param input The input to convert.
|
|
47
|
+
* @throws ArgumentError - If the input can't be converted. Use
|
|
48
|
+
* {@link isPortalItemLike()} to determine if the input can be converted if the
|
|
49
|
+
* input is unknown.
|
|
47
50
|
*/
|
|
48
51
|
export declare function toPortalItem(input: PortalItemLike): PortalItem;
|
|
49
52
|
/**
|
package/utilities/portal.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"@arcgis/core/portal/Portal";import r from"@arcgis/core/portal/PortalItem";import{ArgumentError as e}from"../ArgumentError.js";import{isPortalUri as o,PortalUri as i}from"../PortalUri.js";import{config as n}from"../config.js";import{isPortalItem as s}from"./esri.js";import{Uri as a}from"./uri.js";import{generateUuid as l}from"./uuid.js";export function isPortalItemId(t){return/^[a-fA-F0-9]{32}$/.test(t)}export function getPortalItemHtmlUrl(t){const r=toPortalItem(t);if(r.portal?.url&&r.id){const t=new a("home/item.html");return t.queryValues.set("id",r.id),t.toAbsoluteUri(`${r.portal.url}/`).toString()}}export function isPortalItemUrl(t){return"string"==typeof t?o(t)||isPortalItemUrl(new a(t)):!!t&&(u.test(t.path)||!!t.path?.endsWith("/home/item.html")&&isPortalItemId(t.queryValues.get("id")))}export function isPortalItemLike(t){if(s(t)||t instanceof i)return!0;if(t instanceof a){const r=t.toString();return isPortalItemUrl(r)||o(r)}return"string"==typeof t?isPortalItemId(t)||o(t)||isPortalItemUrl(t)
|
|
1
|
+
import t from"@arcgis/core/portal/Portal";import r from"@arcgis/core/portal/PortalItem";import{ArgumentError as e}from"../ArgumentError.js";import{isPortalUri as o,PortalUri as i}from"../PortalUri.js";import{config as n}from"../config.js";import{isPortalItem as s}from"./esri.js";import{Uri as a}from"./uri.js";import{generateUuid as l}from"./uuid.js";export function isPortalItemId(t){return/^[a-fA-F0-9]{32}$/.test(t)}export function getPortalItemHtmlUrl(t){const r=toPortalItem(t);if(r.portal?.url&&r.id){const t=new a("home/item.html");return t.queryValues.set("id",r.id),t.toAbsoluteUri(`${r.portal.url}/`).toString()}}export function isPortalItemUrl(t){return"string"==typeof t?o(t)||isPortalItemUrl(new a(t)):!!t&&(u.test(t.path)||!!t.path?.endsWith("/home/item.html")&&t.queryValues.has("id")&&isPortalItemId(t.queryValues.get("id")))}export function isPortalItemLike(t){if(s(t)||t instanceof i)return!0;if(t instanceof a){const r=t.toString();return isPortalItemUrl(r)||o(r)}return"string"==typeof t?isPortalItemId(t)||o(t)||isPortalItemUrl(t):!(!t||null==t.id)&&isPortalItemId(t.id)}export function toPortalItem(n){if(n instanceof r)return n;if(n instanceof i)return n.toPortalItem();if(n instanceof a)return p(n);if("string"==typeof n){if(isPortalItemId(n))return new r({id:n});if(o(n))return new i(n).toPortalItem();if(isPortalItemUrl(n))return p(new a(n));throw new e("input",`Unable to convert "${n}" to a Portal item. Make sure it is a valid Portal item ID or URL.`)}if("object"==typeof n){const e=r.fromJSON(n);return e.id=n.id,e.portal=t.getDefault(),e}throw new e("toPortalItem(): invalid input type.")}export function serializePortalItem(t){if(s(t)){if(t.itemUrl)return m(t.itemUrl);if(t.portal){const r=new a("/sharing/rest/content/items/");return r.queryValues.set("id",t.id),m(r.toAbsoluteUri(t.portal.url))}return t.id}return t instanceof i?t.toString():t instanceof a||"string"==typeof t?m(t):t}function m(t){const r="string"==typeof t?new a(t):t;return r.host.toLowerCase().endsWith(".maps.arcgis.com")&&(r.host="www.arcgis.com"),r.toString()}const u=/\/sharing\/rest\/content\/items\/([a-fA-F0-9]{32}).*/,f=/\/home\/item\.html$/;function p(o){const i=new a;let s;const m=o.path.match(u);if(m)i.path=o.path.replace(u,""),s=m[1];else{if(!(o.path?.endsWith("/home/item.html")&&o.queryValues.has("id")&&isPortalItemId(o.queryValues.get("id"))))throw new e("itemUrl",`Invalid Portal item URL "${o.toString()}".`);i.path=o.path.replace(f,""),s=o.queryValues.get("id")}i.scheme=o.scheme,i.host=o.host,i.port=o.port;const p=i.toString(),c=new r({id:s});if(p===t.getDefault().url)c.portal=t.getDefault();else{let r=[...n.portals.values()].find((t=>t.url===p));r||(r=new t({id:l(),url:p}),n.portals.set(r.id,r)),c.portal=r}return c}
|
package/utilities/query.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{filter as t}from"@arcgis/core/core/promiseUtils.js";import{intersects as e}from"@arcgis/core/geometry/geometryEngineAsync";import{Feature as r}from"../data/Feature.js";import{project as a}from"../utilities/geometry.js";import{isGraphic as i}from"./esri.js";const o="alasql-id",s={outFields:["*"],returnGeometry:!0};export async function query(t,e,r,a){if(!r?.length)return[];const{spatialFilter:l,returnGeometry:u,outFields:p}={...s,...a},
|
|
1
|
+
import{filter as t}from"@arcgis/core/core/promiseUtils.js";import{intersects as e}from"@arcgis/core/geometry/geometryEngineAsync";import{Feature as r}from"../data/Feature.js";import{project as a}from"../utilities/geometry.js";import{isGraphic as i}from"./esri.js";const o="alasql-id",s={outFields:["*"],returnGeometry:!0};export async function query(t,e,r,a){if(!r?.length)return[];const{spatialFilter:l,returnGeometry:u,outFields:p}={...s,...a},c=l?await spatialFilter(r,l):r,m=!i(c[0]);if(t){const r=new Map,a=c.map(((t,e)=>{r.set(e,t);let a={};return m?Array.from(t.attributes.entries()).forEach((([t,e])=>{a[t]=e})):a={...t.attributes},a[o]=e,a}));return(0,(await import("alasql")).default)(`SELECT * FROM ? WHERE ${t}`,[a]).map((t=>m?r.get(t[o]):n(t,r.get(t[o]),e,u,p)))}return m?c:c.map((t=>n(t.attributes,t,e,u,p)))}export async function count(t,e,r){if(!e?.length)return 0;const{spatialFilter:a}=r??{},s=a?await spatialFilter(e,a):e,n=!i(s[0]);if(t){const e=s.map(((t,e)=>{let r={};return n?Array.from(t.attributes.entries()).forEach((([t,e])=>r[t]=e)):r={...t.attributes},r[o]=e,r}));return(0,(await import("alasql")).default)(`SELECT * FROM ? WHERE ${t}`,[e]).length}return s.length}export async function spatialFilter(r,i){if(!r?.length)return[];const o=r[0].geometry.spatialReference;let s=i.clone();return o&&!o.equals(s.spatialReference)&&(s=(await a([s],o))[0]),t(r,(async t=>!!t.geometry&&e(s,t.geometry)))}function n(t,e,a,i,s){const n=new r({source:a});for(const e of Object.keys(t))e!==o&&(s.includes("*")||s.includes(e))&&n.attributes.set(e,t[e]);return i&&(n.geometry=e.geometry),e.popupTemplate&&(n.settings.popupTemplate=e.popupTemplate),n}
|
package/utilities/set.d.ts
CHANGED
|
@@ -33,4 +33,4 @@ export declare function filter<T>(set: Set<T>, callback: (value: T, set: Set<T>)
|
|
|
33
33
|
* @param set The set to search.
|
|
34
34
|
* @param callback The testing function.
|
|
35
35
|
*/
|
|
36
|
-
export declare function find<T>(set: Set<T>, callback: (value: T, set: Set<T>) => boolean): T;
|
|
36
|
+
export declare function find<T>(set: Set<T>, callback: (value: T, set: Set<T>) => boolean): T | undefined;
|
package/version.d.ts
CHANGED
package/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version="48.
|
|
1
|
+
export const version="48.4.1";
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>LogOptions | @vertigis/arcgis-extensions</title><meta name="description" content="Documentation for @vertigis/arcgis-extensions"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@vertigis/arcgis-extensions</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@vertigis/arcgis-extensions</a></li><li><a href="../modules/utilities_log.html">utilities/log</a></li><li><a href="utilities_log.LogOptions.html">LogOptions</a></li></ul><h1>Interface LogOptions</h1></div><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><p>Options supported by <a href="utilities_log.Logger.html" class="tsd-kind-interface">Logger</a>.</p>
|
|
2
|
-
</div><div class="tsd-comment tsd-typography"></div></section><div class="tsd-signature"><span class="tsd-signature-keyword">interface </span><span class="tsd-kind-interface">LogOptions</span> <span class="tsd-signature-symbol">{ </span><br/><span> </span><a class="tsd-kind-property" href="utilities_log.LogOptions.html#currency">currency</a><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span><a class="tsd-kind-property" href="utilities_log.LogOptions.html#dateFormat">dateFormat</a><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span><a class="tsd-kind-property" href="utilities_log.LogOptions.html#error">error</a><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol">; </span><br/><span> </span><a class="tsd-kind-property" href="utilities_log.LogOptions.html#fractionalDigits">fractionalDigits</a><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span> </span><a class="tsd-kind-property" href="utilities_log.LogOptions.html#locale">locale</a><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span><a class="tsd-kind-property" href="utilities_log.LogOptions.html#message">message</a><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span><a class="tsd-kind-property" href="utilities_log.LogOptions.html#messageResource">messageResource</a><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span><a class="tsd-kind-property" href="utilities_log.LogOptions.html#numberFormat">numberFormat</a><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span><a class="tsd-kind-property" href="utilities_log.LogOptions.html#timeFormat">timeFormat</a><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span><a class="tsd-kind-property" href="utilities_log.LogOptions.html#timeZone">timeZone</a><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span></div><section class="tsd-panel tsd-hierarchy"><h4>Hierarchy (<a href="../hierarchy.html#utilities/log.LogOptions">view full</a>)</h4><ul class="tsd-hierarchy"><li><a href="utilities_format_FormatSettings.FormatSettings.html" class="tsd-signature-type tsd-kind-interface">FormatSettings</a><ul class="tsd-hierarchy"><li><span class="target">LogOptions</span></li></ul></li></ul></section><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="utilities_log.LogOptions.html#currency" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>currency?</span></a>
|
|
3
|
-
<a href="utilities_log.LogOptions.html#dateFormat" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>date<wbr/>Format?</span></a>
|
|
4
|
-
<a href="utilities_log.LogOptions.html#error" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>error?</span></a>
|
|
5
|
-
<a href="utilities_log.LogOptions.html#fractionalDigits" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>fractional<wbr/>Digits?</span></a>
|
|
6
|
-
<a href="utilities_log.LogOptions.html#locale" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>locale?</span></a>
|
|
7
|
-
<a href="utilities_log.LogOptions.html#message" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>message?</span></a>
|
|
8
|
-
<a href="utilities_log.LogOptions.html#messageResource" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>message<wbr/>Resource?</span></a>
|
|
9
|
-
<a href="utilities_log.LogOptions.html#numberFormat" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>number<wbr/>Format?</span></a>
|
|
10
|
-
<a href="utilities_log.LogOptions.html#timeFormat" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>time<wbr/>Format?</span></a>
|
|
11
|
-
<a href="utilities_log.LogOptions.html#timeZone" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>time<wbr/>Zone?</span></a>
|
|
12
|
-
</div></section></div></details></section></section><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Properties"><h2><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg> Properties</h2></summary><section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="currency" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag">Optional</code><span>currency</span><a href="#currency" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">currency</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div><div class="tsd-comment tsd-typography"><p>The default unit of currency to use when formatting currency. See
|
|
13
|
-
<a href="utilities_format_number.NumberSettings.html#currency" class="tsd-kind-property">utilities/format/number!NumberSettings.currency</a>.</p>
|
|
14
|
-
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><p>Inherited from <a href="utilities_format_FormatSettings.FormatSettings.html">FormatSettings</a>.<a href="utilities_format_FormatSettings.FormatSettings.html#currency">currency</a></p></aside></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="dateFormat" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag">Optional</code><span>date<wbr/>Format</span><a href="#dateFormat" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">date<wbr/>Format</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div><div class="tsd-comment tsd-typography"><p>The default format to use when formatting dates. See
|
|
15
|
-
<a href="../classes/utilities_format_date.DateFormatter.html#format" class="tsd-kind-method">utilities/format/date!DateFormatter.format</a>.</p>
|
|
16
|
-
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><p>Inherited from <a href="utilities_format_FormatSettings.FormatSettings.html">FormatSettings</a>.<a href="utilities_format_FormatSettings.FormatSettings.html#dateFormat">dateFormat</a></p></aside></section><section class="tsd-panel tsd-member"><a id="error" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag">Optional</code><span>error</span><a href="#error" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">error</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">Error</span></div><div class="tsd-comment tsd-typography"><p>The error related to the log.</p>
|
|
17
|
-
</div><div class="tsd-comment tsd-typography"></div></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="fractionalDigits" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag">Optional</code><span>fractional<wbr/>Digits</span><a href="#fractionalDigits" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">fractional<wbr/>Digits</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span></div><div class="tsd-comment tsd-typography"><p>The default number of digits to show after the decimal point when
|
|
18
|
-
formatting numbers. See
|
|
19
|
-
<a href="utilities_format_number.NumberSettings.html#fractionalDigits" class="tsd-kind-property">utilities/format/number!NumberSettings.fractionalDigits</a>.</p>
|
|
20
|
-
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><p>Inherited from <a href="utilities_format_FormatSettings.FormatSettings.html">FormatSettings</a>.<a href="utilities_format_FormatSettings.FormatSettings.html#fractionalDigits">fractionalDigits</a></p></aside></section><section class="tsd-panel tsd-member"><a id="locale" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag">Optional</code><span>locale</span><a href="#locale" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">locale</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div><div class="tsd-comment tsd-typography"><p>The locale to use when formatting numbers and dates. If not specified,
|
|
21
|
-
the current locale is used (see locale module).</p>
|
|
22
|
-
</div><div class="tsd-comment tsd-typography"></div></section><section class="tsd-panel tsd-member"><a id="message" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag">Optional</code><span>message</span><a href="#message" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">message</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div><div class="tsd-comment tsd-typography"><p>A string representing the log message. The format is the same as the
|
|
23
|
-
syntax for <a href="../classes/utilities_format_string.StringFormatter.html#format" class="tsd-kind-method">utilities/format/string!StringFormatter.format</a>,
|
|
24
|
-
allowing for positional arguments.</p>
|
|
25
|
-
</div><div class="tsd-comment tsd-typography"></div></section><section class="tsd-panel tsd-member"><a id="messageResource" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag">Optional</code><span>message<wbr/>Resource</span><a href="#messageResource" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">message<wbr/>Resource</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div><div class="tsd-comment tsd-typography"><p>A language key corresponding to the message to log. Either message or
|
|
26
|
-
messageResource should be specified, but not both.</p>
|
|
27
|
-
</div><div class="tsd-comment tsd-typography"></div></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="numberFormat" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag">Optional</code><span>number<wbr/>Format</span><a href="#numberFormat" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">number<wbr/>Format</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div><div class="tsd-comment tsd-typography"><p>The default format to use when formatting numbers. See
|
|
28
|
-
<a href="../classes/utilities_format_number.NumberFormatter.html#format" class="tsd-kind-method">utilities/format/number!NumberFormatter.format</a>.</p>
|
|
29
|
-
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><p>Inherited from <a href="utilities_format_FormatSettings.FormatSettings.html">FormatSettings</a>.<a href="utilities_format_FormatSettings.FormatSettings.html#numberFormat">numberFormat</a></p></aside></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="timeFormat" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag">Optional</code><span>time<wbr/>Format</span><a href="#timeFormat" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">time<wbr/>Format</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div><div class="tsd-comment tsd-typography"><p>The default format to use when formatting times. See
|
|
30
|
-
<a href="../classes/utilities_format_time.TimeFormatter.html#format" class="tsd-kind-method">utilities/format/time!TimeFormatter.format</a>.</p>
|
|
31
|
-
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><p>Inherited from <a href="utilities_format_FormatSettings.FormatSettings.html">FormatSettings</a>.<a href="utilities_format_FormatSettings.FormatSettings.html#timeFormat">timeFormat</a></p></aside></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="timeZone" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag">Optional</code><span>time<wbr/>Zone</span><a href="#timeZone" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">time<wbr/>Zone</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div><div class="tsd-comment tsd-typography"><p>The time zone of a date being formatted. See
|
|
32
|
-
<a href="../classes/utilities_format_date.DateFormatter.html#timeZone" class="tsd-kind-accessor">utilities/format/date!DateFormatter.timeZone</a>.</p>
|
|
33
|
-
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><p>Inherited from <a href="utilities_format_FormatSettings.FormatSettings.html">FormatSettings</a>.<a href="utilities_format_FormatSettings.FormatSettings.html#timeZone">timeZone</a></p></aside></section></section></details></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="tsd-otp-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Properties</summary><div><a href="#currency" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>currency</span></a><a href="#dateFormat" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>date<wbr/>Format</span></a><a href="#error" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>error</span></a><a href="#fractionalDigits" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>fractional<wbr/>Digits</span></a><a href="#locale" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>locale</span></a><a href="#message" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>message</span></a><a href="#messageResource" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>message<wbr/>Resource</span></a><a href="#numberFormat" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>number<wbr/>Format</span></a><a href="#timeFormat" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>time<wbr/>Format</span></a><a href="#timeZone" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>time<wbr/>Zone</span></a></div></details></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>@vertigis/arcgis-extensions</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>
|