mirror of
https://github.com/ijprest/keyboard-layout-editor.git
synced 2026-04-10 02:00:46 -07:00
Remove unnecessary rendering bits
-- align flags no longer used during rendering
This commit is contained in:
parent
545567b598
commit
ceed023251
1 changed files with 0 additions and 6 deletions
|
|
@ -138,16 +138,10 @@ var $renderKey = {};
|
|||
};
|
||||
|
||||
// Given a key, generate the HTML needed to render it
|
||||
$renderKey.noRenderText = [0,2,1,3,0,4,2,3];
|
||||
$renderKey.html = function(key, $sanitize) {
|
||||
var sizes = unitSizes.px[getProfile(key)]; // always in pixels
|
||||
var parms = getRenderParms(key, sizes);
|
||||
|
||||
// Update the key alignment flags (UI depends on these being up-to-date)
|
||||
key.centerx = key.align&1 ? true : false;
|
||||
key.centery = key.align&2 ? true : false;
|
||||
key.centerf = key.align&4 ? true : false;
|
||||
|
||||
// Update the rects & bounding-box of the key (for click-selection purposes)
|
||||
key.rect = parms.rect;
|
||||
key.rect2 = parms.rect2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue