@itwin/core-extension 3.2.0-dev.9 → 3.3.0-dev.2

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/index.js CHANGED
@@ -7,165 +7,234 @@
7
7
  const globalSymbol = Symbol.for("itwin.core.frontend.globals");
8
8
  const ext = globalThis[globalSymbol].getExtensionApi("import.meta.url");
9
9
 
10
- // re-export tool
11
- export const {
12
- InteractiveTool,
13
- PrimitiveTool,
14
- ViewTool,
15
- Tool,
16
-
17
- ToolAssistance,
18
- BeButtonEvent,
19
- ViewRect,
20
- Pixel,
21
- LocateResponse,
22
- EditManipulator,
23
- AccuDrawHintBuilder,
24
- EmphasizeElements,
25
- FeatureSymbology,
26
- GraphicBranch,
27
- NotifyMessageDetails,
28
-
29
- ExtensionHost,
30
- } = ext.exports;
31
-
32
- // re-export frontend items
33
- export const {
34
- BingElevationProvider,
35
- BingLocationProvider,
36
- InputCollector,
37
- FrustumAnimator,
38
- GlobeAnimator,
39
- MarginPercent,
40
- Marker,
41
- Cluster
42
- } = ext.exports;
43
-
44
- // re-export functions
45
- export const {
46
- getCompressedJpegFromCanvas,
47
- getImageSourceFormatForMimeType,
48
- getImageSourceMimeType,
49
- imageBufferToBase64EncodedPng,
50
- imageBufferToCanvas,
51
- imageBufferToPngDataUrl,
52
- imageElementFromImageSource,
53
- imageElementFromUrl,
54
- queryTerrainElevationOffset,
55
- readElementGraphics,
56
- canvasToImageBuffer,
57
- canvasToResizedCanvasWithBars,
58
- extractImageSourceDimensions
59
- } = ext.exports;
10
+ // export extension stuff
11
+ export const { registerTool } = ext.api;
12
+ // exception for ExtensionHost
13
+ export const { ExtensionHost } = ext.exports;
60
14
 
