@oicl/openbridge-webcomponents-full-bundle 2.2.0-next.20 → 2.2.0-next.22

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 (77) hide show
  1. package/bundle/openbridge-webcomponents.bundle.js +156 -61
  2. package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
  3. package/custom-elements.json +49 -21
  4. package/dist/automation/automation-tank/automation-tank.d.ts.map +1 -1
  5. package/dist/automation/automation-tank/automation-tank.js +2 -1
  6. package/dist/automation/automation-tank/automation-tank.js.map +1 -1
  7. package/dist/building-blocks/bar-horizontal/bar-horizontal.d.ts +4 -2
  8. package/dist/building-blocks/bar-horizontal/bar-horizontal.d.ts.map +1 -1
  9. package/dist/building-blocks/bar-horizontal/bar-horizontal.js +12 -6
  10. package/dist/building-blocks/bar-horizontal/bar-horizontal.js.map +1 -1
  11. package/dist/building-blocks/bar-vertical/bar-vertical.d.ts +4 -2
  12. package/dist/building-blocks/bar-vertical/bar-vertical.d.ts.map +1 -1
  13. package/dist/building-blocks/bar-vertical/bar-vertical.js +12 -6
  14. package/dist/building-blocks/bar-vertical/bar-vertical.js.map +1 -1
  15. package/dist/building-blocks/external-scale/external-scale.d.ts +21 -3
  16. package/dist/building-blocks/external-scale/external-scale.d.ts.map +1 -1
  17. package/dist/building-blocks/external-scale/external-scale.js +40 -17
  18. package/dist/building-blocks/external-scale/external-scale.js.map +1 -1
  19. package/dist/navigation-instruments/gauge-horizontal/gauge-horizontal.d.ts +4 -2
  20. package/dist/navigation-instruments/gauge-horizontal/gauge-horizontal.d.ts.map +1 -1
  21. package/dist/navigation-instruments/gauge-horizontal/gauge-horizontal.js +14 -6
  22. package/dist/navigation-instruments/gauge-horizontal/gauge-horizontal.js.map +1 -1
  23. package/dist/navigation-instruments/gauge-vertical/gauge-vertical.d.ts +4 -2
  24. package/dist/navigation-instruments/gauge-vertical/gauge-vertical.d.ts.map +1 -1
  25. package/dist/navigation-instruments/gauge-vertical/gauge-vertical.js +14 -6
  26. package/dist/navigation-instruments/gauge-vertical/gauge-vertical.js.map +1 -1
  27. package/dist/navigation-instruments/heave/heave.d.ts.map +1 -1
  28. package/dist/navigation-instruments/heave/heave.js +14 -5
  29. package/dist/navigation-instruments/heave/heave.js.map +1 -1
  30. package/dist/navigation-instruments/watch/vessel.d.ts +2 -0
  31. package/dist/navigation-instruments/watch/vessel.d.ts.map +1 -1
  32. package/dist/navigation-instruments/watch/vessel.js +6 -0
  33. package/dist/navigation-instruments/watch/vessel.js.map +1 -1
  34. package/dist/navigation-instruments/watch/vessels/fish-cage-side.d.ts +3 -0
  35. package/dist/navigation-instruments/watch/vessels/fish-cage-side.d.ts.map +1 -0
  36. package/dist/navigation-instruments/watch/vessels/fish-cage-side.js +13 -0
  37. package/dist/navigation-instruments/watch/vessels/fish-cage-side.js.map +1 -0
  38. package/dist/navigation-instruments/watch/vessels/fish-cage-top.d.ts +3 -0
  39. package/dist/navigation-instruments/watch/vessels/fish-cage-top.d.ts.map +1 -0
  40. package/dist/navigation-instruments/watch/vessels/fish-cage-top.js +20 -0
  41. package/dist/navigation-instruments/watch/vessels/fish-cage-top.js.map +1 -0
  42. package/dist/svghelpers/advice-linear.d.ts +7 -0
  43. package/dist/svghelpers/advice-linear.d.ts.map +1 -1
  44. package/dist/svghelpers/advice-linear.js +14 -10
  45. package/dist/svghelpers/advice-linear.js.map +1 -1
  46. package/dist/svghelpers/advice-patterns.d.ts +2 -2
  47. package/dist/svghelpers/advice-patterns.d.ts.map +1 -1
  48. package/dist/svghelpers/advice-patterns.js +6 -4
  49. package/dist/svghelpers/advice-patterns.js.map +1 -1
  50. package/package.json +1 -1
  51. package/src/automation/automation-tank/automation-tank.ts +4 -0
  52. package/src/building-blocks/bar-horizontal/bar-horizontal-fixed-aspect.spec.ts +50 -0
  53. package/src/building-blocks/bar-horizontal/bar-horizontal.stories.ts +6 -0
  54. package/src/building-blocks/bar-horizontal/bar-horizontal.ts +22 -9
  55. package/src/building-blocks/bar-vertical/bar-vertical-dimensions.spec.ts +36 -0
  56. package/src/building-blocks/bar-vertical/bar-vertical-fixed-aspect.spec.ts +49 -0
  57. package/src/building-blocks/bar-vertical/bar-vertical.stories.ts +6 -0
  58. package/src/building-blocks/bar-vertical/bar-vertical.ts +22 -9
  59. package/src/building-blocks/external-scale/external-scale.spec.ts +151 -0
  60. package/src/building-blocks/external-scale/external-scale.stories.ts +6 -0
  61. package/src/building-blocks/external-scale/external-scale.ts +86 -40
  62. package/src/navigation-instruments/gauge-horizontal/gauge-horizontal.spec.ts +55 -0
  63. package/src/navigation-instruments/gauge-horizontal/gauge-horizontal.stories.ts +2 -0
  64. package/src/navigation-instruments/gauge-horizontal/gauge-horizontal.ts +24 -9
  65. package/src/navigation-instruments/gauge-trend/gauge-trend.stories.ts +25 -0
  66. package/src/navigation-instruments/gauge-vertical/gauge-vertical.spec.ts +55 -0
  67. package/src/navigation-instruments/gauge-vertical/gauge-vertical.stories.ts +2 -0
  68. package/src/navigation-instruments/gauge-vertical/gauge-vertical.ts +24 -9
  69. package/src/navigation-instruments/heave/heave.stories.ts +12 -1
  70. package/src/navigation-instruments/heave/heave.ts +23 -7
  71. package/src/navigation-instruments/pitch/pitch.stories.ts +13 -0
  72. package/src/navigation-instruments/roll/roll.stories.ts +13 -1
  73. package/src/navigation-instruments/watch/vessel.ts +6 -0
  74. package/src/navigation-instruments/watch/vessels/fish-cage-side.ts +10 -0
  75. package/src/navigation-instruments/watch/vessels/fish-cage-top.ts +17 -0
  76. package/src/svghelpers/advice-linear.ts +25 -11
  77. package/src/svghelpers/advice-patterns.ts +13 -5
@@ -3586,6 +3586,31 @@ var cargo_wind_top_default = w`<svg width="160" height="160" viewBox="0 0 160 16
3586
3586
  <path d="M76.3472 93.6667C78.2643 94.1584 79.8323 95.5249 80.5811 97.3476L80.7239 97.7297L83.565 106.168L77.6776 99.4885C76.2735 97.8955 75.7779 95.7037 76.3472 93.6667Z" fill="var(--instrument-frame-primary-color)" vector-effect="non-scaling-stroke" stroke="var(--instrument-tick-mark-secondary-color)"/>
3587
3587
  </svg>
3588
3588
  `;
