How to use fabric-pure-browser - 2 common examples

To help you get started, we’ve selected a few fabric-pure-browser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mudin / indoorjs / src / Indoor.js View on Github external
import fabric from 'fabric-pure-browser';

import { version } from '../package.json';

console.log('fabricJS ', fabric.version || window.fabric.version);
console.log('IndoorJS ', version);

export { version };

// constants
export * from './core/index';

// geometry
export * from './geometry/index';

// map
export * from './map/index';

// floorplan
export * from './floorplan/index';
github mudin / indoorjs / dist / indoor.esm.js View on Github external
}
  }, {
    key: "clear",
    value: function clear() {
      this.arrows = [];
      this.canvas.clear();
    }
  }]);

  return Canvas;
}(Base);
var canvas = function canvas(container, options) {
  return new Canvas(container, options);
};

console.log('fabricJS ', fabric$1.version || window.fabric.version);
console.log('IndoorJS ', version);

export { Canvas, Circle, Connector, Floor, Group, ICON, Icon, Layer, Line, MAP, MARKER, Map, Marker, MarkerGroup, Modes, Point, Polyline, Rect, canvas, circle, connector, floorplan, group, icon, layer, line, map, marker, markerGroup, point, polyline, rect, version };
//# sourceMappingURL=indoor.esm.js.map

fabric-pure-browser

Fabric.js package with no node-specific dependencies (node-canvas, jsdom). The project is published once a day (in case if a new version appears) from 'master' branch of https://github.com/fabricjs/fabric.js repository. You can keep original imports in

MIT
Latest version published 3 years ago

Package Health Score

69 / 100
Full package analysis

Popular fabric-pure-browser functions