鎶€鏈彂甯?| Forge Viewer涓嶧orge API Node.js瀹㈡埛绔疭DK鐨凾ypeScript澹版槑鏂囦欢鍙戝竷锛?/h1>

Posted AutodeskADN

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了鎶€鏈彂甯?| Forge Viewer涓嶧orge API Node.js瀹㈡埛绔疭DK鐨凾ypeScript澹版槑鏂囦欢鍙戝竷锛?/h1>

浣滀负涓€涓嚌鑱氫笓(jie)涓?cao)绮?man)绁?man)鐨勫洟闃燂紙Autodesk ADN锛夛紝杩欏ぇ杩囸煇栧勾鐨勫矀鑳芥病鏈変竴鐐硅〃绀猴紵锛佽姳寮忕孩鍖呬粈涔堢殑鏃╁凡鍖栧锛屾妧鏈垎浜ぇ瀹朵篃瀹ow鐤插姵浜嗭紝鎵€浠ユ垜浠繖灏辨湰鐫€Make Anything鐨勫垱鏂扮簿绁炴潵鐐瑰共璐э細Autodesk Forge Viewer涓嶧orge API Node.js瀹㈡埛绔疭DK鐨凾ypeScript澹版槑鏂囦欢姝e紡鍙戝竷鍟︼紒


鎶€鏈彂甯?| Forge Viewer涓嶧orge API Node.js瀹㈡埛绔疭DK鐨凾ypeScript澹版槑鏂囦欢鍙戝竷锛?></p> 
<pre class=#馃悥骞村悏绁ュ垎鍓茬嚎


瀵逛簬鏈鍙戝竷锛屾兂蹇呭ぇ瀹剁幇鏈夌殑Forge TypeScript椤圭洰鏃╁氨绛夊緱楗ユ复闅捐€愩€傚尯鍖轰釜绫诲瀷瀹氫箟锛岀姱寰楃潃杩欎箞鍗冨懠涓囧敜濮嬪嚭鏉ュ槢锛熷ぇ姒傚拰澶у杩囧勾娌℃湁缇ゅ彂绁濈锛堝拰绾㈠寘锛変竴鏍凤紝鏄洜涓烘噿鍚у棷銆傘€傘€?/p>


#浠ヤ笂瑷€璁轰笉浠h〃瀹樻柟绔嬪満鍒嗗壊绾?/span>

浠€涔堟槸绫诲瀷瀹氫箟锛熶负浠€涔堥渶瑕佸畠锛?/h1>

閮藉啘鍘?012骞翠簡瀵规浠嶆湁鐤戦棶锛熻鍙傝€?

  • 浠€涔堟槸 TypeScript:

    https://tasaid.com/blog/20171011231943.html?sgs=cnblog

  • 浠€涔堟槸绫诲瀷瀹氫箟鏂囦欢锛?/p>

    https://www.cnblogs.com/silin6/p/7793753.html

闄ゆ涔嬪锛岀被鍨嬪畾涔夊彲浠ュ府鍔╂垜浠細

  • 浣跨敤IDE鐨勫€欓€夋彁绀猴紝濡俈isual Code銆乄ebStorm绛?/p>

  • 浣跨敤TypeDoc绛夌敓鎴愮殑绠€鐣PI鏂囨。锛屼緵鏈湴鎴栧湪绾垮弬鑰?/p>

浣跨敤Forge绫诲瀷瀹氫箟

鐜瑕佹眰

  • TypeScript 2.x鎴栦互涓?/p>

  • Node/NPM

  • 鍚勫ぇ涓绘祦妗嗘灦(Angular/Vue/React)鎴栨棤妗嗘灦

Forge Viewer

  • 瀹夎@types/forge-viewer锛屽苟纭繚鐗堟湰涓?code class="mq-34">6.3.1鎴栦互涓?/p>

    npm install --save-dev @types/three @types/forge-viewer #Viewer绫诲瀷瀹氫箟锛屼緷璧朤HREE.js鐨勫畾涔?/span>


  • 鐒跺悗鍦ㄩ」鐩腑寮曠敤瀹氫箟锛屽湪tsconfig.json涓姞鍏ワ細

    {
        "types": ["forge-viewer"]
    }


Forge API Node.js瀹㈡埛绔疭DK

  • 瀹夎@types/forge-apis

    npm install --save-dev @types/forge-apis

    

  • 鐒跺悗鍦ㄩ」鐩ā鍧椾腑鐩存帴鐓у父寮曠敤瀹㈡埛绔疭DK鍗冲彲

寤朵几闃呰

  • 瀹樻柟绀轰緥锛?/p>

    https://github.com/Autodesk-Forge/viewer-nodejs-typeview.sample

  • 闂鍙嶉锛氭杩庡墠寰€瀹樻柟绀轰緥搴撳弽棣堬紝鎴栧湪鎬濆惁鎻愰棶骞堕檮鏍囩autodesk-forge




浜嗚В鏇村 Autodesk 鏈€鏂板紑鍙戣祫璁?/span>

鎵爜璁块棶鈥淔orge涓枃甯姪涓績鈥?/span>


以上是关于鎶€鏈彂甯?| Forge Viewer涓嶧orge API Node.js瀹㈡埛绔疭DK鐨凾ypeScript澹版槑鏂囦欢鍙戝竷锛?/h1>