Skip to content

Commit 6ddcbdf

Browse files
author
Mikahil Ilin
committed
add pen drawing and erasing
1 parent 11265a1 commit 6ddcbdf

File tree

7 files changed

+560
-469
lines changed

7 files changed

+560
-469
lines changed

app.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Vue.createApp({
88
screenElements: [],
99
currentLayer: null,
1010

11-
activeTool: "frame",
11+
activeTool: "pen",
1212
activeTab: "code",
1313

1414
isInverted: false,
@@ -165,10 +165,10 @@ Vue.createApp({
165165
}
166166
},
167167
saveLayers() {
168-
localStorage.setItem(
169-
"lopaka_layers",
170-
JSON.stringify(this.screenElements)
171-
);
168+
// localStorage.setItem(
169+
// "lopaka_layers",
170+
// JSON.stringify(this.screenElements)
171+
// );
172172
},
173173
addImageToCanvas(name) {
174174
this.$refs.fuiCanvas.addImageToCanvas(name);

js/components.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ const fuiToolsComponent = {
151151
},
152152
data() {
153153
return {
154-
toolsList: ["frame", "box", "line", "dot", "circle", "disc"],
154+
toolsList: ["pen", "frame", "box", "line", "dot", "circle", "disc"],
155155
};
156156
},
157157
};

js/const.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ const codeGenerators = {
6161

6262
const codeDeclarators = {
6363
u8g2: getU8g2Declarations,
64+
flipper: getFlipperDeclarations,
6465
};
6566

6667
const invertedHeaders = {

0 commit comments

Comments
 (0)