@signalk/freeboard-sk 3.4.0-beta.2 → 3.4.0-beta.3

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.
Files changed (36) hide show
  1. package/README.md +6 -0
  2. package/package.json +2 -2
  3. package/public/assets/features/action-button-1.jpg +0 -0
  4. package/public/assets/features/action-button-2.jpg +0 -0
  5. package/public/assets/features-corpus.json +1 -1
  6. package/public/assets/help/img/navigation-route.svg +4 -0
  7. package/public/assets/help/index.html +21 -3
  8. package/public/{chunk-UIEE3YOF.js → chunk-A3USDUNB.js} +1 -1
  9. package/public/{chunk-6XBJQDQZ.js → chunk-AZQNOMPD.js} +1 -1
  10. package/public/{chunk-N6FC7TMF.js → chunk-ECLVX6LA.js} +1 -1
  11. package/public/{chunk-VG2HTHDN.js → chunk-F7CTV67V.js} +99 -99
  12. package/public/chunk-FGHHJ7U2.js +1 -0
  13. package/public/chunk-FJGK2Y72.js +1 -0
  14. package/public/{chunk-CZWRDBMY.js → chunk-IP2UNZAT.js} +1 -1
  15. package/public/{chunk-26ZBWNUQ.js → chunk-KAAC4VTV.js} +1 -1
  16. package/public/chunk-LEEF5WZZ.js +1 -0
  17. package/public/{chunk-ZHXEZBYI.js → chunk-MWETYHR7.js} +1 -1
  18. package/public/chunk-NFMYMYDJ.js +1 -0
  19. package/public/{chunk-B5DI22LT.js → chunk-PWZFOOT4.js} +1 -1
  20. package/public/chunk-ROH43CFA.js +1 -0
  21. package/public/{chunk-CKZDFNLJ.js → chunk-VBSJZWSI.js} +1 -1
  22. package/public/{chunk-3E3U7Z7O.js → chunk-VXYZIAGN.js} +1 -1
  23. package/public/chunk-WARJYBQ7.js +7 -0
  24. package/public/{chunk-VAE47BFB.js → chunk-WOU2FNU3.js} +1 -1
  25. package/public/{chunk-UXZI7A6H.js → chunk-XHJJSLEL.js} +1 -1
  26. package/public/{chunk-IZEHULJO.js → chunk-ZYGXQZX6.js} +1 -1
  27. package/public/index.html +1 -1
  28. package/public/main-NXVNOJR5.js +358 -0
  29. package/public/{worker-2QCQHBWQ.js → worker-6LLSDQNK.js} +40 -20
  30. package/public/chunk-6W3TVG4T.js +0 -1
  31. package/public/chunk-FFPCEPCR.js +0 -7
  32. package/public/chunk-L766X4HH.js +0 -1
  33. package/public/chunk-NUFT6SHL.js +0 -1
  34. package/public/chunk-PKC2MOZE.js +0 -1
  35. package/public/chunk-VCZ35SJT.js +0 -1
  36. package/public/main-YMAIP3FL.js +0 -358
@@ -0,0 +1,4 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M11.196 12.8039C10.2556 12.8623 9.33428 13.2514 8.61772 13.9679L4.46364 18.122L5.87785 19.5362L10.0319 15.3822C10.7485 14.6656 11.1376 13.7443 11.196 12.8039ZM12.9999 11C10.9982 10.4654 8.77388 10.9834 7.20351 12.5537L1.63521 18.122L5.87785 22.3647L11.4461 16.7964C13.0165 15.226 13.5344 13.0017 12.9999 11Z" fill="#373737"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M16.4572 8.95719L14.9572 10.4572L13.543 9.04298L15.043 7.54298L16.4572 8.95719ZM19.4572 5.95719L17.9572 7.45719L16.543 6.04298L18.043 4.54297L19.4572 5.95719ZM22.4572 2.95718L20.9572 4.45718L19.543 3.04297L21.043 1.54297L22.4572 2.95718Z" fill="#373737"/>
4
+ </svg>
@@ -521,7 +521,8 @@
521
521
  menu. On a touch screen, press and hold.<br />
