@tldraw/editor 3.12.0-canary.5710af1760dc → 3.12.0-canary.72b63fdade8b

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/dist-cjs/index.js CHANGED
@@ -374,7 +374,7 @@ function debugEnableLicensing() {
374
374
  }
375
375
  (0, import_utils.registerTldrawLibraryVersion)(
376
376
  "@tldraw/editor",
377
- "3.12.0-canary.5710af1760dc",
377
+ "3.12.0-canary.72b63fdade8b",
378
378
  "cjs"
379
379
  );
380
380
  //# sourceMappingURL=index.js.map
@@ -5942,8 +5942,15 @@ class Editor extends (_a = import_eventemitter3.default, _getIsShapeHiddenCache_
5942
5942
  const styles = new import_SharedStylesMap.SharedStyleMap();
5943
5943
  if (!currentTool) return styles;
5944
5944
  if (currentTool.shapeType) {
5945
- for (const style of this.styleProps[currentTool.shapeType].keys()) {
5946
- styles.applyValue(style, this.getStyleForNextShape(style));
5945
+ if (currentTool.shapeType === "frame" && !this.getShapeUtil("frame").options.showColors) {
5946
+ for (const style of this.styleProps[currentTool.shapeType].keys()) {
5947
+ if (style.id === "tldraw:color") continue;
5948
+ styles.applyValue(style, this.getStyleForNextShape(style));
5949
+ }
5950
+ } else {
5951
+ for (const style of this.styleProps[currentTool.shapeType].keys()) {
5952
+ styles.applyValue(style, this.getStyleForNextShape(style));
5953
+ }
5947
5954
  }
5948
5955
  }
5949
5956
  return styles;