@myoc/excalidraw 0.19.504 → 0.19.506
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 +160 -0
- package/dist/dev/{chunk-Z5DMFRJ5.js → chunk-CUCA2WKB.js} +8 -7
- package/dist/dev/{chunk-Z5DMFRJ5.js.map → chunk-CUCA2WKB.js.map} +2 -2
- package/dist/dev/{chunk-OF725VHI.js → chunk-KCN2IL3S.js} +2 -2
- package/dist/dev/data/{image-ZR5DXOGS.js → image-KG7C5ZXU.js} +3 -3
- package/dist/dev/index.css +12 -0
- package/dist/dev/index.css.map +2 -2
- package/dist/dev/index.js +252 -273
- package/dist/dev/index.js.map +3 -3
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/{chunk-KG57QRSG.js → chunk-74H5OWWZ.js} +1 -1
- package/dist/prod/{chunk-44LLHLSZ.js → chunk-DAHBMDEO.js} +3 -3
- package/dist/prod/data/image-OZR7E4WV.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +17 -17
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/excalidraw/actions/actionStyles.d.ts +2 -4
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +1 -2
- package/dist/types/excalidraw/components/App.d.ts +8 -0
- package/dist/types/excalidraw/scene/types.d.ts +2 -0
- package/dist/types/excalidraw/types.d.ts +2 -0
- package/package.json +4 -4
- package/dist/prod/data/image-XPYUWCHN.js +0 -1
- /package/dist/dev/{chunk-OF725VHI.js.map → chunk-KCN2IL3S.js.map} +0 -0
- /package/dist/dev/data/{image-ZR5DXOGS.js.map → image-KG7C5ZXU.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -64,6 +64,7 @@ Please add the latest change on the top under the correct section.
|
|
|
64
64
|
- Incorrect import for color (was moved to common)
|
|
65
65
|
|
|
66
66
|
---
|
|
67
|
+
|
|
67
68
|
## 0.19.503 (2026-03-22)
|
|
68
69
|
|
|
69
70
|
## Excalidraw API
|
|
@@ -3964,4 +3965,163 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
|
|
|
3964
3965
|
|
|
3965
3966
|
- Docker compose version removed [#10074](https://github.com/excalidraw/excalidraw/pull/10074)
|
|
3966
3967
|
|
|
3968
|
+
---## Excalidraw Library
|
|
3969
|
+
|
|
3970
|
+
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
|
3971
|
+
|
|
3972
|
+
### Features
|
|
3973
|
+
|
|
3974
|
+
- Add ability to turn off compression for files that are smaller than a given size
|
|
3975
|
+
|
|
3976
|
+
- Add lock tool to the dropdown and also add the status of the extra tools to be the same icon as the selected tool
|
|
3977
|
+
|
|
3978
|
+
- Add view mode button
|
|
3979
|
+
|
|
3980
|
+
- Add multiple image copy paste or drag and drop
|
|
3981
|
+
|
|
3982
|
+
- Multiple image additions from clipboard
|
|
3983
|
+
|
|
3984
|
+
- Add arrange elements action
|
|
3985
|
+
|
|
3986
|
+
- Add top picks to appProps for both stoke color and background color
|
|
3987
|
+
|
|
3988
|
+
### Fixes
|
|
3989
|
+
|
|
3990
|
+
- Issues
|
|
3991
|
+
|
|
3992
|
+
- Make mobile mode more myoc looking
|
|
3993
|
+
|
|
3994
|
+
- Add normalise functionality
|
|
3995
|
+
|
|
3996
|
+
- Update with excalidraw
|
|
3997
|
+
|
|
3998
|
+
- Fix imports
|
|
3999
|
+
|
|
4000
|
+
- Fix mutateGroup to use scene.mutateGroup
|
|
4001
|
+
|
|
4002
|
+
- Imports
|
|
4003
|
+
|
|
4004
|
+
- Ensure that fileId is different for compressed vs uncompressed file
|
|
4005
|
+
|
|
4006
|
+
- Remove not working prop for dontResizeLimitMBs
|
|
4007
|
+
|
|
4008
|
+
- Add smartview for mobile
|
|
4009
|
+
|
|
4010
|
+
- Hide the alignment buttons if there is only one group selected (they do nothing if only one group is selected)
|
|
4011
|
+
|
|
4012
|
+
- Use css vars already provided instead of hard coding directly from oc-gray
|
|
4013
|
+
|
|
4014
|
+
- Remove unused variables
|
|
4015
|
+
|
|
4016
|
+
- Pass the new top pick color props properly
|
|
4017
|
+
|
|
4018
|
+
- Incorrect import for color (was moved to common)
|
|
4019
|
+
|
|
4020
|
+
---
|
|
4021
|
+
|
|
4022
|
+
## Excalidraw Library
|
|
4023
|
+
|
|
4024
|
+
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
|
4025
|
+
|
|
4026
|
+
### Features
|
|
4027
|
+
|
|
4028
|
+
- Add ability to turn off compression for files that are smaller than a given size
|
|
4029
|
+
|
|
4030
|
+
- Add lock tool to the dropdown and also add the status of the extra tools to be the same icon as the selected tool
|
|
4031
|
+
|
|
4032
|
+
- Add view mode button
|
|
4033
|
+
|
|
4034
|
+
- Add multiple image copy paste or drag and drop
|
|
4035
|
+
|
|
4036
|
+
- Multiple image additions from clipboard
|
|
4037
|
+
|
|
4038
|
+
- Add arrange elements action
|
|
4039
|
+
|
|
4040
|
+
- Add top picks to appProps for both stoke color and background color
|
|
4041
|
+
|
|
4042
|
+
### Fixes
|
|
4043
|
+
|
|
4044
|
+
- Issues
|
|
4045
|
+
|
|
4046
|
+
- Make mobile mode more myoc looking
|
|
4047
|
+
|
|
4048
|
+
- Add normalise functionality
|
|
4049
|
+
|
|
4050
|
+
- Update with excalidraw
|
|
4051
|
+
|
|
4052
|
+
- Fix imports
|
|
4053
|
+
|
|
4054
|
+
- Fix mutateGroup to use scene.mutateGroup
|
|
4055
|
+
|
|
4056
|
+
- Imports
|
|
4057
|
+
|
|
4058
|
+
- Ensure that fileId is different for compressed vs uncompressed file
|
|
4059
|
+
|
|
4060
|
+
- Remove not working prop for dontResizeLimitMBs
|
|
4061
|
+
|
|
4062
|
+
- Add smartview for mobile
|
|
4063
|
+
|
|
4064
|
+
- Hide the alignment buttons if there is only one group selected (they do nothing if only one group is selected)
|
|
4065
|
+
|
|
4066
|
+
- Use css vars already provided instead of hard coding directly from oc-gray
|
|
4067
|
+
|
|
4068
|
+
- Remove unused variables
|
|
4069
|
+
|
|
4070
|
+
- Pass the new top pick color props properly
|
|
4071
|
+
|
|
4072
|
+
- Incorrect import for color (was moved to common)
|
|
4073
|
+
|
|
4074
|
+
---## Excalidraw Library
|
|
4075
|
+
|
|
4076
|
+
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
|
4077
|
+
|
|
4078
|
+
### Features
|
|
4079
|
+
|
|
4080
|
+
- Add ability to turn off compression for files that are smaller than a given size
|
|
4081
|
+
|
|
4082
|
+
- Add lock tool to the dropdown and also add the status of the extra tools to be the same icon as the selected tool
|
|
4083
|
+
|
|
4084
|
+
- Add view mode button
|
|
4085
|
+
|
|
4086
|
+
- Add multiple image copy paste or drag and drop
|
|
4087
|
+
|
|
4088
|
+
- Multiple image additions from clipboard
|
|
4089
|
+
|
|
4090
|
+
- Add arrange elements action
|
|
4091
|
+
|
|
4092
|
+
- Add top picks to appProps for both stoke color and background color
|
|
4093
|
+
|
|
4094
|
+
### Fixes
|
|
4095
|
+
|
|
4096
|
+
- Issues
|
|
4097
|
+
|
|
4098
|
+
- Make mobile mode more myoc looking
|
|
4099
|
+
|
|
4100
|
+
- Add normalise functionality
|
|
4101
|
+
|
|
4102
|
+
- Update with excalidraw
|
|
4103
|
+
|
|
4104
|
+
- Fix imports
|
|
4105
|
+
|
|
4106
|
+
- Fix mutateGroup to use scene.mutateGroup
|
|
4107
|
+
|
|
4108
|
+
- Imports
|
|
4109
|
+
|
|
4110
|
+
- Ensure that fileId is different for compressed vs uncompressed file
|
|
4111
|
+
|
|
4112
|
+
- Remove not working prop for dontResizeLimitMBs
|
|
4113
|
+
|
|
4114
|
+
- Add smartview for mobile
|
|
4115
|
+
|
|
4116
|
+
- Hide the alignment buttons if there is only one group selected (they do nothing if only one group is selected)
|
|
4117
|
+
|
|
4118
|
+
- Use css vars already provided instead of hard coding directly from oc-gray
|
|
4119
|
+
|
|
4120
|
+
- Remove unused variables
|
|
4121
|
+
|
|
4122
|
+
- Pass the new top pick color props properly
|
|
4123
|
+
|
|
4124
|
+
- Incorrect import for color (was moved to common)
|
|
4125
|
+
|
|
3967
4126
|
---
|
|
4127
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
define_import_meta_env_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KCN2IL3S.js";
|
|
4
4
|
import {
|
|
5
5
|
__publicField
|
|
6
6
|
} from "./chunk-XDFCUUT6.js";
|
|
@@ -3217,7 +3217,7 @@ var GridLineColor = {
|
|
|
3217
3217
|
regular: applyDarkModeFilter2("#e5e5e5")
|
|
3218
3218
|
}
|
|
3219
3219
|
};
|
|
3220
|
-
var strokeGrid = (context, gridSize, gridStep, scrollX, scrollY, zoom,
|
|
3220
|
+
var strokeGrid = (context, gridSize, gridStep, scrollX, scrollY, zoom, gridColorBold, gridColorRegular, width, height) => {
|
|
3221
3221
|
const offsetX = scrollX % gridSize - gridSize;
|
|
3222
3222
|
const offsetY = scrollY % gridSize - gridSize;
|
|
3223
3223
|
const actualGridSize = gridSize * zoom.value;
|
|
@@ -3236,7 +3236,7 @@ var strokeGrid = (context, gridSize, gridStep, scrollX, scrollY, zoom, theme, wi
|
|
|
3236
3236
|
const lineDash = [lineWidth * 3, spaceWidth + (lineWidth + spaceWidth)];
|
|
3237
3237
|
context.beginPath();
|
|
3238
3238
|
context.setLineDash(isBold ? [] : lineDash);
|
|
3239
|
-
context.strokeStyle = isBold ?
|
|
3239
|
+
context.strokeStyle = isBold ? gridColorBold : gridColorRegular;
|
|
3240
3240
|
context.moveTo(x, offsetY - gridSize);
|
|
3241
3241
|
context.lineTo(x, Math.ceil(offsetY + height + gridSize * 2));
|
|
3242
3242
|
context.stroke();
|
|
@@ -3251,7 +3251,7 @@ var strokeGrid = (context, gridSize, gridStep, scrollX, scrollY, zoom, theme, wi
|
|
|
3251
3251
|
const lineDash = [lineWidth * 3, spaceWidth + (lineWidth + spaceWidth)];
|
|
3252
3252
|
context.beginPath();
|
|
3253
3253
|
context.setLineDash(isBold ? [] : lineDash);
|
|
3254
|
-
context.strokeStyle = isBold ?
|
|
3254
|
+
context.strokeStyle = isBold ? gridColorBold : gridColorRegular;
|
|
3255
3255
|
context.moveTo(offsetX - gridSize, y);
|
|
3256
3256
|
context.lineTo(Math.ceil(offsetX + width + gridSize * 2), y);
|
|
3257
3257
|
context.stroke();
|
|
@@ -3365,7 +3365,8 @@ var _renderStaticScene = ({
|
|
|
3365
3365
|
appState.scrollX,
|
|
3366
3366
|
appState.scrollY,
|
|
3367
3367
|
appState.zoom,
|
|
3368
|
-
renderConfig.theme,
|
|
3368
|
+
renderConfig.gridColorBold ?? GridLineColor[renderConfig.theme].bold,
|
|
3369
|
+
renderConfig.gridColorRegular ?? GridLineColor[renderConfig.theme].regular,
|
|
3369
3370
|
normalizedWidth / appState.zoom.value,
|
|
3370
3371
|
normalizedHeight / appState.zoom.value
|
|
3371
3372
|
);
|
|
@@ -5078,7 +5079,7 @@ var parseFileContents = async (blob) => {
|
|
|
5078
5079
|
let contents;
|
|
5079
5080
|
if (blob.type === MIME_TYPES6.png) {
|
|
5080
5081
|
try {
|
|
5081
|
-
return await (await import("./data/image-
|
|
5082
|
+
return await (await import("./data/image-KG7C5ZXU.js")).decodePngMetadata(blob);
|
|
5082
5083
|
} catch (error) {
|
|
5083
5084
|
if (error.message === "INVALID") {
|
|
5084
5085
|
throw new ImageSceneDataError(
|
|
@@ -5511,4 +5512,4 @@ export {
|
|
|
5511
5512
|
createFile,
|
|
5512
5513
|
normalizeFile
|
|
5513
5514
|
};
|
|
5514
|
-
//# sourceMappingURL=chunk-
|
|
5515
|
+
//# sourceMappingURL=chunk-CUCA2WKB.js.map
|