61
- // re-export enums
15
+ // BEGIN GENERATED CODE
62
16
  export const {
63
- // core-frontend:
64
- ACSDisplayOptions,
65
- ACSType,
66
- ActivityMessageEndReason,
67
- BeButton,
68
- BeModifierKeys,
69
- ClipEventType,
70
- ContextRotationId,
71
- CoordinateLockOverrides,
72
- CoordSource,
73
- CoordSystem,
74
- DepthPointSource,
75
- EventHandled,
76
- FlashMode,
77
- FrontendLoggerCategory,
78
- GraphicType,
79
- HitDetailType,
80
- HitGeomType,
81
- HitParentGeomType,
82
- HitPriority,
83
- HitSource,
84
- InputSource,
85
- KeyinParseError,
86
- LocateAction,
87
- LocateFilterStatus,
88
- ManipulatorToolEvent,
89
- MessageBoxIconType,
90
- MessageBoxType,
91
- MessageBoxValue,
92
- OutputMessageAlert,
93
- OutputMessagePriority,
94
- OutputMessageType,
95
- ParseAndRunResult,
96
- SelectionMethod,
97
- SelectionMode,
98
- SelectionProcessing,
99
- SelectionSetEventType,
100
- SnapHeat,
101
- SnapMode,
102
- SnapStatus,
103
- StandardViewId,
104
- StartOrResume,
105
- TextureTransparency,
106
- TileBoundingBoxes,
107
- TileGraphicType,
108
- TileLoadPriority,
109
- TileLoadStatus,
110
- TileTreeLoadStatus,
111
- TileVisibility,
112
- ToolAssistanceImage,
113
- ToolAssistanceInputMethod,
114
- UniformType,
115
- VaryingType,
116
- ViewStatus,
117
- ViewUndoEvent,
118
- // core-common:
119
- BackgroundFill,
120
- BackgroundMapType,
121
- BatchType,
122
- BisCodeSpec,
123
- BriefcaseIdValue,
124
- ChangedValueState,
125
- ChangeOpCode,
126
- ChangesetType,
127
- ColorByName,
128
- CommonLoggerCategory,
129
- ECSqlSystemProperty,
130
- ECSqlValueType,
131
- ElementGeometryOpcode,
132
- FeatureOverrideType,
133
- FillDisplay,
134
- FillFlags,
135
- FontType,
136
- GeoCoordStatus,
137
- GeometryClass,
138
- GeometryStreamFlags,
139
- GeometrySummaryVerbosity,
140
- GlobeMode,
141
- GridOrientationType,
142
- HSVConstants,
143
- ImageBufferFormat,
144
- ImageSourceFormat,
145
- LinePixels,
146
- MassPropertiesOperation,
147
- MonochromeMode,
148
- Npc,
149
- PlanarClipMaskMode,
150
- PlanarClipMaskPriority,
151
- QueryRowFormat,
152
- Rank,
153
- RenderMode,
154
- SectionType,
155
- SpatialClassifierInsideDisplay,
156
- SpatialClassifierOutsideDisplay,
157
- SyncMode,
158
- TerrainHeightOriginMode,
159
- TextureMapUnits,
160
- ThematicDisplayMode,
161
- ThematicGradientColorScheme,
162
- ThematicGradientMode,
163
- TxnAction,
164
- TypeOfChange,
17
+ // @itwin/core-frontend:
18
+ ContextRotationId,
19
+ ACSType,
20
+ ACSDisplayOptions,
21
+ CoordSystem,
22
+ LocateAction,
23
+ LocateFilterStatus,
24
+ SnapStatus,
25
+ FlashMode,
26
+ FrontendLoggerCategory,
27
+ SnapMode,
28
+ SnapHeat,
29
+ HitSource,
30
+ HitGeomType,
31
+ HitParentGeomType,
32
+ HitPriority,
33
+ HitDetailType,
34
+ OutputMessageType,
35
+ OutputMessagePriority,
36
+ OutputMessageAlert,
37
+ ActivityMessageEndReason,
38
+ MessageBoxType,
39
+ MessageBoxIconType,
40
+ MessageBoxValue,
41
+ GraphicType,
42
+ UniformType,
43
+ VaryingType,
44
+ SelectionSetEventType,
45
+ StandardViewId,
46
+ TileLoadStatus,
47
+ TileVisibility,
48
+ TileLoadPriority,
49
+ TileBoundingBoxes,
50
+ TileTreeLoadStatus,
51
+ TileGraphicType,
52
+ ClipEventType,
53
+ SelectionMethod,
54
+ SelectionMode,
55
+ SelectionProcessing,
56
+ BeButton,
57
+ CoordinateLockOverrides,
58
+ InputSource,
59
+ CoordSource,
60
+ BeModifierKeys,
61
+ EventHandled,
62
+ ParseAndRunResult,
63
+ KeyinParseError,
64
+ StartOrResume,
65
+ ManipulatorToolEvent,
66
+ ToolAssistanceImage,
67
+ ToolAssistanceInputMethod,
68
+ ViewStatus,
69
+ AccuDrawHintBuilder,
70
+ AccuSnap,
71
+ AuxCoordSystemState,
72
+ AuxCoordSystem2dState,
73
+ AuxCoordSystem3dState,
74
+ AuxCoordSystemSpatialState,
75
+ BingLocationProvider,
76
+ CategorySelectorState,
77
+ ChangeFlags,
78
+ ContextRealityModelState,
79
+ DisplayStyleState,
80
+ DisplayStyle2dState,
81
+ DisplayStyle3dState,
82
+ DrawingViewState,
83
+ LocateOptions,
84
+ LocateResponse,
85
+ ElementPicker,
86
+ ElementLocateManager,
87
+ EmphasizeElements,
88
+ EntityState,
89
+ ElementState,
90
+ FlashSettings,
91
+ FrustumAnimator,
92
+ GlobeAnimator,
93
+ HitDetail,
94
+ SnapDetail,
95
+ IntersectDetail,
96
+ HitList,
97
+ canvasToResizedCanvasWithBars,
98
+ imageBufferToCanvas,
99
+ canvasToImageBuffer,
100
+ getImageSourceMimeType,
101
+ getImageSourceFormatForMimeType,
102
+ imageElementFromImageSource,
103
+ imageElementFromUrl,
104
+ extractImageSourceDimensions,
105
+ imageBufferToPngDataUrl,
106
+ imageBufferToBase64EncodedPng,
107
+ getCompressedJpegFromCanvas,
108
+ IModelConnection,
109
+ NotificationHandler,
110
+ MarginPercent,
111
+ Marker,
112
+ Cluster,
113
+ MarkerSet,
114
+ ModelSelectorState,
115
+ ModelState,
116
+ GeometricModelState,
117
+ GeometricModel2dState,
118
+ GeometricModel3dState,
119
+ SheetModelState,
120
+ SpatialModelState,
121
+ PhysicalModelState,
122
+ SpatialLocationModelState,
123
+ DrawingModelState,
124
+ SectionDrawingModelState,
125
+ NotifyMessageDetails,
126
+ ActivityMessageDetails,
127
+ NotificationManager,
128
+ PerModelCategoryVisibility,
129
+ Decorations,
130
+ FeatureSymbology,
131
+ GraphicBranch,
132
+ GraphicBuilder,
133
+ Pixel,
134
+ RenderClipVolume,
135
+ RenderGraphic,
136
+ RenderGraphicOwner,
137
+ RenderSystem,
138
+ Scene,
139
+ HiliteSet,
140
+ SelectionSet,
141
+ SheetViewState,
142
+ SpatialViewState,
143
+ OrthographicViewState,
144
+ Sprite,
145
+ IconSprites,
146
+ SpriteLocation,
147
+ TentativePoint,
148
+ DisclosedTileTreeSet,
149
+ readElementGraphics,
150
+ BingElevationProvider,
151
+ Tile,
152
+ TileAdmin,
153
+ TileDrawArgs,
154
+ TileRequest,
155
+ TileRequestChannelStatistics,
156
+ TileRequestChannel,
157
+ TileRequestChannels,
158
+ TileTree,
159
+ TileTreeReference,
160
+ TileUsageMarker,
161
+ Tiles,
162
+ ViewClipTool,
163
+ ViewClipClearTool,
164
+ ViewClipDecorationProvider,
165
+ EditManipulator,
166
+ EventController,
167
+ PrimitiveTool,
168
+ BeButtonState,
169
+ BeButtonEvent,
170
+ BeTouchEvent,
171
+ BeWheelEvent,
172
+ Tool,
173
+ InteractiveTool,
174
+ InputCollector,
175
+ ToolAdmin,
176
+ ToolAssistance,
177
+ ToolSettings,
178
+ ViewTool,
179
+ ViewManip,
180
+ ViewCreator2d,
181
+ ViewCreator3d,
182
+ queryTerrainElevationOffset,
183
+ ViewingSpace,
184
+ ViewManager,
185
+ ViewPose,
186
+ ViewRect,
187
+ ViewState,
188
+ ViewState3d,
189
+ ViewState2d,
190
+ // @itwin/core-common:
191
+ BackgroundMapType,
192
+ GlobeMode,
193
+ BriefcaseIdValue,
194
+ SyncMode,
195
+ TypeOfChange,
196
+ ChangesetType,
197
+ BisCodeSpec,
198
+ CommonLoggerCategory,
199
+ QueryRowFormat,
200
+ MonochromeMode,
201
+ ECSqlValueType,
202
+ ChangeOpCode,
203
+ ChangedValueState,
204
+ ECSqlSystemProperty,
205
+ SectionType,
206
+ Rank,
207
+ FeatureOverrideType,
208
+ BatchType,
209
+ FontType,
210
+ Npc,
211
+ GeoCoordStatus,
212
+ ElementGeometryOpcode,
213
+ GeometryStreamFlags,
214
+ FillDisplay,
215
+ BackgroundFill,
216
+ GeometryClass,
217
+ GeometrySummaryVerbosity,
218
+ FillFlags,
219
+ HSVConstants,
220
+ ImageBufferFormat,
221
+ ImageSourceFormat,
222
+ LinePixels,
223
+ MassPropertiesOperation,
224
+ TextureMapUnits,
225
+ PlanarClipMaskMode,
226
+ PlanarClipMaskPriority,
227
+ SkyBoxImageType,
228
+ SpatialClassifierInsideDisplay,
229
+ SpatialClassifierOutsideDisplay,
230
+ TerrainHeightOriginMode,
231
+ ThematicGradientMode,
232
+ ThematicGradientColorScheme,
233
+ ThematicDisplayMode,
234
+ TxnAction,
235
+ GridOrientationType,
236
+ RenderMode,
237
+ ColorByName,
238
+ ColorDef,
165
239
  } = ext.exports;
