Skip to content

Commit 13c5eae

Browse files
committed
fix: parser
1 parent 9f276c5 commit 13c5eae

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
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.0.8",
3+
"version": "1.0.9",
44
"description": "GLTF to Angular Three converter",
55
"scripts": {
66
"cleanup": "rimraf node_modules"

src/utils/parser.js

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ function parse(fileName, gltf, options = {}) {
577577
const imports = `
578578
import type * as THREE from 'three';
579579
import { Group${ngtTypesArr.length ? ", " + ngtTypesArr.join(", ") : ""} } from 'three';
580-
import { extend, NgtGroup, NgtObjectEvents${hasArgs ? ", NgtArgs" : ""} } from 'angular-three';
580+
import { extend, NgtGroup, NgtObjectEvents, NgtObjectEventsInputs, NgtObjectEventsOutputs${hasArgs ? ", NgtArgs" : ""} } from 'angular-three';
581581
import { Component, ChangeDetectionStrategy, CUSTOM_ELEMENTS_SCHEMA, Signal, input, viewChild, ElementRef, inject, effect${hasAnimations ? ", computed, model" : ""} } from '@angular/core';
582582
import { injectGLTF } from 'angular-three-soba/loaders';
583583
import { GLTF } from 'three-stdlib';
@@ -634,22 +634,8 @@ ${printTypes(objects, animations)}
634634
hostDirectives: [
635635
{
636636
directive: NgtObjectEvents,
637-
inputs: ['ngtObjectEvents'],
638-
outputs: [
639-
'click',
640-
'dblclick',
641-
'contextmenu',
642-
'pointerup',
643-
'pointerdown',
644-
'pointerover',
645-
'pointerout',
646-
'pointerenter',
647-
'pointerleave',
648-
'pointermove',
649-
'pointermissed',
650-
'pointercancel',
651-
'wheel',
652-
],
637+
inputs: NgtObjectEventsInputs,
638+
outputs: NgtObjectEventsOutputs,
653639
},
654640
],
655641
schemas: [CUSTOM_ELEMENTS_SCHEMA],

0 commit comments

Comments
 (0)