npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ng2-grid-layout

v1.0.2

Published

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 6.2.8.

Downloads

4

Readme

Ng2GridLayout

This project was generated with Angular CLI version 6.2.8.

#Registory https://github.com/MusixNotMusic/ng2-grid-layout

Development server

ng serve #启动项目

Build Lib

    ng build grid-layout #构建lib

layout

(layout)
+---------------------------------------------------------------------------------------------------+ -
|   +----------+   +-----------+                                                                    | | 
|   |          |   |  <--w-->  |                                                                    | |
|   |          |   |           |                                                                    | |
|   +----------+   +-----------+                                                                    | H
|   +----------+         (grid)                                                                     | |
|   |          |                                                                                    | |
|   |          |                                                                                    | |
|   +----------+                                                                                    | |
+---------------------------------------------------------------------------------------------------+ -
|<------------------------------------browser width------------------------------------------------>|

NgGridLayout.Component

|参数|类型|默认值| 含义| | ------ | ------ | ------ |------ | |colNum| number | 12 |允许每列最多排序个数| |rowHeight|number| 30 | 行高度| |maxRows|number| Infinity| 最大行数| |margin|Array <number>| [10,10]|栅格之间距离| |isDraggable| boolean | true| 可拖拽| |isResizable| boolean | true| 可伸缩| |useCssTransforms| boolean | true| 使用css3动画 transform| |verticalCompact| boolean | true | 对齐方式| |layout| Array <object> | |具体布局数据| |responsive| boolean | true | 响应式| |breakpoints| object|{ lg: 1200, md: 996, sm: 768, xs: 480, xxs: 0 }| 响应式设备宽度| |cols| object| { lg: 12, md: 10, sm: 6, xs: 4, xxs: 2 } | 响应式 对应colNum值 |

NgGridItem.Component

|参数|类型|默认值| 含义| | ------ | ------ | ------ |------ | |componentData| object | |动态组件数据{component: xxx, data:xxx}| |isDraggable|boolean| | 栅格是否drag| |isResizable|boolean| | 栅格是否resize| |minH|number| 1|栅格最小高度| |minW| number | 1| 栅格最小宽度| |maxH| number | Infinity| 栅格最大高度| |maxW| number | Infinity| 栅格最大宽度 | |x| number | | 栅格位于layout(布局)图中的x轴位置| |y| number | | 栅格位于layout(布局)图中的y轴位置| |w| number | | 栅格 在 layout(布局)图中的 单位 宽度| |h| number | | 栅格 在 layout(布局)图中的 单位 高度| |i|number | | layout中记录的索引index| |rowHeight| number| 10 |单位行高| |static| boolean| false | 栅格是否静止 |