js-package/src/jsMain/kotlin/tools/DefaultToolbarJs.kt [77:84]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - fun bind(figure: FigureModelJs) { check(this.figure == null) { "Toolbar is already bound to another figure." } this.figure = figure figure.onToolEvent { e: dynamic -> val event = dynamicObjectToMap(e) controller.handleToolFeedback(event) } } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - js-package/src/jsMain/kotlin/tools/SandboxToolbarJs.kt [50:57]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - fun bind(figure: FigureModelJs) { check(this.figure == null) { "Toolbar is already bound to another figure." } this.figure = figure figure.onToolEvent { e: dynamic -> val event = dynamicObjectToMap(e) controller.handleToolFeedback(event) } } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -