feat: implement OLE2Frame embedded image parsing and exact coordinate rendering
This commit is contained in:
+44
@@ -59,6 +59,43 @@
|
||||
#layers h3 { margin: 0 0 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
|
||||
#layers label { display: flex; gap: 8px; align-items: center; margin: 4px 0; cursor: pointer; }
|
||||
#layers .swatch { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
|
||||
#spaces {
|
||||
display: none; align-items: center; gap: 0;
|
||||
background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
|
||||
overflow: hidden;
|
||||
}
|
||||
#spaces button {
|
||||
border: none; border-radius: 0; border-right: 1px solid var(--line);
|
||||
background: transparent; padding: 8px 12px; margin: 0;
|
||||
}
|
||||
#spaces button:last-child { border-right: none; }
|
||||
#spaces button.active {
|
||||
background: #238636; border-color: #2ea043; color: #fff;
|
||||
}
|
||||
#spaces button:hover:not(.active) { border-color: transparent; color: var(--accent); }
|
||||
/* CAD 좌표 — 항상 우측 하단 (툴바 status 와 별개) */
|
||||
#coords {
|
||||
position: fixed;
|
||||
right: 12px;
|
||||
bottom: 12px;
|
||||
left: auto;
|
||||
top: auto;
|
||||
z-index: 20;
|
||||
font: 13px/1.35 var(--mono);
|
||||
color: var(--ink);
|
||||
background: rgba(13,17,23,.95);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
padding: 10px 14px;
|
||||
min-width: 240px;
|
||||
text-align: left;
|
||||
pointer-events: none;
|
||||
letter-spacing: 0.02em;
|
||||
box-shadow: 0 8px 28px rgba(0,0,0,.45);
|
||||
user-select: none;
|
||||
}
|
||||
#coords .lbl { color: var(--accent); margin-right: 6px; font-weight: 600; }
|
||||
#coords .sep { color: var(--line); margin: 0 12px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -71,12 +108,19 @@
|
||||
</label>
|
||||
<button id="sample" class="primary wasm" type="button" title="acadrust-dwg WASM">Sample DWG</button>
|
||||
<button id="sampleDxf" class="primary" type="button" title="dxf-parser">Sample DXF</button>
|
||||
<div id="spaces" title="Model Space / Paper Space (Layout)"></div>
|
||||
<button id="fit" type="button">Fit (F)</button>
|
||||
<button id="theme" type="button">Theme</button>
|
||||
<button id="layersBtn" type="button">Layers</button>
|
||||
<div id="status">ready</div>
|
||||
</div>
|
||||
|
||||
<div id="coords" title="마우스 위치 CAD 좌표 (Model=UCS, Layout=Paper 도면단위)">
|
||||
<span class="lbl">X</span><span id="coordX">—</span>
|
||||
<span class="sep">|</span>
|
||||
<span class="lbl">Y</span><span id="coordY">—</span>
|
||||
</div>
|
||||
|
||||
<div id="layers"><h3>Layers</h3><div id="layerList"></div></div>
|
||||
|
||||
<aside id="recipe">
|
||||
|
||||
Reference in New Issue
Block a user