@jbrowse/core 1.6.4 → 1.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -436,6 +436,14 @@ var BaseFeatureDataAdapter = /*#__PURE__*/function (_BaseAdapter) {
436
436
  while (1) {
437
437
  switch (_context10.prev = _context10.next) {
438
438
  case 0:
439
+ if (regions.length) {
440
+ _context10.next = 2;
441
+ break;
442
+ }
443
+
444
+ throw new Error('No regions to estimate stats for');
445
+
446
+ case 2:
439
447
  region = regions[0];
440
448
  lastTime = +Date.now();
441
449
 
@@ -522,7 +530,7 @@ var BaseFeatureDataAdapter = /*#__PURE__*/function (_BaseAdapter) {
522
530
 
523
531
  return _context10.abrupt("return", statsFromInterval(1000, 0));
524
532
 
525
- case 5:
533
+ case 7:
526
534
  case "end":
527
535
  return _context10.stop();
528
536
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/core",
3
- "version": "1.6.4",
3
+ "version": "1.6.5",
4
4
  "description": "JBrowse 2 core libraries used by plugins",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -26,12 +26,12 @@
26
26
  "clean": "rimraf dist",
27
27
  "prebuild": "yarn clean",
28
28
  "prepack": "yarn build",
29
- "build": "NODE_ENV=production babel . --root-mode upward --out-dir dist --extensions '.ts,.js,.tsx,.jsx' && cp package.json README.md ../../LICENSE dist/ && tsc"
29
+ "build": "babel . --root-mode upward --out-dir dist --extensions '.ts,.js,.tsx,.jsx' && cp package.json README.md ../../LICENSE dist/ && tsc"
30
30
  },
31
31
  "dependencies": {
32
32
  "@babel/runtime": "^7.16.3",
33
33
  "@material-ui/icons": "^4.0.1",
34
- "abortable-promise-cache": "^1.1.3",
34
+ "abortable-promise-cache": "^1.5.0",
35
35
  "base64-js": "^1.3.0",
36
36
  "canvas": "^2.8.0",
37
37
  "clsx": "^1.0.4",
@@ -77,5 +77,5 @@
77
77
  "access": "public",
78
78
  "directory": "dist"
79
79
  },
80
- "gitHead": "7f157fbb2302d8825f99d01bcc0fd0616116c5d2"
80
+ "gitHead": "ab41f017840ffef09f5d60b008281cedaa5abe26"
81
81
  }
@@ -438,6 +438,7 @@ test('test RPC driver operation timeout and worker replace', /*#__PURE__*/(0, _a
438
438
  switch (_context7.prev = _context7.next) {
439
439
  case 0:
440
440
  console.error = jest.fn();
441
+ console.warn = jest.fn();
441
442
  expect.assertions(1);
442
443
  config = (0, _configuration.ConfigurationSchema)('Mock', {}).create();
443
444
  driver = new MockRpcDriver({
@@ -451,29 +452,29 @@ test('test RPC driver operation timeout and worker replace', /*#__PURE__*/(0, _a
451
452
  return new MockRendererShort(pluginManager);
452
453
  });
453
454
  pluginManager.createPluggableElements();
454
- _context7.prev = 8;
455
- _context7.next = 11;
455
+ _context7.prev = 9;
456
+ _context7.next = 12;
456
457
  return driver.call(pluginManager, 'sessionId', 'MockRenderTimeout', {}, {});
457
458
 
458
- case 11:
459
- _context7.next = 16;
459
+ case 12:
460
+ _context7.next = 17;
460
461
  break;
461
462
 
462
- case 13:
463
- _context7.prev = 13;
464
- _context7.t0 = _context7["catch"](8);
463
+ case 14:
464
+ _context7.prev = 14;
465
+ _context7.t0 = _context7["catch"](9);
465
466
  expect("".concat(_context7.t0)).toMatch(/operation timed out/);
466
467
 
467
- case 16:
468
- _context7.next = 18;
468
+ case 17:
469
+ _context7.next = 19;
469
470
  return driver.call(pluginManager, 'sessionId', 'MockRenderShort', {}, {});
470
471
 
471
- case 18:
472
+ case 19:
472
473
  case "end":
473
474
  return _context7.stop();
474
475
  }
475
476
  }
476
- }, _callee7, null, [[8, 13]]);
477
+ }, _callee7, null, [[9, 14]]);
477
478
  })));
