• Empleos
  • Sobre nosotros
  • profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
  • empresas
    • Inicio
    • Publicar vacante
    • Nuestro proceso
    • Precios
    • Pruebas Online
    • Nómina
    • Blog
    • Comercial
    • Calculadora de salario

0

149
Vistas
How to convert fabric.js Object to SVG

I know it's possible to convert the whole cavas to SVG. But is it possible to convert separate objects like Path, Line, Rect, etc. to SVG including all the styles that was applied to this objects?

Appreciate if someone can help.

almost 3 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Fabric.js objects have a method called toSVG() for generating an SVG string. You can use it like this:

var obj = canvas.getActiveObject();
console.log(obj.toSVG());
almost 3 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recomiéndame algunas ofertas
Necesito ayuda