microboard-temp 0.1.14 → 0.1.15

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.
@@ -2097,43 +2097,6 @@ var require_escape_html = __commonJS((exports2, module2) => {
2097
2097
  }
2098
2098
  });
2099
2099
 
2100
- // node_modules/canvas/browser.js
2101
- var require_browser2 = __commonJS((exports2) => {
2102
- exports2.createCanvas = function(width2, height3) {
2103
- return Object.assign(document.createElement("canvas"), { width: width2, height: height3 });
2104
- };
2105
- exports2.createImageData = function(array, width2, height3) {
2106
- switch (arguments.length) {
2107
- case 0:
2108
- return new ImageData;
2109
- case 1:
2110
- return new ImageData(array);
2111
- case 2:
2112
- return new ImageData(array, width2);
2113
- default:
2114
- return new ImageData(array, width2, height3);
2115
- }
2116
- };
2117
- exports2.loadImage = function(src, options) {
2118
- return new Promise(function(resolve2, reject) {
2119
- const image2 = Object.assign(document.createElement("img"), options);
2120
- function cleanup() {
2121
- image2.onload = null;
2122
- image2.onerror = null;
2123
- }
2124
- image2.onload = function() {
2125
- cleanup();
2126
- resolve2(image2);
2127
- };
2128
- image2.onerror = function() {
2129
- cleanup();
2130
- reject(new Error('Failed to load the image "' + src + '"'));
2131
- };
2132
- image2.src = src;
2133
- });
2134
- };
2135
- });
2136
-
2137
2100
  // src/browser.ts
2138
2101
  var exports_browser = {};
2139
2102
  __export(exports_browser, {
@@ -60990,7 +60953,7 @@ function getMeasureCtx() {
60990
60953
  }
60991
60954
  return measureCtx;
60992
60955
  } else {
60993
- const { Canvas } = require_browser2();
60956
+ const { Canvas } = require("canvas");
60994
60957
  const canvas = new Canvas(1, 1);
60995
60958
  const context = canvas.getContext("2d");
60996
60959
  return context;