3589
+ // src/navigation-instruments/watch/vessels/fish-cage-side.ts
3590
+ var fish_cage_side_default = w`<svg width="160" height="160" viewBox="0 0 160 160" fill="none" xmlns="http://www.w3.org/2000/svg">
3591
+ <path d="M68.307 151.604V154.209C68.307 154.761 68.7547 155.209 69.307 155.209H80H90.693C91.2453 155.209 91.693 154.761 91.693 154.209V151.604H80H68.307Z" fill="var(--instrument-frame-primary-color)"/>
3592
+ <path d="M36.5898 81.7408C36.5898 82.2931 37.0376 82.7408 37.5898 82.7408H40.3413H80H119.659H122.41C122.962 82.7408 123.41 82.2931 123.41 81.7408V78.3816C123.41 77.8293 122.962 77.3816 122.41 77.3816H119.659H80H40.3413H37.5898C37.0376 77.3816 36.5898 77.8293 36.5898 78.3816V81.7408Z" fill="var(--instrument-frame-primary-color)"/>
3593
+ <path d="M41.3413 72.1172C40.789 72.1172 40.3413 72.5649 40.3413 73.1172V77.3816H80H119.659V73.1172C119.659 72.5649 119.211 72.1172 118.659 72.1172H80H41.3413Z" fill="var(--instrument-frame-primary-color)"/>
3594
+ <path d="M40.3413 82.7408H80H119.659C119.662 86.1285 119.56 89.3676 119.365 92.4633C119.128 96.2295 118.835 99.2143 118.344 102.565C117.859 105.875 117.178 109.555 116.487 112.477C115.654 116.004 114.686 119.255 113.622 122.247C112.323 125.896 110.879 129.159 109.359 132.065C107.176 136.235 104.834 139.669 102.531 142.451C98.4117 147.427 94.4193 150.317 91.693 151.604H80H68.307C65.5807 150.317 61.5883 147.427 57.469 142.451C55.1664 139.669 52.8241 136.235 50.6411 132.065C49.1205 129.159 47.6772 125.896 46.3784 122.247C45.3136 119.255 44.346 116.004 43.5125 112.477C42.8736 109.774 42.3838 106.421 41.9298 103.313L41.8204 102.565L41.7386 102.008C41.2788 98.8793 40.8586 96.0197 40.6346 92.4633C40.4396 89.3676 40.3378 86.1285 40.3413 82.7408Z" fill="var(--instrument-frame-primary-color)"/>
3595
+ <path d="M68.307 151.604V154.209C68.307 154.761 68.7547 155.209 69.307 155.209H80H90.693C91.2453 155.209 91.693 154.761 91.693 154.209V151.604M68.307 151.604H80H91.693M41.7386 102.008C41.7657 102.193 41.793 102.378 41.8204 102.565L41.9298 103.313C42.3838 106.421 42.8736 109.774 43.5125 112.477C44.346 116.004 45.3136 119.255 46.3784 122.247C47.6772 125.896 49.1205 129.159 50.6411 132.065C52.8241 136.235 55.1664 139.669 57.469 142.451C61.5883 147.427 65.5807 150.317 68.307 151.604M91.693 151.604C94.4193 150.317 98.4117 147.427 102.531 142.451C104.834 139.669 107.176 136.235 109.359 132.065C110.879 129.159 112.323 125.896 113.622 122.247C114.686 119.255 115.654 116.004 116.487 112.477C117.178 109.555 117.859 105.875 118.344 102.565C118.835 99.2143 119.128 96.2295 119.365 92.4633C119.56 89.3676 119.662 86.1285 119.659 82.7408M40.3413 82.7408H37.5898C37.0376 82.7408 36.5898 82.2931 36.5898 81.7408V78.3816C36.5898 77.8293 37.0376 77.3816 37.5898 77.3816H40.3413M40.3413 82.7408H80H119.659M40.3413 82.7408C40.3378 86.1285 40.4396 89.3676 40.6346 92.4633C40.8586 96.0197 41.2788 98.8793 41.7386 102.008M119.659 82.7408H122.41C122.962 82.7408 123.41 82.2931 123.41 81.7408V78.3816C123.41 77.8293 122.962 77.3816 122.41 77.3816H119.659M119.659 77.3816H80H40.3413M119.659 77.3816V73.1172C119.659 72.5649 119.211 72.1172 118.659 72.1172H80H41.3413C40.789 72.1172 40.3413 72.5649 40.3413 73.1172V77.3816M41.8204 102.565L41.7386 102.008" vector-effect="non-scaling-stroke" stroke="var(--instrument-tick-mark-secondary-color)"/>
3596
+ </svg>
3597
+ `;
3598
+ // src/navigation-instruments/watch/vessels/fish-cage-top.ts
3599
+ var fish_cage_top_default = w`<svg width="160" height="160" viewBox="0 0 160 160" fill="none" xmlns="http://www.w3.org/2000/svg">
3600
+ <path d="M101.086 36.0945L80.1035 30.2248L79.9993 30.1953L79.895 30.2248L58.9132 36.0944C59.2751 36.5959 59.4897 37.2198 59.4897 37.8961C59.4897 39.551 58.2047 40.8926 56.6196 40.8926C55.4473 40.8926 54.4392 40.1588 53.9936 39.1072L38.6721 55.1036L38.6471 55.2018L33.049 77.0142C33.1341 77.0062 33.2203 77.0022 33.3074 77.0022C34.8925 77.0022 36.1775 78.3438 36.1775 79.9987C36.1775 81.6536 34.8925 82.9952 33.3074 82.9952C33.2202 82.9952 33.134 82.9912 33.0488 82.9832L38.6471 104.796L38.6721 104.894L54.165 121.07C54.6684 120.205 55.5794 119.627 56.6196 119.627C58.2047 119.627 59.4897 120.969 59.4897 122.624C59.4897 123.111 59.3782 123.571 59.1803 123.978L79.895 129.773L79.9993 129.803L80.1035 129.773L100.819 123.978C100.621 123.571 100.51 123.111 100.51 122.624C100.51 120.969 101.795 119.627 103.38 119.627C104.42 119.627 105.331 120.205 105.834 121.07L121.327 104.894L121.352 104.796L126.951 82.9833C126.866 82.9912 126.78 82.9952 126.693 82.9952C125.108 82.9952 123.823 81.6536 123.823 79.9987C123.823 78.3438 125.108 77.0022 126.693 77.0022C126.78 77.0022 126.866 77.0062 126.95 77.0141L121.352 55.2018L121.327 55.1036L106.006 39.1074C105.56 40.159 104.552 40.8926 103.38 40.8926C101.795 40.8926 100.51 39.551 100.51 37.8961C100.51 37.2199 100.724 36.596 101.086 36.0945ZM39.1736 79.999C39.1736 56.4579 57.4522 37.3741 80 37.3741C102.548 37.3742 120.826 56.458 120.826 79.999C120.826 101.956 104.925 120.035 84.4899 122.369C83.4611 122.487 82.4208 122.564 81.3704 122.6C81.3556 122.601 81.3408 122.601 81.326 122.602C80.8857 122.617 80.4437 122.624 80 122.624C57.4522 122.624 39.1737 103.54 39.1736 79.999Z" fill-rule="evenodd" clip-rule="evenodd" fill="var(--instrument-frame-primary-color)"/>
3601
+ <path d="M33.0488 82.9832C33.134 82.9912 33.2202 82.9952 33.3074 82.9952C34.8925 82.9952 36.1775 81.6536 36.1775 79.9987C36.1775 78.3438 34.8925 77.0022 33.3074 77.0022C33.2203 77.0022 33.1341 77.0062 33.049 77.0142C31.5849 77.1506 30.4373 78.4347 30.4373 79.9987C30.4373 81.5626 31.5848 82.8467 33.0488 82.9832Z" fill="var(--instrument-frame-primary-color)"/>
3602
+ <path d="M58.9132 36.0944C58.3894 35.3688 57.557 34.8996 56.6196 34.8996C55.0345 34.8996 53.7495 36.2412 53.7495 37.8961C53.7495 38.3271 53.8367 38.7369 53.9936 39.1072C54.4392 40.1588 55.4473 40.8926 56.6196 40.8926C58.2047 40.8926 59.4897 39.551 59.4897 37.8961C59.4897 37.2198 59.2751 36.5959 58.9132 36.0944Z" fill-rule="evenodd" clip-rule="evenodd" fill="var(--instrument-frame-primary-color)"/>
3603
+ <path d="M103.38 34.8996C102.443 34.8996 101.61 35.3688 101.086 36.0945C100.724 36.596 100.51 37.2199 100.51 37.8961C100.51 39.551 101.795 40.8926 103.38 40.8926C104.552 40.8926 105.56 40.159 106.006 39.1074C106.163 38.737 106.25 38.3272 106.25 37.8961C106.25 36.2412 104.965 34.8996 103.38 34.8996Z" fill-rule="evenodd" clip-rule="evenodd" fill="var(--instrument-frame-primary-color)"/>
3604
+ <path d="M126.95 77.0141C126.866 77.0062 126.78 77.0022 126.693 77.0022C125.108 77.0022 123.823 78.3438 123.823 79.9987C123.823 81.6536 125.108 82.9952 126.693 82.9952C126.78 82.9952 126.866 82.9912 126.951 82.9833C128.415 82.8474 129.563 81.563 129.563 79.9987C129.563 78.4343 128.415 77.1499 126.95 77.0141Z" fill-rule="evenodd" clip-rule="evenodd" fill="var(--instrument-frame-primary-color)"/>
3605
+ <path d="M105.834 121.07C105.331 120.205 104.42 119.627 103.38 119.627C101.795 119.627 100.51 120.969 100.51 122.624C100.51 123.111 100.621 123.571 100.819 123.978C101.293 124.953 102.262 125.62 103.38 125.62C104.965 125.62 106.25 124.279 106.25 122.624C106.25 122.055 106.098 121.523 105.834 121.07Z" fill-rule="evenodd" clip-rule="evenodd" fill="var(--instrument-frame-primary-color)"/>
3606
+ <path d="M89.176 121.544C87.6451 121.911 86.0812 122.188 84.4899 122.369C84.4096 122.378 84.3293 122.387 84.2489 122.396L70.7184 38.4805C72.3255 38.0909 73.9054 37.8065 75.579 37.6211L89.176 121.544Z" fill="var(--instrument-frame-primary-color)"/>
3607
+ <path d="M56.6196 119.627C55.5794 119.627 54.6684 120.205 54.165 121.07C53.9014 121.523 53.7495 122.055 53.7495 122.624C53.7495 124.279 55.0345 125.62 56.6196 125.62C57.7377 125.62 58.7065 124.953 59.1803 123.978C59.3782 123.571 59.4897 123.111 59.4897 122.624C59.4897 120.969 58.2047 119.627 56.6196 119.627Z" fill="var(--instrument-frame-primary-color)"/>
3608
+ <path d="M70.7184 38.4805C72.328 38.0898 73.9026 37.8065 75.579 37.6211L89.176 121.544C87.6451 121.911 86.0812 122.188 84.4899 122.369C84.4096 122.378 84.3293 122.387 84.2489 122.396L70.7184 38.4805Z" fill="var(--instrument-frame-primary-color)"/>
3609
+ <path d="M70.7184 38.4805C52.6422 42.868 39.1736 59.7913 39.1736 79.999C39.1737 103.54 57.4522 122.624 80 122.624C80.4437 122.624 80.8857 122.617 81.326 122.602L81.3704 122.6C82.4208 122.564 83.4611 122.487 84.4899 122.369C84.4096 122.378 84.3293 122.387 84.2489 122.396L70.7184 38.4805Z" fill="var(--instrument-frame-secondary-color)"/>
3610
+ <path d="M80 37.3741C78.5063 37.3741 77.0312 37.4579 75.579 37.6211L89.176 121.544C107.305 117.197 120.826 100.246 120.826 79.999C120.826 56.458 102.548 37.3742 80 37.3741Z" fill="var(--instrument-frame-secondary-color)"/>
3611
+ <path d="M101.086 36.0945L80.1035 30.2248L79.9993 30.1953L79.895 30.2248L58.9132 36.0944M106.006 39.1074C106.163 38.737 106.25 38.3272 106.25 37.8961C106.25 36.2412 104.965 34.8996 103.38 34.8996C102.443 34.8996 101.61 35.3688 101.086 36.0945C100.724 36.596 100.51 37.2199 100.51 37.8961C100.51 39.551 101.795 40.8926 103.38 40.8926C104.552 40.8926 105.56 40.159 106.006 39.1074ZM53.9936 39.1072C53.8367 38.7369 53.7495 38.3271 53.7495 37.8961C53.7495 36.2412 55.0345 34.8996 56.6196 34.8996C57.557 34.8996 58.3894 35.3688 58.9132 36.0944C59.2751 36.5959 59.4897 37.2198 59.4897 37.8961C59.4897 39.551 58.2047 40.8926 56.6196 40.8926C55.4473 40.8926 54.4392 40.1588 53.9936 39.1072ZM53.9936 39.1072L38.6721 55.1036L38.6471 55.2018L33.049 77.0142M33.0488 82.9832C31.5848 82.8467 30.4373 81.5626 30.4373 79.9987C30.4373 78.4347 31.5849 77.1506 33.049 77.0142C33.1341 77.0062 33.2203 77.0022 33.3074 77.0022C34.8925 77.0022 36.1775 78.3438 36.1775 79.9987C36.1775 81.6536 34.8925 82.9952 33.3074 82.9952C33.2202 82.9952 33.134 82.9912 33.0488 82.9832ZM33.0488 82.9832L38.6471 104.796L38.6721 104.894L54.165 121.07M59.1803 123.978C58.7065 124.953 57.7377 125.62 56.6196 125.62C55.0345 125.62 53.7495 124.279 53.7495 122.624C53.7495 122.055 53.9014 121.523 54.165 121.07C54.6684 120.205 55.5794 119.627 56.6196 119.627C58.2047 119.627 59.4897 120.969 59.4897 122.624C59.4897 123.111 59.3782 123.571 59.1803 123.978ZM59.1803 123.978L79.895 129.773L79.9993 129.803L80.1035 129.773L100.819 123.978M105.834 121.07C106.098 121.523 106.25 122.055 106.25 122.624C106.25 124.279 104.965 125.62 103.38 125.62C102.262 125.62 101.293 124.953 100.819 123.978C100.621 123.571 100.51 123.111 100.51 122.624C100.51 120.969 101.795 119.627 103.38 119.627C104.42 119.627 105.331 120.205 105.834 121.07ZM105.834 121.07L121.327 104.894L121.352 104.796L126.951 82.9833M126.951 82.9833C126.866 82.9912 126.78 82.9952 126.693 82.9952C125.108 82.9952 123.823 81.6536 123.823 79.9987C123.823 78.3438 125.108 77.0022 126.693 77.0022C126.78 77.0022 126.866 77.0062 126.95 77.0141M126.951 82.9833C128.415 82.8474 129.563 81.563 129.563 79.9987C129.563 78.4343 128.415 77.1499 126.95 77.0141M126.95 77.0141L121.352 55.2018L121.327 55.1036L106.006 39.1074M81.3704 122.6C81.3556 122.601 81.3408 122.601 81.326 122.602C80.8857 122.617 80.4437 122.624 80 122.624C57.4522 122.624 39.1737 103.54 39.1736 79.999C39.1736 56.4579 57.4522 37.3741 80 37.3741M39.1736 79.999C39.1736 57.9919 55.0761 39.8881 75.579 37.6211M75.579 37.6211C73.9026 37.8065 72.328 38.0898 70.7184 38.4805C52.6422 42.868 39.1736 59.7913 39.1736 79.999M75.579 37.6211C77.0312 37.4579 78.5063 37.3741 80 37.3741C102.548 37.3742 120.826 56.458 120.826 79.999C120.826 100.246 107.305 117.197 89.176 121.544C87.6451 121.911 86.0812 122.188 84.4899 122.369M120.826 79.999C120.826 101.956 104.925 120.035 84.4899 122.369M89.176 121.544L75.579 37.6211M70.7184 38.4805L84.2489 122.396C84.3293 122.387 84.4096 122.378 84.4899 122.369M70.7184 38.4805C72.3255 38.0909 73.9054 37.8065 75.579 37.6211M81.326 122.602L81.3704 122.6M81.3704 122.6C82.4208 122.564 83.4611 122.487 84.4899 122.369" vector-effect="non-scaling-stroke" stroke="var(--instrument-tick-mark-secondary-color)"/>
3612
+ </svg>
3613
+ `;
3589
3614
  // src/navigation-instruments/watch/vessels/fishing-vessel-side.ts
