@idm-plugin/tag-nop
Version:
idm tag plugin
2 lines (1 loc) • 6.56 kB
JavaScript
(function(t,r){typeof exports=="object"&&typeof module<"u"?r(exports):typeof define=="function"&&define.amd?define(["exports"],r):(t=typeof globalThis<"u"?globalThis:t||self,r(t["idm-base"]={}))})(this,function(t){"use strict";var l=Object.defineProperty;var h=(t,r,a)=>r in t?l(t,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[r]=a;var n=(t,r,a)=>(h(t,typeof r!="symbol"?r+"":r,a),a);class r{}n(r,"LEVEL",{Basic:1,Prime:2,Supper:1024});const s=class{static getWeatherLayer(o){return s.WEATHER_LAYERS.find(u=>u.key===o)}static getOtherLayer(o){return s.OTHER_LAYERS.find(u=>u.key===o)}};let a=s;n(a,"WEATHER_LAYERS",[{weight:1,name:"Wind Barbs",key:"wind",h5:!0,enabled:!0,type:"json",format:"vector",atmos:!0,overlays:!0},{weight:524288,name:"Wind",key:"wind-particle",enabled:!0,type:"jpg",format:"jpg",atmos:!0},{weight:4194304,name:"Waves",key:"sig-wave",enabled:!0,type:"jpg",format:"jpg"},{weight:16,name:"Sig.Wave Height",key:"sig-wave-height",h5:!0,enabled:!0,type:"json",format:"contourf",overlays:!0},{weight:8388608,name:"Sig Waves (Contour)",key:"sig-wave-height-contour",peer:{weight:16,key:"sig-wave-contour"},enabled:!1,hide:!0,type:"json",format:"contour"},{weight:96,name:"Currents",key:"current",vendor:"cmems",alias:"copernicus",merge:!0,h5:!0,enabled:!0,hide:!0,type:"json",particle:!0},{weight:1048576,name:"Ocean Currents",key:"current-particle",vendor:"cmems",alias:"copernicus",peer:{weight:96,key:"current"},enabled:!0,type:"jpg",format:"jpg"},{weight:256,name:"Tropicals",key:"tropicals",h5:!0,enabled:!1,hide:!0,type:"json"},{weight:8192,name:"Visibility",vendor:"gfs",key:"visibility",h5:!0,enabled:!0,type:"jpg",format:"jpg",atmos:!0},{weight:262144,name:"Precipitation Acc.",key:"precip3h",h5:!0,enabled:!0,type:"jpg",format:"jpg",atmos:!0},{weight:2097152,name:"Temperature",key:"temp",h5:!0,enabled:!0,type:"jpg",format:"jpg",atmos:!0},{weight:131072,name:"Sea Temperature",key:"water-temp",vendor:"cmems",alias:"copernicus",h5:!0,enabled:!0,type:"jpg",format:"jpg",step:6},{weight:6,name:"Swell",key:"swell",merge:!0,h5:!0,enabled:!1,hide:!0,type:"json",format:"contour"},{weight:2,name:"Swell Height",key:"swell-height",partly:!0,enabled:!1,hide:!0,type:"json",format:"contour"},{weight:4,name:"Swell Direction",key:"swell-direction",partly:!0,enabled:!1,hide:!0,type:"json",format:"scalar"},{weight:32,name:"Current Direction",key:"current-direction",vendor:"cmems",alias:"copernicus",partly:!0,enabled:!0,type:"json",format:"vector",overlays:!0},{weight:64,name:"Current Speed",key:"current-speed",vendor:"cmems",alias:"copernicus",partly:!0,enabled:!1,hide:!0,type:"json",format:"contourf"},{weight:4096,name:"Sea Level Pressure",h5:!0,key:"prmsl",enabled:!0,type:"json",format:"contour",atmos:!0,overlays:!0},{weight:512,name:"Pressure Contour",key:"prmsl-contour",partly:!0,enabled:!1,hide:!0,type:"json",format:"contour",atmos:!0},{weight:1024,name:"Pressure Value",key:"prmsl-value",partly:!0,enabled:!1,hide:!0,type:"json",format:"contour",atmos:!0},{weight:2048,name:"Pressure Front",key:"prmsl-front",partly:!0,enabled:!1,hide:!0,type:"json",format:"contour",atmos:!0},{weight:0,name:"Sea Ice Forecast",key:"ice-forecast",vendor:"cmems",alias:"copernicus",enabled:!0,type:"other",format:"jpg",daily:!0},{weight:32768,name:"Ice Thick",key:"ice-thickness",vendor:"cmems",alias:"copernicus",h5:!0,enabled:!1,hide:!0,type:"jpg",format:"jpg",daily:!0},{weight:65536,name:"Sea Ice Cover",key:"ice-cover",vendor:"cmems",alias:"copernicus",h5:!0,enabled:!0,hide:!0,type:"jpg",format:"jpg",daily:!0},{weight:16384,name:"Sea Ice Observation",key:"ice-edge",vendor:"cmems",alias:"copernicus",enabled:!0,type:"jpg",format:"jpg",obs:!0,daily:!0}]),n(a,"OTHER_LAYERS",[{weight:0,name:"Graticule",key:"graticule",enabled:!0,type:"other"},{weight:1024,name:"Day/Night",key:"day-night",h5:!0,enabled:!0,type:"json"},{weight:128,name:"Time Zones",key:"time-zones",h5:!0,enabled:!0,type:"json"},{weight:64,name:"Ports",key:"ports",h5:!0,enabled:!0,type:"json"},{weight:4096,name:"Navigational Warnings",key:"nav-warnings",h5:!0,enabled:!0,type:"json"},{weight:0,name:"Tidal Stations",key:"tidal-stations",enabled:!0,type:"other"},{weight:4,name:"ECA Zones",key:"eca-zones",h5:!0,enabled:!0,type:"json"},{weight:1,name:"JWC War Areas",key:"war-zones",h5:!0,enabled:!0,type:"json"},{weight:2,name:"NAVAREAs",key:"navareas",h5:!0,enabled:!0,type:"json"},{weight:8,name:"Load Lines",key:"load-lines",h5:!0,enabled:!0,type:"json"},{weight:16,name:"HRA",key:"high-risk-area",enabled:!1,type:"json"},{weight:32,name:"Pirates",key:"pirates",enabled:!1,type:"json"},{weight:0,name:"Global Sea Area",key:"worldMarine",h5:!1,enabled:!0,type:"origin"},{weight:256,name:"VRAs",key:"voluntary-reporting-area",h5:!0,enabled:!0,type:"json"},{weight:512,name:"Special Areas",key:"special-area",h5:!0,enabled:!0,type:"json"},{weight:0,name:"Territorial Seas(12nm)",key:"world12nm",h5:!1,enabled:!0,type:"origin"},{weight:0,name:"China Coastal Route",key:"chinaRoute",h5:!1,enabled:!0,type:"origin"},{weight:0,name:"Ice Areas",key:"ice-areas",enabled:!0,type:"other"}]);var p=(e=>(e.DANGEROUS="DANGEROUS",e.SEVERE="SEVERE",e.HEAVY="HEAVY",e.DEVIATION="deviation",e.STOPPAGE="stoppage",e.DECELERATION="deceleration",e.SLOW_SPEED="slowSpeed",e.AIS_LOSS="aisLoss",e.NO_NOON="noNoon",e.NO_CP="noCp",e.SEND_RPT="sendRpt",e.SEND_BPS="sendBps",e.SEND_PVAR="sendPvar",e.NOT_SEND_PWFR="notSendPwfr",e.CHECKED="checked",e))(p||{});class i{}n(i,"WEATHER_TAG",[{weight:4,name:"Adverse Weather Dangerous",key:"DANGEROUS",positive:!0},{weight:2,name:"Adverse Weather Severe",key:"SEVERE",positive:!0},{weight:1,name:"Adverse Weather Heavy",key:"HEAVY",positive:!0}]),n(i,"SAILING_TAG",[{weight:2048,name:"Deviation",key:"deviation",positive:!0},{weight:4096,name:"Stoppage",key:"stoppage",positive:!0},{weight:8192,name:"Deceleration",key:"deceleration",positive:!0},{weight:16384,name:"Slow Speed",key:"slowSpeed",positive:!0},{weight:32768,name:"No Noon",key:"noNoon",positive:!0},{weight:65536,name:"AIS LOSS",key:"aisLoss",positive:!0}]),n(i,"OTHER_TAG",[{weight:2097152,name:"No CP",key:"noCp",positive:!0},{weight:4194304,name:"Send Rpt",key:"sendRpt",positive:!1},{weight:8388608,name:"Send Bps",key:"sendBps",positive:!1},{weight:16777216,name:"Send Pvar",key:"sendPvar",positive:!1},{weight:33554432,name:"Checked",key:"checked",positive:!1},{weight:67108864,name:"Not Send PWFR",key:"notSendPwfr",positive:!0}]),t.CompanyHelper=r,t.LayerHelper=a,t.VoyageHelper=i,t.VoyageTagKey=p,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});