extra-map-card 1.3.3 → 1.4.0

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.
@@ -0,0 +1,22 @@
1
+ import { HomeAssistant } from '@types';
2
+ import { LitElement } from 'lit';
3
+ declare class EmcEntityMarker extends LitElement {
4
+ hass: HomeAssistant;
5
+ entityId?: string;
6
+ entityName?: string;
7
+ entityUnit?: string;
8
+ entityPicture?: string;
9
+ entityColor?: string;
10
+ showIcon: boolean;
11
+ useMoreInfo: boolean;
12
+ entityIcon?: string;
13
+ protected render(): import("lit-html").TemplateResult<1>;
14
+ private _badgeTap;
15
+ static styles: import("lit").CSSResult;
16
+ }
17
+ declare global {
18
+ interface HTMLElementTagNameMap {
19
+ 'emc-entity-marker': EmcEntityMarker;
20
+ }
21
+ }
22
+ export {};
@@ -1,6 +1,7 @@
1
1
  import { HomeAssistant } from '@types';
2
2
  import { LitElement, PropertyValues, CSSResultGroup } from 'lit';
3
3
  import { HaMapEntity, HaMapPaths, ThemeMode } from 'types/config';
4
+ import '../components/emc-entity-marker';
4
5
  export declare class EmcMap extends LitElement {
5
6
  hass: HomeAssistant;
6
7
  entities?: string[] | HaMapEntity[];
@@ -15,26 +16,25 @@ export declare class EmcMap extends LitElement {
15
16
  _darkStyle: boolean;
16
17
  private _map?;
17
18
  private _mapItems;
19
+ private _mapItemsFocus;
18
20
  private _zoneItems;
19
21
  private _mapFocusZones;
20
- private _mapFocusItems;
21
22
  private _mapPaths;
22
23
  private _mapHelper;
23
24
  private _fitBounds;
24
- private _clusterIndex?;
25
- private _clusters;
26
- private _mapClusterItems;
27
- private _mapClusterFocusItems;
25
+ private _clusters?;
28
26
  private _circleLoaded;
29
27
  private _loaded;
30
- private _entitiesDrawn;
31
28
  private _error?;
29
+ connectedCallback(): void;
30
+ disconnectedCallback(): void;
32
31
  private get _darkMode();
33
32
  protected firstUpdated(): Promise<void>;
34
33
  protected render(): import("lit-html").TemplateResult<1>;
35
34
  private _renderLoadError;
36
35
  protected updated(changedProps: PropertyValues): void;
37
36
  private _drawEntities;
37
+ private _drawEntitiesMarkers;
38
38
  private _computePathTooltip;
39
39
  private _drawPaths;
40
40
  private _setupPointInteraction;
@@ -50,10 +50,14 @@ export declare class EmcMap extends LitElement {
50
50
  private getModeColor;
51
51
  private _getInitStyle;
52
52
  private _changeControlTheme;
53
+ private _createEntityMarker;
53
54
  static get styles(): CSSResultGroup;
54
55
  }
55
56
  declare global {
56
57
  interface HTMLElementTagNameMap {
57
58
  'emc-map': EmcMap;
58
59
  }
60
+ interface Window {
61
+ ExtraTiler: EmcMap;
62
+ }
59
63
  }