Skip to content

Commit

Permalink
remove unused align options
Browse files Browse the repository at this point in the history
  • Loading branch information
molikk committed Jan 3, 2025
1 parent fcb66b7 commit 0764106
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dist/mlk-power-flow-card.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mlk-power-flow-card",
"version": "1.1.0",
"version": "1.2.0",
"description": "A customizable Home Assistant card to emulate power flow based on Sunsynk's Inverter screen with load devices controls.",
"main": "mlk-power-flow-card.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/cards/compact-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const compactCard = (config: PowerFlowCardConfig, inverterImg: string, da

let minX = config.viewbox?.viewbox_min_x ? config.viewbox.viewbox_min_x : config.wide_view_mode ? 0 : calculated_minX;
let minY = config.viewbox?.viewbox_min_y ? config.viewbox.viewbox_min_y : calculated_minY;
let width = config.viewbox?.viewbox_width ? config.viewbox.viewbox_width : config.wide_view_mode ? 720 : calculated_width - minX;
let width = config.viewbox?.viewbox_width ? config.viewbox.viewbox_width : config.wide_view_mode ? 720 - minX : calculated_width - minX;
let height = config.viewbox?.viewbox_height ? config.viewbox.viewbox_height : calculated_height - calculated_minY;

function gridXTransform() {
Expand Down
2 changes: 0 additions & 2 deletions src/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,6 @@ export class ConfigurationCardEditor extends LitElement implements LovelaceCardE
{ name: 'show_solar', selector: { boolean: {} } },
{ name: 'show_battery', selector: { boolean: {} } },
{ name: 'show_grid', selector: { boolean: {} } },
{ name: 'align_grid', selector: { boolean: {} } },
{ name: 'align_load', selector: { boolean: {} } },
{ name: 'dynamic_line_width', selector: { boolean: {} } },
{ name: 'max_line_width', selector: { number: {} } },
{ name: 'min_line_width', selector: { number: {} } },
Expand Down
8 changes: 2 additions & 6 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,12 @@ export interface PowerFlowCardConfig extends LovelaceCardConfig {
dev_mode: boolean;
refresh_time?: string;
wide_view_mode: boolean,
align_grid: boolean;
align_load: boolean;
center_sol_inv_bat: boolean;
large_font?: boolean;
show_solar: boolean;
show_battery: boolean;
show_grid: boolean;
card_height?: string;
card_width?: string;
card_height: string;
card_width: string;
decimal_places?: number;
decimal_places_energy?: number;
dynamic_line_width?: boolean;
Expand Down Expand Up @@ -453,7 +450,6 @@ export interface InverterSettings {
export interface DataDto {
config: PowerFlowCardConfig,
refreshTime: String,
panelMode?: boolean,
compactMode,
cardHeight,
cardWidth,
Expand Down

0 comments on commit 0764106

Please sign in to comment.