166
-
167
- // re-export commmon
168
- export const { ColorDef } = ext.exports;
169
-
170
- // export extension stuff
171
- export const { registerTool } = ext.api;
240
+ // END GENERATED CODE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/core-extension",
3
- "version": "3.2.0-dev.9",
3
+ "version": "3.3.0-dev.2",
4
4
  "description": "iTwin.js Extension API",
5
5
  "typings": "index.d.ts",
6
6
  "license": "MIT",
@@ -20,12 +20,12 @@
20
20
  "url": "http://www.bentley.com"
21
21
  },
22
22
  "dependencies": {
23
- "@itwin/core-frontend": "3.2.0-dev.9",
24
- "@itwin/core-common": "3.2.0-dev.9"
23
+ "@itwin/core-frontend": "3.3.0-dev.2",
24
+ "@itwin/core-common": "3.3.0-dev.2"
25
25
  },
26
26
  "devDependencies": {
27
- "@itwin/build-tools": "3.2.0-dev.9",
28
- "@itwin/eslint-plugin": "3.2.0-dev.9",
27
+ "@itwin/build-tools": "3.3.0-dev.2",
28
+ "@itwin/eslint-plugin": "3.3.0-dev.2",
29
29
  "eslint": "^7.11.0",
30
30
  "rimraf": "^3.0.2"
31
31
  },
