aotrautils 0.0.207 → 0.0.210
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 +29 -9
- 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:50:14)»*/
|
|
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:50:14)»*/
|
|
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:50:14)»*/
|
|
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:50:14)»*/
|
|
12888
12888
|
/*-----------------------------------------------------------------------------*/
|
|
12889
12889
|
|
|
12890
12890
|
|
|
@@ -14220,16 +14220,24 @@ class ListManager{
|
|
|
14220
14220
|
return;
|
|
14221
14221
|
}
|
|
14222
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
|
}
|
|
14228
14234
|
|
|
14229
|
-
// DBG
|
|
14230
|
-
lognow(">>>>>>>>>numberOfItemsCurrently:",numberOfItemsCurrently);
|
|
14231
14235
|
|
|
14232
14236
|
if(numberOfItemsCurrently==0 && this.mode==="startAtConnexion"){
|
|
14237
|
+
|
|
14238
|
+
// DBG
|
|
14239
|
+
lognow(">>>>>>>>>START SESSION !!!!");
|
|
14240
|
+
|
|
14233
14241
|
this.startSession();
|
|
14234
14242
|
}
|
|
14235
14243
|
this.itemsInfos[id]={
|
|
@@ -14239,7 +14247,7 @@ class ListManager{
|
|
|
14239
14247
|
}
|
|
14240
14248
|
|
|
14241
14249
|
startSession(){
|
|
14242
|
-
this.time
|
|
14250
|
+
this.time=getNow();
|
|
14243
14251
|
this.started=true;
|
|
14244
14252
|
}
|
|
14245
14253
|
|
|
@@ -14248,15 +14256,27 @@ class ListManager{
|
|
|
14248
14256
|
}
|
|
14249
14257
|
|
|
14250
14258
|
isSessionActive(){
|
|
14259
|
+
|
|
14260
|
+
// DBG
|
|
14261
|
+
lognow(" !!! this.sessionDurationSeconds : "+this.sessionDurationSeconds);
|
|
14262
|
+
lognow(" !!! this.started : "+this.started);
|
|
14263
|
+
lognow(" !!! this.time : "+this.time);
|
|
14264
|
+
|
|
14265
|
+
|
|
14251
14266
|
if(!this.sessionDurationSeconds) return true;
|
|
14252
14267
|
if(!this.started) return false;
|
|
14253
|
-
|
|
14268
|
+
const result=!hasDelayPassed(this.time, this.sessionDurationSeconds*1000);
|
|
14269
|
+
|
|
14270
|
+
// DBG
|
|
14271
|
+
lognow(" !!! HAS DELAY PASSED : "+result);
|
|
14272
|
+
|
|
14273
|
+
return result;
|
|
14254
14274
|
}
|
|
14255
14275
|
|
|
14256
14276
|
isClientActive(clientId){
|
|
14257
14277
|
|
|
14258
14278
|
// DBG
|
|
14259
|
-
lognow(" this.isSessionActive()"
|
|
14279
|
+
lognow(" this.isSessionActive()"+this.isSessionActive());
|
|
14260
14280
|
|
|
14261
14281
|
if(!this.isSessionActive()) return false;
|
|
14262
14282
|
const clientPosition=this.getItemPosition(clientId);
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.210",
|
|
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)",
|