Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix svelte variable names #83

Merged
merged 1 commit into from
Feb 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 };