/* -------------------------- */ /* imagePlugin */ /* -------------------------- */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (factory((global.imagePlugin = global.imagePlugin || {}))); }(this, function (exports) { 'use strict'; var imagePlugin = function imagePlugin() { var name = name || "space.jpg" var _svg = __mapper('svg').svg() var imgs = _svg.selectAll("image").data([0]) imgs.enter() .insert("svg:image") .attr("xlink:href", "./" + name) .attr("x", "0") .attr("y", "0") .attr("width", "600") .attr("height", "400") function imagePlugin() { } return imagePlugin } exports.imagePlugin = imagePlugin }));