Tool.js 304 B

12345678910111213141516
  1. import React from 'react';
  2. export default class Tool {
  3. constructor(){
  4. this.active = false;
  5. }
  6. editViewNode(CS,node){
  7. console.log("You must override this function with your custom tool")
  8. }
  9. render(props) {
  10. throw new Error("You must extend this base Module and override render method!");
  11. }
  12. }