@vertigis/arcgis-extensions 42.0.0 → 42.0.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.
|
@@ -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.1"</span><span class="tsd-signature-symbol"> = "42.0.1"</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">
|
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.1";
|