circuitscript 0.0.27 → 0.0.28

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.
@@ -784,7 +784,7 @@ class SymbolDrawing {
784
784
  return pin[1];
785
785
  });
786
786
  const drawingFeatures = this.items.reduce((accum, item) => {
787
- if (!excludeLabels || (excludeLabels && !(item instanceof geometry_js_1.Label))) {
787
+ if (!excludeLabels || (excludeLabels && !(item instanceof geometry_js_1.Textbox && item.label))) {
788
788
  if (!(item instanceof geometry_js_1.GeometryProp)) {
789
789
  accum.push(item);
790
790
  }
@@ -1,5 +1,5 @@
1
1
  import { ReferenceTypes, SymbolPinSide, defaultFont } from "./globals.mjs";
2
- import { Geometry, GeometryProp, HorizontalAlign, Label, Textbox, VerticalAlign } from "./geometry.mjs";
2
+ import { Geometry, GeometryProp, HorizontalAlign, Textbox, VerticalAlign } from "./geometry.mjs";
3
3
  import { PinTypes } from "./objects/PinTypes.mjs";
4
4
  const defaultSymbolLineWidth = 2;
5
5
  export class SymbolGraphic {
@@ -777,7 +777,7 @@ export class SymbolDrawing {
777
777
  return pin[1];
778
778
  });
779
779
  const drawingFeatures = this.items.reduce((accum, item) => {
780
- if (!excludeLabels || (excludeLabels && !(item instanceof Label))) {
780
+ if (!excludeLabels || (excludeLabels && !(item instanceof Textbox && item.label))) {
781
781
  if (!(item instanceof GeometryProp)) {
782
782
  accum.push(item);
783
783
  }
package/libs/lib.cst CHANGED
@@ -179,7 +179,6 @@ def marker_point():
179
179
  hline: -5, 0, 10
180
180
  vline: 0, -5, 10
181
181
  pin: 1, 0, 0, 0, 0, display_pin_id=0
182
- type: "net"
183
182
 
184
183
  def arrow_point():
185
184
  return create component:
@@ -187,7 +186,6 @@ def arrow_point():
187
186
  display: create graphic:
188
187
  path: ("M", 15, -5, "L", 20, 0, "L", 15, 5)
189
188
  hpin: 1, 0, 0, 20
190
- type: "net"
191
189
 
192
190
  def text(value, offsetX = 0, offsetY = 0, fontSize = 12):
193
191
  return create component:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "circuitscript",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "description": "Interpreter for the circuitscript language",
5
5
  "homepage": "https://circuitscript.net",
6
6
  "engines": {