4.11.1 • Published 20 days ago

@egjs/infinitegrid v4.11.1

Weekly downloads
725
License
MIT
Repository
github
Last release
20 days ago

egjs-infinitegrid npm version Build Status Coverage Status

A module used to arrange card elements including content infinitely according to layout type. With this module, you can implement various layouts composed of different card elements whose sizes vary. It guarantees performance by maintaining the number of DOMs the module is handling under any circumstance

infinitegrid

Layouts

The InfiniteGrid can use various layouts.

layout

  • GridLayout: The GridLayout is a layout that stacks cards with the same width as a stack of bricks.
  • JustifiedLayout: JustifiedLayout is a layout that the card is filled up on the basis of a line given a size.
  • FrameLayout: FrameLayout is a layout that allows you to place cards in a given frame.
  • SquareLayout: SquareLayout is a layout that places all cards like squares on a checkerboard, and important cards are n times larger.
  • PackingLayout: The PackingLayout is a layout that shows the important cards bigger without sacrificing the weight of the cards.

Benchmark

eg.infiniteGrid benchmark

eg.infiniteGrid benchmark: append item performance with masonry

Documents

Third party applications

@egjs/react-layout: A react component that can easily use egjs-infinitegrid's layouts

@egjs/react-infinitegrid: A react component that can easily use egjs-infinitegrid

Download and Installation

Download dist files from repo directly or install it via npm.

Packaged version

Packaged version is not an official distribution. Is just to provide for ease use of 'egjs-infinitegrid'.

  • latest version
