David Catuhe 6 년 전
부모
커밋
b5942003ad

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 7730 - 7730
dist/preview release/babylon.d.ts


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
dist/preview release/babylon.js


+ 1 - 0
dist/preview release/babylon.max.js

@@ -27093,6 +27093,7 @@ var BABYLON;
                                         cb(clickInfo, _this._currentPickResult);
                                         cb(clickInfo, _this._currentPickResult);
                                     }
                                     }
                                 }
                                 }
+                                needToIgnoreNext = true;
                             }
                             }
                             // just the first click of the double has been raised
                             // just the first click of the double has been raised
                             else {
                             else {

+ 1 - 0
dist/preview release/babylon.no-module.max.js

@@ -27060,6 +27060,7 @@ var BABYLON;
                                         cb(clickInfo, _this._currentPickResult);
                                         cb(clickInfo, _this._currentPickResult);
                                     }
                                     }
                                 }
                                 }
+                                needToIgnoreNext = true;
                             }
                             }
                             // just the first click of the double has been raised
                             // just the first click of the double has been raised
                             else {
                             else {

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
dist/preview release/babylon.worker.js


+ 1 - 0
dist/preview release/es6.js

@@ -27060,6 +27060,7 @@ var BABYLON;
                                         cb(clickInfo, _this._currentPickResult);
                                         cb(clickInfo, _this._currentPickResult);
                                     }
                                     }
                                 }
                                 }
+                                needToIgnoreNext = true;
                             }
                             }
                             // just the first click of the double has been raised
                             // just the first click of the double has been raised
                             else {
                             else {

+ 20 - 0
dist/preview release/viewer/babylon.viewer.d.ts

@@ -897,6 +897,26 @@ declare module BabylonViewer {
     }
     }
 }
 }
 declare module BabylonViewer {
 declare module BabylonViewer {
+    export interface IViewerTemplatePlugin {
+        readonly templateName: string;
+        readonly eventsToAttach?: Array<string>;
+        interactionPredicate(event: EventCallback): boolean;
+        onEvent?(event: EventCallback): void;
+        addHTMLTemplate?(template: Template): void;
+    }
+    export abstract class AbstractViewerNavbarButton implements IViewerTemplatePlugin {
+        readonly templateName: string;
+        readonly eventsToAttach: Array<string>;
+        protected _prepend: boolean;
+        protected _buttonName: string;
+        protected _buttonClass: string;
+        protected _htmlTemplate: string;
+        constructor(buttonName: string, buttonClass?: string, htmlTemplate?: string);
+        interactionPredicate(event: EventCallback): boolean;
+        abstract onEvent(event: EventCallback): void;
+        addHTMLTemplate(template: Template): void;
+        protected _generateHTMLElement(template: Template): Element | DocumentFragment;
+    }
 }
 }
 declare module BabylonViewer {
 declare module BabylonViewer {
     /**
     /**

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
dist/preview release/viewer/babylon.viewer.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
dist/preview release/viewer/babylon.viewer.max.js


+ 21 - 1
dist/preview release/viewer/babylon.viewer.module.d.ts

@@ -961,7 +961,27 @@ declare module 'babylonjs-viewer/loader/plugins/loaderPlugin' {
 }
 }
 
 
 declare module 'babylonjs-viewer/templating/viewerTemplatePlugin' {
 declare module 'babylonjs-viewer/templating/viewerTemplatePlugin' {
-    
+    import { EventCallback, Template } from "babylonjs-viewer/templating/templateManager";
+    export interface IViewerTemplatePlugin {
+        readonly templateName: string;
+        readonly eventsToAttach?: Array<string>;
+        interactionPredicate(event: EventCallback): boolean;
+        onEvent?(event: EventCallback): void;
+        addHTMLTemplate?(template: Template): void;
+    }
+    export abstract class AbstractViewerNavbarButton implements IViewerTemplatePlugin {
+        readonly templateName: string;
+        readonly eventsToAttach: Array<string>;
+        protected _prepend: boolean;
+        protected _buttonName: string;
+        protected _buttonClass: string;
+        protected _htmlTemplate: string;
+        constructor(buttonName: string, buttonClass?: string, htmlTemplate?: string);
+        interactionPredicate(event: EventCallback): boolean;
+        abstract onEvent(event: EventCallback): void;
+        addHTMLTemplate(template: Template): void;
+        protected _generateHTMLElement(template: Template): Element | DocumentFragment;
+    }
 }
 }
 
 
 declare module 'babylonjs-viewer/optimizer/custom' {
 declare module 'babylonjs-viewer/optimizer/custom' {

+ 1 - 0
src/babylon.scene.ts

@@ -1967,6 +1967,7 @@ module BABYLON {
                                         cb(clickInfo, this._currentPickResult);
                                         cb(clickInfo, this._currentPickResult);
                                     }
                                     }
                                 }
                                 }
+                                needToIgnoreNext = true;
                             }
                             }
                             // just the first click of the double has been raised
                             // just the first click of the double has been raised
                             else {
                             else {