bendol / raphael4gwt Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/raphael4gwt
Automatically exported from code.google.com/p/raphael4gwt
What steps will reproduce the problem?
Run following code:
@Override
public void onModuleLoad() {
final SimplePanel simplePanel = new SimplePanel();
final double[] vals = new double[]{10,20,30,40};
final PieOpts opts = PieOpts.create();
opts.legend(new String[]{"test_1", "test_2", "test_3", "test_4"});
opts.href(new String[]{});
opts.legendpos("south");
final GPaper paper = (GPaper)Raphael.paper(simplePanel, 500, 500);
final PieChart piechart = paper.piechart(150, 150, 100, vals, opts);
RootLayoutPanel.get().add(simplePanel);
}
What is the expected output? What do you see instead?
I expected that legend would be displayed correctly as a list near the chart
(like in demo) but legend was broken because all elements except the last one
were displayed in one place at the top of the legend's list (they are
overlapping). You can see it in the attached file.
What version of the product are you using? On what operating system?
raphael4gwt version 0.41 or 1.0. GWT version 2.6.0 or 2.6.1. Browsers - latest
versions of Chrome or Firefox.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 30 May 2014 at 10:22
Attachments:
In current revision DDListener methods are not accessible from other packages.
http://code.google.com/p/raphael4gwt/source/browse/trunk/raphael4gwt/src/org/sgx
/raphael4gwt/raphael/event/DDListener.java
Original issue reported on code.google.com by [email protected]
on 22 Jul 2013 at 11:01
Attachments:
What steps will reproduce the problem?
1. Perform the maven build as per the wiki instructions
What is the expected output? What do you see instead?
The jar should contain the PaperWidget.ui.xml file. Without that file, the PaperWidget can still be used, but not explicitly referenced from within another UIBinder xml file.
What version of the product are you using? On what operating system?
0.41 is the jar version, the pom.xml file is at revision 129 at the time of writing.
Please provide any additional information below.
I've attached the updated pom.xml in case that's helpful.
Cheers,
Jon.
Original issue reported on code.google.com by [email protected]
on 6 Mar 2014 at 11:56
Attachments:
Is is planned/feasible to integrate also the graph solution work done at
http://g.raphaeljs.com/ ?
Original issue reported on code.google.com by [email protected]
on 16 Apr 2012 at 7:12
What steps will reproduce the problem?
1. Add the library Raphael4Gwt0.36 within a Vaadin project
2. Add the address in the descriptor GWT widgets
3. Compile widgets with Vaadin compilation tool
Error Description:
[ERROR] Errors in
'jar:file:/D:/workspace/sBPM/WebContent/WEB-INF/lib/raphael4gwt-0.36.jar!/org/sg
x/raphael4gwt/raphael/Paper.java'
[ERROR] Line 237: The method getSafeUri() is undefined for the type ImageResource
[ERROR] Cannot proceed due to previous errors
Widgetset compilation failed
Original issue reported on code.google.com by [email protected]
on 30 Nov 2012 at 12:47
When registering a BarSectorHoverListener with the hoverRow() methods the
BarContext.getBars() will always return an empty set.
This is due to the fact that in the g.bar.js file the cover elements are not
created with a reference to the bars set, however the cover2 elements are.
Again a tiny lack of consistency in the current JS lib.
Original issue reported on code.google.com by [email protected]
on 3 May 2012 at 1:39
What steps will reproduce the problem?
1. Try an compile something using this jar in Eclipse
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 24 Apr 2012 at 9:07
One last issue; cubicΓÇ?bezier its the character in between these two words.
Z:\GwtProjects\raphael4gwt-read-only\raphael4gwt>ant
Buildfile: Z:\GwtProjects\raphael4gwt-read-only\raphael4gwt\build.xml
clean:
[delete] Deleting directory Z:\GwtProjects\raphael4gwt-read-only\raphael4gwt\classes
compile:
javac:
[mkdir] Created dir: Z:\GwtProjects\raphael4gwt-read-only\raphael4gwt\classes
[javac] Z:\GwtProjects\raphael4gwt-read-only\raphael4gwt\build.xml:101: warning: 'includeantruntime' was not set, defaulting to bui
ld.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 132 source files to Z:\GwtProjects\raphael4gwt-read-only\raphael4gwt\classes
[javac] Z:\GwtProjects\raphael4gwt-read-only\raphael4gwt\src\org\sgx\raphael4gwt\raphael\Raphael.java:148: error: unmappable charac
ter for encoding Cp1252
[javac] * @param easing easing type. Accept one of Raphael.easing_formulas or CSS format: cubicΓÇ?bezier(XX, XX, XX, XX)
[javac] ^
[javac] Z:\GwtProjects\raphael4gwt-read-only\raphael4gwt\src\org\sgx\raphael4gwt\raphael\Raphael.java:161: error: unmappable charac
ter for encoding Cp1252
[javac] * @param easing easing type. Accept one of Raphael.easing_formulas or CSS format: cubicΓÇ?bezier(XX, XX, XX, XX)
[javac] ^
[javac] Z:\GwtProjects\raphael4gwt-read-only\raphael4gwt\src\org\sgx\raphael4gwt\raphael\Raphael.java:175: error: unmappable charac
ter for encoding Cp1252
[javac] * @param easing easing type. Accept one of Raphael.easing_formulas or CSS format: cubicΓÇ?bezier(XX, XX, XX, XX)
[javac] ^
[javac] 3 errors
BUILD FAILED
Z:\GwtProjects\raphael4gwt-read-only\raphael4gwt\build.xml:28: The following
error occurred while executing this line:
Z:\GwtProjects\raphael4gwt-read-only\raphael4gwt\build.xml:101: Compile failed;
see the compiler error output for details.
Total time: 2 seconds
Original issue reported on code.google.com by [email protected]
on 2 May 2012 at 11:49
I would like to display all slices even those with value < 1%.
The problem probably comes from g.pies.js (line 60):
minPercent = parseFloat(opts.minPercent) || 1
returns 1 when opts.minPercent=0
Original issue reported on code.google.com by [email protected]
on 31 Aug 2013 at 5:04
What steps will reproduce the problem?
1. Create path using string.
2. get node from created path
3. set class name using setClassName
Example code
public class RaphaelChart extends PaperWidget {
public void draw() {
Path path = this.getPaper().path("M0,0L10,10");
Element node = path.node();
node.setClassName("pretty");
}
}
What is the expected output? What do you see instead?
Expected path with class attribute. Got path without class attribute.
What version of the product are you using? On what operating system?
raphael4gwt-0.40
Additional info:
path.node() returns SVGAnimatedString which is different from com.google.gwt.dom.client.Element.
Original issue reported on code.google.com by [email protected]
on 30 Jul 2013 at 9:58
What steps will reproduce the problem?
Attrs a = Attrs.create();
a.r(4); // works - x and y corner radii are set as rx = "4" and ry = "4"
a.rx(5); // doesn't work - should set rx="5", get rx="0"
a.ry(2); // doesn't work - should set ry="2", get ry="0"
a.setRadius(4); // works - x and y corner radii are set as rx = "4" and ry = "4"
a.setRadiusX(5); // doesn't work - should set rx="5", get rx="0"
a.setRadiusY(2); // doesn't work - should set ry="2", get ry="0"
// setting through the attribute name directly gives the same results
a.set("r", "4"); // works - x and y corner radii are set as rx = "4" and ry =
"4"
a.set("rx", "5"); // doesn't work - should set rx="5", get rx="0"
a.set("ry", "2"); // doesn't work - should set ry="2", get ry="0"
What is the expected output? What do you see instead?
Should be able to set different x and y corner radii for rectangles.
Also, would be very nice to have versions of the setRadius(), rx(), and ry()
methods that take doubles.
What version of the product are you using? On what operating system?
Using Eclipse Juno 64-bit on Windows 7 Pro 74-bit
Using raphael4gwt release from August 17:
http://code.google.com/p/raphael4gwt/downloads/detail?name=raphael4gwt-0.36.jar&
can=2&q=
Love the product.
Thanks,
Joe
Original issue reported on code.google.com by [email protected]
on 19 Dec 2012 at 4:42
What steps will reproduce the problem?
1. just run ant
2.
3.
What is the expected output? What do you see instead?
a correct build
otherwise I see a lot of garbage
What version of the product are you using? On what operating system?
GWT-2.4.0
Please provide any additional information below.
there is also a character after in between the words cubic and bezier
the files that need to be modified are
Attrs.java
Gradient.java
Shape.java
Paper.java
Raphael.java
see attachments for corrections.
Also, you might as well update the version number to 0.33
thanks
Original issue reported on code.google.com by [email protected]
on 2 May 2012 at 1:48
Attachments:
g.raphael.all-min.js in raphael4gwt-0.35.jar contains char sequence ",}" and
thus it does not work with IE. Simply removing the comma solves the issue.
.. Or i might be missing some point, I'm new to this javascript world. Thanks
for making it easier for me with raphael4gwt :)
Original issue reported on code.google.com by [email protected]
on 21 Jun 2012 at 8:19
This new file seems not to be committed to SVN.
Can you please check; Thanks
Original issue reported on code.google.com by [email protected]
on 21 May 2012 at 6:02
What steps will reproduce the problem?
answer:
Just run following script:
var paper = Raphael(0,0, 1000,1000);
var c1 = paper.path("M0, 0L10, 10");
var c2 = paper.path("M0, 0L10, 10");
c2.matrix.add(1,0,0,-1,0, 60);
c2.attr({transform: c2.matrix.toTransformString()});
What is the expected output? What do you see instead?
anser:
Expected: c1 and c2 both should show. c2 is flipped.
Actual: Only c1 shows. c2 does not show after flip Y.
What version of the product are you using? On what operating system?
Raphaël 2.1.2
OS: Windows 7 & IE11
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 18 Nov 2014 at 7:28
Attachments:
What steps will reproduce the problem?
1. Use raphael4gwt-0.37.jar
2. Use any graphael call, eg. pie chart
3.
What is the expected output? What do you see instead?
Expected:A chart displayed in the paper.
Shown:There is nothing shown, and the script stops running just at the
paper.piechart(...) call. No exceptions thrown, the script just stops running
at that point (all instructions after the call are not run).
What version of the product are you using? On what operating system?
0.37, Firefox, Win7
Please provide any additional information below.
Changed to 0.36 and it works as expected.
Original issue reported on code.google.com by [email protected]
on 21 Feb 2013 at 12:55
Hi! I have the following code:
paper.setStart();
Rect box = paper.rect(this.X, this.Y, this.grid, this.H);
Text text = paper.text(this.X+this.grid/2,this.Y+this.H/2, "OR");
//text.attr(Attrs.create().stroke("red").strokeWidth(1));
this.svg = paper.setFinish();
final FTOptions ftOpts = FTOptions.create();
ftOpts.setRotate(true);
ftOpts.setAttrs(Attrs.create().fill("red").strokeWidth(4).stroke("blue"));
//ftOpts.setScale(false);
final FreeTransform ft = paper.freeTransform(this.svg, ftOpts,new FTCallback(){@Override
public void call(FTSubject s, JsArrayString events) {}});
ft.updateHandles();
I get the following error:
....
Caused by: com.google.gwt.dev.shell.HostedModeException: Something other than a
boolean was returned from JSNI method
'@org.sgx.raphael4gwt.raphael.ft.FTOptions::setRotate(Z)': JS value of type
undefined, expected boolean
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:100)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeBoolean(ModuleSpace.java:186)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeBoolean(JavaScriptHost.java:35)
at org.sgx.raphael4gwt.raphael.ft.FTOptions$.setRotate$(FTOptions.java)
at com.altesco.editor.client.graphic.LogicElement.<init>(LogicElement.java:30)
at com.altesco.editor.client.EditorShell$1.paperLoaded(EditorShell.java:108)
at org.sgx.raphael4gwt.raphael.PaperWidget.onLoad(PaperWidget.java:46)
at com.google.gwt.user.client.ui.Widget.onAttach(Widget.java:350)
....
did I something wrong?
Original issue reported on code.google.com by [email protected]
on 15 Mar 2012 at 8:54
What steps will reproduce the problem?
PathCmd cmd = new PathCmd(x1, y1);
cmd.Q(x1, y1 + 50, x2, y2);
Path path = paperWidget.getPaper().path(cmd);
path.attr(Attrs.create().strokeWidth(5.0).stroke(color));
What is the expected output? What do you see instead?
Expected output: a quad curve.
Output:
java.lang.ArrayIndexOutOfBoundsException: 2
org.sgx.raphael4gwt.raphael.PathCmd.cmdToString(PathCmd.java:229)
org.sgx.raphael4gwt.raphael.PathCmd.toPathString(PathCmd.java:155)
org.sgx.raphael4gwt.raphael.PathCmd.toPathString(PathCmd.java:161)
What version of the product are you using? On what operating system?
0.4 on Internet Explorer 10 on Windows 8.
Workaround:
Path path = paperWidget.getPaper().path("M " + x1 + " " + y1 + " Q " + x1 + " "
+ (y1 + 50) + " " + x2 + " " + y2);
Original issue reported on code.google.com by [email protected]
on 30 Mar 2014 at 10:47
What steps will reproduce the problem?
1. If I use ellipticalArc with the PathCmd, I get a problem when generating the
path string.
2.
3.
What is the expected output? What do you see instead?
error message, array out of bound exception on the pathCmd
What version of the product are you using? On what operating system?
latest, 3.5
Please provide any additional information below.
It is down to the way the Points are handled and used when rebuilding the path
string. It expects an array of 4 Points when instead it gets an array of
double[1][8], so it only sees one Point.
Original issue reported on code.google.com by leforthomas
on 21 Jun 2012 at 1:58
See method signature for text:
org.sgx.raphael4gwt.raphael.Paper.text(int x, int y, String text)
Compare to signature for rect:
org.sgx.raphael4gwt.raphael.Paper.rect(double x, double y, double w, double h,
double r)
Why aren't x and y in text() not double?
Original issue reported on code.google.com by [email protected]
on 3 Oct 2013 at 5:30
As Raphael 2.1 introduce path caching mechanism, it breaks the hover effect of
the BarChart example making the popup path appearing translated each time.
As a workaround I found out that commenting line 1378 pth.bbox = clone(bb);
that intend to store the result of pathDimensions function to avoid
recalculation permits to avoid this bug.
Or reverting to Raphael2.0.2 js file may be an option in the graphael gwt
module ?
Indeed the g.raphael github project is only using raphael2.0.2 also.
Original issue reported on code.google.com by [email protected]
on 4 May 2012 at 9:12
CircleProgressChart() in the Charts class should accept CircleProgressChartOpts
instead of IndexChartOpts
Original issue reported on code.google.com by [email protected]
on 27 Nov 2013 at 12:18
I need create mind map app with gwt.So some function
like:http://raphaeljs.com/graffle.html is needed,but from your test Gallery,I
didn't find closest example,so if possible,can you provide an demo example
about how to implement it.Thanks!!
Original issue reported on code.google.com by [email protected]
on 25 Nov 2013 at 9:56
Hello,
I came across the following SO question and jsFiddle and was wondering if it
could be easily integrated within g.raphael4gwt , what do you think???
http://stackoverflow.com/questions/7283689/g-raphael-bar-chart-and-updating-anim
ating-the-values
http://jsfiddle.net/MVwwq/86/
Original issue reported on code.google.com by [email protected]
on 18 May 2012 at 2:27
What steps will reproduce the problem?
1. ant
2.
3.
What is the expected output? What do you see instead?
A successful build
What version of the product are you using? On what operating system?
Latest from trunk
Please provide any additional information below.
ant-1.8.2
Original issue reported on code.google.com by [email protected]
on 24 Apr 2012 at 3:31
What steps will reproduce the problem?
I tried the DotChart example (the test() method)
What is the expected output? What do you see instead?
[ERROR] [webexample] - Failed to load module 'webexample' from user agent
'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko)
Chrome/21.0.1180.89 Safari/537.1' at 127.0.0.1:56009
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:525)
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
at java.lang.Thread.run(Unknown Source)
Caused by: com.google.gwt.core.client.JavaScriptException: (ReferenceError):
params is not defined
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:248)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at org.sgx.raphael4gwt.graphael.GPaper$.dotchart$(GPaper.java)
at com.nicolas.client.DotChart1.test(DotChart1.java:59)
at com.nicolas.client.WebExample.onModuleLoad(WebExample.java:22)
... 9 more
What version of the product are you using? On what operating system?
0.36
Chrome/Win7
Original issue reported on code.google.com by [email protected]
on 8 Sep 2012 at 3:09
What steps will reproduce the problem?
1. Create 2 or more pie charts with legends
2. Reload them several times with different data
3. Legends position calculation is wrong. Legends are printed out of the graph
bounds, the user is not able to see them.
What is the expected output? What do you see instead?
I would like to see the legends no matter how many pies I create
What version of the product are you using? On what operating system?
raphael4gwt 0.38
Please provide any additional information below.
I have been trying to fix that bug, it comes with raphael.js 2.1.0. I have
tried to include raphael.js 2.1.1 (http://raphaeljs.com/raphael.js) or
raphael.js 2.0.0 instead of the 2.1.0 used in the raphael4gwt package but
unfortunately it causes some other bugs because I found out that the original
raphael.js 2.1.0 in the project was already modified by you.
I wonder if you could include the raphael 2.1.1 version to your project and
copy the modifications you did in raphael 2.1.0 onto this version.
The bug was already reproduced in raphael 2.1.0 here :
http://jsfiddle.net/aamir/Ajfab/2/
Thanks a lot!
Original issue reported on code.google.com by [email protected]
on 16 Apr 2013 at 9:55
Attachments:
Could you please provide the interface for setting click and clickColumn to the
BarChart.
As a side question: do you accept patch and how ?
Regards
Original issue reported on code.google.com by [email protected]
on 3 May 2012 at 9:53
I am using your javascript overlay of raphaeljs.
An error occurs when you attempt to call String getSubpath(int from, int to).
ex:
Create a path using the Path obj in your raphael4gwt.
private Shape lp1;
PathCmd pc3 = new PathCmd(400,400), aux = pc3;
int x = 400;
for (int i = 0; i < 24; i++) {
aux=aux.lineto(x = x - 20 , 300);
}
aux.close();
lp1 = raph.getGraphPaper().path(pc3.toPathString()).attr(attrs.strokeWidth(5));
Casting --> no problem here
Path test = (Path)lp1;
String shortPath = test.getSubpath(0, 1); <--- error occurs
error:
java.lang.ClassCastException: com.google.gwt.core.client.JavaScriptObject$
cannot be cast to java.lang.String
at org.sgx.raphael4gwt.raphael.Path$.getSubpath$(Path.java)
This is the method definition in the Path Object class:
public final native String getSubpathJavaStringObj(int from, int to)/*-{
return this.getSubpath(from, to);
}-*/;
I've used many of your methods defined as this one. I'm not sure what the
problem might be?
Look forward to a reply
regards
Original issue reported on code.google.com by sebastigurin
on 11 Sep 2013 at 12:56
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.