@idm-plugin/tag-nop
Version:
idm tag plugin
582 lines (581 loc) • 9.96 kB
JavaScript
var o = Object.defineProperty;
var u = (e, t, r) => t in e ? o(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
var a = (e, t, r) => (u(e, typeof t != "symbol" ? t + "" : t, r), r);
class p {
}
a(p, "LEVEL", {
Basic: 1,
Prime: 2,
Supper: 1024
});
const i = class {
static getWeatherLayer(t) {
return i.WEATHER_LAYERS.find((r) => r.key === t);
}
static getOtherLayer(t) {
return i.OTHER_LAYERS.find((r) => r.key === t);
}
};
let n = i;
// 天气图层
a(n, "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",
// peer: {
// weight: 1,
// key: 'wind-barbs',
// },
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
}
]), // 其它图层
a(n, "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 l = /* @__PURE__ */ ((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))(l || {});
class s {
}
// 天气相关标签, 2^0 <= weight <= 2^10
a(s, "WEATHER_TAG", [
{
weight: 4,
// 2^2
name: "Adverse Weather Dangerous",
// 恶劣天气级别, 危险的
key: "DANGEROUS",
positive: !0
},
{
weight: 2,
// 2^1
name: "Adverse Weather Severe",
// 恶劣天气级别, 糟糕的
key: "SEVERE",
positive: !0
},
{
weight: 1,
// 2^0
name: "Adverse Weather Heavy",
// 恶劣天气级别, 严重的
key: "HEAVY",
positive: !0
}
]), // 航行相关标签, 2^11 <= weight <= 2^20
a(s, "SAILING_TAG", [
{
weight: 2048,
// 2^11
name: "Deviation",
// 偏航
key: "deviation",
positive: !0
},
{
weight: 4096,
// 2^12
name: "Stoppage",
// 停航
key: "stoppage",
positive: !0
},
{
weight: 8192,
// 2^13
name: "Deceleration",
// 减速
key: "deceleration",
positive: !0
},
{
weight: 16384,
// 2^14
name: "Slow Speed",
// 低速
key: "slowSpeed",
positive: !0
},
{
weight: 32768,
// 2^15
name: "No Noon",
// 没有船报
key: "noNoon",
positive: !0
},
{
weight: 65536,
// 2^16
name: "AIS LOSS",
// AIS丢失
key: "aisLoss",
positive: !0
}
]), // 其他标签, 2^21 <= weight <= 2^31
a(s, "OTHER_TAG", [
{
weight: 2097152,
// 2^21
name: "No CP",
// 没有cp
key: "noCp",
positive: !0
},
{
weight: 4194304,
// 2^22
name: "Send Rpt",
// 已发送 route report
key: "sendRpt",
positive: !1
},
{
weight: 8388608,
// 2^23
name: "Send Bps",
// 已发送 Bps
key: "sendBps",
positive: !1
},
{
weight: 16777216,
// 2^24
name: "Send Pvar",
// 已发送PvarK
key: "sendPvar",
positive: !1
},
{
weight: 33554432,
// 2^25
name: "Checked",
// 已经check的航次
key: "checked",
positive: !1
},
{
weight: 67108864,
// 2^26
name: "Not Send PWFR",
// 已经check的航次
key: "notSendPwfr",
positive: !0
}
]);
export {
p as CompanyHelper,
n as LayerHelper,
s as VoyageHelper,
l as VoyageTagKey
};