Trying to use the linear mapper style. This particular property seems to be ignored; I can't get the visualization to respond.
node {
any-property: mapData(priority, 1, 3, 0, 1);
}
I have verified in the Firefox interactive console that the nodes have the relevant priority property (with cy.$("#some-node").data()). Everything else in my stylesheet is working as expected. I'm pretty stumped.
I have confirmed that the particular mapper string mapData(priority, 1, 3, 0, 1) is parsed and works correctly. You may have another style that later overrides this property later in your stylesheet. Note also you can only use numerical values on properties that support them, like width or height.
If you think you've found a bug, please post enough information to fully reproduce your issue on the tracker: https://github.com/cytoscape/cytoscape.js/issues/new
Related
We are extending a types EAUML::table to myProfile::table and EAUML::column to custom::column. The new stereotypes have custom tagged values (e.g. Upstream tables, Column status).
We would like to tweak lightly the default shape of EAUML::table in order to add the custom tagged values of myProfile::table and myProfile::column. Therefore I am looking if I can export the default shape-script and adapt rather to rewrite the whole shape-script. Does anybody know how I could achieve this?
Thanks for any help
This question is related to a previous post I made here
No, I'm afraid that is not possible.
The table shapescript is hardcoded in EA and is not available in any MDG file (unlike say the BPMN shapescripts).
Adding decorations will probably work, but anything else is not going to work.
A decoration can be added by only specifying the decoration in your shapescript
decoration key
{
orientation="sw";
//big circle
Arc(10, 35, 65, 90, 42,35,61,50);
//key part
moveto(61,50);
lineto(72,50);
lineto(72,40);
lineto(81,40);
lineto(81,30);
lineto(90,30);
lineto(90,10);
lineto(68,10);
lineto(41,35);
//small hole
Ellipse(25,62,37,75);
}
The decoration will then be added to the parent's shape:
Writing a complete shapescript from scratch, reproducing the standard EA table is going to be very hard, or even impossible, as EA doesn't provide enough tools int the shapescript language to recreate something like the attributes compartment.
I enabled wide_line feature in VkPhysicalDeviceFeatures and i am giving appropriate value in pRasterizationState as well. But i dont see the width increased for the lines. What am I missing here?
Does the implementation support wide lines? Check the value of VkphysicalDeviceFeatures:: wideLines you get from vkGetPhysicalDeviceFeatures. Also check the lineWidthRange and lineWidthGranularity in VkPhysicalDeviceLimits.
Are you setting VK_DYNAMIC_STATE_LINE_WIDTH in VkPipelineDynamicStateCreateInfo::pDynamicStates? If so, you need to set the line width using vkCmdSetLineWidth rather than VkPipelineRasterizationStateCreateInfo::lineWidth.
I'm currently working on converting a VBA AutoCAD-application over to VB.NET, and the current command I'm working on is creating a simple leader with code like this:
Set leaderObj = ThisDrawing.ModelSpace.AddLeader(points, blockRefObj, leaderType)
leaderObj.ArrowheadType = acArrowDotSmall
leaderObj.ArrowheadSize = 2.5 * varDimscale
leaderObj.DimensionLineColor = acWhite
I've been able to create the Leader-line in .NET using
Dim l = New Leader()
For Each point In jig.LeaderPoints
l.AppendVertex(point)
Next
l.Dimldrblk = arrId
The arrId I got from using the function found here, but I've been unable to figure out how to set the color of the leader to white (it shows up as red by default), and also how to set the size of the arrowhead. If anyone could help me out with this I would be most grateful.
Ok, after a lot of trial and error, I figured out that the solution was rather simple. I didn't have to override any dimension styles (which I honestly don't even know what is, I had a short beginners course in AutoCAD before getting handed this project), I simply had to set an obscure property on the Leader-object. For future references, and for anyone else trying to do the same, here's the properties I ended up using:
leader.Dimclrd
The color of the leader-line. Stands for something like "dimension line color".
leader.Dimasz
The scale of the leader-head.
As type BlockReference, it should have a color property and the property should be an Autodesk.Autocad.Colors.Color or an Integer. Also the reason you are getting the object for read is, in your transaction you are opening the database with
OpenMode.ForRead
And that is correct. But to edit the object in the database, you must retrieve the object like below
var obj = Thetransaction.GetObject(theobjectid,OpenMode.ForWrite) as BlockReferance;
This is done inside of the
using(var trans = TransactionManager.StartTransaction()){}
I'm doing this on a cell, so check the camel case and syntax because I write in c#, but it should be pretty close.
You may want to see if there is a scale property, as to change the size.
Hopefully this will move you in the right direction.
Let me know if you have any problems. :)
This might be a quick and easy question, but I was still unable to find the answer.
In less, is there any way of using a mixin (say .mixin(#a: 2, #b: 3) { /* css here */ }) and only supplying values for given parameters? I know I can use this as .mixin(5) which would be the same as .mixin(5, 3), but can I do something like .mixin(#b: 5)? Meaning the same as .mixin(2, 5) (however I wouldn't have to know the value of a to use the default).
In less using the dotless compiler you can do
.mixin(#b:3);
This will be in the original less.js in 1.3.1 (the next release)- see https://github.com/cloudhead/less.js/pull/268
I have encountered something strange.
I wanted to have the value of my gridview boundfield so I did this.
SelectedID = objGridView.Rows(0).Cells(4).Text.ToString
At first this seemed to work. I played around a little created a hyperlinkfield wanted to get that value but got an empty string. After some looking around it turned out I could not get it as easily as I could with a boundtextfield. No problem.
But here comes my problem , now all of a sudden my line of code to retrieve the value from the selectedId does not work anymore ( at least I'm getting empty strings back ).
I've build and rebuild my gridview but to no avail.
I'm flabbergasted and don't get it why it doesn't work anymore.
Hence my question.
Does anyone have an idea what's happening or have a solution to this problem.
edit:
I'm seeing this in my item value
"In order to evaluate an indexed property, the property must be qualified and the arguments must be explicitly supplied by the user"
Don't know why you dont use the datagridview.
I started with GridView as well but after changing the control type it's really easy to get those values e.g:
SelectedID = dgvExample.CurrentRow.Cells("Columname/Index").Value
dgv compared with gv
There is an answer here
An other one (which was the reason of my problem) could be that the BoundFields are set to Visible = false. Invisible Bound fields are... not bound.
A simple workaround is to make it invisible in CSS instead.
Code behind :
gvColumn.ItemStyle.CssClass = "className"
CSS :
.className { display:none; }