dockview-core
Version:
Zero dependency layout manager supporting tabs, grids and splitviews
44 lines (43 loc) • 1.75 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.createChevronRightButton = exports.createExpandMoreButton = exports.createCloseButton = void 0;
var createSvgElementFromPath = function (params) {
var svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
svg.setAttributeNS(null, 'height', params.height);
svg.setAttributeNS(null, 'width', params.width);
svg.setAttributeNS(null, 'viewBox', params.viewbox);
svg.setAttributeNS(null, 'aria-hidden', 'false');
svg.setAttributeNS(null, 'focusable', 'false');
svg.classList.add('dv-svg');
var path = document.createElementNS('http://www.w3.org/2000/svg', 'path');
path.setAttributeNS(null, 'd', params.path);
svg.appendChild(path);
return svg;
};
var createCloseButton = function () {
return createSvgElementFromPath({
width: '11',
height: '11',
viewbox: '0 0 28 28',
path: 'M2.1 27.3L0 25.2L11.55 13.65L0 2.1L2.1 0L13.65 11.55L25.2 0L27.3 2.1L15.75 13.65L27.3 25.2L25.2 27.3L13.65 15.75L2.1 27.3Z',
});
};
exports.createCloseButton = createCloseButton;
var createExpandMoreButton = function () {
return createSvgElementFromPath({
width: '11',
height: '11',
viewbox: '0 0 24 15',
path: 'M12 14.15L0 2.15L2.15 0L12 9.9L21.85 0.0499992L24 2.2L12 14.15Z',
});
};
exports.createExpandMoreButton = createExpandMoreButton;
var createChevronRightButton = function () {
return createSvgElementFromPath({
width: '11',
height: '11',
viewbox: '0 0 15 25',
path: 'M2.15 24.1L0 21.95L9.9 12.05L0 2.15L2.15 0L14.2 12.05L2.15 24.1Z',
});
};
exports.createChevronRightButton = createChevronRightButton;
;