@myoc/excalidraw 0.19.505 → 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 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
@@ -4017,6 +4018,7 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
4017
4018
  - Incorrect import for color (was moved to common)
4018
4019
 
4019
4020
  ---
4021
+
4020
4022
  ## Excalidraw Library
4021
4023
 
4022
4024
  **_This section lists the updates made to the excalidraw library and will not affect the integration._**
@@ -4069,5 +4071,57 @@ First release of `@excalidraw/excalidraw`## Excalidraw Library
4069
4071
 
4070
4072
  - Incorrect import for color (was moved to common)
4071
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
+
4072
4126
  ---
4073
4127
 
@@ -3217,7 +3217,7 @@ var GridLineColor = {
3217
3217
  regular: applyDarkModeFilter2("#e5e5e5")
3218
3218
  }
3219
3219
  };
3220
- var strokeGrid = (context, gridSize, gridStep, scrollX, scrollY, zoom, theme, width, height) => {
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 ? GridLineColor[theme].bold : GridLineColor[theme].regular;
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 ? GridLineColor[theme].bold : GridLineColor[theme].regular;
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-KFKBCMAI.js")).decodePngMetadata(blob);
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-D5OSJVKD.js.map
5515
+ //# sourceMappingURL=chunk-CUCA2WKB.js.map