const separator = '';
const top = `
10
15
10
10
1
1
10
`;
const motion = `
10
15
15
90
0
0
1
0
0
1
10
0
10
0
`;
const looks = `
10
10
10
100
1
`;
const sound = `
0.25
0.25
60
0.5
10
100
-10
100
20
60
`;
const events = `
10
`;
const control = `
1
10
`;
const sensing = `
`;
const operators = `
1
10
hello
world
1
world
world
`;
const data = `
`;
const xmlOpen = '';
const xmlClose = '';
/**
* @param {string?} categoriesXML - null for default toolbox, or an XML string with elements.
* @returns {string} - a ScratchBlocks-style XML document for the contents of the toolbox.
*/
const makeToolboxXML = function (categoriesXML) {
const gap = [separator];
const everything = [
xmlOpen,
top, gap,
motion, gap,
looks, gap,
sound, gap,
pen, gap,
data, gap,
events, gap,
control, gap,
sensing, gap,
pen, gap,
operators, gap,
data
];
if (categoriesXML) {
everything.push(gap, categoriesXML);
}
everything.push(xmlClose);
return everything.join('\n');
};
export default makeToolboxXML;