aotrautils 0.0.1927 → 0.0.1929

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.
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- /*utils COMMONS library associated with aotra version : «1_29072022-2359 (26/07/2026-15:22:37)»*/
3
+ /*utils COMMONS library associated with aotra version : «1_29072022-2359 (26/07/2026-16:00:12)»*/
4
4
  /*-----------------------------------------------------------------------------*/
5
5
 
6
6
 
@@ -5470,7 +5470,7 @@ window.AOTRAUTILS_LIB_IS_LOADED=true;
5470
5470
 
5471
5471
 
5472
5472
 
5473
- /*utils CLIENT library associated with aotra version : «1_29072022-2359 (26/07/2026-15:22:37)»*/
5473
+ /*utils CLIENT library associated with aotra version : «1_29072022-2359 (26/07/2026-16:00:12)»*/
5474
5474
  /*-----------------------------------------------------------------------------*/
5475
5475
  /* ## Utility global methods in a browser (htmljs) client environment.
5476
5476
  *
@@ -8903,7 +8903,7 @@ window.getColorFingersPointer=(mediaHandler,colorsPattern="rgb")=>{
8903
8903
 
8904
8904
 
8905
8905
 
8906
- // ====================================================== Sound handling ======================================================
8906
+ // ====================================================== window.Sound handling ======================================================
8907
8907
 
8908
8908
 
8909
8909
  window.playAudioData=function(audioData,audioCtxParam=null,audioBufferSizeParam=null,numberOfAudioChannelsParam=null,sampleRateParam=null,
@@ -8982,7 +8982,7 @@ window.playAudioData=function(audioData,audioCtxParam=null,audioBufferSizeParam=
8982
8982
  }
8983
8983
 
8984
8984
 
8985
- class SoundsLoop{
8985
+ window.SoundsLoop=class {
8986
8986
  constructor(doOnEnded=null){
8987
8987
 
8988
8988
  this.doOnEnded=doOnEnded;
@@ -9071,7 +9071,7 @@ class SoundsLoop{
9071
9071
 
9072
9072
  window.loadSoundsLoop=function(filesPaths,doOnLoaded=null,doOnEnded=null){
9073
9073
 
9074
- const selfSoundsLoop=new SoundsLoop(doOnEnded);
9074
+ const selfSoundsLoop=new window.SoundsLoop(doOnEnded);
9075
9075
 
9076
9076
  let audios=[];
9077
9077
  let numberLoaded=0;
@@ -9097,7 +9097,7 @@ window.loadSoundsLoop=function(filesPaths,doOnLoaded=null,doOnEnded=null){
9097
9097
 
9098
9098
  const SOUND_FADE_REFRESH_MILLIS=500;
9099
9099
 
9100
- class Sound{
9100
+ window.Sound=class{
9101
9101
  constructor(filePath,doOnEnded=null){
9102
9102
 
9103
9103
  this.doOnEnded=doOnEnded;
@@ -9305,7 +9305,7 @@ class Sound{
9305
9305
 
9306
9306
  window.loadSound2D=function(filePath,doOnLoaded=null,doOnEnded=null){
9307
9307
 
9308
- let self=new Sound(filePath,doOnEnded);
9308
+ let self=new window.Sound(filePath,doOnEnded);
9309
9309
 
9310
9310
  self.nativeAudioElement.addEventListener("loadeddata", () => {
9311
9311
  // Some of the more commonly used properties of the audio element include :
@@ -9440,7 +9440,7 @@ window.drawImageAndCenterWithZooms=function(ctx,image,xParam=0,yParam=0,zooms={z
9440
9440
  // ====================================================== SPRITES ======================================================
9441
9441
 
9442
9442
 
9443
- class SpriteMonoThreaded{
9443
+ window.SpriteMonoThreaded=class{
9444
9444
 
9445
9445
  constructor(imagesPool,/*OPTIONAL*/refreshMillis=null,
9446
9446
  clipSize={w:100,h:100},scaleFactorW=1,scaleFactorH=1,
