canvasxpress 67.5.0 → 67.7.0

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.
@@ -0,0 +1,20 @@
1
+ /**
2
+ * ESM entry for the CanvasXpress browser bundle.
3
+ *
4
+ * CanvasXpress ships as a UMD/global build that runs in a browser or bundler
5
+ * context (it references window/document at load, so it is browser-only). This
6
+ * entry executes that bundle for its side effect and re-exports the global
7
+ * constructor, so `import CanvasXpress from "canvasxpress"` works under bundlers
8
+ * such as Vite, webpack and esbuild, and in Observable. Importing it in a plain
9
+ * Node (non-DOM) runtime throws the same "window is not defined" as the UMD, by
10
+ * design — the library needs a browser environment.
11
+ */
12
+ import "./canvasXpress.js";
13
+
14
+ var CanvasXpress =
15
+ (typeof globalThis !== "undefined" && globalThis.CanvasXpress) ? globalThis.CanvasXpress :
16
+ (typeof window !== "undefined" && window.CanvasXpress) ? window.CanvasXpress :
17
+ (typeof self !== "undefined" ? self.CanvasXpress : undefined);
18
+
19
+ export { CanvasXpress };
20
+ export default CanvasXpress;