From 0814ee73c84b5d324725762c4376b7126764e2be Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Wed, 16 Sep 2020 11:48:06 +0200 Subject: [PATCH] windows are back --- src/components/mixins.js | 22 +-- src/components/objects/Project.vue | 12 +- src/store/modules/project.js | 220 ++++++++++++++--------------- src/store/modules/projects.js | 10 +- 4 files changed, 130 insertions(+), 134 deletions(-) diff --git a/src/components/mixins.js b/src/components/mixins.js index eb9c040..8d14e33 100644 --- a/src/components/mixins.js +++ b/src/components/mixins.js @@ -60,18 +60,18 @@ export default { reject(src) } }) - }, - createGradientCanvas (c1, c2) { - var ctx = document.createElement('canvas').getContext('2d') - ctx.canvas.width = 1024 - ctx.canvas.height = 1024 - var lingrad = ctx.createLinearGradient(0, 0, 0, 1024) - lingrad.addColorStop(0, c1) - lingrad.addColorStop(1, c2) - ctx.fillStyle = lingrad - ctx.fillRect(0, 0, 1024, 1024) - return ctx.canvas } + // createGradientCanvas (c1, c2) { + // var ctx = document.createElement('canvas').getContext('2d') + // ctx.canvas.width = 1024 + // ctx.canvas.height = 1024 + // var lingrad = ctx.createLinearGradient(0, 0, 0, 1024) + // lingrad.addColorStop(0, c1) + // lingrad.addColorStop(1, c2) + // ctx.fillStyle = lingrad + // ctx.fillRect(0, 0, 1024, 1024) + // return ctx.canvas + // } // , // /** // * Converts an HSL color value to RGB. Conversion formula diff --git a/src/components/objects/Project.vue b/src/components/objects/Project.vue index 7f6e886..e944a80 100644 --- a/src/components/objects/Project.vue +++ b/src/components/objects/Project.vue @@ -1,9 +1,9 @@