@mescius/spread-sheets 17.1.0 → 17.1.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.
@@ -49478,8 +49478,12 @@ declare module GC{
49478
49478
  * @param {GC.Spread.Sheets.Slicers.SlicerBorder} [borderRight] The right border of the style information.
49479
49479
  * @param {GC.Spread.Sheets.Slicers.SlicerBorder} [borderBottom] The bottom border of the style information.
49480
49480
  * @param {GC.Spread.Sheets.TextDecorationType} [textDecoration] The text decoration of the style information.
49481
+ * @param {string} [fontStyle] The font style of the style information.
49482
+ * @param {string} [fontWeight] The font weight of the style information.
49483
+ * @param {string} [fontSize] The font size of the style information.
49484
+ * @param {string} [fontFamily] The font family of the style information.
49481
49485
  */
49482
- constructor(backColor?: string, foreColor?: string, font?: string, borderLeft?: GC.Spread.Sheets.Slicers.SlicerBorder, borderTop?: GC.Spread.Sheets.Slicers.SlicerBorder, borderRight?: GC.Spread.Sheets.Slicers.SlicerBorder, borderBottom?: GC.Spread.Sheets.Slicers.SlicerBorder, textDecoration?: GC.Spread.Sheets.TextDecorationType);
49486
+ constructor(backColor?: string, foreColor?: string, font?: string, borderLeft?: GC.Spread.Sheets.Slicers.SlicerBorder, borderTop?: GC.Spread.Sheets.Slicers.SlicerBorder, borderRight?: GC.Spread.Sheets.Slicers.SlicerBorder, borderBottom?: GC.Spread.Sheets.Slicers.SlicerBorder, textDecoration?: GC.Spread.Sheets.TextDecorationType, fontStyle?: string, fontWeight?: string, fontSize?: string, fontFamily?: string);
49483
49487
  /**
49484
49488
  * Gets or sets the background color of the style information.
49485
49489
  * @param {string} [value] The background color of the style information.
@@ -49724,6 +49728,153 @@ declare module GC{
49724
49728
  * ```
49725
49729
  */
49726
49730
  font(value?: string): any;
49731
+ /**
49732
+ * Gets or sets the font size.
49733
+ * @param {string} [value] The font size of the style information.
49734
+ * @returns {string | GC.Spread.Sheets.Slicers.SlicerStyleInfo} If no value is set, returns the font size of the style information; otherwise, returns the slicer style information.
49735
+ * @example
49736
+ * ```
49737
+ * //This example sets a font size.
49738
+ * //create a table
49739
+ * var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"), { sheetCount: 2 });
49740
+ * var activeSheet = spread.getActiveSheet();
49741
+ * var datas = [
49742
+ * ["1", "NewYork", "1968/6/8", "80", "180"],
49743
+ * ["4", "NewYork", "1972/7/3", "72", "168"],
49744
+ * ["4", "NewYork", "1964/3/2", "71", "179"],
49745
+ * ["5", "Washington", "1972/8/8","80", "171"],
49746
+ * ["6", "Washington", "1986/2/2", "89", "161"],
49747
+ * ["7", "Washington", "2012/2/15", "71", "240"]];
49748
+ * var table = activeSheet.tables.addFromDataSource("table1", 2, 2, datas);
49749
+ * var dataColumns = ["Name", "City", "Birthday", "Weight", "Height"];
49750
+ * table.setColumnName(0, dataColumns[0]);
49751
+ * table.setColumnName(1, dataColumns[1]);
49752
+ * table.setColumnName(2, dataColumns[2]);
49753
+ * table.setColumnName(3, dataColumns[3]);
49754
+ * table.setColumnName(4, dataColumns[4]);
49755
+ * //style
49756
+ * var hstyle = new GC.Spread.Sheets.Slicers.SlicerStyleInfo();
49757
+ * hstyle.fontSize("18pt");
49758
+ * var style1 = new GC.Spread.Sheets.Slicers.SlicerStyle();
49759
+ * style1.hoveredSelectedItemWithDataStyle(hstyle);
49760
+ * //add a slicer to the sheet and return the slicer instance.
49761
+ * var slicer = activeSheet.slicers.add("slicer1",table.name(),"Name");
49762
+ * //change the slicer properties.
49763
+ * slicer.position(new GC.Spread.Sheets.Point(100, 200));
49764
+ * slicer.style(style1);
49765
+ */ ///* function fontFamily(value?: string): any
49766
+ /**
49767
+ * Gets or sets the font family.
49768
+ * ```
49769
+ * @param {string} [value] The font family of the style information.
49770
+ * @returns {string | GC.Spread.Sheets.Slicers.SlicerStyleInfo} If no value is set, returns the font family of the style information; otherwise, returns the slicer style information.
49771
+ * @example
49772
+ * ```
49773
+ * //This example sets a font family.
49774
+ * //create a table
49775
+ * var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"), { sheetCount: 2 });
49776
+ * var activeSheet = spread.getActiveSheet();
49777
+ * var datas = [
49778
+ * ["1", "NewYork", "1968/6/8", "80", "180"],
49779
+ * ["4", "NewYork", "1972/7/3", "72", "168"],
49780
+ * ["4", "NewYork", "1964/3/2", "71", "179"],
49781
+ * ["5", "Washington", "1972/8/8","80", "171"],
49782
+ * ["6", "Washington", "1986/2/2", "89", "161"],
49783
+ * ["7", "Washington", "2012/2/15", "71", "240"]];
49784
+ * var table = activeSheet.tables.addFromDataSource("table1", 2, 2, datas);
49785
+ * var dataColumns = ["Name", "City", "Birthday", "Weight", "Height"];
49786
+ * table.setColumnName(0, dataColumns[0]);
49787
+ * table.setColumnName(1, dataColumns[1]);
49788
+ * table.setColumnName(2, dataColumns[2]);
49789
+ * table.setColumnName(3, dataColumns[3]);
49790
+ * table.setColumnName(4, dataColumns[4]);
49791
+ * //style
49792
+ * var hstyle = new GC.Spread.Sheets.Slicers.SlicerStyleInfo();
49793
+ * hstyle.fontFamily("Arial Black");
49794
+ * var style1 = new GC.Spread.Sheets.Slicers.SlicerStyle();
49795
+ * style1.hoveredSelectedItemWithDataStyle(hstyle);
49796
+ * //add a slicer to the sheet and return the slicer instance.
49797
+ * var slicer = activeSheet.slicers.add("slicer1",table.name(),"Name");
49798
+ * //change the slicer properties.
49799
+ * slicer.position(new GC.Spread.Sheets.Point(100, 200));
49800
+ * slicer.style(style1);
49801
+ * ```
49802
+ */
49803
+ fontSize(value?: string): any;
49804
+ /**
49805
+ * Gets or sets the font style.
49806
+ * @param {string} [value] The font style of the style information.
49807
+ * @returns {string | GC.Spread.Sheets.Slicers.SlicerStyleInfo} If no value is set, returns the font style of the style information; otherwise, returns the slicer style information.
49808
+ * @example
49809
+ * ```
49810
+ * //This example sets a font style.
49811
+ * //create a table
49812
+ * var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"), { sheetCount: 2 });
49813
+ * var activeSheet = spread.getActiveSheet();
49814
+ * var datas = [
49815
+ * ["1", "NewYork", "1968/6/8", "80", "180"],
49816
+ * ["4", "NewYork", "1972/7/3", "72", "168"],
49817
+ * ["4", "NewYork", "1964/3/2", "71", "179"],
49818
+ * ["5", "Washington", "1972/8/8","80", "171"],
49819
+ * ["6", "Washington", "1986/2/2", "89", "161"],
49820
+ * ["7", "Washington", "2012/2/15", "71", "240"]];
49821
+ * var table = activeSheet.tables.addFromDataSource("table1", 2, 2, datas);
49822
+ * var dataColumns = ["Name", "City", "Birthday", "Weight", "Height"];
49823
+ * table.setColumnName(0, dataColumns[0]);
49824
+ * table.setColumnName(1, dataColumns[1]);
49825
+ * table.setColumnName(2, dataColumns[2]);
49826
+ * table.setColumnName(3, dataColumns[3]);
49827
+ * table.setColumnName(4, dataColumns[4]);
49828
+ * //style
49829
+ * var hstyle = new GC.Spread.Sheets.Slicers.SlicerStyleInfo();
49830
+ * hstyle.fontStyle("italic");
49831
+ * var style1 = new GC.Spread.Sheets.Slicers.SlicerStyle();
49832
+ * style1.hoveredSelectedItemWithDataStyle(hstyle);
49833
+ * //add a slicer to the sheet and return the slicer instance.
49834
+ * var slicer = activeSheet.slicers.add("slicer1",table.name(),"Name");
49835
+ * //change the slicer properties.
49836
+ * slicer.position(new GC.Spread.Sheets.Point(100, 200));
49837
+ * slicer.style(style1);
49838
+ * ```
49839
+ */
49840
+ fontStyle(value?: string): any;
49841
+ /**
49842
+ * Gets or sets the font weight.
49843
+ * @param {string} [value] The font weight of the style information.
49844
+ * @returns {string | GC.Spread.Sheets.Slicers.SlicerStyleInfo} If no value is set, returns the font weight of the style information; otherwise, returns the slicer style information.
49845
+ * @example
49846
+ * ```
49847
+ * //This example sets a font weight.
49848
+ * //create a table
49849
+ * var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"), { sheetCount: 2 });
49850
+ * var activeSheet = spread.getActiveSheet();
49851
+ * var datas = [
49852
+ * ["1", "NewYork", "1968/6/8", "80", "180"],
49853
+ * ["4", "NewYork", "1972/7/3", "72", "168"],
49854
+ * ["4", "NewYork", "1964/3/2", "71", "179"],
49855
+ * ["5", "Washington", "1972/8/8","80", "171"],
49856
+ * ["6", "Washington", "1986/2/2", "89", "161"],
49857
+ * ["7", "Washington", "2012/2/15", "71", "240"]];
49858
+ * var table = activeSheet.tables.addFromDataSource("table1", 2, 2, datas);
49859
+ * var dataColumns = ["Name", "City", "Birthday", "Weight", "Height"];
49860
+ * table.setColumnName(0, dataColumns[0]);
49861
+ * table.setColumnName(1, dataColumns[1]);
49862
+ * table.setColumnName(2, dataColumns[2]);
49863
+ * table.setColumnName(3, dataColumns[3]);
49864
+ * table.setColumnName(4, dataColumns[4]);
49865
+ * //style
49866
+ * var hstyle = new GC.Spread.Sheets.Slicers.SlicerStyleInfo();
49867
+ * hstyle.fontWeight("bold");
49868
+ * var style1 = new GC.Spread.Sheets.Slicers.SlicerStyle();
49869
+ * style1.hoveredSelectedItemWithDataStyle(hstyle);
49870
+ * //add a slicer to the sheet and return the slicer instance.
49871
+ * var slicer = activeSheet.slicers.add("slicer1",table.name(),"Name");
49872
+ * //change the slicer properties.
49873
+ * slicer.position(new GC.Spread.Sheets.Point(100, 200));
49874
+ * slicer.style(style1);
49875
+ * ```
49876
+ */
49877
+ fontWeight(value?: string): any;
49727
49878
  /**
49728
49879
  * Gets or sets the foreground color of the style information.
49729
49880
  * @param {string} [value] The foreground color of the style information.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mescius/spread-sheets",
3
- "version": "17.1.0",
3
+ "version": "17.1.1",
4
4
  "main": "index.js",
5
5
  "description":"A Complete Microsoft Excel-like JavaScript Spreadsheet for Enterprise Applications",
6
6
  "scripts": {},