The import csTools from 'cornerstone - tools';
Const BaseTool=csTools. ImportInternal (' base/BaseTool ');
//NOTE: if you 'r e creating a tool inside the CornerstoneTools repository
//you can import BaseTool directly from ` SRC/tools/base `.
Export the default class HelloWorldTool extends BaseTool {
The constructor (name='HelloWorld) {
Super ({
The name,
SupportedInteractionTypes: [' Mouse '],
});
}
}
What is this grammar, what language is this, source code: https://tools.cornerstonejs.org/custom-tools/#creating-your-tool
Question 2:
Cornerstone study how the plug-in, the appearance of the official website as if not all, after similar plugins, how much more easy to use, faster can master,
CodePudding user response:
Question 1, ES6 grammar, Javascript, keywords impore const export extends superQuestion 2, never used