How to use the sprotty/lib/base.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-app / src / frontend / multicore / src / chipmodel-factory.ts View on Github external
isChannelSchema(schema: SModelElementSchema): schema is ChannelSchema {
        return getBasicType(schema) === 'channel'
    }
github theia-ide / theia-sprotty-example / theia-app / src / frontend / multicore / src / chipmodel-factory.ts View on Github external
isProcessorSchema(schema: SModelElementSchema): schema is ProcessorSchema {
        return getBasicType(schema) === 'processor'
    }
github theia-ide / theia-sprotty-example / theia-app / src / frontend / multicore / src / 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-app / src / frontend / multicore / src / chipmodel-factory.ts View on Github external
isHtmlRootSchema(schema: SModelElementSchema): schema is HtmlRootSchema {
        return getBasicType(schema) === 'html'
    }
github theia-ide / theia-sprotty-example / theia-app / src / frontend / multicore / src / chipmodel-factory.ts View on Github external
isCrossbarSchema(schema: SModelElementSchema): schema is CrossbarSchema {
        return getBasicType(schema) === 'crossbar'
    }
github theia-ide / theia-sprotty-example / theia-app / src / frontend / multicore / src / chipmodel-factory.ts View on Github external
isPreRenderedSchema(schema: SModelElementSchema): schema is PreRenderedElementSchema {
        return getBasicType(schema) === 'pre-rendered'
    }
}