Skip to content

Commit

Permalink
drop inner
Browse files Browse the repository at this point in the history
  • Loading branch information
Bradley A. Thornton committed Sep 30, 2016
1 parent 41821ef commit c9cee3b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions build/js/dld4e-process.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ function textPositions(x1, y1, x2, y2, fontSize) {
rightMiddle: { x: x2 - (fontSize/2), y: y1 + (y2 - y1)/2, textAnchor: "middle", rotate: 90 },
rightBottom: { x: x2 - (fontSize/2), y: y2 - (fontSize/4), textAnchor: "end", rotate: 90 },

bottomLeft: { x: x1 + (fontSize/4), y: y2 , textAnchor: "start", rotate: 0 },
bottomMiddle: { x: (x2 - x1)/2 + x1 , y: y2, textAnchor: "middle", rotate: 0 },
bottomRight: { x: x2 - (fontSize/4), y: y2 , textAnchor: "end", rotate: 0 },
bottomLeft: { x: x1 + (fontSize/4), y: y2 - (fontSize/2), textAnchor: "start", rotate: 0 },
bottomMiddle: { x: (x2 - x1)/2 + x1 , y: y2 - (fontSize/2), textAnchor: "middle", rotate: 0 },
bottomRight: { x: x2 - (fontSize/4), y: y2 - (fontSize/2), textAnchor: "end", rotate: 0 },

center: { x: (x2 - x1)/2 + x1 , y: y1 + (y2 - y1)/2 , textAnchor: "middle", rotate: 0 },
}
Expand Down
2 changes: 1 addition & 1 deletion examples/sample.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#1:36
#1:45
diagram:
fill: "#3d3935"
columns: 5
Expand Down
1 change: 0 additions & 1 deletion templates/aws-filled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ diagram:
fill: "#FF9900"
rows: 5
columns: 5
gridPaddingInner: .05
aspectRatio: "17:11"
gridLines: false
title:
Expand Down

0 comments on commit c9cee3b

Please sign in to comment.