@nice2dev/ui-graphics 1.1.10 → 1.2.1

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.
Files changed (113) hide show
  1. package/CHANGELOG.md +173 -0
  2. package/README.md +60 -63
  3. package/dist/cjs/animation/AnimationEditor.js +0 -3
  4. package/dist/cjs/animation/Audience.js +3 -1
  5. package/dist/cjs/animation/BodyRenderer.js +1 -4
  6. package/dist/cjs/animation/rig/RigPlayer.js +1 -1
  7. package/dist/cjs/animation/rig/presets.js +67 -55
  8. package/dist/cjs/animation/shapes/heads.js +0 -3
  9. package/dist/cjs/animation/shapes/headwear.js +4 -1
  10. package/dist/cjs/core/NiceBrushEngine.js +6 -6
  11. package/dist/cjs/core/editorAsk.js +48 -0
  12. package/dist/cjs/core/i18n.js +7 -3
  13. package/dist/cjs/core/plugins.js +1 -1
  14. package/dist/cjs/core/rtl.js +1 -1
  15. package/dist/cjs/core/theme.js +1 -1
  16. package/dist/cjs/font/NiceFontEditor.js +16 -14
  17. package/dist/cjs/game/GameAsset2dEditor.js +28 -19
  18. package/dist/cjs/index.js +0 -11
  19. package/dist/cjs/nice2dev-ui-graphics.css +1 -1
  20. package/dist/cjs/photo/FilterThumb.js +3 -3
  21. package/dist/cjs/photo/NiceAITools.js +7 -5
  22. package/dist/cjs/photo/PhotoEditor.js +3 -1
  23. package/dist/cjs/photo/PhotoEditorCanvas.js +8 -6
  24. package/dist/cjs/photo/PhotoEditorLeftPanel.js +19 -19
  25. package/dist/cjs/photo/PhotoEditorToolbar.js +5 -5
  26. package/dist/cjs/photo/photoFilters.js +1 -0
  27. package/dist/cjs/pixel/PixelEditor.js +6 -6
  28. package/dist/cjs/pixel/PixelEditor.module.css.js +1 -1
  29. package/dist/cjs/pixel/PixelEditorCanvas.js +10 -6
  30. package/dist/cjs/pixel/PixelEditorMenuBar.js +3 -3
  31. package/dist/cjs/pixel/PixelEditorRightPanel.js +28 -24
  32. package/dist/cjs/pixel/PixelEditorStatusBar.js +8 -4
  33. package/dist/cjs/pixel/PixelEditorTimeline.js +11 -2
  34. package/dist/cjs/pixel/PixelEditorToolbar.js +10 -6
  35. package/dist/cjs/pixel/SpriteGeneratorPanel.js +12 -8
  36. package/dist/cjs/pixel/animalGeneratorPresets.js +31 -31
  37. package/dist/cjs/pixel/buildingGeneratorPresets.js +24 -24
  38. package/dist/cjs/pixel/characterGeneratorPresets.js +25 -25
  39. package/dist/cjs/pixel/usePixelEditor.js +13 -10
  40. package/dist/cjs/texture/Nice3DTexturePainter.js +12 -10
  41. package/dist/cjs/ui/NiceUIDesigner.js +18 -14
  42. package/dist/cjs/vector/NiceSvgToCode.js +6 -4
  43. package/dist/cjs/vector/VectorEditor.js +3 -5
  44. package/dist/cjs/vector/VectorEditorShapeRenderer.js +3 -1
  45. package/dist/cjs/vector/useVectorEditor.js +38 -29
  46. package/dist/cjs/vector/vectorEditorImport.js +1 -0
  47. package/dist/cjs/vector/vectorIconImport.js +1 -0
  48. package/dist/esm/animation/AnimationEditor.js +1 -3
  49. package/dist/esm/animation/Audience.js +3 -1
  50. package/dist/esm/animation/BodyRenderer.js +3 -5
  51. package/dist/esm/animation/rig/RigPlayer.js +1 -1
  52. package/dist/esm/animation/rig/presets.js +68 -56
  53. package/dist/esm/animation/shapes/heads.js +1 -3
  54. package/dist/esm/animation/shapes/headwear.js +4 -1
  55. package/dist/esm/animation/spineExport.js +1 -1
  56. package/dist/esm/core/NiceBrushEngine.js +6 -6
  57. package/dist/esm/core/editorAsk.js +45 -0
  58. package/dist/esm/core/i18n.js +8 -4
  59. package/dist/esm/core/plugins.js +1 -1
  60. package/dist/esm/core/rtl.js +1 -1
  61. package/dist/esm/core/theme.js +1 -1
  62. package/dist/esm/font/NiceFontEditor.js +16 -14
  63. package/dist/esm/game/GameAsset2dEditor.js +29 -19
  64. package/dist/esm/index.js +10 -10
  65. package/dist/esm/nice2dev-ui-graphics.css +1 -1
  66. package/dist/esm/photo/FilterThumb.js +3 -3
  67. package/dist/esm/photo/NiceAITools.js +7 -5
  68. package/dist/esm/photo/PhotoEditor.js +3 -1
  69. package/dist/esm/photo/PhotoEditorCanvas.js +8 -6
  70. package/dist/esm/photo/PhotoEditorLeftPanel.js +19 -19
  71. package/dist/esm/photo/PhotoEditorToolbar.js +5 -5
  72. package/dist/esm/photo/photoFilters.js +1 -0
  73. package/dist/esm/pixel/PixelEditor.js +7 -6
  74. package/dist/esm/pixel/PixelEditor.module.css.js +1 -1
  75. package/dist/esm/pixel/PixelEditorCanvas.js +10 -6
  76. package/dist/esm/pixel/PixelEditorMenuBar.js +3 -3
  77. package/dist/esm/pixel/PixelEditorRightPanel.js +28 -24
  78. package/dist/esm/pixel/PixelEditorStatusBar.js +8 -4
  79. package/dist/esm/pixel/PixelEditorTimeline.js +11 -2
  80. package/dist/esm/pixel/PixelEditorToolbar.js +10 -6
  81. package/dist/esm/pixel/SpriteGeneratorPanel.js +12 -8
  82. package/dist/esm/pixel/animalGeneratorPresets.js +32 -32
  83. package/dist/esm/pixel/buildingGeneratorPresets.js +25 -25
  84. package/dist/esm/pixel/characterGeneratorPresets.js +26 -26
  85. package/dist/esm/pixel/usePixelEditor.js +13 -10
  86. package/dist/esm/texture/Nice3DTexturePainter.js +12 -10
  87. package/dist/esm/ui/NiceUIDesigner.js +18 -14
  88. package/dist/esm/vector/NiceSvgToCode.js +6 -4
  89. package/dist/esm/vector/VectorEditor.js +4 -5
  90. package/dist/esm/vector/VectorEditorShapeRenderer.js +3 -1
  91. package/dist/esm/vector/useVectorEditor.js +38 -29
  92. package/dist/esm/vector/vectorEditorImport.js +1 -0
  93. package/dist/esm/vector/vectorIconImport.js +1 -0
  94. package/dist/types/animation/AnimatedPerson.d.ts +0 -4
  95. package/dist/types/animation/AnimationEditor.d.ts +1 -5
  96. package/dist/types/animation/Audience.d.ts +0 -4
  97. package/dist/types/animation/BodyRenderer.d.ts +0 -4
  98. package/dist/types/animation/rig/RigPlayer.d.ts +0 -7
  99. package/dist/types/animation/rig/RiggedBody.d.ts +0 -4
  100. package/dist/types/animation/shapes/heads.d.ts +0 -4
  101. package/dist/types/core/LocalUI.d.ts +1 -2
  102. package/dist/types/core/editorAsk.d.ts +26 -0
  103. package/dist/types/core/i18n.d.ts +1 -17
  104. package/dist/types/game/GameAsset2dEditor.d.ts +0 -4
  105. package/dist/types/game/index.d.ts +1 -1
  106. package/dist/types/index.d.ts +9 -19
  107. package/dist/types/photo/index.d.ts +0 -2
  108. package/dist/types/pixel/PixelEditor.d.ts +0 -4
  109. package/dist/types/pixel/SpriteGeneratorPanel.d.ts +0 -4
  110. package/dist/types/pixel/usePixelEditor.d.ts +3 -0
  111. package/dist/types/vector/VectorEditor.d.ts +0 -4
  112. package/dist/types/vector/useVectorEditor.d.ts +2 -0
  113. package/package.json +5 -5
