@oicl/openbridge-webcomponents-vue 2.0.0-next.109 → 2.0.0-next.110
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/navigation-instruments/current/ObcCurrent.vue.d.ts +17 -0
- package/navigation-instruments/current/ObcCurrent.vue.js +2 -0
- package/navigation-instruments/current/ObcCurrent.vue.js.map +1 -0
- package/navigation-instruments/current/ObcCurrent.vue2.js +2 -0
- package/navigation-instruments/current/ObcCurrent.vue2.js.map +1 -0
- package/navigation-instruments/watch/ObcWatch.vue.d.ts +2 -0
- package/navigation-instruments/watch/ObcWatch.vue2.js +1 -1
- package/navigation-instruments/watch/ObcWatch.vue2.js.map +1 -1
- package/navigation-instruments/wind/ObcWind.vue.d.ts +6 -2
- package/navigation-instruments/wind/ObcWind.vue2.js +1 -1
- package/navigation-instruments/wind/ObcWind.vue2.js.map +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/current/current.js';
|
|
2
|
+
import { CurrentType } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/current/current.js';
|
|
3
|
+
import { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
4
|
+
import { VesselImage } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
|
|
5
|
+
export interface Props {
|
|
6
|
+
type?: CurrentType;
|
|
7
|
+
currentSpeed?: number | null;
|
|
8
|
+
currentFromDirection?: number | null;
|
|
9
|
+
priority?: Priority;
|
|
10
|
+
vesselImage?: VesselImage;
|
|
11
|
+
vesselHeadingDeg?: number;
|
|
12
|
+
}
|
|
13
|
+
export type { CurrentType } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/current/current.js';
|
|
14
|
+
export type { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
15
|
+
export type { VesselImage } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
|
|
16
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObcCurrent.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{defineComponent as a,reactive as d,useSlots as f,withDirectives as m,openBlock as v,createBlock as _,h as g}from"vue";import{assignSlotNodes as h}from"@lit-labs/vue-utils/wrapper-utils.js";import"@oicl/openbridge-webcomponents/dist/navigation-instruments/current/current.js";const b=a({__name:"ObcCurrent",props:{type:{},currentSpeed:{},currentFromDirection:{},priority:{},vesselImage:{},vesselHeadingDeg:{}},setup(i){const t=i,n=d({}),p={created(r){for(const e in t)n[e]=r[e]}};let s=!1;const l=f(),u=()=>{const e={};for(const o in t){const c=t[o];(c!==void 0||s)&&(e[o]=c??n[o])}return s=!0,g("obc-current",e,h(l))};return(r,e)=>m((v(),_(u,null,null,512)),[[p]])}});export{b as default};
|
|
2
|
+
//# sourceMappingURL=ObcCurrent.vue2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObcCurrent.vue2.js","sources":["../../src/navigation-instruments/current/ObcCurrent.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { withDirectives as _withDirectives, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport { h, useSlots, reactive } from \"vue\";\n import { assignSlotNodes, Slots } from \"@lit-labs/vue-utils/wrapper-utils.js\";\n import '@oicl/openbridge-webcomponents/dist/navigation-instruments/current/current.js';\n import {CurrentType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/current/current.js';\nimport {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\nimport {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';\n\n export interface Props {\n type?: CurrentType;\n currentSpeed?: number | null;\n currentFromDirection?: number | null;\n priority?: Priority;\n vesselImage?: VesselImage;\n vesselHeadingDeg?: number\n }\n\n \n \n export type {CurrentType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/current/current.js';\nexport type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\nexport type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcCurrent',\n props: {\n type: {},\n currentSpeed: {},\n currentFromDirection: {},\n priority: {},\n vesselImage: {},\n vesselHeadingDeg: {}\n },\n setup(__props: any) {\n\n const vueProps = __props;\n\n const defaults = reactive({} as Props);\n const vDefaults = {\n created(el: any) {\n for (const p in vueProps) {\n defaults[p as keyof Props] = el[p];\n }\n }\n };\n\n let hasRendered = false;\n\n \n\n const slots = useSlots() as Slots;\n\n const render = () => {\n const eventProps = {\n \n };\n const props = eventProps as (typeof eventProps & Props);\n\n \n for (const p in vueProps) {\n const v = vueProps[p as keyof Props];\n if ((v !== undefined) || hasRendered) {\n (props[p as keyof Props] as unknown) = v ?? defaults[p as keyof Props];\n }\n }\n\n hasRendered = true;\n \n\n return h(\n 'obc-current',\n props,\n assignSlotNodes(slots)\n );\n };\n \nreturn (_ctx: any,_cache: any) => {\n return _withDirectives((_openBlock(), _createBlock(render, null, null, 512)), [\n [vDefaults]\n ])\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","vueProps","defaults","reactive","vDefaults","el","p","hasRendered","slots","useSlots","render","props","v","h","assignSlotNodes","_ctx","_cache","_withDirectives","_openBlock","_createBlock"],"mappings":"0RAyBA,MAAAA,EAA4BC,EAAiB,CAC3C,OAAQ,aACR,MAAO,CACL,KAAM,CAAA,EACN,aAAc,CAAA,EACd,qBAAsB,CAAA,EACtB,SAAU,CAAA,EACV,YAAa,CAAA,EACb,iBAAkB,CAAA,CAAC,EAErB,MAAMC,EAAc,CAEhB,MAAMC,EAAWD,EAEfE,EAAWC,EAAS,EAAW,EAC/BC,EAAY,CAChB,QAAQC,EAAS,CACf,UAAWC,KAAKL,EACdC,EAASI,CAAgB,EAAID,EAAGC,CAAC,CAErC,CAAA,EAGF,IAAIC,EAAc,GAId,MAAMC,EAAQC,EAAA,EAERC,EAAS,IAAM,CAInB,MAAMC,EAHa,CAAA,EAMrB,UAAWL,KAAKL,EAAU,CACxB,MAAMW,EAAIX,EAASK,CAAgB,GAC9BM,IAAM,QAAcL,KACtBI,EAAML,CAAgB,EAAgBM,GAAKV,EAASI,CAAgB,EAEzE,CAEA,OAAAC,EAAc,GAGLM,EACL,cACAF,EACAG,EAAgBN,CAAK,CAAA,CAEzB,EAEN,MAAO,CAACO,EAAUC,IACTC,GAAiBC,IAAcC,EAAaT,EAAQ,KAAM,KAAM,GAAG,GAAI,CAC5E,CAACN,CAAS,CAAA,CACX,CAEH,CAEA,CAAC"}
|
|
@@ -43,6 +43,8 @@ export interface Props {
|
|
|
43
43
|
currentFromDirectionDeg?: number | null;
|
|
44
44
|
currentSymbolRadius?: number | null;
|
|
45
45
|
currentColor?: string | undefined;
|
|
46
|
+
currentIconCentered?: boolean;
|
|
47
|
+
scaleCurrentIcon?: number;
|
|
46
48
|
starboardPortIndicator?: boolean;
|
|
47
49
|
clipTop?: number;
|
|
48
50
|
clipBottom?: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{defineComponent as d,reactive as u,useSlots as y,withDirectives as B,openBlock as m,createBlock as h,h as g}from"vue";import{assignSlotNodes as f}from"@lit-labs/vue-utils/wrapper-utils.js";import"@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js";const k=d({__name:"ObcWatch",props:{state:{},priority:{},watchCircleType:{},hasBackgroundCircle:{type:Boolean},northArrow:{type:Boolean},northArrowInside:{type:Boolean},northMarker:{type:Boolean},angleSetpoint:{},newAngleSetpoint:{},atAngleSetpoint:{type:Boolean},angleSetpointAtZeroDeadband:{},setpointOverride:{type:Boolean},touching:{type:Boolean},animateSetpoint:{type:Boolean},padding:{},faceDiameter:{},areas:{},barAreas:{},roundBandCuts:{type:Boolean},needles:{},tickmarks:{},tickmarksInside:{type:Boolean},tickmarkStyle:{},advices:{},crosshairEnabled:{type:Boolean},crosshairCenterCutout:{type:Boolean},showLabels:{type:Boolean},insideLabelsFlush:{type:Boolean},vessels:{},windKnots:{},windFromDirectionDeg:{},windSymbolRadius:{},windColor:{},current:{},currentFromDirectionDeg:{},currentSymbolRadius:{},currentColor:{},starboardPortIndicator:{type:Boolean},clipTop:{},clipBottom:{},clipLeft:{},clipRight:{},endLabelsMaxMin:{type:Boolean},scaleWindIcon:{},rotation:{},zoomToFitArc:{type:Boolean},arcFrame:{},tickFadeAngle:{},rotType:{},rotPosition:{},rotStartAngle:{},rotEndAngle:{},rotPriority:{},rotPortStarboard:{type:Boolean},rotAtZeroDeadband:{},rateOfTurnDegreesPerMinute:{},rotDotAnimationFactor:{}},setup(s){const o=s,r=u({}),l={created(t){for(const e in o)r[e]=t[e]}};let a=!1;const c=y(),p=()=>{const e={};for(const n in o){const i=o[n];(i!==void 0||a)&&(e[n]=i??r[n])}return a=!0,g("obc-watch",e,f(c))};return(t,e)=>B((m(),h(p,null,null,512)),[[l]])}});export{k as default};
|
|
1
|
+
import{defineComponent as d,reactive as u,useSlots as y,withDirectives as B,openBlock as m,createBlock as h,h as g}from"vue";import{assignSlotNodes as f}from"@lit-labs/vue-utils/wrapper-utils.js";import"@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js";const k=d({__name:"ObcWatch",props:{state:{},priority:{},watchCircleType:{},hasBackgroundCircle:{type:Boolean},northArrow:{type:Boolean},northArrowInside:{type:Boolean},northMarker:{type:Boolean},angleSetpoint:{},newAngleSetpoint:{},atAngleSetpoint:{type:Boolean},angleSetpointAtZeroDeadband:{},setpointOverride:{type:Boolean},touching:{type:Boolean},animateSetpoint:{type:Boolean},padding:{},faceDiameter:{},areas:{},barAreas:{},roundBandCuts:{type:Boolean},needles:{},tickmarks:{},tickmarksInside:{type:Boolean},tickmarkStyle:{},advices:{},crosshairEnabled:{type:Boolean},crosshairCenterCutout:{type:Boolean},showLabels:{type:Boolean},insideLabelsFlush:{type:Boolean},vessels:{},windKnots:{},windFromDirectionDeg:{},windSymbolRadius:{},windColor:{},current:{},currentFromDirectionDeg:{},currentSymbolRadius:{},currentColor:{},currentIconCentered:{type:Boolean},scaleCurrentIcon:{},starboardPortIndicator:{type:Boolean},clipTop:{},clipBottom:{},clipLeft:{},clipRight:{},endLabelsMaxMin:{type:Boolean},scaleWindIcon:{},rotation:{},zoomToFitArc:{type:Boolean},arcFrame:{},tickFadeAngle:{},rotType:{},rotPosition:{},rotStartAngle:{},rotEndAngle:{},rotPriority:{},rotPortStarboard:{type:Boolean},rotAtZeroDeadband:{},rateOfTurnDegreesPerMinute:{},rotDotAnimationFactor:{}},setup(s){const o=s,r=u({}),l={created(t){for(const e in o)r[e]=t[e]}};let a=!1;const c=y(),p=()=>{const e={};for(const n in o){const i=o[n];(i!==void 0||a)&&(e[n]=i??r[n])}return a=!0,g("obc-watch",e,f(c))};return(t,e)=>B((m(),h(p,null,null,512)),[[l]])}});export{k as default};
|
|
2
2
|
//# sourceMappingURL=ObcWatch.vue2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObcWatch.vue2.js","sources":["../../src/navigation-instruments/watch/ObcWatch.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { withDirectives as _withDirectives, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport { h, useSlots, reactive } from \"vue\";\n import { assignSlotNodes, Slots } from \"@lit-labs/vue-utils/wrapper-utils.js\";\n import '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';\n import {InstrumentState, Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\nimport {WatchCircleType, WatchArea, WatchBarArea, WatchNeedle, WatchVessel} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';\nimport {Tickmark, TickmarkStyle} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';\nimport {AngleAdviceRaw} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/advice.js';\nimport {ZoomToFitArcFrame} from '@oicl/openbridge-webcomponents/dist/svghelpers/arc-frame.js';\nimport {RotType, RotPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/rate-of-turn/rot-renderer.js';\n\n export interface Props {\n state?: InstrumentState;\n priority?: Priority;\n watchCircleType?: WatchCircleType;\n hasBackgroundCircle?: boolean;\n northArrow?: boolean;\n northArrowInside?: boolean | undefined;\n northMarker?: boolean;\n angleSetpoint?: number | undefined;\n newAngleSetpoint?: number | undefined;\n atAngleSetpoint?: boolean;\n angleSetpointAtZeroDeadband?: number;\n setpointOverride?: boolean;\n touching?: boolean;\n animateSetpoint?: boolean;\n padding?: number | undefined;\n faceDiameter?: number | undefined;\n areas?: WatchArea[];\n barAreas?: WatchBarArea[];\n roundBandCuts?: boolean;\n needles?: WatchNeedle[];\n tickmarks?: Tickmark[];\n tickmarksInside?: boolean;\n tickmarkStyle?: TickmarkStyle;\n advices?: AngleAdviceRaw[];\n crosshairEnabled?: boolean;\n crosshairCenterCutout?: boolean;\n showLabels?: boolean;\n insideLabelsFlush?: boolean;\n vessels?: WatchVessel[];\n windKnots?: number | null;\n windFromDirectionDeg?: number | null;\n windSymbolRadius?: number | null;\n windColor?: string | undefined;\n current?: number | null;\n currentFromDirectionDeg?: number | null;\n currentSymbolRadius?: number | null;\n currentColor?: string | undefined;\n starboardPortIndicator?: boolean;\n clipTop?: number;\n clipBottom?: number;\n clipLeft?: number;\n clipRight?: number;\n endLabelsMaxMin?: boolean;\n scaleWindIcon?: number;\n rotation?: number | undefined;\n zoomToFitArc?: boolean;\n arcFrame?: ZoomToFitArcFrame | undefined;\n tickFadeAngle?: number;\n rotType?: RotType | undefined;\n rotPosition?: RotPosition;\n rotStartAngle?: number;\n rotEndAngle?: number;\n rotPriority?: Priority | undefined;\n rotPortStarboard?: boolean;\n rotAtZeroDeadband?: number;\n rateOfTurnDegreesPerMinute?: number | undefined;\n rotDotAnimationFactor?: number\n }\n\n \n \n export type {InstrumentState, Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\nexport type {WatchCircleType, WatchArea, WatchBarArea, WatchNeedle, WatchVessel} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';\nexport type {Tickmark, TickmarkStyle} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';\nexport type {AngleAdviceRaw} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/advice.js';\nexport type {ZoomToFitArcFrame} from '@oicl/openbridge-webcomponents/dist/svghelpers/arc-frame.js';\nexport type {RotType, RotPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/rate-of-turn/rot-renderer.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcWatch',\n props: {\n state: {},\n priority: {},\n watchCircleType: {},\n hasBackgroundCircle: { type: Boolean },\n northArrow: { type: Boolean },\n northArrowInside: { type: Boolean },\n northMarker: { type: Boolean },\n angleSetpoint: {},\n newAngleSetpoint: {},\n atAngleSetpoint: { type: Boolean },\n angleSetpointAtZeroDeadband: {},\n setpointOverride: { type: Boolean },\n touching: { type: Boolean },\n animateSetpoint: { type: Boolean },\n padding: {},\n faceDiameter: {},\n areas: {},\n barAreas: {},\n roundBandCuts: { type: Boolean },\n needles: {},\n tickmarks: {},\n tickmarksInside: { type: Boolean },\n tickmarkStyle: {},\n advices: {},\n crosshairEnabled: { type: Boolean },\n crosshairCenterCutout: { type: Boolean },\n showLabels: { type: Boolean },\n insideLabelsFlush: { type: Boolean },\n vessels: {},\n windKnots: {},\n windFromDirectionDeg: {},\n windSymbolRadius: {},\n windColor: {},\n current: {},\n currentFromDirectionDeg: {},\n currentSymbolRadius: {},\n currentColor: {},\n starboardPortIndicator: { type: Boolean },\n clipTop: {},\n clipBottom: {},\n clipLeft: {},\n clipRight: {},\n endLabelsMaxMin: { type: Boolean },\n scaleWindIcon: {},\n rotation: {},\n zoomToFitArc: { type: Boolean },\n arcFrame: {},\n tickFadeAngle: {},\n rotType: {},\n rotPosition: {},\n rotStartAngle: {},\n rotEndAngle: {},\n rotPriority: {},\n rotPortStarboard: { type: Boolean },\n rotAtZeroDeadband: {},\n rateOfTurnDegreesPerMinute: {},\n rotDotAnimationFactor: {}\n },\n setup(__props: any) {\n\n const vueProps = __props;\n\n const defaults = reactive({} as Props);\n const vDefaults = {\n created(el: any) {\n for (const p in vueProps) {\n defaults[p as keyof Props] = el[p];\n }\n }\n };\n\n let hasRendered = false;\n\n \n\n const slots = useSlots() as Slots;\n\n const render = () => {\n const eventProps = {\n \n };\n const props = eventProps as (typeof eventProps & Props);\n\n \n for (const p in vueProps) {\n const v = vueProps[p as keyof Props];\n if ((v !== undefined) || hasRendered) {\n (props[p as keyof Props] as unknown) = v ?? defaults[p as keyof Props];\n }\n }\n\n hasRendered = true;\n \n\n return h(\n 'obc-watch',\n props,\n assignSlotNodes(slots)\n );\n };\n \nreturn (_ctx: any,_cache: any) => {\n return _withDirectives((_openBlock(), _createBlock(render, null, null, 512)), [\n [vDefaults]\n ])\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","vueProps","defaults","reactive","vDefaults","el","p","hasRendered","slots","useSlots","render","props","v","h","assignSlotNodes","_ctx","_cache","_withDirectives","_openBlock","_createBlock"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ObcWatch.vue2.js","sources":["../../src/navigation-instruments/watch/ObcWatch.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { withDirectives as _withDirectives, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport { h, useSlots, reactive } from \"vue\";\n import { assignSlotNodes, Slots } from \"@lit-labs/vue-utils/wrapper-utils.js\";\n import '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';\n import {InstrumentState, Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\nimport {WatchCircleType, WatchArea, WatchBarArea, WatchNeedle, WatchVessel} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';\nimport {Tickmark, TickmarkStyle} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';\nimport {AngleAdviceRaw} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/advice.js';\nimport {ZoomToFitArcFrame} from '@oicl/openbridge-webcomponents/dist/svghelpers/arc-frame.js';\nimport {RotType, RotPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/rate-of-turn/rot-renderer.js';\n\n export interface Props {\n state?: InstrumentState;\n priority?: Priority;\n watchCircleType?: WatchCircleType;\n hasBackgroundCircle?: boolean;\n northArrow?: boolean;\n northArrowInside?: boolean | undefined;\n northMarker?: boolean;\n angleSetpoint?: number | undefined;\n newAngleSetpoint?: number | undefined;\n atAngleSetpoint?: boolean;\n angleSetpointAtZeroDeadband?: number;\n setpointOverride?: boolean;\n touching?: boolean;\n animateSetpoint?: boolean;\n padding?: number | undefined;\n faceDiameter?: number | undefined;\n areas?: WatchArea[];\n barAreas?: WatchBarArea[];\n roundBandCuts?: boolean;\n needles?: WatchNeedle[];\n tickmarks?: Tickmark[];\n tickmarksInside?: boolean;\n tickmarkStyle?: TickmarkStyle;\n advices?: AngleAdviceRaw[];\n crosshairEnabled?: boolean;\n crosshairCenterCutout?: boolean;\n showLabels?: boolean;\n insideLabelsFlush?: boolean;\n vessels?: WatchVessel[];\n windKnots?: number | null;\n windFromDirectionDeg?: number | null;\n windSymbolRadius?: number | null;\n windColor?: string | undefined;\n current?: number | null;\n currentFromDirectionDeg?: number | null;\n currentSymbolRadius?: number | null;\n currentColor?: string | undefined;\n currentIconCentered?: boolean;\n scaleCurrentIcon?: number;\n starboardPortIndicator?: boolean;\n clipTop?: number;\n clipBottom?: number;\n clipLeft?: number;\n clipRight?: number;\n endLabelsMaxMin?: boolean;\n scaleWindIcon?: number;\n rotation?: number | undefined;\n zoomToFitArc?: boolean;\n arcFrame?: ZoomToFitArcFrame | undefined;\n tickFadeAngle?: number;\n rotType?: RotType | undefined;\n rotPosition?: RotPosition;\n rotStartAngle?: number;\n rotEndAngle?: number;\n rotPriority?: Priority | undefined;\n rotPortStarboard?: boolean;\n rotAtZeroDeadband?: number;\n rateOfTurnDegreesPerMinute?: number | undefined;\n rotDotAnimationFactor?: number\n }\n\n \n \n export type {InstrumentState, Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\nexport type {WatchCircleType, WatchArea, WatchBarArea, WatchNeedle, WatchVessel} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';\nexport type {Tickmark, TickmarkStyle} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';\nexport type {AngleAdviceRaw} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/advice.js';\nexport type {ZoomToFitArcFrame} from '@oicl/openbridge-webcomponents/dist/svghelpers/arc-frame.js';\nexport type {RotType, RotPosition} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/rate-of-turn/rot-renderer.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcWatch',\n props: {\n state: {},\n priority: {},\n watchCircleType: {},\n hasBackgroundCircle: { type: Boolean },\n northArrow: { type: Boolean },\n northArrowInside: { type: Boolean },\n northMarker: { type: Boolean },\n angleSetpoint: {},\n newAngleSetpoint: {},\n atAngleSetpoint: { type: Boolean },\n angleSetpointAtZeroDeadband: {},\n setpointOverride: { type: Boolean },\n touching: { type: Boolean },\n animateSetpoint: { type: Boolean },\n padding: {},\n faceDiameter: {},\n areas: {},\n barAreas: {},\n roundBandCuts: { type: Boolean },\n needles: {},\n tickmarks: {},\n tickmarksInside: { type: Boolean },\n tickmarkStyle: {},\n advices: {},\n crosshairEnabled: { type: Boolean },\n crosshairCenterCutout: { type: Boolean },\n showLabels: { type: Boolean },\n insideLabelsFlush: { type: Boolean },\n vessels: {},\n windKnots: {},\n windFromDirectionDeg: {},\n windSymbolRadius: {},\n windColor: {},\n current: {},\n currentFromDirectionDeg: {},\n currentSymbolRadius: {},\n currentColor: {},\n currentIconCentered: { type: Boolean },\n scaleCurrentIcon: {},\n starboardPortIndicator: { type: Boolean },\n clipTop: {},\n clipBottom: {},\n clipLeft: {},\n clipRight: {},\n endLabelsMaxMin: { type: Boolean },\n scaleWindIcon: {},\n rotation: {},\n zoomToFitArc: { type: Boolean },\n arcFrame: {},\n tickFadeAngle: {},\n rotType: {},\n rotPosition: {},\n rotStartAngle: {},\n rotEndAngle: {},\n rotPriority: {},\n rotPortStarboard: { type: Boolean },\n rotAtZeroDeadband: {},\n rateOfTurnDegreesPerMinute: {},\n rotDotAnimationFactor: {}\n },\n setup(__props: any) {\n\n const vueProps = __props;\n\n const defaults = reactive({} as Props);\n const vDefaults = {\n created(el: any) {\n for (const p in vueProps) {\n defaults[p as keyof Props] = el[p];\n }\n }\n };\n\n let hasRendered = false;\n\n \n\n const slots = useSlots() as Slots;\n\n const render = () => {\n const eventProps = {\n \n };\n const props = eventProps as (typeof eventProps & Props);\n\n \n for (const p in vueProps) {\n const v = vueProps[p as keyof Props];\n if ((v !== undefined) || hasRendered) {\n (props[p as keyof Props] as unknown) = v ?? defaults[p as keyof Props];\n }\n }\n\n hasRendered = true;\n \n\n return h(\n 'obc-watch',\n props,\n assignSlotNodes(slots)\n );\n };\n \nreturn (_ctx: any,_cache: any) => {\n return _withDirectives((_openBlock(), _createBlock(render, null, null, 512)), [\n [vDefaults]\n ])\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","vueProps","defaults","reactive","vDefaults","el","p","hasRendered","slots","useSlots","render","props","v","h","assignSlotNodes","_ctx","_cache","_withDirectives","_openBlock","_createBlock"],"mappings":"sRAoFA,MAAAA,EAA4BC,EAAiB,CAC3C,OAAQ,WACR,MAAO,CACL,MAAO,CAAA,EACP,SAAU,CAAA,EACV,gBAAiB,CAAA,EACjB,oBAAqB,CAAE,KAAM,OAAA,EAC7B,WAAY,CAAE,KAAM,OAAA,EACpB,iBAAkB,CAAE,KAAM,OAAA,EAC1B,YAAa,CAAE,KAAM,OAAA,EACrB,cAAe,CAAA,EACf,iBAAkB,CAAA,EAClB,gBAAiB,CAAE,KAAM,OAAA,EACzB,4BAA6B,CAAA,EAC7B,iBAAkB,CAAE,KAAM,OAAA,EAC1B,SAAU,CAAE,KAAM,OAAA,EAClB,gBAAiB,CAAE,KAAM,OAAA,EACzB,QAAS,CAAA,EACT,aAAc,CAAA,EACd,MAAO,CAAA,EACP,SAAU,CAAA,EACV,cAAe,CAAE,KAAM,OAAA,EACvB,QAAS,CAAA,EACT,UAAW,CAAA,EACX,gBAAiB,CAAE,KAAM,OAAA,EACzB,cAAe,CAAA,EACf,QAAS,CAAA,EACT,iBAAkB,CAAE,KAAM,OAAA,EAC1B,sBAAuB,CAAE,KAAM,OAAA,EAC/B,WAAY,CAAE,KAAM,OAAA,EACpB,kBAAmB,CAAE,KAAM,OAAA,EAC3B,QAAS,CAAA,EACT,UAAW,CAAA,EACX,qBAAsB,CAAA,EACtB,iBAAkB,CAAA,EAClB,UAAW,CAAA,EACX,QAAS,CAAA,EACT,wBAAyB,CAAA,EACzB,oBAAqB,CAAA,EACrB,aAAc,CAAA,EACd,oBAAqB,CAAE,KAAM,OAAA,EAC7B,iBAAkB,CAAA,EAClB,uBAAwB,CAAE,KAAM,OAAA,EAChC,QAAS,CAAA,EACT,WAAY,CAAA,EACZ,SAAU,CAAA,EACV,UAAW,CAAA,EACX,gBAAiB,CAAE,KAAM,OAAA,EACzB,cAAe,CAAA,EACf,SAAU,CAAA,EACV,aAAc,CAAE,KAAM,OAAA,EACtB,SAAU,CAAA,EACV,cAAe,CAAA,EACf,QAAS,CAAA,EACT,YAAa,CAAA,EACb,cAAe,CAAA,EACf,YAAa,CAAA,EACb,YAAa,CAAA,EACb,iBAAkB,CAAE,KAAM,OAAA,EAC1B,kBAAmB,CAAA,EACnB,2BAA4B,CAAA,EAC5B,sBAAuB,CAAA,CAAC,EAE1B,MAAMC,EAAc,CAEhB,MAAMC,EAAWD,EAEfE,EAAWC,EAAS,EAAW,EAC/BC,EAAY,CAChB,QAAQC,EAAS,CACf,UAAWC,KAAKL,EACdC,EAASI,CAAgB,EAAID,EAAGC,CAAC,CAErC,CAAA,EAGF,IAAIC,EAAc,GAId,MAAMC,EAAQC,EAAA,EAERC,EAAS,IAAM,CAInB,MAAMC,EAHa,CAAA,EAMrB,UAAWL,KAAKL,EAAU,CACxB,MAAMW,EAAIX,EAASK,CAAgB,GAC9BM,IAAM,QAAcL,KACtBI,EAAML,CAAgB,EAAgBM,GAAKV,EAASI,CAAgB,EAEzE,CAEA,OAAAC,EAAc,GAGLM,EACL,YACAF,EACAG,EAAgBN,CAAK,CAAA,CAEzB,EAEN,MAAO,CAACO,EAAUC,IACTC,GAAiBC,IAAcC,EAAaT,EAAQ,KAAM,KAAM,GAAG,GAAI,CAC5E,CAACN,CAAS,CAAA,CACX,CAEH,CAEA,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';
|
|
2
|
-
import { WindHistogramData, WindVariant } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';
|
|
2
|
+
import { WindHistogramData, WindVariant, WindVisualization } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';
|
|
3
3
|
import { VesselImage } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
|
|
4
|
+
import { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
4
5
|
export interface Props {
|
|
5
6
|
currentWindFromDirection?: number;
|
|
6
7
|
currentWindSpeedKnots?: number;
|
|
@@ -10,8 +11,11 @@ export interface Props {
|
|
|
10
11
|
variant?: WindVariant;
|
|
11
12
|
smallVariantMaxPx?: number;
|
|
12
13
|
mediumVariantMaxPx?: number;
|
|
14
|
+
visualization?: WindVisualization;
|
|
15
|
+
priority?: Priority;
|
|
13
16
|
}
|
|
14
|
-
export type { WindHistogramData, WindVariant } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';
|
|
17
|
+
export type { WindHistogramData, WindVariant, WindVisualization } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';
|
|
15
18
|
export type { VesselImage } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
|
|
19
|
+
export type { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
16
20
|
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
21
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{defineComponent as
|
|
1
|
+
import{defineComponent as d,reactive as u,useSlots as m,withDirectives as v,openBlock as f,createBlock as x,h as _}from"vue";import{assignSlotNodes as g}from"@lit-labs/vue-utils/wrapper-utils.js";import"@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js";const w=d({__name:"ObcWind",props:{currentWindFromDirection:{},currentWindSpeedKnots:{},windHistogramData:{},vesselImage:{},vesselHeadingDeg:{},variant:{},smallVariantMaxPx:{},mediumVariantMaxPx:{},visualization:{},priority:{}},setup(a){const t=a,r=u({}),c={created(n){for(const e in t)r[e]=n[e]}};let s=!1;const l=m(),p=()=>{const e={};for(const o in t){const i=t[o];(i!==void 0||s)&&(e[o]=i??r[o])}return s=!0,_("obc-wind",e,g(l))};return(n,e)=>v((f(),x(p,null,null,512)),[[c]])}});export{w as default};
|
|
2
2
|
//# sourceMappingURL=ObcWind.vue2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObcWind.vue2.js","sources":["../../src/navigation-instruments/wind/ObcWind.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { withDirectives as _withDirectives, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport { h, useSlots, reactive } from \"vue\";\n import { assignSlotNodes, Slots } from \"@lit-labs/vue-utils/wrapper-utils.js\";\n import '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';\n import {WindHistogramData, WindVariant} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';\nimport {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';\n\n export interface Props {\n currentWindFromDirection?: number;\n currentWindSpeedKnots?: number;\n windHistogramData?: WindHistogramData[];\n vesselImage?: VesselImage;\n vesselHeadingDeg?: number;\n variant?: WindVariant;\n smallVariantMaxPx?: number;\n mediumVariantMaxPx?: number\n }\n\n \n \n export type {WindHistogramData, WindVariant} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';\nexport type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcWind',\n props: {\n currentWindFromDirection: {},\n currentWindSpeedKnots: {},\n windHistogramData: {},\n vesselImage: {},\n vesselHeadingDeg: {},\n variant: {},\n smallVariantMaxPx: {},\n mediumVariantMaxPx: {}\n },\n setup(__props: any) {\n\n const vueProps = __props;\n\n const defaults = reactive({} as Props);\n const vDefaults = {\n created(el: any) {\n for (const p in vueProps) {\n defaults[p as keyof Props] = el[p];\n }\n }\n };\n\n let hasRendered = false;\n\n \n\n const slots = useSlots() as Slots;\n\n const render = () => {\n const eventProps = {\n \n };\n const props = eventProps as (typeof eventProps & Props);\n\n \n for (const p in vueProps) {\n const v = vueProps[p as keyof Props];\n if ((v !== undefined) || hasRendered) {\n (props[p as keyof Props] as unknown) = v ?? defaults[p as keyof Props];\n }\n }\n\n hasRendered = true;\n \n\n return h(\n 'obc-wind',\n props,\n assignSlotNodes(slots)\n );\n };\n \nreturn (_ctx: any,_cache: any) => {\n return _withDirectives((_openBlock(), _createBlock(render, null, null, 512)), [\n [vDefaults]\n ])\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","vueProps","defaults","reactive","vDefaults","el","p","hasRendered","slots","useSlots","render","props","v","h","assignSlotNodes","_ctx","_cache","_withDirectives","_openBlock","_createBlock"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ObcWind.vue2.js","sources":["../../src/navigation-instruments/wind/ObcWind.vue?vue&type=script&setup=true&lang.ts"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { withDirectives as _withDirectives, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport { h, useSlots, reactive } from \"vue\";\n import { assignSlotNodes, Slots } from \"@lit-labs/vue-utils/wrapper-utils.js\";\n import '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';\n import {WindHistogramData, WindVariant, WindVisualization} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';\nimport {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';\nimport {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\n\n export interface Props {\n currentWindFromDirection?: number;\n currentWindSpeedKnots?: number;\n windHistogramData?: WindHistogramData[];\n vesselImage?: VesselImage;\n vesselHeadingDeg?: number;\n variant?: WindVariant;\n smallVariantMaxPx?: number;\n mediumVariantMaxPx?: number;\n visualization?: WindVisualization;\n priority?: Priority\n }\n\n \n \n export type {WindHistogramData, WindVariant, WindVisualization} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';\nexport type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';\nexport type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';\n \nexport default /*@__PURE__*/_defineComponent({\n __name: 'ObcWind',\n props: {\n currentWindFromDirection: {},\n currentWindSpeedKnots: {},\n windHistogramData: {},\n vesselImage: {},\n vesselHeadingDeg: {},\n variant: {},\n smallVariantMaxPx: {},\n mediumVariantMaxPx: {},\n visualization: {},\n priority: {}\n },\n setup(__props: any) {\n\n const vueProps = __props;\n\n const defaults = reactive({} as Props);\n const vDefaults = {\n created(el: any) {\n for (const p in vueProps) {\n defaults[p as keyof Props] = el[p];\n }\n }\n };\n\n let hasRendered = false;\n\n \n\n const slots = useSlots() as Slots;\n\n const render = () => {\n const eventProps = {\n \n };\n const props = eventProps as (typeof eventProps & Props);\n\n \n for (const p in vueProps) {\n const v = vueProps[p as keyof Props];\n if ((v !== undefined) || hasRendered) {\n (props[p as keyof Props] as unknown) = v ?? defaults[p as keyof Props];\n }\n }\n\n hasRendered = true;\n \n\n return h(\n 'obc-wind',\n props,\n assignSlotNodes(slots)\n );\n };\n \nreturn (_ctx: any,_cache: any) => {\n return _withDirectives((_openBlock(), _createBlock(render, null, null, 512)), [\n [vDefaults]\n ])\n}\n}\n\n})"],"names":["_sfc_main","_defineComponent","__props","vueProps","defaults","reactive","vDefaults","el","p","hasRendered","slots","useSlots","render","props","v","h","assignSlotNodes","_ctx","_cache","_withDirectives","_openBlock","_createBlock"],"mappings":"oRA6BA,MAAAA,EAA4BC,EAAiB,CAC3C,OAAQ,UACR,MAAO,CACL,yBAA0B,CAAA,EAC1B,sBAAuB,CAAA,EACvB,kBAAmB,CAAA,EACnB,YAAa,CAAA,EACb,iBAAkB,CAAA,EAClB,QAAS,CAAA,EACT,kBAAmB,CAAA,EACnB,mBAAoB,CAAA,EACpB,cAAe,CAAA,EACf,SAAU,CAAA,CAAC,EAEb,MAAMC,EAAc,CAEhB,MAAMC,EAAWD,EAEfE,EAAWC,EAAS,EAAW,EAC/BC,EAAY,CAChB,QAAQC,EAAS,CACf,UAAWC,KAAKL,EACdC,EAASI,CAAgB,EAAID,EAAGC,CAAC,CAErC,CAAA,EAGF,IAAIC,EAAc,GAId,MAAMC,EAAQC,EAAA,EAERC,EAAS,IAAM,CAInB,MAAMC,EAHa,CAAA,EAMrB,UAAWL,KAAKL,EAAU,CACxB,MAAMW,EAAIX,EAASK,CAAgB,GAC9BM,IAAM,QAAcL,KACtBI,EAAML,CAAgB,EAAgBM,GAAKV,EAASI,CAAgB,EAEzE,CAEA,OAAAC,EAAc,GAGLM,EACL,WACAF,EACAG,EAAgBN,CAAK,CAAA,CAEzB,EAEN,MAAO,CAACO,EAAUC,IACTC,GAAiBC,IAAcC,EAAaT,EAAQ,KAAM,KAAM,GAAG,GAAI,CAC5E,CAACN,CAAS,CAAA,CACX,CAEH,CAEA,CAAC"}
|
package/package.json
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"build:declarations": "vue-tsc --declaration --emitDeclarationOnly",
|
|
9
9
|
"preview": "vite preview"
|
|
10
10
|
},
|
|
11
|
-
"version": "2.0.0-next.
|
|
11
|
+
"version": "2.0.0-next.110",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@oicl/openbridge-webcomponents": "^2.0.0-next.
|
|
13
|
+
"@oicl/openbridge-webcomponents": "^2.0.0-next.109",
|
|
14
14
|
"vue": "^3.2.41",
|
|
15
15
|
"@lit-labs/vue-utils": "^0.1.0"
|
|
16
16
|
},
|
|
@@ -2308,6 +2308,7 @@
|
|
|
2308
2308
|
"navigation-instruments/compass-flat/ObcCompassFlat.*",
|
|
2309
2309
|
"navigation-instruments/compass-indicator/ObcCompassIndicator.*",
|
|
2310
2310
|
"navigation-instruments/compass-sector/ObcCompassSector.*",
|
|
2311
|
+
"navigation-instruments/current/ObcCurrent.*",
|
|
2311
2312
|
"navigation-instruments/depth-actual/ObcDepthActual.*",
|
|
2312
2313
|
"navigation-instruments/depth-indicator/ObcDepthIndicator.*",
|
|
2313
2314
|
"navigation-instruments/draft-trim/ObcDraftTrim.*",
|