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

Function insert14GraphSliderHere

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

Source from the content-addressed store, hash-verified

1131};
1132
1133var insert14GraphSliderHere = function () {
1134 var selection_start = cm.getCursor("from");
1135 cm.replaceRange(" [0, 0.3333, 0.6666, 1] ", selection_start); // we pad with spaces, otherwise when we replace
1136 // this text we blow away our widget
1137 // as well
1138 var selection_end = cm.getCursor("to");
1139 return insert14GraphSlider(selection_start, selection_end);
1140};
1141
1142var insert14GraphSliderAtSelection = function () {
1143 var selection_start = cm.getCursor("from");

Callers 1

Calls 2

insert14GraphSliderFunction · 0.85
replaceRangeMethod · 0.80

Tested by

no test coverage detected