超碰中文网,91久久精品日日躁夜夜躁欧美,一区二区三区精品道,一区二区国产在线观看,亚洲精品中文字幕乱码一区二区,天天看片高清影视在线观看,久久99精品久久久久蜜桃,久久成人影视

VPS參考測評推薦
專注分享VPS主機優惠信息
衡天云優惠活動
熱網互聯2026年促銷活動
hostkvm優惠促銷活動
zji優惠促銷活動
QQGNET優惠促銷活動
QQGNET優惠促銷活動

什么是思維導圖?如何在小程序中使用F6繪制思維導圖?(F的思維導圖怎么畫)

主機參考:VPS測評參考推薦/專注分享VPS服務器優惠信息!若您是商家可以在本站進行投稿,查看詳情!此外我們還提供軟文收錄、PayPal代付、廣告贊助等服務,查看詳情!
我們發布的部分優惠活動文章可能存在時效性,購買時建議在本站搜索商家名稱可查看相關文章充分了解該商家!若非中文頁面可使用Edge瀏覽器同步翻譯!PayPal代付/收錄合作

什么是思維導圖?如何在小程序里畫思維導圖?下面這篇文章介紹了在小程序中使用F6繪制思維導圖的方法,希望對你有所幫助!

什么是思維導圖?如何在小程序中使用F6繪制思維導圖?(F的思維導圖怎么畫)

什么是思維導圖?思維導圖是20世紀70年代由英國的托尼·博贊提出的一種輔助思維工具。以目標主題為中心節點,不斷延伸聯想,分解探索,最終形成完整的樹形圖。從具體的操作過程來看,也可以理解為探索過程的可視化,完整記錄每一次聯想的結果。這種形式更符合人們的思維方式,最終的畫面也讓我們對主題有了更好的體感和整體理解。

1-2.gif

因為思維導圖側重于思考,而我們的正常活動離不開思考,所以思維導圖的應用非常廣泛。如總結、演示、頭腦風暴等。它只需要筆和紙來實現,當然,有大量的在線和獨立的應用程序可以支持地圖的制作。如果我們的產品需要圍繞一個主題展示多層相關信息,我們可以采取思維導圖的形式。F6可以很容易地在小程序中繪制腦圖,如上圖的效果。有相關需求的同學值得一試。【相關學習推薦:小程序開發教程】

如何畫出f6.antv.vision/zh/docs/exa在F6的演示例子可以參考…本節代碼已經開源,有興趣可以去查一下。

Github.com/antvis/F6/t...微信github.com/antvis/F6/t...先在支付寶安裝。

NPM install @ antv/F6 @ antv/f6-支付寶-Sdata.js

