Skip to content

Commit

Permalink
fix: fix svelte variable names (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
daybrush authored Feb 8, 2023
1 parent cfedd73 commit 2fdad42
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions packages/svelte-grid/src/grids/FrameGrid.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import Grid from "../Grid.svelte";
import { FrameGrid as GridClass } from "@egjs/grid";

let FrameGrid;
let SvelteFrameGrid;

if (typeof Grid === "object") {
FrameGrid = Grid;
SvelteFrameGrid = Grid;
} else {
FrameGrid = class FrameGrid extends Grid {
SvelteFrameGrid = class SvelteFrameGrid extends Grid {
constructor(options) {
options.props.GridClass = GridClass;
super(options);
}
}
}
export { FrameGrid };
export { SvelteFrameGrid as FrameGrid };
8 changes: 4 additions & 4 deletions packages/svelte-grid/src/grids/JustifiedGrid.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import Grid from "../Grid.svelte";
import { JustifiedGrid as GridClass } from "@egjs/grid";

let JustifiedGrid;
let SvelteJustifiedGrid;

if (typeof Grid === "object") {
JustifiedGrid = Grid;
SvelteJustifiedGrid = Grid;
} else {
JustifiedGrid = class JustifiedGrid extends Grid {
SvelteJustifiedGrid = class SvelteJustifiedGrid extends Grid {
constructor(options) {
options.props.GridClass = GridClass;
super(options);
}
}
}
export { JustifiedGrid };
export { SvelteJustifiedGrid as JustifiedGrid };
8 changes: 4 additions & 4 deletions packages/svelte-grid/src/grids/MasonryGrid.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import Grid from "../Grid.svelte";
import { MasonryGrid as GridClass } from "@egjs/grid";

let MasonryGrid;
let SvelteMasonryGrid;

if (typeof Grid === "object") {
MasonryGrid = Grid;
SvelteMasonryGrid = Grid;
} else {
MasonryGrid = class MasonryGrid extends Grid {
SvelteMasonryGrid = class SvelteMasonryGrid extends Grid {
constructor(options) {
options.props.GridClass = GridClass;
super(options);
}
}
}
export { MasonryGrid };
export { SvelteMasonryGrid as MasonryGrid };
8 changes: 4 additions & 4 deletions packages/svelte-grid/src/grids/PackingGrid.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import Grid from "../Grid.svelte";
import { PackingGrid as GridClass } from "@egjs/grid";

let PackingGrid;
let SveltePackingGrid;

if (typeof Grid === "object") {
PackingGrid = Grid;
SveltePackingGrid = Grid;
} else {
PackingGrid = class PackingGrid extends Grid {
SveltePackingGrid = class SveltePackingGrid extends Grid {
constructor(options) {
options.props.GridClass = GridClass;
super(options);
}
}
}
export { PackingGrid };
export { SveltePackingGrid as PackingGrid };

0 comments on commit 2fdad42

Please sign in to comment.