Skip to content

Commit

Permalink
Updated artboard
Browse files Browse the repository at this point in the history
  • Loading branch information
nwittwer committed Oct 21, 2018
1 parent 39432b4 commit d3169b8
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/js/features/artboard/artboard.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
const $ = require('jquery');
import { app } from "../../index";

import { updateDimensions, returnDimensions } from "../artboard/artboard-dimensions";
import { artboardListeners } from "../artboard/artboard-listeners";
import addArtboard from "../artboard/artboard-add";

export default class Artboard {
constructor() {
this.app = app;
constructor(options) {
this.$el = $('.artboard');

// Attach eventListeners
artboardListeners();

// Update all the artboard dimensions
// updateDimensions(this.$el);

// this.createFirstNewButton();

// Dimensions
// this.dimensions.init();
// Resizable artboard
// this.resize.init();
// Add artboards
// this.watchers.init();

// Any functions that need to fire on first load
// Defined below
this.firstLoad();
}

add(placement, event, width, height, fn) {
addArtboard(placement, event, width, height, fn);
}

// Other functions
firstLoad() {
// this.createFirstNewButton();
}
}

// Usage:
Expand Down

0 comments on commit d3169b8

Please sign in to comment.