mirror of
https://github.com/sbuffkin/hexmaker.git
synced 2026-07-22 14:30:24 +00:00
makeDraggable previously used position: absolute with top/left 50%, which relies on the nearest positioned ancestor being .modal-container. Any plugin or theme that establishes a CSS containing block on an ancestor (via transform/will-change/filter/contain) silently re-roots the modal against that inner element, so it opens partway off-screen — as reported in hexmaker#26. Switch to position: fixed and compute the centered top/left in JS against window.innerWidth/innerHeight, clamped 8px inside the viewport. position: fixed bypasses most ancestor-containing-block issues; the JS clamp catches the remaining edge cases (transformed ancestors that also hijack fixed positioning). Drag listeners now bind to modalEl.ownerDocument so dragging works correctly inside popout windows.
44 lines
2.2 KiB
JSON
44 lines
2.2 KiB
JSON
{
|
|
"name": "hexmaker-plugin",
|
|
"version": "1.2.3",
|
|
"description": "A plugin to power hex crawl worldbuilding and running.",
|
|
"main": "main.js",
|
|
"scripts": {
|
|
"dev": "node esbuild.config.mjs",
|
|
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
|
|
"version": "node version-bump.mjs && git add manifest.json versions.json",
|
|
"test": "tsx --tsconfig ./tsconfig.test.json --import ./tests/register.mjs --test tests/frontmatter.test.ts tests/hexEditorModal.test.ts tests/randomTable.test.ts tests/sections.test.ts tests/utils.test.ts tests/workflow.test.ts tests/token.test.ts tests/randomTableExport.test.ts tests/singleNoteExport.test.ts tests/hexGeometry.test.ts tests/mapWithTableExport.test.ts tests/singleHexExport.test.ts tests/workflowExport.test.ts",
|
|
"test:watch": "tsx --tsconfig ./tsconfig.test.json --import ./tests/register.mjs --test --watch tests/frontmatter.test.ts tests/hexEditorModal.test.ts tests/randomTable.test.ts tests/sections.test.ts tests/utils.test.ts tests/workflow.test.ts tests/token.test.ts tests/randomTableExport.test.ts tests/singleNoteExport.test.ts tests/hexGeometry.test.ts tests/mapWithTableExport.test.ts tests/singleHexExport.test.ts tests/workflowExport.test.ts",
|
|
"test:integration": "tsx --tsconfig ./tsconfig.test.json --import ./tests/register.mjs --test tests/integration/*.integration.ts",
|
|
"test:e2e": "tsx --tsconfig ./tsconfig.test.json --import ./tests/register.mjs --test tests/integration/e2e-*.integration.ts",
|
|
"lint": "eslint . --ext .js,.ts"
|
|
},
|
|
"keywords": [
|
|
"obsidian",
|
|
"plugin"
|
|
],
|
|
"author": "Mark B",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@codemirror/lang-markdown": "^6.5.0",
|
|
"@codemirror/language-data": "^6.5.2",
|
|
"@codemirror/state": "6.5.0",
|
|
"@codemirror/view": "6.38.6",
|
|
"@eslint/js": "^9.30.1",
|
|
"@types/node": "^25.5.0",
|
|
"esbuild": "0.27.4",
|
|
"eslint": "^9.30.1",
|
|
"eslint-plugin-obsidianmd": "^0.1.9",
|
|
"expect": "^30.3.0",
|
|
"globals": "^17.4.0",
|
|
"jiti": "^2.6.1",
|
|
"obsidian": "latest",
|
|
"tslib": "2.8.1",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "6.0.2",
|
|
"typescript-eslint": "^8.58.0"
|
|
},
|
|
"dependencies": {
|
|
"minisearch": "^7.2.0"
|
|
}
|
|
}
|