microboard-temp 0.5.65 → 0.5.67

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.
@@ -7598,6 +7598,8 @@ class Transformation {
7598
7598
  this.applyScaleBy(op.x, op.y);
7599
7599
  } else if (op.method === "translateBy") {
7600
7600
  this.applyTranslateBy(op.x, op.y);
7601
+ } else if (op.method === "translateTo") {
7602
+ this.applyTranslateTo(op.x, op.y);
7601
7603
  }
7602
7604
  }
7603
7605
  applyScaleByRelativeTo(x, y, point) {
@@ -41484,14 +41486,14 @@ var getYouTubeVideoPreview = (youtubeUrl) => {
41484
41486
  };
41485
41487
  });
41486
41488
  };
41489
+ var qualities = {
41490
+ maxres: "maxresdefault",
41491
+ sd: "sddefault",
41492
+ hq: "hqdefault",
41493
+ mq: "mqdefault",
41494
+ default: "default"
41495
+ };
41487
41496
  var getYouTubeThumbnail = (videoId, quality = "maxres") => {
41488
- const qualities = {
41489
- maxres: "maxresdefault",
41490
- sd: "sddefault",
41491
- hq: "hqdefault",
41492
- mq: "mqdefault",
41493
- default: "default"
41494
- };
41495
41497
  return `https://img.youtube.com/vi/${videoId}/${qualities[quality]}.jpg`;
41496
41498
  };
41497
41499
  var captureFrame = (frameTime, video) => {
@@ -43097,7 +43099,7 @@ function createAudio(id, data, board) {
43097
43099
  if (!isAudioItemData(data)) {
43098
43100
  throw new Error("Invalid data for AudioItem");
43099
43101
  }
43100
- const audio = new AudioItem(board, data.isStorageUrl, data.url, board.events, id, data.extension).setId(id).deserialize(data);
43102
+ const audio = new AudioItem(board, data.url, board.events, id, data.extension).setId(id).deserialize(data);
43101
43103
  return audio;
43102
43104
  }
43103
43105
  function createDrawing(id, data, board) {
package/dist/cjs/index.js CHANGED
@@ -7598,6 +7598,8 @@ class Transformation {
7598
7598
  this.applyScaleBy(op.x, op.y);
7599
7599
  } else if (op.method === "translateBy") {
7600
7600
  this.applyTranslateBy(op.x, op.y);
7601
+ } else if (op.method === "translateTo") {
7602
+ this.applyTranslateTo(op.x, op.y);
7601
7603
  }
7602
7604
  }
7603
7605
  applyScaleByRelativeTo(x, y, point) {
@@ -41484,14 +41486,14 @@ var getYouTubeVideoPreview = (youtubeUrl) => {
41484
41486
  };
41485
41487
  });
41486
41488
  };
41489
+ var qualities = {
41490
+ maxres: "maxresdefault",
41491
+ sd: "sddefault",
41492
+ hq: "hqdefault",
41493
+ mq: "mqdefault",
41494
+ default: "default"
41495
+ };
41487
41496
  var getYouTubeThumbnail = (videoId, quality = "maxres") => {
41488
- const qualities = {
41489
- maxres: "maxresdefault",
41490
- sd: "sddefault",
41491
- hq: "hqdefault",
41492
- mq: "mqdefault",
41493
- default: "default"
41494
- };
41495
41497
  return `https://img.youtube.com/vi/${videoId}/${qualities[quality]}.jpg`;
41496
41498
  };
41497
41499
  var captureFrame = (frameTime, video) => {
@@ -43097,7 +43099,7 @@ function createAudio(id, data, board) {
43097
43099
  if (!isAudioItemData(data)) {
43098
43100
  throw new Error("Invalid data for AudioItem");
43099
43101
  }
43100
- const audio = new AudioItem(board, data.isStorageUrl, data.url, board.events, id, data.extension).setId(id).deserialize(data);
43102
+ const audio = new AudioItem(board, data.url, board.events, id, data.extension).setId(id).deserialize(data);
43101
43103
  return audio;
43102
43104
  }
43103
43105
  function createDrawing(id, data, board) {
package/dist/cjs/node.js CHANGED
@@ -8635,6 +8635,8 @@ class Transformation {
8635
8635
  this.applyScaleBy(op.x, op.y);
8636
8636
  } else if (op.method === "translateBy") {
8637
8637
  this.applyTranslateBy(op.x, op.y);
8638
+ } else if (op.method === "translateTo") {
8639
+ this.applyTranslateTo(op.x, op.y);
8638
8640
  }
8639
8641
  }
8640
8642
  applyScaleByRelativeTo(x, y, point) {
@@ -43957,14 +43959,14 @@ var getYouTubeVideoPreview = (youtubeUrl) => {
43957
43959
  };
43958
43960
  });
