Fork me on GitHub

BidirectionalArrowWire

Jump to Table of Contents

The BidirectionalArrowWire provides a directed wire implementation.

Getting Started

To include the source files for BidirectionalArrowWire and its dependencies, first load the YUI seed file, the WireIt seed file, and set the path to the WireIt build directory.

<script src="http://yui.yahooapis.com/3.17.2/build/yui/yui-min.js"></script>
<script src="../../build/wireit-loader/wireit-loader.js"></script>
<script>YUI_config.groups.wireit.base = '../../build/';</script>

Next, create a new YUI instance for your application and populate it with the modules you need by specifying them as arguments to the YUI().use() method. YUI will automatically load any dependencies required by the modules you specify.

<script>
// Create a new YUI instance and populate it with the required modules.
YUI().use('bidirectional-arrow-wire', function (Y) {
    // BidirectionalArrowWire is available and ready for use. Add implementation
    // code here.
});
</script>

Using BidirectionalArrowWire

Quick Start

Instantiate a Y.Graphic object, and add a shape with the type Y.BidirectionalArrowWire. See bidirectional-arrow-basic.html.