Format code in some comments
parent
27d81db92b
commit
955df74aec
|
@ -126,8 +126,8 @@ context('tool tests', () => {
|
|||
});
|
||||
};
|
||||
|
||||
// const gesture = (points)=> {
|
||||
// const options = {secondary: false, shift: false};
|
||||
// const gesture = (points) => {
|
||||
// const options = { secondary: false, shift: false };
|
||||
// // @TODO: while loop
|
||||
// trigger("pointerenter", points[0].x, points[0].y, options);
|
||||
// trigger("pointerdown", points[0].x, points[0].y, options);
|
||||
|
@ -141,15 +141,15 @@ context('tool tests', () => {
|
|||
|
||||
// it('brush tool', () => {
|
||||
// cy.get(".tool[title='Brush']").click();
|
||||
// // gesture([{x: 50, y: 50}, {x: 100, y: 100}]);
|
||||
// // gesture([{ x: 50, y: 50 }, { x: 100, y: 100 }]);
|
||||
// cy.get(".swatch:nth-child(21)").rightclick();
|
||||
// cy.window().then({timeout: 8000}, async (win)=> {
|
||||
// for (let secondary=0; secondary<=1; secondary++) {
|
||||
// for (let b=0; b<12; b++) {
|
||||
// win.$(`.chooser > :nth-child(${b+1})`).click();
|
||||
// const start = {x: 0.05 + b*0.05, y: 0.1 + 0.1*secondary};
|
||||
// const end = {x: start.x + 0.04, y: start.y + 0.04};
|
||||
// await simulateGesture(win, {shift: false, secondary: !!secondary, start, end});
|
||||
// cy.window().then({ timeout: 8000 }, async (win) => {
|
||||
// for (let secondary = 0; secondary <= 1; secondary++) {
|
||||
// for (let b = 0; b < 12; b++) {
|
||||
// win.$(`.chooser > :nth-child(${b + 1})`).click();
|
||||
// const start = { x: 0.05 + b * 0.05, y: 0.1 + 0.1 * secondary };
|
||||
// const end = { x: start.x + 0.04, y: start.y + 0.04 };
|
||||
// await simulateGesture(win, { shift: false, secondary: !!secondary, start, end });
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
|
@ -159,7 +159,7 @@ context('tool tests', () => {
|
|||
// @TODO: test transparent document mode
|
||||
it(`eraser tool`, () => {
|
||||
cy.get(`.tool[title='Eraser/Color Eraser']`).click();
|
||||
// gesture([{x: 50, y: 50}, {x: 100, y: 100}]);
|
||||
// gesture([{ x: 50, y: 50 }, { x: 100, y: 100 }]);
|
||||
cy.window().then({ timeout: 60000 }, async (win) => {
|
||||
for (let row = 0; row < 4; row++) {
|
||||
const secondary = !!(row % 2);
|
||||
|
@ -194,7 +194,7 @@ context('tool tests', () => {
|
|||
["Brush", "Pencil", "Rectangle", "Rounded Rectangle", "Ellipse", "Line"].forEach((toolName) => {
|
||||
it(`${toolName.toLowerCase()} tool`, () => {
|
||||
cy.get(`.tool[title='${toolName}']`).click();
|
||||
// gesture([{x: 50, y: 50}, {x: 100, y: 100}]);
|
||||
// gesture([{ x: 50, y: 50 }, { x: 100, y: 100 }]);
|
||||
cy.get(".swatch:nth-child(22)").rightclick();
|
||||
cy.window().then({ timeout: 60000 }, async (win) => {
|
||||
for (let row = 0; row < 4; row++) {
|
||||
|
|
12
index.html
12
index.html
|
@ -118,10 +118,11 @@
|
|||
<!-- <article class="news-entry" id="news-2021-saving">
|
||||
<h1>The Savior Update</h1>
|
||||
<time datetime=""></time>
|
||||
<img width="" height="" style="max-width: 100%; height: auto; image-rendering: auto;" alt="" src=""/>
|
||||
<img width="" height="" style="max-width: 100%; height: auto; image-rendering: auto;" alt="" src="" />
|
||||
<p>
|
||||
<b>Save</b> (<kbd>Ctrl+S</kbd>) can now save over the open file, in Chrome, Edge, and Opera browsers.
|
||||
This works using new <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API">File System Access API</a>.
|
||||
This works using new <a target="_blank"
|
||||
href="https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API">File System Access API</a>.
|
||||
Always use <b>Save As</b> (<kbd>Ctrl+Shift+S</kbd>) if you want to save a new file.
|
||||
</p>
|
||||
<p>
|
||||
|
@ -151,12 +152,13 @@
|
|||
<b>Colors > Save Colors</b> also now asks for a file name and format.
|
||||
An absurd number of file formats are supported.
|
||||
You can even export CSS variables for use in a web design project.
|
||||
RIFF Palette (*.pal) is compatible with MS Paint, and GIMP Palette (*.gpl) is compatible with many open source graphics programs such as Inkscape and Krita.
|
||||
RIFF Palette (*.pal) is compatible with MS Paint, and GIMP Palette (*.gpl) is compatible with many open source
|
||||
graphics programs such as Inkscape and Krita.
|
||||
</p>
|
||||
<p>
|
||||
You can find lots of palettes to use on <a target="_blank" href="https://lospec.com/palette-list">Lospec</a>.
|
||||
Download a palette as GIMP GPL (or several other formats) and use <b>Colors > Get Colors</b> and select the file,
|
||||
or simply drag and drop the file onto JS Paint to load the palette.
|
||||
Download a palette as GIMP GPL (or several other formats) and use <b>Colors > Get Colors</b> and select
|
||||
the file, or simply drag and drop the file onto JS Paint to load the palette.
|
||||
</p>
|
||||
</article> -->
|
||||
<article class="news-entry" id="news-2021-saving">
|
||||
|
|
Loading…
Reference in New Issue