0.0.3 • Published 6 years ago

visio-embedded-js-barathe v0.0.3

Weekly downloads
13
License
LICENSE
Repository
-
Last release
6 years ago

Visio Javascript API

Visio Javascript API enables you to interact with Visio diagrams.

Usage

import {} from "visio-embedded-js-barathe/office.runtime"
import {} from 'visio-embedded-js-barathe/visio'

Visio.run(function (ctx) {
    var page = ctx.document.getActivePage();
    var shapes = page.shapes;
    shapes.load();
    return ctx.sync().then(function () {
        for(var i=0; i<shapes.items.length;i++)
        {
            var shape = shapes.items[i];
            console.log("Shape Text: " + shape.text );
        }
    });
}).catch(function(error) {
    if (error instanceof OfficeExtension.Error) {
        console.log ("Debug info: " + JSON.stringify(error.debugInfo));
    }
});