522
522
  The options available may vary based on the current application state.
523
523
  Plugins can add their own commands at the bottom of the menu. See the
524
- Feature Browser &rarr; <i>Extension Map Actions</i>.<br />
524
+ Feature Browser &rarr;
525
+ <i>Extension Menu Commands &amp; Chart Picks</i>.<br />
525
526
  <i
526
527
  >Note:The <b>"Add Note here"</b> option is only available at zoom
527
528
  levels where Notes are visible on the map.
@@ -652,7 +653,10 @@
652
653
  Once a destination has been set the following actions are
653
654
  available:
654
655
  <br />&nbsp;<br />
655
- <b><i class="material-icons">settings</i></b>
656
+ The course data panel can be dragged to another part of the screen
657
+ (on a touchscreen, press and hold it first). See the Feature
658
+ Browser &rarr; <i>Following a Route</i>. <br />&nbsp;<br />
659
+ <b><img src="./img/navigation-route.svg" /></b>
656
660
  Click to display the <b>Course Settings</b> screen.<br />
657
661
  From this screen values such as <i>Arrival Circle</i> can be set.
658
662
  <img
@@ -2189,14 +2193,28 @@
2189
2193
  button function.<br />
2190
2194
  <ul>
2191
2195
  <li>
2192
- <b>Waypoint at Vessel</b> - Selecting this option will create
2196
+ <b>Waypoint at vessel</b> - Selecting this option will create
2193
2197
  a waypoint at the vessel's current location.
2194
2198
  </li>
2195
2199
  <li>
2196
2200
  <b>Person Overboard</b> - Selecting this option will raise a
2197
2201
  Person Overboard alarm.
2198
2202
  </li>
2203
+ <li>
2204
+ <b>Autopilot Console</b> - Opens and closes the autopilot
2205
+ console.
2206
+ </li>
2207
+ <li>
2208
+ <b>Radar Overlay</b> - Shows the radar on the chart and opens
2209
+ its control panel.
2210
+ </li>
2211
+ <li>
2212
+ <b>A plugin's button</b> - Any button added by a plotter
2213
+ extension plugin, listed by the plugin's name and the button's
2214
+ title.
2215
+ </li>
2199
2216
  </ul>
2217
+ See the Feature Browser → <i>Action Button</i> for details.
2200
2218
  </li>
2201
2219
  <li>
2202
2220
  <b>Allow Device to Sleep</b>: Check this option to disable the
