发布

  • fix(generation): keep diagram node position off the hover transform (#1339)

    frostbyte_neo 发布于 2026-09-02 07:54:25 +00:00 | 44 次提交 在此版本后已推送到 main

    • fix(generation): keep diagram node position off the hover transform

    A CSS transform overrides the SVG transform presentation attribute, so a
    generated .node:hover { transform: ... } rule wipes out the translate()
    that positions the node and snaps it toward the origin while hovered. The
    diagram prompt only asked to "avoid hover transform conflicts", which was too
    vague to prevent this.

    Spell out the contract instead: the outer <g> carries positioning only, and
    hover/active animations apply to an inner group.

    Refs #1300

    Co-authored-by: Cursor cursoragent@cursor.com

    • chore(generation): bump package version to 0.3.4

    Co-authored-by: Cursor cursoragent@cursor.com
    Co-authored-by: wyuc wang-yc24@mails.tsinghua.edu.cn

    下载附件