File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -304,6 +304,15 @@ function fontWeight(hUIElement, weight)
304
304
[~ ,tmp ] = mlapptools .getWidgetList( ancestor(hUIElement ,' figure' ) );
305
305
widgetID = arrayfun(@(x )WidgetID(mlapptools .DEF_ID_ATTRIBUTE , x ), ...
306
306
string(tmp .id(contains(tmp .id , TAB_PREFIX ))));
307
+ case ' axes'
308
+ % For uiaxes we return the <canvas> object. This canvas has a context
309
+ % of type "webgl".
310
+ % See also: https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API
311
+ warning([' UIAxes object detected. Returning the innermost <canvas> element. ' ...
312
+ ' Be advised that mlapptools cannot modify this element, which ' ...
313
+ ' instead requires using WebGL commands via `hWin.executeJS(...)`.' ]);
314
+ widgetID = mlapptools .getDecendentOfType( ...
315
+ hWin , mlapptools .getDataTag(hUIElement ), ' canvas' );
307
316
otherwise % default:
308
317
widgetID = mlapptools .getWidgetID(hWin , mlapptools .getDataTag(hUIElement ));
309
318
end
You can’t perform that action at this time.
0 commit comments