@mertdogar/phaser-procedural-walls 0.4.0 → 0.4.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.
package/README.md CHANGED
@@ -12,7 +12,7 @@ A Phaser 4 scene plugin that draws top-down floorplan walls from a few lines of
12
12
  - One depth-sorted Container per wall; use `sprite.setDepth(sprite.y)` with automatic wall depths
13
13
  - Optional Arcade static bodies matching each wall's bottom footprint
14
14
  - Pure geometry module with unit tests, no Phaser needed to test it
15
- - Embeddable `WallEditor` for drawing, selection, endpoint handles, and window dragging in an existing Phaser scene
15
+ - Embeddable `WallEditor` for drawing, selection, whole-wall movement, endpoint handles, and window dragging in an existing Phaser scene
16
16
  - Wallcraft editor prototype: draw walls, drag endpoints and windows, edit height and drawing order, and manage presets
17
17
  - Resizable layers and inspector panels with wall selection, duplication, deletion, and reordering
18
18
  - Full-pane canvas with origin axes, two-finger scrolling to pan, and pinching to zoom
@@ -129,6 +129,12 @@ scene with player collisions.” The skill is distributed in Git, not in the npm
129
129
  package. Its bundled references track the repository, including changes made
130
130
  after the original 0.2.0 release.
131
131
 
132
+ ## 0.4.1 release notes
133
+
134
+ Drag a selected wall's green centerline to move the entire segment with a
135
+ grid-snapped preview. Endpoint resizing and window dragging remain available.
136
+ Hosts can cancel through `WallEditor.cancel()`; Wallcraft binds this to Escape.
137
+
132
138
  ## 0.4.0 release notes
133
139
 
134
140
  Version 0.4.0 exports `WallEditor`, extracted from Wallcraft's canvas interactions.
@@ -33,6 +33,8 @@ export declare class WallEditor {
33
33
  private pointerPosition;
34
34
  private anchorDrag;
35
35
  private windowDrag;
36
+ private wallDrag;
37
+ private wallPreview;
36
38
  constructor(scene: Phaser.Scene, options: WallEditorOptions);
37
39
  setState(state: WallEditorState): void;
38
40
  setNewWall(wall: Partial<Pick<WallSpec, "thickness" | "height" | "preset">>): void;
@@ -44,6 +46,8 @@ export declare class WallEditor {
44
46
  private handlePointerUp;
45
47
  refresh(): void;
46
48
  private findWall;
49
+ private onSelectedLine;
50
+ private moveWall;
47
51
  private findAnchor;
48
52
  private findWindow;
49
53
  private getWindowRects;