2019-02-16 07:28:56 +01:00
|
|
|
import Design from "./design";
|
2018-08-05 18:19:48 +02:00
|
|
|
import Pattern from "./pattern";
|
|
|
|
import Point from "./point";
|
|
|
|
import Path from "./path";
|
|
|
|
import Snippet from "./snippet";
|
2018-07-23 11:44:34 +00:00
|
|
|
import * as utils from "./utils";
|
2018-07-23 11:12:06 +00:00
|
|
|
|
2018-07-23 14:16:39 +00:00
|
|
|
import { version } from "../package.json";
|
|
|
|
|
2019-02-16 07:33:36 +01:00
|
|
|
//const create = function(config, plugins = false) {
|
|
|
|
// const pattern = function(settings) {
|
|
|
|
// Pattern.call(this, config);
|
|
|
|
// if (Array.isArray(plugins)) for (let plugin of plugins) this.use(plugin);
|
|
|
|
// if (plugins) this.use(plugins);
|
|
|
|
// this.apply(settings);
|
|
|
|
//
|
|
|
|
// return this;
|
|
|
|
// };
|
|
|
|
//
|
|
|
|
// // Set up inheritance
|
|
|
|
// pattern.prototype = Object.create(Pattern.prototype);
|
|
|
|
// pattern.prototype.constructor = pattern;
|
|
|
|
//
|
|
|
|
// return pattern;
|
|
|
|
//};
|
2019-02-09 13:45:10 +01:00
|
|
|
|
2018-07-23 11:12:06 +00:00
|
|
|
export default {
|
2018-07-23 14:16:39 +00:00
|
|
|
version: version,
|
2019-02-16 07:33:36 +01:00
|
|
|
// create,
|
2019-02-16 07:28:56 +01:00
|
|
|
Design,
|
2018-08-05 18:19:48 +02:00
|
|
|
Pattern,
|
|
|
|
Point,
|
|
|
|
Path,
|
|
|
|
Snippet,
|
2018-07-26 13:43:12 +00:00
|
|
|
utils,
|
|
|
|
patterns: {},
|
2019-02-15 07:42:56 +01:00
|
|
|
plugins: {}
|
2018-07-23 11:44:34 +00:00
|
|
|
};
|