Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Masking

オープン
#228 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@hobbsythe6th がすでに取り組んでいます。

2026年8月26日 から。

  • #204 @hobbsythe6th による — オープン

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
28/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
javascript

調査の方向性

Start by searching the codebase for clipMask in paper.js, then inspect the masking-related references in Brush.js and WickObject.js. Compare those entry points with the SVG-import workaround and current editor selection behavior, then establish whether the finished feature targets object masks, layer masks, or both and how mask visibility should work.

索引モデルが issue の本文から書いたものです。

説明

enhancement

Is your feature request related to a problem? Please describe.
Masking is a common feature in art programs that isn't readily available in Wick or Candlestick.

Describe the solution you'd like
A toggle for either objects or entire layers (or both??) to use them as a clipping mask.

I think layer masking makes the most sense since that's consistent with art programs, though object masking is a thing in Figma. However, it would likely rely on groups and good use of the outliner, and 1) I don't wanna add groups when clips also exist and 2) people might not want to use the outliner.

Describe alternatives you've considered
MayOlu on the forum found this workaround of using the SVG import to obtain an "illegal" path with a masking property. All SVGs that are imported seem to add a border rectangle, which can be used to mask.

Additional context
Couple random things:

Upon inspection, I noticed a masking boolean which can be read through project.activeFrame._children[0]._json[1].clipMask (you might have to change the _children index to find the right path). I was unable to just set that boolean to true or false to toggle masking, and I didn't figure out how to do it correctly. Supposedly though, there are paper.js functions to actually toggle masking. You can search for clipMask in the paper.js for some more info. mask reveals some stuff in Brush.js and WickObject.js but I don't know how useful those are.

I'm not sure if layers can be clipping masks of other layers without using groups.

With the object masking that "exists" right now in the editor (as MayOlu demoed), the masks are hard to select (you have to drag-select them) and they interfere with UI (the black drag-select rectangle also gets masked).

主要言語
JavaScript
スター
53
フォーク
22
平均マージ
2日 10時間
マージ済み PR(30日)
12

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Candlestickers/Candlestick のほかの issue

Candlestickers/Candlestick の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。