3590
3615
  var createVessel$10 = (fillColor) => w`<svg width="160" height="160" viewBox="0 0 160 160" fill="none" xmlns="http://www.w3.org/2000/svg">
3591
3616
  <path d="M132.366 87.1181H29.3855V83.0385L20.4844 80V71.5412H24V68.7912H20.4844V66.0412H24V51.1429H31.5L36 66.0412H48L51.5 71.5412H54.4157L55.575 61.5604L54.0915 57.1099H52.608L54.4157 54.1429H57.4294L54.4624 44.5H56.6877L61.88 54.1429C65.3312 54.1429 68.772 54.5206 72.1409 55.2692L80.4239 57.1099H78.5695L76.3443 61.5604L88.5 71.0827C102.374 69.3897 109.424 63.1236 109.424 63.1236H118L115.5 51.1429H118L122 63.1236H140.743C132 69.5 130.325 77.1044 130.325 77.1044L135.162 76.321C137.428 75.9539 139.484 77.7039 139.484 80C139.484 83.9312 136.297 87.1181 132.366 87.1181Z" fill="${fillColor}"/>
@@ -4057,6 +4082,8 @@ var VesselImage = /* @__PURE__ */ function(VesselImage) {
4057
4082
  VesselImage["cargoWindSide"] = "cargo-wind-side";
4058
4083
  VesselImage["cargoWindSideFaded"] = "cargo-wind-side-faded";
4059
4084
  VesselImage["cargoWindTop"] = "cargo-wind-top";
4085
+ VesselImage["fishCageSide"] = "fish-cage-side";
4086
+ VesselImage["fishCageTop"] = "fish-cage-top";
4060
4087
  VesselImage["fishingVesselSide"] = "fishing-vessel-side";
4061
4088
  VesselImage["fishingVesselSideFaded"] = "fishing-vessel-side-faded";
4062
4089
  VesselImage["fishingVesselTop"] = "fishing-vessel-top";
@@ -4111,6 +4138,8 @@ var vesselImages = {
4111
4138
  ["cargo-wind-side"]: cargo_wind_side_default,
4112
4139
  ["cargo-wind-side-faded"]: cargoWindSideFaded,
4113
4140
  ["cargo-wind-top"]: cargo_wind_top_default,
4141
+ ["fish-cage-side"]: fish_cage_side_default,
4142
+ ["fish-cage-top"]: fish_cage_top_default,
4114
4143
  ["fishing-vessel-side"]: fishing_vessel_side_default,
4115
4144
  ["fishing-vessel-side-faded"]: fishingVesselSideFaded,
4116
4145
  ["fishing-vessel-top"]: fishing_vessel_top_default,
@@ -35288,15 +35317,16 @@ var STRIPE_TILE = ADVICE_STRIPE.pitch * Math.SQRT2;
35288
35317
  * tile whose side is the pitch along the axis, with the two half lines at the
35289
35318
  * opposite corners completing the neighbours.
35290
35319
  */
35291
- function stripePattern(id, color, width = ADVICE_STRIPE.width, mirrored = false) {
35320
+ function stripePattern(id, color, width = ADVICE_STRIPE.width, mirrored = false, unitsPerPx = 1) {
35292
35321
  const t = STRIPE_TILE;
35293
- return w`<pattern id=${id} patternUnits="userSpaceOnUse" width=${t} height=${t} patternTransform=${mirrored ? "scale(-1 1)" : A}>
35322
+ const transforms = [mirrored ? "scale(-1 1)" : "", unitsPerPx !== 1 ? `scale(${unitsPerPx})` : ""].filter(Boolean);
35323
+ return w`<pattern id=${id} patternUnits="userSpaceOnUse" width=${t} height=${t} patternTransform=${transforms.length ? transforms.join(" ") : A}>
35294
35324
  <path d="M 0 0 L ${t} ${t} M ${t / 2} ${-t / 2} L ${3 * t / 2} ${t / 2} M ${-t / 2} ${t / 2} L ${t / 2} ${3 * t / 2}" stroke=${color} stroke-width=${width} stroke-linecap="square"/>
35295
35325
  </pattern>`;