UncompressedCompressed
No Dependency(@egjs/component)infinitegrid.js (182.5kb)infinitegrid.min.js (49.4kb)
Allinfinitegrid.pkgd.js (211.3kb)infinitegrid.pkgd.min.js (55kb)(https://naver.github.io/egjs-infinitegrid/release/latest/dist/infinitegrid.min.js)
GridLayoutinfinitegrid.gridlayout.js (157.6kb)infinitegrid.gridlayout.min.js (43.9kb)
JustifiedLayoutinfinitegrid.justifiedlayout.js (165.3kb)infinitegrid.justifiedlayout.min.js (45.2kb)
FrameLayoutinfinitegrid.framelayout.js (160.6kb)infinitegrid.framelayout.min.js (44.5kb)
SquareLayoutinfinitegrid.squarelayout.js (167kb)infinitegrid.squarelayout.min.js (46kb)
PackingLayoutinfinitegrid.packinglayout.js (160kb)infinitegrid.packinglayout.min.js (44.8kb)
Parallaxparallax.js (13.3kb)parallax.min.js (4kb)

Installation with npm

The following command shows how to install egjs-infinitegrid using npm.

$ npm install @egjs/infinitegrid

The following code shows how to import InfiniteGrid, Parallax.

import InfiniteGrid, {GridLayout, JustifiedLayout, ...} from "@egjs/infinitegrid";
import Parallax from "@egjs/infinitegrid/dist/parallax";

Supported Browsers

The following are the supported browsers.

Internet ExplorerChromeFirefoxSafariiOSAndroid
8+LatestLatestLatest7+2.3+(except 3.x)
  • If you want to use in IE8, please use polyfill.

Dependency

egjs-infinitegrid has the dependencies for the following libraries:

egjs-component
2.0.0+

How to start developing egjs-infinitegrid?

For anyone interested to develop egjs-infinitegrid, follow the instructions below.

Development Environment

1. Clone the repository

Clone the egjs-infinitegrid repository and install the dependency modules.

# Clone the repository.
$ git clone https://github.com/naver/egjs-infinitegrid.git

2. Install dependencies

npm is supported.

# Install the dependency modules.
$ npm install

3. Build

Use npm script to build egjs-infinitegrid

# Run webpack-dev-server for development
$ npm start

# Build
$ npm run build

# Generate jsdoc
$ npm run jsdoc

Two folders will be created after complete build is completed.

  • dist folder: Includes the infinitegrid.js and infinitegrid.min.js files.
  • doc folder: Includes API documentation. The home page for the documentation is doc/index.html.

Linting

To keep the same code style, we adopted ESLint to maintain our code quality. The rules are modified version based on Airbnb JavaScript Style Guide. Setup your editor for check or run below command for linting.

$ npm run lint

Test

Once you created a branch and done with development, you must perform a test running npm run test command before you push code to a remote repository.

$ npm run test

Running a npm run test command will start Mocha tests via Karma-runner.

Bug Report

If you find a bug, please report it to us using the Issues page on GitHub.

License

egjs-infinitegrid is released under the MIT license.

Copyright (c) 2015 NAVER Corp.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
4.12.0-beta.13

20 days ago

4.12.0-beta.12

20 days ago

4.12.0-beta.10

27 days ago

4.12.0-beta.11

27 days ago

4.12.0-beta.9

1 month ago

4.12.0-beta.8

1 month ago

4.12.0-beta.7

2 months ago

4.12.0-beta.6

2 months ago

4.12.0-beta.5

3 months ago

4.12.0-beta.3

3 months ago

4.11.1

3 months ago

4.12.0-beta.1

4 months ago

4.12.0-beta.0

5 months ago

4.10.1-beta.0

9 months ago

4.10.1

9 months ago

4.11.0-beta.0

6 months ago

4.11.0

5 months ago

4.9.0

1 year ago

4.10.0

11 months ago

4.9.0-beta.4

1 year ago

4.9.0-beta.8

1 year ago

4.9.0-beta.9

1 year ago

4.9.0-beta.6

1 year ago

4.9.0-beta.7

1 year ago

4.10.0-beta.4

12 months ago

4.10.0-beta.2

1 year ago

4.10.0-beta.3

1 year ago

4.10.0-beta.0

1 year ago

4.10.0-beta.1

1 year ago

4.9.0-beta.10

1 year ago

4.8.1-beta.3

1 year ago

4.8.1-beta.2

1 year ago

4.8.1

1 year ago

4.8.0

1 year ago

4.8.1-beta.1

1 year ago

4.8.1-beta.0

1 year ago

4.9.0-beta.3

1 year ago

4.7.1-beta.1

2 years ago

4.7.1

2 years ago

4.7.1-beta.2

2 years ago

4.7.1-beta.0

2 years ago

4.5.0-beta.0

2 years ago

4.7.0

2 years ago

4.6.0

2 years ago

4.5.1-beta.2

2 years ago

4.5.1-beta.1

2 years ago

4.5.1-beta.0

2 years ago

4.5.0

2 years ago

4.6.1-beta.2

2 years ago

4.6.1-beta.0

2 years ago

4.6.1-beta.1

2 years ago

4.4.0

2 years ago

4.3.1

2 years ago

4.3.0

2 years ago

4.2.1

2 years ago

4.2.0-beta.4

2 years ago

4.2.0-beta.3

2 years ago

4.2.0-beta.6

2 years ago

4.2.0-beta.5

2 years ago

4.2.0-beta.2

2 years ago

4.2.1-beta.0

2 years ago

4.2.0

2 years ago

4.2.0-beta.1

2 years ago

4.1.1

3 years ago

4.2.0-beta.0

3 years ago

4.1.0

3 years ago

4.0.0

3 years ago

4.0.0-beta.16

3 years ago

4.0.0-beta.15

3 years ago

4.0.0-beta.14

3 years ago

4.0.0-beta.13

3 years ago

4.0.0-beta.12

3 years ago

4.0.0-beta.11

3 years ago

4.0.0-beta.10

3 years ago

4.0.0-beta.8

3 years ago

4.0.0-beta.7

3 years ago

4.0.0-beta.6

3 years ago

4.0.0-beta.5

3 years ago

4.0.0-beta.4

3 years ago

4.0.0-beta.3

3 years ago

4.0.0-beta.2

3 years ago

4.0.0-beta.9

3 years ago

4.0.0-beta.1

3 years ago

4.0.0-beta.0

3 years ago

3.9.0

3 years ago

3.9.0-beta.0

3 years ago

3.8.4-beta.1

3 years ago

3.8.4-beta.0

3 years ago

3.8.4

3 years ago

3.8.3

3 years ago

3.8.2

3 years ago

3.8.2-beta.1

3 years ago

3.8.2-beta.0

3 years ago

3.8.1

3 years ago

3.8.0

3 years ago

3.7.1

3 years ago

3.7.0-rc

3 years ago

3.7.0

3 years ago

3.6.3

4 years ago

3.6.2

4 years ago

3.6.1

4 years ago

3.5.5-snapshot

4 years ago

3.6.0

4 years ago

3.6.0-beta6

5 years ago

3.6.0-beta5

5 years ago

3.6.0-beta4

5 years ago

3.6.0-beta3

5 years ago

3.6.0-beta2

5 years ago

3.6.0-beta

5 years ago

3.5.5

5 years ago

3.5.4

5 years ago

3.5.4-rc

5 years ago

3.5.3

5 years ago

3.5.2

5 years ago

3.5.2-rc

5 years ago

3.5.1

5 years ago

3.5.1-rc4

5 years ago

3.5.1-rc3

5 years ago

3.5.1-rc2

5 years ago

3.5.1-rc

5 years ago

3.5.0

5 years ago

3.5.0-rc

5 years ago

3.4.7

5 years ago

3.4.7-rc3

5 years ago

3.4.7-rc2

5 years ago

3.4.7-rc

5 years ago

3.4.6

6 years ago

3.4.6-rc

6 years ago

3.4.5

6 years ago

3.4.4

6 years ago

3.4.3

6 years ago

3.4.2

6 years ago

3.4.1

6 years ago

3.4.0

6 years ago

3.3.6

6 years ago

3.3.5

6 years ago

3.3.4

6 years ago

3.3.3

6 years ago

3.3.2

6 years ago

3.3.1

6 years ago

3.3.0

6 years ago

3.2.4-snapshot

6 years ago

3.2.4

6 years ago

3.2.3

6 years ago

3.2.2

6 years ago

3.2.1

6 years ago

3.2.0

6 years ago

3.1.4

6 years ago

3.1.3

6 years ago

3.1.2

6 years ago

3.1.1

6 years ago

3.1.0

6 years ago

3.0.0

6 years ago

2.1.1

6 years ago

2.1.0

7 years ago

2.0.0

7 years ago

2.0.0-rc.2

7 years ago

2.0.0-rc.1

7 years ago