43959
43961
  };
43962
+ var qualities = {
43963
+ maxres: "maxresdefault",
43964
+ sd: "sddefault",
43965
+ hq: "hqdefault",
43966
+ mq: "mqdefault",
43967
+ default: "default"
43968
+ };
43960
43969
  var getYouTubeThumbnail = (videoId, quality = "maxres") => {
43961
- const qualities = {
43962
- maxres: "maxresdefault",
43963
- sd: "sddefault",
43964
- hq: "hqdefault",
43965
- mq: "mqdefault",
43966
- default: "default"
43967
- };
43968
43970
  return `https://img.youtube.com/vi/${videoId}/${qualities[quality]}.jpg`;
43969
43971
  };
43970
43972
  var captureFrame = (frameTime, video) => {
@@ -45570,7 +45572,7 @@ function createAudio(id, data, board) {
45570
45572
  if (!isAudioItemData(data)) {
45571
45573
  throw new Error("Invalid data for AudioItem");
45572
45574
  }
45573
- const audio = new AudioItem(board, data.isStorageUrl, data.url, board.events, id, data.extension).setId(id).deserialize(data);
45575
+ const audio = new AudioItem(board, data.url, board.events, id, data.extension).setId(id).deserialize(data);
45574
45576
  return audio;
45575
45577
  }
45576
45578
  function createDrawing(id, data, board) {
@@ -7435,6 +7435,8 @@ class Transformation {
7435
7435
  this.applyScaleBy(op.x, op.y);
7436
7436
  } else if (op.method === "translateBy") {
7437
7437
  this.applyTranslateBy(op.x, op.y);
7438
+ } else if (op.method === "translateTo") {
7439
+ this.applyTranslateTo(op.x, op.y);
7438
7440
  }
7439
7441
  }
7440
7442
  applyScaleByRelativeTo(x, y, point) {
@@ -41330,14 +41332,14 @@ var getYouTubeVideoPreview = (youtubeUrl) => {
41330
41332
  };
41331
41333
  });
41332
41334
  };
41335
+ var qualities = {
41336
+ maxres: "maxresdefault",
41337
+ sd: "sddefault",
41338
+ hq: "hqdefault",
41339
+ mq: "mqdefault",
41340
+ default: "default"
41341
+ };
41333
41342
  var getYouTubeThumbnail = (videoId, quality = "maxres") => {
41334
- const qualities = {
41335
- maxres: "maxresdefault",
41336
- sd: "sddefault",
41337
- hq: "hqdefault",
41338
- mq: "mqdefault",
41339
- default: "default"
41340
- };
41341
41343
  return `https://img.youtube.com/vi/${videoId}/${qualities[quality]}.jpg`;
41342
41344
  };
41343
41345
  var captureFrame = (frameTime, video) => {
@@ -42943,7 +42945,7 @@ function createAudio(id, data, board) {
42943
42945
  if (!isAudioItemData(data)) {
42944
42946
  throw new Error("Invalid data for AudioItem");
42945
42947
  }
42946
- const audio = new AudioItem(board, data.isStorageUrl, data.url, board.events, id, data.extension).setId(id).deserialize(data);
42948
+ const audio = new AudioItem(board, data.url, board.events, id, data.extension).setId(id).deserialize(data);
42947
42949
  return audio;
42948
42950
  }
42949
42951
  function createDrawing(id, data, board) {
package/dist/esm/index.js CHANGED
@@ -7428,6 +7428,8 @@ class Transformation {
7428
7428
  this.applyScaleBy(op.x, op.y);
7429
7429
  } else if (op.method === "translateBy") {
7430
7430
  this.applyTranslateBy(op.x, op.y);
7431
+ } else if (op.method === "translateTo") {
7432
+ this.applyTranslateTo(op.x, op.y);
7431
7433
  }
7432
7434
  }
7433
7435
  applyScaleByRelativeTo(x, y, point) {
@@ -41323,14 +41325,14 @@ var getYouTubeVideoPreview = (youtubeUrl) => {
41323
41325
  };
41324
41326
  });
