Skip to content

Commit d97f393

Browse files
Add setSource in stl & step plugin to fix lite deployment (#692)
* Add setSource in stl & step plugin * Update python/jupytercad_core/src/stepplugin/model.ts Co-authored-by: martinRenou <[email protected]> * iterate --------- Co-authored-by: martinRenou <[email protected]>
1 parent 6faab07 commit d97f393

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

python/jupytercad_core/src/stepplugin/model.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ export class JupyterCadStepDoc extends JupyterCadDoc {
5656
];
5757
}
5858

59+
setSource(value: string): void {
60+
this._source.insert(0, value);
61+
}
62+
5963
static create(): JupyterCadStepDoc {
6064
return new JupyterCadStepDoc();
6165
}

python/jupytercad_core/src/stlplugin/model.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ export class JupyterCadStlDoc extends JupyterCadDoc {
5656
];
5757
}
5858

59+
setSource(value: string): void {
60+
this._source.insert(0, value);
61+
}
62+
5963
static create(): JupyterCadStlDoc {
6064
return new JupyterCadStlDoc();
6165
}

0 commit comments

Comments
 (0)