Explorar o código

fix: add userData to SVGResult.paths

missing from type but clearly adding in SVGLoader.parse -> parseNode function
Josh Ellis %!s(int64=4) %!d(string=hai) anos
pai
achega
259c482677
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      examples/jsm/loaders/SVGLoader.d.ts

+ 7 - 1
examples/jsm/loaders/SVGLoader.d.ts

@@ -6,8 +6,14 @@ import {
 	Vector3
 } from '../../../src/Three';
 
+interface SVGResultPaths extends ShapePath {
+	userData?: {
+		[key: string]: any
+	}
+}
+
 export interface SVGResult {
-	paths: ShapePath[];
+	paths: SVGResultPaths[];
 	xml: XMLDocument;
 }