@sangheepark/figma-ds-mcp 0.2.12 → 0.2.13

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.
@@ -390,6 +390,20 @@ function enrichSpec(traversal, mapping) {
390
390
  }
391
391
  }
392
392
  }
393
+ // 6-F: sticky-like absolute → normal flow 복원
394
+ // CSS position:sticky → traversal이 positioning:absolute로 변환하는 경우가 있음
395
+ // 정적 화면에서 sticky = normal flow. name 패턴으로 감지하여 복원.
396
+ // 조건: absolute + name이 header/sticky/nav/toolbar 패턴 + 원점 위치 (x:0/없음, y:0/없음)
397
+ if (node.layout?.positioning === 'absolute' && node.name) {
398
+ const isHeaderLike = /header|sticky|nav|toolbar/i.test(node.name);
399
+ const atOrigin = (!node.layout.x || node.layout.x === '0')
400
+ && (!node.layout.y || node.layout.y === '0');
401
+ if (isHeaderLike && atOrigin) {
402
+ delete node.layout['positioning'];
403
+ delete node.layout['x'];
404
+ delete node.layout['y'];
405
+ }
406
+ }
393
407
  // children 재귀
394
408
  if (node.children) {
395
409
  node.children.forEach((child, i) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sangheepark/figma-ds-mcp",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "description": "MCP server for Code to Figma Bridge — bridges Claude Code to Figma plugin via WebSocket",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",