@@ -9563,7 +9563,7 @@ window.getSpriteMonoThreaded=function(imagesPool,/*OPTIONAL*/refreshMillis=null,
9563
9563
  center={x:"left",y:"top"},
9564
9564
  zoomsParam={zx:1,zy:1}){
9565
9565
 
9566
- return new SpriteMonoThreaded(imagesPool,refreshMillis,
9566
+ return new window.SpriteMonoThreaded(imagesPool,refreshMillis,
9567
9567
  clipSize,scaleFactorW,scaleFactorH,
9568
9568
  orientation,xOffset,yOffset,isLoop,isRandom,
9569
9569
  center,
@@ -11450,7 +11450,7 @@ window.getPointsFromSVGDString=function(str){
11450
11450
 
11451
11451
  // ========================= FUSRODA CLIENT : =========================
11452
11452
 
11453
- class VNCFrame2D{
11453
+ window.VNCFrame2D=class{
11454
11454
 
11455
11455
  constructor(url, port=4000, htmlConfig={parentElement:null,imageMode:"CSSBackground"}, mouseEventsRefreshMillis=100){
11456
11456
 
@@ -12985,7 +12985,7 @@ window.createOritaMicroClient=function(url, port, isNode=false, staticMicroClien
12985
12985
 
12986
12986
 
12987
12987
 
12988
- /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (26/07/2026-15:22:37)»*/
12988
+ /*utils GEOMETRY library associated with aotra version : «1_29072022-2359 (26/07/2026-16:00:12)»*/
12989
12989
  /*-----------------------------------------------------------------------------*/
12990
12990
 
12991
12991
 
@@ -14047,10 +14047,10 @@ function rayVsUnitSphereClosestPoint(p, r) {
14047
14047
  // MUST REMAIN AT THE END OF THIS LIBRARY FILE !
14048
14048
 
14049
14049
  window.AOTRAUTILS_GEOMETRY_LIB_IS_LOADED=true;
14050
- /*utils 3D library associated with aotra version : «1_29072022-2359 (26/07/2026-15:22:37)»*/
14050
+ /*utils 3D library associated with aotra version : «1_29072022-2359 (26/07/2026-16:00:12)»*/
14051
14051
  /*-----------------------------------------------------------------------------*/
14052
14052
 
14053
- /*utils AI library associated with aotra version : «1_29072022-2359 (26/07/2026-15:22:37)»*/
14053
+ /*utils AI library associated with aotra version : «1_29072022-2359 (26/07/2026-16:00:12)»*/
14054
14054
  /*-----------------------------------------------------------------------------*/
14055
14055
 
14056
14056
 
@@ -14310,7 +14310,7 @@ window.getLLMAPIClient=(modelName, apiURL, agentRole, defaultPrompt, llmProvider
14310
14310
 
14311
14311
 
14312
14312
 
14313
- /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (26/07/2026-15:22:37)»*/
14313
+ /*utils CONSOLE library associated with aotra version : «1_29072022-2359 (26/07/2026-16:00:12)»*/
14314
14314
  /*-----------------------------------------------------------------------------*/
14315
14315
 
14316
14316
 
@@ -14351,7 +14351,7 @@ if(typeof(window)==="undefined") window=global;
14351
14351
 
14352
14352
  // New implementation :
14353
14353
 
14354
- class AORTACClientCell{
14354
+ window.AORTACClientCell=class{
14355
14355
 
14356
14356
  constructor(serverCellOrigin, model, view, isNodeContext=true){
14357
14357
 
@@ -14617,7 +14617,7 @@ class AORTACClientCell{
14617
14617
 
14618
14618
 
14619
14619
 
14620
- class ClientLobule{
14620
+ /*private*/const ClientLobule=class{
14621
14621
 
14622
14622
  constructor(){
14623
14623
  this.serversBag=null;
@@ -14682,7 +14682,7 @@ window.getAORTACClient=function(serverCellOrigin="ws://127.0.0.1:40000", model,
14682
14682
  lognow("ERROR : No known server node, cannot connect to servers cells blob. Aborting AORTAC client setup.");
14683
14683
  return null;
14684
14684
  }
14685
- return new AORTACClientCell(serverCellOrigin, model, view, isNodeContext);
14685
+ return new window.AORTACClientCell(serverCellOrigin, model, view, isNodeContext);
14686
14686
  }
14687
14687
 
14688
14688
 
@@ -14722,7 +14722,7 @@ window.AORTAC_OUTCOMING_SERVERS_CONNECTION_GLOBAL_TIMEOUT=30000;
14722
14722
  window.AORTAC_SERVER_CELL_PERIODICAL_CONNECTIVITY_CHECK_MILLIS=2000;
14723
14723
 
14724
14724
 
14725
- class AORTACServerCell{
14725
+ window.AORTACServerCell=class{
14726
14726
 
14727
14727
  constructor(quorumNumber=1, selfOrigin, outcomingCellsOrigins, model, controller, sslConfig={/*OPTIONAL*/certPath:null,/*OPTIONAL*/keyPath:null}){
14728
14728
 
@@ -15649,7 +15649,7 @@ class AORTACServerCell{
15649
15649
 
15650
15650
 
15651
15651
 
15652
- class ServerCellLobule{
15652
+ /*private*/const ServerCellLobule=class{
15653
15653
 
15654
15654
  constructor(){
15655
15655
  this.serversBag=null;
@@ -15723,7 +15723,7 @@ window.getAORTACServerCell=function(quorumNumber=1, selfOrigin="ws://127.0.0.1:4
15723
15723
  // TRACE
15724
15724
  throw new Error("ERROR : The aortacCServerCellInstance singleton instance already exists. It cannot be instantiated again in the same process. Aborting.");
15725
15725
  }
15726
- window.aortacCServerCellInstance=new AORTACServerCell(quorumNumber, selfOrigin, outcomingCellsOrigins, model, controller);
15726
+ window.aortacCServerCellInstance=new window.AORTACServerCell(quorumNumber, selfOrigin, outcomingCellsOrigins, model, controller);
15727
15727
  return window.aortacCServerCellInstance;
15728
15728
  }
15729
15729
 
@@ -16718,7 +16718,7 @@ window.WebsocketImplementation={
16718
16718
  });
16719
16719
 
16720
16720
  // NODE SERVER INSTANCE :
16721
- const nodeServerInstance=new NodeServerInstance(serverSocket, listenableServer);
16721
+ const nodeServerInstance=new window.NodeServerInstance(serverSocket, listenableServer);
16722
16722
 
16723
16723
  // Join room server part protocol :
16724
16724
  nodeServerInstance.receive("protocol",(message, clientSocket)=>{
@@ -16815,7 +16815,7 @@ window.WebsocketImplementation={
16815
16815
  // DBG
16816
16816
  lognow("DEBUG : CLIENT : clientSocket created:");
16817
16817
 
16818
- const nodeClientInstance=new ClientInstance(clientSocket);
16818
+ const nodeClientInstance=new window.ClientInstance(clientSocket);
16819
16819
  return nodeClientInstance;
16820
16820
  },
16821
16821
 
@@ -16863,7 +16863,7 @@ window.WebsocketImplementation={
16863
16863
  }
16864
16864
 
16865
16865
  // BROWSER CLIENT INSTANCE :
16866
- const browserClientInstance=new ClientInstance(clientSocket);
16866
+ const browserClientInstance=new window.ClientInstance(clientSocket);
16867
16867
  return browserClientInstance;
16868
16868
  },
16869
16869
 
@@ -17216,7 +17216,7 @@ window.initNodeServerInfrastructureWrapper=function(doOnClientConnection=null, d
17216
17216
 
17217
17217
  // ========================= UTILITY SERVERSIDE METHODS : =========================
17218
17218
 
17219
- class ListManager{
17219
+ window.ListManager=class{
17220
17220
 
17221
17221
  constructor(config){
17222
17222
  this.config=config;
@@ -17378,7 +17378,7 @@ class ListManager{
17378
17378
  };
17379
17379
 
17380
17380
  window.getListManager=function(config){
17381
- return new ListManager(config);
17381
+ return new window.ListManager(config);
17382
17382
  };
17383
17383
 
17384
17384
 
@@ -17777,7 +17777,7 @@ window.initClient=function(isNodeContext=true
17777
17777
 
17778
17778
 
17779
17779
 
17780
- class ClientReceptionEntryPoint{
17780
+ window.ClientReceptionEntryPoint=class{
17781
17781
 
17782
17782
  constructor(channelNameParam, entryPointId, clientsRoomsTag, listenerConfig, doOnIncomingMessage){
17783
17783
  this.channelName=channelNameParam;
@@ -17856,7 +17856,7 @@ class ClientReceptionEntryPoint{
17856
17856
  //
17857
17857
  // CLIENT INSTANCE :
17858
17858
  //
17859
- class ClientInstance{
17859
+ window.ClientInstance=class{
17860
17860
 
17861
17861
  constructor(clientSocket){
17862
17862
 
@@ -17912,7 +17912,7 @@ class ClientInstance{
17912
17912
  // // DBG
17913
17913
  // lognow("INFO : (CLIENT) SETTING UP RECEIVE for :",channelNameParam);
17914
17914
 
17915
- const clientReceptionEntryPoint=new ClientReceptionEntryPoint(channelNameParam, entryPointId, clientsRoomsTag, listenerConfig, doOnIncomingMessage);
17915
+ const clientReceptionEntryPoint=new window.ClientReceptionEntryPoint(channelNameParam, entryPointId, clientsRoomsTag, listenerConfig, doOnIncomingMessage);
17916
17916
  if(!contains.filter((l)=>(
17917
17917
  l.entryPointId && clientReceptionEntryPoint.entryPointId
17918
17918
  && l.entryPointId===clientReceptionEntryPoint.entryPointId
@@ -18064,7 +18064,7 @@ class ClientInstance{
18064
18064
 
18065
18065
  // ==================================================================================================================
18066
18066
 
18067
- class ServerReceptionEntryPoint{
18067
+ window.ServerReceptionEntryPoint=class{
18068
18068
 
18069
18069
  constructor(channelNameParam, clientsRoomsTag, listenerConfig=null, doOnIncomingMessage){
18070
18070
  this.channelName=channelNameParam;
@@ -18126,12 +18126,7 @@ class ServerReceptionEntryPoint{
18126
18126
 
18127
18127
 
18128
18128
 
18129
-
18130
-
18131
-
18132
-
18133
-
18134
- class NodeServerInstance{
18129
+ window.NodeServerInstance=class{
18135
18130
 
18136
18131
  constructor(serverSocket, listenableServer){
18137
18132
 
@@ -18175,7 +18170,7 @@ class NodeServerInstance{
18175
18170
  // DBG
18176
18171
  lognow("(SERVER) Registering receive for «"+channelNameParam+"»...");
18177
18172
 
18178
- const serverReceptionEntryPoint=new ServerReceptionEntryPoint(channelNameParam, clientsRoomsTag, listenerConfig, doOnIncomingMessage);
18173
+ const serverReceptionEntryPoint=new window.ServerReceptionEntryPoint(channelNameParam, clientsRoomsTag, listenerConfig, doOnIncomingMessage);
18179
18174
  this.serverReceptionEntryPoints.push(serverReceptionEntryPoint);
18180
18175
 
18181
18176
  // SPECIAL FOR THE SOCKETIO IMPLEMENTATION :
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.1927",
3
+ "version": "0.0.1929",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "aotrautils",
9
- "version": "0.0.1927",
9
+ "version": "0.0.1929",
10
10
  "license": "HGPL-1.0",
11
11
  "dependencies": {
12
12
  "atob": "^2.1.2",
aotrautils/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aotrautils",
3
- "version": "0.0.1927",
3
+ "version": "0.0.1929",
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)",