MCPcopy
hub / github.com/GrapesJS/grapesjs / drawInitial

Function drawInitial

packages/core/src/utils/ColorPicker.ts:603–609  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

601 }
602
603 function drawInitial() {
604 if (opts.showInitial) {
605 var initial = colorOnShow;
606 var current = get();
607 initialColorContainer.html(paletteTemplate([initial, current], current, 'sp-palette-row-initial', opts));
608 }
609 }
610
611 function dragStart() {
612 if (dragHeight <= 0 || dragWidth <= 0 || slideHeight <= 0) {

Callers 2

showFunction · 0.85
updateUIFunction · 0.85

Calls 2

paletteTemplateFunction · 0.85
getFunction · 0.70

Tested by

no test coverage detected