aotrautils 0.0.202 → 0.0.203
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 -5
- 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-02:
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1.0.0.000 (19/07/2022-03:02:07)»*/
|
|
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-02:
|
|
4831
|
+
/*utils CLIENT library associated with aotra version : «1.0.0.000 (19/07/2022-03:02:07)»*/
|
|
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-02:
|
|
11681
|
+
/*utils GEOMETRY library associated with aotra version : «1.0.0.000 (19/07/2022-03:02:07)»*/
|
|
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-02:
|
|
12887
|
+
/*utils SERVER library associated with aotra version : «1.0.0.000 (19/07/2022-03:02:07)»*/
|
|
12888
12888
|
/*-----------------------------------------------------------------------------*/
|
|
12889
12889
|
|
|
12890
12890
|
|
|
@@ -14250,7 +14250,7 @@ class ListManager{
|
|
|
14250
14250
|
return result;
|
|
14251
14251
|
}
|
|
14252
14252
|
|
|
14253
|
-
|
|
14253
|
+
removeItemById(id){
|
|
14254
14254
|
if(id==null){
|
|
14255
14255
|
// TRACE
|
|
14256
14256
|
lognow("ERROR : Cannot remove item, no id specified.");
|
|
@@ -14263,6 +14263,30 @@ class ListManager{
|
|
|
14263
14263
|
}
|
|
14264
14264
|
delete this.itemsInfos[id];
|
|
14265
14265
|
}
|
|
14266
|
+
|
|
14267
|
+
removeItem(item){
|
|
14268
|
+
if(item==null){
|
|
14269
|
+
// TRACE
|
|
14270
|
+
lognow("ERROR : Cannot remove item, none specified.");
|
|
14271
|
+
return;
|
|
14272
|
+
}
|
|
14273
|
+
|
|
14274
|
+
let id=null;
|
|
14275
|
+
foreach(this.itemsInfos,(itemInfos,key)=>{
|
|
14276
|
+
if(itemInfos.item===item){
|
|
14277
|
+
id=key;
|
|
14278
|
+
return "break";
|
|
14279
|
+
}
|
|
14280
|
+
});
|
|
14281
|
+
|
|
14282
|
+
if(!id){
|
|
14283
|
+
// TRACE
|
|
14284
|
+
lognow("ERROR : Cannot remove item, item not found for id «"+id+"».");
|
|
14285
|
+
return;
|
|
14286
|
+
}
|
|
14287
|
+
|
|
14288
|
+
this.removeItemById(id);
|
|
14289
|
+
}
|
|
14266
14290
|
|
|
14267
14291
|
// Goes from 1 to <length>:
|
|
14268
14292
|
getItemPosition(id){
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.203",
|
|
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)",
|