@oicl/openbridge-webcomponents-svelte 2.0.0-next.170 → 2.0.0-next.171

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.
@@ -34,6 +34,10 @@ import type {ObcPoiObjectState} from '@oicl/openbridge-webcomponents/dist/ar/poi
34
34
  x?: number;
35
35
  y?: number;
36
36
  buttonY?: number | null;
37
+ /** Cutoff frequency (Hz) of the built-in low-pass filter applied to `x`. Lower values smooth noisy input more aggressively; `0` or a negative value disables filtering so `x` is applied directly. */
38
+ xFilterCutoffHz?: number;
39
+ /** Cutoff frequency (Hz) of the built-in low-pass filter applied to `y`. Lower values smooth noisy input more aggressively; `0` or a negative value disables filtering so `y` is applied directly. */
40
+ yFilterCutoffHz?: number;
37
41
  fixedTarget?: boolean;
38
42
  boxWidth?: number | null;
39
43
  boxHeight?: number | null;
@@ -24,6 +24,10 @@ export interface Props {
24
24
  x?: number;
25
25
  y?: number;
26
26
  buttonY?: number | null;
27
+ /** Cutoff frequency (Hz) of the built-in low-pass filter applied to `x`. Lower values smooth noisy input more aggressively; `0` or a negative value disables filtering so `x` is applied directly. */
28
+ xFilterCutoffHz?: number;
29
+ /** Cutoff frequency (Hz) of the built-in low-pass filter applied to `y`. Lower values smooth noisy input more aggressively; `0` or a negative value disables filtering so `y` is applied directly. */
30
+ yFilterCutoffHz?: number;
27
31
  fixedTarget?: boolean;
28
32
  boxWidth?: number | null;
29
33
  boxHeight?: number | null;
@@ -32,6 +32,10 @@ import type {ObcPoiObjectStyle, ObcPoiObjectState} from '@oicl/openbridge-webcom
32
32
  x?: number;
33
33
  y?: number;
34
34
  buttonY?: number | null;
35
+ /** Cutoff frequency (Hz) of the built-in low-pass filter applied to `x`. Lower values smooth noisy input more aggressively; `0` or a negative value disables filtering so `x` is applied directly. */
36
+ xFilterCutoffHz?: number;
37
+ /** Cutoff frequency (Hz) of the built-in low-pass filter applied to `y`. Lower values smooth noisy input more aggressively; `0` or a negative value disables filtering so `y` is applied directly. */
38
+ yFilterCutoffHz?: number;
35
39
  fixedTarget?: boolean;
36
40
  boxWidth?: number | null;
37
41
  boxHeight?: number | null;
@@ -23,6 +23,10 @@ export interface Props {
23
23
  x?: number;
24
24
  y?: number;
25
25
  buttonY?: number | null;
26
+ /** Cutoff frequency (Hz) of the built-in low-pass filter applied to `x`. Lower values smooth noisy input more aggressively; `0` or a negative value disables filtering so `x` is applied directly. */
27
+ xFilterCutoffHz?: number;
28
+ /** Cutoff frequency (Hz) of the built-in low-pass filter applied to `y`. Lower values smooth noisy input more aggressively; `0` or a negative value disables filtering so `y` is applied directly. */
29
+ yFilterCutoffHz?: number;
26
30
  fixedTarget?: boolean;
27
31
  boxWidth?: number | null;
28
32
  boxHeight?: number | null;
@@ -32,6 +32,10 @@ import type {ObcPoiObjectVesselType, ObcPoiObjectVesselStyle, ObcPoiObjectVessel
32
32
  x?: number;
33
33
  y?: number;
34
34
  buttonY?: number | null;
35
+ /** Cutoff frequency (Hz) of the built-in low-pass filter applied to `x`. Lower values smooth noisy input more aggressively; `0` or a negative value disables filtering so `x` is applied directly. */
36
+ xFilterCutoffHz?: number;
37
+ /** Cutoff frequency (Hz) of the built-in low-pass filter applied to `y`. Lower values smooth noisy input more aggressively; `0` or a negative value disables filtering so `y` is applied directly. */
38
+ yFilterCutoffHz?: number;
35
39
  fixedTarget?: boolean;
36
40
  boxWidth?: number | null;
37
41
  boxHeight?: number | null;
@@ -23,6 +23,10 @@ export interface Props {
23
23
  x?: number;
24
24
  y?: number;
25
25
  buttonY?: number | null;
26
+ /** Cutoff frequency (Hz) of the built-in low-pass filter applied to `x`. Lower values smooth noisy input more aggressively; `0` or a negative value disables filtering so `x` is applied directly. */
27
+ xFilterCutoffHz?: number;
28
+ /** Cutoff frequency (Hz) of the built-in low-pass filter applied to `y`. Lower values smooth noisy input more aggressively; `0` or a negative value disables filtering so `y` is applied directly. */
29
+ yFilterCutoffHz?: number;
26
30
  fixedTarget?: boolean;
27
31
  boxWidth?: number | null;
28
32
  boxHeight?: number | null;
@@ -29,6 +29,8 @@ import type {ObcPoiPointerType, ObcPoiPointerState} from '@oicl/openbridge-webco
29
29
  x?: number;
30
30
  y?: number;
31
31
  buttonY?: number | null;
32
+ xFilterCutoffHz?: number;
33
+ yFilterCutoffHz?: number;
32
34
  fixedTarget?: boolean;
33
35
  boxWidth?: number | null;
34
36
  boxHeight?: number | null;
@@ -22,6 +22,8 @@ export interface Props {
22
22
  x?: number;
23
23
  y?: number;
24
24
  buttonY?: number | null;
25
+ xFilterCutoffHz?: number;
26
+ yFilterCutoffHz?: number;
25
27
  fixedTarget?: boolean;
26
28
  boxWidth?: number | null;
27
29
  boxHeight?: number | null;
@@ -18,6 +18,7 @@
18
18
  value?: PoiButtonVisualState;
19
19
  overlapOpaque?: boolean;
20
20
  type?: ObcPoiButtonType;
21
+ /** Expanded-group presentation state, applied by the owning group composition while the button is shown inside an expanded `obc-poi-group` and during its collapse animations. Consumers should not set it directly. */
21
22
  inExpandedGroup?: boolean;
22
23
  data?: ObcPoiButtonDataItem[];
23
24
  hasRelation?: boolean;
@@ -12,6 +12,7 @@ export interface Props {
12
12
  value?: PoiButtonVisualState;
13
13
  overlapOpaque?: boolean;
14
14
  type?: ObcPoiButtonType;
15
+ /** Expanded-group presentation state, applied by the owning group composition while the button is shown inside an expanded `obc-poi-group` and during its collapse animations. Consumers should not set it directly. */
15
16
  inExpandedGroup?: boolean;
16
17
  data?: ObcPoiButtonDataItem[];
17
18
  hasRelation?: boolean;
@@ -22,6 +22,7 @@ import type {ObcPoiObjectState} from '@oicl/openbridge-webcomponents/dist/ar/poi
22
22
  value?: PoiButtonVisualState;
23
23
  overlapOpaque?: boolean;
24
24
  type?: ObcPoiButtonType;
25
+ /** Expanded-group presentation state, applied by the owning group composition while the button is shown inside an expanded `obc-poi-group` and during its collapse animations. Consumers should not set it directly. */
25
26
  inExpandedGroup?: boolean;
26
27
  data?: ObcPoiButtonDataItem[];
27
28
  hasRelation?: boolean;
@@ -14,6 +14,7 @@ export interface Props {
14
14
  value?: PoiButtonVisualState;
15
15
  overlapOpaque?: boolean;
16
16
  type?: ObcPoiButtonType;
17
+ /** Expanded-group presentation state, applied by the owning group composition while the button is shown inside an expanded `obc-poi-group` and during its collapse animations. Consumers should not set it directly. */
17
18
  inExpandedGroup?: boolean;
18
19
  data?: ObcPoiButtonDataItem[];
19
20
  hasRelation?: boolean;
@@ -20,6 +20,7 @@ import type {ObcPoiObjectStyle, ObcPoiObjectState} from '@oicl/openbridge-webcom
20
20
  value?: PoiButtonVisualState;
21
21
  overlapOpaque?: boolean;
22
22
  type?: ObcPoiButtonType;
23
+ /** Expanded-group presentation state, applied by the owning group composition while the button is shown inside an expanded `obc-poi-group` and during its collapse animations. Consumers should not set it directly. */
23
24
  inExpandedGroup?: boolean;
24
25
  data?: ObcPoiButtonDataItem[];
25
26
  hasRelation?: boolean;
@@ -13,6 +13,7 @@ export interface Props {
13
13
  value?: PoiButtonVisualState;
14
14
  overlapOpaque?: boolean;
15
15
  type?: ObcPoiButtonType;
16
+ /** Expanded-group presentation state, applied by the owning group composition while the button is shown inside an expanded `obc-poi-group` and during its collapse animations. Consumers should not set it directly. */
16
17
  inExpandedGroup?: boolean;
17
18
  data?: ObcPoiButtonDataItem[];
18
19
  hasRelation?: boolean;
@@ -20,6 +20,7 @@ import type {ObcPoiObjectVesselType, ObcPoiObjectVesselStyle, ObcPoiObjectVessel
20
20
  value?: PoiButtonVisualState;
21
21
  overlapOpaque?: boolean;
22
22
  type?: ObcPoiButtonType;
23
+ /** Expanded-group presentation state, applied by the owning group composition while the button is shown inside an expanded `obc-poi-group` and during its collapse animations. Consumers should not set it directly. */
23
24
  inExpandedGroup?: boolean;
24
25
  data?: ObcPoiButtonDataItem[];
25
26
  hasRelation?: boolean;
@@ -13,6 +13,7 @@ export interface Props {
13
13
  value?: PoiButtonVisualState;
14
14
  overlapOpaque?: boolean;
15
15
  type?: ObcPoiButtonType;
16
+ /** Expanded-group presentation state, applied by the owning group composition while the button is shown inside an expanded `obc-poi-group` and during its collapse animations. Consumers should not set it directly. */
16
17
  inExpandedGroup?: boolean;
17
18
  data?: ObcPoiButtonDataItem[];
18
19
  hasRelation?: boolean;
@@ -16,7 +16,11 @@
16
16
  frameIndex?: number | null;
17
17
  confidenceMin?: number | null;
18
18
  classFilter?: string[] | null;
19
- keyFn?: PoiKeyFn | null
19
+ keyFn?: PoiKeyFn | null;
20
+ /** Forwarded to every controller-owned target's `xFilterCutoffHz`; `null` leaves the targets on their default. */
21
+ xFilterCutoffHz?: number | null;
22
+ /** Forwarded to every controller-owned target's `yFilterCutoffHz`; `null` leaves the targets on their default. */
23
+ yFilterCutoffHz?: number | null
20
24
  }
21
25
  export interface Events {
22
26
 
@@ -11,6 +11,10 @@ export interface Props {
11
11
  confidenceMin?: number | null;
12
12
  classFilter?: string[] | null;
13
13
  keyFn?: PoiKeyFn | null;
14
+ /** Forwarded to every controller-owned target's `xFilterCutoffHz`; `null` leaves the targets on their default. */
15
+ xFilterCutoffHz?: number | null;
16
+ /** Forwarded to every controller-owned target's `yFilterCutoffHz`; `null` leaves the targets on their default. */
17
+ yFilterCutoffHz?: number | null;
14
18
  }
15
19
  export interface Events {
16
20
  }
@@ -10,8 +10,10 @@
10
10
  class?: string;
11
11
  style?: string;
12
12
  expand?: boolean;
13
+ /** Collapse-animation state. Set by the group itself and by coordinating containers such as `obc-poi-layer-stack` during collapse orchestration; do not set it directly. */
13
14
  collapsing?: boolean;
14
15
  positionVertical?: string;
16
+ /** Reorders expanded targets when their horizontal positions cross. Usually set via `obc-poi-layer`'s `internal-swapping` attribute, which forwards it to auto-created groups; set it directly only on manually managed groups. */
15
17
  internalSwapping?: boolean
16
18
  }
17
19
  export interface Events {
@@ -5,8 +5,10 @@ export interface Props {
5
5
  class?: string;
6
6
  style?: string;
7
7
  expand?: boolean;
8
+ /** Collapse-animation state. Set by the group itself and by coordinating containers such as `obc-poi-layer-stack` during collapse orchestration; do not set it directly. */
8
9
  collapsing?: boolean;
9
10
  positionVertical?: string;
11
+ /** Reorders expanded targets when their horizontal positions cross. Usually set via `obc-poi-layer`'s `internal-swapping` attribute, which forwards it to auto-created groups; set it directly only on manually managed groups. */
10
12
  internalSwapping?: boolean;
11
13
  }
12
14
  export interface Events {
@@ -1,9 +1,11 @@
1
1
 
2
2
  <script lang="ts">
3
- export type {OverlapMode} from '@oicl/openbridge-webcomponents/dist/ar/poi-layer/poi-layer.js';
3
+ export type {Poi} from '@oicl/openbridge-webcomponents/dist/ar/poi/poi.js';
4
+ export type {OverlapMode} from '@oicl/openbridge-webcomponents/dist/ar/poi-layer/poi-layer.js';
4
5
  import '@oicl/openbridge-webcomponents/dist/ar/poi-layer/poi-layer.js';
5
6
  import { setProperties, forwardEvents } from "../../util.js";
6
- import type {OverlapMode} from '@oicl/openbridge-webcomponents/dist/ar/poi-layer/poi-layer.js';
7
+ import type {Poi} from '@oicl/openbridge-webcomponents/dist/ar/poi/poi.js';
8
+ import type {OverlapMode} from '@oicl/openbridge-webcomponents/dist/ar/poi-layer/poi-layer.js';
7
9
  import type { Snippet } from 'svelte';
8
10
 
9
11
  export interface Props {
@@ -18,12 +20,13 @@
18
20
  }
19
21
  export interface Events {
20
22
  onLayerResize?: (event: CustomEvent<{height:number,label:string}>) => void;
23
+ onGroupingChange?: (event: CustomEvent<{clusters:Poi[][],front:Poi[],behind:Poi[],pregrouped:Poi[]}>) => void;
21
24
  onLayerSelectionChanged?: (event: Event) => void
22
25
  }
23
26
  export interface Slots {
24
27
  children?: Snippet
25
28
  }
26
- const {onLayerResize, onLayerSelectionChanged, class: className, style, children, ...props} = $props<Props & Events & Slots>();
29
+ const {onLayerResize, onGroupingChange, onLayerSelectionChanged, class: className, style, children, ...props} = $props<Props & Events & Slots>();
27
30
 
28
31
 
29
32
  </script>
@@ -32,7 +35,7 @@
32
35
 
33
36
  class={className}
34
37
  style={style}
35
- use:forwardEvents={{'layer-resize': onLayerResize, 'layer-selection-changed': onLayerSelectionChanged}} >
38
+ use:forwardEvents={{'layer-resize': onLayerResize, 'grouping-change': onGroupingChange, 'layer-selection-changed': onLayerSelectionChanged}} >
36
39
 
37
40
  {#if children}
38
41
  {@render children()}
@@ -1,4 +1,5 @@
1
1
  import '@oicl/openbridge-webcomponents/dist/ar/poi-layer/poi-layer.js';
2
+ import type { Poi } from '@oicl/openbridge-webcomponents/dist/ar/poi/poi.js';
2
3
  import type { OverlapMode } from '@oicl/openbridge-webcomponents/dist/ar/poi-layer/poi-layer.js';
3
4
  import type { Snippet } from 'svelte';
4
5
  export interface Props {
@@ -16,6 +17,12 @@ export interface Events {
16
17
  height: number;
17
18
  label: string;
18
19
  }>) => void;
20
+ onGroupingChange?: (event: CustomEvent<{
21
+ clusters: Poi[][];
22
+ front: Poi[];
23
+ behind: Poi[];
24
+ pregrouped: Poi[];
25
+ }>) => void;
19
26
  onLayerSelectionChanged?: (event: Event) => void;
20
27
  }
21
28
  export interface Slots {
@@ -23,6 +30,7 @@ export interface Slots {
23
30
  }
24
31
  type $$ComponentProps = Props & Events & Slots;
25
32
  declare const ObcPoiLayer: import("svelte").Component<$$ComponentProps, {
33
+ Poi: typeof Poi;
26
34
  OverlapMode: typeof OverlapMode;
27
35
  }, "">;
28
36
  type ObcPoiLayer = ReturnType<typeof ObcPoiLayer>;
@@ -1,9 +1,11 @@
1
1
 
2
2
  <script lang="ts">
3
- export type {PoiLayerSelectionMode} from '@oicl/openbridge-webcomponents/dist/ar/poi-layer-stack/poi-layer-stack.js';
3
+ export type {Poi} from '@oicl/openbridge-webcomponents/dist/ar/poi/poi.js';
4
+ export type {PoiLayerSelectionMode} from '@oicl/openbridge-webcomponents/dist/ar/poi-layer-stack/poi-layer-stack.js';
4
5
  import '@oicl/openbridge-webcomponents/dist/ar/poi-layer-stack/poi-layer-stack.js';
5
- import { setProperties } from "../../util.js";
6
- import type {PoiLayerSelectionMode} from '@oicl/openbridge-webcomponents/dist/ar/poi-layer-stack/poi-layer-stack.js';
6
+ import { setProperties, forwardEvents } from "../../util.js";
7
+ import type {Poi} from '@oicl/openbridge-webcomponents/dist/ar/poi/poi.js';
8
+ import type {PoiLayerSelectionMode} from '@oicl/openbridge-webcomponents/dist/ar/poi-layer-stack/poi-layer-stack.js';
7
9
  import type { Snippet } from 'svelte';
8
10
 
9
11
  export interface Props {
@@ -12,12 +14,12 @@
12
14
  selectionMode?: PoiLayerSelectionMode
13
15
  }
14
16
  export interface Events {
15
-
17
+ onSelectionChange?: (event: CustomEvent<{selected: Poi[]; added: Poi | null; removed: Poi | null}>) => void
16
18
  }
17
19
  export interface Slots {
18
20
  children?: Snippet
19
21
  }
20
- const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
22
+ const {onSelectionChange, class: className, style, children, ...props} = $props<Props & Events & Slots>();
21
23
 
22
24
 
23
25
  </script>
@@ -26,7 +28,7 @@
26
28
 
27
29
  class={className}
28
30
  style={style}
29
- >
31
+ use:forwardEvents={{'selection-change': onSelectionChange}} >
30
32
 
31
33
  {#if children}
32
34
  {@render children()}
@@ -1,4 +1,5 @@
1
1
  import '@oicl/openbridge-webcomponents/dist/ar/poi-layer-stack/poi-layer-stack.js';
2
+ import type { Poi } from '@oicl/openbridge-webcomponents/dist/ar/poi/poi.js';
2
3
  import type { PoiLayerSelectionMode } from '@oicl/openbridge-webcomponents/dist/ar/poi-layer-stack/poi-layer-stack.js';
3
4
  import type { Snippet } from 'svelte';
4
5
  export interface Props {
@@ -7,12 +8,18 @@ export interface Props {
7
8
  selectionMode?: PoiLayerSelectionMode;
8
9
  }
9
10
  export interface Events {
11
+ onSelectionChange?: (event: CustomEvent<{
12
+ selected: Poi[];
13
+ added: Poi | null;
14
+ removed: Poi | null;
15
+ }>) => void;
10
16
  }
11
17
  export interface Slots {
12
18
  children?: Snippet;
13
19
  }
14
20
  type $$ComponentProps = Props & Events & Slots;
15
21
  declare const ObcPoiLayerStack: import("svelte").Component<$$ComponentProps, {
22
+ Poi: typeof Poi;
16
23
  PoiLayerSelectionMode: typeof PoiLayerSelectionMode;
17
24
  }, "">;
18
25
  type ObcPoiLayerStack = ReturnType<typeof ObcPoiLayerStack>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oicl/openbridge-webcomponents-svelte",
3
- "version": "2.0.0-next.170",
3
+ "version": "2.0.0-next.171",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",
@@ -34,7 +34,7 @@
34
34
  }
35
35
  },
36
36
  "dependencies": {
37
- "@oicl/openbridge-webcomponents": "^2.0.0-next.170"
37
+ "@oicl/openbridge-webcomponents": "^2.0.0-next.171"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "svelte": "^5.0.0"