Skip to content

Commit 45da561

Browse files
committed
use NgtThreeElements
1 parent d1d6b34 commit 45da561

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-three-gltf",
3-
"version": "1.1.13",
3+
"version": "2.0.0",
44
"description": "GLTF to Angular Three converter",
55
"scripts": {
66
"cleanup": "rimraf node_modules"

src/utils/parser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ function parse(fileName, gltf, options = {}) {
629629
const imports = `
630630
import type * as THREE from 'three';
631631
import { Group${ngtTypesArr.length ? ", " + ngtTypesArr.join(", ") : ""} } from 'three';
632-
import { extend, NgtGroup, NgtObjectEvents${hasArgs ? ", NgtArgs" : ""} } from 'angular-three';
632+
import { extend, NgtThreeElements, NgtObjectEvents${hasArgs ? ", NgtArgs" : ""} } from 'angular-three';
633633
import { Component, ChangeDetectionStrategy, CUSTOM_ELEMENTS_SCHEMA, Signal, input, viewChild, ElementRef, inject, effect${hasAnimations ? ", computed, model" : ""} } from '@angular/core';
634634
import { injectGLTF } from 'angular-three-soba/loaders';
635635
import { GLTF } from 'three-stdlib';
@@ -714,7 +714,7 @@ ${printTypes(objects, animations)}
714714
export class ${componentName} {
715715
protected readonly Math = Math;
716716
717-
options = input({} as Partial<NgtGroup>);
717+
options = input({} as Partial<NgtThreeElements['ngt-group']>);
718718
${hasAnimations ? `animations = model<${gltfAnimationApiTypeName}>();` : ""}
719719
modelRef = viewChild<ElementRef<Group>>('model');
720720

0 commit comments

Comments
 (0)