react-native-ariel 0.1.0-dev.1
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/Ariel.podspec +44 -0
- package/LICENSE +20 -0
- package/README.md +349 -0
- package/android/CMakeLists.txt +79 -0
- package/android/build.gradle +144 -0
- package/android/cpp-adapter.cpp +43 -0
- package/android/generated/android/app/build/generated/source/codegen/java/com/facebook/fbreact/specs/NativeArielSpec.java +41 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/ArielSpec-generated.cpp +38 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/ArielSpec.h +31 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/CMakeLists.txt +28 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/ArielSpec/ArielSpecJSI.h +45 -0
- package/android/src/main/AndroidManifest.xml +5 -0
- package/android/src/main/java/com/ariel/ArielModule.kt +43 -0
- package/android/src/main/java/com/ariel/ArielPackage.kt +34 -0
- package/android/src/main/jniLibs/arm64-v8a/libmermaid_wrapper.a +0 -0
- package/android/src/main/jniLibs/armeabi-v7a/libmermaid_wrapper.a +0 -0
- package/android/src/main/jniLibs/x86/libmermaid_wrapper.a +0 -0
- package/android/src/main/jniLibs/x86_64/libmermaid_wrapper.a +0 -0
- package/cpp/mermaid_wrapper.cpp +2368 -0
- package/cpp/mermaid_wrapper.hpp +77 -0
- package/cpp/react-native-ariel.cpp +16 -0
- package/cpp/react-native-ariel.h +15 -0
- package/ios/Ariel.h +16 -0
- package/ios/Ariel.mm +66 -0
- package/ios/generated/build/generated/ios/ReactCodegen/ArielSpec/ArielSpec-generated.mm +46 -0
- package/ios/generated/build/generated/ios/ReactCodegen/ArielSpec/ArielSpec.h +63 -0
- package/ios/generated/build/generated/ios/ReactCodegen/ArielSpecJSI.h +45 -0
- package/lib/module/NativeAriel.js +7 -0
- package/lib/module/NativeAriel.js.map +1 -0
- package/lib/module/generated/rn/mermaid_wrapper-ffi.js +47 -0
- package/lib/module/generated/rn/mermaid_wrapper-ffi.js.map +1 -0
- package/lib/module/generated/rn/mermaid_wrapper.js +487 -0
- package/lib/module/generated/rn/mermaid_wrapper.js.map +1 -0
- package/lib/module/generated/web/mermaid_wrapper.js +532 -0
- package/lib/module/generated/web/mermaid_wrapper.js.map +1 -0
- package/lib/module/index.js +43 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/index.web.js +28 -0
- package/lib/module/index.web.js.map +2 -0
- package/lib/module/package.json +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/NativeAriel.d.ts +8 -0
- package/lib/typescript/src/NativeAriel.d.ts.map +1 -0
- package/lib/typescript/src/generated/rn/mermaid_wrapper-ffi.d.ts +102 -0
- package/lib/typescript/src/generated/rn/mermaid_wrapper-ffi.d.ts.map +1 -0
- package/lib/typescript/src/generated/rn/mermaid_wrapper.d.ts +291 -0
- package/lib/typescript/src/generated/rn/mermaid_wrapper.d.ts.map +1 -0
- package/lib/typescript/src/generated/web/mermaid_wrapper.d.ts +291 -0
- package/lib/typescript/src/generated/web/mermaid_wrapper.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +8 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/index.web.d.ts +8 -0
- package/lib/typescript/src/index.web.d.ts.map +1 -0
- package/package.json +146 -0
- package/react-native.config.js +15 -0
- package/src/NativeAriel.ts +10 -0
- package/src/generated/rn/mermaid_wrapper-ffi.ts +161 -0
- package/src/generated/rn/mermaid_wrapper.ts +765 -0
- package/src/generated/web/mermaid_wrapper.ts +771 -0
- package/src/index.tsx +41 -0
- package/src/index.web.ts +26 -0
- package/src/index.web.tsx +17 -0
|
@@ -0,0 +1,771 @@
|
|
|
1
|
+
// This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
|
|
2
|
+
// Trust me, you don't want to mess with it!
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// @ts-nocheck
|
|
7
|
+
import * as wasmBundle from "./wasm-bindgen/react_native_ariel.js";
|
|
8
|
+
import {
|
|
9
|
+
type FfiConverter,
|
|
10
|
+
type UniffiByteArray,
|
|
11
|
+
type UniffiGcObject,
|
|
12
|
+
type UniffiHandle,
|
|
13
|
+
type UniffiObjectFactory,
|
|
14
|
+
AbstractFfiConverterByteArray,
|
|
15
|
+
FfiConverterBool,
|
|
16
|
+
FfiConverterFloat32,
|
|
17
|
+
FfiConverterFloat64,
|
|
18
|
+
FfiConverterInt32,
|
|
19
|
+
FfiConverterObject,
|
|
20
|
+
FfiConverterOptional,
|
|
21
|
+
FfiConverterUInt64,
|
|
22
|
+
RustBuffer,
|
|
23
|
+
UniffiAbstractObject,
|
|
24
|
+
UniffiError,
|
|
25
|
+
UniffiInternalError,
|
|
26
|
+
UniffiRustCaller,
|
|
27
|
+
destructorGuardSymbol,
|
|
28
|
+
pointerLiteralSymbol,
|
|
29
|
+
uniffiCreateFfiConverterString,
|
|
30
|
+
uniffiCreateRecord,
|
|
31
|
+
uniffiTypeNameSymbol,
|
|
32
|
+
variantOrdinalSymbol } from "uniffi-bindgen-react-native";
|
|
33
|
+
|
|
34
|
+
// Get converters from the other files, if any.
|
|
35
|
+
const nativeModule = () => wasmBundle;
|
|
36
|
+
const uniffiCaller = new UniffiRustCaller(() => new wasmBundle.RustCallStatus());
|
|
37
|
+
|
|
38
|
+
const uniffiIsDebug =
|
|
39
|
+
// @ts-ignore -- The process global might not be defined
|
|
40
|
+
typeof process !== "object" ||
|
|
41
|
+
// @ts-ignore -- The process global might not be defined
|
|
42
|
+
process?.env?.NODE_ENV !== "production" ||
|
|
43
|
+
false;
|
|
44
|
+
// Public interface members begin here.
|
|
45
|
+
|
|
46
|
+
export function computeDiagramLayout(parsed: ArielParsedDiagramLike, theme: ArielThemeLike, config: ArielLayoutConfig): ArielLayoutLike {
|
|
47
|
+
return FfiConverterTypeArielLayout.lift(uniffiCaller.rustCall(
|
|
48
|
+
/*caller:*/ (callStatus) => {
|
|
49
|
+
return nativeModule().ubrn_uniffi_mermaid_wrapper_fn_func_compute_diagram_layout(
|
|
50
|
+
FfiConverterTypeArielParsedDiagram.lower(parsed),
|
|
51
|
+
FfiConverterTypeArielTheme.lower(theme),
|
|
52
|
+
FfiConverterTypeArielLayoutConfig.lower(config),
|
|
53
|
+
callStatus);
|
|
54
|
+
},
|
|
55
|
+
/*liftString:*/ FfiConverterString.lift,
|
|
56
|
+
));
|
|
57
|
+
}
|
|
58
|
+
export function parseDiagram(input: string): ArielParsedDiagramLike /*throws*/ {
|
|
59
|
+
return FfiConverterTypeArielParsedDiagram.lift(
|
|
60
|
+
uniffiCaller.rustCallWithError(
|
|
61
|
+
/*liftError:*/ FfiConverterTypeMermaidError.lift.bind(FfiConverterTypeMermaidError),
|
|
62
|
+
/*caller:*/ (callStatus) => {
|
|
63
|
+
return nativeModule().ubrn_uniffi_mermaid_wrapper_fn_func_parse_diagram(
|
|
64
|
+
FfiConverterString.lower(input),
|
|
65
|
+
callStatus);
|
|
66
|
+
},
|
|
67
|
+
/*liftString:*/ FfiConverterString.lift,
|
|
68
|
+
));
|
|
69
|
+
}
|
|
70
|
+
export function renderMermaid(input: string): string /*throws*/ {
|
|
71
|
+
return FfiConverterString.lift(
|
|
72
|
+
uniffiCaller.rustCallWithError(
|
|
73
|
+
/*liftError:*/ FfiConverterTypeMermaidError.lift.bind(FfiConverterTypeMermaidError),
|
|
74
|
+
/*caller:*/ (callStatus) => {
|
|
75
|
+
return nativeModule().ubrn_uniffi_mermaid_wrapper_fn_func_render_mermaid(
|
|
76
|
+
FfiConverterString.lower(input),
|
|
77
|
+
callStatus);
|
|
78
|
+
},
|
|
79
|
+
/*liftString:*/ FfiConverterString.lift,
|
|
80
|
+
));
|
|
81
|
+
}
|
|
82
|
+
export function renderMermaidWithOptions(input: string, theme: ArielThemeLike, config: ArielLayoutConfig): string /*throws*/ {
|
|
83
|
+
return FfiConverterString.lift(
|
|
84
|
+
uniffiCaller.rustCallWithError(
|
|
85
|
+
/*liftError:*/ FfiConverterTypeMermaidError.lift.bind(FfiConverterTypeMermaidError),
|
|
86
|
+
/*caller:*/ (callStatus) => {
|
|
87
|
+
return nativeModule().ubrn_uniffi_mermaid_wrapper_fn_func_render_mermaid_with_options(
|
|
88
|
+
FfiConverterString.lower(input),
|
|
89
|
+
FfiConverterTypeArielTheme.lower(theme),
|
|
90
|
+
FfiConverterTypeArielLayoutConfig.lower(config),
|
|
91
|
+
callStatus);
|
|
92
|
+
},
|
|
93
|
+
/*liftString:*/ FfiConverterString.lift,
|
|
94
|
+
));
|
|
95
|
+
}
|
|
96
|
+
export function renderMermaidWithTiming(input: string, theme: ArielThemeLike, config: ArielLayoutConfig): ArielRenderResult /*throws*/ {
|
|
97
|
+
return FfiConverterTypeArielRenderResult.lift(
|
|
98
|
+
uniffiCaller.rustCallWithError(
|
|
99
|
+
/*liftError:*/ FfiConverterTypeMermaidError.lift.bind(FfiConverterTypeMermaidError),
|
|
100
|
+
/*caller:*/ (callStatus) => {
|
|
101
|
+
return nativeModule().ubrn_uniffi_mermaid_wrapper_fn_func_render_mermaid_with_timing(
|
|
102
|
+
FfiConverterString.lower(input),
|
|
103
|
+
FfiConverterTypeArielTheme.lower(theme),
|
|
104
|
+
FfiConverterTypeArielLayoutConfig.lower(config),
|
|
105
|
+
callStatus);
|
|
106
|
+
},
|
|
107
|
+
/*liftString:*/ FfiConverterString.lift,
|
|
108
|
+
));
|
|
109
|
+
}
|
|
110
|
+
export function renderSvgFromLayout(layout: ArielLayoutLike, theme: ArielThemeLike, config: ArielLayoutConfig): string {
|
|
111
|
+
return FfiConverterString.lift(uniffiCaller.rustCall(
|
|
112
|
+
/*caller:*/ (callStatus) => {
|
|
113
|
+
return nativeModule().ubrn_uniffi_mermaid_wrapper_fn_func_render_svg_from_layout(
|
|
114
|
+
FfiConverterTypeArielLayout.lower(layout),
|
|
115
|
+
FfiConverterTypeArielTheme.lower(theme),
|
|
116
|
+
FfiConverterTypeArielLayoutConfig.lower(config),
|
|
117
|
+
callStatus);
|
|
118
|
+
},
|
|
119
|
+
/*liftString:*/ FfiConverterString.lift,
|
|
120
|
+
));
|
|
121
|
+
}
|
|
122
|
+
export function setTimingLogs(enabled: boolean): void {uniffiCaller.rustCall(
|
|
123
|
+
/*caller:*/ (callStatus) => { nativeModule().ubrn_uniffi_mermaid_wrapper_fn_func_set_timing_logs(
|
|
124
|
+
FfiConverterBool.lower(enabled),
|
|
125
|
+
callStatus);
|
|
126
|
+
},
|
|
127
|
+
/*liftString:*/ FfiConverterString.lift,
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
export type ArielLayoutConfig = {
|
|
141
|
+
nodeSpacing?: /*f32*/number,
|
|
142
|
+
rankSpacing?: /*f32*/number
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Generated factory for {@link ArielLayoutConfig} record objects.
|
|
147
|
+
*/
|
|
148
|
+
export const ArielLayoutConfig = (() => {
|
|
149
|
+
const defaults = () => ({
|
|
150
|
+
});
|
|
151
|
+
const create = (() => {
|
|
152
|
+
return uniffiCreateRecord<ArielLayoutConfig, ReturnType<typeof defaults>>(defaults);
|
|
153
|
+
})();
|
|
154
|
+
return Object.freeze({
|
|
155
|
+
create,
|
|
156
|
+
new: create,
|
|
157
|
+
defaults: () => Object.freeze(defaults()) as Partial<ArielLayoutConfig>,
|
|
158
|
+
|
|
159
|
+
});
|
|
160
|
+
})();
|
|
161
|
+
|
|
162
|
+
const FfiConverterTypeArielLayoutConfig = (() => {
|
|
163
|
+
type TypeName = ArielLayoutConfig;
|
|
164
|
+
class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {
|
|
165
|
+
read(from: RustBuffer): TypeName {
|
|
166
|
+
return {
|
|
167
|
+
nodeSpacing: FfiConverterOptionalFloat32.read(from),
|
|
168
|
+
rankSpacing: FfiConverterOptionalFloat32.read(from)
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
write(value: TypeName, into: RustBuffer): void {
|
|
172
|
+
FfiConverterOptionalFloat32.write(value.nodeSpacing, into);
|
|
173
|
+
FfiConverterOptionalFloat32.write(value.rankSpacing, into);
|
|
174
|
+
}
|
|
175
|
+
allocationSize(value: TypeName): number {
|
|
176
|
+
return FfiConverterOptionalFloat32.allocationSize(value.nodeSpacing) +
|
|
177
|
+
FfiConverterOptionalFloat32.allocationSize(value.rankSpacing);
|
|
178
|
+
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
return new FFIConverter();
|
|
182
|
+
})();
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
export type ArielRenderResult = {
|
|
186
|
+
svg: string,
|
|
187
|
+
parseUs: /*u64*/bigint,
|
|
188
|
+
layoutUs: /*u64*/bigint,
|
|
189
|
+
renderUs: /*u64*/bigint,
|
|
190
|
+
totalMs: /*f64*/number
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Generated factory for {@link ArielRenderResult} record objects.
|
|
195
|
+
*/
|
|
196
|
+
export const ArielRenderResult = (() => {
|
|
197
|
+
const defaults = () => ({
|
|
198
|
+
});
|
|
199
|
+
const create = (() => {
|
|
200
|
+
return uniffiCreateRecord<ArielRenderResult, ReturnType<typeof defaults>>(defaults);
|
|
201
|
+
})();
|
|
202
|
+
return Object.freeze({
|
|
203
|
+
create,
|
|
204
|
+
new: create,
|
|
205
|
+
defaults: () => Object.freeze(defaults()) as Partial<ArielRenderResult>,
|
|
206
|
+
|
|
207
|
+
});
|
|
208
|
+
})();
|
|
209
|
+
|
|
210
|
+
const FfiConverterTypeArielRenderResult = (() => {
|
|
211
|
+
type TypeName = ArielRenderResult;
|
|
212
|
+
class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {
|
|
213
|
+
read(from: RustBuffer): TypeName {
|
|
214
|
+
return {
|
|
215
|
+
svg: FfiConverterString.read(from),
|
|
216
|
+
parseUs: FfiConverterUInt64.read(from),
|
|
217
|
+
layoutUs: FfiConverterUInt64.read(from),
|
|
218
|
+
renderUs: FfiConverterUInt64.read(from),
|
|
219
|
+
totalMs: FfiConverterFloat64.read(from)
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
write(value: TypeName, into: RustBuffer): void {
|
|
223
|
+
FfiConverterString.write(value.svg, into);
|
|
224
|
+
FfiConverterUInt64.write(value.parseUs, into);
|
|
225
|
+
FfiConverterUInt64.write(value.layoutUs, into);
|
|
226
|
+
FfiConverterUInt64.write(value.renderUs, into);
|
|
227
|
+
FfiConverterFloat64.write(value.totalMs, into);
|
|
228
|
+
}
|
|
229
|
+
allocationSize(value: TypeName): number {
|
|
230
|
+
return FfiConverterString.allocationSize(value.svg) +
|
|
231
|
+
FfiConverterUInt64.allocationSize(value.parseUs) +
|
|
232
|
+
FfiConverterUInt64.allocationSize(value.layoutUs) +
|
|
233
|
+
FfiConverterUInt64.allocationSize(value.renderUs) +
|
|
234
|
+
FfiConverterFloat64.allocationSize(value.totalMs);
|
|
235
|
+
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
return new FFIConverter();
|
|
239
|
+
})();
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
const stringConverter = (() => {
|
|
243
|
+
const encoder = new TextEncoder();
|
|
244
|
+
const decoder = new TextDecoder();
|
|
245
|
+
return {
|
|
246
|
+
stringToBytes: (s: string) => encoder.encode(s),
|
|
247
|
+
bytesToString: (ab: UniffiByteArray) => decoder.decode(ab),
|
|
248
|
+
stringByteLength: (s: string) => encoder.encode(s).byteLength,
|
|
249
|
+
};
|
|
250
|
+
})();
|
|
251
|
+
const FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
// Error type: MermaidError
|
|
257
|
+
|
|
258
|
+
// Enum: MermaidError
|
|
259
|
+
export enum MermaidError_Tags {
|
|
260
|
+
RenderError = "RenderError"
|
|
261
|
+
}
|
|
262
|
+
export const MermaidError = (() => {
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
type RenderError__interface = {
|
|
266
|
+
tag: MermaidError_Tags.RenderError;
|
|
267
|
+
inner: Readonly<{message: string}>
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
class RenderError_ extends UniffiError implements RenderError__interface {
|
|
272
|
+
/**
|
|
273
|
+
* @private
|
|
274
|
+
* This field is private and should not be used, use `tag` instead.
|
|
275
|
+
*/
|
|
276
|
+
readonly [uniffiTypeNameSymbol] = "MermaidError";
|
|
277
|
+
readonly tag = MermaidError_Tags.RenderError;
|
|
278
|
+
readonly inner: Readonly<{message: string}>;
|
|
279
|
+
constructor(inner: { message: string }) {
|
|
280
|
+
super("MermaidError", "RenderError");
|
|
281
|
+
this.inner = Object.freeze(inner);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
static new(inner: { message: string }): RenderError_ {
|
|
285
|
+
return new RenderError_(inner);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
static instanceOf(obj: any): obj is RenderError_ {
|
|
289
|
+
return obj.tag === MermaidError_Tags.RenderError;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
static hasInner(obj: any): obj is RenderError_ {
|
|
295
|
+
return RenderError_.instanceOf(obj);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
static getInner(obj: RenderError_): Readonly<{message: string}> {
|
|
299
|
+
return obj.inner;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
function instanceOf(obj: any): obj is MermaidError {
|
|
305
|
+
return obj[uniffiTypeNameSymbol] === "MermaidError";
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
return Object.freeze({
|
|
309
|
+
instanceOf,
|
|
310
|
+
RenderError: RenderError_
|
|
311
|
+
});
|
|
312
|
+
|
|
313
|
+
})();
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
export type MermaidError = InstanceType<
|
|
318
|
+
typeof MermaidError[keyof Omit<typeof MermaidError, 'instanceOf'>]
|
|
319
|
+
>;
|
|
320
|
+
|
|
321
|
+
// FfiConverter for enum MermaidError
|
|
322
|
+
const FfiConverterTypeMermaidError = (() => {
|
|
323
|
+
const ordinalConverter = FfiConverterInt32;
|
|
324
|
+
type TypeName = MermaidError;
|
|
325
|
+
class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {
|
|
326
|
+
read(from: RustBuffer): TypeName {
|
|
327
|
+
switch (ordinalConverter.read(from)) {
|
|
328
|
+
case 1: return new MermaidError.RenderError({message: FfiConverterString.read(from) });
|
|
329
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
write(value: TypeName, into: RustBuffer): void {
|
|
333
|
+
switch (value.tag) {
|
|
334
|
+
case MermaidError_Tags.RenderError: {
|
|
335
|
+
ordinalConverter.write(1, into);
|
|
336
|
+
const inner = value.inner;
|
|
337
|
+
FfiConverterString.write(inner.message, into);
|
|
338
|
+
return;
|
|
339
|
+
}
|
|
340
|
+
default:
|
|
341
|
+
// Throwing from here means that MermaidError_Tags hasn't matched an ordinal.
|
|
342
|
+
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
allocationSize(value: TypeName): number {
|
|
346
|
+
switch (value.tag) {
|
|
347
|
+
case MermaidError_Tags.RenderError: {
|
|
348
|
+
const inner = value.inner;
|
|
349
|
+
let size = ordinalConverter.allocationSize(1);
|
|
350
|
+
size += FfiConverterString.allocationSize(inner.message);
|
|
351
|
+
return size;
|
|
352
|
+
}
|
|
353
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
return new FFIConverter();
|
|
358
|
+
})();
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
export interface ArielLayoutLike {
|
|
362
|
+
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* @deprecated Use `ArielLayoutLike` instead.
|
|
366
|
+
*/
|
|
367
|
+
export type ArielLayoutInterface = ArielLayoutLike;
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
export class ArielLayout extends UniffiAbstractObject implements ArielLayoutLike {
|
|
371
|
+
|
|
372
|
+
readonly [uniffiTypeNameSymbol] = "ArielLayout";
|
|
373
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
374
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
375
|
+
// No primary constructor declared for this class.
|
|
376
|
+
private constructor(pointer: UniffiHandle) {
|
|
377
|
+
super();
|
|
378
|
+
this[pointerLiteralSymbol] = pointer;
|
|
379
|
+
this[destructorGuardSymbol] = uniffiTypeArielLayoutObjectFactory.bless(pointer);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
388
|
+
*/
|
|
389
|
+
uniffiDestroy(): void {
|
|
390
|
+
const ptr = (this as any)[destructorGuardSymbol];
|
|
391
|
+
if (ptr !== undefined) {
|
|
392
|
+
const pointer = uniffiTypeArielLayoutObjectFactory.pointer(this);
|
|
393
|
+
uniffiTypeArielLayoutObjectFactory.freePointer(pointer);
|
|
394
|
+
uniffiTypeArielLayoutObjectFactory.unbless(ptr);
|
|
395
|
+
delete (this as any)[destructorGuardSymbol];
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
static instanceOf(obj: any): obj is ArielLayout {
|
|
400
|
+
return uniffiTypeArielLayoutObjectFactory.isConcreteType(obj);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
const uniffiTypeArielLayoutObjectFactory: UniffiObjectFactory<ArielLayoutLike> = (() => {
|
|
407
|
+
|
|
408
|
+
/// <reference lib="es2021" />
|
|
409
|
+
const registry = typeof FinalizationRegistry !== 'undefined' ? new FinalizationRegistry<UniffiHandle>((heldValue: UniffiHandle) => {
|
|
410
|
+
uniffiTypeArielLayoutObjectFactory.freePointer(heldValue);
|
|
411
|
+
}) : null;
|
|
412
|
+
|
|
413
|
+
return {
|
|
414
|
+
create(pointer: UniffiHandle): ArielLayoutLike {
|
|
415
|
+
const instance = Object.create(ArielLayout.prototype);
|
|
416
|
+
instance[pointerLiteralSymbol] = pointer;
|
|
417
|
+
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
418
|
+
instance[uniffiTypeNameSymbol] = "ArielLayout";
|
|
419
|
+
return instance;
|
|
420
|
+
},
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
bless(p: UniffiHandle): UniffiGcObject {
|
|
424
|
+
const ptr = {
|
|
425
|
+
p, // make sure this object doesn't get optimized away.
|
|
426
|
+
markDestroyed: () => undefined,
|
|
427
|
+
};
|
|
428
|
+
if (registry) {
|
|
429
|
+
registry.register(ptr, p, ptr);
|
|
430
|
+
}
|
|
431
|
+
return ptr;
|
|
432
|
+
},
|
|
433
|
+
|
|
434
|
+
unbless(ptr: UniffiGcObject) {
|
|
435
|
+
if (registry) {
|
|
436
|
+
registry.unregister(ptr);
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
|
|
440
|
+
pointer(obj: ArielLayoutLike): UniffiHandle {
|
|
441
|
+
if ((obj as any)[destructorGuardSymbol] === undefined) {
|
|
442
|
+
throw new UniffiInternalError.UnexpectedNullPointer();
|
|
443
|
+
}
|
|
444
|
+
return (obj as any)[pointerLiteralSymbol];
|
|
445
|
+
},
|
|
446
|
+
|
|
447
|
+
clonePointer(obj: ArielLayoutLike): UniffiHandle {
|
|
448
|
+
const pointer = this.pointer(obj);
|
|
449
|
+
return uniffiCaller.rustCall(
|
|
450
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_mermaid_wrapper_fn_clone_ariellayout(pointer, callStatus),
|
|
451
|
+
/*liftString:*/ FfiConverterString.lift
|
|
452
|
+
);
|
|
453
|
+
},
|
|
454
|
+
|
|
455
|
+
freePointer(pointer: UniffiHandle): void {
|
|
456
|
+
uniffiCaller.rustCall(
|
|
457
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_mermaid_wrapper_fn_free_ariellayout(pointer, callStatus),
|
|
458
|
+
/*liftString:*/ FfiConverterString.lift
|
|
459
|
+
);
|
|
460
|
+
},
|
|
461
|
+
|
|
462
|
+
isConcreteType(obj: any): obj is ArielLayoutLike {
|
|
463
|
+
return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === "ArielLayout";
|
|
464
|
+
},
|
|
465
|
+
}})();
|
|
466
|
+
// FfiConverter for ArielLayoutLike
|
|
467
|
+
const FfiConverterTypeArielLayout = new FfiConverterObject(uniffiTypeArielLayoutObjectFactory);
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
export interface ArielParsedDiagramLike {
|
|
471
|
+
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* @deprecated Use `ArielParsedDiagramLike` instead.
|
|
475
|
+
*/
|
|
476
|
+
export type ArielParsedDiagramInterface = ArielParsedDiagramLike;
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
export class ArielParsedDiagram extends UniffiAbstractObject implements ArielParsedDiagramLike {
|
|
480
|
+
|
|
481
|
+
readonly [uniffiTypeNameSymbol] = "ArielParsedDiagram";
|
|
482
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
483
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
484
|
+
// No primary constructor declared for this class.
|
|
485
|
+
private constructor(pointer: UniffiHandle) {
|
|
486
|
+
super();
|
|
487
|
+
this[pointerLiteralSymbol] = pointer;
|
|
488
|
+
this[destructorGuardSymbol] = uniffiTypeArielParsedDiagramObjectFactory.bless(pointer);
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
497
|
+
*/
|
|
498
|
+
uniffiDestroy(): void {
|
|
499
|
+
const ptr = (this as any)[destructorGuardSymbol];
|
|
500
|
+
if (ptr !== undefined) {
|
|
501
|
+
const pointer = uniffiTypeArielParsedDiagramObjectFactory.pointer(this);
|
|
502
|
+
uniffiTypeArielParsedDiagramObjectFactory.freePointer(pointer);
|
|
503
|
+
uniffiTypeArielParsedDiagramObjectFactory.unbless(ptr);
|
|
504
|
+
delete (this as any)[destructorGuardSymbol];
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
static instanceOf(obj: any): obj is ArielParsedDiagram {
|
|
509
|
+
return uniffiTypeArielParsedDiagramObjectFactory.isConcreteType(obj);
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
const uniffiTypeArielParsedDiagramObjectFactory: UniffiObjectFactory<ArielParsedDiagramLike> = (() => {
|
|
516
|
+
|
|
517
|
+
/// <reference lib="es2021" />
|
|
518
|
+
const registry = typeof FinalizationRegistry !== 'undefined' ? new FinalizationRegistry<UniffiHandle>((heldValue: UniffiHandle) => {
|
|
519
|
+
uniffiTypeArielParsedDiagramObjectFactory.freePointer(heldValue);
|
|
520
|
+
}) : null;
|
|
521
|
+
|
|
522
|
+
return {
|
|
523
|
+
create(pointer: UniffiHandle): ArielParsedDiagramLike {
|
|
524
|
+
const instance = Object.create(ArielParsedDiagram.prototype);
|
|
525
|
+
instance[pointerLiteralSymbol] = pointer;
|
|
526
|
+
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
527
|
+
instance[uniffiTypeNameSymbol] = "ArielParsedDiagram";
|
|
528
|
+
return instance;
|
|
529
|
+
},
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
bless(p: UniffiHandle): UniffiGcObject {
|
|
533
|
+
const ptr = {
|
|
534
|
+
p, // make sure this object doesn't get optimized away.
|
|
535
|
+
markDestroyed: () => undefined,
|
|
536
|
+
};
|
|
537
|
+
if (registry) {
|
|
538
|
+
registry.register(ptr, p, ptr);
|
|
539
|
+
}
|
|
540
|
+
return ptr;
|
|
541
|
+
},
|
|
542
|
+
|
|
543
|
+
unbless(ptr: UniffiGcObject) {
|
|
544
|
+
if (registry) {
|
|
545
|
+
registry.unregister(ptr);
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
|
|
549
|
+
pointer(obj: ArielParsedDiagramLike): UniffiHandle {
|
|
550
|
+
if ((obj as any)[destructorGuardSymbol] === undefined) {
|
|
551
|
+
throw new UniffiInternalError.UnexpectedNullPointer();
|
|
552
|
+
}
|
|
553
|
+
return (obj as any)[pointerLiteralSymbol];
|
|
554
|
+
},
|
|
555
|
+
|
|
556
|
+
clonePointer(obj: ArielParsedDiagramLike): UniffiHandle {
|
|
557
|
+
const pointer = this.pointer(obj);
|
|
558
|
+
return uniffiCaller.rustCall(
|
|
559
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_mermaid_wrapper_fn_clone_arielparseddiagram(pointer, callStatus),
|
|
560
|
+
/*liftString:*/ FfiConverterString.lift
|
|
561
|
+
);
|
|
562
|
+
},
|
|
563
|
+
|
|
564
|
+
freePointer(pointer: UniffiHandle): void {
|
|
565
|
+
uniffiCaller.rustCall(
|
|
566
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_mermaid_wrapper_fn_free_arielparseddiagram(pointer, callStatus),
|
|
567
|
+
/*liftString:*/ FfiConverterString.lift
|
|
568
|
+
);
|
|
569
|
+
},
|
|
570
|
+
|
|
571
|
+
isConcreteType(obj: any): obj is ArielParsedDiagramLike {
|
|
572
|
+
return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === "ArielParsedDiagram";
|
|
573
|
+
},
|
|
574
|
+
}})();
|
|
575
|
+
// FfiConverter for ArielParsedDiagramLike
|
|
576
|
+
const FfiConverterTypeArielParsedDiagram = new FfiConverterObject(uniffiTypeArielParsedDiagramObjectFactory);
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
export interface ArielThemeLike {
|
|
580
|
+
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* @deprecated Use `ArielThemeLike` instead.
|
|
584
|
+
*/
|
|
585
|
+
export type ArielThemeInterface = ArielThemeLike;
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
export class ArielTheme extends UniffiAbstractObject implements ArielThemeLike {
|
|
589
|
+
|
|
590
|
+
readonly [uniffiTypeNameSymbol] = "ArielTheme";
|
|
591
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
592
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
593
|
+
// No primary constructor declared for this class.
|
|
594
|
+
private constructor(pointer: UniffiHandle) {
|
|
595
|
+
super();
|
|
596
|
+
this[pointerLiteralSymbol] = pointer;
|
|
597
|
+
this[destructorGuardSymbol] = uniffiTypeArielThemeObjectFactory.bless(pointer);
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
static mermaidDefault(): ArielThemeLike {
|
|
602
|
+
return FfiConverterTypeArielTheme.lift(uniffiCaller.rustCall(
|
|
603
|
+
/*caller:*/ (callStatus) => {
|
|
604
|
+
return nativeModule().ubrn_uniffi_mermaid_wrapper_fn_constructor_arieltheme_mermaid_default(
|
|
605
|
+
callStatus);
|
|
606
|
+
},
|
|
607
|
+
/*liftString:*/ FfiConverterString.lift,
|
|
608
|
+
));
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
static modern(): ArielThemeLike {
|
|
612
|
+
return FfiConverterTypeArielTheme.lift(uniffiCaller.rustCall(
|
|
613
|
+
/*caller:*/ (callStatus) => {
|
|
614
|
+
return nativeModule().ubrn_uniffi_mermaid_wrapper_fn_constructor_arieltheme_modern(
|
|
615
|
+
callStatus);
|
|
616
|
+
},
|
|
617
|
+
/*liftString:*/ FfiConverterString.lift,
|
|
618
|
+
));
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
626
|
+
*/
|
|
627
|
+
uniffiDestroy(): void {
|
|
628
|
+
const ptr = (this as any)[destructorGuardSymbol];
|
|
629
|
+
if (ptr !== undefined) {
|
|
630
|
+
const pointer = uniffiTypeArielThemeObjectFactory.pointer(this);
|
|
631
|
+
uniffiTypeArielThemeObjectFactory.freePointer(pointer);
|
|
632
|
+
uniffiTypeArielThemeObjectFactory.unbless(ptr);
|
|
633
|
+
delete (this as any)[destructorGuardSymbol];
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
static instanceOf(obj: any): obj is ArielTheme {
|
|
638
|
+
return uniffiTypeArielThemeObjectFactory.isConcreteType(obj);
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
const uniffiTypeArielThemeObjectFactory: UniffiObjectFactory<ArielThemeLike> = (() => {
|
|
645
|
+
|
|
646
|
+
/// <reference lib="es2021" />
|
|
647
|
+
const registry = typeof FinalizationRegistry !== 'undefined' ? new FinalizationRegistry<UniffiHandle>((heldValue: UniffiHandle) => {
|
|
648
|
+
uniffiTypeArielThemeObjectFactory.freePointer(heldValue);
|
|
649
|
+
}) : null;
|
|
650
|
+
|
|
651
|
+
return {
|
|
652
|
+
create(pointer: UniffiHandle): ArielThemeLike {
|
|
653
|
+
const instance = Object.create(ArielTheme.prototype);
|
|
654
|
+
instance[pointerLiteralSymbol] = pointer;
|
|
655
|
+
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
656
|
+
instance[uniffiTypeNameSymbol] = "ArielTheme";
|
|
657
|
+
return instance;
|
|
658
|
+
},
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
bless(p: UniffiHandle): UniffiGcObject {
|
|
662
|
+
const ptr = {
|
|
663
|
+
p, // make sure this object doesn't get optimized away.
|
|
664
|
+
markDestroyed: () => undefined,
|
|
665
|
+
};
|
|
666
|
+
if (registry) {
|
|
667
|
+
registry.register(ptr, p, ptr);
|
|
668
|
+
}
|
|
669
|
+
return ptr;
|
|
670
|
+
},
|
|
671
|
+
|
|
672
|
+
unbless(ptr: UniffiGcObject) {
|
|
673
|
+
if (registry) {
|
|
674
|
+
registry.unregister(ptr);
|
|
675
|
+
}
|
|
676
|
+
},
|
|
677
|
+
|
|
678
|
+
pointer(obj: ArielThemeLike): UniffiHandle {
|
|
679
|
+
if ((obj as any)[destructorGuardSymbol] === undefined) {
|
|
680
|
+
throw new UniffiInternalError.UnexpectedNullPointer();
|
|
681
|
+
}
|
|
682
|
+
return (obj as any)[pointerLiteralSymbol];
|
|
683
|
+
},
|
|
684
|
+
|
|
685
|
+
clonePointer(obj: ArielThemeLike): UniffiHandle {
|
|
686
|
+
const pointer = this.pointer(obj);
|
|
687
|
+
return uniffiCaller.rustCall(
|
|
688
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_mermaid_wrapper_fn_clone_arieltheme(pointer, callStatus),
|
|
689
|
+
/*liftString:*/ FfiConverterString.lift
|
|
690
|
+
);
|
|
691
|
+
},
|
|
692
|
+
|
|
693
|
+
freePointer(pointer: UniffiHandle): void {
|
|
694
|
+
uniffiCaller.rustCall(
|
|
695
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_mermaid_wrapper_fn_free_arieltheme(pointer, callStatus),
|
|
696
|
+
/*liftString:*/ FfiConverterString.lift
|
|
697
|
+
);
|
|
698
|
+
},
|
|
699
|
+
|
|
700
|
+
isConcreteType(obj: any): obj is ArielThemeLike {
|
|
701
|
+
return obj[destructorGuardSymbol] && obj[uniffiTypeNameSymbol] === "ArielTheme";
|
|
702
|
+
},
|
|
703
|
+
}})();
|
|
704
|
+
// FfiConverter for ArielThemeLike
|
|
705
|
+
const FfiConverterTypeArielTheme = new FfiConverterObject(uniffiTypeArielThemeObjectFactory);
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
// FfiConverter for /*f32*/number | undefined
|
|
709
|
+
const FfiConverterOptionalFloat32 = new FfiConverterOptional(FfiConverterFloat32);
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* This should be called before anything else.
|
|
715
|
+
*
|
|
716
|
+
* It is likely that this is being done for you by the library's `index.ts`.
|
|
717
|
+
*
|
|
718
|
+
* It checks versions of uniffi between when the Rust scaffolding was generated
|
|
719
|
+
* and when the bindings were generated.
|
|
720
|
+
*
|
|
721
|
+
* It also initializes the machinery to enable Rust to talk back to Javascript.
|
|
722
|
+
*/
|
|
723
|
+
function uniffiEnsureInitialized() {
|
|
724
|
+
// Get the bindings contract version from our ComponentInterface
|
|
725
|
+
const bindingsContractVersion = 30;
|
|
726
|
+
// Get the scaffolding contract version by calling the into the dylib
|
|
727
|
+
const scaffoldingContractVersion = nativeModule().ubrn_ffi_mermaid_wrapper_uniffi_contract_version();
|
|
728
|
+
if (bindingsContractVersion !== scaffoldingContractVersion) {
|
|
729
|
+
throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
|
|
730
|
+
}
|
|
731
|
+
if (nativeModule().ubrn_uniffi_mermaid_wrapper_checksum_func_compute_diagram_layout() !== 40959) {
|
|
732
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_mermaid_wrapper_checksum_func_compute_diagram_layout");
|
|
733
|
+
}
|
|
734
|
+
if (nativeModule().ubrn_uniffi_mermaid_wrapper_checksum_func_parse_diagram() !== 41317) {
|
|
735
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_mermaid_wrapper_checksum_func_parse_diagram");
|
|
736
|
+
}
|
|
737
|
+
if (nativeModule().ubrn_uniffi_mermaid_wrapper_checksum_func_render_mermaid() !== 8014) {
|
|
738
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_mermaid_wrapper_checksum_func_render_mermaid");
|
|
739
|
+
}
|
|
740
|
+
if (nativeModule().ubrn_uniffi_mermaid_wrapper_checksum_func_render_mermaid_with_options() !== 46840) {
|
|
741
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_mermaid_wrapper_checksum_func_render_mermaid_with_options");
|
|
742
|
+
}
|
|
743
|
+
if (nativeModule().ubrn_uniffi_mermaid_wrapper_checksum_func_render_mermaid_with_timing() !== 28782) {
|
|
744
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_mermaid_wrapper_checksum_func_render_mermaid_with_timing");
|
|
745
|
+
}
|
|
746
|
+
if (nativeModule().ubrn_uniffi_mermaid_wrapper_checksum_func_render_svg_from_layout() !== 26512) {
|
|
747
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_mermaid_wrapper_checksum_func_render_svg_from_layout");
|
|
748
|
+
}
|
|
749
|
+
if (nativeModule().ubrn_uniffi_mermaid_wrapper_checksum_func_set_timing_logs() !== 7017) {
|
|
750
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_mermaid_wrapper_checksum_func_set_timing_logs");
|
|
751
|
+
}
|
|
752
|
+
if (nativeModule().ubrn_uniffi_mermaid_wrapper_checksum_constructor_arieltheme_mermaid_default() !== 51258) {
|
|
753
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_mermaid_wrapper_checksum_constructor_arieltheme_mermaid_default");
|
|
754
|
+
}
|
|
755
|
+
if (nativeModule().ubrn_uniffi_mermaid_wrapper_checksum_constructor_arieltheme_modern() !== 21659) {
|
|
756
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_mermaid_wrapper_checksum_constructor_arieltheme_modern");
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
export default Object.freeze({
|
|
762
|
+
initialize: uniffiEnsureInitialized,
|
|
763
|
+
converters: {
|
|
764
|
+
FfiConverterTypeArielLayout,
|
|
765
|
+
FfiConverterTypeArielLayoutConfig,
|
|
766
|
+
FfiConverterTypeArielParsedDiagram,
|
|
767
|
+
FfiConverterTypeArielRenderResult,
|
|
768
|
+
FfiConverterTypeArielTheme,
|
|
769
|
+
FfiConverterTypeMermaidError,
|
|
770
|
+
}
|
|
771
|
+
});
|