@myoc/excalidraw 0.19.515 → 0.19.516
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.
- package/CHANGELOG.md +53 -0
- package/dist/dev/{chunk-743OUYY5.js → chunk-IBY5YU6S.js} +2 -2
- package/dist/dev/{chunk-WIJ675EZ.js → chunk-YWH5H56B.js} +3 -3
- package/dist/dev/data/{image-DAAZ7YY4.js → image-VSXYAV2C.js} +3 -3
- package/dist/dev/index.js +11 -5
- package/dist/dev/index.js.map +2 -2
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/{chunk-5ADLKOJQ.js → chunk-KNCLLHEB.js} +1 -1
- package/dist/prod/{chunk-B2SJBHTC.js → chunk-MDL47EFM.js} +2 -2
- package/dist/prod/data/image-ENA4T2CA.js +1 -0
- package/dist/prod/index.js +3 -3
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/package.json +4 -4
- package/dist/prod/data/image-GWMHT2EN.js +0 -1
- /package/dist/dev/{chunk-743OUYY5.js.map → chunk-IBY5YU6S.js.map} +0 -0
- /package/dist/dev/{chunk-WIJ675EZ.js.map → chunk-YWH5H56B.js.map} +0 -0
- /package/dist/dev/data/{image-DAAZ7YY4.js.map → image-VSXYAV2C.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -4548,4 +4548,57 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
|
|
|
4548
4548
|
- Incorrect import for color (was moved to common)
|
|
4549
4549
|
|
|
4550
4550
|
---
|
|
4551
|
+
## Excalidraw Library
|
|
4552
|
+
|
|
4553
|
+
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
|
4554
|
+
|
|
4555
|
+
### Features
|
|
4556
|
+
|
|
4557
|
+
- Add ability to turn off compression for files that are smaller than a given size
|
|
4558
|
+
|
|
4559
|
+
- Add lock tool to the dropdown and also add the status of the extra tools to be the same icon as the selected tool
|
|
4560
|
+
|
|
4561
|
+
- Add view mode button
|
|
4562
|
+
|
|
4563
|
+
- Add multiple image copy paste or drag and drop
|
|
4564
|
+
|
|
4565
|
+
- Multiple image additions from clipboard
|
|
4566
|
+
|
|
4567
|
+
- Add arrange elements action
|
|
4568
|
+
|
|
4569
|
+
- Add top picks to appProps for both stoke color and background color
|
|
4570
|
+
|
|
4571
|
+
### Fixes
|
|
4572
|
+
|
|
4573
|
+
- Issues
|
|
4574
|
+
|
|
4575
|
+
- Make mobile mode more myoc looking
|
|
4576
|
+
|
|
4577
|
+
- Add normalise functionality
|
|
4578
|
+
|
|
4579
|
+
- Update with excalidraw
|
|
4580
|
+
|
|
4581
|
+
- Fix imports
|
|
4582
|
+
|
|
4583
|
+
- Fix mutateGroup to use scene.mutateGroup
|
|
4584
|
+
|
|
4585
|
+
- Imports
|
|
4586
|
+
|
|
4587
|
+
- Ensure that fileId is different for compressed vs uncompressed file
|
|
4588
|
+
|
|
4589
|
+
- Remove not working prop for dontResizeLimitMBs
|
|
4590
|
+
|
|
4591
|
+
- Add smartview for mobile
|
|
4592
|
+
|
|
4593
|
+
- Hide the alignment buttons if there is only one group selected (they do nothing if only one group is selected)
|
|
4594
|
+
|
|
4595
|
+
- Use css vars already provided instead of hard coding directly from oc-gray
|
|
4596
|
+
|
|
4597
|
+
- Remove unused variables
|
|
4598
|
+
|
|
4599
|
+
- Pass the new top pick color props properly
|
|
4600
|
+
|
|
4601
|
+
- Incorrect import for color (was moved to common)
|
|
4602
|
+
|
|
4603
|
+
---
|
|
4551
4604
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// <define:import.meta.env>
|
|
2
|
-
var define_import_meta_env_default = { MODE: "development", VITE_APP_BACKEND_V2_GET_URL: "https://json-dev.excalidraw.com/api/v2/", VITE_APP_BACKEND_V2_POST_URL: "https://json-dev.excalidraw.com/api/v2/post/", VITE_APP_LIBRARY_URL: "https://libraries.excalidraw.com", VITE_APP_LIBRARY_BACKEND: "https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries", VITE_APP_WS_SERVER_URL: "http://localhost:3002", VITE_APP_PLUS_LP: "https://plus.excalidraw.com", VITE_APP_PLUS_APP: "http://localhost:3000", VITE_APP_AI_BACKEND: "http://localhost:3016", VITE_APP_FIREBASE_CONFIG: '{"apiKey":"AIzaSyCMkxA60XIW8KbqMYL7edC4qT5l4qHX2h8","authDomain":"excalidraw-oss-dev.firebaseapp.com","projectId":"excalidraw-oss-dev","storageBucket":"excalidraw-oss-dev.appspot.com","messagingSenderId":"664559512677","appId":"1:664559512677:web:a385181f2928d328a7aa8c"}', VITE_APP_DEV_DISABLE_LIVE_RELOAD: "", VITE_APP_ENABLE_TRACKING: "true", FAST_REFRESH: "false", VITE_APP_PORT: "3001", VITE_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX: "", VITE_APP_COLLAPSE_OVERLAY: "true", VITE_APP_ENABLE_ESLINT: "true", VITE_APP_ENABLE_PWA: "false", VITE_APP_PLUS_EXPORT_PUBLIC_KEY: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm2g5T+Rub6Kbf1Mf57t0\n7r2zeHuVg4dla3r5ryXMswtzz6x767octl6oLThn33mQsPSy3GKglFZoCTXJR4ij\nba8SxB04sL/N8eRrKja7TFWjCVtRwTTfyy771NYYNFVJclkxHyE5qw4m27crHF1y\nUNWEjuqNMi/lwAErS9fFa2oJlWyT8U7zzv/5kQREkxZI6y9v0AF3qcbsy2731FnD\ns9ChJvOUW9toIab2gsIdrKW8ZNpu084ZFVKb6LNjvIXI1Se4oMTHeszXzNptzlot\nkdxxjOoaQMAyfljFSot1F1FlU6MQlag7UnFGvFjRHN1JI5q4K+n3a67DX+TMyRqS\nHQIDAQAB", VITE_APP_DISABLE_PREVENT_UNLOAD: "", PKG_NAME: "@myoc/excalidraw", PKG_VERSION: "0.19.
|
|
2
|
+
var define_import_meta_env_default = { MODE: "development", VITE_APP_BACKEND_V2_GET_URL: "https://json-dev.excalidraw.com/api/v2/", VITE_APP_BACKEND_V2_POST_URL: "https://json-dev.excalidraw.com/api/v2/post/", VITE_APP_LIBRARY_URL: "https://libraries.excalidraw.com", VITE_APP_LIBRARY_BACKEND: "https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries", VITE_APP_WS_SERVER_URL: "http://localhost:3002", VITE_APP_PLUS_LP: "https://plus.excalidraw.com", VITE_APP_PLUS_APP: "http://localhost:3000", VITE_APP_AI_BACKEND: "http://localhost:3016", VITE_APP_FIREBASE_CONFIG: '{"apiKey":"AIzaSyCMkxA60XIW8KbqMYL7edC4qT5l4qHX2h8","authDomain":"excalidraw-oss-dev.firebaseapp.com","projectId":"excalidraw-oss-dev","storageBucket":"excalidraw-oss-dev.appspot.com","messagingSenderId":"664559512677","appId":"1:664559512677:web:a385181f2928d328a7aa8c"}', VITE_APP_DEV_DISABLE_LIVE_RELOAD: "", VITE_APP_ENABLE_TRACKING: "true", FAST_REFRESH: "false", VITE_APP_PORT: "3001", VITE_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX: "", VITE_APP_COLLAPSE_OVERLAY: "true", VITE_APP_ENABLE_ESLINT: "true", VITE_APP_ENABLE_PWA: "false", VITE_APP_PLUS_EXPORT_PUBLIC_KEY: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm2g5T+Rub6Kbf1Mf57t0\n7r2zeHuVg4dla3r5ryXMswtzz6x767octl6oLThn33mQsPSy3GKglFZoCTXJR4ij\nba8SxB04sL/N8eRrKja7TFWjCVtRwTTfyy771NYYNFVJclkxHyE5qw4m27crHF1y\nUNWEjuqNMi/lwAErS9fFa2oJlWyT8U7zzv/5kQREkxZI6y9v0AF3qcbsy2731FnD\ns9ChJvOUW9toIab2gsIdrKW8ZNpu084ZFVKb6LNjvIXI1Se4oMTHeszXzNptzlot\nkdxxjOoaQMAyfljFSot1F1FlU6MQlag7UnFGvFjRHN1JI5q4K+n3a67DX+TMyRqS\nHQIDAQAB", VITE_APP_DISABLE_PREVENT_UNLOAD: "", PKG_NAME: "@myoc/excalidraw", PKG_VERSION: "0.19.515", DEV: true };
|
|
3
3
|
|
|
4
4
|
export {
|
|
5
5
|
define_import_meta_env_default
|
|
6
6
|
};
|
|
7
|
-
//# sourceMappingURL=chunk-
|
|
7
|
+
//# sourceMappingURL=chunk-IBY5YU6S.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
define_import_meta_env_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IBY5YU6S.js";
|
|
4
4
|
import {
|
|
5
5
|
__publicField
|
|
6
6
|
} from "./chunk-XDFCUUT6.js";
|
|
@@ -5102,7 +5102,7 @@ var parseFileContents = async (blob) => {
|
|
|
5102
5102
|
let contents;
|
|
5103
5103
|
if (blob.type === MIME_TYPES6.png) {
|
|
5104
5104
|
try {
|
|
5105
|
-
return await (await import("./data/image-
|
|
5105
|
+
return await (await import("./data/image-VSXYAV2C.js")).decodePngMetadata(blob);
|
|
5106
5106
|
} catch (error) {
|
|
5107
5107
|
if (error.message === "INVALID") {
|
|
5108
5108
|
throw new ImageSceneDataError(
|
|
@@ -5463,4 +5463,4 @@ export {
|
|
|
5463
5463
|
createFile,
|
|
5464
5464
|
normalizeFile
|
|
5465
5465
|
};
|
|
5466
|
-
//# sourceMappingURL=chunk-
|
|
5466
|
+
//# sourceMappingURL=chunk-YWH5H56B.js.map
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
decodePngMetadata,
|
|
3
3
|
encodePngMetadata,
|
|
4
4
|
getTEXtChunk
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-YWH5H56B.js";
|
|
6
|
+
import "../chunk-IBY5YU6S.js";
|
|
7
7
|
import "../chunk-XDFCUUT6.js";
|
|
8
8
|
export {
|
|
9
9
|
decodePngMetadata,
|
|
10
10
|
encodePngMetadata,
|
|
11
11
|
getTEXtChunk
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=image-
|
|
13
|
+
//# sourceMappingURL=image-VSXYAV2C.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-
|
|
60
|
+
} from "./chunk-YWH5H56B.js";
|
|
61
61
|
import {
|
|
62
62
|
define_import_meta_env_default
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-IBY5YU6S.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-
|
|
9614
|
+
(blob2) => import("./data/image-VSXYAV2C.js").then(
|
|
9615
9615
|
({ encodePngMetadata: encodePngMetadata2 }) => encodePngMetadata2({
|
|
9616
9616
|
blob: blob2,
|
|
9617
9617
|
metadata: serializeAsJSON(elements, appState, files, "local")
|
|
@@ -36041,6 +36041,7 @@ var App = class _App extends React40.Component {
|
|
|
36041
36041
|
throw new Error(t("errors.unsupportedFileType"));
|
|
36042
36042
|
}
|
|
36043
36043
|
const mimeType = imageFile.type;
|
|
36044
|
+
let fileName = imageFile.name;
|
|
36044
36045
|
const fileNeedsResizing = imageFile.size >= this.state.dontResizeLimitMBs * 1024 * 1024;
|
|
36045
36046
|
setCursor(this.interactiveCanvas, "wait");
|
|
36046
36047
|
if (mimeType === MIME_TYPES7.svg) {
|
|
@@ -36059,6 +36060,11 @@ var App = class _App extends React40.Component {
|
|
|
36059
36060
|
imageFile = await this.props.compressImageFile(imageFile, {
|
|
36060
36061
|
maxWidthOrHeight
|
|
36061
36062
|
});
|
|
36063
|
+
const extensionIndex = imageFile.name.lastIndexOf(".");
|
|
36064
|
+
fileName = extensionIndex > 0 ? `${imageFile.name.slice(
|
|
36065
|
+
0,
|
|
36066
|
+
extensionIndex
|
|
36067
|
+
)}-resized${imageFile.name.slice(extensionIndex)}` : `${imageFile.name}-resized`;
|
|
36062
36068
|
console.info("Excalidraw: image resized");
|
|
36063
36069
|
} catch (error) {
|
|
36064
36070
|
console.error(
|
|
@@ -36091,7 +36097,7 @@ var App = class _App extends React40.Component {
|
|
|
36091
36097
|
let initializedImageElement = this.getLatestInitializedImageElement(
|
|
36092
36098
|
placeholderImageElement,
|
|
36093
36099
|
fileId,
|
|
36094
|
-
|
|
36100
|
+
fileName
|
|
36095
36101
|
);
|
|
36096
36102
|
this.addMissingFiles([
|
|
36097
36103
|
{
|
|
@@ -36116,7 +36122,7 @@ var App = class _App extends React40.Component {
|
|
|
36116
36122
|
initializedImageElement = this.getLatestInitializedImageElement(
|
|
36117
36123
|
placeholderImageElement,
|
|
36118
36124
|
fileId,
|
|
36119
|
-
|
|
36125
|
+
fileName
|
|
36120
36126
|
);
|
|
36121
36127
|
const naturalDimensions = this.getImageNaturalDimensions(
|
|
36122
36128
|
initializedImageElement,
|