Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

운영반영 #2719

Merged
merged 4 commits into from
Apr 26, 2024
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
14 changes: 14 additions & 0 deletions extern/util/static.js
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,20 @@ EntryStatic.getDefaultFontFamily = function() {
}
};

EntryStatic.getCategoryByBlock = function(blockName) {
if (!blockName) {
return false;
}
const allBlocks = EntryStatic.getAllBlocks();
for (let i = 0, len = allBlocks.length; i < len; i++) {
const blocks = allBlocks[i].blocks;
if (blocks.indexOf(blockName) > -1) {
return allBlocks[i].category;
}
}
return false;
};

// for server node js code
if (typeof exports === 'object') {
exports.blockInfo = EntryStatic.blockInfo;
Expand Down
1 change: 1 addition & 0 deletions src/class/intro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class EntryIntro implements IEntry.Intro {
}
this.view_.addClass('active');
view.appendTo(this.view_);
Entry.windowResized.notify();
}

removeView() {
Expand Down
2 changes: 1 addition & 1 deletion src/class/stage.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ Entry.Stage = class Stage {
Entry.requestUpdate = false;
return;
}
this._app.render();
this.updateForce();

if (Entry.engine.isState('stop') && this.objectUpdated) {
this.objectUpdated = false;
Expand Down
Loading