aotrautils 0.0.206 → 0.0.209
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.
- aotrautils/aotrautils.build.js +37 -8
- aotrautils/package.json +1 -1
aotrautils/aotrautils.build.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
/*utils COMMONS library associated with aotra version : «1.0.0.000 (19/07/2022-03:
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1.0.0.000 (19/07/2022-03:46:31)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -4828,7 +4828,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
4828
4828
|
|
|
4829
4829
|
|
|
4830
4830
|
|
|
4831
|
-
/*utils CLIENT library associated with aotra version : «1.0.0.000 (19/07/2022-03:
|
|
4831
|
+
/*utils CLIENT library associated with aotra version : «1.0.0.000 (19/07/2022-03:46:31)»*/
|
|
4832
4832
|
/*-----------------------------------------------------------------------------*/
|
|
4833
4833
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
4834
4834
|
*
|
|
@@ -11678,7 +11678,7 @@ createFusrodaClient=function(doOnClientReady, doOnDataReception, urlParam=null,
|
|
|
11678
11678
|
|
|
11679
11679
|
|
|
11680
11680
|
|
|
11681
|
-
/*utils GEOMETRY library associated with aotra version : «1.0.0.000 (19/07/2022-03:
|
|
11681
|
+
/*utils GEOMETRY library associated with aotra version : «1.0.0.000 (19/07/2022-03:46:31)»*/
|
|
11682
11682
|
/*-----------------------------------------------------------------------------*/
|
|
11683
11683
|
|
|
11684
11684
|
|
|
@@ -12884,7 +12884,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
12884
12884
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
12885
12885
|
|
|
12886
12886
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
12887
|
-
/*utils SERVER library associated with aotra version : «1.0.0.000 (19/07/2022-03:
|
|
12887
|
+
/*utils SERVER library associated with aotra version : «1.0.0.000 (19/07/2022-03:46:31)»*/
|
|
12888
12888
|
/*-----------------------------------------------------------------------------*/
|
|
12889
12889
|
|
|
12890
12890
|
|
|
@@ -14219,13 +14219,25 @@ class ListManager{
|
|
|
14219
14219
|
lognow("ERROR : Cannot add null item.");
|
|
14220
14220
|
return;
|
|
14221
14221
|
}
|
|
14222
|
-
const numberOfItemsCurrently=
|
|
14222
|
+
const numberOfItemsCurrently=getArraySize(this.itemsInfos);
|
|
14223
|
+
|
|
14224
|
+
// DBG
|
|
14225
|
+
lognow(">>>>>>>>>numberOfItemsCurrently:",numberOfItemsCurrently);
|
|
14226
|
+
lognow(">>>>>>>>>Object.keys(arrayOfValues):",Object.keys(this.itemsInfos));
|
|
14227
|
+
|
|
14228
|
+
|
|
14223
14229
|
if(this.maxItemsNumber<=numberOfItemsCurrently){
|
|
14224
14230
|
// TRACE
|
|
14225
14231
|
lognow("ERROR : Cannot add item with id «"+id+"», list already full.");
|
|
14226
14232
|
return;
|
|
14227
14233
|
}
|
|
14234
|
+
|
|
14235
|
+
|
|
14228
14236
|
if(numberOfItemsCurrently==0 && this.mode==="startAtConnexion"){
|
|
14237
|
+
|
|
14238
|
+
// DBG
|
|
14239
|
+
lognow(">>>>>>>>>START SESSION !!!!");
|
|
14240
|
+
|
|
14229
14241
|
this.startSession();
|
|
14230
14242
|
}
|
|
14231
14243
|
this.itemsInfos[id]={
|
|
@@ -14244,15 +14256,28 @@ class ListManager{
|
|
|
14244
14256
|
}
|
|
14245
14257
|
|
|
14246
14258
|
isSessionActive(){
|
|
14259
|
+
|
|
14260
|
+
|
|
14261
|
+
// DBG
|
|
14262
|
+
lognow(" !!! this.sessionDurationSeconds : "+this.sessionDurationSeconds);
|
|
14263
|
+
lognow(" !!! this.started : "+this.started);
|
|
14264
|
+
lognow(" !!! this.time : "+this.time);
|
|
14265
|
+
|
|
14266
|
+
|
|
14247
14267
|
if(!this.sessionDurationSeconds) return true;
|
|
14248
14268
|
if(!this.started) return false;
|
|
14249
|
-
|
|
14269
|
+
const result=!hasDelayPassed(this.time, this.sessionDurationSeconds*1000);
|
|
14270
|
+
|
|
14271
|
+
// DBG
|
|
14272
|
+
lognow(" !!! HAS DELAY PASSED : "+result);
|
|
14273
|
+
|
|
14274
|
+
return result;
|
|
14250
14275
|
}
|
|
14251
14276
|
|
|
14252
14277
|
isClientActive(clientId){
|
|
14253
14278
|
|
|
14254
14279
|
// DBG
|
|
14255
|
-
lognow(" this.isSessionActive()"
|
|
14280
|
+
lognow(" this.isSessionActive()"+this.isSessionActive());
|
|
14256
14281
|
|
|
14257
14282
|
if(!this.isSessionActive()) return false;
|
|
14258
14283
|
const clientPosition=this.getItemPosition(clientId);
|
|
@@ -14283,10 +14308,14 @@ class ListManager{
|
|
|
14283
14308
|
|
|
14284
14309
|
let id=null;
|
|
14285
14310
|
foreach(this.itemsInfos,(itemInfos,key)=>{
|
|
14286
|
-
if(itemInfos.item===item
|
|
14311
|
+
if(itemInfos.item===item
|
|
14312
|
+
// DEBUG ONLY :
|
|
14313
|
+
|| (itemInfos.item.id && item.id && itemInfos.item.id===item.id)
|
|
14314
|
+
){
|
|
14287
14315
|
id=key;
|
|
14288
14316
|
return "break";
|
|
14289
14317
|
}
|
|
14318
|
+
|
|
14290
14319
|
});
|
|
14291
14320
|
|
|
14292
14321
|
if(!id){
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.209",
|
|
4
4
|
"main": "aotrautils.build.js",
|
|
5
5
|
"description": "A library for vanilla javascript utils (client-side) used in aotra javascript CMS",
|
|
6
6
|
"author": "Jeremie Ratomposon <info@alqemia.com> (https://alqemia.com)",
|