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

Function insert4GraphSliderHere

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

Source from the content-addressed store, hash-verified

896};
897
898var insert4GraphSliderHere = function () {
899 var selection_start = cm.getCursor("from");
900 cm.replaceRange(" [[0.0,0.0],[0.333,0.333],[0.666,0.666],[1,1]] ", selection_start); // we pad with spaces, otherwise when we replace
901 // this text we blow away our widget
902 // as well
903 var selection_end = cm.getCursor("to");
904 return insert4GraphSlider(selection_start, selection_end);
905};
906
907var insert4GraphSliderAtSelection = function () {
908 var selection_start = cm.getCursor("from");

Callers 1

Calls 2

insert4GraphSliderFunction · 0.85
replaceRangeMethod · 0.80

Tested by

no test coverage detected