-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Summer html Image map creator customization #4
Comments
My old code, architecrute and design is not good, and now I refactor this. I hope, I will can to do this before august, and then I will start to create new functions. I have many ideas, like rulers, grid, multiple selection, layers, touch devices support and other. About your questions: Do you mean someting like this? Saving in text file - maybe, but most likely it is simple to display it in code block? In format like this? Or {"radius" : 50, "x" : 10, "y" : 20} for circle and {"coords" : [[1,2], [3,4], [5,6], [7,8]]} for polygon and {"coords": [1,2], [3,4]} for rectangle? [2]. Please, say, how do I can to repeat this bug by steps. Do you draw too many areas? |
Hello Sir, Thank you for responding for my query. 1.I wanted a save button which creates a html file in clients system along Currently with the function localStorage the info of image and areas in 2.About the bug, I am not drawing too many areas.But when the index.html Thanks & Regards, On Tue, Jul 15, 2014 at 4:12 PM, Vera Lobacheva [email protected]
|
Hello sir, Am using your old version tool. Thanks & regards |
Hello sir, By using the localStorage function in "save" button, the JSON string of image and the areas are stored for 1 image. when we load a different image and plot points and click on "save" button, then the changes done to the first image is lost. Is there a way to save the image and the coordinates plotted into local system, so that next time when the image is dragged and dropped the saved coordinates for the image can be loaded. Waiting for your reply. Regards, |
Hi. I probably understand this problem. And you found a temporary solution - saving all the page in standard browser menu. But this solution is not right, because browsers can to save html-pages with dynamic generated content, but they dont save the editor state. I mean, inner structures (arrays of drawed areas etc.). The right solution in this case is import of json-string in short text file (maybe) or, at least, display it in code block (for manually saving). And after this we will can to load this json-string in summer editor. I will create this save/load functions, but at first, I should to refactor code of summer editor and redesign the editor's menu, and then I will start to realize some new functions, include this save/load. I hope, I will start to create new functions in august. But now, you can to use a temporary solution - to manually copy a generated by "to html" button code to text file, and then load the saved areas by "from html" button (at first, you should to load the image in the editor by image dialog). Thank you for good idea. |
Thank you for your guidance. Regards, |
Hello Sir, Currently am downloading the coordinates into download folder with name of Sir I also wanted to ask how to import the json-string into a text Waiting for your reply Regards, On Sat, Jul 19, 2014 at 12:55 AM, Vera Lobacheva [email protected]
|
Hi, Do you manually create a new textfile and copy html-code from "to html" window? And you want to create a text-file with json-string coordrs automatically by some function? I know, the FileWriter api exists. Maybe it can be useful, but I am not try to use it, and I don't know how good it works. You can to read about this api here: https://developer.mozilla.org/en-US/docs/Web/API/FileEntry I hope, it can be useful. |
thank you for your assistance On Wed, Jul 30, 2014 at 12:44 AM, Vera Lobacheva [email protected]
|
Hi |
I am trying to customize the Summer html image map creator tool.. I have 2 requirements
1.To have a Save button which works like Save As option of file, here I need to save the coordinates of the selected polygon along with image.
2.I have found a bug in the program which shifts the initial coordinates of the image to large number after the html page is saved and refreshed...
Can u please help me resolve these issues.
Thank You.
The text was updated successfully, but these errors were encountered: