@office-open/core 0.12.3 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chart/index.d.mts +2 -2
- package/dist/chart/index.mjs +1 -1
- package/dist/{chart-DEIF3VZn.mjs → chart-Bn_McAo-.mjs} +4 -4
- package/dist/chart-Bn_McAo-.mjs.map +1 -0
- package/dist/drawing/index.d.mts +2 -2
- package/dist/drawing/index.mjs +1 -1
- package/dist/{drawing-BVwCkNXB.mjs → drawing-DJ363Awy.mjs} +102 -108
- package/dist/drawing-DJ363Awy.mjs.map +1 -0
- package/dist/{ext-uri-BHBcIrW7.mjs → ext-uri-BR1ouCh3.mjs} +6 -11
- package/dist/ext-uri-BR1ouCh3.mjs.map +1 -0
- package/dist/{index-DRggxtp7.d.mts → index-6_MYd0cg.d.mts} +3 -3
- package/dist/{index-DRggxtp7.d.mts.map → index-6_MYd0cg.d.mts.map} +1 -1
- package/dist/{index-DPkf_CtG.d.mts → index-BDeoFmTS.d.mts} +146 -149
- package/dist/index-BDeoFmTS.d.mts.map +1 -0
- package/dist/{index-DfFszyH1.d.mts → index-Cd0lFS5x.d.mts} +9 -17
- package/dist/index-Cd0lFS5x.d.mts.map +1 -0
- package/dist/{index-DcukVskh.d.mts → index-DOtPArpl.d.mts} +2 -2
- package/dist/{index-DcukVskh.d.mts.map → index-DOtPArpl.d.mts.map} +1 -1
- package/dist/{index-BwRtWyaP.d.mts → index-Dg0nIw2S.d.mts} +7 -7
- package/dist/{index-BwRtWyaP.d.mts.map → index-Dg0nIw2S.d.mts.map} +1 -1
- package/dist/{index-L6AXewfV.d.mts → index-DkJrkIVp.d.mts} +2 -3
- package/dist/index-DkJrkIVp.d.mts.map +1 -0
- package/dist/index.d.mts +8 -8
- package/dist/index.mjs +30 -10
- package/dist/index.mjs.map +1 -1
- package/dist/patch-AkQY17CD.mjs.map +1 -1
- package/dist/smartart/index.d.mts +1 -1
- package/dist/smartart/index.mjs +1 -1
- package/dist/{smartart-YH87Emca.mjs → smartart-D-8KBdQ_.mjs} +4 -4
- package/dist/{smartart-YH87Emca.mjs.map → smartart-D-8KBdQ_.mjs.map} +1 -1
- package/dist/{style-matrix-DjhMuuQg.mjs → style-matrix-B6YSVw6a.mjs} +2 -2
- package/dist/{style-matrix-DjhMuuQg.mjs.map → style-matrix-B6YSVw6a.mjs.map} +1 -1
- package/dist/theme/index.d.mts +3 -3
- package/dist/theme/index.mjs +2 -2
- package/dist/{theme-Dx0Db9bX.mjs → theme-BdqG5lmO.mjs} +3 -3
- package/dist/theme-BdqG5lmO.mjs.map +1 -0
- package/dist/{theme-options-kO89NUEX.d.mts → theme-options-wZX4i_xx.d.mts} +2 -2
- package/dist/{theme-options-kO89NUEX.d.mts.map → theme-options-wZX4i_xx.d.mts.map} +1 -1
- package/dist/util/index.d.mts +2 -2
- package/dist/util/index.mjs +3 -3
- package/dist/{util-iHHKF2Rx.mjs → util-BGfk-gE0.mjs} +2 -2
- package/dist/{util-iHHKF2Rx.mjs.map → util-BGfk-gE0.mjs.map} +1 -1
- package/dist/vector/index.d.mts +2 -2
- package/dist/vector/index.mjs +2 -2
- package/dist/{vector-DZ_OteHJ.mjs → vector-BhETDAdp.mjs} +2 -9
- package/dist/vector-BhETDAdp.mjs.map +1 -0
- package/package.json +2 -2
- package/dist/chart-DEIF3VZn.mjs.map +0 -1
- package/dist/drawing-BVwCkNXB.mjs.map +0 -1
- package/dist/ext-uri-BHBcIrW7.mjs.map +0 -1
- package/dist/index-DPkf_CtG.d.mts.map +0 -1
- package/dist/index-DfFszyH1.d.mts.map +0 -1
- package/dist/index-L6AXewfV.d.mts.map +0 -1
- package/dist/theme-Dx0Db9bX.mjs.map +0 -1
- package/dist/vector-DZ_OteHJ.mjs.map +0 -1
package/dist/drawing/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as ColorStyleLabelOptions, $a as
|
|
2
|
-
export { type AdjustListOptions, type AdjustOptions, type AnimateOneByOne, type AnimateOneByOneOptions, type AnimationLevel, type AnimationLevelOptions, AutoNumberFormat, type BackdropOptions, type BevelOptions, type BevelPreset, type BlackWhiteMode, BlendMode, type BlipCompression, BlipDescriptorOptions, type BlipEffectsOptions, type BlipFillConfigOptions, type BlipFillMediaData, type BlipFillOptions, type BlipOptions, type BlurEffectOptions, BodyPropertiesOptions, BulletAutoNumOptions, BulletCharOptions, BulletNoneOption, BulletOptions, BulletPictureOptions, BulletStyleOptions, type CameraOptions, Cell3DOptions, type ColorListOptions, type ColorMethod, type ColorStyleLabelOptions, type ColorTransformOptions, type ColorsDefinitionHeaderListOptions, type ColorsDefinitionHeaderOptions, type CompoundLine, type
|
|
1
|
+
import { $ as ColorStyleLabelOptions, $a as ScRgbColorOptions, $i as calculateEffectExtent, $n as ParagraphDescriptorOptions, $r as bodyPropertiesDesc, $t as pickNonVisualDrawingProperties, A as patternFillDesc, Aa as PatternFillOptions, Ai as LineEndType, An as parseTableStyleList, Ar as StrikeStyle, At as AnimateOneByOneOptions, B as solidFillDesc, Ba as TileAlignment, Bi as GeomRect, Bn as createGroupTransform2D, Br as TextRunOptions, Bt as createAdjustList, C as pictureLockingDesc, Ca as createGradientStop, Ci as OutlineFillProperties, Cn as TableStyleOptions, Cr as BulletStyleOptions, Ct as createLayoutDefinitionHeader, D as fillDesc, Da as GradientStopOptions, Di as createOutline, Dn as createTableStyle, Dr as DEFAULT_SHADOW_DIRECTION, Dt as AdjustListOptions, E as emitFillXml, Ea as FillOptions, Ei as PresetDash, En as ThemeableLineStyleOptions, Er as DEFAULT_SHADOW_BLUR_RADIUS, Et as createStyleDefinitionHeaderList, F as parseColorChoiceElement, Fa as BlipCompression, Fi as PresetGeometryOptions, Fn as shape3DDesc, Fr as TextCharacterPropertiesOptions, Ft as MaxChildrenOptions, G as DiagramTextPropertiesOptions, Ga as createColorElement, Gi as GeometryGuide, Gn as createBlipFill, Gr as NormalAutofitOptions, Gt as createOrgChart, H as systemColorDesc, Ha as TileOptions, Hi as PathFillMode, Hn as stringifyStretch, Hr as UnderlineStyle, Ht as createAnimationLevel, I as presetColorDesc, Ia as BlipOptions, Ii as ShapeType, In as StyleMatrixReferenceOptions, Ir as TextFieldOptions, It as OrgChartOptions, J as createDiagramTextProperties, Ja as SystemColorOptions, Ji as EffectDagOptions, Jn as stringifyLineProperties, Jr as TextHorzOverflow, Jt as NonVisualContentPartPropertiesOptions, K as createDiagramExtensionList, Ka as createSolidFill, Ki as stringifyAdjustmentValues, Kn as createSoftEdgeEffect, Kr as PresetTextShapeOptions, Kt as createPreferredChildren, L as rgbColorDesc, La as createBlip, Li as stringifyPresetGeometry, Ln as BlackWhiteMode, Lr as TextFont, Lt as PreferredChildrenOptions, M as hslColorDesc, Ma as createPatternFill, Mi as createLineEnd, Mn as bevelDesc, Mr as TextAlignment, Mt as AnimationLevelOptions, N as isPlainRgbColor, Na as SourceRectangleOptions, Ni as DashStop, Nn as cell3DDesc, Nr as TextBreakOptions, Nt as HierBranch, O as findFillChild, Oa as buildFill, Oi as LineEndLength, On as createTableStyleList, Or as DEFAULT_SHADOW_DISTANCE, Ot as AdjustOptions, P as parseColorChoice, Pa as createSourceRectangle, Pi as createCustomDash, Pn as scene3DDesc, Pr as TextCapitalization, Pt as HierBranchOptions, Q as ColorMethod, Qa as createSchemeColor, Qi as EffectListOptions, Qn as textBodyDesc, Qr as VerticalAnchor, Qt as parseNonVisualDrawingProperties, R as scRgbColorDesc, Ra as BlipEffectsOptions, Ri as ConnectionSite, Rn as GroupTransform2DOptions, Rr as TextHyperlinkOptions, Rt as PresentationLayoutVariablesOptions, S as groupLockingDesc, Sa as createGradientFill, Si as LineJoin, Sn as TableStyleListOptions, Sr as BulletPictureOptions, St as createColorsDefinitionHeaderList, T as effectListDesc, Ta as BlipFillMediaData, Ti as PenAlignment, Tn as TableTextStyleOptions, Tr as DEFAULT_SHADOW_ALPHA, Tt as createStyleDefinitionHeader, U as DiagramExtensionListOptions, Ua as createTileInfo, Ui as PathOptions, Un as createExtensionList, Ur as BodyPropertiesOptions, Ut as createHierBranch, V as stringifyColorChoice, Va as TileFlipMode, Vi as PathCommand, Vn as createTransform2D, Vr as TextTabAlignment, Vt as createAnimateOneByOne, W as DiagramExtensionOptions, Wa as SolidFillOptions, Wi as createCustomGeometry, Wn as BlipFillOptions, Wr as FlatTextOptions, Wt as createMaxChildren, X as createDiagramRelationshipIds, Xa as SchemeColor, Xi as BlurEffectOptions, Xn as createNoFill, Xr as TextVertOverflow, Xt as stringifyNonVisualContentPartProperties, Y as DiagramRelationshipIdsOptions, Ya as createSystemColor, Yi as createEffectDag, Yn as createGroupFill, Yr as TextShapePreset, Yt as parseNonVisualContentPartProperties, Z as ColorListOptions, Za as SchemeColorOptions, Zi as EffectExtent, Zn as TextBodyOptions, Zr as TextVertical, Zt as NonVisualDrawingPropertiesOptions, _ as transform2DDesc, _a as GradientShadeOptions, _i as SphereCoords, _n as TableBackgroundStyleOptions, _r as AutoNumberFormat, _t as LayoutDefinitionHeaderListOptions, a as BlipDescriptorOptions, aa as createPresetShadowEffect, ai as PresetMaterial, an as ContentPartLockingOptions, ao as createPresetColor, ar as readHyperlink, at as createEffectColorList, b as connectorLockingDesc, ba as PathShadeOptions, bi as CompoundLine, bn as TableFontReferenceOptions, br as BulletNoneOption, bt as StyleDefinitionHeaderOptions, c as sourceRectangleDesc, ca as createOuterShadowEffect, ci as BevelOptions, cn as PictureLockingOptions, co as ColorTransformOptions, cr as stringifyRunProperties, ct as createStyleLabel, d as tileDesc, da as GlowEffectOptions, di as createBottomBevel, dn as createContentPartLocking, dr as TextStylesOptions, dt as createTextLineColorList, ea as createEffectList, ei as createBodyProperties, en as stringifyNonVisualDrawingProperties, eo as createScRgbColor, er as paragraphDesc, et as DiagramStyleOptions, f as stringifyTextRun, fa as createGlowEffect, fi as BackdropOptions, fn as createGraphicFrameLocking, fr as parseTextStyles, ft as ColorsDefinitionHeaderListOptions, g as groupTransform2DDesc, ga as GradientFillOptions, gi as Scene3DOptions, gn as OnOffStyleType, gr as textStylesDesc, gt as DiagramNameOptions, h as groupShapePropertiesDesc, ha as createFillOverlayEffect, hi as Point3D, hn as createShapeLocking, hr as textListStyleDesc, ht as DiagramDescriptionOptions, i as presentationLayoutVariablesDesc, ia as PresetShadowEffectOptions, ii as shapePropertiesDesc, in as ConnectorLockingOptions, io as PresetColorOptions, ir as buildHyperlinkElement, it as createDiagramStyle, j as emitColorChoice, ja as PresetPattern, ji as LineEndWidth, jn as Cell3DOptions, jr as TabStopOptions, jt as AnimationLevel, k as gradientFillDesc, ka as extractBlipFillMedia, ki as LineEndOptions, kn as parseTableStyle, kr as RunFont, kt as AnimateOneByOne, l as stretchDesc, la as InnerShadowEffectOptions, li as BevelPreset, ln as ShapeLockingOptions, lo as createColorTransforms, lr as DEFAULT_TEXT_STYLES, lt as createTextEffectColorList, m as GroupShapePropertiesOptions, ma as FillOverlayEffectOptions, mi as LightRigOptions, mn as createPictureLocking, mr as stringifyTextStyles, mt as DiagramCategoryOptions, n as diagramRelationshipIdsDesc, na as createReflectionEffect, ni as ShapePropertiesExtensionOptions, nn as parseEndpointConnection, no as createRgbColor, nr as stringifyParagraphPropertiesElement, nt as HueDirection, o as blipDesc, oa as OuterShadowEffectOptions, oi as Shape3DOptions, on as GraphicFrameLockingOptions, oo as HslColorOptions, or as registerHyperlink, ot as createFillColorList, p as textRunDesc, pa as BlendMode, pi as CameraOptions, pn as createGroupLocking, pr as stringifyTextListStyleTag, pt as ColorsDefinitionHeaderOptions, q as createDiagramShape3D, qa as SystemColor, qi as EffectContainer, qn as outlineDesc, qr as TextBodyWrapping, qt as createPresentationLayoutVariables, r as diagramStyleDesc, ra as PresetShadow, ri as ShapePropertiesOptions, rn as stringifyEndpointConnection, ro as PresetColor, rr as Mutable, rt as StyleMatrixIndex, s as blipFillDesc, sa as RectAlignment, si as createShape3D, sn as GroupLockingOptions, so as createHslColor, sr as runPropertiesDesc, st as createLineColorList, t as diagramExtensionListDesc, ta as ReflectionEffectOptions, ti as parseBodyProperties, tn as EndpointConnectionOptions, to as RgbColorOptions, tr as readParagraphProperties, tt as FontCollectionIndex, u as stringifyBlipEffects, ua as createInnerShadowEffect, ui as createBevel, un as createConnectorLocking, ur as TextListStyleOptions, ut as createTextFillColorList, v as customGeometryDesc, va as LinearShadeOptions, vi as Vector3D, vn as TableCellBorderOptions, vr as BulletAutoNumOptions, vt as LayoutDefinitionHeaderOptions, w as shapeLockingDesc, wa as BlipFillConfigOptions, wi as OutlineOptions, wn as TableStyleRegion, wr as DEFAULT_OUTLINE_WIDTH, wt as createLayoutDefinitionHeaderList, x as graphicFrameLockingDesc, xa as RelativeRect, xi as LineCap, xn as TablePartStyleOptions, xr as BulletOptions, xt as createColorsDefinitionHeader, y as presetGeometryDesc, ya as PathShade, yi as createScene3D, yn as TableCellStyleOptions, yr as BulletCharOptions, yt as StyleDefinitionHeaderListOptions, z as schemeColorDesc, za as createBlipEffects, zi as CustomGeometryOptions, zn as Transform2DOptions, zr as TextParagraphPropertiesOptions, zt as createAdjust } from "../index-BDeoFmTS.mjs";
|
|
2
|
+
export { type AdjustListOptions, type AdjustOptions, type AnimateOneByOne, type AnimateOneByOneOptions, type AnimationLevel, type AnimationLevelOptions, AutoNumberFormat, type BackdropOptions, type BevelOptions, type BevelPreset, type BlackWhiteMode, BlendMode, type BlipCompression, BlipDescriptorOptions, type BlipEffectsOptions, type BlipFillConfigOptions, type BlipFillMediaData, type BlipFillOptions, type BlipOptions, type BlurEffectOptions, BodyPropertiesOptions, BulletAutoNumOptions, BulletCharOptions, BulletNoneOption, BulletOptions, BulletPictureOptions, BulletStyleOptions, type CameraOptions, Cell3DOptions, type ColorListOptions, type ColorMethod, type ColorStyleLabelOptions, type ColorTransformOptions, type ColorsDefinitionHeaderListOptions, type ColorsDefinitionHeaderOptions, type CompoundLine, type ConnectionSite, type ConnectorLockingOptions, type ContentPartLockingOptions, type CustomGeometryOptions, DEFAULT_OUTLINE_WIDTH, DEFAULT_SHADOW_ALPHA, DEFAULT_SHADOW_BLUR_RADIUS, DEFAULT_SHADOW_DIRECTION, DEFAULT_SHADOW_DISTANCE, DEFAULT_TEXT_STYLES, type DashStop, type DiagramCategoryOptions, type DiagramDescriptionOptions, type DiagramExtensionListOptions, type DiagramExtensionOptions, type DiagramNameOptions, type DiagramRelationshipIdsOptions, type DiagramStyleOptions, type DiagramTextPropertiesOptions, type EffectContainer, type EffectDagOptions, type EffectExtent, type EffectListOptions, type EndpointConnectionOptions, type FillOptions, type FillOverlayEffectOptions, FlatTextOptions, FontCollectionIndex, type GeomRect, type GeometryGuide, type GlowEffectOptions, type GradientFillOptions, type GradientShadeOptions, type GradientStopOptions, type GraphicFrameLockingOptions, type GroupLockingOptions, GroupShapePropertiesOptions, type GroupTransform2DOptions, type HierBranch, type HierBranchOptions, type HslColorOptions, type HueDirection, type InnerShadowEffectOptions, type LayoutDefinitionHeaderListOptions, type LayoutDefinitionHeaderOptions, type LightRigOptions, type LineCap, type LineEndLength, type LineEndOptions, type LineEndType, type LineEndWidth, type LineJoin, type LinearShadeOptions, type MaxChildrenOptions, Mutable, type NonVisualContentPartPropertiesOptions, type NonVisualDrawingPropertiesOptions, NormalAutofitOptions, type OnOffStyleType, type OrgChartOptions, type OuterShadowEffectOptions, type OutlineFillProperties, type OutlineOptions, ParagraphDescriptorOptions, type PathCommand, type PathFillMode, type PathOptions, type PathShade, type PathShadeOptions, type PatternFillOptions, type PenAlignment, type PictureLockingOptions, type Point3D, type PreferredChildrenOptions, type PresentationLayoutVariablesOptions, PresetColor, type PresetColorOptions, type PresetDash, type PresetGeometryOptions, type PresetMaterial, type PresetPattern, type PresetShadow, type PresetShadowEffectOptions, PresetTextShapeOptions, type RectAlignment, type ReflectionEffectOptions, type RelativeRect, type RgbColorOptions, RunFont, type ScRgbColorOptions, type Scene3DOptions, SchemeColor, type SchemeColorOptions, type Shape3DOptions, type ShapeLockingOptions, ShapePropertiesExtensionOptions, ShapePropertiesOptions, type ShapeType, type SolidFillOptions, type SourceRectangleOptions, type SphereCoords, StrikeStyle, type StyleDefinitionHeaderListOptions, type StyleDefinitionHeaderOptions, type StyleMatrixIndex, type StyleMatrixReferenceOptions, SystemColor, type SystemColorOptions, TabStopOptions, type TableBackgroundStyleOptions, type TableCellBorderOptions, type TableCellStyleOptions, type TableFontReferenceOptions, type TablePartStyleOptions, type TableStyleListOptions, type TableStyleOptions, type TableStyleRegion, type TableTextStyleOptions, TextAlignment, TextBodyOptions, TextBodyWrapping, TextBreakOptions, TextCapitalization, TextCharacterPropertiesOptions, TextFieldOptions, TextFont, TextHorzOverflow, TextHyperlinkOptions, TextListStyleOptions, TextParagraphPropertiesOptions, TextRunOptions, TextShapePreset, TextStylesOptions, TextTabAlignment, TextVertOverflow, TextVertical, type ThemeableLineStyleOptions, type TileAlignment, type TileFlipMode, type TileOptions, type Transform2DOptions, UnderlineStyle, type Vector3D, VerticalAnchor, bevelDesc, blipDesc, blipFillDesc, bodyPropertiesDesc, buildFill, buildHyperlinkElement, calculateEffectExtent, cell3DDesc, connectorLockingDesc, createAdjust, createAdjustList, createAnimateOneByOne, createAnimationLevel, createBevel, createBlip, createBlipEffects, createBlipFill, createBodyProperties, createBottomBevel, createColorElement, createColorTransforms, createColorsDefinitionHeader, createColorsDefinitionHeaderList, createConnectorLocking, createContentPartLocking, createCustomDash, createCustomGeometry, createDiagramExtensionList, createDiagramRelationshipIds, createDiagramShape3D, createDiagramStyle, createDiagramTextProperties, createEffectColorList, createEffectDag, createEffectList, createExtensionList, createFillColorList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefinitionHeader, createLayoutDefinitionHeaderList, createLineColorList, createLineEnd, createMaxChildren, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createPatternFill, createPictureLocking, createPreferredChildren, createPresentationLayoutVariables, createPresetColor, createPresetShadowEffect, createReflectionEffect, createRgbColor, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createStyleDefinitionHeader, createStyleDefinitionHeaderList, createStyleLabel, createSystemColor, createTableStyle, createTableStyleList, createTextEffectColorList, createTextFillColorList, createTextLineColorList, createTileInfo, createTransform2D, customGeometryDesc, diagramExtensionListDesc, diagramRelationshipIdsDesc, diagramStyleDesc, effectListDesc, emitColorChoice, emitFillXml, extractBlipFillMedia, fillDesc, findFillChild, gradientFillDesc, graphicFrameLockingDesc, groupLockingDesc, groupShapePropertiesDesc, groupTransform2DDesc, hslColorDesc, isPlainRgbColor, outlineDesc, paragraphDesc, parseBodyProperties, parseColorChoice, parseColorChoiceElement, parseEndpointConnection, parseNonVisualContentPartProperties, parseNonVisualDrawingProperties, parseTableStyle, parseTableStyleList, parseTextStyles, patternFillDesc, pickNonVisualDrawingProperties, pictureLockingDesc, presentationLayoutVariablesDesc, presetColorDesc, presetGeometryDesc, readHyperlink, readParagraphProperties, registerHyperlink, rgbColorDesc, runPropertiesDesc, scRgbColorDesc, scene3DDesc, schemeColorDesc, shape3DDesc, shapeLockingDesc, shapePropertiesDesc, solidFillDesc, sourceRectangleDesc, stretchDesc, stringifyAdjustmentValues, stringifyBlipEffects, stringifyColorChoice, stringifyEndpointConnection, stringifyLineProperties, stringifyNonVisualContentPartProperties, stringifyNonVisualDrawingProperties, stringifyParagraphPropertiesElement, stringifyPresetGeometry, stringifyRunProperties, stringifyStretch, stringifyTextListStyleTag, stringifyTextRun, stringifyTextStyles, systemColorDesc, textBodyDesc, textListStyleDesc, textRunDesc, textStylesDesc, tileDesc, transform2DDesc };
|
package/dist/drawing/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as createAdjustList, $n as createSystemColor, $t as createGroupFill, A as groupShapePropertiesDesc, An as createEffectColorList, At as createCustomGeometry, B as shapeLockingDesc, Bn as emitColorChoice, Bt as createSoftEdgeEffect, C as createBodyProperties, Cn as bevelDesc, Ct as parseTableStyleList, D as DEFAULT_SHADOW_BLUR_RADIUS, Dn as FontCollectionIndex, Dt as createBlipFill, E as DEFAULT_SHADOW_ALPHA, En as shape3DDesc, Et as stringifyStretch, F as presetGeometryDesc, Fn as createTextFillColorList, Ft as createBottomBevel, G as createDiagramRelationshipIds, Gn as presetColorDesc, Gt as createGlowEffect, H as createDiagramExtensionList, Hn as isPlainRgbColor, Ht as createPresetShadowEffect, I as connectorLockingDesc, In as createTextLineColorList, It as createScene3D, J as createLayoutDefinitionHeader, Jn as schemeColorDesc, Jt as outlineDesc, K as createColorsDefinitionHeader, Kn as rgbColorDesc, Kt as BlendMode, L as graphicFrameLockingDesc, Lt as createEffectDag, M as groupTransform2DDesc, Mn as createLineColorList, Mt as stringifyAdjustmentValues, N as transform2DDesc, Nn as createStyleLabel, Nt as createShape3D, O as DEFAULT_SHADOW_DIRECTION, Ot as createBlip, P as customGeometryDesc, Pn as createTextEffectColorList, Pt as createBevel, Q as createAdjust, Qn as SystemColor, Qt as createCustomDash, R as groupLockingDesc, Rn as createColorElement, Rt as calculateEffectExtent, S as bodyPropertiesDesc, Sn as createRgbColor, St as parseTableStyle, T as DEFAULT_OUTLINE_WIDTH, Tn as scene3DDesc, Tt as createTransform2D, U as createDiagramShape3D, Un as parseColorChoice, Ut as createOuterShadowEffect, V as effectListDesc, Vn as hslColorDesc, Vt as createReflectionEffect, W as createDiagramTextProperties, Wn as parseColorChoiceElement, Wt as createInnerShadowEffect, X as createStyleDefinitionHeader, Xn as stringifyColorChoice, Xt as createOutline, Y as createLayoutDefinitionHeaderList, Yn as solidFillDesc, Yt as stringifyLineProperties, Z as createStyleDefinitionHeaderList, Zn as systemColorDesc, Zt as createLineEnd, _ as buildHyperlinkElement, _n as stretchDesc, _t as createGroupLocking, a as textBodyDesc, an as
|
|
1
|
+
import { $ as createAdjustList, $n as createSystemColor, $t as createGroupFill, A as groupShapePropertiesDesc, An as createEffectColorList, At as createCustomGeometry, B as shapeLockingDesc, Bn as emitColorChoice, Bt as createSoftEdgeEffect, C as createBodyProperties, Cn as bevelDesc, Ct as parseTableStyleList, D as DEFAULT_SHADOW_BLUR_RADIUS, Dn as FontCollectionIndex, Dt as createBlipFill, E as DEFAULT_SHADOW_ALPHA, En as shape3DDesc, Et as stringifyStretch, F as presetGeometryDesc, Fn as createTextFillColorList, Ft as createBottomBevel, G as createDiagramRelationshipIds, Gn as presetColorDesc, Gt as createGlowEffect, H as createDiagramExtensionList, Hn as isPlainRgbColor, Ht as createPresetShadowEffect, I as connectorLockingDesc, In as createTextLineColorList, It as createScene3D, J as createLayoutDefinitionHeader, Jn as schemeColorDesc, Jt as outlineDesc, K as createColorsDefinitionHeader, Kn as rgbColorDesc, Kt as BlendMode, L as graphicFrameLockingDesc, Lt as createEffectDag, M as groupTransform2DDesc, Mn as createLineColorList, Mt as stringifyAdjustmentValues, N as transform2DDesc, Nn as createStyleLabel, Nt as createShape3D, O as DEFAULT_SHADOW_DIRECTION, Ot as createBlip, P as customGeometryDesc, Pn as createTextEffectColorList, Pt as createBevel, Q as createAdjust, Qn as SystemColor, Qt as createCustomDash, R as groupLockingDesc, Rn as createColorElement, Rt as calculateEffectExtent, S as bodyPropertiesDesc, Sn as createRgbColor, St as parseTableStyle, T as DEFAULT_OUTLINE_WIDTH, Tn as scene3DDesc, Tt as createTransform2D, U as createDiagramShape3D, Un as parseColorChoice, Ut as createOuterShadowEffect, V as effectListDesc, Vn as hslColorDesc, Vt as createReflectionEffect, W as createDiagramTextProperties, Wn as parseColorChoiceElement, Wt as createInnerShadowEffect, X as createStyleDefinitionHeader, Xn as stringifyColorChoice, Xt as createOutline, Y as createLayoutDefinitionHeaderList, Yn as solidFillDesc, Yt as stringifyLineProperties, Z as createStyleDefinitionHeaderList, Zn as systemColorDesc, Zt as createLineEnd, _ as buildHyperlinkElement, _n as stretchDesc, _t as createGroupLocking, a as textBodyDesc, an as fillDesc, at as createPreferredChildren, b as runPropertiesDesc, bn as createScRgbColor, bt as createTableStyle, c as stringifyTextListStyleTag, cn as patternFillDesc, ct as stringifyNonVisualContentPartProperties, d as textStylesDesc, dn as createTileInfo, dt as stringifyNonVisualDrawingProperties, en as createPatternFill, er as SchemeColor, et as createAnimateOneByOne, f as paragraphDesc, fn as createSourceRectangle, ft as parseEndpointConnection, g as textRunDesc, gn as sourceRectangleDesc, gt as createGraphicFrameLocking, h as stringifyTextRun, hn as blipFillDesc, ht as createContentPartLocking, i as presentationLayoutVariablesDesc, in as emitFillXml, ir as createColorTransforms, it as createOrgChart, j as shapePropertiesDesc, jn as createFillColorList, jt as stringifyPresetGeometry, k as DEFAULT_SHADOW_DISTANCE, kn as createDiagramStyle, kt as createExtensionList, l as stringifyTextStyles, ln as createGradientFill, lt as parseNonVisualDrawingProperties, m as stringifyParagraphPropertiesElement, mn as blipDesc, mt as createConnectorLocking, n as diagramRelationshipIdsDesc, nn as buildFill, nr as PresetColor, nt as createHierBranch, o as DEFAULT_TEXT_STYLES, on as findFillChild, ot as createPresentationLayoutVariables, p as readParagraphProperties, pn as createBlipEffects, pt as stringifyEndpointConnection, q as createColorsDefinitionHeaderList, qn as scRgbColorDesc, qt as createFillOverlayEffect, r as diagramStyleDesc, rn as extractBlipFillMedia, rr as createPresetColor, rt as createMaxChildren, s as parseTextStyles, sn as gradientFillDesc, st as parseNonVisualContentPartProperties, t as diagramExtensionListDesc, tn as createNoFill, tr as createSchemeColor, tt as createAnimationLevel, u as textListStyleDesc, un as createGradientStop, ut as pickNonVisualDrawingProperties, v as readHyperlink, vn as stringifyBlipEffects, vt as createPictureLocking, w as parseBodyProperties, wn as cell3DDesc, wt as createGroupTransform2D, x as stringifyRunProperties, xn as createHslColor, xt as createTableStyleList, y as registerHyperlink, yn as tileDesc, yt as createShapeLocking, z as pictureLockingDesc, zn as createSolidFill, zt as createEffectList } from "../drawing-DJ363Awy.mjs";
|
|
2
2
|
export { BlendMode, DEFAULT_OUTLINE_WIDTH, DEFAULT_SHADOW_ALPHA, DEFAULT_SHADOW_BLUR_RADIUS, DEFAULT_SHADOW_DIRECTION, DEFAULT_SHADOW_DISTANCE, DEFAULT_TEXT_STYLES, FontCollectionIndex, PresetColor, SchemeColor, SystemColor, bevelDesc, blipDesc, blipFillDesc, bodyPropertiesDesc, buildFill, buildHyperlinkElement, calculateEffectExtent, cell3DDesc, connectorLockingDesc, createAdjust, createAdjustList, createAnimateOneByOne, createAnimationLevel, createBevel, createBlip, createBlipEffects, createBlipFill, createBodyProperties, createBottomBevel, createColorElement, createColorTransforms, createColorsDefinitionHeader, createColorsDefinitionHeaderList, createConnectorLocking, createContentPartLocking, createCustomDash, createCustomGeometry, createDiagramExtensionList, createDiagramRelationshipIds, createDiagramShape3D, createDiagramStyle, createDiagramTextProperties, createEffectColorList, createEffectDag, createEffectList, createExtensionList, createFillColorList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefinitionHeader, createLayoutDefinitionHeaderList, createLineColorList, createLineEnd, createMaxChildren, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createPatternFill, createPictureLocking, createPreferredChildren, createPresentationLayoutVariables, createPresetColor, createPresetShadowEffect, createReflectionEffect, createRgbColor, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createStyleDefinitionHeader, createStyleDefinitionHeaderList, createStyleLabel, createSystemColor, createTableStyle, createTableStyleList, createTextEffectColorList, createTextFillColorList, createTextLineColorList, createTileInfo, createTransform2D, customGeometryDesc, diagramExtensionListDesc, diagramRelationshipIdsDesc, diagramStyleDesc, effectListDesc, emitColorChoice, emitFillXml, extractBlipFillMedia, fillDesc, findFillChild, gradientFillDesc, graphicFrameLockingDesc, groupLockingDesc, groupShapePropertiesDesc, groupTransform2DDesc, hslColorDesc, isPlainRgbColor, outlineDesc, paragraphDesc, parseBodyProperties, parseColorChoice, parseColorChoiceElement, parseEndpointConnection, parseNonVisualContentPartProperties, parseNonVisualDrawingProperties, parseTableStyle, parseTableStyleList, parseTextStyles, patternFillDesc, pickNonVisualDrawingProperties, pictureLockingDesc, presentationLayoutVariablesDesc, presetColorDesc, presetGeometryDesc, readHyperlink, readParagraphProperties, registerHyperlink, rgbColorDesc, runPropertiesDesc, scRgbColorDesc, scene3DDesc, schemeColorDesc, shape3DDesc, shapeLockingDesc, shapePropertiesDesc, solidFillDesc, sourceRectangleDesc, stretchDesc, stringifyAdjustmentValues, stringifyBlipEffects, stringifyColorChoice, stringifyEndpointConnection, stringifyLineProperties, stringifyNonVisualContentPartProperties, stringifyNonVisualDrawingProperties, stringifyParagraphPropertiesElement, stringifyPresetGeometry, stringifyRunProperties, stringifyStretch, stringifyTextListStyleTag, stringifyTextRun, stringifyTextStyles, systemColorDesc, textBodyDesc, textListStyleDesc, textRunDesc, textStylesDesc, tileDesc, transform2DDesc };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as parsePercent, At as xsdTextVerticalType, Ct as xsdStrikeStyle, D as emitPercent, E as emitAngle, Et as xsdTextAnchor, I as xsdAnimLevel, It as toUint8Array, Jt as parseOnOff, Nt as xsdUnderlineStyle, O as mapOptional, Ot as xsdTextCaps, Q as xsdEffectContainer, Tt as xsdTextAlign, W as xsdBlendMode, _ as convertToEmu, _t as xsdRectAlignment, ct as xsdLineEndSize, et as xsdFontAlignment, ft as xsdPathFillMode, gt as xsdPresetShadow, i as uniqueId, j as parsePercentAttr, k as parseAngle, kt as xsdTextTabAlignment, lt as xsdMaterialType, mt as xsdPenAlignment, n as imageTypeFromPath, nt as xsdHueDirection, ot as xsdLightRigDirection, pt as xsdPattern, q as xsdCompoundLine, st as xsdLineCap, t as extUriMatches, tn as stripColorHashPrefix, tt as xsdHierBranch } from "./ext-uri-BR1ouCh3.mjs";
|
|
2
2
|
import { o as parse$1, s as stringify$1 } from "./descriptor-BqaNZrrZ.mjs";
|
|
3
3
|
import { attr, attrBool, attrMeasure, attrNum, element, escapeXml, findChild, stringify, stringifyElement } from "@office-open/xml";
|
|
4
4
|
//#region src/drawing/color/color-transform.ts
|
|
@@ -1430,6 +1430,7 @@ const blipFillDesc = {
|
|
|
1430
1430
|
if (opts.referenceId) {
|
|
1431
1431
|
const blipOpts = {
|
|
1432
1432
|
referenceId: opts.referenceId,
|
|
1433
|
+
compression: opts.compression,
|
|
1433
1434
|
blipEffects: opts.blipEffects
|
|
1434
1435
|
};
|
|
1435
1436
|
const blipXml = stringify$1(blipDesc, blipOpts, ctx);
|
|
@@ -1456,6 +1457,7 @@ const blipFillDesc = {
|
|
|
1456
1457
|
if (blip) {
|
|
1457
1458
|
const blipResult = parse$1(blipDesc, blip, ctx);
|
|
1458
1459
|
if (blipResult.referenceId) result.referenceId = blipResult.referenceId;
|
|
1460
|
+
if (blipResult.compression !== void 0) result.compression = blipResult.compression;
|
|
1459
1461
|
if (blipResult.blipEffects) result.blipEffects = blipResult.blipEffects;
|
|
1460
1462
|
}
|
|
1461
1463
|
const srcRect = findChild(el, "a:srcRect");
|
|
@@ -1629,6 +1631,88 @@ const createTileInfo = (options) => {
|
|
|
1629
1631
|
return element("a:tile", attrs);
|
|
1630
1632
|
};
|
|
1631
1633
|
//#endregion
|
|
1634
|
+
//#region src/drawing/fill/gradient-fill.ts
|
|
1635
|
+
/**
|
|
1636
|
+
* Gradient fill element for DrawingML shapes.
|
|
1637
|
+
*
|
|
1638
|
+
* This module provides gradient fill support with linear and path shading.
|
|
1639
|
+
*
|
|
1640
|
+
* Reference: ISO/IEC 29500-4, dml-main.xsd, CT_GradientFillProperties
|
|
1641
|
+
*
|
|
1642
|
+
* @module
|
|
1643
|
+
*/
|
|
1644
|
+
/** Narrow a stop color to SolidFillOptions for EG_ColorChoice emission. */
|
|
1645
|
+
const toSolidColor = (color) => typeof color === "string" ? { value: stripColorHashPrefix(color) } : color;
|
|
1646
|
+
/**
|
|
1647
|
+
* Creates a gradient stop element (a:gs).
|
|
1648
|
+
*
|
|
1649
|
+
* @example
|
|
1650
|
+
* ```typescript
|
|
1651
|
+
* createGradientStop({ position: 0, color: "FF0000" });
|
|
1652
|
+
* createGradientStop({ position: 100, color: { value: "0000FF" } });
|
|
1653
|
+
* ```
|
|
1654
|
+
*/
|
|
1655
|
+
const createGradientStop = (stop) => element("a:gs", { pos: Math.round(stop.position * 1e3) }, [createColorElement(toSolidColor(stop.color))]);
|
|
1656
|
+
/**
|
|
1657
|
+
* Creates a relative rect element.
|
|
1658
|
+
*/
|
|
1659
|
+
const createRelativeRect = (name, rect) => element(name, {
|
|
1660
|
+
l: rect?.left,
|
|
1661
|
+
t: rect?.top,
|
|
1662
|
+
r: rect?.right,
|
|
1663
|
+
b: rect?.bottom
|
|
1664
|
+
});
|
|
1665
|
+
/**
|
|
1666
|
+
* Creates the shade element (a:lin or a:path).
|
|
1667
|
+
*/
|
|
1668
|
+
const createShadeElement = (shade) => {
|
|
1669
|
+
if ("angle" in shade) return element("a:lin", {
|
|
1670
|
+
ang: shade.angle !== void 0 ? Math.round(shade.angle * 6e4) : void 0,
|
|
1671
|
+
scaled: shade.scaled
|
|
1672
|
+
});
|
|
1673
|
+
const pathShade = shade;
|
|
1674
|
+
const children = [];
|
|
1675
|
+
if (pathShade.fillToRectangle) children.push(createRelativeRect("a:fillToRect", pathShade.fillToRectangle));
|
|
1676
|
+
return element("a:path", { path: pathShade.path }, children);
|
|
1677
|
+
};
|
|
1678
|
+
/**
|
|
1679
|
+
* Creates a gradient fill element.
|
|
1680
|
+
*
|
|
1681
|
+
* ## XSD Schema
|
|
1682
|
+
* ```xml
|
|
1683
|
+
* <xsd:complexType name="CT_GradientFillProperties">
|
|
1684
|
+
* <xsd:sequence>
|
|
1685
|
+
* <xsd:element name="gsLst" type="CT_GradientStopList" minOccurs="0"/>
|
|
1686
|
+
* <xsd:group ref="EG_ShadeProperties" minOccurs="0"/>
|
|
1687
|
+
* </xsd:sequence>
|
|
1688
|
+
* <xsd:attribute name="rotWithShape" type="xsd:boolean" use="optional"/>
|
|
1689
|
+
* </xsd:complexType>
|
|
1690
|
+
* ```
|
|
1691
|
+
*
|
|
1692
|
+
* @example
|
|
1693
|
+
* ```typescript
|
|
1694
|
+
* // Linear gradient from red to blue
|
|
1695
|
+
* createGradientFill({
|
|
1696
|
+
* stops: [
|
|
1697
|
+
* { position: 0, color: { value: "FF0000" } },
|
|
1698
|
+
* { position: 100, color: { value: "0000FF" } },
|
|
1699
|
+
* ],
|
|
1700
|
+
* shade: { angle: 90 },
|
|
1701
|
+
* });
|
|
1702
|
+
* ```
|
|
1703
|
+
*/
|
|
1704
|
+
const createGradientFill = (options) => {
|
|
1705
|
+
const children = [];
|
|
1706
|
+
const stopElements = options.stops.map(createGradientStop);
|
|
1707
|
+
children.push(element("a:gsLst", void 0, stopElements));
|
|
1708
|
+
if (options.shade) children.push(createShadeElement(options.shade));
|
|
1709
|
+
if (options.tileRectangle) children.push(createRelativeRect("a:tileRect", options.tileRectangle));
|
|
1710
|
+
return element("a:gradFill", {
|
|
1711
|
+
flip: options.flip,
|
|
1712
|
+
rotWithShape: options.rotateWithShape
|
|
1713
|
+
}, children);
|
|
1714
|
+
};
|
|
1715
|
+
//#endregion
|
|
1632
1716
|
//#region src/drawing/fill/fill-descriptors.ts
|
|
1633
1717
|
/**
|
|
1634
1718
|
* Fill descriptors for DrawingML EG_FillProperties.
|
|
@@ -1732,10 +1816,7 @@ function emitFillXml(options, embedPlaceholder) {
|
|
|
1732
1816
|
case "solid": return `<a:solidFill>${emitColorChoice(typeof options.color === "string" ? { value: stripColorHashPrefix(options.color) } : options.color)}</a:solidFill>`;
|
|
1733
1817
|
case "gradient": {
|
|
1734
1818
|
if ("options" in options) return emitGradientFillXml(options.options);
|
|
1735
|
-
const gradOpts = { stops: options.stops
|
|
1736
|
-
position: stop.position,
|
|
1737
|
-
color: typeof stop.color === "string" ? { value: stripColorHashPrefix(stop.color) } : stop.color
|
|
1738
|
-
})) };
|
|
1819
|
+
const gradOpts = { stops: options.stops };
|
|
1739
1820
|
if (!options.path && options.angle !== void 0) gradOpts.shade = {
|
|
1740
1821
|
angle: options.angle,
|
|
1741
1822
|
scaled: options.scaled ?? true
|
|
@@ -1757,7 +1838,7 @@ function emitGradientFillXml(opts) {
|
|
|
1757
1838
|
if (opts.stops.length < 2) return void 0;
|
|
1758
1839
|
const parts = [];
|
|
1759
1840
|
const stopsXml = opts.stops.map((stop) => {
|
|
1760
|
-
const colorXml = emitColorChoice(stop.color);
|
|
1841
|
+
const colorXml = emitColorChoice(toSolidColor(stop.color));
|
|
1761
1842
|
if (!colorXml) return `<a:gs pos="${emitPercent(stop.position)}"/>`;
|
|
1762
1843
|
return `<a:gs pos="${emitPercent(stop.position)}">${colorXml}</a:gs>`;
|
|
1763
1844
|
}).join("");
|
|
@@ -1790,9 +1871,10 @@ function emitBlipFill(options, embed) {
|
|
|
1790
1871
|
const embedRef = embed ?? `{${fileName}}`;
|
|
1791
1872
|
const blipChildren = [];
|
|
1792
1873
|
if (options.blipEffects) blipChildren.push(...createBlipEffects(options.blipEffects));
|
|
1874
|
+
const R_NS = "http://schemas.openxmlformats.org/officeDocument/2006/relationships";
|
|
1793
1875
|
const children = [options.noEmbed ? element("a:blip", void 0, blipChildren.length > 0 ? blipChildren : void 0) : element("a:blip", {
|
|
1794
|
-
cstate:
|
|
1795
|
-
"xmlns:r":
|
|
1876
|
+
...options.compression !== void 0 ? { cstate: options.compression } : {},
|
|
1877
|
+
"xmlns:r": R_NS,
|
|
1796
1878
|
"r:embed": embedRef
|
|
1797
1879
|
}, blipChildren.length > 0 ? blipChildren : void 0)];
|
|
1798
1880
|
if (options.sourceRectangle !== void 0) children.push(createSourceRectangle(options.sourceRectangle));
|
|
@@ -1842,6 +1924,7 @@ const fillDesc = {
|
|
|
1842
1924
|
fileName: mediaPath.split("/").pop()
|
|
1843
1925
|
};
|
|
1844
1926
|
if (blipOpts.dpi !== void 0) blip.dpi = blipOpts.dpi;
|
|
1927
|
+
if (blipOpts.compression !== void 0) blip.compression = blipOpts.compression;
|
|
1845
1928
|
if (blipOpts.rotWithShape !== void 0) blip.rotWithShape = blipOpts.rotWithShape;
|
|
1846
1929
|
if (blipOpts.blipEffects) blip.blipEffects = blipOpts.blipEffects;
|
|
1847
1930
|
if (blipOpts.sourceRectangle) blip.sourceRectangle = blipOpts.sourceRectangle;
|
|
@@ -1854,6 +1937,7 @@ const fillDesc = {
|
|
|
1854
1937
|
noEmbed: true
|
|
1855
1938
|
};
|
|
1856
1939
|
if (blipOpts.dpi !== void 0) blip.dpi = blipOpts.dpi;
|
|
1940
|
+
if (blipOpts.compression !== void 0) blip.compression = blipOpts.compression;
|
|
1857
1941
|
if (blipOpts.rotWithShape !== void 0) blip.rotWithShape = blipOpts.rotWithShape;
|
|
1858
1942
|
if (blipOpts.sourceRectangle) blip.sourceRectangle = blipOpts.sourceRectangle;
|
|
1859
1943
|
if (blipOpts.tile) blip.tile = blipOpts.tile;
|
|
@@ -1943,86 +2027,6 @@ const buildFill = (options, embedPlaceholder) => emitFillXml(options, embedPlace
|
|
|
1943
2027
|
*/
|
|
1944
2028
|
const createNoFill = () => element("a:noFill");
|
|
1945
2029
|
//#endregion
|
|
1946
|
-
//#region src/drawing/fill/gradient-fill.ts
|
|
1947
|
-
/**
|
|
1948
|
-
* Gradient fill element for DrawingML shapes.
|
|
1949
|
-
*
|
|
1950
|
-
* This module provides gradient fill support with linear and path shading.
|
|
1951
|
-
*
|
|
1952
|
-
* Reference: ISO/IEC 29500-4, dml-main.xsd, CT_GradientFillProperties
|
|
1953
|
-
*
|
|
1954
|
-
* @module
|
|
1955
|
-
*/
|
|
1956
|
-
/**
|
|
1957
|
-
* Creates a gradient stop element (a:gs).
|
|
1958
|
-
*
|
|
1959
|
-
* @example
|
|
1960
|
-
* ```typescript
|
|
1961
|
-
* createGradientStop({ position: 0, color: { value: "FF0000" } });
|
|
1962
|
-
* createGradientStop({ position: 100, color: { value: "0000FF" } });
|
|
1963
|
-
* ```
|
|
1964
|
-
*/
|
|
1965
|
-
const createGradientStop = (stop) => element("a:gs", { pos: Math.round(stop.position * 1e3) }, [createColorElement(stop.color)]);
|
|
1966
|
-
/**
|
|
1967
|
-
* Creates a relative rect element.
|
|
1968
|
-
*/
|
|
1969
|
-
const createRelativeRect = (name, rect) => element(name, {
|
|
1970
|
-
l: rect?.left,
|
|
1971
|
-
t: rect?.top,
|
|
1972
|
-
r: rect?.right,
|
|
1973
|
-
b: rect?.bottom
|
|
1974
|
-
});
|
|
1975
|
-
/**
|
|
1976
|
-
* Creates the shade element (a:lin or a:path).
|
|
1977
|
-
*/
|
|
1978
|
-
const createShadeElement = (shade) => {
|
|
1979
|
-
if ("angle" in shade) return element("a:lin", {
|
|
1980
|
-
ang: shade.angle !== void 0 ? Math.round(shade.angle * 6e4) : void 0,
|
|
1981
|
-
scaled: shade.scaled
|
|
1982
|
-
});
|
|
1983
|
-
const pathShade = shade;
|
|
1984
|
-
const children = [];
|
|
1985
|
-
if (pathShade.fillToRectangle) children.push(createRelativeRect("a:fillToRect", pathShade.fillToRectangle));
|
|
1986
|
-
return element("a:path", { path: pathShade.path }, children);
|
|
1987
|
-
};
|
|
1988
|
-
/**
|
|
1989
|
-
* Creates a gradient fill element.
|
|
1990
|
-
*
|
|
1991
|
-
* ## XSD Schema
|
|
1992
|
-
* ```xml
|
|
1993
|
-
* <xsd:complexType name="CT_GradientFillProperties">
|
|
1994
|
-
* <xsd:sequence>
|
|
1995
|
-
* <xsd:element name="gsLst" type="CT_GradientStopList" minOccurs="0"/>
|
|
1996
|
-
* <xsd:group ref="EG_ShadeProperties" minOccurs="0"/>
|
|
1997
|
-
* </xsd:sequence>
|
|
1998
|
-
* <xsd:attribute name="rotWithShape" type="xsd:boolean" use="optional"/>
|
|
1999
|
-
* </xsd:complexType>
|
|
2000
|
-
* ```
|
|
2001
|
-
*
|
|
2002
|
-
* @example
|
|
2003
|
-
* ```typescript
|
|
2004
|
-
* // Linear gradient from red to blue
|
|
2005
|
-
* createGradientFill({
|
|
2006
|
-
* stops: [
|
|
2007
|
-
* { position: 0, color: { value: "FF0000" } },
|
|
2008
|
-
* { position: 100, color: { value: "0000FF" } },
|
|
2009
|
-
* ],
|
|
2010
|
-
* shade: { angle: 90 },
|
|
2011
|
-
* });
|
|
2012
|
-
* ```
|
|
2013
|
-
*/
|
|
2014
|
-
const createGradientFill = (options) => {
|
|
2015
|
-
const children = [];
|
|
2016
|
-
const stopElements = options.stops.map(createGradientStop);
|
|
2017
|
-
children.push(element("a:gsLst", void 0, stopElements));
|
|
2018
|
-
if (options.shade) children.push(createShadeElement(options.shade));
|
|
2019
|
-
if (options.tileRectangle) children.push(createRelativeRect("a:tileRect", options.tileRectangle));
|
|
2020
|
-
return element("a:gradFill", {
|
|
2021
|
-
flip: options.flip,
|
|
2022
|
-
rotWithShape: options.rotateWithShape
|
|
2023
|
-
}, children);
|
|
2024
|
-
};
|
|
2025
|
-
//#endregion
|
|
2026
2030
|
//#region src/drawing/fill/pattern-fill.ts
|
|
2027
2031
|
/**
|
|
2028
2032
|
* Pattern fill element for DrawingML shapes.
|
|
@@ -2713,23 +2717,6 @@ const calculateEffectExtent = (options) => {
|
|
|
2713
2717
|
};
|
|
2714
2718
|
};
|
|
2715
2719
|
/**
|
|
2716
|
-
* Creates a blur effect element.
|
|
2717
|
-
*
|
|
2718
|
-
* ## XSD Schema
|
|
2719
|
-
* ```xml
|
|
2720
|
-
* <xsd:complexType name="CT_BlurEffect">
|
|
2721
|
-
* <xsd:attribute name="rad" type="ST_PositiveCoordinate" default="0"/>
|
|
2722
|
-
* <xsd:attribute name="grow" type="xsd:boolean" default="true"/>
|
|
2723
|
-
* </xsd:complexType>
|
|
2724
|
-
* ```
|
|
2725
|
-
*/
|
|
2726
|
-
const createBlurEffect = (options) => {
|
|
2727
|
-
const attrs = {};
|
|
2728
|
-
if (options.radius !== void 0) attrs.rad = options.radius;
|
|
2729
|
-
if (options.grow === false) attrs.grow = 0;
|
|
2730
|
-
return Object.keys(attrs).length > 0 ? element("a:blur", attrs) : element("a:blur");
|
|
2731
|
-
};
|
|
2732
|
-
/**
|
|
2733
2720
|
* Creates an effect list element (a:effectLst).
|
|
2734
2721
|
*
|
|
2735
2722
|
* This is the EG_EffectProperties choice for a flat list of effects.
|
|
@@ -2751,6 +2738,13 @@ const createBlurEffect = (options) => {
|
|
|
2751
2738
|
* </xsd:complexType>
|
|
2752
2739
|
* ```
|
|
2753
2740
|
*/
|
|
2741
|
+
/** Serialize a:blur (CT_BlurEffect). */
|
|
2742
|
+
const createBlurEffect = (options) => {
|
|
2743
|
+
const attrs = {};
|
|
2744
|
+
if (options.radius !== void 0) attrs.rad = options.radius;
|
|
2745
|
+
if (options.grow === false) attrs.grow = 0;
|
|
2746
|
+
return Object.keys(attrs).length > 0 ? element("a:blur", attrs) : element("a:blur");
|
|
2747
|
+
};
|
|
2754
2748
|
/**
|
|
2755
2749
|
* Append the eight CT_EffectList effects (also valid in CT_EffectContainer),
|
|
2756
2750
|
* in XSD sequence order. Shared by createEffectList and the DAG container.
|
|
@@ -4820,7 +4814,7 @@ const shapePropertiesDesc = {
|
|
|
4820
4814
|
const g = presetGeometryDesc.stringify(geom, ctx);
|
|
4821
4815
|
if (g) parts.push(g);
|
|
4822
4816
|
}
|
|
4823
|
-
if (opts.fill
|
|
4817
|
+
if (opts.fill) {
|
|
4824
4818
|
const f = fillDesc.stringify(opts.fill, ctx);
|
|
4825
4819
|
if (f) parts.push(f);
|
|
4826
4820
|
}
|
|
@@ -6036,6 +6030,6 @@ const diagramExtensionListDesc = {
|
|
|
6036
6030
|
}
|
|
6037
6031
|
};
|
|
6038
6032
|
//#endregion
|
|
6039
|
-
export { createAdjustList as $, createSystemColor as $n, createGroupFill as $t, groupShapePropertiesDesc as A, createEffectColorList as An, createCustomGeometry as At, shapeLockingDesc as B, emitColorChoice as Bn, createSoftEdgeEffect as Bt, createBodyProperties as C, bevelDesc as Cn, parseTableStyleList as Ct, DEFAULT_SHADOW_BLUR_RADIUS as D, FontCollectionIndex as Dn, createBlipFill as Dt, DEFAULT_SHADOW_ALPHA as E, shape3DDesc as En, stringifyStretch as Et, presetGeometryDesc as F, createTextFillColorList as Fn, createBottomBevel as Ft, createDiagramRelationshipIds as G, presetColorDesc as Gn, createGlowEffect as Gt, createDiagramExtensionList as H, isPlainRgbColor as Hn, createPresetShadowEffect as Ht, connectorLockingDesc as I, createTextLineColorList as In, createScene3D as It, createLayoutDefinitionHeader as J, schemeColorDesc as Jn, outlineDesc as Jt, createColorsDefinitionHeader as K, rgbColorDesc as Kn, BlendMode as Kt, graphicFrameLockingDesc as L, parseColorList as Ln, createEffectDag as Lt, groupTransform2DDesc as M, createLineColorList as Mn, stringifyAdjustmentValues as Mt, transform2DDesc as N, createStyleLabel as Nn, createShape3D as Nt, DEFAULT_SHADOW_DIRECTION as O, createColorList as On, createBlip as Ot, customGeometryDesc as P, createTextEffectColorList as Pn, createBevel as Pt, createAdjust as Q, SystemColor as Qn, createCustomDash as Qt, groupLockingDesc as R, createColorElement as Rn, calculateEffectExtent as Rt, bodyPropertiesDesc as S, createRgbColor as Sn, parseTableStyle as St, DEFAULT_OUTLINE_WIDTH as T, scene3DDesc as Tn, createTransform2D as Tt, createDiagramShape3D as U, parseColorChoice as Un, createOuterShadowEffect as Ut, effectListDesc as V, hslColorDesc as Vn, createReflectionEffect as Vt, createDiagramTextProperties as W, parseColorChoiceElement as Wn, createInnerShadowEffect as Wt, createStyleDefinitionHeader as X, stringifyColorChoice as Xn, createOutline as Xt, createLayoutDefinitionHeaderList as Y, solidFillDesc as Yn, stringifyLineProperties as Yt, createStyleDefinitionHeaderList as Z, systemColorDesc as Zn, createLineEnd as Zt, buildHyperlinkElement as _, stretchDesc as _n, createGroupLocking as _t, textBodyDesc as a,
|
|
6033
|
+
export { createAdjustList as $, createSystemColor as $n, createGroupFill as $t, groupShapePropertiesDesc as A, createEffectColorList as An, createCustomGeometry as At, shapeLockingDesc as B, emitColorChoice as Bn, createSoftEdgeEffect as Bt, createBodyProperties as C, bevelDesc as Cn, parseTableStyleList as Ct, DEFAULT_SHADOW_BLUR_RADIUS as D, FontCollectionIndex as Dn, createBlipFill as Dt, DEFAULT_SHADOW_ALPHA as E, shape3DDesc as En, stringifyStretch as Et, presetGeometryDesc as F, createTextFillColorList as Fn, createBottomBevel as Ft, createDiagramRelationshipIds as G, presetColorDesc as Gn, createGlowEffect as Gt, createDiagramExtensionList as H, isPlainRgbColor as Hn, createPresetShadowEffect as Ht, connectorLockingDesc as I, createTextLineColorList as In, createScene3D as It, createLayoutDefinitionHeader as J, schemeColorDesc as Jn, outlineDesc as Jt, createColorsDefinitionHeader as K, rgbColorDesc as Kn, BlendMode as Kt, graphicFrameLockingDesc as L, parseColorList as Ln, createEffectDag as Lt, groupTransform2DDesc as M, createLineColorList as Mn, stringifyAdjustmentValues as Mt, transform2DDesc as N, createStyleLabel as Nn, createShape3D as Nt, DEFAULT_SHADOW_DIRECTION as O, createColorList as On, createBlip as Ot, customGeometryDesc as P, createTextEffectColorList as Pn, createBevel as Pt, createAdjust as Q, SystemColor as Qn, createCustomDash as Qt, groupLockingDesc as R, createColorElement as Rn, calculateEffectExtent as Rt, bodyPropertiesDesc as S, createRgbColor as Sn, parseTableStyle as St, DEFAULT_OUTLINE_WIDTH as T, scene3DDesc as Tn, createTransform2D as Tt, createDiagramShape3D as U, parseColorChoice as Un, createOuterShadowEffect as Ut, effectListDesc as V, hslColorDesc as Vn, createReflectionEffect as Vt, createDiagramTextProperties as W, parseColorChoiceElement as Wn, createInnerShadowEffect as Wt, createStyleDefinitionHeader as X, stringifyColorChoice as Xn, createOutline as Xt, createLayoutDefinitionHeaderList as Y, solidFillDesc as Yn, stringifyLineProperties as Yt, createStyleDefinitionHeaderList as Z, systemColorDesc as Zn, createLineEnd as Zt, buildHyperlinkElement as _, stretchDesc as _n, createGroupLocking as _t, textBodyDesc as a, fillDesc as an, createPreferredChildren as at, runPropertiesDesc as b, createScRgbColor as bn, createTableStyle as bt, stringifyTextListStyleTag as c, patternFillDesc as cn, stringifyNonVisualContentPartProperties as ct, textStylesDesc as d, createTileInfo as dn, stringifyNonVisualDrawingProperties as dt, createPatternFill as en, SchemeColor as er, createAnimateOneByOne as et, paragraphDesc as f, createSourceRectangle as fn, parseEndpointConnection as ft, textRunDesc as g, sourceRectangleDesc as gn, createGraphicFrameLocking as gt, stringifyTextRun as h, blipFillDesc as hn, createContentPartLocking as ht, presentationLayoutVariablesDesc as i, emitFillXml as in, createColorTransforms as ir, createOrgChart as it, shapePropertiesDesc as j, createFillColorList as jn, stringifyPresetGeometry as jt, DEFAULT_SHADOW_DISTANCE as k, createDiagramStyle as kn, createExtensionList as kt, stringifyTextStyles as l, createGradientFill as ln, parseNonVisualDrawingProperties as lt, stringifyParagraphPropertiesElement as m, blipDesc as mn, createConnectorLocking as mt, diagramRelationshipIdsDesc as n, buildFill as nn, PresetColor as nr, createHierBranch as nt, DEFAULT_TEXT_STYLES as o, findFillChild as on, createPresentationLayoutVariables as ot, readParagraphProperties as p, createBlipEffects as pn, stringifyEndpointConnection as pt, createColorsDefinitionHeaderList as q, scRgbColorDesc as qn, createFillOverlayEffect as qt, diagramStyleDesc as r, extractBlipFillMedia as rn, createPresetColor as rr, createMaxChildren as rt, parseTextStyles as s, gradientFillDesc as sn, parseNonVisualContentPartProperties as st, diagramExtensionListDesc as t, createNoFill as tn, createSchemeColor as tr, createAnimationLevel as tt, textListStyleDesc as u, createGradientStop as un, pickNonVisualDrawingProperties as ut, readHyperlink as v, stringifyBlipEffects as vn, createPictureLocking as vt, parseBodyProperties as w, cell3DDesc as wn, createGroupTransform2D as wt, stringifyRunProperties as x, createHslColor as xn, createTableStyleList as xt, registerHyperlink as y, tileDesc as yn, createShapeLocking as yt, pictureLockingDesc as z, createSolidFill as zn, createEffectList as zt };
|
|
6040
6034
|
|
|
6041
|
-
//# sourceMappingURL=drawing-
|
|
6035
|
+
//# sourceMappingURL=drawing-DJ363Awy.mjs.map
|