stickyflow 0.9.2 → 0.10.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/CHANGELOG.md +16 -0
- package/README.md +1 -1
- package/dist/binding/index.cjs +9 -9
- package/dist/binding/index.d.cts +3 -3
- package/dist/binding/index.d.ts +3 -3
- package/dist/binding/index.js +3 -3
- package/dist/{chunk-EURX7QT3.cjs → chunk-5PJ55GPG.cjs} +883 -830
- package/dist/chunk-5PJ55GPG.cjs.map +1 -0
- package/dist/{chunk-AAP24GBG.js → chunk-EGUPN56K.js} +3 -3
- package/dist/chunk-EGUPN56K.js.map +1 -0
- package/dist/{chunk-Q6FBISNP.js → chunk-HRU6VOEC.js} +545 -331
- package/dist/chunk-HRU6VOEC.js.map +1 -0
- package/dist/{chunk-3EOG34QN.cjs → chunk-KRSX4UZ7.cjs} +308 -252
- package/dist/chunk-KRSX4UZ7.cjs.map +1 -0
- package/dist/{chunk-XNNNIOJU.js → chunk-L7CEX5JV.js} +5 -5
- package/dist/{chunk-XNNNIOJU.js.map → chunk-L7CEX5JV.js.map} +1 -1
- package/dist/{chunk-C25NWWIH.cjs → chunk-LSEMXRB5.cjs} +549 -331
- package/dist/chunk-LSEMXRB5.cjs.map +1 -0
- package/dist/{chunk-MR32IJQO.cjs → chunk-SCD3AHMY.cjs} +15 -15
- package/dist/chunk-SCD3AHMY.cjs.map +1 -0
- package/dist/{chunk-G2N3KJYJ.js → chunk-SDOHUNBW.js} +237 -184
- package/dist/chunk-SDOHUNBW.js.map +1 -0
- package/dist/{chunk-2GKXPZRL.cjs → chunk-TECWZVIM.cjs} +23 -23
- package/dist/chunk-TECWZVIM.cjs.map +1 -0
- package/dist/{chunk-C3LVKPWQ.js → chunk-VPNOVRWP.js} +279 -223
- package/dist/chunk-VPNOVRWP.js.map +1 -0
- package/dist/index.cjs +36 -36
- package/dist/index.d.cts +33 -28
- package/dist/index.d.ts +33 -28
- package/dist/index.js +5 -5
- package/dist/interaction/index.cjs +358 -337
- package/dist/interaction/index.cjs.map +1 -1
- package/dist/interaction/index.js +133 -112
- package/dist/interaction/index.js.map +1 -1
- package/dist/{runtime-DG8X3Fwf.d.cts → runtime-Bkv7QW7H.d.cts} +1 -1
- package/dist/{runtime-kqD1RS17.d.ts → runtime-DJ4K4_HZ.d.ts} +1 -1
- package/dist/{runtimeTypes-CvjlBZds.d.cts → runtimeTypes-BvJBZLkr.d.cts} +1 -1
- package/dist/{runtimeTypes-vRaHOIHi.d.ts → runtimeTypes-C1shzoyr.d.ts} +1 -1
- package/dist/stickyflow-diagram.global.js +41 -41
- package/dist/stickyflow-diagram.global.js.map +1 -1
- package/dist/viewer/index.cjs +9 -9
- package/dist/viewer/index.d.cts +1 -1
- package/dist/viewer/index.d.ts +1 -1
- package/dist/viewer/index.js +4 -4
- package/dist/web-component/index.cjs +6 -6
- package/dist/web-component/index.cjs.map +1 -1
- package/dist/web-component/index.js +4 -4
- package/dist/web-component/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-2GKXPZRL.cjs.map +0 -1
- package/dist/chunk-3EOG34QN.cjs.map +0 -1
- package/dist/chunk-AAP24GBG.js.map +0 -1
- package/dist/chunk-C25NWWIH.cjs.map +0 -1
- package/dist/chunk-C3LVKPWQ.js.map +0 -1
- package/dist/chunk-EURX7QT3.cjs.map +0 -1
- package/dist/chunk-G2N3KJYJ.js.map +0 -1
- package/dist/chunk-MR32IJQO.cjs.map +0 -1
- package/dist/chunk-Q6FBISNP.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkTECWZVIM_cjs = require('./chunk-TECWZVIM.cjs');
|
|
4
|
+
var chunk5PJ55GPG_cjs = require('./chunk-5PJ55GPG.cjs');
|
|
5
|
+
var chunkLSEMXRB5_cjs = require('./chunk-LSEMXRB5.cjs');
|
|
6
6
|
|
|
7
7
|
// src/model/shape/supportedTypes.ts
|
|
8
8
|
var SHAPE_TYPES = [
|
|
@@ -75,8 +75,8 @@ function flattenGroups(groups, buckets) {
|
|
|
75
75
|
|
|
76
76
|
// src/adapters/importJson/assembly.ts
|
|
77
77
|
function sflToImportJson(sfl) {
|
|
78
|
-
const state =
|
|
79
|
-
const collected =
|
|
78
|
+
const state = chunkLSEMXRB5_cjs.sflToCanvasState(sfl);
|
|
79
|
+
const collected = chunk5PJ55GPG_cjs.collectCanvasObjects(state);
|
|
80
80
|
const canvas = emptyBuckets();
|
|
81
81
|
const { groupBuckets, bucketFor } = createBucketResolver(indexGroupMembership(state.groups), canvas);
|
|
82
82
|
for (const shape of collected.shapes) {
|
|
@@ -107,127 +107,127 @@ function sflToImportJson(sfl) {
|
|
|
107
107
|
|
|
108
108
|
Object.defineProperty(exports, "buildBindingGraph", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkTECWZVIM_cjs.buildBindingGraph; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "createBindingRuntime", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkTECWZVIM_cjs.createBindingRuntime; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "createDataSource", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkTECWZVIM_cjs.createDataSource; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "interactiveElements", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkTECWZVIM_cjs.interactiveElements; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "renderBound", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkTECWZVIM_cjs.renderBound; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "decodeColor", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunk5PJ55GPG_cjs.decodeColor; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "decodeShadow", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunk5PJ55GPG_cjs.decodeShadow; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "defineComponent", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunk5PJ55GPG_cjs.defineComponent; }
|
|
139
139
|
});
|
|
140
140
|
Object.defineProperty(exports, "render", {
|
|
141
141
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunk5PJ55GPG_cjs.render; }
|
|
143
143
|
});
|
|
144
144
|
Object.defineProperty(exports, "renderCanvas", {
|
|
145
145
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunk5PJ55GPG_cjs.renderCanvas; }
|
|
147
147
|
});
|
|
148
148
|
Object.defineProperty(exports, "sflToRenderInput", {
|
|
149
149
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunk5PJ55GPG_cjs.sflToRenderInput; }
|
|
151
151
|
});
|
|
152
152
|
Object.defineProperty(exports, "AXIS_COS", {
|
|
153
153
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunkLSEMXRB5_cjs.AXIS_COS; }
|
|
155
155
|
});
|
|
156
156
|
Object.defineProperty(exports, "AXIS_SIN", {
|
|
157
157
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunkLSEMXRB5_cjs.AXIS_SIN; }
|
|
159
159
|
});
|
|
160
160
|
Object.defineProperty(exports, "CHART_TYPES", {
|
|
161
161
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunkLSEMXRB5_cjs.CHART_TYPES; }
|
|
163
163
|
});
|
|
164
164
|
Object.defineProperty(exports, "COMPONENT_CATEGORIES", {
|
|
165
165
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunkLSEMXRB5_cjs.COMPONENT_CATEGORIES; }
|
|
167
167
|
});
|
|
168
168
|
Object.defineProperty(exports, "DOM_CONTRACT_VERSION", {
|
|
169
169
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunkLSEMXRB5_cjs.DOM_CONTRACT_VERSION; }
|
|
171
171
|
});
|
|
172
172
|
Object.defineProperty(exports, "canonicalize", {
|
|
173
173
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunkLSEMXRB5_cjs.canonicalizeSource; }
|
|
175
175
|
});
|
|
176
176
|
Object.defineProperty(exports, "componentTypes", {
|
|
177
177
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunkLSEMXRB5_cjs.componentTypes; }
|
|
179
179
|
});
|
|
180
180
|
Object.defineProperty(exports, "flattenPath", {
|
|
181
181
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
182
|
+
get: function () { return chunkLSEMXRB5_cjs.flattenPath; }
|
|
183
183
|
});
|
|
184
184
|
Object.defineProperty(exports, "getComponentDescriptor", {
|
|
185
185
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunkLSEMXRB5_cjs.getComponentDescriptor; }
|
|
187
187
|
});
|
|
188
188
|
Object.defineProperty(exports, "isChartObject", {
|
|
189
189
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunkLSEMXRB5_cjs.isChartObject; }
|
|
191
191
|
});
|
|
192
192
|
Object.defineProperty(exports, "isDimensionObject", {
|
|
193
193
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunkLSEMXRB5_cjs.isDimensionObject; }
|
|
195
195
|
});
|
|
196
196
|
Object.defineProperty(exports, "isGenericComponent", {
|
|
197
197
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunkLSEMXRB5_cjs.isGenericComponent; }
|
|
199
199
|
});
|
|
200
200
|
Object.defineProperty(exports, "isIsometricObject", {
|
|
201
201
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunkLSEMXRB5_cjs.isIsometricObject; }
|
|
203
203
|
});
|
|
204
204
|
Object.defineProperty(exports, "isPathObject", {
|
|
205
205
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunkLSEMXRB5_cjs.isPathObject; }
|
|
207
207
|
});
|
|
208
208
|
Object.defineProperty(exports, "isSwimlaneObject", {
|
|
209
209
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunkLSEMXRB5_cjs.isSwimlaneObject; }
|
|
211
211
|
});
|
|
212
212
|
Object.defineProperty(exports, "parse", {
|
|
213
213
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunkLSEMXRB5_cjs.parseSource; }
|
|
215
215
|
});
|
|
216
216
|
Object.defineProperty(exports, "pathBounds", {
|
|
217
217
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunkLSEMXRB5_cjs.pathBounds; }
|
|
219
219
|
});
|
|
220
220
|
Object.defineProperty(exports, "pathToSymbol", {
|
|
221
221
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
222
|
+
get: function () { return chunkLSEMXRB5_cjs.pathToSymbol; }
|
|
223
223
|
});
|
|
224
224
|
Object.defineProperty(exports, "sflToCanvasState", {
|
|
225
225
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunkLSEMXRB5_cjs.sflToCanvasState; }
|
|
227
227
|
});
|
|
228
228
|
Object.defineProperty(exports, "symbolToPath", {
|
|
229
229
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
230
|
+
get: function () { return chunkLSEMXRB5_cjs.symbolToPath; }
|
|
231
231
|
});
|
|
232
232
|
exports.SHAPE_TYPES = SHAPE_TYPES;
|
|
233
233
|
exports.sflToImportJson = sflToImportJson;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { C as Component, G as GenericComponent, a as ComponentDescriptor, P as PathPoint, b as Point, R as RollingNumberComponent, c as RollingNumberComponentStyle, d as RulerComponent, T as TickScaleComponent, I as IsometricFace, D as Diagnostic, S as Shader, e as RenderInput, f as ShadowStyle, L as LinkStyle, g as Shape, h as Link, F as Frame, i as Swimlane, j as IsometricObject, k as FreeformPath, l as Chart } from './render-DU4lYbRl.cjs';
|
|
2
2
|
export { B as Bounds, m as CHART_TYPES, n as ChartAxis, o as ChartRamp, p as ChartSeries, q as ChartType, r as ComponentDefinition, s as ComponentGroup, t as ComponentInteraction, u as ComponentPropertyDescriptor, v as ComponentSceneContext, w as ComponentSize, x as ComponentValue, y as ComponentValueDescriptor, z as ComponentValueType, A as Dimension, M as MeasureTextFactory, E as RenderDiagnostic, H as RenderNode, J as RenderOptions, K as RenderResult, N as RenderScene, O as SceneRole, Q as ShaderParameter, U as ShapeType, V as TextMetrics, W as defineComponent, X as render, Y as renderCanvas } from './render-DU4lYbRl.cjs';
|
|
3
|
-
import { S as SflDocument, o as Side } from './runtimeTypes-
|
|
4
|
-
export { B as BindingDiagnostic, a as BindingGraph, b as BindingRuntime, c as BindingRuntimeOptions, d as BindingTarget, e as BindingType, f as BindingValue, g as BoundAssignment, h as BoundHandler, i as BoundProperty, j as DataSource, D as DataSourceContract, E as ElementInfo, k as ElementState, I as InteractiveElements, M as MutableDataSource, l as buildBindingGraph, m as createDataSource, n as interactiveElements } from './runtimeTypes-
|
|
5
|
-
export { R as RenderBoundOptions, c as createBindingRuntime, r as renderBound } from './runtime-
|
|
3
|
+
import { S as SflDocument, o as Side } from './runtimeTypes-BvJBZLkr.cjs';
|
|
4
|
+
export { B as BindingDiagnostic, a as BindingGraph, b as BindingRuntime, c as BindingRuntimeOptions, d as BindingTarget, e as BindingType, f as BindingValue, g as BoundAssignment, h as BoundHandler, i as BoundProperty, j as DataSource, D as DataSourceContract, E as ElementInfo, k as ElementState, I as InteractiveElements, M as MutableDataSource, l as buildBindingGraph, m as createDataSource, n as interactiveElements } from './runtimeTypes-BvJBZLkr.cjs';
|
|
5
|
+
export { R as RenderBoundOptions, c as createBindingRuntime, r as renderBound } from './runtime-Bkv7QW7H.cjs';
|
|
6
6
|
|
|
7
7
|
declare const COMPONENT_CATEGORIES: readonly [{
|
|
8
8
|
readonly id: "action";
|
|
@@ -199,11 +199,6 @@ interface SflChartSeries {
|
|
|
199
199
|
labelOffsetX?: number;
|
|
200
200
|
labelOffsetY?: number;
|
|
201
201
|
}
|
|
202
|
-
type SflChartObject = SflCanvasObject & {
|
|
203
|
-
objectType: 'chart';
|
|
204
|
-
chart: SflChartData;
|
|
205
|
-
};
|
|
206
|
-
declare function isChartObject(canvasObject: SflCanvasObject): canvasObject is SflChartObject;
|
|
207
202
|
|
|
208
203
|
interface SflDimensionData {
|
|
209
204
|
start: {
|
|
@@ -217,11 +212,6 @@ interface SflDimensionData {
|
|
|
217
212
|
offset: number;
|
|
218
213
|
unit?: string;
|
|
219
214
|
}
|
|
220
|
-
type SflDimensionObject = SflCanvasObject & {
|
|
221
|
-
objectType: 'dimension';
|
|
222
|
-
dimension: SflDimensionData;
|
|
223
|
-
};
|
|
224
|
-
declare function isDimensionObject(canvasObject: SflCanvasObject): canvasObject is SflDimensionObject;
|
|
225
215
|
|
|
226
216
|
interface SflIsometricData {
|
|
227
217
|
depth: number;
|
|
@@ -229,11 +219,6 @@ interface SflIsometricData {
|
|
|
229
219
|
footprint?: Array<[number, number]>;
|
|
230
220
|
form: 'box' | 'sphere';
|
|
231
221
|
}
|
|
232
|
-
type SflIsometricObject = SflCanvasObject & {
|
|
233
|
-
objectType: 'isometric';
|
|
234
|
-
isometric: SflIsometricData;
|
|
235
|
-
};
|
|
236
|
-
declare function isIsometricObject(canvasObject: SflCanvasObject): canvasObject is SflIsometricObject;
|
|
237
222
|
|
|
238
223
|
interface SflPathData {
|
|
239
224
|
points: Array<{
|
|
@@ -247,11 +232,6 @@ interface SflPathData {
|
|
|
247
232
|
closed?: boolean;
|
|
248
233
|
value?: number;
|
|
249
234
|
}
|
|
250
|
-
type SflPathObject = SflCanvasObject & {
|
|
251
|
-
objectType: 'path';
|
|
252
|
-
path: SflPathData;
|
|
253
|
-
};
|
|
254
|
-
declare function isPathObject(canvasObject: SflCanvasObject): canvasObject is SflPathObject;
|
|
255
235
|
|
|
256
236
|
interface SflSwimlaneData {
|
|
257
237
|
orientation: 'horizontal' | 'vertical';
|
|
@@ -262,11 +242,6 @@ interface SflSwimlaneData {
|
|
|
262
242
|
color?: string;
|
|
263
243
|
}>;
|
|
264
244
|
}
|
|
265
|
-
type SflSwimlaneObject = SflCanvasObject & {
|
|
266
|
-
objectType: 'swimlane';
|
|
267
|
-
swimlane: SflSwimlaneData;
|
|
268
|
-
};
|
|
269
|
-
declare function isSwimlaneObject(canvasObject: SflCanvasObject): canvasObject is SflSwimlaneObject;
|
|
270
245
|
|
|
271
246
|
type SflCanvasObjectType = 'shape' | 'frame' | 'swimlane' | 'path' | 'chart' | 'component' | 'isometric' | 'dimension';
|
|
272
247
|
interface SflSymbolDefinition {
|
|
@@ -324,6 +299,36 @@ interface SflGroupOut {
|
|
|
324
299
|
parentFrameId?: string;
|
|
325
300
|
}
|
|
326
301
|
|
|
302
|
+
type SflChartObject = SflCanvasObject & {
|
|
303
|
+
objectType: 'chart';
|
|
304
|
+
chart: SflChartData;
|
|
305
|
+
};
|
|
306
|
+
declare function isChartObject(canvasObject: SflCanvasObject): canvasObject is SflChartObject;
|
|
307
|
+
|
|
308
|
+
type SflDimensionObject = SflCanvasObject & {
|
|
309
|
+
objectType: 'dimension';
|
|
310
|
+
dimension: SflDimensionData;
|
|
311
|
+
};
|
|
312
|
+
declare function isDimensionObject(canvasObject: SflCanvasObject): canvasObject is SflDimensionObject;
|
|
313
|
+
|
|
314
|
+
type SflIsometricObject = SflCanvasObject & {
|
|
315
|
+
objectType: 'isometric';
|
|
316
|
+
isometric: SflIsometricData;
|
|
317
|
+
};
|
|
318
|
+
declare function isIsometricObject(canvasObject: SflCanvasObject): canvasObject is SflIsometricObject;
|
|
319
|
+
|
|
320
|
+
type SflPathObject = SflCanvasObject & {
|
|
321
|
+
objectType: 'path';
|
|
322
|
+
path: SflPathData;
|
|
323
|
+
};
|
|
324
|
+
declare function isPathObject(canvasObject: SflCanvasObject): canvasObject is SflPathObject;
|
|
325
|
+
|
|
326
|
+
type SflSwimlaneObject = SflCanvasObject & {
|
|
327
|
+
objectType: 'swimlane';
|
|
328
|
+
swimlane: SflSwimlaneData;
|
|
329
|
+
};
|
|
330
|
+
declare function isSwimlaneObject(canvasObject: SflCanvasObject): canvasObject is SflSwimlaneObject;
|
|
331
|
+
|
|
327
332
|
type SflDiagnostic = Diagnostic;
|
|
328
333
|
interface SflCanvasState {
|
|
329
334
|
canvasObjects: SflCanvasObject[];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { C as Component, G as GenericComponent, a as ComponentDescriptor, P as PathPoint, b as Point, R as RollingNumberComponent, c as RollingNumberComponentStyle, d as RulerComponent, T as TickScaleComponent, I as IsometricFace, D as Diagnostic, S as Shader, e as RenderInput, f as ShadowStyle, L as LinkStyle, g as Shape, h as Link, F as Frame, i as Swimlane, j as IsometricObject, k as FreeformPath, l as Chart } from './render-DU4lYbRl.js';
|
|
2
2
|
export { B as Bounds, m as CHART_TYPES, n as ChartAxis, o as ChartRamp, p as ChartSeries, q as ChartType, r as ComponentDefinition, s as ComponentGroup, t as ComponentInteraction, u as ComponentPropertyDescriptor, v as ComponentSceneContext, w as ComponentSize, x as ComponentValue, y as ComponentValueDescriptor, z as ComponentValueType, A as Dimension, M as MeasureTextFactory, E as RenderDiagnostic, H as RenderNode, J as RenderOptions, K as RenderResult, N as RenderScene, O as SceneRole, Q as ShaderParameter, U as ShapeType, V as TextMetrics, W as defineComponent, X as render, Y as renderCanvas } from './render-DU4lYbRl.js';
|
|
3
|
-
import { S as SflDocument, o as Side } from './runtimeTypes-
|
|
4
|
-
export { B as BindingDiagnostic, a as BindingGraph, b as BindingRuntime, c as BindingRuntimeOptions, d as BindingTarget, e as BindingType, f as BindingValue, g as BoundAssignment, h as BoundHandler, i as BoundProperty, j as DataSource, D as DataSourceContract, E as ElementInfo, k as ElementState, I as InteractiveElements, M as MutableDataSource, l as buildBindingGraph, m as createDataSource, n as interactiveElements } from './runtimeTypes-
|
|
5
|
-
export { R as RenderBoundOptions, c as createBindingRuntime, r as renderBound } from './runtime-
|
|
3
|
+
import { S as SflDocument, o as Side } from './runtimeTypes-C1shzoyr.js';
|
|
4
|
+
export { B as BindingDiagnostic, a as BindingGraph, b as BindingRuntime, c as BindingRuntimeOptions, d as BindingTarget, e as BindingType, f as BindingValue, g as BoundAssignment, h as BoundHandler, i as BoundProperty, j as DataSource, D as DataSourceContract, E as ElementInfo, k as ElementState, I as InteractiveElements, M as MutableDataSource, l as buildBindingGraph, m as createDataSource, n as interactiveElements } from './runtimeTypes-C1shzoyr.js';
|
|
5
|
+
export { R as RenderBoundOptions, c as createBindingRuntime, r as renderBound } from './runtime-DJ4K4_HZ.js';
|
|
6
6
|
|
|
7
7
|
declare const COMPONENT_CATEGORIES: readonly [{
|
|
8
8
|
readonly id: "action";
|
|
@@ -199,11 +199,6 @@ interface SflChartSeries {
|
|
|
199
199
|
labelOffsetX?: number;
|
|
200
200
|
labelOffsetY?: number;
|
|
201
201
|
}
|
|
202
|
-
type SflChartObject = SflCanvasObject & {
|
|
203
|
-
objectType: 'chart';
|
|
204
|
-
chart: SflChartData;
|
|
205
|
-
};
|
|
206
|
-
declare function isChartObject(canvasObject: SflCanvasObject): canvasObject is SflChartObject;
|
|
207
202
|
|
|
208
203
|
interface SflDimensionData {
|
|
209
204
|
start: {
|
|
@@ -217,11 +212,6 @@ interface SflDimensionData {
|
|
|
217
212
|
offset: number;
|
|
218
213
|
unit?: string;
|
|
219
214
|
}
|
|
220
|
-
type SflDimensionObject = SflCanvasObject & {
|
|
221
|
-
objectType: 'dimension';
|
|
222
|
-
dimension: SflDimensionData;
|
|
223
|
-
};
|
|
224
|
-
declare function isDimensionObject(canvasObject: SflCanvasObject): canvasObject is SflDimensionObject;
|
|
225
215
|
|
|
226
216
|
interface SflIsometricData {
|
|
227
217
|
depth: number;
|
|
@@ -229,11 +219,6 @@ interface SflIsometricData {
|
|
|
229
219
|
footprint?: Array<[number, number]>;
|
|
230
220
|
form: 'box' | 'sphere';
|
|
231
221
|
}
|
|
232
|
-
type SflIsometricObject = SflCanvasObject & {
|
|
233
|
-
objectType: 'isometric';
|
|
234
|
-
isometric: SflIsometricData;
|
|
235
|
-
};
|
|
236
|
-
declare function isIsometricObject(canvasObject: SflCanvasObject): canvasObject is SflIsometricObject;
|
|
237
222
|
|
|
238
223
|
interface SflPathData {
|
|
239
224
|
points: Array<{
|
|
@@ -247,11 +232,6 @@ interface SflPathData {
|
|
|
247
232
|
closed?: boolean;
|
|
248
233
|
value?: number;
|
|
249
234
|
}
|
|
250
|
-
type SflPathObject = SflCanvasObject & {
|
|
251
|
-
objectType: 'path';
|
|
252
|
-
path: SflPathData;
|
|
253
|
-
};
|
|
254
|
-
declare function isPathObject(canvasObject: SflCanvasObject): canvasObject is SflPathObject;
|
|
255
235
|
|
|
256
236
|
interface SflSwimlaneData {
|
|
257
237
|
orientation: 'horizontal' | 'vertical';
|
|
@@ -262,11 +242,6 @@ interface SflSwimlaneData {
|
|
|
262
242
|
color?: string;
|
|
263
243
|
}>;
|
|
264
244
|
}
|
|
265
|
-
type SflSwimlaneObject = SflCanvasObject & {
|
|
266
|
-
objectType: 'swimlane';
|
|
267
|
-
swimlane: SflSwimlaneData;
|
|
268
|
-
};
|
|
269
|
-
declare function isSwimlaneObject(canvasObject: SflCanvasObject): canvasObject is SflSwimlaneObject;
|
|
270
245
|
|
|
271
246
|
type SflCanvasObjectType = 'shape' | 'frame' | 'swimlane' | 'path' | 'chart' | 'component' | 'isometric' | 'dimension';
|
|
272
247
|
interface SflSymbolDefinition {
|
|
@@ -324,6 +299,36 @@ interface SflGroupOut {
|
|
|
324
299
|
parentFrameId?: string;
|
|
325
300
|
}
|
|
326
301
|
|
|
302
|
+
type SflChartObject = SflCanvasObject & {
|
|
303
|
+
objectType: 'chart';
|
|
304
|
+
chart: SflChartData;
|
|
305
|
+
};
|
|
306
|
+
declare function isChartObject(canvasObject: SflCanvasObject): canvasObject is SflChartObject;
|
|
307
|
+
|
|
308
|
+
type SflDimensionObject = SflCanvasObject & {
|
|
309
|
+
objectType: 'dimension';
|
|
310
|
+
dimension: SflDimensionData;
|
|
311
|
+
};
|
|
312
|
+
declare function isDimensionObject(canvasObject: SflCanvasObject): canvasObject is SflDimensionObject;
|
|
313
|
+
|
|
314
|
+
type SflIsometricObject = SflCanvasObject & {
|
|
315
|
+
objectType: 'isometric';
|
|
316
|
+
isometric: SflIsometricData;
|
|
317
|
+
};
|
|
318
|
+
declare function isIsometricObject(canvasObject: SflCanvasObject): canvasObject is SflIsometricObject;
|
|
319
|
+
|
|
320
|
+
type SflPathObject = SflCanvasObject & {
|
|
321
|
+
objectType: 'path';
|
|
322
|
+
path: SflPathData;
|
|
323
|
+
};
|
|
324
|
+
declare function isPathObject(canvasObject: SflCanvasObject): canvasObject is SflPathObject;
|
|
325
|
+
|
|
326
|
+
type SflSwimlaneObject = SflCanvasObject & {
|
|
327
|
+
objectType: 'swimlane';
|
|
328
|
+
swimlane: SflSwimlaneData;
|
|
329
|
+
};
|
|
330
|
+
declare function isSwimlaneObject(canvasObject: SflCanvasObject): canvasObject is SflSwimlaneObject;
|
|
331
|
+
|
|
327
332
|
type SflDiagnostic = Diagnostic;
|
|
328
333
|
interface SflCanvasState {
|
|
329
334
|
canvasObjects: SflCanvasObject[];
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { buildBindingGraph, createBindingRuntime, createDataSource, interactiveElements, renderBound } from './chunk-
|
|
2
|
-
import { collectCanvasObjects } from './chunk-
|
|
3
|
-
export { decodeColor, decodeShadow, defineComponent, render, renderCanvas, sflToRenderInput } from './chunk-
|
|
4
|
-
import { sflToCanvasState } from './chunk-
|
|
5
|
-
export { AXIS_COS, AXIS_SIN, CHART_TYPES, COMPONENT_CATEGORIES, DOM_CONTRACT_VERSION, canonicalizeSource as canonicalize, componentTypes, flattenPath, getComponentDescriptor, isChartObject, isDimensionObject, isGenericComponent, isIsometricObject, isPathObject, isSwimlaneObject, parseSource as parse, pathBounds, pathToSymbol, sflToCanvasState, symbolToPath } from './chunk-
|
|
1
|
+
export { buildBindingGraph, createBindingRuntime, createDataSource, interactiveElements, renderBound } from './chunk-L7CEX5JV.js';
|
|
2
|
+
import { collectCanvasObjects } from './chunk-SDOHUNBW.js';
|
|
3
|
+
export { decodeColor, decodeShadow, defineComponent, render, renderCanvas, sflToRenderInput } from './chunk-SDOHUNBW.js';
|
|
4
|
+
import { sflToCanvasState } from './chunk-HRU6VOEC.js';
|
|
5
|
+
export { AXIS_COS, AXIS_SIN, CHART_TYPES, COMPONENT_CATEGORIES, DOM_CONTRACT_VERSION, canonicalizeSource as canonicalize, componentTypes, flattenPath, getComponentDescriptor, isChartObject, isDimensionObject, isGenericComponent, isIsometricObject, isPathObject, isSwimlaneObject, parseSource as parse, pathBounds, pathToSymbol, sflToCanvasState, symbolToPath } from './chunk-HRU6VOEC.js';
|
|
6
6
|
|
|
7
7
|
// src/model/shape/supportedTypes.ts
|
|
8
8
|
var SHAPE_TYPES = [
|