41325
41327
  };
41328
+ var qualities = {
41329
+ maxres: "maxresdefault",
41330
+ sd: "sddefault",
41331
+ hq: "hqdefault",
41332
+ mq: "mqdefault",
41333
+ default: "default"
41334
+ };
41326
41335
  var getYouTubeThumbnail = (videoId, quality = "maxres") => {
41327
- const qualities = {
41328
- maxres: "maxresdefault",
41329
- sd: "sddefault",
41330
- hq: "hqdefault",
41331
- mq: "mqdefault",
41332
- default: "default"
41333
- };
41334
41336
  return `https://img.youtube.com/vi/${videoId}/${qualities[quality]}.jpg`;
41335
41337
  };
41336
41338
  var captureFrame = (frameTime, video) => {
@@ -42936,7 +42938,7 @@ function createAudio(id, data, board) {
42936
42938
  if (!isAudioItemData(data)) {
42937
42939
  throw new Error("Invalid data for AudioItem");
42938
42940
  }
42939
- const audio = new AudioItem(board, data.isStorageUrl, data.url, board.events, id, data.extension).setId(id).deserialize(data);
42941
+ const audio = new AudioItem(board, data.url, board.events, id, data.extension).setId(id).deserialize(data);
42940
42942
  return audio;
42941
42943
  }
42942
42944
  function createDrawing(id, data, board) {
package/dist/esm/node.js CHANGED
@@ -8212,6 +8212,8 @@ class Transformation {
8212
8212
  this.applyScaleBy(op.x, op.y);
8213
8213
  } else if (op.method === "translateBy") {
8214
8214
  this.applyTranslateBy(op.x, op.y);
8215
+ } else if (op.method === "translateTo") {
8216
+ this.applyTranslateTo(op.x, op.y);
8215
8217
  }
8216
8218
  }
8217
8219
  applyScaleByRelativeTo(x, y, point) {
@@ -43791,14 +43793,14 @@ var getYouTubeVideoPreview = (youtubeUrl) => {
43791
43793
  };
43792
43794
  });
43793
43795
  };
43796
+ var qualities = {
43797
+ maxres: "maxresdefault",
43798
+ sd: "sddefault",
43799
+ hq: "hqdefault",
43800
+ mq: "mqdefault",
43801
+ default: "default"
43802
+ };
43794
43803
  var getYouTubeThumbnail = (videoId, quality = "maxres") => {
43795
- const qualities = {
43796
- maxres: "maxresdefault",
43797
- sd: "sddefault",
43798
- hq: "hqdefault",
43799
- mq: "mqdefault",
43800
- default: "default"
43801
- };
43802
43804
  return `https://img.youtube.com/vi/${videoId}/${qualities[quality]}.jpg`;
43803
43805
  };
43804
43806
  var captureFrame = (frameTime, video) => {
@@ -45404,7 +45406,7 @@ function createAudio(id, data, board) {
45404
45406
  if (!isAudioItemData(data)) {
45405
45407
  throw new Error("Invalid data for AudioItem");
45406
45408
  }
45407
- const audio = new AudioItem(board, data.isStorageUrl, data.url, board.events, id, data.extension).setId(id).deserialize(data);
45409
+ const audio = new AudioItem(board, data.url, board.events, id, data.extension).setId(id).deserialize(data);
45408
45410
  return audio;
45409
45411
  }
45410
45412
  function createDrawing(id, data, board) {
@@ -11,5 +11,13 @@ export declare const prepareVideo: (file: File, accessToken: string | null, boar
11
11
  previewUrl: string;
12
12
  }>;
13
13
  export declare const getYouTubeVideoPreview: (youtubeUrl: string) => Promise<HTMLImageElement>;
14
- export declare const getYouTubeThumbnail: (videoId: string, quality?: string) => string;
14
+ declare const qualities: {
15
+ readonly maxres: "maxresdefault";
16
+ readonly sd: "sddefault";
17
+ readonly hq: "hqdefault";
18
+ readonly mq: "mqdefault";
19
+ readonly default: "default";
20
+ };
21
+ export declare const getYouTubeThumbnail: (videoId: string, quality?: keyof typeof qualities) => string;
15
22
  export declare const captureFrame: (frameTime: number, video: HTMLVideoElement) => HTMLImageElement | null;
23
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.5.65",
3
+ "version": "0.5.67",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",