@vertigis/arcgis-extensions 42.0.0 → 42.0.2
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.
|
@@ -9,7 +9,6 @@ import type { Cardinality, Relationship, RelationshipProperties, RelationshipTyp
|
|
|
9
9
|
* A base class for implementations of {@link data/_Relationship!Relationship}.
|
|
10
10
|
*/
|
|
11
11
|
export declare abstract class RelationshipBase<TProperties extends RelationshipProperties = RelationshipProperties> extends EntityBase<TProperties> implements Relationship {
|
|
12
|
-
#private;
|
|
13
12
|
/**
|
|
14
13
|
* @inheritDoc
|
|
15
14
|
*/
|
|
@@ -38,6 +37,7 @@ export declare abstract class RelationshipBase<TProperties extends RelationshipP
|
|
|
38
37
|
* @inheritDoc
|
|
39
38
|
*/
|
|
40
39
|
protected _source: FeatureSource;
|
|
40
|
+
private readonly _getRelatedFeaturesPromises;
|
|
41
41
|
/**
|
|
42
42
|
* @inheritDoc
|
|
43
43
|
*/
|
package/data/RelationshipBase.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{EntityBase as e}from"../Entity.js";import{InvalidOperationError as t}from"../InvalidOperationError.js";import{isFeatureSet as s,ItemType as r}from"../ItemType.js";import{cancelify as a}from"../support/Cancellable.js";import{checkArg as i}from"../utilities/checkArg.js";const o="Cannot get related features without feature source.";export class RelationshipBase extends e{constructor(){super(...arguments),this._itemType=r.RELATIONSHIP,this._getRelatedFeaturesPromises=new WeakMap}get source(){return this._source}async getRelatedFeatures(e,s){if(i("feature",e).isNotMissing(),!this.source)throw new t(o);this._getRelatedFeaturesPromises.has(e)||this._getRelatedFeaturesPromises.set(e,(async()=>{try{return await this._getRelatedFeatures(e,s)}finally{this._getRelatedFeaturesPromises.delete(e)}})());const r=this._getRelatedFeaturesPromises.get(e);return a(r,s?.cancelToken)}async getAllRelatedFeatures(e,r){if(i("feature",e).isNotMissing(),!this.source)throw new t(o);let l;l=Array.isArray(e)?e:s(e)?[...e]:await e.toArray();const n=a(this._getAllRelatedFeatures(l,r),r?.cancelToken);for(const e of l)this._getRelatedFeaturesPromises.has(e)||this._getRelatedFeaturesPromises.set(e,(async()=>{try{return(await n).get(e)}finally{this._getRelatedFeaturesPromises.delete(e)}})());return n}_setSource(e){this._source=e}_getSerializableProperties(){return{...super._getSerializableProperties(),title:"initial"}}}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<li><a href="../modules/version.html">version</a></li>
|
|
17
17
|
<li><a href="version.version.html">version</a></li></ul>
|
|
18
18
|
<h1>Variable version<code class="tsd-tag ts-flagConst">Const</code> </h1></div>
|
|
19
|
-
<div class="tsd-signature"><span class="tsd-kind-variable">version</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"42.0.
|
|
19
|
+
<div class="tsd-signature"><span class="tsd-kind-variable">version</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"42.0.2"</span><span class="tsd-signature-symbol"> = "42.0.2"</span></div>
|
|
20
20
|
<div class="tsd-comment tsd-typography"><p>The current version of the Geocortex ArcGIS Extensions API.</p>
|
|
21
21
|
</div></div>
|
|
22
22
|
<div class="col-sidebar">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ArgumentError as e}from"../../ArgumentError.js";import{isBuildingComponentSublayer as r,isBuildingGroupSublayer as n,isKMLSublayer as t,isMapImageSublayer as
|
|
1
|
+
import{ArgumentError as e}from"../../ArgumentError.js";import{isBuildingComponentSublayer as r,isBuildingGroupSublayer as n,isKMLSublayer as t,isMapImageSublayer as s,isMapNotesSublayer as i,isSubtypeSublayer as o,isTileLayer as u,isWMSSublayer as a}from"../../utilities/_layers.js";import{checkArg as l}from"../../utilities/checkArg.js";import{BuildingComponentSublayerExtension as y}from"../BuildingComponentSublayerExtension.js";import{BuildingGroupSublayerExtension as b}from"../BuildingGroupSublayerExtension.js";import{KMLSublayerExtension as p}from"../KMLSublayerExtension.js";import{MapImageSublayerExtension as S}from"../MapImageSublayerExtension.js";import{MapNotesSublayerExtension as c}from"../MapNotesSublayerExtension.js";import{SubtypeSublayerExtension as m}from"../SubtypeSublayerExtension.js";import{TileSublayerExtension as f}from"../TileSublayerExtension.js";import{WMSSublayerExtension as w}from"../WMSSublayerExtension.js";export class DefaultSublayerExtensionFactory{constructor(){}create(x){l("properties",x).isNotMissing(),l("properties.sublayer",x.sublayer).isNotMissing();const E=x.sublayer;if(s(E))return u(E.layer)?new f(x):new S(x);if(i(E))return new c(x);if(t(E))return new p(x);if(a(E))return new w(x);if(r(E))return new y(x);if(n(E))return new b(x);if(o(E))return new m(x);if(x.sublayer.$sublayerType)switch(x.sublayer.$sublayerType){case"ArcGISMapServiceSublayer":return new S(x);case"ArcGISTiledSublayer":return new f(x);case"WMSSublayer":return new w(x);case"KMLSublayer":return new p(x);case"BuildingComponentSublayer":return new y(x);case"BuildingGroupSublayer":return new b(x);case"SubtypeSublayer":return new m(x);case"MapNotesSublayer":return new c(x);case"WMTSSublayer":return{}}throw new e("properties.sublayer","Unable to determine correct type of sublayer extension to create.")}}DefaultSublayerExtensionFactory.instance=new DefaultSublayerExtensionFactory;
|
package/package.json
CHANGED
package/version.d.ts
CHANGED
package/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version="42.0.
|
|
1
|
+
export const version="42.0.2";
|