Giter Site home page Giter Site logo

vue-gojs-project's Introduction

vue-gojs-demo

A Vue.js project

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

explain

  1. 当前是交互式图表JavaScript库:gojs 在vue 场景下使用的一个小demo,仅仅用学习探讨,如有谬误请多指教
  2. 去水印方法: 可以用/static文件夹下的go.js 替换node_modules/gojs/release 中的go.js
  3. 这个demo是使用gojs做的一个流程图组件,gojs渲染的一个个流程分支节点其实是由基础Panel面板渲染的,其它诸如Shape、TextBlock、Picture等都是一层层嵌套的,而且它们的渲染跟vue的render 渲染函数渲染标签很相似,有兴趣的可以查阅gojs的api文档
  4. gojs中创建的面板、文字块、图片等其实是直接转换后绘制成canvas中的(审查元素可以看到,所以控制面板的样式并不能像在vue的render函数中写css样式一样控制它们的样式,它们仅有有限的几个样式可以控制:例如:字体颜色、边距、定位... 我们可以使用自定义的图片充当底板背景来让gojs的面板样式多样化,当前demo就是使用这种方式,可以结合注释来看。

vue-gojs-project's People

Contributors

uplz077 avatar

Stargazers

sloth avatar Horyan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.