Skip to content

Commit

Permalink
Implement Stroke config
Browse files Browse the repository at this point in the history
  • Loading branch information
pb10005 committed Apr 7, 2020
1 parent 647c334 commit 708ae27
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/DiagramEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ export default {
},
width: parseInt(item.width) || 150,
height: parseInt(item.height) || 60,
stroke: item.stroke,
strokeWeight: item.strokeWeight,
shape: item.shape,
point: {
x: 10,
Expand All @@ -198,6 +200,8 @@ export default {
this.tmpNode.content.url = item.content.url;
this.tmpNode.content.color = item.content.color;
this.tmpNode.shape = item.shape;
this.tmpNode.stroke = item.stroke;
this.tmpNode.strokeWeight = item.strokeWeight;
this.tmpNode.width = item.width;
this.tmpNode.height = item.height;
this.isModalActive = false;
Expand All @@ -209,6 +213,8 @@ export default {
tmp.content.url = item.content.url;
tmp.content.color = item.content.color;
tmp.shape = item.shape;
tmp.stroke = item.stroke;
tmp.strokeWeight = item.strokeWeight;
tmp.width = parseInt(item.width);
tmp.height = parseInt(item.height);
this.isEditModalActive = false;
Expand Down
12 changes: 12 additions & 0 deletions src/lib/EditNodeModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
v-model="newNode.height"
placeholder="height"
/><br />
<VInput
type="text"
v-model="newNode.stroke"
placeholder="stroke"
/><br />
<VInput
type="number"
v-model="newNode.strokeWeight"
placeholder="stroke weight"
/><br />
<VSelect v-model="newNode.shape" placeholder="Select shape">
<option value="rectangle" selected>Rectangle</option>
<option value="ellipse">Ellipse</option> </VSelect
Expand All @@ -37,6 +47,8 @@ export default {
shape: "rectangle",
width: 150,
height: 60,
stroke: "",
strokeWeight: 0,
content: {
text: "none",
url: "",
Expand Down
6 changes: 3 additions & 3 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
devServer: {
host: '0.0.0.0',
host: "0.0.0.0",
disableHostCheck: true
}
}
}
};

0 comments on commit 708ae27

Please sign in to comment.