From ed74dd2164b62e418458e859fa55f3b981dd200b Mon Sep 17 00:00:00 2001 From: Antonio Contreras LEMONCODE Date: Thu, 29 Aug 2024 16:25:27 +0200 Subject: [PATCH] fix some values --- .../components/front-components/tooltip-shape.tsx | 11 +++++------ src/pods/canvas/canvas.model.ts | 8 +++++++- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/common/components/front-components/tooltip-shape.tsx b/src/common/components/front-components/tooltip-shape.tsx index 065f791f..a9ad2674 100644 --- a/src/common/components/front-components/tooltip-shape.tsx +++ b/src/common/components/front-components/tooltip-shape.tsx @@ -24,8 +24,8 @@ export const TooltipShape = forwardRef( ) => { 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); @@ -90,13 +90,13 @@ export const TooltipShape = forwardRef( fill={textColor} wrap="none" ellipsis={true} + align="center" /> {/* Triángulo para la punta */} ( tooltipHeight + pointerHeight, ]} closed - shadowBlur={5} stroke={stroke} dash={strokeStyle} fill={fill} diff --git a/src/pods/canvas/canvas.model.ts b/src/pods/canvas/canvas.model.ts index 3287a768..bb74b968 100644 --- a/src/pods/canvas/canvas.model.ts +++ b/src/pods/canvas/canvas.model.ts @@ -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': @@ -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,