Преглед изворни кода

Merge pull request #21059 from joshuaellis/bugfix/SVGLoaderResult-type

TS: add userData to SVGResult.paths
Mr.doob пре 5 година
родитељ
комит
6d92613bac
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;
 }
 

粤ICP备19079148号