478
479
  test('remote abort', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
479
480
  var config, driver, pluginManager, controller, resP;
@@ -482,6 +483,7 @@ test('remote abort', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/
482
483
  switch (_context8.prev = _context8.next) {
483
484
  case 0:
484
485
  console.error = jest.fn();
486
+ console.warn = jest.fn();
485
487
  expect.assertions(1);
486
488
  config = (0, _configuration.ConfigurationSchema)('Mock', {}).create();
487
489
  driver = new MockRpcDriver({
@@ -492,28 +494,28 @@ test('remote abort', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/
492
494
  return new MockRendererShort(pluginManager);
493
495
  });
494
496
  pluginManager.createPluggableElements();
495
- _context8.prev = 7;
497
+ _context8.prev = 8;
496
498
  controller = new AbortController();
497
499
  resP = driver.call(pluginManager, 'sessionId', 'MockRenderShort', {}, {
498
500
  signal: controller.signal
499
501
  });
500
502
  controller.abort();
501
- _context8.next = 13;
503
+ _context8.next = 14;
502
504
  return resP;
503
505
 
504
- case 13:
505
- _context8.next = 18;
506
+ case 14:
507
+ _context8.next = 19;
506
508
  break;
507
509
 
508
- case 15:
509
- _context8.prev = 15;
510
- _context8.t0 = _context8["catch"](7);
510
+ case 16:
511
+ _context8.prev = 16;
512
+ _context8.t0 = _context8["catch"](8);
511
513
  expect("".concat(_context8.t0)).toMatch(/abort/);
512
514
 
513
- case 18:
515
+ case 19:
514
516
  case "end":
515
517
  return _context8.stop();
516
518
  }
517
519
  }
518
- }, _callee8, null, [[7, 15]]);
520
+ }, _callee8, null, [[8, 16]]);
519
521
  })));
