Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7698833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:20:04+00:00 2026-05-31T22:20:04+00:00

Right now I’m using: r.forEach( function (el) { el.scale(0.5, 0.5, 0.0, 0.0); }); to

  • 0

Right now I’m using:

r.forEach(
    function (el) {
      el.scale(0.5, 0.5, 0.0, 0.0);
    });

to scale each object around (0/0), which is working fine.

The Raphael reference however states that the scale function is deprecated and I’m supposed to use Raphael.transform(…) instead.

I tried:

r.forEach(
    function (el) {
      el.transform("S(0.5)");
    });

however, this will scale the paths using the image center as the center of scale. How can I achieve the same effect with the transform function?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T22:20:06+00:00Added an answer on May 31, 2026 at 10:20 pm

    You can use translation string the same way as parameters of “scale” function:

    el.transform("s0.5, 0.5, 0, 0");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Right now to populate my GridViews I'm using a extended BaseAdapter class on each
Right now I have a database (about 2-3 GB) in PostgreSQL, which serves as
Right now, I have three models Post, Comment and User (using Devise ) associated
right now i have this <script type='text/javascript'> $(#beau).click(function(){ $(#beau).animate({margin-Top: 738px}, fast); }); </script> and
Right now I have some TabItems in my App which are implicitly styled. I
right now i m using adobe live media encoder to stream live webcam video
Right now, I have a script which uses PHP's tokenizer to look for certain
Right now I'm using the jQuery selector $('foo+bar') . Since I already have $('foo')
Right now, I am buffering bytes using strings, StringIO, or cStringIO. But, I often
Right now, I'm using: TerminateProcess(pi.hProcess, 0) ... but this doesn't allow the application to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.