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

abc-formula-blueprint

v3.3.10

Published

``` npm install gojs --save

Downloads

9

Readme

abc-formula-blueprint

依赖 gojs 2.3.11 版本

npm install gojs --save

安装 公式蓝图组件

npm i abc-formula-blueprint

引用试列 main.js中加入组件引用

import AbcFormulaBlueprint from 'abc-formula-blueprint';
Vue.use(AbcFormulaBlueprint)

引用组件 试列

<template>
  <div id="app">
    <!-- <img alt="Vue logo" src="./assets/logo.png"> -->
    <button @click="findFormulaConfig">获取配置结果</button>
    <div style="height: 500px;width: 1200px;">
      <ui-formula-blueprint :customTypeData="Symbol" :formulaModel="initFormulaJSON" > </ui-formula-blueprint>
    </div>
  
  </div>
</template>
<script>
//import HelloWorld from './components/HelloWorld.vue'
export default {
  name: 'App',
  components: {
    // HelloWorld,
  },
  mounted() {
    setTimeout(() => {
      this.Symbol = [{key:"machinerate",displayValue:"塔机倍率",category:"field"},
                  {key:"alarmrateload",displayValue:"报警额定吊重",category:"field"},
                  {key:"alarmwindspeed",displayValue:"报警风速",category:"field"},
                  {key:"alarmrotaion",displayValue:"报警回转",category:"field"},
                  {key:"alarmhookheight",displayValue:"报警吊钩高度m",category:"field"},
                  {key:"alarmamplitude",displayValue:"报警幅度m",category:"field"},
                  {key:"alarmweight",displayValue:"报警吊重t",category:"field"},
                  {key:"alarmmomentper",displayValue:"报警力矩百分比",category:"field"},
                  {key:"alarmmoment",displayValue:"报警力矩tm",category:"field"},
                  {key:"alarmtype",displayValue:"报警类型",category:"field"},
                  {key:"alarmtime",displayValue:"报警时间",category:"field"},
                  {key:"machineid",displayValue:"设备编号",category:"field"}];

        }, 3000); // 延迟1秒执行
       
      },
  data : function(){

    return {

      Symbol:[],
      initFormulaJSON: ""
     

    }
  },
  methods : {
    findFormulaConfig : function (){
      var dataJson =  this.$refs.formulaBlueprint.formulaData();
      console.log(dataJson);
    }
  }
}
</script>


** customTypeData 初始化默认的计算属性

** formulaModel 编辑模式下 加载上次配置好的 蓝图JSON数据 ,空代表全新的一个画布

** this.$refs.formulaBlueprint.formulaData(); 获取配置好的公式配置数据后续解析