2018-04-21 19:25:43 +02:00
|
|
|
/// <reference path="../node_modules/pxt-core/built/pxteditor.d.ts"/>
|
|
|
|
/// <reference path="../node_modules/pxt-core/built/pxtsim.d.ts"/>
|
|
|
|
|
2018-05-25 02:09:08 +02:00
|
|
|
import { FieldGestures } from "./field_gestures";
|
|
|
|
|
2018-04-21 19:25:43 +02:00
|
|
|
pxt.editor.initFieldExtensionsAsync = function (opts: pxt.editor.FieldExtensionOptions): Promise<pxt.editor.FieldExtensionResult> {
|
|
|
|
pxt.debug('loading pxt-microbit field editors...')
|
|
|
|
const res: pxt.editor.FieldExtensionResult = {
|
2018-05-25 02:09:08 +02:00
|
|
|
fieldEditors: [{
|
|
|
|
selector: "gestures",
|
|
|
|
editor: FieldGestures
|
|
|
|
}]
|
2018-04-21 19:25:43 +02:00
|
|
|
};
|
|
|
|
return Promise.resolve<pxt.editor.FieldExtensionResult>(res);
|
|
|
|
}
|