package/util/index.d.ts CHANGED
@@ -307,7 +307,16 @@ export declare function generateCodonTable(table: any): {
307
307
  export declare function updateStatus<U>(msg: string, cb: (arg: string) => void, fn: () => U): Promise<U>;
308
308
  export declare function hashCode(str: string): number;
309
309
  export declare function objectHash(obj: Record<string, any>): string;
310
- export declare function bytesForRegions(regions: Region[], index: any): Promise<number>;
310
+ interface VirtualOffset {
311
+ blockPosition: number;
312
+ }
313
+ interface Block {
314
+ minv: VirtualOffset;
315
+ maxv: VirtualOffset;
316
+ }
317
+ export declare function bytesForRegions(regions: Region[], index: {
318
+ blocksForRange: (ref: string, start: number, end: number) => Promise<Block[]>;
319
+ }): Promise<number>;
311
320
  export declare type ViewSnap = {
312
321
  bpPerPx: number;
313
322
  interRegionPaddingWidth: number;
package/util/index.js CHANGED
@@ -542,37 +542,37 @@ function parseLocStringOneBased(locString, isValidRefName) {
542
542
 
543
543
  if (rangeMatch) {
544
544
  var _rangeMatch = (0, _slicedToArray2.default)(rangeMatch, 6),
545
- start = _rangeMatch[1],
546
- end = _rangeMatch[5];
545
+ _start = _rangeMatch[1],
546
+ _end = _rangeMatch[5];
547
547
 
548
- if (start !== undefined && end !== undefined) {
548
+ if (_start !== undefined && _end !== undefined) {
549
549
  return {
550
550
  assemblyName: assemblyName,
551
551
  refName: prefix,
552
- start: +start.replace(/,/g, ''),
553
- end: +end.replace(/,/g, '')
552
+ start: +_start.replace(/,/g, ''),
553
+ end: +_end.replace(/,/g, '')
554
554
  };
555
555
  }
556
556
  } else if (singleMatch) {
557
557
  var _singleMatch = (0, _slicedToArray2.default)(singleMatch, 5),
558
- _start = _singleMatch[1],
558
+ _start2 = _singleMatch[1],
559
559
  separator = _singleMatch[4];
560
560
 
561
- if (_start !== undefined) {
561
+ if (_start2 !== undefined) {
562
562
  if (separator) {
563
563
  // indefinite end
564
564
  return {
565
565
  assemblyName: assemblyName,
566
566
  refName: prefix,
567
- start: +_start.replace(/,/g, '')
567
+ start: +_start2.replace(/,/g, '')
568
568
  };
569
569
  }
570
570
 
571
571
  return {
572
572
  assemblyName: assemblyName,
573
573
  refName: prefix,
574
- start: +_start.replace(/,/g, ''),
575
- end: +_start.replace(/,/g, '')
574
+ start: +_start2.replace(/,/g, ''),
575
+ end: +_start2.replace(/,/g, '')
576
576
  };
577
577
  }
578
578
  } else {
package/util/io/index.js CHANGED
@@ -144,35 +144,23 @@ function openLocation(location, pluginManager) {
144
144
  }
145
145
 
146
146
  return internetAccount.openLocation(location);
147
- } else if (location.internetAccountId) {
148
- if (!pluginManager) {
149
- throw new Error('need plugin manager to open locations with an internet account');
150
- }
151
-
147
+ } else if (pluginManager) {
152
148
  var _rootModel = pluginManager.rootModel;
153
149
 
154
- if (_rootModel && !(0, _types.isAppRootModel)(_rootModel)) {
155
- throw new Error('This context does not support internet accounts');
156
- }
157
-
158
- if (_rootModel) {
150
+ if (_rootModel && (0, _types.isAppRootModel)(_rootModel)) {
159
151
  var modifiedLocation = JSON.parse(JSON.stringify(location));
160
152
 
161
153
  var _internetAccount = _rootModel.findAppropriateInternetAccount(location);
162
154
 
163
- if (!_internetAccount) {
164
- throw new Error('Could not find associated internet account');
165
- }
166
-
167
- _internetAccount.getPreAuthorizationInformation(location).then( // eslint-disable-next-line @typescript-eslint/no-explicit-any
168
- function (preAuthInfo) {
169
- return modifiedLocation.internetAccountPreAuthorization = preAuthInfo;
170
- });
155
+ if (_internetAccount) {
156
+ _internetAccount.getPreAuthorizationInformation(location).then( // eslint-disable-next-line @typescript-eslint/no-explicit-any
157
+ function (preAuthInfo) {
158
+ return modifiedLocation.internetAccountPreAuthorization = preAuthInfo;
159
+ });
171
160
 
172
- return _internetAccount.openLocation(modifiedLocation);
161
+ return _internetAccount.openLocation(modifiedLocation);
162
+ }
173
163
  }
174
-
175
- throw new Error('Could not pre-authorize location');
176
164
  }
177
165
 
178
166
  var url = location.baseUri ? new URL(location.uri, location.baseUri).href : location.uri;
@@ -14,6 +14,7 @@ export class PonyfillOffscreenContext {
14
14
  set font(arg: any);
15
15
  arc(...args: any[]): void;
16
16
  arcTo(...args: any[]): void;
17
+ bezierCurveTo(...args: any[]): void;
17
18
  beginPath(...args: any[]): void;
18
19
  clearRect(...args: any[]): void;
19
20
  clip(...args: any[]): void;
@@ -111,12 +111,24 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
111
111
  });
112
112
  }
113
113
  }, {
114
- key: "beginPath",
115
- value: function beginPath() {
114
+ key: "bezierCurveTo",
115
+ value: function bezierCurveTo() {
116
116
  for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
117
117
  args[_key3] = arguments[_key3];
118
118
  }
119
119
 
120
+ this.commands.push({
121
+ type: 'bezierCurveTo',
122
+ args: args
123
+ });
124
+ }
125
+ }, {
126
+ key: "beginPath",
127
+ value: function beginPath() {
128
+ for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
129
+ args[_key4] = arguments[_key4];
130
+ }
131
+
120
132
  this.commands.push({
121
133
  type: 'beginPath',
122
134
  args: args
@@ -125,8 +137,8 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
125
137
  }, {
126
138
  key: "clearRect",
127
139
  value: function clearRect() {
128
- for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
129
- args[_key4] = arguments[_key4];
140
+ for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
141
+ args[_key5] = arguments[_key5];
130
142
  }
131
143
 
132
144
  this.commands.push({
@@ -137,8 +149,8 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
137
149
  }, {
138
150
  key: "clip",
139
151
  value: function clip() {
140
- for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
141
- args[_key5] = arguments[_key5];
152
+ for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
153
+ args[_key6] = arguments[_key6];
142
154
  }
143
155
 
144
156
  this.commands.push({
@@ -149,8 +161,8 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
149
161
  }, {
150
162
  key: "closePath",
151
163
  value: function closePath() {
152
- for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
153
- args[_key6] = arguments[_key6];
164
+ for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
165
+ args[_key7] = arguments[_key7];
154
166
  }
155
167
 
156
168
  this.commands.push({
@@ -161,8 +173,8 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
161
173
  }, {
162
174
  key: "createLinearGradient",
163
175
  value: function createLinearGradient() {
164
- for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
165
- args[_key7] = arguments[_key7];
176
+ for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
177
+ args[_key8] = arguments[_key8];
166
178
  }
167
179
 
168
180
  this.commands.push({
@@ -173,8 +185,8 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
173
185
  }, {
174
186
  key: "createPattern",
175
187
  value: function createPattern() {
176
- for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
177
- args[_key8] = arguments[_key8];
188
+ for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
189
+ args[_key9] = arguments[_key9];
178
190
  }
179
191
 
180
192
  this.commands.push({
@@ -185,8 +197,8 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
185
197
  }, {
186
198
  key: "createRadialGradient",
187
199
  value: function createRadialGradient() {
188
- for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
189
- args[_key9] = arguments[_key9];
200
+ for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
201
+ args[_key10] = arguments[_key10];
190
202
  }
191
203
 
192
204
  this.commands.push({
@@ -197,8 +209,8 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
197
209
  }, {
198
210
  key: "drawFocusIfNeeded",
199
211
  value: function drawFocusIfNeeded() {
200
- for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {
201
- args[_key10] = arguments[_key10];
212
+ for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
213
+ args[_key11] = arguments[_key11];
202
214
  }
203
215
 
204
216
  this.commands.push({
@@ -209,8 +221,8 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
209
221
  }, {
210
222
  key: "drawImage",
211
223
  value: function drawImage() {
212
- for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
213
- args[_key11] = arguments[_key11];
224
+ for (var _len12 = arguments.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
225
+ args[_key12] = arguments[_key12];
214
226
  }
215
227
 
216
228
  this.commands.push({
@@ -221,8 +233,8 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
221
233
  }, {
222
234
  key: "ellipse",
223
235
  value: function ellipse() {
224
- for (var _len12 = arguments.length, args = new Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {
225
- args[_key12] = arguments[_key12];
236
+ for (var _len13 = arguments.length, args = new Array(_len13), _key13 = 0; _key13 < _len13; _key13++) {
237
+ args[_key13] = arguments[_key13];
226
238
  }
227
239
 
228
240
  this.commands.push({
@@ -233,8 +245,8 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
233
245
  }, {
234
246
  key: "fill",
235
247
  value: function fill() {
236
- for (var _len13 = arguments.length, args = new Array(_len13), _key13 = 0; _key13 < _len13; _key13++) {
237
- args[_key13] = arguments[_key13];
248
+ for (var _len14 = arguments.length, args = new Array(_len14), _key14 = 0; _key14 < _len14; _key14++) {
249
+ args[_key14] = arguments[_key14];
238
250
  }
239
251
 
240
252
  this.commands.push({
@@ -245,8 +257,8 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
245
257
  }, {
246
258
  key: "fillRect",
247
259
  value: function fillRect() {
248
- for (var _len14 = arguments.length, args = new Array(_len14), _key14 = 0; _key14 < _len14; _key14++) {
249
- args[_key14] = arguments[_key14];
260
+ for (var _len15 = arguments.length, args = new Array(_len15), _key15 = 0; _key15 < _len15; _key15++) {
261
+ args[_key15] = arguments[_key15];
250
262
  }
251
263
 
252
264
  var x = args[0],
@@ -268,8 +280,8 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
268
280
  }, {
269
281
  key: "fillText",
270
282
  value: function fillText() {
271
- for (var _len15 = arguments.length, args = new Array(_len15), _key15 = 0; _key15 < _len15; _key15++) {
272
- args[_key15] = arguments[_key15];
283
+ for (var _len16 = arguments.length, args = new Array(_len16), _key16 = 0; _key16 < _len16; _key16++) {
284
+ args[_key16] = arguments[_key16];
273
285
  }
274
286
 
275
287
  // if (x > this.width || x + 1000 < 0) {
@@ -283,8 +295,8 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
283
295
  }, {
284
296
  key: "lineTo",
285
297
  value: function lineTo() {
286
- for (var _len16 = arguments.length, args = new Array(_len16), _key16 = 0; _key16 < _len16; _key16++) {
287
- args[_key16] = arguments[_key16];
298
+ for (var _len17 = arguments.length, args = new Array(_len17), _key17 = 0; _key17 < _len17; _key17++) {
299
+ args[_key17] = arguments[_key17];
288
300
  }
289
301
 
290
302
  this.commands.push({
@@ -304,8 +316,8 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
304
316
  }, {
305
317
  key: "moveTo",
306
318
  value: function moveTo() {
307
- for (var _len17 = arguments.length, args = new Array(_len17), _key17 = 0; _key17 < _len17; _key17++) {
308
- args[_key17] = arguments[_key17];
319
+ for (var _len18 = arguments.length, args = new Array(_len18), _key18 = 0; _key18 < _len18; _key18++) {
320
+ args[_key18] = arguments[_key18];
309
321
  }
310
322
 
311
323
  this.commands.push({
@@ -316,8 +328,8 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
316
328
  }, {
317
329
  key: "quadraticCurveTo",
318
330
  value: function quadraticCurveTo() {
319
- for (var _len18 = arguments.length, args = new Array(_len18), _key18 = 0; _key18 < _len18; _key18++) {
320
- args[_key18] = arguments[_key18];
331
+ for (var _len19 = arguments.length, args = new Array(_len19), _key19 = 0; _key19 < _len19; _key19++) {
332
+ args[_key19] = arguments[_key19];
321
333
  }
322
334
 
323
335
  this.commands.push({
@@ -328,8 +340,8 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
328
340
  }, {
329
341
  key: "rect",
330
342
  value: function rect() {
331
- for (var _len19 = arguments.length, args = new Array(_len19), _key19 = 0; _key19 < _len19; _key19++) {
332
- args[_key19] = arguments[_key19];
343
+ for (var _len20 = arguments.length, args = new Array(_len20), _key20 = 0; _key20 < _len20; _key20++) {
344
+ args[_key20] = arguments[_key20];
333
345
  }
334
346
 
335
347
  this.commands.push({
@@ -340,8 +352,8 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
340
352
  }, {
341
353
  key: "restore",
342
354
  value: function restore() {
343
- for (var _len20 = arguments.length, args = new Array(_len20), _key20 = 0; _key20 < _len20; _key20++) {
344
- args[_key20] = arguments[_key20];
355
+ for (var _len21 = arguments.length, args = new Array(_len21), _key21 = 0; _key21 < _len21; _key21++) {
356
+ args[_key21] = arguments[_key21];
345
357
  }
346
358
 
347
359
  this.commands.push({
@@ -352,8 +364,8 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
352
364
  }, {
353
365
  key: "rotate",
354
366
  value: function rotate() {
355
- for (var _len21 = arguments.length, args = new Array(_len21), _key21 = 0; _key21 < _len21; _key21++) {
356
- args[_key21] = arguments[_key21];
367
+ for (var _len22 = arguments.length, args = new Array(_len22), _key22 = 0; _key22 < _len22; _key22++) {
368
+ args[_key22] = arguments[_key22];
357
369
  }
358
370
 
359
371
  this.commands.push({
@@ -364,8 +376,8 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
364
376
  }, {
365
377
  key: "save",
366
378
  value: function save() {
367
- for (var _len22 = arguments.length, args = new Array(_len22), _key22 = 0; _key22 < _len22; _key22++) {
368
- args[_key22] = arguments[_key22];
379
+ for (var _len23 = arguments.length, args = new Array(_len23), _key23 = 0; _key23 < _len23; _key23++) {
380
+ args[_key23] = arguments[_key23];
369
381
  }
370
382
 
371
383
  this.commands.push({
@@ -376,8 +388,8 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
376
388
  }, {
377
389
  key: "setLineDash",
378
390
  value: function setLineDash() {
379
- for (var _len23 = arguments.length, args = new Array(_len23), _key23 = 0; _key23 < _len23; _key23++) {
380
- args[_key23] = arguments[_key23];
391
+ for (var _len24 = arguments.length, args = new Array(_len24), _key24 = 0; _key24 < _len24; _key24++) {
392
+ args[_key24] = arguments[_key24];
381
393
  }
382
394
 
383
395
  this.commands.push({
@@ -388,8 +400,8 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
388
400
  }, {
389
401
  key: "setTransform",
390
402
  value: function setTransform() {
391
- for (var _len24 = arguments.length, args = new Array(_len24), _key24 = 0; _key24 < _len24; _key24++) {
392
- args[_key24] = arguments[_key24];
403
+ for (var _len25 = arguments.length, args = new Array(_len25), _key25 = 0; _key25 < _len25; _key25++) {
404
+ args[_key25] = arguments[_key25];
393
405
  }
394
406
 
395
407
  this.commands.push({
@@ -400,8 +412,8 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
400
412
  }, {
401
413
  key: "scale",
402
414
  value: function scale() {
403
- for (var _len25 = arguments.length, args = new Array(_len25), _key25 = 0; _key25 < _len25; _key25++) {
404
- args[_key25] = arguments[_key25];
415
+ for (var _len26 = arguments.length, args = new Array(_len26), _key26 = 0; _key26 < _len26; _key26++) {
416
+ args[_key26] = arguments[_key26];
405
417
  }
406
418
 
407
419
  this.commands.push({
@@ -412,8 +424,8 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
412
424
  }, {
413
425
  key: "stroke",
414
426
  value: function stroke() {
415
- for (var _len26 = arguments.length, args = new Array(_len26), _key26 = 0; _key26 < _len26; _key26++) {
416
- args[_key26] = arguments[_key26];
427
+ for (var _len27 = arguments.length, args = new Array(_len27), _key27 = 0; _key27 < _len27; _key27++) {
428
+ args[_key27] = arguments[_key27];
417
429
  }
418
430
 
419
431
  this.commands.push({
@@ -424,8 +436,8 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
424
436
  }, {
425
437
  key: "strokeRect",
426
438
  value: function strokeRect() {
427
- for (var _len27 = arguments.length, args = new Array(_len27), _key27 = 0; _key27 < _len27; _key27++) {
428
- args[_key27] = arguments[_key27];
439
+ for (var _len28 = arguments.length, args = new Array(_len28), _key28 = 0; _key28 < _len28; _key28++) {
440
+ args[_key28] = arguments[_key28];
429
441
  }
430
442
 
431
443
  this.commands.push({
@@ -436,8 +448,8 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
436
448
  }, {
437
449
  key: "strokeText",
438
450
  value: function strokeText() {
439
- for (var _len28 = arguments.length, args = new Array(_len28), _key28 = 0; _key28 < _len28; _key28++) {
440
- args[_key28] = arguments[_key28];
451
+ for (var _len29 = arguments.length, args = new Array(_len29), _key29 = 0; _key29 < _len29; _key29++) {
452
+ args[_key29] = arguments[_key29];
441
453
  }
442
454
 
443
455
  this.commands.push({
@@ -448,8 +460,8 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
448
460
  }, {
449
461
  key: "transform",
450
462
  value: function transform() {
451
- for (var _len29 = arguments.length, args = new Array(_len29), _key29 = 0; _key29 < _len29; _key29++) {
452
- args[_key29] = arguments[_key29];
463
+ for (var _len30 = arguments.length, args = new Array(_len30), _key30 = 0; _key30 < _len30; _key30++) {
464
+ args[_key30] = arguments[_key30];
453
465
  }
454
466
 
455
467
  this.commands.push({
@@ -460,8 +472,8 @@ var PonyfillOffscreenContext = /*#__PURE__*/function () {
460
472
  }, {
461
473
  key: "translate",
462
474
  value: function translate() {
463
- for (var _len30 = arguments.length, args = new Array(_len30), _key30 = 0; _key30 < _len30; _key30++) {
464
- args[_key30] = arguments[_key30];
475
+ for (var _len31 = arguments.length, args = new Array(_len31), _key31 = 0; _key31 < _len31; _key31++) {
476
+ args[_key31] = arguments[_key31];
465
477
  }
466
478
 
467
479
  this.commands.push({
package/babel.config.d.ts DELETED
@@ -1,15 +0,0 @@
1
- declare function _exports(api: any): {
2
- babelrcRoots: string[];
3
- comments: boolean;
4
- presets: (string | (string | {
5
- targets: {
6
- node: number;
7
- browsers: string[];
8
- };
9
- })[])[];
10
- ignore: string[];
11
- plugins: (string | (string | {
12
- useESModules: boolean;
13
- })[])[];
14
- };
15
- export = _exports;
package/babel.config.js DELETED
@@ -1,19 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = function (api) {
4
- api.cache(false);
5
- return {
6
- babelrcRoots: ['.', './packages/*', './products/*', './plugins/*'],
7
- comments: true,
8
- presets: ['@babel/preset-react', ['@babel/preset-env', {
9
- targets: {
10
- node: 8,
11
- browsers: ['> 0.5%', 'last 2 versions']
12
- }
13
- }], '@babel/preset-typescript'],
14
- ignore: ['./node_modules', './packages/*/node_modules', './products/*/node_modules', './plugins/*/node_modules'],
15
- plugins: ['@babel/plugin-syntax-dynamic-import', '@babel/plugin-proposal-class-properties', '@babel/plugin-proposal-export-default-from', ['@babel/transform-runtime', {
16
- useESModules: false
17
- }], 'inline-import-data-uri']
18
- };
19
- };