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

145
Views
El texto de Konva se desborda fuera de la etiqueta

Hemos integrado Konva en nuestro proyecto y nos enfrentamos a un problema con Label and Text. El texto se desborda fuera de la etiqueta. Comportamiento esperado ingrese la descripción de la imagen aquí

Comportamiento actual: ingrese la descripción de la imagen aquí

Encuentre el fragmento de código:

 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);

Por favor ayudame con este problema.

Gracias 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!