@@ -4,6 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var ui = require('@nice2dev/ui');
5
5
  var uiCore = require('@nice2dev/ui-core');
6
6
  var React = require('react');
7
+ var i18n = require('../core/i18n.js');
7
8
  var animalGeneratorPresets = require('./animalGeneratorPresets.js');
8
9
  var buildingGeneratorPresets = require('./buildingGeneratorPresets.js');
9
10
  var characterGeneratorPresets = require('./characterGeneratorPresets.js');
@@ -68,6 +69,7 @@ const ANIMAL_CATEGORIES = [
68
69
  const NiceSpriteGeneratorPanel = ({ onSendToCanvas, onClose, mode,
69
70
  // presets and onGenerate are exposed for forward-compat; not currently consumed.
70
71
  }) => {
72
+ const { t } = i18n.useNiceTranslation();
71
73
  ensureInitialized();
72
74
  /* ── State ── */
73
75
  const [tab, setTab] = React.useState(mode !== null && mode !== void 0 ? mode : 'character');
@@ -271,7 +273,7 @@ const NiceSpriteGeneratorPanel = ({ onSendToCanvas, onClose, mode,
271
273
  }
272
274
  }, [tab, skinPalette, hairPalette, clothPalette, wallPalette, roofPalette, furPalette]);
273
275
  /* ── Render ── */
274
- return (jsxRuntime.jsx(ui.NiceModal, { open: true, onClose: onClose !== null && onClose !== void 0 ? onClose : (() => { }), title: "Sprite Generator", children: jsxRuntime.jsxs("div", { className: PixelEditor_module.genPanel, children: [jsxRuntime.jsxs("div", { className: PixelEditor_module.genHeader, children: [jsxRuntime.jsx("h3", { children: "Sprite Generator" }), jsxRuntime.jsx(ui.NiceButton, { className: PixelEditor_module.btnIcon, variant: "ghost", size: "sm", onClick: onClose, title: "Close", "aria-label": "Close", children: jsxRuntime.jsx(uiCore.NiceIcon, { name: "close", size: 16 }) })] }), jsxRuntime.jsx("div", { className: PixelEditor_module.genTabs, children: ['character', 'building', 'animal'].map((t) => (jsxRuntime.jsxs(ui.NiceButton, { className: `${PixelEditor_module.genTabBtn} ${tab === t ? PixelEditor_module.genTabBtnActive : ''}`, variant: tab === t ? 'primary' : 'ghost', size: "sm", onClick: () => setTab(t), children: [jsxRuntime.jsx(uiCore.NiceIcon, { name: t === 'character' ? 'user' : t === 'building' ? 'home' : 'heart', size: 14 }), ' ', t.charAt(0).toUpperCase() + t.slice(1)] }, t))) }), jsxRuntime.jsxs("div", { className: PixelEditor_module.genBody, children: [jsxRuntime.jsxs("div", { className: PixelEditor_module.genLeft, children: [jsxRuntime.jsxs("div", { className: PixelEditor_module.panelSection, children: [jsxRuntime.jsx("div", { className: PixelEditor_module.panelTitle, children: jsxRuntime.jsx("span", { children: "Presets" }) }), jsxRuntime.jsx("div", { className: PixelEditor_module.genPresetGrid, children: presets.map((preset, i) => (jsxRuntime.jsx(ui.NiceButton, { className: `${PixelEditor_module.genPresetBtn} ${i === selectedPresetIdx ? PixelEditor_module.genPresetBtnActive : ''}`, variant: i === selectedPresetIdx ? 'primary' : 'ghost', size: "sm", onClick: () => applyPreset(i), title: preset.name, children: preset.name }, i))) })] }), jsxRuntime.jsxs("div", { className: PixelEditor_module.panelSection, style: { flex: 1, overflowY: 'auto' }, children: [jsxRuntime.jsx("div", { className: PixelEditor_module.panelTitle, children: jsxRuntime.jsx("span", { children: "Parts" }) }), categories.map((cat) => {
276
+ return (jsxRuntime.jsx(ui.NiceModal, { open: true, onClose: onClose !== null && onClose !== void 0 ? onClose : (() => { }), title: t('spriteGeneratorPanel.spriteGenerator', 'Sprite Generator'), size: "xl", children: jsxRuntime.jsxs("div", { className: PixelEditor_module.genPanel, children: [jsxRuntime.jsx("div", { className: PixelEditor_module.genTabs, children: ['character', 'building', 'animal'].map((t) => (jsxRuntime.jsxs(ui.NiceButton, { className: `${PixelEditor_module.genTabBtn} ${tab === t ? PixelEditor_module.genTabBtnActive : ''}`, variant: tab === t ? 'primary' : 'ghost', size: "sm", onClick: () => setTab(t), children: [jsxRuntime.jsx(uiCore.NiceIcon, { name: t === 'character' ? 'user' : t === 'building' ? 'home' : 'heart', size: 14 }), ' ', t.charAt(0).toUpperCase() + t.slice(1)] }, t))) }), jsxRuntime.jsxs("div", { className: PixelEditor_module.genBody, children: [jsxRuntime.jsxs("div", { className: PixelEditor_module.genLeft, children: [jsxRuntime.jsxs("div", { className: PixelEditor_module.panelSection, children: [jsxRuntime.jsx("div", { className: PixelEditor_module.panelTitle, children: jsxRuntime.jsx("span", { children: t('spriteGeneratorPanel.presets', 'Presets') }) }), jsxRuntime.jsx("div", { className: PixelEditor_module.genPresetGrid, children: presets.map((preset, i) => (jsxRuntime.jsx(ui.NiceButton, { className: `${PixelEditor_module.genPresetBtn} ${i === selectedPresetIdx ? PixelEditor_module.genPresetBtnActive : ''}`, variant: i === selectedPresetIdx ? 'primary' : 'ghost', size: "sm", onClick: () => applyPreset(i), title: preset.name, children: preset.name }, i))) })] }), jsxRuntime.jsxs("div", { className: PixelEditor_module.panelSection, style: { flex: 1, overflowY: 'auto' }, children: [jsxRuntime.jsx("div", { className: PixelEditor_module.panelTitle, children: jsxRuntime.jsx("span", { children: t('spriteGeneratorPanel.parts', 'Parts') }) }), categories.map((cat) => {
275
277
  const parts = spriteGeneratorCore.getPartsByCategory(cat);
276
278
  if (parts.length === 0) {
277
279
  return null;
@@ -283,28 +285,30 @@ const NiceSpriteGeneratorPanel = ({ onSendToCanvas, onClose, mode,
283
285
  textTransform: 'uppercase',
284
286
  }, children: cat.replace(/([A-Z])/g, ' $1').trim() }), jsxRuntime.jsx("div", { className: PixelEditor_module.genPartGrid, children: parts.map((part) => {
285
287
  const active = selectedParts.some((p) => { var _a; return p.partId === part.id && ((_a = p.visible) !== null && _a !== void 0 ? _a : true); });
286
- return (jsxRuntime.jsx(ui.NiceButton, { className: `${PixelEditor_module.miniBtn} ${active ? PixelEditor_module.miniBtnActive : ''}`, variant: active ? 'primary' : 'ghost', size: "sm", onClick: () => (active ? removePart(part.id) : addPart(part.id)), title: part.name, children: part.name.slice(0, 8) }, part.id));
288
+ return (jsxRuntime.jsx(ui.NiceButton, { className: `${PixelEditor_module.miniBtn} ${PixelEditor_module.genPartBtn} ${active ? PixelEditor_module.miniBtnActive : ''}`, variant: active ? 'primary' : 'ghost', size: "sm", onClick: () => (active ? removePart(part.id) : addPart(part.id)), title: part.name, children: part.name }, part.id));
287
289
  }) })] }, cat));
288
- })] })] }), jsxRuntime.jsxs("div", { className: PixelEditor_module.genCenter, children: [jsxRuntime.jsx("div", { className: PixelEditor_module.genPreviewWrap, children: jsxRuntime.jsx("canvas", { ref: previewRef, className: PixelEditor_module.genPreviewCanvas }) }), jsxRuntime.jsx("div", { className: PixelEditor_module.genDirGrid, children: spriteGeneratorCore.ALL_DIRECTIONS.map((d) => (jsxRuntime.jsx(ui.NiceButton, { className: `${PixelEditor_module.miniBtn} ${direction === d ? PixelEditor_module.miniBtnActive : ''}`, variant: direction === d ? 'primary' : 'ghost', size: "sm", onClick: () => setDirection(d), children: d }, d))) }), jsxRuntime.jsxs("div", { className: PixelEditor_module.genRow, children: [jsxRuntime.jsx("label", { style: { fontSize: 10, color: 'var(--nice-text-muted)' }, children: "Projection" }), jsxRuntime.jsx(ui.NiceSelect, { className: PixelEditor_module.propSelect, value: projection, onChange: (val) => setProjection(val), options: [
290
+ })] })] }), jsxRuntime.jsxs("div", { className: PixelEditor_module.genCenter, children: [jsxRuntime.jsx("div", { className: PixelEditor_module.genPreviewWrap, children: jsxRuntime.jsx("canvas", { ref: previewRef, className: PixelEditor_module.genPreviewCanvas }) }), jsxRuntime.jsx("div", { className: PixelEditor_module.genDirGrid, children: spriteGeneratorCore.ALL_DIRECTIONS.map((d) => (jsxRuntime.jsx(ui.NiceButton, { className: `${PixelEditor_module.miniBtn} ${direction === d ? PixelEditor_module.miniBtnActive : ''}`, variant: direction === d ? 'primary' : 'ghost', size: "sm", onClick: () => setDirection(d), children: d }, d))) }), jsxRuntime.jsxs("div", { className: PixelEditor_module.genRow, children: [jsxRuntime.jsx("label", { style: { fontSize: 10, color: 'var(--nice-text-muted)' }, children: t('spriteGeneratorPanel.projection', 'Projection') }), jsxRuntime.jsx(ui.NiceSelect, { className: PixelEditor_module.propSelect, value: projection, onChange: (val) => setProjection(val), options: [
289
291
  { value: 'topDown', label: 'Top-Down' },
290
292
  { value: 'sideView', label: 'Side View' },
291
293
  { value: 'iso25d', label: '2.5D Isometric' },
292
- ] })] }), jsxRuntime.jsxs("div", { className: PixelEditor_module.genRow, children: [jsxRuntime.jsx("label", { style: { fontSize: 10, color: 'var(--nice-text-muted)' }, children: "Size" }), jsxRuntime.jsx(ui.NiceNumberInput, { className: PixelEditor_module.propInput, style: { width: 48 }, min: 8, max: 256, value: canvasW, onChange: (val) => setCanvasW(val !== null && val !== void 0 ? val : 32) }), jsxRuntime.jsx("span", { style: { fontSize: 10, color: 'var(--nice-text-muted)' }, children: "\u00D7" }), jsxRuntime.jsx(ui.NiceNumberInput, { className: PixelEditor_module.propInput, style: { width: 48 }, min: 8, max: 256, value: canvasH, onChange: (val) => setCanvasH(val !== null && val !== void 0 ? val : 32) })] }), jsxRuntime.jsx(ui.NiceCheckbox, { checked: generate8Dir, onChange: (checked) => setGenerate8Dir(checked), label: "Generate 8-direction sheet", className: PixelEditor_module.checkLabel })] }), jsxRuntime.jsxs("div", { className: PixelEditor_module.genRight, children: [jsxRuntime.jsxs("div", { className: PixelEditor_module.panelSection, children: [jsxRuntime.jsx("div", { className: PixelEditor_module.panelTitle, children: jsxRuntime.jsx("span", { children: "Colors" }) }), paletteGroups.map((group) => {
294
+ ] })] }), jsxRuntime.jsxs("div", { className: PixelEditor_module.genRow, children: [jsxRuntime.jsx("label", { style: { fontSize: 10, color: 'var(--nice-text-muted)' }, children: t('spriteGeneratorPanel.size', 'Size') }), jsxRuntime.jsx(ui.NiceNumberInput, { min: 8, max: 256, value: canvasW, onChange: (val) => setCanvasW(val !== null && val !== void 0 ? val : 32) }), jsxRuntime.jsx("span", { style: { fontSize: 10, color: 'var(--nice-text-muted)' }, children: "\u00D7" }), jsxRuntime.jsx(ui.NiceNumberInput, { min: 8, max: 256, value: canvasH, onChange: (val) => setCanvasH(val !== null && val !== void 0 ? val : 32) })] }), jsxRuntime.jsx(ui.NiceCheckbox, { checked: generate8Dir, onChange: (checked) => setGenerate8Dir(checked), label: t('spriteGeneratorPanel.generate8DirectionSheet', 'Generate 8-direction sheet'), className: PixelEditor_module.checkLabel })] }), jsxRuntime.jsxs("div", { className: PixelEditor_module.genRight, children: [jsxRuntime.jsxs("div", { className: PixelEditor_module.panelSection, children: [jsxRuntime.jsx("div", { className: PixelEditor_module.panelTitle, children: jsxRuntime.jsx("span", { children: t('spriteGeneratorPanel.colors', 'Colors') }) }), paletteGroups.map((group) => {
293
295
  var _a;
294
296
  return (jsxRuntime.jsxs("div", { style: { marginBottom: 6 }, children: [jsxRuntime.jsx("div", { style: { fontSize: 9, color: 'var(--nice-text-muted)', marginBottom: 2 }, children: group.label }), jsxRuntime.jsx(ui.NiceSelect, { className: PixelEditor_module.propSelect, value: group.value, onChange: (val) => group.set(val), options: group.options.map((opt) => ({
295
297
  value: opt.id,
296
298
  label: opt.name,
297
299
  })) }), jsxRuntime.jsx("div", { className: PixelEditor_module.genColorSwatches, children: (_a = group.options
298
300
  .find((o) => o.id === group.value)) === null || _a === void 0 ? void 0 : _a.colors.map((c, i) => (jsxRuntime.jsx("div", { className: PixelEditor_module.genColorSwatch, style: { backgroundColor: c }, title: c }, i))) })] }, group.label));
299
- })] }), jsxRuntime.jsxs("div", { className: PixelEditor_module.panelSection, style: { flex: 1, overflowY: 'auto' }, children: [jsxRuntime.jsx("div", { className: PixelEditor_module.panelTitle, children: jsxRuntime.jsx("span", { children: "Assembly" }) }), selectedParts.map((ap, i) => {
301
+ })] }), jsxRuntime.jsxs("div", { className: PixelEditor_module.panelSection, style: { flex: 1, overflowY: 'auto' }, children: [jsxRuntime.jsx("div", { className: PixelEditor_module.panelTitle, children: jsxRuntime.jsx("span", { children: t('spriteGeneratorPanel.assembly', 'Assembly') }) }), selectedParts.map((ap, i) => {
300
302
  var _a, _b, _c, _d, _e;
301
303
  const part = partsMapRef.current.get(ap.partId);
302
304
  return (
303
305
  // A part can be placed twice (left and right leg, flipped), so its id
304
306
  // alone is not a unique key.
305
- jsxRuntime.jsxs("div", { className: PixelEditor_module.genAssemblyItem, children: [jsxRuntime.jsx(ui.NiceButton, { className: PixelEditor_module.btnIcon, variant: "ghost", size: "sm", onClick: () => togglePart(ap.partId), title: ((_a = ap.visible) !== null && _a !== void 0 ? _a : true) ? 'Hide' : 'Show', "aria-label": ((_b = ap.visible) !== null && _b !== void 0 ? _b : true) ? 'Hide' : 'Show', children: jsxRuntime.jsx(uiCore.NiceIcon, { name: ((_c = ap.visible) !== null && _c !== void 0 ? _c : true) ? 'eye' : 'eye-off', size: 14 }) }), jsxRuntime.jsx("span", { className: PixelEditor_module.genAssemblyName, children: (_d = part === null || part === void 0 ? void 0 : part.name) !== null && _d !== void 0 ? _d : ap.partId }), jsxRuntime.jsxs("span", { style: { fontSize: 9, color: 'var(--nice-text-muted)' }, children: ["z:", (_e = part === null || part === void 0 ? void 0 : part.zOrder) !== null && _e !== void 0 ? _e : 0] }), jsxRuntime.jsx(ui.NiceButton, { className: PixelEditor_module.btnIcon, variant: "ghost", size: "sm", onClick: () => removePart(ap.partId), title: "Remove", "aria-label": "Remove", children: jsxRuntime.jsx(uiCore.NiceIcon, { name: "close", size: 14 }) })] }, `${ap.partId}-${i}`));
306
- })] })] })] }), jsxRuntime.jsxs("div", { className: PixelEditor_module.genFooter, children: [jsxRuntime.jsx(ui.NiceButton, { className: PixelEditor_module.btnSecondary, variant: "ghost", onClick: onClose, children: "Cancel" }), jsxRuntime.jsxs(ui.NiceButton, { className: PixelEditor_module.btnPrimary, variant: "primary", onClick: handleSendToCanvas, children: [jsxRuntime.jsx(uiCore.NiceIcon, { name: "clipboard", size: 14 }), " Send to Canvas"] })] })] }) }));
307
+ jsxRuntime.jsxs("div", { className: PixelEditor_module.genAssemblyItem, children: [jsxRuntime.jsx(ui.NiceButton, { className: PixelEditor_module.btnIcon, variant: "ghost", size: "sm", onClick: () => togglePart(ap.partId), title: ((_a = ap.visible) !== null && _a !== void 0 ? _a : true) ? 'Hide' : 'Show', "aria-label": ((_b = ap.visible) !== null && _b !== void 0 ? _b : true) ? 'Hide' : 'Show', children: jsxRuntime.jsx(uiCore.NiceIcon, { name: ((_c = ap.visible) !== null && _c !== void 0 ? _c : true) ? 'eye' : 'eye-off', size: 14 }) }), jsxRuntime.jsx("span", { className: PixelEditor_module.genAssemblyName, children: (_d = part === null || part === void 0 ? void 0 : part.name) !== null && _d !== void 0 ? _d : ap.partId }), jsxRuntime.jsxs("span", { style: { fontSize: 9, color: 'var(--nice-text-muted)' }, children: ["z:", (_e = part === null || part === void 0 ? void 0 : part.zOrder) !== null && _e !== void 0 ? _e : 0] }), jsxRuntime.jsx(ui.NiceButton, { className: PixelEditor_module.btnIcon, variant: "ghost", size: "sm", onClick: () => removePart(ap.partId), title: t('spriteGeneratorPanel.remove', 'Remove'), "aria-label": t('spriteGeneratorPanel.remove', 'Remove'), children: jsxRuntime.jsx(uiCore.NiceIcon, { name: "close", size: 14 }) })] }, `${ap.partId}-${i}`));
308
+ })] })] })] }), jsxRuntime.jsxs("div", { className: PixelEditor_module.genFooter, children: [jsxRuntime.jsx(ui.NiceButton, { className: PixelEditor_module.btnSecondary, variant: "ghost", onClick: onClose, children: t('spriteGeneratorPanel.cancel', 'Cancel') }), jsxRuntime.jsxs(ui.NiceButton, { className: PixelEditor_module.btnPrimary, variant: "primary", onClick: handleSendToCanvas, children: [jsxRuntime.jsx(uiCore.NiceIcon, { name: "clipboard", size: 14 }), ' ', t('spriteGeneratorPanel.sendToCanvas', 'Send to Canvas')] })] })] }) }));
307
309
  };
