@qy_better_lib/hooks 0.2.8 → 0.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -152,7 +152,7 @@ function use_chart(options$1 = {}) {
152
152
  deep_assign(merged_options, dark_theme);
153
153
  }
154
154
  const renderer = render_options?.default_renderer || default_renderer;
155
- const chart = await init_chart(dom_id, merged_options, renderer, theme === "dark" ? "dark" : void 0);
155
+ const chart = await init_chart(chart_dom, merged_options, renderer, theme === "dark" ? "dark" : void 0);
156
156
  if (chart) {
157
157
  chart_map.set(dom_id, chart);
158
158
  if (render_options?.auto_responsive ?? auto_responsive) {
@@ -0,0 +1,8 @@
1
+ import { UseThree } from './interface';
2
+ import { ThreeOption } from './type';
3
+ /**
4
+ * Three.js 钩子函数
5
+ * @param options Three.js 配置选项
6
+ * @returns UseThree 接口实例
7
+ */
8
+ export declare function use_three(options: ThreeOption): UseThree;