Skip to content

Commit 97eda5e

Browse files
authored
Merge pull request #31 from Next2D/develop
#16 デフォルトのページトップの設定をconfigに追加
2 parents 5cda5fc + 0652020 commit 97eda5e

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@next2d/framework-typescript-template",
33
"description": "Next2D Framework default TypeScript template.",
4-
"version": "2.0.6",
4+
"version": "2.0.7",
55
"homepage": "https://next2d.app",
66
"bugs": "https://github.com/Next2D/framework-typescript-template/issues/new",
77
"author": "Toshiyuki Ienaga<[email protected]>",

template/src/config/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ The following items are available in `all` that affect functionality.
4444

4545
| name | value | default | description |
4646
|---------------------|-----------------|-------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
47+
| `defaultTop` | string | "top" | ページトップ(index)のViewを指定、設定がない場合はTopViewクラスが起動します。 <br> Specifies the view at the top of the page (index); if not set, the TopView class is invoked. |
4748
| `spa` | boolean | true | Single Page Applicationとして、URLでシーンを制御することができます。 <br> As a Single Page Application, scenes can be controlled by URL. |
4849
| `loading.callback` | string | Loading | 画面遷移の準備が完了するまでの間、ローディング画面を表示するかどうかを設定します。コールバックとして設定されたクラスのstart関数とend関数を呼び出します。 <br> Sets whether or not the loading screen is displayed until the preparation for screen transition is completed. Calls the start and end functions of the class set as the callback. |
4950
| `gotoView.callback` | string or array | ["callback.Background"] | gotoView関数が終了した後にコールバックするクラスを指定できます。 <br> You can specify the class to be called back after the gotoView function exits. |

template/src/config/config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
}
3333
},
3434
"all": {
35+
"defaultTop": "top",
3536
"spa": true,
3637
"loading": {
3738
"callback": "Loading"

0 commit comments

Comments
 (0)