mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2025-02-16 08:29:51 -05:00
Fixing broken static function in Home.js, SVG2Canvas.js
This commit is contained in:
parent
45b5b5c343
commit
0650f47071
2 changed files with 5 additions and 5 deletions
|
@ -84,7 +84,7 @@ export default class Home {
|
|||
timeoutEvent = undefined;
|
||||
}
|
||||
|
||||
static getMouseTarget = function (e) {
|
||||
static getMouseTarget (e) {
|
||||
var t = e.target;
|
||||
if (t == frame) {
|
||||
return null;
|
||||
|
@ -98,7 +98,7 @@ export default class Home {
|
|||
return (!t.parentNode || (t.parentNode == frame)) ? null : t;
|
||||
}
|
||||
|
||||
static handleTouchEnd = function (e) {
|
||||
static handleTouchEnd (e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
if (e.touches && (e.touches.length > 1)) {
|
||||
|
@ -307,7 +307,7 @@ export default class Home {
|
|||
}
|
||||
|
||||
class Events {
|
||||
static getTargetPoint = function (e) {
|
||||
static getTargetPoint (e) {
|
||||
if (isTablet) {
|
||||
if (e.touches && (e.touches.length > 0)) {
|
||||
return {
|
||||
|
|
|
@ -394,7 +394,7 @@ export default class SVG2Canvas {
|
|||
ctx.fillText(kid.textContent, 0, 0);
|
||||
}
|
||||
|
||||
static renderPath = function (spr, ctx) {
|
||||
static renderPath (spr, ctx) {
|
||||
var d = spr.getAttribute('d');
|
||||
var commands = SVG2Canvas.getCommandList(d);
|
||||
if (!commands) {
|
||||
|
@ -856,7 +856,7 @@ export default class SVG2Canvas {
|
|||
return cmd;
|
||||
}
|
||||
|
||||
static setRelativeLine = function (cmd) {
|
||||
static setRelativeLine (cmd) {
|
||||
endp = Vector.sum(endp, {
|
||||
x: cmd[1],
|
||||
y: cmd[2]
|
||||
|
|
Loading…
Reference in a new issue