diff --git a/docs/how-to-create-new-effects.md b/docs/how-to-create-new-effects.md index fe5960e..db50bdb 100644 --- a/docs/how-to-create-new-effects.md +++ b/docs/how-to-create-new-effects.md @@ -233,7 +233,7 @@ export default class Effect { // The getActorScale() is called from extension.js to adjust the actor's size during the // animation. This is useful if the effect requires drawing something beyond the usual // bounds of the actor. This only works for GNOME 3.38+. - static getActorScale(settings) { + static getActorScale(settings, forOpening, actor) { return { x: 1.0, y: 1.0 }; } } diff --git a/src/effects/Apparition.js b/src/effects/Apparition.js index dc678ad..07f830a 100644 --- a/src/effects/Apparition.js +++ b/src/effects/Apparition.js @@ -93,7 +93,7 @@ export default class Effect { // The getActorScale() is called from extension.js to adjust the actor's size during the // animation. This is useful if the effect requires drawing something beyond the usual // bounds of the actor. This only works for GNOME 3.38+. - static getActorScale(settings) { + static getActorScale(settings, forOpening, actor) { return {x: 2.0, y: 2.0}; } } diff --git a/src/effects/BrokenGlass.js b/src/effects/BrokenGlass.js index 8e453f8..5cc0f95 100644 --- a/src/effects/BrokenGlass.js +++ b/src/effects/BrokenGlass.js @@ -152,7 +152,7 @@ export default class Effect { // The getActorScale() is called from extension.js to adjust the actor's size during the // animation. This is useful if the effect requires drawing something beyond the usual // bounds of the actor. This only works for GNOME 3.38+. - static getActorScale(settings) { + static getActorScale(settings, forOpening, actor) { return {x: 2.0, y: 2.0}; } } diff --git a/src/effects/EnergizeA.js b/src/effects/EnergizeA.js index 1b0523c..2ee4535 100644 --- a/src/effects/EnergizeA.js +++ b/src/effects/EnergizeA.js @@ -91,7 +91,7 @@ export default class Effect { // The getActorScale() is called from extension.js to adjust the actor's size during the // animation. This is useful if the effect requires drawing something beyond the usual // bounds of the actor. This only works for GNOME 3.38+. - static getActorScale(settings) { + static getActorScale(settings, forOpening, actor) { return {x: 1.0, y: 1.0}; } } \ No newline at end of file diff --git a/src/effects/EnergizeB.js b/src/effects/EnergizeB.js index 04e5ac7..1d2be49 100644 --- a/src/effects/EnergizeB.js +++ b/src/effects/EnergizeB.js @@ -92,7 +92,7 @@ export default class Effect { // The getActorScale() is called from extension.js to adjust the actor's size during the // animation. This is useful if the effect requires drawing something beyond the usual // bounds of the actor. This only works for GNOME 3.38+. - static getActorScale(settings) { + static getActorScale(settings, forOpening, actor) { return {x: 1.0, y: 1.0}; } } diff --git a/src/effects/Fire.js b/src/effects/Fire.js index 819de64..10a2b54 100644 --- a/src/effects/Fire.js +++ b/src/effects/Fire.js @@ -137,7 +137,7 @@ export default class Effect { // The getActorScale() is called from extension.js to adjust the actor's size during the // animation. This is useful if the effect requires drawing something beyond the usual // bounds of the actor. This only works for GNOME 3.38+. - static getActorScale(settings) { + static getActorScale(settings, forOpening, actor) { return {x: 1.0, y: 1.0}; } diff --git a/src/effects/Glide.js b/src/effects/Glide.js index 61950b0..2edf1d8 100644 --- a/src/effects/Glide.js +++ b/src/effects/Glide.js @@ -91,7 +91,7 @@ export default class Effect { // The getActorScale() is called from extension.js to adjust the actor's size during the // animation. This is useful if the effect requires drawing something beyond the usual // bounds of the actor. This only works for GNOME 3.38+. - static getActorScale(settings) { + static getActorScale(settings, forOpening, actor) { return {x: 1.0, y: 1.0}; } } diff --git a/src/effects/Glitch.js b/src/effects/Glitch.js index a194385..767cb23 100644 --- a/src/effects/Glitch.js +++ b/src/effects/Glitch.js @@ -99,7 +99,7 @@ export default class Effect { // The getActorScale() is called from extension.js to adjust the actor's size during the // animation. This is useful if the effect requires drawing something beyond the usual // bounds of the actor. This only works for GNOME 3.38+. - static getActorScale(settings) { + static getActorScale(settings, forOpening, actor) { return {x: 1.0, y: 1.0}; } } \ No newline at end of file diff --git a/src/effects/Hexagon.js b/src/effects/Hexagon.js index 44d4f60..9747897 100644 --- a/src/effects/Hexagon.js +++ b/src/effects/Hexagon.js @@ -108,7 +108,7 @@ export default class Effect { // The getActorScale() is called from extension.js to adjust the actor's size during the // animation. This is useful if the effect requires drawing something beyond the usual // bounds of the actor. This only works for GNOME 3.38+. - static getActorScale(settings) { + static getActorScale(settings, forOpening, actor) { return {x: 1.0, y: 1.0}; } } diff --git a/src/effects/Incinerate.js b/src/effects/Incinerate.js index df1554a..9838db7 100644 --- a/src/effects/Incinerate.js +++ b/src/effects/Incinerate.js @@ -144,7 +144,7 @@ export default class Effect { // The getActorScale() is called from extension.js to adjust the actor's size during the // animation. This is useful if the effect requires drawing something beyond the usual // bounds of the actor. This only works for GNOME 3.38+. - static getActorScale(settings) { + static getActorScale(settings, forOpening, actor) { return {x: 1.0, y: 1.0}; } } \ No newline at end of file diff --git a/src/effects/Matrix.js b/src/effects/Matrix.js index b007142..fbfd153 100644 --- a/src/effects/Matrix.js +++ b/src/effects/Matrix.js @@ -128,7 +128,7 @@ export default class Effect { // The getActorScale() is called from extension.js to adjust the actor's size during the // animation. This is useful if the effect requires drawing something beyond the usual // bounds of the actor. This only works for GNOME 3.38+. - static getActorScale(settings) { + static getActorScale(settings, forOpening, actor) { return {x: 1.0, y: 1.0 + settings.get_double('matrix-overshoot')}; } } diff --git a/src/effects/PaintBrush.js b/src/effects/PaintBrush.js index fa8f46f..1f6ab7a 100644 --- a/src/effects/PaintBrush.js +++ b/src/effects/PaintBrush.js @@ -112,7 +112,7 @@ export default class Effect { // The getActorScale() is called from extension.js to adjust the actor's size during the // animation. This is useful if the effect requires drawing something beyond the usual // bounds of the actor. This only works for GNOME 3.38+. - static getActorScale(settings) { + static getActorScale(settings, forOpening, actor) { return {x: 1.0, y: 1.0}; } } diff --git a/src/effects/PixelWheel.js b/src/effects/PixelWheel.js index 3147e96..4983e4c 100644 --- a/src/effects/PixelWheel.js +++ b/src/effects/PixelWheel.js @@ -85,7 +85,7 @@ export default class Effect { // The getActorScale() is called from extension.js to adjust the actor's size during the // animation. This is useful if the effect requires drawing something beyond the usual // bounds of the actor. This only works for GNOME 3.38+. - static getActorScale(settings) { + static getActorScale(settings, forOpening, actor) { return {x: 1.0, y: 1.0}; } } diff --git a/src/effects/PixelWipe.js b/src/effects/PixelWipe.js index 3e46689..35cdf9c 100644 --- a/src/effects/PixelWipe.js +++ b/src/effects/PixelWipe.js @@ -111,7 +111,7 @@ export default class Effect { // The getActorScale() is called from extension.js to adjust the actor's size during the // animation. This is useful if the effect requires drawing something beyond the usual // bounds of the actor. This only works for GNOME 3.38+. - static getActorScale(settings) { + static getActorScale(settings, forOpening, actor) { return {x: 1.0, y: 1.0}; } } diff --git a/src/effects/Pixelate.js b/src/effects/Pixelate.js index f1971f5..0cc0c31 100644 --- a/src/effects/Pixelate.js +++ b/src/effects/Pixelate.js @@ -85,7 +85,7 @@ export default class Effect { // The getActorScale() is called from extension.js to adjust the actor's size during the // animation. This is useful if the effect requires drawing something beyond the usual // bounds of the actor. This only works for GNOME 3.38+. - static getActorScale(settings) { + static getActorScale(settings, forOpening, actor) { return {x: 1.0, y: 1.0}; } } diff --git a/src/effects/Portal.js b/src/effects/Portal.js index 9662274..e22cbce 100644 --- a/src/effects/Portal.js +++ b/src/effects/Portal.js @@ -101,7 +101,7 @@ export default class Effect { // The getActorScale() is called from extension.js to adjust the actor's size during the // animation. This is useful if the effect requires drawing something beyond the usual // bounds of the actor. This only works for GNOME 3.38+. - static getActorScale(settings) { + static getActorScale(settings, forOpening, actor) { return {x: 1.0, y: 1.0}; } } diff --git a/src/effects/SnapOfDisintegration.js b/src/effects/SnapOfDisintegration.js index a5f771a..5af84c1 100644 --- a/src/effects/SnapOfDisintegration.js +++ b/src/effects/SnapOfDisintegration.js @@ -125,7 +125,7 @@ export default class Effect { // The getActorScale() is called from extension.js to adjust the actor's size during the // animation. This is useful if the effect requires drawing something beyond the usual // bounds of the actor. This only works for GNOME 3.38+. - static getActorScale(settings) { + static getActorScale(settings, forOpening, actor) { return {x: 1.2, y: 1.2}; } } diff --git a/src/effects/TRexAttack.js b/src/effects/TRexAttack.js index 3d6dbe7..44ae5a1 100644 --- a/src/effects/TRexAttack.js +++ b/src/effects/TRexAttack.js @@ -125,7 +125,7 @@ export default class Effect { // The getActorScale() is called from extension.js to adjust the actor's size during the // animation. This is useful if the effect requires drawing something beyond the usual // bounds of the actor. This only works for GNOME 3.38+. - static getActorScale(settings) { + static getActorScale(settings, forOpening, actor) { const scale = 1.0 + 0.5 * settings.get_double('trex-scratch-warp'); return {x: scale, y: scale}; } diff --git a/src/effects/TVEffect.js b/src/effects/TVEffect.js index 41e2d0d..846b900 100644 --- a/src/effects/TVEffect.js +++ b/src/effects/TVEffect.js @@ -88,7 +88,7 @@ export default class Effect { // The getActorScale() is called from extension.js to adjust the actor's size during the // animation. This is useful if the effect requires drawing something beyond the usual // bounds of the actor. This only works for GNOME 3.38+. - static getActorScale(settings) { + static getActorScale(settings, forOpening, actor) { return {x: 1.0, y: 1.0}; } } diff --git a/src/effects/TVGlitch.js b/src/effects/TVGlitch.js index d9bf0ed..9c7345b 100644 --- a/src/effects/TVGlitch.js +++ b/src/effects/TVGlitch.js @@ -100,7 +100,7 @@ export default class Effect { // The getActorScale() is called from extension.js to adjust the actor's size during the // animation. This is useful if the effect requires drawing something beyond the usual // bounds of the actor. This only works for GNOME 3.38+. - static getActorScale(settings) { + static getActorScale(settings, forOpening, actor) { return {x: 1.0, y: 1.0}; } } diff --git a/src/effects/Wisps.js b/src/effects/Wisps.js index 98ab12d..e59c083 100644 --- a/src/effects/Wisps.js +++ b/src/effects/Wisps.js @@ -114,7 +114,7 @@ export default class Effect { // The getActorScale() is called from extension.js to adjust the actor's size during the // animation. This is useful if the effect requires drawing something beyond the usual // bounds of the actor. This only works for GNOME 3.38+. - static getActorScale(settings) { + static getActorScale(settings, forOpening, actor) { return {x: 1.0, y: 1.0}; } }