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 🙏

© 2025 – Pkg Stats / Ryan Hefner

flowgrid

v3.0.0

Published

flowgrid is a component for Vue.js. 一个基于vue的轻量简单的网格流布局插件.

Readme

flowgrid

flowgrid.js is a plugin for vue widget layout, 一个基于vue的轻量简单的网格流布局插件

备注

因为/docs是github.io的默认目录, 我就把构建后代码放这里了, 没有放入约定俗成的/dist中, 见谅.

简介

flowgrid是vue插件, 使用 babel + rollup + uglifyjs 来进行源码构建.

命令

npm install flowgrid --save-dev

npm

npm地址: https://www.npmjs.com/package/flowgrid

参考图

github

使用方式

  1. /docs/flowgrid.min.js npm install安装后可以直接import使用

  2. /src/源码 直接copy到项目工程进行使用, 方便定制

源码说明

fg-item的node属性的数据格式说明:
  {
    id:'2',   // 唯一标识
    x: 0,     // 坐标 x
    y: 0,     // 坐标 y
    w: 4,     // 宽度
    h: 4,     // 高度
    minW: 2,  // 最小宽度
    minH: 2   // 最小高度
  }

更新日志

v3.0.0

  1. pageX 修改为 clientX
  2. 删除cellW_Int和cellH_Int
  3. 修正容器排版左上角的padding.top, padding.left对齐方式

v2.0.2

  1. 补充回调函数dragStart, drag, dragEnd
  2. 补充回调函数resizeStart, resize, resizeEnd
  3. 修复拖拽过程中body文本选中bug

v1.2.2

  1. 完善readme文档

v1.2.1

  1. 使用vue来构建源码, 蹭蹭热度, 支持以vue的方式来使用.
  2. 优化了部分代码, 补充注释.
  3. 修复缩放拖拽时状态判断不准确的问题
  4. 修复拖拽过程中文本选中的问题, 动态给body加user-select:none
  5. 使用getBoundingClientRect()来计算节点偏移

版权

MIT