導出默認{ id: # 39;建模方法 # 39;,孩子:[{ id: # 39;分類 # 39;,孩子:[{ id: # 39;邏輯回歸 # 39;,},{ id: # 39;線性判別分析 # 39;,},{ id: # 39;規則 # 39;,},{ id: # 39;決策樹 # 39;,},{ id: # 39;樸素貝葉斯 # 39;,},{ id: # 39;k最近鄰 # 39;,},{ id: # 39;概率神經網絡 # 39;,},{ id: # 39;支持向量機 # 39;,},],},{ id: # 39;共識 # 39;,孩子:[{ id: # 39;模特多樣性 # 39;,孩子:[{ id: # 39;不同的初始化 # 39;,},{ id: # 39;不同的參數選擇 # 39;,},{ id: # 39;不同的架構 # 39;,},{ id: # 39;不同的建模方法 # 39;,},{ id: # 39;不同的訓練集 # 39;,},{ id: # 39;不同的功能集 # 39;,},],},{ id: # 39;方法 # 39;,孩子:[{ id: # 39;分類器選擇 # 39;,},{ id: # 39;分類器融合 # 39;,},],},{ id: # 39;普通 # 39;,孩子:[{ id: # 39;裝袋 # 39;,},{ id: # 39;助推 # 39;,},{ id: # 39;AdaBoost # 39,},],},],},{ id: # 39;回歸 # 39;,孩子:[{ id: # 39;多元線性回歸 # 39;,},{ id: # 39;偏最小二乘法 # 39;,},{ id: # 39;多層前饋神經網絡 # 39;,},{ id: # 39;通用回歸神經網絡 # 39;,},{ id: # 39;支持向量回歸 # 39;, }, ], }, ],};索引. json

{ 默認標題 : 思維導圖, 使用組件 :{ f6-canvas ;: @ antv/f6-支付寶/es/container/container ;} }索引. js

從 # 39;@ antv/F6 # 39;;從 # 39;導入樹形圖;@ antv/F6/dist/extends/graph/tree graph # 39;;從 # 39;導入{ wrapContext };../../../common/utils/context # 39;;從 # 39;。/data # 39;;/* * *腦圖-從節點自動雙邊分布*/page ({canvas: null,CTX: null,渲染器: # 39;'、// mini、mini-native等。、F6需要、標記環境是否isCanvasInit: false、// canvas就緒graph: null、data: {width: 375、height: 600、pixel ratio: 2、Force: false、}、onload(){//注冊自定義樹、節點等。F6 . register graph( # 39;樹形圖 # 39;,TreeGraph);//同步獲取窗口const {windowwidth,windowheight,pixel ratio } = my . getsysteminfosync()的寬度和高度;this . setdata({ width:window width,height: windowHeight,pixelRatio,});},/* * *初始化cnavas回調,緩存獲取的context * @param {*} ctx繪制context * @param {*} rect寬度和高度信息* @param {*} canvas canvas對象,Null * @ param {*}渲染器為mini時,渲染器使用canvas 1.0還是canvas 2.0,mini | mini -native */handle init(CTX,rect,canvas,renderer){ this . iscanvasinit = true;this . CTX = wrap context(CTX);this.renderer = rendererthis.canvas =畫布;this . update chart();},/* * * canvas分發的事件轉發給graph instance */handle touch(e){ this . graph ;this . graph . emit event(e);},updateChart() { const { width,height,pixelRatio } = this.data//創建F6實例this . graph = new F6 . treegraph({ context:this . CTX,renderer: this.renderer,width,height,pixel ratio,fitView: true,modes:{ default:[{ type: # 39;折疊-擴展 # 39;,onChange: function onChange(item,collapsed){ const model = item . get model();model.collapsed = collapsed返回true}, }, 'drag -canvas # 39;, 'zoom -canvas # 39;,],},defaultNode: { size: 26,錨點:[ [0,0.5],[1,0.5],],},default edge:{ type: # 39;立方-水平 # 39;,},布局:{ type: # 39;思維導圖 # 39;,方向: # 39;H # 39,getHeight:函數get height(){ return 16;},getWidth:函數getWidth(){ return 16;},getVGap:函數getVGap(){ return 10;},getHGap:函數geth gap(){ return 50;}, }, });設centex = 0;this . graph . node(function(node){ if(node . id = = = # 39;建模方法 # 39;){ centerX = node.x}//position的值(因為ESlint禁止嵌套的三進制表達式,所以單獨提取寫)讓position _ value = nullif(node . children ; node . children . length gt;0){ position _ value = # 39;左 # 39;;} else if(node . x gt;centex)position _ value = # 39;對 # 39;;else position _ value = # 39左 # 39;;return { label: node.id,labelCfg: { offset: 5,position: position_value,},};});this.graph.data(數據);this . graph . render();this . graph . fit view();},});index.axml

ltf6-畫布寬度= { { width } } height = { { height } } forceMini = { { forceMini } } pixelRatio = { { pixelRatio } } onTouchEvent = handleTouch onInit = handleInit gt lt/f6-canvas gt;先裝微信。

NP install @antv/f6-wx-s @ antv/F6-wx因為微信對npm包不是很友好,所以我們單獨打包了@ antv/F6-wx,幫助用戶簡化操作。

Data.js同上

索引. json

{ 默認標題 : 大腦”、 使用組件 :{ f6-canvas ;: @ antv/f6-wx/canvas/canvas ;}}index.wxml

ltf6-畫布寬度= { { width } } height = { { height } } forceMini = { { forceMini } } pixelRatio = { { pixelRatio } } bind:onTouchEvent = ;handleTouch bind:on init = ;handleInit gt lt/f6-canvas gt;索引. js

從 # 39;@ antv/f6-wx # 39;;從 # 39;導入樹形圖;@ antv/f6-wx/extends/graph/tree graph # 39;;從 # 39;。/data # 39;;/* * *腦圖-從節點自動雙邊分布*/page ({canvas: null,CTX: null,渲染器: # 39;'、// mini、mini-native等。、F6需要、標記環境是否isCanvasInit: false、// canvas就緒graph: null、data: {width: 375、height: 600、pixel ratio: 1、Force: false、}、onload(){//注冊自定義樹、節點等。F6 . register graph( # 39;樹形圖 # 39;,TreeGraph);//同步獲取窗口寬度和高度const {windowwidth,windowheight,pixel ratio } = wx . getsysteminfosync();this . setdata({ width:window width,height: windowHeight,// pixelRatio,});},/* * *初始化cnavas回調,緩存獲取的上下文* @param {*} ctx繪制上下文* @param {*} rect寬度和高度信息* @param {*} canvas畫布對象,Null * @ param {*}渲染器為mini時,渲染器使用canvas 1.0還是canvas 2.0,mini | mini -native */handle init(event){ const { CTX,rect,canvas,renderer } = event . detailthis . iscanvasinit = true;this.ctx = ctxthis.renderer = rendererthis.canvas =畫布;this . update chart();},/* * * canvas分發的事件轉發給graph instance */handle touch(e){ this . graph ;this . graph . emit event(e . detail);},updateChart() { const { width,height,pixelRatio } = this.data//創建F6實例this . graph = new F6 . treegraph({ context:this . CTX,renderer: this.renderer,width,height,pixel ratio,fitView: true,modes:{ default:[{ type: # 39;折疊-擴展 # 39;,onChange: function onChange(item,collapsed){ const model = item . get model();model.collapsed = collapsed返回true}, }, 'drag -canvas # 39;, 'zoom -canvas # 39;,],},defaultNode: { size: 26,錨點:[ [0,0.5],[1,0.5],],},default edge:{ type: # 39;立方-水平 # 39;,},布局:{ type: # 39;思維導圖 # 39;,方向: # 39;H # 39,getHeight:函數get height(){ return 16;},getWidth:函數getWidth(){ return 16;},getVGap:函數getVGap(){ return 10;},getHGap:函數geth gap(){ return 50;}, }, });設centex = 0;this . graph . node(function(node){ if(node . id = = = # 39;建模方法 # 39;){ centerX = node.x}//position的值(因為ESlint禁止嵌套的三進制表達式,所以單獨提取寫)讓position _ value = nullif(node . children ; node . children . length gt;0){ position _ value = # 39;左 # 39;;} else if(node . x gt;centex)position _ value = # 39;對 # 39;;else position _ value = # 39左 # 39;;return { label: node.id,labelCfg: { offset: 5,position: position_value,},};});this.graph.data(數據);this . graph . render();this . graph . fit view();},});歡迎參與討論。如果你對思維導圖或者圖形可視化感興趣,可以加我的微信openwayne到我們的微信群討論。

有關編程的更多信息,請訪問:編程入門!!也就是上面的思維導圖是什么?如何在小程序中使用F6繪制思維導圖?更多詳情請關注主機參考其他相關文章!

這幾篇文章你可能也喜歡:

本文由主機參考刊發,轉載請注明:什么是思維導圖?如何在小程序中使用F6繪制思維導圖?(F的思維導圖怎么畫) http://www.k2270.com/76825.html

【騰訊云】領8888元采購禮包,搶爆款云服務器 每月 9元起,個人開發者加享折上折!
打賞
轉載請注明原文鏈接:主機參考 » 什么是思維導圖?如何在小程序中使用F6繪制思維導圖?(F的思維導圖怎么畫)
主機參考僅做資料收集,不對商家任何信息及交易做信用擔保,購買前請注意風險,有交易糾紛請自行解決!請查閱:特別聲明

評論 搶沙發

評論前必須登錄!