35296
35326
  }
35297
35327
  /** The exclusion hatch: the stripe tile as a hairline. */
35298
- function hairlinePattern(id, color, mirrored = false) {
35299
- return stripePattern(id, color, ADVICE_HAIRLINE_WIDTH, mirrored);
35328
+ function hairlinePattern(id, color, mirrored = false, unitsPerPx = 1) {
35329
+ return stripePattern(id, color, ADVICE_HAIRLINE_WIDTH, mirrored, unitsPerPx);
35300
35330
  }
35301
35331
  /** The alarm lattice: square dots on a grid, every other row shifted by half a pitch. */
35302
35332
  function dotPattern(id, color) {
@@ -35512,9 +35542,11 @@ function bandPath$1(o, advice) {
35512
35542
  const hi = Math.max(o.mainStart, o.mainEnd);
35513
35543
  const capLo = ascending ? caps.start : caps.end;
35514
35544
  const capHi = ascending ? caps.end : caps.start;
35515
- const edgeLo = capLo === AdviceCap.pill ? lo + 4 : lo;
35516
- const edgeHi = capHi === AdviceCap.pill ? hi - 4 : hi;
35517
- const radius = (cap) => cap === AdviceCap.pill ? t / 2 : cap === AdviceCap.square ? 2 : 0;
35545
+ const u = o.unitsPerPx ?? 1;
35546
+ const inset = 4 * u;
35547
+ const edgeLo = capLo === AdviceCap.pill ? lo + inset : lo;
35548
+ const edgeHi = capHi === AdviceCap.pill ? hi - inset : hi;
35549
+ const radius = (cap) => cap === AdviceCap.pill ? t / 2 : cap === AdviceCap.square ? 2 * u : 0;
35518
35550
  const rLo = radius(capLo);
35519
35551
  const rHi = radius(capHi);
35520
35552
  if (edgeHi - edgeLo < rLo + rHi) return null;
@@ -35546,13 +35578,14 @@ function renderLinearAdviceBand(o) {
35546
35578
  const style = adviceStyle(advice.category, advice.state);
35547
35579
  const d = bandPath$1(o, advice);
35548
35580
  if (d === null) return A;
35549
- if (style.pattern === "none") return w`<path d=${d} fill=${style.fill} stroke=${style.stroke} stroke-width="1" vector-effect="non-scaling-stroke"/>`;
35581
+ if (style.pattern === "none") return w`<path class="advice-band" d=${d} fill=${style.fill} stroke=${style.stroke} stroke-width="1" vector-effect="non-scaling-stroke"/>`;
35550
35582
  const t = o.thickness ?? 8;
35551
35583
  const lo = Math.min(o.mainStart, o.mainEnd);
35552
35584
  const hi = Math.max(o.mainStart, o.mainEnd);
35553
35585
  const patternId = `${o.maskId}-pattern`;
35554
35586
  const mirrored = o.mirrorPattern ?? false;
35555
- const pattern = style.pattern === "hairline" ? hairlinePattern(patternId, style.patternColor, mirrored) : stripePattern(patternId, style.patternColor, ADVICE_STRIPE.width, mirrored);
35587
+ const unitsPerPx = o.unitsPerPx ?? 1;
35588
+ const pattern = style.pattern === "hairline" ? hairlinePattern(patternId, style.patternColor, mirrored, unitsPerPx) : stripePattern(patternId, style.patternColor, ADVICE_STRIPE.width, mirrored, unitsPerPx);
35556
35589
  const cover = o.vertical ? w`<rect x=${o.perpStart} y=${lo} width=${t} height=${hi - lo} fill=${style.fill}/><rect x=${o.perpStart} y=${lo} width=${t} height=${hi - lo} fill="url(#${patternId})"/>` : w`<rect x=${lo} y=${o.perpStart} width=${hi - lo} height=${t} fill=${style.fill}/><rect x=${lo} y=${o.perpStart} width=${hi - lo} height=${t} fill="url(#${patternId})"/>`;
35557
35590
  return w`
35558
35591
  <defs>
@@ -35562,7 +35595,7 @@ function renderLinearAdviceBand(o) {
35562
35595
  </mask>
35563
35596
  </defs>
35564
35597
  <g mask="url(#${o.maskId})">${cover}</g>
35565
- <path d=${d} fill="none" stroke=${style.stroke} stroke-width="1" vector-effect="non-scaling-stroke"/>`;
35598
+ <path class="advice-band" d=${d} fill="none" stroke=${style.stroke} stroke-width="1" vector-effect="non-scaling-stroke"/>`;
35566
35599
  }
35567
35600
  /**
35568
35601
  * A point advice: a dot for a go-to category, a thick tick across the band
@@ -35574,12 +35607,13 @@ function renderLinearAdvicePoint(o) {
35574
35607
  const style = adviceStyle(advice.category, advice.state);
35575
35608
  const cx = o.vertical ? o.perpCenter : o.main;
35576
35609
  const cy = o.vertical ? o.main : o.perpCenter;
35577
- if (isGoToCategory(advice.category)) return w`<circle cx=${cx} cy=${cy} r=${9 / 2} fill=${style.fill} stroke=${style.stroke} stroke-width="1" vector-effect="non-scaling-stroke"/>`;
35610
+ const u = o.unitsPerPx ?? 1;
35611
+ if (isGoToCategory(advice.category)) return w`<circle cx=${cx} cy=${cy} r=${9 / 2 * u} fill=${style.fill} stroke=${style.stroke} stroke-width="1" vector-effect="non-scaling-stroke"/>`;
35578
35612
  const grey = advice.category === AdviceCategory.caution ? advice.state === AdviceState.triggered ? "var(--instrument-tick-mark-primary-color)" : style.stroke : void 0;
35579
35613
  const { length, thickness, radius } = ADVICE_POINT_TICK;
35580
- const w$9 = o.vertical ? length : thickness;
35581
- const h = o.vertical ? thickness : length;
35582
- return w`<rect x=${cx - w$9 / 2} y=${cy - h / 2} width=${w$9} height=${h} rx=${radius} fill=${grey ?? style.fill} stroke=${grey ?? style.stroke} stroke-width="1" vector-effect="non-scaling-stroke"/>`;
35614
+ const w$9 = (o.vertical ? length : thickness) * u;
35615
+ const h = (o.vertical ? thickness : length) * u;
35616
+ return w`<rect x=${cx - w$9 / 2} y=${cy - h / 2} width=${w$9} height=${h} rx=${radius * u} fill=${grey ?? style.fill} stroke=${grey ?? style.stroke} stroke-width="1" vector-effect="non-scaling-stroke"/>`;
35583
35617
  }
35584
35618
  /**
35585
35619
  * The area layer across a bar: the category's tint or pattern between the
@@ -36105,9 +36139,15 @@ function toExternalScaleLayoutConfig(config) {
36105
36139
  advicePosition: config.advicePosition,
36106
36140
  hasAdvice: !!config.advices && config.advices.length > 0,
36107
36141
  hasAdviceIcon: !!config.advices?.some((a) => a.showIcon),
36108
- hasSetpoint: config.setpoint !== void 0 || config.newSetpoint !== void 0 || config.departingNewSetpoint !== void 0
36142
+ hasSetpoint: config.setpoint !== void 0 || config.newSetpoint !== void 0 || config.departingNewSetpoint !== void 0,
36143
+ fixedAspectRatioScale: config.fixedAspectRatioScale
36109
36144
  };
36110
36145
  }
36146
+ /** ViewBox units per CSS pixel of the advice geometry: 1 outside fixedAspectRatio. */
36147
+ function advicePx(config) {
36148
+ const scale = config.fixedAspectRatioScale;
36149
+ return scale !== void 0 && scale > 0 ? 1 / scale : 1;
36150
+ }
36111
36151
  /**
36112
36152
  * Compute the outer SVG viewBox for a scale given layout.
36113
36153
  * Wrappers can use this to avoid duplicating orientation-specific math.
@@ -36165,9 +36205,19 @@ function computeFixedAspectRatioScale(config) {
36165
36205
  const { containerMainAxisSize, scaleReferenceSize, containerCrossAxisSize, viewBoxThickness } = config;
36166
36206
  if (containerMainAxisSize <= 0 || scaleReferenceSize <= 0) return 1;
36167
36207
  const mainScale = containerMainAxisSize / scaleReferenceSize;
36168
- if (containerCrossAxisSize === void 0 || containerCrossAxisSize <= 0 || viewBoxThickness === void 0 || viewBoxThickness <= 0) return mainScale;
36169
- if (containerCrossAxisSize + 1 >= viewBoxThickness * mainScale) return mainScale;
36170
- return config.orientation === "vertical" ? computeMeetScale(viewBoxThickness, scaleReferenceSize, containerCrossAxisSize, containerMainAxisSize) : computeMeetScale(scaleReferenceSize, viewBoxThickness, containerMainAxisSize, containerCrossAxisSize);
36208
+ const thicknessAt = typeof viewBoxThickness === "function" ? viewBoxThickness : () => viewBoxThickness ?? 0;
36209
+ if (containerCrossAxisSize === void 0 || containerCrossAxisSize <= 0 || thicknessAt(mainScale) <= 0) return mainScale;
36210
+ if (containerCrossAxisSize + 1 >= thicknessAt(mainScale) * mainScale) return mainScale;
36211
+ const meet = (thickness) => config.orientation === "vertical" ? computeMeetScale(thickness, scaleReferenceSize, containerCrossAxisSize, containerMainAxisSize) : computeMeetScale(scaleReferenceSize, thickness, containerMainAxisSize, containerCrossAxisSize);
36212
+ const painted = (scale) => meet(thicknessAt(scale));
36213
+ let lo = 0;
36214
+ let hi = mainScale;
36215
+ for (let i = 0; i < 48; i++) {
36216
+ const mid = (lo + hi) / 2;
36217
+ if (painted(mid) >= mid) lo = mid;
36218
+ else hi = mid;
36219
+ }
36220
+ return lo > 0 ? lo : painted(mainScale);
36171
36221
  }
36172
36222
  /**
36173
36223
  * The element's content box in CSS px: the box a `100%` × `100%` SVG child
@@ -36225,8 +36275,9 @@ function computeAdviceBandThickness(config) {
36225
36275
  if (!config.hasAdvice) return 0;
36226
36276
  const position = config.hasBar ? config.advicePosition ?? "inner" : "inner";
36227
36277
  if (position === "center") return 0;
36228
- if (position === "outer") return 24;
36229
- return 16;
36278
+ const px = advicePx(config);
36279
+ if (position === "outer") return 24 * px;
36280
+ return 16 * px;
36230
36281
  }
36231
36282
  /**
36232
36283
  * The perpendicular band outside the bar: the tick and label bands, or the
@@ -37246,21 +37297,23 @@ function singleSidedTickmark$2(config, value, style, tickBase) {
37246
37297
  }
37247
37298
  /**
37248
37299
  * The perpendicular coordinate of the advice band's near edge for the
37249
- * configured position: `inner` sits on the tick band 4 off the bar edge,
37250
- * `outer` on the far side of the tick band, `center` in the middle of the
37251
- * bar. Without a bar the band is always `inner`.
37300
+ * configured position: `inner` sits on the tick band 4 px off the bar edge,
37301
+ * `outer` 14 px off it, `center` in the middle of the bar; the same on
37302
+ * either side of the bar. Without a bar the band is always `inner`.
37252
37303
  */
37253
37304
  function advicePerpStart(config) {
37254
37305
  const tickBase = tickBasePerp(config);
37255
37306
  const position = config.hasBar ? config.advicePosition : "inner";
37256
- const offset = 4;
37307
+ const px = advicePx(config);
37308
+ const offset = 4 * px;
37257
37309
  const outward = isOutwardPositive(config);
37258
37310
  if (position === "center") {
37259
- const centerOffset = config.barThickness / 2 - 4;
37260
- return (outward ? centerOffset : -config.barThickness + centerOffset) - 4 + offset;
37311
+ const centerOffset = config.barThickness / 2 - 4 * px;
37312
+ return outward ? centerOffset : -config.barThickness + centerOffset;
37261
37313
  }
37262
- if (position === "inner") return (outward ? tickBase : tickBase - 16) + offset;
37263
- return (outward ? config.barThickness + 10 : -config.barThickness - computeExternalScaleEffectiveTickThickness(config) + 14) + offset;
37314
+ if (position === "inner") return (outward ? tickBase : tickBase - 16 * px) + offset;
37315
+ const outerGap = 14 * px;
37316
+ return outward ? config.barThickness + outerGap : -config.barThickness - outerGap - 8 * px;
37264
37317
  }
37265
37318
  function renderAdvice$3(config, advice, maskId) {
37266
37319
  const tickBase = tickBasePerp(config);
@@ -37290,18 +37343,22 @@ function renderAdvice$3(config, advice, maskId) {
37290
37343
  if (advice.min > config.minValue) dash(advice.min);
37291
37344
  if (!advice.point && advice.max < config.maxValue) dash(advice.max);
37292
37345
  }
37346
+ const px = advicePx(config);
37293
37347
  const marker = advice.point ? renderLinearAdvicePoint({
37294
37348
  vertical,
37295
37349
  main: mainStart,
37296
- perpCenter: perpStart + 4,
37297
- advice
37350
+ perpCenter: perpStart + 4 * px,
37351
+ advice,
37352
+ unitsPerPx: px
37298
37353
  }) : renderLinearAdviceBand({
37299
37354
  vertical,
37300
37355
  mainStart,
37301
37356
  mainEnd,
37302
37357
  perpStart,
37358
+ thickness: 8 * px,
37303
37359
  advice,
37304
- maskId
37360
+ maskId,
37361
+ unitsPerPx: px
37305
37362
  });
37306
37363
  const icon = advice.showIcon ? renderLinearAdviceIcon({
37307
37364
  vertical,
@@ -39821,7 +39878,10 @@ var ObcBarVertical = class ObcBarVertical extends AdviceMixin(SetpointMixin(i$4,
39821
39878
  this.fixedAspectRatio = false;
39822
39879
  this.scaleReferenceSize = 384;
39823
39880
  this._scale = 1;
39824
- this._viewBoxThickness = 0;
39881
+ this._thicknessAt = (scale) => this._layoutConfig ? computeExternalScaleLayout({
39882
+ ...this._layoutConfig,
39883
+ fixedAspectRatioScale: scale
39884
+ }).thickness : 0;
39825
39885
  this._resizeController = new h(this, { callback: (entries) => {
39826
39886
  if (!this.fixedAspectRatio) return;
39827
39887
  const entry = entries[0];
@@ -39831,7 +39891,7 @@ var ObcBarVertical = class ObcBarVertical extends AdviceMixin(SetpointMixin(i$4,
39831
39891
  containerMainAxisSize: entry.contentRect.height,
39832
39892
  containerCrossAxisSize: entry.contentRect.width,
39833
39893
  scaleReferenceSize: this.scaleReferenceSize,
39834
- viewBoxThickness: this._viewBoxThickness
39894
+ viewBoxThickness: this._thicknessAt
39835
39895
  });
39836
39896
  this.reportDimensions();
39837
39897
  } });
@@ -39916,11 +39976,13 @@ var ObcBarVertical = class ObcBarVertical extends AdviceMixin(SetpointMixin(i$4,
39916
39976
  adviceEmphasis: this.adviceEmphasis,
39917
39977
  adviceMaskPrefix: this._adviceMaskPrefix,
39918
39978
  fixedAspectRatio: this.fixedAspectRatio,
39979
+ fixedAspectRatioScale: this.fixedAspectRatio ? this._scale : 1,
39919
39980
  instrumentMode: this.instrumentMode,
39920
39981
  highlightCurrentValue: this.highlightCurrentValue
39921
39982
  };
39922
- const layout = computeExternalScaleLayout(toExternalScaleLayoutConfig(config));
39923
- this._viewBoxThickness = layout.thickness;
39983
+ const layoutConfig = toExternalScaleLayoutConfig(config);
39984
+ const layout = computeExternalScaleLayout(layoutConfig);
39985
+ this._layoutConfig = layoutConfig;
39924
39986
  const parts = renderExternalScale(config);
39925
39987
  const viewBox = computeExternalScaleViewBox({
39926
39988
  orientation: config.orientation,
@@ -39989,7 +40051,8 @@ var ObcBarVertical = class ObcBarVertical extends AdviceMixin(SetpointMixin(i$4,
39989
40051
  advicePosition: this.advicePosition,
39990
40052
  hasAdvice: !!this.advices && this.advices.length > 0,
39991
40053
  hasAdviceIcon: !!this.advices?.some((a) => a.showIcon),
39992
- hasSetpoint: this.setpoint !== void 0 || this.newSetpoint !== void 0 || this.departingNewSetpoint !== void 0
40054
+ hasSetpoint: this.setpoint !== void 0 || this.newSetpoint !== void 0 || this.departingNewSetpoint !== void 0,
40055
+ fixedAspectRatioScale: this.fixedAspectRatio ? this._scale : 1
39993
40056
  });
39994
40057
  const dimensions = this.fixedAspectRatio ? {
39995
40058
  ...baseDimensions,
@@ -40047,7 +40110,7 @@ var ObcBarVertical = class ObcBarVertical extends AdviceMixin(SetpointMixin(i$4,
40047
40110
  containerMainAxisSize: height,
40048
40111
  containerCrossAxisSize: width,
40049
40112
  scaleReferenceSize: this.scaleReferenceSize,
40050
- viewBoxThickness: this._viewBoxThickness
40113
+ viewBoxThickness: this._thicknessAt
40051
40114
  });
40052
40115
  return true;
40053
40116
  }
@@ -40779,7 +40842,8 @@ var ObcAutomationTank = class ObcAutomationTank extends AdviceMixin(SetpointMixi
40779
40842
  hasAdvice: this.hasAdvice,
40780
40843
  hasAdviceIcon: this.hasAdvice && !!this.advices?.some((a) => a.showIcon),
40781
40844
  advicePosition: AdvicePosition.inner,
40782
- hasSetpoint: hasSetpointMarker
40845
+ hasSetpoint: hasSetpointMarker,
40846
+ fixedAspectRatioScale: Math.max(1, this._cellHeight) / SCALE_REFERENCE_SIZE
40783
40847
  });
40784
40848
  const safeCellHeight = Math.max(1, this._cellHeight);
40785
40849
  const viewBoxCross = this._cellWidth * SCALE_REFERENCE_SIZE / safeCellHeight;
@@ -73984,7 +74048,10 @@ var ObcBarHorizontal = class ObcBarHorizontal extends AdviceMixin(SetpointMixin(
73984
74048
  this.fixedAspectRatio = false;
73985
74049
  this.scaleReferenceSize = 384;
73986
74050
  this._scale = 1;
73987
- this._viewBoxThickness = 0;
74051
+ this._thicknessAt = (scale) => this._layoutConfig ? computeExternalScaleLayout({
74052
+ ...this._layoutConfig,
74053
+ fixedAspectRatioScale: scale
74054
+ }).thickness : 0;
73988
74055
  this._resizeController = new h(this, { callback: (entries) => {
73989
74056
  if (!this.fixedAspectRatio) return;
73990
74057
  const entry = entries[0];
@@ -73994,7 +74061,7 @@ var ObcBarHorizontal = class ObcBarHorizontal extends AdviceMixin(SetpointMixin(
73994
74061
  containerMainAxisSize: entry.contentRect.width,
73995
74062
  containerCrossAxisSize: entry.contentRect.height,
73996
74063
  scaleReferenceSize: this.scaleReferenceSize,
73997
- viewBoxThickness: this._viewBoxThickness
74064
+ viewBoxThickness: this._thicknessAt
73998
74065
  });
73999
74066
  this.reportDimensions();
74000
74067
  } });
@@ -74079,11 +74146,13 @@ var ObcBarHorizontal = class ObcBarHorizontal extends AdviceMixin(SetpointMixin(
74079
74146
  adviceEmphasis: this.adviceEmphasis,
74080
74147
  adviceMaskPrefix: this._adviceMaskPrefix,
74081
74148
  fixedAspectRatio: this.fixedAspectRatio,
74149
+ fixedAspectRatioScale: this.fixedAspectRatio ? this._scale : 1,
74082
74150
  instrumentMode: this.instrumentMode,
74083
74151
  highlightCurrentValue: this.highlightCurrentValue
74084
74152
  };
74085
- const layout = computeExternalScaleLayout(toExternalScaleLayoutConfig(config));
74086
- this._viewBoxThickness = layout.thickness;
74153
+ const layoutConfig = toExternalScaleLayoutConfig(config);
74154
+ const layout = computeExternalScaleLayout(layoutConfig);
74155
+ this._layoutConfig = layoutConfig;
74087
74156
  const parts = renderExternalScale(config);
74088
74157
  const viewBox = computeExternalScaleViewBox({
74089
74158
  orientation: config.orientation,
@@ -74152,7 +74221,8 @@ var ObcBarHorizontal = class ObcBarHorizontal extends AdviceMixin(SetpointMixin(
74152
74221
  advicePosition: this.advicePosition,
74153
74222
  hasAdvice: !!this.advices && this.advices.length > 0,
74154
74223
  hasAdviceIcon: !!this.advices?.some((a) => a.showIcon),
74155
- hasSetpoint: this.setpoint !== void 0 || this.newSetpoint !== void 0 || this.departingNewSetpoint !== void 0
74224
+ hasSetpoint: this.setpoint !== void 0 || this.newSetpoint !== void 0 || this.departingNewSetpoint !== void 0,
74225
+ fixedAspectRatioScale: this.fixedAspectRatio ? this._scale : 1
74156
74226
  });
74157
74227
  const dimensions = this.fixedAspectRatio ? {
74158
74228
  ...baseDimensions,
@@ -74210,7 +74280,7 @@ var ObcBarHorizontal = class ObcBarHorizontal extends AdviceMixin(SetpointMixin(
74210
74280
  containerMainAxisSize: width,
74211
74281
  containerCrossAxisSize: height,
74212
74282
  scaleReferenceSize: this.scaleReferenceSize,
74213
- viewBoxThickness: this._viewBoxThickness
74283
+ viewBoxThickness: this._thicknessAt
74214
74284
  });
74215
74285
  return true;
74216
74286
  }
@@ -203997,7 +204067,10 @@ var ObcGaugeHorizontal = class ObcGaugeHorizontal extends AdviceMixin(SetpointMi
203997
204067
  this.fixedAspectRatio = false;
203998
204068
  this.scaleReferenceSize = 384;
203999
204069
  this._scale = 1;
204000
- this._viewBoxThickness = 0;
204070
+ this._thicknessAt = (scale) => this._layoutConfig ? computeExternalScaleLayout({
204071
+ ...this._layoutConfig,
204072
+ fixedAspectRatioScale: scale
204073
+ }).thickness : 0;
204001
204074
  this._resizeController = new h(this, { callback: (entries) => {
204002
204075
  if (!this.fixedAspectRatio) return;
204003
204076
  const entry = entries[0];
@@ -204007,7 +204080,7 @@ var ObcGaugeHorizontal = class ObcGaugeHorizontal extends AdviceMixin(SetpointMi
204007
204080
  containerMainAxisSize: entry.contentRect.width,
204008
204081
  containerCrossAxisSize: entry.contentRect.height,
204009
204082
  scaleReferenceSize: this.scaleReferenceSize,
204010
- viewBoxThickness: this._viewBoxThickness
204083
+ viewBoxThickness: this._thicknessAt
204011
204084
  });
204012
204085
  this._scale = scale > 0 ? scale : 1;
204013
204086
  this.reportDimensions();
@@ -204092,11 +204165,13 @@ var ObcGaugeHorizontal = class ObcGaugeHorizontal extends AdviceMixin(SetpointMi
204092
204165
  adviceEmphasis: this.adviceEmphasis,
204093
204166
  adviceMaskPrefix: this._adviceMaskPrefix,
204094
204167
  fixedAspectRatio: this.fixedAspectRatio,
204168
+ fixedAspectRatioScale: this.fixedAspectRatio ? this._scale : 1,
204095
204169
  instrumentMode: true,
204096
204170
  highlightCurrentValue: this.highlightCurrentValue
204097
204171
  };
204098
- const layout = computeExternalScaleLayout(toExternalScaleLayoutConfig(config));
204099
- this._viewBoxThickness = layout.thickness;
204172
+ const layoutConfig = toExternalScaleLayoutConfig(config);
204173
+ const layout = computeExternalScaleLayout(layoutConfig);
204174
+ this._layoutConfig = layoutConfig;
204100
204175
  const parts = renderExternalScale(config);
204101
204176
  const viewBox = computeExternalScaleViewBox({
204102
204177
  orientation: config.orientation,
@@ -204163,8 +204238,11 @@ var ObcGaugeHorizontal = class ObcGaugeHorizontal extends AdviceMixin(SetpointMi
204163
204238
  labelThickness: this.labelThickness,
204164
204239
  length: this.fixedAspectRatio ? this.scaleReferenceSize : this.width,
204165
204240
  scaleType: this.scaleType,
204241
+ advicePosition: this.advicePosition,
204242
+ hasAdvice: !!this.advices && this.advices.length > 0,
204166
204243
  hasAdviceIcon: !!this.advices?.some((a) => a.showIcon),
204167
- hasSetpoint: this.setpoint !== void 0 || this.newSetpoint !== void 0 || this.departingNewSetpoint !== void 0
204244
+ hasSetpoint: this.setpoint !== void 0 || this.newSetpoint !== void 0 || this.departingNewSetpoint !== void 0,
204245
+ fixedAspectRatioScale: this.fixedAspectRatio ? this._scale : 1
204168
204246
  });
204169
204247
  const dimensions = this.fixedAspectRatio ? {
204170
204248
  ...baseDimensions,
@@ -204221,7 +204299,7 @@ var ObcGaugeHorizontal = class ObcGaugeHorizontal extends AdviceMixin(SetpointMi
204221
204299
  containerMainAxisSize: width,
204222
204300
  containerCrossAxisSize: height,
204223
204301
  scaleReferenceSize: this.scaleReferenceSize,
204224
- viewBoxThickness: this._viewBoxThickness
204302
+ viewBoxThickness: this._thicknessAt
204225
204303
  });
204226
204304
  return true;
204227
204305
  }
@@ -205683,7 +205761,10 @@ var ObcGaugeVertical = class ObcGaugeVertical extends AdviceMixin(SetpointMixin(
205683
205761
  this.fixedAspectRatio = false;
205684
205762
  this.scaleReferenceSize = 384;
205685
205763
  this._scale = 1;
205686
- this._viewBoxThickness = 0;
205764
+ this._thicknessAt = (scale) => this._layoutConfig ? computeExternalScaleLayout({
205765
+ ...this._layoutConfig,
205766
+ fixedAspectRatioScale: scale
205767
+ }).thickness : 0;
205687
205768
  this._resizeController = new h(this, { callback: (entries) => {
205688
205769
  if (!this.fixedAspectRatio) return;
205689
205770
  const entry = entries[0];
@@ -205693,7 +205774,7 @@ var ObcGaugeVertical = class ObcGaugeVertical extends AdviceMixin(SetpointMixin(
205693
205774
  containerMainAxisSize: entry.contentRect.height,
205694
205775
  containerCrossAxisSize: entry.contentRect.width,
205695
205776
  scaleReferenceSize: this.scaleReferenceSize,
205696
- viewBoxThickness: this._viewBoxThickness
205777
+ viewBoxThickness: this._thicknessAt
205697
205778
  });
205698
205779
  this._scale = scale > 0 ? scale : 1;
205699
205780
  this.reportDimensions();
@@ -205778,11 +205859,13 @@ var ObcGaugeVertical = class ObcGaugeVertical extends AdviceMixin(SetpointMixin(
205778
205859
  adviceEmphasis: this.adviceEmphasis,
205779
205860
  adviceMaskPrefix: this._adviceMaskPrefix,
205780
205861
  fixedAspectRatio: this.fixedAspectRatio,
205862
+ fixedAspectRatioScale: this.fixedAspectRatio ? this._scale : 1,
205781
205863
  instrumentMode: true,
205782
205864
  highlightCurrentValue: this.highlightCurrentValue
205783
205865
  };
205784
- const layout = computeExternalScaleLayout(toExternalScaleLayoutConfig(config));
205785
- this._viewBoxThickness = layout.thickness;
205866
+ const layoutConfig = toExternalScaleLayoutConfig(config);
205867
+ const layout = computeExternalScaleLayout(layoutConfig);
205868
+ this._layoutConfig = layoutConfig;
205786
205869
  const parts = renderExternalScale(config);
205787
205870
  const viewBox = computeExternalScaleViewBox({
205788
205871
  orientation: config.orientation,
@@ -205849,8 +205932,11 @@ var ObcGaugeVertical = class ObcGaugeVertical extends AdviceMixin(SetpointMixin(
205849
205932
  labelThickness: this.labelThickness,
205850
205933
  length: this.fixedAspectRatio ? this.scaleReferenceSize : this.height,
205851
205934
  scaleType: this.scaleType,
205935
+ advicePosition: this.advicePosition,
205936
+ hasAdvice: !!this.advices && this.advices.length > 0,
205852
205937
  hasAdviceIcon: !!this.advices?.some((a) => a.showIcon),
205853
- hasSetpoint: this.setpoint !== void 0 || this.newSetpoint !== void 0 || this.departingNewSetpoint !== void 0
205938
+ hasSetpoint: this.setpoint !== void 0 || this.newSetpoint !== void 0 || this.departingNewSetpoint !== void 0,
205939
+ fixedAspectRatioScale: this.fixedAspectRatio ? this._scale : 1
205854
205940
  });
205855
205941
  const dimensions = this.fixedAspectRatio ? {
205856
205942
  ...baseDimensions,
@@ -205907,7 +205993,7 @@ var ObcGaugeVertical = class ObcGaugeVertical extends AdviceMixin(SetpointMixin(
205907
205993
  containerMainAxisSize: height,
205908
205994
  containerCrossAxisSize: width,
205909
205995
  scaleReferenceSize: this.scaleReferenceSize,
205910
- viewBoxThickness: this._viewBoxThickness
205996
+ viewBoxThickness: this._thicknessAt
205911
205997
  });
205912
205998
  return true;
205913
205999
  }
@@ -207074,6 +207160,15 @@ ObcHeaveIndicator = __decorate([customElement("obc-heave-indicator")], ObcHeaveI
207074
207160
  var VESSEL_VIEW_BOX = "-200 -200 400 400";
207075
207161
  /** `bar` viewBox: the 72×336 scale column centred in a 128×384 frame. */
207076
207162
  var BAR_VIEW_BOX = "-64 -192 128 384";
207163
+ /**
207164
+ * Floating objects at inclinometer size
207165
+ *
207166
+ * The fore silhouettes are drawn small in their 160 box, so heave zooms them
207167
+ * ×3. The floating objects fill the box, so heave draws them at the 224/160
207168
+ * the inclinometers use, centred on the face (Figma 47546:223140).
207169
+ */
207170
+ var FLOATING_OBJECTS = /* @__PURE__ */ new Set([VesselImage.fishCageSide, VesselImage.fishCageTop]);
207171
+ var FLOATING_OBJECT_ZOOM = 224 / 160;
207077
207172
  var ObcHeave = class ObcHeave extends AdviceMixin(i$4) {
207078
207173
  constructor(..._args) {
207079
207174
  super(..._args);
@@ -207120,6 +207215,9 @@ var ObcHeave = class ObcHeave extends AdviceMixin(i$4) {
207120
207215
  `;
207121
207216
  }
207122
207217
  renderVessel() {
207218
+ const art = vesselArt(this.vesselImage, this.vesselImageSrc);
207219
+ const y = this._toTranslatedValue((-this.heave + this.draftOffset) / this.gainScale);
207220
+ const transform = "vesselImage" in art && FLOATING_OBJECTS.has(art.vesselImage) ? `translate(${-this._gaugeWidth / 2}, ${y}) scale(${FLOATING_OBJECT_ZOOM}) translate(-80, -80)` : `translate(0, ${y}) scale(3) translate(${-this._gaugeWidth / 2 - 80 / 1.5} , -80)`;
207123
207221
  return w`
207124
207222
  <defs>
207125
207223
  <clipPath id="heaveClip">
@@ -207132,11 +207230,8 @@ var ObcHeave = class ObcHeave extends AdviceMixin(i$4) {
207132
207230
  </clipPath>
207133
207231
  </defs>
207134
207232
  <g clip-path="url(#heaveClip)">
207135
- <g
207136
- transform="translate(0, ${this._toTranslatedValue((-this.heave + this.draftOffset) / this.gainScale)}) scale(3)
207137
- translate(${-this._gaugeWidth / 2 - 80 / 1.5} , ${-80})"
207138
- >
207139
- ${this.vesselImage ? renderVesselArt(vesselArt(this.vesselImage, this.vesselImageSrc), this._palette.current) : A}
207233
+ <g transform=${transform}>
207234
+ ${this.vesselImage ? renderVesselArt(art, this._palette.current) : A}
207140
207235
  </g>
207141
207236
  </g>
207142
207237
  `;