How to use the sprotty/lib.getBasicType function in sprotty

To help you get started, we’ve selected a few sprotty examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github theia-ide / theia-sprotty-example / theia-dsl-extension / src / browser / flow / flowmodel-factory.ts View on Github external
isPreRenderedSchema(schema: SModelElementSchema): schema is PreRenderedElementSchema {
        return getBasicType(schema) === 'pre-rendered'
    }
}
github theia-ide / theia-sprotty-example / theia-dsl-extension / src / browser / processor / chipmodel-factory.ts View on Github external
isProcessorSchema(schema: SModelElementSchema): schema is ProcessorSchema {
        return getBasicType(schema) === 'processor'
    }
github theia-ide / theia-sprotty-example / theia-dsl-extension / src / browser / processor / chipmodel-factory.ts View on Github external
isCoreSchema(schema: SModelElementSchema): schema is CoreSchema {
        const basicType = getBasicType(schema)
        return basicType === 'core' || basicType === 'simplecore'
    }
github theia-ide / theia-sprotty-example / theia-dsl-extension / src / browser / flow / flowmodel-factory.ts View on Github external
isHtmlRootSchema(schema: SModelElementSchema): schema is HtmlRootSchema {
        return getBasicType(schema) === 'html'
    }
github theia-ide / yangster / theia-yang-extension / src / frontend / yangdiagram / model-factory.ts View on Github external
isHtmlRootSchema(schema: SModelElementSchema): schema is HtmlRootSchema {
        return getBasicType(schema) === 'html'
    }
github theia-ide / yangster / theia-yang-extension / src / frontend / yangdiagram / model-factory.ts View on Github external
isYangLabelSchema(schema: SModelElementSchema): schema is SLabelSchema {
        return getBasicType(schema) === 'ylabel'
    }
github theia-ide / yangster / theia-yang-extension / src / frontend / yangdiagram / model-factory.ts View on Github external
isPreRenderedSchema(schema: SModelElementSchema): schema is PreRenderedElementSchema {
        return getBasicType(schema) === 'pre-rendered'
    }