Masking
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 28/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Activo
- Stack tecnológico
- javascript
- Área
- computer-graphics
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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).
- Lenguaje dominante
- JavaScript
- Estrellas
- 53
- Forks
- 22
- Merge medio
- 2 d 10 h
- PR fusionados (30 d)
- 12
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Candlestickers/Candlestick
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Candlestickers/Candlestick#255 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Candlestickers/Candlestick#240 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
BuiltinAssets.js is unusedAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Candlestickers/Candlestick#239 ·
Los mantenedores suelen responder en 1 día
-
[BUG] frames with names lose their circlePosiblemente ocupada @BaronAWC la tomó hace 5 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Candlestickers/Candlestick#237 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Candlestickers/Candlestick#203 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de Candlestickers/Candlestick
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Github token for private repoAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
tshemsedinov/reslop#158 ·
Los mantenedores suelen responder en 1 día
-
level/task type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
wazuh/wazuh-documentation#10398 ·
Los mantenedores suelen responder en 1 día
-
app_installations reports an error on every repo or suborg change when the plugin is not configuredAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
github-community-projects/safe-settings#1111 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día