ziko 0.0.13 → 0.0.14

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.
package/dist/ziko.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
  /*
3
3
  Project: ziko.js
4
4
  Author: Zakaria Elalaoui
5
- Date : Mon Sep 16 2024 15:12:38 GMT+0100 (UTC+01:00)
5
+ Date : Mon Sep 30 2024 19:06:30 GMT+0100 (UTC+01:00)
6
6
  Git-Repo : https://github.com/zakarialaoui10/ziko.js
7
7
  Git-Wiki : https://github.com/zakarialaoui10/ziko.js/wiki
8
8
  Released under MIT License
@@ -3261,7 +3261,7 @@ class ZikoIntersectionObserver{
3261
3261
  margin
3262
3262
  };
3263
3263
  if(!globalThis.IntersectionObserver){
3264
- console.log("IntersectionObserver Nor Supported");
3264
+ console.log("IntersectionObserver Not Supported");
3265
3265
  return;
3266
3266
  }
3267
3267
  this.observer=new IntersectionObserver((entries)=>{
@@ -5710,7 +5710,7 @@ class ZikoUIElement {
5710
5710
  this.style({
5711
5711
  position: "relative",
5712
5712
  boxSizing:"border-box",
5713
- fontFamily:"verdana",
5713
+ // fontFamily:"verdana",
5714
5714
  margin:0,
5715
5715
  padding:0,
5716
5716
  });
@@ -9355,6 +9355,72 @@ class ZikoUIAccordion extends ZikoUIContainerElement{
9355
9355
  }
9356
9356
  const Accordion = (... Collapsible) => new ZikoUIAccordion(...Collapsible);
9357
9357
 
9358
+ class ZikoUIMain extends ZikoUIContainerElement{
9359
+ constructor(){
9360
+ super("main","Main");
9361
+ }
9362
+ get isMain(){
9363
+ return true
9364
+ }
9365
+ }
9366
+ class ZikoUIHeader extends ZikoUIContainerElement{
9367
+ constructor(){
9368
+ super("header","Header");
9369
+ }
9370
+ get isHeader(){
9371
+ return true
9372
+ }
9373
+ }
9374
+ class ZikoUINav extends ZikoUIContainerElement{
9375
+ constructor(){
9376
+ super("nav","Nav");
9377
+ }
9378
+ get isNav(){
9379
+ return true
9380
+ }
9381
+ }
9382
+ class ZikoUISection extends ZikoUIContainerElement{
9383
+ constructor(){
9384
+ super("section","Section");
9385
+ this.style({position:"relative"});
9386
+ }
9387
+ get isSection(){
9388
+ return true
9389
+ }
9390
+ }
9391
+ class ZikoUIArticle extends ZikoUIContainerElement{
9392
+ constructor(){
9393
+ super("article","Article");
9394
+ }
9395
+ get isArticle(){
9396
+ return true
9397
+ }
9398
+ }
9399
+ class ZikoUIAside extends ZikoUIContainerElement{
9400
+ constructor(){
9401
+ super("aside","Aside");
9402
+ }
9403
+ get isAside(){
9404
+ return true
9405
+ }
9406
+ }
9407
+ class ZikoUIFooter extends ZikoUIContainerElement{
9408
+ constructor(){
9409
+ super("footer","Footer");
9410
+ this.element=document?.createElement("footer");
9411
+ }
9412
+ get isFooter(){
9413
+ return true
9414
+ }
9415
+ }
9416
+ const Section = (...ZikoUIElement) => new ZikoUISection().append(...ZikoUIElement);
9417
+ const Article = (...ZikoUIElement) => new ZikoUIArticle().append(...ZikoUIElement);
9418
+ const Main = (...ZikoUIElement) => new ZikoUIMain().append(...ZikoUIElement);
9419
+ const Header = (...ZikoUIElement) => new ZikoUIHeader().append(...ZikoUIElement);
9420
+ const Footer = (...ZikoUIElement) => new ZikoUIFooter().append(...ZikoUIElement);
9421
+ const Nav = (...ZikoUIElement) => new ZikoUINav().append(...ZikoUIElement);
9422
+ const Aside = (...ZikoUIElement) => new ZikoUIAside().append(...ZikoUIElement);
9423
+
9358
9424
  class ZikoUICarousel extends ZikoUIFlex{
9359
9425
  constructor(...ZikoUIElement){
9360
9426
  super();
@@ -10530,72 +10596,6 @@ a=Modal(text("Hello")).style({
10530
10596
  Flex(a).size("400px","400px").style({border:"1px red solid"})
10531
10597
  */
