seat-editor 1.2.18 → 1.2.19

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.
@@ -86,17 +86,17 @@ const Layers = ({ shadowShape, components, onClick, selectedComponent, selectedT
86
86
  fill,
87
87
  opacity,
88
88
  onClick: (e) => {
89
- e.stopPropagation();
89
+ // e.stopPropagation();
90
90
  onClick(item);
91
91
  },
92
92
  stroke,
93
93
  strokeWidth,
94
94
  onMouseDown: (e) => {
95
- e.stopPropagation();
95
+ // e.stopPropagation();
96
96
  onMouseDown === null || onMouseDown === void 0 ? void 0 : onMouseDown(e, item);
97
97
  },
98
98
  onMouseUp: (e) => {
99
- e.stopPropagation();
99
+ // e.stopPropagation();
100
100
  onMouseUp === null || onMouseUp === void 0 ? void 0 : onMouseUp(e);
101
101
  },
102
102
  onBlur: (e) => {
@@ -251,7 +251,7 @@ const BoardTemplate = ({ onSelectComponent }) => {
251
251
  };
252
252
  return (<>
253
253
  <ModalPreview>
254
- <LayerView statusKey="status"/>
254
+ <LayerView statusKey="status" defaultBackground="#ffffff"/>
255
255
  </ModalPreview>
256
256
  <div className="relative w-full h-screen flex-1" ref={containerRef}>
257
257
  <TransformWrapper ref={transformRef} panning={{ disabled: false }} centerZoomedOut={true} onTransformed={({ state: { scale } }) => setScale(scale)} minScale={1} // sangat kecil = bisa zoom out jauh
@@ -126,9 +126,11 @@ const LayerView = (props) => {
126
126
  });
127
127
  };
128
128
  return (<div className="relative w-full h-full flex-1" ref={containerRef}>
129
- <TransformWrapper ref={transformRef} {...props.transformProps} panning={{
130
- disabled: false,
131
- }} centerZoomedOut={true} onTransformed={({ state: { scale } }) => setScale(scale)} minScale={1} maxScale={1000} initialScale={1} pinch={{ step: 1 }} smooth={true}>
129
+ <TransformWrapper ref={transformRef} {...props.transformProps}
130
+ // panning={{
131
+ // disabled: false,
132
+ // }}
133
+ disablePadding={true} centerZoomedOut={true} onTransformed={({ state: { scale } }) => setScale(scale)} minScale={1} maxScale={1000} initialScale={1} pinch={{ step: 1 }} smooth={true}>
132
134
  <TransformComponent wrapperStyle={{
133
135
  width: "100%",
134
136
  height: "100%",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seat-editor",
3
- "version": "1.2.18",
3
+ "version": "1.2.19",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",