Skip to content

Commit

Permalink
fix some values
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Contreras LEMONCODE committed Aug 29, 2024
1 parent 86340c3 commit ed74dd2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
11 changes: 5 additions & 6 deletions src/common/components/front-components/tooltip-shape.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export const TooltipShape = forwardRef<any, ShapeProps>(
) => {
const tooltipWidth = 100;
const tooltipHeight = 50;
const pointerHeight = 10;
const pointerWidth = 20;
const pointerHeight = 25;
const pointerWidth = 45;

const { width: restrictedWidth, height: restrictedHeight } =
fitSizeToShapeSizeRestrictions(tooltipShapeRestrictions, width, height);
Expand Down Expand Up @@ -90,13 +90,13 @@ export const TooltipShape = forwardRef<any, ShapeProps>(
fill={textColor}
wrap="none"
ellipsis={true}
align="center"
/>
{/* Triángulo para la punta */}
<Line
width={100}
height={200}
x={-48}
y={-10}
y={-12}
strokeWidth={BASIC_SHAPE.DEFAULT_STROKE_WIDTH}
points={[
tooltipWidth / 2 - pointerWidth / 20,
tooltipHeight,
Expand All @@ -106,7 +106,6 @@ export const TooltipShape = forwardRef<any, ShapeProps>(
tooltipHeight + pointerHeight,
]}
closed
shadowBlur={5}
stroke={stroke}
dash={strokeStyle}
fill={fill}
Expand Down
8 changes: 7 additions & 1 deletion src/pods/canvas/canvas.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,13 @@ export const generateDefaultOtherProps = (
textColor: INPUT_SHAPE.DEFAULT_FILL_TEXT,
strokeStyle: [],
};
case 'tooltip':
return {
stroke: '#bbbbbb',
backgroundColor: '#bbbbbb',
textColor: INPUT_SHAPE.DEFAULT_FILL_TEXT,
strokeStyle: [],
};
case 'button':
case 'textarea':
case 'combobox':
Expand All @@ -372,7 +379,6 @@ export const generateDefaultOtherProps = (
case 'horizontal-menu':
case 'datepickerinput':
case 'timepickerinput':
case 'tooltip':
case 'modal':
return {
stroke: BASIC_SHAPE.DEFAULT_STROKE_COLOR,
Expand Down

0 comments on commit ed74dd2

Please sign in to comment.