@_unit/unit 1.0.22 → 1.0.23

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.
@@ -29836,18 +29836,26 @@ class Editor_ extends element_1.Element {
29836
29836
  const pins = type_pins[type];
29837
29837
  for (const pin_id in pins) {
29838
29838
  const pin = pins[pin_id];
29839
+ const { plug = {} } = pin;
29839
29840
  if (this._spec_has_pin_named(type, pin_id)) {
29840
- const { plug } = pin;
29841
29841
  for (const sub_pin_id in plug) {
29842
29842
  const sub_pin_spec = plug[sub_pin_id];
29843
29843
  const int_node_id = this._get_exposed_pin_spec_internal_node_id(type, sub_pin_spec);
29844
29844
  if (!int_node_id) {
29845
- this._state_add_exposed_pin(type, pin_id, sub_pin_id, sub_pin_spec, {});
29845
+ const plug_position = {
29846
+ int: position,
29847
+ ext: position,
29848
+ };
29849
+ this._state_add_exposed_pin(type, pin_id, sub_pin_id, sub_pin_spec, plug_position);
29846
29850
  }
29847
29851
  }
29848
29852
  }
29849
29853
  else {
29850
- this._state_add_exposed_pin_set(type, pin_id, pin, {});
29854
+ const plug_positions = (0, object_1.mapObjKV)(plug, () => ({
29855
+ int: position,
29856
+ ext: position,
29857
+ }));
29858
+ this._state_add_exposed_pin_set(type, pin_id, pin, plug_positions);
29851
29859
  }
29852
29860
  }
29853
29861
  });