@@ -43,7 +43,8 @@
43
43
  "cover": "",
44
44
  "docs": "",
45
45
  "lint": "",
46
- "test": ""
46
+ "test": "",
47
+ "generate": "node ./codeGen/generate-exports.js '[\"@itwin/core-frontend\",\"core/frontend\"] [\"@itwin/core-common\",\"core/common\"]'"
47
48
  },
48
49
  "readme": "# @itwin/core-extension\r\n\r\nCopyright © Bentley Systems, Incorporated. All rights reserved. See LICENSE.md for license terms and full copyright notice.\r\n\r\n## Description\r\n\r\nThe **@itwin/core-extension** package defines all of the types and apis that can be used by an extension.\r\n\r\n## Documentation\r\n\r\nSee the [iTwin.js](https://www.itwinjs.org) documentation for more information.\r\n"
49
50
  }
package/preview.d.ts ADDED
@@ -0,0 +1,18 @@
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
+ // BEGIN GENERATED CODE
6
+ export {
7
+ } from "@itwin/core-frontend";
8
+
9
+ export type {
10
+ } from "@itwin/core-frontend";
11
+
12
+ export {
13
+ } from "@itwin/core-common";
14
+
15
+ export type {
16
+ } from "@itwin/core-common";
17
+
18
+ // END GENERATED CODE
package/preview.js ADDED
@@ -0,0 +1,9 @@
1
+ const globalSymbol = Symbol.for("itwin.core.frontend.globals");
2
+ const ext = globalThis[globalSymbol].getExtensionApi("import.meta.url");
3
+
4
+ // BEGIN GENERATED CODE
5
+ export const {
6
+ // @itwin/core-frontend:
7
+ // @itwin/core-common:
8
+ } = ext.exports;
9
+ // END GENERATED CODE