From 2fdad42dca972b5e7db6ac9588c26d0db29a7b3e Mon Sep 17 00:00:00 2001 From: "Daybrush (Younkue Choi)" Date: Wed, 8 Feb 2023 11:34:48 +0900 Subject: [PATCH] fix: fix svelte variable names (#83) --- packages/svelte-grid/src/grids/FrameGrid.js | 8 ++++---- packages/svelte-grid/src/grids/JustifiedGrid.js | 8 ++++---- packages/svelte-grid/src/grids/MasonryGrid.js | 8 ++++---- packages/svelte-grid/src/grids/PackingGrid.js | 8 ++++---- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/packages/svelte-grid/src/grids/FrameGrid.js b/packages/svelte-grid/src/grids/FrameGrid.js index 2915205..89b90f3 100644 --- a/packages/svelte-grid/src/grids/FrameGrid.js +++ b/packages/svelte-grid/src/grids/FrameGrid.js @@ -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 }; diff --git a/packages/svelte-grid/src/grids/JustifiedGrid.js b/packages/svelte-grid/src/grids/JustifiedGrid.js index 7af9204..c1f5021 100644 --- a/packages/svelte-grid/src/grids/JustifiedGrid.js +++ b/packages/svelte-grid/src/grids/JustifiedGrid.js @@ -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 }; diff --git a/packages/svelte-grid/src/grids/MasonryGrid.js b/packages/svelte-grid/src/grids/MasonryGrid.js index da492ac..827696d 100644 --- a/packages/svelte-grid/src/grids/MasonryGrid.js +++ b/packages/svelte-grid/src/grids/MasonryGrid.js @@ -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 }; diff --git a/packages/svelte-grid/src/grids/PackingGrid.js b/packages/svelte-grid/src/grids/PackingGrid.js index 6b30455..6d0a790 100644 --- a/packages/svelte-grid/src/grids/PackingGrid.js +++ b/packages/svelte-grid/src/grids/PackingGrid.js @@ -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 };