Capítulo 604 de 859

Chapter 604: SVGObject

Core Idea

Can be used to wrap SVG elements into a 3D object.

Key Concepts

  • isSVGObject : boolean (readonly): This flag can be used for type testing.
  • node : SVGElement: This SVG element.

Code Examples

import { SVGObject } from 'three/addons/renderers/SVGRenderer.js';
  • What it demonstrates: Typical usage of SVGObject.

Reference Tables

Constructor

Signature
new SVGObject( node : SVGElement )

Properties

PropertyDescription
.isSVGObject : boolean (readonly)This flag can be used for type testing.
.node : SVGElementThis SVG element.

Key Takeaways

  1. SVGObject extends: EventDispatcher → Object3D
  2. Most relevant properties: isSVGObject, node.

Connects To