Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs-dev/FactoryTour.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
- 幅 1000px 以上:1440×900 で模型と台帳が同時に収まるように、模型の高さを画面に合わせる。台帳は在庫と作業指示の2段組とし、収まらなければ欄の中でスクロールして、変わった行を見える位置へ送る
- 幅 1000px 未満:模型の直下に**変化の帯**を置き、今の場面で変わった行だけを出す

スマホ幅(375px)では全景だとラベルが読めないので、**カメラ(SVG の viewBox)を今の場面の範囲に寄せる**。範囲は `station`・`actors`・`moves` の置場をすべて含む矩形とし、全体を見せる場面だけ `camera: 'all'` を指定する。
全景だと今の作業が小さく、スマホ幅(375px)ではラベルも読めないので、**画面の幅によらずカメラ(SVG の viewBox)を今の場面の範囲に寄せる**。範囲は `station`・`actors`・`moves` の置場をすべて含む矩形とし、全体を見せる場面だけ `camera: 'all'` を指定する。

**模型のラベルは全幅で「部分」を既定とし、操作の「ラベル 部分/全部」で切り替える**(すべて出すと重なって読めないため)。部分では次だけを出す。全部ではすべて出す(重なりは許容する)。

Expand Down
4 changes: 2 additions & 2 deletions docs/assets/tour/tour.js
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@
});
}

// カメラは狭い画面だけ寄せる。範囲は station・actors・moves の置場をすべて含む
// カメラは画面の幅によらず寄せる。範囲は station・actors・moves の置場をすべて含む
function sceneCodes(scene) {
var codes = [];
function add(code) { if (code && codes.indexOf(code) < 0) codes.push(code); }
Expand All @@ -590,7 +590,7 @@
}

function setSceneCamera(scene) {
camera.codes = scene && isNarrow() && scene.camera !== 'all' ? sceneCodes(scene) : null;
camera.codes = scene && scene.camera !== 'all' ? sceneCodes(scene) : null;
applyCamera();
}

Expand Down