id
stringclasses
20 values
date
timestamp[s]date
2025-05-12 00:00:00
2025-05-12 00:00:00
level
stringclasses
4 values
description
stringlengths
28
5.03k
task-1
2025-05-12T00:00:00
easy
- Check or uncheck `#axes` to create `LineChart` instance `chart` with config whose attributes values: - type: the value of `#type`, default is `line` - id: `{type}Chart` - data: imported from `./assets/data.js` - options: - axes: the `checked` value of `#axes` - Call `chart.draw()` - Clear `#chart`, append `chart.svg` to `#chart` - Save codes as a function `createChart()` in `index.js`
task-2
2025-05-12T00:00:00
easy
Check or uncheck `#grids` to create `LineChart` instance: - reuse function `createChart()` - add new `options` attribute: - grids: the `checked` value of `#grids`
task-3
2025-05-12T00:00:00
easy
Select one or more `#datasets` options to create `LineChart` instance: - reuse function `createChart()` - filter `config.data.datasets` whose item (dataset) `label` value is selected
task-4
2025-05-12T00:00:00
moderate
- Check or uncheck `#legends` to create `LineChart` instance: - reuse function `createChart()` - add new `options` attribute: - legends: the `checked` value of `#legends` - In `./common/Chart.js`, when `options.legends` is true or not defined: - append g element (class `legends`) on the top of `svg` - append g element (class `legend legend-{index}`) in `.legends` - append circle (color is the same as `.dataset` line color) and text (content `dataset.label`) in each `.legend` - In `./common/Chart.js` and `./common/LineChart.js`, when `options.legends` is true or not defined: - reduce `.datasets` lines height - reduce `.axes-y` axis-y height, update axis-y labels position - and make `.legends`, `.datasets`, `.axes-x` and `.axes-y` fill the entire `svg` space
task-5
2025-05-12T00:00:00
moderate
- Check or uncheck `#dataLabels` to create `LineChart` instance: - reuse function `createChart()` - add new `options` attribute: - dataLabels: the `checked` value of `#dataLabels` - In `./common/LineChart.js`, when `options.pointStyle` is `circle` or `rect`: - append g element (class `points points-{index}`) inside `svg` for each `dataset` - append points (each class `point point-{index}`, shape is `options.pointStyle`) inside `.points` for each item of `dataset.data` - each point covers the `.dataset` line, distributes from left to right - each point color is the same as `.dataset` line color
task-6
2025-05-12T00:00:00
moderate
- Select `#pointStyle` to create `LineChart` instance: - reuse function `createChart()` - add new `options` attribute: - pointStyle: the value of `#pointStyle` - In `./common/LineChart.js`, when `options.pointStyle` is `circle` or `rect`: - append g element (class `points points-{index}`) inside `svg` for each `dataset` - append points (each class `point point-{index}`, shape is `options.pointStyle`) inside `.points` for each item of `dataset.data` - each point covers the `.dataset` line, distributes from left to right - each point color is the same as `.dataset` line color
task-7
2025-05-12T00:00:00
challenging
In `./common/LineChart.js`: - append an initially hidden g element (class `tooltips hidden`) inside `svg` - when mouse hovers over the `.datasets` area in `svg`, display `.tooltips` near the mouse position - select the `.grid-x` (class `selected`) that is horizontally closest to the mouse - append rect element (class `bg`) inside `.tooltips` - in `.tooltips`, show all data items from the `.dataset` that corresponds to the selected `.grid-x` - when mouse not hovers over `.datasets` area in `svg`, hide `.tooltips` (add class `hidden`)
task-8
2025-05-12T00:00:00
challenging
- In `./common/SmoothLineChart.js`, class `SmoothLineChart` inherits from `LineChart`, `SmoothLineChart`: - replace all polylines with smooth curved lines inside `.datasets` - Select the option `SmoothLine Chart` of `#type` to create `SmoothLineChart` instance
task-9
2025-05-12T00:00:00
moderate
In `./common/Chart.js`, when click legend: - show (remove class `hidden`) or hide (add class `hidden`) `.dataset` lines, dataLabels, points
task-10
2025-05-12T00:00:00
challenging
-In `./common/ScatterChart.js`, class `ScatterChart` inherits from `LineChart`, `ScatterChart`: - options.pointStyle is default circle - options.dataLabels is always true - all `.dataset` lines are hidden - Select the option `Scatter Chart` of `#type` to create `ScatterChart` instance, and make `#dataLabels` disabled
task-11
2025-05-12T00:00:00
challenging
-In `./common/StepChart.js`, class `StepChart` inherits from `LineChart`, `StepChart`: - replace all polylines with step style polylines inside `.datasets` - in each step style polyline: - each `dataset.data` responds to a horizontal line segment whose width is the distance between two near grid-x - the first and the last line segment width is the half - connect all line segments to a step style polyline - Select the option `Step Chart` of `#type` to create `StepChart` instance
task-12
2025-05-12T00:00:00
challenging
- In `./common/AreaChart.js`, class `AreaChart` inherits from `LineChart`, `AreaChart`: - append g element (class `areas`) inside `svg` - append polygons (each class `area area-{index}`) inside `.areas` - each `.area` is below the `.dataset` line - each `.area` color is the same as `.dataset` line color, half transparent - Select the option `Area Chart` of `#type` to create `AreaChart` instance
task-13
2025-05-12T00:00:00
challenging
- In `./common/BarChart.js`, class `BarChart` inherits from `Chart`, `BarChart`: - there is 1 more grid-x line than LineChart, all the grid-x lines are evenly distributed in `.grids` - axis-x labels are placed between 2 adjacent grids below the `.axis-x` - append g element (class `datasets`) inside `svg` and make it fill the entire `svg` (no padding between them) - append g element (class `dataset dataset-${index}`) inside `.datasets` for each `datasets` item - append bars (rect elements, class `bar bar-{index}`) with the same color inside `.dataset` for each `dataset.data` item - bars are distributed within each column enclosed by 2 adjacent grid-x lines - bars in different `.dataset` have unique colors - bars in the same column are evenly distributed - Select the option `Bar Chart` of `#type` to create `BarChart` instance
task-14
2025-05-12T00:00:00
challenging
In `./common/BarChart.js`, when `options.dataLabels` is true: - append g element (class `dataLabels dataLabels-{index}`) inside `svg` for each `dataset` - append data labels (each class `dataLabel dataLabel-{index}`) inside `.dataLabels` for each `dataset.data` item - each dataLabel is above the `.dataset` bars, distributes from left to right - each dataLabel color is the same as `.dataset` bars color
task-15
2025-05-12T00:00:00
challenging
In `./common/BarChart.js`: - append an initially hidden g element (class `tooltips hidden`) inside `svg` - when mouse hovers over the `.datasets` area in `svg`, display `.tooltips` near the mouse position - select the `.grid-x` (class `selected`) that is horizontally closest to the mouse - in `.tooltips`, show all data from the `.dataset` that corresponds to the area enclosed by the selected `.grid-x` and next adjacent `.grid-x` - when mouse not hovers over `.datasets` area, hide `.tooltips` (add class `hidden`)
task-16
2025-05-12T00:00:00
challenging
- In `./common/PieChart.js`, class `PieChart` inherits from `Chart`, `PieChart`: - append g element (class `datasets`) inside `svg` and make it fill the most area of `svg` - append g element (class `dataset dataset-0`) inside `.datasets` for the first `datasets` item - append sectors (path elements, each class `sector sector-{index}`) with the unique color inside `.dataset` for each `dataset.data` item - all the sectors form a large circle - the area of each sector is related to its proportion of the data - Select the option `Pie Chart` of `#type` to create `PieChart` instance, make `#axes`, `#grids`, `#pointStyle` disabled, and make `#datasets` single selection mode
task-17
2025-05-12T00:00:00
moderate
- In `./common/DoughnutChart.js`, class `DoughnutChart` inherits from `PieChart`, `DoughnutChart`: - cover the central circle area with `#circleMask` from `assets/res.svg` - Select the option `Doughnut Chart` of `#type` to create `DoughnutChart` instance
task-18
2025-05-12T00:00:00
challenging
In `./common/PieChart.js`, when `options.dataLabels` is true: - append g element (class `dataLabels dataLabels-0`) inside `svg` for the first `dataset` - append data labels (each class `dataLabel dataLabel-{index}`) inside `.dataLabels` for each `dataset.data` item - show the sector data and proportion in each dataLabel - append connect lines (each class `connect connect-{index}`) inside `.dataLabels` to connect each dataLabel and its corresponding sector - each dataLabel is positioned near its corresponding sector and distributed around the large circle
task-19
2025-05-12T00:00:00
moderate
In `./common/PieChart.js`: - when mouse hovers over a sector, it scales up by 1.05 times proportionally around pie center point - when mouse leaves a sector, its size returns to normal
task-20
2025-05-12T00:00:00
challenging
In `./common/PieChart.js`: - append an initially hidden g element (class `tooltips hidden`) inside `svg` - when mouse hovers over a sector in `svg`, display `.tooltips` near the mouse position - show the sector data and proportion in `.tooltips` - when mouse leaves a sector, hide `.tooltips` (add class `hidden`)
task-1
2025-05-12T00:00:00
easy
- change `.color.rgb` background with rgba color whose each item is from the value of corresponding range input - For each `.prop` in `.color.rgb`, move range slider to show value in `.result`
task-2
2025-05-12T00:00:00
easy
For each `.prop` in `.color.rgb`: - move range slider to change `.color` background color - background color is rgb color whose each item is from the value of corresponding range input
task-3
2025-05-12T00:00:00
easy
- add element `.color.hsl` to `.root` - implement hsl color config panel like `.color.rgb` - each color component value is 0 and alpha is 1 - change `.color.hsl` background with hsl color whose item is from the corespondent range value
task-4
2025-05-12T00:00:00
easy
- add element `.color.lab` to `.root` - implement lab color config panel like `.color.rgb` - each color component default value is 0 and alpha is 1 - change `.color.lab` background with lab color whose item is from the corespondent range value
task-5
2025-05-12T00:00:00
easy
- add element `.color.lch` to `.root` - implement lch color config panel like `.color.rgb` - each color component default value is 0 and alpha is 1 - change `.color.lch` background with lch color whose item is from the corespondent range value
task-6
2025-05-12T00:00:00
moderate
- add element `.color.oklab` to `.root` - implement oklab color config panel like `.color.rgb` - each color component default value is 0 and alpha is 1 - change `.color.oklab` background with oklab color whose item is from the corespondent range value
task-7
2025-05-12T00:00:00
moderate
- add element `.color.oklch` to `.root` - implement oklch color config panel like `.color.rgb` - each color component default value is 0 and alpha is 1 - change `.color.oklch` background with oklch color whose item is from the corespondent range value
task-8
2025-05-12T00:00:00
moderate
- add element `.color.hwb` to `.root` - implement hwb color config panel like `.color.rgb` - each color component value is 0 and alpha is 1 - change `.color.hwb` background with hwb color whose item is from the corespondent range value
task-9
2025-05-12T00:00:00
challenging
- add a button `#changeTheme` fixed at the bottom-center of the page - click `#changeTheme` to change the light and dark theme of the page - use `light-dark()` to manage themes
task-10
2025-05-12T00:00:00
challenging
- use hsl relative color for dark theme
task-11
2025-05-12T00:00:00
challenging
- make `.result` color contrast ratio to be more than 4.5 to comply with WCAG guidelines
task-12
2025-05-12T00:00:00
challenging
- add element `.color.hsl-wheel` to `.root` - draw a hsl color wheel (class `wheel`) canvas in the `.hsl-wheel` - canvas has the same width and height, color wheel fill the entire canvas - lightness is 50 - red is at the leftmost point of the color wheel, with red, green and blue arranged clockwise - saturated red is the left point of the canvas, unsaturated red is the center point of the canvas
task-13
2025-05-12T00:00:00
challenging
When click `.hsl-wheel .wheel` color: - change `.hsl-wheel` background color to `.hsl-wheel .wheel` color - add a block (class `block`) in the `.hsl-wheel` if it does not exist, and set its center at the clicked point - `.block` width and height is less than or equal 12px
task-14
2025-05-12T00:00:00
challenging
- add a vertical lightness range (class `l`) in the `.hsl-wheel`, at the right of `.hsl-wheel .wheel` - default value is 50 - change lightness range to redraw `.hsl-wheel .wheel` with new lightness
task-15
2025-05-12T00:00:00
challenging
- add element `.color.lch-wheel` to `.root` - draw a hsl color wheel (class `wheel`) canvas in the `.lch-wheel` - lightness is 50, saturate is 100 - red is at the leftmost point of the color wheel, with red, green and blue arranged clockwise
task-16
2025-05-12T00:00:00
challenging
When click `.lch-wheel .wheel` color: - change `.lch-wheel` background color to lch color with h from `.lch-wheel .wheel` angle, lightness 50 , chroma 50 - add a block (class `block`) in the `.lch-wheel` if it does not exist, and set its center at the clicked point - `.block` width and height is less than or equal 12px
task-17
2025-05-12T00:00:00
challenging
- default `.lch-wheel .wheel` angle (h) is 0 - add a lightness vertical range (class `l`) in the `.lch-wheel` - default value is 50 - change lightness range to redraw `.lch-wheel .wheel` with new lightness, and update `.lch-wheel` background color - add a chroma vertical range (class `c`) in the `.lch-wheel` - default value is 50 - change chroma range to update `.lch-wheel` background color
task-18
2025-05-12T00:00:00
challenging
- add element `.color.hwb-wheel` to `.root` - draw a hsl color wheel (class `wheel`) canvas in the `.hwb-wheel` - lightness is 50, saturate is 100 - red is at the leftmost point of the color wheel, with red, green and blue arranged clockwise
task-19
2025-05-12T00:00:00
challenging
When click `.wheel` color: - change `.hwb-wheel` background color to hwb color with h from `.wheel` angle, whiteness 0, blackness 0 - add a block (class `block`) in the `.hwb-wheel` if it does not exist, and set its center at the clicked point - `.block` width and height is less than or equal 12px
task-20
2025-05-12T00:00:00
challenging
- default `.wheel` angle (h) is 0 - add a whiteness vertical range (class `w`) in the `.hwb-wheel` - default value is 0 - change whiteness range to update `.hwb-wheel` background color - add a blackness vertical range (class `b`) in the `.hwb-wheel` - default value is 0 - change blackness range to update `.hwb-wheel` background color
task-1
2025-05-12T00:00:00
easy
Add tools element (class 'tools', height 40px) and entries element (class 'entries') in the leftbar of the page. tools and entries together fill the entire leftbar space. Add buttons with text 'file', 'dir', 'del' at the tools right side.
task-2
2025-05-12T00:00:00
easy
Click button file to append a file element (class 'entry file') in the entries panel. A file has an unique 'id' attribute, a 'data-content' attribute with random text and random filename. Click a file to display text in the editor. Use DOM API as much as possible. Save codes to 'common/file.js' imported by 'index.js'.
task-3
2025-05-12T00:00:00
easy
Click button dir to append a dir element (class 'entry dir') in the entries panel. A dir has an unique id attribute, random dirname as its text content and a child element (class 'dir-content'). Click dir to show/hide dir-content by add/remove class 'open'. Use DOM API as much as possible. Save codes to 'common/dir.js' imported by 'index.js'.
task-4
2025-05-12T00:00:00
easy
When an entry (file or dir) is created or clicked, mark it as SelectedEntry (add class 'selected', highlight bg color). Remove 'selected' class from the entry when creating (or clicking) other entry or clicking empty space of the entries panel. Save codes to 'common/sel.js' imported by 'index.js'. When SelectedEntry is file, insert new entry after it and save codes to 'common/file.js'. When SelectedEntry is dir, open it and append new entry in its dir-content. Save codes to 'common/dir.js' Use DOM API.
task-5
2025-05-12T00:00:00
moderate
Button del is disabled when SelectedEntry is empty. Click button del to delete SelectedEntry and set SelectedEntry to its next sibling entry if existed, or previous sibling if existed, or parent entry. If new SelectedEntry is dir, show its content. Save codes to 'common/entry.js' imported by 'index.js'.
task-6
2025-05-12T00:00:00
moderate
Drag and move an entry to append to entries panel, or to insert after other file. Drag and move an entry to append to other dir when dragging to target's left half part, and to insert after the target when dragging to target's right half part. Save codes to 'common/drag.js' imported by 'index.js'.
task-7
2025-05-12T00:00:00
moderate
Add context menu (class menu) when right clicking entry. Add menu item (class menu-item) 'add file' (class menu-item-add-file), 'add dir' (class menu-item-add-dir), delete (class menu-item-delete) properly for entry. Save codes to 'common/menu.js' imported by 'index.js'.
task-8
2025-05-12T00:00:00
moderate
Add context menu when right clicking entries panel. Add menu item 'add file', 'add dir', delete properly for entries panel. Save codes to 'common/menu.js'.
task-9
2025-05-12T00:00:00
moderate
Add menu item copy (class menu-item-copy), paste (class menu-item-paste) properly for entry and entries panel. Save codes to 'common/menu.js'.
task-10
2025-05-12T00:00:00
challenging
Add menu item rename (class menu-item-rename) for entry. Use prompt to collect new name. Save codes to 'common/menu.js'.
task-11
2025-05-12T00:00:00
challenging
Append button imp in tools panel. Click button imp to clear entries panel and import JSON data to entries panel from prompt dialog. Save codes to 'common/entry.js'. JSON Data sample: ```{"entries":[{"type":"file", "name":"filename", "content":"content"}, {"type":"dir", "name":"dirname", "children":[{"type":"file", "name":"filename", "content":"content"}, {"type":"dir", "name":"dirname", "children":[]}]} ]}```.
task-12
2025-05-12T00:00:00
challenging
Append button exp in tools panel. Click button exp to save all entries to JSON data displayed in alert dialog. Save codes to 'common/entry.js'.
task-13
2025-05-12T00:00:00
challenging
Modify file content in editor and auto save the content. Save codes to 'common/editor.js' imported by 'index.js'.
task-14
2025-05-12T00:00:00
challenging
Dispatch and display shortcuts for menu items. In MACOS, use keys 'Cmd+C' for copy, 'Cmd+V' for paste, 'Cmd+J' for 'add file', 'Cmd+K' for 'add dir'. In other OS, replace 'Cmd' with 'Ctrl'. Save codes to 'common/menu.js'.
task-15
2025-05-12T00:00:00
challenging
Dispatch and display shortcut for menu item 'delete'. Use key 'Delete' and 'Backspace' to delete entry. Save codes to 'common/menu.js'.
task-16
2025-05-12T00:00:00
challenging
Append button gen in tools panel. Click button gen to generate 100 files or dirs at the root of entries panel. Generate less than 10 files or dirs for each dir at the root. Save codes to 'common/entry.js'.
task-17
2025-05-12T00:00:00
challenging
Add resizer with absolute positions at the right side of the leftbar. resizer is hidden by default and become visible when mouse hovers over leftbar. Save codes to 'common/resizer.js'.
task-18
2025-05-12T00:00:00
challenging
Drag resizer to adjust leftbar width. Save codes to 'common/resizer.js'.
task-19
2025-05-12T00:00:00
challenging
Append button filter in tools panel. Click button filter to use prompt dialog to collect keyword which is used to filter entry name. Save codes to 'common/filter.js'.
task-20
2025-05-12T00:00:00
moderate
Add menu item 'cut' with shortcut (Cmd/Ctrl+X) for entry.
task-1
2025-05-12T00:00:00
easy
Add tools element (class 'tools', height 40px) and entries element (class 'entries') in the leftbar of the page. tools and entries together fill the entire leftbar space. Add buttons with text 'file', 'dir', 'del' at the tools right side. Save codes to 'index.html'.
task-2
2025-05-12T00:00:00
easy
Click button file to append a file element (class 'entry file') in the entries panel. A file has an unique 'id' attribute, a 'data-content' attribute with random text and random filename. Click a file to display text in the editor. Use DOM API as much as possible. Save codes to 'index.html'.
task-3
2025-05-12T00:00:00
easy
Click button dir to append a dir element (class 'entry dir') in the entries panel. A dir has an unique id attribute, random dirname as its text content and a child element (class 'dir-content'). Click dir to show/hide dir-content by add/remove class 'open'. Use DOM API as much as possible. Save codes to 'index.html'.
task-4
2025-05-12T00:00:00
easy
When an entry (file or dir) is created or clicked, mark it as SelectedEntry (add class 'selected', highlight bg color). Remove 'selected' class from the entry when creating (or clicking) other entry or clicking empty space of the entries panel. When SelectedEntry is file, insert new entry after it. When SelectedEntry is dir, open it and append new entry in its dir-content. Use DOM API. Save codes to 'index.html'.
task-5
2025-05-12T00:00:00
moderate
Button del is disabled when SelectedEntry is empty. Click button del to delete SelectedEntry and set SelectedEntry to its next sibling entry if existed, or previous sibling if existed, or parent entry. If new SelectedEntry is dir, show its content. Save codes to 'index.html'.
task-6
2025-05-12T00:00:00
moderate
Drag and move an entry to append to entries panel, or to insert after other file. Drag and move an entry to append to other dir when dragging to target's left half part, and to insert after the target when dragging to target's right half part.
task-7
2025-05-12T00:00:00
moderate
Add context menu(class menu) when right clicking entry. Add menu item(class menu-item) 'add file'(class menu-item-add-file), 'add dir'(class menu-item-add-dir), delete(class menu-item-delete) properly for entry.
task-8
2025-05-12T00:00:00
moderate
Add context menu when right clicking entries panel. Add menu item 'add file', 'add dir', delete properly for entries panel.
task-9
2025-05-12T00:00:00
moderate
Add menu item copy(class menu-item-copy), paste(class menu-item-paste) properly for entry and entries panel.
task-10
2025-05-12T00:00:00
challenging
Add menu item rename(class menu-item-rename) for entry. Use prompt to collect new name.
task-11
2025-05-12T00:00:00
challenging
Append button imp in tools panel. Click button imp to clear entries panel and import JSON data to entries panel from prompt dialog. JSON Data sample: ```{"entries":[{"type":"file", "name":"filename", "content":"content"}, {"type":"dir", "name":"dirname", "children":[{"type":"file", "name":"filename", "content":"content"}, {"type":"dir", "name":"dirname", "children":[]}]} ]}```.
task-12
2025-05-12T00:00:00
challenging
Append button exp in tools panel. Click button exp to save all entries to JSON data displayed in alert dialog.
task-13
2025-05-12T00:00:00
challenging
Modify file content in editor and auto save the content.
task-14
2025-05-12T00:00:00
challenging
Dispatch and display shortcuts for menu items. In MACOS, use keys 'Cmd+C' for copy, 'Cmd+V' for paste, 'Cmd+J' for 'add file', 'Cmd+K' for 'add dir'. In other OS, replace 'Cmd' with 'Ctrl'.
task-15
2025-05-12T00:00:00
challenging
Dispatch and display shortcut for menu item 'delete'. Use key 'Delete' and 'Backspace' to delete entry.
task-16
2025-05-12T00:00:00
challenging
Append button gen in tools panel. Click button gen to generate 100 files or dirs at the root of entries panel. Generate less than 10 files or dirs for each dir at the root.
task-17
2025-05-12T00:00:00
challenging
Add resizer with absolute positions at the right side of the leftbar. resizer is hidden by default and become visible when mouse hovers over leftbar.
task-18
2025-05-12T00:00:00
challenging
Drag resizer to adjust leftbar width.
task-19
2025-05-12T00:00:00
challenging
Append button filter in tools panel. Click button filter to use prompt dialog to collect keyword which is used to filter entry name.
task-20
2025-05-12T00:00:00
moderate
Add menu item 'cut' with shortcut(Cmd/Ctrl+X) for entry.
task-1
2025-05-12T00:00:00
easy
Add toolkit container (class 'toolkit') and svg element (class 'canvas') in '.root'. toolkit and canvas together fill the whole space of the browser element. Add shape container (class 'shape'), prop container (class 'prop') and operation container (class 'operation') horizontally in the toolkit. shape container (3 labels width) is at the toolkit's left side. operation container (6 labels width) is at the toolkit's right side. prop container occupies the toolkit's remaining space. Add a line width input (class 'line-width', value from 1 to 21, default is 9) in the prop container. Add a color selector input (class 'color', default is #000000) in the prop container.
task-2
2025-05-12T00:00:00
easy
Add radios wrapped by label in shape container with values: line, rect, ellipse. Add radios wrapped by label in operation container with values: move, rotate, zoom, copy, delete, fill. Each radio in both shape and operation container has the same name 'operation'. Each label's class is the the value of its inner radio. Generate an SVG image using the label's class and use it as the label's background image. Set each radio width/height to 0 but not hide them.
task-3
2025-05-12T00:00:00
easy
When click label line, use mouse in canvas to draw a svg line (line width is '.line-width' value, line color is '.color' value). The line's start point is the point when mouse pressing down and end point is the point when mouse pressing up.
task-4
2025-05-12T00:00:00
easy
When click label rect, use mouse in canvas to draw a svg rect (fill color is white, line width is '.line-width' value, line color is '.color' value). The rect's left-top is the point when mouse pressing down and right-bottom is the point when mouse pressing up.
task-5
2025-05-12T00:00:00
easy
When click label ellipse, use mouse in canvas to draw a svg ellipse (fill color is white, line width is '.line-width' value, line color is '.color' value). There is a rect whose left-top is the point when mouse pressing down and right-bottom is the point when mouse pressing up. The ellipse's center is the rect center, x radius is the half rect width, y radius is the half rect height.
task-6
2025-05-12T00:00:00
easy
After label delete clicked, click any shape (line/rect/ellipse/...) in the canvas to delete it.
task-7
2025-05-12T00:00:00
easy
After label fill clicked, click any shape (line/rect/ellipse/...) in the canvas to set its fill color to '.color' value.
task-8
2025-05-12T00:00:00
moderate
After label copy clicked, click any shape (line/rect/ellipse/...) in the canvas to copy itself. The copied shape is placed 20 to the right and 20 below the original shape.
task-9
2025-05-12T00:00:00
challenging
When the length of the line is less than line width, keep it to be the line width.
task-10
2025-05-12T00:00:00
challenging
When the width or height of the rect is less than line width, keep it to be line width.
task-11
2025-05-12T00:00:00
challenging
When the x or y radius of the ellipse is less than half line width, keep it to be half line width.
task-12
2025-05-12T00:00:00
challenging
After label move clicked, drag and move any shape in the canvas.
task-13
2025-05-12T00:00:00
challenging
After label rotate clicked, drag and rotate any shape in the canvas around its center.
task-14
2025-05-12T00:00:00
challenging
Perform move and rotate operations on a shape in any sequence, ensuring that each operation builds on the previous one.
task-15
2025-05-12T00:00:00
challenging
After label zoom clicked, drag and zoom any shape in the canvas according the distance between mouse position and its center. Zoom the shape around its center.
task-16
2025-05-12T00:00:00
challenging
Perform move, rotate, and zoom operations on a shape in any sequence, ensuring that each operation builds on the previous one.
task-17
2025-05-12T00:00:00
easy
Set label move clicked after creating or copying a shape.
task-18
2025-05-12T00:00:00
moderate
Press and hold the blankspace to enable moving the shape. Release it to restore the selected label if needed.
task-19
2025-05-12T00:00:00
challenging
Support touch events for operations: create, copy, delete, fill.
task-20
2025-05-12T00:00:00
challenging
Support touch events for operations: move, rotate, zoom.