@itwin/core-frontend 3.0.0-dev.94 → 3.0.0-extension.0
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.
- package/lib/cjs/GeoServices.d.ts +4 -4
- package/lib/cjs/GeoServices.d.ts.map +1 -1
- package/lib/cjs/GeoServices.js +17 -14
- package/lib/cjs/GeoServices.js.map +1 -1
- package/lib/cjs/IModelApp.d.ts +7 -1
- package/lib/cjs/IModelApp.d.ts.map +1 -1
- package/lib/cjs/IModelApp.js +10 -2
- package/lib/cjs/IModelApp.js.map +1 -1
- package/lib/cjs/SheetViewState.js +1 -1
- package/lib/cjs/SheetViewState.js.map +1 -1
- package/lib/cjs/ViewCreator3d.d.ts +1 -1
- package/lib/cjs/ViewCreator3d.d.ts.map +1 -1
- package/lib/cjs/ViewCreator3d.js +1 -1
- package/lib/cjs/ViewCreator3d.js.map +1 -1
- package/lib/cjs/ViewState.d.ts +0 -2
- package/lib/cjs/ViewState.d.ts.map +1 -1
- package/lib/cjs/ViewState.js +9 -9
- package/lib/cjs/ViewState.js.map +1 -1
- package/lib/cjs/Viewport.d.ts.map +1 -1
- package/lib/cjs/Viewport.js +6 -4
- package/lib/cjs/Viewport.js.map +1 -1
- package/lib/cjs/core-frontend.d.ts +7 -6
- package/lib/cjs/core-frontend.d.ts.map +1 -1
- package/lib/cjs/core-frontend.js +7 -6
- package/lib/cjs/core-frontend.js.map +1 -1
- package/lib/cjs/extension/Extension.d.ts +39 -0
- package/lib/cjs/extension/Extension.d.ts.map +1 -0
- package/lib/cjs/extension/Extension.js +39 -0
- package/lib/cjs/extension/Extension.js.map +1 -0
- package/lib/cjs/extension/ExtensionAdmin.d.ts +70 -0
- package/lib/cjs/extension/ExtensionAdmin.d.ts.map +1 -0
- package/lib/cjs/extension/ExtensionAdmin.js +105 -0
- package/lib/cjs/extension/ExtensionAdmin.js.map +1 -0
- package/lib/cjs/extension/ExtensionHost.d.ts +20 -0
- package/lib/cjs/extension/ExtensionHost.d.ts.map +1 -0
- package/lib/cjs/extension/ExtensionHost.js +19 -0
- package/lib/cjs/extension/ExtensionHost.js.map +1 -0
- package/lib/cjs/extension/ExtensionImpl.d.ts +16 -0
- package/lib/cjs/extension/ExtensionImpl.d.ts.map +1 -0
- package/lib/cjs/extension/ExtensionImpl.js +40 -0
- package/lib/cjs/extension/ExtensionImpl.js.map +1 -0
- package/lib/cjs/extension/ExtensionLoader.d.ts +20 -0
- package/lib/cjs/extension/ExtensionLoader.d.ts.map +1 -0
- package/lib/cjs/extension/ExtensionLoader.js +11 -0
- package/lib/cjs/extension/ExtensionLoader.js.map +1 -0
- package/lib/cjs/extension/ExtensionRuntime.d.ts +2 -0
- package/lib/cjs/extension/ExtensionRuntime.d.ts.map +1 -0
- package/lib/cjs/extension/ExtensionRuntime.js +60 -0
- package/lib/cjs/extension/ExtensionRuntime.js.map +1 -0
- package/lib/cjs/extension/extensions.d.ts +18 -0
- package/lib/cjs/extension/extensions.d.ts.map +1 -0
- package/lib/cjs/extension/extensions.js +35 -0
- package/lib/cjs/extension/extensions.js.map +1 -0
- package/lib/cjs/render/webgl/SceneCompositor.js +1 -1
- package/lib/cjs/render/webgl/SceneCompositor.js.map +1 -1
- package/lib/cjs/render/webgl/Target.d.ts.map +1 -1
- package/lib/cjs/render/webgl/Target.js +11 -1
- package/lib/cjs/render/webgl/Target.js.map +1 -1
- package/lib/cjs/render/webgl/Technique.js +1 -1
- package/lib/cjs/render/webgl/Technique.js.map +1 -1
- package/lib/cjs/tile/TileDrawArgs.js +2 -2
- package/lib/cjs/tile/TileDrawArgs.js.map +1 -1
- package/lib/cjs/tools/ViewTool.d.ts.map +1 -1
- package/lib/cjs/tools/ViewTool.js +8 -9
- package/lib/cjs/tools/ViewTool.js.map +1 -1
- package/lib/esm/GeoServices.d.ts +4 -4
- package/lib/esm/GeoServices.d.ts.map +1 -1
- package/lib/esm/GeoServices.js +17 -14
- package/lib/esm/GeoServices.js.map +1 -1
- package/lib/esm/IModelApp.d.ts +7 -1
- package/lib/esm/IModelApp.d.ts.map +1 -1
- package/lib/esm/IModelApp.js +10 -2
- package/lib/esm/IModelApp.js.map +1 -1
- package/lib/esm/SheetViewState.js +1 -1
- package/lib/esm/SheetViewState.js.map +1 -1
- package/lib/esm/ViewCreator3d.d.ts +1 -1
- package/lib/esm/ViewCreator3d.d.ts.map +1 -1
- package/lib/esm/ViewCreator3d.js +1 -1
- package/lib/esm/ViewCreator3d.js.map +1 -1
- package/lib/esm/ViewState.d.ts +0 -2
- package/lib/esm/ViewState.d.ts.map +1 -1
- package/lib/esm/ViewState.js +9 -9
- package/lib/esm/ViewState.js.map +1 -1
- package/lib/esm/Viewport.d.ts.map +1 -1
- package/lib/esm/Viewport.js +6 -4
- package/lib/esm/Viewport.js.map +1 -1
- package/lib/esm/core-frontend.d.ts +7 -6
- package/lib/esm/core-frontend.d.ts.map +1 -1
- package/lib/esm/core-frontend.js +7 -6
- package/lib/esm/core-frontend.js.map +1 -1
- package/lib/esm/extension/Extension.d.ts +39 -0
- package/lib/esm/extension/Extension.d.ts.map +1 -0
- package/lib/esm/extension/Extension.js +38 -0
- package/lib/esm/extension/Extension.js.map +1 -0
- package/lib/esm/extension/ExtensionAdmin.d.ts +70 -0
- package/lib/esm/extension/ExtensionAdmin.d.ts.map +1 -0
- package/lib/esm/extension/ExtensionAdmin.js +101 -0
- package/lib/esm/extension/ExtensionAdmin.js.map +1 -0
- package/lib/esm/extension/ExtensionHost.d.ts +20 -0
- package/lib/esm/extension/ExtensionHost.d.ts.map +1 -0
- package/lib/esm/extension/ExtensionHost.js +15 -0
- package/lib/esm/extension/ExtensionHost.js.map +1 -0
- package/lib/esm/extension/ExtensionImpl.d.ts +16 -0
- package/lib/esm/extension/ExtensionImpl.d.ts.map +1 -0
- package/lib/esm/extension/ExtensionImpl.js +35 -0
- package/lib/esm/extension/ExtensionImpl.js.map +1 -0
- package/lib/esm/extension/ExtensionLoader.d.ts +20 -0
- package/lib/esm/extension/ExtensionLoader.d.ts.map +1 -0
- package/lib/esm/extension/ExtensionLoader.js +10 -0
- package/lib/esm/extension/ExtensionLoader.js.map +1 -0
- package/lib/esm/extension/ExtensionRuntime.d.ts +2 -0
- package/lib/esm/extension/ExtensionRuntime.d.ts.map +1 -0
- package/lib/esm/extension/ExtensionRuntime.js +58 -0
- package/lib/esm/extension/ExtensionRuntime.js.map +1 -0
- package/lib/esm/extension/extensions.d.ts +18 -0
- package/lib/esm/extension/extensions.d.ts.map +1 -0
- package/lib/esm/extension/extensions.js +23 -0
- package/lib/esm/extension/extensions.js.map +1 -0
- package/lib/esm/render/webgl/SceneCompositor.js +1 -1
- package/lib/esm/render/webgl/SceneCompositor.js.map +1 -1
- package/lib/esm/render/webgl/Target.d.ts.map +1 -1
- package/lib/esm/render/webgl/Target.js +11 -1
- package/lib/esm/render/webgl/Target.js.map +1 -1
- package/lib/esm/render/webgl/Technique.js +1 -1
- package/lib/esm/render/webgl/Technique.js.map +1 -1
- package/lib/esm/tile/TileDrawArgs.js +2 -2
- package/lib/esm/tile/TileDrawArgs.js.map +1 -1
- package/lib/esm/tools/ViewTool.d.ts.map +1 -1
- package/lib/esm/tools/ViewTool.js +8 -9
- package/lib/esm/tools/ViewTool.js.map +1 -1
- package/package.json +24 -24
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ExtensionManifest, LocalExtensionProps } from "./Extension";
|
|
2
|
+
/** THe minimum information required to download an Extension */
|
|
3
|
+
export interface ExtensionLoaderProps {
|
|
4
|
+
name: string;
|
|
5
|
+
version: string;
|
|
6
|
+
}
|
|
7
|
+
export interface BuiltInExtensionLoaderProps {
|
|
8
|
+
manifest: Promise<any>;
|
|
9
|
+
loader: (() => Promise<any>);
|
|
10
|
+
}
|
|
11
|
+
/** Describes what is needed in order to write an Extension Loader.
|
|
12
|
+
* @alpha
|
|
13
|
+
*/
|
|
14
|
+
export interface ExtensionLoader {
|
|
15
|
+
/** Retrieves an Extension manifest for the provided Extension identifier */
|
|
16
|
+
getManifest(arg: ExtensionLoaderProps): Promise<ExtensionManifest>;
|
|
17
|
+
/** Downloads an Extension provided the name of the Extension */
|
|
18
|
+
downloadExtension(arg: ExtensionLoaderProps): Promise<LocalExtensionProps>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=ExtensionLoader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExtensionLoader.d.ts","sourceRoot":"","sources":["../../../src/extension/ExtensionLoader.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAErE,gEAAgE;AAChE,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IACvB,MAAM,EAAE,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,4EAA4E;IAC5E,WAAW,CAAC,GAAG,EAAE,oBAAoB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACnE,gEAAgE;IAChE,iBAAiB,CAAC,GAAG,EAAE,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAC5E"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
6
|
+
// export class BuiltInExtensionLoader {
|
|
7
|
+
// public async getManifest(name: string): Promise<ExtensionManifest> {
|
|
8
|
+
// }
|
|
9
|
+
// }
|
|
10
|
+
//# sourceMappingURL=ExtensionLoader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExtensionLoader.js","sourceRoot":"","sources":["../../../src/extension/ExtensionLoader.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;;AAyB/F,wCAAwC;AACxC,yEAAyE;AAEzE,MAAM;AACN,IAAI","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\nimport { ExtensionManifest, LocalExtensionProps } from \"./Extension\";\r\n\r\n/** THe minimum information required to download an Extension */\r\nexport interface ExtensionLoaderProps {\r\n name: string;\r\n version: string;\r\n}\r\n\r\nexport interface BuiltInExtensionLoaderProps {\r\n manifest: Promise<any>;\r\n loader: (() => Promise<any>);\r\n}\r\n\r\n/** Describes what is needed in order to write an Extension Loader.\r\n * @alpha\r\n */\r\nexport interface ExtensionLoader {\r\n /** Retrieves an Extension manifest for the provided Extension identifier */\r\n getManifest(arg: ExtensionLoaderProps): Promise<ExtensionManifest>;\r\n /** Downloads an Extension provided the name of the Extension */\r\n downloadExtension(arg: ExtensionLoaderProps): Promise<LocalExtensionProps>;\r\n}\r\n\r\n// export class BuiltInExtensionLoader {\r\n// public async getManifest(name: string): Promise<ExtensionManifest> {\r\n\r\n// }\r\n// }\r\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExtensionRuntime.d.ts","sourceRoot":"","sources":["../../../src/extension/ExtensionRuntime.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
6
|
+
import { ContextRotationId } from "../AccuDraw";
|
|
7
|
+
import { ACSDisplayOptions, ACSType } from "../AuxCoordSys";
|
|
8
|
+
import { CoordSystem } from "../CoordSystem";
|
|
9
|
+
import { LocateAction, LocateFilterStatus, LocateResponse, SnapStatus } from "../ElementLocateManager";
|
|
10
|
+
import { FlashMode } from "../FlashSettings";
|
|
11
|
+
import { FrontendLoggerCategory } from "../FrontendLoggerCategory";
|
|
12
|
+
import { HitDetailType, HitGeomType, HitParentGeomType, HitPriority, HitSource, SnapHeat, SnapMode } from "../HitDetail";
|
|
13
|
+
import { ActivityMessageEndReason, MessageBoxIconType, MessageBoxType, MessageBoxValue, OutputMessageAlert, OutputMessagePriority, OutputMessageType } from "../NotificationManager";
|
|
14
|
+
import { SelectionSetEventType } from "../SelectionSet";
|
|
15
|
+
import { StandardViewId } from "../StandardView";
|
|
16
|
+
import { ViewRect } from "../ViewRect";
|
|
17
|
+
import { ViewStatus } from "../ViewStatus";
|
|
18
|
+
import { DepthPointSource, ViewUndoEvent } from "../Viewport";
|
|
19
|
+
import { GraphicType } from "../render/GraphicBuilder";
|
|
20
|
+
import { Pixel } from "../render/Pixel";
|
|
21
|
+
import { TextureTransparency } from "../render/RenderTexture";
|
|
22
|
+
import { UniformType, VaryingType } from "../render/ScreenSpaceEffectBuilder";
|
|
23
|
+
import { TileBoundingBoxes, TileGraphicType, TileLoadPriority, TileLoadStatus, TileTreeLoadStatus, TileVisibility } from "../tile/internal";
|
|
24
|
+
import { ClipEventType } from "../tools/ClipViewTool";
|
|
25
|
+
import { PrimitiveTool } from "../tools/PrimitiveTool";
|
|
26
|
+
import { SelectionMethod, SelectionMode, SelectionProcessing } from "../tools/SelectTool";
|
|
27
|
+
import { BeButton, BeButtonEvent, BeModifierKeys, CoordinateLockOverrides, CoordSource, EventHandled, InputSource, InteractiveTool, KeyinParseError, ParseAndRunResult, Tool } from "../tools/Tool";
|
|
28
|
+
import { ManipulatorToolEvent, StartOrResume } from "../tools/ToolAdmin";
|
|
29
|
+
import { ToolAssistance, ToolAssistanceImage, ToolAssistanceInputMethod } from "../tools/ToolAssistance";
|
|
30
|
+
import { ViewTool } from "../tools/ViewTool";
|
|
31
|
+
import { ColorDef } from "@itwin/core-common";
|
|
32
|
+
import { ExtensionImpl } from "./ExtensionImpl";
|
|
33
|
+
import { ExtensionHost } from "./ExtensionHost";
|
|
34
|
+
const globalSymbol = Symbol.for("itwin.core.frontend.globals");
|
|
35
|
+
if (globalThis[globalSymbol])
|
|
36
|
+
throw new Error("Multiple @itwin/core-frontend imports detected!");
|
|
37
|
+
const getExtensionApi = (id) => {
|
|
38
|
+
return {
|
|
39
|
+
exports: {
|
|
40
|
+
InteractiveTool, PrimitiveTool, ViewTool, Tool,
|
|
41
|
+
ToolAssistance, BeButtonEvent, ViewRect, Pixel, LocateResponse,
|
|
42
|
+
ColorDef,
|
|
43
|
+
ExtensionHost,
|
|
44
|
+
ACSDisplayOptions, ACSType, ActivityMessageEndReason, BeButton, BeModifierKeys, ClipEventType, ContextRotationId, CoordinateLockOverrides,
|
|
45
|
+
CoordSource, CoordSystem, DepthPointSource, EventHandled, FlashMode, FrontendLoggerCategory, GraphicType, HitDetailType, HitGeomType,
|
|
46
|
+
HitParentGeomType, HitPriority, HitSource, InputSource, KeyinParseError, LocateAction, LocateFilterStatus, ManipulatorToolEvent,
|
|
47
|
+
MessageBoxIconType, MessageBoxType, MessageBoxValue, OutputMessageAlert, OutputMessagePriority, OutputMessageType, ParseAndRunResult,
|
|
48
|
+
SelectionMethod, SelectionMode, SelectionProcessing, SelectionSetEventType, SnapHeat, SnapMode, SnapStatus, StandardViewId, StartOrResume,
|
|
49
|
+
TextureTransparency, TileBoundingBoxes, TileGraphicType, TileLoadPriority, TileLoadStatus, TileTreeLoadStatus, TileVisibility,
|
|
50
|
+
ToolAssistanceImage, ToolAssistanceInputMethod, UniformType, VaryingType, ViewStatus, ViewUndoEvent,
|
|
51
|
+
},
|
|
52
|
+
api: new ExtensionImpl(id),
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
globalThis[globalSymbol] = {
|
|
56
|
+
getExtensionApi,
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=ExtensionRuntime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExtensionRuntime.js","sourceRoot":"","sources":["../../../src/extension/ExtensionRuntime.ts"],"names":[],"mappings":"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","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n/* eslint-disable @typescript-eslint/naming-convention */\r\n\r\nimport { ContextRotationId } from \"../AccuDraw\";\r\nimport { ACSDisplayOptions, ACSType } from \"../AuxCoordSys\";\r\nimport { CoordSystem } from \"../CoordSystem\";\r\nimport { LocateAction, LocateFilterStatus, LocateResponse, SnapStatus } from \"../ElementLocateManager\";\r\nimport { FlashMode } from \"../FlashSettings\";\r\nimport { FrontendLoggerCategory } from \"../FrontendLoggerCategory\";\r\nimport { HitDetailType, HitGeomType, HitParentGeomType, HitPriority, HitSource, SnapHeat, SnapMode } from \"../HitDetail\";\r\nimport { ActivityMessageEndReason, MessageBoxIconType, MessageBoxType, MessageBoxValue, OutputMessageAlert, OutputMessagePriority, OutputMessageType } from \"../NotificationManager\";\r\nimport { SelectionSetEventType } from \"../SelectionSet\";\r\nimport { StandardViewId } from \"../StandardView\";\r\nimport { ViewRect } from \"../ViewRect\";\r\nimport { ViewStatus } from \"../ViewStatus\";\r\nimport { DepthPointSource, ViewUndoEvent } from \"../Viewport\";\r\nimport { GraphicType } from \"../render/GraphicBuilder\";\r\nimport { Pixel } from \"../render/Pixel\";\r\nimport { TextureTransparency } from \"../render/RenderTexture\";\r\nimport { UniformType, VaryingType } from \"../render/ScreenSpaceEffectBuilder\";\r\nimport { TileBoundingBoxes, TileGraphicType, TileLoadPriority, TileLoadStatus, TileTreeLoadStatus, TileVisibility } from \"../tile/internal\";\r\nimport { ClipEventType } from \"../tools/ClipViewTool\";\r\nimport { PrimitiveTool } from \"../tools/PrimitiveTool\";\r\nimport { SelectionMethod, SelectionMode, SelectionProcessing } from \"../tools/SelectTool\";\r\nimport { BeButton, BeButtonEvent, BeModifierKeys, CoordinateLockOverrides, CoordSource, EventHandled, InputSource, InteractiveTool, KeyinParseError, ParseAndRunResult, Tool } from \"../tools/Tool\";\r\nimport { ManipulatorToolEvent, StartOrResume } from \"../tools/ToolAdmin\";\r\nimport { ToolAssistance, ToolAssistanceImage, ToolAssistanceInputMethod } from \"../tools/ToolAssistance\";\r\nimport { ViewTool } from \"../tools/ViewTool\";\r\n\r\nimport { ColorDef } from \"@itwin/core-common\";\r\nimport { ExtensionImpl } from \"./ExtensionImpl\";\r\nimport { ExtensionHost } from \"./ExtensionHost\";\r\n\r\nconst globalSymbol = Symbol.for(\"itwin.core.frontend.globals\");\r\nif ((globalThis as any)[globalSymbol])\r\n throw new Error(\"Multiple @itwin/core-frontend imports detected!\");\r\n\r\nconst getExtensionApi = (id: string) => {\r\n return {\r\n exports: {\r\n InteractiveTool, PrimitiveTool, ViewTool, Tool,\r\n\r\n ToolAssistance, BeButtonEvent, ViewRect, Pixel, LocateResponse,\r\n\r\n ColorDef,\r\n\r\n ExtensionHost,\r\n\r\n ACSDisplayOptions, ACSType, ActivityMessageEndReason, BeButton, BeModifierKeys, ClipEventType, ContextRotationId, CoordinateLockOverrides,\r\n CoordSource, CoordSystem, DepthPointSource, EventHandled, FlashMode, FrontendLoggerCategory, GraphicType, HitDetailType, HitGeomType,\r\n HitParentGeomType, HitPriority, HitSource, InputSource, KeyinParseError, LocateAction, LocateFilterStatus, ManipulatorToolEvent,\r\n MessageBoxIconType, MessageBoxType, MessageBoxValue, OutputMessageAlert, OutputMessagePriority, OutputMessageType, ParseAndRunResult,\r\n SelectionMethod, SelectionMode, SelectionProcessing, SelectionSetEventType, SnapHeat, SnapMode, SnapStatus, StandardViewId, StartOrResume,\r\n TextureTransparency, TileBoundingBoxes, TileGraphicType, TileLoadPriority, TileLoadStatus, TileTreeLoadStatus, TileVisibility,\r\n ToolAssistanceImage, ToolAssistanceInputMethod, UniformType, VaryingType, ViewStatus, ViewUndoEvent,\r\n },\r\n api: new ExtensionImpl(id),\r\n };\r\n};\r\n\r\n(globalThis as any)[globalSymbol] = {\r\n getExtensionApi,\r\n};\r\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Extension framework is made up of multiple pieces:
|
|
3
|
+
*
|
|
4
|
+
* - Extension Impl
|
|
5
|
+
* - Extension API
|
|
6
|
+
* - The Extension API defines all of the types and API that can be used by an Extension.
|
|
7
|
+
* - Extension Admin loading
|
|
8
|
+
* - Handles the
|
|
9
|
+
* - Extension Hooks
|
|
10
|
+
* - Defines the
|
|
11
|
+
*/
|
|
12
|
+
export * from "./Extension";
|
|
13
|
+
export * from "./ExtensionAdmin";
|
|
14
|
+
export * from "./ExtensionImpl";
|
|
15
|
+
export * from "./ExtensionLoader";
|
|
16
|
+
export * from "./ExtensionHost";
|
|
17
|
+
import "./ExtensionRuntime";
|
|
18
|
+
//# sourceMappingURL=extensions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../../src/extension/extensions.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;GAUG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,OAAO,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
// Barrel file for all extension related files.
|
|
6
|
+
/**
|
|
7
|
+
* The Extension framework is made up of multiple pieces:
|
|
8
|
+
*
|
|
9
|
+
* - Extension Impl
|
|
10
|
+
* - Extension API
|
|
11
|
+
* - The Extension API defines all of the types and API that can be used by an Extension.
|
|
12
|
+
* - Extension Admin loading
|
|
13
|
+
* - Handles the
|
|
14
|
+
* - Extension Hooks
|
|
15
|
+
* - Defines the
|
|
16
|
+
*/
|
|
17
|
+
export * from "./Extension";
|
|
18
|
+
export * from "./ExtensionAdmin";
|
|
19
|
+
export * from "./ExtensionImpl";
|
|
20
|
+
export * from "./ExtensionLoader";
|
|
21
|
+
export * from "./ExtensionHost";
|
|
22
|
+
import "./ExtensionRuntime";
|
|
23
|
+
//# sourceMappingURL=extensions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extensions.js","sourceRoot":"","sources":["../../../src/extension/extensions.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAE/F,+CAA+C;AAE/C;;;;;;;;;;GAUG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,OAAO,oBAAoB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n\r\n// Barrel file for all extension related files.\r\n\r\n/**\r\n * The Extension framework is made up of multiple pieces:\r\n *\r\n * - Extension Impl\r\n * - Extension API\r\n * - The Extension API defines all of the types and API that can be used by an Extension.\r\n * - Extension Admin loading\r\n * - Handles the\r\n * - Extension Hooks\r\n * - Defines the\r\n */\r\n\r\nexport * from \"./Extension\";\r\nexport * from \"./ExtensionAdmin\";\r\nexport * from \"./ExtensionImpl\";\r\nexport * from \"./ExtensionLoader\";\r\nexport * from \"./ExtensionHost\";\r\nimport \"./ExtensionRuntime\";\r\n"]}
|
|
@@ -178,7 +178,7 @@ class FrameBuffers {
|
|
|
178
178
|
if (!this.initPotentialMSFbos(textures, depth, depthMS))
|
|
179
179
|
return false;
|
|
180
180
|
this.depthAndOrder = FrameBuffer.create([textures.depthAndOrder], depth);
|
|
181
|
-
this.hilite = FrameBuffer.create([textures.hilite]);
|
|
181
|
+
this.hilite = FrameBuffer.create([textures.hilite], depth);
|
|
182
182
|
this.hiliteUsingStencil = FrameBuffer.create([textures.hilite], depth);
|
|
183
183
|
return undefined !== this.depthAndOrder
|
|
184
184
|
&& undefined !== this.hilite
|