@myoc/excalidraw 0.19.514 → 0.19.515

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.
@@ -2,12 +2,12 @@ import {
2
2
  decodePngMetadata,
3
3
  encodePngMetadata,
4
4
  getTEXtChunk
5
- } from "../chunk-BI6BDZVY.js";
6
- import "../chunk-FW62QUKV.js";
5
+ } from "../chunk-WIJ675EZ.js";
6
+ import "../chunk-743OUYY5.js";
7
7
  import "../chunk-XDFCUUT6.js";
8
8
  export {
9
9
  decodePngMetadata,
10
10
  encodePngMetadata,
11
11
  getTEXtChunk
12
12
  };
13
- //# sourceMappingURL=image-WGZL7YPK.js.map
13
+ //# sourceMappingURL=image-DAAZ7YY4.js.map
package/dist/dev/index.js CHANGED
@@ -57,10 +57,10 @@ import {
57
57
  saveAsJSON,
58
58
  serializeAsJSON,
59
59
  strokeRectWithRotation_simple
60
- } from "./chunk-BI6BDZVY.js";
60
+ } from "./chunk-WIJ675EZ.js";
61
61
  import {
62
62
  define_import_meta_env_default
63
- } from "./chunk-FW62QUKV.js";
63
+ } from "./chunk-743OUYY5.js";
64
64
  import {
65
65
  en_default
66
66
  } from "./chunk-ZGRXNVW4.js";
@@ -9611,7 +9611,7 @@ var exportCanvas = async (type, elements, appState, files, {
9611
9611
  let blob = canvasToBlob(tempCanvas);
9612
9612
  if (appState.exportEmbedScene) {
9613
9613
  blob = blob.then(
9614
- (blob2) => import("./data/image-WGZL7YPK.js").then(
9614
+ (blob2) => import("./data/image-DAAZ7YY4.js").then(
9615
9615
  ({ encodePngMetadata: encodePngMetadata2 }) => encodePngMetadata2({
9616
9616
  blob: blob2,
9617
9617
  metadata: serializeAsJSON(elements, appState, files, "local")
@@ -36090,7 +36090,8 @@ var App = class _App extends React40.Component {
36090
36090
  try {
36091
36091
  let initializedImageElement = this.getLatestInitializedImageElement(
36092
36092
  placeholderImageElement,
36093
- fileId
36093
+ fileId,
36094
+ imageFile.name
36094
36095
  );
36095
36096
  this.addMissingFiles([
36096
36097
  {
@@ -36114,7 +36115,8 @@ var App = class _App extends React40.Component {
36114
36115
  if (imageHTML && this.state.newElement?.id !== initializedImageElement.id) {
36115
36116
  initializedImageElement = this.getLatestInitializedImageElement(
36116
36117
  placeholderImageElement,
36117
- fileId
36118
+ fileId,
36119
+ imageFile.name
36118
36120
  );
36119
36121
  const naturalDimensions = this.getImageNaturalDimensions(
36120
36122
  initializedImageElement,
@@ -36135,12 +36137,13 @@ var App = class _App extends React40.Component {
36135
36137
  * when the placeholder image could have been modified in the meantime,
36136
36138
  * and when you don't want to loose those modifications
36137
36139
  */
36138
- __publicField(this, "getLatestInitializedImageElement", (imagePlaceholder, fileId) => {
36140
+ __publicField(this, "getLatestInitializedImageElement", (imagePlaceholder, fileId, fileName) => {
36139
36141
  const latestImageElement = this.scene.getElement(imagePlaceholder.id) ?? imagePlaceholder;
36140
36142
  return newElementWith10(
36141
36143
  latestImageElement,
36142
36144
  {
36143
- fileId
36145
+ fileId,
36146
+ fileName
36144
36147
  }
36145
36148
  );
36146
36149
  });