.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> JavaScript/VBScript >> Post New QuestionBookmark and Share Subscribe to Forum

How to create svg text circle /upper curve according height and width

Posted By: Narayanbirla     Posted Date: November 20, 2014    Points:5   Category :JavaScript/VBScript
when increase circle height and width then circle should be create according selected hight and width size.

<svg class="stamp-panel" width="502" height="482" runat="server" id="divProductSizeImage"
style="background-repeat: no-repeat; background-position: center center;" ng-click="CancelItem($event)">
<g
data-ng-click="setFocus(item)"
data-ng-repeat="item in objects"
data-ng-attr-fill="{{item.color}}"
data-ng-attr-width="{{item.w}}"
data-ng-attr-height="{{item.h}}"
data-ng-attr-transform="{{rotate(item)}}"
data-ng-attr="1"
>
<defs>
<path
data-ng-attr-id="{{item.id}}"
data-ng-attr-d="{{makePath(item)}}" />
</defs>
<text data-ng-if="item.text"
y="0"
data-ng-attr-text-anchor="{{item.text.anchor}}"
data-ng-attr-font-family="{{item.text.font}}"
data-ng-attr-font-style="{{item.text.italic ? 'italic' : 'none'}}"
data-ng-attr-font-weight="{{item.text.bold ? 'bold' : 'normal'}}"
data-ng-attr-font-size="{{item.text.size}}"
data-ng-attr-x="{{arcMid(item)}}"
>
<textPath data-ng-xlink-href="#{{item.id}}" xlink:href="">{{item.text.text}}</textPath>
</text>
<image
data-ng-if="item.image"
data-ng-xlink-href="{{item.image.url}}"
data-ng-attr-x="{{item.x}}"
data-ng-attr-y="{{item.y}}"
data-ng-attr-width="{{item.w}}"
data-ng-attr-height="{{item.h}}"
data-ng-attr-fill="{{item.color}}"
data-ng-stretch="{{item.image.stretch}}"
preserveAspectRatio=""
xlink:href="/images/blank.png" />
<%--<path
fill="none"
ng-if="item.text"
data-ng-attr-d="{{makeBox(item)}}"
data-ng-attr-stroke="{{item.color}}" />--%>
</g>
</svg>

Responses

No response found. Be the first to respond this post
Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend