MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / insertFloatSliderHere

Function insertFloatSliderHere

lib/web/drags.js:572–577  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

570};
571
572var insertFloatSliderHere = function () {
573 var selection_start = cm.getCursor("from");
574 cm.replaceRange(" 0.0 ", selection_start); // we pad with spaces, otherwise when we replace this text we blow away our widget as well
575 var selection_end = cm.getCursor("to");
576 return insertFloatSlider(selection_start, selection_end);
577};
578
579var insertFloatSliderAtSelection = function () {
580 var selection_start = cm.getCursor("from");

Callers 1

Calls 2

insertFloatSliderFunction · 0.85
replaceRangeMethod · 0.80

Tested by

no test coverage detected