@fieldnotes/core 0.67.0 → 0.68.0

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/index.cjs CHANGED
@@ -7502,6 +7502,21 @@ var FogRenderer = class {
7502
7502
  DEFAULT_PLAYER_COLOR
7503
7503
  );
7504
7504
  }
7505
+ setOptions(options) {
7506
+ this.editorStyle = resolveFogStyle(
7507
+ options.editorStyle,
7508
+ options.editorColor,
7509
+ DEFAULT_EDITOR_COLOR
7510
+ );
7511
+ this.playerStyle = resolveFogStyle(
7512
+ options.playerStyle,
7513
+ options.playerColor,
7514
+ DEFAULT_PLAYER_COLOR
7515
+ );
7516
+ this.tileCache.clear();
7517
+ this.patternCache.clear();
7518
+ this.dirty = true;
7519
+ }
7505
7520
  setState(state) {
7506
7521
  this.state = state;
7507
7522
  this.dirty = true;
@@ -11577,6 +11592,11 @@ var Viewport = class _Viewport {
11577
11592
  get fog() {
11578
11593
  return this.fogManager;
11579
11594
  }
11595
+ setFogStyle(options) {
11596
+ this.fogRenderer.setOptions(options);
11597
+ this.renderLoop.requestRender();
11598
+ this.minimap?.invalidateScene();
11599
+ }
11580
11600
  get snapToGrid() {
11581
11601
  return this._snapToGrid;
11582
11602
  }
@@ -17188,7 +17208,7 @@ var FogTool = class {
17188
17208
  };
17189
17209
 
17190
17210
  // src/index.ts
17191
- var VERSION = "0.67.0";
17211
+ var VERSION = "0.68.0";
17192
17212
  // Annotate the CommonJS export names for ESM import in node:
17193
17213
  0 && (module.exports = {
17194
17214
  AWARENESS_MAX_SELECTION,