Skip to content

Commit

Permalink
feat: yomi がないときは処理をスキップするようにした
Browse files Browse the repository at this point in the history
  • Loading branch information
oti committed May 31, 2023
1 parent b2c1c89 commit 8e27891
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions generate-decomoji.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ var offsetY = Math.min(totalSizeY / 2, minimumPositionY)

// アートボードを生成
rows.forEach(function(row, i) {
if (!row.yomi) return;
var x = (i % columnCount) * (artboardSize + gutterSize) - offsetX
var y = (Math.floor(i / columnCount) * (artboardSize + gutterSize) * -1) + offsetY
var artboard = docRef.artboards.add([
Expand All @@ -81,6 +82,7 @@ rows.forEach(function(row, i) {

// 文字を入れていく
rows.forEach(function(row, i) {
if (!row.yomi) return;
var calculated = calcDrawingText(row.content)

var textRef = docRef.textFrames.add()
Expand Down

0 comments on commit 8e27891

Please sign in to comment.