久久机这里只有精品,国产69精品一区二区亚洲孕妇,91精品国产综合久久婷婷香蕉,午夜久久久久久电影

最新活動:電腦PC端+手機端+微網站+自適應網頁多模板選擇-建站388元起價!!!
當前位置:主頁 > 網站建設 > Flowchart.js可視化流程圖插件使用方法前端開發

Flowchart.js可視化流程圖插件使用方法前端開發

時間:2023-05-27 11:05:27 閱讀: 文章分類: 網站建設 作者: 網站編輯員

導讀:前端開發前端開發在軟件開發、項目管理等行業中,流程圖是常用的一種工具,用于描述流程和流轉規則。然而,手動繪制流程圖常常耗時費力,尤其是需要修改時更加麻煩。因此,許多流程圖插件應百度seo網站優化網站建設多少錢。

百度seo網站優化網站建設多少錢

在軟件開發、項目管理等行業中,流程圖是常用的一種工具,用于描述流程和流轉規則。然而,手動繪制流程圖常常耗時費力,尤其是需要修改時更加麻煩。因此,許多流程圖插件應運而生,以解決繪制和編輯流程圖的難題。

流程圖插件使流程圖的繪制變得簡單而直觀。用戶可以使用預定義的符號或繪制自定義符號來構建流程圖。同時,用戶還可以編輯所有元素的屬性,如大小、位置和顏色。流程圖插件還提供了連接線和箭頭等基本的連線元素,并且擁有智能排列功能,可以將元素自動對齊和分布整齊。

您也可以從官方網站 去下載 下載Flowchart.js文件到本地,然后通過相對路徑或絕對路徑進行引用。

以下是一個簡單的使用Flowchart.js繪制流程圖的JavaScript代碼示例:

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>flowchart.js · Playground</title> <style type="text/css"> .end-element { fill : #FFCCFF; } </style> <script src="http://cdnjs.cloudflare.com/ajax/libs/raphael/2.3.0/raphael.min.js"></script> <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="http://flowchart.js.org/flowchart-latest.js"></script> <!-- <script src="../release/flowchart.min.js"></script> --> <script> window.onload = function () { var btn = document.getElementById("run"), cd = document.getElementById("code"), chart; (btn.onclick = function () { var code = cd.value; if (chart) { chart.clean(); } chart = flowchart.parse(code); chart.drawSVG('canvas', { // 'x': 30, // 'y': 50, 'line-width': 3, 'maxWidth': 3,//ensures the flowcharts fits within a certian width 'line-length': 50, 'text-margin': 10, 'font-size': 14, 'font': 'normal', 'font-family': 'Helvetica', 企業網站建設 'font-weight': 'normal', 'font-color': 'black', 'line-color': 'black', 'element-color': 'black', 'fill': 'white', 'yes-text': 'yes', 'no-text': 'no', 'arrow-end': 'block', 'scale': 1, 'symbols': { 'start': { 'font-color': 'red', 'element-color': 'green', 'fill': 'yellow' }, 'end':{ 'class': 'end-element' } }, 'flowstate' : { 'past' : { 'fill' : '#CCCCCC', 'font-size' : 12}, 'current' : {'fill' : 'yellow', 'font-color' : 'red', 'font-weight' : 'bold'}, 'future' : { 'fill' : '#FFFF99'}, 'request' : { 'fill' : 'blue'}, 'invalid': {'fill' : '#444444'}, 'approved' : { 'fill' : '#58C4A3', 'font-size' : 12, 'yes-text' : 'APPROVED', 'no-text' : 'n/a' }, 如何seo優化推廣網站 'rejected' : { 'fill' : '#C45879', 'font-size' : 12, 'yes-text' : 'n/a', 'no-text' : 'REJECTED' } } }); $('[id^=sub1]').click(function(){ alert('info here'); }); })(); }; function myFunction(event, node) { console.log("You just clicked this node:", node); } </script> </head> <body> <div><textarea id="code" style="width: 100%;" rows="11"> st=>start: Start|past:>http://www.google.com[blank] e=>end: End:>http://www.google.com op1=>operation: My Operation|past:$myFunction op2=>operation: Stuff|current sub1=>subroutine: My Subroutine|invalid cond=>condition: Yes or No?|approved:>http://www.google.com c2=>condition: Good idea|rejected io=>inputoutput: catch something...|request para=>parallel: parallel tasks st->op1(right)->cond cond(yes, right)->c2 cond(no)->para c2(true)->io->e c2(false)->e para(path1, bottom)->sub1(left)->op1 para(path2, right)->op2->e st@>op1({"stroke":"Red"})@>cond({"stroke":"Red","stroke-width":6,"ar網站建設制作row-end":"classic-wide-long"})@>c2({"stroke":"Red"})@>op2({"stroke":"Red"})@>e({"stroke":"Red"})</textarea></div> <div><button id="run" type="button">Run</button></div> <div id="canvas"></div> </body> </html>

關鍵詞標簽: 插件 流程圖 前端開發

聲明: 本文由我的SEOUC技術文章主頁發布于:2023-05-27 ,文章Flowchart.js可視化流程圖插件使用方法前端開發主要講述流程圖,插件,前端開發網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_10994.html

我的IDC 網站建設技術SEOUC.COM
專注網站建設,SEO優化,小程序設計制作搭建開發定制網站等,數千家網站定制開發案例,網站推廣技術服務。
  • 5000+合作客服
  • 8年從業經驗
  • 150+覆蓋行業
  • 最新熱門源碼技術文章

    主站蜘蛛池模板: 镇远县| 洛宁县| 专栏| 惠水县| 定兴县| 大安市| 杨浦区| 崇信县| 清水县| 浪卡子县| 博白县| 肥城市| 扶余县| 博湖县| 山东省| 喀喇沁旗| 阿尔山市| 田阳县| 东莞市| 铜山县| 岳阳市| 滦南县| 蚌埠市| 南岸区| 新晃| 武乡县| 巢湖市| 金门县| 天镇县| 彭泽县| 和龙市| 铁岭县| 静安区| 交口县| 麟游县| 京山县| 依兰县| 林芝县| 吴江市| 洱源县| 项城市|