1. Get NPM. 2. Create a new folder on your machine for your package and navigate to that folder using command line interface. 3. Run the following commands for installing the Office NPM package containing the Visio JS.
npm init npm install @microsoft/office-js
Once installed, the script reference can be used as <script src=”node_modules\@microsoft\office-js\embedded\visio-web-embedded.js”></script>
IntelliSense definitions can be acquired either by • Running npm install @types/office-js using command line interface or • Referring the index file as ///<reference path=”node_modules\@microsoft\office-js\dist\office.d.ts” />
We’re constantly looking for ways to improve Visio Online APIs and invite you to send us your ideas through our UserVoice site. For questions about Visio Online APIs and other features, please email us at firstname.lastname@example.org. You can also follow on Twitter, LinkedIn, Facebook and YouTube for the latest around Visio.