Example #1
0
 /// <summary>
 /// Writes a value for the <c>repeat</c> property as a <c>cartesian2</c> value.  The <c>repeat</c> property specifies the number of times the image repeats along each axis. If not specified, the default value is [1, 1].
 /// </summary>
 /// <param name="value">The value.</param>
 public void WriteRepeatProperty(Rectangular value)
 {
     using (var writer = OpenRepeatProperty())
     {
         writer.WriteCartesian2(value);
     }
 }
Example #2
0
 /// <summary>
 /// Writes a value for the <c>lineOffset</c> property as a <c>cartesian2</c> value.  The <c>lineOffset</c> property specifies the offset of grid lines along each axis, as a percentage from 0 to 1.
 /// </summary>
 /// <param name="value">The value.</param>
 public void WriteLineOffsetProperty(Rectangular value)
 {
     using (var writer = OpenLineOffsetProperty())
     {
         writer.WriteCartesian2(value);
     }
 }
Example #3
0
        /// <summary>
        /// Writes the value expressed as a <c>cartesian2</c>, which is the pixel offset specified as a two-dimensional Cartesian value <c>[X, Y]</c>, in viewport coordinates in pixels, where X is pixels to the right and Y is pixels up.
        /// </summary>
        /// <param name="value">The value.</param>
        public void WriteCartesian2(Rectangular value)
        {
            const string PropertyName = Cartesian2PropertyName;

            OpenIntervalIfNecessary();
            Output.WritePropertyName(PropertyName);
            CesiumWritingHelper.WriteCartesian2(Output, value);
        }