Skip to content

Commit

Permalink
Merge pull request #48 from Next2D/develop
Browse files Browse the repository at this point in the history
#1 デフォルトのページトップの設定をconfigに追加
  • Loading branch information
ienaga authored Nov 13, 2023
2 parents 96e0dfe + 850ba11 commit 89fa941
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@next2d/framework-template",
"description": "Next2D Framework default JavaScript template.",
"version": "3.0.4",
"version": "3.0.5",
"homepage": "https://next2d.app",
"bugs": "https://github.com/Next2D/framework-template/issues/new",
"author": "Toshiyuki Ienaga<ienaga@next2d.app>",
Expand Down
1 change: 1 addition & 0 deletions template/src/config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ The following items are available in `all` that affect functionality.

| name | value | default | description |
|---------------------|-----------------|-------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `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. |
| `spa` | boolean | true | Single Page Applicationとして、URLでシーンを制御することができます。 <br> As a Single Page Application, scenes can be controlled by URL. |
| `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. |
| `gotoView.callback` | string or array | ["callback.Background"] | gotoView関数が終了した後にコールバックするクラスを指定できます。 <br> You can specify the class to be called back after the gotoView function exits. |
Expand Down
1 change: 1 addition & 0 deletions template/src/config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
}
},
"all": {
"defaultTop": "top",
"spa": true,
"loading": {
"callback": "Loading"
Expand Down

0 comments on commit 89fa941

Please sign in to comment.