Skip to content

Commit

Permalink
Add layout data for bmp-3
Browse files Browse the repository at this point in the history
  • Loading branch information
hakatashi committed Apr 18, 2018
1 parent abfb920 commit 3785dac
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 2 deletions.
3 changes: 3 additions & 0 deletions configs/bmp-1.ls
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
module.exports =
name: 'bmp-1'
layout: 'bmp-1'
chart:
x: 28.35
y: 728.5
codepoint: 0x0000
3 changes: 3 additions & 0 deletions configs/bmp-2.ls
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
module.exports =
name: 'bmp-2'
layout: 'bmp-2'
chart:
x: 28.35
y: 728.5
codepoint: 0x4000
5 changes: 4 additions & 1 deletion configs/bmp-3.ls
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
module.exports =
name: 'bmp-3'
layout: 'bmp-2'
layout: 'bmp-3'
chart:
x: 28.35
y: 28.35
codepoint: 0x8000
3 changes: 3 additions & 0 deletions data/layouts/bmp-3.ai
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/layouts/bmp-3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/compose-poster.ls
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = (chart-svg, config) ->
for child in Array::slice.call poster-element.node.children, 0
poster.append child

chart.transform "translate(28.35, 728.5) scale(#{1627.09 / 3840})"
chart.transform "translate(#{config.chart.x}, #{config.chart.y}) scale(#{1627.09 / 3840})"

svg = xmlserializer.serialize-to-string paper.node
window.close!
Expand Down

0 comments on commit 3785dac

Please sign in to comment.