-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix svelte variable names (#83)
- Loading branch information
Showing
4 changed files
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }; |