easy-layout 5.0.104 → 5.1.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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  import withStyle from "easy-with-style"; ///
4
4
 
5
- import { RowDiv, RowsDiv, ColumnDiv, ColumnsDiv, options } from "../index"; ///
5
+ import { RowDiv, RowsDiv, ColumnDiv, ColumnsDiv } from "../index"; ///
6
6
 
7
7
  import BlueRowDiv from "./div/row/blue";
8
8
  import YellowRowDiv from "./div/row/yellow";
@@ -15,8 +15,6 @@ import LeftVerticalSplitterDiv from "./div/splitter/vertical/left";
15
15
  import RightVerticalSplitterDiv from "./div/splitter/vertical/right";
16
16
  import MainHorizontalSplitterDiv from "./div/splitter/horizontal/main";
17
17
 
18
- const { ESCAPE_KEY_STOPS_DRAGGING_OPTION } = options;
19
-
20
18
  const View = (properties) => {
21
19
  const { className } = properties,
22
20
  bottomLeftDiv =
@@ -24,9 +22,13 @@ const View = (properties) => {
24
22
  <BottomLeftDiv/>
25
23
 
26
24
  ,
27
- options = {
28
- ESCAPE_KEY_STOPS_DRAGGING_OPTION
29
- };
25
+ bottomSizeableDiv =
26
+
27
+ <BottomSizeableDiv/>
28
+
29
+ ;
30
+
31
+ let bottomSizeableDivHeight;
30
32
 
31
33
  return (
32
34
 
@@ -39,13 +41,13 @@ const View = (properties) => {
39
41
  {bottomLeftDiv}
40
42
  </RowsDiv>
41
43
  </LeftSizeableDiv>
42
- <LeftVerticalSplitterDiv options={options} />
44
+ <LeftVerticalSplitterDiv/>
43
45
  <ColumnDiv>
44
46
  <RowsDiv>
45
47
  <RowDiv>
46
48
  <ColumnsDiv>
47
49
  <ColumnDiv/>
48
- <RightVerticalSplitterDiv options={options} />
50
+ <RightVerticalSplitterDiv/>
49
51
  <RightSizeableDiv>
50
52
  <RowsDiv>
51
53
  <BlueRowDiv/>
@@ -53,8 +55,20 @@ const View = (properties) => {
53
55
  </RightSizeableDiv>
54
56
  </ColumnsDiv>
55
57
  </RowDiv>
56
- <MainHorizontalSplitterDiv bottomLeftDiv={bottomLeftDiv} options={options} />
57
- <BottomSizeableDiv/>
58
+ <MainHorizontalSplitterDiv onStartDrag={(element) => {
59
+
60
+ bottomSizeableDivHeight = bottomSizeableDiv.getHeight();
61
+
62
+ }}
63
+ onDrag={(relativeMouseTop, relativeMouseLeft) => {
64
+
65
+ const height = bottomSizeableDivHeight - relativeMouseTop;
66
+
67
+ bottomLeftDiv.setHeight(height);
68
+
69
+ }}
70
+ />
71
+ {bottomSizeableDiv}
58
72
  </RowsDiv>
59
73
  </ColumnDiv>
60
74
  </ColumnsDiv>
package/src/index.js CHANGED
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- export { default as options } from "./options";
4
-
5
3
  export { default as RowDiv } from "./div/row";
6
4
  export { default as RowsDiv } from "./div/rows";
7
5
  export { default as ColumnDiv } from "./div/column";
package/lib/options.js DELETED
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- exports.default = exports.ESCAPE_KEY_STOPS_DRAGGING_OPTION = void 0;
6
- var ESCAPE_KEY_STOPS_DRAGGING_OPTION = "ESCAPE_KEY_STOPS_DRAGGING";
7
- exports.ESCAPE_KEY_STOPS_DRAGGING_OPTION = ESCAPE_KEY_STOPS_DRAGGING_OPTION;
8
- var _default = {
9
- ESCAPE_KEY_STOPS_DRAGGING_OPTION: ESCAPE_KEY_STOPS_DRAGGING_OPTION
10
- };
11
- exports.default = _default;
12
-
13
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9vcHRpb25zLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5leHBvcnQgY29uc3QgRVNDQVBFX0tFWV9TVE9QU19EUkFHR0lOR19PUFRJT04gPSBcIkVTQ0FQRV9LRVlfU1RPUFNfRFJBR0dJTkdcIjtcblxuZXhwb3J0IGRlZmF1bHQge1xuICBFU0NBUEVfS0VZX1NUT1BTX0RSQUdHSU5HX09QVElPTlxufTtcbiJdLCJuYW1lcyI6WyJFU0NBUEVfS0VZX1NUT1BTX0RSQUdHSU5HX09QVElPTiJdLCJtYXBwaW5ncyI6IkFBQUEsWUFBWSxDQUFDOzs7OztBQUVOLElBQU1BLGdDQUFnQyxHQUFHLDJCQUEyQixBQUFDO1FBQS9EQSxnQ0FBZ0MsR0FBaENBLGdDQUFnQztlQUU5QjtJQUNiQSxnQ0FBZ0MsRUFBaENBLGdDQUFnQztDQUNqQyJ9
package/src/options.js DELETED
@@ -1,7 +0,0 @@
1
- "use strict";
2
-
3
- export const ESCAPE_KEY_STOPS_DRAGGING_OPTION = "ESCAPE_KEY_STOPS_DRAGGING";
4
-
5
- export default {
6
- ESCAPE_KEY_STOPS_DRAGGING_OPTION
7
- };