Skip to content

Adding Shapes Component #854

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
May 11, 2024
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
10d27dc
initial shape component
freddysundowner Apr 18, 2024
840678f
Merge branch 'dev' of https://github.com/lowcoder-org/lowcoder into f…
freddysundowner Apr 18, 2024
6842c4f
merged from dev
freddysundowner Apr 18, 2024
cd3d37f
initial shape component
freddysundowner Apr 18, 2024
06d6458
selecting active shape
freddysundowner Apr 19, 2024
c0325fe
selecting active shape
freddysundowner Apr 19, 2024
7e190ed
aa
freddysundowner Apr 24, 2024
cd4f98b
fixed shape width and height, added default icon selection
freddysundowner Apr 27, 2024
a78fbe1
added icons lables
freddysundowner May 6, 2024
4ac855d
added grid too shapes comp and lables to shapes lists
freddysundowner May 6, 2024
acda8fe
referencing forked coolshapes package
freddysundowner May 6, 2024
e1a49c4
added grid too shapes comp and lables to shapes lists
freddysundowner May 6, 2024
578899e
initial shape component
freddysundowner Apr 18, 2024
e9d4aa4
initial shape component
freddysundowner Apr 18, 2024
be62b7d
selecting active shape
freddysundowner Apr 19, 2024
ebc66fe
selecting active shape
freddysundowner Apr 19, 2024
b07fee5
aa
freddysundowner Apr 24, 2024
b19c9bc
fixed shape width and height, added default icon selection
freddysundowner Apr 27, 2024
e5e1e2a
added icons lables
freddysundowner May 6, 2024
9e2f907
added grid too shapes comp and lables to shapes lists
freddysundowner May 6, 2024
bcd1211
referencing forked coolshapes package
freddysundowner May 6, 2024
5665218
added grid too shapes comp and lables to shapes lists
freddysundowner May 6, 2024
9143dd5
lazy load shapes comp
raheeliftikhar5 May 9, 2024
7dab708
removed console
raheeliftikhar5 May 9, 2024
307668c
Merge branch 'feat-ShapeComp' of https://github.com/lowcoder-org/lowc…
freddysundowner May 9, 2024
84ba449
fixed drag items to shape comp
freddysundowner May 10, 2024
b156fc0
Merge branch 'dev' into feat-ShapeComp
FalkWolsky May 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed drag items to shape comp
  • Loading branch information
freddysundowner committed May 10, 2024
commit 84ba449ca728229f22902d353dc28c11071ae31e
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import {
ContainerStyleType,
} from "comps/controls/styleControlConstants";
import { ContainerStyleType } from "comps/controls/styleControlConstants";
import { EditorContext } from "comps/editorState";
import { BackgroundColorContext } from "comps/utils/backgroundColorContext";
import { HintPlaceHolder, ScrollBar } from "lowcoder-design";
Expand Down Expand Up @@ -122,19 +120,24 @@ export function ShapeTriContainer(props: TriContainerProps) {
}}
hideScrollbar={!scrollbars}
>
<div style={{ position: "relative" }}>
<div style={{ position: "relative", height: "100%" }}>
<Coolshape
type={shape?.value as any}
index={shape.index}
styles={{
position: "absolute",
top: "0",
left: "50%",
transform: "translateX(-50%)",
}}
/>
<BodyInnerGrid
$showBorder={showHeader}
$showBorder={false}
{...otherBodyProps}
items={gridItemCompToGridItems(bodyItems)}
autoHeight={container.autoHeight}
emptyRows={14}
minHeight={showHeader ? "143px" : "142px"}
containerPadding={
(showHeader && showFooter) || showHeader
? [paddingWidth, 11.5]
: [paddingWidth, 11]
}
minHeight={"142px"}
hintPlaceholder={props.hintPlaceholder ?? HintPlaceHolder}
$backgroundColor={bodyStyle?.background || "transparent"}
$borderColor={style?.border}
Expand All @@ -145,20 +148,9 @@ export function ShapeTriContainer(props: TriContainerProps) {
$backgroundImagePosition={bodyStyle?.backgroundImagePosition}
$backgroundImageOrigin={bodyStyle?.backgroundImageOrigin}
style={{
padding: bodyStyle.containerBodyPadding,
zIndex: 999,
}}
/>
<Coolshape
type={shape?.value as any}
index={shape.index}
styles={{
position: "absolute",
top: "0",
left: "50%",
transform: "translateX(-50%)",
}}
/>
</div>
</ScrollBar>
</BackgroundColorContext.Provider>
Expand Down
Loading