aotrautils 0.0.257 → 0.0.259
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 +13 -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_29072022-2359 (27/09/2022-01:
|
|
3
|
+
/*utils COMMONS library associated with aotra version : «1_29072022-2359 (27/09/2022-01:39:12)»*/
|
|
4
4
|
/*-----------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
6
|
|
|
@@ -4827,7 +4827,7 @@ AOTRAUTILS_LIB_IS_LOADED=true;
|
|
|
4827
4827
|
|
|
4828
4828
|
|
|
4829
4829
|
|
|
4830
|
-
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (27/09/2022-01:
|
|
4830
|
+
/*utils CLIENT library associated with aotra version : «1_29072022-2359 (27/09/2022-01:39:12)»*/
|
|
4831
4831
|
/*-----------------------------------------------------------------------------*/
|
|
4832
4832
|
/* ## Utility global methods in a browser (htmljs) client environment.
|
|
4833
4833
|
*
|
|
@@ -12031,7 +12031,7 @@ createOritaMainClient=function(
|
|
|
12031
12031
|
oritaClient.client.socketToServer.receive("communication", (message)=>{
|
|
12032
12032
|
|
|
12033
12033
|
// We execute eventual on message events listeners :
|
|
12034
|
-
foreach(onCommunicationEventListeners, (e)=>{
|
|
12034
|
+
foreach(oritaClient.onCommunicationEventListeners, (e)=>{
|
|
12035
12035
|
if(!e.condition || e.condition(message)) e.execute(message);
|
|
12036
12036
|
});
|
|
12037
12037
|
|
|
@@ -12051,10 +12051,18 @@ createOritaMainClient=function(
|
|
|
12051
12051
|
oritaClient.microClientsInfos={};
|
|
12052
12052
|
oritaClient.inputsGPIO={};
|
|
12053
12053
|
oritaClient.outputsGPIO={};
|
|
12054
|
+
oritaClient.onCommunicationEventListeners=onCommunicationEventListeners;
|
|
12054
12055
|
|
|
12055
12056
|
|
|
12056
12057
|
|
|
12057
12058
|
|
|
12059
|
+
oritaClient.start=()=>{
|
|
12060
|
+
|
|
12061
|
+
// DELEGATED START HERE !!:
|
|
12062
|
+
oritaClient.client.start();
|
|
12063
|
+
return oritaClient;
|
|
12064
|
+
};
|
|
12065
|
+
|
|
12058
12066
|
|
|
12059
12067
|
|
|
12060
12068
|
|
|
@@ -12937,7 +12945,7 @@ createOritaMicroClient=function(url, port, isNode=false){
|
|
|
12937
12945
|
};
|
|
12938
12946
|
|
|
12939
12947
|
|
|
12940
|
-
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (27/09/2022-01:
|
|
12948
|
+
/*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (27/09/2022-01:39:12)»*/
|
|
12941
12949
|
/*-----------------------------------------------------------------------------*/
|
|
12942
12950
|
|
|
12943
12951
|
|
|
@@ -14165,7 +14173,7 @@ function rayVsUnitSphereClosestPoint(p, r) {
|
|
|
14165
14173
|
// MUST REMAIN AT THE END OF THIS LIBRARY FILE !
|
|
14166
14174
|
|
|
14167
14175
|
AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
|
|
14168
|
-
/*utils SERVER library associated with aotra version : «1_29072022-2359 (27/09/2022-01:
|
|
14176
|
+
/*utils SERVER library associated with aotra version : «1_29072022-2359 (27/09/2022-01:39:12)»*/
|
|
14169
14177
|
/*-----------------------------------------------------------------------------*/
|
|
14170
14178
|
|
|
14171
14179
|
|
aotrautils/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aotrautils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.259",
|
|
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)",
|