Skip to content
Open
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
11 changes: 11 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export module Serial {
// Initialize with defaults
let current: Key = new Key();
let kbd = new Keyboard();
let cluster = { x: 0, y: 0 };
var align = 4;

for (var r = 0; r < rows.length; ++r) {
Expand Down Expand Up @@ -150,6 +151,16 @@ export module Serial {
);
}
if (item.r != null) current.rotation_angle = item.r;
if (item.rx != null) {
current.rotation_x = cluster.x = item.rx;
current.x = cluster.x;
current.y = cluster.y;
}
if (item.ry != null) {
current.rotation_y = cluster.y = item.ry;
current.x = cluster.x;
current.y = cluster.y;
}
if (item.rx != null) current.rotation_x = item.rx;
if (item.ry != null) current.rotation_y = item.ry;
if (item.a != null) align = item.a;
Expand Down
Loading