gd-measurements 0.4.1 → 0.4.2

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
@@ -2,12 +2,21 @@
2
2
 
3
3
  Set of React components to add measurement means to your components for debugging purpose.
4
4
 
5
+ [Example page on github.io](https://lukaszgrela.github.io/gd-measurements/)
6
+
5
7
  ## Installation
6
8
 
7
9
  ```
8
10
  npm i gd-measurements
9
11
  ```
10
12
 
13
+ ## Dependencies
14
+
15
+ ```
16
+ "lodash": "^4.17.21",
17
+ "react": "^18.3.1 || ^19.1.1",
18
+ ```
19
+
11
20
  ## Stylesheet
12
21
 
13
22
  ```
@@ -1,142 +1 @@
1
- .AxisH {
2
- pointer-events: none;
3
- top: 0;
4
- left: 0;
5
- }
6
- .AxisH.absolute {
7
- position: absolute;
8
- height: 100%;
9
- width: 100%;
10
- }
11
- .AxisH.fixed {
12
- position: fixed;
13
- z-index: 19791306;
14
- height: 100vh;
15
- width: 100vw;
16
- }
17
- .AxisH line {
18
- stroke: rgba(88, 211, 72, 0.5);
19
- stroke-width: 1;
20
- stroke-dasharray: 10 5 1 5;
21
- }.AxisV {
22
- pointer-events: none;
23
- top: 0;
24
- left: 0;
25
- }
26
- .AxisV.absolute {
27
- position: absolute;
28
- height: 100%;
29
- width: 100%;
30
- }
31
- .AxisV.fixed {
32
- position: fixed;
33
- z-index: 19791306;
34
- height: 100vh;
35
- width: 100vw;
36
- }
37
- .AxisV line {
38
- stroke: rgba(91, 83, 209, 0.5);
39
- stroke-width: 1;
40
- stroke-dasharray: 10 5 1 5;
41
- }.Grid {
42
- pointer-events: none;
43
- top: 0;
44
- left: 0;
45
- }
46
- .Grid.absolute {
47
- position: absolute;
48
- height: 100%;
49
- width: 100%;
50
- }
51
- .Grid.fixed {
52
- position: fixed;
53
- z-index: 1979;
54
- height: 100vh;
55
- width: 100vw;
56
- }
57
- .Grid_pattern_main {
58
- stroke: rgba(209, 83, 85, 0.5);
59
- }
60
- .Grid_pattern_sub {
61
- stroke: rgba(209, 83, 85, 0.25);
62
- }
63
- .Grid_units .value-label {
64
- fill: light-dark(rgb(161.2697247706, 43.1302752294, 45.0055045872), rgb(222.8, 134.6, 136));
65
- font-family: monospace;
66
- font-size: 10px;
67
- alignment-baseline: text-before-edge;
68
- }
69
- .Grid_units .value-label tspan {
70
- alignment-baseline: text-before-edge;
71
- }
72
- .Grid_units .value-label.horizontal {
73
- text-anchor: start;
74
- }
75
- .Grid_units .value-label.horizontal.first {
76
- text-anchor: end;
77
- }
78
- .Grid_units .value-label.vertical {
79
- text-anchor: start;
80
- }.Ruler {
81
- pointer-events: none;
82
- }
83
- .Ruler.absolute {
84
- position: absolute;
85
- }
86
- .Ruler.absolute.vertical {
87
- height: 100%;
88
- }
89
- .Ruler.absolute.horizontal {
90
- width: 100%;
91
- }
92
- .Ruler.fixed {
93
- position: fixed;
94
- z-index: 1979;
95
- }
96
- .Ruler.fixed.vertical {
97
- height: 100vh;
98
- }
99
- .Ruler.fixed.horizontal {
100
- width: 100vw;
101
- }
102
- .Ruler.top {
103
- top: 0;
104
- left: 0;
105
- }
106
- .Ruler.bottom {
107
- bottom: 0;
108
- left: 0;
109
- }
110
- .Ruler.right {
111
- top: 0;
112
- right: 0;
113
- }
114
- .Ruler.left {
115
- top: 0;
116
- left: 0;
117
- }
118
- .Ruler_pattern_line {
119
- fill: rgba(91, 83, 209, 0.5);
120
- }
121
- .Ruler_pattern_main {
122
- stroke: rgba(91, 83, 209, 0.5);
123
- stroke-width: 1;
124
- }
125
- .Ruler_pattern_sub {
126
- stroke: rgba(91, 83, 209, 0.25);
127
- stroke-width: 1;
128
- }
129
- .Ruler_units .value-label {
130
- fill: light-dark(rgb(50.6311926606, 43.1302752294, 161.2697247706), rgb(140.2, 134.6, 222.8));
131
- font-family: monospace;
132
- font-size: 10px;
133
- }
134
- .Ruler_units .value-label.horizontal {
135
- text-anchor: start;
136
- }
137
- .Ruler_units .value-label.horizontal.first {
138
- text-anchor: end;
139
- }
140
- .Ruler_units .value-label.vertical {
141
- text-anchor: start;
142
- }
1
+ .AxisH{pointer-events:none;top:0;left:0}.AxisH.absolute{position:absolute;height:100%;width:100%}.AxisH.fixed{position:fixed;z-index:19791306;height:100vh;width:100vw}.AxisH line{stroke:#58d34880;stroke-width:1;stroke-dasharray:10 5 1 5}.AxisV{pointer-events:none;top:0;left:0}.AxisV.absolute{position:absolute;height:100%;width:100%}.AxisV.fixed{position:fixed;z-index:19791306;height:100vh;width:100vw}.AxisV line{stroke:#5b53d180;stroke-width:1;stroke-dasharray:10 5 1 5}.Grid{pointer-events:none;top:0;left:0}.Grid.absolute{position:absolute;height:100%;width:100%}.Grid.fixed{position:fixed;z-index:1979;height:100vh;width:100vw}.Grid_pattern_main{stroke:#d1535580}.Grid_pattern_sub{stroke:#d1535540}.Grid_units .value-label{fill:light-dark(rgb(161.2697247706,43.1302752294,45.0055045872),rgb(222.8,134.6,136));font-family:monospace;font-size:10px;alignment-baseline:text-before-edge}.Grid_units .value-label tspan{alignment-baseline:text-before-edge}.Grid_units .value-label.horizontal{text-anchor:start}.Grid_units .value-label.horizontal.first{text-anchor:end}.Grid_units .value-label.vertical{text-anchor:start}.Ruler{pointer-events:none}.Ruler.absolute{position:absolute}.Ruler.absolute.vertical{height:100%}.Ruler.absolute.horizontal{width:100%}.Ruler.fixed{position:fixed;z-index:1979}.Ruler.fixed.vertical{height:100vh}.Ruler.fixed.horizontal{width:100vw}.Ruler.top{top:0;left:0}.Ruler.bottom{bottom:0;left:0}.Ruler.right{top:0;right:0}.Ruler.left{top:0;left:0}.Ruler_pattern_line{fill:#5b53d180}.Ruler_pattern_main{stroke:#5b53d180;stroke-width:1}.Ruler_pattern_sub{stroke:#5b53d140;stroke-width:1}.Ruler_units .value-label{fill:light-dark(rgb(50.6311926606,43.1302752294,161.2697247706),rgb(140.2,134.6,222.8));font-family:monospace;font-size:10px}.Ruler_units .value-label.horizontal{text-anchor:start}.Ruler_units .value-label.horizontal.first{text-anchor:end}.Ruler_units .value-label.vertical{text-anchor:start}