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

  • SEARCH
  • Home
  • 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 9171773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:12:32+00:00 2026-06-17T16:12:32+00:00

Re posting the question again. I didn’t explain the question properly before so sorry

  • 0

Re posting the question again.
I didn’t explain the question properly before so sorry about that.

Hope this will make up for it
I am planning to make a plugin for Kineticjs.
Now I’m not an expert at this so need some help.

I saw few examples online but they didn’t help much.
Some Jquery tutorias that use the DOM elements and you can write your function to alter the behaviour or add functionality and all.

Like for making a jquery plugin we can do something like:

       (function($) {
             $.fn.nameofthefunction = function() {
           // Add plugin code here
               here I can manipulate dom elements and all..
             };
       })(jQuery);

What I need is to use inbuilt functions of kinetic.js make a plugin accordingly..
Kinetic.js is a HTML5 canvas library.
SO if I do something like

    var image = new Kinetic.Image({ 
    x: 325 - 45,
    y: 145 - 83,
    image: beeObj,          
    draggable: true,       
});

here “draggable:true” makes the image draggable

here is one example that is making the image resizable:
http://www.html5canvastutorials.com/labs/html5-canvas-drag-and-drop-resize-and-invert-images/

I want to make a plugin using this example so that the user can just do something like resize:true or image.resize();
and the image/shape becomes resizable.

Hope I’m able to explain myself

  • 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-06-17T16:12:33+00:00Added an answer on June 17, 2026 at 4:12 pm

    hmm i guess what you want to do , is to have options for your plugin .. that is achieved by

    (function ($) {
        $.fn.plguinname = function (options) {
            var settings = $.extend({
              draggable: true ,
              other_optuion : 'value'
            }, options);
    ....
    

    now when some body call your plugin he will pass some options if he like , other wise the plugin will use the default options (eg other_optuion will be 'value')
    like so

    $('.selector').plguinname({
    draggable: true ,
    other_optuion : 'some other value'
    })
    

    i guess you should read more about jquery plugin development..
    one place i would recommend is youtube 😉 for fast learning

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Before you all get pissy about me posting this question again, let me explain
I am posting this question again because I didn't explain clear enough. Here are
Sorry for posting this question again. I rephrased my question a little bit. I
I did check those posts about Infinite gallery before posting this question but it
I posting this again, trying to make the question/problem clearer: ListView lv; List<Item> items;
I am again posting the same question. Please help me in this problem. Here
NOTE : Right before posting this question it occurred to me there's a better
I searched StackOverflow before posting this question but I wasn't able to find the
It might be a long shot posting this question here but we will see.
I tried posting this question earlier but was unsuccessful so I'm trying again I

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.