vml

How can I adapt this javascript to target VML objects for Internet Explorer?

萝らか妹 提交于 2019-12-11 00:55:53
问题 The following code targets svg paths drawn by leaflet maps. However, on IE <= 8, leaflet falls back to VML to draw polylines. How can I adapt this code to target both VML and SVG? (function ($) { // Thank you, Pythagoras :) http://abstrusegoose.com/376 function calculateDistance(s, e) { return Math.sqrt( Math.pow(Math.abs(s.x-e.x), 2) + Math.pow(Math.abs(s.y-e.y), 2) ); } // Call on a set of paths nodes that express lines $.fn.animateLines = function (duration) { if (duration == null)

Remove Text Padding/Margin inside VML Shape

淺唱寂寞╮ 提交于 2019-12-11 00:27:59
问题 I'm trying to figure out how to get this text (!) to show up. Even though it's smaller than the circle it's in, it still gets cut off about 1/3 of the way in to the circle. I would like to use this for Outlook specifically. <v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" style="height:20px;v-text-anchor:middle;width:20px;" arcsize="50%" stroke="f" fillcolor="#ffcb05"> <center style="color:#ffffff;font-family:sans-serif;font-size:16px;font

Adding multiple VML elements via JavaScript in IE8

前提是你 提交于 2019-12-10 21:00:21
问题 Working with IE 8, I am attempting to add two VML ovals (A,B) to my page, through javascript. Whichever oval is appended to the parent DIV is rendered, but I the second is not. If I appendChild(A) then appendChild(B), Oval A is rendered, B is not. If I appendChild(B) then appendChild(A), Oval B is rendered, A is not. document.namespaces.add("v","urn:schemas-microsoft-com:vml"); this.container = Document.getElementById(mydiv); var grid2 = document.createElement("v:oval"); grid2.style.left=

HTML Email Render in Outlook - VML

故事扮演 提交于 2019-12-10 19:35:00
问题 I have created a HTML email and when viewing in Outlook 2007 I couldn't see some images as they were backgrounds. I have done some hack using VML however it won't let me leave the height value blank as it defaults to 100px, or I can't put auto or a percentage. The background image needs to be able to resize depending on the text size so it shows all the text. This is the code I have working except for the height values. <td colspan="6" align="center" valign="top" style="background-image: url(

Displaying vector graphics in a browser

谁说胖子不能爱 提交于 2019-12-09 05:04:30
问题 I need to display some interactive (attaching with DOM listeners etc. and event handling) vector graphics in web site I am working on. There is a W3C recommendation for SVG though this format is still not recognized by Internet Explorer support of which is a must (for a public website). IE handles VML though and there are even javascript libraries that do some canvas-like drawing depending on a browser (SVG vs. VML) - excanvas, GFX of Dojo Toolkit and more. That would be nice and acceptable

XSL Transform SVG to VML

本小妞迷上赌 提交于 2019-12-07 07:47:56
问题 I don't know anything about VML except that Internet Explorer and other Microsoft products use it and that it is a vector graphics format. Can one use XSLT to transform an SVG document to VML? Or are they too different from one another to make this possible? I know that there exist XSLT documents to transform SVG to XAML. 回答1: I haven't used it, but there's a sourceforge project Vector Converter that seems to do exactly that. 回答2: As a more general answer to this question, you can, VML as it

vml clipping mask

被刻印的时光 ゝ 提交于 2019-12-06 04:38:11
问题 I am trying to create a clipping mask in VML that would correspond to clip-path in SVG? Is that possible? Based on numerous, but fairly limited, examples I have tried drawing the shape: <vml:group style="WIDTH: 1px; HEIGHT: 1px" class=vml-element coordsize = "1,1"> <vml:shape style="WIDTH: 1px; HEIGHT: 1px" id=vectorObject2 class=vml-element _fill-color="red" _fill-opacity="1" _stroke-color="black" _stroke-opacity="1" _stroke-width="1" coordsize = "1,1" filled = "t" fillcolor = "red" stroked

Prevent Word 2010 from saving o:gfxdata base64 or uuencoded VML?

时光毁灭记忆、已成空白 提交于 2019-12-04 13:36:15
I am working with .docx files containing several drawing canvases with images inserted and some lines and arrows drawn in Word 2010. I am using 2010 format with no compatibility mode. Word inserts an o:gfxdata attribute into each v:shape and v:group element and fills it with ascii encoded something. From what I have read it may be a copy of the VML describing the v:shape or v:group . I don't know if I just don't know what to look for, but I cannot determine what this data is for as its removal has no apparent effect on my ability to read or edit the document in Word 2003, 2007, or 2010. It

vml clipping mask

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 07:35:20
I am trying to create a clipping mask in VML that would correspond to clip-path in SVG? Is that possible? Based on numerous, but fairly limited, examples I have tried drawing the shape: <vml:group style="WIDTH: 1px; HEIGHT: 1px" class=vml-element coordsize = "1,1"> <vml:shape style="WIDTH: 1px; HEIGHT: 1px" id=vectorObject2 class=vml-element _fill-color="red" _fill-opacity="1" _stroke-color="black" _stroke-opacity="1" _stroke-width="1" coordsize = "1,1" filled = "t" fillcolor = "red" stroked = "t" strokecolor = "black" strokeweight = ".75pt" path = "m0,0 l100,0,0,100 xe"> <vml:fill class=vml

Raphaeljs renders all text as Italic in IE

ε祈祈猫儿з 提交于 2019-12-04 03:39:25
I'm using RaphaelJS for visually representing some data. The underlying technology is SVG so obviously things don't always work that well in IE, but the library does a relatively ok job of still rendering something useful, although it often tends to look pretty poor. In any case, I can't seem to get around this basic issue. Text is rendered fine in Chrome or FireFox, but everything renders as bold and italic in IE8. To see my issue in action, go to the RaphaelJS playground and use the following code paper.text(100, 100, "this is the text") Here is the result in Chrome and IE. Is there any