A web-based drawing app
git clone git://soophie.de/outline
1
const fs = require('fs');2
const express = require('express');3
const app = express();3
const http = require('http').createServer(app);4
const io = require('socket.io')(http);4
const http = require('http');5
const https = require('https');6
const io = require('socket.io');8
let env = {9
port: 443,10
path: '/etc/letsencrypt/live/',11
domain: 'prototype-studio.de',12
ssl: true13
};15
if(fs.existsSync(env.path)) {16
env.credentials = {17
key: fs.readFileSync(env.path + env.domain + '/privkey.pem', 'utf8'),18
cert: fs.readFileSync(env.path + env.domain + '/cert.pem', 'utf8'),19
ca: fs.readFileSync(env.path + env.domain + '/chain.pem', 'utf8')20
};21
}22
else {23
env.ssl = false;24
env.port = 80;25
}27
const proxy = env.ssl ? https.createServer(env.credentials, app) : http.createServer(app);28
const server = io(https);30
app.use(express.static(__dirname + '/public'));32
proxy.listen(env.port, function() {33
console.log('Server started on port:', env.port);34
});36
server.path('/pipe');37
server.listen(proxy);39
const { createCanvas } = require('canvas');40
const paint = require('./public/js/mod/paint');8
let port = 80;42
let client = {};43
let width = 1920;44
let height = 1080;45
let canvas = createCanvas(width, height);
47
g.fillStyle = 'white';48
g.fillRect(0, 0, width, height);18
app.use(express.static(__dirname + '/public'));20
const proxy = http.listen(port, function() {21
console.log('Server started on port: ' + port);22
});50
paint.init(g);26
io.path('/pipe');27
io.listen(proxy);29
io.on('connection', function(socket) {52
server.on('connection', function(socket) {53
client[socket] = {};54
socket.on('request', function(data) {55
let { x, y, width, height } = data;
87
delete client[socket];88
});89
});67
io.on('disconnect', function(socket) {90
server.on('disconnect', function(socket) {91
if(client[socket]) {92
socket.broadcast.emit('cursor', {93
quit: true,
1
@font-face {2
font-family: Inter;3
font-style: normal;4
font-weight: 300;5
font-display: swap;6
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');7
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;8
}9
@font-face {10
font-family: Inter;11
font-style: normal;12
font-weight: 300;13
font-display: swap;14
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');15
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;16
}17
@font-face {18
font-family: Inter;19
font-style: normal;20
font-weight: 300;21
font-display: swap;22
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');23
unicode-range: U+1F00-1FFF;24
}25
@font-face {26
font-family: Inter;27
font-style: normal;28
font-weight: 300;29
font-display: swap;30
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');31
unicode-range: U+0370-03FF;32
}33
@font-face {34
font-family: Inter;35
font-style: normal;36
font-weight: 300;37
font-display: swap;38
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');39
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;40
}41
@font-face {42
font-family: Inter;43
font-style: normal;44
font-weight: 300;45
font-display: swap;46
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');47
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;48
}49
@font-face {50
font-family: Inter;51
font-style: normal;52
font-weight: 300;53
font-display: swap;54
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');55
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;56
}57
@font-face {58
font-family: Inter;59
font-style: normal;60
font-weight: 400;61
font-display: swap;62
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');63
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;64
}65
@font-face {66
font-family: Inter;67
font-style: normal;68
font-weight: 400;69
font-display: swap;70
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');71
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;72
}73
@font-face {74
font-family: Inter;75
font-style: normal;76
font-weight: 400;77
font-display: swap;78
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');79
unicode-range: U+1F00-1FFF;80
}81
@font-face {82
font-family: Inter;83
font-style: normal;84
font-weight: 400;85
font-display: swap;86
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');87
unicode-range: U+0370-03FF;88
}89
@font-face {90
font-family: Inter;91
font-style: normal;92
font-weight: 400;93
font-display: swap;94
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');95
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;96
}97
@font-face {98
font-family: Inter;99
font-style: normal;100
font-weight: 400;101
font-display: swap;102
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');103
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;104
}105
@font-face {106
font-family: Inter;107
font-style: normal;108
font-weight: 400;109
font-display: swap;110
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');111
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;112
}113
@font-face {114
font-family: Inter;115
font-style: normal;116
font-weight: 500;117
font-display: swap;118
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');119
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;120
}121
@font-face {122
font-family: Inter;123
font-style: normal;124
font-weight: 500;125
font-display: swap;126
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');127
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;128
}129
@font-face {130
font-family: Inter;131
font-style: normal;132
font-weight: 500;133
font-display: swap;134
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');135
unicode-range: U+1F00-1FFF;136
}137
@font-face {138
font-family: Inter;139
font-style: normal;140
font-weight: 500;141
font-display: swap;142
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');143
unicode-range: U+0370-03FF;144
}145
@font-face {146
font-family: Inter;147
font-style: normal;148
font-weight: 500;149
font-display: swap;150
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');151
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;152
}153
@font-face {154
font-family: Inter;155
font-style: normal;156
font-weight: 500;157
font-display: swap;158
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');159
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;160
}161
@font-face {162
font-family: Inter;163
font-style: normal;164
font-weight: 500;165
font-display: swap;166
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');167
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;168
}169
@font-face {170
font-family: Inter;171
font-style: normal;172
font-weight: 600;173
font-display: swap;174
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');175
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;176
}177
@font-face {178
font-family: Inter;179
font-style: normal;180
font-weight: 600;181
font-display: swap;182
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');183
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;184
}185
@font-face {186
font-family: Inter;187
font-style: normal;188
font-weight: 600;189
font-display: swap;190
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');191
unicode-range: U+1F00-1FFF;192
}193
@font-face {194
font-family: Inter;195
font-style: normal;196
font-weight: 600;197
font-display: swap;198
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');199
unicode-range: U+0370-03FF;200
}201
@font-face {202
font-family: Inter;203
font-style: normal;204
font-weight: 600;205
font-display: swap;206
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');207
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;208
}209
@font-face {210
font-family: Inter;211
font-style: normal;212
font-weight: 600;213
font-display: swap;214
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');215
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;216
}217
@font-face {218
font-family: Inter;219
font-style: normal;220
font-weight: 600;221
font-display: swap;222
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');223
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;224
}225
@font-face {226
font-family: Inter;227
font-style: normal;228
font-weight: 700;229
font-display: swap;230
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');231
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;232
}233
@font-face {234
font-family: Inter;235
font-style: normal;236
font-weight: 700;237
font-display: swap;238
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');239
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;240
}241
@font-face {242
font-family: Inter;243
font-style: normal;244
font-weight: 700;245
font-display: swap;246
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');247
unicode-range: U+1F00-1FFF;248
}249
@font-face {250
font-family: Inter;251
font-style: normal;252
font-weight: 700;253
font-display: swap;254
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');255
unicode-range: U+0370-03FF;256
}257
@font-face {258
font-family: Inter;259
font-style: normal;260
font-weight: 700;261
font-display: swap;262
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');263
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;264
}265
@font-face {266
font-family: Inter;267
font-style: normal;268
font-weight: 700;269
font-display: swap;270
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');271
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;272
}273
@font-face {274
font-family: Inter;275
font-style: normal;276
font-weight: 700;277
font-display: swap;278
src: url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');279
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;280
}281
@font-face {282
font-family: Roboto;283
font-style: normal;284
font-weight: 300;285
font-display: swap;286
src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCRc4EsA.woff2) format('woff2');287
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;288
}289
@font-face {290
font-family: Roboto;291
font-style: normal;292
font-weight: 300;293
font-display: swap;294
src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fABc4EsA.woff2) format('woff2');295
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;296
}297
@font-face {298
font-family: Roboto;299
font-style: normal;300
font-weight: 300;301
font-display: swap;302
src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCBc4EsA.woff2) format('woff2');303
unicode-range: U+1F00-1FFF;304
}305
@font-face {306
font-family: Roboto;307
font-style: normal;308
font-weight: 300;309
font-display: swap;310
src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBxc4EsA.woff2) format('woff2');311
unicode-range: U+0370-03FF;312
}313
@font-face {314
font-family: Roboto;315
font-style: normal;316
font-weight: 300;317
font-display: swap;318
src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCxc4EsA.woff2) format('woff2');319
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;320
}321
@font-face {322
font-family: Roboto;323
font-style: normal;324
font-weight: 300;325
font-display: swap;326
src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fChc4EsA.woff2) format('woff2');327
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;328
}329
@font-face {330
font-family: Roboto;331
font-style: normal;332
font-weight: 300;333
font-display: swap;334
src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBBc4.woff2) format('woff2');335
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;336
}337
@font-face {338
font-family: Roboto;339
font-style: normal;340
font-weight: 400;341
font-display: swap;342
src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu72xKOzY.woff2) format('woff2');343
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;344
}345
@font-face {346
font-family: Roboto;347
font-style: normal;348
font-weight: 400;349
font-display: swap;350
src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu5mxKOzY.woff2) format('woff2');351
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;352
}353
@font-face {354
font-family: Roboto;355
font-style: normal;356
font-weight: 400;357
font-display: swap;358
src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7mxKOzY.woff2) format('woff2');359
unicode-range: U+1F00-1FFF;360
}361
@font-face {362
font-family: Roboto;363
font-style: normal;364
font-weight: 400;365
font-display: swap;366
src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4WxKOzY.woff2) format('woff2');367
unicode-range: U+0370-03FF;368
}369
@font-face {370
font-family: Roboto;371
font-style: normal;372
font-weight: 400;373
font-display: swap;374
src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7WxKOzY.woff2) format('woff2');375
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;376
}377
@font-face {378
font-family: Roboto;379
font-style: normal;380
font-weight: 400;381
font-display: swap;382
src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7GxKOzY.woff2) format('woff2');383
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;384
}385
@font-face {386
font-family: Roboto;387
font-style: normal;388
font-weight: 400;389
font-display: swap;390
src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4mxK.woff2) format('woff2');391
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;392
}393
@font-face {394
font-family: Roboto;395
font-style: normal;396
font-weight: 500;397
font-display: swap;398
src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCRc4EsA.woff2) format('woff2');399
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;400
}401
@font-face {402
font-family: Roboto;403
font-style: normal;404
font-weight: 500;405
font-display: swap;406
src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fABc4EsA.woff2) format('woff2');407
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;408
}409
@font-face {410
font-family: Roboto;411
font-style: normal;412
font-weight: 500;413
font-display: swap;414
src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCBc4EsA.woff2) format('woff2');415
unicode-range: U+1F00-1FFF;416
}417
@font-face {418
font-family: Roboto;419
font-style: normal;420
font-weight: 500;421
font-display: swap;422
src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fBxc4EsA.woff2) format('woff2');423
unicode-range: U+0370-03FF;424
}425
@font-face {426
font-family: Roboto;427
font-style: normal;428
font-weight: 500;429
font-display: swap;430
src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCxc4EsA.woff2) format('woff2');431
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;432
}433
@font-face {434
font-family: Roboto;435
font-style: normal;436
font-weight: 500;437
font-display: swap;438
src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fChc4EsA.woff2) format('woff2');439
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;440
}441
@font-face {442
font-family: Roboto;443
font-style: normal;444
font-weight: 500;445
font-display: swap;446
src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fBBc4.woff2) format('woff2');447
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;448
}449
@font-face {450
font-family: Roboto;451
font-style: normal;452
font-weight: 700;453
font-display: swap;454
src: local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCRc4EsA.woff2) format('woff2');455
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;456
}457
@font-face {458
font-family: Roboto;459
font-style: normal;460
font-weight: 700;461
font-display: swap;462
src: local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfABc4EsA.woff2) format('woff2');463
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;464
}465
@font-face {466
font-family: Roboto;467
font-style: normal;468
font-weight: 700;469
font-display: swap;470
src: local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCBc4EsA.woff2) format('woff2');471
unicode-range: U+1F00-1FFF;472
}473
@font-face {474
font-family: Roboto;475
font-style: normal;476
font-weight: 700;477
font-display: swap;478
src: local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBxc4EsA.woff2) format('woff2');479
unicode-range: U+0370-03FF;480
}481
@font-face {482
font-family: Roboto;483
font-style: normal;484
font-weight: 700;485
font-display: swap;486
src: local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCxc4EsA.woff2) format('woff2');487
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;488
}489
@font-face {490
font-family: Roboto;491
font-style: normal;492
font-weight: 700;493
font-display: swap;494
src: local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfChc4EsA.woff2) format('woff2');495
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;496
}497
@font-face {498
font-family: Roboto;499
font-style: normal;500
font-weight: 700;501
font-display: swap;502
src: local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBBc4.woff2) format('woff2');503
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;504
}505
@font-face {506
font-family: 'Material Icons';507
font-style: normal;508
font-weight: 400;509
src: url(https://fonts.gstatic.com/s/materialicons/v50/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');510
}511
.material-icons {512
font-family: 'Material Icons';513
font-weight: 400;514
font-style: normal;515
font-size: 24px;516
line-height: 1;517
letter-spacing: normal;518
text-transform: none;519
display: inline-block;520
white-space: nowrap;521
word-wrap: normal;522
direction: ltr;523
-webkit-font-feature-settings: 'liga';524
-webkit-font-smoothing: antialiased;525
}526
.ico {527
font-family: 'Material Icons';528
font-weight: 400;529
font-style: normal;530
font-size: 24px;531
display: inline-block;532
line-height: 1;533
text-transform: none;534
letter-spacing: normal;535
word-wrap: normal;536
white-space: nowrap;537
direction: ltr;538
user-select: none;539
pointer-events: none;540
-webkit-font-smoothing: antialiased;541
text-rendering: optimizeLegibility;542
-moz-osx-font-smoothing: grayscale;543
font-feature-settings: 'liga';544
}545
* {546
margin: 0;547
padding: 0;548
font-family: 'Roboto', sans-serif;549
box-sizing: border-box;550
}551
*:hover,552
*:focus {553
outline: none;554
}555
html {556
position: relative;557
width: 100vw;558
heigth: 100vh;559
overflow: hidden;560
touch-action: manipulation;561
}562
body {563
width: 100%;564
font-size: 14px;565
}566
img {567
pointer-events: none;568
user-select: none;569
}570
a {571
color: blue;572
text-decoration: none;573
cursor: pointer;574
}575
a:hover {576
text-decoration: underline;577
color: blue;578
}579
input {580
-webkit-appearance: none;581
}582
canvas.canvas {583
position: relative;584
z-index: 1;585
cursor: none;586
touch-action: none;587
}588
canvas.overlay {589
pointer-events: none;590
user-select: none;591
position: absolute;592
top: 0;593
left: 0;594
right: 0;595
bottom: 0;596
z-index: 99;597
}598
.wrapper {599
width: 100vw;600
height: 100vh;601
position: fixed;602
top: 0;603
left: 0;604
right: 0;605
bottom: 0;606
display: flex;607
justify-content: center;608
align-items: center;609
background: rgba(0, 0, 0, 0.1);610
z-index: 99999;611
user-select: none;612
}613
.modal {614
background: white;615
width: 400px;616
border-radius: 6px;617
margin-top: -100px;618
padding: 20px;619
box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.03);620
}621
.modal input.action-uuid,622
.modal input.action-file {623
padding: 12px 14px;624
width: 100%;625
border: none;626
background: #FAFAFA;627
border-radius: 3px;628
font-size: 16px;629
user-select: none;630
}631
.modal input.action-uuid:hover,632
.modal input.action-file:hover {633
background: #F8F8F8;634
}635
.modal input.action-uuid:focus,636
.modal input.action-file:focus {637
background: #F5F5F5;638
}639
.modal .seperator {640
border-top: 1px solid #F5F5F5;641
margin: 20px 0;642
}643
.modal .align {644
display: flex;645
justify-content: space-between;646
align-items: center;647
}648
.modal p {649
font-size: 18px;650
letter-spacing: 0.2px;651
padding-top: 5px;652
margin-bottom: 25px;653
}654
.modal button {655
padding: 12px 14px;656
border: none;657
background: #F8F9FA;658
border-radius: 3px;659
font-size: 16px;660
cursor: pointer;661
user-select: none;662
transition: background 0.1s;663
color: #212121;664
}665
.modal button:hover {666
background: #e9ecef;667
}668
.modal button.success {669
background: #28A745;670
color: white;671
}672
.modal button.success:hover {673
background: #23923c;674
}675
.modal button.danger {676
background: #DC3545;677
color: white;678
}679
.modal button.danger:hover {680
background: #d32535;681
}682
.modal button.info {683
background: #007BFF;684
color: white;685
}686
.modal button.info:hover {687
background: #006fe6;688
}689
.modal button.action-join {690
width: 100%;691
}692
.modal button.action-cancel {693
width: calc(50% - 10px);694
}695
.modal button.action-save,696
.modal button.action-clear,697
.modal button.action-background,698
.modal button.action-scaling,699
.modal button.action-color,700
.modal button.action-default {701
width: calc(50% - 10px);702
}703
.modal ul.avatar-list {704
display: flex;705
flex-wrap: wrap;706
width: 100%;707
list-style-type: none;708
}709
.modal ul.avatar-list li.avatar {710
background: #EEE;711
border-radius: 9999px;712
border: 5px solid white;713
margin: 10px;714
width: 70px;715
height: 70px;716
cursor: pointer;717
transition: border-color 0.1s;718
}719
.modal ul.avatar-list li.avatar:hover {720
border: 5px solid #F8F8F8;721
}722
.modal input.action-range {723
width: calc(100% - 80px);724
-webkit-appearance: none;725
background: #F8F8F8;726
height: 6px;727
}728
.modal input.action-range:hover {729
background: #F5F5F5;730
}731
.modal input.action-range:hover::-webkit-slider-thumb {732
background: #555555;733
}734
.modal input.action-range::-webkit-slider-thumb {735
-webkit-appearance: none;736
background: #888888;737
width: 20px;738
height: 20px;739
border-radius: 9999px;740
border: none;741
cursor: pointer;742
transition: background 0.1s;743
}744
.modal input.action-range::-webkit-slider-runnable-track {745
-webkit-appearance: none;746
}747
.modal .preview {748
width: 60px;749
height: 60px;750
background: #F5F5F5;751
border-radius: 9999px;752
display: flex;753
justify-content: center;754
align-items: center;755
}756
.modal .preview .circle {757
width: 12px;758
height: 12px;759
background: #212121;760
border-radius: 9999px;761
}762
.modal.modal-color {763
width: 580px;764
}765
.modal.modal-color .align {766
width: calc(100% - 200px);767
margin-left: 200px;768
justify-content: flex-end;769
}770
.modal ul.bucket-list {771
display: flex;772
flex-wrap: wrap;773
width: 100%;774
list-style-type: none;775
}776
.modal ul.bucket-list li.bucket {777
background: #EEE;778
border-radius: 9999px;779
margin: 10px;780
width: 70px;781
height: 70px;782
cursor: pointer;783
transition: transform 0.2s;784
box-shadow: 0 0px 8px 2px rgba(0, 0, 0, 0.05);785
transform: scale(0.9);786
user-select: none;787
}788
.modal ul.bucket-list li.bucket:hover {789
transition: transform 0.2s;790
transform: scale(1);791
}792
.modal ul.bucket-list li.bucket.focused {793
transform: scale(1);794
border: 3px solid #212121;795
}796
.modal ul.bucket-list li.bucket::after {797
position: absolute;798
bottom: -20%;799
}800
.toolbar {801
position: fixed;802
left: calc(50% - 252px);803
bottom: 30px;804
z-index: 2;805
display: flex;806
z-index: 999;807
}808
.toolbar .bucket {809
width: 56px;810
height: 56px;811
border-radius: 9999px;812
background: #CCC;813
margin: 8px;814
transition: transform 0.2s;815
box-shadow: 0 0px 8px 2px rgba(0, 0, 0, 0.05);816
cursor: pointer;817
transform: scale(0.9);818
user-select: none;819
}820
.toolbar .bucket:hover {821
transition: transform 0.2s;822
transform: scale(1);823
}824
.toolbar .bucket.focused {825
transform: scale(1.1);826
}827
.actions {828
position: fixed;829
top: 30px;830
left: 30px;831
display: flex;832
}833
.action {834
user-select: none;835
position: relative;836
width: 46px;837
height: 46px;838
border: none;839
border-radius: 9999px;840
background: transparent;841
cursor: pointer;842
outline: none;843
position: fixed;844
margin-right: 8px;845
}846
.action i {847
color: #212121;848
user-select: none;849
pointer-events: none;850
}851
.action:hover {852
background: #ECECEC;853
}854
.action::after {855
bottom: -60%;856
}857
.tooltip {858
position: relative;859
display: flex;860
justify-content: center;861
align-items: center;862
}863
.tooltip:hover::before {864
opacity: 1;865
transition-delay: 0.6s;866
}867
.tooltip:hover::after {868
opacity: 1;869
transition-delay: 0.6s;870
}871
.tooltip::after {872
display: flex;873
opacity: 0;874
content: attr(data-title);875
justify-content: center;876
align-items: center;877
position: absolute;878
background: #212121;879
color: white;880
min-height: 24px;881
padding: 0 10px;882
border-radius: 4px;883
font-size: 12px;884
top: auto;885
bottom: -70%;886
white-space: nowrap;887
z-index: 9999;888
pointer-events: none;889
}890
.tooltip.up::before {891
top: calc(-90% + 26px);892
bottom: auto;893
border-left: 6px solid transparent;894
border-right: 6px solid transparent;895
border-top: 6px solid #212121;896
border-bottom: none;897
}898
.tooltip.up::after {899
top: -60%;900
bottom: auto;901
}902
.tooltip.down::before {903
top: auto;904
bottom: calc(-90% + 26px);905
border-left: 6px solid transparent;906
border-right: 6px solid transparent;907
border-top: none;908
border-bottom: 6px solid #212121;909
}910
.tooltip.down::after {911
top: auto;912
bottom: -60%;913
}1
@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v1/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCRc4EsA.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fABc4EsA.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCBc4EsA.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBxc4EsA.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCxc4EsA.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fChc4EsA.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBBc4.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu72xKOzY.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu5mxKOzY.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7mxKOzY.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4WxKOzY.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7WxKOzY.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7GxKOzY.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4mxK.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCRc4EsA.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fABc4EsA.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCBc4EsA.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fBxc4EsA.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCxc4EsA.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fChc4EsA.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fBBc4.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCRc4EsA.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfABc4EsA.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCBc4EsA.woff2) format('woff2');unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBxc4EsA.woff2) format('woff2');unicode-range:U+0370-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCxc4EsA.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfChc4EsA.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBBc4.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:'Material Icons';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialicons/v50/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2')}.material-icons{font-family:'Material Icons';font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:'liga';-webkit-font-smoothing:antialiased}.ico{font-family:'Material Icons';font-weight:400;font-style:normal;font-size:24px;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;user-select:none;pointer-events:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:'liga'}*{margin:0;padding:0;font-family:Roboto,sans-serif;box-sizing:border-box}:focus,:hover{outline:0}html{position:relative;width:100vw;heigth:100vh;overflow:hidden;touch-action:manipulation}body{width:100%;font-size:14px}img{pointer-events:none;user-select:none}a{color:#00f;text-decoration:none;cursor:pointer}a:hover{text-decoration:underline;color:#00f}input{-webkit-appearance:none}canvas.canvas{position:relative;z-index:1;cursor:none;touch-action:none}canvas.overlay{pointer-events:none;user-select:none;position:absolute;top:0;left:0;right:0;bottom:0;z-index:99}.wrapper{width:100vw;height:100vh;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center;background:rgba(0,0,0,.1);z-index:99999;user-select:none}.modal{background:#fff;width:400px;border-radius:6px;margin-top:-100px;padding:20px;box-shadow:0 0 4px 0 rgba(0,0,0,.03)}.modal input.action-file,.modal input.action-uuid{padding:12px 14px;width:100%;border:none;background:#FAFAFA;border-radius:3px;font-size:16px;user-select:none}.modal input.action-file:hover,.modal input.action-uuid:hover{background:#F8F8F8}.modal input.action-file:focus,.modal input.action-uuid:focus{background:#F5F5F5}.modal .seperator{border-top:1px solid #F5F5F5;margin:20px 0}.modal .align{display:flex;justify-content:space-between;align-items:center}.modal p{font-size:18px;letter-spacing:.2px;padding-top:5px;margin-bottom:25px}.modal button{padding:12px 14px;border:none;background:#F8F9FA;border-radius:3px;font-size:16px;cursor:pointer;user-select:none;transition:background .1s;color:#212121}.modal button:hover{background:#e9ecef}.modal button.success{background:#28A745;color:#fff}.modal button.success:hover{background:#23923c}.modal button.danger{background:#DC3545;color:#fff}.modal button.danger:hover{background:#d32535}.modal button.info{background:#007BFF;color:#fff}.modal button.info:hover{background:#006fe6}.modal button.action-join{width:100%}.modal button.action-cancel{width:calc(50% - 10px)}.modal button.action-background,.modal button.action-clear,.modal button.action-color,.modal button.action-default,.modal button.action-save,.modal button.action-scaling{width:calc(50% - 10px)}.modal ul.avatar-list{display:flex;flex-wrap:wrap;width:100%;list-style-type:none}.modal ul.avatar-list li.avatar{background:#EEE;border-radius:9999px;border:5px solid #fff;margin:10px;width:70px;height:70px;cursor:pointer;transition:border-color .1s}.modal ul.avatar-list li.avatar:hover{border:5px solid #F8F8F8}.modal input.action-range{width:calc(100% - 80px);-webkit-appearance:none;background:#F8F8F8;height:6px}.modal input.action-range:hover{background:#F5F5F5}.modal input.action-range:hover::-webkit-slider-thumb{background:#555}.modal input.action-range::-webkit-slider-thumb{-webkit-appearance:none;background:#888;width:20px;height:20px;border-radius:9999px;border:none;cursor:pointer;transition:background .1s}.modal input.action-range::-webkit-slider-runnable-track{-webkit-appearance:none}.modal .preview{width:60px;height:60px;background:#F5F5F5;border-radius:9999px;display:flex;justify-content:center;align-items:center}.modal .preview .circle{width:12px;height:12px;background:#212121;border-radius:9999px}.modal.modal-color{width:580px}.modal.modal-color .align{width:calc(100% - 200px);margin-left:200px;justify-content:flex-end}.modal ul.bucket-list{display:flex;flex-wrap:wrap;width:100%;list-style-type:none}.modal ul.bucket-list li.bucket{background:#EEE;border-radius:9999px;margin:10px;width:70px;height:70px;cursor:pointer;transition:transform .2s;box-shadow:0 0 8px 2px rgba(0,0,0,.05);transform:scale(.9);user-select:none}.modal ul.bucket-list li.bucket:hover{transition:transform .2s;transform:scale(1)}.modal ul.bucket-list li.bucket.focused{transform:scale(1);border:3px solid #212121}.modal ul.bucket-list li.bucket::after{position:absolute;bottom:-20%}.toolbar{position:fixed;left:calc(50% - 252px);bottom:30px;z-index:2;display:flex;z-index:999}.toolbar .bucket{width:56px;height:56px;border-radius:9999px;background:#CCC;margin:8px;transition:transform .2s;box-shadow:0 0 8px 2px rgba(0,0,0,.05);cursor:pointer;transform:scale(.9);user-select:none}.toolbar .bucket:hover{transition:transform .2s;transform:scale(1)}.toolbar .bucket.focused{transform:scale(1.1)}.actions{position:fixed;top:30px;left:30px;display:flex}.action{user-select:none;position:relative;width:46px;height:46px;border:none;border-radius:9999px;background:0 0;cursor:pointer;outline:0;position:fixed;margin-right:8px}.action i{color:#212121;user-select:none;pointer-events:none}.action:hover{background:#ECECEC}.action::after{bottom:-60%}.tooltip{position:relative;display:flex;justify-content:center;align-items:center}.tooltip:hover::before{opacity:1;transition-delay:.6s}.tooltip:hover::after{opacity:1;transition-delay:.6s}.tooltip::after{display:flex;opacity:0;content:attr(data-title);justify-content:center;align-items:center;position:absolute;background:#212121;color:#fff;min-height:24px;padding:0 10px;border-radius:4px;font-size:12px;top:auto;bottom:-70%;white-space:nowrap;z-index:9999;pointer-events:none}.tooltip.up::before{top:calc(-90% + 26px);bottom:auto;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #212121;border-bottom:none}.tooltip.up::after{top:-60%;bottom:auto}.tooltip.down::before{top:auto;bottom:calc(-90% + 26px);border-left:6px solid transparent;border-right:6px solid transparent;border-top:none;border-bottom:6px solid #212121}.tooltip.down::after{top:auto;bottom:-60%}1
\ No newline at end of file
69
g = canvas.getContext('2d');70
o = overlay.getContext('2d');72
paint.init(g);72
paint.init(g, o);73
modal.init();75
modal.open('join');
176
}177
});178
document.addEventListener('keydown', function(event) {179
if(!modal.opened) {179
if(!modal.opened && !event.getModifierState("CapsLock")) {180
if(event.keyCode >= 48 && event.keyCode <= 55) {181
let index = event.keyCode - 49;182
if(index == -1) {
357
}359
function connect() {360
env.socket = io('http://' + window.location.host, {360
env.socket = io('https://' + window.location.host, {361
path: '/pipe'362
});363
env.socket.emit('request', {
376
g.putImageData(image, 0, 0);377
});378
env.socket.on('data', function(data) {379
paint.draw(data.pos, data.last, data.radius, data.color);379
paint.draw(data);380
});381
env.socket.on('clear', function(data) {382
g.clearRect(0, 0, window.innerWidth, window.innerHeight);
8
}10
use('paint', {11
init: function(g) {11
init: function(g, o) {12
this.g = g;13
this.o = o;14
},15
draw: function(args) {16
let { pos, last, radius, color } = args || {};
48
roundRect: function(x, y, w, h, r) {49
if(w < 2 * r) r = w / 2;50
if(h < 2 * r) r = h / 2;50
g.beginPath();51
g.moveTo(x + r, y);52
g.arcTo(x + w, y, x + w, y + h, r);53
g.arcTo(x + w, y + h, x, y + h, r);54
g.arcTo(x, y + h, x, y, r);55
g.arcTo(x, y, x + w, y, r);51
this.o.beginPath();52
this.o.moveTo(x + r, y);53
this.o.arcTo(x + w, y, x + w, y + h, r);54
this.o.arcTo(x + w, y + h, x, y + h, r);55
this.o.arcTo(x, y + h, x, y, r);56
this.o.arcTo(x, y, x + w, y, r);57
}58
});