@tscircuit/pcb-viewer 1.11.241 → 1.11.242

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
@@ -9012,11 +9012,15 @@ var convertTextToLines = (text) => {
9012
9012
  import color from "color";
9013
9013
  function getColor(primitive) {
9014
9014
  const explicitColor = primitive.color;
9015
- const baseColor = explicitColor ?? LAYER_NAME_TO_COLOR[primitive.layer];
9015
+ const baseColorString = explicitColor ?? LAYER_NAME_TO_COLOR[primitive.layer];
9016
+ let c = color(baseColorString);
9017
+ if (primitive._element?.type === "pcb_copper_pour") {
9018
+ c = c.alpha(0.7);
9019
+ }
9016
9020
  if (primitive.is_mouse_over || primitive.is_in_highlighted_net) {
9017
- return color(baseColor).lighten(0.5).rgb().toString();
9021
+ return c.lighten(0.5).rgb().toString();
9018
9022
  }
9019
- return baseColor;
9023
+ return c.rgb().toString();
9020
9024
  }
9021
9025
  var drawLine = (drawer, line) => {
9022
9026
  drawer.equip({
@@ -12314,7 +12318,7 @@ import { css as css3 } from "@emotion/css";
12314
12318
  // package.json
12315
12319
  var package_default = {
12316
12320
  name: "@tscircuit/pcb-viewer",
12317
- version: "1.11.240",
12321
+ version: "1.11.241",
12318
12322
  main: "dist/index.js",
12319
12323
  type: "module",
12320
12324
  repository: "tscircuit/pcb-viewer",