10532
10598
 
10533
- class ZikoUIMain extends ZikoUIContainerElement{
10534
- constructor(){
10535
- super("main","Main");
10536
- }
10537
- get isMain(){
10538
- return true
10539
- }
10540
- }
10541
- class ZikoUIHeader extends ZikoUIContainerElement{
10542
- constructor(){
10543
- super("header","Header");
10544
- }
10545
- get isHeader(){
10546
- return true
10547
- }
10548
- }
10549
- class ZikoUINav extends ZikoUIContainerElement{
10550
- constructor(){
10551
- super("nav","Nav");
10552
- }
10553
- get isNav(){
10554
- return true
10555
- }
10556
- }
10557
- class ZikoUISection extends ZikoUIContainerElement{
10558
- constructor(){
10559
- super("section","Section");
10560
- this.style({position:"relative"});
10561
- }
10562
- get isSection(){
10563
- return true
10564
- }
10565
- }
10566
- class ZikoUIArticle extends ZikoUIContainerElement{
10567
- constructor(){
10568
- super("article","Article");
10569
- }
10570
- get isArticle(){
10571
- return true
10572
- }
10573
- }
10574
- class ZikoUIAside extends ZikoUIContainerElement{
10575
- constructor(){
10576
- super("aside","Aside");
10577
- }
10578
- get isAside(){
10579
- return true
10580
- }
10581
- }
10582
- class ZikoUIFooter extends ZikoUIContainerElement{
10583
- constructor(){
10584
- super("footer","Footer");
10585
- this.element=document?.createElement("footer");
10586
- }
10587
- get isFooter(){
10588
- return true
10589
- }
10590
- }
10591
- const Section$1 = (...ZikoUIElement) => new ZikoUISection().append(...ZikoUIElement);
10592
- const Article = (...ZikoUIElement) => new ZikoUIArticle().append(...ZikoUIElement);
10593
- const Main = (...ZikoUIElement) => new ZikoUIMain().append(...ZikoUIElement);
10594
- const Header = (...ZikoUIElement) => new ZikoUIHeader().append(...ZikoUIElement);
10595
- const Footer = (...ZikoUIElement) => new ZikoUIFooter().append(...ZikoUIElement);
10596
- const Nav = (...ZikoUIElement) => new ZikoUINav().append(...ZikoUIElement);
10597
- const Aside = (...ZikoUIElement) => new ZikoUIAside().append(...ZikoUIElement);
10598
-
10599
10599
  class ZikoUITr extends ZikoUIElement{
10600
10600
  constructor(...ZikoUIElement){
10601
10601
  super();
@@ -10825,7 +10825,7 @@ const UI$1={
10825
10825
  Grid: Grid$1,
10826
10826
  Header,
10827
10827
  Main,
10828
- Section: Section$1,
10828
+ Section,
10829
10829
  Article,
10830
10830
  Aside,
10831
10831
  Nav,
@@ -11058,7 +11058,7 @@ class ZikoSvgRectangle extends ZikoSvgElement{
11058
11058
  class ZikoSvgCircle extends ZikoSvgElement{
11059
11059
  constructor(cx,cy,r){
11060
11060
  super("circle");
11061
- this.element=document?.createElementttNS(
11061
+ this.element=document.createElementNS(
11062
11062
  "http://www.w3.org/2000/svg",
11063
11063
  "circle",
11064
11064
  );
@@ -11495,7 +11495,7 @@ class ZikoUICanvas extends ZikoUIContainerElement{
11495
11495
  lineWidth(w){
11496
11496
  this.ctx.lineWidth=w/this.transformMatrix[0][0]; return this
11497
11497
  }
11498
- ImageData(x=0,y=0,w=this.Width,h=this.Height){
11498
+ getImageData(x=0,y=0,w=this.Width,h=this.Height){
11499
11499
  return this.ctx.getImageData(x,y,w,h);
11500
11500
  }
11501
11501
  clear(){
@@ -12127,7 +12127,7 @@ exports.Random = Random;
12127
12127
  exports.Reactivity = Reactivity;
12128
12128
  exports.RemoveAll = RemoveAll;
12129
12129
  exports.SPA = SPA;
12130
- exports.Section = Section$1;
12130
+ exports.Section = Section;
12131
12131
  exports.Signal = Signal;
12132
12132
  exports.Str = Str;
12133
12133
  exports.Svg = Svg;
package/dist/ziko.js CHANGED
@@ -2,7 +2,7 @@
2
2
  /*
3
3
  Project: ziko.js
4
4
  Author: Zakaria Elalaoui
5
- Date : Mon Sep 16 2024 15:20:35 GMT+0100 (UTC+01:00)
5
+ Date : Tue Oct 01 2024 12:12:32 GMT+0100 (UTC+01:00)
6
6
  Git-Repo : https://github.com/zakarialaoui10/ziko.js
7
7
  Git-Wiki : https://github.com/zakarialaoui10/ziko.js/wiki
8
8
  Released under MIT License
@@ -3263,7 +3263,7 @@
3263
3263
  margin
3264
3264
  };
3265
3265
  if(!globalThis.IntersectionObserver){
3266
- console.log("IntersectionObserver Nor Supported");
3266
+ console.log("IntersectionObserver Not Supported");
3267
3267
  return;
3268
3268
  }
3269
3269
  this.observer=new IntersectionObserver((entries)=>{
@@ -5712,7 +5712,7 @@
5712
5712
  this.style({
5713
5713
  position: "relative",
5714
5714
  boxSizing:"border-box",
5715
- fontFamily:"verdana",
5715
+ // fontFamily:"verdana",
5716
5716
  margin:0,
5717
5717
  padding:0,
5718
5718
  });
@@ -5867,24 +5867,24 @@
5867
5867
  this.element?.animate(keyframe,{duration, iterations, easing});
5868
5868
  return this;
5869
5869
  }
5870
- // Attributes
5870
+ // Attributes
5871
+ #setAttr(name, value){
5872
+ name = Str.isCamelCase(name) ? Str.camel2hyphencase(name) : name;
5873
+ if(this?.attr[name] && this?.attr[name]===value) return;
5874
+ this.element.setAttribute(name, value);
5875
+ Object.assign(this.cache.attributes, {[name]:value});
5876
+ }
5871
5877
  setAttr(name, value) {
5872
5878
  if(name instanceof Object){
5873
5879
  const [names,values]=[Object.keys(name),Object.values(name)];
5874
5880
  for(let i=0;i<names.length;i++){
5875
5881
  if(values[i] instanceof Array)value[i] = values[i].join(" ");
5876
- if(this?.attr[name[i]]!==value[i]){
5877
- this.element?.setAttribute(names[i], values[i]);
5878
- Object.assign(this.cache.attributes, Object.fromEntries([[names[i], values[i]]]));
5879
- }
5882
+ this.#setAttr(names[i], values[i]);
5880
5883
  }
5881
5884
  }
5882
5885
  else {
5883
5886
  if(value instanceof Array)value = value.join(" ");
5884
- if(this?.attr[name]!==value){
5885
- this.element?.setAttribute(name, value);
5886
- Object.assign(this.cache.attributes, Object.fromEntries([[name, value]]));
5887
- }
5887
+ this.#setAttr(name, value);
5888
5888
  }
5889
5889
  return this;
5890
5890
  }
@@ -5893,6 +5893,7 @@
5893
5893
  return this;
5894
5894
  }
5895
5895
  getAttr(name){
5896
+ name = Str.isCamelCase(name) ? Str.camel2hyphencase(name) : name;
5896
5897
  return this.element.attributes[name].value;
5897
5898
  }
5898
5899
  setContentEditable(bool = true) {
@@ -6128,13 +6129,14 @@
6128
6129
  }
6129
6130
 
6130
6131
  let ZikoUIImage$1 = class ZikoUIImage extends ZikoUIElement {
6131
- constructor(src, w, h) {
6132
+ constructor(src,alt, w, h) {
6132
6133
  super("img","image");
6133
6134
  this.value=src;
6134
- if (src.nodeName === "IMG")this.element?.setAttribute("src", src.src);
6135
+ if (src.nodeName === "IMG")this.element.setAttribute("src", src.src);
6135
6136
  else this.element?.setAttribute("src", src);
6136
6137
  if (typeof w == "number") w += "%";
6137
6138
  if (typeof h == "number") h += "%";
6139
+ this.setAttr("alt", alt);
6138
6140
  this.style({ border: "1px solid black", width: w, height: h });
6139
6141
  }
6140
6142
  get isImg(){
@@ -6157,7 +6159,7 @@
6157
6159
  return this;
6158
6160
  }
6159
6161
  };
6160
- const image$1 = (src, width, height) => new ZikoUIImage$1(src, width, height);
6162
+ const image$1 = (src,alt, width, height) => new ZikoUIImage$1(src,alt, width, height);
6161
6163
 
6162
6164
  const svg2str=svg=>(new XMLSerializer()).serializeToString(svg);
6163
6165
  const svg2ascii=svg=>btoa(svg2str(svg));
@@ -8334,6 +8336,7 @@
8334
8336
  class ZikoUIHr extends ZikoUIElement {
8335
8337
  constructor() {
8336
8338
  super("hr","hr");
8339
+ this.setAttr("role", "none");
8337
8340
  }
8338
8341
  get isHr(){
8339
8342
  return true
@@ -8514,6 +8517,7 @@
8514
8517
  this.setValue(value);
8515
8518
  this.setAttr("type", type);
8516
8519
  this.setAttr("name", name);
8520
+ // this.setAttr("tab-index","0")
8517
8521
  if (datalist) this.linkDatalist(datalist);
8518
8522
  }
8519
8523
  get isInput() {
@@ -8850,13 +8854,14 @@
8850
8854
  const inputImage = (text) => new ZikoUIInputImage(text);
8851
8855
 
8852
8856
  class ZikoUIImage extends ZikoUIElement {
8853
- constructor(src, w, h) {
8857
+ constructor(src,alt, w, h) {
8854
8858
  super("img","image");
8855
8859
  this.value=src;
8856
- if (src.nodeName === "IMG")this.element?.setAttribute("src", src.src);
8860
+ if (src.nodeName === "IMG")this.element.setAttribute("src", src.src);
8857
8861
  else this.element?.setAttribute("src", src);
8858
8862
  if (typeof w == "number") w += "%";
8859
8863
  if (typeof h == "number") h += "%";
8864
+ this.setAttr("alt", alt);
8860
8865
  this.style({ border: "1px solid black", width: w, height: h });
8861
8866
  }
8862
8867
  get isImg(){
@@ -8879,7 +8884,7 @@
8879
8884
  return this;
8880
8885
  }
8881
8886
  }
8882
- const image = (src, width, height) => new ZikoUIImage(src, width, height);
8887
+ const image = (src,alt, width, height) => new ZikoUIImage(src,alt, width, height);
8883
8888
 
8884
8889
  class ZikoUIFigure extends ZikoUIElement{
8885
8890
  constructor(src,caption){
@@ -9357,6 +9362,72 @@
9357
9362
  }
9358
9363
  const Accordion = (... Collapsible) => new ZikoUIAccordion(...Collapsible);
9359
9364
 
9365
+ class ZikoUIMain extends ZikoUIContainerElement{
9366
+ constructor(){
9367
+ super("main","Main");
9368
+ }
9369
+ get isMain(){
9370
+ return true
9371
+ }
9372
+ }
9373
+ class ZikoUIHeader extends ZikoUIContainerElement{
9374
+ constructor(){
9375
+ super("header","Header");
9376
+ }
9377
+ get isHeader(){
9378
+ return true
9379
+ }
9380
+ }
9381
+ class ZikoUINav extends ZikoUIContainerElement{
9382
+ constructor(){
9383
+ super("nav","Nav");
9384
+ }
9385
+ get isNav(){
9386
+ return true
9387
+ }
9388
+ }
9389
+ class ZikoUISection extends ZikoUIContainerElement{
9390
+ constructor(){
9391
+ super("section","Section");
9392
+ this.style({position:"relative"});
9393
+ }
9394
+ get isSection(){
9395
+ return true
9396
+ }
9397
+ }
9398
+ class ZikoUIArticle extends ZikoUIContainerElement{
9399
+ constructor(){
9400
+ super("article","Article");
9401
+ }
9402
+ get isArticle(){
9403
+ return true
9404
+ }
9405
+ }
9406
+ class ZikoUIAside extends ZikoUIContainerElement{
9407
+ constructor(){
9408
+ super("aside","Aside");
9409
+ }
9410
+ get isAside(){
9411
+ return true
9412
+ }
9413
+ }
9414
+ class ZikoUIFooter extends ZikoUIContainerElement{
9415
+ constructor(){
9416
+ super("footer","Footer");
9417
+ this.element=document?.createElement("footer");
9418
+ }
9419
+ get isFooter(){
9420
+ return true
9421
+ }
9422
+ }
9423
+ const Section = (...ZikoUIElement) => new ZikoUISection().append(...ZikoUIElement);
9424
+ const Article = (...ZikoUIElement) => new ZikoUIArticle().append(...ZikoUIElement);
9425
+ const Main = (...ZikoUIElement) => new ZikoUIMain().append(...ZikoUIElement);
9426
+ const Header = (...ZikoUIElement) => new ZikoUIHeader().append(...ZikoUIElement);
9427
+ const Footer = (...ZikoUIElement) => new ZikoUIFooter().append(...ZikoUIElement);
9428
+ const Nav = (...ZikoUIElement) => new ZikoUINav().append(...ZikoUIElement);
9429
+ const Aside = (...ZikoUIElement) => new ZikoUIAside().append(...ZikoUIElement);
9430
+
9360
9431
  class ZikoUICarousel extends ZikoUIFlex{
9361
9432
  constructor(...ZikoUIElement){
9362
9433
  super();
@@ -10532,72 +10603,6 @@
10532
10603
  Flex(a).size("400px","400px").style({border:"1px red solid"})
10533
10604
  */
10534
10605
 
10535
- class ZikoUIMain extends ZikoUIContainerElement{
10536
- constructor(){
10537
- super("main","Main");
10538
- }
10539
- get isMain(){
10540
- return true
10541
- }
10542
- }
10543
- class ZikoUIHeader extends ZikoUIContainerElement{
10544
- constructor(){
10545
- super("header","Header");
10546
- }
10547
- get isHeader(){
10548
- return true
10549
- }
10550
- }
10551
- class ZikoUINav extends ZikoUIContainerElement{
10552
- constructor(){
10553
- super("nav","Nav");
10554
- }
10555
- get isNav(){
10556
- return true
10557
- }
10558
- }
10559
- class ZikoUISection extends ZikoUIContainerElement{
10560
- constructor(){
10561
- super("section","Section");
10562
- this.style({position:"relative"});
10563
- }
10564
- get isSection(){
10565
- return true
10566
- }
10567
- }
10568
- class ZikoUIArticle extends ZikoUIContainerElement{
10569
- constructor(){
10570
- super("article","Article");
10571
- }
10572
- get isArticle(){
10573
- return true
10574
- }
10575
- }
10576
- class ZikoUIAside extends ZikoUIContainerElement{
10577
- constructor(){
10578
- super("aside","Aside");
10579
- }
10580
- get isAside(){
10581
- return true
10582
- }
10583
- }
10584
- class ZikoUIFooter extends ZikoUIContainerElement{
10585
- constructor(){
10586
- super("footer","Footer");
10587
- this.element=document?.createElement("footer");
10588
- }
10589
- get isFooter(){
10590
- return true
10591
- }
10592
- }
10593
- const Section$1 = (...ZikoUIElement) => new ZikoUISection().append(...ZikoUIElement);
10594
- const Article = (...ZikoUIElement) => new ZikoUIArticle().append(...ZikoUIElement);
10595
- const Main = (...ZikoUIElement) => new ZikoUIMain().append(...ZikoUIElement);
10596
- const Header = (...ZikoUIElement) => new ZikoUIHeader().append(...ZikoUIElement);
10597
- const Footer = (...ZikoUIElement) => new ZikoUIFooter().append(...ZikoUIElement);
10598
- const Nav = (...ZikoUIElement) => new ZikoUINav().append(...ZikoUIElement);
10599
- const Aside = (...ZikoUIElement) => new ZikoUIAside().append(...ZikoUIElement);
10600
-
10601
10606
  class ZikoUITr extends ZikoUIElement{
10602
10607
  constructor(...ZikoUIElement){
10603
10608
  super();
@@ -10775,6 +10780,58 @@
10775
10780
  }
10776
10781
  const Table=(matrix,config)=>new ZikoUITable(matrix,config);
10777
10782
 
10783
+ class ZikoUIHtmlViewer extends ZikoUIElement{
10784
+ constructor(src, title){
10785
+ super("iframe", "HTMLViewer");
10786
+ this.setAttr({
10787
+ src,
10788
+ title,
10789
+ // ariaLabel : "Interactive YouTube video player for zikojs apps",
10790
+ role:"application",
10791
+ loading:"lazy"
10792
+ });
10793
+ }
10794
+ }
10795
+
10796
+ const HTMLViewer = (src, title) => new ZikoUIHtmlViewer(src, title);
10797
+ window.HTMLViewer = HTMLViewer;
10798
+
10799
+ class ZikoUIPdf extends ZikoUIElement{
10800
+ constructor(src, title = "Pdf Document Embaded in Zikojs App"){
10801
+ super("embed","PDFViewer");
10802
+ this.setAttr({
10803
+ src:src,
10804
+ type: "application/pdf",
10805
+ ariaLabel: title,
10806
+ tabIndex: "0",
10807
+ laoding:"lazy"
10808
+ });
10809
+ }
10810
+ }
10811
+ const PDFViewer=(src, title)=>new ZikoUIPdf(src, title);
10812
+ window.PDFViewer = PDFViewer;
10813
+
10814
+ class ZikoUIYoutubePlayer extends ZikoUIElement{
10815
+ constructor(src, title){
10816
+ super("iframe", "YoutubePlayer");
10817
+ const id = Str.isUrl(src)?getYouTubeVideoId(src):src;
10818
+ this.setAttr({
10819
+ src:`https://www.youtube.com/embed/${id}`,
10820
+ title,
10821
+ ariaLabel : title ?? "Interactive YouTube video player for zikojs apps",
10822
+ role:"application"
10823
+ });
10824
+ }
10825
+ }
10826
+ function getYouTubeVideoId(url) {
10827
+ const regex = /(?:youtube\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|embed)\/|.*[?&]v=)|youtu\.be\/|embed\/)([a-zA-Z0-9_-]{11})/;
10828
+ const match = url.match(regex);
10829
+ return match ? match[1] : null;
10830
+ }
10831
+ const YoutubePlayer = (id, title) => new ZikoUIYoutubePlayer(id, title);
10832
+ window.YoutubePlayer = YoutubePlayer;
10833
+ window.YB = YoutubePlayer;
10834
+
10778
10835
  const UI$1={
10779
10836
  html,
10780
10837
  text: text$1,
@@ -10827,7 +10884,7 @@
10827
10884
  Grid: Grid$1,
10828
10885
  Header,
10829
10886
  Main,
10830
- Section: Section$1,
10887
+ Section,
10831
10888
  Article,
10832
10889
  Aside,
10833
10890
  Nav,
@@ -10846,6 +10903,7 @@
10846
10903
  infoAlert,
10847
10904
  warningAlert,
10848
10905
  dangerAlert,
10906
+ PDFViewer,
10849
10907
  ExtractAll: function () {
10850
10908
  const keys = Object.keys(this);
10851
10909
  for (let i = 0; i < keys.length; i++) {
@@ -11060,7 +11118,7 @@
11060
11118
  class ZikoSvgCircle extends ZikoSvgElement{
11061
11119
  constructor(cx,cy,r){
11062
11120
  super("circle");
11063
- this.element=document?.createElementttNS(
11121
+ this.element=document.createElementNS(
11064
11122
  "http://www.w3.org/2000/svg",
11065
11123
  "circle",
11066
11124
  );
@@ -11497,7 +11555,7 @@
11497
11555
  lineWidth(w){
11498
11556
  this.ctx.lineWidth=w/this.transformMatrix[0][0]; return this
11499
11557
  }
11500
- ImageData(x=0,y=0,w=this.Width,h=this.Height){
11558
+ getImageData(x=0,y=0,w=this.Width,h=this.Height){
11501
11559
  return this.ctx.getImageData(x,y,w,h);
11502
11560
  }
11503
11561
  clear(){
@@ -12129,7 +12187,7 @@
12129
12187
  exports.Reactivity = Reactivity;
12130
12188
  exports.RemoveAll = RemoveAll;
12131
12189
  exports.SPA = SPA;
12132
- exports.Section = Section$1;
12190
+ exports.Section = Section;
12133
12191
  exports.Signal = Signal;
12134
12192
  exports.Str = Str;
12135
12193
  exports.Svg = Svg;