microboard-temp 0.5.25 → 0.5.27

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.
@@ -47891,7 +47891,7 @@ class Card extends BaseItem {
47891
47891
  ctx.translate(centerX, centerY);
47892
47892
  ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
47893
47893
  if (width2 > height3) {
47894
- ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, height3, width2);
47894
+ ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
47895
47895
  } else {
47896
47896
  ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
47897
47897
  }
@@ -56544,11 +56544,11 @@ function handleBoardSubscriptionCompletedMsg(msg, board) {
56544
56544
  }
56545
56545
  handleBoardEventListApplication(msg.eventsSinceLastSnapshot, board);
56546
56546
  board.setInterfaceType(msg.mode);
56547
+ board.subject.publish();
56547
56548
  onBoardLoad(board);
56548
56549
  }
56549
56550
  function handleSeqNumApplication(initialSequenceNumber, board) {
56550
56551
  const { log } = board.events;
56551
- console.log(`upd seq number from ${log.currentSequenceNumber.toString()} to ${initialSequenceNumber}`);
56552
56552
  log.currentSequenceNumber = initialSequenceNumber;
56553
56553
  if (log.pendingEvent) {
56554
56554
  log.pendingEvent.sequenceNumber = log.currentSequenceNumber;
package/dist/cjs/index.js CHANGED
@@ -47891,7 +47891,7 @@ class Card extends BaseItem {
47891
47891
  ctx.translate(centerX, centerY);
47892
47892
  ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
47893
47893
  if (width2 > height3) {
47894
- ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, height3, width2);
47894
+ ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
47895
47895
  } else {
47896
47896
  ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
47897
47897
  }
@@ -56544,11 +56544,11 @@ function handleBoardSubscriptionCompletedMsg(msg, board) {
56544
56544
  }
56545
56545
  handleBoardEventListApplication(msg.eventsSinceLastSnapshot, board);
56546
56546
  board.setInterfaceType(msg.mode);
56547
+ board.subject.publish();
56547
56548
  onBoardLoad(board);
56548
56549
  }
56549
56550
  function handleSeqNumApplication(initialSequenceNumber, board) {
56550
56551
  const { log } = board.events;
56551
- console.log(`upd seq number from ${log.currentSequenceNumber.toString()} to ${initialSequenceNumber}`);
56552
56552
  log.currentSequenceNumber = initialSequenceNumber;
56553
56553
  if (log.pendingEvent) {
56554
56554
  log.pendingEvent.sequenceNumber = log.currentSequenceNumber;
package/dist/cjs/node.js CHANGED
@@ -50364,7 +50364,7 @@ class Card extends BaseItem {
50364
50364
  ctx.translate(centerX, centerY);
50365
50365
  ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
50366
50366
  if (width2 > height3) {
50367
- ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, height3, width2);
50367
+ ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
50368
50368
  } else {
50369
50369
  ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
50370
50370
  }
@@ -59017,11 +59017,11 @@ function handleBoardSubscriptionCompletedMsg(msg, board) {
59017
59017
  }
59018
59018
  handleBoardEventListApplication(msg.eventsSinceLastSnapshot, board);
59019
59019
  board.setInterfaceType(msg.mode);
59020
+ board.subject.publish();
59020
59021
  onBoardLoad(board);
59021
59022
  }
59022
59023
  function handleSeqNumApplication(initialSequenceNumber, board) {
59023
59024
  const { log } = board.events;
59024
- console.log(`upd seq number from ${log.currentSequenceNumber.toString()} to ${initialSequenceNumber}`);
59025
59025
  log.currentSequenceNumber = initialSequenceNumber;
59026
59026
  if (log.pendingEvent) {
59027
59027
  log.pendingEvent.sequenceNumber = log.currentSequenceNumber;
@@ -47737,7 +47737,7 @@ class Card extends BaseItem {
47737
47737
  ctx.translate(centerX, centerY);
47738
47738
  ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
47739
47739
  if (width2 > height3) {
47740
- ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, height3, width2);
47740
+ ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
47741
47741
  } else {
47742
47742
  ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
47743
47743
  }
@@ -56390,11 +56390,11 @@ function handleBoardSubscriptionCompletedMsg(msg, board) {
56390
56390
  }
56391
56391
  handleBoardEventListApplication(msg.eventsSinceLastSnapshot, board);
56392
56392
  board.setInterfaceType(msg.mode);
56393
+ board.subject.publish();
56393
56394
  onBoardLoad(board);
56394
56395
  }
56395
56396
  function handleSeqNumApplication(initialSequenceNumber, board) {
56396
56397
  const { log } = board.events;
56397
- console.log(`upd seq number from ${log.currentSequenceNumber.toString()} to ${initialSequenceNumber}`);
56398
56398
  log.currentSequenceNumber = initialSequenceNumber;
56399
56399
  if (log.pendingEvent) {
56400
56400
  log.pendingEvent.sequenceNumber = log.currentSequenceNumber;
package/dist/esm/index.js CHANGED
@@ -47730,7 +47730,7 @@ class Card extends BaseItem {
47730
47730
  ctx.translate(centerX, centerY);
47731
47731
  ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
47732
47732
  if (width2 > height3) {
47733
- ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, height3, width2);
47733
+ ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
47734
47734
  } else {
47735
47735
  ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
47736
47736
  }
@@ -56383,11 +56383,11 @@ function handleBoardSubscriptionCompletedMsg(msg, board) {
56383
56383
  }
56384
56384
  handleBoardEventListApplication(msg.eventsSinceLastSnapshot, board);
56385
56385
  board.setInterfaceType(msg.mode);
56386
+ board.subject.publish();
56386
56387
  onBoardLoad(board);
56387
56388
  }
56388
56389
  function handleSeqNumApplication(initialSequenceNumber, board) {
56389
56390
  const { log } = board.events;
56390
- console.log(`upd seq number from ${log.currentSequenceNumber.toString()} to ${initialSequenceNumber}`);
56391
56391
  log.currentSequenceNumber = initialSequenceNumber;
56392
56392
  if (log.pendingEvent) {
56393
56393
  log.pendingEvent.sequenceNumber = log.currentSequenceNumber;
package/dist/esm/node.js CHANGED
@@ -50198,7 +50198,7 @@ class Card extends BaseItem {
50198
50198
  ctx.translate(centerX, centerY);
50199
50199
  ctx.rotate(this.transformation.getRotation() * Math.PI / 180);
50200
50200
  if (width2 > height3) {
50201
- ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, height3, width2);
50201
+ ctx.drawImage(this.imageToRender, -height3 / 2, -width2 / 2, height3, width2);
50202
50202
  } else {
50203
50203
  ctx.drawImage(this.imageToRender, -width2 / 2, -height3 / 2, width2, height3);
50204
50204
  }
@@ -58851,11 +58851,11 @@ function handleBoardSubscriptionCompletedMsg(msg, board) {
58851
58851
  }
58852
58852
  handleBoardEventListApplication(msg.eventsSinceLastSnapshot, board);
58853
58853
  board.setInterfaceType(msg.mode);
58854
+ board.subject.publish();
58854
58855
  onBoardLoad(board);
58855
58856
  }
58856
58857
  function handleSeqNumApplication(initialSequenceNumber, board) {
58857
58858
  const { log } = board.events;
58858
- console.log(`upd seq number from ${log.currentSequenceNumber.toString()} to ${initialSequenceNumber}`);
58859
58859
  log.currentSequenceNumber = initialSequenceNumber;
58860
58860
  if (log.pendingEvent) {
58861
58861
  log.pendingEvent.sequenceNumber = log.currentSequenceNumber;
@@ -1,5 +1,5 @@
1
- import { Board } from '../../Board';
2
- import { BoardSubscriptionCompletedMsg } from './boardMessageInterface';
1
+ import { Board } from "../../Board";
2
+ import { BoardSubscriptionCompletedMsg } from "./boardMessageInterface";
3
3
  export declare function handleBoardSubscriptionCompletedMsg(msg: BoardSubscriptionCompletedMsg, board: Board): void;
4
4
  export declare function handleSeqNumApplication(initialSequenceNumber: number, board: Board): void;
5
5
  export declare function startIntervals(board: Board): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.5.25",
3
+ "version": "0.5.27",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",