@@ -66,7 +66,7 @@ title: "API"
66
66
67
67
#### Defined in
68
68
69
- [ jsEngine/api/API.ts:45] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/e96ff61292c9e90d57d921fab05d7cb5220aa91b /jsEngine/api/API.ts#L45 )
69
+ [ jsEngine/api/API.ts:45] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/1f0648da628182867a83f5d8f76c6abab1f05793 /jsEngine/api/API.ts#L45 )
70
70
71
71
## Properties
72
72
@@ -78,7 +78,7 @@ Reference to the obsidian app.
78
78
79
79
#### Defined in
80
80
81
- [ jsEngine/api/API.ts:17] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/e96ff61292c9e90d57d921fab05d7cb5220aa91b /jsEngine/api/API.ts#L17 )
81
+ [ jsEngine/api/API.ts:17] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/1f0648da628182867a83f5d8f76c6abab1f05793 /jsEngine/api/API.ts#L17 )
82
82
83
83
***
84
84
@@ -88,7 +88,7 @@ Reference to the obsidian app.
88
88
89
89
#### Defined in
90
90
91
- [ jsEngine/api/API.ts:22] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/e96ff61292c9e90d57d921fab05d7cb5220aa91b /jsEngine/api/API.ts#L22 )
91
+ [ jsEngine/api/API.ts:22] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/1f0648da628182867a83f5d8f76c6abab1f05793 /jsEngine/api/API.ts#L22 )
92
92
93
93
***
94
94
@@ -100,7 +100,7 @@ API to interact with js engines internals.
100
100
101
101
#### Defined in
102
102
103
- [ jsEngine/api/API.ts:43] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/e96ff61292c9e90d57d921fab05d7cb5220aa91b /jsEngine/api/API.ts#L43 )
103
+ [ jsEngine/api/API.ts:43] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/1f0648da628182867a83f5d8f76c6abab1f05793 /jsEngine/api/API.ts#L43 )
104
104
105
105
***
106
106
@@ -112,7 +112,7 @@ API to interact with packaged libraries.
112
112
113
113
#### Defined in
114
114
115
- [ jsEngine/api/API.ts:34] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/e96ff61292c9e90d57d921fab05d7cb5220aa91b /jsEngine/api/API.ts#L34 )
115
+ [ jsEngine/api/API.ts:34] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/1f0648da628182867a83f5d8f76c6abab1f05793 /jsEngine/api/API.ts#L34 )
116
116
117
117
***
118
118
@@ -124,7 +124,7 @@ API to interact with markdown.
124
124
125
125
#### Defined in
126
126
127
- [ jsEngine/api/API.ts:26] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/e96ff61292c9e90d57d921fab05d7cb5220aa91b /jsEngine/api/API.ts#L26 )
127
+ [ jsEngine/api/API.ts:26] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/1f0648da628182867a83f5d8f76c6abab1f05793 /jsEngine/api/API.ts#L26 )
128
128
129
129
***
130
130
@@ -136,7 +136,7 @@ API to interact with the plugins message system.
136
136
137
137
#### Defined in
138
138
139
- [ jsEngine/api/API.ts:30] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/e96ff61292c9e90d57d921fab05d7cb5220aa91b /jsEngine/api/API.ts#L30 )
139
+ [ jsEngine/api/API.ts:30] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/1f0648da628182867a83f5d8f76c6abab1f05793 /jsEngine/api/API.ts#L30 )
140
140
141
141
***
142
142
@@ -148,7 +148,7 @@ Reference the JS Engine plugin.
148
148
149
149
#### Defined in
150
150
151
- [ jsEngine/api/API.ts:21] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/e96ff61292c9e90d57d921fab05d7cb5220aa91b /jsEngine/api/API.ts#L21 )
151
+ [ jsEngine/api/API.ts:21] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/1f0648da628182867a83f5d8f76c6abab1f05793 /jsEngine/api/API.ts#L21 )
152
152
153
153
***
154
154
@@ -158,7 +158,7 @@ Reference the JS Engine plugin.
158
158
159
159
#### Defined in
160
160
161
- [ jsEngine/api/API.ts:39] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/e96ff61292c9e90d57d921fab05d7cb5220aa91b /jsEngine/api/API.ts#L39 )
161
+ [ jsEngine/api/API.ts:39] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/1f0648da628182867a83f5d8f76c6abab1f05793 /jsEngine/api/API.ts#L39 )
162
162
163
163
***
164
164
@@ -170,7 +170,7 @@ API to query your vault with simple javascript functions.
170
170
171
171
#### Defined in
172
172
173
- [ jsEngine/api/API.ts:38] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/e96ff61292c9e90d57d921fab05d7cb5220aa91b /jsEngine/api/API.ts#L38 )
173
+ [ jsEngine/api/API.ts:38] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/1f0648da628182867a83f5d8f76c6abab1f05793 /jsEngine/api/API.ts#L38 )
174
174
175
175
## Methods
176
176
@@ -218,7 +218,7 @@ the id of the plugin.
218
218
219
219
#### Defined in
220
220
221
- [ jsEngine/api/API.ts:80 ] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/e96ff61292c9e90d57d921fab05d7cb5220aa91b /jsEngine/api/API.ts#L80 )
221
+ [ jsEngine/api/API.ts:85 ] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/1f0648da628182867a83f5d8f76c6abab1f05793 /jsEngine/api/API.ts#L85 )
222
222
223
223
***
224
224
@@ -227,6 +227,10 @@ the id of the plugin.
227
227
> ** importJs** (` path ` ): [ ` Promise ` ] ( https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise ) \< ` unknown ` \>
228
228
229
229
Loads an ECMAScript module from a vault relative path.
230
+ Everything you import via this function will be loaded as an ECMAScript module.
231
+
232
+ Since imports are cached by the browser (aka Obsidian),
233
+ you might need to reload Obsidian to see changes made to the imported file.
230
234
231
235
#### Parameters
232
236
@@ -265,7 +269,7 @@ the vault relative path of the file to import
265
269
266
270
#### Defined in
267
271
268
- [ jsEngine/api/API.ts:63 ] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/e96ff61292c9e90d57d921fab05d7cb5220aa91b /jsEngine/api/API.ts#L63 )
272
+ [ jsEngine/api/API.ts:67 ] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/1f0648da628182867a83f5d8f76c6abab1f05793 /jsEngine/api/API.ts#L67 )
269
273
270
274
***
271
275
@@ -330,4 +334,4 @@ the initial arguments (for the first render) to pass to the function.
330
334
331
335
#### Defined in
332
336
333
- [ jsEngine/api/API.ts:91 ] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/e96ff61292c9e90d57d921fab05d7cb5220aa91b /jsEngine/api/API.ts#L91 )
337
+ [ jsEngine/api/API.ts:96 ] ( https://github.com/mProjectsCode/obsidian-js-engine-plugin/blob/1f0648da628182867a83f5d8f76c6abab1f05793 /jsEngine/api/API.ts#L96 )
0 commit comments