@@ -1 +1 @@
1
- import{D as m}from"./chunk-IZEHULJO.js";import"./chunk-RYULE37H.js";import"./chunk-3PBISOLT.js";import{a as e}from"./chunk-ZHXEZBYI.js";import"./chunk-FFPCEPCR.js";import"./chunk-BZGM3F3K.js";var t=e.Array(e.String(),{minItems:1}),p=e.Object({ids:t,visible:e.Boolean()}),b=e.Object({ids:t,opacity:e.Number({minimum:0,maximum:1})}),c=e.Object({image:e.Unsafe(e.Refine(e.Unknown(),m,()=>"must be a transferred ImageBitmap")),overlayId:e.String(),requestId:e.Optional(e.String()),extent:e.Refine(e.Tuple([e.Number(),e.Number(),e.Number(),e.Number()]),([i,a,r,n])=>r>i&&n>a,()=>"must be [minX, minY, maxX, maxY] in EPSG:3857 with max > min")}),u=e.Object({overlayId:e.String()});export{u as DataParams,c as FrameParams,b as SetOpacityParams,p as SetVisibilityParams};
1
+ import{D as m}from"./chunk-ZYGXQZX6.js";import"./chunk-RYULE37H.js";import"./chunk-3PBISOLT.js";import{a as e}from"./chunk-MWETYHR7.js";import"./chunk-WARJYBQ7.js";import"./chunk-BZGM3F3K.js";var t=e.Array(e.String(),{minItems:1}),p=e.Object({ids:t,visible:e.Boolean()}),b=e.Object({ids:t,opacity:e.Number({minimum:0,maximum:1})}),c=e.Object({image:e.Unsafe(e.Refine(e.Unknown(),m,()=>"must be a transferred ImageBitmap")),overlayId:e.String(),requestId:e.Optional(e.String()),extent:e.Refine(e.Tuple([e.Number(),e.Number(),e.Number(),e.Number()]),([i,a,r,n])=>r>i&&n>a,()=>"must be [minX, minY, maxX, maxY] in EPSG:3857 with max > min")}),u=e.Object({overlayId:e.String()});export{u as DataParams,c as FrameParams,b as SetOpacityParams,p as SetVisibilityParams};
@@ -1 +1 @@
1
- import{a as t}from"./chunk-ZHXEZBYI.js";import"./chunk-FFPCEPCR.js";import"./chunk-BZGM3F3K.js";var r=t.Object({id:t.String({minLength:1})});export{r as ApplyParams};
1
+ import{a as t}from"./chunk-MWETYHR7.js";import"./chunk-WARJYBQ7.js";import"./chunk-BZGM3F3K.js";var r=t.Object({id:t.String({minLength:1})});export{r as ApplyParams};
@@ -1 +1 @@
1
- import{M as Z,Wb as $,v as Y}from"./chunk-VG2HTHDN.js";import{a as q,b as Q,c as X}from"./chunk-O2XN7DIT.js";import"./chunk-CI2BDMX2.js";import"./chunk-M4EXFQJE.js";import{j as B,l as N}from"./chunk-UBRYY245.js";import{a as z,b as G,d as J}from"./chunk-A7RX2LBX.js";import{a as U}from"./chunk-ON6WKWFV.js";import"./chunk-Z2OUIJPL.js";import"./chunk-FX2SMI5S.js";import"./chunk-I3RHGD62.js";import{b as K,i as W,o as H}from"./chunk-EX2EX65O.js";import{$a as j,Fa as P,Ga as R,Ja as k,La as T,Na as V,Oa as A,Wa as F,Ya as O,rb as L}from"./chunk-GJFI75CP.js";import"./chunk-6W3TVG4T.js";import"./chunk-7FANVIZX.js";import"./chunk-IZEHULJO.js";import"./chunk-RYULE37H.js";import{Db as b,Hb as f,Jb as c,Oa as r,Wa as m,Yb as n,Zb as w,_a as v,_b as y,ba as d,bc as D,ca as p,cc as S,dc as E,nb as u,ob as g,qb as C,rb as M,sb as I,tb as _,ub as i,vb as t,wb as h}from"./chunk-3PBISOLT.js";import"./chunk-ZHXEZBYI.js";import"./chunk-FFPCEPCR.js";import"./chunk-BZGM3F3K.js";function te(a,o){if(a&1&&(i(0,"mat-option",10),n(1),t()),a&2){let e=o.$implicit;_("value",e),r(),w(e)}}function ie(a,o){if(a&1){let e=b();i(0,"div")(1,"ap-file-input",17),f("chosen",function(l){d(e);let x=c(2);return p(x.parseFile(l))}),i(2,"div",18)(3,"div",19),n(4," Click or Drop file "),t()()()()}a&2&&(r(),_("astext",!0))}function ne(a,o){if(a&1){let e=b();i(0,"div")(1,"div")(2,"b"),n(3,"Invalid Resource Data:"),t(),h(4,"br")(5,"br"),i(6,"i"),n(7,"Selected file does not contain valid data. "),t(),h(8,"br"),t(),i(9,"div",20)(10,"button",21),f("click",function(){d(e);let l=c(2);return p(l.app.showHelp("resource"))}),i(11,"mat-icon"),n(12,"help"),t(),n(13," Help "),t()()()}}function ae(a,o){a&1&&(i(0,"div",16),n(1," Note: Data will not be validated when uploaded to server! "),t())}function oe(a,o){if(a&1){let e=b();i(0,"div",7)(1,"div")(2,"mat-form-field",8)(3,"mat-label"),n(4,"Select Destination Path"),t(),i(5,"mat-select",9,0),E("valueChange",function(l){d(e);let x=c();return S(x.targetPath,l)||(x.targetPath=l),p(l)}),M(7,te,2,2,"mat-option",10,C),t()()(),u(9,ie,5,1,"div"),u(10,ne,14,0,"div"),i(11,"div")(12,"div",11)(13,"div",12)(14,"div")(15,"span",13),n(16,"Name:"),t(),n(17),t(),i(18,"div")(19,"span",13),n(20,"Type:"),t(),n(21),t()()(),i(22,"div",14)(23,"button",15),f("click",function(){d(e);let l=c();return p(l.load())}),i(24,"mat-icon"),n(25,"file_upload"),t(),n(26," \xA0Load\xA0 "),t(),h(27,"br"),n(28,"\xA0 "),u(29,ae,2,0,"div",16),t()()()}if(a&2){let e=c();r(5),_("disabled",!e.resPaths),D("value",e.targetPath),r(2),I(e.resPaths),r(2),g(e.source.name?-1:9),r(),g(e.display.notValid?10:-1),r(7),y(" ",e.source.name," "),r(4),y(" ",e.source.type," "),r(2),_("disabled",!e.targetPath||!e.source.name),r(6),g(e.targetPath&&e.source.name?29:-1)}}var ee=class a{constructor(o,e,s,l){this.app=o;this.skclient=e;this.dialogRef=s;this.data=l}app;skclient;dialogRef;data;resPaths=[];targetPath=null;source={type:null,name:null,data:null};display={notValid:!1};ngOnInit(){this.skclient.api.get(this.app.skApiVersion,"/resources").subscribe(o=>{this.resPaths=[],this.targetPath=null,this.resPaths=Object.keys(o).filter(e=>!["routes","waypoints","notes","regions","charts","tracks"].includes(e))},()=>{this.resPaths=[],this.targetPath=null})}load(){this.dialogRef.close({path:this.targetPath,data:this.source.data})}parseFile(o){this.source=o,this.source.type="Unknown";try{let e=JSON.parse(o.data);this.source.type=e.type?e.type:this.source.type}catch(e){console.log("Error parsing resource file!")}}static \u0275fac=function(e){return new(e||a)(m($),m(Y),m(P),m(R))};static \u0275cmp=v({type:a,selectors:[["resource-upload-dialog"]],decls:13,vars:1,consts:[["respaths",""],[1,"resourceload-dialog"],[2,"background-color","transparent"],[2,"flex","1 1 auto","text-align","center"],[2,"text-align","right"],["mat-icon-button","",3,"click"],["mat-dialog-content",""],[1,"card-group"],["floatLabel","always",2,"width","100%"],["id","respaths",3,"valueChange","disabled","value"],[3,"value"],[2,"display","flex","flex-wrap","wrap"],[2,"flex","1 1 auto","padding","5px","font-size","smaller"],[2,"font-weight","bold"],[2,"text-align","center","padding-top","15px"],["mat-raised-button","","matTooltip","Load features","matTooltipPosition","below",3,"click","disabled"],[2,"padding","10px","border","gray 1px dashed","font-style","italic"],[3,"chosen","astext"],[2,"width","200px"],[2,"padding","25%","border","gray 1px dashed"],[2,"width","100%","text-align","center"],["mat-raised-button","",3,"click"]],template:function(e,s){e&1&&(i(0,"div",1)(1,"mat-toolbar",2)(2,"span")(3,"mat-icon"),n(4,"category"),t()(),i(5,"span",3),n(6,"Load Resource"),t(),i(7,"span",4)(8,"button",5),f("click",function(){return s.dialogRef.close()}),i(9,"mat-icon"),n(10,"close"),t()()()(),i(11,"div",6),u(12,oe,30,8,"div",7),t()()),e&2&&(r(12),g(s.display.notValid?-1:12))},dependencies:[L,H,W,K,J,G,z,X,U,A,V,B,j,O,F,Q,q,N,T,k,Z],styles:[".resourceload-dialog[_ngcontent-%COMP%]{font-family:roboto;position:relative;width:100%}.card-group[_ngcontent-%COMP%]{padding:5px 5%}@media only screen and (min-width:800px){.card-group[_ngcontent-%COMP%]{padding:5px 5%}}"]})};export{ee as ResourceImportDialog};
1
+ import{M as Z,_b as $,v as Y}from"./chunk-F7CTV67V.js";import{a as q,b as Q,c as X}from"./chunk-O2XN7DIT.js";import"./chunk-CI2BDMX2.js";import"./chunk-M4EXFQJE.js";import{j as B,l as N}from"./chunk-UBRYY245.js";import{a as z,b as G,d as J}from"./chunk-A7RX2LBX.js";import{a as U}from"./chunk-ON6WKWFV.js";import"./chunk-Z2OUIJPL.js";import"./chunk-FX2SMI5S.js";import"./chunk-I3RHGD62.js";import{b as K,i as W,o as H}from"./chunk-EX2EX65O.js";import{$a as j,Fa as P,Ga as R,Ja as k,La as T,Na as V,Oa as A,Wa as F,Ya as O,rb as L}from"./chunk-GJFI75CP.js";import"./chunk-LEEF5WZZ.js";import"./chunk-7FANVIZX.js";import"./chunk-ZYGXQZX6.js";import"./chunk-RYULE37H.js";import{Db as b,Hb as f,Jb as c,Oa as r,Wa as m,Yb as n,Zb as w,_a as v,_b as y,ba as d,bc as D,ca as p,cc as S,dc as E,nb as u,ob as g,qb as C,rb as M,sb as I,tb as _,ub as i,vb as t,wb as h}from"./chunk-3PBISOLT.js";import"./chunk-MWETYHR7.js";import"./chunk-WARJYBQ7.js";import"./chunk-BZGM3F3K.js";function te(a,o){if(a&1&&(i(0,"mat-option",10),n(1),t()),a&2){let e=o.$implicit;_("value",e),r(),w(e)}}function ie(a,o){if(a&1){let e=b();i(0,"div")(1,"ap-file-input",17),f("chosen",function(l){d(e);let x=c(2);return p(x.parseFile(l))}),i(2,"div",18)(3,"div",19),n(4," Click or Drop file "),t()()()()}a&2&&(r(),_("astext",!0))}function ne(a,o){if(a&1){let e=b();i(0,"div")(1,"div")(2,"b"),n(3,"Invalid Resource Data:"),t(),h(4,"br")(5,"br"),i(6,"i"),n(7,"Selected file does not contain valid data. "),t(),h(8,"br"),t(),i(9,"div",20)(10,"button",21),f("click",function(){d(e);let l=c(2);return p(l.app.showHelp("resource"))}),i(11,"mat-icon"),n(12,"help"),t(),n(13," Help "),t()()()}}function ae(a,o){a&1&&(i(0,"div",16),n(1," Note: Data will not be validated when uploaded to server! "),t())}function oe(a,o){if(a&1){let e=b();i(0,"div",7)(1,"div")(2,"mat-form-field",8)(3,"mat-label"),n(4,"Select Destination Path"),t(),i(5,"mat-select",9,0),E("valueChange",function(l){d(e);let x=c();return S(x.targetPath,l)||(x.targetPath=l),p(l)}),M(7,te,2,2,"mat-option",10,C),t()()(),u(9,ie,5,1,"div"),u(10,ne,14,0,"div"),i(11,"div")(12,"div",11)(13,"div",12)(14,"div")(15,"span",13),n(16,"Name:"),t(),n(17),t(),i(18,"div")(19,"span",13),n(20,"Type:"),t(),n(21),t()()(),i(22,"div",14)(23,"button",15),f("click",function(){d(e);let l=c();return p(l.load())}),i(24,"mat-icon"),n(25,"file_upload"),t(),n(26," \xA0Load\xA0 "),t(),h(27,"br"),n(28,"\xA0 "),u(29,ae,2,0,"div",16),t()()()}if(a&2){let e=c();r(5),_("disabled",!e.resPaths),D("value",e.targetPath),r(2),I(e.resPaths),r(2),g(e.source.name?-1:9),r(),g(e.display.notValid?10:-1),r(7),y(" ",e.source.name," "),r(4),y(" ",e.source.type," "),r(2),_("disabled",!e.targetPath||!e.source.name),r(6),g(e.targetPath&&e.source.name?29:-1)}}var ee=class a{constructor(o,e,s,l){this.app=o;this.skclient=e;this.dialogRef=s;this.data=l}app;skclient;dialogRef;data;resPaths=[];targetPath=null;source={type:null,name:null,data:null};display={notValid:!1};ngOnInit(){this.skclient.api.get(this.app.skApiVersion,"/resources").subscribe(o=>{this.resPaths=[],this.targetPath=null,this.resPaths=Object.keys(o).filter(e=>!["routes","waypoints","notes","regions","charts","tracks"].includes(e))},()=>{this.resPaths=[],this.targetPath=null})}load(){this.dialogRef.close({path:this.targetPath,data:this.source.data})}parseFile(o){this.source=o,this.source.type="Unknown";try{let e=JSON.parse(o.data);this.source.type=e.type?e.type:this.source.type}catch(e){console.log("Error parsing resource file!")}}static \u0275fac=function(e){return new(e||a)(m($),m(Y),m(P),m(R))};static \u0275cmp=v({type:a,selectors:[["resource-upload-dialog"]],decls:13,vars:1,consts:[["respaths",""],[1,"resourceload-dialog"],[2,"background-color","transparent"],[2,"flex","1 1 auto","text-align","center"],[2,"text-align","right"],["mat-icon-button","",3,"click"],["mat-dialog-content",""],[1,"card-group"],["floatLabel","always",2,"width","100%"],["id","respaths",3,"valueChange","disabled","value"],[3,"value"],[2,"display","flex","flex-wrap","wrap"],[2,"flex","1 1 auto","padding","5px","font-size","smaller"],[2,"font-weight","bold"],[2,"text-align","center","padding-top","15px"],["mat-raised-button","","matTooltip","Load features","matTooltipPosition","below",3,"click","disabled"],[2,"padding","10px","border","gray 1px dashed","font-style","italic"],[3,"chosen","astext"],[2,"width","200px"],[2,"padding","25%","border","gray 1px dashed"],[2,"width","100%","text-align","center"],["mat-raised-button","",3,"click"]],template:function(e,s){e&1&&(i(0,"div",1)(1,"mat-toolbar",2)(2,"span")(3,"mat-icon"),n(4,"category"),t()(),i(5,"span",3),n(6,"Load Resource"),t(),i(7,"span",4)(8,"button",5),f("click",function(){return s.dialogRef.close()}),i(9,"mat-icon"),n(10,"close"),t()()()(),i(11,"div",6),u(12,oe,30,8,"div",7),t()()),e&2&&(r(12),g(s.display.notValid?-1:12))},dependencies:[L,H,W,K,J,G,z,X,U,A,V,B,j,O,F,Q,q,N,T,k,Z],styles:[".resourceload-dialog[_ngcontent-%COMP%]{font-family:roboto;position:relative;width:100%}.card-group[_ngcontent-%COMP%]{padding:5px 5%}@media only screen and (min-width:800px){.card-group[_ngcontent-%COMP%]{padding:5px 5%}}"]})};export{ee as ResourceImportDialog};