Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About NgtgizmoHelper #56

Closed
yywf77 opened this issue Sep 20, 2024 · 2 comments
Closed

About NgtgizmoHelper #56

yywf77 opened this issue Sep 20, 2024 · 2 comments

Comments

@yywf77
Copy link

yywf77 commented Sep 20, 2024

Hi nartc! As shown below, this will prompt an error when used, but it can still run.

const defaultViewcubeOptions:NgtsGizmoViewcubeOptions = {
font: "3.2rem Inter var, Arial, sans-serif",
opacity: 1,
color: '#00c8d6',
hoverColor: '#00b0bd',
textColor: 'black',
strokeColor: '#00b0bd',
faces: ['右', '左', '上', '下', '前', '后'],
};

viewcubeOptions = input(defaultViewcubeOptions as Partial);

Error message:

导出类的公共属性“viewcubeOptions”具有或正在使用外部模块“"/Users/adminstrator/workspace/new/smart-mine/sm-admin/node_modules/angular-three-soba/gizmos/lib/gizmo-helper/gizmo-viewcube"”中的名称“CommonOptions”,但不能为其命名
(property) GizmoHelper.viewcubeOptions: InputSignal<Partial<Partial>>

@nartc
Copy link
Member

nartc commented Sep 22, 2024

Hi @yywf77

I'm not entirely sure of the fix but 2.3.2 has been released to also export the internal CommonOptions type. Can you try it out to see if the error's gone?

@yywf77
Copy link
Author

yywf77 commented Sep 29, 2024

Hi nartc

The issue above has been resolved,thank you!

@yywf77 yywf77 closed this as completed Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants