Skip to content

Commit

Permalink
縦書きを追加したときに選択状態になるように変更。
Browse files Browse the repository at this point in the history
  • Loading branch information
new-sankaku committed Oct 14, 2024
1 parent 32f3b9e commit 0da5bd6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SP-MangaEditer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@
<i class="material-icons">east</i>
<span data-i18n="newText">New Text</span>
</button>
<button id="openWindow">
<button id="verticalText">
<i class="material-icons">text_fields</i>
<i class="material-icons">south</i>
<span data-i18n="newText">New Text</span>
Expand Down
2 changes: 1 addition & 1 deletion SP-MangaEditer/js/sidebar/text/TextEffect.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function createTextbox() {

canvas.add(textbox);
canvas.setActiveObject(textbox);
updateLayerPanel();
// updateLayerPanel();
}

function toggleShadow() {
Expand Down
4 changes: 3 additions & 1 deletion SP-MangaEditer/js/sidebar/text/VerticalText.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

document.addEventListener('DOMContentLoaded', function() {
openButton = $("openWindow");
openButton = $("verticalText");
openButton.addEventListener("click", function () {
var selectedFont = $('fontSelector').value;
var fontsize = $("fontSizeSlider").value
Expand All @@ -19,6 +19,8 @@ document.addEventListener('DOMContentLoaded', function() {

const cjkText = new VerticalTextbox("new", style);
canvas.add(cjkText);
canvas.setActiveObject(cjkText);
canvas.renderAll();
});
});

Expand Down

0 comments on commit 0da5bd6

Please sign in to comment.