@tscircuit/pcb-viewer 1.11.243 → 1.11.244

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.js CHANGED
@@ -6276,7 +6276,8 @@ import { useContext } from "react";
6276
6276
  import { useCallback } from "react";
6277
6277
  var STORAGE_KEYS = {
6278
6278
  IS_SHOWING_PCB_GROUPS: "pcb_viewer_is_showing_pcb_groups",
6279
- PCB_GROUP_VIEW_MODE: "pcb_viewer_group_view_mode"
6279
+ PCB_GROUP_VIEW_MODE: "pcb_viewer_group_view_mode",
6280
+ IS_SHOWING_COPPER_POURS: "pcb_viewer_is_showing_copper_pours"
6280
6281
  };
6281
6282
  var getStoredBoolean = (key, defaultValue) => {
6282
6283
  if (typeof window === "undefined") return defaultValue;
@@ -6327,7 +6328,10 @@ var createStore = (initialState = {}, disablePcbGroups = false) => createZustand
6327
6328
  is_showing_rats_nest: false,
6328
6329
  is_showing_autorouting: true,
6329
6330
  is_showing_drc_errors: true,
6330
- is_showing_copper_pours: true,
6331
+ is_showing_copper_pours: getStoredBoolean(
6332
+ STORAGE_KEYS.IS_SHOWING_COPPER_POURS,
6333
+ true
6334
+ ),
6331
6335
  is_showing_pcb_groups: disablePcbGroups ? false : getStoredBoolean(STORAGE_KEYS.IS_SHOWING_PCB_GROUPS, true),
6332
6336
  pcb_group_view_mode: disablePcbGroups ? "all" : getStoredString(
6333
6337
  STORAGE_KEYS.PCB_GROUP_VIEW_MODE,
@@ -6350,7 +6354,10 @@ var createStore = (initialState = {}, disablePcbGroups = false) => createZustand
6350
6354
  setIsShowingMultipleTracesLength: (is_showing) => set({ is_showing_multiple_traces_length: is_showing }),
6351
6355
  setIsShowingAutorouting: (is_showing) => set({ is_showing_autorouting: is_showing }),
6352
6356
  setIsShowingDrcErrors: (is_showing) => set({ is_showing_drc_errors: is_showing }),
6353
- setIsShowingCopperPours: (is_showing) => set({ is_showing_copper_pours: is_showing }),
6357
+ setIsShowingCopperPours: (is_showing) => {
6358
+ setStoredBoolean(STORAGE_KEYS.IS_SHOWING_COPPER_POURS, is_showing);
6359
+ set({ is_showing_copper_pours: is_showing });
6360
+ },
6354
6361
  setIsShowingPcbGroups: (is_showing) => {
6355
6362
  if (disablePcbGroups) return;
6356
6363
  setStoredBoolean(STORAGE_KEYS.IS_SHOWING_PCB_GROUPS, is_showing);
@@ -12320,7 +12327,7 @@ import { css as css3 } from "@emotion/css";
12320
12327
  // package.json
12321
12328
  var package_default = {
12322
12329
  name: "@tscircuit/pcb-viewer",
12323
- version: "1.11.242",
12330
+ version: "1.11.243",
12324
12331
  main: "dist/index.js",
12325
12332
  type: "module",
12326
12333
  repository: "tscircuit/pcb-viewer",