-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
285 lines (285 loc) · 10.2 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
{
"name": "manim-notebook",
"displayName": "Manim Notebook",
"description": "ManimGL with interactive previewing to easily visualize and share the beauty of mathematics and related fields.",
"version": "0.0.4",
"publisher": "Manim-Notebook",
"author": {
"name": "Manim Notebook Contributors"
},
"license": "SEE LICENSE IN LICENSE.txt",
"homepage": "https://github.com/Manim-Notebook/manim-notebook",
"bugs": "https://github.com/Manim-Notebook/manim-notebook/issues",
"keywords": [
"Manim",
"ManimGL",
"3Blue1Brown",
"notebook",
"animation"
],
"engines": {
"vscode": "^1.93.0"
},
"categories": [
"Visualization",
"Notebooks",
"Education"
],
"qna": false,
"activationEvents": [
"onLanguage:python"
],
"main": "./out/src/extension.js",
"contributes": {
"commands": [
{
"command": "manim-notebook.previewManimCell",
"title": "Preview active Manim Cell",
"category": "Manim Notebook"
},
{
"command": "manim-notebook.reloadAndPreviewManimCell",
"title": "Reload and Preview active Manim Cell",
"category": "Manim Notebook"
},
{
"command": "manim-notebook.previewSelection",
"title": "Preview selected Manim code",
"category": "Manim Notebook"
},
{
"command": "manim-notebook.startScene",
"title": "Start scene at cursor",
"category": "Manim Notebook"
},
{
"command": "manim-notebook.exitScene",
"title": "Quit preview",
"category": "Manim Notebook"
},
{
"command": "manim-notebook.clearScene",
"title": "Remove all objects from scene",
"category": "Manim Notebook"
},
{
"command": "manim-notebook.recordLogFile",
"title": "Record Log File",
"category": "Manim Notebook"
},
{
"command": "manim-notebook.openWalkthrough",
"title": "Open Walkthrough",
"category": "Manim Notebook"
},
{
"command": "manim-notebook.exportScene",
"title": "Export current scene as CLI command",
"category": "Manim Notebook"
},
{
"command": "manim-notebook.redetectManimVersion",
"title": "Redetect Manim version",
"category": "Manim Notebook"
}
],
"keybindings": [
{
"command": "manim-notebook.previewManimCell",
"key": "ctrl+' ctrl+e",
"mac": "cmd+' cmd+e",
"when": "(editorTextFocus || terminalFocus) && editorLangId == 'python'"
},
{
"command": "manim-notebook.previewSelection",
"key": "ctrl+' ctrl+r",
"mac": "cmd+' cmd+r",
"when": "(editorTextFocus || terminalFocus) && editorLangId == 'python'"
},
{
"command": "manim-notebook.startScene",
"key": "ctrl+' ctrl+s",
"mac": "cmd+' cmd+s",
"when": "(editorTextFocus || terminalFocus) && editorLangId == 'python'"
},
{
"command": "manim-notebook.exitScene",
"key": "ctrl+' ctrl+w",
"mac": "cmd+' cmd+w"
},
{
"command": "manim-notebook.clearScene",
"key": "ctrl+' ctrl+c",
"mac": "cmd+' cmd+c"
}
],
"configuration": {
"title": "Manim Notebook",
"properties": {
"manim-notebook.autoreload": {
"type": "boolean",
"default": "true",
"markdownDescription": "If enabled, Manim will be startup with the `--autoreload` flag, such that your imported Python modules are reloaded automatically in the background. For this feature, ManimGL 1.7.2 or newer is required."
},
"manim-notebook.clipboardTimeout": {
"type": "number",
"default": 650,
"markdownDescription": "Configures the number of milliseconds (ms) to wait before your clipboard is restored. (Your clipboard is used to temporarily copy the selected code to be accessible by Manim)."
},
"manim-notebook.confirmKillingActiveSceneToStartNewOne": {
"type": "boolean",
"default": true,
"markdownDescription": "If enabled, you will be prompted to confirm killing an old session when you want to start a new scene at the cursor while an active scene is running."
},
"manim-notebook.delayNewTerminal": {
"type": "number",
"default": 0,
"markdownDescription": "Number of milliseconds (ms) to wait before executing any command in a newly opened terminal. This is useful when you have custom terminal startup commands that need to be executed before running Manim, e.g. a virtual environment activation (Python venv)."
},
"manim-notebook.showCellBorders": {
"type": "boolean",
"default": true,
"markdownDescription": "If enabled, Manim cells will have a border around them (top and bottom)."
},
"manim-notebook.typesetStartCommentInBold": {
"type": "boolean",
"default": true,
"markdownDescription": "If enabled, the start comment of each cell (comment that begins with `##`) will be typeset in bold."
}
}
},
"colors": [
{
"id": "manimNotebookColors.baseColor",
"description": "Base color used for the Manim cell border and the respective start comment (comment that begins with `##`).",
"defaults": {
"dark": "#64A4ED",
"light": "#2B7BD6",
"highContrast": "#75B6FF",
"highContrastLight": "#216CC2"
}
},
{
"id": "manimNotebookColors.unfocused",
"description": "Color used for the Manim cell border when the cell is not focused.",
"defaults": {
"dark": "#39506B",
"light": "#DCE9F7",
"highContrast": "#3C5878",
"highContrastLight": "#C3DDF7"
}
}
],
"walkthroughs": [
{
"id": "manim-notebook-walkthrough",
"title": "Manim Notebook",
"description": "Welcome 👋 Get to know how to make the best out of Manim Notebook.",
"steps": [
{
"id": "checkManimInstallation",
"title": "Check Manim Installation",
"description": "Let's see if you have installed ManimGL.\n[Check Manim version](command:manim-notebook.redetectManimVersion)\n[Open installation guide](https://3b1b.github.io/manim/getting_started/installation.html)",
"media": {
"markdown": "src/walkthrough/manim-installation.md"
},
"completionEvents": [
"onCommand:manim-notebook.redetectManimVersion"
]
},
{
"id": "startExample",
"title": "Start with an example",
"description": "Open an example file to see how Manim Notebook works.\n[Open Sample](command:manim-notebook-walkthrough.openSample)",
"media": {
"svg": "src/walkthrough/preview-cell.svg",
"altText": "Preview Manim Cell"
},
"completionEvents": [
"onCommand:manim-notebook-walkthrough.openSample"
]
},
{
"id": "showAllAvailableCommands",
"title": "Show all available commands",
"description": "Get a list of all available commands in Manim Notebook.\n[Show Commands](command:manim-notebook-walkthrough.showCommands)",
"media": {
"svg": "src/walkthrough/commands.svg",
"altText": "Manim Notebook commands"
},
"completionEvents": [
"onCommand:manim-notebook-walkthrough.showCommands"
]
},
{
"id": "showKeyboardShortcuts",
"title": "Show keyboard shortcuts",
"description": "See all available keyboard shortcuts in Manim Notebook and modify them to whatever you like.\n[Show Shortcuts](command:manim-notebook-walkthrough.showShortcuts)",
"media": {
"svg": "src/walkthrough/shortcuts.svg",
"altText": "Manim Notebook keyboard shortcuts"
},
"completionEvents": [
"onCommand:manim-notebook-walkthrough.showShortcuts"
]
},
{
"id": "showSettings",
"title": "Show settings",
"description": "Customize your Manim Notebook experience by changing settings.\n[Show Settings](command:manim-notebook-walkthrough.showSettings)",
"media": {
"svg": "src/walkthrough/settings.svg",
"altText": "Manim Notebook settings"
},
"completionEvents": [
"onCommand:manim-notebook-walkthrough.showSettings"
]
},
{
"id": "openWiki",
"title": "Open Wiki",
"description": "Learn more about Manim Notebook on the GitHub Wiki.\n[Open Wiki](command:manim-notebook-walkthrough.openWiki)",
"media": {
"svg": "src/walkthrough/wiki.svg",
"altText": "Manim Notebook Wiki"
},
"completionEvents": [
"onCommand:manim-notebook-walkthrough.openWiki"
]
}
]
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc --project .config/tsconfig.paths.json",
"watch": "tsc --project .config/tsconfig.paths.json -watch",
"lint": "eslint src --config ./.config/eslint.mjs",
"install-manim": "node ./out/tests/utils/installManim.js",
"pretest": "npm run compile && npm run install-manim",
"test": "node ./out/tests/main.js",
"testInGithubActions": "node ./out/tests/main.js"
},
"devDependencies": {
"@stylistic/eslint-plugin": "^2.12.1",
"@types/node": "^22.10.2",
"@types/sinon": "^17.0.3",
"@types/vscode": "^1.96.0",
"@typescript-eslint/parser": "^8.18.2",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"eslint": "^9.17.0",
"glob": "^11.0.0",
"globals": "^15.14.0",
"mocha": "^11.0.1",
"sinon": "^19.0.2",
"source-map-support": "^0.5.21",
"typescript": "^5.7.2"
},
"repository": {
"type": "git",
"url": "https://github.com/Manim-Notebook/manim-notebook.git"
},
"icon": "assets/logo.png"
}