react-native-ariel 0.1.0-dev.5 → 0.1.0-dev.52
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 +2 -2
- package/README.md +74 -98
- package/android/build.gradle +11 -9
- package/android/generated/{android/app/build/generated/source/codegen/java/com/facebook/fbreact/specs → java/com/ariel}/NativeArielSpec.java +1 -1
- package/android/generated/{android/app/build/generated/source/codegen/jni → jni}/CMakeLists.txt +9 -1
- package/android/generated/jni/react/renderer/components/ArielSpec/ArielSpecJSI-generated.cpp +32 -0
- package/android/generated/jni/react/renderer/components/ArielSpec/ArielSpecJSI.h +80 -0
- package/android/proguard-rules.pro +4 -0
- package/android/src/main/java/com/ariel/ArielModule.kt +11 -1
- package/cpp/generated/mermaid_wrapper.cpp +2369 -0
- package/cpp/generated/mermaid_wrapper.hpp +77 -0
- package/cpp/mermaid_wrapper.cpp +1 -0
- package/ios/generated/ArielSpecJSI-generated.cpp +32 -0
- package/ios/generated/ArielSpecJSI.h +80 -0
- package/lib/module/generated/web/wasm-bindgen/react_native_ariel.d.ts +202 -0
- package/lib/module/generated/web/wasm-bindgen/react_native_ariel.js +579 -0
- package/lib/module/generated/web/wasm-bindgen/react_native_ariel_bg.wasm +0 -0
- package/lib/module/generated/web/wasm-bindgen/react_native_ariel_bg.wasm.d.ts +116 -0
- package/lib/module/index.web.js +4 -6
- package/lib/module/index.web.js.map +1 -2
- package/package.json +31 -25
- package/react-native.config.js +0 -1
- package/android/CMakeLists.txt +0 -79
- package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/ArielSpec/ArielSpecJSI.h +0 -45
- package/ios/generated/build/generated/ios/ReactCodegen/ArielSpecJSI.h +0 -45
- package/lib/typescript/src/index.web.d.ts +0 -8
- package/lib/typescript/src/index.web.d.ts.map +0 -1
- package/src/generated/web/wasm-bindgen/package.json +0 -15
- /package/android/generated/{android/app/build/generated/source/codegen/jni → jni}/ArielSpec-generated.cpp +0 -0
- /package/android/generated/{android/app/build/generated/source/codegen/jni → jni}/ArielSpec.h +0 -0
- /package/ios/generated/{build/generated/ios/ReactCodegen/ArielSpec → ArielSpec}/ArielSpec-generated.mm +0 -0
- /package/ios/generated/{build/generated/ios/ReactCodegen/ArielSpec → ArielSpec}/ArielSpec.h +0 -0
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
#pragma once
|
|
4
|
+
#include <jsi/jsi.h>
|
|
5
|
+
#include <iostream>
|
|
6
|
+
#include <map>
|
|
7
|
+
#include <memory>
|
|
8
|
+
#include <ReactCommon/CallInvoker.h>
|
|
9
|
+
#include "UniffiCallInvoker.h"
|
|
10
|
+
|
|
11
|
+
namespace react = facebook::react;
|
|
12
|
+
namespace jsi = facebook::jsi;
|
|
13
|
+
|
|
14
|
+
class NativeMermaidWrapper : public jsi::HostObject {
|
|
15
|
+
private:
|
|
16
|
+
// For calling back into JS from Rust.
|
|
17
|
+
std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker;
|
|
18
|
+
|
|
19
|
+
protected:
|
|
20
|
+
std::map<std::string,jsi::Value> props;
|
|
21
|
+
jsi::Value cpp_uniffi_internal_fn_func_ffi__string_to_byte_length(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
22
|
+
jsi::Value cpp_uniffi_internal_fn_func_ffi__string_to_arraybuffer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
23
|
+
jsi::Value cpp_uniffi_internal_fn_func_ffi__arraybuffer_to_string(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
24
|
+
jsi::Value cpp_uniffi_mermaid_wrapper_fn_clone_ariellayout(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
25
|
+
jsi::Value cpp_uniffi_mermaid_wrapper_fn_free_ariellayout(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
26
|
+
jsi::Value cpp_uniffi_mermaid_wrapper_fn_clone_arielparseddiagram(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
27
|
+
jsi::Value cpp_uniffi_mermaid_wrapper_fn_free_arielparseddiagram(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
28
|
+
jsi::Value cpp_uniffi_mermaid_wrapper_fn_clone_arieltheme(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
29
|
+
jsi::Value cpp_uniffi_mermaid_wrapper_fn_free_arieltheme(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
30
|
+
jsi::Value cpp_uniffi_mermaid_wrapper_fn_constructor_arieltheme_mermaid_default(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
31
|
+
jsi::Value cpp_uniffi_mermaid_wrapper_fn_constructor_arieltheme_modern(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
32
|
+
jsi::Value cpp_uniffi_mermaid_wrapper_fn_func_compute_diagram_layout(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
33
|
+
jsi::Value cpp_uniffi_mermaid_wrapper_fn_func_parse_diagram(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
34
|
+
jsi::Value cpp_uniffi_mermaid_wrapper_fn_func_render_mermaid(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
35
|
+
jsi::Value cpp_uniffi_mermaid_wrapper_fn_func_render_mermaid_with_options(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
36
|
+
jsi::Value cpp_uniffi_mermaid_wrapper_fn_func_render_mermaid_with_timing(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
37
|
+
jsi::Value cpp_uniffi_mermaid_wrapper_fn_func_render_svg_from_layout(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
38
|
+
jsi::Value cpp_uniffi_mermaid_wrapper_fn_func_set_timing_logs(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
39
|
+
jsi::Value cpp_uniffi_mermaid_wrapper_checksum_func_compute_diagram_layout(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
40
|
+
jsi::Value cpp_uniffi_mermaid_wrapper_checksum_func_parse_diagram(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
41
|
+
jsi::Value cpp_uniffi_mermaid_wrapper_checksum_func_render_mermaid(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
42
|
+
jsi::Value cpp_uniffi_mermaid_wrapper_checksum_func_render_mermaid_with_options(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
43
|
+
jsi::Value cpp_uniffi_mermaid_wrapper_checksum_func_render_mermaid_with_timing(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
44
|
+
jsi::Value cpp_uniffi_mermaid_wrapper_checksum_func_render_svg_from_layout(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
45
|
+
jsi::Value cpp_uniffi_mermaid_wrapper_checksum_func_set_timing_logs(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
46
|
+
jsi::Value cpp_uniffi_mermaid_wrapper_checksum_constructor_arieltheme_mermaid_default(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
47
|
+
jsi::Value cpp_uniffi_mermaid_wrapper_checksum_constructor_arieltheme_modern(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
48
|
+
jsi::Value cpp_ffi_mermaid_wrapper_uniffi_contract_version(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
49
|
+
jsi::Value cpp_uniffi_internal_fn_method_ariellayout_ffi__bless_pointer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
50
|
+
jsi::Value cpp_uniffi_internal_fn_method_arielparseddiagram_ffi__bless_pointer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
51
|
+
jsi::Value cpp_uniffi_internal_fn_method_arieltheme_ffi__bless_pointer(jsi::Runtime& rt, const jsi::Value& thisVal, const jsi::Value* args, size_t count);
|
|
52
|
+
|
|
53
|
+
public:
|
|
54
|
+
NativeMermaidWrapper(jsi::Runtime &rt, std::shared_ptr<uniffi_runtime::UniffiCallInvoker> callInvoker);
|
|
55
|
+
virtual ~NativeMermaidWrapper();
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The entry point into the crate.
|
|
59
|
+
*
|
|
60
|
+
* React Native must call `NativeMermaidWrapper.registerModule(rt, callInvoker)` before using
|
|
61
|
+
* the Javascript interface.
|
|
62
|
+
*/
|
|
63
|
+
static void registerModule(jsi::Runtime &rt, std::shared_ptr<react::CallInvoker> callInvoker);
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Some cleanup into the crate goes here.
|
|
67
|
+
*
|
|
68
|
+
* Current implementation is empty, however, this is not guaranteed to always be the case.
|
|
69
|
+
*
|
|
70
|
+
* Clients should call `NativeMermaidWrapper.unregisterModule(rt)` after final use where possible.
|
|
71
|
+
*/
|
|
72
|
+
static void unregisterModule(jsi::Runtime &rt);
|
|
73
|
+
|
|
74
|
+
virtual jsi::Value get(jsi::Runtime& rt, const jsi::PropNameID& name);
|
|
75
|
+
virtual void set(jsi::Runtime& rt,const jsi::PropNameID& name,const jsi::Value& value);
|
|
76
|
+
virtual std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& rt);
|
|
77
|
+
};
|
package/cpp/mermaid_wrapper.cpp
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
+
*
|
|
4
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
+
* once the code is regenerated.
|
|
6
|
+
*
|
|
7
|
+
* @generated by codegen project: GenerateModuleCpp.js
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#include "ArielSpecJSI.h"
|
|
11
|
+
|
|
12
|
+
namespace facebook::react {
|
|
13
|
+
|
|
14
|
+
static jsi::Value __hostFunction_NativeArielCxxSpecJSI_installRustCrate(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
15
|
+
return static_cast<NativeArielCxxSpecJSI *>(&turboModule)->installRustCrate(
|
|
16
|
+
rt
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
static jsi::Value __hostFunction_NativeArielCxxSpecJSI_cleanupRustCrate(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
20
|
+
return static_cast<NativeArielCxxSpecJSI *>(&turboModule)->cleanupRustCrate(
|
|
21
|
+
rt
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
NativeArielCxxSpecJSI::NativeArielCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
|
|
26
|
+
: TurboModule("Ariel", jsInvoker) {
|
|
27
|
+
methodMap_["installRustCrate"] = MethodMetadata {0, __hostFunction_NativeArielCxxSpecJSI_installRustCrate};
|
|
28
|
+
methodMap_["cleanupRustCrate"] = MethodMetadata {0, __hostFunction_NativeArielCxxSpecJSI_cleanupRustCrate};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
} // namespace facebook::react
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
+
*
|
|
4
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
+
* once the code is regenerated.
|
|
6
|
+
*
|
|
7
|
+
* @generated by codegen project: GenerateModuleH.js
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#pragma once
|
|
11
|
+
|
|
12
|
+
#include <ReactCommon/TurboModule.h>
|
|
13
|
+
#include <react/bridging/Bridging.h>
|
|
14
|
+
|
|
15
|
+
namespace facebook::react {
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class JSI_EXPORT NativeArielCxxSpecJSI : public TurboModule {
|
|
19
|
+
protected:
|
|
20
|
+
NativeArielCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
|
|
21
|
+
|
|
22
|
+
public:
|
|
23
|
+
virtual bool installRustCrate(jsi::Runtime &rt) = 0;
|
|
24
|
+
virtual bool cleanupRustCrate(jsi::Runtime &rt) = 0;
|
|
25
|
+
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
template <typename T>
|
|
29
|
+
class JSI_EXPORT NativeArielCxxSpec : public TurboModule {
|
|
30
|
+
public:
|
|
31
|
+
jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
|
|
32
|
+
return delegate_.create(rt, propName);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
|
|
36
|
+
return delegate_.getPropertyNames(runtime);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
static constexpr std::string_view kModuleName = "Ariel";
|
|
40
|
+
|
|
41
|
+
protected:
|
|
42
|
+
NativeArielCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
|
|
43
|
+
: TurboModule(std::string{NativeArielCxxSpec::kModuleName}, jsInvoker),
|
|
44
|
+
delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
private:
|
|
48
|
+
class Delegate : public NativeArielCxxSpecJSI {
|
|
49
|
+
public:
|
|
50
|
+
Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
|
|
51
|
+
NativeArielCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
|
|
52
|
+
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
bool installRustCrate(jsi::Runtime &rt) override {
|
|
56
|
+
static_assert(
|
|
57
|
+
bridging::getParameterCount(&T::installRustCrate) == 1,
|
|
58
|
+
"Expected installRustCrate(...) to have 1 parameters");
|
|
59
|
+
|
|
60
|
+
return bridging::callFromJs<bool>(
|
|
61
|
+
rt, &T::installRustCrate, jsInvoker_, instance_);
|
|
62
|
+
}
|
|
63
|
+
bool cleanupRustCrate(jsi::Runtime &rt) override {
|
|
64
|
+
static_assert(
|
|
65
|
+
bridging::getParameterCount(&T::cleanupRustCrate) == 1,
|
|
66
|
+
"Expected cleanupRustCrate(...) to have 1 parameters");
|
|
67
|
+
|
|
68
|
+
return bridging::callFromJs<bool>(
|
|
69
|
+
rt, &T::cleanupRustCrate, jsInvoker_, instance_);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
private:
|
|
73
|
+
friend class NativeArielCxxSpec;
|
|
74
|
+
T *instance_;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
Delegate delegate_;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
} // namespace facebook::react
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
export class RustCallStatus {
|
|
5
|
+
free(): void;
|
|
6
|
+
[Symbol.dispose](): void;
|
|
7
|
+
constructor();
|
|
8
|
+
code: number;
|
|
9
|
+
get errorBuf(): Uint8Array | undefined;
|
|
10
|
+
set errorBuf(value: Uint8Array | null | undefined);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export function ubrn_ffi_mermaid_wrapper_uniffi_contract_version(): number;
|
|
14
|
+
|
|
15
|
+
export function ubrn_uniffi_mermaid_wrapper_checksum_constructor_arieltheme_mermaid_default(): number;
|
|
16
|
+
|
|
17
|
+
export function ubrn_uniffi_mermaid_wrapper_checksum_constructor_arieltheme_modern(): number;
|
|
18
|
+
|
|
19
|
+
export function ubrn_uniffi_mermaid_wrapper_checksum_func_compute_diagram_layout(): number;
|
|
20
|
+
|
|
21
|
+
export function ubrn_uniffi_mermaid_wrapper_checksum_func_parse_diagram(): number;
|
|
22
|
+
|
|
23
|
+
export function ubrn_uniffi_mermaid_wrapper_checksum_func_render_mermaid(): number;
|
|
24
|
+
|
|
25
|
+
export function ubrn_uniffi_mermaid_wrapper_checksum_func_render_mermaid_with_options(): number;
|
|
26
|
+
|
|
27
|
+
export function ubrn_uniffi_mermaid_wrapper_checksum_func_render_mermaid_with_timing(): number;
|
|
28
|
+
|
|
29
|
+
export function ubrn_uniffi_mermaid_wrapper_checksum_func_render_svg_from_layout(): number;
|
|
30
|
+
|
|
31
|
+
export function ubrn_uniffi_mermaid_wrapper_checksum_func_set_timing_logs(): number;
|
|
32
|
+
|
|
33
|
+
export function ubrn_uniffi_mermaid_wrapper_fn_clone_ariellayout(handle: bigint, f_status_: RustCallStatus): bigint;
|
|
34
|
+
|
|
35
|
+
export function ubrn_uniffi_mermaid_wrapper_fn_clone_arielparseddiagram(handle: bigint, f_status_: RustCallStatus): bigint;
|
|
36
|
+
|
|
37
|
+
export function ubrn_uniffi_mermaid_wrapper_fn_clone_arieltheme(handle: bigint, f_status_: RustCallStatus): bigint;
|
|
38
|
+
|
|
39
|
+
export function ubrn_uniffi_mermaid_wrapper_fn_constructor_arieltheme_mermaid_default(f_status_: RustCallStatus): bigint;
|
|
40
|
+
|
|
41
|
+
export function ubrn_uniffi_mermaid_wrapper_fn_constructor_arieltheme_modern(f_status_: RustCallStatus): bigint;
|
|
42
|
+
|
|
43
|
+
export function ubrn_uniffi_mermaid_wrapper_fn_free_ariellayout(handle: bigint, f_status_: RustCallStatus): void;
|
|
44
|
+
|
|
45
|
+
export function ubrn_uniffi_mermaid_wrapper_fn_free_arielparseddiagram(handle: bigint, f_status_: RustCallStatus): void;
|
|
46
|
+
|
|
47
|
+
export function ubrn_uniffi_mermaid_wrapper_fn_free_arieltheme(handle: bigint, f_status_: RustCallStatus): void;
|
|
48
|
+
|
|
49
|
+
export function ubrn_uniffi_mermaid_wrapper_fn_func_compute_diagram_layout(parsed: bigint, theme: bigint, config: Uint8Array, f_status_: RustCallStatus): bigint;
|
|
50
|
+
|
|
51
|
+
export function ubrn_uniffi_mermaid_wrapper_fn_func_parse_diagram(input: Uint8Array, f_status_: RustCallStatus): bigint;
|
|
52
|
+
|
|
53
|
+
export function ubrn_uniffi_mermaid_wrapper_fn_func_render_mermaid(input: Uint8Array, f_status_: RustCallStatus): Uint8Array;
|
|
54
|
+
|
|
55
|
+
export function ubrn_uniffi_mermaid_wrapper_fn_func_render_mermaid_with_options(input: Uint8Array, _theme: bigint, _config: Uint8Array, f_status_: RustCallStatus): Uint8Array;
|
|
56
|
+
|
|
57
|
+
export function ubrn_uniffi_mermaid_wrapper_fn_func_render_mermaid_with_timing(input: Uint8Array, _theme: bigint, _config: Uint8Array, f_status_: RustCallStatus): Uint8Array;
|
|
58
|
+
|
|
59
|
+
export function ubrn_uniffi_mermaid_wrapper_fn_func_render_svg_from_layout(layout: bigint, theme: bigint, config: Uint8Array, f_status_: RustCallStatus): Uint8Array;
|
|
60
|
+
|
|
61
|
+
export function ubrn_uniffi_mermaid_wrapper_fn_func_set_timing_logs(enabled: number, f_status_: RustCallStatus): void;
|
|
62
|
+
|
|
63
|
+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
64
|
+
|
|
65
|
+
export interface InitOutput {
|
|
66
|
+
readonly memory: WebAssembly.Memory;
|
|
67
|
+
readonly uniffi_mermaid_wrapper_fn_func_compute_diagram_layout: (a: bigint, b: bigint, c: number, d: number) => bigint;
|
|
68
|
+
readonly uniffi_mermaid_wrapper_fn_constructor_arieltheme_mermaid_default: (a: number) => bigint;
|
|
69
|
+
readonly uniffi_mermaid_wrapper_fn_constructor_arieltheme_modern: (a: number) => bigint;
|
|
70
|
+
readonly uniffi_mermaid_wrapper_fn_func_render_mermaid_with_timing: (a: number, b: number, c: bigint, d: number, e: number) => void;
|
|
71
|
+
readonly uniffi_mermaid_wrapper_fn_free_arieltheme: (a: bigint, b: number) => void;
|
|
72
|
+
readonly uniffi_mermaid_wrapper_fn_clone_ariellayout: (a: bigint, b: number) => bigint;
|
|
73
|
+
readonly uniffi_mermaid_wrapper_fn_clone_arieltheme: (a: bigint, b: number) => bigint;
|
|
74
|
+
readonly uniffi_mermaid_wrapper_fn_free_arielparseddiagram: (a: bigint, b: number) => void;
|
|
75
|
+
readonly uniffi_mermaid_wrapper_fn_func_render_mermaid_with_options: (a: number, b: number, c: bigint, d: number, e: number) => void;
|
|
76
|
+
readonly uniffi_mermaid_wrapper_fn_func_parse_diagram: (a: number, b: number) => bigint;
|
|
77
|
+
readonly uniffi_mermaid_wrapper_fn_func_set_timing_logs: (a: number, b: number) => void;
|
|
78
|
+
readonly uniffi_mermaid_wrapper_fn_clone_arielparseddiagram: (a: bigint, b: number) => bigint;
|
|
79
|
+
readonly uniffi_mermaid_wrapper_fn_func_render_mermaid: (a: number, b: number, c: number) => void;
|
|
80
|
+
readonly uniffi_mermaid_wrapper_fn_free_ariellayout: (a: bigint, b: number) => void;
|
|
81
|
+
readonly uniffi_mermaid_wrapper_fn_func_render_svg_from_layout: (a: number, b: bigint, c: bigint, d: number, e: number) => void;
|
|
82
|
+
readonly ubrn_ffi_mermaid_wrapper_uniffi_contract_version: () => number;
|
|
83
|
+
readonly ffi_mermaid_wrapper_uniffi_contract_version: () => number;
|
|
84
|
+
readonly ubrn_uniffi_mermaid_wrapper_checksum_constructor_arieltheme_mermaid_default: () => number;
|
|
85
|
+
readonly uniffi_mermaid_wrapper_checksum_constructor_arieltheme_mermaid_default: () => number;
|
|
86
|
+
readonly ubrn_uniffi_mermaid_wrapper_checksum_constructor_arieltheme_modern: () => number;
|
|
87
|
+
readonly uniffi_mermaid_wrapper_checksum_constructor_arieltheme_modern: () => number;
|
|
88
|
+
readonly ubrn_uniffi_mermaid_wrapper_checksum_func_compute_diagram_layout: () => number;
|
|
89
|
+
readonly uniffi_mermaid_wrapper_checksum_func_compute_diagram_layout: () => number;
|
|
90
|
+
readonly ubrn_uniffi_mermaid_wrapper_checksum_func_parse_diagram: () => number;
|
|
91
|
+
readonly uniffi_mermaid_wrapper_checksum_func_parse_diagram: () => number;
|
|
92
|
+
readonly ubrn_uniffi_mermaid_wrapper_checksum_func_render_mermaid: () => number;
|
|
93
|
+
readonly uniffi_mermaid_wrapper_checksum_func_render_mermaid: () => number;
|
|
94
|
+
readonly ubrn_uniffi_mermaid_wrapper_checksum_func_render_mermaid_with_options: () => number;
|
|
95
|
+
readonly uniffi_mermaid_wrapper_checksum_func_render_mermaid_with_options: () => number;
|
|
96
|
+
readonly ubrn_uniffi_mermaid_wrapper_checksum_func_render_mermaid_with_timing: () => number;
|
|
97
|
+
readonly uniffi_mermaid_wrapper_checksum_func_render_mermaid_with_timing: () => number;
|
|
98
|
+
readonly ubrn_uniffi_mermaid_wrapper_checksum_func_render_svg_from_layout: () => number;
|
|
99
|
+
readonly uniffi_mermaid_wrapper_checksum_func_render_svg_from_layout: () => number;
|
|
100
|
+
readonly ubrn_uniffi_mermaid_wrapper_checksum_func_set_timing_logs: () => number;
|
|
101
|
+
readonly uniffi_mermaid_wrapper_checksum_func_set_timing_logs: () => number;
|
|
102
|
+
readonly ubrn_uniffi_mermaid_wrapper_fn_clone_ariellayout: (a: bigint, b: number) => bigint;
|
|
103
|
+
readonly ubrn_uniffi_mermaid_wrapper_fn_clone_arielparseddiagram: (a: bigint, b: number) => bigint;
|
|
104
|
+
readonly ubrn_uniffi_mermaid_wrapper_fn_clone_arieltheme: (a: bigint, b: number) => bigint;
|
|
105
|
+
readonly ubrn_uniffi_mermaid_wrapper_fn_constructor_arieltheme_mermaid_default: (a: number) => bigint;
|
|
106
|
+
readonly ubrn_uniffi_mermaid_wrapper_fn_constructor_arieltheme_modern: (a: number) => bigint;
|
|
107
|
+
readonly ubrn_uniffi_mermaid_wrapper_fn_free_ariellayout: (a: bigint, b: number) => void;
|
|
108
|
+
readonly ubrn_uniffi_mermaid_wrapper_fn_free_arielparseddiagram: (a: bigint, b: number) => void;
|
|
109
|
+
readonly ubrn_uniffi_mermaid_wrapper_fn_free_arieltheme: (a: bigint, b: number) => void;
|
|
110
|
+
readonly ubrn_uniffi_mermaid_wrapper_fn_func_compute_diagram_layout: (a: bigint, b: bigint, c: number, d: number, e: number) => bigint;
|
|
111
|
+
readonly ubrn_uniffi_mermaid_wrapper_fn_func_parse_diagram: (a: number, b: number, c: number) => bigint;
|
|
112
|
+
readonly ubrn_uniffi_mermaid_wrapper_fn_func_render_mermaid: (a: number, b: number, c: number) => [number, number];
|
|
113
|
+
readonly ubrn_uniffi_mermaid_wrapper_fn_func_render_mermaid_with_options: (a: number, b: number, c: bigint, d: number, e: number, f: number) => [number, number];
|
|
114
|
+
readonly ubrn_uniffi_mermaid_wrapper_fn_func_render_mermaid_with_timing: (a: number, b: number, c: bigint, d: number, e: number, f: number) => [number, number];
|
|
115
|
+
readonly ubrn_uniffi_mermaid_wrapper_fn_func_render_svg_from_layout: (a: bigint, b: bigint, c: number, d: number, e: number) => [number, number];
|
|
116
|
+
readonly ubrn_uniffi_mermaid_wrapper_fn_func_set_timing_logs: (a: number, b: number) => void;
|
|
117
|
+
readonly __wbg_get_rustcallstatus_code: (a: number) => number;
|
|
118
|
+
readonly __wbg_rustcallstatus_free: (a: number, b: number) => void;
|
|
119
|
+
readonly __wbg_set_rustcallstatus_code: (a: number, b: number) => void;
|
|
120
|
+
readonly rustcallstatus_error_buf: (a: number) => [number, number];
|
|
121
|
+
readonly rustcallstatus_new: () => number;
|
|
122
|
+
readonly rustcallstatus_set_error_buf: (a: number, b: number, c: number) => void;
|
|
123
|
+
readonly ffi_mermaid_wrapper_rust_future_cancel_f32: (a: bigint) => void;
|
|
124
|
+
readonly ffi_mermaid_wrapper_rust_future_cancel_f64: (a: bigint) => void;
|
|
125
|
+
readonly ffi_mermaid_wrapper_rust_future_cancel_i16: (a: bigint) => void;
|
|
126
|
+
readonly ffi_mermaid_wrapper_rust_future_cancel_i32: (a: bigint) => void;
|
|
127
|
+
readonly ffi_mermaid_wrapper_rust_future_cancel_i64: (a: bigint) => void;
|
|
128
|
+
readonly ffi_mermaid_wrapper_rust_future_cancel_i8: (a: bigint) => void;
|
|
129
|
+
readonly ffi_mermaid_wrapper_rust_future_cancel_rust_buffer: (a: bigint) => void;
|
|
130
|
+
readonly ffi_mermaid_wrapper_rust_future_cancel_u16: (a: bigint) => void;
|
|
131
|
+
readonly ffi_mermaid_wrapper_rust_future_cancel_u32: (a: bigint) => void;
|
|
132
|
+
readonly ffi_mermaid_wrapper_rust_future_cancel_u64: (a: bigint) => void;
|
|
133
|
+
readonly ffi_mermaid_wrapper_rust_future_cancel_u8: (a: bigint) => void;
|
|
134
|
+
readonly ffi_mermaid_wrapper_rust_future_cancel_void: (a: bigint) => void;
|
|
135
|
+
readonly ffi_mermaid_wrapper_rust_future_complete_f32: (a: bigint, b: number) => number;
|
|
136
|
+
readonly ffi_mermaid_wrapper_rust_future_complete_f64: (a: bigint, b: number) => number;
|
|
137
|
+
readonly ffi_mermaid_wrapper_rust_future_complete_i16: (a: bigint, b: number) => number;
|
|
138
|
+
readonly ffi_mermaid_wrapper_rust_future_complete_i32: (a: bigint, b: number) => number;
|
|
139
|
+
readonly ffi_mermaid_wrapper_rust_future_complete_i64: (a: bigint, b: number) => bigint;
|
|
140
|
+
readonly ffi_mermaid_wrapper_rust_future_complete_i8: (a: bigint, b: number) => number;
|
|
141
|
+
readonly ffi_mermaid_wrapper_rust_future_complete_rust_buffer: (a: number, b: bigint, c: number) => void;
|
|
142
|
+
readonly ffi_mermaid_wrapper_rust_future_complete_u16: (a: bigint, b: number) => number;
|
|
143
|
+
readonly ffi_mermaid_wrapper_rust_future_complete_u32: (a: bigint, b: number) => number;
|
|
144
|
+
readonly ffi_mermaid_wrapper_rust_future_complete_u64: (a: bigint, b: number) => bigint;
|
|
145
|
+
readonly ffi_mermaid_wrapper_rust_future_complete_u8: (a: bigint, b: number) => number;
|
|
146
|
+
readonly ffi_mermaid_wrapper_rust_future_complete_void: (a: bigint, b: number) => void;
|
|
147
|
+
readonly ffi_mermaid_wrapper_rust_future_free_f32: (a: bigint) => void;
|
|
148
|
+
readonly ffi_mermaid_wrapper_rust_future_free_f64: (a: bigint) => void;
|
|
149
|
+
readonly ffi_mermaid_wrapper_rust_future_free_i16: (a: bigint) => void;
|
|
150
|
+
readonly ffi_mermaid_wrapper_rust_future_free_i32: (a: bigint) => void;
|
|
151
|
+
readonly ffi_mermaid_wrapper_rust_future_free_i64: (a: bigint) => void;
|
|
152
|
+
readonly ffi_mermaid_wrapper_rust_future_free_i8: (a: bigint) => void;
|
|
153
|
+
readonly ffi_mermaid_wrapper_rust_future_free_rust_buffer: (a: bigint) => void;
|
|
154
|
+
readonly ffi_mermaid_wrapper_rust_future_free_u16: (a: bigint) => void;
|
|
155
|
+
readonly ffi_mermaid_wrapper_rust_future_free_u32: (a: bigint) => void;
|
|
156
|
+
readonly ffi_mermaid_wrapper_rust_future_free_u64: (a: bigint) => void;
|
|
157
|
+
readonly ffi_mermaid_wrapper_rust_future_free_u8: (a: bigint) => void;
|
|
158
|
+
readonly ffi_mermaid_wrapper_rust_future_free_void: (a: bigint) => void;
|
|
159
|
+
readonly ffi_mermaid_wrapper_rust_future_poll_f32: (a: bigint, b: number, c: bigint) => void;
|
|
160
|
+
readonly ffi_mermaid_wrapper_rust_future_poll_f64: (a: bigint, b: number, c: bigint) => void;
|
|
161
|
+
readonly ffi_mermaid_wrapper_rust_future_poll_i16: (a: bigint, b: number, c: bigint) => void;
|
|
162
|
+
readonly ffi_mermaid_wrapper_rust_future_poll_i32: (a: bigint, b: number, c: bigint) => void;
|
|
163
|
+
readonly ffi_mermaid_wrapper_rust_future_poll_i64: (a: bigint, b: number, c: bigint) => void;
|
|
164
|
+
readonly ffi_mermaid_wrapper_rust_future_poll_i8: (a: bigint, b: number, c: bigint) => void;
|
|
165
|
+
readonly ffi_mermaid_wrapper_rust_future_poll_rust_buffer: (a: bigint, b: number, c: bigint) => void;
|
|
166
|
+
readonly ffi_mermaid_wrapper_rust_future_poll_u16: (a: bigint, b: number, c: bigint) => void;
|
|
167
|
+
readonly ffi_mermaid_wrapper_rust_future_poll_u32: (a: bigint, b: number, c: bigint) => void;
|
|
168
|
+
readonly ffi_mermaid_wrapper_rust_future_poll_u64: (a: bigint, b: number, c: bigint) => void;
|
|
169
|
+
readonly ffi_mermaid_wrapper_rust_future_poll_u8: (a: bigint, b: number, c: bigint) => void;
|
|
170
|
+
readonly ffi_mermaid_wrapper_rust_future_poll_void: (a: bigint, b: number, c: bigint) => void;
|
|
171
|
+
readonly ffi_mermaid_wrapper_rustbuffer_alloc: (a: number, b: bigint, c: number) => void;
|
|
172
|
+
readonly ffi_mermaid_wrapper_rustbuffer_free: (a: number, b: number) => void;
|
|
173
|
+
readonly ffi_mermaid_wrapper_rustbuffer_from_bytes: (a: number, b: number, c: number) => void;
|
|
174
|
+
readonly ffi_mermaid_wrapper_rustbuffer_reserve: (a: number, b: number, c: bigint, d: number) => void;
|
|
175
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
176
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
177
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
178
|
+
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
179
|
+
readonly __wbindgen_start: () => void;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
186
|
+
* a precompiled `WebAssembly.Module`.
|
|
187
|
+
*
|
|
188
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
189
|
+
*
|
|
190
|
+
* @returns {InitOutput}
|
|
191
|
+
*/
|
|
192
|
+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
196
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
197
|
+
*
|
|
198
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
199
|
+
*
|
|
200
|
+
* @returns {Promise<InitOutput>}
|
|
201
|
+
*/
|
|
202
|
+
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|