View unanswered posts | View active topics It is currently 2018-08-20 9:24



Reply to topic  [ 2 posts ] 
 经doodle编辑过的面板在make中如何加载显示 
Author Message
新手上路

Joined: 2018-05-08 9:55
Posts: 3
Post 经doodle编辑过的面板在make中如何加载显示
您好!想请问一下如何将经过doodle面板编辑器编辑后的面板产生的json数据与所在的设备进行关联并显示出来?
我选用的是doodle中自带的服务器模型HAIDE-server2301。
首先,设备所在机柜的位置信息及型号信息的json为:
Code:
var deviceData = [{"client":{"loc":35},"id":"twaver.idc.HAIDE-server2301.device","parentObjectId":"twaver.idc.rack42_40"}];

接着我用doodle对该设备的面板进行了修改,产生的json数据为:
Code:
var devicePanel=[{"id":"twaver.idc.HAIDE-server2301.panel"},{"position":[303,6,0],"client":{"decoration":false},"id":"twaver.idc.USB_14.panel"},{"position":[346.5,9,0],"client":{"decoration":false},"id":"twaver.idc.USB_15.panel"},{"position":[367,9,0],"client":{"decoration":false},"id":"twaver.idc.USB_15.panel"},{"position":[2.5,30,0],"client":{"decoration":false},"id":"twaver.idc.drive.panel"},{"position":[116,30,0],"client":{"decoration":false},"id":"twaver.idc.drive.panel"},{"position":[230,30,0],"client":{"decoration":false},"id":"twaver.idc.drive.panel"},{"position":[343,30.5,0],"client":{"decoration":false},"id":"twaver.idc.drive.panel"},{"position":[116,60,0],"client":{"decoration":false},"id":"twaver.idc.drive.panel"},{"position":[2.5,60.5,0],"client":{"decoration":false},"id":"twaver.idc.drive.panel"},{"position":[230.5,60.5,0],"client":{"decoration":false},"id":"twaver.idc.drive.panel"},{"position":[343,60.5,0],"client":{"decoration":false},"id":"twaver.idc.drive.panel"},{"position":[181.5,10,0],"id":"twaver.idc.HDMI.panel"},{"position":[230.5,12,0],"id":"twaver.idc.MicroHDMI.panel"}]


如何将两者关联呢?如何在make中进行加载使得这台设备能够显示出我想要的面板的样子呢?


2018-05-08 14:54
Profile
TWaver开发组
User avatar

Joined: 2018-04-16 16:11
Posts: 66
Post Re: 经doodle编辑过的面板在make中如何加载显示
您好,请参考我们官网文档给出的使用说明:http://doc.servasoft.com/twaver-document-center/recommended/twaver-doodle/doodle结合make的使用方法/

场景和机柜导入的方式并不一样,场景是通过 load 和 addByDescendant 两个函数导入,而机柜中的设备是双击以后,再导入到视图中,通过 doodle.utils.loadDeviceData() 方法加载进去的


2018-05-09 17:17
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: