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

yz-flow

v1.1.16

Published

flow流程设计图

Downloads

38

Readme

前言

提供一个黑盒子的载体,通过暴露方法,和属性,实现对流程图的操作

install

npm i yz-flow --save-dev

属性

| 参数 | 说明 | 类型 | 可选值 | 默认值 | |---------- |-------------- |---------- |-------------------------------- |-------- | | menueList | 左侧显示的菜单栏 | Array | 无 | 无 | | readerOnly | 是否为只读 | Boolean | true,false | false| | canZoom | 是否缩放 | Boolean | true,false | false | | loadComplete | 首次加载数据是否加载完毕 | Boolean | true,false | false | | nodeList | 节点数据 | Array | 无 | 无 | | lineList | 线的数据 | Array | 无 | 无 | | currentElement | 当前操作的节点数据 | Object | {} | {} | | dataFormat | 定义数据格式 | Object | {} | default | | visableEditeLine | 父级监听该值,判断是否编辑当前的线 | true,false | false | false | | visableEditeNode | 父级监听该值,判断是否编辑当前的节点 | true,false | false | false | | visableAuto | 父级监听该值,判断是否编辑自动表单 | true,false | false | false |

事件

| 事件 | 说明 | 参数值 | |---------- |-------------- |---------- | | addNode | 添加节点 | params, callback | | changeNode | 改变该节点 | params | | connectionLine | 节点连线 | params, callback | | delConnect | 删除连线 | lineId, callback | | delNode | 删除节点 | nodeId, callback |

属性 详细信息

  • menueList 左侧显示的菜单栏 type Array
  • readerOnly 是否为只读 默认 false type Boolean

  • canZoom 是否支持缩放 默认 false type Boolean

  • loadComplete 数据是否加载完毕 type Boolean

  • nodeList 节点数据 type Array

  • lineList 连接线数据 type Array

  • currentElement 当前操作节点的数据 type Object

  • 右击菜单每个功能的暴出的属性 type Boolean

    • visableEditeLine
    • visableEditeNode
    • visableAuto

事件 格式

  • addNode addNode (params, callback) = >{ callback(接口返回节点的数据) }

  • changeNode addNode (params) = >{ }

  • connectionLine (params, callback) = >{ callback(接口返回的数据) }

  • delConnect (lineId, callback)= >{ callback(true|false)}

  • delNode (nodeId, callback)= >{ callback(true|false)}

注意渲染数据必须时同步 先获取节点数据和线的数据再将 loadComplete 属性设置为true ,再渲染视图

自定义该组件样式的方案