Skip to content

Commit

Permalink
Merge pull request #53 from Next2D/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
ienaga authored Mar 31, 2022
2 parents 2cf6655 + 4e45350 commit a403804
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
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",
"description": "Next2D Framework",
"version": "1.1.0",
"version": "1.2.0",
"homepage": "https://next2d.app",
"bugs": "https://github.com/Next2D/Framework/issues/new",
"author": "Toshiyuki Ienaga <[email protected]>",
Expand Down
6 changes: 3 additions & 3 deletions src/Application.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ export class Application extends Model
const { Matrix } = next2d.geom;

const bitmapData = new BitmapData(
root.stage.stageWidth * ratio,
root.stage.stageHeight * ratio,
root.stage.canvasWidth * ratio,
root.stage.canvasHeight * ratio,
true, 0
);

Expand Down Expand Up @@ -558,4 +558,4 @@ export class Application extends Model

return returnValue;
}
}
}
20 changes: 19 additions & 1 deletion src/view/ViewModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export class ViewModel extends Model
*
* @param {View} view
* @return {Promise|void}
* @method
* @abstract
*/
// eslint-disable-next-line no-unused-vars,no-empty-function
Expand All @@ -26,8 +27,25 @@ export class ViewModel extends Model
*
* @param {View} view
* @return {void}
* @method
* @abstract
*/
// eslint-disable-next-line no-unused-vars,no-empty-function
unbind (view) {}
}

/**
* @description bind関数で非同期で処理を開始する共通関数です。
* Common function to start processing asynchronously with bind functions.
*
* @return {Promise}
* @method
* @public
*/
factory ()
{
return new Promise((resolve) =>
{
requestAnimationFrame(() => { resolve() });
});
}
}

0 comments on commit a403804

Please sign in to comment.