Skip to content

Commit

Permalink
git subrepo pull --force programs/jspaint
Browse files Browse the repository at this point in the history
subrepo:
  subdir:   "programs/jspaint"
  merged:   "58828ca3"
upstream:
  origin:   "https://github.com/1j01/jspaint.git"
  branch:   "master"
  commit:   "58828ca3"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
  • Loading branch information
1j01 committed Dec 8, 2021
1 parent badf1d3 commit 16da20a
Show file tree
Hide file tree
Showing 499 changed files with 322,174 additions and 11,310 deletions.
101 changes: 89 additions & 12 deletions programs/jspaint/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
"env": {
"browser": true,
"es6": true
"es2020": true,
},
"extends": "eslint:recommended",
"globals": {
Expand All @@ -19,15 +19,34 @@ module.exports = {
"Konami": "readonly",
"YT": "readonly",
"FontDetective": "readonly",
"Palette": "readonly",
"AnyPalette": "readonly",
"ImageTracer": "readonly",

/*
// const
"MENU_DIVIDER": "readonly",
"TAU": "writable",
"is_pride_month": "writable",
"default_tool": "writable",
"default_canvas_width": "writable",
"default_canvas_height": "writable",
"default_magnification": "writable",
"TOOL_FREE_FORM_SELECT": "writable",
"TOOL_SELECT": "writable",
"TOOL_ERASER": "writable",
"TOOL_FILL": "writable",
"TOOL_PICK_COLOR": "writable",
"TOOL_MAGNIFIER": "writable",
"TOOL_PENCIL": "writable",
"TOOL_BRUSH": "writable",
"TOOL_AIRBRUSH": "writable",
"TOOL_TEXT": "writable",
"TOOL_LINE": "writable",
"TOOL_CURVE": "writable",
"TOOL_RECTANGLE": "writable",
"TOOL_POLYGON": "writable",
"TOOL_ELLIPSE": "writable",
"TOOL_ROUNDED_RECTANGLE": "writable",
// global state: options
"brush_shape": "writable",
Expand All @@ -36,12 +55,16 @@ module.exports = {
"eraser_size": "writable",
"airbrush_size": "writable",
"stroke_size": "writable",
"stroke_color": "writable",
"fill_color": "writable",
"fill_color_k": "writable",
"stroke_color_k": "writable",
"tool_transparent_mode": "writable",
"magnification": "writable",
"transparency": "writable",
"aliasing": "writable",
"monochrome": "writable",
"colors": "writable",
"selected_colors": "writable",
"palette": "writable",
"polychrome_palette": "writable",
"monochrome_palette": "writable",
Expand All @@ -60,7 +83,8 @@ module.exports = {
"pointers": "writable",
"saved": "writable",
"file_name": "writable",
"document_file_path": "writable",
"file_format": "writable",
"system_file_handle": "writable",
"selected_tool": "writable",
"selected_tools": "writable",
"default_tool": "writable",
Expand All @@ -70,8 +94,8 @@ module.exports = {
"my_canvas_height": "writable",
"pointer": "writable",
// references that may contain state in some ways
"canvas": "writable", // really bad
"ctx": "writable", // really bad
"main_canvas": "writable",
"main_ctx": "writable",
"helper_layer": "writable",
"menus": "writable",
"tools": "writable",
Expand All @@ -85,18 +109,20 @@ module.exports = {
"$right": "writable",
"$toolbox": "writable",
"$colorbox": "writable",
"$MenuBar": "writable",
"MenuBar": "writable",
"$ToolBox": "writable",
"$ColorBox": "writable",
"$Window": "writable",
"$ToolWindow": "writable",
"$FormToolWindow": "writable",
"$Handles": "writable",
"$DialogWindow": "writable",
"Handles": "writable",
"$ChooseShapeStyle": "writable",
"OnCanvasSelection": "writable",
"OnCanvasTextBox": "writable",
// functions
"E": "writable",
"get_rgba_from_color": "writable",
"make_canvas": "writable",
"debounce": "writable",
"memoize_synchronous_function": "writable",
Expand All @@ -115,13 +141,64 @@ module.exports = {
"get_help_folder_icon": "writable",
"get_icon_for_tool": "writable",
"draw_polygon": "writable",
"draw_line": "writable",
"draw_line_strip": "writable",
"draw_bezier_curve": "writable",
"draw_quadratic_curve": "writable",
"draw_ellipse": "writable",
"draw_rounded_rectangle": "writable",
"draw_fill": "writable",
"draw_noncontiguous_fill": "writable",
"localize": "writable",
"set_language": "writable",
"get_language": "writable",
"get_iso_language_name": "writable",
"set_magnification": "writable",
"make_css_cursor": "writable",
"select_tool": "writable",
"change_url_param": "writable",
"set_theme": "writable",
*/
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"no-undef": 0, // FOR NOW OKAY? there are just tons of globals at the moment
"no-unused-vars": 0, // ditto

// "eqeqeq": "error",
// "class-methods-use-this": "error",
"no-alert": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-invalid-this": "error",
"no-new-func": "error",
"no-eval": "error",
"no-new-wrappers": "error",
"no-proto": "error",
"no-return-assign": "error",
"no-return-await": "error",
"no-script-url": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-throw-literal": "error",
"no-unmodified-loop-condition": "error",
// "no-unused-expressions": "error", // a && a() used a lot, could switch to a?.() etc. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining
"no-useless-concat": "error",
"prefer-promise-reject-errors": "error",
"radix": "error",
"require-await": "error",
// "vars-on-top": "error",
"wrap-iife": "error",
"no-label-var": "error",
// "no-shadow": "error",
// "no-use-before-define": "error",

// To target specific variables to rename or otherwise address:
"no-restricted-globals": ["error", "event", "canvas", "ctx", "colors", "i", "j", "k", "x", "y", "z", "width", "height", "w", "h"],

// Stylistic:
// @TODO: https://eslint.org/docs/rules/#stylistic-issues
// I want to see if I can merge some branches, maybe PRs first.
// "array-bracket-spacing": "error",
// "block-spacing": "error",
}
};
4 changes: 2 additions & 2 deletions programs/jspaint/.gitrepo
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[subrepo]
remote = https://github.com/1j01/jspaint.git
branch = master
commit = f7fea8b12d7900d4aaffab3a5875849cb499dbf6
parent = ef36738f4fe4fdae9489f911b7bf0e377e4bf0b6
commit = 58828ca32307485ccdea318c0fe4d3a7cfa14124
parent = badf1d399adec6701af3fc3b98f1ef997ec6e0be
method = merge
cmdver = 0.4.3
5 changes: 5 additions & 0 deletions programs/jspaint/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"streetsidesoftware.code-spell-checker"
]
}
Loading

0 comments on commit 16da20a

Please sign in to comment.