14 lines
595 B
TypeScript
14 lines
595 B
TypeScript
|
/// <reference path="../node_modules/pxt-core/built/pxteditor.d.ts"/>
|
||
|
/// <reference path="../node_modules/pxt-core/built/pxtsim.d.ts"/>
|
||
|
import { FieldMatrix } from "./fieldMatrix";
|
||
|
|
||
|
pxt.editor.initFieldExtensionsAsync = function (opts: pxt.editor.FieldExtensionOptions): Promise<pxt.editor.FieldExtensionResult> {
|
||
|
pxt.debug('loading pxt-microbit field editors...')
|
||
|
const res: pxt.editor.FieldExtensionResult = {
|
||
|
fieldEditors: [{
|
||
|
selector: "matrix",
|
||
|
editor: FieldMatrix
|
||
|
}]
|
||
|
};
|
||
|
return Promise.resolve<pxt.editor.FieldExtensionResult>(res);
|
||
|
}
|