Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

134
Views
Konva text getting overflow outside the lable

We have integrated Konva in our project and we are facing issue with Label and Text. Text getting overflow outside the Label. Expected behaviour enter image description here

Current Behavior: enter image description here

Please find the code snippet :

 self.label = new Konva.Label({
        id: ASSET_LABEL + assetData.properties._id,
        x: assetData.properties.labelCoordinates.x,
        y: assetData.properties.labelCoordinates.y,
        draggable: true
      });
      
       self.tag = new Konva.Tag({
        fill: config.color || Color.DARK_YELLOW,
        stroke: Color.BLACK,
        strokeWidth: LABEL_STROKE_WIDTH,
        cornerRadius: CORNER_RADIUS,
        shadowBlur: SHADOW_BLUR,
        shadowColor: Color.BLUE,
        shadowOpacity: SHADOW_OPACITY
      });
      
      self.text = new Konva.Text({
        padding: 5,
        fill: Color.BLACK,
        align: DEFAULT_TEXT_ALIGNMENT,
        fontFamily: config.fontFamily || DEFAULT_FONT_FAMILY,
        fontSize: config.fontSize || DEFAULT_FONT_SIZE,
        text: displayText
      });
      
       self.label.add(self.tag).add(self.text);
      
      

Please help me with this issue.

Thanks Sanjeev

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!