@sequent-org/moodboard 1.2.37 → 1.2.38
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.
package/package.json
CHANGED
|
@@ -253,6 +253,13 @@ export class PlacementTool extends BaseTool {
|
|
|
253
253
|
|
|
254
254
|
if (isTextWithEditing) {
|
|
255
255
|
// Для текста позиция должна совпадать с точкой клика без смещений
|
|
256
|
+
// Диагностика: логируем позицию курсора и мировые координаты в момент клика
|
|
257
|
+
try {
|
|
258
|
+
console.log('🧭 Text click', {
|
|
259
|
+
cursor: { x: event.x, y: event.y },
|
|
260
|
+
world: { x: Math.round(worldPoint.x), y: Math.round(worldPoint.y) }
|
|
261
|
+
});
|
|
262
|
+
} catch (_) {}
|
|
256
263
|
position = {
|
|
257
264
|
x: Math.round(worldPoint.x),
|
|
258
265
|
y: Math.round(worldPoint.y)
|
|
@@ -2006,6 +2006,15 @@ export class SelectTool extends BaseTool {
|
|
|
2006
2006
|
const topPx = create ? Math.round(screenPos.y - padTop) : Math.round(screenPos.y);
|
|
2007
2007
|
wrapper.style.left = `${leftPx}px`;
|
|
2008
2008
|
wrapper.style.top = `${topPx}px`;
|
|
2009
|
+
// Диагностика: логируем позицию инпута и вычисленные параметры позиционирования
|
|
2010
|
+
try {
|
|
2011
|
+
console.log('🧭 Text input', {
|
|
2012
|
+
input: { left: leftPx, top: topPx },
|
|
2013
|
+
screenPos,
|
|
2014
|
+
padding: { top: padTop, left: padLeft },
|
|
2015
|
+
create
|
|
2016
|
+
});
|
|
2017
|
+
} catch (_) {}
|
|
2009
2018
|
}
|
|
2010
2019
|
// Минимальные границы (зависят от текущего режима: новый объект или редактирование существующего)
|
|
2011
2020
|
const worldLayerRef = this.textEditor.world || (this.app?.stage);
|