@servantcdh/ez-planet-labeling 1.0.3 → 1.0.4

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3589,7 +3589,7 @@ const LIB_AUTHOR = "최동호";
3589
3589
  const LIB_CONTACT = "servantcdh@naver.com";
3590
3590
  const __EZ_PLANET_META__ = Object.freeze({
3591
3591
  name: LIB_NAME,
3592
- version: "1.0.3",
3592
+ version: "1.0.4",
3593
3593
  author: LIB_AUTHOR,
3594
3594
  contact: LIB_CONTACT,
3595
3595
  license: "Proprietary — See LICENSE"
@@ -16458,7 +16458,9 @@ function WorkspaceNavigationDetailTable({
16458
16458
  },
16459
16459
  []
16460
16460
  );
16461
- const scrollContainerRef = useRef(null);
16461
+ const [scrollContainer, setScrollContainer] = useState(
16462
+ null
16463
+ );
16462
16464
  useEffect(() => {
16463
16465
  const wrapper = wrapperRef.current;
16464
16466
  if (!wrapper) return;
@@ -16466,16 +16468,16 @@ function WorkspaceNavigationDetailTable({
16466
16468
  while (el) {
16467
16469
  const style = getComputedStyle(el);
16468
16470
  if (style.overflow === "auto" || style.overflow === "scroll" || style.overflowY === "auto" || style.overflowY === "scroll") {
16469
- scrollContainerRef.current = el;
16471
+ setScrollContainer(el);
16470
16472
  return;
16471
16473
  }
16472
16474
  el = el.parentElement;
16473
16475
  }
16474
- scrollContainerRef.current = wrapper;
16476
+ setScrollContainer(wrapper);
16475
16477
  }, []);
16476
16478
  const rowVirtualizer = useVirtualizer({
16477
16479
  count: rows.length,
16478
- getScrollElement: () => scrollContainerRef.current,
16480
+ getScrollElement: () => scrollContainer,
16479
16481
  estimateSize: () => 24,
16480
16482
  overscan: 15
16481
16483
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servantcdh/ez-planet-labeling",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",