308
- NiceSpriteGeneratorPanel.displayName = 'NiceSpriteGeneratorPanel';
310
+ if (process.env.NODE_ENV !== 'production') {
311
+ NiceSpriteGeneratorPanel.displayName = 'NiceSpriteGeneratorPanel';
312
+ }
309
313
 
310
314
  module.exports = NiceSpriteGeneratorPanel;
@@ -40,7 +40,7 @@ const FEATHER_PALETTES = {
40
40
  ════════════════════════════════════════════════════════════════ */
41
41
  const _ = -1;
42
42
  /* ── Cat head ── */
43
- const CAT_HEAD_S = spriteGeneratorCore.createPartData(8, 7, [
43
+ const CAT_HEAD_S = /* @__PURE__ */ spriteGeneratorCore.createPartData(8, 7, [
44
44
  [_, 0, _, _, _, _, 0, _],
45
45
  [0, 0, 0, 0, 0, 0, 0, 0],
46
46
  [0, 0, 0, 0, 0, 0, 0, 0],
@@ -49,7 +49,7 @@ const CAT_HEAD_S = spriteGeneratorCore.createPartData(8, 7, [
49
49
  [0, 0, 0, 3, 3, 0, 0, 0],
50
50
  [_, 0, 0, 0, 0, 0, 0, _],
51
51
  ], ['#e09040', '#c07828', 'var(--nice-success, #40a040)', '#f0a0a0']);
52
- const CAT_HEAD_E = spriteGeneratorCore.createPartData(6, 7, [
52
+ const CAT_HEAD_E = /* @__PURE__ */ spriteGeneratorCore.createPartData(6, 7, [
53
53
  [_, _, _, _, 0, _],
54
54
  [_, 0, 0, 0, 0, 0],
55
55
  [0, 0, 0, 0, 0, 0],
@@ -59,7 +59,7 @@ const CAT_HEAD_E = spriteGeneratorCore.createPartData(6, 7, [
59
59
  [_, 0, 0, 0, 0, _],
60
60
  ], ['#e09040', '#c07828', 'var(--nice-success, #40a040)', '#f0a0a0']);
61
61
  /* ── Dog head ── */
62
- const DOG_HEAD_S = spriteGeneratorCore.createPartData(8, 8, [
62
+ const DOG_HEAD_S = /* @__PURE__ */ spriteGeneratorCore.createPartData(8, 8, [
63
63
  [_, _, 0, 0, 0, 0, _, _],
64
64
  [_, 0, 0, 0, 0, 0, 0, _],
65
65
  [0, 0, 0, 0, 0, 0, 0, 0],
@@ -69,7 +69,7 @@ const DOG_HEAD_S = spriteGeneratorCore.createPartData(8, 8, [
69
69
  [_, _, 0, 0, 0, 0, _, _],
70
70
  [_, _, _, 0, 0, _, _, _],
71
71
  ], ['var(--nice-warning-dark, #c08848)', 'var(--nice-warning-dark, #a06830)', 'var(--nice-bg, #301818)', 'var(--nice-bg, #301818)']);
72
- const DOG_HEAD_E = spriteGeneratorCore.createPartData(7, 8, [
72
+ const DOG_HEAD_E = /* @__PURE__ */ spriteGeneratorCore.createPartData(7, 8, [
73
73
  [_, _, 0, 0, 0, _, _],
74
74
  [_, 0, 0, 0, 0, 0, _],
75
75
  [0, 0, 0, 0, 0, 0, _],
@@ -80,7 +80,7 @@ const DOG_HEAD_E = spriteGeneratorCore.createPartData(7, 8, [
80
80
  [_, _, _, 0, 0, 0, _],
81
81
  ], ['var(--nice-warning-dark, #c08848)', 'var(--nice-warning-dark, #a06830)', 'var(--nice-bg, #301818)', 'var(--nice-bg, #301818)']);
82
82
  /* ── Wolf head ── */
83
- const WOLF_HEAD_S = spriteGeneratorCore.createPartData(10, 8, [
83
+ const WOLF_HEAD_S = /* @__PURE__ */ spriteGeneratorCore.createPartData(10, 8, [
84
84
  [_, 0, _, _, _, _, _, _, 0, _],
85
85
  [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
86
86
  [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
@@ -91,7 +91,7 @@ const WOLF_HEAD_S = spriteGeneratorCore.createPartData(10, 8, [
91
91
  [_, _, _, 0, 0, 0, 0, _, _, _],
92
92
  ], ['var(--nice-text-secondary, #808080)', '#606060', '#f0d060', 'var(--nice-bg, #301818)']);
93
93
  /* ── Bird head ── */
94
- const BIRD_HEAD_S = spriteGeneratorCore.createPartData(6, 6, [
94
+ const BIRD_HEAD_S = /* @__PURE__ */ spriteGeneratorCore.createPartData(6, 6, [
95
95
  [_, _, 0, 0, _, _],
96
96
  [_, 0, 0, 0, 0, _],
97
97
  [0, 0, 2, 2, 0, 0],
@@ -100,7 +100,7 @@ const BIRD_HEAD_S = spriteGeneratorCore.createPartData(6, 6, [
100
100
  [_, _, _, 3, _, _],
101
101
  ], ['#a08040', '#806030', 'var(--nice-bg, #301818)', '#f0a020']);
102
102
  /* ── Dragon head ── */
103
- const DRAGON_HEAD_S = spriteGeneratorCore.createPartData(10, 9, [
103
+ const DRAGON_HEAD_S = /* @__PURE__ */ spriteGeneratorCore.createPartData(10, 9, [
104
104
  [_, _, _, 0, _, _, 0, _, _, _],
105
105
  [_, _, 0, 0, 0, 0, 0, 0, _, _],
106
106
  [_, 0, 0, 0, 0, 0, 0, 0, 0, _],
@@ -112,7 +112,7 @@ const DRAGON_HEAD_S = spriteGeneratorCore.createPartData(10, 9, [
112
112
  [_, _, _, 0, 0, 0, 0, _, _, _],
113
113
  ], ['var(--nice-success, #40a040)', '#308030', '#f0d060', 'var(--nice-bg, #301818)']);
114
114
  /* ── Rabbit head ── */
115
- const RABBIT_HEAD_S = spriteGeneratorCore.createPartData(8, 10, [
115
+ const RABBIT_HEAD_S = /* @__PURE__ */ spriteGeneratorCore.createPartData(8, 10, [
116
116
  [_, _, 0, _, _, 0, _, _],
117
117
  [_, _, 0, _, _, 0, _, _],
118
118
  [_, _, 0, _, _, 0, _, _],
@@ -125,7 +125,7 @@ const RABBIT_HEAD_S = spriteGeneratorCore.createPartData(8, 10, [
125
125
  [_, _, 0, 0, 0, 0, _, _],
126
126
  ], ['#f0e8d0', '#d8d0b8', '#d04040', '#f0a0a0']);
127
127
  /* ── Bear head ── */
128
- const BEAR_HEAD_S = spriteGeneratorCore.createPartData(10, 9, [
128
+ const BEAR_HEAD_S = /* @__PURE__ */ spriteGeneratorCore.createPartData(10, 9, [
129
129
  [_, 0, 0, _, _, _, _, 0, 0, _],
130
130
  [_, 0, 0, 0, 0, 0, 0, 0, 0, _],
131
131
  [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
@@ -137,7 +137,7 @@ const BEAR_HEAD_S = spriteGeneratorCore.createPartData(10, 9, [
137
137
  [_, _, 0, 0, 0, 0, 0, 0, _, _],
138
138
  ], ['#805020', '#603818', '#201010', '#402818']);
139
139
  /* ── Horse head ── */
140
- const HORSE_HEAD_S = spriteGeneratorCore.createPartData(8, 10, [
140
+ const HORSE_HEAD_S = /* @__PURE__ */ spriteGeneratorCore.createPartData(8, 10, [
141
141
  [_, _, _, 0, 0, _, _, _],
142
142
  [_, _, 0, 0, 0, 0, _, _],
143
143
  [_, 0, 0, 0, 0, 0, 0, _],
@@ -150,7 +150,7 @@ const HORSE_HEAD_S = spriteGeneratorCore.createPartData(8, 10, [
150
150
  [_, _, _, 0, 0, _, _, _],
151
151
  ], ['var(--nice-warning-dark, #c08848)', 'var(--nice-warning-dark, #a06830)', 'var(--nice-bg, #301818)']);
152
152
  /* ── Bodies ── */
153
- const BODY_SMALL = spriteGeneratorCore.createPartData(8, 6, [
153
+ const BODY_SMALL = /* @__PURE__ */ spriteGeneratorCore.createPartData(8, 6, [
154
154
  [_, _, 0, 0, 0, 0, _, _],
155
155
  [_, 0, 0, 0, 0, 0, 0, _],
156
156
  [0, 0, 0, 0, 0, 0, 0, 0],
@@ -158,7 +158,7 @@ const BODY_SMALL = spriteGeneratorCore.createPartData(8, 6, [
158
158
  [_, 0, 0, 0, 0, 0, 0, _],
159
159
  [_, _, 0, 0, 0, 0, _, _],
160
160
  ], ['#e09040', '#c07828']);
161
- const BODY_MEDIUM = spriteGeneratorCore.createPartData(12, 8, [
161
+ const BODY_MEDIUM = /* @__PURE__ */ spriteGeneratorCore.createPartData(12, 8, [
162
162
  [_, _, _, 0, 0, 0, 0, 0, 0, _, _, _],
163
163
  [_, _, 0, 0, 0, 0, 0, 0, 0, 0, _, _],
164
164
  [_, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, _],
@@ -168,7 +168,7 @@ const BODY_MEDIUM = spriteGeneratorCore.createPartData(12, 8, [
168
168
  [_, _, 0, 0, 0, 0, 0, 0, 0, 0, _, _],
169
169
  [_, _, _, 0, 0, 0, 0, 0, 0, _, _, _],
170
170
  ], ['var(--nice-warning-dark, #c08848)', 'var(--nice-warning-dark, #a06830)']);
171
- const BODY_LARGE = spriteGeneratorCore.createPartData(14, 10, [
171
+ const BODY_LARGE = /* @__PURE__ */ spriteGeneratorCore.createPartData(14, 10, [
172
172
  [_, _, _, _, 0, 0, 0, 0, 0, 0, _, _, _, _],
173
173
  [_, _, _, 0, 0, 0, 0, 0, 0, 0, 0, _, _, _],
174
174
  [_, _, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, _, _],
@@ -180,7 +180,7 @@ const BODY_LARGE = spriteGeneratorCore.createPartData(14, 10, [
180
180
  [_, _, _, 0, 0, 0, 0, 0, 0, 0, 0, _, _, _],
181
181
  [_, _, _, _, 0, 0, 0, 0, 0, 0, _, _, _, _],
182
182
  ], ['#805020', '#603818']);
183
- const BODY_BIRD = spriteGeneratorCore.createPartData(8, 7, [
183
+ const BODY_BIRD = /* @__PURE__ */ spriteGeneratorCore.createPartData(8, 7, [
184
184
  [_, _, _, 0, 0, _, _, _],
185
185
  [_, _, 0, 0, 0, 0, _, _],
186
186
  [_, 0, 0, 0, 0, 0, 0, _],
@@ -189,7 +189,7 @@ const BODY_BIRD = spriteGeneratorCore.createPartData(8, 7, [
189
189
  [_, _, 0, 0, 0, 0, _, _],
190
190
  [_, _, _, 0, 0, _, _, _],
191
191
  ], ['#a08040', '#806030']);
192
- const BODY_DRAGON = spriteGeneratorCore.createPartData(14, 10, [
192
+ const BODY_DRAGON = /* @__PURE__ */ spriteGeneratorCore.createPartData(14, 10, [
193
193
  [_, _, _, _, _, 0, 0, 0, 0, _, _, _, _, _],
194
194
  [_, _, _, _, 0, 0, 0, 0, 0, 0, _, _, _, _],
195
195
  [_, _, _, 0, 0, 0, 0, 0, 0, 0, 0, _, _, _],
@@ -202,28 +202,28 @@ const BODY_DRAGON = spriteGeneratorCore.createPartData(14, 10, [
202
202
  [_, _, _, _, 0, 0, 0, 0, 0, 0, _, _, _, _],
203
203
  ], ['var(--nice-success, #40a040)', '#f0d060']);
204
204
  /* ── Legs ── */
205
- const LEG_THIN = spriteGeneratorCore.createPartData(2, 5, [
205
+ const LEG_THIN = /* @__PURE__ */ spriteGeneratorCore.createPartData(2, 5, [
206
206
  [0, 0],
207
207
  [0, 0],
208
208
  [0, 0],
209
209
  [0, 0],
210
210
  [0, 1],
211
211
  ], ['var(--nice-warning-dark, #c08848)', 'var(--nice-warning-dark, #a06830)']);
212
- const LEG_THICK = spriteGeneratorCore.createPartData(3, 5, [
212
+ const LEG_THICK = /* @__PURE__ */ spriteGeneratorCore.createPartData(3, 5, [
213
213
  [0, 0, 0],
214
214
  [0, 0, 0],
215
215
  [0, 0, 0],
216
216
  [0, 0, 0],
217
217
  [0, 0, 1],
218
218
  ], ['#805020', '#603818']);
219
- const LEG_BIRD = spriteGeneratorCore.createPartData(2, 5, [
219
+ const LEG_BIRD = /* @__PURE__ */ spriteGeneratorCore.createPartData(2, 5, [
220
220
  [_, 0],
221
221
  [_, 0],
222
222
  [_, 0],
223
223
  [0, 0],
224
224
  [0, 0],
225
225
  ], ['#f0a020', '#c08010']);
226
- const LEG_DRAGON = spriteGeneratorCore.createPartData(3, 6, [
226
+ const LEG_DRAGON = /* @__PURE__ */ spriteGeneratorCore.createPartData(3, 6, [
227
227
  [_, 0, 0],
228
228
  [0, 0, 0],
229
229
  [0, 0, 0],
@@ -232,31 +232,31 @@ const LEG_DRAGON = spriteGeneratorCore.createPartData(3, 6, [
232
232
  [0, 1, 0],
233
233
  ], ['var(--nice-success, #40a040)', '#206020']);
234
234
  /* ── Tails ── */
235
- const TAIL_SHORT = spriteGeneratorCore.createPartData(4, 3, [
235
+ const TAIL_SHORT = /* @__PURE__ */ spriteGeneratorCore.createPartData(4, 3, [
236
236
  [0, 0, _, _],
237
237
  [_, 0, 0, _],
238
238
  [_, _, 0, 0],
239
239
  ], ['#e09040', '#c07828']);
240
- const TAIL_LONG = spriteGeneratorCore.createPartData(6, 4, [
240
+ const TAIL_LONG = /* @__PURE__ */ spriteGeneratorCore.createPartData(6, 4, [
241
241
  [0, 0, _, _, _, _],
242
242
  [_, 0, 0, _, _, _],
243
243
  [_, _, 0, 0, _, _],
244
244
  [_, _, _, 0, 0, 0],
245
245
  ], ['var(--nice-warning-dark, #c08848)', 'var(--nice-warning-dark, #a06830)']);
246
- const TAIL_FLUFFY = spriteGeneratorCore.createPartData(6, 5, [
246
+ const TAIL_FLUFFY = /* @__PURE__ */ spriteGeneratorCore.createPartData(6, 5, [
247
247
  [_, 0, 0, _, _, _],
248
248
  [0, 0, 0, 0, _, _],
249
249
  [_, 0, 0, 0, 0, _],
250
250
  [_, _, 0, 0, 0, 0],
251
251
  [_, _, _, 0, 0, _],
252
252
  ], ['var(--nice-text-secondary, #808080)', '#606060']);
253
- const TAIL_DRAGON = spriteGeneratorCore.createPartData(8, 4, [
253
+ const TAIL_DRAGON = /* @__PURE__ */ spriteGeneratorCore.createPartData(8, 4, [
254
254
  [0, 0, _, _, _, _, _, _],
255
255
  [_, 0, 0, 0, _, _, _, _],
256
256
  [_, _, _, 0, 0, 0, _, _],
257
257
  [_, _, _, _, _, 0, 1, 0],
258
258
  ], ['var(--nice-success, #40a040)', '#308030']);
259
- const TAIL_BIRD = spriteGeneratorCore.createPartData(5, 5, [
259
+ const TAIL_BIRD = /* @__PURE__ */ spriteGeneratorCore.createPartData(5, 5, [
260
260
  [_, _, 0, _, _],
261
261
  [_, 0, 0, 0, _],
262
262
  [0, 0, 0, 0, 0],
@@ -264,14 +264,14 @@ const TAIL_BIRD = spriteGeneratorCore.createPartData(5, 5, [
264
264
  [_, _, 0, _, _],
265
265
  ], ['#a08040', '#806030']);
266
266
  /* ── Wings ── */
267
- const WING_SMALL = spriteGeneratorCore.createPartData(6, 5, [
267
+ const WING_SMALL = /* @__PURE__ */ spriteGeneratorCore.createPartData(6, 5, [
268
268
  [_, _, _, _, 0, _],
269
269
  [_, _, _, 0, 0, 0],
270
270
  [_, _, 0, 0, 0, 0],
271
271
  [_, 0, 0, 0, 0, 0],
272
272
  [0, 0, 0, 0, 0, _],
273
273
  ], ['#a08040', '#806030']);
274
- const WING_LARGE = spriteGeneratorCore.createPartData(10, 8, [
274
+ const WING_LARGE = /* @__PURE__ */ spriteGeneratorCore.createPartData(10, 8, [
275
275
  [_, _, _, _, _, _, _, _, 0, _],
276
276
  [_, _, _, _, _, _, _, 0, 0, 0],
277
277
  [_, _, _, _, _, _, 0, 0, 0, 0],
@@ -281,7 +281,7 @@ const WING_LARGE = spriteGeneratorCore.createPartData(10, 8, [
281
281
  [_, _, 0, 0, 0, 0, 0, 0, 0, _],
282
282
  [_, 0, 0, 0, 0, 0, 0, 0, _, _],
283
283
  ], ['var(--nice-success, #40a040)', '#308030']);
284
- const WING_BAT = spriteGeneratorCore.createPartData(10, 7, [
284
+ const WING_BAT = /* @__PURE__ */ spriteGeneratorCore.createPartData(10, 7, [
285
285
  [_, _, 0, _, _, 0, _, _, 0, _],
286
286
  [_, 0, 0, _, 0, 0, _, 0, 0, _],
287
287
  [_, 0, 0, 0, 0, 0, 0, 0, 0, _],
@@ -291,13 +291,13 @@ const WING_BAT = spriteGeneratorCore.createPartData(10, 7, [
291
291
  [_, _, _, 0, 0, 0, 0, _, _, _],
292
292
  ], ['var(--nice-border, #404040)', '#303030']);
293
293
  /* ── Manes ── */
294
- const MANE_SHORT = spriteGeneratorCore.createPartData(6, 4, [
294
+ const MANE_SHORT = /* @__PURE__ */ spriteGeneratorCore.createPartData(6, 4, [
295
295
  [_, _, 0, 0, _, _],
296
296
  [_, 0, 0, 0, 0, _],
297
297
  [0, 0, 0, 0, 0, 0],
298
298
  [_, _, 0, 0, _, _],
299
299
  ], ['var(--nice-warning-dark, #c08848)', 'var(--nice-warning-dark, #a06830)']);
300
- const MANE_LONG = spriteGeneratorCore.createPartData(6, 8, [
300
+ const MANE_LONG = /* @__PURE__ */ spriteGeneratorCore.createPartData(6, 8, [
301
301
  [_, _, 0, 0, _, _],
302
302
  [_, 0, 0, 0, 0, _],
303
303
  [0, 0, 0, 0, 0, 0],
@@ -308,12 +308,12 @@ const MANE_LONG = spriteGeneratorCore.createPartData(6, 8, [
308
308
  [_, _, 0, 0, _, _],
309
309
  ], ['var(--nice-warning-dark, #c08848)', 'var(--nice-warning-dark, #a06830)']);
310
310
  /* ── Horns ── */
311
- const HORNS_SMALL = spriteGeneratorCore.createPartData(8, 3, [
311
+ const HORNS_SMALL = /* @__PURE__ */ spriteGeneratorCore.createPartData(8, 3, [
312
312
  [0, _, _, _, _, _, _, 0],
313
313
  [0, 0, _, _, _, _, 0, 0],
314
314
  [_, 0, _, _, _, _, 0, _],
315
315
  ], ['#f0e8d0', '#d8d0b8']);
316
- const HORNS_DRAGON = spriteGeneratorCore.createPartData(10, 4, [
316
+ const HORNS_DRAGON = /* @__PURE__ */ spriteGeneratorCore.createPartData(10, 4, [
317
317
  [0, _, _, _, _, _, _, _, _, 0],
318
318
  [0, 0, _, _, _, _, _, _, 0, 0],
319
319
  [_, 0, 0, _, _, _, _, 0, 0, _],
@@ -32,25 +32,25 @@ const ROOF_PALETTES = {
32
32
  ════════════════════════════════════════════════════════════════ */
33
33
  const _ = -1;
34
34
  /* ── Foundations ── */
35
- const FOUNDATION_STONE = spriteGeneratorCore.createPartData(16, 4, [
35
+ const FOUNDATION_STONE = /* @__PURE__ */ spriteGeneratorCore.createPartData(16, 4, [
36
36
  [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1],
37
37
  [0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0],
38
38
  [0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0],
39
39
  [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
40
40
  ], ['var(--nice-text-muted, #a0a0a0)', '#606060']);
41
- const FOUNDATION_BRICK = spriteGeneratorCore.createPartData(16, 4, [
41
+ const FOUNDATION_BRICK = /* @__PURE__ */ spriteGeneratorCore.createPartData(16, 4, [
42
42
  [1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0],
43
43
  [0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0],
44
44
  [1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0],
45
45
  [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
46
46
  ], ['#c06040', '#803020']);
47
- const FOUNDATION_WOOD = spriteGeneratorCore.createPartData(16, 3, [
47
+ const FOUNDATION_WOOD = /* @__PURE__ */ spriteGeneratorCore.createPartData(16, 3, [
48
48
  [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1],
49
49
  [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
50
50
  [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
51
51
  ], ['#c09060', '#604828']);
52
52
  /* ── Wall sections (one floor height) ── */
53
- const WALL_STONE_SECTION = spriteGeneratorCore.createPartData(16, 8, [
53
+ const WALL_STONE_SECTION = /* @__PURE__ */ spriteGeneratorCore.createPartData(16, 8, [
54
54
  [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1],
55
55
  [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1],
56
56
  [0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 0],
@@ -60,7 +60,7 @@ const WALL_STONE_SECTION = spriteGeneratorCore.createPartData(16, 8, [
60
60
  [0, 0, 0, 0, 2, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0],
61
61
  [0, 0, 2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0],
62
62
  ], ['var(--nice-text-muted, #a0a0a0)', 'var(--nice-text-secondary, #808080)', '#606060']);
63
- const WALL_BRICK_SECTION = spriteGeneratorCore.createPartData(16, 8, [
63
+ const WALL_BRICK_SECTION = /* @__PURE__ */ spriteGeneratorCore.createPartData(16, 8, [
64
64
  [2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0],
65
65
  [0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 2, 0],
66
66
  [2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0],
@@ -70,7 +70,7 @@ const WALL_BRICK_SECTION = spriteGeneratorCore.createPartData(16, 8, [
70
70
  [2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0],
71
71
  [0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 2, 0],
72
72
  ], ['#c06040', '#a04830', '#803020']);
73
- const WALL_WOOD_SECTION = spriteGeneratorCore.createPartData(16, 8, [
73
+ const WALL_WOOD_SECTION = /* @__PURE__ */ spriteGeneratorCore.createPartData(16, 8, [
74
74
  [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1],
75
75
  [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1],
76
76
  [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1],
@@ -80,7 +80,7 @@ const WALL_WOOD_SECTION = spriteGeneratorCore.createPartData(16, 8, [
80
80
  [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1],
81
81
  [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
82
82
  ], ['#c09060', '#806038']);
83
- const WALL_HALFTIMBER_SECTION = spriteGeneratorCore.createPartData(16, 8, [
83
+ const WALL_HALFTIMBER_SECTION = /* @__PURE__ */ spriteGeneratorCore.createPartData(16, 8, [
84
84
  [2, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 2],
85
85
  [2, 0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 0, 2],
86
86
  [2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 2],
@@ -91,7 +91,7 @@ const WALL_HALFTIMBER_SECTION = spriteGeneratorCore.createPartData(16, 8, [
91
91
  [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],
92
92
  ], ['#f0e8d0', '#e0d8c0', '#806038']);
93
93
  /* ── Roofs ── */
94
- const ROOF_TRIANGLE = spriteGeneratorCore.createPartData(20, 8, [
94
+ const ROOF_TRIANGLE = /* @__PURE__ */ spriteGeneratorCore.createPartData(20, 8, [
95
95
  [_, _, _, _, _, _, _, _, _, 0, 0, _, _, _, _, _, _, _, _, _],
96
96
  [_, _, _, _, _, _, _, _, 0, 1, 1, 0, _, _, _, _, _, _, _, _],
97
97
  [_, _, _, _, _, _, _, 0, 1, 1, 1, 1, 0, _, _, _, _, _, _, _],
@@ -101,13 +101,13 @@ const ROOF_TRIANGLE = spriteGeneratorCore.createPartData(20, 8, [
101
101
  [_, _, _, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, _, _, _],
102
102
  [_, _, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, _, _],
103
103
  ], ['#c04030', '#a03020', '#602018']);
104
- const ROOF_FLAT = spriteGeneratorCore.createPartData(18, 4, [
104
+ const ROOF_FLAT = /* @__PURE__ */ spriteGeneratorCore.createPartData(18, 4, [
105
105
  [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
106
106
  [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0],
107
107
  [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0],
108
108
  [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],
109
109
  ], ['#505058', '#404048', '#303038']);
110
- const ROOF_PAGODA = spriteGeneratorCore.createPartData(22, 6, [
110
+ const ROOF_PAGODA = /* @__PURE__ */ spriteGeneratorCore.createPartData(22, 6, [
111
111
  [_, _, _, _, _, _, _, _, _, _, 0, 0, _, _, _, _, _, _, _, _, _, _],
112
112
  [_, _, _, _, _, _, _, _, 0, 0, 1, 1, 0, 0, _, _, _, _, _, _, _, _],
113
113
  [_, _, _, _, _, _, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, _, _, _, _, _, _],
@@ -115,7 +115,7 @@ const ROOF_PAGODA = spriteGeneratorCore.createPartData(22, 6, [
115
115
  [_, _, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, _, _],
116
116
  [0, 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0],
117
117
  ], ['#c04030', '#a03020', '#602018']);
118
- const ROOF_DOME = spriteGeneratorCore.createPartData(18, 8, [
118
+ const ROOF_DOME = /* @__PURE__ */ spriteGeneratorCore.createPartData(18, 8, [
119
119
  [_, _, _, _, _, _, _, 0, 0, 0, 0, _, _, _, _, _, _, _],
120
120
  [_, _, _, _, _, 0, 0, 1, 1, 1, 1, 0, 0, _, _, _, _, _],
121
121
  [_, _, _, _, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, _, _, _, _],
@@ -126,7 +126,7 @@ const ROOF_DOME = spriteGeneratorCore.createPartData(18, 8, [
126
126
  [0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0],
127
127
  ], ['#4060b0', '#304890', '#203870']);
128
128
  /* ── Doors ── */
129
- const DOOR_WOOD = spriteGeneratorCore.createPartData(4, 6, [
129
+ const DOOR_WOOD = /* @__PURE__ */ spriteGeneratorCore.createPartData(4, 6, [
130
130
  [_, 0, 0, _],
131
131
  [0, 1, 1, 0],
132
132
  [0, 1, 1, 0],
@@ -134,7 +134,7 @@ const DOOR_WOOD = spriteGeneratorCore.createPartData(4, 6, [
134
134
  [0, 1, 1, 0],
135
135
  [0, 1, 1, 0],
136
136
  ], ['#604828', '#c09060', '#f0d060']);
137
- const DOOR_ARCH = spriteGeneratorCore.createPartData(6, 8, [
137
+ const DOOR_ARCH = /* @__PURE__ */ spriteGeneratorCore.createPartData(6, 8, [
138
138
  [_, _, 0, 0, _, _],
139
139
  [_, 0, 1, 1, 0, _],
140
140
  [0, 1, 1, 1, 1, 0],
@@ -144,7 +144,7 @@ const DOOR_ARCH = spriteGeneratorCore.createPartData(6, 8, [
144
144
  [0, 1, 1, 1, 1, 0],
145
145
  [0, 1, 1, 1, 1, 0],
146
146
  ], ['#604828', '#a07848', '#f0d060']);
147
- const DOOR_DOUBLE = spriteGeneratorCore.createPartData(8, 7, [
147
+ const DOOR_DOUBLE = /* @__PURE__ */ spriteGeneratorCore.createPartData(8, 7, [
148
148
  [_, 0, 0, 0, 0, 0, 0, _],
149
149
  [0, 1, 1, 0, 0, 1, 1, 0],
150
150
  [0, 1, 1, 0, 0, 1, 1, 0],
@@ -154,33 +154,33 @@ const DOOR_DOUBLE = spriteGeneratorCore.createPartData(8, 7, [
154
154
  [0, 0, 0, 0, 0, 0, 0, 0],
155
155
  ], ['#604828', '#c09060', '#f0d060']);
156
156
  /* ── Windows ── */
157
- const WINDOW_SIMPLE = spriteGeneratorCore.createPartData(4, 4, [
157
+ const WINDOW_SIMPLE = /* @__PURE__ */ spriteGeneratorCore.createPartData(4, 4, [
158
158
  [0, 0, 0, 0],
159
159
  [0, 1, 1, 0],
160
160
  [0, 1, 1, 0],
161
161
  [0, 0, 0, 0],
162
162
  ], ['var(--nice-border, #404040)', '#88c8ff']);
163
- const WINDOW_CROSS = spriteGeneratorCore.createPartData(4, 4, [
163
+ const WINDOW_CROSS = /* @__PURE__ */ spriteGeneratorCore.createPartData(4, 4, [
164
164
  [0, 0, 0, 0],
165
165
  [0, 1, 0, 1],
166
166
  [0, 0, 0, 0],
167
167
  [0, 1, 0, 1],
168
168
  ], ['var(--nice-border, #404040)', '#88c8ff']);
169
- const WINDOW_ARCH = spriteGeneratorCore.createPartData(4, 5, [
169
+ const WINDOW_ARCH = /* @__PURE__ */ spriteGeneratorCore.createPartData(4, 5, [
170
170
  [_, 0, 0, _],
171
171
  [0, 1, 1, 0],
172
172
  [0, 1, 1, 0],
173
173
  [0, 0, 0, 0],
174
174
  [0, 1, 1, 0],
175
175
  ], ['var(--nice-border, #404040)', '#88c8ff']);
176
- const WINDOW_ROUND = spriteGeneratorCore.createPartData(4, 4, [
176
+ const WINDOW_ROUND = /* @__PURE__ */ spriteGeneratorCore.createPartData(4, 4, [
177
177
  [_, 0, 0, _],
178
178
  [0, 1, 1, 0],
179
179
  [0, 1, 1, 0],
180
180
  [_, 0, 0, _],
181
181
  ], ['var(--nice-border, #404040)', '#88c8ff']);
182
182
  /* ── Chimneys ── */
183
- const CHIMNEY_BRICK = spriteGeneratorCore.createPartData(4, 6, [
183
+ const CHIMNEY_BRICK = /* @__PURE__ */ spriteGeneratorCore.createPartData(4, 6, [
184
184
  [_, 2, 2, _],
185
185
  [0, 0, 0, 0],
186
186
  [0, 1, 1, 0],
@@ -188,7 +188,7 @@ const CHIMNEY_BRICK = spriteGeneratorCore.createPartData(4, 6, [
188
188
  [0, 1, 1, 0],
189
189
  [0, 0, 0, 0],
190
190
  ], ['#c06040', '#a04830', '#606060']);
191
- const CHIMNEY_STONE = spriteGeneratorCore.createPartData(3, 5, [
191
+ const CHIMNEY_STONE = /* @__PURE__ */ spriteGeneratorCore.createPartData(3, 5, [
192
192
  [_, 2, _],
193
193
  [0, 0, 0],
194
194
  [0, 1, 0],
@@ -196,12 +196,12 @@ const CHIMNEY_STONE = spriteGeneratorCore.createPartData(3, 5, [
196
196
  [0, 0, 0],
197
197
  ], ['var(--nice-text-secondary, #808080)', 'var(--nice-text-muted, #a0a0a0)', '#505050']);
198
198
  /* ── Decorations ── */
199
- const BALCONY = spriteGeneratorCore.createPartData(8, 3, [
199
+ const BALCONY = /* @__PURE__ */ spriteGeneratorCore.createPartData(8, 3, [
200
200
  [0, 0, 0, 0, 0, 0, 0, 0],
201
201
  [0, _, 0, _, _, 0, _, 0],
202
202
  [0, 0, 0, 0, 0, 0, 0, 0],
203
203
  ], ['var(--nice-text-secondary, #808080)']);
204
- const BANNER = spriteGeneratorCore.createPartData(4, 6, [
204
+ const BANNER = /* @__PURE__ */ spriteGeneratorCore.createPartData(4, 6, [
205
205
  [_, 0, 0, _],
206
206
  [_, 1, 1, _],
207
207
  [_, 1, 1, _],
@@ -209,13 +209,13 @@ const BANNER = spriteGeneratorCore.createPartData(4, 6, [
209
209
  [_, 1, 1, _],
210
210
  [_, _, 1, _],
211
211
  ], ['#806038', '#d04040']);
212
- const TOWER_TOP = spriteGeneratorCore.createPartData(8, 4, [
212
+ const TOWER_TOP = /* @__PURE__ */ spriteGeneratorCore.createPartData(8, 4, [
213
213
  [0, _, 0, _, 0, _, 0, _],
214
214
  [0, 0, 0, 0, 0, 0, 0, 0],
215
215
  [0, 1, 1, 1, 1, 1, 1, 0],
216
216
  [0, 1, 1, 1, 1, 1, 1, 0],
217
217
  ], ['var(--nice-text-secondary, #808080)', 'var(--nice-text-muted, #a0a0a0)']);
218
- const SHOP_AWNING = spriteGeneratorCore.createPartData(14, 4, [
218
+ const SHOP_AWNING = /* @__PURE__ */ spriteGeneratorCore.createPartData(14, 4, [
219
219
  [_, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, _],
220
220
  [0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1],
221
221
  [_, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, _],