浏览代码

fix: add userData to SVGResult.paths

missing from type but clearly adding in SVGLoader.parse -> parseNode function
Josh Ellis 4 年之前
父节点
当前提交
259c482677
共有 1 个文件被更改,包括 7 次插入1 次删除
  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;
 }