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 4141 "buffer" : " ^6.0.3" ,
4242 "clsx" : " ^2.0.0" ,
4343 "cnchar" : " ^3.2.4" ,
44- "coolshapes-react" : " ^0.1.1-beta.0 " ,
44+ "coolshapes-react" : " /Users/la/Desktop/coolshapes-react " ,
4545 "copy-to-clipboard" : " ^3.3.3" ,
4646 "core-js" : " ^3.25.2" ,
4747 "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 }>`
3434 display: flex;
3535 align-items: center;
3636 justify-content: center;
37- .coolshapes {
38- max-width: 100%;
39- min-height: 100%;
40- min-width: 100%;
41- }
4237
4338 ${ ( props ) =>
4439 props . $style &&
@@ -47,8 +42,6 @@ const Container = styled.div<{ $style: IconStyleType | undefined }>`
4742 width: calc(100% - ${ props . $style . margin } );
4843 padding: ${ props . $style . padding } ;
4944 margin: ${ props . $style . margin } ;
50- border: ${ props . $style . borderWidth } solid ${ props . $style . border } ;
51- border-radius: ${ props . $style . radius } ;
5245 background: ${ props . $style . background } ;
5346 svg {
5447 max-width: ${ widthCalculator ( props . $style . margin ) } ;
@@ -57,7 +50,7 @@ const Container = styled.div<{ $style: IconStyleType | undefined }>`
5750 object-fit: contain;
5851 pointer-events: auto;
5952 }
60- ` }
53+ ` }
6154` ;
6255
6356const EventOptions = [ clickEvent ] as const ;
@@ -106,16 +99,20 @@ const IconView = (props: RecordConstructorToView<typeof childrenMap>) => {
10699 fontSize : props . autoHeight
107100 ? `${ height < width ? height : width } px`
108101 : props . iconSize ,
109- background : props . style . background ,
110102 } }
111103 onClick = { ( ) => {
112104 console . log ( "click" ) ;
113- } }
105+ } }
114106 >
115- < Coolshape
107+ < Coolshape
116108 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+ } }
119116 />
120117 </ Container >
121118 </ ReactResizeDetector >
You can’t perform that action at this time.
0 commit comments