File tree Expand file tree Collapse file tree 2 files changed +11
-14
lines changed
src/comps/comps/shapeComp Expand file tree Collapse file tree 2 files changed +11
-14
lines changed Original file line number Diff line number Diff line change 41
41
"buffer" : " ^6.0.3" ,
42
42
"clsx" : " ^2.0.0" ,
43
43
"cnchar" : " ^3.2.4" ,
44
- "coolshapes-react" : " ^0.1.1-beta.0 " ,
44
+ "coolshapes-react" : " /Users/la/Desktop/coolshapes-react " ,
45
45
"copy-to-clipboard" : " ^3.3.3" ,
46
46
"core-js" : " ^3.25.2" ,
47
47
"echarts" : " ^5.4.3" ,
Original file line number Diff line number Diff line change @@ -34,11 +34,6 @@ const Container = styled.div<{ $style: IconStyleType | undefined }>`
34
34
display: flex;
35
35
align-items: center;
36
36
justify-content: center;
37
- .coolshapes {
38
- max-width: 100%;
39
- min-height: 100%;
40
- min-width: 100%;
41
- }
42
37
43
38
${ ( props ) =>
44
39
props . $style &&
@@ -47,8 +42,6 @@ const Container = styled.div<{ $style: IconStyleType | undefined }>`
47
42
width: calc(100% - ${ props . $style . margin } );
48
43
padding: ${ props . $style . padding } ;
49
44
margin: ${ props . $style . margin } ;
50
- border: ${ props . $style . borderWidth } solid ${ props . $style . border } ;
51
- border-radius: ${ props . $style . radius } ;
52
45
background: ${ props . $style . background } ;
53
46
svg {
54
47
max-width: ${ widthCalculator ( props . $style . margin ) } ;
@@ -57,7 +50,7 @@ const Container = styled.div<{ $style: IconStyleType | undefined }>`
57
50
object-fit: contain;
58
51
pointer-events: auto;
59
52
}
60
- ` }
53
+ ` }
61
54
` ;
62
55
63
56
const EventOptions = [ clickEvent ] as const ;
@@ -106,16 +99,20 @@ const IconView = (props: RecordConstructorToView<typeof childrenMap>) => {
106
99
fontSize : props . autoHeight
107
100
? `${ height < width ? height : width } px`
108
101
: props . iconSize ,
109
- background : props . style . background ,
110
102
} }
111
103
onClick = { ( ) => {
112
104
console . log ( "click" ) ;
113
- } }
105
+ } }
114
106
>
115
- < Coolshape
107
+ < Coolshape
116
108
type = { shape . value as any }
117
- index = { shape . index }
118
- noise = { true }
109
+ index = { shape . index }
110
+ noise = { false }
111
+ style = { {
112
+ border : `${ props . style . borderWidth } solid ${ props . style . border } ` ,
113
+ borderRadius : props . style . radius ,
114
+ color : props . style . background ,
115
+ } }
119
116
/>
120
117
</ Container >
121
118
</ ReactResizeDetector >
You can’t perform that action at this time.
0 commit comments